From 933aa68aaf075ac668a0a2b814b7c72638f3133c Mon Sep 17 00:00:00 2001 From: Piotr Date: Thu, 6 Mar 2025 08:48:34 +0100 Subject: [PATCH] v0.16 assets and readme updates --- README.md | 4 +- build_across | 2 +- ...ssMode-sOsldDC-.js => cssMode-10LXxtzq.js} | 2 +- ...r2-Psmk5woI.js => freemarker2-KcD1jNXB.js} | 2 +- ...ars-ZQMHe7Gk.js => handlebars-KnAzOYuq.js} | 2 +- .../{html-on_8OiBm.js => html-d5xbwq8Y.js} | 2 +- ...lMode-dFoHfZ69.js => htmlMode-izcVh4Rp.js} | 2 +- .../{index-ybqrNB1L.js => index-9H9C1KdH.js} | 622 +++++++++--------- ...{index-BxR560fA.css => index-ErHjSZaC.css} | 2 +- ...ipt-jXNpK4W4.js => javascript-xUVXyrsT.js} | 2 +- ...nMode-Gng5avSd.js => jsonMode-epy0QnuM.js} | 2 +- ...{liquid-dt6GtWuA.js => liquid-ck49x7Wg.js} | 2 +- ...{python-Aa-4P7rg.js => python-uFiJjNOw.js} | 2 +- .../{razor-umCs_5VB.js => razor-AIJAgph-.js} | 2 +- ...{tsMode-zwZvWeF7.js => tsMode-l16KXt7o.js} | 2 +- ...ipt-NIp_JCqg.js => typescript-0NOWYmRg.js} | 2 +- .../{xml-rS1dC3BW.js => xml-knxkmXA7.js} | 2 +- .../{yaml-19AOUYsC.js => yaml-LlS1LddZ.js} | 2 +- http/assets/index.html | 4 +- http/assets/main.wasm | Bin 3834998 -> 3852846 bytes release | 2 +- 21 files changed, 334 insertions(+), 330 deletions(-) rename http/assets/assets/{cssMode-sOsldDC-.js => cssMode-10LXxtzq.js} (99%) rename http/assets/assets/{freemarker2-Psmk5woI.js => freemarker2-KcD1jNXB.js} (99%) rename http/assets/assets/{handlebars-ZQMHe7Gk.js => handlebars-KnAzOYuq.js} (99%) rename http/assets/assets/{html-on_8OiBm.js => html-d5xbwq8Y.js} (98%) rename http/assets/assets/{htmlMode-dFoHfZ69.js => htmlMode-izcVh4Rp.js} (99%) rename http/assets/assets/{index-ybqrNB1L.js => index-9H9C1KdH.js} (75%) rename http/assets/assets/{index-BxR560fA.css => index-ErHjSZaC.css} (86%) rename http/assets/assets/{javascript-jXNpK4W4.js => javascript-xUVXyrsT.js} (89%) rename http/assets/assets/{jsonMode-Gng5avSd.js => jsonMode-epy0QnuM.js} (99%) rename http/assets/assets/{liquid-dt6GtWuA.js => liquid-ck49x7Wg.js} (98%) rename http/assets/assets/{python-Aa-4P7rg.js => python-uFiJjNOw.js} (98%) rename http/assets/assets/{razor-umCs_5VB.js => razor-AIJAgph-.js} (99%) rename http/assets/assets/{tsMode-zwZvWeF7.js => tsMode-l16KXt7o.js} (99%) rename http/assets/assets/{typescript-NIp_JCqg.js => typescript-0NOWYmRg.js} (98%) rename http/assets/assets/{xml-rS1dC3BW.js => xml-knxkmXA7.js} (97%) rename http/assets/assets/{yaml-19AOUYsC.js => yaml-LlS1LddZ.js} (98%) diff --git a/README.md b/README.md index e71747c..9757db9 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@

-### Latest version: 0.15.0 (28 February 2024) - [Read announcement](https://logdy.dev/blog/post/logdy-new-version-announcement-v014) +### Latest version: 0.16.0 (6 March 2024) - [Read announcement](https://logdy.dev/blog/post/logdy-new-version-announcement-v016) Logdy is a lightweight, single-binary log viewer that works just like `grep`, `awk`, `sed`, or `jq`. Simply add it to your PATH—no installation, deployment, or compilation required. It runs entirely locally, ensuring security and privacy. [Read more](https://logdy.dev/docs/what-is-logdy). @@ -91,7 +91,7 @@ brew install logdy Navigate to [releases](https://github.com/logdyhq/logdy-core/releases) Github page and download the latest release for your architecture. ```bash -wget https://github.com/logdyhq/logdy-core/releases/download/v0.15.0/logdy_linux_amd64; +wget https://github.com/logdyhq/logdy-core/releases/download/v0.16.0/logdy_linux_amd64; mv logdy_linux_amd64 logdy; chmod +x logdy; ``` diff --git a/build_across b/build_across index 2d48c7d..ef20d59 100755 --- a/build_across +++ b/build_across @@ -1 +1 @@ -gox -ldflags "-X 'main.Version=0.15.0'" -output="bin/logdy_{{.OS}}_{{.Arch}}" -osarch="linux/amd64 linux/arm64 windows/386 windows/amd64 darwin/amd64 darwin/arm64" +gox -ldflags "-X 'main.Version=0.16.0'" -output="bin/logdy_{{.OS}}_{{.Arch}}" -osarch="linux/amd64 linux/arm64 windows/386 windows/amd64 darwin/amd64 darwin/arm64" diff --git a/http/assets/assets/cssMode-sOsldDC-.js b/http/assets/assets/cssMode-10LXxtzq.js similarity index 99% rename from http/assets/assets/cssMode-sOsldDC-.js rename to http/assets/assets/cssMode-10LXxtzq.js index 2088363..3e39f97 100644 --- a/http/assets/assets/cssMode-sOsldDC-.js +++ b/http/assets/assets/cssMode-10LXxtzq.js @@ -1,4 +1,4 @@ -var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-ybqrNB1L.js";/*!----------------------------------------------------------------------------- +var Le=Object.defineProperty;var je=(e,n,i)=>n in e?Le(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(je(e,typeof n!="symbol"?n+"":n,i),i);import{m as Ne}from"./index-9H9C1KdH.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/freemarker2-Psmk5woI.js b/http/assets/assets/freemarker2-KcD1jNXB.js similarity index 99% rename from http/assets/assets/freemarker2-Psmk5woI.js rename to http/assets/assets/freemarker2-KcD1jNXB.js index 7f7950c..7220451 100644 --- a/http/assets/assets/freemarker2-Psmk5woI.js +++ b/http/assets/assets/freemarker2-KcD1jNXB.js @@ -1,4 +1,4 @@ -import{m as F}from"./index-ybqrNB1L.js";/*!----------------------------------------------------------------------------- +import{m as F}from"./index-9H9C1KdH.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/handlebars-ZQMHe7Gk.js b/http/assets/assets/handlebars-KnAzOYuq.js similarity index 99% rename from http/assets/assets/handlebars-ZQMHe7Gk.js rename to http/assets/assets/handlebars-KnAzOYuq.js index 1f3e6a2..4e064d0 100644 --- a/http/assets/assets/handlebars-ZQMHe7Gk.js +++ b/http/assets/assets/handlebars-KnAzOYuq.js @@ -1,4 +1,4 @@ -import{m as i}from"./index-ybqrNB1L.js";/*!----------------------------------------------------------------------------- +import{m as i}from"./index-9H9C1KdH.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/html-on_8OiBm.js b/http/assets/assets/html-d5xbwq8Y.js similarity index 98% rename from http/assets/assets/html-on_8OiBm.js rename to http/assets/assets/html-d5xbwq8Y.js index 7711853..643c080 100644 --- a/http/assets/assets/html-on_8OiBm.js +++ b/http/assets/assets/html-d5xbwq8Y.js @@ -1,4 +1,4 @@ -import{m as d}from"./index-ybqrNB1L.js";/*!----------------------------------------------------------------------------- +import{m as d}from"./index-9H9C1KdH.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/htmlMode-dFoHfZ69.js b/http/assets/assets/htmlMode-izcVh4Rp.js similarity index 99% rename from http/assets/assets/htmlMode-dFoHfZ69.js rename to http/assets/assets/htmlMode-izcVh4Rp.js index a7a18b0..04755bc 100644 --- a/http/assets/assets/htmlMode-dFoHfZ69.js +++ b/http/assets/assets/htmlMode-izcVh4Rp.js @@ -1,4 +1,4 @@ -var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-ybqrNB1L.js";/*!----------------------------------------------------------------------------- +var $e=Object.defineProperty;var qe=(e,n,i)=>n in e?$e(e,n,{enumerable:!0,configurable:!0,writable:!0,value:i}):e[n]=i;var k=(e,n,i)=>(qe(e,typeof n!="symbol"?n+"":n,i),i);import{m as Qe}from"./index-9H9C1KdH.js";/*!----------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Version: 0.37.1(20a8d5a651d057aaed7875ad1c1f2ecf13c4e773) * Released under the MIT license diff --git a/http/assets/assets/index-ybqrNB1L.js b/http/assets/assets/index-9H9C1KdH.js similarity index 75% rename from http/assets/assets/index-ybqrNB1L.js rename to http/assets/assets/index-9H9C1KdH.js index 1b67d57..6b49e6f 100644 --- a/http/assets/assets/index-ybqrNB1L.js +++ b/http/assets/assets/index-9H9C1KdH.js @@ -1,24 +1,24 @@ -var xci=Object.defineProperty;var vci=(r,e,i)=>e in r?xci(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i;var Oc=(r,e,i)=>(vci(r,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=i(a);fetch(a.href,o)}})();/** +var yci=Object.defineProperty;var kci=(r,e,i)=>e in r?yci(r,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):r[e]=i;var pc=(r,e,i)=>(kci(r,typeof e!="symbol"?e+"":e,i),i);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))n(a);new MutationObserver(a=>{for(const o of a)if(o.type==="childList")for(const c of o.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&n(c)}).observe(document,{childList:!0,subtree:!0});function i(a){const o={};return a.integrity&&(o.integrity=a.integrity),a.referrerPolicy&&(o.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?o.credentials="include":a.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function n(a){if(a.ep)return;a.ep=!0;const o=i(a);fetch(a.href,o)}})();/** * @vue/shared v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function tGe(r,e){const i=new Set(r.split(","));return e?n=>i.has(n.toLowerCase()):n=>i.has(n)}const em={},qG=[],WC=()=>{},Cci=()=>!1,i6e=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),iGe=r=>r.startsWith("onUpdate:"),z_=Object.assign,nGe=(r,e)=>{const i=r.indexOf(e);i>-1&&r.splice(i,1)},bci=Object.prototype.hasOwnProperty,a1=(r,e)=>bci.call(r,e),H0=Array.isArray,ZG=r=>sae(r)==="[object Map]",n6e=r=>sae(r)==="[object Set]",fpt=r=>sae(r)==="[object Date]",rc=r=>typeof r=="function",og=r=>typeof r=="string",zL=r=>typeof r=="symbol",Lf=r=>r!==null&&typeof r=="object",Pxt=r=>(Lf(r)||rc(r))&&rc(r.then)&&rc(r.catch),Mxt=Object.prototype.toString,sae=r=>Mxt.call(r),yci=r=>sae(r).slice(8,-1),zxt=r=>sae(r)==="[object Object]",uGe=r=>og(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,G3e=tGe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),u6e=r=>{const e=Object.create(null);return i=>e[i]||(e[i]=r(i))},kci=/-(\w)/g,FA=u6e(r=>r.replace(kci,(e,i)=>i?i.toUpperCase():"")),Fci=/\B([A-Z])/g,HR=u6e(r=>r.replace(Fci,"-$1").toLowerCase()),r6e=u6e(r=>r.charAt(0).toUpperCase()+r.slice(1)),iIe=u6e(r=>r?`on${r6e(r)}`:""),IL=(r,e)=>!Object.is(r,e),J3e=(r,e)=>{for(let i=0;i{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:i})},MOe=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let mpt;const Ixt=()=>mpt||(mpt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M3(r){if(H0(r)){const e={};for(let i=0;i{if(i){const n=i.split(Sci);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function Zh(r){let e="";if(og(r))e=r;else if(H0(r))for(let i=0;iAJ(i,e))}const Qc=r=>og(r)?r:r==null?"":H0(r)||Lf(r)&&(r.toString===Mxt||!rc(r.toString))?JSON.stringify(r,jxt,2):String(r),jxt=(r,e)=>e&&e.__v_isRef?jxt(r,e.value):ZG(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,a],o)=>(i[nIe(n,o)+" =>"]=a,i),{})}:n6e(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>nIe(i))}:zL(e)?nIe(e):Lf(e)&&!H0(e)&&!zxt(e)?String(e):e,nIe=(r,e="")=>{var i;return zL(r)?`Symbol(${(i=r.description)!=null?i:e})`:r};/** +**/function oGe(r,e){const i=new Set(r.split(","));return e?n=>i.has(n.toLowerCase()):n=>i.has(n)}const em={},ZG=[],GC=()=>{},Fci=()=>!1,a6e=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&(r.charCodeAt(2)>122||r.charCodeAt(2)<97),sGe=r=>r.startsWith("onUpdate:"),I_=Object.assign,lGe=(r,e)=>{const i=r.indexOf(e);i>-1&&r.splice(i,1)},Aci=Object.prototype.hasOwnProperty,o1=(r,e)=>Aci.call(r,e),W0=Array.isArray,YG=r=>dae(r)==="[object Map]",o6e=r=>dae(r)==="[object Set]",_pt=r=>dae(r)==="[object Date]",ac=r=>typeof r=="function",og=r=>typeof r=="string",IL=r=>typeof r=="symbol",Lf=r=>r!==null&&typeof r=="object",Oxt=r=>(Lf(r)||ac(r))&&ac(r.then)&&ac(r.catch),jxt=Object.prototype.toString,dae=r=>jxt.call(r),Sci=r=>dae(r).slice(8,-1),Vxt=r=>dae(r)==="[object Object]",cGe=r=>og(r)&&r!=="NaN"&&r[0]!=="-"&&""+parseInt(r,10)===r,U3e=oGe(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),s6e=r=>{const e=Object.create(null);return i=>e[i]||(e[i]=r(i))},Bci=/-(\w)/g,FA=s6e(r=>r.replace(Bci,(e,i)=>i?i.toUpperCase():"")),wci=/\B([A-Z])/g,KR=s6e(r=>r.replace(wci,"-$1").toLowerCase()),l6e=s6e(r=>r.charAt(0).toUpperCase()+r.slice(1)),sIe=s6e(r=>r?`on${l6e(r)}`:""),RL=(r,e)=>!Object.is(r,e),q3e=(r,e)=>{for(let i=0;i{Object.defineProperty(r,e,{configurable:!0,enumerable:!1,value:i})},VOe=r=>{const e=parseFloat(r);return isNaN(e)?r:e};let Dpt;const Hxt=()=>Dpt||(Dpt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ig(r){if(W0(r)){const e={};for(let i=0;i{if(i){const n=i.split(Lci);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e}function sh(r){let e="";if(og(r))e=r;else if(W0(r))for(let i=0;iSJ(i,e))}const Yl=r=>og(r)?r:r==null?"":W0(r)||Lf(r)&&(r.toString===jxt||!ac(r.toString))?JSON.stringify(r,Gxt,2):String(r),Gxt=(r,e)=>e&&e.__v_isRef?Gxt(r,e.value):YG(e)?{[`Map(${e.size})`]:[...e.entries()].reduce((i,[n,a],o)=>(i[lIe(n,o)+" =>"]=a,i),{})}:o6e(e)?{[`Set(${e.size})`]:[...e.values()].map(i=>lIe(i))}:IL(e)?lIe(e):Lf(e)&&!W0(e)&&!Vxt(e)?String(e):e,lIe=(r,e="")=>{var i;return IL(r)?`Symbol(${(i=r.description)!=null?i:e})`:r};/** * @vue/reactivity v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let I6;class Vxt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=I6,!e&&I6&&(this.index=(I6.scopes||(I6.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=I6;try{return I6=this,e()}finally{I6=i}}}on(){I6=this}off(){I6=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),WR()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=gL,i=KI;try{return gL=!0,KI=this,this._runnings++,ppt(this),this.fn()}finally{gpt(this),this._runnings--,KI=i,gL=e}}stop(){var e;this.active&&(ppt(this),gpt(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Ici(r){return r.value}function ppt(r){r._trackId++,r._depsLength=0}function gpt(r){if(r.deps&&r.deps.length>r._depsLength){for(let e=r._depsLength;e{const i=new Map;return i.cleanup=r,i.computed=e,i},VDe=new WeakMap,WI=Symbol(""),ROe=Symbol("");function mx(r,e,i){if(gL&&KI){let n=VDe.get(r);n||VDe.set(r,n=new Map);let a=n.get(i);a||n.set(i,a=Uxt(()=>n.delete(i))),Jxt(KI,a)}}function GS(r,e,i,n,a,o){const c=VDe.get(r);if(!c)return;let h=[];if(e==="clear")h=[...c.values()];else if(i==="length"&&H0(r)){const g=Number(n);c.forEach((_,x)=>{(x==="length"||!zL(x)&&x>=g)&&h.push(_)})}else switch(i!==void 0&&h.push(c.get(i)),e){case"add":H0(r)?uGe(i)&&h.push(c.get("length")):(h.push(c.get(WI)),ZG(r)&&h.push(c.get(ROe)));break;case"delete":H0(r)||(h.push(c.get(WI)),ZG(r)&&h.push(c.get(ROe)));break;case"set":ZG(r)&&h.push(c.get(WI));break}aGe();for(const g of h)g&&$xt(g,2);oGe()}function Rci(r,e){var i;return(i=VDe.get(r))==null?void 0:i.get(e)}const Oci=tGe("__proto__,__v_isRef,__isVue"),qxt=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(zL)),Ept=jci();function jci(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...i){const n=s1(this);for(let o=0,c=this.length;o{r[e]=function(...i){KR(),aGe();const n=s1(this)[e].apply(this,i);return oGe(),WR(),n}}),r}function Vci(r){const e=s1(this);return mx(e,"has",r),e.hasOwnProperty(r)}class Zxt{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const a=this._isReadonly,o=this._shallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(a?o?edi:e6t:o?Xxt:Qxt).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=H0(e);if(!a){if(c&&a1(Ept,i))return Reflect.get(Ept,i,n);if(i==="hasOwnProperty")return Vci}const h=Reflect.get(e,i,n);return(zL(i)?qxt.has(i):Oci(i))||(a||mx(e,"get",i),o)?h:kp(h)?c&&uGe(i)?h:h.value:Lf(h)?a?t6t(h):lae(h):h}}class Yxt extends Zxt{constructor(e=!1){super(!1,e)}set(e,i,n,a){let o=e[i];if(!this._shallow){const g=SJ(o);if(!HDe(n)&&!SJ(n)&&(o=s1(o),n=s1(n)),!H0(e)&&kp(o)&&!kp(n))return g?!1:(o.value=n,!0)}const c=H0(e)&&uGe(i)?Number(i)r,a6e=r=>Reflect.getPrototypeOf(r);function p_e(r,e,i=!1,n=!1){r=r.__v_raw;const a=s1(r),o=s1(e);i||(IL(e,o)&&mx(a,"get",e),mx(a,"get",o));const{has:c}=a6e(a),h=n?sGe:i?dGe:bue;if(c.call(a,e))return h(r.get(e));if(c.call(a,o))return h(r.get(o));r!==a&&r.get(e)}function g_e(r,e=!1){const i=this.__v_raw,n=s1(i),a=s1(r);return e||(IL(r,a)&&mx(n,"has",r),mx(n,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)}function E_e(r,e=!1){return r=r.__v_raw,!e&&mx(s1(r),"iterate",WI),Reflect.get(r,"size",r)}function _pt(r){r=s1(r);const e=s1(this);return a6e(e).has.call(e,r)||(e.add(r),GS(e,"add",r,r)),this}function Dpt(r,e){e=s1(e);const i=s1(this),{has:n,get:a}=a6e(i);let o=n.call(i,r);o||(r=s1(r),o=n.call(i,r));const c=a.call(i,r);return i.set(r,e),o?IL(e,c)&&GS(i,"set",r,e):GS(i,"add",r,e),this}function xpt(r){const e=s1(this),{has:i,get:n}=a6e(e);let a=i.call(e,r);a||(r=s1(r),a=i.call(e,r)),n&&n.call(e,r);const o=e.delete(r);return a&&GS(e,"delete",r,void 0),o}function vpt(){const r=s1(this),e=r.size!==0,i=r.clear();return e&&GS(r,"clear",void 0,void 0),i}function __e(r,e){return function(n,a){const o=this,c=o.__v_raw,h=s1(c),g=e?sGe:r?dGe:bue;return!r&&mx(h,"iterate",WI),c.forEach((_,x)=>n.call(a,g(_),g(x),o))}}function D_e(r,e,i){return function(...n){const a=this.__v_raw,o=s1(a),c=ZG(o),h=r==="entries"||r===Symbol.iterator&&c,g=r==="keys"&&c,_=a[r](...n),x=i?sGe:e?dGe:bue;return!e&&mx(o,"iterate",g?ROe:WI),{next(){const{value:y,done:S}=_.next();return S?{value:y,done:S}:{value:h?[x(y[0]),x(y[1])]:x(y),done:S}},[Symbol.iterator](){return this}}}}function vT(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function Jci(){const r={get(o){return p_e(this,o)},get size(){return E_e(this)},has:g_e,add:_pt,set:Dpt,delete:xpt,clear:vpt,forEach:__e(!1,!1)},e={get(o){return p_e(this,o,!1,!0)},get size(){return E_e(this)},has:g_e,add:_pt,set:Dpt,delete:xpt,clear:vpt,forEach:__e(!1,!0)},i={get(o){return p_e(this,o,!0)},get size(){return E_e(this,!0)},has(o){return g_e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:__e(!0,!1)},n={get(o){return p_e(this,o,!0,!0)},get size(){return E_e(this,!0)},has(o){return g_e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:__e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=D_e(o,!1,!1),i[o]=D_e(o,!0,!1),e[o]=D_e(o,!1,!0),n[o]=D_e(o,!0,!0)}),[r,i,e,n]}const[$ci,Uci,qci,Zci]=Jci();function lGe(r,e){const i=e?r?Zci:qci:r?Uci:$ci;return(n,a,o)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(a1(i,a)&&a in n?i:n,a,o)}const Yci={get:lGe(!1,!1)},Qci={get:lGe(!1,!0)},Xci={get:lGe(!0,!1)},Qxt=new WeakMap,Xxt=new WeakMap,e6t=new WeakMap,edi=new WeakMap;function tdi(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function idi(r){return r.__v_skip||!Object.isExtensible(r)?0:tdi(yci(r))}function lae(r){return SJ(r)?r:cGe(r,!1,Kci,Yci,Qxt)}function ndi(r){return cGe(r,!1,Gci,Qci,Xxt)}function t6t(r){return cGe(r,!0,Wci,Xci,e6t)}function cGe(r,e,i,n,a){if(!Lf(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const o=a.get(r);if(o)return o;const c=idi(r);if(c===0)return r;const h=new Proxy(r,c===2?n:i);return a.set(r,h),h}function EL(r){return SJ(r)?EL(r.__v_raw):!!(r&&r.__v_isReactive)}function SJ(r){return!!(r&&r.__v_isReadonly)}function HDe(r){return!!(r&&r.__v_isShallow)}function i6t(r){return EL(r)||SJ(r)}function s1(r){const e=r&&r.__v_raw;return e?s1(e):r}function o6e(r){return jDe(r,"__v_skip",!0),r}const bue=r=>Lf(r)?lae(r):r,dGe=r=>Lf(r)?t6t(r):r;class n6t{constructor(e,i,n,a){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new rGe(()=>e(this._value),()=>OOe(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=s1(this);return(!e._cacheable||e.effect.dirty)&&IL(e._value,e._value=e.effect.run())&&OOe(e,2),u6t(e),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function udi(r,e,i=!1){let n,a;const o=rc(r);return o?(n=r,a=WC):(n=r.get,a=r.set),new n6t(n,a,o||!a,i)}function u6t(r){gL&&KI&&(r=s1(r),Jxt(KI,r.dep||(r.dep=Uxt(()=>r.dep=void 0,r instanceof n6t?r:void 0))))}function OOe(r,e=2,i){r=s1(r);const n=r.dep;n&&$xt(n,e)}function kp(r){return!!(r&&r.__v_isRef===!0)}function ds(r){return rdi(r,!1)}function rdi(r,e){return kp(r)?r:new adi(r,e)}class adi{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:s1(e),this._value=i?e:bue(e)}get value(){return u6t(this),this._value}set value(e){const i=this.__v_isShallow||HDe(e)||SJ(e);e=i?e:s1(e),IL(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:bue(e),OOe(this,2))}}function wu(r){return kp(r)?r.value:r}const odi={get:(r,e,i)=>wu(Reflect.get(r,e,i)),set:(r,e,i,n)=>{const a=r[e];return kp(a)&&!kp(i)?(a.value=i,!0):Reflect.set(r,e,i,n)}};function r6t(r){return EL(r)?r:new Proxy(r,odi)}function sdi(r){const e=H0(r)?new Array(r.length):{};for(const i in r)e[i]=cdi(r,i);return e}class ldi{constructor(e,i,n){this._object=e,this._key=i,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Rci(s1(this._object),this._key)}}function cdi(r,e,i){const n=r[e];return kp(n)?n:new ldi(r,e,i)}/** +**/let I6;class Jxt{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=I6,!e&&I6&&(this.index=(I6.scopes||(I6.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const i=I6;try{return I6=this,e()}finally{I6=i}}}on(){I6=this}off(){I6=this.parent}stop(e){if(this._active){let i,n;for(i=0,n=this.effects.length;i=2))break}this._dirtyLevel<2&&(this._dirtyLevel=0),GR()}return this._dirtyLevel>=2}set dirty(e){this._dirtyLevel=e?2:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=EL,i=WI;try{return EL=!0,WI=this,this._runnings++,xpt(this),this.fn()}finally{vpt(this),this._runnings--,WI=i,EL=e}}stop(){var e;this.active&&(xpt(this),vpt(this),(e=this.onStop)==null||e.call(this),this.active=!1)}}function Vci(r){return r.value}function xpt(r){r._trackId++,r._depsLength=0}function vpt(r){if(r.deps&&r.deps.length>r._depsLength){for(let e=r._depsLength;e{const i=new Map;return i.cleanup=r,i.computed=e,i},GDe=new WeakMap,GI=Symbol(""),WOe=Symbol("");function mx(r,e,i){if(EL&&WI){let n=GDe.get(r);n||GDe.set(r,n=new Map);let a=n.get(i);a||n.set(i,a=Xxt(()=>n.delete(i))),Yxt(WI,a)}}function GS(r,e,i,n,a,o){const c=GDe.get(r);if(!c)return;let h=[];if(e==="clear")h=[...c.values()];else if(i==="length"&&W0(r)){const g=Number(n);c.forEach((_,x)=>{(x==="length"||!IL(x)&&x>=g)&&h.push(_)})}else switch(i!==void 0&&h.push(c.get(i)),e){case"add":W0(r)?cGe(i)&&h.push(c.get("length")):(h.push(c.get(GI)),YG(r)&&h.push(c.get(WOe)));break;case"delete":W0(r)||(h.push(c.get(GI)),YG(r)&&h.push(c.get(WOe)));break;case"set":YG(r)&&h.push(c.get(GI));break}hGe();for(const g of h)g&&Qxt(g,2);fGe()}function Hci(r,e){var i;return(i=GDe.get(r))==null?void 0:i.get(e)}const Kci=oGe("__proto__,__v_isRef,__isVue"),e6t=new Set(Object.getOwnPropertyNames(Symbol).filter(r=>r!=="arguments"&&r!=="caller").map(r=>Symbol[r]).filter(IL)),Cpt=Wci();function Wci(){const r={};return["includes","indexOf","lastIndexOf"].forEach(e=>{r[e]=function(...i){const n=l1(this);for(let o=0,c=this.length;o{r[e]=function(...i){WR(),hGe();const n=l1(this)[e].apply(this,i);return fGe(),GR(),n}}),r}function Gci(r){const e=l1(this);return mx(e,"has",r),e.hasOwnProperty(r)}class t6t{constructor(e=!1,i=!1){this._isReadonly=e,this._shallow=i}get(e,i,n){const a=this._isReadonly,o=this._shallow;if(i==="__v_isReactive")return!a;if(i==="__v_isReadonly")return a;if(i==="__v_isShallow")return o;if(i==="__v_raw")return n===(a?o?udi:r6t:o?u6t:n6t).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=W0(e);if(!a){if(c&&o1(Cpt,i))return Reflect.get(Cpt,i,n);if(i==="hasOwnProperty")return Gci}const h=Reflect.get(e,i,n);return(IL(i)?e6t.has(i):Kci(i))||(a||mx(e,"get",i),o)?h:Ap(h)?c&&cGe(i)?h:h.value:Lf(h)?a?a6t(h):x$(h):h}}class i6t extends t6t{constructor(e=!1){super(!1,e)}set(e,i,n,a){let o=e[i];if(!this._shallow){const g=BJ(o);if(!JDe(n)&&!BJ(n)&&(o=l1(o),n=l1(n)),!W0(e)&&Ap(o)&&!Ap(n))return g?!1:(o.value=n,!0)}const c=W0(e)&&cGe(i)?Number(i)r,c6e=r=>Reflect.getPrototypeOf(r);function E_e(r,e,i=!1,n=!1){r=r.__v_raw;const a=l1(r),o=l1(e);i||(RL(e,o)&&mx(a,"get",e),mx(a,"get",o));const{has:c}=c6e(a),h=n?mGe:i?EGe:Fue;if(c.call(a,e))return h(r.get(e));if(c.call(a,o))return h(r.get(o));r!==a&&r.get(e)}function __e(r,e=!1){const i=this.__v_raw,n=l1(i),a=l1(r);return e||(RL(r,a)&&mx(n,"has",r),mx(n,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)}function D_e(r,e=!1){return r=r.__v_raw,!e&&mx(l1(r),"iterate",GI),Reflect.get(r,"size",r)}function bpt(r){r=l1(r);const e=l1(this);return c6e(e).has.call(e,r)||(e.add(r),GS(e,"add",r,r)),this}function ypt(r,e){e=l1(e);const i=l1(this),{has:n,get:a}=c6e(i);let o=n.call(i,r);o||(r=l1(r),o=n.call(i,r));const c=a.call(i,r);return i.set(r,e),o?RL(e,c)&&GS(i,"set",r,e):GS(i,"add",r,e),this}function kpt(r){const e=l1(this),{has:i,get:n}=c6e(e);let a=i.call(e,r);a||(r=l1(r),a=i.call(e,r)),n&&n.call(e,r);const o=e.delete(r);return a&&GS(e,"delete",r,void 0),o}function Fpt(){const r=l1(this),e=r.size!==0,i=r.clear();return e&&GS(r,"clear",void 0,void 0),i}function x_e(r,e){return function(n,a){const o=this,c=o.__v_raw,h=l1(c),g=e?mGe:r?EGe:Fue;return!r&&mx(h,"iterate",GI),c.forEach((_,x)=>n.call(a,g(_),g(x),o))}}function v_e(r,e,i){return function(...n){const a=this.__v_raw,o=l1(a),c=YG(o),h=r==="entries"||r===Symbol.iterator&&c,g=r==="keys"&&c,_=a[r](...n),x=i?mGe:e?EGe:Fue;return!e&&mx(o,"iterate",g?WOe:GI),{next(){const{value:y,done:S}=_.next();return S?{value:y,done:S}:{value:h?[x(y[0]),x(y[1])]:x(y),done:S}},[Symbol.iterator](){return this}}}}function vT(r){return function(...e){return r==="delete"?!1:r==="clear"?void 0:this}}function Zci(){const r={get(o){return E_e(this,o)},get size(){return D_e(this)},has:__e,add:bpt,set:ypt,delete:kpt,clear:Fpt,forEach:x_e(!1,!1)},e={get(o){return E_e(this,o,!1,!0)},get size(){return D_e(this)},has:__e,add:bpt,set:ypt,delete:kpt,clear:Fpt,forEach:x_e(!1,!0)},i={get(o){return E_e(this,o,!0)},get size(){return D_e(this,!0)},has(o){return __e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:x_e(!0,!1)},n={get(o){return E_e(this,o,!0,!0)},get size(){return D_e(this,!0)},has(o){return __e.call(this,o,!0)},add:vT("add"),set:vT("set"),delete:vT("delete"),clear:vT("clear"),forEach:x_e(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{r[o]=v_e(o,!1,!1),i[o]=v_e(o,!0,!1),e[o]=v_e(o,!1,!0),n[o]=v_e(o,!0,!0)}),[r,i,e,n]}const[Yci,Qci,Xci,edi]=Zci();function pGe(r,e){const i=e?r?edi:Xci:r?Qci:Yci;return(n,a,o)=>a==="__v_isReactive"?!r:a==="__v_isReadonly"?r:a==="__v_raw"?n:Reflect.get(o1(i,a)&&a in n?i:n,a,o)}const tdi={get:pGe(!1,!1)},idi={get:pGe(!1,!0)},ndi={get:pGe(!0,!1)},n6t=new WeakMap,u6t=new WeakMap,r6t=new WeakMap,udi=new WeakMap;function rdi(r){switch(r){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function adi(r){return r.__v_skip||!Object.isExtensible(r)?0:rdi(Sci(r))}function x$(r){return BJ(r)?r:gGe(r,!1,$ci,tdi,n6t)}function odi(r){return gGe(r,!1,qci,idi,u6t)}function a6t(r){return gGe(r,!0,Uci,ndi,r6t)}function gGe(r,e,i,n,a){if(!Lf(r)||r.__v_raw&&!(e&&r.__v_isReactive))return r;const o=a.get(r);if(o)return o;const c=adi(r);if(c===0)return r;const h=new Proxy(r,c===2?n:i);return a.set(r,h),h}function _L(r){return BJ(r)?_L(r.__v_raw):!!(r&&r.__v_isReactive)}function BJ(r){return!!(r&&r.__v_isReadonly)}function JDe(r){return!!(r&&r.__v_isShallow)}function o6t(r){return _L(r)||BJ(r)}function l1(r){const e=r&&r.__v_raw;return e?l1(e):r}function d6e(r){return WDe(r,"__v_skip",!0),r}const Fue=r=>Lf(r)?x$(r):r,EGe=r=>Lf(r)?a6t(r):r;class s6t{constructor(e,i,n,a){this._setter=i,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new dGe(()=>e(this._value),()=>GOe(this,1)),this.effect.computed=this,this.effect.active=this._cacheable=!a,this.__v_isReadonly=n}get value(){const e=l1(this);return(!e._cacheable||e.effect.dirty)&&RL(e._value,e._value=e.effect.run())&&GOe(e,2),l6t(e),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}}function sdi(r,e,i=!1){let n,a;const o=ac(r);return o?(n=r,a=GC):(n=r.get,a=r.set),new s6t(n,a,o||!a,i)}function l6t(r){EL&&WI&&(r=l1(r),Yxt(WI,r.dep||(r.dep=Xxt(()=>r.dep=void 0,r instanceof s6t?r:void 0))))}function GOe(r,e=2,i){r=l1(r);const n=r.dep;n&&Qxt(n,e)}function Ap(r){return!!(r&&r.__v_isRef===!0)}function Io(r){return ldi(r,!1)}function ldi(r,e){return Ap(r)?r:new cdi(r,e)}class cdi{constructor(e,i){this.__v_isShallow=i,this.dep=void 0,this.__v_isRef=!0,this._rawValue=i?e:l1(e),this._value=i?e:Fue(e)}get value(){return l6t(this),this._value}set value(e){const i=this.__v_isShallow||JDe(e)||BJ(e);e=i?e:l1(e),RL(e,this._rawValue)&&(this._rawValue=e,this._value=i?e:Fue(e),GOe(this,2))}}function Zn(r){return Ap(r)?r.value:r}const ddi={get:(r,e,i)=>Zn(Reflect.get(r,e,i)),set:(r,e,i,n)=>{const a=r[e];return Ap(a)&&!Ap(i)?(a.value=i,!0):Reflect.set(r,e,i,n)}};function c6t(r){return _L(r)?r:new Proxy(r,ddi)}function hdi(r){const e=W0(r)?new Array(r.length):{};for(const i in r)e[i]=mdi(r,i);return e}class fdi{constructor(e,i,n){this._object=e,this._key=i,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return e===void 0?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return Hci(l1(this._object),this._key)}}function mdi(r,e,i){const n=r[e];return Ap(n)?n:new fdi(r,e,i)}/** * @vue/runtime-core v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function _L(r,e,i,n){let a;try{a=n?r(...n):r()}catch(o){s6e(o,e,i)}return a}function Ey(r,e,i,n){if(rc(r)){const o=_L(r,e,i,n);return o&&Pxt(o)&&o.catch(c=>{s6e(c,e,i)}),o}const a=[];for(let o=0;o>>1,a=I3[n],o=kue(a);oXF&&I3.splice(e,1)}function mdi(r){H0(r)?YG.push(...r):(!HT||!HT.includes(r,r.allowRecurse?_I+1:_I))&&YG.push(r),o6t()}function Cpt(r,e,i=yue?XF+1:0){for(;ikue(i)-kue(n));if(YG.length=0,HT){HT.push(...e);return}for(HT=e,_I=0;_Ir.id==null?1/0:r.id,pdi=(r,e)=>{const i=kue(r)-kue(e);if(i===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return i};function l6t(r){jOe=!1,yue=!0,I3.sort(pdi);try{for(XF=0;XFog(L)?L.trim():L)),y&&(a=i.map(MOe))}let h,g=n[h=iIe(e)]||n[h=iIe(FA(e))];!g&&o&&(g=n[h=iIe(HR(e))]),g&&Ey(g,r,6,a);const _=n[h+"Once"];if(_){if(!r.emitted)r.emitted={};else if(r.emitted[h])return;r.emitted[h]=!0,Ey(_,r,6,a)}}function c6t(r,e,i=!1){const n=e.emitsCache,a=n.get(r);if(a!==void 0)return a;const o=r.emits;let c={},h=!1;if(!rc(r)){const g=_=>{const x=c6t(_,e,!0);x&&(h=!0,z_(c,x))};!i&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}return!o&&!h?(Lf(r)&&n.set(r,null),null):(H0(o)?o.forEach(g=>c[g]=null):z_(c,o),Lf(r)&&n.set(r,c),c)}function l6e(r,e){return!r||!i6e(e)?!1:(e=e.slice(2).replace(/Once$/,""),a1(r,e[0].toLowerCase()+e.slice(1))||a1(r,HR(e))||a1(r,e))}let Hg=null,c6e=null;function KDe(r){const e=Hg;return Hg=r,c6e=r&&r.type.__scopeId||null,e}function D$(r){c6e=r}function x$(){c6e=null}const Edi=r=>RL;function RL(r,e=Hg,i){if(!e||r._n)return r;const n=(...a)=>{n._d&&Npt(-1);const o=KDe(e);let c;try{c=r(...a)}finally{KDe(o),n._d&&Npt(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function uIe(r){const{type:e,vnode:i,proxy:n,withProxy:a,props:o,propsOptions:[c],slots:h,attrs:g,emit:_,render:x,renderCache:y,data:S,setupState:L,ctx:O,inheritAttrs:G}=r;let ie,ue;const re=KDe(r);try{if(i.shapeFlag&4){const ye=a||n,Le=ye;ie=UF(x.call(Le,ye,y,o,L,S,O)),ue=g}else{const ye=e;ie=UF(ye.length>1?ye(o,{attrs:g,slots:h,emit:_}):ye(o,null)),ue=e.props?g:_di(g)}}catch(ye){zne.length=0,s6e(ye,r,1),ie=N0(OL)}let _e=ie;if(ue&&G!==!1){const ye=Object.keys(ue),{shapeFlag:Le}=_e;ye.length&&Le&7&&(c&&ye.some(iGe)&&(ue=Ddi(ue,c)),_e=BJ(_e,ue))}return i.dirs&&(_e=BJ(_e),_e.dirs=_e.dirs?_e.dirs.concat(i.dirs):i.dirs),i.transition&&(_e.transition=i.transition),ie=_e,KDe(re),ie}const _di=r=>{let e;for(const i in r)(i==="class"||i==="style"||i6e(i))&&((e||(e={}))[i]=r[i]);return e},Ddi=(r,e)=>{const i={};for(const n in r)(!iGe(n)||!(n.slice(9)in e))&&(i[n]=r[n]);return i};function xdi(r,e,i){const{props:n,children:a,component:o}=r,{props:c,children:h,patchFlag:g}=e,_=o.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&g>=0){if(g&1024)return!0;if(g&16)return n?bpt(n,c,_):!!c;if(g&8){const x=e.dynamicProps;for(let y=0;yr.__isSuspense;function kdi(r,e){e&&e.pendingBranch?H0(r)?e.effects.push(...r):e.effects.push(r):mdi(r)}const Fdi=Symbol.for("v-scx"),Adi=()=>Mne(Fdi);function Sdi(r,e){return pGe(r,null,e)}const x_e={};function _A(r,e,i){return pGe(r,e,i)}function pGe(r,e,{immediate:i,deep:n,flush:a,once:o,onTrack:c,onTrigger:h}=em){if(e&&o){const lt=e;e=(...Ue)=>{lt(...Ue),Le()}}const g=L_,_=lt=>n===!0?lt:TI(lt,n===!1?1:void 0);let x,y=!1,S=!1;if(kp(r)?(x=()=>r.value,y=HDe(r)):EL(r)?(x=()=>_(r),y=!0):H0(r)?(S=!0,y=r.some(lt=>EL(lt)||HDe(lt)),x=()=>r.map(lt=>{if(kp(lt))return lt.value;if(EL(lt))return _(lt);if(rc(lt))return _L(lt,g,2)})):rc(r)?e?x=()=>_L(r,g,2):x=()=>(L&&L(),Ey(r,g,3,[O])):x=WC,e&&n){const lt=x;x=()=>TI(lt())}let L,O=lt=>{L=_e.onStop=()=>{_L(lt,g,4),L=_e.onStop=void 0}},G;if(p6e)if(O=WC,e?i&&Ey(e,g,3,[x(),S?[]:void 0,O]):x(),a==="sync"){const lt=Adi();G=lt.__watcherHandles||(lt.__watcherHandles=[])}else return WC;let ie=S?new Array(r.length).fill(x_e):x_e;const ue=()=>{if(!(!_e.active||!_e.dirty))if(e){const lt=_e.run();(n||y||(S?lt.some((Ue,Ze)=>IL(Ue,ie[Ze])):IL(lt,ie)))&&(L&&L(),Ey(e,g,3,[lt,ie===x_e?void 0:S&&ie[0]===x_e?[]:ie,O]),ie=lt)}else _e.run()};ue.allowRecurse=!!e;let re;a==="sync"?re=ue:a==="post"?re=()=>Z5(ue,g&&g.suspense):(ue.pre=!0,g&&(ue.id=g.uid),re=()=>mGe(ue));const _e=new rGe(x,WC,re),ye=Kxt(),Le=()=>{_e.stop(),ye&&nGe(ye.effects,_e)};return e?i?ue():ie=_e.run():a==="post"?Z5(_e.run.bind(_e),g&&g.suspense):_e.run(),G&&G.push(Le),Le}function Bdi(r,e,i){const n=this.proxy,a=og(r)?r.includes(".")?f6t(n,r):()=>n[r]:r.bind(n,n);let o;rc(e)?o=e:(o=e.handler,i=e);const c=cae(this),h=pGe(a,o.bind(n),i);return c(),h}function f6t(r,e){const i=e.split(".");return()=>{let n=r;for(let a=0;a0){if(i>=e)return r;i++}if(n=n||new Set,n.has(r))return r;if(n.add(r),kp(r))TI(r.value,e,i,n);else if(H0(r))for(let a=0;a{TI(a,e,i,n)});else if(zxt(r))for(const a in r)TI(r[a],e,i,n);return r}function Nd(r,e){if(Hg===null)return r;const i=g6e(Hg)||Hg.proxy,n=r.dirs||(r.dirs=[]);for(let a=0;a!!r.type.__asyncLoader,m6t=r=>r.type.__isKeepAlive;function wdi(r,e){p6t(r,"a",e)}function Tdi(r,e){p6t(r,"da",e)}function p6t(r,e,i=L_){const n=r.__wdc||(r.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(h6e(e,n,i),i){let a=i.parent;for(;a&&a.parent;)m6t(a.parent.vnode)&&Ldi(n,e,i,a),a=a.parent}}function Ldi(r,e,i,n){const a=h6e(e,r,n,!0);gGe(()=>{nGe(n[e],a)},i)}function h6e(r,e,i=L_,n=!1){if(i){const a=i[r]||(i[r]=[]),o=e.__weh||(e.__weh=(...c)=>{if(i.isUnmounted)return;KR();const h=cae(i),g=Ey(e,i,r,c);return h(),WR(),g});return n?a.unshift(o):a.push(o),o}}const c8=r=>(e,i=L_)=>(!p6e||r==="sp")&&h6e(r,(...n)=>e(...n),i),Ndi=c8("bm"),GR=c8("m"),Pdi=c8("bu"),Mdi=c8("u"),zdi=c8("bum"),gGe=c8("um"),Idi=c8("sp"),Rdi=c8("rtg"),Odi=c8("rtc");function jdi(r,e=L_){h6e("ec",r,e)}function _y(r,e,i,n){let a;const o=i&&i[n];if(H0(r)||og(r)){a=new Array(r.length);for(let c=0,h=r.length;ce(c,h,void 0,o&&o[h]));else{const c=Object.keys(r);a=new Array(c.length);for(let h=0,g=c.length;hGDe(e)?!(e.type===OL||e.type===od&&!g6t(e.children)):!0)?r:null}const VOe=r=>r?B6t(r)?g6e(r)||r.proxy:VOe(r.parent):null,Pne=z_(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>VOe(r.parent),$root:r=>VOe(r.root),$emit:r=>r.emit,$options:r=>EGe(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,mGe(r.update)}),$nextTick:r=>r.n||(r.n=fGe.bind(r.proxy)),$watch:r=>Bdi.bind(r)}),rIe=(r,e)=>r!==em&&!r.__isScriptSetup&&a1(r,e),Vdi={get({_:r},e){const{ctx:i,setupState:n,data:a,props:o,accessCache:c,type:h,appContext:g}=r;let _;if(e[0]!=="$"){const L=c[e];if(L!==void 0)switch(L){case 1:return n[e];case 2:return a[e];case 4:return i[e];case 3:return o[e]}else{if(rIe(n,e))return c[e]=1,n[e];if(a!==em&&a1(a,e))return c[e]=2,a[e];if((_=r.propsOptions[0])&&a1(_,e))return c[e]=3,o[e];if(i!==em&&a1(i,e))return c[e]=4,i[e];HOe&&(c[e]=0)}}const x=Pne[e];let y,S;if(x)return e==="$attrs"&&mx(r,"get",e),x(r);if((y=h.__cssModules)&&(y=y[e]))return y;if(i!==em&&a1(i,e))return c[e]=4,i[e];if(S=g.config.globalProperties,a1(S,e))return S[e]},set({_:r},e,i){const{data:n,setupState:a,ctx:o}=r;return rIe(a,e)?(a[e]=i,!0):n!==em&&a1(n,e)?(n[e]=i,!0):a1(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(o[e]=i,!0)},has({_:{data:r,setupState:e,accessCache:i,ctx:n,appContext:a,propsOptions:o}},c){let h;return!!i[c]||r!==em&&a1(r,c)||rIe(e,c)||(h=o[0])&&a1(h,c)||a1(n,c)||a1(Pne,c)||a1(a.config.globalProperties,c)},defineProperty(r,e,i){return i.get!=null?r._.accessCache[e]=0:a1(i,"value")&&this.set(r,e,i.value,null),Reflect.defineProperty(r,e,i)}};function kpt(r){return H0(r)?r.reduce((e,i)=>(e[i]=null,e),{}):r}let HOe=!0;function Hdi(r){const e=EGe(r),i=r.proxy,n=r.ctx;HOe=!1,e.beforeCreate&&Fpt(e.beforeCreate,r,"bc");const{data:a,computed:o,methods:c,watch:h,provide:g,inject:_,created:x,beforeMount:y,mounted:S,beforeUpdate:L,updated:O,activated:G,deactivated:ie,beforeDestroy:ue,beforeUnmount:re,destroyed:_e,unmounted:ye,render:Le,renderTracked:lt,renderTriggered:Ue,errorCaptured:Ze,serverPrefetch:rt,expose:kt,inheritAttrs:Zt,components:jt,directives:ui,filters:ti}=e;if(_&&Kdi(_,n,null),c)for(const Vt in c){const zr=c[Vt];rc(zr)&&(n[Vt]=zr.bind(i))}if(a){const Vt=a.call(i,i);Lf(Vt)&&(r.data=lae(Vt))}if(HOe=!0,o)for(const Vt in o){const zr=o[Vt],Lu=rc(zr)?zr.bind(i,i):rc(zr.get)?zr.get.bind(i,i):WC,Va=!rc(zr)&&rc(zr.set)?zr.set.bind(i):WC,ju=j6({get:Lu,set:Va});Object.defineProperty(n,Vt,{enumerable:!0,configurable:!0,get:()=>ju.value,set:Tr=>ju.value=Tr})}if(h)for(const Vt in h)E6t(h[Vt],n,i,Vt);if(g){const Vt=rc(g)?g.call(i):g;Reflect.ownKeys(Vt).forEach(zr=>{qdi(zr,Vt[zr])})}x&&Fpt(x,r,"c");function pu(Vt,zr){H0(zr)?zr.forEach(Lu=>Vt(Lu.bind(i))):zr&&Vt(zr.bind(i))}if(pu(Ndi,y),pu(GR,S),pu(Pdi,L),pu(Mdi,O),pu(wdi,G),pu(Tdi,ie),pu(jdi,Ze),pu(Odi,lt),pu(Rdi,Ue),pu(zdi,re),pu(gGe,ye),pu(Idi,rt),H0(kt))if(kt.length){const Vt=r.exposed||(r.exposed={});kt.forEach(zr=>{Object.defineProperty(Vt,zr,{get:()=>i[zr],set:Lu=>i[zr]=Lu})})}else r.exposed||(r.exposed={});Le&&r.render===WC&&(r.render=Le),Zt!=null&&(r.inheritAttrs=Zt),jt&&(r.components=jt),ui&&(r.directives=ui)}function Kdi(r,e,i=WC){H0(r)&&(r=KOe(r));for(const n in r){const a=r[n];let o;Lf(a)?"default"in a?o=Mne(a.from||n,a.default,!0):o=Mne(a.from||n):o=Mne(a),kp(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function Fpt(r,e,i){Ey(H0(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,i)}function E6t(r,e,i,n){const a=n.includes(".")?f6t(i,n):()=>i[n];if(og(r)){const o=e[r];rc(o)&&_A(a,o)}else if(rc(r))_A(a,r.bind(i));else if(Lf(r))if(H0(r))r.forEach(o=>E6t(o,e,i,n));else{const o=rc(r.handler)?r.handler.bind(i):e[r.handler];rc(o)&&_A(a,o,r)}}function EGe(r){const e=r.type,{mixins:i,extends:n}=e,{mixins:a,optionsCache:o,config:{optionMergeStrategies:c}}=r.appContext,h=o.get(e);let g;return h?g=h:!a.length&&!i&&!n?g=e:(g={},a.length&&a.forEach(_=>WDe(g,_,c,!0)),WDe(g,e,c)),Lf(e)&&o.set(e,g),g}function WDe(r,e,i,n=!1){const{mixins:a,extends:o}=e;o&&WDe(r,o,i,!0),a&&a.forEach(c=>WDe(r,c,i,!0));for(const c in e)if(!(n&&c==="expose")){const h=Wdi[c]||i&&i[c];r[c]=h?h(r[c],e[c]):e[c]}return r}const Wdi={data:Apt,props:Spt,emits:Spt,methods:ane,computed:ane,beforeCreate:TD,created:TD,beforeMount:TD,mounted:TD,beforeUpdate:TD,updated:TD,beforeDestroy:TD,beforeUnmount:TD,destroyed:TD,unmounted:TD,activated:TD,deactivated:TD,errorCaptured:TD,serverPrefetch:TD,components:ane,directives:ane,watch:Jdi,provide:Apt,inject:Gdi};function Apt(r,e){return e?r?function(){return z_(rc(r)?r.call(this,this):r,rc(e)?e.call(this,this):e)}:e:r}function Gdi(r,e){return ane(KOe(r),KOe(e))}function KOe(r){if(H0(r)){const e={};for(let i=0;i1)return i&&rc(e)?e.call(n&&n.proxy):e}}function Zdi(){return!!(L_||Hg||Sue)}function Ydi(r,e,i,n=!1){const a={},o={};jDe(o,m6e,1),r.propsDefaults=Object.create(null),D6t(r,e,a,o);for(const c in r.propsOptions[0])c in a||(a[c]=void 0);i?r.props=n?a:ndi(a):r.type.props?r.props=a:r.props=o,r.attrs=o}function Qdi(r,e,i,n){const{props:a,attrs:o,vnode:{patchFlag:c}}=r,h=s1(a),[g]=r.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const x=r.vnode.dynamicProps;for(let y=0;y{g=!0;const[S,L]=x6t(y,e,!0);z_(c,S),L&&h.push(...L)};!i&&e.mixins.length&&e.mixins.forEach(x),r.extends&&x(r.extends),r.mixins&&r.mixins.forEach(x)}if(!o&&!g)return Lf(r)&&n.set(r,qG),qG;if(H0(o))for(let x=0;x-1,L[1]=G<0||O-1||a1(L,"default"))&&h.push(y)}}}const _=[c,h];return Lf(r)&&n.set(r,_),_}function Bpt(r){return r[0]!=="$"}function wpt(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function Tpt(r,e){return wpt(r)===wpt(e)}function Lpt(r,e){return H0(e)?e.findIndex(i=>Tpt(i,r)):rc(e)&&Tpt(e,r)?0:-1}const v6t=r=>r[0]==="_"||r==="$stable",_Ge=r=>H0(r)?r.map(UF):[UF(r)],Xdi=(r,e,i)=>{if(e._n)return e;const n=RL((...a)=>_Ge(e(...a)),i);return n._c=!1,n},C6t=(r,e,i)=>{const n=r._ctx;for(const a in r){if(v6t(a))continue;const o=r[a];if(rc(o))e[a]=Xdi(a,o,n);else if(o!=null){const c=_Ge(o);e[a]=()=>c}}},b6t=(r,e)=>{const i=_Ge(e);r.slots.default=()=>i},e1i=(r,e)=>{if(r.vnode.shapeFlag&32){const i=e._;i?(r.slots=s1(e),jDe(e,"_",i)):C6t(e,r.slots={})}else r.slots={},e&&b6t(r,e);jDe(r.slots,m6e,1)},t1i=(r,e,i)=>{const{vnode:n,slots:a}=r;let o=!0,c=em;if(n.shapeFlag&32){const h=e._;h?i&&h===1?o=!1:(z_(a,e),!i&&h===1&&delete a._):(o=!e.$stable,C6t(e,a)),c=e}else e&&(b6t(r,e),c={default:1});if(o)for(const h in a)!v6t(h)&&c[h]==null&&delete a[h]};function GOe(r,e,i,n,a=!1){if(H0(r)){r.forEach((S,L)=>GOe(S,e&&(H0(e)?e[L]:e),i,n,a));return}if(Nne(n)&&!a)return;const o=n.shapeFlag&4?g6e(n.component)||n.component.proxy:n.el,c=a?null:o,{i:h,r:g}=r,_=e&&e.r,x=h.refs===em?h.refs={}:h.refs,y=h.setupState;if(_!=null&&_!==g&&(og(_)?(x[_]=null,a1(y,_)&&(y[_]=null)):kp(_)&&(_.value=null)),rc(g))_L(g,h,12,[c,x]);else{const S=og(g),L=kp(g);if(S||L){const O=()=>{if(r.f){const G=S?a1(y,g)?y[g]:x[g]:g.value;a?H0(G)&&nGe(G,o):H0(G)?G.includes(o)||G.push(o):S?(x[g]=[o],a1(y,g)&&(y[g]=x[g])):(g.value=[o],r.k&&(x[r.k]=g.value))}else S?(x[g]=c,a1(y,g)&&(y[g]=c)):L&&(g.value=c,r.k&&(x[r.k]=c))};c?(O.id=-1,Z5(O,i)):O()}}}const Z5=kdi;function i1i(r){return n1i(r)}function n1i(r,e){const i=Ixt();i.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:c,createText:h,createComment:g,setText:_,setElementText:x,parentNode:y,nextSibling:S,setScopeId:L=WC,insertStaticContent:O}=r,G=(ci,Oe,eu,Hi=null,Pr=null,$r=null,wa=void 0,_i=null,ri=!!Oe.dynamicChildren)=>{if(ci===Oe)return;ci&&!Bie(ci,Oe)&&(Hi=eo(ci),Tr(ci,Pr,$r,!0),ci=null),Oe.patchFlag===-2&&(ri=!1,Oe.dynamicChildren=null);const{type:fi,ref:xt,shapeFlag:Tt}=Oe;switch(fi){case f6e:ie(ci,Oe,eu,Hi);break;case OL:ue(ci,Oe,eu,Hi);break;case $3e:ci==null&&re(Oe,eu,Hi,wa);break;case od:jt(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri);break;default:Tt&1?Le(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri):Tt&6?ui(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri):(Tt&64||Tt&128)&&fi.process(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri,r0)}xt!=null&&Pr&&GOe(xt,ci&&ci.ref,$r,Oe||ci,!Oe)},ie=(ci,Oe,eu,Hi)=>{if(ci==null)n(Oe.el=h(Oe.children),eu,Hi);else{const Pr=Oe.el=ci.el;Oe.children!==ci.children&&_(Pr,Oe.children)}},ue=(ci,Oe,eu,Hi)=>{ci==null?n(Oe.el=g(Oe.children||""),eu,Hi):Oe.el=ci.el},re=(ci,Oe,eu,Hi)=>{[ci.el,ci.anchor]=O(ci.children,Oe,eu,Hi,ci.el,ci.anchor)},_e=({el:ci,anchor:Oe},eu,Hi)=>{let Pr;for(;ci&&ci!==Oe;)Pr=S(ci),n(ci,eu,Hi),ci=Pr;n(Oe,eu,Hi)},ye=({el:ci,anchor:Oe})=>{let eu;for(;ci&&ci!==Oe;)eu=S(ci),a(ci),ci=eu;a(Oe)},Le=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{Oe.type==="svg"?wa="svg":Oe.type==="math"&&(wa="mathml"),ci==null?lt(Oe,eu,Hi,Pr,$r,wa,_i,ri):rt(ci,Oe,Pr,$r,wa,_i,ri)},lt=(ci,Oe,eu,Hi,Pr,$r,wa,_i)=>{let ri,fi;const{props:xt,shapeFlag:Tt,transition:pi,dirs:hi}=ci;if(ri=ci.el=c(ci.type,$r,xt&&xt.is,xt),Tt&8?x(ri,ci.children):Tt&16&&Ze(ci.children,ri,null,Hi,Pr,aIe(ci,$r),wa,_i),hi&&Uz(ci,null,Hi,"created"),Ue(ri,ci,ci.scopeId,wa,Hi),xt){for(const On in xt)On!=="value"&&!G3e(On)&&o(ri,On,null,xt[On],$r,ci.children,Hi,Pr,qi);"value"in xt&&o(ri,"value",null,xt.value,$r),(fi=xt.onVnodeBeforeMount)&&PF(fi,Hi,ci)}hi&&Uz(ci,null,Hi,"beforeMount");const cn=u1i(Pr,pi);cn&&pi.beforeEnter(ri),n(ri,Oe,eu),((fi=xt&&xt.onVnodeMounted)||cn||hi)&&Z5(()=>{fi&&PF(fi,Hi,ci),cn&&pi.enter(ri),hi&&Uz(ci,null,Hi,"mounted")},Pr)},Ue=(ci,Oe,eu,Hi,Pr)=>{if(eu&&L(ci,eu),Hi)for(let $r=0;$r{for(let fi=ri;fi{const _i=Oe.el=ci.el;let{patchFlag:ri,dynamicChildren:fi,dirs:xt}=Oe;ri|=ci.patchFlag&16;const Tt=ci.props||em,pi=Oe.props||em;let hi;if(eu&&qz(eu,!1),(hi=pi.onVnodeBeforeUpdate)&&PF(hi,eu,Oe,ci),xt&&Uz(Oe,ci,eu,"beforeUpdate"),eu&&qz(eu,!0),fi?kt(ci.dynamicChildren,fi,_i,eu,Hi,aIe(Oe,Pr),$r):wa||zr(ci,Oe,_i,null,eu,Hi,aIe(Oe,Pr),$r,!1),ri>0){if(ri&16)Zt(_i,Oe,Tt,pi,eu,Hi,Pr);else if(ri&2&&Tt.class!==pi.class&&o(_i,"class",null,pi.class,Pr),ri&4&&o(_i,"style",Tt.style,pi.style,Pr),ri&8){const cn=Oe.dynamicProps;for(let On=0;On{hi&&PF(hi,eu,Oe,ci),xt&&Uz(Oe,ci,eu,"updated")},Hi)},kt=(ci,Oe,eu,Hi,Pr,$r,wa)=>{for(let _i=0;_i{if(eu!==Hi){if(eu!==em)for(const _i in eu)!G3e(_i)&&!(_i in Hi)&&o(ci,_i,eu[_i],null,wa,Oe.children,Pr,$r,qi);for(const _i in Hi){if(G3e(_i))continue;const ri=Hi[_i],fi=eu[_i];ri!==fi&&_i!=="value"&&o(ci,_i,fi,ri,wa,Oe.children,Pr,$r,qi)}"value"in Hi&&o(ci,"value",eu.value,Hi.value,wa)}},jt=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{const fi=Oe.el=ci?ci.el:h(""),xt=Oe.anchor=ci?ci.anchor:h("");let{patchFlag:Tt,dynamicChildren:pi,slotScopeIds:hi}=Oe;hi&&(_i=_i?_i.concat(hi):hi),ci==null?(n(fi,eu,Hi),n(xt,eu,Hi),Ze(Oe.children||[],eu,xt,Pr,$r,wa,_i,ri)):Tt>0&&Tt&64&&pi&&ci.dynamicChildren?(kt(ci.dynamicChildren,pi,eu,Pr,$r,wa,_i),(Oe.key!=null||Pr&&Oe===Pr.subTree)&&y6t(ci,Oe,!0)):zr(ci,Oe,eu,xt,Pr,$r,wa,_i,ri)},ui=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{Oe.slotScopeIds=_i,ci==null?Oe.shapeFlag&512?Pr.ctx.activate(Oe,eu,Hi,wa,ri):ti(Oe,eu,Hi,Pr,$r,wa,ri):Uu(ci,Oe,ri)},ti=(ci,Oe,eu,Hi,Pr,$r,wa)=>{const _i=ci.component=h1i(ci,Hi,Pr);if(m6t(ci)&&(_i.ctx.renderer=r0),f1i(_i),_i.asyncDep){if(Pr&&Pr.registerDep(_i,pu),!ci.el){const ri=_i.subTree=N0(OL);ue(null,ri,Oe,eu)}}else pu(_i,ci,Oe,eu,Pr,$r,wa)},Uu=(ci,Oe,eu)=>{const Hi=Oe.component=ci.component;if(xdi(ci,Oe,eu))if(Hi.asyncDep&&!Hi.asyncResolved){Vt(Hi,Oe,eu);return}else Hi.next=Oe,fdi(Hi.update),Hi.effect.dirty=!0,Hi.update();else Oe.el=ci.el,Hi.vnode=Oe},pu=(ci,Oe,eu,Hi,Pr,$r,wa)=>{const _i=()=>{if(ci.isMounted){let{next:xt,bu:Tt,u:pi,parent:hi,vnode:cn}=ci;{const vo=k6t(ci);if(vo){xt&&(xt.el=cn.el,Vt(ci,xt,wa)),vo.asyncDep.then(()=>{ci.isUnmounted||_i()});return}}let On=xt,Dr;qz(ci,!1),xt?(xt.el=cn.el,Vt(ci,xt,wa)):xt=cn,Tt&&J3e(Tt),(Dr=xt.props&&xt.props.onVnodeBeforeUpdate)&&PF(Dr,hi,xt,cn),qz(ci,!0);const Wr=uIe(ci),xi=ci.subTree;ci.subTree=Wr,G(xi,Wr,y(xi.el),eo(xi),ci,Pr,$r),xt.el=Wr.el,On===null&&vdi(ci,Wr.el),pi&&Z5(pi,Pr),(Dr=xt.props&&xt.props.onVnodeUpdated)&&Z5(()=>PF(Dr,hi,xt,cn),Pr)}else{let xt;const{el:Tt,props:pi}=Oe,{bm:hi,m:cn,parent:On}=ci,Dr=Nne(Oe);if(qz(ci,!1),hi&&J3e(hi),!Dr&&(xt=pi&&pi.onVnodeBeforeMount)&&PF(xt,On,Oe),qz(ci,!0),Tt&&Hl){const Wr=()=>{ci.subTree=uIe(ci),Hl(Tt,ci.subTree,ci,Pr,null)};Dr?Oe.type.__asyncLoader().then(()=>!ci.isUnmounted&&Wr()):Wr()}else{const Wr=ci.subTree=uIe(ci);G(null,Wr,eu,Hi,ci,Pr,$r),Oe.el=Wr.el}if(cn&&Z5(cn,Pr),!Dr&&(xt=pi&&pi.onVnodeMounted)){const Wr=Oe;Z5(()=>PF(xt,On,Wr),Pr)}(Oe.shapeFlag&256||On&&Nne(On.vnode)&&On.vnode.shapeFlag&256)&&ci.a&&Z5(ci.a,Pr),ci.isMounted=!0,Oe=eu=Hi=null}},ri=ci.effect=new rGe(_i,WC,()=>mGe(fi),ci.scope),fi=ci.update=()=>{ri.dirty&&ri.run()};fi.id=ci.uid,qz(ci,!0),fi()},Vt=(ci,Oe,eu)=>{Oe.component=ci;const Hi=ci.vnode.props;ci.vnode=Oe,ci.next=null,Qdi(ci,Oe.props,Hi,eu),t1i(ci,Oe.children,eu),KR(),Cpt(ci),WR()},zr=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri=!1)=>{const fi=ci&&ci.children,xt=ci?ci.shapeFlag:0,Tt=Oe.children,{patchFlag:pi,shapeFlag:hi}=Oe;if(pi>0){if(pi&128){Va(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri);return}else if(pi&256){Lu(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri);return}}hi&8?(xt&16&&qi(fi,Pr,$r),Tt!==fi&&x(eu,Tt)):xt&16?hi&16?Va(fi,Tt,eu,Hi,Pr,$r,wa,_i,ri):qi(fi,Pr,$r,!0):(xt&8&&x(eu,""),hi&16&&Ze(Tt,eu,Hi,Pr,$r,wa,_i,ri))},Lu=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{ci=ci||qG,Oe=Oe||qG;const fi=ci.length,xt=Oe.length,Tt=Math.min(fi,xt);let pi;for(pi=0;pixt?qi(ci,Pr,$r,!0,!1,Tt):Ze(Oe,eu,Hi,Pr,$r,wa,_i,ri,Tt)},Va=(ci,Oe,eu,Hi,Pr,$r,wa,_i,ri)=>{let fi=0;const xt=Oe.length;let Tt=ci.length-1,pi=xt-1;for(;fi<=Tt&&fi<=pi;){const hi=ci[fi],cn=Oe[fi]=ri?KT(Oe[fi]):UF(Oe[fi]);if(Bie(hi,cn))G(hi,cn,eu,null,Pr,$r,wa,_i,ri);else break;fi++}for(;fi<=Tt&&fi<=pi;){const hi=ci[Tt],cn=Oe[pi]=ri?KT(Oe[pi]):UF(Oe[pi]);if(Bie(hi,cn))G(hi,cn,eu,null,Pr,$r,wa,_i,ri);else break;Tt--,pi--}if(fi>Tt){if(fi<=pi){const hi=pi+1,cn=hipi)for(;fi<=Tt;)Tr(ci[fi],Pr,$r,!0),fi++;else{const hi=fi,cn=fi,On=new Map;for(fi=cn;fi<=pi;fi++){const e0=Oe[fi]=ri?KT(Oe[fi]):UF(Oe[fi]);e0.key!=null&&On.set(e0.key,fi)}let Dr,Wr=0;const xi=pi-cn+1;let vo=!1,Pl=0;const yn=new Array(xi);for(fi=0;fi=xi){Tr(e0,Pr,$r,!0);continue}let Fl;if(e0.key!=null)Fl=On.get(e0.key);else for(Dr=cn;Dr<=pi;Dr++)if(yn[Dr-cn]===0&&Bie(e0,Oe[Dr])){Fl=Dr;break}Fl===void 0?Tr(e0,Pr,$r,!0):(yn[Fl-cn]=fi+1,Fl>=Pl?Pl=Fl:vo=!0,G(e0,Oe[Fl],eu,null,Pr,$r,wa,_i,ri),Wr++)}const xa=vo?r1i(yn):qG;for(Dr=xa.length-1,fi=xi-1;fi>=0;fi--){const e0=cn+fi,Fl=Oe[e0],Ph=e0+1{const{el:$r,type:wa,transition:_i,children:ri,shapeFlag:fi}=ci;if(fi&6){ju(ci.component.subTree,Oe,eu,Hi);return}if(fi&128){ci.suspense.move(Oe,eu,Hi);return}if(fi&64){wa.move(ci,Oe,eu,r0);return}if(wa===od){n($r,Oe,eu);for(let Tt=0;Tt_i.enter($r),Pr);else{const{leave:Tt,delayLeave:pi,afterLeave:hi}=_i,cn=()=>n($r,Oe,eu),On=()=>{Tt($r,()=>{cn(),hi&&hi()})};pi?pi($r,cn,On):On()}else n($r,Oe,eu)},Tr=(ci,Oe,eu,Hi=!1,Pr=!1)=>{const{type:$r,props:wa,ref:_i,children:ri,dynamicChildren:fi,shapeFlag:xt,patchFlag:Tt,dirs:pi}=ci;if(_i!=null&&GOe(_i,null,eu,ci,!0),xt&256){Oe.ctx.deactivate(ci);return}const hi=xt&1&&pi,cn=!Nne(ci);let On;if(cn&&(On=wa&&wa.onVnodeBeforeUnmount)&&PF(On,Oe,ci),xt&6)Zr(ci.component,eu,Hi);else{if(xt&128){ci.suspense.unmount(eu,Hi);return}hi&&Uz(ci,null,Oe,"beforeUnmount"),xt&64?ci.type.remove(ci,Oe,eu,Pr,r0,Hi):fi&&($r!==od||Tt>0&&Tt&64)?qi(fi,Oe,eu,!1,!0):($r===od&&Tt&384||!Pr&&xt&16)&&qi(ri,Oe,eu),Hi&&pa(ci)}(cn&&(On=wa&&wa.onVnodeUnmounted)||hi)&&Z5(()=>{On&&PF(On,Oe,ci),hi&&Uz(ci,null,Oe,"unmounted")},eu)},pa=ci=>{const{type:Oe,el:eu,anchor:Hi,transition:Pr}=ci;if(Oe===od){z0(eu,Hi);return}if(Oe===$3e){ye(ci);return}const $r=()=>{a(eu),Pr&&!Pr.persisted&&Pr.afterLeave&&Pr.afterLeave()};if(ci.shapeFlag&1&&Pr&&!Pr.persisted){const{leave:wa,delayLeave:_i}=Pr,ri=()=>wa(eu,$r);_i?_i(ci.el,$r,ri):ri()}else $r()},z0=(ci,Oe)=>{let eu;for(;ci!==Oe;)eu=S(ci),a(ci),ci=eu;a(Oe)},Zr=(ci,Oe,eu)=>{const{bum:Hi,scope:Pr,update:$r,subTree:wa,um:_i}=ci;Hi&&J3e(Hi),Pr.stop(),$r&&($r.active=!1,Tr(wa,ci,Oe,eu)),_i&&Z5(_i,Oe),Z5(()=>{ci.isUnmounted=!0},Oe),Oe&&Oe.pendingBranch&&!Oe.isUnmounted&&ci.asyncDep&&!ci.asyncResolved&&ci.suspenseId===Oe.pendingId&&(Oe.deps--,Oe.deps===0&&Oe.resolve())},qi=(ci,Oe,eu,Hi=!1,Pr=!1,$r=0)=>{for(let wa=$r;waci.shapeFlag&6?eo(ci.component.subTree):ci.shapeFlag&128?ci.suspense.next():S(ci.anchor||ci.el);let Fa=!1;const W0=(ci,Oe,eu)=>{ci==null?Oe._vnode&&Tr(Oe._vnode,null,null,!0):G(Oe._vnode||null,ci,Oe,null,null,null,eu),Fa||(Fa=!0,Cpt(),s6t(),Fa=!1),Oe._vnode=ci},r0={p:G,um:Tr,m:ju,r:pa,mt:ti,mc:Ze,pc:zr,pbc:kt,n:eo,o:r};let qa,Hl;return e&&([qa,Hl]=e(r0)),{render:W0,hydrate:qa,createApp:Udi(W0,qa)}}function aIe({type:r,props:e},i){return i==="svg"&&r==="foreignObject"||i==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function qz({effect:r,update:e},i){r.allowRecurse=e.allowRecurse=i}function u1i(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function y6t(r,e,i=!1){const n=r.children,a=e.children;if(H0(n)&&H0(a))for(let o=0;o>1,r[i[h]]<_?o=h+1:c=h;_0&&(e[n]=i[o-1]),i[o]=n)}}for(o=i.length,c=i[o-1];o-- >0;)i[o]=c,c=e[c];return i}function k6t(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:k6t(e)}const a1i=r=>r.__isTeleport,od=Symbol.for("v-fgt"),f6e=Symbol.for("v-txt"),OL=Symbol.for("v-cmt"),$3e=Symbol.for("v-stc"),zne=[];let cy=null;function Mu(r=!1){zne.push(cy=r?null:[])}function o1i(){zne.pop(),cy=zne[zne.length-1]||null}let Bue=1;function Npt(r){Bue+=r}function F6t(r){return r.dynamicChildren=Bue>0?cy||qG:null,o1i(),Bue>0&&cy&&cy.push(r),r}function vr(r,e,i,n,a,o){return F6t(si(r,e,i,n,a,o,!0))}function eg(r,e,i,n,a){return F6t(N0(r,e,i,n,a,!0))}function GDe(r){return r?r.__v_isVNode===!0:!1}function Bie(r,e){return r.type===e.type&&r.key===e.key}const m6e="__vInternal",A6t=({key:r})=>r??null,U3e=({ref:r,ref_key:e,ref_for:i})=>(typeof r=="number"&&(r=""+r),r!=null?og(r)||kp(r)||rc(r)?{i:Hg,r,k:e,f:!!i}:r:null);function si(r,e=null,i=null,n=0,a=null,o=r===od?0:1,c=!1,h=!1){const g={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&A6t(e),ref:e&&U3e(e),scopeId:c6e,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Hg};return h?(DGe(g,i),o&128&&r.normalize(g)):i&&(g.shapeFlag|=og(i)?8:16),Bue>0&&!c&&cy&&(g.patchFlag>0||o&6)&&g.patchFlag!==32&&cy.push(g),g}const N0=s1i;function s1i(r,e=null,i=null,n=0,a=null,o=!1){if((!r||r===bdi)&&(r=OL),GDe(r)){const h=BJ(r,e,!0);return i&&DGe(h,i),Bue>0&&!o&&cy&&(h.shapeFlag&6?cy[cy.indexOf(r)]=h:cy.push(h)),h.patchFlag|=-2,h}if(_1i(r)&&(r=r.__vccOpts),e){e=S6t(e);let{class:h,style:g}=e;h&&!og(h)&&(e.class=Zh(h)),Lf(g)&&(i6t(g)&&!H0(g)&&(g=z_({},g)),e.style=M3(g))}const c=og(r)?1:ydi(r)?128:a1i(r)?64:Lf(r)?4:rc(r)?2:0;return si(r,e,i,n,a,c,o,!0)}function S6t(r){return r?i6t(r)||m6e in r?z_({},r):r:null}function BJ(r,e,i=!1){const{props:n,ref:a,patchFlag:o,children:c}=r,h=e?xGe(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:h,key:h&&A6t(h),ref:e&&e.ref?i&&a?H0(a)?a.concat(U3e(e)):[a,U3e(e)]:U3e(e):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:c,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==od?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&BJ(r.ssContent),ssFallback:r.ssFallback&&BJ(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function P0(r=" ",e=0){return N0(f6e,null,r,e)}function l1i(r,e){const i=N0($3e,null,r);return i.staticCount=e,i}function gl(r="",e=!1){return e?(Mu(),eg(OL,null,r)):N0(OL,null,r)}function UF(r){return r==null||typeof r=="boolean"?N0(OL):H0(r)?N0(od,null,r.slice()):typeof r=="object"?KT(r):N0(f6e,null,String(r))}function KT(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:BJ(r)}function DGe(r,e){let i=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(H0(e))i=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),DGe(r,a()),a._c&&(a._d=!0));return}else{i=32;const a=e._;!a&&!(m6e in e)?e._ctx=Hg:a===3&&Hg&&(Hg.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else rc(e)?(e={default:e,_ctx:Hg},i=32):(e=String(e),n&64?(i=16,e=[P0(e)]):i=8);r.children=e,r.shapeFlag|=i}function xGe(...r){const e={};for(let i=0;i{let a;return(a=r[i])||(a=r[i]=[]),a.push(n),o=>{a.length>1?a.forEach(c=>c(o)):a[0](o)}};JDe=e("__VUE_INSTANCE_SETTERS__",i=>L_=i),JOe=e("__VUE_SSR_SETTERS__",i=>p6e=i)}const cae=r=>{const e=L_;return JDe(r),r.scope.on(),()=>{r.scope.off(),JDe(e)}},Ppt=()=>{L_&&L_.scope.off(),JDe(null)};function B6t(r){return r.vnode.shapeFlag&4}let p6e=!1;function f1i(r,e=!1){e&&JOe(e);const{props:i,children:n}=r.vnode,a=B6t(r);Ydi(r,i,a,e),e1i(r,n);const o=a?m1i(r,e):void 0;return e&&JOe(!1),o}function m1i(r,e){const i=r.type;r.accessCache=Object.create(null),r.proxy=o6e(new Proxy(r.ctx,Vdi));const{setup:n}=i;if(n){const a=r.setupContext=n.length>1?g1i(r):null,o=cae(r);KR();const c=_L(n,r,0,[r.props,a]);if(WR(),o(),Pxt(c)){if(c.then(Ppt,Ppt),e)return c.then(h=>{Mpt(r,h,e)}).catch(h=>{s6e(h,r,0)});r.asyncDep=c}else Mpt(r,c,e)}else w6t(r,e)}function Mpt(r,e,i){rc(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Lf(e)&&(r.setupState=r6t(e)),w6t(r,i)}let zpt;function w6t(r,e,i){const n=r.type;if(!r.render){if(!e&&zpt&&!n.render){const a=n.template||EGe(r).template;if(a){const{isCustomElement:o,compilerOptions:c}=r.appContext.config,{delimiters:h,compilerOptions:g}=n,_=z_(z_({isCustomElement:o,delimiters:h},c),g);n.render=zpt(a,_)}}r.render=n.render||WC}{const a=cae(r);KR();try{Hdi(r)}finally{WR(),a()}}}function p1i(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,i){return mx(r,"get","$attrs"),e[i]}}))}function g1i(r){const e=i=>{r.exposed=i||{}};return{get attrs(){return p1i(r)},slots:r.slots,emit:r.emit,expose:e}}function g6e(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(r6t(o6e(r.exposed)),{get(e,i){if(i in e)return e[i];if(i in Pne)return Pne[i](r)},has(e,i){return i in e||i in Pne}}))}function E1i(r,e=!0){return rc(r)?r.displayName||r.name:r.name||e&&r.__name}function _1i(r){return rc(r)&&"__vccOpts"in r}const j6=(r,e)=>udi(r,e,p6e);function D1i(r,e,i){const n=arguments.length;return n===2?Lf(e)&&!H0(e)?GDe(e)?N0(r,null,[e]):N0(r,e):N0(r,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&GDe(i)&&(i=[i]),N0(r,e,i))}const x1i="3.4.13";/** +**/function DL(r,e,i,n){let a;try{a=n?r(...n):r()}catch(o){h6e(o,e,i)}return a}function _y(r,e,i,n){if(ac(r)){const o=DL(r,e,i,n);return o&&Oxt(o)&&o.catch(c=>{h6e(c,e,i)}),o}const a=[];for(let o=0;o>>1,a=I3[n],o=Sue(a);oXF&&I3.splice(e,1)}function _di(r){W0(r)?QG.push(...r):(!HT||!HT.includes(r,r.allowRecurse?DI+1:DI))&&QG.push(r),h6t()}function Apt(r,e,i=Aue?XF+1:0){for(;iSue(i)-Sue(n));if(QG.length=0,HT){HT.push(...e);return}for(HT=e,DI=0;DIr.id==null?1/0:r.id,Ddi=(r,e)=>{const i=Sue(r)-Sue(e);if(i===0){if(r.pre&&!e.pre)return-1;if(e.pre&&!r.pre)return 1}return i};function m6t(r){JOe=!1,Aue=!0,I3.sort(Ddi);try{for(XF=0;XFog(L)?L.trim():L)),y&&(a=i.map(VOe))}let h,g=n[h=sIe(e)]||n[h=sIe(FA(e))];!g&&o&&(g=n[h=sIe(KR(e))]),g&&_y(g,r,6,a);const _=n[h+"Once"];if(_){if(!r.emitted)r.emitted={};else if(r.emitted[h])return;r.emitted[h]=!0,_y(_,r,6,a)}}function p6t(r,e,i=!1){const n=e.emitsCache,a=n.get(r);if(a!==void 0)return a;const o=r.emits;let c={},h=!1;if(!ac(r)){const g=_=>{const x=p6t(_,e,!0);x&&(h=!0,I_(c,x))};!i&&e.mixins.length&&e.mixins.forEach(g),r.extends&&g(r.extends),r.mixins&&r.mixins.forEach(g)}return!o&&!h?(Lf(r)&&n.set(r,null),null):(W0(o)?o.forEach(g=>c[g]=null):I_(c,o),Lf(r)&&n.set(r,c),c)}function f6e(r,e){return!r||!a6e(e)?!1:(e=e.slice(2).replace(/Once$/,""),o1(r,e[0].toLowerCase()+e.slice(1))||o1(r,KR(e))||o1(r,e))}let Kg=null,m6e=null;function $De(r){const e=Kg;return Kg=r,m6e=r&&r.type.__scopeId||null,e}function v$(r){m6e=r}function C$(){m6e=null}const vdi=r=>OL;function OL(r,e=Kg,i){if(!e||r._n)return r;const n=(...a)=>{n._d&&Rpt(-1);const o=$De(e);let c;try{c=r(...a)}finally{$De(o),n._d&&Rpt(1)}return c};return n._n=!0,n._c=!0,n._d=!0,n}function cIe(r){const{type:e,vnode:i,proxy:n,withProxy:a,props:o,propsOptions:[c],slots:h,attrs:g,emit:_,render:x,renderCache:y,data:S,setupState:L,ctx:R,inheritAttrs:G}=r;let ie,ue;const re=$De(r);try{if(i.shapeFlag&4){const ye=a||n,Le=ye;ie=UF(x.call(Le,ye,y,o,L,S,R)),ue=g}else{const ye=e;ie=UF(ye.length>1?ye(o,{attrs:g,slots:h,emit:_}):ye(o,null)),ue=e.props?g:Cdi(g)}}catch(ye){One.length=0,h6e(ye,r,1),ie=z0(jL)}let _e=ie;if(ue&&G!==!1){const ye=Object.keys(ue),{shapeFlag:Le}=_e;ye.length&&Le&7&&(c&&ye.some(sGe)&&(ue=bdi(ue,c)),_e=wJ(_e,ue))}return i.dirs&&(_e=wJ(_e),_e.dirs=_e.dirs?_e.dirs.concat(i.dirs):i.dirs),i.transition&&(_e.transition=i.transition),ie=_e,$De(re),ie}const Cdi=r=>{let e;for(const i in r)(i==="class"||i==="style"||a6e(i))&&((e||(e={}))[i]=r[i]);return e},bdi=(r,e)=>{const i={};for(const n in r)(!sGe(n)||!(n.slice(9)in e))&&(i[n]=r[n]);return i};function ydi(r,e,i){const{props:n,children:a,component:o}=r,{props:c,children:h,patchFlag:g}=e,_=o.emitsOptions;if(e.dirs||e.transition)return!0;if(i&&g>=0){if(g&1024)return!0;if(g&16)return n?Spt(n,c,_):!!c;if(g&8){const x=e.dynamicProps;for(let y=0;yr.__isSuspense;function Bdi(r,e){e&&e.pendingBranch?W0(r)?e.effects.push(...r):e.effects.push(r):_di(r)}const wdi=Symbol.for("v-scx"),Tdi=()=>Rne(wdi);function Ldi(r,e){return vGe(r,null,e)}const C_e={};function _A(r,e,i){return vGe(r,e,i)}function vGe(r,e,{immediate:i,deep:n,flush:a,once:o,onTrack:c,onTrigger:h}=em){if(e&&o){const lt=e;e=(...Ue)=>{lt(...Ue),Le()}}const g=N_,_=lt=>n===!0?lt:LI(lt,n===!1?1:void 0);let x,y=!1,S=!1;if(Ap(r)?(x=()=>r.value,y=JDe(r)):_L(r)?(x=()=>_(r),y=!0):W0(r)?(S=!0,y=r.some(lt=>_L(lt)||JDe(lt)),x=()=>r.map(lt=>{if(Ap(lt))return lt.value;if(_L(lt))return _(lt);if(ac(lt))return DL(lt,g,2)})):ac(r)?e?x=()=>DL(r,g,2):x=()=>(L&&L(),_y(r,g,3,[R])):x=GC,e&&n){const lt=x;x=()=>LI(lt())}let L,R=lt=>{L=_e.onStop=()=>{DL(lt,g,4),L=_e.onStop=void 0}},G;if(D6e)if(R=GC,e?i&&_y(e,g,3,[x(),S?[]:void 0,R]):x(),a==="sync"){const lt=Tdi();G=lt.__watcherHandles||(lt.__watcherHandles=[])}else return GC;let ie=S?new Array(r.length).fill(C_e):C_e;const ue=()=>{if(!(!_e.active||!_e.dirty))if(e){const lt=_e.run();(n||y||(S?lt.some((Ue,Ze)=>RL(Ue,ie[Ze])):RL(lt,ie)))&&(L&&L(),_y(e,g,3,[lt,ie===C_e?void 0:S&&ie[0]===C_e?[]:ie,R]),ie=lt)}else _e.run()};ue.allowRecurse=!!e;let re;a==="sync"?re=ue:a==="post"?re=()=>Z5(ue,g&&g.suspense):(ue.pre=!0,g&&(ue.id=g.uid),re=()=>xGe(ue));const _e=new dGe(x,GC,re),ye=Uxt(),Le=()=>{_e.stop(),ye&&lGe(ye.effects,_e)};return e?i?ue():ie=_e.run():a==="post"?Z5(_e.run.bind(_e),g&&g.suspense):_e.run(),G&&G.push(Le),Le}function Ndi(r,e,i){const n=this.proxy,a=og(r)?r.includes(".")?_6t(n,r):()=>n[r]:r.bind(n,n);let o;ac(e)?o=e:(o=e.handler,i=e);const c=hae(this),h=vGe(a,o.bind(n),i);return c(),h}function _6t(r,e){const i=e.split(".");return()=>{let n=r;for(let a=0;a0){if(i>=e)return r;i++}if(n=n||new Set,n.has(r))return r;if(n.add(r),Ap(r))LI(r.value,e,i,n);else if(W0(r))for(let a=0;a{LI(a,e,i,n)});else if(Vxt(r))for(const a in r)LI(r[a],e,i,n);return r}function Nd(r,e){if(Kg===null)return r;const i=x6e(Kg)||Kg.proxy,n=r.dirs||(r.dirs=[]);for(let a=0;a!!r.type.__asyncLoader,D6t=r=>r.type.__isKeepAlive;function Pdi(r,e){x6t(r,"a",e)}function Mdi(r,e){x6t(r,"da",e)}function x6t(r,e,i=N_){const n=r.__wdc||(r.__wdc=()=>{let a=i;for(;a;){if(a.isDeactivated)return;a=a.parent}return r()});if(g6e(e,n,i),i){let a=i.parent;for(;a&&a.parent;)D6t(a.parent.vnode)&&zdi(n,e,i,a),a=a.parent}}function zdi(r,e,i,n){const a=g6e(e,r,n,!0);CGe(()=>{lGe(n[e],a)},i)}function g6e(r,e,i=N_,n=!1){if(i){const a=i[r]||(i[r]=[]),o=e.__weh||(e.__weh=(...c)=>{if(i.isUnmounted)return;WR();const h=hae(i),g=_y(e,i,r,c);return h(),GR(),g});return n?a.unshift(o):a.push(o),o}}const c8=r=>(e,i=N_)=>(!D6e||r==="sp")&&g6e(r,(...n)=>e(...n),i),Idi=c8("bm"),JR=c8("m"),Rdi=c8("bu"),Odi=c8("u"),jdi=c8("bum"),CGe=c8("um"),Vdi=c8("sp"),Hdi=c8("rtg"),Kdi=c8("rtc");function Wdi(r,e=N_){g6e("ec",r,e)}function U6(r,e,i,n){let a;const o=i&&i[n];if(W0(r)||og(r)){a=new Array(r.length);for(let c=0,h=r.length;ce(c,h,void 0,o&&o[h]));else{const c=Object.keys(r);a=new Array(c.length);for(let h=0,g=c.length;hqDe(e)?!(e.type===jL||e.type===Vc&&!v6t(e.children)):!0)?r:null}const $Oe=r=>r?P6t(r)?x6e(r)||r.proxy:$Oe(r.parent):null,Ine=I_(Object.create(null),{$:r=>r,$el:r=>r.vnode.el,$data:r=>r.data,$props:r=>r.props,$attrs:r=>r.attrs,$slots:r=>r.slots,$refs:r=>r.refs,$parent:r=>$Oe(r.parent),$root:r=>$Oe(r.root),$emit:r=>r.emit,$options:r=>bGe(r),$forceUpdate:r=>r.f||(r.f=()=>{r.effect.dirty=!0,xGe(r.update)}),$nextTick:r=>r.n||(r.n=DGe.bind(r.proxy)),$watch:r=>Ndi.bind(r)}),dIe=(r,e)=>r!==em&&!r.__isScriptSetup&&o1(r,e),Gdi={get({_:r},e){const{ctx:i,setupState:n,data:a,props:o,accessCache:c,type:h,appContext:g}=r;let _;if(e[0]!=="$"){const L=c[e];if(L!==void 0)switch(L){case 1:return n[e];case 2:return a[e];case 4:return i[e];case 3:return o[e]}else{if(dIe(n,e))return c[e]=1,n[e];if(a!==em&&o1(a,e))return c[e]=2,a[e];if((_=r.propsOptions[0])&&o1(_,e))return c[e]=3,o[e];if(i!==em&&o1(i,e))return c[e]=4,i[e];UOe&&(c[e]=0)}}const x=Ine[e];let y,S;if(x)return e==="$attrs"&&mx(r,"get",e),x(r);if((y=h.__cssModules)&&(y=y[e]))return y;if(i!==em&&o1(i,e))return c[e]=4,i[e];if(S=g.config.globalProperties,o1(S,e))return S[e]},set({_:r},e,i){const{data:n,setupState:a,ctx:o}=r;return dIe(a,e)?(a[e]=i,!0):n!==em&&o1(n,e)?(n[e]=i,!0):o1(r.props,e)||e[0]==="$"&&e.slice(1)in r?!1:(o[e]=i,!0)},has({_:{data:r,setupState:e,accessCache:i,ctx:n,appContext:a,propsOptions:o}},c){let h;return!!i[c]||r!==em&&o1(r,c)||dIe(e,c)||(h=o[0])&&o1(h,c)||o1(n,c)||o1(Ine,c)||o1(a.config.globalProperties,c)},defineProperty(r,e,i){return i.get!=null?r._.accessCache[e]=0:o1(i,"value")&&this.set(r,e,i.value,null),Reflect.defineProperty(r,e,i)}};function wpt(r){return W0(r)?r.reduce((e,i)=>(e[i]=null,e),{}):r}let UOe=!0;function Jdi(r){const e=bGe(r),i=r.proxy,n=r.ctx;UOe=!1,e.beforeCreate&&Tpt(e.beforeCreate,r,"bc");const{data:a,computed:o,methods:c,watch:h,provide:g,inject:_,created:x,beforeMount:y,mounted:S,beforeUpdate:L,updated:R,activated:G,deactivated:ie,beforeDestroy:ue,beforeUnmount:re,destroyed:_e,unmounted:ye,render:Le,renderTracked:lt,renderTriggered:Ue,errorCaptured:Ze,serverPrefetch:rt,expose:kt,inheritAttrs:Zt,components:jt,directives:ui,filters:ti}=e;if(_&&$di(_,n,null),c)for(const Vt in c){const Ir=c[Vt];ac(Ir)&&(n[Vt]=Ir.bind(i))}if(a){const Vt=a.call(i,i);Lf(Vt)&&(r.data=x$(Vt))}if(UOe=!0,o)for(const Vt in o){const Ir=o[Vt],Pu=ac(Ir)?Ir.bind(i,i):ac(Ir.get)?Ir.get.bind(i,i):GC,Ha=!ac(Ir)&&ac(Ir.set)?Ir.set.bind(i):GC,Vu=j6({get:Pu,set:Ha});Object.defineProperty(n,Vt,{enumerable:!0,configurable:!0,get:()=>Vu.value,set:Nr=>Vu.value=Nr})}if(h)for(const Vt in h)C6t(h[Vt],n,i,Vt);if(g){const Vt=ac(g)?g.call(i):g;Reflect.ownKeys(Vt).forEach(Ir=>{Xdi(Ir,Vt[Ir])})}x&&Tpt(x,r,"c");function gu(Vt,Ir){W0(Ir)?Ir.forEach(Pu=>Vt(Pu.bind(i))):Ir&&Vt(Ir.bind(i))}if(gu(Idi,y),gu(JR,S),gu(Rdi,L),gu(Odi,R),gu(Pdi,G),gu(Mdi,ie),gu(Wdi,Ze),gu(Kdi,lt),gu(Hdi,Ue),gu(jdi,re),gu(CGe,ye),gu(Vdi,rt),W0(kt))if(kt.length){const Vt=r.exposed||(r.exposed={});kt.forEach(Ir=>{Object.defineProperty(Vt,Ir,{get:()=>i[Ir],set:Pu=>i[Ir]=Pu})})}else r.exposed||(r.exposed={});Le&&r.render===GC&&(r.render=Le),Zt!=null&&(r.inheritAttrs=Zt),jt&&(r.components=jt),ui&&(r.directives=ui)}function $di(r,e,i=GC){W0(r)&&(r=qOe(r));for(const n in r){const a=r[n];let o;Lf(a)?"default"in a?o=Rne(a.from||n,a.default,!0):o=Rne(a.from||n):o=Rne(a),Ap(o)?Object.defineProperty(e,n,{enumerable:!0,configurable:!0,get:()=>o.value,set:c=>o.value=c}):e[n]=o}}function Tpt(r,e,i){_y(W0(r)?r.map(n=>n.bind(e.proxy)):r.bind(e.proxy),e,i)}function C6t(r,e,i,n){const a=n.includes(".")?_6t(i,n):()=>i[n];if(og(r)){const o=e[r];ac(o)&&_A(a,o)}else if(ac(r))_A(a,r.bind(i));else if(Lf(r))if(W0(r))r.forEach(o=>C6t(o,e,i,n));else{const o=ac(r.handler)?r.handler.bind(i):e[r.handler];ac(o)&&_A(a,o,r)}}function bGe(r){const e=r.type,{mixins:i,extends:n}=e,{mixins:a,optionsCache:o,config:{optionMergeStrategies:c}}=r.appContext,h=o.get(e);let g;return h?g=h:!a.length&&!i&&!n?g=e:(g={},a.length&&a.forEach(_=>UDe(g,_,c,!0)),UDe(g,e,c)),Lf(e)&&o.set(e,g),g}function UDe(r,e,i,n=!1){const{mixins:a,extends:o}=e;o&&UDe(r,o,i,!0),a&&a.forEach(c=>UDe(r,c,i,!0));for(const c in e)if(!(n&&c==="expose")){const h=Udi[c]||i&&i[c];r[c]=h?h(r[c],e[c]):e[c]}return r}const Udi={data:Lpt,props:Npt,emits:Npt,methods:lne,computed:lne,beforeCreate:TD,created:TD,beforeMount:TD,mounted:TD,beforeUpdate:TD,updated:TD,beforeDestroy:TD,beforeUnmount:TD,destroyed:TD,unmounted:TD,activated:TD,deactivated:TD,errorCaptured:TD,serverPrefetch:TD,components:lne,directives:lne,watch:Zdi,provide:Lpt,inject:qdi};function Lpt(r,e){return e?r?function(){return I_(ac(r)?r.call(this,this):r,ac(e)?e.call(this,this):e)}:e:r}function qdi(r,e){return lne(qOe(r),qOe(e))}function qOe(r){if(W0(r)){const e={};for(let i=0;i1)return i&&ac(e)?e.call(n&&n.proxy):e}}function e1i(){return!!(N_||Kg||Tue)}function t1i(r,e,i,n=!1){const a={},o={};WDe(o,_6e,1),r.propsDefaults=Object.create(null),y6t(r,e,a,o);for(const c in r.propsOptions[0])c in a||(a[c]=void 0);i?r.props=n?a:odi(a):r.type.props?r.props=a:r.props=o,r.attrs=o}function i1i(r,e,i,n){const{props:a,attrs:o,vnode:{patchFlag:c}}=r,h=l1(a),[g]=r.propsOptions;let _=!1;if((n||c>0)&&!(c&16)){if(c&8){const x=r.vnode.dynamicProps;for(let y=0;y{g=!0;const[S,L]=k6t(y,e,!0);I_(c,S),L&&h.push(...L)};!i&&e.mixins.length&&e.mixins.forEach(x),r.extends&&x(r.extends),r.mixins&&r.mixins.forEach(x)}if(!o&&!g)return Lf(r)&&n.set(r,ZG),ZG;if(W0(o))for(let x=0;x-1,L[1]=G<0||R-1||o1(L,"default"))&&h.push(y)}}}const _=[c,h];return Lf(r)&&n.set(r,_),_}function Ppt(r){return r[0]!=="$"}function Mpt(r){const e=r&&r.toString().match(/^\s*(function|class) (\w+)/);return e?e[2]:r===null?"null":""}function zpt(r,e){return Mpt(r)===Mpt(e)}function Ipt(r,e){return W0(e)?e.findIndex(i=>zpt(i,r)):ac(e)&&zpt(e,r)?0:-1}const F6t=r=>r[0]==="_"||r==="$stable",yGe=r=>W0(r)?r.map(UF):[UF(r)],n1i=(r,e,i)=>{if(e._n)return e;const n=OL((...a)=>yGe(e(...a)),i);return n._c=!1,n},A6t=(r,e,i)=>{const n=r._ctx;for(const a in r){if(F6t(a))continue;const o=r[a];if(ac(o))e[a]=n1i(a,o,n);else if(o!=null){const c=yGe(o);e[a]=()=>c}}},S6t=(r,e)=>{const i=yGe(e);r.slots.default=()=>i},u1i=(r,e)=>{if(r.vnode.shapeFlag&32){const i=e._;i?(r.slots=l1(e),WDe(e,"_",i)):A6t(e,r.slots={})}else r.slots={},e&&S6t(r,e);WDe(r.slots,_6e,1)},r1i=(r,e,i)=>{const{vnode:n,slots:a}=r;let o=!0,c=em;if(n.shapeFlag&32){const h=e._;h?i&&h===1?o=!1:(I_(a,e),!i&&h===1&&delete a._):(o=!e.$stable,A6t(e,a)),c=e}else e&&(S6t(r,e),c={default:1});if(o)for(const h in a)!F6t(h)&&c[h]==null&&delete a[h]};function YOe(r,e,i,n,a=!1){if(W0(r)){r.forEach((S,L)=>YOe(S,e&&(W0(e)?e[L]:e),i,n,a));return}if(zne(n)&&!a)return;const o=n.shapeFlag&4?x6e(n.component)||n.component.proxy:n.el,c=a?null:o,{i:h,r:g}=r,_=e&&e.r,x=h.refs===em?h.refs={}:h.refs,y=h.setupState;if(_!=null&&_!==g&&(og(_)?(x[_]=null,o1(y,_)&&(y[_]=null)):Ap(_)&&(_.value=null)),ac(g))DL(g,h,12,[c,x]);else{const S=og(g),L=Ap(g);if(S||L){const R=()=>{if(r.f){const G=S?o1(y,g)?y[g]:x[g]:g.value;a?W0(G)&&lGe(G,o):W0(G)?G.includes(o)||G.push(o):S?(x[g]=[o],o1(y,g)&&(y[g]=x[g])):(g.value=[o],r.k&&(x[r.k]=g.value))}else S?(x[g]=c,o1(y,g)&&(y[g]=c)):L&&(g.value=c,r.k&&(x[r.k]=c))};c?(R.id=-1,Z5(R,i)):R()}}}const Z5=Bdi;function a1i(r){return o1i(r)}function o1i(r,e){const i=Hxt();i.__VUE__=!0;const{insert:n,remove:a,patchProp:o,createElement:c,createText:h,createComment:g,setText:_,setElementText:x,parentNode:y,nextSibling:S,setScopeId:L=GC,insertStaticContent:R}=r,G=(Ii,Ge,ku,mi=null,Su=null,Cr=null,va=void 0,Li=null,li=!!Ge.dynamicChildren)=>{if(Ii===Ge)return;Ii&&!Tie(Ii,Ge)&&(mi=Ka(Ii),Nr(Ii,Su,Cr,!0),Ii=null),Ge.patchFlag===-2&&(li=!1,Ge.dynamicChildren=null);const{type:ci,ref:ht,shapeFlag:At}=Ge;switch(ci){case E6e:ie(Ii,Ge,ku,mi);break;case jL:ue(Ii,Ge,ku,mi);break;case Z3e:Ii==null&&re(Ge,ku,mi,va);break;case Vc:jt(Ii,Ge,ku,mi,Su,Cr,va,Li,li);break;default:At&1?Le(Ii,Ge,ku,mi,Su,Cr,va,Li,li):At&6?ui(Ii,Ge,ku,mi,Su,Cr,va,Li,li):(At&64||At&128)&&ci.process(Ii,Ge,ku,mi,Su,Cr,va,Li,li,Bs)}ht!=null&&Su&&YOe(ht,Ii&&Ii.ref,Cr,Ge||Ii,!Ge)},ie=(Ii,Ge,ku,mi)=>{if(Ii==null)n(Ge.el=h(Ge.children),ku,mi);else{const Su=Ge.el=Ii.el;Ge.children!==Ii.children&&_(Su,Ge.children)}},ue=(Ii,Ge,ku,mi)=>{Ii==null?n(Ge.el=g(Ge.children||""),ku,mi):Ge.el=Ii.el},re=(Ii,Ge,ku,mi)=>{[Ii.el,Ii.anchor]=R(Ii.children,Ge,ku,mi,Ii.el,Ii.anchor)},_e=({el:Ii,anchor:Ge},ku,mi)=>{let Su;for(;Ii&&Ii!==Ge;)Su=S(Ii),n(Ii,ku,mi),Ii=Su;n(Ge,ku,mi)},ye=({el:Ii,anchor:Ge})=>{let ku;for(;Ii&&Ii!==Ge;)ku=S(Ii),a(Ii),Ii=ku;a(Ge)},Le=(Ii,Ge,ku,mi,Su,Cr,va,Li,li)=>{Ge.type==="svg"?va="svg":Ge.type==="math"&&(va="mathml"),Ii==null?lt(Ge,ku,mi,Su,Cr,va,Li,li):rt(Ii,Ge,Su,Cr,va,Li,li)},lt=(Ii,Ge,ku,mi,Su,Cr,va,Li)=>{let li,ci;const{props:ht,shapeFlag:At,transition:pi,dirs:hi}=Ii;if(li=Ii.el=c(Ii.type,Cr,ht&&ht.is,ht),At&8?x(li,Ii.children):At&16&&Ze(Ii.children,li,null,mi,Su,hIe(Ii,Cr),va,Li),hi&&qz(Ii,null,mi,"created"),Ue(li,Ii,Ii.scopeId,va,mi),ht){for(const On in ht)On!=="value"&&!U3e(On)&&o(li,On,null,ht[On],Cr,Ii.children,mi,Su,qi);"value"in ht&&o(li,"value",null,ht.value,Cr),(ci=ht.onVnodeBeforeMount)&&PF(ci,mi,Ii)}hi&&qz(Ii,null,mi,"beforeMount");const cn=s1i(Su,pi);cn&&pi.beforeEnter(li),n(li,Ge,ku),((ci=ht&&ht.onVnodeMounted)||cn||hi)&&Z5(()=>{ci&&PF(ci,mi,Ii),cn&&pi.enter(li),hi&&qz(Ii,null,mi,"mounted")},Su)},Ue=(Ii,Ge,ku,mi,Su)=>{if(ku&&L(Ii,ku),mi)for(let Cr=0;Cr{for(let ci=li;ci{const Li=Ge.el=Ii.el;let{patchFlag:li,dynamicChildren:ci,dirs:ht}=Ge;li|=Ii.patchFlag&16;const At=Ii.props||em,pi=Ge.props||em;let hi;if(ku&&Zz(ku,!1),(hi=pi.onVnodeBeforeUpdate)&&PF(hi,ku,Ge,Ii),ht&&qz(Ge,Ii,ku,"beforeUpdate"),ku&&Zz(ku,!0),ci?kt(Ii.dynamicChildren,ci,Li,ku,mi,hIe(Ge,Su),Cr):va||Ir(Ii,Ge,Li,null,ku,mi,hIe(Ge,Su),Cr,!1),li>0){if(li&16)Zt(Li,Ge,At,pi,ku,mi,Su);else if(li&2&&At.class!==pi.class&&o(Li,"class",null,pi.class,Su),li&4&&o(Li,"style",At.style,pi.style,Su),li&8){const cn=Ge.dynamicProps;for(let On=0;On{hi&&PF(hi,ku,Ge,Ii),ht&&qz(Ge,Ii,ku,"updated")},mi)},kt=(Ii,Ge,ku,mi,Su,Cr,va)=>{for(let Li=0;Li{if(ku!==mi){if(ku!==em)for(const Li in ku)!U3e(Li)&&!(Li in mi)&&o(Ii,Li,ku[Li],null,va,Ge.children,Su,Cr,qi);for(const Li in mi){if(U3e(Li))continue;const li=mi[Li],ci=ku[Li];li!==ci&&Li!=="value"&&o(Ii,Li,ci,li,va,Ge.children,Su,Cr,qi)}"value"in mi&&o(Ii,"value",ku.value,mi.value,va)}},jt=(Ii,Ge,ku,mi,Su,Cr,va,Li,li)=>{const ci=Ge.el=Ii?Ii.el:h(""),ht=Ge.anchor=Ii?Ii.anchor:h("");let{patchFlag:At,dynamicChildren:pi,slotScopeIds:hi}=Ge;hi&&(Li=Li?Li.concat(hi):hi),Ii==null?(n(ci,ku,mi),n(ht,ku,mi),Ze(Ge.children||[],ku,ht,Su,Cr,va,Li,li)):At>0&&At&64&&pi&&Ii.dynamicChildren?(kt(Ii.dynamicChildren,pi,ku,Su,Cr,va,Li),(Ge.key!=null||Su&&Ge===Su.subTree)&&B6t(Ii,Ge,!0)):Ir(Ii,Ge,ku,ht,Su,Cr,va,Li,li)},ui=(Ii,Ge,ku,mi,Su,Cr,va,Li,li)=>{Ge.slotScopeIds=Li,Ii==null?Ge.shapeFlag&512?Su.ctx.activate(Ge,ku,mi,va,li):ti(Ge,ku,mi,Su,Cr,va,li):qu(Ii,Ge,li)},ti=(Ii,Ge,ku,mi,Su,Cr,va)=>{const Li=Ii.component=g1i(Ii,mi,Su);if(D6t(Ii)&&(Li.ctx.renderer=Bs),E1i(Li),Li.asyncDep){if(Su&&Su.registerDep(Li,gu),!Ii.el){const li=Li.subTree=z0(jL);ue(null,li,Ge,ku)}}else gu(Li,Ii,Ge,ku,Su,Cr,va)},qu=(Ii,Ge,ku)=>{const mi=Ge.component=Ii.component;if(ydi(Ii,Ge,ku))if(mi.asyncDep&&!mi.asyncResolved){Vt(mi,Ge,ku);return}else mi.next=Ge,Edi(mi.update),mi.effect.dirty=!0,mi.update();else Ge.el=Ii.el,mi.vnode=Ge},gu=(Ii,Ge,ku,mi,Su,Cr,va)=>{const Li=()=>{if(Ii.isMounted){let{next:ht,bu:At,u:pi,parent:hi,vnode:cn}=Ii;{const co=w6t(Ii);if(co){ht&&(ht.el=cn.el,Vt(Ii,ht,va)),co.asyncDep.then(()=>{Ii.isUnmounted||Li()});return}}let On=ht,vr;Zz(Ii,!1),ht?(ht.el=cn.el,Vt(Ii,ht,va)):ht=cn,At&&q3e(At),(vr=ht.props&&ht.props.onVnodeBeforeUpdate)&&PF(vr,hi,ht,cn),Zz(Ii,!0);const Ur=cIe(Ii),Di=Ii.subTree;Ii.subTree=Ur,G(Di,Ur,y(Di.el),Ka(Di),Ii,Su,Cr),ht.el=Ur.el,On===null&&kdi(Ii,Ur.el),pi&&Z5(pi,Su),(vr=ht.props&&ht.props.onVnodeUpdated)&&Z5(()=>PF(vr,hi,ht,cn),Su)}else{let ht;const{el:At,props:pi}=Ge,{bm:hi,m:cn,parent:On}=Ii,vr=zne(Ge);if(Zz(Ii,!1),hi&&q3e(hi),!vr&&(ht=pi&&pi.onVnodeBeforeMount)&&PF(ht,On,Ge),Zz(Ii,!0),At&&Hl){const Ur=()=>{Ii.subTree=cIe(Ii),Hl(At,Ii.subTree,Ii,Su,null)};vr?Ge.type.__asyncLoader().then(()=>!Ii.isUnmounted&&Ur()):Ur()}else{const Ur=Ii.subTree=cIe(Ii);G(null,Ur,ku,mi,Ii,Su,Cr),Ge.el=Ur.el}if(cn&&Z5(cn,Su),!vr&&(ht=pi&&pi.onVnodeMounted)){const Ur=Ge;Z5(()=>PF(ht,On,Ur),Su)}(Ge.shapeFlag&256||On&&zne(On.vnode)&&On.vnode.shapeFlag&256)&&Ii.a&&Z5(Ii.a,Su),Ii.isMounted=!0,Ge=ku=mi=null}},li=Ii.effect=new dGe(Li,GC,()=>xGe(ci),Ii.scope),ci=Ii.update=()=>{li.dirty&&li.run()};ci.id=Ii.uid,Zz(Ii,!0),ci()},Vt=(Ii,Ge,ku)=>{Ge.component=Ii;const mi=Ii.vnode.props;Ii.vnode=Ge,Ii.next=null,i1i(Ii,Ge.props,mi,ku),r1i(Ii,Ge.children,ku),WR(),Apt(Ii),GR()},Ir=(Ii,Ge,ku,mi,Su,Cr,va,Li,li=!1)=>{const ci=Ii&&Ii.children,ht=Ii?Ii.shapeFlag:0,At=Ge.children,{patchFlag:pi,shapeFlag:hi}=Ge;if(pi>0){if(pi&128){Ha(ci,At,ku,mi,Su,Cr,va,Li,li);return}else if(pi&256){Pu(ci,At,ku,mi,Su,Cr,va,Li,li);return}}hi&8?(ht&16&&qi(ci,Su,Cr),At!==ci&&x(ku,At)):ht&16?hi&16?Ha(ci,At,ku,mi,Su,Cr,va,Li,li):qi(ci,Su,Cr,!0):(ht&8&&x(ku,""),hi&16&&Ze(At,ku,mi,Su,Cr,va,Li,li))},Pu=(Ii,Ge,ku,mi,Su,Cr,va,Li,li)=>{Ii=Ii||ZG,Ge=Ge||ZG;const ci=Ii.length,ht=Ge.length,At=Math.min(ci,ht);let pi;for(pi=0;piht?qi(Ii,Su,Cr,!0,!1,At):Ze(Ge,ku,mi,Su,Cr,va,Li,li,At)},Ha=(Ii,Ge,ku,mi,Su,Cr,va,Li,li)=>{let ci=0;const ht=Ge.length;let At=Ii.length-1,pi=ht-1;for(;ci<=At&&ci<=pi;){const hi=Ii[ci],cn=Ge[ci]=li?KT(Ge[ci]):UF(Ge[ci]);if(Tie(hi,cn))G(hi,cn,ku,null,Su,Cr,va,Li,li);else break;ci++}for(;ci<=At&&ci<=pi;){const hi=Ii[At],cn=Ge[pi]=li?KT(Ge[pi]):UF(Ge[pi]);if(Tie(hi,cn))G(hi,cn,ku,null,Su,Cr,va,Li,li);else break;At--,pi--}if(ci>At){if(ci<=pi){const hi=pi+1,cn=hipi)for(;ci<=At;)Nr(Ii[ci],Su,Cr,!0),ci++;else{const hi=ci,cn=ci,On=new Map;for(ci=cn;ci<=pi;ci++){const t0=Ge[ci]=li?KT(Ge[ci]):UF(Ge[ci]);t0.key!=null&&On.set(t0.key,ci)}let vr,Ur=0;const Di=pi-cn+1;let co=!1,nl=0;const yn=new Array(Di);for(ci=0;ci=Di){Nr(t0,Su,Cr,!0);continue}let Al;if(t0.key!=null)Al=On.get(t0.key);else for(vr=cn;vr<=pi;vr++)if(yn[vr-cn]===0&&Tie(t0,Ge[vr])){Al=vr;break}Al===void 0?Nr(t0,Su,Cr,!0):(yn[Al-cn]=ci+1,Al>=nl?nl=Al:co=!0,G(t0,Ge[Al],ku,null,Su,Cr,va,Li,li),Ur++)}const Ca=co?l1i(yn):ZG;for(vr=Ca.length-1,ci=Di-1;ci>=0;ci--){const t0=cn+ci,Al=Ge[t0],Mh=t0+1{const{el:Cr,type:va,transition:Li,children:li,shapeFlag:ci}=Ii;if(ci&6){Vu(Ii.component.subTree,Ge,ku,mi);return}if(ci&128){Ii.suspense.move(Ge,ku,mi);return}if(ci&64){va.move(Ii,Ge,ku,Bs);return}if(va===Vc){n(Cr,Ge,ku);for(let At=0;AtLi.enter(Cr),Su);else{const{leave:At,delayLeave:pi,afterLeave:hi}=Li,cn=()=>n(Cr,Ge,ku),On=()=>{At(Cr,()=>{cn(),hi&&hi()})};pi?pi(Cr,cn,On):On()}else n(Cr,Ge,ku)},Nr=(Ii,Ge,ku,mi=!1,Su=!1)=>{const{type:Cr,props:va,ref:Li,children:li,dynamicChildren:ci,shapeFlag:ht,patchFlag:At,dirs:pi}=Ii;if(Li!=null&&YOe(Li,null,ku,Ii,!0),ht&256){Ge.ctx.deactivate(Ii);return}const hi=ht&1&&pi,cn=!zne(Ii);let On;if(cn&&(On=va&&va.onVnodeBeforeUnmount)&&PF(On,Ge,Ii),ht&6)Vr(Ii.component,ku,mi);else{if(ht&128){Ii.suspense.unmount(ku,mi);return}hi&&qz(Ii,null,Ge,"beforeUnmount"),ht&64?Ii.type.remove(Ii,Ge,ku,Su,Bs,mi):ci&&(Cr!==Vc||At>0&&At&64)?qi(ci,Ge,ku,!1,!0):(Cr===Vc&&At&384||!Su&&ht&16)&&qi(li,Ge,ku),mi&&ga(Ii)}(cn&&(On=va&&va.onVnodeUnmounted)||hi)&&Z5(()=>{On&&PF(On,Ge,Ii),hi&&qz(Ii,null,Ge,"unmounted")},ku)},ga=Ii=>{const{type:Ge,el:ku,anchor:mi,transition:Su}=Ii;if(Ge===Vc){R0(ku,mi);return}if(Ge===Z3e){ye(Ii);return}const Cr=()=>{a(ku),Su&&!Su.persisted&&Su.afterLeave&&Su.afterLeave()};if(Ii.shapeFlag&1&&Su&&!Su.persisted){const{leave:va,delayLeave:Li}=Su,li=()=>va(ku,Cr);Li?Li(Ii.el,Cr,li):li()}else Cr()},R0=(Ii,Ge)=>{let ku;for(;Ii!==Ge;)ku=S(Ii),a(Ii),Ii=ku;a(Ge)},Vr=(Ii,Ge,ku)=>{const{bum:mi,scope:Su,update:Cr,subTree:va,um:Li}=Ii;mi&&q3e(mi),Su.stop(),Cr&&(Cr.active=!1,Nr(va,Ii,Ge,ku)),Li&&Z5(Li,Ge),Z5(()=>{Ii.isUnmounted=!0},Ge),Ge&&Ge.pendingBranch&&!Ge.isUnmounted&&Ii.asyncDep&&!Ii.asyncResolved&&Ii.suspenseId===Ge.pendingId&&(Ge.deps--,Ge.deps===0&&Ge.resolve())},qi=(Ii,Ge,ku,mi=!1,Su=!1,Cr=0)=>{for(let va=Cr;vaIi.shapeFlag&6?Ka(Ii.component.subTree):Ii.shapeFlag&128?Ii.suspense.next():S(Ii.anchor||Ii.el);let na=!1;const _0=(Ii,Ge,ku)=>{Ii==null?Ge._vnode&&Nr(Ge._vnode,null,null,!0):G(Ge._vnode||null,Ii,Ge,null,null,null,ku),na||(na=!0,Apt(),f6t(),na=!1),Ge._vnode=Ii},Bs={p:G,um:Nr,m:Vu,r:ga,mt:ti,mc:Ze,pc:Ir,pbc:kt,n:Ka,o:r};let Pa,Hl;return e&&([Pa,Hl]=e(Bs)),{render:_0,hydrate:Pa,createApp:Qdi(_0,Pa)}}function hIe({type:r,props:e},i){return i==="svg"&&r==="foreignObject"||i==="mathml"&&r==="annotation-xml"&&e&&e.encoding&&e.encoding.includes("html")?void 0:i}function Zz({effect:r,update:e},i){r.allowRecurse=e.allowRecurse=i}function s1i(r,e){return(!r||r&&!r.pendingBranch)&&e&&!e.persisted}function B6t(r,e,i=!1){const n=r.children,a=e.children;if(W0(n)&&W0(a))for(let o=0;o>1,r[i[h]]<_?o=h+1:c=h;_0&&(e[n]=i[o-1]),i[o]=n)}}for(o=i.length,c=i[o-1];o-- >0;)i[o]=c,c=e[c];return i}function w6t(r){const e=r.subTree.component;if(e)return e.asyncDep&&!e.asyncResolved?e:w6t(e)}const c1i=r=>r.__isTeleport,Vc=Symbol.for("v-fgt"),E6e=Symbol.for("v-txt"),jL=Symbol.for("v-cmt"),Z3e=Symbol.for("v-stc"),One=[];let dy=null;function mu(r=!1){One.push(dy=r?null:[])}function d1i(){One.pop(),dy=One[One.length-1]||null}let Lue=1;function Rpt(r){Lue+=r}function T6t(r){return r.dynamicChildren=Lue>0?dy||ZG:null,d1i(),Lue>0&&dy&&dy.push(r),r}function ir(r,e,i,n,a,o){return T6t(ri(r,e,i,n,a,o,!0))}function n4(r,e,i,n,a){return T6t(z0(r,e,i,n,a,!0))}function qDe(r){return r?r.__v_isVNode===!0:!1}function Tie(r,e){return r.type===e.type&&r.key===e.key}const _6e="__vInternal",L6t=({key:r})=>r??null,Y3e=({ref:r,ref_key:e,ref_for:i})=>(typeof r=="number"&&(r=""+r),r!=null?og(r)||Ap(r)||ac(r)?{i:Kg,r,k:e,f:!!i}:r:null);function ri(r,e=null,i=null,n=0,a=null,o=r===Vc?0:1,c=!1,h=!1){const g={__v_isVNode:!0,__v_skip:!0,type:r,props:e,key:e&&L6t(e),ref:e&&Y3e(e),scopeId:m6e,slotScopeIds:null,children:i,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:Kg};return h?(kGe(g,i),o&128&&r.normalize(g)):i&&(g.shapeFlag|=og(i)?8:16),Lue>0&&!c&&dy&&(g.patchFlag>0||o&6)&&g.patchFlag!==32&&dy.push(g),g}const z0=h1i;function h1i(r,e=null,i=null,n=0,a=null,o=!1){if((!r||r===Adi)&&(r=jL),qDe(r)){const h=wJ(r,e,!0);return i&&kGe(h,i),Lue>0&&!o&&dy&&(h.shapeFlag&6?dy[dy.indexOf(r)]=h:dy.push(h)),h.patchFlag|=-2,h}if(C1i(r)&&(r=r.__vccOpts),e){e=N6t(e);let{class:h,style:g}=e;h&&!og(h)&&(e.class=sh(h)),Lf(g)&&(o6t(g)&&!W0(g)&&(g=I_({},g)),e.style=Ig(g))}const c=og(r)?1:Sdi(r)?128:c1i(r)?64:Lf(r)?4:ac(r)?2:0;return ri(r,e,i,n,a,c,o,!0)}function N6t(r){return r?o6t(r)||_6e in r?I_({},r):r:null}function wJ(r,e,i=!1){const{props:n,ref:a,patchFlag:o,children:c}=r,h=e?FGe(n||{},e):n;return{__v_isVNode:!0,__v_skip:!0,type:r.type,props:h,key:h&&L6t(h),ref:e&&e.ref?i&&a?W0(a)?a.concat(Y3e(e)):[a,Y3e(e)]:Y3e(e):a,scopeId:r.scopeId,slotScopeIds:r.slotScopeIds,children:c,target:r.target,targetAnchor:r.targetAnchor,staticCount:r.staticCount,shapeFlag:r.shapeFlag,patchFlag:e&&r.type!==Vc?o===-1?16:o|16:o,dynamicProps:r.dynamicProps,dynamicChildren:r.dynamicChildren,appContext:r.appContext,dirs:r.dirs,transition:r.transition,component:r.component,suspense:r.suspense,ssContent:r.ssContent&&wJ(r.ssContent),ssFallback:r.ssFallback&&wJ(r.ssFallback),el:r.el,anchor:r.anchor,ctx:r.ctx,ce:r.ce}}function A0(r=" ",e=0){return z0(E6e,null,r,e)}function f1i(r,e){const i=z0(Z3e,null,r);return i.staticCount=e,i}function C0(r="",e=!1){return e?(mu(),n4(jL,null,r)):z0(jL,null,r)}function UF(r){return r==null||typeof r=="boolean"?z0(jL):W0(r)?z0(Vc,null,r.slice()):typeof r=="object"?KT(r):z0(E6e,null,String(r))}function KT(r){return r.el===null&&r.patchFlag!==-1||r.memo?r:wJ(r)}function kGe(r,e){let i=0;const{shapeFlag:n}=r;if(e==null)e=null;else if(W0(e))i=16;else if(typeof e=="object")if(n&65){const a=e.default;a&&(a._c&&(a._d=!1),kGe(r,a()),a._c&&(a._d=!0));return}else{i=32;const a=e._;!a&&!(_6e in e)?e._ctx=Kg:a===3&&Kg&&(Kg.slots._===1?e._=1:(e._=2,r.patchFlag|=1024))}else ac(e)?(e={default:e,_ctx:Kg},i=32):(e=String(e),n&64?(i=16,e=[A0(e)]):i=8);r.children=e,r.shapeFlag|=i}function FGe(...r){const e={};for(let i=0;i{let a;return(a=r[i])||(a=r[i]=[]),a.push(n),o=>{a.length>1?a.forEach(c=>c(o)):a[0](o)}};ZDe=e("__VUE_INSTANCE_SETTERS__",i=>N_=i),QOe=e("__VUE_SSR_SETTERS__",i=>D6e=i)}const hae=r=>{const e=N_;return ZDe(r),r.scope.on(),()=>{r.scope.off(),ZDe(e)}},Opt=()=>{N_&&N_.scope.off(),ZDe(null)};function P6t(r){return r.vnode.shapeFlag&4}let D6e=!1;function E1i(r,e=!1){e&&QOe(e);const{props:i,children:n}=r.vnode,a=P6t(r);t1i(r,i,a,e),u1i(r,n);const o=a?_1i(r,e):void 0;return e&&QOe(!1),o}function _1i(r,e){const i=r.type;r.accessCache=Object.create(null),r.proxy=d6e(new Proxy(r.ctx,Gdi));const{setup:n}=i;if(n){const a=r.setupContext=n.length>1?x1i(r):null,o=hae(r);WR();const c=DL(n,r,0,[r.props,a]);if(GR(),o(),Oxt(c)){if(c.then(Opt,Opt),e)return c.then(h=>{jpt(r,h,e)}).catch(h=>{h6e(h,r,0)});r.asyncDep=c}else jpt(r,c,e)}else M6t(r,e)}function jpt(r,e,i){ac(e)?r.type.__ssrInlineRender?r.ssrRender=e:r.render=e:Lf(e)&&(r.setupState=c6t(e)),M6t(r,i)}let Vpt;function M6t(r,e,i){const n=r.type;if(!r.render){if(!e&&Vpt&&!n.render){const a=n.template||bGe(r).template;if(a){const{isCustomElement:o,compilerOptions:c}=r.appContext.config,{delimiters:h,compilerOptions:g}=n,_=I_(I_({isCustomElement:o,delimiters:h},c),g);n.render=Vpt(a,_)}}r.render=n.render||GC}{const a=hae(r);WR();try{Jdi(r)}finally{GR(),a()}}}function D1i(r){return r.attrsProxy||(r.attrsProxy=new Proxy(r.attrs,{get(e,i){return mx(r,"get","$attrs"),e[i]}}))}function x1i(r){const e=i=>{r.exposed=i||{}};return{get attrs(){return D1i(r)},slots:r.slots,emit:r.emit,expose:e}}function x6e(r){if(r.exposed)return r.exposeProxy||(r.exposeProxy=new Proxy(c6t(d6e(r.exposed)),{get(e,i){if(i in e)return e[i];if(i in Ine)return Ine[i](r)},has(e,i){return i in e||i in Ine}}))}function v1i(r,e=!0){return ac(r)?r.displayName||r.name:r.name||e&&r.__name}function C1i(r){return ac(r)&&"__vccOpts"in r}const j6=(r,e)=>sdi(r,e,D6e);function b1i(r,e,i){const n=arguments.length;return n===2?Lf(e)&&!W0(e)?qDe(e)?z0(r,null,[e]):z0(r,e):z0(r,null,e):(n>3?i=Array.prototype.slice.call(arguments,2):n===3&&qDe(i)&&(i=[i]),z0(r,e,i))}const y1i="3.4.13";/** * @vue/runtime-dom v3.4.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/const v1i="http://www.w3.org/2000/svg",C1i="http://www.w3.org/1998/Math/MathML",WT=typeof document<"u"?document:null,Ipt=WT&&WT.createElement("template"),b1i={insert:(r,e,i)=>{e.insertBefore(r,i||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,i,n)=>{const a=e==="svg"?WT.createElementNS(v1i,r):e==="mathml"?WT.createElementNS(C1i,r):WT.createElement(r,i?{is:i}:void 0);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>WT.createTextNode(r),createComment:r=>WT.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>WT.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,i,n,a,o){const c=i?i.previousSibling:e.lastChild;if(a&&(a===o||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),i),!(a===o||!(a=a.nextSibling)););else{Ipt.innerHTML=n==="svg"?`${r}`:n==="mathml"?`${r}`:r;const h=Ipt.content;if(n==="svg"||n==="mathml"){const g=h.firstChild;for(;g.firstChild;)h.appendChild(g.firstChild);h.removeChild(g)}e.insertBefore(h,i)}return[c?c.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},y1i=Symbol("_vtc");function k1i(r,e,i){const n=r[y1i];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):i?r.setAttribute("class",e):r.className=e}const F1i=Symbol("_vod"),A1i=Symbol("");function S1i(r,e,i){const n=r.style,a=n.display,o=og(i);if(i&&!o){if(e&&!og(e))for(const c in e)i[c]==null&&$Oe(n,c,"");for(const c in i)$Oe(n,c,i[c])}else if(o){if(e!==i){const c=n[A1i];c&&(i+=";"+c),n.cssText=i}}else e&&r.removeAttribute("style");F1i in r&&(n.display=a)}const Rpt=/\s*!important$/;function $Oe(r,e,i){if(H0(i))i.forEach(n=>$Oe(r,e,n));else if(i==null&&(i=""),e.startsWith("--"))r.setProperty(e,i);else{const n=B1i(r,e);Rpt.test(i)?r.setProperty(HR(n),i.replace(Rpt,""),"important"):r[n]=i}}const Opt=["Webkit","Moz","ms"],oIe={};function B1i(r,e){const i=oIe[e];if(i)return i;let n=FA(e);if(n!=="filter"&&n in r)return oIe[e]=n;n=r6e(n);for(let a=0;asIe||(M1i.then(()=>sIe=0),sIe=Date.now());function I1i(r,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;Ey(R1i(n,i.value),e,5,[n])};return i.value=r,i.attached=z1i(),i}function R1i(r,e){if(H0(e)){const i=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const Kpt=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,O1i=(r,e,i,n,a,o,c,h,g)=>{const _=a==="svg";e==="class"?k1i(r,n,_):e==="style"?S1i(r,i,n):i6e(e)?iGe(e)||N1i(r,e,i,n,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):j1i(r,e,n,_))?T1i(r,e,n,o,c,h,g):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),w1i(r,e,n,_))};function j1i(r,e,i,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in r&&Kpt(e)&&rc(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Kpt(e)&&og(i)?!1:e in r}const wJ=r=>{const e=r.props["onUpdate:modelValue"]||!1;return H0(e)?i=>J3e(e,i):e};function V1i(r){r.target.composing=!0}function Wpt(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const JS=Symbol("_assign"),GC={created(r,{modifiers:{lazy:e,trim:i,number:n}},a){r[JS]=wJ(a);const o=n||a.props&&a.props.type==="number";qT(r,e?"change":"input",c=>{if(c.target.composing)return;let h=r.value;i&&(h=h.trim()),o&&(h=MOe(h)),r[JS](h)}),i&&qT(r,"change",()=>{r.value=r.value.trim()}),e||(qT(r,"compositionstart",V1i),qT(r,"compositionend",Wpt),qT(r,"change",Wpt))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:i,trim:n,number:a}},o){if(r[JS]=wJ(o),r.composing)return;const c=a||r.type==="number"?MOe(r.value):r.value,h=e??"";c!==h&&(document.activeElement===r&&r.type!=="range"&&(i||n&&r.value.trim()===h)||(r.value=h))}},vGe={deep:!0,created(r,e,i){r[JS]=wJ(i),qT(r,"change",()=>{const n=r._modelValue,a=T6t(r),o=r.checked,c=r[JS];if(H0(n)){const h=Oxt(n,a),g=h!==-1;if(o&&!g)c(n.concat(a));else if(!o&&g){const _=[...n];_.splice(h,1),c(_)}}else if(n6e(n)){const h=new Set(n);o?h.add(a):h.delete(a),c(h)}else c(L6t(r,o))})},mounted:Gpt,beforeUpdate(r,e,i){r[JS]=wJ(i),Gpt(r,e,i)}};function Gpt(r,{value:e,oldValue:i},n){r._modelValue=e,H0(e)?r.checked=Oxt(e,n.props.value)>-1:n6e(e)?r.checked=e.has(n.props.value):e!==i&&(r.checked=AJ(e,L6t(r,!0)))}const v_e={created(r,{value:e},i){r.checked=AJ(e,i.props.value),r[JS]=wJ(i),qT(r,"change",()=>{r[JS](T6t(r))})},beforeUpdate(r,{value:e,oldValue:i},n){r[JS]=wJ(n),e!==i&&(r.checked=AJ(e,n.props.value))}};function T6t(r){return"_value"in r?r._value:r.value}function L6t(r,e){const i=e?"_trueValue":"_falseValue";return i in r?r[i]:e}const H1i=["ctrl","shift","alt","meta"],K1i={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>H1i.some(i=>r[`${i}Key`]&&!e.includes(i))},W1i=(r,e)=>{const i=r._withMods||(r._withMods={}),n=e.join(".");return i[n]||(i[n]=(a,...o)=>{for(let c=0;c{const i=r._withKeys||(r._withKeys={}),n=e.join(".");return i[n]||(i[n]=a=>{if(!("key"in a))return;const o=HR(a.key);if(e.some(c=>c===o||G1i[c]===o))return r(a)})},J1i=z_({patchProp:O1i},b1i);let Jpt;function $1i(){return Jpt||(Jpt=i1i(J1i))}const N6t=(...r)=>{const e=$1i().createApp(...r),{mount:i}=e;return e.mount=n=>{const a=q1i(n);if(!a)return;const o=e._component;!rc(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const c=i(a,!1,U1i(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},e};function U1i(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function q1i(r){return og(r)?document.querySelector(r):r}const Z1i=""+new URL("../logdy-transparent.png",import.meta.url).href,$pt="logdy";let bGe=class{constructor(e){Oc(this,"lastInsertAt","");Oc(this,"sameInserts",0);Oc(this,"keys",[]);this.prefix=e}clear(){this.lastInsertAt="",this.sameInserts=0,this.keys=[]}startClearingUnknowns(){setInterval(()=>{this.clearUnknown()},10*1e3)}clearUnknown(){for(let e in localStorage)this.doesBelong(e)&&!this.keys.includes(e)&&localStorage.removeItem(e)}doesBelong(e){return e.startsWith($pt+"_"+this.prefix+"_")}id(e){return $pt+"_"+this.prefix+"_"+e}load(){this.clear();for(let e in localStorage)this.doesBelong(e)&&(this.lastInsertAt=e,this.keys.push(e));return this.keys.sort().map(e=>JSON.parse(localStorage.getItem(e)))}count(){let e=0;for(let i in localStorage)this.doesBelong(i)&&e++;return e}getOne(e){let i=localStorage.getItem(this.id(e));return i?JSON.parse(i):void 0}add(e,i){let n=new Date().getTime().toString();n===this.lastInsertAt&&(n=n+"."+(++this.sameInserts).toString());let a=this.id(i||n);return e.id=a,localStorage.setItem(a,JSON.stringify(e)),this.lastInsertAt=n,this.keys.push(a),{id:n.toString()}}update(e,i){localStorage.setItem(this.id(e),JSON.stringify(i))}remove(e){let i=this.id(e);localStorage.removeItem(i);let n=this.keys.indexOf(i);this.keys.splice(n,1)}removeAll(){for(let e in this.keys)localStorage.removeItem(this.keys[e]);this.keys=[]}removeFirst(){localStorage.removeItem(this.keys[0]),this.keys.splice(0,1)}};const Upt=new bGe("app"),ZT=new bGe("logs"),DI=new bGe("layout"),I4=(r,e)=>{const i=r.__vccOpts||r;for(const[n,a]of e)i[n]=a;return i},Y1i={},Q1i={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X1i=si("path",{d:"M11.0001 3.67157L13.0001 3.67157L13.0001 16.4999L16.2426 13.2574L17.6568 14.6716L12 20.3284L6.34314 14.6716L7.75735 13.2574L11.0001 16.5001L11.0001 3.67157Z",fill:"currentColor"},null,-1),ehi=[X1i];function thi(r,e){return Mu(),vr("svg",Q1i,ehi)}const ihi=I4(Y1i,[["render",thi]]),nhi={},uhi={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rhi=si("path",{d:"M17.6568 8.96219L16.2393 10.3731L12.9843 7.10285L12.9706 20.7079L10.9706 20.7059L10.9843 7.13806L7.75404 10.3532L6.34314 8.93572L12.0132 3.29211L17.6568 8.96219Z",fill:"currentColor"},null,-1),ahi=[rhi];function ohi(r,e){return Mu(),vr("svg",uhi,ahi)}const shi=I4(nhi,[["render",ohi]]),lhi={},chi={width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dhi=si("path",{d:"M8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H15.9595C16.5118 13 16.9595 12.5523 16.9595 12C16.9595 11.4477 16.5118 11 15.9595 11H8Z",fill:"currentColor"},null,-1),hhi=si("path",{d:"M8.04053 15.0665C7.48824 15.0665 7.04053 15.5142 7.04053 16.0665C7.04053 16.6188 7.48824 17.0665 8.04053 17.0665H16C16.5523 17.0665 17 16.6188 17 16.0665C17 15.5142 16.5523 15.0665 16 15.0665H8.04053Z",fill:"currentColor"},null,-1),fhi=si("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5ZM7 5H5L5 19H19V5H17V6C17 7.65685 15.6569 9 14 9H10C8.34315 9 7 7.65685 7 6V5ZM9 5V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V5H9Z",fill:"currentColor"},null,-1),mhi=[dhi,hhi,fhi];function phi(r,e){return Mu(),vr("svg",chi,mhi)}const CT=I4(lhi,[["render",phi]]);var ghi=!1;/*! +**/const k1i="http://www.w3.org/2000/svg",F1i="http://www.w3.org/1998/Math/MathML",WT=typeof document<"u"?document:null,Hpt=WT&&WT.createElement("template"),A1i={insert:(r,e,i)=>{e.insertBefore(r,i||null)},remove:r=>{const e=r.parentNode;e&&e.removeChild(r)},createElement:(r,e,i,n)=>{const a=e==="svg"?WT.createElementNS(k1i,r):e==="mathml"?WT.createElementNS(F1i,r):WT.createElement(r,i?{is:i}:void 0);return r==="select"&&n&&n.multiple!=null&&a.setAttribute("multiple",n.multiple),a},createText:r=>WT.createTextNode(r),createComment:r=>WT.createComment(r),setText:(r,e)=>{r.nodeValue=e},setElementText:(r,e)=>{r.textContent=e},parentNode:r=>r.parentNode,nextSibling:r=>r.nextSibling,querySelector:r=>WT.querySelector(r),setScopeId(r,e){r.setAttribute(e,"")},insertStaticContent(r,e,i,n,a,o){const c=i?i.previousSibling:e.lastChild;if(a&&(a===o||a.nextSibling))for(;e.insertBefore(a.cloneNode(!0),i),!(a===o||!(a=a.nextSibling)););else{Hpt.innerHTML=n==="svg"?`${r}`:n==="mathml"?`${r}`:r;const h=Hpt.content;if(n==="svg"||n==="mathml"){const g=h.firstChild;for(;g.firstChild;)h.appendChild(g.firstChild);h.removeChild(g)}e.insertBefore(h,i)}return[c?c.nextSibling:e.firstChild,i?i.previousSibling:e.lastChild]}},S1i=Symbol("_vtc");function B1i(r,e,i){const n=r[S1i];n&&(e=(e?[e,...n]:[...n]).join(" ")),e==null?r.removeAttribute("class"):i?r.setAttribute("class",e):r.className=e}const w1i=Symbol("_vod"),T1i=Symbol("");function L1i(r,e,i){const n=r.style,a=n.display,o=og(i);if(i&&!o){if(e&&!og(e))for(const c in e)i[c]==null&&XOe(n,c,"");for(const c in i)XOe(n,c,i[c])}else if(o){if(e!==i){const c=n[T1i];c&&(i+=";"+c),n.cssText=i}}else e&&r.removeAttribute("style");w1i in r&&(n.display=a)}const Kpt=/\s*!important$/;function XOe(r,e,i){if(W0(i))i.forEach(n=>XOe(r,e,n));else if(i==null&&(i=""),e.startsWith("--"))r.setProperty(e,i);else{const n=N1i(r,e);Kpt.test(i)?r.setProperty(KR(n),i.replace(Kpt,""),"important"):r[n]=i}}const Wpt=["Webkit","Moz","ms"],fIe={};function N1i(r,e){const i=fIe[e];if(i)return i;let n=FA(e);if(n!=="filter"&&n in r)return fIe[e]=n;n=l6e(n);for(let a=0;amIe||(O1i.then(()=>mIe=0),mIe=Date.now());function V1i(r,e){const i=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=i.attached)return;_y(H1i(n,i.value),e,5,[n])};return i.value=r,i.attached=j1i(),i}function H1i(r,e){if(W0(e)){const i=r.stopImmediatePropagation;return r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0},e.map(n=>a=>!a._stopped&&n&&n(a))}else return e}const Upt=r=>r.charCodeAt(0)===111&&r.charCodeAt(1)===110&&r.charCodeAt(2)>96&&r.charCodeAt(2)<123,K1i=(r,e,i,n,a,o,c,h,g)=>{const _=a==="svg";e==="class"?B1i(r,n,_):e==="style"?L1i(r,i,n):a6e(e)?sGe(e)||I1i(r,e,i,n,c):(e[0]==="."?(e=e.slice(1),!0):e[0]==="^"?(e=e.slice(1),!1):W1i(r,e,n,_))?M1i(r,e,n,o,c,h,g):(e==="true-value"?r._trueValue=n:e==="false-value"&&(r._falseValue=n),P1i(r,e,n,_))};function W1i(r,e,i,n){if(n)return!!(e==="innerHTML"||e==="textContent"||e in r&&Upt(e)&&ac(i));if(e==="spellcheck"||e==="draggable"||e==="translate"||e==="form"||e==="list"&&r.tagName==="INPUT"||e==="type"&&r.tagName==="TEXTAREA")return!1;if(e==="width"||e==="height"){const a=r.tagName;if(a==="IMG"||a==="VIDEO"||a==="CANVAS"||a==="SOURCE")return!1}return Upt(e)&&og(i)?!1:e in r}const TJ=r=>{const e=r.props["onUpdate:modelValue"]||!1;return W0(e)?i=>q3e(e,i):e};function G1i(r){r.target.composing=!0}function qpt(r){const e=r.target;e.composing&&(e.composing=!1,e.dispatchEvent(new Event("input")))}const JS=Symbol("_assign"),JC={created(r,{modifiers:{lazy:e,trim:i,number:n}},a){r[JS]=TJ(a);const o=n||a.props&&a.props.type==="number";qT(r,e?"change":"input",c=>{if(c.target.composing)return;let h=r.value;i&&(h=h.trim()),o&&(h=VOe(h)),r[JS](h)}),i&&qT(r,"change",()=>{r.value=r.value.trim()}),e||(qT(r,"compositionstart",G1i),qT(r,"compositionend",qpt),qT(r,"change",qpt))},mounted(r,{value:e}){r.value=e??""},beforeUpdate(r,{value:e,modifiers:{lazy:i,trim:n,number:a}},o){if(r[JS]=TJ(o),r.composing)return;const c=a||r.type==="number"?VOe(r.value):r.value,h=e??"";c!==h&&(document.activeElement===r&&r.type!=="range"&&(i||n&&r.value.trim()===h)||(r.value=h))}},AGe={deep:!0,created(r,e,i){r[JS]=TJ(i),qT(r,"change",()=>{const n=r._modelValue,a=z6t(r),o=r.checked,c=r[JS];if(W0(n)){const h=Wxt(n,a),g=h!==-1;if(o&&!g)c(n.concat(a));else if(!o&&g){const _=[...n];_.splice(h,1),c(_)}}else if(o6e(n)){const h=new Set(n);o?h.add(a):h.delete(a),c(h)}else c(I6t(r,o))})},mounted:Zpt,beforeUpdate(r,e,i){r[JS]=TJ(i),Zpt(r,e,i)}};function Zpt(r,{value:e,oldValue:i},n){r._modelValue=e,W0(e)?r.checked=Wxt(e,n.props.value)>-1:o6e(e)?r.checked=e.has(n.props.value):e!==i&&(r.checked=SJ(e,I6t(r,!0)))}const b_e={created(r,{value:e},i){r.checked=SJ(e,i.props.value),r[JS]=TJ(i),qT(r,"change",()=>{r[JS](z6t(r))})},beforeUpdate(r,{value:e,oldValue:i},n){r[JS]=TJ(n),e!==i&&(r.checked=SJ(e,n.props.value))}};function z6t(r){return"_value"in r?r._value:r.value}function I6t(r,e){const i=e?"_trueValue":"_falseValue";return i in r?r[i]:e}const J1i=["ctrl","shift","alt","meta"],$1i={stop:r=>r.stopPropagation(),prevent:r=>r.preventDefault(),self:r=>r.target!==r.currentTarget,ctrl:r=>!r.ctrlKey,shift:r=>!r.shiftKey,alt:r=>!r.altKey,meta:r=>!r.metaKey,left:r=>"button"in r&&r.button!==0,middle:r=>"button"in r&&r.button!==1,right:r=>"button"in r&&r.button!==2,exact:(r,e)=>J1i.some(i=>r[`${i}Key`]&&!e.includes(i))},y_e=(r,e)=>{const i=r._withMods||(r._withMods={}),n=e.join(".");return i[n]||(i[n]=(a,...o)=>{for(let c=0;c{const i=r._withKeys||(r._withKeys={}),n=e.join(".");return i[n]||(i[n]=a=>{if(!("key"in a))return;const o=KR(a.key);if(e.some(c=>c===o||U1i[c]===o))return r(a)})},q1i=I_({patchProp:K1i},A1i);let Ypt;function Z1i(){return Ypt||(Ypt=a1i(q1i))}const R6t=(...r)=>{const e=Z1i().createApp(...r),{mount:i}=e;return e.mount=n=>{const a=Q1i(n);if(!a)return;const o=e._component;!ac(o)&&!o.render&&!o.template&&(o.template=a.innerHTML),a.innerHTML="";const c=i(a,!1,Y1i(a));return a instanceof Element&&(a.removeAttribute("v-cloak"),a.setAttribute("data-v-app","")),c},e};function Y1i(r){if(r instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&r instanceof MathMLElement)return"mathml"}function Q1i(r){return og(r)?document.querySelector(r):r}const X1i=""+new URL("../logdy-transparent.png",import.meta.url).href,Qpt="logdy";let v6e=class{constructor(e){pc(this,"lastInsertAt","");pc(this,"sameInserts",0);pc(this,"keys",[]);this.prefix=e}clear(){this.lastInsertAt="",this.sameInserts=0,this.keys=[]}startClearingUnknowns(){setInterval(()=>{this.clearUnknown()},10*1e3)}clearUnknown(){for(let e in localStorage)this.doesBelong(e)&&!this.keys.includes(e)&&localStorage.removeItem(e)}doesBelong(e){return e.startsWith(Qpt+"_"+this.prefix+"_")}id(e){return Qpt+"_"+this.prefix+"_"+e}load(){this.clear();for(let e in localStorage)this.doesBelong(e)&&(this.lastInsertAt=e,this.keys.push(e));return this.keys.sort().map(e=>JSON.parse(localStorage.getItem(e)))}count(){let e=0;for(let i in localStorage)this.doesBelong(i)&&e++;return e}getOne(e){let i=localStorage.getItem(this.id(e));return i?JSON.parse(i):void 0}add(e,i){let n=new Date().getTime().toString();n===this.lastInsertAt&&(n=n+"."+(++this.sameInserts).toString());let a=this.id(i||n);return e.id=a,localStorage.setItem(a,JSON.stringify(e)),this.lastInsertAt=n,this.keys.push(a),{id:n.toString()}}update(e,i){localStorage.setItem(this.id(e),JSON.stringify(i))}upsert(e,i){if(typeof i!="object")throw new Error("upsert is only available for objects");let n=this.getOne(e);n?this.update(e,{...n,...i}):this.add(i,e)}remove(e){let i=this.id(e);localStorage.removeItem(i);let n=this.keys.indexOf(i);this.keys.splice(n,1)}removeAll(){for(let e in this.keys)localStorage.removeItem(this.keys[e]);this.keys=[]}removeFirst(){localStorage.removeItem(this.keys[0]),this.keys.splice(0,1)}};const Xpt=new v6e("app"),ZT=new v6e("logs"),xI=new v6e("layout"),Am=(r,e)=>{const i=r.__vccOpts||r;for(const[n,a]of e)i[n]=a;return i},ehi={},thi={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ihi=ri("path",{d:"M11.0001 3.67157L13.0001 3.67157L13.0001 16.4999L16.2426 13.2574L17.6568 14.6716L12 20.3284L6.34314 14.6716L7.75735 13.2574L11.0001 16.5001L11.0001 3.67157Z",fill:"currentColor"},null,-1),nhi=[ihi];function uhi(r,e){return mu(),ir("svg",thi,nhi)}const rhi=Am(ehi,[["render",uhi]]),ahi={},ohi={class:"kdb",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},shi=ri("path",{d:"M17.6568 8.96219L16.2393 10.3731L12.9843 7.10285L12.9706 20.7079L10.9706 20.7059L10.9843 7.13806L7.75404 10.3532L6.34314 8.93572L12.0132 3.29211L17.6568 8.96219Z",fill:"currentColor"},null,-1),lhi=[shi];function chi(r,e){return mu(),ir("svg",ohi,lhi)}const dhi=Am(ahi,[["render",chi]]),hhi={},fhi={width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mhi=ri("path",{d:"M8 11C7.44772 11 7 11.4477 7 12C7 12.5523 7.44772 13 8 13H15.9595C16.5118 13 16.9595 12.5523 16.9595 12C16.9595 11.4477 16.5118 11 15.9595 11H8Z",fill:"currentColor"},null,-1),phi=ri("path",{d:"M8.04053 15.0665C7.48824 15.0665 7.04053 15.5142 7.04053 16.0665C7.04053 16.6188 7.48824 17.0665 8.04053 17.0665H16C16.5523 17.0665 17 16.6188 17 16.0665C17 15.5142 16.5523 15.0665 16 15.0665H8.04053Z",fill:"currentColor"},null,-1),ghi=ri("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 3C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5ZM7 5H5L5 19H19V5H17V6C17 7.65685 15.6569 9 14 9H10C8.34315 9 7 7.65685 7 6V5ZM9 5V6C9 6.55228 9.44772 7 10 7H14C14.5523 7 15 6.55228 15 6V5H9Z",fill:"currentColor"},null,-1),Ehi=[mhi,phi,ghi];function _hi(r,e){return mu(),ir("svg",fhi,Ehi)}const CT=Am(hhi,[["render",_hi]]);var Dhi=!1;/*! * pinia v2.1.7 * (c) 2023 Eduardo San Martin Morote * @license MIT - */let P6t;const E6e=r=>P6t=r,M6t=Symbol();function UOe(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var Ine;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(Ine||(Ine={}));function Ehi(){const r=Hxt(!0),e=r.run(()=>ds({}));let i=[],n=[];const a=o6e({install(o){E6e(a),a._a=o,o.provide(M6t,a),o.config.globalProperties.$pinia=a,n.forEach(c=>i.push(c)),n=[]},use(o){return!this._a&&!ghi?n.push(o):i.push(o),this},_p:i,_a:null,_e:r,_s:new Map,state:e});return a}const z6t=()=>{};function qpt(r,e,i,n=z6t){r.push(e);const a=()=>{const o=r.indexOf(e);o>-1&&(r.splice(o,1),n())};return!i&&Kxt()&&zci(a),a}function KW(r,...e){r.slice().forEach(i=>{i(...e)})}const _hi=r=>r();function qOe(r,e){r instanceof Map&&e instanceof Map&&e.forEach((i,n)=>r.set(n,i)),r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const i in e){if(!e.hasOwnProperty(i))continue;const n=e[i],a=r[i];UOe(a)&&UOe(n)&&r.hasOwnProperty(i)&&!kp(n)&&!EL(n)?r[i]=qOe(a,n):r[i]=n}return r}const Dhi=Symbol();function xhi(r){return!UOe(r)||!r.hasOwnProperty(Dhi)}const{assign:TT}=Object;function vhi(r){return!!(kp(r)&&r.effect)}function Chi(r,e,i,n){const{state:a,actions:o,getters:c}=e,h=i.state.value[r];let g;function _(){h||(i.state.value[r]=a?a():{});const x=sdi(i.state.value[r]);return TT(x,o,Object.keys(c||{}).reduce((y,S)=>(y[S]=o6e(j6(()=>{E6e(i);const L=i._s.get(r);return c[S].call(L,L)})),y),{}))}return g=I6t(r,_,e,i,n,!0),g}function I6t(r,e,i={},n,a,o){let c;const h=TT({actions:{}},i),g={deep:!0};let _,x,y=[],S=[],L;const O=n.state.value[r];!o&&!O&&(n.state.value[r]={}),ds({});let G;function ie(Ze){let rt;_=x=!1,typeof Ze=="function"?(Ze(n.state.value[r]),rt={type:Ine.patchFunction,storeId:r,events:L}):(qOe(n.state.value[r],Ze),rt={type:Ine.patchObject,payload:Ze,storeId:r,events:L});const kt=G=Symbol();fGe().then(()=>{G===kt&&(_=!0)}),x=!0,KW(y,rt,n.state.value[r])}const ue=o?function(){const{state:rt}=i,kt=rt?rt():{};this.$patch(Zt=>{TT(Zt,kt)})}:z6t;function re(){c.stop(),y=[],S=[],n._s.delete(r)}function _e(Ze,rt){return function(){E6e(n);const kt=Array.from(arguments),Zt=[],jt=[];function ui(pu){Zt.push(pu)}function ti(pu){jt.push(pu)}KW(S,{args:kt,name:Ze,store:Le,after:ui,onError:ti});let Uu;try{Uu=rt.apply(this&&this.$id===r?this:Le,kt)}catch(pu){throw KW(jt,pu),pu}return Uu instanceof Promise?Uu.then(pu=>(KW(Zt,pu),pu)).catch(pu=>(KW(jt,pu),Promise.reject(pu))):(KW(Zt,Uu),Uu)}}const ye={_p:n,$id:r,$onAction:qpt.bind(null,S),$patch:ie,$reset:ue,$subscribe(Ze,rt={}){const kt=qpt(y,Ze,rt.detached,()=>Zt()),Zt=c.run(()=>_A(()=>n.state.value[r],jt=>{(rt.flush==="sync"?x:_)&&Ze({storeId:r,type:Ine.direct,events:L},jt)},TT({},g,rt)));return kt},$dispose:re},Le=lae(ye);n._s.set(r,Le);const Ue=(n._a&&n._a.runWithContext||_hi)(()=>n._e.run(()=>(c=Hxt()).run(e)));for(const Ze in Ue){const rt=Ue[Ze];if(kp(rt)&&!vhi(rt)||EL(rt))o||(O&&xhi(rt)&&(kp(rt)?rt.value=O[Ze]:qOe(rt,O[Ze])),n.state.value[r][Ze]=rt);else if(typeof rt=="function"){const kt=_e(Ze,rt);Ue[Ze]=kt,h.actions[Ze]=rt}}return TT(Le,Ue),TT(s1(Le),Ue),Object.defineProperty(Le,"$state",{get:()=>n.state.value[r],set:Ze=>{ie(rt=>{TT(rt,Ze)})}}),n._p.forEach(Ze=>{TT(Le,c.run(()=>Ze({store:Le,app:n._a,pinia:n,options:h})))}),O&&o&&i.hydrate&&i.hydrate(Le.$state,O),_=!0,x=!0,Le}function R6t(r,e,i){let n,a;const o=typeof e=="function";typeof r=="string"?(n=r,a=o?i:e):(a=r,n=r.id);function c(h,g){const _=Zdi();return h=h||(_?Mne(M6t,null):null),h&&E6e(h),h=P6t,h._s.has(n)||(o?I6t(n,e,a,h):Chi(n,a,h)),h._s.get(n)}return c.$id=n,c}var Zpt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bhi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function yhi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var i=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),i}function Ypt(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var O6t={exports:{}};const khi={},Fhi=Object.freeze(Object.defineProperty({__proto__:null,default:khi},Symbol.toStringTag,{value:"Module"})),rS=yhi(Fhi);(function(r){var e={};/*! ***************************************************************************** + */let O6t;const C6e=r=>O6t=r,j6t=Symbol();function eje(r){return r&&typeof r=="object"&&Object.prototype.toString.call(r)==="[object Object]"&&typeof r.toJSON!="function"}var jne;(function(r){r.direct="direct",r.patchObject="patch object",r.patchFunction="patch function"})(jne||(jne={}));function xhi(){const r=$xt(!0),e=r.run(()=>Io({}));let i=[],n=[];const a=d6e({install(o){C6e(a),a._a=o,o.provide(j6t,a),o.config.globalProperties.$pinia=a,n.forEach(c=>i.push(c)),n=[]},use(o){return!this._a&&!Dhi?n.push(o):i.push(o),this},_p:i,_a:null,_e:r,_s:new Map,state:e});return a}const V6t=()=>{};function egt(r,e,i,n=V6t){r.push(e);const a=()=>{const o=r.indexOf(e);o>-1&&(r.splice(o,1),n())};return!i&&Uxt()&&jci(a),a}function WW(r,...e){r.slice().forEach(i=>{i(...e)})}const vhi=r=>r();function tje(r,e){r instanceof Map&&e instanceof Map&&e.forEach((i,n)=>r.set(n,i)),r instanceof Set&&e instanceof Set&&e.forEach(r.add,r);for(const i in e){if(!e.hasOwnProperty(i))continue;const n=e[i],a=r[i];eje(a)&&eje(n)&&r.hasOwnProperty(i)&&!Ap(n)&&!_L(n)?r[i]=tje(a,n):r[i]=n}return r}const Chi=Symbol();function bhi(r){return!eje(r)||!r.hasOwnProperty(Chi)}const{assign:TT}=Object;function yhi(r){return!!(Ap(r)&&r.effect)}function khi(r,e,i,n){const{state:a,actions:o,getters:c}=e,h=i.state.value[r];let g;function _(){h||(i.state.value[r]=a?a():{});const x=hdi(i.state.value[r]);return TT(x,o,Object.keys(c||{}).reduce((y,S)=>(y[S]=d6e(j6(()=>{C6e(i);const L=i._s.get(r);return c[S].call(L,L)})),y),{}))}return g=H6t(r,_,e,i,n,!0),g}function H6t(r,e,i={},n,a,o){let c;const h=TT({actions:{}},i),g={deep:!0};let _,x,y=[],S=[],L;const R=n.state.value[r];!o&&!R&&(n.state.value[r]={}),Io({});let G;function ie(Ze){let rt;_=x=!1,typeof Ze=="function"?(Ze(n.state.value[r]),rt={type:jne.patchFunction,storeId:r,events:L}):(tje(n.state.value[r],Ze),rt={type:jne.patchObject,payload:Ze,storeId:r,events:L});const kt=G=Symbol();DGe().then(()=>{G===kt&&(_=!0)}),x=!0,WW(y,rt,n.state.value[r])}const ue=o?function(){const{state:rt}=i,kt=rt?rt():{};this.$patch(Zt=>{TT(Zt,kt)})}:V6t;function re(){c.stop(),y=[],S=[],n._s.delete(r)}function _e(Ze,rt){return function(){C6e(n);const kt=Array.from(arguments),Zt=[],jt=[];function ui(gu){Zt.push(gu)}function ti(gu){jt.push(gu)}WW(S,{args:kt,name:Ze,store:Le,after:ui,onError:ti});let qu;try{qu=rt.apply(this&&this.$id===r?this:Le,kt)}catch(gu){throw WW(jt,gu),gu}return qu instanceof Promise?qu.then(gu=>(WW(Zt,gu),gu)).catch(gu=>(WW(jt,gu),Promise.reject(gu))):(WW(Zt,qu),qu)}}const ye={_p:n,$id:r,$onAction:egt.bind(null,S),$patch:ie,$reset:ue,$subscribe(Ze,rt={}){const kt=egt(y,Ze,rt.detached,()=>Zt()),Zt=c.run(()=>_A(()=>n.state.value[r],jt=>{(rt.flush==="sync"?x:_)&&Ze({storeId:r,type:jne.direct,events:L},jt)},TT({},g,rt)));return kt},$dispose:re},Le=x$(ye);n._s.set(r,Le);const Ue=(n._a&&n._a.runWithContext||vhi)(()=>n._e.run(()=>(c=$xt()).run(e)));for(const Ze in Ue){const rt=Ue[Ze];if(Ap(rt)&&!yhi(rt)||_L(rt))o||(R&&bhi(rt)&&(Ap(rt)?rt.value=R[Ze]:tje(rt,R[Ze])),n.state.value[r][Ze]=rt);else if(typeof rt=="function"){const kt=_e(Ze,rt);Ue[Ze]=kt,h.actions[Ze]=rt}}return TT(Le,Ue),TT(l1(Le),Ue),Object.defineProperty(Le,"$state",{get:()=>n.state.value[r],set:Ze=>{ie(rt=>{TT(rt,Ze)})}}),n._p.forEach(Ze=>{TT(Le,c.run(()=>Ze({store:Le,app:n._a,pinia:n,options:h})))}),R&&o&&i.hydrate&&i.hydrate(Le.$state,R),_=!0,x=!0,Le}function b6e(r,e,i){let n,a;const o=typeof e=="function";typeof r=="string"?(n=r,a=o?i:e):(a=r,n=r.id);function c(h,g){const _=e1i();return h=h||(_?Rne(j6t,null):null),h&&C6e(h),h=O6t,h._s.has(n)||(o?H6t(n,e,a,h):khi(n,a,h)),h._s.get(n)}return c.$id=n,c}var tgt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Fhi(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ahi(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var i=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};i.prototype=e.prototype}else i={};return Object.defineProperty(i,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(i,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),i}function igt(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var K6t={exports:{}};const Shi={},Bhi=Object.freeze(Object.defineProperty({__proto__:null,default:Shi},Symbol.toStringTag,{value:"Module"})),rS=Ahi(Bhi);(function(r){var e={};/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the @@ -31,43 +31,43 @@ var xci=Object.defineProperty;var vci=(r,e,i)=>e in r?xci(r,e,{enumerable:!0,con See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. - ***************************************************************************** */var i=(()=>{var n=Object.defineProperty,a=Object.getOwnPropertyNames,o=(t,u)=>function(){return t&&(u=(0,t[a(t)[0]])(t=0)),u},c=(t,u)=>function(){return u||(0,t[a(t)[0]])((u={exports:{}}).exports,u),u.exports},h=(t,u)=>{for(var s in u)n(t,s,{get:u[s],enumerable:!0})},g,_,x,y=o({"src/compiler/corePublic.ts"(){g="5.3",_="5.3.3",x=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(x||{})}});function S(t){return t?t.length:0}function L(t,u){if(t)for(let s=0;s=0;s--){const d=u(t[s],s);if(d)return d}}function G(t,u){if(t!==void 0)for(let s=0;s=0;d--){const f=t[d];if(u(f,d))return f}}function Ue(t,u,s){if(t===void 0)return-1;for(let d=s??0;d=0;d--)if(u(t[d],d))return d;return-1}function rt(t,u){for(let s=0;ss(d,u[f]))}function jt(t,u,s){for(let d=s||0;d{const p=u(f,d);if(p!==void 0){const[E,v]=p;E!==void 0&&v!==void 0&&s.set(E,v)}}),s}function W0(t,u,s){if(t.has(u))return t.get(u);const d=s();return t.set(u,d),d}function r0(t,u){return t.has(u)?!1:(t.add(u),!0)}function*qa(t){yield t}function Hl(t,u,s){let d;if(t){d=[];const f=t.length;let p,E,v=0,b=0;for(;v{const[p,E]=u(f,d);s.set(p,E)}),s}function Oe(t,u){if(t)if(u){for(const s of t)if(u(s))return!0}else return t.length>0;return!1}function eu(t,u,s){let d;for(let f=0;ft[E])}function _i(t,u){const s=[];for(const d of t)xa(s,d,u);return s}function ri(t,u,s){return t.length===0?[]:t.length===1?t.slice():s?wa(t,u,s):_i(t,u)}function fi(t,u){if(t.length===0)return _t;let s=t[0];const d=[s];for(let f=1;f0&&(f&=-2),f&2&&d(p,b)>0&&(f&=-3),p=b}return f}function On(t,u,s=Cx){if(!t||!u)return t===u;if(t.length!==u.length)return!1;for(let d=0;d0&&H.assertGreaterThanOrEqual(s(u[p],u[p-1]),0);t:for(const E=f;fE&&H.assertGreaterThanOrEqual(s(t[f],t[f-1]),0),s(u[p],t[f])){case-1:d.push(u[p]);continue e;case 0:continue e;case 1:continue t}}return d}function xi(t,u){return u===void 0?t:t===void 0?[u]:(t.push(u),t)}function vo(t,u){return t===void 0?u:u===void 0?t:Ha(t)?Ha(u)?Hi(t,u):xi(t,u):Ha(u)?xi(u,t):[t,u]}function Pl(t,u){return u<0?t.length+u:u}function yn(t,u,s,d){if(u===void 0||u.length===0)return t;if(t===void 0)return u.slice(s,d);s=s===void 0?0:Pl(u,s),d=d===void 0?u.length:Pl(u,d);for(let f=s;fs(t[d],t[f])||nl(d,f))}function Ph(t,u){return t.length===0?t:t.slice().sort(u)}function*Cd(t){for(let u=t.length-1;u>=0;u--)yield t[u]}function oc(t,u){const s=$r(t);return Fl(t,s,u),s.map(d=>t[d])}function zi(t,u,s,d){for(;s>1),b=s(t[v],v);switch(d(b,u)){case-1:p=v+1;break;case 0:return v;case 1:E=v-1;break}}return~p}function nn(t,u,s,d,f){if(t&&t.length>0){const p=t.length;if(p>0){let E=d===void 0||d<0?0:d;const v=f===void 0||E+f>p-1?p-1:E+f;let b;for(arguments.length<=2?(b=t[E],E++):b=s;E<=v;)b=u(b,t[E],E),E++;return b}}return s}function gu(t,u){return bx.call(t,u)}function uo(t,u){return bx.call(t,u)?t[u]:void 0}function Ns(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(s);return u}function Bm(t){const u=[];do{const s=Object.getOwnPropertyNames(t);for(const d of s)xa(u,d)}while(t=Object.getPrototypeOf(t));return u}function U1(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(t[s]);return u}function am(t,u){const s=new Array(t);for(let d=0;d100&&s>u.length>>1){const v=u.length-s;u.copyWithin(0,s),u.length=v,s=0}return E}return{enqueue:f,dequeue:p,isEmpty:d}}function aoe(t,u){const s=new Map;let d=0;function*f(){for(const E of s.values())Ha(E)?yield*E:yield E}const p={has(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(!Ha(b))return u(b,E);for(const B of b)if(u(B,E))return!0;return!1},add(E){const v=t(E);if(s.has(v)){const b=s.get(v);if(Ha(b))kt(b,E,u)||(b.push(E),d++);else{const B=b;u(B,E)||(s.set(v,[B,E]),d++)}}else s.set(v,E),d++;return this},delete(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(Ha(b)){for(let B=0;Bf(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return p}function Ha(t){return Array.isArray(t)}function YA(t){return Ha(t)?t:[t]}function Ja(t){return typeof t=="string"}function UD(t){return typeof t=="number"}function ur(t,u){return t!==void 0&&u(t)?t:void 0}function Po(t,u){return t!==void 0&&u(t)?t:H.fail(`Invalid cast. The supplied value ${t} did not pass the test '${H.getFunctionName(u)}'.`)}function Is(t){}function cg(){return!1}function J3(){return!0}function hv(){}function il(t){return t}function $Ce(t){return t.toLowerCase()}function $g(t){return r2e.test(t)?t.replace(r2e,$Ce):t}function ho(){throw new Error("Not implemented")}function Mh(t){let u;return()=>(t&&(u=t(),t=void 0),u)}function HE(t){const u=new Map;return s=>{const d=`${typeof s}:${s}`;let f=u.get(d);return f===void 0&&!u.has(d)&&(f=t(s),u.set(d,f)),f}}function fqe(t){const u=new WeakMap;return s=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(s),u.set(s,d)),d}}function UCe(t,u){return(...s)=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(...s),u.set(s,d)),d}}function mqe(t,u,s,d,f){if(f){const p=[];for(let E=0;Enn(p,(v,b)=>b(v),E)}else return d?p=>d(s(u(t(p)))):s?p=>s(u(t(p))):u?p=>u(t(p)):t?p=>t(p):p=>p}function Cx(t,u){return t===u}function QA(t,u){return t===u||t!==void 0&&u!==void 0&&t.toUpperCase()===u.toUpperCase()}function XA(t,u){return Cx(t,u)}function pqe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:tu(s,d)===-1?s:d)}function Z$(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toUpperCase(),u=u.toUpperCase(),tu?1:0)}function qCe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toLowerCase(),u=u.toLowerCase(),tu?1:0)}function dh(t,u){return pqe(t,u)}function CN(t){return t?Z$:dh}function ZCe(){return poe}function YCe(t){poe!==t&&(poe=t,a2e=void 0)}function pO(t,u){return(a2e||(a2e=_qe(poe)))(t,u)}function QCe(t,u,s,d){return t===u?0:t===void 0?-1:u===void 0?1:d(t[s],u[s])}function d2(t,u){return nl(t?1:0,u?1:0)}function bN(t,u,s){const d=Math.max(2,Math.floor(t.length*.34));let f=Math.floor(t.length*.4)+1,p;for(const E of u){const v=s(E);if(v!==void 0&&Math.abs(v.length-t.length)<=d){if(v===t||v.length<3&&v.toLowerCase()!==t.toLowerCase())continue;const b=vwt(t,v,f-.1);if(b===void 0)continue;H.assert(bs?v-s:1),k=Math.floor(u.length>s+v?s+v:u.length);f[0]=v;let T=v;for(let z=1;zs)return;const M=d;d=f,f=M}const E=d[u.length];return E>s?void 0:E}function sc(t,u){const s=t.length-u.length;return s>=0&&t.indexOf(u,s)===s}function D8(t,u){return sc(t,u)?t.slice(0,t.length-u.length):t}function XCe(t,u){return sc(t,u)?t.slice(0,t.length-u.length):void 0}function soe(t){let u=t.length;for(let s=u-1;s>0;s--){let d=t.charCodeAt(s);if(d>=48&&d<=57)do--s,d=t.charCodeAt(s);while(s>0&&d>=48&&d<=57);else if(s>4&&(d===110||d===78)){if(--s,d=t.charCodeAt(s),d!==105&&d!==73||(--s,d=t.charCodeAt(s),d!==109&&d!==77))break;--s,d=t.charCodeAt(s)}else break;if(d!==45&&d!==46)break;u=s}return u===t.length?t:t.slice(0,u)}function gO(t,u){for(let s=0;ss===u)}function Cwt(t,u){for(let s=0;sf&&(f=E.prefix.length,d=p)}return d}function Pa(t,u){return t.lastIndexOf(u,0)===0}function yN(t,u){return Pa(t,u)?t.substr(u.length):t}function doe(t,u,s=il){return Pa(s(t),s(u))?t.substring(u.length):void 0}function Y$({prefix:t,suffix:u},s){return s.length>=t.length+u.length&&Pa(s,t)&&sc(s,u)}function Q$(t,u){return s=>t(s)&&u(s)}function dg(...t){return(...u)=>{let s;for(const d of t)if(s=d(...u),s)return s;return s}}function X$(t){return(...u)=>!t(...u)}function gqe(t){}function Hy(t){return t===void 0?void 0:[t]}function eU(t,u,s,d,f,p){p=p||Is;let E=0,v=0;const b=t.length,B=u.length;let k=!1;for(;E(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(foe||{}),qD=Array.prototype.at?(t,u)=>t==null?void 0:t.at(u):(t,u)=>{if(t&&(u=Pl(t,u),u(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(moe||{}),_qe=(()=>{return u;function t(s,d,f){if(s===d)return 0;if(s===void 0)return-1;if(d===void 0)return 1;const p=f(s,d);return p<0?-1:p>0?1:0}function u(s){const d=new Intl.Collator(s,{usage:"sort",sensitivity:"variant"}).compare;return(f,p)=>t(f,p,d)}})()}}),goe,H,ywt=o({"src/compiler/debug.ts"(){Bo(),Bo(),goe=(t=>(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(goe||{}),(t=>{let u=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Si){return t.currentLogLevel<=Si}t.shouldLog=s;function d(Si,Dn){t.loggingHost&&s(Si)&&t.loggingHost.log(Si,Dn)}function f(Si){d(3,Si)}t.log=f,(Si=>{function Dn(Da){d(1,Da)}Si.error=Dn;function Cn(Da){d(2,Da)}Si.warn=Cn;function tu(Da){d(3,Da)}Si.log=tu;function oa(Da){d(4,Da)}Si.trace=oa})(f=t.log||(t.log={}));const p={};function E(){return u}t.getAssertionLevel=E;function v(Si){const Dn=u;if(u=Si,Si>Dn)for(const Cn of Ns(p)){const tu=p[Cn];tu!==void 0&&t[Cn]!==tu.assertion&&Si>=tu.level&&(t[Cn]=tu,p[Cn]=void 0)}}t.setAssertionLevel=v;function b(Si){return u>=Si}t.shouldAssert=b;function B(Si,Dn){return b(Si)?!0:(p[Dn]={level:Si,assertion:t[Dn]},t[Dn]=Is,!1)}function k(Si,Dn){debugger;const Cn=new Error(Si?`Debug Failure. ${Si}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Cn,Dn||k),Cn}t.fail=k;function T(Si,Dn,Cn){return k(`${Dn||"Unexpected node."}\r -Node ${Ke(Si.kind)} was unexpected.`,Cn||T)}t.failBadSyntaxKind=T;function M(Si,Dn,Cn,tu){Si||(Dn=Dn?`False expression: ${Dn}`:"False expression.",Cn&&(Dn+=`\r -Verbose Debug Information: `+(typeof Cn=="string"?Cn:Cn())),k(Dn,tu||M))}t.assert=M;function z(Si,Dn,Cn,tu,oa){if(Si!==Dn){const Da=Cn?tu?`${Cn} ${tu}`:Cn:"";k(`Expected ${Si} === ${Dn}. ${Da}`,oa||z)}}t.assertEqual=z;function j(Si,Dn,Cn,tu){Si>=Dn&&k(`Expected ${Si} < ${Dn}. ${Cn||""}`,tu||j)}t.assertLessThan=j;function J(Si,Dn,Cn){Si>Dn&&k(`Expected ${Si} <= ${Dn}`,Cn||J)}t.assertLessThanOrEqual=J;function K(Si,Dn,Cn){Si= ${Dn}`,Cn||K)}t.assertGreaterThanOrEqual=K;function Y(Si,Dn,Cn){Si==null&&k(Dn,Cn||Y)}t.assertIsDefined=Y;function oe(Si,Dn,Cn){return Y(Si,Dn,Cn||oe),Si}t.checkDefined=oe;function se(Si,Dn,Cn){for(const tu of Si)Y(tu,Dn,Cn||se)}t.assertEachIsDefined=se;function ge(Si,Dn,Cn){return se(Si,Dn,Cn||ge),Si}t.checkEachDefined=ge;function ae(Si,Dn="Illegal value:",Cn){const tu=typeof Si=="object"&&gu(Si,"kind")&&gu(Si,"pos")?"SyntaxKind: "+Ke(Si.kind):JSON.stringify(Si);return k(`${Dn} ${tu}`,Cn||ae)}t.assertNever=ae;function Ce(Si,Dn,Cn,tu){B(1,"assertEachNode")&&M(Dn===void 0||ye(Si,Dn),Cn||"Unexpected node.",()=>`Node array did not pass test '${xe(Dn)}'.`,tu||Ce)}t.assertEachNode=Ce;function ne(Si,Dn,Cn,tu){B(1,"assertNode")&&M(Si!==void 0&&(Dn===void 0||Dn(Si)),Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} did not pass test '${xe(Dn)}'.`,tu||ne)}t.assertNode=ne;function ve(Si,Dn,Cn,tu){B(1,"assertNotNode")&&M(Si===void 0||Dn===void 0||!Dn(Si),Cn||"Unexpected node.",()=>`Node ${Ke(Si.kind)} should not have passed test '${xe(Dn)}'.`,tu||ve)}t.assertNotNode=ve;function Se(Si,Dn,Cn,tu){B(1,"assertOptionalNode")&&M(Dn===void 0||Si===void 0||Dn(Si),Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} did not pass test '${xe(Dn)}'.`,tu||Se)}t.assertOptionalNode=Se;function Ne(Si,Dn,Cn,tu){B(1,"assertOptionalToken")&&M(Dn===void 0||Si===void 0||Si.kind===Dn,Cn||"Unexpected node.",()=>`Node ${Ke(Si==null?void 0:Si.kind)} was not a '${Ke(Dn)}' token.`,tu||Ne)}t.assertOptionalToken=Ne;function pe(Si,Dn,Cn){B(1,"assertMissingNode")&&M(Si===void 0,Dn||"Unexpected node.",()=>`Node ${Ke(Si.kind)} was unexpected'.`,Cn||pe)}t.assertMissingNode=pe;function fe(Si){}t.type=fe;function xe(Si){if(typeof Si!="function")return"";if(gu(Si,"name"))return Si.name;{const Dn=Function.prototype.toString.call(Si),Cn=/^function\s+([\w$]+)\s*\(/.exec(Dn);return Cn?Cn[1]:""}}t.getFunctionName=xe;function Be(Si){return`{ name: ${Qr(Si.escapedName)}; flags: ${Yt(Si.flags)}; declarations: ${Vt(Si.declarations,Dn=>Ke(Dn.kind))} }`}t.formatSymbol=Be;function Ge(Si=0,Dn,Cn){const tu=De(Dn);if(Si===0)return tu.length>0&&tu[0][0]===0?tu[0][1]:"0";if(Cn){const oa=[];let Da=Si;for(const[ra,Ta]of tu){if(ra>Si)break;ra!==0&&ra&Si&&(oa.push(Ta),Da&=~ra)}if(Da===0)return oa.join("|")}else for(const[oa,Da]of tu)if(oa===Si)return Da;return Si.toString()}t.formatEnum=Ge;const Ae=new Map;function De(Si){const Dn=Ae.get(Si);if(Dn)return Dn;const Cn=[];for(const oa in Si){const Da=Si[oa];typeof Da=="number"&&Cn.push([Da,oa])}const tu=oc(Cn,(oa,Da)=>nl(oa[0],Da[0]));return Ae.set(Si,tu),tu}function Ke(Si){return Ge(Si,uU,!1)}t.formatSyntaxKind=Ke;function Je(Si){return Ge(Si,EU,!1)}t.formatSnippetKind=Je;function ft(Si){return Ge(Si,pU,!1)}t.formatScriptKind=ft;function Ye(Si){return Ge(Si,rU,!0)}t.formatNodeFlags=Ye;function Ve(Si){return Ge(Si,aU,!0)}t.formatModifierFlags=Ve;function We(Si){return Ge(Si,gU,!0)}t.formatTransformFlags=We;function Gt(Si){return Ge(Si,_U,!0)}t.formatEmitFlags=Gt;function Yt(Si){return Ge(Si,dU,!0)}t.formatSymbolFlags=Yt;function Ie(Si){return Ge(Si,hU,!0)}t.formatTypeFlags=Ie;function st(Si){return Ge(Si,mU,!0)}t.formatSignatureFlags=st;function St(Si){return Ge(Si,fU,!0)}t.formatObjectFlags=St;function It(Si){return Ge(Si,xO,!0)}t.formatFlowFlags=It;function ei(Si){return Ge(Si,oU,!0)}t.formatRelationComparisonResult=ei;function ht(Si){return Ge(Si,XY,!0)}t.formatCheckMode=ht;function Ut(Si){return Ge(Si,eQ,!0)}t.formatSignatureCheckMode=Ut;function Ni(Si){return Ge(Si,QY,!0)}t.formatTypeFacts=Ni;let ji=!1,xn;function Jn(Si){"__debugFlowFlags"in Si||Object.defineProperties(Si,{__tsDebuggerDisplay:{value(){const Dn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Cn=this.flags&-2048;return`${Dn}${Cn?` (${It(Cn)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,xO,!0)}},__debugToString:{value(){return Ln(this)}}})}function an(Si){ji&&(typeof Object.setPrototypeOf=="function"?(xn||(xn=Object.create(Object.prototype),Jn(xn)),Object.setPrototypeOf(Si,xn)):Jn(Si))}t.attachFlowNodeDebugInfo=an;let Pi;function Ai(Si){"__tsDebuggerDisplay"in Si||Object.defineProperties(Si,{__tsDebuggerDisplay:{value(Dn){return Dn=String(Dn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Dn}`}}})}function Zu(Si){ji&&(typeof Object.setPrototypeOf=="function"?(Pi||(Pi=Object.create(Array.prototype),Ai(Pi)),Object.setPrototypeOf(Si,Pi)):Ai(Si))}t.attachNodeArrayDebugInfo=Zu;function aa(){if(ji)return;const Si=new WeakMap,Dn=new WeakMap;Object.defineProperties(Qd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&33554432?"TransientSymbol":"Symbol",oa=this.flags&-33554433;return`${tu} '${lc(this)}'${oa?` (${Yt(oa)})`:""}`}},__debugFlags:{get(){return Yt(this.flags)}}}),Object.defineProperties(Qd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",oa=this.flags&524288?this.objectFlags&-1344:0;return`${tu}${this.symbol?` '${lc(this.symbol)}'`:""}${oa?` (${St(oa)})`:""}`}},__debugFlags:{get(){return Ie(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?St(this.objectFlags):""}},__debugTypeToString:{value(){let tu=Si.get(this);return tu===void 0&&(tu=this.checker.typeToString(this),Si.set(this,tu)),tu}}}),Object.defineProperties(Qd.getSignatureConstructor().prototype,{__debugFlags:{get(){return st(this.flags)}},__debugSignatureToString:{value(){var tu;return(tu=this.checker)==null?void 0:tu.signatureToString(this)}}});const Cn=[Qd.getNodeConstructor(),Qd.getIdentifierConstructor(),Qd.getTokenConstructor(),Qd.getSourceFileConstructor()];for(const tu of Cn)gu(tu.prototype,"__debugKind")||Object.defineProperties(tu.prototype,{__tsDebuggerDisplay:{value(){return`${al(this)?"GeneratedIdentifier":at(this)?`Identifier '${fu(this)}'`:ea(this)?`PrivateIdentifier '${fu(this)}'`:us(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Of(this)?`NumericLiteral ${this.text}`:iY(this)?`BigIntLiteral ${this.text}n`:Bl(this)?"TypeParameterDeclaration":io(this)?"ParameterDeclaration":hc(this)?"ConstructorDeclaration":zm(this)?"GetAccessorDeclaration":jf(this)?"SetAccessorDeclaration":CB(this)?"CallSignatureDeclaration":FV(this)?"ConstructSignatureDeclaration":Ek(this)?"IndexSignatureDeclaration":aY(this)?"TypePredicateNode":X4(this)?"TypeReferenceNode":u3(this)?"FunctionTypeNode":WP(this)?"ConstructorTypeNode":bB(this)?"TypeQueryNode":fm(this)?"TypeLiteralNode":oY(this)?"ArrayTypeNode":yB(this)?"TupleTypeNode":Dce(this)?"OptionalTypeNode":xce(this)?"RestTypeNode":Pv(this)?"UnionTypeNode":kB(this)?"IntersectionTypeNode":FB(this)?"ConditionalTypeNode":P7(this)?"InferTypeNode":M7(this)?"ParenthesizedTypeNode":sY(this)?"ThisTypeNode":z7(this)?"TypeOperatorNode":I7(this)?"IndexedAccessTypeNode":JP(this)?"MappedTypeNode":Mv(this)?"LiteralTypeNode":GP(this)?"NamedTupleMember":nD(this)?"ImportTypeNode":Ke(this.kind)}${this.flags?` (${Ye(this.flags)})`:""}`}},__debugKind:{get(){return Ke(this.kind)}},__debugNodeFlags:{get(){return Ye(this.flags)}},__debugModifierFlags:{get(){return Ve(Nye(this))}},__debugTransformFlags:{get(){return We(this.transformFlags)}},__debugIsParseTreeNode:{get(){return zN(this)}},__debugEmitFlags:{get(){return Gt(bs(this))}},__debugGetText:{value(oa){if(sl(this))return"";let Da=Dn.get(this);if(Da===void 0){const ra=Ua(this),Ta=ra&&zn(ra);Da=Ta?x2(Ta,ra,oa):"",Dn.set(this,Da)}return Da}}});ji=!0}t.enableDebugInfo=aa;function yr(Si){const Dn=Si&7;let Cn=Dn===0?"in out":Dn===3?"[bivariant]":Dn===2?"in":Dn===1?"out":Dn===4?"[independent]":"";return Si&8?Cn+=" (unmeasurable)":Si&16&&(Cn+=" (unreliable)"),Cn}t.formatVariance=yr;class Ba{__debugToString(){var Dn;switch(this.kind){case 3:return((Dn=this.debugInfo)==null?void 0:Dn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return re(this.sources,this.targets||Vt(this.sources,()=>"any"),(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${typeof tu=="string"?tu:tu.__debugTypeToString()}`).join(", ");case 2:return re(this.sources,this.targets,(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${tu().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` + ***************************************************************************** */var i=(()=>{var n=Object.defineProperty,a=Object.getOwnPropertyNames,o=(t,u)=>function(){return t&&(u=(0,t[a(t)[0]])(t=0)),u},c=(t,u)=>function(){return u||(0,t[a(t)[0]])((u={exports:{}}).exports,u),u.exports},h=(t,u)=>{for(var s in u)n(t,s,{get:u[s],enumerable:!0})},g,_,x,y=o({"src/compiler/corePublic.ts"(){g="5.3",_="5.3.3",x=(t=>(t[t.LessThan=-1]="LessThan",t[t.EqualTo=0]="EqualTo",t[t.GreaterThan=1]="GreaterThan",t))(x||{})}});function S(t){return t?t.length:0}function L(t,u){if(t)for(let s=0;s=0;s--){const d=u(t[s],s);if(d)return d}}function G(t,u){if(t!==void 0)for(let s=0;s=0;d--){const f=t[d];if(u(f,d))return f}}function Ue(t,u,s){if(t===void 0)return-1;for(let d=s??0;d=0;d--)if(u(t[d],d))return d;return-1}function rt(t,u){for(let s=0;ss(d,u[f]))}function jt(t,u,s){for(let d=s||0;d{const p=u(f,d);if(p!==void 0){const[E,v]=p;E!==void 0&&v!==void 0&&s.set(E,v)}}),s}function _0(t,u,s){if(t.has(u))return t.get(u);const d=s();return t.set(u,d),d}function Bs(t,u){return t.has(u)?!1:(t.add(u),!0)}function*Pa(t){yield t}function Hl(t,u,s){let d;if(t){d=[];const f=t.length;let p,E,v=0,b=0;for(;v{const[p,E]=u(f,d);s.set(p,E)}),s}function Ge(t,u){if(t)if(u){for(const s of t)if(u(s))return!0}else return t.length>0;return!1}function ku(t,u,s){let d;for(let f=0;ft[E])}function Li(t,u){const s=[];for(const d of t)Ca(s,d,u);return s}function li(t,u,s){return t.length===0?[]:t.length===1?t.slice():s?va(t,u,s):Li(t,u)}function ci(t,u){if(t.length===0)return Dt;let s=t[0];const d=[s];for(let f=1;f0&&(f&=-2),f&2&&d(p,b)>0&&(f&=-3),p=b}return f}function On(t,u,s=Cx){if(!t||!u)return t===u;if(t.length!==u.length)return!1;for(let d=0;d0&&H.assertGreaterThanOrEqual(s(u[p],u[p-1]),0);t:for(const E=f;fE&&H.assertGreaterThanOrEqual(s(t[f],t[f-1]),0),s(u[p],t[f])){case-1:d.push(u[p]);continue e;case 0:continue e;case 1:continue t}}return d}function Di(t,u){return u===void 0?t:t===void 0?[u]:(t.push(u),t)}function co(t,u){return t===void 0?u:u===void 0?t:Wa(t)?Wa(u)?mi(t,u):Di(t,u):Wa(u)?Di(u,t):[t,u]}function nl(t,u){return u<0?t.length+u:u}function yn(t,u,s,d){if(u===void 0||u.length===0)return t;if(t===void 0)return u.slice(s,d);s=s===void 0?0:nl(u,s),d=d===void 0?u.length:nl(u,d);for(let f=s;fs(t[d],t[f])||rl(d,f))}function Mh(t,u){return t.length===0?t:t.slice().sort(u)}function*Cd(t){for(let u=t.length-1;u>=0;u--)yield t[u]}function sc(t,u){const s=Cr(t);return Al(t,s,u),s.map(d=>t[d])}function zi(t,u,s,d){for(;s>1),b=s(t[v],v);switch(d(b,u)){case-1:p=v+1;break;case 0:return v;case 1:E=v-1;break}}return~p}function nn(t,u,s,d,f){if(t&&t.length>0){const p=t.length;if(p>0){let E=d===void 0||d<0?0:d;const v=f===void 0||E+f>p-1?p-1:E+f;let b;for(arguments.length<=2?(b=t[E],E++):b=s;E<=v;)b=u(b,t[E],E),E++;return b}}return s}function Eu(t,u){return bx.call(t,u)}function uo(t,u){return bx.call(t,u)?t[u]:void 0}function Ps(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(s);return u}function wm(t){const u=[];do{const s=Object.getOwnPropertyNames(t);for(const d of s)Ca(u,d)}while(t=Object.getPrototypeOf(t));return u}function q1(t){const u=[];for(const s in t)bx.call(t,s)&&u.push(t[s]);return u}function am(t,u){const s=new Array(t);for(let d=0;d100&&s>u.length>>1){const v=u.length-s;u.copyWithin(0,s),u.length=v,s=0}return E}return{enqueue:f,dequeue:p,isEmpty:d}}function soe(t,u){const s=new Map;let d=0;function*f(){for(const E of s.values())Wa(E)?yield*E:yield E}const p={has(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(!Wa(b))return u(b,E);for(const B of b)if(u(B,E))return!0;return!1},add(E){const v=t(E);if(s.has(v)){const b=s.get(v);if(Wa(b))kt(b,E,u)||(b.push(E),d++);else{const B=b;u(B,E)||(s.set(v,[B,E]),d++)}}else s.set(v,E),d++;return this},delete(E){const v=t(E);if(!s.has(v))return!1;const b=s.get(v);if(Wa(b)){for(let B=0;Bf(),[Symbol.toStringTag]:s[Symbol.toStringTag]};return p}function Wa(t){return Array.isArray(t)}function YA(t){return Wa(t)?t:[t]}function Ua(t){return typeof t=="string"}function UD(t){return typeof t=="number"}function ar(t,u){return t!==void 0&&u(t)?t:void 0}function Po(t,u){return t!==void 0&&u(t)?t:H.fail(`Invalid cast. The supplied value ${t} did not pass the test '${H.getFunctionName(u)}'.`)}function Rs(t){}function cg(){return!1}function J3(){return!0}function fv(){}function ul(t){return t}function XCe(t){return t.toLowerCase()}function Ug(t){return d2e.test(t)?t.replace(d2e,XCe):t}function fo(){throw new Error("Not implemented")}function zh(t){let u;return()=>(t&&(u=t(),t=void 0),u)}function KE(t){const u=new Map;return s=>{const d=`${typeof s}:${s}`;let f=u.get(d);return f===void 0&&!u.has(d)&&(f=t(s),u.set(d,f)),f}}function _qe(t){const u=new WeakMap;return s=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(s),u.set(s,d)),d}}function e2e(t,u){return(...s)=>{let d=u.get(s);return d===void 0&&!u.has(s)&&(d=t(...s),u.set(s,d)),d}}function Dqe(t,u,s,d,f){if(f){const p=[];for(let E=0;Enn(p,(v,b)=>b(v),E)}else return d?p=>d(s(u(t(p)))):s?p=>s(u(t(p))):u?p=>u(t(p)):t?p=>t(p):p=>p}function Cx(t,u){return t===u}function QA(t,u){return t===u||t!==void 0&&u!==void 0&&t.toUpperCase()===u.toUpperCase()}function XA(t,u){return Cx(t,u)}function xqe(t,u){return t===u?0:t===void 0?-1:u===void 0?1:tu(s,d)===-1?s:d)}function Q$(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toUpperCase(),u=u.toUpperCase(),tu?1:0)}function t2e(t,u){return t===u?0:t===void 0?-1:u===void 0?1:(t=t.toLowerCase(),u=u.toLowerCase(),tu?1:0)}function fh(t,u){return xqe(t,u)}function bN(t){return t?Q$:fh}function i2e(){return Eoe}function n2e(t){Eoe!==t&&(Eoe=t,h2e=void 0)}function gO(t,u){return(h2e||(h2e=bqe(Eoe)))(t,u)}function u2e(t,u,s,d){return t===u?0:t===void 0?-1:u===void 0?1:d(t[s],u[s])}function h2(t,u){return rl(t?1:0,u?1:0)}function yN(t,u,s){const d=Math.max(2,Math.floor(t.length*.34));let f=Math.floor(t.length*.4)+1,p;for(const E of u){const v=s(E);if(v!==void 0&&Math.abs(v.length-t.length)<=d){if(v===t||v.length<3&&v.toLowerCase()!==t.toLowerCase())continue;const b=kwt(t,v,f-.1);if(b===void 0)continue;H.assert(bs?v-s:1),k=Math.floor(u.length>s+v?s+v:u.length);f[0]=v;let T=v;for(let z=1;zs)return;const M=d;d=f,f=M}const E=d[u.length];return E>s?void 0:E}function lc(t,u){const s=t.length-u.length;return s>=0&&t.indexOf(u,s)===s}function D8(t,u){return lc(t,u)?t.slice(0,t.length-u.length):t}function r2e(t,u){return lc(t,u)?t.slice(0,t.length-u.length):void 0}function coe(t){let u=t.length;for(let s=u-1;s>0;s--){let d=t.charCodeAt(s);if(d>=48&&d<=57)do--s,d=t.charCodeAt(s);while(s>0&&d>=48&&d<=57);else if(s>4&&(d===110||d===78)){if(--s,d=t.charCodeAt(s),d!==105&&d!==73||(--s,d=t.charCodeAt(s),d!==109&&d!==77))break;--s,d=t.charCodeAt(s)}else break;if(d!==45&&d!==46)break;u=s}return u===t.length?t:t.slice(0,u)}function EO(t,u){for(let s=0;ss===u)}function Fwt(t,u){for(let s=0;sf&&(f=E.prefix.length,d=p)}return d}function Ma(t,u){return t.lastIndexOf(u,0)===0}function kN(t,u){return Ma(t,u)?t.substr(u.length):t}function foe(t,u,s=ul){return Ma(s(t),s(u))?t.substring(u.length):void 0}function X$({prefix:t,suffix:u},s){return s.length>=t.length+u.length&&Ma(s,t)&&lc(s,u)}function eU(t,u){return s=>t(s)&&u(s)}function dg(...t){return(...u)=>{let s;for(const d of t)if(s=d(...u),s)return s;return s}}function tU(t){return(...u)=>!t(...u)}function vqe(t){}function Hy(t){return t===void 0?void 0:[t]}function iU(t,u,s,d,f,p){p=p||Rs;let E=0,v=0;const b=t.length,B=u.length;let k=!1;for(;E(t[t.None=0]="None",t[t.CaseSensitive=1]="CaseSensitive",t[t.CaseInsensitive=2]="CaseInsensitive",t[t.Both=3]="Both",t))(poe||{}),qD=Array.prototype.at?(t,u)=>t==null?void 0:t.at(u):(t,u)=>{if(t&&(u=nl(t,u),u(t[t.None=0]="None",t[t.Normal=1]="Normal",t[t.Aggressive=2]="Aggressive",t[t.VeryAggressive=3]="VeryAggressive",t))(goe||{}),bqe=(()=>{return u;function t(s,d,f){if(s===d)return 0;if(s===void 0)return-1;if(d===void 0)return 1;const p=f(s,d);return p<0?-1:p>0?1:0}function u(s){const d=new Intl.Collator(s,{usage:"sort",sensitivity:"variant"}).compare;return(f,p)=>t(f,p,d)}})()}}),_oe,H,Swt=o({"src/compiler/debug.ts"(){Bo(),Bo(),_oe=(t=>(t[t.Off=0]="Off",t[t.Error=1]="Error",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Verbose=4]="Verbose",t))(_oe||{}),(t=>{let u=0;t.currentLogLevel=2,t.isDebugging=!1;function s(Ai){return t.currentLogLevel<=Ai}t.shouldLog=s;function d(Ai,Dn){t.loggingHost&&s(Ai)&&t.loggingHost.log(Ai,Dn)}function f(Ai){d(3,Ai)}t.log=f,(Ai=>{function Dn(xa){d(1,xa)}Ai.error=Dn;function Cn(xa){d(2,xa)}Ai.warn=Cn;function tu(xa){d(3,xa)}Ai.log=tu;function sa(xa){d(4,xa)}Ai.trace=sa})(f=t.log||(t.log={}));const p={};function E(){return u}t.getAssertionLevel=E;function v(Ai){const Dn=u;if(u=Ai,Ai>Dn)for(const Cn of Ps(p)){const tu=p[Cn];tu!==void 0&&t[Cn]!==tu.assertion&&Ai>=tu.level&&(t[Cn]=tu,p[Cn]=void 0)}}t.setAssertionLevel=v;function b(Ai){return u>=Ai}t.shouldAssert=b;function B(Ai,Dn){return b(Ai)?!0:(p[Dn]={level:Ai,assertion:t[Dn]},t[Dn]=Rs,!1)}function k(Ai,Dn){debugger;const Cn=new Error(Ai?`Debug Failure. ${Ai}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Cn,Dn||k),Cn}t.fail=k;function T(Ai,Dn,Cn){return k(`${Dn||"Unexpected node."}\r +Node ${He(Ai.kind)} was unexpected.`,Cn||T)}t.failBadSyntaxKind=T;function M(Ai,Dn,Cn,tu){Ai||(Dn=Dn?`False expression: ${Dn}`:"False expression.",Cn&&(Dn+=`\r +Verbose Debug Information: `+(typeof Cn=="string"?Cn:Cn())),k(Dn,tu||M))}t.assert=M;function z(Ai,Dn,Cn,tu,sa){if(Ai!==Dn){const xa=Cn?tu?`${Cn} ${tu}`:Cn:"";k(`Expected ${Ai} === ${Dn}. ${xa}`,sa||z)}}t.assertEqual=z;function j(Ai,Dn,Cn,tu){Ai>=Dn&&k(`Expected ${Ai} < ${Dn}. ${Cn||""}`,tu||j)}t.assertLessThan=j;function J(Ai,Dn,Cn){Ai>Dn&&k(`Expected ${Ai} <= ${Dn}`,Cn||J)}t.assertLessThanOrEqual=J;function K(Ai,Dn,Cn){Ai= ${Dn}`,Cn||K)}t.assertGreaterThanOrEqual=K;function Y(Ai,Dn,Cn){Ai==null&&k(Dn,Cn||Y)}t.assertIsDefined=Y;function oe(Ai,Dn,Cn){return Y(Ai,Dn,Cn||oe),Ai}t.checkDefined=oe;function se(Ai,Dn,Cn){for(const tu of Ai)Y(tu,Dn,Cn||se)}t.assertEachIsDefined=se;function ge(Ai,Dn,Cn){return se(Ai,Dn,Cn||ge),Ai}t.checkEachDefined=ge;function ae(Ai,Dn="Illegal value:",Cn){const tu=typeof Ai=="object"&&Eu(Ai,"kind")&&Eu(Ai,"pos")?"SyntaxKind: "+He(Ai.kind):JSON.stringify(Ai);return k(`${Dn} ${tu}`,Cn||ae)}t.assertNever=ae;function Ce(Ai,Dn,Cn,tu){B(1,"assertEachNode")&&M(Dn===void 0||ye(Ai,Dn),Cn||"Unexpected node.",()=>`Node array did not pass test '${xe(Dn)}'.`,tu||Ce)}t.assertEachNode=Ce;function ne(Ai,Dn,Cn,tu){B(1,"assertNode")&&M(Ai!==void 0&&(Dn===void 0||Dn(Ai)),Cn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} did not pass test '${xe(Dn)}'.`,tu||ne)}t.assertNode=ne;function ve(Ai,Dn,Cn,tu){B(1,"assertNotNode")&&M(Ai===void 0||Dn===void 0||!Dn(Ai),Cn||"Unexpected node.",()=>`Node ${He(Ai.kind)} should not have passed test '${xe(Dn)}'.`,tu||ve)}t.assertNotNode=ve;function Se(Ai,Dn,Cn,tu){B(1,"assertOptionalNode")&&M(Dn===void 0||Ai===void 0||Dn(Ai),Cn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} did not pass test '${xe(Dn)}'.`,tu||Se)}t.assertOptionalNode=Se;function Ne(Ai,Dn,Cn,tu){B(1,"assertOptionalToken")&&M(Dn===void 0||Ai===void 0||Ai.kind===Dn,Cn||"Unexpected node.",()=>`Node ${He(Ai==null?void 0:Ai.kind)} was not a '${He(Dn)}' token.`,tu||Ne)}t.assertOptionalToken=Ne;function pe(Ai,Dn,Cn){B(1,"assertMissingNode")&&M(Ai===void 0,Dn||"Unexpected node.",()=>`Node ${He(Ai.kind)} was unexpected'.`,Cn||pe)}t.assertMissingNode=pe;function fe(Ai){}t.type=fe;function xe(Ai){if(typeof Ai!="function")return"";if(Eu(Ai,"name"))return Ai.name;{const Dn=Function.prototype.toString.call(Ai),Cn=/^function\s+([\w$]+)\s*\(/.exec(Dn);return Cn?Cn[1]:""}}t.getFunctionName=xe;function Be(Ai){return`{ name: ${Qr(Ai.escapedName)}; flags: ${Yt(Ai.flags)}; declarations: ${Vt(Ai.declarations,Dn=>He(Dn.kind))} }`}t.formatSymbol=Be;function We(Ai=0,Dn,Cn){const tu=De(Dn);if(Ai===0)return tu.length>0&&tu[0][0]===0?tu[0][1]:"0";if(Cn){const sa=[];let xa=Ai;for(const[aa,Ta]of tu){if(aa>Ai)break;aa!==0&&aa&Ai&&(sa.push(Ta),xa&=~aa)}if(xa===0)return sa.join("|")}else for(const[sa,xa]of tu)if(sa===Ai)return xa;return Ai.toString()}t.formatEnum=We;const Ae=new Map;function De(Ai){const Dn=Ae.get(Ai);if(Dn)return Dn;const Cn=[];for(const sa in Ai){const xa=Ai[sa];typeof xa=="number"&&Cn.push([xa,sa])}const tu=sc(Cn,(sa,xa)=>rl(sa[0],xa[0]));return Ae.set(Ai,tu),tu}function He(Ai){return We(Ai,aU,!1)}t.formatSyntaxKind=He;function Je(Ai){return We(Ai,DU,!1)}t.formatSnippetKind=Je;function mt(Ai){return We(Ai,EU,!1)}t.formatScriptKind=mt;function Ye(Ai){return We(Ai,oU,!0)}t.formatNodeFlags=Ye;function je(Ai){return We(Ai,sU,!0)}t.formatModifierFlags=je;function Ke(Ai){return We(Ai,_U,!0)}t.formatTransformFlags=Ke;function Gt(Ai){return We(Ai,xU,!0)}t.formatEmitFlags=Gt;function Yt(Ai){return We(Ai,fU,!0)}t.formatSymbolFlags=Yt;function Ie(Ai){return We(Ai,mU,!0)}t.formatTypeFlags=Ie;function st(Ai){return We(Ai,gU,!0)}t.formatSignatureFlags=st;function Bt(Ai){return We(Ai,pU,!0)}t.formatObjectFlags=Bt;function It(Ai){return We(Ai,vO,!0)}t.formatFlowFlags=It;function ei(Ai){return We(Ai,lU,!0)}t.formatRelationComparisonResult=ei;function ft(Ai){return We(Ai,tQ,!0)}t.formatCheckMode=ft;function Ut(Ai){return We(Ai,iQ,!0)}t.formatSignatureCheckMode=Ut;function Ni(Ai){return We(Ai,eQ,!0)}t.formatTypeFacts=Ni;let Vi=!1,xn;function Jn(Ai){"__debugFlowFlags"in Ai||Object.defineProperties(Ai,{__tsDebuggerDisplay:{value(){const Dn=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",Cn=this.flags&-2048;return`${Dn}${Cn?` (${It(Cn)})`:""}`}},__debugFlowFlags:{get(){return We(this.flags,vO,!0)}},__debugToString:{value(){return Ln(this)}}})}function an(Ai){Vi&&(typeof Object.setPrototypeOf=="function"?(xn||(xn=Object.create(Object.prototype),Jn(xn)),Object.setPrototypeOf(Ai,xn)):Jn(Ai))}t.attachFlowNodeDebugInfo=an;let Pi;function Fi(Ai){"__tsDebuggerDisplay"in Ai||Object.defineProperties(Ai,{__tsDebuggerDisplay:{value(Dn){return Dn=String(Dn).replace(/(?:,[\s\w\d_]+:[^,]+)+\]$/,"]"),`NodeArray ${Dn}`}}})}function Yu(Ai){Vi&&(typeof Object.setPrototypeOf=="function"?(Pi||(Pi=Object.create(Array.prototype),Fi(Pi)),Object.setPrototypeOf(Ai,Pi)):Fi(Ai))}t.attachNodeArrayDebugInfo=Yu;function oa(){if(Vi)return;const Ai=new WeakMap,Dn=new WeakMap;Object.defineProperties(Xd.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&33554432?"TransientSymbol":"Symbol",sa=this.flags&-33554433;return`${tu} '${cc(this)}'${sa?` (${Yt(sa)})`:""}`}},__debugFlags:{get(){return Yt(this.flags)}}}),Object.defineProperties(Xd.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){const tu=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",sa=this.flags&524288?this.objectFlags&-1344:0;return`${tu}${this.symbol?` '${cc(this.symbol)}'`:""}${sa?` (${Bt(sa)})`:""}`}},__debugFlags:{get(){return Ie(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?Bt(this.objectFlags):""}},__debugTypeToString:{value(){let tu=Ai.get(this);return tu===void 0&&(tu=this.checker.typeToString(this),Ai.set(this,tu)),tu}}}),Object.defineProperties(Xd.getSignatureConstructor().prototype,{__debugFlags:{get(){return st(this.flags)}},__debugSignatureToString:{value(){var tu;return(tu=this.checker)==null?void 0:tu.signatureToString(this)}}});const Cn=[Xd.getNodeConstructor(),Xd.getIdentifierConstructor(),Xd.getTokenConstructor(),Xd.getSourceFileConstructor()];for(const tu of Cn)Eu(tu.prototype,"__debugKind")||Object.defineProperties(tu.prototype,{__tsDebuggerDisplay:{value(){return`${sl(this)?"GeneratedIdentifier":at(this)?`Identifier '${fu(this)}'`:ea(this)?`PrivateIdentifier '${fu(this)}'`:rs(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:Of(this)?`NumericLiteral ${this.text}`:uY(this)?`BigIntLiteral ${this.text}n`:wl(this)?"TypeParameterDeclaration":io(this)?"ParameterDeclaration":fc(this)?"ConstructorDeclaration":Im(this)?"GetAccessorDeclaration":jf(this)?"SetAccessorDeclaration":CB(this)?"CallSignatureDeclaration":AV(this)?"ConstructSignatureDeclaration":Ek(this)?"IndexSignatureDeclaration":sY(this)?"TypePredicateNode":tp(this)?"TypeReferenceNode":r3(this)?"FunctionTypeNode":GP(this)?"ConstructorTypeNode":bB(this)?"TypeQueryNode":fm(this)?"TypeLiteralNode":lY(this)?"ArrayTypeNode":yB(this)?"TupleTypeNode":vce(this)?"OptionalTypeNode":Cce(this)?"RestTypeNode":Mv(this)?"UnionTypeNode":kB(this)?"IntersectionTypeNode":FB(this)?"ConditionalTypeNode":P7(this)?"InferTypeNode":M7(this)?"ParenthesizedTypeNode":cY(this)?"ThisTypeNode":z7(this)?"TypeOperatorNode":I7(this)?"IndexedAccessTypeNode":$P(this)?"MappedTypeNode":zv(this)?"LiteralTypeNode":JP(this)?"NamedTupleMember":nD(this)?"ImportTypeNode":He(this.kind)}${this.flags?` (${Ye(this.flags)})`:""}`}},__debugKind:{get(){return He(this.kind)}},__debugNodeFlags:{get(){return Ye(this.flags)}},__debugModifierFlags:{get(){return je(Oye(this))}},__debugTransformFlags:{get(){return Ke(this.transformFlags)}},__debugIsParseTreeNode:{get(){return IN(this)}},__debugEmitFlags:{get(){return Gt(bs(this))}},__debugGetText:{value(sa){if(cl(this))return"";let xa=Dn.get(this);if(xa===void 0){const aa=Za(this),Ta=aa&&zn(aa);xa=Ta?v2(Ta,aa,sa):"",Dn.set(this,xa)}return xa}}});Vi=!0}t.enableDebugInfo=oa;function Fr(Ai){const Dn=Ai&7;let Cn=Dn===0?"in out":Dn===3?"[bivariant]":Dn===2?"in":Dn===1?"out":Dn===4?"[independent]":"";return Ai&8?Cn+=" (unmeasurable)":Ai&16&&(Cn+=" (unreliable)"),Cn}t.formatVariance=Fr;class wa{__debugToString(){var Dn;switch(this.kind){case 3:return((Dn=this.debugInfo)==null?void 0:Dn.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return re(this.sources,this.targets||Vt(this.sources,()=>"any"),(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${typeof tu=="string"?tu:tu.__debugTypeToString()}`).join(", ");case 2:return re(this.sources,this.targets,(Cn,tu)=>`${Cn.__debugTypeToString()} -> ${tu().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(` `).join(` `)} m2: ${this.mapper2.__debugToString().split(` `).join(` - `)}`;default:return ae(this)}}}t.DebugTypeMapper=Ba;function bt(Si){return t.isDebugging?Object.setPrototypeOf(Si,Ba.prototype):Si}t.attachDebugPrototypeIfDebug=bt;function jn(Si){return console.log(Ln(Si))}t.printControlFlowGraph=jn;function Ln(Si){let Dn=-1;function Cn(de){return de.id||(de.id=Dn,Dn--),de.id}let tu;(de=>{de.lr="─",de.ud="│",de.dr="╭",de.dl="╮",de.ul="╯",de.ur="╰",de.udr="├",de.udl="┤",de.dlr="┬",de.ulr="┴",de.udlr="╫"})(tu||(tu={}));let oa;(de=>{de[de.None=0]="None",de[de.Up=1]="Up",de[de.Down=2]="Down",de[de.Left=4]="Left",de[de.Right=8]="Right",de[de.UpDown=3]="UpDown",de[de.LeftRight=12]="LeftRight",de[de.UpLeft=5]="UpLeft",de[de.UpRight=9]="UpRight",de[de.DownLeft=6]="DownLeft",de[de.DownRight=10]="DownRight",de[de.UpDownLeft=7]="UpDownLeft",de[de.UpDownRight=11]="UpDownRight",de[de.UpLeftRight=13]="UpLeftRight",de[de.DownLeftRight=14]="DownLeftRight",de[de.UpDownLeftRight=15]="UpDownLeftRight",de[de.NoChildren=16]="NoChildren"})(oa||(oa={}));const Da=2032,ra=882,Ta=Object.create(null),Yo=[],bo=ii(Si,new Set);for(const de of Yo)de.text=Qi(de.flowNode,de.circular),ni(de);const Qe=vi(bo),Et=mt(Qe);return Ot(bo,0),on();function Mt(de){return!!(de.flags&128)}function qt(de){return!!(de.flags&12)&&!!de.antecedents}function Xt(de){return!!(de.flags&Da)}function Pe(de){return!!(de.flags&ra)}function et(de){const je=[];for(const X of de.edges)X.source===de&&je.push(X.target);return je}function gt(de){const je=[];for(const X of de.edges)X.target===de&&je.push(X.source);return je}function ii(de,je){const X=Cn(de);let it=Ta[X];if(it&&je.has(de))return it.circular=!0,it={id:-1,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Yo.push(it),it;if(je.add(de),!it)if(Ta[X]=it={id:X,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Yo.push(it),qt(de))for(const Ct of de.antecedents)me(it,Ct,je);else Xt(de)&&me(it,de.antecedent,je);return je.delete(de),it}function me(de,je,X){const it=ii(je,X),Ct={source:de,target:it};de.edges.push(Ct),it.edges.push(Ct)}function ni(de){if(de.level!==-1)return de.level;let je=0;for(const X of gt(de))je=Math.max(je,ni(X)+1);return de.level=je}function vi(de){let je=0;for(const X of et(de))je=Math.max(je,vi(X));return je+1}function mt(de){const je=te(Array(de),0);for(const X of Yo)je[X.level]=Math.max(je[X.level],X.text.length);return je}function Ot(de,je){if(de.lane===-1){de.lane=je,de.endLane=je;const X=et(de);for(let it=0;it0&&je++;const Ct=X[it];Ot(Ct,je),Ct.endLane>de.endLane&&(je=Ct.endLane)}de.endLane=je}}function Ei(de){if(de&2)return"Start";if(de&4)return"Branch";if(de&8)return"Loop";if(de&16)return"Assignment";if(de&32)return"True";if(de&64)return"False";if(de&128)return"SwitchClause";if(de&256)return"ArrayMutation";if(de&512)return"Call";if(de&1024)return"ReduceLabel";if(de&1)return"Unreachable";throw new Error}function $i(de){const je=zn(de);return x2(je,de,!1)}function Qi(de,je){let X=Ei(de.flags);if(je&&(X=`${X}#${Cn(de)}`),Pe(de))de.node&&(X+=` (${$i(de.node)})`);else if(Mt(de)){const it=[];for(let Ct=de.clauseStart;CtMath.max(Qt,Li.lane),0)+1,X=te(Array(je),""),it=Et.map(()=>Array(je)),Ct=Et.map(()=>te(Array(je),0));for(const Qt of Yo){it[Qt.level][Qt.lane]=Qt;const Li=et(Qt);for(let Sn=0;Sn0&&(Ru|=1),Sn0&&(Ru|=1),Sn0?Ct[Qt-1][Li]:0,Sn=Li>0?Ct[Qt][Li-1]:0;let du=Ct[Qt][Li];du||(Ui&8&&(du|=12),Sn&2&&(du|=3),Ct[Qt][Li]=du)}for(let Qt=0;Qt{de.lr="─",de.ud="│",de.dr="╭",de.dl="╮",de.ul="╯",de.ur="╰",de.udr="├",de.udl="┤",de.dlr="┬",de.ulr="┴",de.udlr="╫"})(tu||(tu={}));let sa;(de=>{de[de.None=0]="None",de[de.Up=1]="Up",de[de.Down=2]="Down",de[de.Left=4]="Left",de[de.Right=8]="Right",de[de.UpDown=3]="UpDown",de[de.LeftRight=12]="LeftRight",de[de.UpLeft=5]="UpLeft",de[de.UpRight=9]="UpRight",de[de.DownLeft=6]="DownLeft",de[de.DownRight=10]="DownRight",de[de.UpDownLeft=7]="UpDownLeft",de[de.UpDownRight=11]="UpDownRight",de[de.UpLeftRight=13]="UpLeftRight",de[de.DownLeftRight=14]="DownLeftRight",de[de.UpDownLeftRight=15]="UpDownLeftRight",de[de.NoChildren=16]="NoChildren"})(sa||(sa={}));const xa=2032,aa=882,Ta=Object.create(null),Qo=[],bo=ii(Ai,new Set);for(const de of Qo)de.text=Qi(de.flowNode,de.circular),ni(de);const Qe=xi(bo),_t=pt(Qe);return Ot(bo,0),on();function Mt(de){return!!(de.flags&128)}function qt(de){return!!(de.flags&12)&&!!de.antecedents}function Xt(de){return!!(de.flags&xa)}function Pe(de){return!!(de.flags&aa)}function et(de){const Oe=[];for(const X of de.edges)X.source===de&&Oe.push(X.target);return Oe}function Et(de){const Oe=[];for(const X of de.edges)X.target===de&&Oe.push(X.source);return Oe}function ii(de,Oe){const X=Cn(de);let it=Ta[X];if(it&&Oe.has(de))return it.circular=!0,it={id:-1,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Qo.push(it),it;if(Oe.add(de),!it)if(Ta[X]=it={id:X,flowNode:de,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Qo.push(it),qt(de))for(const Ct of de.antecedents)me(it,Ct,Oe);else Xt(de)&&me(it,de.antecedent,Oe);return Oe.delete(de),it}function me(de,Oe,X){const it=ii(Oe,X),Ct={source:de,target:it};de.edges.push(Ct),it.edges.push(Ct)}function ni(de){if(de.level!==-1)return de.level;let Oe=0;for(const X of Et(de))Oe=Math.max(Oe,ni(X)+1);return de.level=Oe}function xi(de){let Oe=0;for(const X of et(de))Oe=Math.max(Oe,xi(X));return Oe+1}function pt(de){const Oe=te(Array(de),0);for(const X of Qo)Oe[X.level]=Math.max(Oe[X.level],X.text.length);return Oe}function Ot(de,Oe){if(de.lane===-1){de.lane=Oe,de.endLane=Oe;const X=et(de);for(let it=0;it0&&Oe++;const Ct=X[it];Ot(Ct,Oe),Ct.endLane>de.endLane&&(Oe=Ct.endLane)}de.endLane=Oe}}function Ei(de){if(de&2)return"Start";if(de&4)return"Branch";if(de&8)return"Loop";if(de&16)return"Assignment";if(de&32)return"True";if(de&64)return"False";if(de&128)return"SwitchClause";if(de&256)return"ArrayMutation";if(de&512)return"Call";if(de&1024)return"ReduceLabel";if(de&1)return"Unreachable";throw new Error}function $i(de){const Oe=zn(de);return v2(Oe,de,!1)}function Qi(de,Oe){let X=Ei(de.flags);if(Oe&&(X=`${X}#${Cn(de)}`),Pe(de))de.node&&(X+=` (${$i(de.node)})`);else if(Mt(de)){const it=[];for(let Ct=de.clauseStart;CtMath.max(Qt,Ti.lane),0)+1,X=te(Array(Oe),""),it=_t.map(()=>Array(Oe)),Ct=_t.map(()=>te(Array(Oe),0));for(const Qt of Qo){it[Qt.level][Qt.lane]=Qt;const Ti=et(Qt);for(let Sn=0;Sn0&&(Ou|=1),Sn0&&(Ou|=1),Sn0?Ct[Qt-1][Ti]:0,Sn=Ti>0?Ct[Qt][Ti-1]:0;let du=Ct[Qt][Ti];du||(Ui&8&&(du|=12),Sn&2&&(du|=3),Ct[Qt][Ti]=du)}for(let Qt=0;Qt0?de.repeat(je):"";let X="";for(;X.length=",d.version)),j4(f.major)||s.push(j4(f.minor)?KE("<",f.version.increment("major")):j4(f.patch)?KE("<",f.version.increment("minor")):KE("<=",f.version)),!0):!1}function Awt(t,u,s){const d=o2e(u);if(!d)return!1;const{version:f,major:p,minor:E,patch:v}=d;if(j4(p))(t==="<"||t===">")&&s.push(KE("<",Lp.zero));else switch(t){case"~":s.push(KE(">=",f)),s.push(KE("<",f.increment(j4(E)?"major":"minor")));break;case"^":s.push(KE(">=",f)),s.push(KE("<",f.increment(f.major>0||j4(E)?"major":f.minor>0||j4(v)?"minor":"patch")));break;case"<":case">=":s.push(j4(E)||j4(v)?KE(t,f.with({prerelease:"0"})):KE(t,f));break;case"<=":case">":s.push(j4(E)?KE(t==="<="?"<":">=",f.increment("major").with({prerelease:"0"})):j4(v)?KE(t==="<="?"<":">=",f.increment("minor").with({prerelease:"0"})):KE(t,f));break;case"=":case void 0:j4(E)||j4(v)?(s.push(KE(">=",f.with({prerelease:"0"}))),s.push(KE("<",f.increment(j4(E)?"major":"minor").with({prerelease:"0"})))):s.push(KE("=",f));break;default:return!1}return!0}function j4(t){return t==="*"||t==="x"||t==="X"}function KE(t,u){return{operator:t,operand:u}}function Swt(t,u){if(u.length===0)return!0;for(const s of u)if(Bwt(t,s))return!0;return!1}function Bwt(t,u){for(const s of u)if(!wwt(t,s.operator,s.operand))return!1;return!0}function wwt(t,u,s){const d=t.compareTo(s);switch(u){case"<":return d<0;case"<=":return d<=0;case">":return d>0;case">=":return d>=0;case"=":return d===0;default:return H.assertNever(u)}}function Twt(t){return Vt(t,Lwt).join(" || ")||"*"}function Lwt(t){return Vt(t,Nwt).join(" ")}function Nwt(t){return`${t.operator}${t.operand}`}var vqe,Cqe,bqe,yqe,kqe,s2e,Eoe,Lp,EO,Fqe,Aqe,Sqe,Bqe,wqe,Pwt=o({"src/compiler/semver.ts"(){Bo(),vqe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Cqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,bqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,yqe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,kqe=/^[a-z0-9-]+$/i,s2e=/^(0|[1-9]\d*)$/,Eoe=class fG{constructor(u,s=0,d=0,f="",p=""){typeof u=="string"&&({major:u,minor:s,patch:d,prerelease:f,build:p}=H.checkDefined(Dqe(u),"Invalid version")),H.assert(u>=0,"Invalid argument: major"),H.assert(s>=0,"Invalid argument: minor"),H.assert(d>=0,"Invalid argument: patch");const E=f?Ha(f)?f:f.split("."):_t,v=p?Ha(p)?p:p.split("."):_t;H.assert(ye(E,b=>bqe.test(b)),"Invalid argument: prerelease"),H.assert(ye(v,b=>kqe.test(b)),"Invalid argument: build"),this.major=u,this.minor=s,this.patch=d,this.prerelease=E,this.build=v}static tryParse(u){const s=Dqe(u);if(!s)return;const{major:d,minor:f,patch:p,prerelease:E,build:v}=s;return new fG(d,f,p,E,v)}compareTo(u){return this===u?0:u===void 0?1:nl(this.major,u.major)||nl(this.minor,u.minor)||nl(this.patch,u.patch)||kwt(this.prerelease,u.prerelease)}increment(u){switch(u){case"major":return new fG(this.major+1,0,0);case"minor":return new fG(this.major,this.minor+1,0);case"patch":return new fG(this.major,this.minor,this.patch+1);default:return H.assertNever(u)}}with(u){const{major:s=this.major,minor:d=this.minor,patch:f=this.patch,prerelease:p=this.prerelease,build:E=this.build}=u;return new fG(s,d,f,p,E)}toString(){let u=`${this.major}.${this.minor}.${this.patch}`;return Oe(this.prerelease)&&(u+=`-${this.prerelease.join(".")}`),Oe(this.build)&&(u+=`+${this.build.join(".")}`),u}},Eoe.zero=new Eoe(0,0,0,["0"]),Lp=Eoe,EO=class j6t{constructor(u){this._alternatives=u?H.checkDefined(xqe(u),"Invalid range spec."):_t}static tryParse(u){const s=xqe(u);if(s){const d=new j6t("");return d._alternatives=s,d}}test(u){return typeof u=="string"&&(u=new Lp(u)),Swt(u,this._alternatives)}toString(){return Twt(this._alternatives)}},Fqe=/\|\|/g,Aqe=/\s+/g,Sqe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Bqe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,wqe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function Tqe(t,u){return typeof t=="object"&&typeof t.timeOrigin=="number"&&typeof t.mark=="function"&&typeof t.measure=="function"&&typeof t.now=="function"&&typeof t.clearMarks=="function"&&typeof t.clearMeasures=="function"&&typeof u=="function"}function Mwt(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&Tqe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function zwt(){if(hoe())try{const{performance:t,PerformanceObserver:u}=rS;if(Tqe(t,u))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:u}}catch{}}function l2e(){return _oe}var _oe,c2e,G0,Iwt=o({"src/compiler/performanceCore.ts"(){Bo(),_oe=Mwt()||zwt(),c2e=_oe==null?void 0:_oe.performance,G0=c2e?()=>c2e.now():Date.now?Date.now:()=>+new Date}}),nU,hh,Rwt=o({"src/compiler/perfLogger.ts"(){try{const t=e.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";nU=Ypt(t)}catch{nU=void 0}hh=nU!=null&&nU.logEvent?nU:void 0}});function Lqe(t,u,s,d){return t?Doe(u,s,d):xoe}function Doe(t,u,s){let d=0;return{enter:f,exit:p};function f(){++d===1&&ul(u)}function p(){--d===0?(ul(s),Tm(t,u,s)):d<0&&H.fail("enter/exit count does not match.")}}function ul(t){if(x8){const u=kN.get(t)??0;kN.set(t,u+1),v8.set(t,G0()),Ky==null||Ky.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Tm(t,u,s){if(x8){const d=(s!==void 0?v8.get(s):void 0)??G0(),f=(u!==void 0?v8.get(u):void 0)??d2e,p=C8.get(t)||0;C8.set(t,p+(d-f)),Ky==null||Ky.measure(t,u,s)}}function Owt(t){return kN.get(t)||0}function jwt(t){return C8.get(t)||0}function Vwt(t){C8.forEach((u,s)=>t(s,u))}function Hwt(t){v8.forEach((u,s)=>t(s))}function Kwt(t){t!==void 0?C8.delete(t):C8.clear(),Ky==null||Ky.clearMeasures(t)}function Wwt(t){t!==void 0?(kN.delete(t),v8.delete(t)):(kN.clear(),v8.clear()),Ky==null||Ky.clearMarks(t)}function Gwt(){return x8}function Jwt(t=c1){var u;return x8||(x8=!0,_O||(_O=l2e()),_O&&(d2e=_O.performance.timeOrigin,(_O.shouldWriteNativeEvents||(u=t==null?void 0:t.cpuProfilingEnabled)!=null&&u.call(t)||t!=null&&t.debugMode)&&(Ky=_O.performance))),!0}function $wt(){x8&&(v8.clear(),kN.clear(),C8.clear(),Ky=void 0,x8=!1)}var _O,Ky,xoe,x8,d2e,v8,kN,C8,Uwt=o({"src/compiler/performance.ts"(){Bo(),xoe={enter:Is,exit:Is},x8=!1,d2e=G0(),v8=new Map,kN=new Map,C8=new Map}}),h2e={};h(h2e,{clearMarks:()=>Wwt,clearMeasures:()=>Kwt,createTimer:()=>Doe,createTimerIf:()=>Lqe,disable:()=>$wt,enable:()=>Jwt,forEachMark:()=>Hwt,forEachMeasure:()=>Vwt,getCount:()=>Owt,getDuration:()=>jwt,isEnabled:()=>Gwt,mark:()=>ul,measure:()=>Tm,nullTimer:()=>xoe});var Wy=o({"src/compiler/_namespaces/ts.performance.ts"(){Uwt()}}),Gn,DO,f2e,m2e,qwt=o({"src/compiler/tracing.ts"(){Bo(),Wy(),(t=>{let u,s=0,d=0,f;const p=[];let E;const v=[];function b(Ce,ne,ve){if(H.assert(!Gn,"Tracing already started"),u===void 0)try{u=rS}catch(xe){throw new Error(`tracing requires having fs -(original error: ${xe.message||xe})`)}f=Ce,p.length=0,E===void 0&&(E=cr(ne,"legend.json")),u.existsSync(ne)||u.mkdirSync(ne,{recursive:!0});const Se=f==="build"?`.${process.pid}-${++s}`:f==="server"?`.${process.pid}`:"",Ne=cr(ne,`trace${Se}.json`),pe=cr(ne,`types${Se}.json`);v.push({configFilePath:ve,tracePath:Ne,typesPath:pe}),d=u.openSync(Ne,"w"),Gn=t;const fe={cat:"__metadata",ph:"M",ts:1e3*G0(),pid:1,tid:1};u.writeSync(d,`[ +`;function ct(Qt,Ti){X[Qt]+=Ti}}function le(de){switch(de){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function te(de,Oe){if(de.fill)de.fill(Oe);else for(let X=0;X0?de.repeat(Oe):"";let X="";for(;X.length=",d.version)),H4(f.major)||s.push(H4(f.minor)?WE("<",f.version.increment("major")):H4(f.patch)?WE("<",f.version.increment("minor")):WE("<=",f.version)),!0):!1}function Twt(t,u,s){const d=f2e(u);if(!d)return!1;const{version:f,major:p,minor:E,patch:v}=d;if(H4(p))(t==="<"||t===">")&&s.push(WE("<",Np.zero));else switch(t){case"~":s.push(WE(">=",f)),s.push(WE("<",f.increment(H4(E)?"major":"minor")));break;case"^":s.push(WE(">=",f)),s.push(WE("<",f.increment(f.major>0||H4(E)?"major":f.minor>0||H4(v)?"minor":"patch")));break;case"<":case">=":s.push(H4(E)||H4(v)?WE(t,f.with({prerelease:"0"})):WE(t,f));break;case"<=":case">":s.push(H4(E)?WE(t==="<="?"<":">=",f.increment("major").with({prerelease:"0"})):H4(v)?WE(t==="<="?"<":">=",f.increment("minor").with({prerelease:"0"})):WE(t,f));break;case"=":case void 0:H4(E)||H4(v)?(s.push(WE(">=",f.with({prerelease:"0"}))),s.push(WE("<",f.increment(H4(E)?"major":"minor").with({prerelease:"0"})))):s.push(WE("=",f));break;default:return!1}return!0}function H4(t){return t==="*"||t==="x"||t==="X"}function WE(t,u){return{operator:t,operand:u}}function Lwt(t,u){if(u.length===0)return!0;for(const s of u)if(Nwt(t,s))return!0;return!1}function Nwt(t,u){for(const s of u)if(!Pwt(t,s.operator,s.operand))return!1;return!0}function Pwt(t,u,s){const d=t.compareTo(s);switch(u){case"<":return d<0;case"<=":return d<=0;case">":return d>0;case">=":return d>=0;case"=":return d===0;default:return H.assertNever(u)}}function Mwt(t){return Vt(t,zwt).join(" || ")||"*"}function zwt(t){return Vt(t,Iwt).join(" ")}function Iwt(t){return`${t.operator}${t.operand}`}var Fqe,Aqe,Sqe,Bqe,wqe,m2e,Doe,Np,_O,Tqe,Lqe,Nqe,Pqe,Mqe,Rwt=o({"src/compiler/semver.ts"(){Bo(),Fqe=/^(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:\.(0|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Aqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)(?:\.(?:0|[1-9]\d*|[a-z-][a-z0-9-]*))*$/i,Sqe=/^(?:0|[1-9]\d*|[a-z-][a-z0-9-]*)$/i,Bqe=/^[a-z0-9-]+(?:\.[a-z0-9-]+)*$/i,wqe=/^[a-z0-9-]+$/i,m2e=/^(0|[1-9]\d*)$/,Doe=class mG{constructor(u,s=0,d=0,f="",p=""){typeof u=="string"&&({major:u,minor:s,patch:d,prerelease:f,build:p}=H.checkDefined(yqe(u),"Invalid version")),H.assert(u>=0,"Invalid argument: major"),H.assert(s>=0,"Invalid argument: minor"),H.assert(d>=0,"Invalid argument: patch");const E=f?Wa(f)?f:f.split("."):Dt,v=p?Wa(p)?p:p.split("."):Dt;H.assert(ye(E,b=>Sqe.test(b)),"Invalid argument: prerelease"),H.assert(ye(v,b=>wqe.test(b)),"Invalid argument: build"),this.major=u,this.minor=s,this.patch=d,this.prerelease=E,this.build=v}static tryParse(u){const s=yqe(u);if(!s)return;const{major:d,minor:f,patch:p,prerelease:E,build:v}=s;return new mG(d,f,p,E,v)}compareTo(u){return this===u?0:u===void 0?1:rl(this.major,u.major)||rl(this.minor,u.minor)||rl(this.patch,u.patch)||Bwt(this.prerelease,u.prerelease)}increment(u){switch(u){case"major":return new mG(this.major+1,0,0);case"minor":return new mG(this.major,this.minor+1,0);case"patch":return new mG(this.major,this.minor,this.patch+1);default:return H.assertNever(u)}}with(u){const{major:s=this.major,minor:d=this.minor,patch:f=this.patch,prerelease:p=this.prerelease,build:E=this.build}=u;return new mG(s,d,f,p,E)}toString(){let u=`${this.major}.${this.minor}.${this.patch}`;return Ge(this.prerelease)&&(u+=`-${this.prerelease.join(".")}`),Ge(this.build)&&(u+=`+${this.build.join(".")}`),u}},Doe.zero=new Doe(0,0,0,["0"]),Np=Doe,_O=class W6t{constructor(u){this._alternatives=u?H.checkDefined(kqe(u),"Invalid range spec."):Dt}static tryParse(u){const s=kqe(u);if(s){const d=new W6t("");return d._alternatives=s,d}}test(u){return typeof u=="string"&&(u=new Np(u)),Lwt(u,this._alternatives)}toString(){return Mwt(this._alternatives)}},Tqe=/\|\|/g,Lqe=/\s+/g,Nqe=/^([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:\.([xX*0]|[1-9]\d*)(?:-([a-z0-9-.]+))?(?:\+([a-z0-9-.]+))?)?)?$/i,Pqe=/^\s*([a-z0-9-+.*]+)\s+-\s+([a-z0-9-+.*]+)\s*$/i,Mqe=/^(~|\^|<|<=|>|>=|=)?\s*([a-z0-9-+.*]+)$/i}});function zqe(t,u){return typeof t=="object"&&typeof t.timeOrigin=="number"&&typeof t.mark=="function"&&typeof t.measure=="function"&&typeof t.now=="function"&&typeof t.clearMarks=="function"&&typeof t.clearMeasures=="function"&&typeof u=="function"}function Owt(){if(typeof performance=="object"&&typeof PerformanceObserver=="function"&&zqe(performance,PerformanceObserver))return{shouldWriteNativeEvents:!0,performance,PerformanceObserver}}function jwt(){if(moe())try{const{performance:t,PerformanceObserver:u}=rS;if(zqe(t,u))return{shouldWriteNativeEvents:!1,performance:t,PerformanceObserver:u}}catch{}}function p2e(){return xoe}var xoe,g2e,J0,Vwt=o({"src/compiler/performanceCore.ts"(){Bo(),xoe=Owt()||jwt(),g2e=xoe==null?void 0:xoe.performance,J0=g2e?()=>g2e.now():Date.now?Date.now:()=>+new Date}}),rU,mh,Hwt=o({"src/compiler/perfLogger.ts"(){try{const t=e.TS_ETW_MODULE_PATH??"./node_modules/@microsoft/typescript-etw";rU=igt(t)}catch{rU=void 0}mh=rU!=null&&rU.logEvent?rU:void 0}});function Iqe(t,u,s,d){return t?voe(u,s,d):Coe}function voe(t,u,s){let d=0;return{enter:f,exit:p};function f(){++d===1&&al(u)}function p(){--d===0?(al(s),Lm(t,u,s)):d<0&&H.fail("enter/exit count does not match.")}}function al(t){if(x8){const u=FN.get(t)??0;FN.set(t,u+1),v8.set(t,J0()),Ky==null||Ky.mark(t),typeof onProfilerEvent=="function"&&onProfilerEvent(t)}}function Lm(t,u,s){if(x8){const d=(s!==void 0?v8.get(s):void 0)??J0(),f=(u!==void 0?v8.get(u):void 0)??E2e,p=C8.get(t)||0;C8.set(t,p+(d-f)),Ky==null||Ky.measure(t,u,s)}}function Kwt(t){return FN.get(t)||0}function Wwt(t){return C8.get(t)||0}function Gwt(t){C8.forEach((u,s)=>t(s,u))}function Jwt(t){v8.forEach((u,s)=>t(s))}function $wt(t){t!==void 0?C8.delete(t):C8.clear(),Ky==null||Ky.clearMeasures(t)}function Uwt(t){t!==void 0?(FN.delete(t),v8.delete(t)):(FN.clear(),v8.clear()),Ky==null||Ky.clearMarks(t)}function qwt(){return x8}function Zwt(t=d1){var u;return x8||(x8=!0,DO||(DO=p2e()),DO&&(E2e=DO.performance.timeOrigin,(DO.shouldWriteNativeEvents||(u=t==null?void 0:t.cpuProfilingEnabled)!=null&&u.call(t)||t!=null&&t.debugMode)&&(Ky=DO.performance))),!0}function Ywt(){x8&&(v8.clear(),FN.clear(),C8.clear(),Ky=void 0,x8=!1)}var DO,Ky,Coe,x8,E2e,v8,FN,C8,Qwt=o({"src/compiler/performance.ts"(){Bo(),Coe={enter:Rs,exit:Rs},x8=!1,E2e=J0(),v8=new Map,FN=new Map,C8=new Map}}),_2e={};h(_2e,{clearMarks:()=>Uwt,clearMeasures:()=>$wt,createTimer:()=>voe,createTimerIf:()=>Iqe,disable:()=>Ywt,enable:()=>Zwt,forEachMark:()=>Jwt,forEachMeasure:()=>Gwt,getCount:()=>Kwt,getDuration:()=>Wwt,isEnabled:()=>qwt,mark:()=>al,measure:()=>Lm,nullTimer:()=>Coe});var Wy=o({"src/compiler/_namespaces/ts.performance.ts"(){Qwt()}}),Gn,xO,D2e,x2e,Xwt=o({"src/compiler/tracing.ts"(){Bo(),Wy(),(t=>{let u,s=0,d=0,f;const p=[];let E;const v=[];function b(Ce,ne,ve){if(H.assert(!Gn,"Tracing already started"),u===void 0)try{u=rS}catch(xe){throw new Error(`tracing requires having fs +(original error: ${xe.message||xe})`)}f=Ce,p.length=0,E===void 0&&(E=hr(ne,"legend.json")),u.existsSync(ne)||u.mkdirSync(ne,{recursive:!0});const Se=f==="build"?`.${process.pid}-${++s}`:f==="server"?`.${process.pid}`:"",Ne=hr(ne,`trace${Se}.json`),pe=hr(ne,`types${Se}.json`);v.push({configFilePath:ve,tracePath:Ne,typesPath:pe}),d=u.openSync(Ne,"w"),Gn=t;const fe={cat:"__metadata",ph:"M",ts:1e3*J0(),pid:1,tid:1};u.writeSync(d,`[ `+[{name:"process_name",args:{name:"tsc"},...fe},{name:"thread_name",args:{name:"Main"},...fe},{name:"TracingStartedInBrowser",...fe,cat:"disabled-by-default-devtools.timeline"}].map(xe=>JSON.stringify(xe)).join(`, `))}t.startTracing=b;function B(){H.assert(Gn,"Tracing is not in progress"),H.assert(!!p.length==(f!=="server")),u.writeSync(d,` ] -`),u.closeSync(d),Gn=void 0,p.length?ge(p):v[v.length-1].typesPath=void 0}t.stopTracing=B;function k(Ce){f!=="server"&&p.push(Ce)}t.recordType=k,(Ce=>{Ce.Parse="parse",Ce.Program="program",Ce.Bind="bind",Ce.Check="check",Ce.CheckTypes="checkTypes",Ce.Emit="emit",Ce.Session="session"})(t.Phase||(t.Phase={}));function T(Ce,ne,ve){oe("I",Ce,ne,ve,'"s":"g"')}t.instant=T;const M=[];function z(Ce,ne,ve,Se=!1){Se&&oe("B",Ce,ne,ve),M.push({phase:Ce,name:ne,args:ve,time:1e3*G0(),separateBeginAndEnd:Se})}t.push=z;function j(Ce){H.assert(M.length>0),Y(M.length-1,1e3*G0(),Ce),M.length--}t.pop=j;function J(){const Ce=1e3*G0();for(let ne=M.length-1;ne>=0;ne--)Y(ne,Ce);M.length=0}t.popAll=J;const K=1e3*10;function Y(Ce,ne,ve){const{phase:Se,name:Ne,args:pe,time:fe,separateBeginAndEnd:xe}=M[Ce];xe?(H.assert(!ve,"`results` are not supported for events with `separateBeginAndEnd`"),oe("E",Se,Ne,pe,void 0,ne)):K-fe%K<=ne-fe&&oe("X",Se,Ne,{...pe,results:ve},`"dur":${ne-fe}`,fe)}function oe(Ce,ne,ve,Se,Ne,pe=1e3*G0()){f==="server"&&ne==="checkTypes"||(ul("beginTracing"),u.writeSync(d,`, -{"pid":1,"tid":1,"ph":"${Ce}","cat":"${ne}","ts":${pe},"name":"${ve}"`),Ne&&u.writeSync(d,`,${Ne}`),Se&&u.writeSync(d,`,"args":${JSON.stringify(Se)}`),u.writeSync(d,"}"),ul("endTracing"),Tm("Tracing","beginTracing","endTracing"))}function se(Ce){const ne=zn(Ce);return ne?{path:ne.path,start:ve(s0(ne,Ce.pos)),end:ve(s0(ne,Ce.end))}:void 0;function ve(Se){return{line:Se.line+1,character:Se.character+1}}}function ge(Ce){var ne,ve,Se,Ne,pe,fe,xe,Be,Ge,Ae,De,Ke,Je,ft,Ye,Ve,We,Gt,Yt;ul("beginDumpTypes");const Ie=v[v.length-1].typesPath,st=u.openSync(Ie,"w"),St=new Map;u.writeSync(st,"[");const It=Ce.length;for(let ei=0;eijn.id),referenceLocation:se(bt.node)}}let an={};if(ht.flags&16777216){const bt=ht;an={conditionalCheckType:(fe=bt.checkType)==null?void 0:fe.id,conditionalExtendsType:(xe=bt.extendsType)==null?void 0:xe.id,conditionalTrueType:((Be=bt.resolvedTrueType)==null?void 0:Be.id)??-1,conditionalFalseType:((Ge=bt.resolvedFalseType)==null?void 0:Ge.id)??-1}}let Pi={};if(ht.flags&33554432){const bt=ht;Pi={substitutionBaseType:(Ae=bt.baseType)==null?void 0:Ae.id,constraintType:(De=bt.constraint)==null?void 0:De.id}}let Ai={};if(Ut&1024){const bt=ht;Ai={reverseMappedSourceType:(Ke=bt.source)==null?void 0:Ke.id,reverseMappedMappedType:(Je=bt.mappedType)==null?void 0:Je.id,reverseMappedConstraintType:(ft=bt.constraintType)==null?void 0:ft.id}}let Zu={};if(Ut&256){const bt=ht;Zu={evolvingArrayElementType:bt.elementType.id,evolvingArrayFinalType:(Ye=bt.finalArrayType)==null?void 0:Ye.id}}let aa;const yr=ht.checker.getRecursionIdentity(ht);yr&&(aa=St.get(yr),aa||(aa=St.size,St.set(yr,aa)));const Ba={id:ht.id,intrinsicName:ht.intrinsicName,symbolName:(Ni==null?void 0:Ni.escapedName)&&Qr(Ni.escapedName),recursionId:aa,isTuple:Ut&8?!0:void 0,unionTypes:ht.flags&1048576?(Ve=ht.types)==null?void 0:Ve.map(bt=>bt.id):void 0,intersectionTypes:ht.flags&2097152?ht.types.map(bt=>bt.id):void 0,aliasTypeArguments:(We=ht.aliasTypeArguments)==null?void 0:We.map(bt=>bt.id),keyofType:ht.flags&4194304?(Gt=ht.type)==null?void 0:Gt.id:void 0,...xn,...Jn,...an,...Pi,...Ai,...Zu,destructuringPattern:se(ht.pattern),firstDeclaration:se((Yt=Ni==null?void 0:Ni.declarations)==null?void 0:Yt[0]),flags:H.formatTypeFlags(ht.flags).split("|"),display:ji};u.writeSync(st,JSON.stringify(Ba)),ei{Ce.Parse="parse",Ce.Program="program",Ce.Bind="bind",Ce.Check="check",Ce.CheckTypes="checkTypes",Ce.Emit="emit",Ce.Session="session"})(t.Phase||(t.Phase={}));function T(Ce,ne,ve){oe("I",Ce,ne,ve,'"s":"g"')}t.instant=T;const M=[];function z(Ce,ne,ve,Se=!1){Se&&oe("B",Ce,ne,ve),M.push({phase:Ce,name:ne,args:ve,time:1e3*J0(),separateBeginAndEnd:Se})}t.push=z;function j(Ce){H.assert(M.length>0),Y(M.length-1,1e3*J0(),Ce),M.length--}t.pop=j;function J(){const Ce=1e3*J0();for(let ne=M.length-1;ne>=0;ne--)Y(ne,Ce);M.length=0}t.popAll=J;const K=1e3*10;function Y(Ce,ne,ve){const{phase:Se,name:Ne,args:pe,time:fe,separateBeginAndEnd:xe}=M[Ce];xe?(H.assert(!ve,"`results` are not supported for events with `separateBeginAndEnd`"),oe("E",Se,Ne,pe,void 0,ne)):K-fe%K<=ne-fe&&oe("X",Se,Ne,{...pe,results:ve},`"dur":${ne-fe}`,fe)}function oe(Ce,ne,ve,Se,Ne,pe=1e3*J0()){f==="server"&&ne==="checkTypes"||(al("beginTracing"),u.writeSync(d,`, +{"pid":1,"tid":1,"ph":"${Ce}","cat":"${ne}","ts":${pe},"name":"${ve}"`),Ne&&u.writeSync(d,`,${Ne}`),Se&&u.writeSync(d,`,"args":${JSON.stringify(Se)}`),u.writeSync(d,"}"),al("endTracing"),Lm("Tracing","beginTracing","endTracing"))}function se(Ce){const ne=zn(Ce);return ne?{path:ne.path,start:ve(s0(ne,Ce.pos)),end:ve(s0(ne,Ce.end))}:void 0;function ve(Se){return{line:Se.line+1,character:Se.character+1}}}function ge(Ce){var ne,ve,Se,Ne,pe,fe,xe,Be,We,Ae,De,He,Je,mt,Ye,je,Ke,Gt,Yt;al("beginDumpTypes");const Ie=v[v.length-1].typesPath,st=u.openSync(Ie,"w"),Bt=new Map;u.writeSync(st,"[");const It=Ce.length;for(let ei=0;eijn.id),referenceLocation:se(bt.node)}}let an={};if(ft.flags&16777216){const bt=ft;an={conditionalCheckType:(fe=bt.checkType)==null?void 0:fe.id,conditionalExtendsType:(xe=bt.extendsType)==null?void 0:xe.id,conditionalTrueType:((Be=bt.resolvedTrueType)==null?void 0:Be.id)??-1,conditionalFalseType:((We=bt.resolvedFalseType)==null?void 0:We.id)??-1}}let Pi={};if(ft.flags&33554432){const bt=ft;Pi={substitutionBaseType:(Ae=bt.baseType)==null?void 0:Ae.id,constraintType:(De=bt.constraint)==null?void 0:De.id}}let Fi={};if(Ut&1024){const bt=ft;Fi={reverseMappedSourceType:(He=bt.source)==null?void 0:He.id,reverseMappedMappedType:(Je=bt.mappedType)==null?void 0:Je.id,reverseMappedConstraintType:(mt=bt.constraintType)==null?void 0:mt.id}}let Yu={};if(Ut&256){const bt=ft;Yu={evolvingArrayElementType:bt.elementType.id,evolvingArrayFinalType:(Ye=bt.finalArrayType)==null?void 0:Ye.id}}let oa;const Fr=ft.checker.getRecursionIdentity(ft);Fr&&(oa=Bt.get(Fr),oa||(oa=Bt.size,Bt.set(Fr,oa)));const wa={id:ft.id,intrinsicName:ft.intrinsicName,symbolName:(Ni==null?void 0:Ni.escapedName)&&Qr(Ni.escapedName),recursionId:oa,isTuple:Ut&8?!0:void 0,unionTypes:ft.flags&1048576?(je=ft.types)==null?void 0:je.map(bt=>bt.id):void 0,intersectionTypes:ft.flags&2097152?ft.types.map(bt=>bt.id):void 0,aliasTypeArguments:(Ke=ft.aliasTypeArguments)==null?void 0:Ke.map(bt=>bt.id),keyofType:ft.flags&4194304?(Gt=ft.type)==null?void 0:Gt.id:void 0,...xn,...Jn,...an,...Pi,...Fi,...Yu,destructuringPattern:se(ft.pattern),firstDeclaration:se((Yt=Ni==null?void 0:Ni.declarations)==null?void 0:Yt[0]),flags:H.formatTypeFlags(ft.flags).split("|"),display:Vi};u.writeSync(st,JSON.stringify(wa)),ei(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.QualifiedName=166]="QualifiedName",t[t.ComputedPropertyName=167]="ComputedPropertyName",t[t.TypeParameter=168]="TypeParameter",t[t.Parameter=169]="Parameter",t[t.Decorator=170]="Decorator",t[t.PropertySignature=171]="PropertySignature",t[t.PropertyDeclaration=172]="PropertyDeclaration",t[t.MethodSignature=173]="MethodSignature",t[t.MethodDeclaration=174]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",t[t.Constructor=176]="Constructor",t[t.GetAccessor=177]="GetAccessor",t[t.SetAccessor=178]="SetAccessor",t[t.CallSignature=179]="CallSignature",t[t.ConstructSignature=180]="ConstructSignature",t[t.IndexSignature=181]="IndexSignature",t[t.TypePredicate=182]="TypePredicate",t[t.TypeReference=183]="TypeReference",t[t.FunctionType=184]="FunctionType",t[t.ConstructorType=185]="ConstructorType",t[t.TypeQuery=186]="TypeQuery",t[t.TypeLiteral=187]="TypeLiteral",t[t.ArrayType=188]="ArrayType",t[t.TupleType=189]="TupleType",t[t.OptionalType=190]="OptionalType",t[t.RestType=191]="RestType",t[t.UnionType=192]="UnionType",t[t.IntersectionType=193]="IntersectionType",t[t.ConditionalType=194]="ConditionalType",t[t.InferType=195]="InferType",t[t.ParenthesizedType=196]="ParenthesizedType",t[t.ThisType=197]="ThisType",t[t.TypeOperator=198]="TypeOperator",t[t.IndexedAccessType=199]="IndexedAccessType",t[t.MappedType=200]="MappedType",t[t.LiteralType=201]="LiteralType",t[t.NamedTupleMember=202]="NamedTupleMember",t[t.TemplateLiteralType=203]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",t[t.ImportType=205]="ImportType",t[t.ObjectBindingPattern=206]="ObjectBindingPattern",t[t.ArrayBindingPattern=207]="ArrayBindingPattern",t[t.BindingElement=208]="BindingElement",t[t.ArrayLiteralExpression=209]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=210]="ObjectLiteralExpression",t[t.PropertyAccessExpression=211]="PropertyAccessExpression",t[t.ElementAccessExpression=212]="ElementAccessExpression",t[t.CallExpression=213]="CallExpression",t[t.NewExpression=214]="NewExpression",t[t.TaggedTemplateExpression=215]="TaggedTemplateExpression",t[t.TypeAssertionExpression=216]="TypeAssertionExpression",t[t.ParenthesizedExpression=217]="ParenthesizedExpression",t[t.FunctionExpression=218]="FunctionExpression",t[t.ArrowFunction=219]="ArrowFunction",t[t.DeleteExpression=220]="DeleteExpression",t[t.TypeOfExpression=221]="TypeOfExpression",t[t.VoidExpression=222]="VoidExpression",t[t.AwaitExpression=223]="AwaitExpression",t[t.PrefixUnaryExpression=224]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=225]="PostfixUnaryExpression",t[t.BinaryExpression=226]="BinaryExpression",t[t.ConditionalExpression=227]="ConditionalExpression",t[t.TemplateExpression=228]="TemplateExpression",t[t.YieldExpression=229]="YieldExpression",t[t.SpreadElement=230]="SpreadElement",t[t.ClassExpression=231]="ClassExpression",t[t.OmittedExpression=232]="OmittedExpression",t[t.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",t[t.AsExpression=234]="AsExpression",t[t.NonNullExpression=235]="NonNullExpression",t[t.MetaProperty=236]="MetaProperty",t[t.SyntheticExpression=237]="SyntheticExpression",t[t.SatisfiesExpression=238]="SatisfiesExpression",t[t.TemplateSpan=239]="TemplateSpan",t[t.SemicolonClassElement=240]="SemicolonClassElement",t[t.Block=241]="Block",t[t.EmptyStatement=242]="EmptyStatement",t[t.VariableStatement=243]="VariableStatement",t[t.ExpressionStatement=244]="ExpressionStatement",t[t.IfStatement=245]="IfStatement",t[t.DoStatement=246]="DoStatement",t[t.WhileStatement=247]="WhileStatement",t[t.ForStatement=248]="ForStatement",t[t.ForInStatement=249]="ForInStatement",t[t.ForOfStatement=250]="ForOfStatement",t[t.ContinueStatement=251]="ContinueStatement",t[t.BreakStatement=252]="BreakStatement",t[t.ReturnStatement=253]="ReturnStatement",t[t.WithStatement=254]="WithStatement",t[t.SwitchStatement=255]="SwitchStatement",t[t.LabeledStatement=256]="LabeledStatement",t[t.ThrowStatement=257]="ThrowStatement",t[t.TryStatement=258]="TryStatement",t[t.DebuggerStatement=259]="DebuggerStatement",t[t.VariableDeclaration=260]="VariableDeclaration",t[t.VariableDeclarationList=261]="VariableDeclarationList",t[t.FunctionDeclaration=262]="FunctionDeclaration",t[t.ClassDeclaration=263]="ClassDeclaration",t[t.InterfaceDeclaration=264]="InterfaceDeclaration",t[t.TypeAliasDeclaration=265]="TypeAliasDeclaration",t[t.EnumDeclaration=266]="EnumDeclaration",t[t.ModuleDeclaration=267]="ModuleDeclaration",t[t.ModuleBlock=268]="ModuleBlock",t[t.CaseBlock=269]="CaseBlock",t[t.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",t[t.ImportDeclaration=272]="ImportDeclaration",t[t.ImportClause=273]="ImportClause",t[t.NamespaceImport=274]="NamespaceImport",t[t.NamedImports=275]="NamedImports",t[t.ImportSpecifier=276]="ImportSpecifier",t[t.ExportAssignment=277]="ExportAssignment",t[t.ExportDeclaration=278]="ExportDeclaration",t[t.NamedExports=279]="NamedExports",t[t.NamespaceExport=280]="NamespaceExport",t[t.ExportSpecifier=281]="ExportSpecifier",t[t.MissingDeclaration=282]="MissingDeclaration",t[t.ExternalModuleReference=283]="ExternalModuleReference",t[t.JsxElement=284]="JsxElement",t[t.JsxSelfClosingElement=285]="JsxSelfClosingElement",t[t.JsxOpeningElement=286]="JsxOpeningElement",t[t.JsxClosingElement=287]="JsxClosingElement",t[t.JsxFragment=288]="JsxFragment",t[t.JsxOpeningFragment=289]="JsxOpeningFragment",t[t.JsxClosingFragment=290]="JsxClosingFragment",t[t.JsxAttribute=291]="JsxAttribute",t[t.JsxAttributes=292]="JsxAttributes",t[t.JsxSpreadAttribute=293]="JsxSpreadAttribute",t[t.JsxExpression=294]="JsxExpression",t[t.JsxNamespacedName=295]="JsxNamespacedName",t[t.CaseClause=296]="CaseClause",t[t.DefaultClause=297]="DefaultClause",t[t.HeritageClause=298]="HeritageClause",t[t.CatchClause=299]="CatchClause",t[t.ImportAttributes=300]="ImportAttributes",t[t.ImportAttribute=301]="ImportAttribute",t[t.AssertClause=300]="AssertClause",t[t.AssertEntry=301]="AssertEntry",t[t.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",t[t.PropertyAssignment=303]="PropertyAssignment",t[t.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",t[t.SpreadAssignment=305]="SpreadAssignment",t[t.EnumMember=306]="EnumMember",t[t.UnparsedPrologue=307]="UnparsedPrologue",t[t.UnparsedPrepend=308]="UnparsedPrepend",t[t.UnparsedText=309]="UnparsedText",t[t.UnparsedInternalText=310]="UnparsedInternalText",t[t.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",t[t.SourceFile=312]="SourceFile",t[t.Bundle=313]="Bundle",t[t.UnparsedSource=314]="UnparsedSource",t[t.InputFiles=315]="InputFiles",t[t.JSDocTypeExpression=316]="JSDocTypeExpression",t[t.JSDocNameReference=317]="JSDocNameReference",t[t.JSDocMemberName=318]="JSDocMemberName",t[t.JSDocAllType=319]="JSDocAllType",t[t.JSDocUnknownType=320]="JSDocUnknownType",t[t.JSDocNullableType=321]="JSDocNullableType",t[t.JSDocNonNullableType=322]="JSDocNonNullableType",t[t.JSDocOptionalType=323]="JSDocOptionalType",t[t.JSDocFunctionType=324]="JSDocFunctionType",t[t.JSDocVariadicType=325]="JSDocVariadicType",t[t.JSDocNamepathType=326]="JSDocNamepathType",t[t.JSDoc=327]="JSDoc",t[t.JSDocComment=327]="JSDocComment",t[t.JSDocText=328]="JSDocText",t[t.JSDocTypeLiteral=329]="JSDocTypeLiteral",t[t.JSDocSignature=330]="JSDocSignature",t[t.JSDocLink=331]="JSDocLink",t[t.JSDocLinkCode=332]="JSDocLinkCode",t[t.JSDocLinkPlain=333]="JSDocLinkPlain",t[t.JSDocTag=334]="JSDocTag",t[t.JSDocAugmentsTag=335]="JSDocAugmentsTag",t[t.JSDocImplementsTag=336]="JSDocImplementsTag",t[t.JSDocAuthorTag=337]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",t[t.JSDocClassTag=339]="JSDocClassTag",t[t.JSDocPublicTag=340]="JSDocPublicTag",t[t.JSDocPrivateTag=341]="JSDocPrivateTag",t[t.JSDocProtectedTag=342]="JSDocProtectedTag",t[t.JSDocReadonlyTag=343]="JSDocReadonlyTag",t[t.JSDocOverrideTag=344]="JSDocOverrideTag",t[t.JSDocCallbackTag=345]="JSDocCallbackTag",t[t.JSDocOverloadTag=346]="JSDocOverloadTag",t[t.JSDocEnumTag=347]="JSDocEnumTag",t[t.JSDocParameterTag=348]="JSDocParameterTag",t[t.JSDocReturnTag=349]="JSDocReturnTag",t[t.JSDocThisTag=350]="JSDocThisTag",t[t.JSDocTypeTag=351]="JSDocTypeTag",t[t.JSDocTemplateTag=352]="JSDocTemplateTag",t[t.JSDocTypedefTag=353]="JSDocTypedefTag",t[t.JSDocSeeTag=354]="JSDocSeeTag",t[t.JSDocPropertyTag=355]="JSDocPropertyTag",t[t.JSDocThrowsTag=356]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",t[t.SyntaxList=358]="SyntaxList",t[t.NotEmittedStatement=359]="NotEmittedStatement",t[t.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",t[t.CommaListExpression=361]="CommaListExpression",t[t.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",t[t.Count=363]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=165]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=182]="FirstTypeNode",t[t.LastTypeNode=205]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=165]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=243]="FirstStatement",t[t.LastStatement=259]="LastStatement",t[t.FirstNode=166]="FirstNode",t[t.FirstJSDocNode=316]="FirstJSDocNode",t[t.LastJSDocNode=357]="LastJSDocNode",t[t.FirstJSDocTagNode=334]="FirstJSDocTagNode",t[t.LastJSDocTagNode=357]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=165]="LastContextualKeyword",t))(uU||{}),rU=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(rU||{}),aU=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(aU||{}),voe=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(voe||{}),oU=(t=>(t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t))(oU||{}),sU=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(sU||{}),Coe=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(Coe||{}),xO=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(xO||{}),boe=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(boe||{}),b8=class{},lU=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(lU||{}),yoe=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(yoe||{}),koe=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(koe||{}),cU=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(cU||{}),Foe=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(Foe||{}),Aoe=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Aoe||{}),Soe=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(Soe||{}),Boe=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(Boe||{}),woe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.WriteComputedProps=1073741824]="WriteComputedProps",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(woe||{}),Toe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",t))(Toe||{}),Loe=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(Loe||{}),Noe=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(Noe||{}),Poe=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(Poe||{}),Moe=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(Moe||{}),zoe=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(zoe||{}),dU=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(dU||{}),Ioe=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(Ioe||{}),Roe=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(Roe||{}),Ooe=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t))(Ooe||{}),joe=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t))(joe||{}),hU=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(hU||{}),fU=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t))(fU||{}),Voe=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(Voe||{}),Hoe=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(Hoe||{}),Koe=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(Koe||{}),Woe=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(Woe||{}),Goe=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))(Goe||{}),Joe=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(Joe||{}),mU=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(mU||{}),$oe=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))($oe||{}),Uoe=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(Uoe||{}),qoe=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(qoe||{}),Zoe=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(Zoe||{}),Yoe=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Yoe||{}),Qoe=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(Qoe||{}),vO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(vO||{}),y8=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(y8||{}),Xoe=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(Xoe||{}),ese=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(ese||{}),tse=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(tse||{}),ise=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(ise||{}),FN=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",t))(FN||{}),nse=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(nse||{}),use=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(use||{}),rse=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(rse||{}),pU=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(pU||{}),ase=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(ase||{}),ose=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(ose||{}),sse=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(sse||{}),lse=(t=>(t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(lse||{}),cse=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(cse||{}),gU=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(gU||{}),EU=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(EU||{}),_U=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(_U||{}),dse=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(dse||{}),hse=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.SetFunctionName=8388608]="SetFunctionName",t[t.PropKey=16777216]="PropKey",t[t.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=33554432]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(hse||{}),fse=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t))(fse||{}),mse=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",t[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",t))(mse||{}),pse=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(pse||{}),gse=(t=>(t.Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",t))(gse||{}),Ese=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(Ese||{}),_se=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(_se||{}),CO={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}],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}},Dse=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(Dse||{})}});function AN(t){let u=5381;for(let s=0;s{se.isClosed=!0,Vy(u,se)}}}function v(K){const Y=[];return Y.pollingInterval=K,Y.pollIndex=0,Y.pollScheduled=!1,Y}function b(K,Y){Y.pollIndex=k(Y,Y.pollingInterval,Y.pollIndex,vU[Y.pollingInterval]),Y.length?J(Y.pollingInterval):(H.assert(Y.pollIndex===0),Y.pollScheduled=!1)}function B(K,Y){k(s,250,0,s.length),b(K,Y),!Y.pollScheduled&&s.length&&J(250)}function k(K,Y,oe,se){return Mqe(t,K,oe,se,ge);function ge(ae,Ce,ne){ne?(ae.unchangedPolls=0,K!==s&&(K[Ce]=void 0,z(ae))):ae.unchangedPolls!==yO[Y]?ae.unchangedPolls++:K===s?(ae.unchangedPolls=1,K[Ce]=void 0,M(ae,250)):Y!==2e3&&(ae.unchangedPolls++,K[Ce]=void 0,M(ae,Y===250?500:2e3))}}function T(K){switch(K){case 250:return d;case 500:return f;case 2e3:return p}}function M(K,Y){T(Y).push(K),j(Y)}function z(K){s.push(K),j(250)}function j(K){T(K).pollScheduled||J(K)}function J(K){T(K).pollScheduled=t.setTimeout(K===250?B:b,K,K===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",T(K))}}function Qwt(t,u){const s=wm(),d=new Map,f=L1(u);return p;function p(v,b,B,k){const T=f(v);s.add(T,b);const M=lr(T)||".",z=d.get(M)||E(lr(v)||".",M,k);return z.referenceCount++,{close:()=>{z.referenceCount===1?(z.close(),d.delete(M)):z.referenceCount--,s.remove(T,b)}}}function E(v,b,B){const k=t(v,1,(T,M,z)=>{if(!Ja(M))return;const j=$a(M,v),J=j&&s.get(f(j));if(J)for(const K of J)K(j,1,z)},!1,500,B);return k.referenceCount=0,d.set(b,k),k}}function Xwt(t){const u=[];let s=0,d;return f;function f(v,b){const B={fileName:v,callback:b,mtime:e7(t,v)};return u.push(B),E(),{close:()=>{B.isClosed=!0,Vy(u,B)}}}function p(){d=void 0,s=Mqe(t,u,s,vU[250]),E()}function E(){!u.length||d||(d=t.setTimeout(p,2e3,"pollQueue"))}}function zqe(t,u,s,d,f){const E=L1(u)(s),v=t.get(E);return v?v.callbacks.push(d):t.set(E,{watcher:f((b,B,k)=>{var T;return(T=t.get(E))==null?void 0:T.callbacks.slice().forEach(M=>M(b,B,k))}),callbacks:[d]}),{close:()=>{const b=t.get(E);b&&(!gO(b.callbacks,d)||b.callbacks.length||(t.delete(E),jm(b)))}}}function eTt(t,u){const s=t.mtime.getTime(),d=u.getTime();return s!==d?(t.mtime=u,t.callback(t.fileName,xse(s,d),u),!0):!1}function xse(t,u){return t===0?0:u===0?2:1}function bO(t){return D2e(t)}function g2e(t){D2e=t}function tTt({watchDirectory:t,useCaseSensitiveFileNames:u,getCurrentDirectory:s,getAccessibleSortedChildDirectories:d,fileSystemEntryExists:f,realpath:p,setTimeout:E,clearTimeout:v}){const b=new Map,B=wm(),k=new Map;let T;const M=CN(!u),z=L1(u);return(ne,ve,Se,Ne)=>Se?j(ne,Ne,ve):t(ne,ve,Se,Ne);function j(ne,ve,Se){const Ne=z(ne);let pe=b.get(Ne);pe?pe.refCount++:(pe={watcher:t(ne,xe=>{ae(xe,ve)||(ve!=null&&ve.synchronousWatchDirectory?(J(Ne,xe),ge(ne,Ne,ve)):K(ne,Ne,xe,ve))},!1,ve),refCount:1,childWatches:_t},b.set(Ne,pe),ge(ne,Ne,ve));const fe=Se&&{dirName:ne,callback:Se};return fe&&B.add(Ne,fe),{dirName:ne,close:()=>{const xe=H.checkDefined(b.get(Ne));fe&&B.remove(Ne,fe),xe.refCount--,!xe.refCount&&(b.delete(Ne),jm(xe),xe.childWatches.forEach(fg))}}}function J(ne,ve,Se){let Ne,pe;Ja(ve)?Ne=ve:pe=ve,B.forEach((fe,xe)=>{if(!(pe&&pe.get(xe)===!0)&&(xe===ne||Pa(ne,xe)&&ne[xe.length]===rl))if(pe)if(Se){const Be=pe.get(xe);Be?Be.push(...Se):pe.set(xe,Se.slice())}else pe.set(xe,!0);else fe.forEach(({callback:Be})=>Be(Ne))})}function K(ne,ve,Se,Ne){const pe=b.get(ve);if(pe&&f(ne,1)){Y(ne,ve,Se,Ne);return}J(ve,Se),se(pe)}function Y(ne,ve,Se,Ne){const pe=k.get(ve);pe?pe.fileNames.push(Se):k.set(ve,{dirName:ne,options:Ne,fileNames:[Se]}),T&&(v(T),T=void 0),T=E(oe,1e3,"timerToUpdateChildWatches")}function oe(){T=void 0,bO(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const ne=G0(),ve=new Map;for(;!T&&k.size;){const Ne=k.entries().next();H.assert(!Ne.done);const{value:[pe,{dirName:fe,options:xe,fileNames:Be}]}=Ne;k.delete(pe);const Ge=ge(fe,pe,xe);J(pe,ve,Ge?void 0:Be)}bO(`sysLog:: invokingWatchers:: Elapsed:: ${G0()-ne}ms:: ${k.size}`),B.forEach((Ne,pe)=>{const fe=ve.get(pe);fe&&Ne.forEach(({callback:xe,dirName:Be})=>{Ha(fe)?fe.forEach(xe):xe(Be)})});const Se=G0()-ne;bO(`sysLog:: Elapsed:: ${Se}ms:: onTimerToUpdateChildWatches:: ${k.size} ${T}`)}function se(ne){if(!ne)return;const ve=ne.childWatches;ne.childWatches=_t;for(const Se of ve)Se.close(),se(b.get(z(Se.dirName)))}function ge(ne,ve,Se){const Ne=b.get(ve);if(!Ne)return!1;let pe;const fe=eU(f(ne,1)?qi(d(ne),Ge=>{const Ae=$a(Ge,ne);return!ae(Ae,Se)&&M(Ae,$o(p(Ae)))===0?Ae:void 0}):_t,Ne.childWatches,(Ge,Ae)=>M(Ge,Ae.dirName),xe,fg,Be);return Ne.childWatches=pe||_t,fe;function xe(Ge){const Ae=j(Ge,Se);Be(Ae)}function Be(Ge){(pe||(pe=[])).push(Ge)}}function ae(ne,ve){return Oe(kO,Se=>Ce(ne,Se))||Iqe(ne,ve,u,s)}function Ce(ne,ve){return ne.includes(ve)?!0:u?!1:z(ne).includes(ve)}}function iTt(t){return(u,s,d)=>t(s===1?"change":"rename","",d)}function nTt(t,u,s){return(d,f,p)=>{d==="rename"?(p||(p=s(t)||K_),u(t,p!==K_?0:2,p)):u(t,1,p)}}function Iqe(t,u,s,d){return((u==null?void 0:u.excludeDirectories)||(u==null?void 0:u.excludeFiles))&&(TY(t,u==null?void 0:u.excludeFiles,s,d())||TY(t,u==null?void 0:u.excludeDirectories,s,d()))}function Rqe(t,u,s,d,f){return(p,E)=>{if(p==="rename"){const v=E?$o(cr(t,E)):t;(!E||!Iqe(v,s,d,f))&&u(v)}}}function E2e({pollingWatchFileWorker:t,getModifiedTime:u,setTimeout:s,clearTimeout:d,fsWatchWorker:f,fileSystemEntryExists:p,useCaseSensitiveFileNames:E,getCurrentDirectory:v,fsSupportsRecursiveFsWatch:b,getAccessibleSortedChildDirectories:B,realpath:k,tscWatchFile:T,useNonPollingWatchers:M,tscWatchDirectory:z,inodeWatching:j,sysLog:J}){const K=new Map,Y=new Map,oe=new Map;let se,ge,ae,Ce,ne=!1;return{watchFile:ve,watchDirectory:xe};function ve(Je,ft,Ye,Ve){Ve=pe(Ve,M);const We=H.checkDefined(Ve.watchFile);switch(We){case 0:return Ae(Je,ft,250,void 0);case 1:return Ae(Je,ft,Ye,void 0);case 2:return Se()(Je,ft,Ye,void 0);case 3:return Ne()(Je,ft,void 0,void 0);case 4:return De(Je,0,nTt(Je,ft,u),!1,Ye,xH(Ve));case 5:return ae||(ae=Qwt(De,E)),ae(Je,ft,Ye,xH(Ve));default:H.assertNever(We)}}function Se(){return se||(se=Ywt({getModifiedTime:u,setTimeout:s}))}function Ne(){return ge||(ge=Xwt({getModifiedTime:u,setTimeout:s}))}function pe(Je,ft){if(Je&&Je.watchFile!==void 0)return Je;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return fe(4,1,Je);case"UseFsEventsWithFallbackDynamicPolling":return fe(4,2,Je);case"UseFsEventsOnParentDirectory":ft=!0;default:return ft?fe(5,1,Je):{watchFile:4}}}function fe(Je,ft,Ye){const Ve=Ye==null?void 0:Ye.fallbackPolling;return{watchFile:Je,fallbackPolling:Ve===void 0?ft:Ve}}function xe(Je,ft,Ye,Ve){return b?De(Je,1,Rqe(Je,ft,Ve,E,v),Ye,500,xH(Ve)):(Ce||(Ce=tTt({useCaseSensitiveFileNames:E,getCurrentDirectory:v,fileSystemEntryExists:p,getAccessibleSortedChildDirectories:B,watchDirectory:Be,realpath:k,setTimeout:s,clearTimeout:d})),Ce(Je,ft,Ye,Ve))}function Be(Je,ft,Ye,Ve){H.assert(!Ye);const We=Ge(Ve),Gt=H.checkDefined(We.watchDirectory);switch(Gt){case 1:return Ae(Je,()=>ft(Je),500,void 0);case 2:return Se()(Je,()=>ft(Je),500,void 0);case 3:return Ne()(Je,()=>ft(Je),void 0,void 0);case 0:return De(Je,1,Rqe(Je,ft,Ve,E,v),Ye,500,xH(We));default:H.assertNever(Gt)}}function Ge(Je){if(Je&&Je.watchDirectory!==void 0)return Je;switch(z){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const ft=Je==null?void 0:Je.fallbackPolling;return{watchDirectory:0,fallbackPolling:ft!==void 0?ft:void 0}}}function Ae(Je,ft,Ye,Ve){return zqe(K,E,Je,ft,We=>t(Je,We,Ye,Ve))}function De(Je,ft,Ye,Ve,We,Gt){return zqe(Ve?oe:Y,E,Je,Ye,Yt=>Ke(Je,ft,Yt,Ve,We,Gt))}function Ke(Je,ft,Ye,Ve,We,Gt){let Yt,Ie;j&&(Yt=Je.substring(Je.lastIndexOf(rl)),Ie=Yt.slice(rl.length));let st=p(Je,ft)?It():Ut();return{close:()=>{st&&(st.close(),st=void 0)}};function St(Ni){st&&(J(`sysLog:: ${Je}:: Changing watcher to ${Ni===It?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=Ni())}function It(){if(ne)return J(`sysLog:: ${Je}:: Defaulting to watchFile`),ht();try{const Ni=f(Je,Ve,j?ei:Ye);return Ni.on("error",()=>{Ye("rename",""),St(Ut)}),Ni}catch(Ni){return ne||(ne=Ni.code==="ENOSPC"),J(`sysLog:: ${Je}:: Changing to watchFile`),ht()}}function ei(Ni,ji){let xn;if(ji&&sc(ji,"~")&&(xn=ji,ji=ji.slice(0,ji.length-1)),Ni==="rename"&&(!ji||ji===Ie||sc(ji,Yt))){const Jn=u(Je)||K_;xn&&Ye(Ni,xn,Jn),Ye(Ni,ji,Jn),j?St(Jn===K_?Ut:It):Jn===K_&&St(Ut)}else xn&&Ye(Ni,xn),Ye(Ni,ji)}function ht(){return ve(Je,iTt(Ye),We,Gt)}function Ut(){return ve(Je,(Ni,ji,xn)=>{ji===0&&(xn||(xn=u(Je)||K_),xn!==K_&&(Ye("rename","",xn),St(It)))},We,Gt)}}}function _2e(t){const u=t.writeFile;t.writeFile=(s,d,f)=>nle(s,d,!!f,(p,E,v)=>u.call(t,p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p))}function Oqe(t){c1=t}var vse,DU,K_,xU,vU,yO,kO,D2e,Cse,c1,uTt=o({"src/compiler/sys.ts"(){Bo(),vse=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(vse||{}),DU=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(DU||{}),K_=new Date(0),xU={Low:32,Medium:64,High:256},vU=p2e(xU),yO=p2e(xU),kO=["/node_modules/.","/.git","/.#"],D2e=Is,Cse=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(Cse||{}),c1=(()=>{const t="\uFEFF";function u(){const d=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,f=rS,p=rS,E=rS;let v;try{v=rS}catch{v=void 0}let b,B="./profile.cpuprofile";const k=rS.Buffer,T=process.platform==="linux"||process.platform==="darwin",M=E.platform(),z=Ne(),j=f.realpathSync.native?process.platform==="win32"?We:f.realpathSync.native:f.realpathSync,J=__filename.endsWith("sys.js")?p.join(p.dirname(__dirname),"__fake__.js"):__filename,K=process.platform==="win32"||process.platform==="darwin",Y=Mh(()=>process.cwd()),{watchFile:oe,watchDirectory:se}=E2e({pollingWatchFileWorker:fe,getModifiedTime:Yt,setTimeout,clearTimeout,fsWatchWorker:xe,useCaseSensitiveFileNames:z,getCurrentDirectory:Y,fileSystemEntryExists:Je,fsSupportsRecursiveFsWatch:K,getAccessibleSortedChildDirectories:It=>De(It).directories,realpath:Gt,tscWatchFile:e.TSC_WATCHFILE,useNonPollingWatchers:!!e.TSC_NONPOLLING_WATCHER,tscWatchDirectory:e.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:bO}),ge={args:process.argv.slice(2),newLine:E.EOL,useCaseSensitiveFileNames:z,write(It){process.stdout.write(It)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:Ge,writeFile:Ae,watchFile:oe,watchDirectory:se,resolvePath:It=>p.resolve(It),fileExists:ft,directoryExists:Ye,createDirectory(It){if(!ge.directoryExists(It))try{f.mkdirSync(It)}catch(ei){if(ei.code!=="EEXIST")throw ei}},getExecutingFilePath(){return J},getCurrentDirectory:Y,getDirectories:Ve,getEnvironmentVariable(It){return e[It]||""},readDirectory:Ke,getModifiedTime:Yt,setModifiedTime:Ie,deleteFile:st,createHash:v?St:AN,createSHA256Hash:v?St:void 0,getMemoryUsage(){return Zpt.gc&&Zpt.gc(),process.memoryUsage().heapUsed},getFileSize(It){try{const ei=ae(It);if(ei!=null&&ei.isFile())return ei.size}catch{}return 0},exit(It){ve(()=>process.exit(It))},enableCPUProfiler:Ce,disableCPUProfiler:ve,cpuProfilingEnabled:()=>!!b||kt(process.execArgv,"--cpu-prof")||kt(process.execArgv,"--prof"),realpath:Gt,debugMode:!!e.NODE_INSPECTOR_IPC||!!e.VSCODE_INSPECTOR_OPTIONS||Oe(process.execArgv,It=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(It))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{rS.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var It;const ei=(It=process.stdout)==null?void 0:It._handle;ei&&ei.setBlocking&&ei.setBlocking(!0)},bufferFrom:Se,base64decode:It=>Se(It,"base64").toString("utf8"),base64encode:It=>Se(It).toString("base64"),require:(It,ei)=>{try{const ht=pAe(ei,It,ge);return{module:Ypt(ht),modulePath:ht,error:void 0}}catch(ht){return{module:void 0,modulePath:void 0,error:ht}}}};return ge;function ae(It){return f.statSync(It,{throwIfNoEntry:!1})}function Ce(It,ei){if(b)return ei(),!1;const ht=rS;if(!ht||!ht.Session)return ei(),!1;const Ut=new ht.Session;return Ut.connect(),Ut.post("Profiler.enable",()=>{Ut.post("Profiler.start",()=>{b=Ut,B=It,ei()})}),!0}function ne(It){let ei=0;const ht=new Map,Ut=q1(p.dirname(J)),Ni=`file://${WE(Ut)===1?"":"/"}${Ut}`;for(const ji of It.nodes)if(ji.callFrame.url){const xn=q1(ji.callFrame.url);GE(Ni,xn,z)?ji.callFrame.url=i7(Ni,xn,Ni,L1(z),!0):d.test(xn)||(ji.callFrame.url=(ht.has(xn)?ht:ht.set(xn,`external${ei}.js`)).get(xn),ei++)}return It}function ve(It){if(b&&b!=="stopping"){const ei=b;return b.post("Profiler.stop",(ht,{profile:Ut})=>{var Ni;if(!ht){try{(Ni=ae(B))!=null&&Ni.isDirectory()&&(B=p.join(B,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{f.mkdirSync(p.dirname(B),{recursive:!0})}catch{}f.writeFileSync(B,JSON.stringify(ne(Ut)))}b=void 0,ei.disconnect(),It()}),b="stopping",!0}else return It(),!1}function Se(It,ei){return k.from&&k.from!==Int8Array.from?k.from(It,ei):new k(It,ei)}function Ne(){return M==="win32"||M==="win64"?!1:!ft(pe(__filename))}function pe(It){return It.replace(/\w/g,ei=>{const ht=ei.toUpperCase();return ei===ht?ei.toLowerCase():ht})}function fe(It,ei,ht){f.watchFile(It,{persistent:!0,interval:ht},Ni);let Ut;return{close:()=>f.unwatchFile(It,Ni)};function Ni(ji,xn){const Jn=+xn.mtime==0||Ut===2;if(+ji.mtime==0){if(Jn)return;Ut=2}else if(Jn)Ut=0;else{if(+ji.mtime==+xn.mtime)return;Ut=1}ei(It,Ut,ji.mtime)}}function xe(It,ei,ht){return f.watch(It,K?{persistent:!0,recursive:!!ei}:{persistent:!0},ht)}function Be(It,ei){let ht;try{ht=f.readFileSync(It)}catch{return}let Ut=ht.length;if(Ut>=2&&ht[0]===254&&ht[1]===255){Ut&=-2;for(let Ni=0;Ni=2&&ht[0]===255&&ht[1]===254?ht.toString("utf16le",2):Ut>=3&&ht[0]===239&&ht[1]===187&&ht[2]===191?ht.toString("utf8",3):ht.toString("utf8")}function Ge(It,ei){var ht,Ut;(ht=hh)==null||ht.logStartReadFile(It);const Ni=Be(It);return(Ut=hh)==null||Ut.logStopReadFile(),Ni}function Ae(It,ei,ht){var Ut;(Ut=hh)==null||Ut.logEvent("WriteFile: "+It),ht&&(ei=t+ei);let Ni;try{Ni=f.openSync(It,"w"),f.writeSync(Ni,ei,void 0,"utf8")}finally{Ni!==void 0&&f.closeSync(Ni)}}function De(It){var ei;(ei=hh)==null||ei.logEvent("ReadDir: "+(It||"."));try{const ht=f.readdirSync(It||".",{withFileTypes:!0}),Ut=[],Ni=[];for(const ji of ht){const xn=typeof ji=="string"?ji:ji.name;if(xn==="."||xn==="..")continue;let Jn;if(typeof ji=="string"||ji.isSymbolicLink()){const an=cr(It,xn);try{if(Jn=ae(an),!Jn)continue}catch{continue}}else Jn=ji;Jn.isFile()?Ut.push(xn):Jn.isDirectory()&&Ni.push(xn)}return Ut.sort(),Ni.sort(),{files:Ut,directories:Ni}}catch{return bZ}}function Ke(It,ei,ht,Ut,Ni){return Ale(It,ei,ht,Ut,z,process.cwd(),Ni,De,Gt)}function Je(It,ei){const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ut=ae(It);if(!Ut)return!1;switch(ei){case 0:return Ut.isFile();case 1:return Ut.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ht}}function ft(It){return Je(It,0)}function Ye(It){return Je(It,1)}function Ve(It){return De(It).directories.slice()}function We(It){return It.length<260?f.realpathSync.native(It):f.realpathSync(It)}function Gt(It){try{return j(It)}catch{return It}}function Yt(It){var ei;const ht=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ei=ae(It))==null?void 0:ei.mtime}catch{return}finally{Error.stackTraceLimit=ht}}function Ie(It,ei){try{f.utimesSync(It,ei,ei)}catch{return}}function st(It){try{return f.unlinkSync(It)}catch{return}}function St(It){const ei=v.createHash("sha256");return ei.update(It),ei.digest("hex")}}let s;return hoe()&&(s=u()),s&&_2e(s),s})(),c1&&c1.getEnvironmentVariable&&(Zwt(c1),H.setAssertionLevel(/^development$/i.test(c1.getEnvironmentVariable("NODE_ENV"))?1:0)),c1&&c1.debugMode&&(H.isDebugging=!0)}});function bse(t){return t===47||t===92}function x2e(t){return CU(t)<0}function Pf(t){return CU(t)>0}function yse(t){const u=CU(t);return u>0&&u===t.length}function SN(t){return CU(t)!==0}function om(t){return/^\.\.?($|[\\/])/.test(t)}function kse(t){return!SN(t)&&!om(t)}function t7(t){return Ac(t).includes(".")}function Ml(t,u){return t.length>u.length&&sc(t,u)}function jc(t,u){for(const s of u)if(Ml(t,s))return!0;return!1}function ZD(t){return t.length>0&&bse(t.charCodeAt(t.length-1))}function jqe(t){return t>=97&&t<=122||t>=65&&t<=90}function rTt(t,u){const s=t.charCodeAt(u);if(s===58)return u+1;if(s===37&&t.charCodeAt(u+1)===51){const d=t.charCodeAt(u+2);if(d===97||d===65)return u+3}return-1}function CU(t){if(!t)return 0;const u=t.charCodeAt(0);if(u===47||u===92){if(t.charCodeAt(1)!==u)return 1;const d=t.indexOf(u===47?rl:BO,2);return d<0?t.length:d+1}if(jqe(u)&&t.charCodeAt(1)===58){const d=t.charCodeAt(2);if(d===47||d===92)return 3;if(t.length===2)return 2}const s=t.indexOf(C2e);if(s!==-1){const d=s+C2e.length,f=t.indexOf(rl,d);if(f!==-1){const p=t.slice(0,s),E=t.slice(d,f);if(p==="file"&&(E===""||E==="localhost")&&jqe(t.charCodeAt(f+1))){const v=rTt(t,f+2);if(v!==-1){if(t.charCodeAt(v)===47)return~(v+1);if(v===t.length)return~v}}return~(f+1)}return~t.length}return 0}function WE(t){const u=CU(t);return u<0?~u:u}function lr(t){t=q1(t);const u=WE(t);return u===t.length?t:(t=mv(t),t.slice(0,Math.max(u,t.lastIndexOf(rl))))}function Ac(t,u,s){if(t=q1(t),WE(t)===t.length)return"";t=mv(t);const f=t.slice(Math.max(WE(t),t.lastIndexOf(rl)+1)),p=u!==void 0&&s!==void 0?BN(f,u,s):void 0;return p?f.slice(0,f.length-p.length):f}function Vqe(t,u,s){if(Pa(u,".")||(u="."+u),t.length>=u.length&&t.charCodeAt(t.length-u.length)===46){const d=t.slice(t.length-u.length);if(s(d,u))return d}}function aTt(t,u,s){if(typeof u=="string")return Vqe(t,u,s)||"";for(const d of u){const f=Vqe(t,d,s);if(f)return f}return""}function BN(t,u,s){if(u)return aTt(mv(t),u,s?QA:XA);const d=Ac(t),f=d.lastIndexOf(".");return f>=0?d.substring(f):""}function oTt(t,u){const s=t.substring(0,u),d=t.substring(u).split(rl);return d.length&&!qu(d)&&d.pop(),[s,...d]}function yd(t,u=""){return t=cr(u,t),oTt(t,WE(t))}function yx(t,u){return t.length===0?"":(t[0]&&zd(t[0]))+t.slice(1,u).join(rl)}function q1(t){return t.includes("\\")?t.replace(Wqe,rl):t}function Jy(t){if(!Oe(t))return[];const u=[t[0]];for(let s=1;s1){if(u[u.length-1]!==".."){u.pop();continue}}else if(u[0])continue}u.push(d)}}return u}function cr(t,...u){t&&(t=q1(t));for(let s of u)s&&(s=q1(s),!t||WE(s)!==0?t=s:t=zd(t)+s);return t}function kx(t,...u){return $o(Oe(u)?cr(t,...u):q1(t))}function FO(t,u){return Jy(yd(t,u))}function $a(t,u){return yx(FO(t,u))}function $o(t){if(t=q1(t),!yU.test(t))return t;const u=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(u!==t&&(t=u,!yU.test(t)))return t;const s=yx(Jy(yd(t)));return s&&ZD(t)?zd(s):s}function sTt(t){return t.length===0?"":t.slice(1).join(rl)}function Fse(t,u){return sTt(FO(t,u))}function J0(t,u,s){const d=Pf(t)?$o(t):$a(t,u);return s(d)}function mv(t){return ZD(t)?t.substr(0,t.length-1):t}function zd(t){return ZD(t)?t:t+rl}function h2(t){return!SN(t)&&!om(t)?"./"+t:t}function AO(t,u,s,d){const f=s!==void 0&&d!==void 0?BN(t,s,d):BN(t);return f?t.slice(0,t.length-f.length)+(Pa(u,".")?u:"."+u):t}function v2e(t,u,s){if(t===u)return 0;if(t===void 0)return-1;if(u===void 0)return 1;const d=t.substring(0,WE(t)),f=u.substring(0,WE(u)),p=Z$(d,f);if(p!==0)return p;const E=t.substring(d.length),v=u.substring(f.length);if(!yU.test(E)&&!yU.test(v))return s(E,v);const b=Jy(yd(t)),B=Jy(yd(u)),k=Math.min(b.length,B.length);for(let T=1;T0==WE(u)>0,"Paths must either both be absolute or both be relative");const p=Sse(t,u,(typeof s=="boolean"?s:!1)?QA:XA,typeof s=="function"?s:il);return yx(p)}function wN(t,u,s){return Pf(t)?i7(u,t,u,s,!1):t}function SO(t,u,s){return h2(JE(lr(t),u,s))}function i7(t,u,s,d,f){const p=Sse(kx(s,t),kx(s,u),XA,d),E=p[0];if(f&&Pf(E)){const v=E.charAt(0)===rl?"file://":"file:///";p[0]=v+E}return yx(p)}function Ug(t,u){for(;;){const s=u(t);if(s!==void 0)return s;const d=lr(t);if(d===t)return;t=d}}function bU(t){return sc(t,"/node_modules")}var rl,BO,C2e,Wqe,yU,lTt=o({"src/compiler/path.ts"(){Bo(),rl="/",BO="\\",C2e="://",Wqe=/\\/g,yU=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function P(t,u,s,d,f,p,E){return{code:t,category:u,key:s,message:d,reportsUnnecessary:f,elidedInCompatabilityPyramid:p,reportsDeprecated:E}}var F,cTt=o({"src/compiler/diagnosticInformationMap.generated.ts"(){Nqe(),F={Unterminated_string_literal:P(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:P(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:P(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:P(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:P(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:P(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:P(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:P(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:P(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:P(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:P(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:P(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:P(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:P(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:P(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:P(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:P(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:P(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:P(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:P(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:P(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:P(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:P(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:P(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:P(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:P(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:P(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:P(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:P(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:P(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:P(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:P(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:P(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:P(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:P(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:P(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:P(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:P(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:P(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:P(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:P(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:P(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:P(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:P(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:P(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:P(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:P(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:P(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:P(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:P(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:P(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:P(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:P(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:P(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:P(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:P(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:P(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:P(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:P(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:P(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:P(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:P(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:P(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:P(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:P(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:P(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:P(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:P(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:P(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:P(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:P(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:P(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:P(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:P(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:P(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:P(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:P(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:P(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:P(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:P(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:P(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:P(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:P(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:P(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:P(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:P(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:P(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:P(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:P(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:P(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:P(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:P(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:P(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:P(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:P(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:P(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:P(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:P(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:P(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:P(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:P(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:P(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:P(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:P(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:P(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:P(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:P(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:P(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:P(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:P(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:P(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:P(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:P(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:P(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:P(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:P(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:P(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:P(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:P(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:P(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:P(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:P(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:P(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:P(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:P(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:P(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:P(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:P(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:P(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_or_ES5:P(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:P(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:P(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),with_statements_are_not_allowed_in_an_async_function_block:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:P(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:P(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:P(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:P(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:P(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:P(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:P(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:P(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:P(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:P(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),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:P(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:P(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:P(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:P(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:P(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:P(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:P(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:P(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:P(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:P(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:P(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:P(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:P(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:P(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:P(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:P(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:P(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:P(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:P(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:P(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:P(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:P(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:P(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:P(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:P(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:P(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:P(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:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:P(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:P(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:P(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:P(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:P(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:P(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:P(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:P(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:P(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:P(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:P(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:P(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:P(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:P(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:P(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:P(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:P(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:P(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:P(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:P(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:P(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:P(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:P(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(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:P(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:P(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:P(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:P(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:P(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:P(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:P(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:P(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:P(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:P(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:P(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:P(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:P(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:P(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:P(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:P(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:P(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:P(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:P(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:P(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:P(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:P(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:P(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:P(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:P(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:P(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:P(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:P(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:P(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:P(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:P(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:P(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:P(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:P(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:P(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:P(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:P(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:P(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:P(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:P(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:P(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_and_ES5_Consider_using_a_standard_function_expression:P(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and 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:P(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:P(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:P(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:P(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:P(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:P(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:P(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_and_ES5_Consider_using_a_standard_function_or_method:P(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:P(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:P(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:P(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:P(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:P(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:P(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:P(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:P(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:P(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}'."),JSX_expressions_must_have_one_parent_element:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 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:P(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:P(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:P(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:P(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:P(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:P(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:P(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:P(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:P(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:P(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:P(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:P(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:P(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:P(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:P(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:P(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:P(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_or_nodenext:P(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:P(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_or_nodenext:P(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', 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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_declaration_0_is_using_private_name_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:P(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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'."),The_current_host_does_not_support_the_0_option:P(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:P(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:P(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:P(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:P(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:P(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:P(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:P(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:P(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:P(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:P(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_cannot_be_specified_when_option_target_is_ES3:P(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:P(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:P(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:P(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:P(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:P(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:P(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:P(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:P(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:P(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:P(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:P(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:P(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:P(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_es2015_or_later:P(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:P(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:P(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:P(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:P(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:P(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:P(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:P(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:P(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:P(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:P(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:P(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:P(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:P(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:P(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:P(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:P(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:P(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:P(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:P(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:P(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:P(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:P(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:P(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:P(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:P(6024,3,"options_6024","options"),file:P(6025,3,"file_6025","file"),Examples_Colon_0:P(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:P(6027,3,"Options_Colon_6027","Options:"),Version_0:P(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:P(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:P(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:P(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:P(6034,3,"KIND_6034","KIND"),FILE:P(6035,3,"FILE_6035","FILE"),VERSION:P(6036,3,"VERSION_6036","VERSION"),LOCATION:P(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:P(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:P(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:P(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:P(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:P(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:P(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:P(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:P(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:P(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:P(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:P(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:P(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:P(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:P(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:P(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:P(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:P(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:P(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:P(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:P(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:P(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:P(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:P(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:P(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:P(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:P(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:P(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:P(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:P(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:P(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:P(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:P(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:P(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:P(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:P(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:P(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:P(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:P(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:P(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:P(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:P(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:P(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:P(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:P(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:P(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:P(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:P(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:P(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:P(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:P(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:P(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:P(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:P(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:P(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:P(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:P(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:P(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:P(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:P(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:P(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:P(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:P(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:P(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:P(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:P(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:P(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:P(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:P(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:P(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:P(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:P(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:P(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:P(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:P(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:P(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:P(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:P(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:P(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:P(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:P(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:P(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:P(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:P(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:P(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:P(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:P(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:P(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:P(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:P(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:P(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:P(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:P(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:P(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:P(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:P(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:P(6244,3,"Modules_6244","Modules"),File_Management:P(6245,3,"File_Management_6245","File Management"),Emit:P(6246,3,"Emit_6246","Emit"),JavaScript_Support:P(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:P(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:P(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:P(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:P(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:P(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:P(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:P(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:P(6255,3,"Projects_6255","Projects"),Output_Formatting:P(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:P(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:P(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:P(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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.`),Enable_project_compilation:P(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:P(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:P(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:P(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:P(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."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:P(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:P(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:P(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:P(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:P(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:P(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:P(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:P(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}'"),A_non_dry_build_would_update_output_of_project_0:P(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:P(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:P(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:P(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:P(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:P(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:P(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:P(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:P(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:P(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:P(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:P(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:P(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:P(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:P(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:P(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:P(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:P(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:P(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:P(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:P(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."),Default_catch_clause_variables_as_unknown_instead_of_any:P(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:P(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."),one_of_Colon:P(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:P(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:P(6902,3,"type_Colon_6902","type:"),default_Colon:P(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:P(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:P(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:P(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:P(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:P(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:P(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:P(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:P(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:P(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:P(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:P(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:P(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:P(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:P(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:P(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:P(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:P(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:P(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:P(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:P(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:P(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:P(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:P(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:P(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:P(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:P(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:P(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:P(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:P(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:P(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:P(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:P(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:P(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:P(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:P(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:P(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:P(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:P(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:P(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:P(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:P(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:P(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:P(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:P(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:P(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:P(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:P(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:P(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:P(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:P(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:P(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:P(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:P(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:P(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:P(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:P(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:P(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:P(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:P(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:P(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:P(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:P(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:P(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:P(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:P(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:P(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:P(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:P(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:P(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:P(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:P(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:P(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:P(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:P(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:P(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:P(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:P(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:P(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:P(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:P(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:P(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:P(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:P(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:P(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:P(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:P(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:P(95005,3,"Extract_function_95005","Extract function"),Extract_constant:P(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:P(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:P(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:P(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:P(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:P(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:P(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:P(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:P(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:P(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:P(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:P(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:P(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:P(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:P(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:P(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:P(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:P(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:P(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:P(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:P(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:P(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:P(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:P(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:P(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:P(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:P(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:P(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:P(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:P(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:P(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:P(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:P(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:P(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:P(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:P(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:P(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:P(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:P(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:P(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:P(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:P(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:P(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:P(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:P(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:P(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:P(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:P(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:P(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:P(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:P(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:P(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:P(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:P(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:P(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:P(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:P(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:P(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:P(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:P(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:P(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:P(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:P(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:P(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:P(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:P(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:P(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:P(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:P(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:P(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:P(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:P(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:P(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:P(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:P(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:P(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:P(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:P(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:P(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:P(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:P(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:P(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:P(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:P(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:P(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:P(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:P(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:P(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:P(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:P(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:P(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:P(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:P(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:P(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:P(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:P(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:P(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:P(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:P(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:P(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:P(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:P(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:P(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:P(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:P(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:P(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:P(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:P(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:P(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:P(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:P(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:P(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:P(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:P(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:P(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:P(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:P(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:P(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:P(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:P(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:P(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:P(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:P(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:P(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:P(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:P(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:P(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:P(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:P(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:P(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:P(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:P(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:P(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:P(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:P(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:P(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:P(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:P(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:P(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:P(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:P(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:P(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:P(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:P(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:P(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:P(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:P(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:P(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:P(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:P(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:P(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:P(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:P(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:P(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:P(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:P(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:P(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:P(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:P(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:P(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:P(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:P(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:P(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:P(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:P(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:P(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:P(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:P(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:P(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:P(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:P(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:P(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:P(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:P(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:P(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:P(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:P(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:P(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:P(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:P(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:P(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:P(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:P(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:P(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:P(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:P(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.")}}});function fh(t){return t>=80}function b2e(t){return t===32||fh(t)}function wO(t,u){if(t=2?wO(t,Qqe):u===1?wO(t,Zqe):wO(t,Uqe)}function dTt(t,u){return u>=2?wO(t,Xqe):u===1?wO(t,Yqe):wO(t,qqe)}function hTt(t){const u=[];return t.forEach((s,d)=>{u[s]=d}),u}function Uo(t){return nZe[t]}function f2(t){return A2e.get(t)}function n7(t){const u=[];let s=0,d=0;for(;s127&&Z1(f)&&(u.push(d),d=s);break}}return u.push(d),u}function TO(t,u,s,d){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(u,s,d):FU($3(t),u,s,t.text,d)}function FU(t,u,s,d,f){(u<0||u>=t.length)&&(f?u=u<0?0:u>=t.length?t.length-1:u:H.fail(`Bad line number. Line: ${u}, lineStarts.length: ${t.length} , line map is correct? ${d!==void 0?Zt(t,n7(d)):"unknown"}`));const p=t[u]+s;return f?p>t[u+1]?t[u+1]:typeof d=="string"&&p>d.length?d.length:p:(u=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Z1(t){return t===10||t===13||t===8232||t===8233}function NN(t){return t>=48&&t<=57}function Gqe(t){return NN(t)||t>=65&&t<=70||t>=97&&t<=102}function fTt(t){return t<=1114111}function AU(t){return t>=48&&t<=55}function y2e(t,u){const s=t.charCodeAt(u);switch(s){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return u===0;default:return s>127}}function gs(t,u,s,d,f){if(pg(u))return u;let p=!1;for(;;){const E=t.charCodeAt(u);switch(E){case 13:t.charCodeAt(u+1)===10&&u++;case 10:if(u++,s)return u;p=!!f;continue;case 9:case 11:case 12:case 32:u++;continue;case 47:if(d)break;if(t.charCodeAt(u+1)===47){for(u+=2;u127&&U3(E)){u++;continue}break}return u}}function PN(t,u){if(H.assert(u>=0),u===0||Z1(t.charCodeAt(u-1))){const s=t.charCodeAt(u);if(u+BU=0&&s127&&U3(j)){T&&Z1(j)&&(k=!0),s++;continue}break e}}return T&&(z=f(v,b,B,k,p,z)),z}function NO(t,u,s,d){return Tse(!1,t,u,!1,s,d)}function PO(t,u,s,d){return Tse(!1,t,u,!0,s,d)}function k2e(t,u,s,d,f){return Tse(!0,t,u,!1,s,d,f)}function F2e(t,u,s,d,f){return Tse(!0,t,u,!0,s,d,f)}function Jqe(t,u,s,d,f,p=[]){return p.push({kind:s,pos:t,end:u,hasTrailingNewLine:d}),p}function W_(t,u){return k2e(t,u,Jqe,void 0,void 0)}function gv(t,u){return F2e(t,u,Jqe,void 0,void 0)}function SU(t){const u=Lse.exec(t);if(u)return u[0]}function G_(t,u){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&kU(t,u)}function Ev(t,u,s){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===36||t===95||(s===1?t===45||t===58:!1)||t>127&&dTt(t,u)}function Lm(t,u,s){let d=Fx(t,0);if(!G_(d,u))return!1;for(let f=_v(d);fk,getStartPos:()=>k,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>M,getTokenStart:()=>T,getTokenPos:()=>T,getTokenText:()=>v.substring(T,b),getTokenValue:()=>z,hasUnicodeEscape:()=>(j&1024)!==0,hasExtendedUnicodeEscape:()=>(j&8)!==0,hasPrecedingLineBreak:()=>(j&1)!==0,hasPrecedingJSDocComment:()=>(j&2)!==0,isIdentifier:()=>M===80||M>118,isReservedWord:()=>M>=83&&M<=118,isUnterminated:()=>(j&4)!==0,getCommentDirectives:()=>J,getNumericLiteralFlags:()=>j&25584,getTokenFlags:()=>j,reScanGreaterToken:Ie,reScanAsteriskEqualsToken:st,reScanSlashToken:St,reScanTemplateToken:ht,reScanTemplateHeadOrNoSubstitutionTemplate:Ut,scanJsxIdentifier:Pi,scanJsxAttributeValue:Ai,reScanJsxAttributeValue:Zu,reScanJsxToken:Ni,reScanLessThanToken:ji,reScanHashToken:xn,reScanQuestionToken:Jn,reScanInvalidIdentifier:Gt,scanJsxToken:an,scanJsDocToken:yr,scanJSDocCommentTextToken:aa,scan:Ve,getText:Si,clearCommentDirectives:Dn,setText:Cn,setScriptTarget:oa,setLanguageVariant:Da,setScriptKind:ra,setJSDocParsingMode:Ta,setOnError:tu,resetTokenState:Yo,setTextPos:Yo,setInJSDocType:bo,tryScan:Ln,lookAhead:jn,scanRange:bt};return H.isDebugging&&Object.defineProperty(se,"__debugShowCurrentPositionInText",{get:()=>{const Qe=se.getText();return Qe.slice(0,se.getTokenFullStart())+"║"+Qe.slice(se.getTokenFullStart())}}),se;function ge(Qe,Et=b,Mt,qt){if(f){const Xt=b;b=Et,f(Qe,Mt||0,qt),b=Xt}}function ae(){let Qe=b,Et=!1,Mt=!1,qt="";for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Et?(Et=!1,Mt=!0,qt+=v.substring(Qe,b)):(j|=16384,ge(Mt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1)),b++,Qe=b;continue}if(NN(Xt)){Et=!0,Mt=!1,b++;continue}break}return v.charCodeAt(b-1)===95&&(j|=16384,ge(F.Numeric_separators_are_not_allowed_here,b-1,1)),qt+v.substring(Qe,b)}function Ce(){let Qe=b,Et;if(v.charCodeAt(b)===48)if(b++,v.charCodeAt(b)===95)j|=16896,ge(F.Numeric_separators_are_not_allowed_here,b,1),b--,Et=ae();else if(!ve())j|=8192,Et=""+ +z;else if(!z)Et="0";else{z=""+parseInt(z,8),j|=32;const et=M===41,gt=(et?"-":"")+"0o"+(+z).toString(8);return et&&Qe--,ge(F.Octal_literals_are_not_allowed_Use_the_syntax_0,Qe,b-Qe,gt),9}else Et=ae();let Mt,qt;v.charCodeAt(b)===46&&(b++,Mt=ae());let Xt=b;if(v.charCodeAt(b)===69||v.charCodeAt(b)===101){b++,j|=16,(v.charCodeAt(b)===43||v.charCodeAt(b)===45)&&b++;const et=b,gt=ae();gt?(qt=v.substring(Xt,et)+gt,Xt=b):ge(F.Digit_expected)}let Pe;if(j&512?(Pe=Et,Mt&&(Pe+="."+Mt),qt&&(Pe+=qt)):Pe=v.substring(Qe,Xt),j&8192)return ge(F.Decimals_with_leading_zeros_are_not_allowed,Qe,Xt-Qe),z=""+ +Pe,9;if(Mt!==void 0||j&16)return ne(Qe,Mt===void 0&&!!(j&16)),z=""+ +Pe,9;{z=Pe;const et=Ye();return ne(Qe),et}}function ne(Qe,Et){if(!G_(Fx(v,b),t))return;const Mt=b,{length:qt}=Ke();qt===1&&v[Mt]==="n"?ge(Et?F.A_bigint_literal_cannot_use_exponential_notation:F.A_bigint_literal_must_be_an_integer,Qe,Mt-Qe+1):(ge(F.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Mt,qt),b=Mt)}function ve(){const Qe=b;let Et=!0;for(;NN(v.charCodeAt(b));)AU(v.charCodeAt(b))||(Et=!1),b++;return z=v.substring(Qe,b),Et}function Se(Qe,Et){const Mt=pe(Qe,!1,Et);return Mt?parseInt(Mt,16):-1}function Ne(Qe,Et){return pe(Qe,!0,Et)}function pe(Qe,Et,Mt){let qt=[],Xt=!1,Pe=!1;for(;qt.length=65&&et<=70)et+=32;else if(!(et>=48&&et<=57||et>=97&&et<=102))break;qt.push(et),b++,Pe=!1}return qt.length=B){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}const Xt=v.charCodeAt(b);if(Xt===Et){Mt+=v.substring(qt,b),b++;break}if(Xt===92&&!Qe){Mt+=v.substring(qt,b),Mt+=Be(!0),qt=b;continue}if((Xt===10||Xt===13)&&!Qe){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}b++}return Mt}function xe(Qe){const Et=v.charCodeAt(b)===96;b++;let Mt=b,qt="",Xt;for(;;){if(b>=B){qt+=v.substring(Mt,b),j|=4,ge(F.Unterminated_template_literal),Xt=Et?15:18;break}const Pe=v.charCodeAt(b);if(Pe===96){qt+=v.substring(Mt,b),b++,Xt=Et?15:18;break}if(Pe===36&&b+1=B)return ge(F.Unexpected_end_of_text),"";const Mt=v.charCodeAt(b);switch(b++,Mt){case 48:if(b>=B||!NN(v.charCodeAt(b)))return"\0";case 49:case 50:case 51:b=B?(j|=2048,Qe&&ge(F.Unexpected_end_of_text),v.substring(Et,b)):v.charCodeAt(b)!==125?(j|=2048,Qe&&ge(F.Unterminated_Unicode_escape_sequence),v.substring(Et,b)):(b++,j|=8,F8(Xt)):(j|=2048,Qe&&ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),v.substring(Et,b))}for(;b1114111&&(ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Mt=!0),b>=B?(ge(F.Unexpected_end_of_text),Mt=!0):v.charCodeAt(b)===125?b++:(ge(F.Unterminated_Unicode_escape_sequence),Mt=!0),Mt?"":F8(Et)}function Ae(){if(b+5=0&&Ev(Mt,t)){b+=3,j|=8,Qe+=Ge(),Et=b;continue}if(Mt=Ae(),!(Mt>=0&&Ev(Mt,t)))break;j|=1024,Qe+=v.substring(Et,b),Qe+=F8(Mt),b+=6,Et=b}else break}return Qe+=v.substring(Et,b),Qe}function Je(){const Qe=z.length;if(Qe>=2&&Qe<=12){const Et=z.charCodeAt(0);if(Et>=97&&Et<=122){const Mt=$qe.get(z);if(Mt!==void 0)return M=Mt}}return M=80}function ft(Qe){let Et="",Mt=!1,qt=!1;for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Mt?(Mt=!1,qt=!0):ge(qt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(Mt=!0,!NN(Xt)||Xt-48>=Qe)break;Et+=v[b],b++,qt=!1}return v.charCodeAt(b-1)===95&&ge(F.Numeric_separators_are_not_allowed_here,b-1,1),Et}function Ye(){return v.charCodeAt(b)===110?(z+="n",j&384&&(z=SP(z)+"n"),b++,10):(z=""+(j&128?parseInt(z.slice(2),2):j&256?parseInt(z.slice(2),8):+z),9)}function Ve(){k=b,j=0;let Qe=!1;for(;;){if(T=b,b>=B)return M=1;const Et=Fx(v,b);if(b===0){if(Et===65533)return ge(F.File_appears_to_be_binary),b=B,M=8;if(Et===35&&Bse(v,b)){if(b=wse(v,b),u)continue;return M=6}}switch(Et){case 10:case 13:if(j|=1,u){b++;continue}else return Et===13&&b+1=0&&G_(Mt,t))return b+=3,j|=8,z=Ge()+Ke(),M=Je();const qt=Ae();return qt>=0&&G_(qt,t)?(b+=6,j|=1024,z=String.fromCharCode(qt)+Ke(),M=Je()):(ge(F.Invalid_character),b++,M=0);case 35:if(b!==0&&v[b+1]==="!")return ge(F.can_only_be_used_at_the_start_of_a_file),b++,M=0;const Xt=Fx(v,b+1);if(Xt===92){b++;const gt=De();if(gt>=0&&G_(gt,t))return b+=3,j|=8,z="#"+Ge()+Ke(),M=81;const ii=Ae();if(ii>=0&&G_(ii,t))return b+=6,j|=1024,z="#"+String.fromCharCode(ii)+Ke(),M=81;b--}return G_(Xt,t)?(b++,Yt(Xt,t)):(z="#",ge(F.Invalid_character,b++,_v(Et))),M=81;default:const Pe=Yt(Et,t);if(Pe)return M=Pe;if(qg(Et)){b+=_v(Et);continue}else if(Z1(Et)){j|=1,b+=_v(Et);continue}const et=_v(Et);return ge(F.Invalid_character,b,et),b+=et,M=0}}}function We(){switch(oe){case 0:return!0;case 1:return!1}return Y!==3&&Y!==4?!0:oe===3?!1:iZe.test(v.slice(k,b))}function Gt(){H.assert(M===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=T=k,j=0;const Qe=Fx(v,b),Et=Yt(Qe,99);return Et?M=Et:(b+=_v(Qe),M)}function Yt(Qe,Et){let Mt=Qe;if(G_(Mt,Et)){for(b+=_v(Mt);b=B)return M=1;let Et=v.charCodeAt(b);if(Et===60)return v.charCodeAt(b+1)===47?(b+=2,M=31):(b++,M=30);if(Et===123)return b++,M=19;let Mt=0;for(;b0)break;U3(Et)||(Mt=b)}b++}return z=v.substring(k,b),Mt===-1?13:12}function Pi(){if(fh(M)){for(;b=B)return M=1;for(let Et=v.charCodeAt(b);b=0&&qg(v.charCodeAt(b-1))&&!(b+1=B)return M=1;const Qe=Fx(v,b);switch(b+=_v(Qe),Qe){case 9:case 11:case 12:case 32:for(;b=0&&G_(Et,t))return b+=3,j|=8,z=Ge()+Ke(),M=Je();const Mt=Ae();return Mt>=0&&G_(Mt,t)?(b+=6,j|=1024,z=String.fromCharCode(Mt)+Ke(),M=Je()):(b++,M=0)}if(G_(Qe,t)){let Et=Qe;for(;b=0),b=Qe,k=Qe,T=Qe,M=0,z=void 0,j=0}function bo(Qe){K+=Qe?1:-1}}function Fx(t,u){return t.codePointAt(u)}function _v(t){return t>=65536?2:1}function mTt(t){if(H.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const u=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(u,s)}function F8(t){return uZe(t)}var MO,$qe,A2e,Uqe,qqe,Zqe,Yqe,Qqe,Xqe,eZe,tZe,iZe,nZe,BU,Lse,uZe,pTt=o({"src/compiler/scanner.ts"(){Bo(),MO={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},$qe=new Map(Object.entries(MO)),A2e=new Map(Object.entries({...MO,"{":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})),Uqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,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,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,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,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],qqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,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,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],Zqe=[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],Yqe=[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],Qqe=[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,2208,2228,2230,2237,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,3168,3169,3200,3200,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,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,5900,5902,5905,5920,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,6987,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,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,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,43879,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,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,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,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,101106,110592,110878,110928,110930,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,123136,123180,123191,123197,123214,123214,123584,123627,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,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],Xqe=[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,2208,2228,2230,2237,2259,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,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,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,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,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,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,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,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,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,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,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,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,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,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,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,43879,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,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,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,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,70751,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,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,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,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,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,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,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,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],eZe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,tZe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,iZe=/@(?:see|link)/i,nZe=hTt(A2e),BU=7,Lse=/^#!.*/,uZe=String.fromCodePoint?t=>String.fromCodePoint(t):mTt}});function Id(t){return om(t)||Pf(t)}function A8(t){return pi(t,bP)}function zO(t){switch(Os(t)){case 99:return"lib.esnext.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 Ec(t){return t.start+t.length}function S2e(t){return t.length===0}function Nse(t,u){return u>=t.start&&u=t.pos&&u<=t.end}function B2e(t,u){return u.start>=t.start&&Ec(u)<=Ec(t)}function rZe(t,u){return w2e(t,u)!==void 0}function w2e(t,u){const s=L2e(t,u);return s&&s.length===0?void 0:s}function aZe(t,u){return RO(t.start,t.length,u.start,u.length)}function wU(t,u,s){return RO(t.start,t.length,u,s)}function RO(t,u,s,d){const f=t+u,p=s+d;return s<=f&&p>=t}function T2e(t,u){return u<=Ec(t)&&u>=t.start}function L2e(t,u){const s=Math.max(t.start,u.start),d=Math.min(Ec(t),Ec(u));return s<=d?Vc(s,d):void 0}function d1(t,u){if(t<0)throw new Error("start < 0");if(u<0)throw new Error("length < 0");return{start:t,length:u}}function Vc(t,u){return d1(t,u-t)}function MN(t){return d1(t.span.start,t.newLength)}function N2e(t){return S2e(t.span)&&t.newLength===0}function OO(t,u){if(u<0)throw new Error("newLength < 0");return{span:t,newLength:u}}function P2e(t){if(t.length===0)return tj;if(t.length===1)return t[0];const u=t[0];let s=u.span.start,d=Ec(u.span),f=s+u.newLength;for(let p=1;p=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function Qr(t){const u=t;return u.length>=3&&u.charCodeAt(0)===95&&u.charCodeAt(1)===95&&u.charCodeAt(2)===95?u.substr(1):u}function fu(t){return Qr(t.escapedText)}function Dv(t){const u=f2(t.escapedText);return u?ur(u,uf):void 0}function lc(t){return t.valueDeclaration&&ph(t.valueDeclaration)?fu(t.valueDeclaration.name):Qr(t.escapedName)}function lZe(t){const u=t.parent.parent;if(u){if(Q1(u))return Mse(u);switch(u.kind){case 243:if(u.declarationList&&u.declarationList.declarations[0])return Mse(u.declarationList.declarations[0]);break;case 244:let s=u.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const d=s.argumentExpression;if(at(d))return d}break;case 217:return Mse(u.expression);case 256:{if(Q1(u.statement)||Wt(u.statement))return Mse(u.statement);break}}}}function Mse(t){const u=Za(t);return u&&at(u)?u:void 0}function jO(t,u){return!!(mh(t)&&at(t.name)&&fu(t.name)===fu(u)||Jl(t)&&Oe(t.declarationList.declarations,s=>jO(s,u)))}function R2e(t){return t.name||lZe(t)}function mh(t){return!!t.name}function TU(t){switch(t.kind){case 80:return t;case 355:case 348:{const{name:s}=t;if(s.kind===166)return s.right;break}case 213:case 226:{const s=t;switch(Xl(s)){case 1:case 4:case 5:case 3:return kq(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return R2e(t);case 347:return lZe(t);case 277:{const{expression:s}=t;return at(s)?s:void 0}case 212:const u=t;if(yq(u))return u.argumentExpression}return t.name}function Za(t){if(t!==void 0)return TU(t)||(A0(t)||q0(t)||Xd(t)?zse(t):void 0)}function zse(t){if(t.parent){if(Jc(t.parent)||js(t.parent))return t.parent.name;if(Xn(t.parent)&&t===t.parent.right){if(at(t.parent.left))return t.parent.left;if(I0(t.parent.left))return kq(t.parent.left)}else if(ua(t.parent)&&at(t.parent.name))return t.parent.name}else return}function Ax(t){if(o4(t))return ti(t.modifiers,g1)}function p2(t){if(Yu(t,98303))return ti(t.modifiers,Qo)}function cZe(t,u){if(t.name)if(at(t.name)){const s=t.name.escapedText;return HO(t.parent,u).filter(d=>Eg(d)&&at(d.name)&&d.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);H.assert(s>-1,"Parameters should always be in their parents' parameter list");const d=HO(t.parent,u).filter(Eg);if(s_g(d)&&d.typeParameters.some(f=>f.name.escapedText===s))}function j2e(t){return dZe(t,!1)}function V2e(t){return dZe(t,!0)}function H2e(t){return!!V4(t,Eg)}function K2e(t){return V4(t,LB)}function W2e(t){return Vse(t,Nce)}function Ise(t){return V4(t,DFe)}function hZe(t){return V4(t,Sce)}function G2e(t){return V4(t,Sce,!0)}function fZe(t){return V4(t,Bce)}function J2e(t){return V4(t,Bce,!0)}function mZe(t){return V4(t,wce)}function $2e(t){return V4(t,wce,!0)}function pZe(t){return V4(t,Tce)}function U2e(t){return V4(t,Tce,!0)}function q2e(t){return V4(t,gY,!0)}function Rse(t){return V4(t,Lce)}function Z2e(t){return V4(t,Lce,!0)}function Ose(t){return V4(t,LV)}function LU(t){return V4(t,xFe)}function Y2e(t){return V4(t,EY)}function gZe(t){return V4(t,_g)}function jse(t){return V4(t,_Y)}function xv(t){const u=V4(t,XP);if(u&&u.typeExpression&&u.typeExpression.type)return u}function vv(t){let u=V4(t,XP);return!u&&io(t)&&(u=Le(B8(t),s=>!!s.typeExpression)),u&&u.typeExpression&&u.typeExpression.type}function VO(t){const u=Y2e(t);if(u&&u.typeExpression)return u.typeExpression.type;const s=xv(t);if(s&&s.typeExpression){const d=s.typeExpression.type;if(fm(d)){const f=Le(d.members,CB);return f&&f.type}if(u3(d)||TB(d))return d.type}}function HO(t,u){var s;if(!wj(t))return _t;let d=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(d===void 0||u){const f=I0e(t,u);H.assert(f.length<2||f[0]!==f[1]),d=ju(f,p=>Vp(p)?p.tags:p),u||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=d)}return d}function Cv(t){return HO(t,!1)}function EZe(t){return HO(t,!0)}function V4(t,u,s){return Le(HO(t,s),u)}function Vse(t,u){return Cv(t).filter(u)}function _Ze(t,u){return Cv(t).filter(s=>s.kind===u)}function KO(t){return typeof t=="string"?t:t==null?void 0:t.map(u=>u.kind===328?u.text:ETt(u)).join("")}function ETt(t){const u=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?zf(t.name):"",d=t.name&&t.text.startsWith("://")?"":" ";return`{@${u} ${s}${d}${t.text}}`}function Sx(t){if(Ov(t)){if(NB(t.parent)){const u=iP(t.parent);if(u&&S(u.tags))return ju(u.tags,s=>_g(s)?s.typeParameters:void 0)}return _t}if(G4(t))return H.assert(t.parent.kind===327),ju(t.parent.tags,u=>_g(u)?u.typeParameters:void 0);if(t.typeParameters||TFe(t)&&t.typeParameters)return t.typeParameters;if(Qn(t)){const u=Oq(t);if(u.length)return u;const s=vv(t);if(s&&u3(s)&&s.typeParameters)return s.typeParameters}return _t}function w8(t){return t.constraint?t.constraint:_g(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function J_(t){return t.kind===80||t.kind===81}function NU(t){return t.kind===178||t.kind===177}function PU(t){return Iu(t)&&!!(t.flags&64)}function Hse(t){return U0(t)&&!!(t.flags&64)}function $y(t){return Mo(t)&&!!(t.flags&64)}function Y1(t){const u=t.kind;return!!(t.flags&64)&&(u===211||u===212||u===213||u===235)}function IN(t){return Y1(t)&&!O7(t)&&!!t.questionDotToken}function MU(t){return IN(t.parent)&&t.parent.expression===t}function RN(t){return!Y1(t.parent)||IN(t.parent)||t!==t.parent.expression}function Kse(t){return t.kind===226&&t.operatorToken.kind===61}function q3(t){return X4(t)&&at(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function Np(t){return Dc(t,8)}function zU(t){return O7(t)&&!!(t.flags&64)}function ON(t){return t.kind===252||t.kind===251}function Wse(t){return t.kind===280||t.kind===279}function Q2e(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function Gse(t){return Q2e(t)||t.kind===307||t.kind===311}function WO(t){return t.kind===355||t.kind===348}function DZe(t){return GO(t.kind)}function GO(t){return t>=166}function Jse(t){return t>=0&&t<=165}function u7(t){return Jse(t.kind)}function g2(t){return gu(t,"pos")&&gu(t,"end")}function jN(t){return 9<=t&&t<=15}function E2(t){return jN(t.kind)}function $se(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Bx(t){return 15<=t&&t<=18}function X2e(t){return Bx(t.kind)}function IU(t){const u=t.kind;return u===17||u===18}function r7(t){return bf(t)||eh(t)}function RU(t){switch(t.kind){case 276:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 274:return t.parent.isTypeOnly;case 273:case 271:return t.isTypeOnly}return!1}function ebe(t){switch(t.kind){case 281:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 278:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 280:return t.parent.isTypeOnly}return!1}function _2(t){return RU(t)||ebe(t)}function Use(t){return t.kind===11||Bx(t.kind)}function tbe(t){return us(t)||at(t)}function al(t){var u;return at(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function Uy(t){var u;return ea(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function JO(t){const u=t.emitNode.autoGenerate.flags;return!!(u&32)&&!!(u&16)&&!!(u&8)}function ph(t){return(ko(t)||N8(t))&&ea(t.name)}function T8(t){return Iu(t)&&ea(t.name)}function XD(t){switch(t){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 VN(t){return!!(_7(t)&31)}function qse(t){return VN(t)||t===126||t===164||t===129}function Qo(t){return XD(t.kind)}function sm(t){const u=t.kind;return u===166||u===80}function Sc(t){const u=t.kind;return u===80||u===81||u===11||u===9||u===167}function qy(t){const u=t.kind;return u===80||u===206||u===207}function Co(t){return!!t&&a7(t.kind)}function L8(t){return!!t&&(a7(t.kind)||zl(t))}function $0(t){return t&&xZe(t.kind)}function HN(t){return t.kind===112||t.kind===97}function xZe(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function a7(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return xZe(t)}}function Zse(t){return la(t)||rE(t)||po(t)&&Co(t.parent)}function Zd(t){const u=t.kind;return u===176||u===172||u===174||u===177||u===178||u===181||u===175||u===240}function mr(t){return t&&(t.kind===263||t.kind===231)}function wx(t){return t&&(t.kind===177||t.kind===178)}function ef(t){return ko(t)&&eE(t)}function ibe(t){return Qn(t)&&EZ(t)?(!A2(t)||!Ox(t.expression))&&!ak(t,!0):t.parent&&mr(t.parent)&&ko(t)&&!eE(t)}function N8(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function nbe(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ol(t){return Qo(t)||g1(t)}function Zy(t){const u=t.kind;return u===180||u===179||u===171||u===173||u===181||u===177||u===178}function OU(t){return Zy(t)||Zd(t)}function Z3(t){const u=t.kind;return u===303||u===304||u===305||u===174||u===177||u===178}function Xr(t){return _le(t.kind)}function ube(t){switch(t.kind){case 184:case 185:return!0}return!1}function So(t){if(t){const u=t.kind;return u===207||u===206}return!1}function KN(t){const u=t.kind;return u===209||u===210}function jU(t){const u=t.kind;return u===208||u===232}function $O(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function rbe(t){return ua(t)||io(t)||qO(t)||ZO(t)}function UO(t){return Yse(t)||Qse(t)}function Yse(t){switch(t.kind){case 206:case 210:return!0}return!1}function qO(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function Qse(t){switch(t.kind){case 207:case 209:return!0}return!1}function ZO(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return ld(t,!0)}function abe(t){const u=t.kind;return u===211||u===166||u===205}function obe(t){const u=t.kind;return u===211||u===166}function Xse(t){return D2(t)||R2(t)}function D2(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function $E(t){return t.kind===213||t.kind===214}function P8(t){const u=t.kind;return u===228||u===15}function Df(t){return vZe(Np(t).kind)}function vZe(t){switch(t){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 e0e(t){return CZe(Np(t).kind)}function CZe(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return vZe(t)}}function sbe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function lbe(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return E2(t)}}function Wt(t){return _Tt(Np(t).kind)}function _Tt(t){switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return CZe(t)}}function Yy(t){const u=t.kind;return u===216||u===234}function bZe(t){return yce(t)||dY(t)}function Tx(t,u){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return u&&Tx(t.statement,u)}return!1}function cbe(t){return tc(t)||Gc(t)}function dbe(t){return Oe(t,cbe)}function VU(t){return!aj(t)&&!tc(t)&&!Yu(t,32)&&!N1(t)}function YO(t){return aj(t)||tc(t)||Yu(t,32)}function M8(t){return t.kind===249||t.kind===250}function HU(t){return po(t)||Wt(t)}function t0e(t){return po(t)}function a4(t){return Ad(t)||Wt(t)}function hbe(t){const u=t.kind;return u===268||u===267||u===80}function yZe(t){const u=t.kind;return u===268||u===267}function kZe(t){const u=t.kind;return u===80||u===267}function i0e(t){const u=t.kind;return u===275||u===274}function QO(t){return t.kind===267||t.kind===266}function Zg(t){switch(t.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 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329: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 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function UE(t){switch(t.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 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function DTt(t){return t===219||t===208||t===263||t===231||t===175||t===176||t===266||t===306||t===281||t===262||t===218||t===177||t===273||t===271||t===276||t===264||t===291||t===174||t===173||t===267||t===270||t===274||t===280||t===169||t===303||t===172||t===171||t===178||t===304||t===265||t===168||t===260||t===353||t===345||t===355}function fbe(t){return t===262||t===282||t===263||t===264||t===265||t===266||t===267||t===272||t===271||t===278||t===277||t===270}function mbe(t){return t===252||t===251||t===259||t===246||t===244||t===242||t===249||t===250||t===248||t===245||t===256||t===253||t===255||t===257||t===258||t===243||t===247||t===254||t===359}function Q1(t){return t.kind===168?t.parent&&t.parent.kind!==352||Qn(t):DTt(t.kind)}function pbe(t){return fbe(t.kind)}function XO(t){return mbe(t.kind)}function na(t){const u=t.kind;return mbe(u)||fbe(u)||xTt(t)}function xTt(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!k2(t)}function gbe(t){const u=t.kind;return mbe(u)||fbe(u)||u===241}function Ebe(t){const u=t.kind;return u===283||u===166||u===80}function WN(t){const u=t.kind;return u===110||u===80||u===211||u===295}function ej(t){const u=t.kind;return u===284||u===294||u===285||u===12||u===288}function KU(t){const u=t.kind;return u===291||u===293}function _be(t){const u=t.kind;return u===11||u===294}function zh(t){const u=t.kind;return u===286||u===285}function WU(t){const u=t.kind;return u===296||u===297}function z8(t){return t.kind>=316&&t.kind<=357}function GU(t){return t.kind===327||t.kind===326||t.kind===328||o7(t)||I8(t)||K7(t)||Ov(t)}function I8(t){return t.kind>=334&&t.kind<=357}function e5(t){return t.kind===178}function Lx(t){return t.kind===177}function lm(t){if(!wj(t))return!1;const{jsDoc:u}=t;return!!u&&u.length>0}function JU(t){return!!t.type}function Nx(t){return!!t.initializer}function Qy(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function n0e(t){return t.kind===291||t.kind===293||Z3(t)}function $U(t){return t.kind===183||t.kind===233}function Dbe(t){let u=xbe;for(const s of t){if(!s.length)continue;let d=0;for(;ds.kind===u)}function Vo(t){const u=new Map;if(t)for(const s of t)u.set(s.escapedName,s);return u}function qE(t){return(t.flags&33554432)!==0}function CTt(){var t="";const u=s=>t+=s;return{getText:()=>t,write:u,rawWrite:u,writeKeyword:u,writeOperator:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeLiteral:u,writeParameter:u,writeProperty:u,writeSymbol:(s,d)=>u(s),writeTrailingSemicolon:u,writeComment:u,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&U3(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:Is,decreaseIndent:Is,clear:()=>t=""}}function UU(t,u){return t.configFilePath!==u.configFilePath||Cbe(t,u)}function Cbe(t,u){return R8(t,u,NY)}function bbe(t,u){return R8(t,u,pde)}function R8(t,u,s){return t!==u&&s.some(d=>!dZ(tZ(t,d),tZ(u,d)))}function ybe(t,u){for(;;){const s=u(t);if(s==="quit")return;if(s!==void 0)return s;if(la(t))return;t=t.parent}}function h1(t,u){const s=t.entries();for(const[d,f]of s){const p=u(f,d);if(p)return p}}function U_(t,u){const s=t.keys();for(const d of s){const f=u(d);if(f)return f}}function qU(t,u){t.forEach((s,d)=>{u.set(d,s)})}function GN(t){const u=cV.getText();try{return t(cV),cV.getText()}finally{cV.clear(),cV.writeKeyword(u)}}function ij(t){return t.end-t.pos}function a0e(t,u){return t.path===u.path&&!t.prepend==!u.prepend&&!t.circular==!u.circular}function kbe(t,u){return t===u||t.resolvedModule===u.resolvedModule||!!t.resolvedModule&&!!u.resolvedModule&&t.resolvedModule.isExternalLibraryImport===u.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===u.resolvedModule.extension&&t.resolvedModule.resolvedFileName===u.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===u.resolvedModule.originalPath&&bTt(t.resolvedModule.packageId,u.resolvedModule.packageId)&&t.node10Result===u.node10Result}function o0e(t,u,s,d,f){var p;const E=(p=u.getResolvedModule(t,s,d))==null?void 0:p.node10Result,v=E?ro(void 0,F.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(o_+"@types/")?`@types/${JB(f)}`:f):u.typesPackageExists(f)?ro(void 0,F.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,f,JB(f)):u.packageBundlesTypes(f)?ro(void 0,F.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,f,s):ro(void 0,F.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,JB(f));return v&&(v.repopulateInfo=()=>({moduleReference:s,mode:d,packageName:f===s?void 0:f})),v}function bTt(t,u){return t===u||!!t&&!!u&&t.name===u.name&&t.subModuleName===u.subModuleName&&t.version===u.version}function ZU({name:t,subModuleName:u}){return u?`${t}/${u}`:t}function Px(t){return`${ZU(t)}@${t.version}`}function Fbe(t,u){return t===u||t.resolvedTypeReferenceDirective===u.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!u.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===u.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!u.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===u.resolvedTypeReferenceDirective.originalPath}function s0e(t,u,s,d,f,p){H.assert(t.length===s.length);for(let E=0;E=0),$3(u)[t]}function FZe(t){const u=zn(t),s=s0(u,t.pos);return`${u.fileName}(${s.line+1},${s.character+1})`}function uj(t,u){H.assert(t>=0);const s=$3(u),d=t,f=u.text;if(d+1===s.length)return f.length-1;{const p=s[d];let E=s[d+1]-1;for(H.assert(Z1(f.charCodeAt(E)));p<=E&&Z1(f.charCodeAt(E));)E--;return E}}function QU(t,u,s){return!(s&&s(u))&&!t.identifiers.has(u)}function Ql(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function H4(t){return!Ql(t)}function Sbe(t,u){return Bl(t)?u===t.expression:zl(t)?u===t.modifiers:Mm(t)?u===t.initializer:ko(t)?u===t.questionToken&&ef(t):Jc(t)?u===t.modifiers||u===t.questionToken||u===t.exclamationToken||rj(t.modifiers,u,ol):pm(t)?u===t.equalsToken||u===t.modifiers||u===t.questionToken||u===t.exclamationToken||rj(t.modifiers,u,ol):dc(t)?u===t.exclamationToken:hc(t)?u===t.typeParameters||u===t.type||rj(t.typeParameters,u,Bl):zm(t)?u===t.typeParameters||rj(t.typeParameters,u,Bl):jf(t)?u===t.typeParameters||u===t.type||rj(t.typeParameters,u,Bl):wV(t)?u===t.modifiers||rj(t.modifiers,u,ol):!1}function rj(t,u,s){return!t||Ha(u)||!s(u)?!1:kt(t,u)}function AZe(t,u,s){if(u===void 0||u.length===0)return t;let d=0;for(;d[`${s0(t,E.range.end).line}`,E])),d=new Map;return{getUnusedExpectations:f,markUsed:p};function f(){return ga(s.entries()).filter(([E,v])=>v.type===0&&!d.get(E)).map(([E,v])=>v)}function p(E){return s.has(`${E}`)?(d.set(`${E}`,!0),!0):!1}}function ek(t,u,s){return Ql(t)?t.pos:z8(t)||t.kind===12?gs((u||zn(t)).text,t.pos,!1,!0):s&&lm(t)?ek(t.jsDoc[0],u):t.kind===358&&t._children.length>0?ek(t._children[0],u,s):gs((u||zn(t)).text,t.pos,!1,!1,Ej(t))}function d0e(t,u){const s=!Ql(t)&&Hp(t)?lt(t.modifiers,g1):void 0;return s?gs((u||zn(t)).text,s.end):ek(t,u)}function x2(t,u,s=!1){return JN(t.text,u,s)}function kTt(t){return!!Tn(t,kk)}function eq(t){return!!(Gc(t)&&t.exportClause&&u_(t.exportClause)&&t.exportClause.name.escapedText==="default")}function JN(t,u,s=!1){if(Ql(u))return"";let d=t.substring(s?u.pos:gs(t,u.pos),u.end);return kTt(u)&&(d=d.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` -`)),d}function Hc(t,u=!1){return x2(zn(t),t,u)}function FTt(t){return t.pos}function j8(t,u){return Kl(t,u,FTt,nl)}function bs(t){const u=t.emitNode;return u&&u.flags||0}function Pp(t){const u=t.emitNode;return u&&u.internalFlags||0}function wbe(t,u,s){if(u&&ATt(t,s))return x2(u,t);switch(t.kind){case 11:{const d=s&2?X0e:s&1||bs(t)&16777216?Av:jj;return t.singleQuote?"'"+d(t.text,39)+"'":'"'+d(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const d=s&1||bs(t)&16777216?Av:jj,f=t.rawText??RTt(d(t.text,96));switch(t.kind){case 15:return"`"+f+"`";case 16:return"`"+f+"${";case 17:return"}"+f+"${";case 18:return"}"+f+"`"}break}case 9:case 10:return t.text;case 14:return s&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return H.fail(`Literal kind '${t.kind}' not accounted for.`)}function ATt(t,u){if(sl(t)||!t.parent||u&4&&t.isUnterminated)return!1;if(Of(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(u&8)}return!iY(t)}function Tbe(t){return Ja(t)?'"'+jj(t)+'"':""+t}function Lbe(t){return Ac(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function h0e(t){return(QD(t)&7)!==0||f0e(t)}function f0e(t){const u=XE(t);return u.kind===260&&u.parent.kind===299}function N1(t){return _c(t)&&(t.name.kind===11||Yg(t))}function tq(t){return _c(t)&&t.name.kind===11}function m0e(t){return _c(t)&&us(t.name)}function Nbe(t){return _c(t)||at(t)}function $N(t){return STt(t.valueDeclaration)}function STt(t){return!!t&&t.kind===267&&!t.body}function Pbe(t){return t.kind===312||t.kind===267||L8(t)}function Yg(t){return!!(t.flags&2048)}function v2(t){return N1(t)&&p0e(t)}function p0e(t){switch(t.parent.kind){case 312:return wc(t.parent);case 268:return N1(t.parent.parent)&&la(t.parent.parent.parent)&&!wc(t.parent.parent.parent)}return!1}function g0e(t){var u;return(u=t.declarations)==null?void 0:u.find(s=>!v2(s)&&!(_c(s)&&Yg(s)))}function BTt(t){return t===1||t===100||t===199}function s7(t,u){return wc(t)||BTt(m1(u))&&!!t.commonJsModuleIndicator}function E0e(t,u){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:Z4(u,"alwaysStrict")||AFe(t.statements)?!0:wc(t)||mg(u)?m1(u)>=5?!0:!u.noImplicitUseStrict:!1}function _0e(t){return!!(t.flags&33554432)||Yu(t,128)}function D0e(t,u){switch(t.kind){case 312: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!L8(u)}return!1}function x0e(t){switch(H.type(t),t.kind){case 345:case 353:case 330:return!0;default:return v0e(t)}}function v0e(t){switch(H.type(t),t.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function tk(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function Mbe(t){return tk(t)||F2(t)}function iq(t){switch(t.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 zbe(t){return aj(t)||_c(t)||nD(t)||dm(t)}function aj(t){return tk(t)||Gc(t)}function C0e(t){return Tn(t.parent,u=>!!(Lde(u)&1))}function YE(t){return Tn(t.parent,u=>D0e(u,u.parent))}function Ibe(t,u){let s=YE(t);for(;s;)u(s),s=YE(s)}function b0(t){return!t||ij(t)===0?"(Missing)":Hc(t)}function Rbe(t){return t.declaration?b0(t.declaration.parameters[0].name):void 0}function oj(t){return t.kind===167&&!Pm(t.expression)}function UN(t){var u;switch(t.kind){case 80:case 81:return(u=t.emitNode)!=null&&u.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return Al(t.text);case 167:return Pm(t.expression)?Al(t.expression.text):void 0;case 295:return k7(t);default:return H.assertNever(t)}}function V8(t){return H.checkDefined(UN(t))}function zf(t){switch(t.kind){case 110:return"this";case 81:case 80:return ij(t)===0?fu(t):Hc(t);case 166:return zf(t.left)+"."+zf(t.right);case 211:return at(t.name)||ea(t.name)?zf(t.expression)+"."+zf(t.name):H.assertNever(t.name);case 318:return zf(t.left)+zf(t.right);case 295:return zf(t.namespace)+":"+zf(t.name);default:return H.assertNever(t)}}function Su(t,u,...s){const d=zn(t);return K4(d,t,u,...s)}function H8(t,u,s,...d){const f=gs(t.text,u.pos);return Rd(t,f,u.end-f,s,...d)}function K4(t,u,s,...d){const f=C2(t,u);return Rd(t,f.start,f.length,s,...d)}function Y3(t,u,s,d){const f=C2(t,u);return nq(t,f.start,f.length,s,d)}function sj(t,u,s,d){const f=gs(t.text,u.pos);return nq(t,f,u.end-f,s,d)}function Obe(t,u,s){H.assertGreaterThanOrEqual(u,0),H.assertGreaterThanOrEqual(s,0),H.assertLessThanOrEqual(u,t.length),H.assertLessThanOrEqual(u+s,t.length)}function nq(t,u,s,d,f){return Obe(t.text,u,s),{file:t,start:u,length:s,code:d.code,category:d.category,messageText:d.next?d:d.messageText,relatedInformation:f}}function b0e(t,u,s){return{file:t,start:0,length:0,code:u.code,category:u.category,messageText:u.next?u:u.messageText,relatedInformation:s}}function jbe(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function Vbe(t,u,s){return{file:t,start:u.pos,length:u.end-u.pos,code:s.code,category:s.category,messageText:s.message}}function QE(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);s.scan();const d=s.getTokenStart();return Vc(d,s.getTokenEnd())}function Hbe(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);return s.scan(),s.getToken()}function wTt(t,u){const s=gs(t.text,u.pos);if(u.body&&u.body.kind===241){const{line:d}=s0(t,u.body.pos),{line:f}=s0(t,u.body.end);if(d0?u.statements[0].pos:u.end;return Vc(p,E)}case 253:case 229:{const p=gs(t.text,u.pos);return QE(t,p)}case 238:{const p=gs(t.text,u.expression.end);return QE(t,p)}case 357:{const p=gs(t.text,u.tagName.pos);return QE(t,p)}}if(s===void 0)return QE(t,u.pos);H.assert(!Vp(s));const d=Ql(s),f=d||w7(u)?s.pos:gs(t.text,s.pos);return d?(H.assert(f===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(H.assert(f>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Vc(f,s.end)}function cm(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function W4(t){return t.scriptKind===6}function b2(t){return!!(m2(t)&4096)}function uq(t){return!!(m2(t)&8&&!Mf(t,t.parent))}function lj(t){return(QD(t)&7)===6}function cj(t){return(QD(t)&7)===4}function K8(t){return(QD(t)&7)===2}function rq(t){return(QD(t)&7)===1}function ik(t){return t.kind===213&&t.expression.kind===108}function dm(t){return t.kind===213&&t.expression.kind===102}function W8(t){return $P(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function zx(t){return nD(t)&&Mv(t.argument)&&us(t.argument.literal)}function Mp(t){return t.kind===244&&t.expression.kind===11}function dj(t){return!!(bs(t)&2097152)}function aq(t){return dj(t)&&ed(t)}function TTt(t){return at(t.name)&&!t.initializer}function oq(t){return dj(t)&&Jl(t)&&ye(t.declarationList.declarations,TTt)}function y0e(t,u){return t.kind!==12?W_(u.text,t.pos):void 0}function k0e(t,u){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?Hi(gv(u,t.pos),W_(u,t.pos)):W_(u,t.pos);return ti(s,d=>u.charCodeAt(d.pos+1)===42&&u.charCodeAt(d.pos+2)===42&&u.charCodeAt(d.pos+3)!==47)}function q_(t){if(182<=t.kind&&t.kind<=205)return!0;switch(t.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 t.parent.kind!==222;case 233:return mm(t.parent)&&!Jj(t);case 168:return t.parent.kind===200||t.parent.kind===195;case 80:(t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t)&&(t=t.parent),H.assert(t.kind===80||t.kind===166||t.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:u}=t;if(u.kind===186)return!1;if(u.kind===205)return!u.isTypeOf;if(182<=u.kind&&u.kind<=205)return!0;switch(u.kind){case 233:return mm(u.parent)&&!Jj(u);case 168:return t===u.constraint;case 352:return t===u.constraint;case 172:case 171:case 169:case 260:return t===u.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===u.type;case 179:case 180:case 181:return t===u.type;case 216:return t===u.type;case 213:case 214:case 215:return kt(u.typeArguments,t)}}}return!1}function TZe(t,u){for(;t;){if(t.kind===u)return!0;t=t.parent}return!1}function y2(t,u){return s(t);function s(d){switch(d.kind){case 253:return u(d);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 ao(d,s)}}}function Kbe(t,u){return s(t);function s(d){switch(d.kind){case 229:u(d);const f=d.expression;f&&s(f);return;case 266:case 264:case 267:case 265:return;default:if(Co(d)){if(d.name&&d.name.kind===167){s(d.name.expression);return}}else q_(d)||ao(d,s)}}}function F0e(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Aa(t.typeArguments):void 0}function Wbe(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function G8(t){if(t)switch(t.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Gbe(t){return G8(t)||wx(t)}function qN(t){return t.parent.kind===261&&t.parent.parent.kind===243}function Jbe(t){return Qn(t)?ys(t.parent)&&Xn(t.parent.parent)&&Xl(t.parent.parent)===2||sq(t.parent):!1}function sq(t){return Qn(t)?Xn(t)&&Xl(t)===1:!1}function $be(t){return(ua(t)?K8(t)&&at(t.name)&&qN(t):ko(t)?fP(t)&&Kc(t):Mm(t)&&fP(t))||sq(t)}function Ube(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function A0e(t,u){for(;;){if(u&&u(t),t.statement.kind!==256)return t.statement;t=t.statement}}function k2(t){return t&&t.kind===241&&Co(t.parent)}function zp(t){return t&&t.kind===174&&t.parent.kind===210}function lq(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function qbe(t){return t&&t.kind===1}function LZe(t){return t&&t.kind===0}function J8(t,u,s,d){return L(t==null?void 0:t.properties,f=>{if(!Jc(f))return;const p=UN(f.name);return u===p||d&&d===p?s(f):void 0})}function Zbe(t,u,s){return J8(t,u,d=>Dh(d.initializer)?Le(d.initializer.elements,f=>us(f)&&f.text===s):void 0)}function ZN(t){if(t&&t.statements.length){const u=t.statements[0].expression;return ur(u,ys)}}function cq(t,u,s){return hj(t,u,d=>Dh(d.initializer)?Le(d.initializer.elements,f=>us(f)&&f.text===s):void 0)}function hj(t,u,s){return J8(ZN(t),u,s)}function Nm(t){return Tn(t.parent,Co)}function Ybe(t){return Tn(t.parent,$0)}function Yd(t){return Tn(t.parent,mr)}function Qbe(t){return Tn(t.parent,u=>mr(u)||Co(u)?"quit":zl(u))}function dq(t){return Tn(t.parent,L8)}function hq(t){const u=Tn(t.parent,s=>mr(s)?"quit":g1(s));return u&&mr(u.parent)?Yd(u.parent):Yd(u??t)}function tf(t,u,s){for(H.assert(t.kind!==312);;){if(t=t.parent,!t)return H.fail();switch(t.kind){case 167:if(s&&mr(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&Zd(t.parent.parent)?t=t.parent.parent:Zd(t.parent)&&(t=t.parent);break;case 219:if(!u)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 312:return t}}}function Xbe(t){switch(t.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(t.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function fq(t){at(t)&&(Wc(t.parent)||ed(t.parent))&&t.parent.name===t&&(t=t.parent);const u=tf(t,!0,!1);return la(u)}function eye(t){const u=tf(t,!1,!1);if(u)switch(u.kind){case 176:case 262:case 218:return u}}function fj(t,u){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!u)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return t;case 170:t.parent.kind===169&&Zd(t.parent.parent)?t=t.parent.parent:Zd(t.parent)&&(t=t.parent);break}}}function nk(t){if(t.kind===218||t.kind===219){let u=t,s=t.parent;for(;s.kind===217;)u=s,s=s.parent;if(s.kind===213&&s.expression===u)return s}}function NZe(t){return t.kind===108||nf(t)}function nf(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===108}function mj(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===110}function mq(t){var u;return!!t&&ua(t)&&((u=t.initializer)==null?void 0:u.kind)===110}function tye(t){return!!t&&(pm(t)||Jc(t))&&Xn(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function pj(t){switch(t.kind){case 183:return t.typeName;case 233:return ec(t.expression)?t.expression:void 0;case 80:case 166:return t}}function pq(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;case 226:return t.right;default:return t.expression}}function gq(t,u,s,d){if(t&&mh(u)&&ea(u.name))return!1;switch(u.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Wc(s):mr(s)&&!P2(u)&&!rle(u));case 177:case 178:case 174:return u.body!==void 0&&s!==void 0&&(t?Wc(s):mr(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&T2(s)!==u&&d!==void 0&&d.kind===263:!1}return!1}function YN(t,u,s,d){return o4(u)&&gq(t,u,s,d)}function gj(t,u,s,d){return YN(t,u,s,d)||QN(t,u,s)}function QN(t,u,s){switch(u.kind){case 263:return Oe(u.members,d=>gj(t,d,u,s));case 231:return!t&&Oe(u.members,d=>gj(t,d,u,s));case 174:case 178:case 176:return Oe(u.parameters,d=>YN(t,d,u,s));default:return!1}}function t5(t,u){if(YN(t,u))return!0;const s=X_(u);return!!s&&QN(t,s,u)}function S0e(t,u,s){let d;if(wx(u)){const{firstAccessor:f,secondAccessor:p,setAccessor:E}=dk(s.members,u),v=o4(f)?f:p&&o4(p)?p:void 0;if(!v||u!==v)return!1;d=E==null?void 0:E.parameters}else dc(u)&&(d=u.parameters);if(YN(t,u,s))return!0;if(d){for(const f of d)if(!L2(f)&&YN(t,f,u,s))return!0}return!1}function B0e(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return B0e(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function $8(t){const{parent:u}=t;return u.kind===286||u.kind===285||u.kind===287?u.tagName===t:!1}function Z_(t){switch(t.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!mm(t.parent)&&!LB(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t);case 318:for(;Rv(t.parent);)t=t.parent;return t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t);case 81:return Xn(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||o7(t.parent)||QP(t.parent)||Rv(t.parent)||$8(t))return!0;case 9:case 10:case 11:case 15:case 110:return Eq(t);default:return!1}}function Eq(t){const{parent:u}=t;switch(u.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return u.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return u.expression===t;case 248:const s=u;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const d=u;return d.initializer===t&&d.initializer.kind!==261||d.expression===t;case 216:case 234:return t===u.expression;case 239:return t===u.expression;case 167:return t===u.expression;case 170:case 294:case 293:case 305:return!0;case 233:return u.expression===t&&!q_(u);case 304:return u.objectAssignmentInitializer===t;case 238:return t===u.expression;default:return Z_(u)}}function _q(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function iye(t){return u_(t)&&!!t.parent.moduleSpecifier}function bv(t){return t.kind===271&&t.moduleReference.kind===283}function XN(t){return H.assert(bv(t)),t.moduleReference.expression}function w0e(t){return F2(t)&&CP(t.initializer).arguments[0]}function U8(t){return t.kind===271&&t.moduleReference.kind!==283}function gh(t){return Qn(t)}function PZe(t){return!Qn(t)}function Qn(t){return!!t&&!!(t.flags&524288)}function Dq(t){return!!t&&!!(t.flags&134217728)}function T0e(t){return!W4(t)}function Ej(t){return!!t&&!!(t.flags&16777216)}function xq(t){return X4(t)&&at(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function xf(t,u){if(t.kind!==213)return!1;const{expression:s,arguments:d}=t;if(s.kind!==80||s.escapedText!=="require"||d.length!==1)return!1;const f=d[0];return!u||t0(f)}function vq(t){return MZe(t,!1)}function F2(t){return MZe(t,!0)}function nye(t){return js(t)&&F2(t.parent.parent)}function MZe(t,u){return ua(t)&&!!t.initializer&&xf(u?CP(t.initializer):t.initializer,!0)}function L0e(t){return Jl(t)&&t.declarationList.declarations.length>0&&ye(t.declarationList.declarations,u=>vq(u))}function _j(t){return t===39||t===34}function Cq(t,u){return x2(u,t).charCodeAt(0)===34}function eP(t){return Xn(t)||I0(t)||at(t)||Mo(t)}function Dj(t){return Qn(t)&&t.initializer&&Xn(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&ec(t.name)&&q8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function xj(t){const u=Dj(t);return u&&yv(u,Ox(t.name))}function LTt(t,u){return L(t.properties,s=>Jc(s)&&at(s.name)&&s.name.escapedText==="value"&&s.initializer&&yv(s.initializer,u))}function l7(t){if(t&&t.parent&&Xn(t.parent)&&t.parent.operatorToken.kind===64){const u=Ox(t.parent.left);return yv(t.parent.right,u)||NTt(t.parent.left,t.parent.right,u)}if(t&&Mo(t)&&rk(t)){const u=LTt(t.arguments[2],t.arguments[1].text==="prototype");if(u)return u}}function yv(t,u){if(Mo(t)){const s=l0(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||ys(t)&&(t.properties.length===0||u))return t}function NTt(t,u,s){const d=Xn(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===61)&&yv(u.right,s);if(d&&q8(t,u.left))return d}function uye(t){const u=ua(t.parent)?t.parent.name:Xn(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return u&&yv(t.right,Ox(u))&&ec(u)&&q8(u,t.left)}function N0e(t){if(Xn(t.parent)){const u=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&Xn(t.parent.parent)?t.parent.parent:t.parent;if(u.operatorToken.kind===64&&at(u.left))return u.left}else if(ua(t.parent))return t.parent.name}function q8(t,u){return Xg(t)&&Xg(u)?J4(t)===J4(u):J_(t)&&bq(u)&&(u.expression.kind===110||at(u.expression)&&(u.expression.escapedText==="window"||u.expression.escapedText==="self"||u.expression.escapedText==="global"))?q8(t,bj(u)):bq(t)&&bq(u)?Q3(t)===Q3(u)&&q8(t.expression,u.expression):!1}function vj(t){for(;ld(t,!0);)t=t.right;return t}function uk(t){return at(t)&&t.escapedText==="exports"}function P0e(t){return at(t)&&t.escapedText==="module"}function Y_(t){return(Iu(t)||Cj(t))&&P0e(t.expression)&&Q3(t)==="exports"}function Xl(t){const u=PTt(t);return u===5||Qn(t)?u:0}function rk(t){return S(t.arguments)===3&&Iu(t.expression)&&at(t.expression.expression)&&fu(t.expression.expression)==="Object"&&fu(t.expression.name)==="defineProperty"&&Pm(t.arguments[1])&&ak(t.arguments[0],!0)}function bq(t){return Iu(t)||Cj(t)}function Cj(t){return U0(t)&&Pm(t.argumentExpression)}function A2(t,u){return Iu(t)&&(!u&&t.expression.kind===110||at(t.name)&&ak(t.expression,!0))||yq(t,u)}function yq(t,u){return Cj(t)&&(!u&&t.expression.kind===110||ec(t.expression)||A2(t.expression,!0))}function ak(t,u){return ec(t)||A2(t,u)}function bj(t){return Iu(t)?t.name:t.argumentExpression}function PTt(t){if(Mo(t)){if(!rk(t))return 0;const u=t.arguments[0];return uk(u)||Y_(u)?8:A2(u)&&Q3(u)==="prototype"?9:7}return t.operatorToken.kind!==64||!I0(t.left)||MTt(vj(t))?0:ak(t.left.expression,!0)&&Q3(t.left)==="prototype"&&ys(M0e(t))?6:yj(t.left)}function MTt(t){return R7(t)&&Of(t.expression)&&t.expression.text==="0"}function kq(t){if(Iu(t))return t.name;const u=l0(t.argumentExpression);return Of(u)||t0(u)?u:t}function Q3(t){const u=kq(t);if(u){if(at(u))return u.escapedText;if(t0(u)||Of(u))return Al(u.text)}}function yj(t){if(t.expression.kind===110)return 4;if(Y_(t))return 2;if(ak(t.expression,!0)){if(Ox(t.expression))return 3;let u=t;for(;!at(u.expression);)u=u.expression;const s=u.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&Q3(u)==="exports")&&A2(t))return 1;if(ak(t,!0)||U0(t)&&Lq(t))return 5}return 0}function M0e(t){for(;Xn(t.right);)t=t.right;return t.right}function kj(t){return Xn(t)&&Xl(t)===3}function rye(t){return Qn(t)&&t.parent&&t.parent.kind===244&&(!U0(t)||Cj(t))&&!!xv(t.parent)}function Fj(t,u){const{valueDeclaration:s}=t;(!s||!(u.flags&33554432&&!Qn(u)&&!(s.flags&33554432))&&eP(s)&&!eP(u)||s.kind!==u.kind&&Nbe(s))&&(t.valueDeclaration=u)}function aye(t){if(!t||!t.valueDeclaration)return!1;const u=t.valueDeclaration;return u.kind===262||ua(u)&&u.initializer&&Co(u.initializer)}function Z8(t){var u,s;switch(t.kind){case 260:case 208:return(u=Tn(t.initializer,d=>xf(d,!0)))==null?void 0:u.arguments[0];case 272:case 278:return ur(t.moduleSpecifier,t0);case 271:return ur((s=ur(t.moduleReference,r_))==null?void 0:s.expression,t0);case 273:case 280:return ur(t.parent.moduleSpecifier,t0);case 274:case 281:return ur(t.parent.parent.moduleSpecifier,t0);case 276:return ur(t.parent.parent.parent.moduleSpecifier,t0);case 205:return zx(t)?t.argument.literal:void 0;default:H.assertNever(t)}}function tP(t){return Aj(t)||H.failBadSyntaxKind(t.parent)}function Aj(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return dm(t.parent)||xf(t.parent,!1)?t.parent:void 0;case 201:return H.assert(us(t)),ur(t.parent.parent,nD);default:return}}function Y8(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return t.moduleReference.kind===283?t.moduleReference.expression:void 0;case 205:return zx(t)?t.argument.literal:void 0;case 213:return t.arguments[0];case 267:return t.name.kind===11?t.name:void 0;default:return H.assertNever(t)}}function Q8(t){switch(t.kind){case 272:return t.importClause&&ur(t.importClause.namedBindings,Jx);case 271:return t;case 278:return t.exportClause&&ur(t.exportClause,u_);default:return H.assertNever(t)}}function c7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function Fq(t,u){if(t.name){const s=u(t);if(s)return s}if(t.namedBindings){const s=Jx(t.namedBindings)?u(t.namedBindings):L(t.namedBindings.elements,u);if(s)return s}}function d7(t){if(t)switch(t.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return t.questionToken!==void 0}return!1}function X8(t){const u=TB(t)?Ki(t.parameters):void 0,s=ur(u&&u.name,at);return!!s&&s.escapedText==="new"}function G4(t){return t.kind===353||t.kind===345||t.kind===347}function Sj(t){return G4(t)||jp(t)}function zTt(t){return Od(t)&&Xn(t.expression)&&t.expression.operatorToken.kind===64?vj(t.expression):void 0}function zZe(t){return Od(t)&&Xn(t.expression)&&Xl(t.expression)!==0&&Xn(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function z0e(t){switch(t.kind){case 243:const u=eB(t);return u&&u.initializer;case 172:return t.initializer;case 303:return t.initializer}}function eB(t){return Jl(t)?Ki(t.declarationList.declarations):void 0}function IZe(t){return _c(t)&&t.body&&t.body.kind===267?t.body:void 0}function Bj(t){if(t.kind>=243&&t.kind<=259)return!0;switch(t.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 wj(t){switch(t.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 324:case 330: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 I0e(t,u){let s;G8(t)&&Nx(t)&&lm(t.initializer)&&(s=yn(s,RZe(t,Cr(t.initializer.jsDoc))));let d=t;for(;d&&d.parent;){if(lm(d)&&(s=yn(s,RZe(t,Cr(d.jsDoc)))),d.kind===169){s=yn(s,(u?O2e:B8)(d));break}if(d.kind===168){s=yn(s,(u?V2e:j2e)(d));break}d=R0e(d)}return s||_t}function RZe(t,u){if(Vp(u)){const s=ti(u.tags,d=>OZe(t,d));return u.tags===s?[u]:s}return OZe(t,u)?[u]:void 0}function OZe(t,u){return!(XP(u)||_Y(u))||!u.parent||!Vp(u.parent)||!Cf(u.parent.parent)||u.parent.parent===t}function R0e(t){const u=t.parent;if(u.kind===303||u.kind===277||u.kind===172||u.kind===244&&t.kind===211||u.kind===253||IZe(u)||ld(t))return u;if(u.parent&&(eB(u.parent)===t||ld(u)))return u.parent;if(u.parent&&u.parent.parent&&(eB(u.parent.parent)||z0e(u.parent.parent)===t||zZe(u.parent.parent)))return u.parent.parent}function Tj(t){if(t.symbol)return t.symbol;if(!at(t.name))return;const u=t.name.escapedText,s=kv(t);if(!s)return;const d=Le(s.parameters,f=>f.name.kind===80&&f.name.escapedText===u);return d&&d.symbol}function Aq(t){if(Vp(t.parent)&&t.parent.tags){const u=Le(t.parent.tags,G4);if(u)return u}return kv(t)}function kv(t){const u=ok(t);if(u)return Mm(u)&&u.type&&Co(u.type)?u.type:Co(u)?u:void 0}function ok(t){const u=h7(t);if(u)return zZe(u)||zTt(u)||z0e(u)||eB(u)||IZe(u)||u}function h7(t){const u=iP(t);if(!u)return;const s=u.parent;if(s&&s.jsDoc&&u===qu(s.jsDoc))return s}function iP(t){return Tn(t.parent,Vp)}function oye(t){const u=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&Le(s,d=>d.name.escapedText===u)}function jZe(t){return!!t.typeArguments}function sye(t){let u=t.parent;for(;;){switch(u.kind){case 226:const s=u,d=s.operatorToken.kind;return u5(d)&&s.left===t?s:void 0;case 224:case 225:const f=u,p=f.operator;return p===46||p===47?f:void 0;case 249:case 250:const E=u;return E.initializer===t?E:void 0;case 217:case 209:case 230:case 235:t=u;break;case 305:t=u.parent;break;case 304:if(u.name!==t)return;t=u.parent;break;case 303:if(u.name===t)return;t=u.parent;break;default:return}u=t.parent}}function f7(t){const u=sye(t);if(!u)return 0;switch(u.kind){case 226:const s=u.operatorToken.kind;return s===64||mP(s)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function Q_(t){return!!sye(t)}function ITt(t){const u=l0(t.right);return u.kind===226&&Kce(u.operatorToken.kind)}function O0e(t){const u=sye(t);return!!u&&ld(u,!0)&&ITt(u)}function lye(t){switch(t.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 cye(t){return A0(t)||q0(t)||N8(t)||ed(t)||hc(t)}function VZe(t,u){for(;t&&t.kind===u;)t=t.parent;return t}function Lj(t){return VZe(t,196)}function i5(t){return VZe(t,217)}function dye(t){let u;for(;t&&t.kind===196;)u=t,t=t.parent;return[u,t]}function j0e(t){for(;M7(t);)t=t.type;return t}function l0(t,u){return Dc(t,u?17:1)}function V0e(t){return t.kind!==211&&t.kind!==212?!1:(t=i5(t.parent),t&&t.kind===220)}function S2(t,u){for(;t;){if(t===u)return!0;t=t.parent}return!1}function X3(t){return!la(t)&&!So(t)&&Q1(t.parent)&&t.parent.name===t}function nP(t){const u=t.parent;switch(t.kind){case 11:case 15:case 9:if(Ps(u))return u.parent;case 80:if(Q1(u))return u.name===t?u:void 0;if(vf(u)){const s=u.parent;return Eg(s)&&s.name===u?s:void 0}else{const s=u.parent;return Xn(s)&&Xl(s)!==0&&(s.left.symbol||s.symbol)&&Za(s)===t?s:void 0}case 81:return Q1(u)&&u.name===t?u:void 0;default:return}}function Nj(t){return Pm(t)&&t.parent.kind===167&&Q1(t.parent.parent)}function hye(t){const u=t.parent;switch(u.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return u.name===t;case 166:return u.right===t;case 208:case 276:return u.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function HZe(t){return t.kind===271||t.kind===270||t.kind===273&&t.name||t.kind===274||t.kind===280||t.kind===276||t.kind===281||t.kind===277&&tB(t)?!0:Qn(t)&&(Xn(t)&&Xl(t)===2&&tB(t)||Iu(t)&&Xn(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&Pj(t.parent.right))}function H0e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 166:do t=t.parent;while(t.parent.kind===166);return H0e(t)}}function Pj(t){return ec(t)||Xd(t)}function tB(t){const u=K0e(t);return Pj(u)}function K0e(t){return tc(t)?t.expression:t.right}function fye(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function Qg(t){const u=B2(t);if(u&&Qn(t)){const s=K2e(t);if(s)return s.class}return u}function B2(t){const u=Mj(t.heritageClauses,96);return u&&u.types.length>0?u.types[0]:void 0}function iB(t){if(Qn(t))return W2e(t).map(u=>u.class);{const u=Mj(t.heritageClauses,119);return u==null?void 0:u.types}}function uP(t){return xh(t)?rP(t)||_t:mr(t)&&Hi(Hy(Qg(t)),iB(t))||_t}function rP(t){const u=Mj(t.heritageClauses,96);return u?u.types:void 0}function Mj(t,u){if(t){for(const s of t)if(s.token===u)return s}}function Fv(t,u){for(;t;){if(t.kind===u)return t;t=t.parent}}function uf(t){return 83<=t&&t<=165}function W0e(t){return 19<=t&&t<=79}function Sq(t){return uf(t)||W0e(t)}function Bq(t){return 128<=t&&t<=165}function G0e(t){return uf(t)&&!Bq(t)}function KZe(t){return 119<=t&&t<=127}function m7(t){const u=f2(t);return u!==void 0&&G0e(u)}function WZe(t){const u=f2(t);return u!==void 0&&uf(u)}function wq(t){const u=Dv(t);return!!u&&!Bq(u)}function nB(t){return 2<=t&&t<=7}function kd(t){if(!t)return 4;let u=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(u|=1);case 219:Yu(t,1024)&&(u|=2);break}return t.body||(u|=4),u}function aP(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&Yu(t,1024)}return!1}function Pm(t){return t0(t)||Of(t)}function Tq(t){return zv(t)&&(t.operator===40||t.operator===41)&&Of(t.operand)}function Ix(t){const u=Za(t);return!!u&&Lq(u)}function Lq(t){if(!(t.kind===167||t.kind===212))return!1;const u=U0(t)?l0(t.argumentExpression):t.expression;return!Pm(u)&&!Tq(u)}function sk(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:return Al(t.text);case 167:const u=t.expression;return Pm(u)?Al(u.text):Tq(u)?u.operator===41?Uo(u.operator)+u.operand.text:u.operand.text:void 0;case 295:return k7(t);default:return H.assertNever(t)}}function Xg(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function J4(t){return J_(t)?fu(t):gg(t)?zP(t):t.text}function oP(t){return J_(t)?t.escapedText:gg(t)?k7(t):Al(t.text)}function GZe(t){return`__@${Zo(t)}@${t.escapedName}`}function zj(t,u){return`__#${Zo(t)}@${u}`}function Ij(t){return Pa(t.escapedName,"__@")}function mye(t){return Pa(t.escapedName,"__#")}function JZe(t){return t.kind===80&&t.escapedText==="Symbol"}function pye(t){return at(t)?fu(t)==="__proto__":us(t)&&t.text==="__proto__"}function sP(t,u){switch(t=Dc(t),t.kind){case 231:if(t1e(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof u=="function"?u(t):!0}function J0e(t){switch(t.kind){case 303:return!pye(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return at(t.name)&&!!t.initializer;case 169:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 172:return!!t.initializer;case 226:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return at(t.left)}break;case 277:return!0}return!1}function If(t,u){if(!J0e(t))return!1;switch(t.kind){case 303:return sP(t.initializer,u);case 304:return sP(t.objectAssignmentInitializer,u);case 260:case 169:case 208:case 172:return sP(t.initializer,u);case 226:return sP(t.right,u);case 277:return sP(t.expression,u)}}function $0e(t){return t.escapedText==="push"||t.escapedText==="unshift"}function w2(t){return XE(t).kind===169}function XE(t){for(;t.kind===208;)t=t.parent.parent;return t}function U0e(t){const u=t.kind;return u===176||u===218||u===262||u===219||u===174||u===177||u===178||u===267||u===312}function sl(t){return pg(t.pos)||pg(t.end)}function $Ze(t){return Ua(t,la)||t}function q0e(t){const u=Y0e(t),s=t.kind===214&&t.arguments!==void 0;return Z0e(t.kind,u,s)}function Z0e(t,u,s){switch(t){case 214:return s?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(u){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 lP(t){const u=Y0e(t),s=t.kind===214&&t.arguments!==void 0;return Rj(t.kind,u,s)}function Y0e(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function Rj(t,u,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(u){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 Oj(u)}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 s?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 Oj(t){switch(t){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 uB(t){return ti(t,u=>{switch(u.kind){case 294:return!!u.expression;case 12:return!u.containsOnlyTriviaWhiteSpaces;default:return!0}})}function rB(){let t=[];const u=[],s=new Map;let d=!1;return{add:p,lookup:f,getGlobalDiagnostics:E,getDiagnostics:v};function f(b){let B;if(b.file?B=s.get(b.file.fileName):B=t,!B)return;const k=Kl(B,b,il,Zq);if(k>=0)return B[k]}function p(b){let B;b.file?(B=s.get(b.file.fileName),B||(B=[],s.set(b.file.fileName,B),Tt(u,b.file.fileName,dh))):(d&&(d=!1,t=t.slice()),B=t),Tt(B,b,Zq)}function E(){return d=!0,t}function v(b){if(b)return s.get(b)||[];const B=Tr(u,k=>s.get(k));return t.length&&B.unshift(...t),B}}function RTt(t){return t.replace(vYe,"\\${")}function gye(t){return!!((t.templateFlags||0)&2048)}function Q0e(t){return t&&!!(T7(t)?gye(t):gye(t.head)||Oe(t.templateSpans,u=>gye(u.literal)))}function UZe(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function OTt(t,u,s){if(t.charCodeAt(0)===0){const d=s.charCodeAt(u+t.length);return d>=48&&d<=57?"\\x00":"\\0"}return kYe.get(t)||UZe(t.charCodeAt(0))}function Av(t,u){const s=u===96?yYe:u===39?bYe:CYe;return t.replace(s,OTt)}function jj(t,u){return t=Av(t,u),Fke.test(t)?t.replace(Fke,s=>UZe(s.charCodeAt(0))):t}function jTt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function VTt(t){return t.charCodeAt(0)===0?"�":SYe.get(t)||jTt(t.charCodeAt(0))}function X0e(t,u){const s=u===39?AYe:FYe;return t.replace(s,VTt)}function $4(t){const u=t.length;return u>=2&&t.charCodeAt(0)===t.charCodeAt(u-1)&&HTt(t.charCodeAt(0))?t.substring(1,u-1):t}function HTt(t){return t===39||t===34||t===96}function aB(t){const u=t.charCodeAt(0);return u>=97&&u<=122||t.includes("-")}function Nq(t){const u=IP[1];for(let s=IP.length;s<=t;s++)IP.push(IP[s-1]+u);return IP[t]}function oB(){return IP[1].length}function Vj(t){var u,s,d,f,p,E=!1;function v(K){const Y=n7(K);Y.length>1?(f=f+Y.length-1,p=u.length-K.length+Cr(Y),d=p-u.length===0):d=!1}function b(K){K&&K.length&&(d&&(K=Nq(s)+K,d=!1),u+=K,v(K))}function B(K){K&&(E=!1),b(K)}function k(K){K&&(E=!0),b(K)}function T(){u="",s=0,d=!0,f=0,p=0,E=!1}function M(K){K!==void 0&&(u+=K,v(K),E=!1)}function z(K){K&&K.length&&B(K)}function j(K){(!d||K)&&(u+=t,f++,p=u.length,d=!0,E=!1)}function J(){return d?u.length:u.length+t.length}return T(),{write:B,rawWrite:M,writeLiteral:z,writeLine:j,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>u.length,getLine:()=>f,getColumn:()=>d?s*oB():u.length-p,getText:()=>u,isAtStartOfLine:()=>d,hasTrailingComment:()=>E,hasTrailingWhitespace:()=>!!u.length&&U3(u.charCodeAt(u.length-1)),clear:T,writeKeyword:B,writeOperator:B,writeParameter:B,writeProperty:B,writePunctuation:B,writeSpace:B,writeStringLiteral:B,writeSymbol:(K,Y)=>B(K),writeTrailingSemicolon:B,writeComment:k,getTextPosWithWriteLine:J}}function ele(t){let u=!1;function s(){u&&(t.writeTrailingSemicolon(";"),u=!1)}return{...t,writeTrailingSemicolon(){u=!0},writeLiteral(d){s(),t.writeLiteral(d)},writeStringLiteral(d){s(),t.writeStringLiteral(d)},writeSymbol(d,f){s(),t.writeSymbol(d,f)},writePunctuation(d){s(),t.writePunctuation(d)},writeKeyword(d){s(),t.writeKeyword(d)},writeOperator(d){s(),t.writeOperator(d)},writeParameter(d){s(),t.writeParameter(d)},writeSpace(d){s(),t.writeSpace(d)},writeProperty(d){s(),t.writeProperty(d)},writeComment(d){s(),t.writeComment(d)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function Hj(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function n5(t){return L1(Hj(t))}function Pq(t,u,s){return u.moduleName||tle(t,u.fileName,s&&s.fileName)}function qZe(t,u){return t.getCanonicalFileName($a(u,t.getCurrentDirectory()))}function Eye(t,u,s){const d=u.getExternalModuleFileFromDeclaration(s);if(!d||d.isDeclarationFile)return;const f=Y8(s);if(!(f&&t0(f)&&!om(f.text)&&!qZe(t,d.path).includes(qZe(t,zd(t.getCommonSourceDirectory())))))return Pq(t,d)}function tle(t,u,s){const d=b=>t.getCanonicalFileName(b),f=J0(s?lr(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),d),p=$a(u,t.getCurrentDirectory()),E=i7(f,p,f,d,!1),v=_h(E);return s?h2(v):v}function _ye(t,u,s){const d=u.getCompilerOptions();let f;return d.outDir?f=_h(Iq(t,u,d.outDir)):f=_h(t),f+s}function Dye(t,u){return Mq(t,u.getCompilerOptions(),u.getCurrentDirectory(),u.getCommonSourceDirectory(),s=>u.getCanonicalFileName(s))}function Mq(t,u,s,d,f){const p=u.declarationDir||u.outDir,E=p?Rq(t,p,s,d,f):t,v=Kj(E);return _h(E)+v}function Kj(t){return jc(t,[".mjs",".mts"])?".d.mts":jc(t,[".cjs",".cts"])?".d.cts":jc(t,[".json"])?".d.json.ts":".d.ts"}function xye(t){return jc(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:jc(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:jc(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function y0(t){return t.outFile||t.out}function zq(t,u){var s;if(t.paths)return t.baseUrl??H.checkDefined(t.pathsBasePath||((s=u.getCurrentDirectory)==null?void 0:s.call(u)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ile(t,u,s){const d=t.getCompilerOptions();if(y0(d)){const f=m1(d),p=d.emitDeclarationOnly||f===2||f===4;return ti(t.getSourceFiles(),E=>(p||!wc(E))&&p7(E,t,s))}else{const f=u===void 0?t.getSourceFiles():[u];return ti(f,p=>p7(p,t,s))}}function p7(t,u,s){const d=u.getCompilerOptions();if(d.noEmitForJsFiles&&gh(t)||t.isDeclarationFile||u.isSourceFileFromExternalLibrary(t))return!1;if(s)return!0;if(u.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!W4(t))return!0;if(u.getResolvedProjectReferenceToRedirect(t.fileName))return!1;if(y0(d))return!0;if(!d.outDir)return!1;if(d.rootDir||d.composite&&d.configFilePath){const f=$a(yM(d,()=>[],u.getCurrentDirectory(),u.getCanonicalFileName),u.getCurrentDirectory()),p=Rq(t.fileName,d.outDir,u.getCurrentDirectory(),f,u.getCanonicalFileName);if(pv(t.fileName,p,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0)return!1}return!0}function Iq(t,u,s){return Rq(t,s,u.getCurrentDirectory(),u.getCommonSourceDirectory(),d=>u.getCanonicalFileName(d))}function Rq(t,u,s,d,f){let p=$a(t,s);return p=f(p).indexOf(f(d))===0?p.substring(d.length):p,cr(u,p)}function cP(t,u,s,d,f,p,E){t.writeFile(s,d,f,v=>{u.add(cc(F.Could_not_write_file_0_Colon_1,s,v))},p,E)}function ZZe(t,u,s){if(t.length>WE(t)&&!s(t)){const d=lr(t);ZZe(d,u,s),u(t)}}function nle(t,u,s,d,f,p){try{d(t,u,s)}catch{ZZe(lr($o(t)),f,p),d(t,u,s)}}function dP(t,u){const s=$3(t);return TN(s,u)}function lk(t,u){return TN(t,u)}function X_(t){return Le(t.members,u=>hc(u)&&H4(u.body))}function hP(t){if(t&&t.parameters.length>0){const u=t.parameters.length===2&&L2(t.parameters[0]);return t.parameters[u?1:0]}}function vye(t){const u=hP(t);return u&&u.type}function T2(t){if(t.parameters.length&&!Ov(t)){const u=t.parameters[0];if(L2(u))return u}}function L2(t){return N2(t.name)}function N2(t){return!!t&&t.kind===80&&ule(t)}function ck(t){return!!Tn(t,u=>u.kind===186?!0:u.kind===80||u.kind===166?!1:"quit")}function g7(t){if(!N2(t))return!1;for(;vf(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function ule(t){return t.escapedText==="this"}function dk(t,u){let s,d,f,p;return Ix(u)?(s=u,u.kind===177?f=u:u.kind===178?p=u:H.fail("Accessor has wrong kind")):L(t,E=>{if(wx(E)&&No(E)===No(u)){const v=sk(E.name),b=sk(u.name);v===b&&(s?d||(d=E):s=E,E.kind===177&&!f&&(f=E),E.kind===178&&!p&&(p=E))}}),{firstAccessor:s,secondAccessor:d,getAccessor:f,setAccessor:p}}function f1(t){if(!Qn(t)&&ed(t))return;const u=t.type;return u||!Qn(t)?u:WO(t)?t.typeExpression&&t.typeExpression.type:vv(t)}function Cye(t){return t.type}function U4(t){return Ov(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Qn(t)?VO(t):void 0)}function Oq(t){return ju(Cv(t),u=>KTt(u)?u.typeParameters:void 0)}function KTt(t){return _g(t)&&!(t.parent.kind===327&&(t.parent.tags.some(G4)||t.parent.tags.some(NB)))}function bye(t){const u=hP(t);return u&&f1(u)}function yye(t,u,s,d){kye(t,u,s.pos,d)}function kye(t,u,s,d){d&&d.length&&s!==d[0].pos&&lk(t,s)!==lk(t,d[0].pos)&&u.writeLine()}function Fye(t,u,s,d){s!==d&&lk(t,s)!==lk(t,d)&&u.writeLine()}function Aye(t,u,s,d,f,p,E,v){if(d&&d.length>0){f&&s.writeSpace(" ");let b=!1;for(const B of d)b&&(s.writeSpace(" "),b=!1),v(t,u,s,B.pos,B.end,E),B.hasTrailingNewLine?s.writeLine():b=!0;b&&p&&s.writeSpace(" ")}}function Sye(t,u,s,d,f,p,E){let v,b;if(E?f.pos===0&&(v=ti(W_(t,f.pos),B)):v=W_(t,f.pos),v){const k=[];let T;for(const M of v){if(T){const z=lk(u,T.end);if(lk(u,M.pos)>=z+2)break}k.push(M),T=M}if(k.length){const M=lk(u,Cr(k).end);lk(u,gs(t,f.pos))>=M+2&&(yye(u,s,f,v),Aye(t,u,s,k,!1,!0,p,d),b={nodePos:f.pos,detachedCommentEndPos:Cr(k).end})}}return b;function B(k){return XU(t,k.pos)}}function sB(t,u,s,d,f,p){if(t.charCodeAt(d+1)===42){const E=k8(u,d),v=u.length;let b;for(let B=d,k=E.line;B0){let j=z%oB();const J=Nq((z-j)/oB());for(s.rawWrite(J);j;)s.rawWrite(" "),j--}else s.rawWrite("")}WTt(t,f,s,p,B,T),B=T}}else s.writeComment(t.substring(d,f))}function WTt(t,u,s,d,f,p){const E=Math.min(u,p-1),v=t.substring(f,E).trim();v?(s.writeComment(v),E!==u&&s.writeLine()):s.rawWrite(d)}function YZe(t,u,s){let d=0;for(;u=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=ale(t)|536870912),s||u&&Qn(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=QZe(t)|268435456),XZe(t.modifierFlagsCache)):GTt(t.modifierFlagsCache))}function Eh(t){return Tye(t,!0)}function Lye(t){return Tye(t,!0,!0)}function Rx(t){return Tye(t,!1)}function QZe(t){let u=0;return t.parent&&!io(t)&&(Qn(t)&&(G2e(t)&&(u|=8388608),J2e(t)&&(u|=16777216),$2e(t)&&(u|=33554432),U2e(t)&&(u|=67108864),q2e(t)&&(u|=134217728)),Z2e(t)&&(u|=65536)),u}function GTt(t){return t&65535}function XZe(t){return t&131071|(t&260046848)>>>23}function JTt(t){return XZe(QZe(t))}function Nye(t){return ale(t)|JTt(t)}function ale(t){let u=Hp(t)?tE(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(u|=32),u}function tE(t){let u=0;if(t)for(const s of t)u|=_7(s.kind);return u}function _7(t){switch(t){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 eYe(t){return t===57||t===56}function Pye(t){return eYe(t)||t===54}function mP(t){return t===76||t===77||t===78}function ole(t){return Xn(t)&&mP(t.operatorToken.kind)}function Wj(t){return eYe(t)||t===61}function Gj(t){return Xn(t)&&Wj(t.operatorToken.kind)}function u5(t){return t>=64&&t<=79}function sle(t){const u=lle(t);return u&&!u.isImplements?u.class:void 0}function lle(t){if(c5(t)){if(mm(t.parent)&&mr(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(LB(t.parent)){const u=ok(t.parent);if(u&&mr(u))return{class:u,isImplements:!1}}}}function ld(t,u){return Xn(t)&&(u?t.operatorToken.kind===64:u5(t.operatorToken.kind))&&Df(t.left)}function tYe(t){return ld(t.parent)&&t.parent.left===t}function r5(t){if(ld(t,!0)){const u=t.left.kind;return u===210||u===209}return!1}function Jj(t){return sle(t)!==void 0}function ec(t){return t.kind===80||$j(t)}function hm(t){switch(t.kind){case 80:return t;case 166:do t=t.left;while(t.kind!==80);return t;case 211:do t=t.expression;while(t.kind!==80);return t}}function pP(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&pP(t.expression)||t.kind===217&&pP(t.expression)}function $j(t){return Iu(t)&&at(t.name)&&ec(t.expression)}function Uj(t){if(Iu(t)){const u=Uj(t.expression);if(u!==void 0)return u+"."+zf(t.name)}else if(U0(t)){const u=Uj(t.expression);if(u!==void 0&&Sc(t.argumentExpression))return u+"."+sk(t.argumentExpression)}else{if(at(t))return Qr(t.escapedText);if(gg(t))return zP(t)}}function Ox(t){return A2(t)&&Q3(t)==="prototype"}function gP(t){return t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t||t.parent.kind===236&&t.parent.name===t}function cle(t){return!!t.parent&&(Iu(t.parent)&&t.parent.name===t||U0(t.parent)&&t.parent.argumentExpression===t)}function Mye(t){return vf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t||Rv(t.parent)&&t.parent.right===t}function Hq(t){return Xn(t)&&t.operatorToken.kind===104}function zye(t){return Hq(t.parent)&&t===t.parent.right}function dle(t){return t.kind===210&&t.properties.length===0}function Iye(t){return t.kind===209&&t.elements.length===0}function lB(t){if(!(!$Tt(t)||!t.declarations)){for(const u of t.declarations)if(u.localSymbol)return u.localSymbol}}function $Tt(t){return t&&S(t.declarations)>0&&Yu(t.declarations[0],2048)}function Kq(t){return Le(NYe,u=>Ml(t,u))}function UTt(t){const u=[],s=t.length;for(let d=0;d>6|192),u.push(f&63|128)):f<65536?(u.push(f>>12|224),u.push(f>>6&63|128),u.push(f&63|128)):f<131072?(u.push(f>>18|240),u.push(f>>12&63|128),u.push(f>>6&63|128),u.push(f&63|128)):H.assert(!1,"Unexpected code point")}return u}function Rye(t){let u="";const s=UTt(t);let d=0;const f=s.length;let p,E,v,b;for(;d>2,E=(s[d]&3)<<4|s[d+1]>>4,v=(s[d+1]&15)<<2|s[d+2]>>6,b=s[d+2]&63,d+1>=f?v=b=64:d+2>=f&&(b=64),u+=pk.charAt(p)+pk.charAt(E)+pk.charAt(v)+pk.charAt(b),d+=3;return u}function qTt(t){let u="",s=0;const d=t.length;for(;s>4&3,k=(E&15)<<4|v>>2&15,T=(v&3)<<6|b&63;k===0&&v!==0?d.push(B):T===0&&b!==0?d.push(B,k):d.push(B,k,T),f+=4}return qTt(d)}function hle(t,u){const s=Ja(u)?u:u.readFile(t);if(!s)return;const d=tde(t,s);return d.error?void 0:d.config}function EP(t,u){return hle(t,u)||{}}function hg(t,u){return!u.directoryExists||u.directoryExists(t)}function a5(t){switch(t.newLine){case 0:return BYe;case 1:case void 0:return wYe}}function s4(t,u=t){return H.assert(u>=t||u===-1),{pos:t,end:u}}function Wq(t,u){return s4(t.pos,u)}function Sv(t,u){return s4(u,t.end)}function o5(t){const u=Hp(t)?lt(t.modifiers,g1):void 0;return u&&!pg(u.end)?Sv(t,u.end):t}function iE(t){if(ko(t)||dc(t))return Sv(t,t.name.pos);const u=Hp(t)?qu(t.modifiers):void 0;return u&&!pg(u.end)?Sv(t,u.end):o5(t)}function iYe(t){return t.pos===t.end}function fle(t,u){return s4(t,t+Uo(u).length)}function hk(t,u){return Hye(t,t,u)}function Gq(t,u,s){return q4(_P(t,s,!1),_P(u,s,!1),s)}function Vye(t,u,s){return q4(t.end,u.end,s)}function Hye(t,u,s){return q4(_P(t,s,!1),u.end,s)}function qj(t,u,s){return q4(t.end,_P(u,s,!1),s)}function mle(t,u,s,d){const f=_P(u,s,d);return LN(s,t.end,f)}function nYe(t,u,s){return LN(s,t.end,u.end)}function Kye(t,u){return!q4(t.pos,t.end,u)}function q4(t,u,s){return LN(s,t,u)===0}function _P(t,u,s){return pg(t.pos)?-1:gs(u.text,t.pos,!1,s)}function Wye(t,u,s,d){const f=gs(s.text,t,!1,d),p=ZTt(f,u,s);return LN(s,p??u,f)}function Gye(t,u,s,d){const f=gs(s.text,t,!1,d);return LN(s,t,Math.min(u,f))}function ZTt(t,u=0,s){for(;t-- >u;)if(!U3(s.text.charCodeAt(t)))return t}function ple(t){const u=Ua(t);if(u)switch(u.parent.kind){case 266:case 267:return u===u.parent.name}return!1}function DP(t){return ti(t.declarations,Zj)}function Zj(t){return ua(t)&&t.initializer!==void 0}function uYe(t){return t.watch&&gu(t,"watch")}function fg(t){t.close()}function Gl(t){return t.flags&33554432?t.links.checkFlags:0}function l4(t,u=!1){if(t.valueDeclaration){const s=u&&t.declarations&&Le(t.declarations,jf)||t.flags&32768&&Le(t.declarations,zm)||t.valueDeclaration,d=m2(s);return t.parent&&t.parent.flags&32?d:d&-8}if(Gl(t)&6){const s=t.links.checkFlags,d=s&1024?2:s&256?1:4,f=s&2048?256:0;return d|f}return t.flags&4194304?257:0}function X1(t,u){return t.flags&2097152?u.getAliasedSymbol(t):t}function xP(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Jq(t){return vP(t)===1}function D7(t){return vP(t)!==0}function vP(t){const{parent:u}=t;switch(u==null?void 0:u.kind){case 217:return vP(u);case 225:case 224:const{operator:s}=u;return s===46||s===47?2:0;case 226:const{left:d,operatorToken:f}=u;return d===t&&u5(f.kind)?f.kind===64?1:2:0;case 211:return u.name!==t?0:vP(u);case 303:{const p=vP(u.parent);return t===u.name?YTt(p):p}case 304:return t===u.objectAssignmentInitializer?0:vP(u.parent);case 209:return vP(u);default:return 0}}function YTt(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return H.assertNever(t)}}function gle(t,u){if(!t||!u||Object.keys(t).length!==Object.keys(u).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!gle(t[s],u[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==u[s])return!1;return!0}function rf(t,u){t.forEach(u),t.clear()}function eD(t,u,s){const{onDeleteValue:d,onExistingValue:f}=s;t.forEach((p,E)=>{const v=u.get(E);v===void 0?(t.delete(E),d(p,E)):f&&f(p,v,E)})}function cB(t,u,s){eD(t,u,s);const{createNewValue:d}=s;u.forEach((f,p)=>{t.has(p)||t.set(p,d(p,f))})}function Jye(t){if(t.flags&32){const u=tD(t);return!!u&&Yu(u,64)}return!1}function tD(t){var u;return(u=t.declarations)==null?void 0:u.find(mr)}function Gu(t){return t.flags&3899393?t.objectFlags:0}function rYe(t,u){return!!Ug(t,s=>u(s)?!0:void 0)}function $q(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&wV(t.declarations[0])}function $ye({moduleSpecifier:t}){return us(t)?t.text:Hc(t)}function Ele(t){let u;return ao(t,s=>{H4(s)&&(u=s)},s=>{for(let d=s.length-1;d>=0;d--)if(H4(s[d])){u=s[d];break}}),u}function Ip(t,u,s=!0){return t.has(u)?!1:(t.set(u,s),!0)}function x7(t){return mr(t)||xh(t)||fm(t)}function _le(t){return t>=182&&t<=205||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===233||t===319||t===320||t===321||t===322||t===323||t===324||t===325}function I0(t){return t.kind===211||t.kind===212}function Uye(t){return t.kind===211?t.name:(H.assert(t.kind===212),t.argumentExpression)}function qye(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function Uq(t){return t.kind===275||t.kind===279}function CP(t){for(;I0(t);)t=t.expression;return t}function Zye(t,u){if(I0(t.parent)&&cle(t))return s(t.parent);function s(d){if(d.kind===211){const f=u(d.name);if(f!==void 0)return f}else if(d.kind===212)if(at(d.argumentExpression)||t0(d.argumentExpression)){const f=u(d.argumentExpression);if(f!==void 0)return f}else return;if(I0(d.expression))return s(d.expression);if(at(d.expression))return u(d.expression)}}function dB(t,u){for(;;){switch(t.kind){case 225:t=t.operand;continue;case 226:t=t.left;continue;case 227:t=t.condition;continue;case 215:t=t.tag;continue;case 213:if(u)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function QTt(t,u){this.flags=t,this.escapedName=u,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.isAssigned=void 0,this.links=void 0}function XTt(t,u){this.flags=u,(H.isDebugging||Gn)&&(this.checker=t)}function eLt(t,u){this.flags=u,H.isDebugging&&(this.checker=t)}function Yye(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function tLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function iLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function nLt(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s||(d=>d)}function Qye(t){Ake.push(t),t(Qd)}function Xye(t){Object.assign(Qd,t),L(Ake,u=>u(Qd))}function e3(t,u){return t.replace(/{(\d+)}/g,(s,d)=>""+H.checkDefined(u[+d]))}function eke(t){vZ=t}function tke(t){!vZ&&t&&(vZ=t())}function to(t){return vZ&&vZ[t.key]||t.message}function hB(t,u,s,d,f,...p){s+d>u.length&&(d=u.length-s),Obe(u,s,d);let E=to(f);return Oe(p)&&(E=e3(E,p)),{file:void 0,start:s,length:d,messageText:E,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:t}}function uLt(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function aYe(t,u){const s=u.fileName||"",d=u.text.length;H.assertEqual(t.fileName,s),H.assertLessThanOrEqual(t.start,d),H.assertLessThanOrEqual(t.start+t.length,d);const f={file:u,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){f.relatedInformation=[];for(const p of t.relatedInformation)uLt(p)&&p.fileName===s?(H.assertLessThanOrEqual(p.start,d),H.assertLessThanOrEqual(p.start+p.length,d),f.relatedInformation.push(aYe(p,u))):f.relatedInformation.push(p)}return f}function v7(t,u){const s=[];for(const d of t)s.push(aYe(d,u));return s}function Rd(t,u,s,d,...f){Obe(t.text,u,s);let p=to(d);return Oe(f)&&(p=e3(p,f)),{file:t,start:u,length:s,messageText:p,category:d.category,code:d.code,reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated}}function Dle(t,...u){let s=to(t);return Oe(u)&&(s=e3(s,u)),s}function cc(t,...u){let s=to(t);return Oe(u)&&(s=e3(s,u)),{file:void 0,start:void 0,length:void 0,messageText:s,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function qq(t,u){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:u}}function ro(t,u,...s){let d=to(u);return Oe(s)&&(d=e3(d,s)),{messageText:d,category:u.category,code:u.code,next:t===void 0||Array.isArray(t)?t:[t]}}function ike(t,u){let s=t;for(;s.next;)s=s.next[0];s.next=[u]}function oYe(t){return t.file?t.file.path:void 0}function bP(t,u){return Zq(t,u)||rLt(t,u)||0}function Zq(t,u){return dh(oYe(t),oYe(u))||nl(t.start,u.start)||nl(t.length,u.length)||nl(t.code,u.code)||sYe(t.messageText,u.messageText)||0}function rLt(t,u){return!t.relatedInformation&&!u.relatedInformation?0:t.relatedInformation&&u.relatedInformation?nl(t.relatedInformation.length,u.relatedInformation.length)||L(t.relatedInformation,(s,d)=>{const f=u.relatedInformation[d];return bP(s,f)})||0:t.relatedInformation?-1:1}function sYe(t,u){if(typeof t=="string"&&typeof u=="string")return dh(t,u);if(typeof t=="string")return-1;if(typeof u=="string")return 1;let s=dh(t.messageText,u.messageText);if(s)return s;if(!t.next&&!u.next)return 0;if(!t.next)return-1;if(!u.next)return 1;const d=Math.min(t.next.length,u.next.length);for(let f=0;fu.next.length?1:0}function Yj(t){return t===4||t===2||t===1||t===6?1:0}function lYe(t){if(t.transformFlags&2)return zh(t)||K2(t)?t:ao(t,lYe)}function aLt(t){return t.isDeclarationFile?void 0:lYe(t)}function oLt(t){return(t.impliedNodeFormat===99||jc(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function Qj(t){switch(nke(t)){case 3:return f=>{f.externalModuleIndicator=HV(f)||!f.isDeclarationFile||void 0};case 1:return f=>{f.externalModuleIndicator=HV(f)};case 2:const u=[HV];(t.jsx===4||t.jsx===5)&&u.push(aLt),u.push(oLt);const s=dg(...u);return f=>void(f.externalModuleIndicator=s(f))}}function Os(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function m1(t){return typeof t.module=="number"?t.module:Os(t)>=2?5:1}function Yq(t){return t>=5&&t<=99}function p1(t){let u=t.moduleResolution;if(u===void 0)switch(m1(t)){case 1:u=2;break;case 100:u=3;break;case 199:u=99;break;default:u=1;break}return u}function nke(t){return t.moduleDetection||(m1(t)===100||m1(t)===199?3:2)}function Qq(t){switch(m1(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function mg(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function xle(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function uke(t){return t.allowUnreachableCode===!1}function rke(t){return t.allowUnusedLabels===!1}function Xq(t){return!!(c4(t)&&t.declarationMap)}function e_(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(m1(t)){case 100:case 199:return!0}}function C7(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:e_(t)||m1(t)===4||p1(t)===100}function b7(t){return t>=3&&t<=99||t===100}function eZ(t){return!!t.noDtsResolution||p1(t)!==100}function vle(t){const u=p1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function cYe(t){const u=p1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function M2(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:p1(t)===100}function c4(t){return!!(t.declaration||t.composite)}function fk(t){return!!(t.preserveConstEnums||mg(t))}function Xj(t){return!!(t.incremental||t.composite)}function Z4(t,u){return t[u]===void 0?!!t.strict:!!t[u]}function Bv(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function eV(t){return t.useDefineForClassFields===void 0?Os(t)>=9:t.useDefineForClassFields}function ake(t){return t.useDefineForClassFields!==!1&&Os(t)>=9}function oke(t,u){return R8(u,t,hde)}function ske(t,u){return R8(u,t,fde)}function lke(t,u){return R8(u,t,mde)}function tZ(t,u){return u.strictFlag?Z4(t,u.name):u.allowJsFlag?Bv(t):t[u.name]}function iZ(t){const u=t.jsx;return u===2||u===4||u===5}function nZ(t,u){const s=u==null?void 0:u.pragmas.get("jsximportsource"),d=Ha(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||d?(d==null?void 0:d.arguments.factory)||t.jsxImportSource||"react":void 0}function uZ(t,u){return t?`${t}/${u.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function Cle(t){let u=!1;for(let s=0;sf,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>d,setSymlinkedFile:(v,b)=>(f||(f=new Map)).set(v,b),setSymlinkedDirectory:(v,b)=>{let B=J0(v,t,u);TP(B)||(B=zd(B),b!==!1&&!(s!=null&&s.has(B))&&(d||(d=wm())).add(b.realPath,v),(s||(s=new Map)).set(B,b))},setSymlinksFromResolutions(v,b,B){H.assert(!p),p=!0,v(k=>E(this,k.resolvedModule)),b(k=>E(this,k.resolvedTypeReferenceDirective)),B.forEach(k=>E(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function E(v,b){if(!b||!b.originalPath||!b.resolvedFileName)return;const{resolvedFileName:B,originalPath:k}=b;v.setSymlinkedFile(J0(k,t,u),B);const[T,M]=sLt(B,k,t,u)||_t;T&&M&&v.setSymlinkedDirectory(M,{real:zd(T),realPath:zd(J0(T,t,u))})}}function sLt(t,u,s,d){const f=yd($a(t,s)),p=yd($a(u,s));let E=!1;for(;f.length>=2&&p.length>=2&&!dYe(f[f.length-2],d)&&!dYe(p[p.length-2],d)&&d(f[f.length-1])===d(p[p.length-1]);)f.pop(),p.pop(),E=!0;return E?[yx(f),yx(p)]:void 0}function dYe(t,u){return t!==void 0&&(u(t)==="node_modules"||Pa(t,"@"))}function lLt(t){return bse(t.charCodeAt(0))?t.slice(1):void 0}function yle(t,u,s){const d=doe(t,u,s);return d===void 0?void 0:lLt(d)}function hYe(t){return t.replace($le,cLt)}function cLt(t){return"\\"+t}function yP(t,u,s){const d=rZ(t,u,s);return!d||!d.length?void 0:`^(${d.map(E=>`(${E})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function rZ(t,u,s){if(!(t===void 0||t.length===0))return ju(t,d=>d&&fYe(d,u,s,Tke[s]))}function kle(t){return!/[.*?]/.test(t)}function Fle(t,u,s){const d=t&&fYe(t,u,s,Tke[s]);return d&&`^(${d})${s==="exclude"?"($|/)":"$"}`}function fYe(t,u,s,{singleAsteriskRegexFragment:d,doubleAsteriskRegexFragment:f,replaceWildcardCharacter:p}){let E="",v=!1;const b=FO(t,u),B=Cr(b);if(s!=="exclude"&&B==="**")return;b[0]=mv(b[0]),kle(B)&&b.push("**","*");let k=0;for(let T of b){if(T==="**")E+=f;else if(s==="directories"&&(E+="(",k++),v&&(E+=rl),s!=="exclude"){let M="";T.charCodeAt(0)===42?(M+="([^./]"+d+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(M+="[^./]",T=T.substr(1)),M+=T.replace($le,p),M!==T&&(E+=qle),E+=M}else E+=T.replace($le,p);v=!0}for(;k>0;)E+=")?",k--;return E}function cke(t,u){return t==="*"?u:t==="?"?"[^/]":"\\"+t}function aZ(t,u,s,d,f){t=$o(t),f=$o(f);const p=cr(f,t);return{includeFilePatterns:Vt(rZ(s,p,"files"),E=>`^${E}$`),includeFilePattern:yP(s,p,"files"),includeDirectoryPattern:yP(s,p,"directories"),excludePattern:yP(u,p,"exclude"),basePaths:dLt(t,s,d)}}function jx(t,u){return new RegExp(t,u?"":"i")}function Ale(t,u,s,d,f,p,E,v,b){t=$o(t),p=$o(p);const B=aZ(t,s,d,f,p),k=B.includeFilePatterns&&B.includeFilePatterns.map(Y=>jx(Y,f)),T=B.includeDirectoryPattern&&jx(B.includeDirectoryPattern,f),M=B.excludePattern&&jx(B.excludePattern,f),z=k?k.map(()=>[]):[[]],j=new Map,J=L1(f);for(const Y of B.basePaths)K(Y,cr(p,Y),E);return Va(z);function K(Y,oe,se){const ge=J(b(oe));if(j.has(ge))return;j.set(ge,!0);const{files:ae,directories:Ce}=v(Y);for(const ne of Ph(ae,dh)){const ve=cr(Y,ne),Se=cr(oe,ne);if(!(u&&!jc(ve,u))&&!(M&&M.test(Se)))if(!k)z[0].push(ve);else{const Ne=Ue(k,pe=>pe.test(Se));Ne!==-1&&z[Ne].push(ve)}}if(!(se!==void 0&&(se--,se===0)))for(const ne of Ph(Ce,dh)){const ve=cr(Y,ne),Se=cr(oe,ne);(!T||T.test(Se))&&(!M||!M.test(Se))&&K(ve,Se,se)}}}function dLt(t,u,s){const d=[t];if(u){const f=[];for(const p of u){const E=Pf(p)?p:$o(cr(t,p));f.push(hLt(E))}f.sort(CN(!s));for(const p of f)ye(d,E=>!GE(E,p,t,!s))&&d.push(p)}return d}function hLt(t){const u=jt(t,TYe);return u<0?t7(t)?mv(lr(t)):t:t.substring(0,t.lastIndexOf(rl,u))}function oZ(t,u){return u||sZ(t)||3}function sZ(t){switch(t.substr(t.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}}function kP(t,u){const s=t&&Bv(t);if(!u||u.length===0)return s?CZ:EB;const d=s?CZ:EB,f=Va(d);return[...d,...qi(u,E=>E.scriptKind===7||s&&fLt(E.scriptKind)&&!f.includes(E.extension)?[E.extension]:void 0)]}function tV(t,u){return!t||!M2(t)?u:u===CZ?PYe:u===EB?LYe:[...u,[".json"]]}function fLt(t){return t===1||t===2}function z2(t){return Oe(_B,u=>Ml(t,u))}function mk(t){return Oe(Zle,u=>Ml(t,u))}function dke({imports:t},u=dg(z2,mk)){return G(t,({text:s})=>om(s)&&!jc(s,fV)?u(s):void 0)||!1}function Sle(t,u,s,d){if(t==="js"||u===99)return $B(s)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!$B(s))return dke(d)?2:0;return f();function f(){let p=!1;const E=d.imports.length?d.imports.map(v=>v.text):gh(d)?mLt(d).map(v=>v.arguments[0].text):_t;for(const v of E)if(om(v)){if(jc(v,fV))continue;if(mk(v))return 3;z2(v)&&(p=!0)}return p?2:0}}function mLt(t){let u=0,s;for(const d of t.statements){if(u>3)break;L0e(d)?s=Hi(s,d.declarationList.declarations.map(f=>f.initializer)):Od(d)&&xf(d.expression,!0)?s=xi(s,d.expression):u++}return s||_t}function hke(t,u,s){if(!t)return!1;const d=kP(u,s);for(const f of Va(tV(u,d)))if(Ml(t,f))return!0;return!1}function mYe(t){const u=t.match(/\//g);return u?u.length:0}function iV(t,u){return nl(mYe(t),mYe(u))}function _h(t){for(const u of Xle){const s=fke(t,u);if(s!==void 0)return s}return t}function fke(t,u){return Ml(t,u)?nV(t,u):void 0}function nV(t,u){return t.substring(0,t.length-u.length)}function wv(t,u){return AO(t,u,Xle,!1)}function fB(t){const u=t.indexOf("*");return u===-1?t:t.indexOf("*",u+1)!==-1?void 0:{prefix:t.substr(0,u),suffix:t.substr(u+1)}}function lZ(t){return qi(Ns(t),u=>fB(u))}function pg(t){return!(t>=0)}function cZ(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Pa(t,".d.")&&sc(t,".ts")}function FP(t){return cZ(t)||t===".json"}function y7(t){const u=t3(t);return u!==void 0?u:H.fail(`File ${t} has unknown extension.`)}function pYe(t){return t3(t)!==void 0}function t3(t){return Le(Xle,u=>Ml(t,u))}function uV(t,u){return t.checkJsDirective?t.checkJsDirective.enabled:u.checkJs}function Ble(t,u){const s=[];for(const d of t){if(d===u)return u;Ja(d)||s.push(d)}return coe(s,d=>d,u)}function wle(t,u){const s=t.indexOf(u);return H.assert(s!==-1),t.slice(s)}function Es(t,...u){return u.length&&(t.relatedInformation||(t.relatedInformation=[]),H.assert(t.relatedInformation!==_t,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...u)),t}function mke(t,u){H.assert(t.length!==0);let s=u(t[0]),d=s;for(let f=1;fd&&(d=p)}return{min:s,max:d}}function Tle(t){return{pos:ek(t),end:t.end}}function Lle(t,u){const s=u.pos-1,d=Math.min(t.text.length,gs(t.text,u.end)+1);return{pos:s,end:d}}function AP(t,u,s){return u.skipLibCheck&&t.isDeclarationFile||u.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function dZ(t,u){return t===u||typeof t=="object"&&t!==null&&typeof u=="object"&&u!==null&&ZA(t,u,dZ)}function SP(t){let u;switch(t.charCodeAt(1)){case 98:case 66:u=1;break;case 111:case 79:u=3;break;case 120:case 88:u=4;break;default:const B=t.length-1;let k=0;for(;t.charCodeAt(k)===48;)k++;return t.slice(k,B)||"0"}const s=2,d=t.length-1,f=(d-s)*u,p=new Uint16Array((f>>>4)+(f&15?1:0));for(let B=d-1,k=0;B>=s;B--,k+=u){const T=k>>>4,M=t.charCodeAt(B),j=(M<=57?M-48:10+M-(M<=70?65:97))<<(k&15);p[T]|=j;const J=j>>>16;J&&(p[T+1]|=J)}let E="",v=p.length-1,b=!0;for(;b;){let B=0;b=!1;for(let k=v;k>=0;k--){const T=B<<16|p[k],M=T/10|0;p[k]=M,B=T-M*10,M&&!b&&(v=k,b=!0)}E=B+E}return E}function I2({negative:t,base10Value:u}){return(t&&u!=="0"?"-":"")+u}function pke(t){if(hZ(t,!1))return Nle(t)}function Nle(t){const u=t.startsWith("-"),s=SP(`${u?t.slice(1):t}n`);return{negative:u,base10Value:s}}function hZ(t,u){if(t==="")return!1;const s=YD(99,!1);let d=!0;s.setOnError(()=>d=!1),s.setText(t+"n");let f=s.scan();const p=f===41;p&&(f=s.scan());const E=s.getTokenFlags();return d&&f===10&&s.getTokenEnd()===t.length+1&&!(E&512)&&(!u||t===I2({negative:p,base10Value:SP(s.getTokenValue())}))}function Tv(t){return!!(t.flags&33554432)||_q(t)||ELt(t)||gLt(t)||!(Z_(t)||pLt(t))}function pLt(t){return at(t)&&pm(t.parent)&&t.parent.name===t}function gLt(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(Yu(t.parent,64))return!0;const u=t.parent.parent.kind;return u===264||u===187}function ELt(t){if(t.kind!==80)return!1;const u=Tn(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(u==null?void 0:u.token)===119||(u==null?void 0:u.parent.kind)===264}function gke(t){return X4(t)&&at(t.typeName)}function Eke(t,u=Cx){if(t.length<2)return!0;const s=t[0];for(let d=1,f=t.length;dt.includes(u))}function xke(t){if(!t.parent)return;switch(t.kind){case 168:const{parent:s}=t;return s.kind===195?void 0:s.typeParameters;case 169:return t.parent.parameters;case 204:return t.parent.templateSpans;case 239:return t.parent.templateSpans;case 170:{const{parent:d}=t;return Ak(d)?d.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:u}=t;if(I8(t))return K7(t.parent)?void 0:t.parent.tags;switch(u.kind){case 187:case 264:return Zy(t)?u.members:void 0;case 192:case 193:return u.types;case 189:case 209:case 361:case 275:case 279:return u.elements;case 210:case 292:return u.properties;case 213:case 214:return Xr(t)?u.typeArguments:u.expression===t?void 0:u.arguments;case 284:case 288:return ej(t)?u.children:void 0;case 286:case 285:return Xr(t)?u.typeArguments:void 0;case 241:case 296:case 297:case 268:return u.statements;case 269:return u.clauses;case 263:case 231:return Zd(t)?u.members:void 0;case 266:return J2(t)?u.members:void 0;case 312:return u.statements}}function fZ(t){if(!t.typeParameters){if(Oe(t.parameters,u=>!f1(u)))return!0;if(t.kind!==219){const u=Ki(t.parameters);if(!(u&&L2(u)))return!0}}return!1}function LP(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function vke(t){return t.kind===260&&t.parent.kind===299}function Mle(t){const u=t.valueDeclaration&&XE(t.valueDeclaration);return!!u&&(io(u)||vke(u))}function R2(t){return t.kind===218||t.kind===219}function O2(t){return t.replace(/\$/gm,()=>"\\$")}function i3(t){return(+t).toString()===t}function mZ(t,u,s,d,f){const p=f&&t==="new";return!p&&Lm(t,u)?q.createIdentifier(t):!d&&!p&&i3(t)&&+t>=0?q.createNumericLiteral(+t):q.createStringLiteral(t,!!s)}function NP(t){return!!(t.flags&262144&&t.isThisType)}function pZ(t){let u=0,s=0,d=0,f=0,p;(B=>{B[B.BeforeNodeModules=0]="BeforeNodeModules",B[B.NodeModules=1]="NodeModules",B[B.Scope=2]="Scope",B[B.PackageContent=3]="PackageContent"})(p||(p={}));let E=0,v=0,b=0;for(;v>=0;)switch(E=v,v=t.indexOf("/",E+1),b){case 0:t.indexOf(o_,E)===E&&(u=E,s=v,b=1);break;case 1:case 2:b===1&&t.charAt(E+1)==="@"?b=2:(d=v,b=3);break;case 3:t.indexOf(o_,E)===E?b=1:b=3;break}return f=E,b>1?{topLevelNodeModulesIndex:u,topLevelPackageNameIndex:s,packageRootIndex:d,fileNameIndex:f}:void 0}function gYe(t){var u;return t.kind===348?(u=t.typeExpression)==null?void 0:u.type:t.type}function gB(t){switch(t.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return t.isTypeOnly;case 276:case 281:return t.parent.parent.isTypeOnly;default:return!1}}function rV(t){return Iv(t)||Jl(t)||ed(t)||Wc(t)||xh(t)||gB(t)||_c(t)&&!v2(t)&&!Yg(t)}function aV(t){if(!WO(t))return!1;const{isBracketed:u,typeExpression:s}=t;return u||!!s&&s.type.kind===323}function zle(t,u){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&G_(t.charCodeAt(1),u):G_(s,u)}function Cke(t){var u;return((u=sce(t))==null?void 0:u.kind)===0}function oV(t){return Qn(t)&&(t.type&&t.type.kind===323||B8(t).some(({isBracketed:u,typeExpression:s})=>u||!!s&&s.type.kind===323))}function PP(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||oV(t);case 355:case 348:return aV(t);default:return!1}}function bke(t){const u=t.kind;return(u===211||u===212)&&O7(t.expression)}function Ile(t){return Qn(t)&&Cf(t)&&lm(t)&&!!jse(t)}function Rle(t){return H.checkDefined(gZ(t))}function gZ(t){const u=jse(t);return u&&u.typeExpression&&u.typeExpression.type}function MP(t){return at(t)?t.escapedText:k7(t)}function sV(t){return at(t)?fu(t):zP(t)}function yke(t){const u=t.kind;return u===80||u===295}function k7(t){return`${t.namespace.escapedText}:${fu(t.name)}`}function zP(t){return`${fu(t.namespace)}:${fu(t.name)}`}function Ole(t){return at(t)?fu(t):zP(t)}function Y4(t){return!!(t.flags&8576)}function Q4(t){return t.flags&8192?t.escapedName:t.flags&384?Al(""+t.value):H.fail()}function EZ(t){return!!t&&(Iu(t)||U0(t)||Xn(t))}function kke(t){return t===void 0?!1:!!qB(t.attributes)}var _Z,Hx,lV,DZ,cV,xZ,jle,Vle,EYe,_Ye,Hle,DYe,xYe,Kle,Wle,Gle,Jle,vYe,CYe,bYe,yYe,kYe,Fke,FYe,AYe,SYe,IP,pk,BYe,wYe,Qd,Ake,vZ,$le,TYe,Ule,qle,Ske,Bke,wke,Tke,EB,Zle,LYe,NYe,Yle,_B,CZ,PYe,dV,hV,fV,Qle,Xle,bZ,DLt=o({"src/compiler/utilities.ts"(){Bo(),_Z=[],Hx="tslib",lV=160,DZ=1e6,cV=CTt(),xZ=Mh(()=>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:_t})),AsyncIterator:new Map(Object.entries({es2015:_t})),Atomics:new Map(Object.entries({es2017:_t})),SharedArrayBuffer:new Map(Object.entries({es2017:_t})),AsyncIterable:new Map(Object.entries({es2018:_t})),AsyncIterableIterator:new Map(Object.entries({es2018:_t})),AsyncGenerator:new Map(Object.entries({es2018:_t})),AsyncGeneratorFunction:new Map(Object.entries({es2018:_t})),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"]})),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"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:_t,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:_t})),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:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:_t,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),jle=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(jle||{}),Vle=/^(\/\/\/\s*/,EYe=/^(\/\/\/\s*/,_Ye=/^(\/\/\/\s*/,Hle=/^(\/\/\/\s*/,DYe=/^\/\/\/\s*/,xYe=/^(\/\/\/\s*/,Kle=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(Kle||{}),Wle=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(Wle||{}),Gle=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))(Gle||{}),Jle=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.Coalesce=4]="Coalesce",t[t.LogicalOR=5]="LogicalOR",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(Jle||{}),vYe=/\$\{/g,CYe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,bYe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,yYe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,kYe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Fke=/[^\u0000-\u007F]/g,FYe=/["\u0000-\u001f\u2028\u2029\u0085]/g,AYe=/['\u0000-\u001f\u2028\u2029\u0085]/g,SYe=new Map(Object.entries({'"':""","'":"'"})),IP=[""," "],pk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",BYe=`\r -`,wYe=` -`,Qd={getNodeConstructor:()=>Yye,getTokenConstructor:()=>tLt,getIdentifierConstructor:()=>iLt,getPrivateIdentifierConstructor:()=>Yye,getSourceFileConstructor:()=>Yye,getSymbolConstructor:()=>QTt,getTypeConstructor:()=>XTt,getSignatureConstructor:()=>eLt,getSourceMapSourceConstructor:()=>nLt},Ake=[],$le=/[^\w\s/]/g,TYe=[42,63],Ule=["node_modules","bower_components","jspm_packages"],qle=`(?!(${Ule.join("|")})(/|$))`,Ske={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${qle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>cke(t,Ske.singleAsteriskRegexFragment)},Bke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${qle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>cke(t,Bke.singleAsteriskRegexFragment)},wke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>cke(t,wke.singleAsteriskRegexFragment)},Tke={files:Ske,directories:Bke,exclude:wke},EB=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Zle=Va(EB),LYe=[...EB,[".json"]],NYe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Yle=[[".js",".jsx"],[".mjs"],[".cjs"]],_B=Va(Yle),CZ=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],PYe=[...CZ,[".json"]],dV=[".d.ts",".d.cts",".d.mts"],hV=[".ts",".cts",".mts",".tsx"],fV=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],Qle=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(Qle||{}),Xle=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],bZ={files:_t,directories:_t}}});function Lke(){let t,u,s,d,f;return{createBaseSourceFileNode:p,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:v,createBaseTokenNode:b,createBaseNode:B};function p(k){return new(f||(f=Qd.getSourceFileConstructor()))(k,-1,-1)}function E(k){return new(s||(s=Qd.getIdentifierConstructor()))(k,-1,-1)}function v(k){return new(d||(d=Qd.getPrivateIdentifierConstructor()))(k,-1,-1)}function b(k){return new(u||(u=Qd.getTokenConstructor()))(k,-1,-1)}function B(k){return new(t||(t=Qd.getNodeConstructor()))(k,-1,-1)}}var xLt=o({"src/compiler/factory/baseNodeFactory.ts"(){Bo()}});function Nke(t){let u,s;return{getParenthesizeLeftSideOfBinaryForOperator:d,getParenthesizeRightSideOfBinaryForOperator:f,parenthesizeLeftSideOfBinary:B,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:z,parenthesizeExpressionOfExportDefault:j,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:K,parenthesizeOperandOfPostfixUnary:Y,parenthesizeOperandOfPrefixUnary:oe,parenthesizeExpressionsOfCommaDelimitedList:se,parenthesizeExpressionForDisallowedComma:ge,parenthesizeExpressionOfExpressionStatement:ae,parenthesizeConciseBodyOfArrowFunction:Ce,parenthesizeCheckTypeOfConditionalType:ne,parenthesizeExtendsTypeOfConditionalType:ve,parenthesizeConstituentTypesOfUnionType:Ne,parenthesizeConstituentTypeOfUnionType:Se,parenthesizeConstituentTypesOfIntersectionType:fe,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:xe,parenthesizeOperandOfReadonlyTypeOperator:Be,parenthesizeNonArrayTypeOfPostfixType:Ge,parenthesizeElementTypesOfTupleType:Ae,parenthesizeElementTypeOfTupleType:De,parenthesizeTypeOfOptionalType:Je,parenthesizeTypeArguments:Ve,parenthesizeLeadingTypeArgument:ft};function d(We){u||(u=new Map);let Gt=u.get(We);return Gt||(Gt=Yt=>B(We,Yt),u.set(We,Gt)),Gt}function f(We){s||(s=new Map);let Gt=s.get(We);return Gt||(Gt=Yt=>k(We,void 0,Yt),s.set(We,Gt)),Gt}function p(We,Gt,Yt,Ie){const st=Rj(226,We),St=Z0e(226,We),It=Np(Gt);if(!Yt&&Gt.kind===219&&st>3)return!0;const ei=lP(It);switch(nl(ei,st)){case-1:return!(!Yt&&St===1&&Gt.kind===229);case 1:return!1;case 0:if(Yt)return St===1;if(Xn(It)&&It.operatorToken.kind===We){if(E(We))return!1;if(We===40){const Ut=Ie?v(Ie):0;if(jN(Ut)&&Ut===v(It))return!1}}return q0e(It)===0}}function E(We){return We===42||We===52||We===51||We===53||We===28}function v(We){if(We=Np(We),jN(We.kind))return We.kind;if(We.kind===226&&We.operatorToken.kind===40){if(We.cachedLiteralKind!==void 0)return We.cachedLiteralKind;const Gt=v(We.left),Yt=jN(Gt)&&Gt===v(We.right)?Gt:0;return We.cachedLiteralKind=Yt,Yt}return 0}function b(We,Gt,Yt,Ie){return Np(Gt).kind===217?Gt:p(We,Gt,Yt,Ie)?t.createParenthesizedExpression(Gt):Gt}function B(We,Gt){return b(We,Gt,!0)}function k(We,Gt,Yt){return b(We,Yt,!1,Gt)}function T(We){return eM(We)?t.createParenthesizedExpression(We):We}function M(We){const Gt=Rj(227,58),Yt=Np(We),Ie=lP(Yt);return nl(Ie,Gt)!==1?t.createParenthesizedExpression(We):We}function z(We){const Gt=Np(We);return eM(Gt)?t.createParenthesizedExpression(We):We}function j(We){const Gt=Np(We);let Yt=eM(Gt);if(!Yt)switch(dB(Gt,!1).kind){case 231:case 218:Yt=!0}return Yt?t.createParenthesizedExpression(We):We}function J(We){const Gt=dB(We,!0);switch(Gt.kind){case 213:return t.createParenthesizedExpression(We);case 214:return Gt.arguments?We:t.createParenthesizedExpression(We)}return K(We)}function K(We,Gt){const Yt=Np(We);return Df(Yt)&&(Yt.kind!==214||Yt.arguments)&&(Gt||!Y1(Yt))?We:Pt(t.createParenthesizedExpression(We),We)}function Y(We){return Df(We)?We:Pt(t.createParenthesizedExpression(We),We)}function oe(We){return e0e(We)?We:Pt(t.createParenthesizedExpression(We),We)}function se(We){const Gt=Lu(We,ge);return Pt(t.createNodeArray(Gt,We.hasTrailingComma),We)}function ge(We){const Gt=Np(We),Yt=lP(Gt),Ie=Rj(226,28);return Yt>Ie?We:Pt(t.createParenthesizedExpression(We),We)}function ae(We){const Gt=Np(We);if(Mo(Gt)){const Ie=Gt.expression,st=Np(Ie).kind;if(st===218||st===219){const St=t.updateCallExpression(Gt,Pt(t.createParenthesizedExpression(Ie),Ie),Gt.typeArguments,Gt.arguments);return t.restoreOuterExpressions(We,St,8)}}const Yt=dB(Gt,!1).kind;return Yt===210||Yt===218?Pt(t.createParenthesizedExpression(We),We):We}function Ce(We){return!po(We)&&(eM(We)||dB(We,!1).kind===210)?Pt(t.createParenthesizedExpression(We),We):We}function ne(We){switch(We.kind){case 184:case 185:case 194:return t.createParenthesizedType(We)}return We}function ve(We){switch(We.kind){case 194:return t.createParenthesizedType(We)}return We}function Se(We){switch(We.kind){case 192:case 193:return t.createParenthesizedType(We)}return ne(We)}function Ne(We){return t.createNodeArray(Lu(We,Se))}function pe(We){switch(We.kind){case 192:case 193:return t.createParenthesizedType(We)}return Se(We)}function fe(We){return t.createNodeArray(Lu(We,pe))}function xe(We){switch(We.kind){case 193:return t.createParenthesizedType(We)}return pe(We)}function Be(We){switch(We.kind){case 198:return t.createParenthesizedType(We)}return xe(We)}function Ge(We){switch(We.kind){case 195:case 198:case 186:return t.createParenthesizedType(We)}return xe(We)}function Ae(We){return t.createNodeArray(Lu(We,De))}function De(We){return Ke(We)?t.createParenthesizedType(We):We}function Ke(We){return wB(We)?We.postfix:GP(We)||u3(We)||WP(We)||z7(We)?Ke(We.type):FB(We)?Ke(We.falseType):Pv(We)||kB(We)?Ke(Cr(We.types)):P7(We)?!!We.typeParameter.constraint&&Ke(We.typeParameter.constraint):!1}function Je(We){return Ke(We)?t.createParenthesizedType(We):Ge(We)}function ft(We){return ube(We)&&We.typeParameters?t.createParenthesizedType(We):We}function Ye(We,Gt){return Gt===0?ft(We):We}function Ve(We){if(Oe(We))return t.createNodeArray(Lu(We,Ye))}}var ece,vLt=o({"src/compiler/factory/parenthesizerRules.ts"(){Bo(),ece={getParenthesizeLeftSideOfBinaryForOperator:t=>il,getParenthesizeRightSideOfBinaryForOperator:t=>il,parenthesizeLeftSideOfBinary:(t,u)=>u,parenthesizeRightSideOfBinary:(t,u,s)=>s,parenthesizeExpressionOfComputedPropertyName:il,parenthesizeConditionOfConditionalExpression:il,parenthesizeBranchOfConditionalExpression:il,parenthesizeExpressionOfExportDefault:il,parenthesizeExpressionOfNew:t=>Po(t,Df),parenthesizeLeftSideOfAccess:t=>Po(t,Df),parenthesizeOperandOfPostfixUnary:t=>Po(t,Df),parenthesizeOperandOfPrefixUnary:t=>Po(t,e0e),parenthesizeExpressionsOfCommaDelimitedList:t=>Po(t,g2),parenthesizeExpressionForDisallowedComma:il,parenthesizeExpressionOfExpressionStatement:il,parenthesizeConciseBodyOfArrowFunction:il,parenthesizeCheckTypeOfConditionalType:il,parenthesizeExtendsTypeOfConditionalType:il,parenthesizeConstituentTypesOfUnionType:t=>Po(t,g2),parenthesizeConstituentTypeOfUnionType:il,parenthesizeConstituentTypesOfIntersectionType:t=>Po(t,g2),parenthesizeConstituentTypeOfIntersectionType:il,parenthesizeOperandOfTypeOperator:il,parenthesizeOperandOfReadonlyTypeOperator:il,parenthesizeNonArrayTypeOfPostfixType:il,parenthesizeElementTypesOfTupleType:t=>Po(t,g2),parenthesizeElementTypeOfTupleType:il,parenthesizeTypeOfOptionalType:il,parenthesizeTypeArguments:t=>t&&Po(t,g2),parenthesizeLeadingTypeArgument:il}}});function Pke(t){return{convertToFunctionBlock:u,convertToFunctionExpression:s,convertToClassExpression:d,convertToArrayAssignmentElement:f,convertToObjectAssignmentElement:p,convertToAssignmentPattern:E,convertToObjectAssignmentPattern:v,convertToArrayAssignmentPattern:b,convertToAssignmentElementTarget:B};function u(k,T){if(po(k))return k;const M=t.createReturnStatement(k);Pt(M,k);const z=t.createBlock([M],T);return Pt(z,k),z}function s(k){var T;if(!k.body)return H.fail("Cannot convert a FunctionDeclaration without a body");const M=t.createFunctionExpression((T=p2(k))==null?void 0:T.filter(z=>!L7(z)&&!rY(z)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return su(M,k),Pt(M,k),RP(k)&&FZ(M,!0),M}function d(k){var T;const M=t.createClassExpression((T=k.modifiers)==null?void 0:T.filter(z=>!L7(z)&&!rY(z)),k.name,k.typeParameters,k.heritageClauses,k.members);return su(M,k),Pt(M,k),RP(k)&&FZ(M,!0),M}function f(k){if(js(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadElement(k.name),k),k);const T=B(k.name);return k.initializer?su(Pt(t.createAssignment(T,k.initializer),k),k):T}return Po(k,Wt)}function p(k){if(js(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadAssignment(k.name),k),k);if(k.propertyName){const T=B(k.name);return su(Pt(t.createPropertyAssignment(k.propertyName,k.initializer?t.createAssignment(T,k.initializer):T),k),k)}return H.assertNode(k.name,at),su(Pt(t.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return Po(k,Z3)}function E(k){switch(k.kind){case 207:case 209:return b(k);case 206:case 210:return v(k)}}function v(k){return Rp(k)?su(Pt(t.createObjectLiteralExpression(Vt(k.elements,p)),k),k):Po(k,ys)}function b(k){return _k(k)?su(Pt(t.createArrayLiteralExpression(Vt(k.elements,f)),k),k):Po(k,Dh)}function B(k){return So(k)?E(k):Po(k,Wt)}}var tce,CLt=o({"src/compiler/factory/nodeConverters.ts"(){Bo(),tce={convertToFunctionBlock:ho,convertToFunctionExpression:ho,convertToClassExpression:ho,convertToArrayAssignmentElement:ho,convertToObjectAssignmentElement:ho,convertToAssignmentPattern:ho,convertToObjectAssignmentPattern:ho,convertToArrayAssignmentPattern:ho,convertToAssignmentElementTarget:ho}}});function MYe(t){zke.push(t)}function mV(t,u){const s=t&8?bLt:yLt,d=Mh(()=>t&1?ece:Nke(Y)),f=Mh(()=>t&2?tce:Pke(Y)),p=HE(N=>(W,ee)=>Me(W,N,ee)),E=HE(N=>W=>Bt(N,W)),v=HE(N=>W=>Ci(W,N)),b=HE(N=>()=>sz(N)),B=HE(N=>W=>B0(N,W)),k=HE(N=>(W,ee)=>A9(N,W,ee)),T=HE(N=>(W,ee)=>F9(N,W,ee)),M=HE(N=>(W,ee)=>Eb(N,W,ee)),z=HE(N=>(W,ee)=>_4(N,W,ee)),j=HE(N=>(W,ee,ke)=>fC(N,W,ee,ke)),J=HE(N=>(W,ee,ke)=>T5(N,W,ee,ke)),K=HE(N=>(W,ee,ke,dt)=>n1(N,W,ee,ke,dt)),Y={get parenthesizer(){return d()},get converters(){return f()},baseFactory:u,flags:t,createNodeArray:oe,createNumericLiteral:Ce,createBigIntLiteral:ne,createStringLiteral:Se,createStringLiteralFromNode:Ne,createRegularExpressionLiteral:pe,createLiteralLikeNode:fe,createIdentifier:Ge,createTempVariable:Ae,createLoopVariable:De,createUniqueName:Ke,getGeneratedNameForNode:Je,createPrivateIdentifier:Ye,createUniquePrivateName:We,getGeneratedPrivateNameForNode:Gt,createToken:Ie,createSuper:st,createThis:St,createNull:It,createTrue:ei,createFalse:ht,createModifier:Ut,createModifiersFromModifierFlags:Ni,createQualifiedName:ji,updateQualifiedName:xn,createComputedPropertyName:Jn,updateComputedPropertyName:an,createTypeParameterDeclaration:Pi,updateTypeParameterDeclaration:Ai,createParameterDeclaration:Zu,updateParameterDeclaration:aa,createDecorator:yr,updateDecorator:Ba,createPropertySignature:bt,updatePropertySignature:jn,createPropertyDeclaration:Si,updatePropertyDeclaration:Dn,createMethodSignature:Cn,updateMethodSignature:tu,createMethodDeclaration:oa,updateMethodDeclaration:Da,createConstructorDeclaration:Qe,updateConstructorDeclaration:Et,createGetAccessorDeclaration:qt,updateGetAccessorDeclaration:Xt,createSetAccessorDeclaration:et,updateSetAccessorDeclaration:gt,createCallSignature:me,updateCallSignature:ni,createConstructSignature:vi,updateConstructSignature:mt,createIndexSignature:Ot,updateIndexSignature:Ei,createClassStaticBlockDeclaration:Ta,updateClassStaticBlockDeclaration:Yo,createTemplateLiteralTypeSpan:$i,updateTemplateLiteralTypeSpan:Qi,createKeywordTypeNode:on,createTypePredicateNode:le,updateTypePredicateNode:te,createTypeReferenceNode:we,updateTypeReferenceNode:de,createFunctionTypeNode:je,updateFunctionTypeNode:X,createConstructorTypeNode:Ct,updateConstructorTypeNode:Li,createTypeQueryNode:du,updateTypeQueryNode:Ru,createTypeLiteralNode:pr,updateTypeLiteralNode:Xu,createArrayTypeNode:ca,updateArrayTypeNode:Ku,createTupleTypeNode:ja,updateTupleTypeNode:wn,createNamedTupleMember:Ir,updateNamedTupleMember:as,createOptionalTypeNode:wo,updateOptionalTypeNode:Fn,createRestTypeNode:vc,updateRestTypeNode:Ya,createUnionTypeNode:wl,updateUnionTypeNode:hd,createIntersectionTypeNode:vl,updateIntersectionTypeNode:co,createConditionalTypeNode:Ho,updateConditionalTypeNode:id,createInferTypeNode:Y0,updateInferTypeNode:Ko,createImportTypeNode:Lc,updateImportTypeNode:Il,createParenthesizedType:cl,updateParenthesizedType:Ka,createThisTypeNode:Ri,createTypeOperatorNode:dl,updateTypeOperatorNode:Uc,createIndexedAccessTypeNode:Ch,updateIndexedAccessTypeNode:sf,createMappedTypeNode:Q0,updateMappedTypeNode:Cc,createLiteralTypeNode:$,updateLiteralTypeNode:tt,createTemplateLiteralType:Tc,updateTemplateLiteralType:Jp,createObjectBindingPattern:vt,updateObjectBindingPattern:mi,createArrayBindingPattern:fn,updateArrayBindingPattern:Wu,createBindingElement:uu,updateBindingElement:Tu,createArrayLiteralExpression:Nr,updateArrayLiteralExpression:Vu,createObjectLiteralExpression:Ss,updateObjectLiteralExpression:ic,createPropertyAccessExpression:t&4?(N,W)=>Zn(S0(N,W),262144):S0,updatePropertyAccessExpression:ud,createPropertyAccessChain:t&4?(N,W,ee)=>Zn(m0(N,W,ee),262144):m0,updatePropertyAccessChain:Bd,createElementAccessExpression:uh,updateElementAccessExpression:h4,createElementAccessChain:D1,updateElementAccessChain:He,createCallExpression:Mn,updateCallExpression:ba,createCallChain:Fo,updateCallChain:To,createNewExpression:nc,updateNewExpression:fc,createTaggedTemplateExpression:Cl,updateTaggedTemplateExpression:Tl,createTypeAssertion:bc,updateTypeAssertion:ql,createParenthesizedExpression:Nc,updateParenthesizedExpression:ip,createFunctionExpression:Jm,updateFunctionExpression:jh,createArrowFunction:f4,updateArrowFunction:c3,createDeleteExpression:c_,updateDeleteExpression:C5,createTypeOfExpression:R1,updateTypeOfExpression:d3,createVoidExpression:Wf,updateVoidExpression:m4,createAwaitExpression:Vh,updateAwaitExpression:Ee,createPrefixUnaryExpression:Bt,updatePrefixUnaryExpression:Di,createPostfixUnaryExpression:Ci,updatePostfixUnaryExpression:Q,createBinaryExpression:Me,updateBinaryExpression:ki,createConditionalExpression:In,updateConditionalExpression:tr,createTemplateExpression:ir,updateTemplateExpression:ha,createTemplateHead:$m,createTemplateMiddle:_s,createTemplateTail:np,createNoSubstitutionTemplateLiteral:Um,createTemplateLiteralLikeNode:fd,createYieldExpression:h3,updateYieldExpression:d_,createSpreadElement:ia,updateSpreadElement:Xx,createClassExpression:e6,updateClassExpression:bg,createOmittedExpression:sb,createExpressionWithTypeArguments:b5,updateExpressionWithTypeArguments:Xe,createAsExpression:Dt,updateAsExpression:oi,createNonNullExpression:Ti,updateNonNullExpression:Xi,createSatisfiesExpression:Rn,updateSatisfiesExpression:tn,createNonNullChain:bn,updateNonNullChain:kr,createMetaProperty:Cu,updateMetaProperty:bu,createTemplateSpan:Eu,updateTemplateSpan:sa,createSemicolonClassElement:p0,createBlock:o0,updateBlock:Gf,createVariableStatement:eC,updateVariableStatement:t6,createEmptyStatement:cD,createExpressionStatement:i6,updateExpressionStatement:Gk,createIfStatement:lb,updateIfStatement:Jk,createDoStatement:$k,updateDoStatement:az,createWhileStatement:D9,updateWhileStatement:ww,createForStatement:tC,updateForStatement:x9,createForInStatement:v9,updateForInStatement:Tw,createForOfStatement:Uk,updateForOfStatement:Lw,createContinueStatement:C9,updateContinueStatement:b9,createBreakStatement:qk,updateBreakStatement:cb,createReturnStatement:db,updateReturnStatement:iC,createWithStatement:y5,updateWithStatement:hb,createSwitchStatement:fE,updateSwitchStatement:Vs,createLabeledStatement:Zk,updateLabeledStatement:Nw,createThrowStatement:n6,updateThrowStatement:k5,createTryStatement:h_,updateTryStatement:p4,createDebuggerStatement:Jf,createVariableDeclaration:Hh,updateVariableDeclaration:Em,createVariableDeclarationList:nC,updateVariableDeclarationList:Pw,createFunctionDeclaration:y9,updateFunctionDeclaration:Yk,createClassDeclaration:uC,updateClassDeclaration:Qk,createInterfaceDeclaration:rC,updateInterfaceDeclaration:jd,createTypeAliasDeclaration:F5,updateTypeAliasDeclaration:A5,createEnumDeclaration:f3,updateEnumDeclaration:pt,createModuleDeclaration:i1,updateModuleDeclaration:g4,createModuleBlock:bh,updateModuleBlock:Mw,createCaseBlock:S5,updateCaseBlock:aC,createNamespaceExportDeclaration:m3,updateNamespaceExportDeclaration:oz,createImportEqualsDeclaration:yg,updateImportEqualsDeclaration:Xk,createImportDeclaration:eF,updateImportDeclaration:mb,createImportClause:pb,updateImportClause:up,createAssertClause:kg,updateAssertClause:p3,createAssertEntry:tF,updateAssertEntry:mE,createImportTypeAssertionContainer:iF,updateImportTypeAssertionContainer:zw,createImportAttributes:Ur,updateImportAttributes:ar,createImportAttribute:pE,updateImportAttribute:kf,createNamespaceImport:Iw,updateNamespaceImport:B5,createNamespaceExport:Rw,updateNamespaceExport:gb,createNamedImports:uc,updateNamedImports:yh,createImportSpecifier:dD,updateImportSpecifier:f_,createExportAssignment:g3,updateExportAssignment:$p,createExportDeclaration:oC,updateExportDeclaration:E3,createNamedExports:m_,updateNamedExports:jw,createExportSpecifier:gE,updateExportSpecifier:p_,createMissingDeclaration:w5,createExternalModuleReference:Vw,updateExternalModuleReference:k9,get createJSDocAllType(){return b(319)},get createJSDocUnknownType(){return b(320)},get createJSDocNonNullableType(){return T(322)},get updateJSDocNonNullableType(){return M(322)},get createJSDocNullableType(){return T(321)},get updateJSDocNullableType(){return M(321)},get createJSDocOptionalType(){return B(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return B(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return B(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:rp,updateJSDocFunctionType:sC,createJSDocTypeLiteral:S9,updateJSDocTypeLiteral:lz,createJSDocTypeExpression:nF,updateJSDocTypeExpression:ru,createJSDocSignature:v1,updateJSDocSignature:Ma,createJSDocTemplateTag:Un,updateJSDocTemplateTag:_b,createJSDocTypedefTag:lC,updateJSDocTypedefTag:wd,createJSDocParameterTag:_E,updateJSDocParameterTag:DE,createJSDocPropertyTag:u6,updateJSDocPropertyTag:B9,createJSDocCallbackTag:hD,updateJSDocCallbackTag:cC,createJSDocOverloadTag:dC,updateJSDocOverloadTag:_3,createJSDocAugmentsTag:g_,updateJSDocAugmentsTag:uF,createJSDocImplementsTag:fD,updateJSDocImplementsTag:vb,createJSDocSeeTag:r6,updateJSDocSeeTag:Db,createJSDocNameReference:w9,updateJSDocNameReference:rF,createJSDocMemberName:xb,updateJSDocMemberName:E4,createJSDocLink:hC,updateJSDocLink:yc,createJSDocLinkCode:md,updateJSDocLinkCode:T9,createJSDocLinkPlain:O1,updateJSDocLinkPlain:Ff,get createJSDocTypeTag(){return J(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return J(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return J(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return z(337)},get updateJSDocAuthorTag(){return j(337)},get createJSDocClassTag(){return z(339)},get updateJSDocClassTag(){return j(339)},get createJSDocPublicTag(){return z(340)},get updateJSDocPublicTag(){return j(340)},get createJSDocPrivateTag(){return z(341)},get updateJSDocPrivateTag(){return j(341)},get createJSDocProtectedTag(){return z(342)},get updateJSDocProtectedTag(){return j(342)},get createJSDocReadonlyTag(){return z(343)},get updateJSDocReadonlyTag(){return j(343)},get createJSDocOverrideTag(){return z(344)},get updateJSDocOverrideTag(){return j(344)},get createJSDocDeprecatedTag(){return z(338)},get updateJSDocDeprecatedTag(){return j(338)},get createJSDocThrowsTag(){return J(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return J(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:a6,updateJSDocEnumTag:Hw,createJSDocUnknownTag:aF,updateJSDocUnknownTag:op,createJSDocText:R0,updateJSDocText:Kw,createJSDocComment:oF,updateJSDocComment:mC,createJsxElement:L9,updateJsxElement:Kh,createJsxSelfClosingElement:D3,updateJsxSelfClosingElement:mD,createJsxOpeningElement:Cb,updateJsxOpeningElement:_m,createJsxClosingElement:N9,updateJsxClosingElement:o6,createJsxFragment:qm,createJsxText:L5,updateJsxText:cz,createJsxOpeningFragment:P9,createJsxJsxClosingFragment:M9,updateJsxFragment:bb,createJsxAttribute:z9,updateJsxAttribute:pC,createJsxAttributes:$f,updateJsxAttributes:x3,createJsxSpreadAttribute:I9,updateJsxSpreadAttribute:R9,createJsxExpression:Ks,updateJsxExpression:_u,createJsxNamespacedName:Dm,updateJsxNamespacedName:cf,createCaseClause:yb,updateCaseClause:Ww,createDefaultClause:gC,updateDefaultClause:kb,createHeritageClause:s6,updateHeritageClause:Zm,createCatchClause:sp,updateCatchClause:l6,createPropertyAssignment:Up,updatePropertyAssignment:lp,createShorthandPropertyAssignment:Fb,updateShorthandPropertyAssignment:Pc,createSpreadAssignment:D4,updateSpreadAssignment:Gw,createEnumMember:j1,updateEnumMember:EC,createSourceFile:Ab,updateSourceFile:c6,createRedirectedSourceFile:sF,createBundle:v3,updateBundle:_C,createUnparsedSource:$w,createUnparsedPrologue:R,createUnparsedPrepend:be,createUnparsedTextLike:Ht,createUnparsedSyntheticReference:Oi,createInputFiles:yu,createSyntheticExpression:Jr,createSyntaxList:br,createNotEmittedStatement:Ea,createPartiallyEmittedExpression:Ao,updatePartiallyEmittedExpression:Af,createCommaListExpression:Fr,updateCommaListExpression:vE,createSyntheticReferenceExpression:gn,updateSyntheticReferenceExpression:h6,cloneNode:cF,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return v(46)},get createPostfixDecrement(){return v(47)},createImmediatelyInvokedFunctionExpression:E_,createImmediatelyInvokedArrowFunction:M5,createVoidZero:C3,createExportDefault:Uw,createExternalModuleExport:j9,createTypeCheck:ZK,createIsNotTypeCheck:hz,createMethodCall:__,createGlobalMethodCall:xC,createFunctionBindCall:pD,createFunctionCallCall:qw,createFunctionApplyCall:D_,createArraySliceCall:mte,createArrayConcatCall:CE,createObjectDefinePropertyCall:dF,createObjectGetOwnPropertyDescriptorCall:YK,createReflectGetCall:he,createReflectSetCall:Re,createPropertyDescriptor:Nt,createCallBinding:gr,createAssignmentTargetWrapper:fa,inlineExpressions:_0,getInternalName:Ws,getLocalName:v4,getExportName:qp,getDeclarationName:f6,getNamespaceMemberName:b3,getExternalModuleOrNamespaceExportName:Vd,restoreOuterExpressions:zu,restoreEnclosingLabel:Hr,createUseStrictPrologue:Zw,copyPrologue:gD,copyStandardPrologue:Yw,copyCustomPrologue:mz,ensureUseStrict:pte,liftToBlock:pz,mergeLexicalEnvironment:ED,replaceModifiers:gz,replaceDecoratorsAndModifiers:C4,replacePropertyName:Qw};return L(zke,N=>N(Y)),Y;function oe(N,W){if(N===void 0||N===_t)N=[];else if(g2(N)){if(W===void 0||N.hasTrailingComma===W)return N.transformFlags===void 0&&zYe(N),H.attachNodeArrayDebugInfo(N),N;const dt=N.slice();return dt.pos=N.pos,dt.end=N.end,dt.hasTrailingComma=W,dt.transformFlags=N.transformFlags,H.attachNodeArrayDebugInfo(dt),dt}const ee=N.length,ke=ee>=1&&ee<=4?N.slice():N;return ke.pos=-1,ke.end=-1,ke.hasTrailingComma=!!W,ke.transformFlags=0,zYe(ke),H.attachNodeArrayDebugInfo(ke),ke}function se(N){return u.createBaseNode(N)}function ge(N){const W=se(N);return W.symbol=void 0,W.localSymbol=void 0,W}function ae(N,W){return N!==W&&(N.typeArguments=W.typeArguments),s(N,W)}function Ce(N,W=0){const ee=ge(9);return ee.text=typeof N=="number"?N+"":N,ee.numericLiteralFlags=W,W&384&&(ee.transformFlags|=1024),ee}function ne(N){const W=Yt(10);return W.text=typeof N=="string"?N:I2(N)+"n",W.transformFlags|=32,W}function ve(N,W){const ee=ge(11);return ee.text=N,ee.singleQuote=W,ee}function Se(N,W,ee){const ke=ve(N,W);return ke.hasExtendedUnicodeEscape=ee,ee&&(ke.transformFlags|=1024),ke}function Ne(N){const W=ve(J4(N),void 0);return W.textSourceNode=N,W}function pe(N){const W=Yt(14);return W.text=N,W}function fe(N,W){switch(N){case 9:return Ce(W,0);case 10:return ne(W);case 11:return Se(W,void 0);case 12:return L5(W,!1);case 13:return L5(W,!0);case 14:return pe(W);case 15:return fd(N,W,void 0,0)}}function xe(N){const W=u.createBaseIdentifierNode(80);return W.escapedText=N,W.jsDoc=void 0,W.flowNode=void 0,W.symbol=void 0,W}function Be(N,W,ee,ke){const dt=xe(Al(N));return xV(dt,{flags:W,id:kZ,prefix:ee,suffix:ke}),kZ++,dt}function Ge(N,W,ee){W===void 0&&N&&(W=f2(N)),W===80&&(W=void 0);const ke=xe(Al(N));return ee&&(ke.flags|=256),ke.escapedText==="await"&&(ke.transformFlags|=67108864),ke.flags&256&&(ke.transformFlags|=1024),ke}function Ae(N,W,ee,ke){let dt=1;W&&(dt|=8);const Bi=Be("",dt,ee,ke);return N&&N(Bi),Bi}function De(N){let W=2;return N&&(W|=8),Be("",W,void 0,void 0)}function Ke(N,W=0,ee,ke){return H.assert(!(W&7),"Argument out of range: flags"),H.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Be(N,3|W,ee,ke)}function Je(N,W=0,ee,ke){H.assert(!(W&7),"Argument out of range: flags");const dt=N?J_(N)?jv(!1,ee,N,ke,fu):`generated@${$s(N)}`:"";(ee||ke)&&(W|=16);const Bi=Be(dt,4|W,ee,ke);return Bi.original=N,Bi}function ft(N){const W=u.createBasePrivateIdentifierNode(81);return W.escapedText=N,W.transformFlags|=16777216,W}function Ye(N){return Pa(N,"#")||H.fail("First character of private identifier must be #: "+N),ft(Al(N))}function Ve(N,W,ee,ke){const dt=ft(Al(N));return xV(dt,{flags:W,id:kZ,prefix:ee,suffix:ke}),kZ++,dt}function We(N,W,ee){N&&!Pa(N,"#")&&H.fail("First character of private identifier must be #: "+N);const ke=8|(N?3:1);return Ve(N??"",ke,W,ee)}function Gt(N,W,ee){const ke=J_(N)?jv(!0,W,N,ee,fu):`#generated@${$s(N)}`,Bi=Ve(ke,4|(W||ee?16:0),W,ee);return Bi.original=N,Bi}function Yt(N){return u.createBaseTokenNode(N)}function Ie(N){H.assert(N>=0&&N<=165,"Invalid token"),H.assert(N<=15||N>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),H.assert(N<=9||N>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),H.assert(N!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const W=Yt(N);let ee=0;switch(N){case 134:ee=384;break;case 160:ee=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:ee=1;break;case 108:ee=134218752,W.flowNode=void 0;break;case 126:ee=1024;break;case 129:ee=16777216;break;case 110:ee=16384,W.flowNode=void 0;break}return ee&&(W.transformFlags|=ee),W}function st(){return Ie(108)}function St(){return Ie(110)}function It(){return Ie(106)}function ei(){return Ie(112)}function ht(){return Ie(97)}function Ut(N){return Ie(N)}function Ni(N){const W=[];return N&32&&W.push(Ut(95)),N&128&&W.push(Ut(138)),N&2048&&W.push(Ut(90)),N&4096&&W.push(Ut(87)),N&1&&W.push(Ut(125)),N&2&&W.push(Ut(123)),N&4&&W.push(Ut(124)),N&64&&W.push(Ut(128)),N&256&&W.push(Ut(126)),N&16&&W.push(Ut(164)),N&8&&W.push(Ut(148)),N&512&&W.push(Ut(129)),N&1024&&W.push(Ut(134)),N&8192&&W.push(Ut(103)),N&16384&&W.push(Ut(147)),W.length?W:void 0}function ji(N,W){const ee=se(166);return ee.left=N,ee.right=Mc(W),ee.transformFlags|=ou(ee.left)|pV(ee.right),ee.flowNode=void 0,ee}function xn(N,W,ee){return N.left!==W||N.right!==ee?s(ji(W,ee),N):N}function Jn(N){const W=se(167);return W.expression=d().parenthesizeExpressionOfComputedPropertyName(N),W.transformFlags|=ou(W.expression)|1024|131072,W}function an(N,W){return N.expression!==W?s(Jn(W),N):N}function Pi(N,W,ee,ke){const dt=ge(168);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.constraint=ee,dt.default=ke,dt.transformFlags=1,dt.expression=void 0,dt.jsDoc=void 0,dt}function Ai(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.constraint!==ke||N.default!==dt?s(Pi(W,ee,ke,dt),N):N}function Zu(N,W,ee,ke,dt,Bi){const au=ge(169);return au.modifiers=Ms(N),au.dotDotDotToken=W,au.name=Mc(ee),au.questionToken=ke,au.type=dt,au.initializer=hF(Bi),N2(au.name)?au.transformFlags=1:au.transformFlags=Fs(au.modifiers)|ou(au.dotDotDotToken)|Kx(au.name)|ou(au.questionToken)|ou(au.initializer)|(au.questionToken??au.type?1:0)|(au.dotDotDotToken??au.initializer?1024:0)|(tE(au.modifiers)&31?8192:0),au.jsDoc=void 0,au}function aa(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.dotDotDotToken!==ee||N.name!==ke||N.questionToken!==dt||N.type!==Bi||N.initializer!==au?s(Zu(W,ee,ke,dt,Bi,au),N):N}function yr(N){const W=se(170);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1|8192|33554432,W}function Ba(N,W){return N.expression!==W?s(yr(W),N):N}function bt(N,W,ee,ke){const dt=ge(171);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.type=ke,dt.questionToken=ee,dt.transformFlags=1,dt.initializer=void 0,dt.jsDoc=void 0,dt}function jn(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?Ln(bt(W,ee,ke,dt),N):N}function Ln(N,W){return N!==W&&(N.initializer=W.initializer),s(N,W)}function Si(N,W,ee,ke,dt){const Bi=ge(172);Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.questionToken=ee&&Wx(ee)?ee:void 0,Bi.exclamationToken=ee&&kV(ee)?ee:void 0,Bi.type=ke,Bi.initializer=hF(dt);const au=Bi.flags&33554432||tE(Bi.modifiers)&128;return Bi.transformFlags=Fs(Bi.modifiers)|Kx(Bi.name)|ou(Bi.initializer)|(au||Bi.questionToken||Bi.exclamationToken||Bi.type?1:0)|(Ps(Bi.name)||tE(Bi.modifiers)&256&&Bi.initializer?8192:0)|16777216,Bi.jsDoc=void 0,Bi}function Dn(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.questionToken!==(ke!==void 0&&Wx(ke)?ke:void 0)||N.exclamationToken!==(ke!==void 0&&kV(ke)?ke:void 0)||N.type!==dt||N.initializer!==Bi?s(Si(W,ee,ke,dt,Bi),N):N}function Cn(N,W,ee,ke,dt,Bi){const au=ge(173);return au.modifiers=Ms(N),au.name=Mc(W),au.questionToken=ee,au.typeParameters=Ms(ke),au.parameters=Ms(dt),au.type=Bi,au.transformFlags=1,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.typeArguments=void 0,au}function tu(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au?ae(Cn(W,ee,ke,dt,Bi,au),N):N}function oa(N,W,ee,ke,dt,Bi,au,za){const i0=ge(174);if(i0.modifiers=Ms(N),i0.asteriskToken=W,i0.name=Mc(ee),i0.questionToken=ke,i0.exclamationToken=void 0,i0.typeParameters=Ms(dt),i0.parameters=oe(Bi),i0.type=au,i0.body=za,!i0.body)i0.transformFlags=1;else{const Qm=tE(i0.modifiers)&1024,p6=!!i0.asteriskToken,g6=Qm&&p6;i0.transformFlags=Fs(i0.modifiers)|ou(i0.asteriskToken)|Kx(i0.name)|ou(i0.questionToken)|Fs(i0.typeParameters)|Fs(i0.parameters)|ou(i0.type)|ou(i0.body)&-67108865|(g6?128:Qm?256:p6?2048:0)|(i0.questionToken||i0.typeParameters||i0.type?1:0)|1024}return i0.typeArguments=void 0,i0.jsDoc=void 0,i0.locals=void 0,i0.nextContainer=void 0,i0.flowNode=void 0,i0.endFlowNode=void 0,i0.returnFlowNode=void 0,i0}function Da(N,W,ee,ke,dt,Bi,au,za,i0){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.questionToken!==dt||N.typeParameters!==Bi||N.parameters!==au||N.type!==za||N.body!==i0?ra(oa(W,ee,ke,dt,Bi,au,za,i0),N):N}function ra(N,W){return N!==W&&(N.exclamationToken=W.exclamationToken),s(N,W)}function Ta(N){const W=ge(175);return W.body=N,W.transformFlags=ou(N)|16777216,W.modifiers=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function Yo(N,W){return N.body!==W?bo(Ta(W),N):N}function bo(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function Qe(N,W,ee){const ke=ge(176);return ke.modifiers=Ms(N),ke.parameters=oe(W),ke.body=ee,ke.transformFlags=Fs(ke.modifiers)|Fs(ke.parameters)|ou(ke.body)&-67108865|1024,ke.typeParameters=void 0,ke.type=void 0,ke.typeArguments=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.returnFlowNode=void 0,ke}function Et(N,W,ee,ke){return N.modifiers!==W||N.parameters!==ee||N.body!==ke?Mt(Qe(W,ee,ke),N):N}function Mt(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function qt(N,W,ee,ke,dt){const Bi=ge(177);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.parameters=oe(ee),Bi.type=ke,Bi.body=dt,Bi.body?Bi.transformFlags=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.parameters)|ou(Bi.type)|ou(Bi.body)&-67108865|(Bi.type?1:0):Bi.transformFlags=1,Bi.typeArguments=void 0,Bi.typeParameters=void 0,Bi.jsDoc=void 0,Bi.locals=void 0,Bi.nextContainer=void 0,Bi.flowNode=void 0,Bi.endFlowNode=void 0,Bi.returnFlowNode=void 0,Bi}function Xt(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.type!==dt||N.body!==Bi?Pe(qt(W,ee,ke,dt,Bi),N):N}function Pe(N,W){return N!==W&&(N.typeParameters=W.typeParameters),ae(N,W)}function et(N,W,ee,ke){const dt=ge(178);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.parameters=oe(ee),dt.body=ke,dt.body?dt.transformFlags=Fs(dt.modifiers)|Kx(dt.name)|Fs(dt.parameters)|ou(dt.body)&-67108865|(dt.type?1:0):dt.transformFlags=1,dt.typeArguments=void 0,dt.typeParameters=void 0,dt.type=void 0,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt.endFlowNode=void 0,dt.returnFlowNode=void 0,dt}function gt(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.body!==dt?ii(et(W,ee,ke,dt),N):N}function ii(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function me(N,W,ee){const ke=ge(179);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function ni(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(me(W,ee,ke),N):N}function vi(N,W,ee){const ke=ge(180);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function mt(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(vi(W,ee,ke),N):N}function Ot(N,W,ee){const ke=ge(181);return ke.modifiers=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function Ei(N,W,ee,ke){return N.parameters!==ee||N.type!==ke||N.modifiers!==W?ae(Ot(W,ee,ke),N):N}function $i(N,W){const ee=se(204);return ee.type=N,ee.literal=W,ee.transformFlags=1,ee}function Qi(N,W,ee){return N.type!==W||N.literal!==ee?s($i(W,ee),N):N}function on(N){return Ie(N)}function le(N,W,ee){const ke=se(182);return ke.assertsModifier=N,ke.parameterName=Mc(W),ke.type=ee,ke.transformFlags=1,ke}function te(N,W,ee,ke){return N.assertsModifier!==W||N.parameterName!==ee||N.type!==ke?s(le(W,ee,ke),N):N}function we(N,W){const ee=se(183);return ee.typeName=Mc(N),ee.typeArguments=W&&d().parenthesizeTypeArguments(oe(W)),ee.transformFlags=1,ee}function de(N,W,ee){return N.typeName!==W||N.typeArguments!==ee?s(we(W,ee),N):N}function je(N,W,ee){const ke=ge(184);return ke.typeParameters=Ms(N),ke.parameters=Ms(W),ke.type=ee,ke.transformFlags=1,ke.modifiers=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function X(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?it(je(W,ee,ke),N):N}function it(N,W){return N!==W&&(N.modifiers=W.modifiers),ae(N,W)}function Ct(...N){return N.length===4?ct(...N):N.length===3?Qt(...N):H.fail("Incorrect number of arguments specified.")}function ct(N,W,ee,ke){const dt=ge(185);return dt.modifiers=Ms(N),dt.typeParameters=Ms(W),dt.parameters=Ms(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.typeArguments=void 0,dt}function Qt(N,W,ee){return ct(void 0,N,W,ee)}function Li(...N){return N.length===5?Ui(...N):N.length===4?Sn(...N):H.fail("Incorrect number of arguments specified.")}function Ui(N,W,ee,ke,dt){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt?ae(Ct(W,ee,ke,dt),N):N}function Sn(N,W,ee,ke){return Ui(N,N.modifiers,W,ee,ke)}function du(N,W){const ee=se(186);return ee.exprName=N,ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags=1,ee}function Ru(N,W,ee){return N.exprName!==W||N.typeArguments!==ee?s(du(W,ee),N):N}function pr(N){const W=ge(187);return W.members=oe(N),W.transformFlags=1,W}function Xu(N,W){return N.members!==W?s(pr(W),N):N}function ca(N){const W=se(188);return W.elementType=d().parenthesizeNonArrayTypeOfPostfixType(N),W.transformFlags=1,W}function Ku(N,W){return N.elementType!==W?s(ca(W),N):N}function ja(N){const W=se(189);return W.elements=oe(d().parenthesizeElementTypesOfTupleType(N)),W.transformFlags=1,W}function wn(N,W){return N.elements!==W?s(ja(W),N):N}function Ir(N,W,ee,ke){const dt=ge(202);return dt.dotDotDotToken=N,dt.name=W,dt.questionToken=ee,dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt}function as(N,W,ee,ke,dt){return N.dotDotDotToken!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?s(Ir(W,ee,ke,dt),N):N}function wo(N){const W=se(190);return W.type=d().parenthesizeTypeOfOptionalType(N),W.transformFlags=1,W}function Fn(N,W){return N.type!==W?s(wo(W),N):N}function vc(N){const W=se(191);return W.type=N,W.transformFlags=1,W}function Ya(N,W){return N.type!==W?s(vc(W),N):N}function c0(N,W,ee){const ke=se(N);return ke.types=Y.createNodeArray(ee(W)),ke.transformFlags=1,ke}function Ul(N,W,ee){return N.types!==W?s(c0(N.kind,W,ee),N):N}function wl(N){return c0(192,N,d().parenthesizeConstituentTypesOfUnionType)}function hd(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfUnionType)}function vl(N){return c0(193,N,d().parenthesizeConstituentTypesOfIntersectionType)}function co(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfIntersectionType)}function Ho(N,W,ee,ke){const dt=se(194);return dt.checkType=d().parenthesizeCheckTypeOfConditionalType(N),dt.extendsType=d().parenthesizeExtendsTypeOfConditionalType(W),dt.trueType=ee,dt.falseType=ke,dt.transformFlags=1,dt.locals=void 0,dt.nextContainer=void 0,dt}function id(N,W,ee,ke,dt){return N.checkType!==W||N.extendsType!==ee||N.trueType!==ke||N.falseType!==dt?s(Ho(W,ee,ke,dt),N):N}function Y0(N){const W=se(195);return W.typeParameter=N,W.transformFlags=1,W}function Ko(N,W){return N.typeParameter!==W?s(Y0(W),N):N}function Tc(N,W){const ee=se(203);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags=1,ee}function Jp(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(Tc(W,ee),N):N}function Lc(N,W,ee,ke,dt=!1){const Bi=se(205);return Bi.argument=N,Bi.attributes=W,Bi.assertions&&Bi.assertions.assertClause&&Bi.attributes&&(Bi.assertions.assertClause=Bi.attributes),Bi.qualifier=ee,Bi.typeArguments=ke&&d().parenthesizeTypeArguments(ke),Bi.isTypeOf=dt,Bi.transformFlags=1,Bi}function Il(N,W,ee,ke,dt,Bi=N.isTypeOf){return N.argument!==W||N.attributes!==ee||N.qualifier!==ke||N.typeArguments!==dt||N.isTypeOf!==Bi?s(Lc(W,ee,ke,dt,Bi),N):N}function cl(N){const W=se(196);return W.type=N,W.transformFlags=1,W}function Ka(N,W){return N.type!==W?s(cl(W),N):N}function Ri(){const N=se(197);return N.transformFlags=1,N}function dl(N,W){const ee=se(198);return ee.operator=N,ee.type=N===148?d().parenthesizeOperandOfReadonlyTypeOperator(W):d().parenthesizeOperandOfTypeOperator(W),ee.transformFlags=1,ee}function Uc(N,W){return N.type!==W?s(dl(N.operator,W),N):N}function Ch(N,W){const ee=se(199);return ee.objectType=d().parenthesizeNonArrayTypeOfPostfixType(N),ee.indexType=W,ee.transformFlags=1,ee}function sf(N,W,ee){return N.objectType!==W||N.indexType!==ee?s(Ch(W,ee),N):N}function Q0(N,W,ee,ke,dt,Bi){const au=ge(200);return au.readonlyToken=N,au.typeParameter=W,au.nameType=ee,au.questionToken=ke,au.type=dt,au.members=Bi&&oe(Bi),au.transformFlags=1,au.locals=void 0,au.nextContainer=void 0,au}function Cc(N,W,ee,ke,dt,Bi,au){return N.readonlyToken!==W||N.typeParameter!==ee||N.nameType!==ke||N.questionToken!==dt||N.type!==Bi||N.members!==au?s(Q0(W,ee,ke,dt,Bi,au),N):N}function $(N){const W=se(201);return W.literal=N,W.transformFlags=1,W}function tt(N,W){return N.literal!==W?s($(W),N):N}function vt(N){const W=se(206);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W.transformFlags&32768&&(W.transformFlags|=65664),W}function mi(N,W){return N.elements!==W?s(vt(W),N):N}function fn(N){const W=se(207);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W}function Wu(N,W){return N.elements!==W?s(fn(W),N):N}function uu(N,W,ee,ke){const dt=ge(208);return dt.dotDotDotToken=N,dt.propertyName=Mc(W),dt.name=Mc(ee),dt.initializer=hF(ke),dt.transformFlags|=ou(dt.dotDotDotToken)|Kx(dt.propertyName)|Kx(dt.name)|ou(dt.initializer)|(dt.dotDotDotToken?32768:0)|1024,dt.flowNode=void 0,dt}function Tu(N,W,ee,ke,dt){return N.propertyName!==ee||N.dotDotDotToken!==W||N.name!==ke||N.initializer!==dt?s(uu(W,ee,ke,dt),N):N}function Nr(N,W){const ee=se(209),ke=N&&qu(N),dt=oe(N,ke&&Fd(ke)?!0:void 0);return ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(dt),ee.multiLine=W,ee.transformFlags|=Fs(ee.elements),ee}function Vu(N,W){return N.elements!==W?s(Nr(W,N.multiLine),N):N}function Ss(N,W){const ee=ge(210);return ee.properties=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.properties),ee.jsDoc=void 0,ee}function ic(N,W){return N.properties!==W?s(Ss(W,N.multiLine),N):N}function nd(N,W,ee){const ke=ge(211);return ke.expression=N,ke.questionDotToken=W,ke.name=ee,ke.transformFlags=ou(ke.expression)|ou(ke.questionDotToken)|(at(ke.name)?pV(ke.name):ou(ke.name)|536870912),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function S0(N,W){const ee=nd(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Mc(W));return HP(N)&&(ee.transformFlags|=384),ee}function ud(N,W,ee){return PU(N)?Bd(N,W,N.questionDotToken,Po(ee,at)):N.expression!==W||N.name!==ee?s(S0(W,ee),N):N}function m0(N,W,ee){const ke=nd(d().parenthesizeLeftSideOfAccess(N,!0),W,Mc(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Bd(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.name!==ke?s(m0(W,ee,ke),N):N}function Oh(N,W,ee){const ke=ge(212);return ke.expression=N,ke.questionDotToken=W,ke.argumentExpression=ee,ke.transformFlags|=ou(ke.expression)|ou(ke.questionDotToken)|ou(ke.argumentExpression),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function uh(N,W){const ee=Oh(d().parenthesizeLeftSideOfAccess(N,!1),void 0,m6(W));return HP(N)&&(ee.transformFlags|=384),ee}function h4(N,W,ee){return Hse(N)?He(N,W,N.questionDotToken,ee):N.expression!==W||N.argumentExpression!==ee?s(uh(W,ee),N):N}function D1(N,W,ee){const ke=Oh(d().parenthesizeLeftSideOfAccess(N,!0),W,m6(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function He(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.argumentExpression!==ke?s(D1(W,ee,ke),N):N}function di(N,W,ee,ke){const dt=ge(213);return dt.expression=N,dt.questionDotToken=W,dt.typeArguments=ee,dt.arguments=ke,dt.transformFlags|=ou(dt.expression)|ou(dt.questionDotToken)|Fs(dt.typeArguments)|Fs(dt.arguments),dt.typeArguments&&(dt.transformFlags|=1),nf(dt.expression)&&(dt.transformFlags|=16384),dt}function Mn(N,W,ee){const ke=di(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Ms(W),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ee)));return KP(ke.expression)&&(ke.transformFlags|=8388608),ke}function ba(N,W,ee,ke){return $y(N)?To(N,W,N.questionDotToken,ee,ke):N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(Mn(W,ee,ke),N):N}function Fo(N,W,ee,ke){const dt=di(d().parenthesizeLeftSideOfAccess(N,!0),W,Ms(ee),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ke)));return dt.flags|=64,dt.transformFlags|=32,dt}function To(N,W,ee,ke,dt){return H.assert(!!(N.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),N.expression!==W||N.questionDotToken!==ee||N.typeArguments!==ke||N.arguments!==dt?s(Fo(W,ee,ke,dt),N):N}function nc(N,W,ee){const ke=ge(214);return ke.expression=d().parenthesizeExpressionOfNew(N),ke.typeArguments=Ms(W),ke.arguments=ee?d().parenthesizeExpressionsOfCommaDelimitedList(ee):void 0,ke.transformFlags|=ou(ke.expression)|Fs(ke.typeArguments)|Fs(ke.arguments)|32,ke.typeArguments&&(ke.transformFlags|=1),ke}function fc(N,W,ee,ke){return N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(nc(W,ee,ke),N):N}function Cl(N,W,ee){const ke=se(215);return ke.tag=d().parenthesizeLeftSideOfAccess(N,!1),ke.typeArguments=Ms(W),ke.template=ee,ke.transformFlags|=ou(ke.tag)|Fs(ke.typeArguments)|ou(ke.template)|1024,ke.typeArguments&&(ke.transformFlags|=1),Q0e(ke.template)&&(ke.transformFlags|=128),ke}function Tl(N,W,ee,ke){return N.tag!==W||N.typeArguments!==ee||N.template!==ke?s(Cl(W,ee,ke),N):N}function bc(N,W){const ee=se(216);return ee.expression=d().parenthesizeOperandOfPrefixUnary(W),ee.type=N,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function ql(N,W,ee){return N.type!==W||N.expression!==ee?s(bc(W,ee),N):N}function Nc(N){const W=se(217);return W.expression=N,W.transformFlags=ou(W.expression),W.jsDoc=void 0,W}function ip(N,W){return N.expression!==W?s(Nc(W),N):N}function Jm(N,W,ee,ke,dt,Bi,au){const za=ge(218);za.modifiers=Ms(N),za.asteriskToken=W,za.name=Mc(ee),za.typeParameters=Ms(ke),za.parameters=oe(dt),za.type=Bi,za.body=au;const i0=tE(za.modifiers)&1024,Qm=!!za.asteriskToken,p6=i0&&Qm;return za.transformFlags=Fs(za.modifiers)|ou(za.asteriskToken)|Kx(za.name)|Fs(za.typeParameters)|Fs(za.parameters)|ou(za.type)|ou(za.body)&-67108865|(p6?128:i0?256:Qm?2048:0)|(za.typeParameters||za.type?1:0)|4194304,za.typeArguments=void 0,za.jsDoc=void 0,za.locals=void 0,za.nextContainer=void 0,za.flowNode=void 0,za.endFlowNode=void 0,za.returnFlowNode=void 0,za}function jh(N,W,ee,ke,dt,Bi,au,za){return N.name!==ke||N.modifiers!==W||N.asteriskToken!==ee||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au||N.body!==za?ae(Jm(W,ee,ke,dt,Bi,au,za),N):N}function f4(N,W,ee,ke,dt,Bi){const au=ge(219);au.modifiers=Ms(N),au.typeParameters=Ms(W),au.parameters=oe(ee),au.type=ke,au.equalsGreaterThanToken=dt??Ie(39),au.body=d().parenthesizeConciseBodyOfArrowFunction(Bi);const za=tE(au.modifiers)&1024;return au.transformFlags=Fs(au.modifiers)|Fs(au.typeParameters)|Fs(au.parameters)|ou(au.type)|ou(au.equalsGreaterThanToken)|ou(au.body)&-67108865|(au.typeParameters||au.type?1:0)|(za?16640:0)|1024,au.typeArguments=void 0,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.flowNode=void 0,au.endFlowNode=void 0,au.returnFlowNode=void 0,au}function c3(N,W,ee,ke,dt,Bi,au){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt||N.equalsGreaterThanToken!==Bi||N.body!==au?ae(f4(W,ee,ke,dt,Bi,au),N):N}function c_(N){const W=se(220);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function C5(N,W){return N.expression!==W?s(c_(W),N):N}function R1(N){const W=se(221);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function d3(N,W){return N.expression!==W?s(R1(W),N):N}function Wf(N){const W=se(222);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function m4(N,W){return N.expression!==W?s(Wf(W),N):N}function Vh(N){const W=se(223);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression)|256|128|2097152,W}function Ee(N,W){return N.expression!==W?s(Vh(W),N):N}function Bt(N,W){const ee=se(224);return ee.operator=N,ee.operand=d().parenthesizeOperandOfPrefixUnary(W),ee.transformFlags|=ou(ee.operand),(N===46||N===47)&&at(ee.operand)&&!al(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Di(N,W){return N.operand!==W?s(Bt(N.operator,W),N):N}function Ci(N,W){const ee=se(225);return ee.operator=W,ee.operand=d().parenthesizeOperandOfPostfixUnary(N),ee.transformFlags|=ou(ee.operand),at(ee.operand)&&!al(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Q(N,W){return N.operand!==W?s(Ci(W,N.operator),N):N}function Me(N,W,ee){const ke=ge(226),dt=gte(W),Bi=dt.kind;return ke.left=d().parenthesizeLeftSideOfBinary(Bi,N),ke.operatorToken=dt,ke.right=d().parenthesizeRightSideOfBinary(Bi,ke.left,ee),ke.transformFlags|=ou(ke.left)|ou(ke.operatorToken)|ou(ke.right),Bi===61?ke.transformFlags|=32:Bi===64?ys(ke.left)?ke.transformFlags|=5248|wt(ke.left):Dh(ke.left)&&(ke.transformFlags|=5120|wt(ke.left)):Bi===43||Bi===68?ke.transformFlags|=512:mP(Bi)&&(ke.transformFlags|=16),Bi===103&&ea(ke.left)&&(ke.transformFlags|=536870912),ke.jsDoc=void 0,ke}function wt(N){return VV(N)?65536:0}function ki(N,W,ee,ke){return N.left!==W||N.operatorToken!==ee||N.right!==ke?s(Me(W,ee,ke),N):N}function In(N,W,ee,ke,dt){const Bi=se(227);return Bi.condition=d().parenthesizeConditionOfConditionalExpression(N),Bi.questionToken=W??Ie(58),Bi.whenTrue=d().parenthesizeBranchOfConditionalExpression(ee),Bi.colonToken=ke??Ie(59),Bi.whenFalse=d().parenthesizeBranchOfConditionalExpression(dt),Bi.transformFlags|=ou(Bi.condition)|ou(Bi.questionToken)|ou(Bi.whenTrue)|ou(Bi.colonToken)|ou(Bi.whenFalse),Bi}function tr(N,W,ee,ke,dt,Bi){return N.condition!==W||N.questionToken!==ee||N.whenTrue!==ke||N.colonToken!==dt||N.whenFalse!==Bi?s(In(W,ee,ke,dt,Bi),N):N}function ir(N,W){const ee=se(228);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags|=ou(ee.head)|Fs(ee.templateSpans)|1024,ee}function ha(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(ir(W,ee),N):N}function os(N,W,ee,ke=0){H.assert(!(ke&-7177),"Unsupported template flags.");let dt;if(ee!==void 0&&ee!==W&&(dt=kLt(N,ee),typeof dt=="object"))return H.fail("Invalid raw text");if(W===void 0){if(dt===void 0)return H.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=dt}else dt!==void 0&&H.assert(W===dt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return W}function ss(N){let W=1024;return N&&(W|=128),W}function Rl(N,W,ee,ke){const dt=Yt(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ss(dt.templateFlags),dt}function x1(N,W,ee,ke){const dt=ge(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ss(dt.templateFlags),dt}function fd(N,W,ee,ke){return N===15?x1(N,W,ee,ke):Rl(N,W,ee,ke)}function $m(N,W,ee){return N=os(16,N,W,ee),fd(16,N,W,ee)}function _s(N,W,ee){return N=os(16,N,W,ee),fd(17,N,W,ee)}function np(N,W,ee){return N=os(16,N,W,ee),fd(18,N,W,ee)}function Um(N,W,ee){return N=os(16,N,W,ee),x1(15,N,W,ee)}function h3(N,W){H.assert(!N||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");const ee=se(229);return ee.expression=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.asteriskToken=N,ee.transformFlags|=ou(ee.expression)|ou(ee.asteriskToken)|1024|128|1048576,ee}function d_(N,W,ee){return N.expression!==ee||N.asteriskToken!==W?s(h3(W,ee),N):N}function ia(N){const W=se(230);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|1024|32768,W}function Xx(N,W){return N.expression!==W?s(ia(W),N):N}function e6(N,W,ee,ke,dt){const Bi=ge(231);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),Bi.transformFlags|=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.typeParameters)|Fs(Bi.heritageClauses)|Fs(Bi.members)|(Bi.typeParameters?1:0)|1024,Bi.jsDoc=void 0,Bi}function bg(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(e6(W,ee,ke,dt,Bi),N):N}function sb(){return se(232)}function b5(N,W){const ee=se(233);return ee.expression=d().parenthesizeLeftSideOfAccess(N,!1),ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.typeArguments)|1024,ee}function Xe(N,W,ee){return N.expression!==W||N.typeArguments!==ee?s(b5(W,ee),N):N}function Dt(N,W){const ee=se(234);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function oi(N,W,ee){return N.expression!==W||N.type!==ee?s(Dt(W,ee),N):N}function Ti(N){const W=se(235);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1,W}function Xi(N,W){return zU(N)?kr(N,W):N.expression!==W?s(Ti(W),N):N}function Rn(N,W){const ee=se(238);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function tn(N,W,ee){return N.expression!==W||N.type!==ee?s(Rn(W,ee),N):N}function bn(N){const W=se(235);return W.flags|=64,W.expression=d().parenthesizeLeftSideOfAccess(N,!0),W.transformFlags|=ou(W.expression)|1,W}function kr(N,W){return H.assert(!!(N.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),N.expression!==W?s(bn(W),N):N}function Cu(N,W){const ee=se(236);switch(ee.keywordToken=N,ee.name=W,ee.transformFlags|=ou(ee.name),N){case 105:ee.transformFlags|=1024;break;case 102:ee.transformFlags|=32;break;default:return H.assertNever(N)}return ee.flowNode=void 0,ee}function bu(N,W){return N.name!==W?s(Cu(N.keywordToken,W),N):N}function Eu(N,W){const ee=se(239);return ee.expression=N,ee.literal=W,ee.transformFlags|=ou(ee.expression)|ou(ee.literal)|1024,ee}function sa(N,W,ee){return N.expression!==W||N.literal!==ee?s(Eu(W,ee),N):N}function p0(){const N=se(240);return N.transformFlags|=1024,N}function o0(N,W){const ee=se(241);return ee.statements=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.statements),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee}function Gf(N,W){return N.statements!==W?s(o0(W,N.multiLine),N):N}function eC(N,W){const ee=se(243);return ee.modifiers=Ms(N),ee.declarationList=Ha(W)?nC(W):W,ee.transformFlags|=Fs(ee.modifiers)|ou(ee.declarationList),tE(ee.modifiers)&128&&(ee.transformFlags=1),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function t6(N,W,ee){return N.modifiers!==W||N.declarationList!==ee?s(eC(W,ee),N):N}function cD(){const N=se(242);return N.jsDoc=void 0,N}function i6(N){const W=se(244);return W.expression=d().parenthesizeExpressionOfExpressionStatement(N),W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function Gk(N,W){return N.expression!==W?s(i6(W),N):N}function lb(N,W,ee){const ke=se(245);return ke.expression=N,ke.thenStatement=x_(W),ke.elseStatement=x_(ee),ke.transformFlags|=ou(ke.expression)|ou(ke.thenStatement)|ou(ke.elseStatement),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function Jk(N,W,ee,ke){return N.expression!==W||N.thenStatement!==ee||N.elseStatement!==ke?s(lb(W,ee,ke),N):N}function $k(N,W){const ee=se(246);return ee.statement=x_(N),ee.expression=W,ee.transformFlags|=ou(ee.statement)|ou(ee.expression),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function az(N,W,ee){return N.statement!==W||N.expression!==ee?s($k(W,ee),N):N}function D9(N,W){const ee=se(247);return ee.expression=N,ee.statement=x_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function ww(N,W,ee){return N.expression!==W||N.statement!==ee?s(D9(W,ee),N):N}function tC(N,W,ee,ke){const dt=se(248);return dt.initializer=N,dt.condition=W,dt.incrementor=ee,dt.statement=x_(ke),dt.transformFlags|=ou(dt.initializer)|ou(dt.condition)|ou(dt.incrementor)|ou(dt.statement),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function x9(N,W,ee,ke,dt){return N.initializer!==W||N.condition!==ee||N.incrementor!==ke||N.statement!==dt?s(tC(W,ee,ke,dt),N):N}function v9(N,W,ee){const ke=se(249);return ke.initializer=N,ke.expression=W,ke.statement=x_(ee),ke.transformFlags|=ou(ke.initializer)|ou(ke.expression)|ou(ke.statement),ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.flowNode=void 0,ke}function Tw(N,W,ee,ke){return N.initializer!==W||N.expression!==ee||N.statement!==ke?s(v9(W,ee,ke),N):N}function Uk(N,W,ee,ke){const dt=se(250);return dt.awaitModifier=N,dt.initializer=W,dt.expression=d().parenthesizeExpressionForDisallowedComma(ee),dt.statement=x_(ke),dt.transformFlags|=ou(dt.awaitModifier)|ou(dt.initializer)|ou(dt.expression)|ou(dt.statement)|1024,N&&(dt.transformFlags|=128),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function Lw(N,W,ee,ke,dt){return N.awaitModifier!==W||N.initializer!==ee||N.expression!==ke||N.statement!==dt?s(Uk(W,ee,ke,dt),N):N}function C9(N){const W=se(251);return W.label=Mc(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function b9(N,W){return N.label!==W?s(C9(W),N):N}function qk(N){const W=se(252);return W.label=Mc(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function cb(N,W){return N.label!==W?s(qk(W),N):N}function db(N){const W=se(253);return W.expression=N,W.transformFlags|=ou(W.expression)|128|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function iC(N,W){return N.expression!==W?s(db(W),N):N}function y5(N,W){const ee=se(254);return ee.expression=N,ee.statement=x_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function hb(N,W,ee){return N.expression!==W||N.statement!==ee?s(y5(W,ee),N):N}function fE(N,W){const ee=se(255);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.caseBlock=W,ee.transformFlags|=ou(ee.expression)|ou(ee.caseBlock),ee.jsDoc=void 0,ee.flowNode=void 0,ee.possiblyExhaustive=!1,ee}function Vs(N,W,ee){return N.expression!==W||N.caseBlock!==ee?s(fE(W,ee),N):N}function Zk(N,W){const ee=se(256);return ee.label=Mc(N),ee.statement=x_(W),ee.transformFlags|=ou(ee.label)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function Nw(N,W,ee){return N.label!==W||N.statement!==ee?s(Zk(W,ee),N):N}function n6(N){const W=se(257);return W.expression=N,W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function k5(N,W){return N.expression!==W?s(n6(W),N):N}function h_(N,W,ee){const ke=se(258);return ke.tryBlock=N,ke.catchClause=W,ke.finallyBlock=ee,ke.transformFlags|=ou(ke.tryBlock)|ou(ke.catchClause)|ou(ke.finallyBlock),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function p4(N,W,ee,ke){return N.tryBlock!==W||N.catchClause!==ee||N.finallyBlock!==ke?s(h_(W,ee,ke),N):N}function Jf(){const N=se(259);return N.jsDoc=void 0,N.flowNode=void 0,N}function Hh(N,W,ee,ke){const dt=ge(260);return dt.name=Mc(N),dt.exclamationToken=W,dt.type=ee,dt.initializer=hF(ke),dt.transformFlags|=Kx(dt.name)|ou(dt.initializer)|(dt.exclamationToken??dt.type?1:0),dt.jsDoc=void 0,dt}function Em(N,W,ee,ke,dt){return N.name!==W||N.type!==ke||N.exclamationToken!==ee||N.initializer!==dt?s(Hh(W,ee,ke,dt),N):N}function nC(N,W=0){const ee=se(261);return ee.flags|=W&7,ee.declarations=oe(N),ee.transformFlags|=Fs(ee.declarations)|4194304,W&7&&(ee.transformFlags|=263168),W&4&&(ee.transformFlags|=4),ee}function Pw(N,W){return N.declarations!==W?s(nC(W,N.flags),N):N}function y9(N,W,ee,ke,dt,Bi,au){const za=ge(262);if(za.modifiers=Ms(N),za.asteriskToken=W,za.name=Mc(ee),za.typeParameters=Ms(ke),za.parameters=oe(dt),za.type=Bi,za.body=au,!za.body||tE(za.modifiers)&128)za.transformFlags=1;else{const i0=tE(za.modifiers)&1024,Qm=!!za.asteriskToken,p6=i0&&Qm;za.transformFlags=Fs(za.modifiers)|ou(za.asteriskToken)|Kx(za.name)|Fs(za.typeParameters)|Fs(za.parameters)|ou(za.type)|ou(za.body)&-67108865|(p6?128:i0?256:Qm?2048:0)|(za.typeParameters||za.type?1:0)|4194304}return za.typeArguments=void 0,za.jsDoc=void 0,za.locals=void 0,za.nextContainer=void 0,za.endFlowNode=void 0,za.returnFlowNode=void 0,za}function Yk(N,W,ee,ke,dt,Bi,au,za){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.typeParameters!==dt||N.parameters!==Bi||N.type!==au||N.body!==za?fb(y9(W,ee,ke,dt,Bi,au,za),N):N}function fb(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),ae(N,W)}function uC(N,W,ee,ke,dt){const Bi=ge(263);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),tE(Bi.modifiers)&128?Bi.transformFlags=1:(Bi.transformFlags|=Fs(Bi.modifiers)|Kx(Bi.name)|Fs(Bi.typeParameters)|Fs(Bi.heritageClauses)|Fs(Bi.members)|(Bi.typeParameters?1:0)|1024,Bi.transformFlags&8192&&(Bi.transformFlags|=1)),Bi.jsDoc=void 0,Bi}function Qk(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(uC(W,ee,ke,dt,Bi),N):N}function rC(N,W,ee,ke,dt){const Bi=ge(264);return Bi.modifiers=Ms(N),Bi.name=Mc(W),Bi.typeParameters=Ms(ee),Bi.heritageClauses=Ms(ke),Bi.members=oe(dt),Bi.transformFlags=1,Bi.jsDoc=void 0,Bi}function jd(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Bi?s(rC(W,ee,ke,dt,Bi),N):N}function F5(N,W,ee,ke){const dt=ge(265);return dt.modifiers=Ms(N),dt.name=Mc(W),dt.typeParameters=Ms(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function A5(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.type!==dt?s(F5(W,ee,ke,dt),N):N}function f3(N,W,ee){const ke=ge(266);return ke.modifiers=Ms(N),ke.name=Mc(W),ke.members=oe(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.name)|Fs(ke.members)|1,ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function pt(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.members!==ke?s(f3(W,ee,ke),N):N}function i1(N,W,ee,ke=0){const dt=ge(267);return dt.modifiers=Ms(N),dt.flags|=ke&2088,dt.name=W,dt.body=ee,tE(dt.modifiers)&128?dt.transformFlags=1:dt.transformFlags|=Fs(dt.modifiers)|ou(dt.name)|ou(dt.body)|1,dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function g4(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.body!==ke?s(i1(W,ee,ke,N.flags),N):N}function bh(N){const W=se(268);return W.statements=oe(N),W.transformFlags|=Fs(W.statements),W.jsDoc=void 0,W}function Mw(N,W){return N.statements!==W?s(bh(W),N):N}function S5(N){const W=se(269);return W.clauses=oe(N),W.transformFlags|=Fs(W.clauses),W.locals=void 0,W.nextContainer=void 0,W}function aC(N,W){return N.clauses!==W?s(S5(W),N):N}function m3(N){const W=ge(270);return W.name=Mc(N),W.transformFlags|=pV(W.name)|1,W.modifiers=void 0,W.jsDoc=void 0,W}function oz(N,W){return N.name!==W?Hs(m3(W),N):N}function Hs(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function yg(N,W,ee,ke){const dt=ge(271);return dt.modifiers=Ms(N),dt.name=Mc(ee),dt.isTypeOnly=W,dt.moduleReference=ke,dt.transformFlags|=Fs(dt.modifiers)|pV(dt.name)|ou(dt.moduleReference),r_(dt.moduleReference)||(dt.transformFlags|=1),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function Xk(N,W,ee,ke,dt){return N.modifiers!==W||N.isTypeOnly!==ee||N.name!==ke||N.moduleReference!==dt?s(yg(W,ee,ke,dt),N):N}function eF(N,W,ee,ke){const dt=se(272);return dt.modifiers=Ms(N),dt.importClause=W,dt.moduleSpecifier=ee,dt.attributes=dt.assertClause=ke,dt.transformFlags|=ou(dt.importClause)|ou(dt.moduleSpecifier),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function mb(N,W,ee,ke,dt){return N.modifiers!==W||N.importClause!==ee||N.moduleSpecifier!==ke||N.attributes!==dt?s(eF(W,ee,ke,dt),N):N}function pb(N,W,ee){const ke=ge(273);return ke.isTypeOnly=N,ke.name=W,ke.namedBindings=ee,ke.transformFlags|=ou(ke.name)|ou(ke.namedBindings),N&&(ke.transformFlags|=1),ke.transformFlags&=-67108865,ke}function up(N,W,ee,ke){return N.isTypeOnly!==W||N.name!==ee||N.namedBindings!==ke?s(pb(W,ee,ke),N):N}function kg(N,W){const ee=se(300);return ee.elements=oe(N),ee.multiLine=W,ee.token=132,ee.transformFlags|=4,ee}function p3(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(kg(W,ee),N):N}function tF(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function mE(N,W,ee){return N.name!==W||N.value!==ee?s(tF(W,ee),N):N}function iF(N,W){const ee=se(302);return ee.assertClause=N,ee.multiLine=W,ee}function zw(N,W,ee){return N.assertClause!==W||N.multiLine!==ee?s(iF(W,ee),N):N}function Ur(N,W,ee){const ke=se(300);return ke.token=ee??118,ke.elements=oe(N),ke.multiLine=W,ke.transformFlags|=4,ke}function ar(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(Ur(W,ee,N.token),N):N}function pE(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function kf(N,W,ee){return N.name!==W||N.value!==ee?s(pE(W,ee),N):N}function Iw(N){const W=ge(274);return W.name=N,W.transformFlags|=ou(W.name),W.transformFlags&=-67108865,W}function B5(N,W){return N.name!==W?s(Iw(W),N):N}function Rw(N){const W=ge(280);return W.name=N,W.transformFlags|=ou(W.name)|32,W.transformFlags&=-67108865,W}function gb(N,W){return N.name!==W?s(Rw(W),N):N}function uc(N){const W=se(275);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function yh(N,W){return N.elements!==W?s(uc(W),N):N}function dD(N,W,ee){const ke=ge(276);return ke.isTypeOnly=N,ke.propertyName=W,ke.name=ee,ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke}function f_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(dD(W,ee,ke),N):N}function g3(N,W,ee){const ke=ge(277);return ke.modifiers=Ms(N),ke.isExportEquals=W,ke.expression=W?d().parenthesizeRightSideOfBinary(64,void 0,ee):d().parenthesizeExpressionOfExportDefault(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.expression),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function $p(N,W,ee){return N.modifiers!==W||N.expression!==ee?s(g3(W,N.isExportEquals,ee),N):N}function oC(N,W,ee,ke,dt){const Bi=ge(278);return Bi.modifiers=Ms(N),Bi.isTypeOnly=W,Bi.exportClause=ee,Bi.moduleSpecifier=ke,Bi.attributes=Bi.assertClause=dt,Bi.transformFlags|=Fs(Bi.modifiers)|ou(Bi.exportClause)|ou(Bi.moduleSpecifier),Bi.transformFlags&=-67108865,Bi.jsDoc=void 0,Bi}function E3(N,W,ee,ke,dt,Bi){return N.modifiers!==W||N.isTypeOnly!==ee||N.exportClause!==ke||N.moduleSpecifier!==dt||N.attributes!==Bi?Ow(oC(W,ee,ke,dt,Bi),N):N}function Ow(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),s(N,W)}function m_(N){const W=se(279);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function jw(N,W){return N.elements!==W?s(m_(W),N):N}function gE(N,W,ee){const ke=se(281);return ke.isTypeOnly=N,ke.propertyName=Mc(W),ke.name=Mc(ee),ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function p_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(gE(W,ee,ke),N):N}function w5(){const N=ge(282);return N.jsDoc=void 0,N}function Vw(N){const W=se(283);return W.expression=N,W.transformFlags|=ou(W.expression),W.transformFlags&=-67108865,W}function k9(N,W){return N.expression!==W?s(Vw(W),N):N}function sz(N){return se(N)}function F9(N,W,ee=!1){const ke=B0(N,ee?W&&d().parenthesizeNonArrayTypeOfPostfixType(W):W);return ke.postfix=ee,ke}function B0(N,W){const ee=se(N);return ee.type=W,ee}function Eb(N,W,ee){return W.type!==ee?s(F9(N,ee,W.postfix),W):W}function A9(N,W,ee){return W.type!==ee?s(B0(N,ee),W):W}function rp(N,W){const ee=ge(324);return ee.parameters=Ms(N),ee.type=W,ee.transformFlags=Fs(ee.parameters)|(ee.type?1:0),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee.typeArguments=void 0,ee}function sC(N,W,ee){return N.parameters!==W||N.type!==ee?s(rp(W,ee),N):N}function S9(N,W=!1){const ee=ge(329);return ee.jsDocPropertyTags=Ms(N),ee.isArrayType=W,ee}function lz(N,W,ee){return N.jsDocPropertyTags!==W||N.isArrayType!==ee?s(S9(W,ee),N):N}function nF(N){const W=se(316);return W.type=N,W}function ru(N,W){return N.type!==W?s(nF(W),N):N}function v1(N,W,ee){const ke=ge(330);return ke.typeParameters=Ms(N),ke.parameters=oe(W),ke.type=ee,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke}function Ma(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?s(v1(W,ee,ke),N):N}function lf(N){const W=ice(N.kind);return N.tagName.escapedText===Al(W)?N.tagName:Ge(W)}function EE(N,W,ee){const ke=se(N);return ke.tagName=W,ke.comment=ee,ke}function ap(N,W,ee){const ke=ge(N);return ke.tagName=W,ke.comment=ee,ke}function Un(N,W,ee,ke){const dt=EE(352,N??Ge("template"),ke);return dt.constraint=W,dt.typeParameters=oe(ee),dt}function _b(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.constraint!==ee||N.typeParameters!==ke||N.comment!==dt?s(Un(W,ee,ke,dt),N):N}function lC(N,W,ee,ke){const dt=ap(353,N??Ge("typedef"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Vce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function wd(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(lC(W,ee,ke,dt),N):N}function _E(N,W,ee,ke,dt,Bi){const au=ap(348,N??Ge("param"),Bi);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function DE(N,W=lf(N),ee,ke,dt,Bi,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Bi||N.comment!==au?s(_E(W,ee,ke,dt,Bi,au),N):N}function u6(N,W,ee,ke,dt,Bi){const au=ap(355,N??Ge("prop"),Bi);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function B9(N,W=lf(N),ee,ke,dt,Bi,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Bi||N.comment!==au?s(u6(W,ee,ke,dt,Bi,au),N):N}function hD(N,W,ee,ke){const dt=ap(345,N??Ge("callback"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Vce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function cC(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(hD(W,ee,ke,dt),N):N}function dC(N,W,ee){const ke=EE(346,N??Ge("overload"),ee);return ke.typeExpression=W,ke}function _3(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(dC(W,ee,ke),N):N}function g_(N,W,ee){const ke=EE(335,N??Ge("augments"),ee);return ke.class=W,ke}function uF(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(g_(W,ee,ke),N):N}function fD(N,W,ee){const ke=EE(336,N??Ge("implements"),ee);return ke.class=W,ke}function r6(N,W,ee){const ke=EE(354,N??Ge("see"),ee);return ke.name=W,ke}function Db(N,W,ee,ke){return N.tagName!==W||N.name!==ee||N.comment!==ke?s(r6(W,ee,ke),N):N}function w9(N){const W=se(317);return W.name=N,W}function rF(N,W){return N.name!==W?s(w9(W),N):N}function xb(N,W){const ee=se(318);return ee.left=N,ee.right=W,ee.transformFlags|=ou(ee.left)|ou(ee.right),ee}function E4(N,W,ee){return N.left!==W||N.right!==ee?s(xb(W,ee),N):N}function hC(N,W){const ee=se(331);return ee.name=N,ee.text=W,ee}function yc(N,W,ee){return N.name!==W?s(hC(W,ee),N):N}function md(N,W){const ee=se(332);return ee.name=N,ee.text=W,ee}function T9(N,W,ee){return N.name!==W?s(md(W,ee),N):N}function O1(N,W){const ee=se(333);return ee.name=N,ee.text=W,ee}function Ff(N,W,ee){return N.name!==W?s(O1(W,ee),N):N}function vb(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(fD(W,ee,ke),N):N}function _4(N,W,ee){return EE(N,W??Ge(ice(N)),ee)}function fC(N,W,ee=lf(W),ke){return W.tagName!==ee||W.comment!==ke?s(_4(N,ee,ke),W):W}function T5(N,W,ee,ke){const dt=EE(N,W??Ge(ice(N)),ke);return dt.typeExpression=ee,dt}function n1(N,W,ee=lf(W),ke,dt){return W.tagName!==ee||W.typeExpression!==ke||W.comment!==dt?s(T5(N,ee,ke,dt),W):W}function aF(N,W){return EE(334,N,W)}function op(N,W,ee){return N.tagName!==W||N.comment!==ee?s(aF(W,ee),N):N}function a6(N,W,ee){const ke=ap(347,N??Ge(ice(347)),ee);return ke.typeExpression=W,ke.locals=void 0,ke.nextContainer=void 0,ke}function Hw(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(a6(W,ee,ke),N):N}function R0(N){const W=se(328);return W.text=N,W}function Kw(N,W){return N.text!==W?s(R0(W),N):N}function oF(N,W){const ee=se(327);return ee.comment=N,ee.tags=Ms(W),ee}function mC(N,W,ee){return N.comment!==W||N.tags!==ee?s(oF(W,ee),N):N}function L9(N,W,ee){const ke=se(284);return ke.openingElement=N,ke.children=oe(W),ke.closingElement=ee,ke.transformFlags|=ou(ke.openingElement)|Fs(ke.children)|ou(ke.closingElement)|2,ke}function Kh(N,W,ee,ke){return N.openingElement!==W||N.children!==ee||N.closingElement!==ke?s(L9(W,ee,ke),N):N}function D3(N,W,ee){const ke=se(285);return ke.tagName=N,ke.typeArguments=Ms(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,ke.typeArguments&&(ke.transformFlags|=1),ke}function mD(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(D3(W,ee,ke),N):N}function Cb(N,W,ee){const ke=se(286);return ke.tagName=N,ke.typeArguments=Ms(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,W&&(ke.transformFlags|=1),ke}function _m(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(Cb(W,ee,ke),N):N}function N9(N){const W=se(287);return W.tagName=N,W.transformFlags|=ou(W.tagName)|2,W}function o6(N,W){return N.tagName!==W?s(N9(W),N):N}function qm(N,W,ee){const ke=se(288);return ke.openingFragment=N,ke.children=oe(W),ke.closingFragment=ee,ke.transformFlags|=ou(ke.openingFragment)|Fs(ke.children)|ou(ke.closingFragment)|2,ke}function bb(N,W,ee,ke){return N.openingFragment!==W||N.children!==ee||N.closingFragment!==ke?s(qm(W,ee,ke),N):N}function L5(N,W){const ee=se(12);return ee.text=N,ee.containsOnlyTriviaWhiteSpaces=!!W,ee.transformFlags|=2,ee}function cz(N,W,ee){return N.text!==W||N.containsOnlyTriviaWhiteSpaces!==ee?s(L5(W,ee),N):N}function P9(){const N=se(289);return N.transformFlags|=2,N}function M9(){const N=se(290);return N.transformFlags|=2,N}function z9(N,W){const ee=ge(291);return ee.name=N,ee.initializer=W,ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|2,ee}function pC(N,W,ee){return N.name!==W||N.initializer!==ee?s(z9(W,ee),N):N}function $f(N){const W=ge(292);return W.properties=oe(N),W.transformFlags|=Fs(W.properties)|2,W}function x3(N,W){return N.properties!==W?s($f(W),N):N}function I9(N){const W=se(293);return W.expression=N,W.transformFlags|=ou(W.expression)|2,W}function R9(N,W){return N.expression!==W?s(I9(W),N):N}function Ks(N,W){const ee=se(294);return ee.dotDotDotToken=N,ee.expression=W,ee.transformFlags|=ou(ee.dotDotDotToken)|ou(ee.expression)|2,ee}function _u(N,W){return N.expression!==W?s(Ks(N.dotDotDotToken,W),N):N}function Dm(N,W){const ee=se(295);return ee.namespace=N,ee.name=W,ee.transformFlags|=ou(ee.namespace)|ou(ee.name)|2,ee}function cf(N,W,ee){return N.namespace!==W||N.name!==ee?s(Dm(W,ee),N):N}function yb(N,W){const ee=se(296);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.statements=oe(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.statements),ee.jsDoc=void 0,ee}function Ww(N,W,ee){return N.expression!==W||N.statements!==ee?s(yb(W,ee),N):N}function gC(N){const W=se(297);return W.statements=oe(N),W.transformFlags=Fs(W.statements),W}function kb(N,W){return N.statements!==W?s(gC(W),N):N}function s6(N,W){const ee=se(298);switch(ee.token=N,ee.types=oe(W),ee.transformFlags|=Fs(ee.types),N){case 96:ee.transformFlags|=1024;break;case 119:ee.transformFlags|=1;break;default:return H.assertNever(N)}return ee}function Zm(N,W){return N.types!==W?s(s6(N.token,W),N):N}function sp(N,W){const ee=se(299);return ee.variableDeclaration=V9(N),ee.block=W,ee.transformFlags|=ou(ee.variableDeclaration)|ou(ee.block)|(N?0:64),ee.locals=void 0,ee.nextContainer=void 0,ee}function l6(N,W,ee){return N.variableDeclaration!==W||N.block!==ee?s(sp(W,ee),N):N}function Up(N,W){const ee=ge(303);return ee.name=Mc(N),ee.initializer=d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=Kx(ee.name)|ou(ee.initializer),ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function lp(N,W,ee){return N.name!==W||N.initializer!==ee?N5(Up(W,ee),N):N}function N5(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken),s(N,W)}function Fb(N,W){const ee=ge(304);return ee.name=Mc(N),ee.objectAssignmentInitializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=pV(ee.name)|ou(ee.objectAssignmentInitializer)|1024,ee.equalsToken=void 0,ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function Pc(N,W,ee){return N.name!==W||N.objectAssignmentInitializer!==ee?dz(Fb(W,ee),N):N}function dz(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken,N.equalsToken=W.equalsToken),s(N,W)}function D4(N){const W=ge(305);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|128|65536,W.jsDoc=void 0,W}function Gw(N,W){return N.expression!==W?s(D4(W),N):N}function j1(N,W){const ee=ge(306);return ee.name=Mc(N),ee.initializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|1,ee.jsDoc=void 0,ee}function EC(N,W,ee){return N.name!==W||N.initializer!==ee?s(j1(W,ee),N):N}function Ab(N,W,ee){const ke=u.createBaseSourceFileNode(312);return ke.statements=oe(N),ke.endOfFileToken=W,ke.flags|=ee,ke.text="",ke.fileName="",ke.path="",ke.resolvedPath="",ke.originalFileName="",ke.languageVersion=0,ke.languageVariant=0,ke.scriptKind=0,ke.isDeclarationFile=!1,ke.hasNoDefaultLib=!1,ke.transformFlags|=Fs(ke.statements)|ou(ke.endOfFileToken),ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.nodeCount=0,ke.identifierCount=0,ke.symbolCount=0,ke.parseDiagnostics=void 0,ke.bindDiagnostics=void 0,ke.bindSuggestionDiagnostics=void 0,ke.lineMap=void 0,ke.externalModuleIndicator=void 0,ke.setExternalModuleIndicator=void 0,ke.pragmas=void 0,ke.checkJsDirective=void 0,ke.referencedFiles=void 0,ke.typeReferenceDirectives=void 0,ke.libReferenceDirectives=void 0,ke.amdDependencies=void 0,ke.commentDirectives=void 0,ke.identifiers=void 0,ke.packageJsonLocations=void 0,ke.packageJsonScope=void 0,ke.imports=void 0,ke.moduleAugmentations=void 0,ke.ambientModuleNames=void 0,ke.classifiableNames=void 0,ke.impliedNodeFormat=void 0,ke}function sF(N){const W=Object.create(N.redirectTarget);return Object.defineProperties(W,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ee){this.redirectInfo.redirectTarget.id=ee}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ee){this.redirectInfo.redirectTarget.symbol=ee}}}),W.redirectInfo=N,W}function Jw(N){const W=sF(N.redirectInfo);return W.flags|=N.flags&-17,W.fileName=N.fileName,W.path=N.path,W.resolvedPath=N.resolvedPath,W.originalFileName=N.originalFileName,W.packageJsonLocations=N.packageJsonLocations,W.packageJsonScope=N.packageJsonScope,W.emitNode=void 0,W}function x4(N){const W=u.createBaseSourceFileNode(312);W.flags|=N.flags&-17;for(const ee in N)if(!(gu(W,ee)||!gu(N,ee))){if(ee==="emitNode"){W.emitNode=void 0;continue}W[ee]=N[ee]}return W}function Ol(N){const W=N.redirectInfo?Jw(N):x4(N);return su(W,N),W}function xE(N,W,ee,ke,dt,Bi,au){const za=Ol(N);return za.statements=oe(W),za.isDeclarationFile=ee,za.referencedFiles=ke,za.typeReferenceDirectives=dt,za.hasNoDefaultLib=Bi,za.libReferenceDirectives=au,za.transformFlags=Fs(za.statements)|ou(za.endOfFileToken),za}function c6(N,W,ee=N.isDeclarationFile,ke=N.referencedFiles,dt=N.typeReferenceDirectives,Bi=N.hasNoDefaultLib,au=N.libReferenceDirectives){return N.statements!==W||N.isDeclarationFile!==ee||N.referencedFiles!==ke||N.typeReferenceDirectives!==dt||N.hasNoDefaultLib!==Bi||N.libReferenceDirectives!==au?s(xE(N,W,ee,ke,dt,Bi,au),N):N}function v3(N,W=_t){const ee=se(313);return ee.prepends=W,ee.sourceFiles=N,ee.syntheticFileReferences=void 0,ee.syntheticTypeReferences=void 0,ee.syntheticLibReferences=void 0,ee.hasNoDefaultLib=void 0,ee}function _C(N,W,ee=_t){return N.sourceFiles!==W||N.prepends!==ee?s(v3(W,ee),N):N}function $w(N,W,ee){const ke=se(314);return ke.prologues=N,ke.syntheticReferences=W,ke.texts=ee,ke.fileName="",ke.text="",ke.referencedFiles=_t,ke.libReferenceDirectives=_t,ke.getLineAndCharacterOfPosition=dt=>s0(ke,dt),ke}function d6(N,W){const ee=se(N);return ee.data=W,ee}function R(N){return d6(307,N)}function be(N,W){const ee=d6(308,N);return ee.texts=W,ee}function Ht(N,W){return d6(W?310:309,N)}function Oi(N){const W=se(311);return W.data=N.data,W.section=N,W}function yu(){const N=se(315);return N.javascriptText="",N.declarationText="",N}function Jr(N,W=!1,ee){const ke=se(237);return ke.type=N,ke.isSpread=W,ke.tupleNameSource=ee,ke}function br(N){const W=se(358);return W._children=N,W}function Ea(N){const W=se(359);return W.original=N,Pt(W,N),W}function Ao(N,W){const ee=se(360);return ee.expression=N,ee.original=W,ee.transformFlags|=ou(ee.expression)|1,Pt(ee,W),ee}function Af(N,W){return N.expression!==W?s(Ao(W,N.original),N):N}function Uf(N){if(sl(N)&&!zN(N)&&!N.original&&!N.emitNode&&!N.id){if(UP(N))return N.elements;if(Xn(N)&&Zke(N.operatorToken))return[N.left,N.right]}return N}function Fr(N){const W=se(361);return W.elements=oe(z0(N,Uf)),W.transformFlags|=Fs(W.elements),W}function vE(N,W){return N.elements!==W?s(Fr(W),N):N}function gn(N,W){const ee=se(362);return ee.expression=N,ee.thisArg=W,ee.transformFlags|=ou(ee.expression)|ou(ee.thisArg),ee}function h6(N,W,ee){return N.expression!==W||N.thisArg!==ee?s(gn(W,ee),N):N}function P5(N){const W=xe(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),xV(W,{...N.emitNode.autoGenerate}),W}function lF(N){const W=xe(N.escapedText);W.flags|=N.flags&-17,W.jsDoc=N.jsDoc,W.flowNode=N.flowNode,W.symbol=N.symbol,W.transformFlags=N.transformFlags,su(W,N);const ee=gk(N);return ee&&l5(W,ee),W}function DC(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),xV(W,{...N.emitNode.autoGenerate}),W}function O9(N){const W=ft(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),W}function cF(N){if(N===void 0)return N;if(la(N))return Ol(N);if(al(N))return P5(N);if(at(N))return lF(N);if(Uy(N))return DC(N);if(ea(N))return O9(N);const W=GO(N.kind)?u.createBaseNode(N.kind):u.createBaseTokenNode(N.kind);W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N);for(const ee in N)gu(W,ee)||!gu(N,ee)||(W[ee]=N[ee]);return W}function E_(N,W,ee){return Mn(Jm(void 0,void 0,void 0,void 0,W?[W]:[],void 0,o0(N,!0)),void 0,ee?[ee]:[])}function M5(N,W,ee){return Mn(f4(void 0,void 0,W?[W]:[],void 0,void 0,o0(N,!0)),void 0,ee?[ee]:[])}function C3(){return Wf(Ce("0"))}function Uw(N){return g3(void 0,!1,N)}function j9(N){return oC(void 0,!1,m_([gE(!1,void 0,N)]))}function ZK(N,W){return W==="null"?Y.createStrictEquality(N,It()):W==="undefined"?Y.createStrictEquality(N,C3()):Y.createStrictEquality(R1(N),Se(W))}function hz(N,W){return W==="null"?Y.createStrictInequality(N,It()):W==="undefined"?Y.createStrictInequality(N,C3()):Y.createStrictInequality(R1(N),Se(W))}function __(N,W,ee){return $y(N)?Fo(m0(N,void 0,W),void 0,void 0,ee):Mn(S0(N,W),void 0,ee)}function pD(N,W,ee){return __(N,"bind",[W,...ee])}function qw(N,W,ee){return __(N,"call",[W,...ee])}function D_(N,W,ee){return __(N,"apply",[W,ee])}function xC(N,W,ee){return __(Ge(N),W,ee)}function mte(N,W){return __(N,"slice",W===void 0?[]:[m6(W)])}function CE(N,W){return __(N,"concat",W)}function dF(N,W,ee){return xC("Object","defineProperty",[N,m6(W),ee])}function YK(N,W){return xC("Object","getOwnPropertyDescriptor",[N,m6(W)])}function he(N,W,ee){return xC("Reflect","get",ee?[N,W,ee]:[N,W])}function Re(N,W,ee,ke){return xC("Reflect","set",ke?[N,W,ee,ke]:[N,W,ee])}function nt(N,W,ee){return ee?(N.push(Up(W,ee)),!0):!1}function Nt(N,W){const ee=[];nt(ee,"enumerable",m6(N.enumerable)),nt(ee,"configurable",m6(N.configurable));let ke=nt(ee,"writable",m6(N.writable));ke=nt(ee,"value",N.value)||ke;let dt=nt(ee,"get",N.get);return dt=nt(ee,"set",N.set)||dt,H.assert(!(ke&&dt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ss(ee,!W)}function bi(N,W){switch(N.kind){case 217:return ip(N,W);case 216:return ql(N,N.type,W);case 234:return oi(N,W,N.type);case 238:return tn(N,W,N.type);case 235:return Xi(N,W);case 360:return Af(N,W)}}function en(N){return Cf(N)&&sl(N)&&sl(Lv(N))&&sl(nE(N))&&!Oe(DB(N))&&!Oe(DV(N))}function zu(N,W,ee=15){return N&&CY(N,ee)&&!en(N)?bi(N,zu(N.expression,W)):W}function Hr(N,W,ee){if(!W)return N;const ke=Nw(W,W.label,V2(W.statement)?Hr(N,W.statement):N);return ee&&ee(W),ke}function Lr(N,W){const ee=l0(N);switch(ee.kind){case 80:return W;case 110:case 9:case 10:case 11:return!1;case 209:return ee.elements.length!==0;case 210:return ee.properties.length>0;default:return!0}}function gr(N,W,ee,ke=!1){const dt=Dc(N,15);let Bi,au;return nf(dt)?(Bi=St(),au=dt):HP(dt)?(Bi=St(),au=ee!==void 0&&ee<2?Pt(Ge("_super"),dt):dt):bs(dt)&8192?(Bi=C3(),au=d().parenthesizeLeftSideOfAccess(dt,!1)):Iu(dt)?Lr(dt.expression,ke)?(Bi=Ae(W),au=S0(Pt(Y.createAssignment(Bi,dt.expression),dt.expression),dt.name),Pt(au,dt)):(Bi=dt.expression,au=dt):U0(dt)?Lr(dt.expression,ke)?(Bi=Ae(W),au=uh(Pt(Y.createAssignment(Bi,dt.expression),dt.expression),dt.argumentExpression),Pt(au,dt)):(Bi=dt.expression,au=dt):(Bi=C3(),au=d().parenthesizeLeftSideOfAccess(N,!1)),{target:au,thisArg:Bi}}function fa(N,W){return S0(Nc(Ss([et(void 0,"value",[Zu(void 0,void 0,N,void 0,void 0,void 0)],o0([i6(W)]))])),"value")}function _0(N){return N.length>10?Fr(N):nn(N,Y.createComma)}function qs(N,W,ee,ke=0,dt){const Bi=dt?N&&TU(N):Za(N);if(Bi&&at(Bi)&&!al(Bi)){const au=ks(Pt(cF(Bi),Bi),Bi.parent);return ke|=bs(Bi),ee||(ke|=96),W||(ke|=3072),ke&&Zn(au,ke),au}return Je(N)}function Ws(N,W,ee){return qs(N,W,ee,98304)}function v4(N,W,ee,ke){return qs(N,W,ee,32768,ke)}function qp(N,W,ee){return qs(N,W,ee,16384)}function f6(N,W,ee){return qs(N,W,ee)}function b3(N,W,ee,ke){const dt=S0(N,sl(W)?W:cF(W));Pt(dt,W);let Bi=0;return ke||(Bi|=96),ee||(Bi|=3072),Bi&&Zn(dt,Bi),dt}function Vd(N,W,ee,ke){return N&&Yu(W,32)?b3(N,qs(W),ee,ke):qp(W,ee,ke)}function gD(N,W,ee,ke){const dt=Yw(N,W,0,ee);return mz(N,W,dt,ke)}function fz(N){return us(N.expression)&&N.expression.text==="use strict"}function Zw(){return vh(i6(Se("use strict")))}function Yw(N,W,ee=0,ke){H.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");let dt=!1;const Bi=N.length;for(;eeza&&Qm.splice(dt,0,...W.slice(za,i0)),za>au&&Qm.splice(ke,0,...W.slice(au,za)),au>Bi&&Qm.splice(ee,0,...W.slice(Bi,au)),Bi>0)if(ee===0)Qm.splice(0,0,...W.slice(0,Bi));else{const p6=new Map;for(let g6=0;g6=0;g6--){const vC=W[g6];p6.has(vC.expression.text)||Qm.unshift(vC)}}return g2(N)?Pt(oe(Qm,N.hasTrailingComma),N):N}function gz(N,W){let ee;return typeof W=="number"?ee=Ni(W):ee=W,Bl(N)?Ai(N,ee,N.name,N.constraint,N.default):io(N)?aa(N,ee,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):WP(N)?Ui(N,ee,N.typeParameters,N.parameters,N.type):Mm(N)?jn(N,ee,N.name,N.questionToken,N.type):ko(N)?Dn(N,ee,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):n3(N)?tu(N,ee,N.name,N.questionToken,N.typeParameters,N.parameters,N.type):dc(N)?Da(N,ee,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):hc(N)?Et(N,ee,N.parameters,N.body):zm(N)?Xt(N,ee,N.name,N.parameters,N.type,N.body):jf(N)?gt(N,ee,N.name,N.parameters,N.body):Ek(N)?Ei(N,ee,N.parameters,N.type):A0(N)?jh(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):q0(N)?c3(N,ee,N.typeParameters,N.parameters,N.type,N.equalsGreaterThanToken,N.body):Xd(N)?bg(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Jl(N)?t6(N,ee,N.declarationList):ed(N)?Yk(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):Wc(N)?Qk(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):xh(N)?jd(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):jp(N)?A5(N,ee,N.name,N.typeParameters,N.type):Iv(N)?pt(N,ee,N.name,N.members):_c(N)?g4(N,ee,N.name,N.body):E1(N)?Xk(N,ee,N.isTypeOnly,N.name,N.moduleReference):Sd(N)?mb(N,ee,N.importClause,N.moduleSpecifier,N.attributes):tc(N)?$p(N,ee,N.expression):Gc(N)?E3(N,ee,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes):H.assertNever(N)}function C4(N,W){return io(N)?aa(N,W,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):ko(N)?Dn(N,W,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):dc(N)?Da(N,W,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):zm(N)?Xt(N,W,N.name,N.parameters,N.type,N.body):jf(N)?gt(N,W,N.name,N.parameters,N.body):Xd(N)?bg(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):Wc(N)?Qk(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):H.assertNever(N)}function Qw(N,W){switch(N.kind){case 177:return Xt(N,N.modifiers,W,N.parameters,N.type,N.body);case 178:return gt(N,N.modifiers,W,N.parameters,N.body);case 174:return Da(N,N.modifiers,N.asteriskToken,W,N.questionToken,N.typeParameters,N.parameters,N.type,N.body);case 173:return tu(N,N.modifiers,W,N.questionToken,N.typeParameters,N.parameters,N.type);case 172:return Dn(N,N.modifiers,W,N.questionToken??N.exclamationToken,N.type,N.initializer);case 171:return jn(N,N.modifiers,W,N.questionToken,N.type);case 303:return lp(N,W,N.initializer)}}function Ms(N){return N?oe(N):void 0}function Mc(N){return typeof N=="string"?Ge(N):N}function m6(N){return typeof N=="string"?Se(N):typeof N=="number"?Ce(N):typeof N=="boolean"?N?ei():ht():N}function hF(N){return N&&d().parenthesizeExpressionForDisallowedComma(N)}function gte(N){return typeof N=="number"?Ie(N):N}function x_(N){return N&&yce(N)?Pt(su(cD(),N),N):N}function V9(N){return typeof N=="string"||N&&!ua(N)?Hh(N,void 0,void 0,void 0):N}}function bLt(t,u){return t!==u&&Pt(t,u),t}function yLt(t,u){return t!==u&&(su(t,u),Pt(t,u)),t}function ice(t){switch(t){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return H.fail(`Unsupported kind: ${H.formatSyntaxKind(t)}`)}}function kLt(t,u){switch(s5||(s5=YD(99,!1,0)),t){case 15:s5.setText("`"+u+"`");break;case 16:s5.setText("`"+u+"${");break;case 17:s5.setText("}"+u+"${");break;case 18:s5.setText("}"+u+"`");break}let s=s5.scan();if(s===20&&(s=s5.reScanTemplateToken(!1)),s5.isUnterminated())return s5.setText(void 0),Ike;let d;switch(s){case 15:case 16:case 17:case 18:d=s5.getTokenValue();break}return d===void 0||s5.scan()!==1?(s5.setText(void 0),Ike):(s5.setText(void 0),d)}function Kx(t){return t&&at(t)?pV(t):ou(t)}function pV(t){return ou(t)&-67108865}function FLt(t,u){return u|t.transformFlags&134234112}function ou(t){if(!t)return 0;const u=t.transformFlags&~Mke(t.kind);return mh(t)&&Sc(t.name)?FLt(t.name,u):u}function Fs(t){return t?t.transformFlags:0}function zYe(t){let u=0;for(const s of t)u|=ou(s);t.transformFlags=u}function Mke(t){if(t>=182&&t<=205)return-2;switch(t){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function yZ(t){return t.flags|=16,t}function nce(t,u,s){let d,f,p,E,v,b,B,k,T,M;Ja(t)?(p="",E=t,v=t.length,b=u,B=s):(H.assert(u==="js"||u==="dts"),p=(u==="js"?t.javascriptPath:t.declarationPath)||"",b=u==="js"?t.javascriptMapPath:t.declarationMapPath,k=()=>u==="js"?t.javascriptText:t.declarationText,T=()=>u==="js"?t.javascriptMapText:t.declarationMapText,v=()=>k().length,t.buildInfo&&t.buildInfo.bundle&&(H.assert(s===void 0||typeof s=="boolean"),d=s,f=u==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,M=t.oldFileOfCurrentEmit));const z=M?SLt(H.checkDefined(f)):ALt(f,d,v);return z.fileName=p,z.sourceMapPath=b,z.oldFileOfCurrentEmit=M,k&&T?(Object.defineProperty(z,"text",{get:k}),Object.defineProperty(z,"sourceMapText",{get:T})):(H.assert(!M),z.text=E??"",z.sourceMapText=B),z}function ALt(t,u,s){let d,f,p,E,v,b,B,k;for(const M of t?t.sections:_t)switch(M.kind){case"prologue":d=xi(d,Pt(q.createUnparsedPrologue(M.data),M));break;case"emitHelpers":f=xi(f,hce().get(M.data));break;case"no-default-lib":k=!0;break;case"reference":p=xi(p,{pos:-1,end:-1,fileName:M.data});break;case"type":E=xi(E,{pos:-1,end:-1,fileName:M.data});break;case"type-import":E=xi(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:99});break;case"type-require":E=xi(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:1});break;case"lib":v=xi(v,{pos:-1,end:-1,fileName:M.data});break;case"prepend":let z;for(const j of M.texts)(!u||j.kind!=="internal")&&(z=xi(z,Pt(q.createUnparsedTextLike(j.data,j.kind==="internal"),j)));b=yn(b,z),B=xi(B,q.createUnparsedPrepend(M.data,z??_t));break;case"internal":if(u){B||(B=[]);break}case"text":B=xi(B,Pt(q.createUnparsedTextLike(M.data,M.kind==="internal"),M));break;default:H.assertNever(M)}if(!B){const M=q.createUnparsedTextLike(void 0,!1);wP(M,0,typeof s=="function"?s():s),B=[M]}const T=a_.createUnparsedSource(d??_t,void 0,B);return pB(d,T),pB(B,T),pB(b,T),T.hasNoDefaultLib=k,T.helpers=f,T.referencedFiles=p||_t,T.typeReferenceDirectives=E,T.libReferenceDirectives=v||_t,T}function SLt(t){let u,s;for(const f of t.sections)switch(f.kind){case"internal":case"text":u=xi(u,Pt(q.createUnparsedTextLike(f.data,f.kind==="internal"),f));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=xi(s,Pt(q.createUnparsedSyntheticReference(f),f));break;case"prologue":case"emitHelpers":case"prepend":break;default:H.assertNever(f)}const d=q.createUnparsedSource(_t,s,u??_t);return pB(s,d),pB(u,d),d.helpers=Vt(t.sources&&t.sources.helpers,f=>hce().get(f)),d}function IYe(t,u,s,d,f,p){return Ja(t)?rce(void 0,t,s,d,void 0,u,f,p):uce(t,u,s,d,f,p)}function uce(t,u,s,d,f,p,E,v){const b=a_.createInputFiles();b.javascriptPath=u,b.javascriptMapPath=s,b.declarationPath=d,b.declarationMapPath=f,b.buildInfoPath=p;const B=new Map,k=j=>{if(j===void 0)return;let J=B.get(j);return J===void 0&&(J=t(j),B.set(j,J!==void 0?J:!1)),J!==!1?J:void 0},T=j=>{const J=k(j);return J!==void 0?J:`/* Input file ${j} was missing */\r -`};let M;return Object.defineProperties(b,{javascriptText:{get:()=>T(u)},javascriptMapText:{get:()=>k(s)},declarationText:{get:()=>T(H.checkDefined(d))},declarationMapText:{get:()=>k(f)},buildInfo:{get:()=>{if(M===void 0&&p)if(E!=null&&E.getBuildInfo)M=E.getBuildInfo(p,v.configFilePath)??!1;else{const j=k(p);M=j!==void 0?_Q(p,j)??!1:!1}return M||void 0}}}),b}function rce(t,u,s,d,f,p,E,v,b,B,k){const T=a_.createInputFiles();return T.javascriptPath=t,T.javascriptText=u,T.javascriptMapPath=s,T.javascriptMapText=d,T.declarationPath=f,T.declarationText=p,T.declarationMapPath=E,T.declarationMapText=v,T.buildInfoPath=b,T.buildInfo=B,T.oldFileOfCurrentEmit=k,T}function RYe(t,u,s){return new(jYe||(jYe=Qd.getSourceMapSourceConstructor()))(t,u,s)}function su(t,u){if(t.original!==u&&(t.original=u,u)){const s=u.emitNode;s&&(t.emitNode=BLt(s,t.emitNode))}return t}function BLt(t,u){const{flags:s,internalFlags:d,leadingComments:f,trailingComments:p,commentRange:E,sourceMapRange:v,tokenSourceMapRanges:b,constantValue:B,helpers:k,startsOnNewLine:T,snippetElement:M,classThis:z,assignedName:j}=t;if(u||(u={}),s&&(u.flags=s),d&&(u.internalFlags=d&-9),f&&(u.leadingComments=yn(f.slice(),u.leadingComments)),p&&(u.trailingComments=yn(p.slice(),u.trailingComments)),E&&(u.commentRange=E),v&&(u.sourceMapRange=v),b&&(u.tokenSourceMapRanges=wLt(b,u.tokenSourceMapRanges)),B!==void 0&&(u.constantValue=B),k)for(const J of k)u.helpers=e0(u.helpers,J);return T!==void 0&&(u.startsOnNewLine=T),M!==void 0&&(u.snippetElement=M),z&&(u.classThis=z),j&&(u.assignedName=j),u}function wLt(t,u){u||(u=[]);for(const s in t)u[s]=t[s];return u}var kZ,ace,zke,s5,Ike,gV,OYe,q,jYe,TLt=o({"src/compiler/factory/nodeFactory.ts"(){Bo(),kZ=0,ace=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(ace||{}),zke=[],Ike={},gV=Lke(),OYe={createBaseSourceFileNode:t=>yZ(gV.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>yZ(gV.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>yZ(gV.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>yZ(gV.createBaseTokenNode(t)),createBaseNode:t=>yZ(gV.createBaseNode(t))},q=mV(4,OYe)}});function P1(t){if(t.emitNode)H.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(zN(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const u=zn(Ua(zn(t)))??H.fail("Could not determine parsed source file.");P1(u).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function oce(t){var u,s;const d=(s=(u=zn(Ua(t)))==null?void 0:u.emitNode)==null?void 0:s.annotatedNodes;if(d)for(const f of d)f.emitNode=void 0}function EV(t){const u=P1(t);return u.flags|=3072,u.leadingComments=void 0,u.trailingComments=void 0,t}function Zn(t,u){return P1(t).flags=u,t}function i_(t,u){const s=P1(t);return s.flags=s.flags|u,t}function _V(t,u){return P1(t).internalFlags=u,t}function F7(t,u){const s=P1(t);return s.internalFlags=s.internalFlags|u,t}function Lv(t){var u;return((u=t.emitNode)==null?void 0:u.sourceMapRange)??t}function As(t,u){return P1(t).sourceMapRange=u,t}function VYe(t,u){var s,d;return(d=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:d[u]}function Rke(t,u,s){const d=P1(t),f=d.tokenSourceMapRanges??(d.tokenSourceMapRanges=[]);return f[u]=s,t}function RP(t){var u;return(u=t.emitNode)==null?void 0:u.startsOnNewLine}function FZ(t,u){return P1(t).startsOnNewLine=u,t}function nE(t){var u;return((u=t.emitNode)==null?void 0:u.commentRange)??t}function Bc(t,u){return P1(t).commentRange=u,t}function DB(t){var u;return(u=t.emitNode)==null?void 0:u.leadingComments}function Nv(t,u){return P1(t).leadingComments=u,t}function OP(t,u,s,d){return Nv(t,xi(DB(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function DV(t){var u;return(u=t.emitNode)==null?void 0:u.trailingComments}function A7(t,u){return P1(t).trailingComments=u,t}function AZ(t,u,s,d){return A7(t,xi(DV(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function Oke(t,u){Nv(t,DB(u)),A7(t,DV(u));const s=P1(u);return s.leadingComments=void 0,s.trailingComments=void 0,t}function jke(t){var u;return(u=t.emitNode)==null?void 0:u.constantValue}function Vke(t,u){const s=P1(t);return s.constantValue=u,t}function S7(t,u){const s=P1(t);return s.helpers=xi(s.helpers,u),t}function iD(t,u){if(Oe(u)){const s=P1(t);for(const d of u)s.helpers=e0(s.helpers,d)}return t}function HYe(t,u){var s;const d=(s=t.emitNode)==null?void 0:s.helpers;return d?gO(d,u):!1}function SZ(t){var u;return(u=t.emitNode)==null?void 0:u.helpers}function Hke(t,u,s){const d=t.emitNode,f=d&&d.helpers;if(!Oe(f))return;const p=P1(u);let E=0;for(let v=0;v0&&(f[v-E]=b)}E>0&&(f.length-=E)}function sce(t){var u;return(u=t.emitNode)==null?void 0:u.snippetElement}function lce(t,u){const s=P1(t);return s.snippetElement=u,t}function cce(t){return P1(t).internalFlags|=4,t}function Kke(t,u){const s=P1(t);return s.typeNode=u,t}function Wke(t){var u;return(u=t.emitNode)==null?void 0:u.typeNode}function l5(t,u){return P1(t).identifierTypeArguments=u,t}function gk(t){var u;return(u=t.emitNode)==null?void 0:u.identifierTypeArguments}function xV(t,u){return P1(t).autoGenerate=u,t}function KYe(t){var u;return(u=t.emitNode)==null?void 0:u.autoGenerate}function Gke(t,u){return P1(t).generatedImportReference=u,t}function Jke(t){var u;return(u=t.emitNode)==null?void 0:u.generatedImportReference}var LLt=o({"src/compiler/factory/emitNode.ts"(){Bo()}});function $ke(t){const u=t.factory,s=Mh(()=>_V(u.createTrue(),8)),d=Mh(()=>_V(u.createFalse(),8));return{getUnscopedHelperName:f,createDecorateHelper:p,createMetadataHelper:E,createParamHelper:v,createESDecorateHelper:J,createRunInitializersHelper:K,createAssignHelper:Y,createAwaitHelper:oe,createAsyncGeneratorHelper:se,createAsyncDelegatorHelper:ge,createAsyncValuesHelper:ae,createRestHelper:Ce,createAwaiterHelper:ne,createExtendsHelper:ve,createTemplateObjectHelper:Se,createSpreadArrayHelper:Ne,createPropKeyHelper:pe,createSetFunctionNameHelper:fe,createValuesHelper:xe,createReadHelper:Be,createGeneratorHelper:Ge,createCreateBindingHelper:Ae,createImportStarHelper:De,createImportStarCallbackHelper:Ke,createImportDefaultHelper:Je,createExportStarHelper:ft,createClassPrivateFieldGetHelper:Ye,createClassPrivateFieldSetHelper:Ve,createClassPrivateFieldInHelper:We,createAddDisposableResourceHelper:Gt,createDisposeResourcesHelper:Yt};function f(Ie){return Zn(u.createIdentifier(Ie),8196)}function p(Ie,st,St,It){t.requestEmitHelper(BZ);const ei=[];return ei.push(u.createArrayLiteralExpression(Ie,!0)),ei.push(st),St&&(ei.push(St),It&&ei.push(It)),u.createCallExpression(f("__decorate"),void 0,ei)}function E(Ie,st){return t.requestEmitHelper(wZ),u.createCallExpression(f("__metadata"),void 0,[u.createStringLiteral(Ie),st])}function v(Ie,st,St){return t.requestEmitHelper(TZ),Pt(u.createCallExpression(f("__param"),void 0,[u.createNumericLiteral(st+""),Ie]),St)}function b(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral("class")),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function B(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("get",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,st))}function k(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("set",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj")),u.createParameterDeclaration(void 0,void 0,u.createIdentifier("value"))],void 0,void 0,u.createBlock([u.createExpressionStatement(u.createAssignment(st,u.createIdentifier("value")))])))}function T(Ie){const st=Ie.computed?Ie.name:at(Ie.name)?u.createStringLiteralFromNode(Ie.name):Ie.name;return u.createPropertyAssignment("has",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,u.createBinaryExpression(st,103,u.createIdentifier("obj"))))}function M(Ie,st){const St=[];return St.push(T(Ie)),st.get&&St.push(B(Ie)),st.set&&St.push(k(Ie)),u.createObjectLiteralExpression(St)}function z(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral(Ie.kind)),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name.computed?Ie.name.name:u.createStringLiteralFromNode(Ie.name.name)),u.createPropertyAssignment(u.createIdentifier("static"),Ie.static?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("private"),Ie.private?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("access"),M(Ie.name,Ie.access)),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function j(Ie){return Ie.kind==="class"?b(Ie):z(Ie)}function J(Ie,st,St,It,ei,ht){return t.requestEmitHelper(LZ),u.createCallExpression(f("__esDecorate"),void 0,[Ie??u.createNull(),st??u.createNull(),St,j(It),ei,ht])}function K(Ie,st,St){return t.requestEmitHelper(NZ),u.createCallExpression(f("__runInitializers"),void 0,St?[Ie,st,St]:[Ie,st])}function Y(Ie){return Os(t.getCompilerOptions())>=2?u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"assign"),void 0,Ie):(t.requestEmitHelper(PZ),u.createCallExpression(f("__assign"),void 0,Ie))}function oe(Ie){return t.requestEmitHelper(B7),u.createCallExpression(f("__await"),void 0,[Ie])}function se(Ie,st){return t.requestEmitHelper(B7),t.requestEmitHelper(MZ),(Ie.emitNode||(Ie.emitNode={})).flags|=1572864,u.createCallExpression(f("__asyncGenerator"),void 0,[st?u.createThis():u.createVoidZero(),u.createIdentifier("arguments"),Ie])}function ge(Ie){return t.requestEmitHelper(B7),t.requestEmitHelper(zZ),u.createCallExpression(f("__asyncDelegator"),void 0,[Ie])}function ae(Ie){return t.requestEmitHelper(IZ),u.createCallExpression(f("__asyncValues"),void 0,[Ie])}function Ce(Ie,st,St,It){t.requestEmitHelper(RZ);const ei=[];let ht=0;for(let Ut=0;Ut{let d="";for(let f=0;ft.name))}function jP(t,u){return Mo(t)&&at(t.expression)&&(bs(t.expression)&8192)!==0&&t.expression.escapedText===u}var fce,BZ,wZ,TZ,LZ,NZ,PZ,B7,MZ,zZ,IZ,RZ,OZ,jZ,VZ,HZ,KZ,WZ,GZ,JZ,$Z,xB,UZ,vV,qZ,ZZ,YZ,QZ,XZ,eY,tY,WYe,CV,bV,NLt=o({"src/compiler/factory/emitHelpers.ts"(){Bo(),fce=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(fce||{}),BZ={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` +`),u.closeSync(st),al("endDumpTypes"),Lm("Dump types","beginDumpTypes","endDumpTypes")}function ae(){E&&u.writeFileSync(E,JSON.stringify(v))}t.dumpLegend=ae})(xO||(xO={})),D2e=xO.startTracing,x2e=xO.dumpLegend}});function Gy(t,u=!0){const s=CO[t.category];return u?s.toLowerCase():s}var aU,oU,sU,boe,lU,cU,yoe,vO,koe,b8,dU,Foe,Aoe,hU,Soe,Boe,woe,Toe,Loe,Noe,Poe,Moe,zoe,Ioe,Roe,fU,Ooe,joe,Voe,Hoe,mU,pU,Koe,Woe,Goe,Joe,$oe,Uoe,gU,qoe,Zoe,Yoe,Qoe,Xoe,ese,CO,y8,tse,ise,nse,use,AN,rse,ase,ose,EU,sse,lse,cse,dse,hse,_U,DU,xU,fse,mse,pse,gse,Ese,_se,Dse,xse,bO,vse,Rqe=o({"src/compiler/types.ts"(){aU=(t=>(t[t.Unknown=0]="Unknown",t[t.EndOfFileToken=1]="EndOfFileToken",t[t.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",t[t.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",t[t.NewLineTrivia=4]="NewLineTrivia",t[t.WhitespaceTrivia=5]="WhitespaceTrivia",t[t.ShebangTrivia=6]="ShebangTrivia",t[t.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",t[t.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",t[t.NumericLiteral=9]="NumericLiteral",t[t.BigIntLiteral=10]="BigIntLiteral",t[t.StringLiteral=11]="StringLiteral",t[t.JsxText=12]="JsxText",t[t.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",t[t.RegularExpressionLiteral=14]="RegularExpressionLiteral",t[t.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",t[t.TemplateHead=16]="TemplateHead",t[t.TemplateMiddle=17]="TemplateMiddle",t[t.TemplateTail=18]="TemplateTail",t[t.OpenBraceToken=19]="OpenBraceToken",t[t.CloseBraceToken=20]="CloseBraceToken",t[t.OpenParenToken=21]="OpenParenToken",t[t.CloseParenToken=22]="CloseParenToken",t[t.OpenBracketToken=23]="OpenBracketToken",t[t.CloseBracketToken=24]="CloseBracketToken",t[t.DotToken=25]="DotToken",t[t.DotDotDotToken=26]="DotDotDotToken",t[t.SemicolonToken=27]="SemicolonToken",t[t.CommaToken=28]="CommaToken",t[t.QuestionDotToken=29]="QuestionDotToken",t[t.LessThanToken=30]="LessThanToken",t[t.LessThanSlashToken=31]="LessThanSlashToken",t[t.GreaterThanToken=32]="GreaterThanToken",t[t.LessThanEqualsToken=33]="LessThanEqualsToken",t[t.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",t[t.EqualsEqualsToken=35]="EqualsEqualsToken",t[t.ExclamationEqualsToken=36]="ExclamationEqualsToken",t[t.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",t[t.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",t[t.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",t[t.PlusToken=40]="PlusToken",t[t.MinusToken=41]="MinusToken",t[t.AsteriskToken=42]="AsteriskToken",t[t.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",t[t.SlashToken=44]="SlashToken",t[t.PercentToken=45]="PercentToken",t[t.PlusPlusToken=46]="PlusPlusToken",t[t.MinusMinusToken=47]="MinusMinusToken",t[t.LessThanLessThanToken=48]="LessThanLessThanToken",t[t.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",t[t.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",t[t.AmpersandToken=51]="AmpersandToken",t[t.BarToken=52]="BarToken",t[t.CaretToken=53]="CaretToken",t[t.ExclamationToken=54]="ExclamationToken",t[t.TildeToken=55]="TildeToken",t[t.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",t[t.BarBarToken=57]="BarBarToken",t[t.QuestionToken=58]="QuestionToken",t[t.ColonToken=59]="ColonToken",t[t.AtToken=60]="AtToken",t[t.QuestionQuestionToken=61]="QuestionQuestionToken",t[t.BacktickToken=62]="BacktickToken",t[t.HashToken=63]="HashToken",t[t.EqualsToken=64]="EqualsToken",t[t.PlusEqualsToken=65]="PlusEqualsToken",t[t.MinusEqualsToken=66]="MinusEqualsToken",t[t.AsteriskEqualsToken=67]="AsteriskEqualsToken",t[t.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",t[t.SlashEqualsToken=69]="SlashEqualsToken",t[t.PercentEqualsToken=70]="PercentEqualsToken",t[t.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",t[t.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",t[t.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",t[t.AmpersandEqualsToken=74]="AmpersandEqualsToken",t[t.BarEqualsToken=75]="BarEqualsToken",t[t.BarBarEqualsToken=76]="BarBarEqualsToken",t[t.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",t[t.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",t[t.CaretEqualsToken=79]="CaretEqualsToken",t[t.Identifier=80]="Identifier",t[t.PrivateIdentifier=81]="PrivateIdentifier",t[t.JSDocCommentTextToken=82]="JSDocCommentTextToken",t[t.BreakKeyword=83]="BreakKeyword",t[t.CaseKeyword=84]="CaseKeyword",t[t.CatchKeyword=85]="CatchKeyword",t[t.ClassKeyword=86]="ClassKeyword",t[t.ConstKeyword=87]="ConstKeyword",t[t.ContinueKeyword=88]="ContinueKeyword",t[t.DebuggerKeyword=89]="DebuggerKeyword",t[t.DefaultKeyword=90]="DefaultKeyword",t[t.DeleteKeyword=91]="DeleteKeyword",t[t.DoKeyword=92]="DoKeyword",t[t.ElseKeyword=93]="ElseKeyword",t[t.EnumKeyword=94]="EnumKeyword",t[t.ExportKeyword=95]="ExportKeyword",t[t.ExtendsKeyword=96]="ExtendsKeyword",t[t.FalseKeyword=97]="FalseKeyword",t[t.FinallyKeyword=98]="FinallyKeyword",t[t.ForKeyword=99]="ForKeyword",t[t.FunctionKeyword=100]="FunctionKeyword",t[t.IfKeyword=101]="IfKeyword",t[t.ImportKeyword=102]="ImportKeyword",t[t.InKeyword=103]="InKeyword",t[t.InstanceOfKeyword=104]="InstanceOfKeyword",t[t.NewKeyword=105]="NewKeyword",t[t.NullKeyword=106]="NullKeyword",t[t.ReturnKeyword=107]="ReturnKeyword",t[t.SuperKeyword=108]="SuperKeyword",t[t.SwitchKeyword=109]="SwitchKeyword",t[t.ThisKeyword=110]="ThisKeyword",t[t.ThrowKeyword=111]="ThrowKeyword",t[t.TrueKeyword=112]="TrueKeyword",t[t.TryKeyword=113]="TryKeyword",t[t.TypeOfKeyword=114]="TypeOfKeyword",t[t.VarKeyword=115]="VarKeyword",t[t.VoidKeyword=116]="VoidKeyword",t[t.WhileKeyword=117]="WhileKeyword",t[t.WithKeyword=118]="WithKeyword",t[t.ImplementsKeyword=119]="ImplementsKeyword",t[t.InterfaceKeyword=120]="InterfaceKeyword",t[t.LetKeyword=121]="LetKeyword",t[t.PackageKeyword=122]="PackageKeyword",t[t.PrivateKeyword=123]="PrivateKeyword",t[t.ProtectedKeyword=124]="ProtectedKeyword",t[t.PublicKeyword=125]="PublicKeyword",t[t.StaticKeyword=126]="StaticKeyword",t[t.YieldKeyword=127]="YieldKeyword",t[t.AbstractKeyword=128]="AbstractKeyword",t[t.AccessorKeyword=129]="AccessorKeyword",t[t.AsKeyword=130]="AsKeyword",t[t.AssertsKeyword=131]="AssertsKeyword",t[t.AssertKeyword=132]="AssertKeyword",t[t.AnyKeyword=133]="AnyKeyword",t[t.AsyncKeyword=134]="AsyncKeyword",t[t.AwaitKeyword=135]="AwaitKeyword",t[t.BooleanKeyword=136]="BooleanKeyword",t[t.ConstructorKeyword=137]="ConstructorKeyword",t[t.DeclareKeyword=138]="DeclareKeyword",t[t.GetKeyword=139]="GetKeyword",t[t.InferKeyword=140]="InferKeyword",t[t.IntrinsicKeyword=141]="IntrinsicKeyword",t[t.IsKeyword=142]="IsKeyword",t[t.KeyOfKeyword=143]="KeyOfKeyword",t[t.ModuleKeyword=144]="ModuleKeyword",t[t.NamespaceKeyword=145]="NamespaceKeyword",t[t.NeverKeyword=146]="NeverKeyword",t[t.OutKeyword=147]="OutKeyword",t[t.ReadonlyKeyword=148]="ReadonlyKeyword",t[t.RequireKeyword=149]="RequireKeyword",t[t.NumberKeyword=150]="NumberKeyword",t[t.ObjectKeyword=151]="ObjectKeyword",t[t.SatisfiesKeyword=152]="SatisfiesKeyword",t[t.SetKeyword=153]="SetKeyword",t[t.StringKeyword=154]="StringKeyword",t[t.SymbolKeyword=155]="SymbolKeyword",t[t.TypeKeyword=156]="TypeKeyword",t[t.UndefinedKeyword=157]="UndefinedKeyword",t[t.UniqueKeyword=158]="UniqueKeyword",t[t.UnknownKeyword=159]="UnknownKeyword",t[t.UsingKeyword=160]="UsingKeyword",t[t.FromKeyword=161]="FromKeyword",t[t.GlobalKeyword=162]="GlobalKeyword",t[t.BigIntKeyword=163]="BigIntKeyword",t[t.OverrideKeyword=164]="OverrideKeyword",t[t.OfKeyword=165]="OfKeyword",t[t.QualifiedName=166]="QualifiedName",t[t.ComputedPropertyName=167]="ComputedPropertyName",t[t.TypeParameter=168]="TypeParameter",t[t.Parameter=169]="Parameter",t[t.Decorator=170]="Decorator",t[t.PropertySignature=171]="PropertySignature",t[t.PropertyDeclaration=172]="PropertyDeclaration",t[t.MethodSignature=173]="MethodSignature",t[t.MethodDeclaration=174]="MethodDeclaration",t[t.ClassStaticBlockDeclaration=175]="ClassStaticBlockDeclaration",t[t.Constructor=176]="Constructor",t[t.GetAccessor=177]="GetAccessor",t[t.SetAccessor=178]="SetAccessor",t[t.CallSignature=179]="CallSignature",t[t.ConstructSignature=180]="ConstructSignature",t[t.IndexSignature=181]="IndexSignature",t[t.TypePredicate=182]="TypePredicate",t[t.TypeReference=183]="TypeReference",t[t.FunctionType=184]="FunctionType",t[t.ConstructorType=185]="ConstructorType",t[t.TypeQuery=186]="TypeQuery",t[t.TypeLiteral=187]="TypeLiteral",t[t.ArrayType=188]="ArrayType",t[t.TupleType=189]="TupleType",t[t.OptionalType=190]="OptionalType",t[t.RestType=191]="RestType",t[t.UnionType=192]="UnionType",t[t.IntersectionType=193]="IntersectionType",t[t.ConditionalType=194]="ConditionalType",t[t.InferType=195]="InferType",t[t.ParenthesizedType=196]="ParenthesizedType",t[t.ThisType=197]="ThisType",t[t.TypeOperator=198]="TypeOperator",t[t.IndexedAccessType=199]="IndexedAccessType",t[t.MappedType=200]="MappedType",t[t.LiteralType=201]="LiteralType",t[t.NamedTupleMember=202]="NamedTupleMember",t[t.TemplateLiteralType=203]="TemplateLiteralType",t[t.TemplateLiteralTypeSpan=204]="TemplateLiteralTypeSpan",t[t.ImportType=205]="ImportType",t[t.ObjectBindingPattern=206]="ObjectBindingPattern",t[t.ArrayBindingPattern=207]="ArrayBindingPattern",t[t.BindingElement=208]="BindingElement",t[t.ArrayLiteralExpression=209]="ArrayLiteralExpression",t[t.ObjectLiteralExpression=210]="ObjectLiteralExpression",t[t.PropertyAccessExpression=211]="PropertyAccessExpression",t[t.ElementAccessExpression=212]="ElementAccessExpression",t[t.CallExpression=213]="CallExpression",t[t.NewExpression=214]="NewExpression",t[t.TaggedTemplateExpression=215]="TaggedTemplateExpression",t[t.TypeAssertionExpression=216]="TypeAssertionExpression",t[t.ParenthesizedExpression=217]="ParenthesizedExpression",t[t.FunctionExpression=218]="FunctionExpression",t[t.ArrowFunction=219]="ArrowFunction",t[t.DeleteExpression=220]="DeleteExpression",t[t.TypeOfExpression=221]="TypeOfExpression",t[t.VoidExpression=222]="VoidExpression",t[t.AwaitExpression=223]="AwaitExpression",t[t.PrefixUnaryExpression=224]="PrefixUnaryExpression",t[t.PostfixUnaryExpression=225]="PostfixUnaryExpression",t[t.BinaryExpression=226]="BinaryExpression",t[t.ConditionalExpression=227]="ConditionalExpression",t[t.TemplateExpression=228]="TemplateExpression",t[t.YieldExpression=229]="YieldExpression",t[t.SpreadElement=230]="SpreadElement",t[t.ClassExpression=231]="ClassExpression",t[t.OmittedExpression=232]="OmittedExpression",t[t.ExpressionWithTypeArguments=233]="ExpressionWithTypeArguments",t[t.AsExpression=234]="AsExpression",t[t.NonNullExpression=235]="NonNullExpression",t[t.MetaProperty=236]="MetaProperty",t[t.SyntheticExpression=237]="SyntheticExpression",t[t.SatisfiesExpression=238]="SatisfiesExpression",t[t.TemplateSpan=239]="TemplateSpan",t[t.SemicolonClassElement=240]="SemicolonClassElement",t[t.Block=241]="Block",t[t.EmptyStatement=242]="EmptyStatement",t[t.VariableStatement=243]="VariableStatement",t[t.ExpressionStatement=244]="ExpressionStatement",t[t.IfStatement=245]="IfStatement",t[t.DoStatement=246]="DoStatement",t[t.WhileStatement=247]="WhileStatement",t[t.ForStatement=248]="ForStatement",t[t.ForInStatement=249]="ForInStatement",t[t.ForOfStatement=250]="ForOfStatement",t[t.ContinueStatement=251]="ContinueStatement",t[t.BreakStatement=252]="BreakStatement",t[t.ReturnStatement=253]="ReturnStatement",t[t.WithStatement=254]="WithStatement",t[t.SwitchStatement=255]="SwitchStatement",t[t.LabeledStatement=256]="LabeledStatement",t[t.ThrowStatement=257]="ThrowStatement",t[t.TryStatement=258]="TryStatement",t[t.DebuggerStatement=259]="DebuggerStatement",t[t.VariableDeclaration=260]="VariableDeclaration",t[t.VariableDeclarationList=261]="VariableDeclarationList",t[t.FunctionDeclaration=262]="FunctionDeclaration",t[t.ClassDeclaration=263]="ClassDeclaration",t[t.InterfaceDeclaration=264]="InterfaceDeclaration",t[t.TypeAliasDeclaration=265]="TypeAliasDeclaration",t[t.EnumDeclaration=266]="EnumDeclaration",t[t.ModuleDeclaration=267]="ModuleDeclaration",t[t.ModuleBlock=268]="ModuleBlock",t[t.CaseBlock=269]="CaseBlock",t[t.NamespaceExportDeclaration=270]="NamespaceExportDeclaration",t[t.ImportEqualsDeclaration=271]="ImportEqualsDeclaration",t[t.ImportDeclaration=272]="ImportDeclaration",t[t.ImportClause=273]="ImportClause",t[t.NamespaceImport=274]="NamespaceImport",t[t.NamedImports=275]="NamedImports",t[t.ImportSpecifier=276]="ImportSpecifier",t[t.ExportAssignment=277]="ExportAssignment",t[t.ExportDeclaration=278]="ExportDeclaration",t[t.NamedExports=279]="NamedExports",t[t.NamespaceExport=280]="NamespaceExport",t[t.ExportSpecifier=281]="ExportSpecifier",t[t.MissingDeclaration=282]="MissingDeclaration",t[t.ExternalModuleReference=283]="ExternalModuleReference",t[t.JsxElement=284]="JsxElement",t[t.JsxSelfClosingElement=285]="JsxSelfClosingElement",t[t.JsxOpeningElement=286]="JsxOpeningElement",t[t.JsxClosingElement=287]="JsxClosingElement",t[t.JsxFragment=288]="JsxFragment",t[t.JsxOpeningFragment=289]="JsxOpeningFragment",t[t.JsxClosingFragment=290]="JsxClosingFragment",t[t.JsxAttribute=291]="JsxAttribute",t[t.JsxAttributes=292]="JsxAttributes",t[t.JsxSpreadAttribute=293]="JsxSpreadAttribute",t[t.JsxExpression=294]="JsxExpression",t[t.JsxNamespacedName=295]="JsxNamespacedName",t[t.CaseClause=296]="CaseClause",t[t.DefaultClause=297]="DefaultClause",t[t.HeritageClause=298]="HeritageClause",t[t.CatchClause=299]="CatchClause",t[t.ImportAttributes=300]="ImportAttributes",t[t.ImportAttribute=301]="ImportAttribute",t[t.AssertClause=300]="AssertClause",t[t.AssertEntry=301]="AssertEntry",t[t.ImportTypeAssertionContainer=302]="ImportTypeAssertionContainer",t[t.PropertyAssignment=303]="PropertyAssignment",t[t.ShorthandPropertyAssignment=304]="ShorthandPropertyAssignment",t[t.SpreadAssignment=305]="SpreadAssignment",t[t.EnumMember=306]="EnumMember",t[t.UnparsedPrologue=307]="UnparsedPrologue",t[t.UnparsedPrepend=308]="UnparsedPrepend",t[t.UnparsedText=309]="UnparsedText",t[t.UnparsedInternalText=310]="UnparsedInternalText",t[t.UnparsedSyntheticReference=311]="UnparsedSyntheticReference",t[t.SourceFile=312]="SourceFile",t[t.Bundle=313]="Bundle",t[t.UnparsedSource=314]="UnparsedSource",t[t.InputFiles=315]="InputFiles",t[t.JSDocTypeExpression=316]="JSDocTypeExpression",t[t.JSDocNameReference=317]="JSDocNameReference",t[t.JSDocMemberName=318]="JSDocMemberName",t[t.JSDocAllType=319]="JSDocAllType",t[t.JSDocUnknownType=320]="JSDocUnknownType",t[t.JSDocNullableType=321]="JSDocNullableType",t[t.JSDocNonNullableType=322]="JSDocNonNullableType",t[t.JSDocOptionalType=323]="JSDocOptionalType",t[t.JSDocFunctionType=324]="JSDocFunctionType",t[t.JSDocVariadicType=325]="JSDocVariadicType",t[t.JSDocNamepathType=326]="JSDocNamepathType",t[t.JSDoc=327]="JSDoc",t[t.JSDocComment=327]="JSDocComment",t[t.JSDocText=328]="JSDocText",t[t.JSDocTypeLiteral=329]="JSDocTypeLiteral",t[t.JSDocSignature=330]="JSDocSignature",t[t.JSDocLink=331]="JSDocLink",t[t.JSDocLinkCode=332]="JSDocLinkCode",t[t.JSDocLinkPlain=333]="JSDocLinkPlain",t[t.JSDocTag=334]="JSDocTag",t[t.JSDocAugmentsTag=335]="JSDocAugmentsTag",t[t.JSDocImplementsTag=336]="JSDocImplementsTag",t[t.JSDocAuthorTag=337]="JSDocAuthorTag",t[t.JSDocDeprecatedTag=338]="JSDocDeprecatedTag",t[t.JSDocClassTag=339]="JSDocClassTag",t[t.JSDocPublicTag=340]="JSDocPublicTag",t[t.JSDocPrivateTag=341]="JSDocPrivateTag",t[t.JSDocProtectedTag=342]="JSDocProtectedTag",t[t.JSDocReadonlyTag=343]="JSDocReadonlyTag",t[t.JSDocOverrideTag=344]="JSDocOverrideTag",t[t.JSDocCallbackTag=345]="JSDocCallbackTag",t[t.JSDocOverloadTag=346]="JSDocOverloadTag",t[t.JSDocEnumTag=347]="JSDocEnumTag",t[t.JSDocParameterTag=348]="JSDocParameterTag",t[t.JSDocReturnTag=349]="JSDocReturnTag",t[t.JSDocThisTag=350]="JSDocThisTag",t[t.JSDocTypeTag=351]="JSDocTypeTag",t[t.JSDocTemplateTag=352]="JSDocTemplateTag",t[t.JSDocTypedefTag=353]="JSDocTypedefTag",t[t.JSDocSeeTag=354]="JSDocSeeTag",t[t.JSDocPropertyTag=355]="JSDocPropertyTag",t[t.JSDocThrowsTag=356]="JSDocThrowsTag",t[t.JSDocSatisfiesTag=357]="JSDocSatisfiesTag",t[t.SyntaxList=358]="SyntaxList",t[t.NotEmittedStatement=359]="NotEmittedStatement",t[t.PartiallyEmittedExpression=360]="PartiallyEmittedExpression",t[t.CommaListExpression=361]="CommaListExpression",t[t.SyntheticReferenceExpression=362]="SyntheticReferenceExpression",t[t.Count=363]="Count",t[t.FirstAssignment=64]="FirstAssignment",t[t.LastAssignment=79]="LastAssignment",t[t.FirstCompoundAssignment=65]="FirstCompoundAssignment",t[t.LastCompoundAssignment=79]="LastCompoundAssignment",t[t.FirstReservedWord=83]="FirstReservedWord",t[t.LastReservedWord=118]="LastReservedWord",t[t.FirstKeyword=83]="FirstKeyword",t[t.LastKeyword=165]="LastKeyword",t[t.FirstFutureReservedWord=119]="FirstFutureReservedWord",t[t.LastFutureReservedWord=127]="LastFutureReservedWord",t[t.FirstTypeNode=182]="FirstTypeNode",t[t.LastTypeNode=205]="LastTypeNode",t[t.FirstPunctuation=19]="FirstPunctuation",t[t.LastPunctuation=79]="LastPunctuation",t[t.FirstToken=0]="FirstToken",t[t.LastToken=165]="LastToken",t[t.FirstTriviaToken=2]="FirstTriviaToken",t[t.LastTriviaToken=7]="LastTriviaToken",t[t.FirstLiteralToken=9]="FirstLiteralToken",t[t.LastLiteralToken=15]="LastLiteralToken",t[t.FirstTemplateToken=15]="FirstTemplateToken",t[t.LastTemplateToken=18]="LastTemplateToken",t[t.FirstBinaryOperator=30]="FirstBinaryOperator",t[t.LastBinaryOperator=79]="LastBinaryOperator",t[t.FirstStatement=243]="FirstStatement",t[t.LastStatement=259]="LastStatement",t[t.FirstNode=166]="FirstNode",t[t.FirstJSDocNode=316]="FirstJSDocNode",t[t.LastJSDocNode=357]="LastJSDocNode",t[t.FirstJSDocTagNode=334]="FirstJSDocTagNode",t[t.LastJSDocTagNode=357]="LastJSDocTagNode",t[t.FirstContextualKeyword=128]="FirstContextualKeyword",t[t.LastContextualKeyword=165]="LastContextualKeyword",t))(aU||{}),oU=(t=>(t[t.None=0]="None",t[t.Let=1]="Let",t[t.Const=2]="Const",t[t.Using=4]="Using",t[t.AwaitUsing=6]="AwaitUsing",t[t.NestedNamespace=8]="NestedNamespace",t[t.Synthesized=16]="Synthesized",t[t.Namespace=32]="Namespace",t[t.OptionalChain=64]="OptionalChain",t[t.ExportContext=128]="ExportContext",t[t.ContainsThis=256]="ContainsThis",t[t.HasImplicitReturn=512]="HasImplicitReturn",t[t.HasExplicitReturn=1024]="HasExplicitReturn",t[t.GlobalAugmentation=2048]="GlobalAugmentation",t[t.HasAsyncFunctions=4096]="HasAsyncFunctions",t[t.DisallowInContext=8192]="DisallowInContext",t[t.YieldContext=16384]="YieldContext",t[t.DecoratorContext=32768]="DecoratorContext",t[t.AwaitContext=65536]="AwaitContext",t[t.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",t[t.ThisNodeHasError=262144]="ThisNodeHasError",t[t.JavaScriptFile=524288]="JavaScriptFile",t[t.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",t[t.HasAggregatedChildData=2097152]="HasAggregatedChildData",t[t.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",t[t.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",t[t.JSDoc=16777216]="JSDoc",t[t.Ambient=33554432]="Ambient",t[t.InWithStatement=67108864]="InWithStatement",t[t.JsonFile=134217728]="JsonFile",t[t.TypeCached=268435456]="TypeCached",t[t.Deprecated=536870912]="Deprecated",t[t.BlockScoped=7]="BlockScoped",t[t.Constant=6]="Constant",t[t.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",t[t.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",t[t.ContextFlags=101441536]="ContextFlags",t[t.TypeExcludesFlags=81920]="TypeExcludesFlags",t[t.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",t[t.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",t[t.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",t))(oU||{}),sU=(t=>(t[t.None=0]="None",t[t.Public=1]="Public",t[t.Private=2]="Private",t[t.Protected=4]="Protected",t[t.Readonly=8]="Readonly",t[t.Override=16]="Override",t[t.Export=32]="Export",t[t.Abstract=64]="Abstract",t[t.Ambient=128]="Ambient",t[t.Static=256]="Static",t[t.Accessor=512]="Accessor",t[t.Async=1024]="Async",t[t.Default=2048]="Default",t[t.Const=4096]="Const",t[t.In=8192]="In",t[t.Out=16384]="Out",t[t.Decorator=32768]="Decorator",t[t.Deprecated=65536]="Deprecated",t[t.JSDocPublic=8388608]="JSDocPublic",t[t.JSDocPrivate=16777216]="JSDocPrivate",t[t.JSDocProtected=33554432]="JSDocProtected",t[t.JSDocReadonly=67108864]="JSDocReadonly",t[t.JSDocOverride=134217728]="JSDocOverride",t[t.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",t[t.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",t[t.SyntacticModifiers=65535]="SyntacticModifiers",t[t.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",t[t.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",t[t.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",t[t.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",t[t.HasComputedFlags=536870912]="HasComputedFlags",t[t.AccessibilityModifier=7]="AccessibilityModifier",t[t.ParameterPropertyModifier=31]="ParameterPropertyModifier",t[t.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",t[t.TypeScriptModifier=28895]="TypeScriptModifier",t[t.ExportDefault=2080]="ExportDefault",t[t.All=131071]="All",t[t.Modifier=98303]="Modifier",t))(sU||{}),boe=(t=>(t[t.None=0]="None",t[t.IntrinsicNamedElement=1]="IntrinsicNamedElement",t[t.IntrinsicIndexedElement=2]="IntrinsicIndexedElement",t[t.IntrinsicElement=3]="IntrinsicElement",t))(boe||{}),lU=(t=>(t[t.Succeeded=1]="Succeeded",t[t.Failed=2]="Failed",t[t.Reported=4]="Reported",t[t.ReportsUnmeasurable=8]="ReportsUnmeasurable",t[t.ReportsUnreliable=16]="ReportsUnreliable",t[t.ReportsMask=24]="ReportsMask",t))(lU||{}),cU=(t=>(t[t.None=0]="None",t[t.Auto=1]="Auto",t[t.Loop=2]="Loop",t[t.Unique=3]="Unique",t[t.Node=4]="Node",t[t.KindMask=7]="KindMask",t[t.ReservedInNestedScopes=8]="ReservedInNestedScopes",t[t.Optimistic=16]="Optimistic",t[t.FileLevel=32]="FileLevel",t[t.AllowNameSubstitution=64]="AllowNameSubstitution",t))(cU||{}),yoe=(t=>(t[t.None=0]="None",t[t.PrecedingLineBreak=1]="PrecedingLineBreak",t[t.PrecedingJSDocComment=2]="PrecedingJSDocComment",t[t.Unterminated=4]="Unterminated",t[t.ExtendedUnicodeEscape=8]="ExtendedUnicodeEscape",t[t.Scientific=16]="Scientific",t[t.Octal=32]="Octal",t[t.HexSpecifier=64]="HexSpecifier",t[t.BinarySpecifier=128]="BinarySpecifier",t[t.OctalSpecifier=256]="OctalSpecifier",t[t.ContainsSeparator=512]="ContainsSeparator",t[t.UnicodeEscape=1024]="UnicodeEscape",t[t.ContainsInvalidEscape=2048]="ContainsInvalidEscape",t[t.HexEscape=4096]="HexEscape",t[t.ContainsLeadingZero=8192]="ContainsLeadingZero",t[t.ContainsInvalidSeparator=16384]="ContainsInvalidSeparator",t[t.BinaryOrOctalSpecifier=384]="BinaryOrOctalSpecifier",t[t.WithSpecifier=448]="WithSpecifier",t[t.StringLiteralFlags=7176]="StringLiteralFlags",t[t.NumericLiteralFlags=25584]="NumericLiteralFlags",t[t.TemplateLiteralLikeFlags=7176]="TemplateLiteralLikeFlags",t[t.IsInvalid=26656]="IsInvalid",t))(yoe||{}),vO=(t=>(t[t.Unreachable=1]="Unreachable",t[t.Start=2]="Start",t[t.BranchLabel=4]="BranchLabel",t[t.LoopLabel=8]="LoopLabel",t[t.Assignment=16]="Assignment",t[t.TrueCondition=32]="TrueCondition",t[t.FalseCondition=64]="FalseCondition",t[t.SwitchClause=128]="SwitchClause",t[t.ArrayMutation=256]="ArrayMutation",t[t.Call=512]="Call",t[t.ReduceLabel=1024]="ReduceLabel",t[t.Referenced=2048]="Referenced",t[t.Shared=4096]="Shared",t[t.Label=12]="Label",t[t.Condition=96]="Condition",t))(vO||{}),koe=(t=>(t[t.ExpectError=0]="ExpectError",t[t.Ignore=1]="Ignore",t))(koe||{}),b8=class{},dU=(t=>(t[t.RootFile=0]="RootFile",t[t.SourceFromProjectReference=1]="SourceFromProjectReference",t[t.OutputFromProjectReference=2]="OutputFromProjectReference",t[t.Import=3]="Import",t[t.ReferenceFile=4]="ReferenceFile",t[t.TypeReferenceDirective=5]="TypeReferenceDirective",t[t.LibFile=6]="LibFile",t[t.LibReferenceDirective=7]="LibReferenceDirective",t[t.AutomaticTypeDirectiveFile=8]="AutomaticTypeDirectiveFile",t))(dU||{}),Foe=(t=>(t[t.FilePreprocessingReferencedDiagnostic=0]="FilePreprocessingReferencedDiagnostic",t[t.FilePreprocessingFileExplainingDiagnostic=1]="FilePreprocessingFileExplainingDiagnostic",t[t.ResolutionDiagnostics=2]="ResolutionDiagnostics",t))(Foe||{}),Aoe=(t=>(t[t.Js=0]="Js",t[t.Dts=1]="Dts",t))(Aoe||{}),hU=(t=>(t[t.Not=0]="Not",t[t.SafeModules=1]="SafeModules",t[t.Completely=2]="Completely",t))(hU||{}),Soe=(t=>(t[t.Success=0]="Success",t[t.DiagnosticsPresent_OutputsSkipped=1]="DiagnosticsPresent_OutputsSkipped",t[t.DiagnosticsPresent_OutputsGenerated=2]="DiagnosticsPresent_OutputsGenerated",t[t.InvalidProject_OutputsSkipped=3]="InvalidProject_OutputsSkipped",t[t.ProjectReferenceCycle_OutputsSkipped=4]="ProjectReferenceCycle_OutputsSkipped",t))(Soe||{}),Boe=(t=>(t[t.Ok=0]="Ok",t[t.NeedsOverride=1]="NeedsOverride",t[t.HasInvalidOverride=2]="HasInvalidOverride",t))(Boe||{}),woe=(t=>(t[t.None=0]="None",t[t.Literal=1]="Literal",t[t.Subtype=2]="Subtype",t))(woe||{}),Toe=(t=>(t[t.None=0]="None",t[t.Signature=1]="Signature",t[t.NoConstraints=2]="NoConstraints",t[t.Completions=4]="Completions",t[t.SkipBindingPatterns=8]="SkipBindingPatterns",t))(Toe||{}),Loe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.GenerateNamesForShadowedTypeParams=4]="GenerateNamesForShadowedTypeParams",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.ForbidIndexedAccessSymbolReferences=16]="ForbidIndexedAccessSymbolReferences",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.UseOnlyExternalAliasing=128]="UseOnlyExternalAliasing",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.WriteTypeParametersInQualifiedName=512]="WriteTypeParametersInQualifiedName",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowThisInObjectLiteral=32768]="AllowThisInObjectLiteral",t[t.AllowQualifiedNameInPlaceOfIdentifier=65536]="AllowQualifiedNameInPlaceOfIdentifier",t[t.AllowAnonymousIdentifier=131072]="AllowAnonymousIdentifier",t[t.AllowEmptyUnionOrIntersection=262144]="AllowEmptyUnionOrIntersection",t[t.AllowEmptyTuple=524288]="AllowEmptyTuple",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AllowEmptyIndexInfoType=2097152]="AllowEmptyIndexInfoType",t[t.WriteComputedProps=1073741824]="WriteComputedProps",t[t.AllowNodeModulesRelativePaths=67108864]="AllowNodeModulesRelativePaths",t[t.DoNotIncludeSymbolChain=134217728]="DoNotIncludeSymbolChain",t[t.IgnoreErrors=70221824]="IgnoreErrors",t[t.InObjectTypeLiteral=4194304]="InObjectTypeLiteral",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.InInitialEntityName=16777216]="InInitialEntityName",t))(Loe||{}),Noe=(t=>(t[t.None=0]="None",t[t.NoTruncation=1]="NoTruncation",t[t.WriteArrayAsGenericType=2]="WriteArrayAsGenericType",t[t.UseStructuralFallback=8]="UseStructuralFallback",t[t.WriteTypeArgumentsOfSignature=32]="WriteTypeArgumentsOfSignature",t[t.UseFullyQualifiedType=64]="UseFullyQualifiedType",t[t.SuppressAnyReturnType=256]="SuppressAnyReturnType",t[t.MultilineObjectLiterals=1024]="MultilineObjectLiterals",t[t.WriteClassExpressionAsTypeLiteral=2048]="WriteClassExpressionAsTypeLiteral",t[t.UseTypeOfFunction=4096]="UseTypeOfFunction",t[t.OmitParameterModifiers=8192]="OmitParameterModifiers",t[t.UseAliasDefinedOutsideCurrentScope=16384]="UseAliasDefinedOutsideCurrentScope",t[t.UseSingleQuotesForStringLiteralType=268435456]="UseSingleQuotesForStringLiteralType",t[t.NoTypeReduction=536870912]="NoTypeReduction",t[t.OmitThisParameter=33554432]="OmitThisParameter",t[t.AllowUniqueESSymbolType=1048576]="AllowUniqueESSymbolType",t[t.AddUndefined=131072]="AddUndefined",t[t.WriteArrowStyleSignature=262144]="WriteArrowStyleSignature",t[t.InArrayType=524288]="InArrayType",t[t.InElementType=2097152]="InElementType",t[t.InFirstTypeArgument=4194304]="InFirstTypeArgument",t[t.InTypeAlias=8388608]="InTypeAlias",t[t.NodeBuilderFlagsMask=848330091]="NodeBuilderFlagsMask",t))(Noe||{}),Poe=(t=>(t[t.None=0]="None",t[t.WriteTypeParametersOrArguments=1]="WriteTypeParametersOrArguments",t[t.UseOnlyExternalAliasing=2]="UseOnlyExternalAliasing",t[t.AllowAnyNodeKind=4]="AllowAnyNodeKind",t[t.UseAliasDefinedOutsideCurrentScope=8]="UseAliasDefinedOutsideCurrentScope",t[t.WriteComputedProps=16]="WriteComputedProps",t[t.DoNotIncludeSymbolChain=32]="DoNotIncludeSymbolChain",t))(Poe||{}),Moe=(t=>(t[t.Accessible=0]="Accessible",t[t.NotAccessible=1]="NotAccessible",t[t.CannotBeNamed=2]="CannotBeNamed",t))(Moe||{}),zoe=(t=>(t[t.UnionOrIntersection=0]="UnionOrIntersection",t[t.Spread=1]="Spread",t))(zoe||{}),Ioe=(t=>(t[t.This=0]="This",t[t.Identifier=1]="Identifier",t[t.AssertsThis=2]="AssertsThis",t[t.AssertsIdentifier=3]="AssertsIdentifier",t))(Ioe||{}),Roe=(t=>(t[t.Unknown=0]="Unknown",t[t.TypeWithConstructSignatureAndValue=1]="TypeWithConstructSignatureAndValue",t[t.VoidNullableOrNeverType=2]="VoidNullableOrNeverType",t[t.NumberLikeType=3]="NumberLikeType",t[t.BigIntLikeType=4]="BigIntLikeType",t[t.StringLikeType=5]="StringLikeType",t[t.BooleanType=6]="BooleanType",t[t.ArrayLikeType=7]="ArrayLikeType",t[t.ESSymbolType=8]="ESSymbolType",t[t.Promise=9]="Promise",t[t.TypeWithCallSignature=10]="TypeWithCallSignature",t[t.ObjectType=11]="ObjectType",t))(Roe||{}),fU=(t=>(t[t.None=0]="None",t[t.FunctionScopedVariable=1]="FunctionScopedVariable",t[t.BlockScopedVariable=2]="BlockScopedVariable",t[t.Property=4]="Property",t[t.EnumMember=8]="EnumMember",t[t.Function=16]="Function",t[t.Class=32]="Class",t[t.Interface=64]="Interface",t[t.ConstEnum=128]="ConstEnum",t[t.RegularEnum=256]="RegularEnum",t[t.ValueModule=512]="ValueModule",t[t.NamespaceModule=1024]="NamespaceModule",t[t.TypeLiteral=2048]="TypeLiteral",t[t.ObjectLiteral=4096]="ObjectLiteral",t[t.Method=8192]="Method",t[t.Constructor=16384]="Constructor",t[t.GetAccessor=32768]="GetAccessor",t[t.SetAccessor=65536]="SetAccessor",t[t.Signature=131072]="Signature",t[t.TypeParameter=262144]="TypeParameter",t[t.TypeAlias=524288]="TypeAlias",t[t.ExportValue=1048576]="ExportValue",t[t.Alias=2097152]="Alias",t[t.Prototype=4194304]="Prototype",t[t.ExportStar=8388608]="ExportStar",t[t.Optional=16777216]="Optional",t[t.Transient=33554432]="Transient",t[t.Assignment=67108864]="Assignment",t[t.ModuleExports=134217728]="ModuleExports",t[t.All=67108863]="All",t[t.Enum=384]="Enum",t[t.Variable=3]="Variable",t[t.Value=111551]="Value",t[t.Type=788968]="Type",t[t.Namespace=1920]="Namespace",t[t.Module=1536]="Module",t[t.Accessor=98304]="Accessor",t[t.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",t[t.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",t[t.ParameterExcludes=111551]="ParameterExcludes",t[t.PropertyExcludes=0]="PropertyExcludes",t[t.EnumMemberExcludes=900095]="EnumMemberExcludes",t[t.FunctionExcludes=110991]="FunctionExcludes",t[t.ClassExcludes=899503]="ClassExcludes",t[t.InterfaceExcludes=788872]="InterfaceExcludes",t[t.RegularEnumExcludes=899327]="RegularEnumExcludes",t[t.ConstEnumExcludes=899967]="ConstEnumExcludes",t[t.ValueModuleExcludes=110735]="ValueModuleExcludes",t[t.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",t[t.MethodExcludes=103359]="MethodExcludes",t[t.GetAccessorExcludes=46015]="GetAccessorExcludes",t[t.SetAccessorExcludes=78783]="SetAccessorExcludes",t[t.AccessorExcludes=13247]="AccessorExcludes",t[t.TypeParameterExcludes=526824]="TypeParameterExcludes",t[t.TypeAliasExcludes=788968]="TypeAliasExcludes",t[t.AliasExcludes=2097152]="AliasExcludes",t[t.ModuleMember=2623475]="ModuleMember",t[t.ExportHasLocal=944]="ExportHasLocal",t[t.BlockScoped=418]="BlockScoped",t[t.PropertyOrAccessor=98308]="PropertyOrAccessor",t[t.ClassMember=106500]="ClassMember",t[t.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",t[t.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",t[t.Classifiable=2885600]="Classifiable",t[t.LateBindingContainer=6256]="LateBindingContainer",t))(fU||{}),Ooe=(t=>(t[t.Numeric=0]="Numeric",t[t.Literal=1]="Literal",t))(Ooe||{}),joe=(t=>(t[t.None=0]="None",t[t.Instantiated=1]="Instantiated",t[t.SyntheticProperty=2]="SyntheticProperty",t[t.SyntheticMethod=4]="SyntheticMethod",t[t.Readonly=8]="Readonly",t[t.ReadPartial=16]="ReadPartial",t[t.WritePartial=32]="WritePartial",t[t.HasNonUniformType=64]="HasNonUniformType",t[t.HasLiteralType=128]="HasLiteralType",t[t.ContainsPublic=256]="ContainsPublic",t[t.ContainsProtected=512]="ContainsProtected",t[t.ContainsPrivate=1024]="ContainsPrivate",t[t.ContainsStatic=2048]="ContainsStatic",t[t.Late=4096]="Late",t[t.ReverseMapped=8192]="ReverseMapped",t[t.OptionalParameter=16384]="OptionalParameter",t[t.RestParameter=32768]="RestParameter",t[t.DeferredType=65536]="DeferredType",t[t.HasNeverType=131072]="HasNeverType",t[t.Mapped=262144]="Mapped",t[t.StripOptional=524288]="StripOptional",t[t.Unresolved=1048576]="Unresolved",t[t.Synthetic=6]="Synthetic",t[t.Discriminant=192]="Discriminant",t[t.Partial=48]="Partial",t))(joe||{}),Voe=(t=>(t.Call="__call",t.Constructor="__constructor",t.New="__new",t.Index="__index",t.ExportStar="__export",t.Global="__global",t.Missing="__missing",t.Type="__type",t.Object="__object",t.JSXAttributes="__jsxAttributes",t.Class="__class",t.Function="__function",t.Computed="__computed",t.Resolving="__resolving__",t.ExportEquals="export=",t.Default="default",t.This="this",t))(Voe||{}),Hoe=(t=>(t[t.None=0]="None",t[t.TypeChecked=1]="TypeChecked",t[t.LexicalThis=2]="LexicalThis",t[t.CaptureThis=4]="CaptureThis",t[t.CaptureNewTarget=8]="CaptureNewTarget",t[t.SuperInstance=16]="SuperInstance",t[t.SuperStatic=32]="SuperStatic",t[t.ContextChecked=64]="ContextChecked",t[t.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",t[t.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",t[t.CaptureArguments=512]="CaptureArguments",t[t.EnumValuesComputed=1024]="EnumValuesComputed",t[t.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",t[t.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",t[t.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",t[t.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",t[t.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",t[t.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",t[t.AssignmentsMarked=131072]="AssignmentsMarked",t[t.ContainsConstructorReference=262144]="ContainsConstructorReference",t[t.ConstructorReference=536870912]="ConstructorReference",t[t.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",t[t.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",t[t.InCheckIdentifier=4194304]="InCheckIdentifier",t))(Hoe||{}),mU=(t=>(t[t.Any=1]="Any",t[t.Unknown=2]="Unknown",t[t.String=4]="String",t[t.Number=8]="Number",t[t.Boolean=16]="Boolean",t[t.Enum=32]="Enum",t[t.BigInt=64]="BigInt",t[t.StringLiteral=128]="StringLiteral",t[t.NumberLiteral=256]="NumberLiteral",t[t.BooleanLiteral=512]="BooleanLiteral",t[t.EnumLiteral=1024]="EnumLiteral",t[t.BigIntLiteral=2048]="BigIntLiteral",t[t.ESSymbol=4096]="ESSymbol",t[t.UniqueESSymbol=8192]="UniqueESSymbol",t[t.Void=16384]="Void",t[t.Undefined=32768]="Undefined",t[t.Null=65536]="Null",t[t.Never=131072]="Never",t[t.TypeParameter=262144]="TypeParameter",t[t.Object=524288]="Object",t[t.Union=1048576]="Union",t[t.Intersection=2097152]="Intersection",t[t.Index=4194304]="Index",t[t.IndexedAccess=8388608]="IndexedAccess",t[t.Conditional=16777216]="Conditional",t[t.Substitution=33554432]="Substitution",t[t.NonPrimitive=67108864]="NonPrimitive",t[t.TemplateLiteral=134217728]="TemplateLiteral",t[t.StringMapping=268435456]="StringMapping",t[t.AnyOrUnknown=3]="AnyOrUnknown",t[t.Nullable=98304]="Nullable",t[t.Literal=2944]="Literal",t[t.Unit=109472]="Unit",t[t.Freshable=2976]="Freshable",t[t.StringOrNumberLiteral=384]="StringOrNumberLiteral",t[t.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",t[t.DefinitelyFalsy=117632]="DefinitelyFalsy",t[t.PossiblyFalsy=117724]="PossiblyFalsy",t[t.Intrinsic=67359327]="Intrinsic",t[t.StringLike=402653316]="StringLike",t[t.NumberLike=296]="NumberLike",t[t.BigIntLike=2112]="BigIntLike",t[t.BooleanLike=528]="BooleanLike",t[t.EnumLike=1056]="EnumLike",t[t.ESSymbolLike=12288]="ESSymbolLike",t[t.VoidLike=49152]="VoidLike",t[t.Primitive=402784252]="Primitive",t[t.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",t[t.DisjointDomains=469892092]="DisjointDomains",t[t.UnionOrIntersection=3145728]="UnionOrIntersection",t[t.StructuredType=3670016]="StructuredType",t[t.TypeVariable=8650752]="TypeVariable",t[t.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",t[t.InstantiablePrimitive=406847488]="InstantiablePrimitive",t[t.Instantiable=465829888]="Instantiable",t[t.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",t[t.ObjectFlagsType=3899393]="ObjectFlagsType",t[t.Simplifiable=25165824]="Simplifiable",t[t.Singleton=67358815]="Singleton",t[t.Narrowable=536624127]="Narrowable",t[t.IncludesMask=473694207]="IncludesMask",t[t.IncludesMissingType=262144]="IncludesMissingType",t[t.IncludesNonWideningType=4194304]="IncludesNonWideningType",t[t.IncludesWildcard=8388608]="IncludesWildcard",t[t.IncludesEmptyObject=16777216]="IncludesEmptyObject",t[t.IncludesInstantiable=33554432]="IncludesInstantiable",t[t.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",t))(mU||{}),pU=(t=>(t[t.None=0]="None",t[t.Class=1]="Class",t[t.Interface=2]="Interface",t[t.Reference=4]="Reference",t[t.Tuple=8]="Tuple",t[t.Anonymous=16]="Anonymous",t[t.Mapped=32]="Mapped",t[t.Instantiated=64]="Instantiated",t[t.ObjectLiteral=128]="ObjectLiteral",t[t.EvolvingArray=256]="EvolvingArray",t[t.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",t[t.ReverseMapped=1024]="ReverseMapped",t[t.JsxAttributes=2048]="JsxAttributes",t[t.JSLiteral=4096]="JSLiteral",t[t.FreshLiteral=8192]="FreshLiteral",t[t.ArrayLiteral=16384]="ArrayLiteral",t[t.PrimitiveUnion=32768]="PrimitiveUnion",t[t.ContainsWideningType=65536]="ContainsWideningType",t[t.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",t[t.NonInferrableType=262144]="NonInferrableType",t[t.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",t[t.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",t[t.ClassOrInterface=3]="ClassOrInterface",t[t.RequiresWidening=196608]="RequiresWidening",t[t.PropagatingFlags=458752]="PropagatingFlags",t[t.InstantiatedMapped=96]="InstantiatedMapped",t[t.ObjectTypeKindMask=1343]="ObjectTypeKindMask",t[t.ContainsSpread=2097152]="ContainsSpread",t[t.ObjectRestType=4194304]="ObjectRestType",t[t.InstantiationExpressionType=8388608]="InstantiationExpressionType",t[t.IsClassInstanceClone=16777216]="IsClassInstanceClone",t[t.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",t[t.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",t[t.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",t[t.IsGenericObjectType=4194304]="IsGenericObjectType",t[t.IsGenericIndexType=8388608]="IsGenericIndexType",t[t.IsGenericType=12582912]="IsGenericType",t[t.ContainsIntersections=16777216]="ContainsIntersections",t[t.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",t[t.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",t[t.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",t[t.IsNeverIntersection=33554432]="IsNeverIntersection",t))(pU||{}),Koe=(t=>(t[t.Invariant=0]="Invariant",t[t.Covariant=1]="Covariant",t[t.Contravariant=2]="Contravariant",t[t.Bivariant=3]="Bivariant",t[t.Independent=4]="Independent",t[t.VarianceMask=7]="VarianceMask",t[t.Unmeasurable=8]="Unmeasurable",t[t.Unreliable=16]="Unreliable",t[t.AllowsStructuralFallback=24]="AllowsStructuralFallback",t))(Koe||{}),Woe=(t=>(t[t.Required=1]="Required",t[t.Optional=2]="Optional",t[t.Rest=4]="Rest",t[t.Variadic=8]="Variadic",t[t.Fixed=3]="Fixed",t[t.Variable=12]="Variable",t[t.NonRequired=14]="NonRequired",t[t.NonRest=11]="NonRest",t))(Woe||{}),Goe=(t=>(t[t.None=0]="None",t[t.IncludeUndefined=1]="IncludeUndefined",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.Writing=4]="Writing",t[t.CacheSymbol=8]="CacheSymbol",t[t.NoTupleBoundsCheck=16]="NoTupleBoundsCheck",t[t.ExpressionPosition=32]="ExpressionPosition",t[t.ReportDeprecated=64]="ReportDeprecated",t[t.SuppressNoImplicitAnyError=128]="SuppressNoImplicitAnyError",t[t.Contextual=256]="Contextual",t[t.Persistent=1]="Persistent",t))(Goe||{}),Joe=(t=>(t[t.None=0]="None",t[t.StringsOnly=1]="StringsOnly",t[t.NoIndexSignatures=2]="NoIndexSignatures",t[t.NoReducibleCheck=4]="NoReducibleCheck",t))(Joe||{}),$oe=(t=>(t[t.Component=0]="Component",t[t.Function=1]="Function",t[t.Mixed=2]="Mixed",t))($oe||{}),Uoe=(t=>(t[t.Call=0]="Call",t[t.Construct=1]="Construct",t))(Uoe||{}),gU=(t=>(t[t.None=0]="None",t[t.HasRestParameter=1]="HasRestParameter",t[t.HasLiteralTypes=2]="HasLiteralTypes",t[t.Abstract=4]="Abstract",t[t.IsInnerCallChain=8]="IsInnerCallChain",t[t.IsOuterCallChain=16]="IsOuterCallChain",t[t.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",t[t.IsNonInferrable=64]="IsNonInferrable",t[t.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",t[t.PropagatingFlags=167]="PropagatingFlags",t[t.CallChainFlags=24]="CallChainFlags",t))(gU||{}),qoe=(t=>(t[t.String=0]="String",t[t.Number=1]="Number",t))(qoe||{}),Zoe=(t=>(t[t.Simple=0]="Simple",t[t.Array=1]="Array",t[t.Deferred=2]="Deferred",t[t.Function=3]="Function",t[t.Composite=4]="Composite",t[t.Merged=5]="Merged",t))(Zoe||{}),Yoe=(t=>(t[t.None=0]="None",t[t.NakedTypeVariable=1]="NakedTypeVariable",t[t.SpeculativeTuple=2]="SpeculativeTuple",t[t.SubstituteSource=4]="SubstituteSource",t[t.HomomorphicMappedType=8]="HomomorphicMappedType",t[t.PartialHomomorphicMappedType=16]="PartialHomomorphicMappedType",t[t.MappedTypeConstraint=32]="MappedTypeConstraint",t[t.ContravariantConditional=64]="ContravariantConditional",t[t.ReturnType=128]="ReturnType",t[t.LiteralKeyof=256]="LiteralKeyof",t[t.NoConstraints=512]="NoConstraints",t[t.AlwaysStrict=1024]="AlwaysStrict",t[t.MaxValue=2048]="MaxValue",t[t.PriorityImpliesCombination=416]="PriorityImpliesCombination",t[t.Circularity=-1]="Circularity",t))(Yoe||{}),Qoe=(t=>(t[t.None=0]="None",t[t.NoDefault=1]="NoDefault",t[t.AnyDefault=2]="AnyDefault",t[t.SkippedGenericFunction=4]="SkippedGenericFunction",t))(Qoe||{}),Xoe=(t=>(t[t.False=0]="False",t[t.Unknown=1]="Unknown",t[t.Maybe=3]="Maybe",t[t.True=-1]="True",t))(Xoe||{}),ese=(t=>(t[t.None=0]="None",t[t.ExportsProperty=1]="ExportsProperty",t[t.ModuleExports=2]="ModuleExports",t[t.PrototypeProperty=3]="PrototypeProperty",t[t.ThisProperty=4]="ThisProperty",t[t.Property=5]="Property",t[t.Prototype=6]="Prototype",t[t.ObjectDefinePropertyValue=7]="ObjectDefinePropertyValue",t[t.ObjectDefinePropertyExports=8]="ObjectDefinePropertyExports",t[t.ObjectDefinePrototypeProperty=9]="ObjectDefinePrototypeProperty",t))(ese||{}),CO=(t=>(t[t.Warning=0]="Warning",t[t.Error=1]="Error",t[t.Suggestion=2]="Suggestion",t[t.Message=3]="Message",t))(CO||{}),y8=(t=>(t[t.Classic=1]="Classic",t[t.NodeJs=2]="NodeJs",t[t.Node10=2]="Node10",t[t.Node16=3]="Node16",t[t.NodeNext=99]="NodeNext",t[t.Bundler=100]="Bundler",t))(y8||{}),tse=(t=>(t[t.Legacy=1]="Legacy",t[t.Auto=2]="Auto",t[t.Force=3]="Force",t))(tse||{}),ise=(t=>(t[t.FixedPollingInterval=0]="FixedPollingInterval",t[t.PriorityPollingInterval=1]="PriorityPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t[t.UseFsEvents=4]="UseFsEvents",t[t.UseFsEventsOnParentDirectory=5]="UseFsEventsOnParentDirectory",t))(ise||{}),nse=(t=>(t[t.UseFsEvents=0]="UseFsEvents",t[t.FixedPollingInterval=1]="FixedPollingInterval",t[t.DynamicPriorityPolling=2]="DynamicPriorityPolling",t[t.FixedChunkSizePolling=3]="FixedChunkSizePolling",t))(nse||{}),use=(t=>(t[t.FixedInterval=0]="FixedInterval",t[t.PriorityInterval=1]="PriorityInterval",t[t.DynamicPriority=2]="DynamicPriority",t[t.FixedChunkSize=3]="FixedChunkSize",t))(use||{}),AN=(t=>(t[t.None=0]="None",t[t.CommonJS=1]="CommonJS",t[t.AMD=2]="AMD",t[t.UMD=3]="UMD",t[t.System=4]="System",t[t.ES2015=5]="ES2015",t[t.ES2020=6]="ES2020",t[t.ES2022=7]="ES2022",t[t.ESNext=99]="ESNext",t[t.Node16=100]="Node16",t[t.NodeNext=199]="NodeNext",t))(AN||{}),rse=(t=>(t[t.None=0]="None",t[t.Preserve=1]="Preserve",t[t.React=2]="React",t[t.ReactNative=3]="ReactNative",t[t.ReactJSX=4]="ReactJSX",t[t.ReactJSXDev=5]="ReactJSXDev",t))(rse||{}),ase=(t=>(t[t.Remove=0]="Remove",t[t.Preserve=1]="Preserve",t[t.Error=2]="Error",t))(ase||{}),ose=(t=>(t[t.CarriageReturnLineFeed=0]="CarriageReturnLineFeed",t[t.LineFeed=1]="LineFeed",t))(ose||{}),EU=(t=>(t[t.Unknown=0]="Unknown",t[t.JS=1]="JS",t[t.JSX=2]="JSX",t[t.TS=3]="TS",t[t.TSX=4]="TSX",t[t.External=5]="External",t[t.JSON=6]="JSON",t[t.Deferred=7]="Deferred",t))(EU||{}),sse=(t=>(t[t.ES3=0]="ES3",t[t.ES5=1]="ES5",t[t.ES2015=2]="ES2015",t[t.ES2016=3]="ES2016",t[t.ES2017=4]="ES2017",t[t.ES2018=5]="ES2018",t[t.ES2019=6]="ES2019",t[t.ES2020=7]="ES2020",t[t.ES2021=8]="ES2021",t[t.ES2022=9]="ES2022",t[t.ESNext=99]="ESNext",t[t.JSON=100]="JSON",t[t.Latest=99]="Latest",t))(sse||{}),lse=(t=>(t[t.Standard=0]="Standard",t[t.JSX=1]="JSX",t))(lse||{}),cse=(t=>(t[t.None=0]="None",t[t.Recursive=1]="Recursive",t))(cse||{}),dse=(t=>(t[t.nullCharacter=0]="nullCharacter",t[t.maxAsciiCharacter=127]="maxAsciiCharacter",t[t.lineFeed=10]="lineFeed",t[t.carriageReturn=13]="carriageReturn",t[t.lineSeparator=8232]="lineSeparator",t[t.paragraphSeparator=8233]="paragraphSeparator",t[t.nextLine=133]="nextLine",t[t.space=32]="space",t[t.nonBreakingSpace=160]="nonBreakingSpace",t[t.enQuad=8192]="enQuad",t[t.emQuad=8193]="emQuad",t[t.enSpace=8194]="enSpace",t[t.emSpace=8195]="emSpace",t[t.threePerEmSpace=8196]="threePerEmSpace",t[t.fourPerEmSpace=8197]="fourPerEmSpace",t[t.sixPerEmSpace=8198]="sixPerEmSpace",t[t.figureSpace=8199]="figureSpace",t[t.punctuationSpace=8200]="punctuationSpace",t[t.thinSpace=8201]="thinSpace",t[t.hairSpace=8202]="hairSpace",t[t.zeroWidthSpace=8203]="zeroWidthSpace",t[t.narrowNoBreakSpace=8239]="narrowNoBreakSpace",t[t.ideographicSpace=12288]="ideographicSpace",t[t.mathematicalSpace=8287]="mathematicalSpace",t[t.ogham=5760]="ogham",t[t.replacementCharacter=65533]="replacementCharacter",t[t._=95]="_",t[t.$=36]="$",t[t._0=48]="_0",t[t._1=49]="_1",t[t._2=50]="_2",t[t._3=51]="_3",t[t._4=52]="_4",t[t._5=53]="_5",t[t._6=54]="_6",t[t._7=55]="_7",t[t._8=56]="_8",t[t._9=57]="_9",t[t.a=97]="a",t[t.b=98]="b",t[t.c=99]="c",t[t.d=100]="d",t[t.e=101]="e",t[t.f=102]="f",t[t.g=103]="g",t[t.h=104]="h",t[t.i=105]="i",t[t.j=106]="j",t[t.k=107]="k",t[t.l=108]="l",t[t.m=109]="m",t[t.n=110]="n",t[t.o=111]="o",t[t.p=112]="p",t[t.q=113]="q",t[t.r=114]="r",t[t.s=115]="s",t[t.t=116]="t",t[t.u=117]="u",t[t.v=118]="v",t[t.w=119]="w",t[t.x=120]="x",t[t.y=121]="y",t[t.z=122]="z",t[t.A=65]="A",t[t.B=66]="B",t[t.C=67]="C",t[t.D=68]="D",t[t.E=69]="E",t[t.F=70]="F",t[t.G=71]="G",t[t.H=72]="H",t[t.I=73]="I",t[t.J=74]="J",t[t.K=75]="K",t[t.L=76]="L",t[t.M=77]="M",t[t.N=78]="N",t[t.O=79]="O",t[t.P=80]="P",t[t.Q=81]="Q",t[t.R=82]="R",t[t.S=83]="S",t[t.T=84]="T",t[t.U=85]="U",t[t.V=86]="V",t[t.W=87]="W",t[t.X=88]="X",t[t.Y=89]="Y",t[t.Z=90]="Z",t[t.ampersand=38]="ampersand",t[t.asterisk=42]="asterisk",t[t.at=64]="at",t[t.backslash=92]="backslash",t[t.backtick=96]="backtick",t[t.bar=124]="bar",t[t.caret=94]="caret",t[t.closeBrace=125]="closeBrace",t[t.closeBracket=93]="closeBracket",t[t.closeParen=41]="closeParen",t[t.colon=58]="colon",t[t.comma=44]="comma",t[t.dot=46]="dot",t[t.doubleQuote=34]="doubleQuote",t[t.equals=61]="equals",t[t.exclamation=33]="exclamation",t[t.greaterThan=62]="greaterThan",t[t.hash=35]="hash",t[t.lessThan=60]="lessThan",t[t.minus=45]="minus",t[t.openBrace=123]="openBrace",t[t.openBracket=91]="openBracket",t[t.openParen=40]="openParen",t[t.percent=37]="percent",t[t.plus=43]="plus",t[t.question=63]="question",t[t.semicolon=59]="semicolon",t[t.singleQuote=39]="singleQuote",t[t.slash=47]="slash",t[t.tilde=126]="tilde",t[t.backspace=8]="backspace",t[t.formFeed=12]="formFeed",t[t.byteOrderMark=65279]="byteOrderMark",t[t.tab=9]="tab",t[t.verticalTab=11]="verticalTab",t))(dse||{}),hse=(t=>(t.Ts=".ts",t.Tsx=".tsx",t.Dts=".d.ts",t.Js=".js",t.Jsx=".jsx",t.Json=".json",t.TsBuildInfo=".tsbuildinfo",t.Mjs=".mjs",t.Mts=".mts",t.Dmts=".d.mts",t.Cjs=".cjs",t.Cts=".cts",t.Dcts=".d.cts",t))(hse||{}),_U=(t=>(t[t.None=0]="None",t[t.ContainsTypeScript=1]="ContainsTypeScript",t[t.ContainsJsx=2]="ContainsJsx",t[t.ContainsESNext=4]="ContainsESNext",t[t.ContainsES2022=8]="ContainsES2022",t[t.ContainsES2021=16]="ContainsES2021",t[t.ContainsES2020=32]="ContainsES2020",t[t.ContainsES2019=64]="ContainsES2019",t[t.ContainsES2018=128]="ContainsES2018",t[t.ContainsES2017=256]="ContainsES2017",t[t.ContainsES2016=512]="ContainsES2016",t[t.ContainsES2015=1024]="ContainsES2015",t[t.ContainsGenerator=2048]="ContainsGenerator",t[t.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",t[t.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",t[t.ContainsLexicalThis=16384]="ContainsLexicalThis",t[t.ContainsRestOrSpread=32768]="ContainsRestOrSpread",t[t.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",t[t.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",t[t.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",t[t.ContainsBindingPattern=524288]="ContainsBindingPattern",t[t.ContainsYield=1048576]="ContainsYield",t[t.ContainsAwait=2097152]="ContainsAwait",t[t.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",t[t.ContainsDynamicImport=8388608]="ContainsDynamicImport",t[t.ContainsClassFields=16777216]="ContainsClassFields",t[t.ContainsDecorators=33554432]="ContainsDecorators",t[t.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",t[t.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",t[t.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",t[t.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",t[t.HasComputedFlags=-2147483648]="HasComputedFlags",t[t.AssertTypeScript=1]="AssertTypeScript",t[t.AssertJsx=2]="AssertJsx",t[t.AssertESNext=4]="AssertESNext",t[t.AssertES2022=8]="AssertES2022",t[t.AssertES2021=16]="AssertES2021",t[t.AssertES2020=32]="AssertES2020",t[t.AssertES2019=64]="AssertES2019",t[t.AssertES2018=128]="AssertES2018",t[t.AssertES2017=256]="AssertES2017",t[t.AssertES2016=512]="AssertES2016",t[t.AssertES2015=1024]="AssertES2015",t[t.AssertGenerator=2048]="AssertGenerator",t[t.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",t[t.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",t[t.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",t[t.NodeExcludes=-2147483648]="NodeExcludes",t[t.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",t[t.FunctionExcludes=-1937940480]="FunctionExcludes",t[t.ConstructorExcludes=-1937948672]="ConstructorExcludes",t[t.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",t[t.PropertyExcludes=-2013249536]="PropertyExcludes",t[t.ClassExcludes=-2147344384]="ClassExcludes",t[t.ModuleExcludes=-1941676032]="ModuleExcludes",t[t.TypeExcludes=-2]="TypeExcludes",t[t.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",t[t.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",t[t.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",t[t.ParameterExcludes=-2147483648]="ParameterExcludes",t[t.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",t[t.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",t[t.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",t[t.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",t))(_U||{}),DU=(t=>(t[t.TabStop=0]="TabStop",t[t.Placeholder=1]="Placeholder",t[t.Choice=2]="Choice",t[t.Variable=3]="Variable",t))(DU||{}),xU=(t=>(t[t.None=0]="None",t[t.SingleLine=1]="SingleLine",t[t.MultiLine=2]="MultiLine",t[t.AdviseOnEmitNode=4]="AdviseOnEmitNode",t[t.NoSubstitution=8]="NoSubstitution",t[t.CapturesThis=16]="CapturesThis",t[t.NoLeadingSourceMap=32]="NoLeadingSourceMap",t[t.NoTrailingSourceMap=64]="NoTrailingSourceMap",t[t.NoSourceMap=96]="NoSourceMap",t[t.NoNestedSourceMaps=128]="NoNestedSourceMaps",t[t.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",t[t.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",t[t.NoTokenSourceMaps=768]="NoTokenSourceMaps",t[t.NoLeadingComments=1024]="NoLeadingComments",t[t.NoTrailingComments=2048]="NoTrailingComments",t[t.NoComments=3072]="NoComments",t[t.NoNestedComments=4096]="NoNestedComments",t[t.HelperName=8192]="HelperName",t[t.ExportName=16384]="ExportName",t[t.LocalName=32768]="LocalName",t[t.InternalName=65536]="InternalName",t[t.Indented=131072]="Indented",t[t.NoIndentation=262144]="NoIndentation",t[t.AsyncFunctionBody=524288]="AsyncFunctionBody",t[t.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",t[t.CustomPrologue=2097152]="CustomPrologue",t[t.NoHoisting=4194304]="NoHoisting",t[t.Iterator=8388608]="Iterator",t[t.NoAsciiEscaping=16777216]="NoAsciiEscaping",t))(xU||{}),fse=(t=>(t[t.None=0]="None",t[t.TypeScriptClassWrapper=1]="TypeScriptClassWrapper",t[t.NeverApplyImportHelper=2]="NeverApplyImportHelper",t[t.IgnoreSourceNewlines=4]="IgnoreSourceNewlines",t[t.Immutable=8]="Immutable",t[t.IndirectCall=16]="IndirectCall",t[t.TransformPrivateStaticElements=32]="TransformPrivateStaticElements",t))(fse||{}),mse=(t=>(t[t.Extends=1]="Extends",t[t.Assign=2]="Assign",t[t.Rest=4]="Rest",t[t.Decorate=8]="Decorate",t[t.ESDecorateAndRunInitializers=8]="ESDecorateAndRunInitializers",t[t.Metadata=16]="Metadata",t[t.Param=32]="Param",t[t.Awaiter=64]="Awaiter",t[t.Generator=128]="Generator",t[t.Values=256]="Values",t[t.Read=512]="Read",t[t.SpreadArray=1024]="SpreadArray",t[t.Await=2048]="Await",t[t.AsyncGenerator=4096]="AsyncGenerator",t[t.AsyncDelegator=8192]="AsyncDelegator",t[t.AsyncValues=16384]="AsyncValues",t[t.ExportStar=32768]="ExportStar",t[t.ImportStar=65536]="ImportStar",t[t.ImportDefault=131072]="ImportDefault",t[t.MakeTemplateObject=262144]="MakeTemplateObject",t[t.ClassPrivateFieldGet=524288]="ClassPrivateFieldGet",t[t.ClassPrivateFieldSet=1048576]="ClassPrivateFieldSet",t[t.ClassPrivateFieldIn=2097152]="ClassPrivateFieldIn",t[t.CreateBinding=4194304]="CreateBinding",t[t.SetFunctionName=8388608]="SetFunctionName",t[t.PropKey=16777216]="PropKey",t[t.AddDisposableResourceAndDisposeResources=33554432]="AddDisposableResourceAndDisposeResources",t[t.FirstEmitHelper=1]="FirstEmitHelper",t[t.LastEmitHelper=33554432]="LastEmitHelper",t[t.ForOfIncludes=256]="ForOfIncludes",t[t.ForAwaitOfIncludes=16384]="ForAwaitOfIncludes",t[t.AsyncGeneratorIncludes=6144]="AsyncGeneratorIncludes",t[t.AsyncDelegatorIncludes=26624]="AsyncDelegatorIncludes",t[t.SpreadIncludes=1536]="SpreadIncludes",t))(mse||{}),pse=(t=>(t[t.SourceFile=0]="SourceFile",t[t.Expression=1]="Expression",t[t.IdentifierName=2]="IdentifierName",t[t.MappedTypeParameter=3]="MappedTypeParameter",t[t.Unspecified=4]="Unspecified",t[t.EmbeddedStatement=5]="EmbeddedStatement",t[t.JsxAttributeValue=6]="JsxAttributeValue",t))(pse||{}),gse=(t=>(t[t.Parentheses=1]="Parentheses",t[t.TypeAssertions=2]="TypeAssertions",t[t.NonNullAssertions=4]="NonNullAssertions",t[t.PartiallyEmittedExpressions=8]="PartiallyEmittedExpressions",t[t.Assertions=6]="Assertions",t[t.All=15]="All",t[t.ExcludeJSDocTypeAssertion=16]="ExcludeJSDocTypeAssertion",t))(gse||{}),Ese=(t=>(t[t.None=0]="None",t[t.InParameters=1]="InParameters",t[t.VariablesHoistedInParameters=2]="VariablesHoistedInParameters",t))(Ese||{}),_se=(t=>(t.Prologue="prologue",t.EmitHelpers="emitHelpers",t.NoDefaultLib="no-default-lib",t.Reference="reference",t.Type="type",t.TypeResolutionModeRequire="type-require",t.TypeResolutionModeImport="type-import",t.Lib="lib",t.Prepend="prepend",t.Text="text",t.Internal="internal",t))(_se||{}),Dse=(t=>(t[t.None=0]="None",t[t.SingleLine=0]="SingleLine",t[t.MultiLine=1]="MultiLine",t[t.PreserveLines=2]="PreserveLines",t[t.LinesMask=3]="LinesMask",t[t.NotDelimited=0]="NotDelimited",t[t.BarDelimited=4]="BarDelimited",t[t.AmpersandDelimited=8]="AmpersandDelimited",t[t.CommaDelimited=16]="CommaDelimited",t[t.AsteriskDelimited=32]="AsteriskDelimited",t[t.DelimitersMask=60]="DelimitersMask",t[t.AllowTrailingComma=64]="AllowTrailingComma",t[t.Indented=128]="Indented",t[t.SpaceBetweenBraces=256]="SpaceBetweenBraces",t[t.SpaceBetweenSiblings=512]="SpaceBetweenSiblings",t[t.Braces=1024]="Braces",t[t.Parenthesis=2048]="Parenthesis",t[t.AngleBrackets=4096]="AngleBrackets",t[t.SquareBrackets=8192]="SquareBrackets",t[t.BracketsMask=15360]="BracketsMask",t[t.OptionalIfUndefined=16384]="OptionalIfUndefined",t[t.OptionalIfEmpty=32768]="OptionalIfEmpty",t[t.Optional=49152]="Optional",t[t.PreferNewLine=65536]="PreferNewLine",t[t.NoTrailingNewLine=131072]="NoTrailingNewLine",t[t.NoInterveningComments=262144]="NoInterveningComments",t[t.NoSpaceIfEmpty=524288]="NoSpaceIfEmpty",t[t.SingleElement=1048576]="SingleElement",t[t.SpaceAfterList=2097152]="SpaceAfterList",t[t.Modifiers=2359808]="Modifiers",t[t.HeritageClauses=512]="HeritageClauses",t[t.SingleLineTypeLiteralMembers=768]="SingleLineTypeLiteralMembers",t[t.MultiLineTypeLiteralMembers=32897]="MultiLineTypeLiteralMembers",t[t.SingleLineTupleTypeElements=528]="SingleLineTupleTypeElements",t[t.MultiLineTupleTypeElements=657]="MultiLineTupleTypeElements",t[t.UnionTypeConstituents=516]="UnionTypeConstituents",t[t.IntersectionTypeConstituents=520]="IntersectionTypeConstituents",t[t.ObjectBindingPatternElements=525136]="ObjectBindingPatternElements",t[t.ArrayBindingPatternElements=524880]="ArrayBindingPatternElements",t[t.ObjectLiteralExpressionProperties=526226]="ObjectLiteralExpressionProperties",t[t.ImportAttributes=526226]="ImportAttributes",t[t.ImportClauseEntries=526226]="ImportClauseEntries",t[t.ArrayLiteralExpressionElements=8914]="ArrayLiteralExpressionElements",t[t.CommaListElements=528]="CommaListElements",t[t.CallExpressionArguments=2576]="CallExpressionArguments",t[t.NewExpressionArguments=18960]="NewExpressionArguments",t[t.TemplateExpressionSpans=262144]="TemplateExpressionSpans",t[t.SingleLineBlockStatements=768]="SingleLineBlockStatements",t[t.MultiLineBlockStatements=129]="MultiLineBlockStatements",t[t.VariableDeclarationList=528]="VariableDeclarationList",t[t.SingleLineFunctionBodyStatements=768]="SingleLineFunctionBodyStatements",t[t.MultiLineFunctionBodyStatements=1]="MultiLineFunctionBodyStatements",t[t.ClassHeritageClauses=0]="ClassHeritageClauses",t[t.ClassMembers=129]="ClassMembers",t[t.InterfaceMembers=129]="InterfaceMembers",t[t.EnumMembers=145]="EnumMembers",t[t.CaseBlockClauses=129]="CaseBlockClauses",t[t.NamedImportsOrExportsElements=525136]="NamedImportsOrExportsElements",t[t.JsxElementOrFragmentChildren=262144]="JsxElementOrFragmentChildren",t[t.JsxElementAttributes=262656]="JsxElementAttributes",t[t.CaseOrDefaultClauseStatements=163969]="CaseOrDefaultClauseStatements",t[t.HeritageClauseTypes=528]="HeritageClauseTypes",t[t.SourceFileStatements=131073]="SourceFileStatements",t[t.Decorators=2146305]="Decorators",t[t.TypeArguments=53776]="TypeArguments",t[t.TypeParameters=53776]="TypeParameters",t[t.Parameters=2576]="Parameters",t[t.IndexSignatureParameters=8848]="IndexSignatureParameters",t[t.JSDocComment=33]="JSDocComment",t))(Dse||{}),xse=(t=>(t[t.None=0]="None",t[t.TripleSlashXML=1]="TripleSlashXML",t[t.SingleLine=2]="SingleLine",t[t.MultiLine=4]="MultiLine",t[t.All=7]="All",t[t.Default=7]="Default",t))(xse||{}),bO={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}],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}},vse=(t=>(t[t.ParseAll=0]="ParseAll",t[t.ParseNone=1]="ParseNone",t[t.ParseForTypeErrors=2]="ParseForTypeErrors",t[t.ParseForTypeInfo=3]="ParseForTypeInfo",t))(vse||{})}});function SN(t){let u=5381;for(let s=0;s{se.isClosed=!0,Vy(u,se)}}}function v(K){const Y=[];return Y.pollingInterval=K,Y.pollIndex=0,Y.pollScheduled=!1,Y}function b(K,Y){Y.pollIndex=k(Y,Y.pollingInterval,Y.pollIndex,bU[Y.pollingInterval]),Y.length?J(Y.pollingInterval):(H.assert(Y.pollIndex===0),Y.pollScheduled=!1)}function B(K,Y){k(s,250,0,s.length),b(K,Y),!Y.pollScheduled&&s.length&&J(250)}function k(K,Y,oe,se){return jqe(t,K,oe,se,ge);function ge(ae,Ce,ne){ne?(ae.unchangedPolls=0,K!==s&&(K[Ce]=void 0,z(ae))):ae.unchangedPolls!==kO[Y]?ae.unchangedPolls++:K===s?(ae.unchangedPolls=1,K[Ce]=void 0,M(ae,250)):Y!==2e3&&(ae.unchangedPolls++,K[Ce]=void 0,M(ae,Y===250?500:2e3))}}function T(K){switch(K){case 250:return d;case 500:return f;case 2e3:return p}}function M(K,Y){T(Y).push(K),j(Y)}function z(K){s.push(K),j(250)}function j(K){T(K).pollScheduled||J(K)}function J(K){T(K).pollScheduled=t.setTimeout(K===250?B:b,K,K===250?"pollLowPollingIntervalQueue":"pollPollingIntervalQueue",T(K))}}function iTt(t,u){const s=Tm(),d=new Map,f=N1(u);return p;function p(v,b,B,k){const T=f(v);s.add(T,b);const M=dr(T)||".",z=d.get(M)||E(dr(v)||".",M,k);return z.referenceCount++,{close:()=>{z.referenceCount===1?(z.close(),d.delete(M)):z.referenceCount--,s.remove(T,b)}}}function E(v,b,B){const k=t(v,1,(T,M,z)=>{if(!Ua(M))return;const j=qa(M,v),J=j&&s.get(f(j));if(J)for(const K of J)K(j,1,z)},!1,500,B);return k.referenceCount=0,d.set(b,k),k}}function nTt(t){const u=[];let s=0,d;return f;function f(v,b){const B={fileName:v,callback:b,mtime:e7(t,v)};return u.push(B),E(),{close:()=>{B.isClosed=!0,Vy(u,B)}}}function p(){d=void 0,s=jqe(t,u,s,bU[250]),E()}function E(){!u.length||d||(d=t.setTimeout(p,2e3,"pollQueue"))}}function Vqe(t,u,s,d,f){const E=N1(u)(s),v=t.get(E);return v?v.callbacks.push(d):t.set(E,{watcher:f((b,B,k)=>{var T;return(T=t.get(E))==null?void 0:T.callbacks.slice().forEach(M=>M(b,B,k))}),callbacks:[d]}),{close:()=>{const b=t.get(E);b&&(!EO(b.callbacks,d)||b.callbacks.length||(t.delete(E),Vm(b)))}}}function uTt(t,u){const s=t.mtime.getTime(),d=u.getTime();return s!==d?(t.mtime=u,t.callback(t.fileName,Cse(s,d),u),!0):!1}function Cse(t,u){return t===0?0:u===0?2:1}function yO(t){return k2e(t)}function C2e(t){k2e=t}function rTt({watchDirectory:t,useCaseSensitiveFileNames:u,getCurrentDirectory:s,getAccessibleSortedChildDirectories:d,fileSystemEntryExists:f,realpath:p,setTimeout:E,clearTimeout:v}){const b=new Map,B=Tm(),k=new Map;let T;const M=bN(!u),z=N1(u);return(ne,ve,Se,Ne)=>Se?j(ne,Ne,ve):t(ne,ve,Se,Ne);function j(ne,ve,Se){const Ne=z(ne);let pe=b.get(Ne);pe?pe.refCount++:(pe={watcher:t(ne,xe=>{ae(xe,ve)||(ve!=null&&ve.synchronousWatchDirectory?(J(Ne,xe),ge(ne,Ne,ve)):K(ne,Ne,xe,ve))},!1,ve),refCount:1,childWatches:Dt},b.set(Ne,pe),ge(ne,Ne,ve));const fe=Se&&{dirName:ne,callback:Se};return fe&&B.add(Ne,fe),{dirName:ne,close:()=>{const xe=H.checkDefined(b.get(Ne));fe&&B.remove(Ne,fe),xe.refCount--,!xe.refCount&&(b.delete(Ne),Vm(xe),xe.childWatches.forEach(fg))}}}function J(ne,ve,Se){let Ne,pe;Ua(ve)?Ne=ve:pe=ve,B.forEach((fe,xe)=>{if(!(pe&&pe.get(xe)===!0)&&(xe===ne||Ma(ne,xe)&&ne[xe.length]===ol))if(pe)if(Se){const Be=pe.get(xe);Be?Be.push(...Se):pe.set(xe,Se.slice())}else pe.set(xe,!0);else fe.forEach(({callback:Be})=>Be(Ne))})}function K(ne,ve,Se,Ne){const pe=b.get(ve);if(pe&&f(ne,1)){Y(ne,ve,Se,Ne);return}J(ve,Se),se(pe)}function Y(ne,ve,Se,Ne){const pe=k.get(ve);pe?pe.fileNames.push(Se):k.set(ve,{dirName:ne,options:Ne,fileNames:[Se]}),T&&(v(T),T=void 0),T=E(oe,1e3,"timerToUpdateChildWatches")}function oe(){T=void 0,yO(`sysLog:: onTimerToUpdateChildWatches:: ${k.size}`);const ne=J0(),ve=new Map;for(;!T&&k.size;){const Ne=k.entries().next();H.assert(!Ne.done);const{value:[pe,{dirName:fe,options:xe,fileNames:Be}]}=Ne;k.delete(pe);const We=ge(fe,pe,xe);J(pe,ve,We?void 0:Be)}yO(`sysLog:: invokingWatchers:: Elapsed:: ${J0()-ne}ms:: ${k.size}`),B.forEach((Ne,pe)=>{const fe=ve.get(pe);fe&&Ne.forEach(({callback:xe,dirName:Be})=>{Wa(fe)?fe.forEach(xe):xe(Be)})});const Se=J0()-ne;yO(`sysLog:: Elapsed:: ${Se}ms:: onTimerToUpdateChildWatches:: ${k.size} ${T}`)}function se(ne){if(!ne)return;const ve=ne.childWatches;ne.childWatches=Dt;for(const Se of ve)Se.close(),se(b.get(z(Se.dirName)))}function ge(ne,ve,Se){const Ne=b.get(ve);if(!Ne)return!1;let pe;const fe=iU(f(ne,1)?qi(d(ne),We=>{const Ae=qa(We,ne);return!ae(Ae,Se)&&M(Ae,Uo(p(Ae)))===0?Ae:void 0}):Dt,Ne.childWatches,(We,Ae)=>M(We,Ae.dirName),xe,fg,Be);return Ne.childWatches=pe||Dt,fe;function xe(We){const Ae=j(We,Se);Be(Ae)}function Be(We){(pe||(pe=[])).push(We)}}function ae(ne,ve){return Ge(FO,Se=>Ce(ne,Se))||Hqe(ne,ve,u,s)}function Ce(ne,ve){return ne.includes(ve)?!0:u?!1:z(ne).includes(ve)}}function aTt(t){return(u,s,d)=>t(s===1?"change":"rename","",d)}function oTt(t,u,s){return(d,f,p)=>{d==="rename"?(p||(p=s(t)||W_),u(t,p!==W_?0:2,p)):u(t,1,p)}}function Hqe(t,u,s,d){return((u==null?void 0:u.excludeDirectories)||(u==null?void 0:u.excludeFiles))&&(NY(t,u==null?void 0:u.excludeFiles,s,d())||NY(t,u==null?void 0:u.excludeDirectories,s,d()))}function Kqe(t,u,s,d,f){return(p,E)=>{if(p==="rename"){const v=E?Uo(hr(t,E)):t;(!E||!Hqe(v,s,d,f))&&u(v)}}}function b2e({pollingWatchFileWorker:t,getModifiedTime:u,setTimeout:s,clearTimeout:d,fsWatchWorker:f,fileSystemEntryExists:p,useCaseSensitiveFileNames:E,getCurrentDirectory:v,fsSupportsRecursiveFsWatch:b,getAccessibleSortedChildDirectories:B,realpath:k,tscWatchFile:T,useNonPollingWatchers:M,tscWatchDirectory:z,inodeWatching:j,sysLog:J}){const K=new Map,Y=new Map,oe=new Map;let se,ge,ae,Ce,ne=!1;return{watchFile:ve,watchDirectory:xe};function ve(Je,mt,Ye,je){je=pe(je,M);const Ke=H.checkDefined(je.watchFile);switch(Ke){case 0:return Ae(Je,mt,250,void 0);case 1:return Ae(Je,mt,Ye,void 0);case 2:return Se()(Je,mt,Ye,void 0);case 3:return Ne()(Je,mt,void 0,void 0);case 4:return De(Je,0,oTt(Je,mt,u),!1,Ye,vH(je));case 5:return ae||(ae=iTt(De,E)),ae(Je,mt,Ye,vH(je));default:H.assertNever(Ke)}}function Se(){return se||(se=tTt({getModifiedTime:u,setTimeout:s}))}function Ne(){return ge||(ge=nTt({getModifiedTime:u,setTimeout:s}))}function pe(Je,mt){if(Je&&Je.watchFile!==void 0)return Je;switch(T){case"PriorityPollingInterval":return{watchFile:1};case"DynamicPriorityPolling":return{watchFile:2};case"UseFsEvents":return fe(4,1,Je);case"UseFsEventsWithFallbackDynamicPolling":return fe(4,2,Je);case"UseFsEventsOnParentDirectory":mt=!0;default:return mt?fe(5,1,Je):{watchFile:4}}}function fe(Je,mt,Ye){const je=Ye==null?void 0:Ye.fallbackPolling;return{watchFile:Je,fallbackPolling:je===void 0?mt:je}}function xe(Je,mt,Ye,je){return b?De(Je,1,Kqe(Je,mt,je,E,v),Ye,500,vH(je)):(Ce||(Ce=rTt({useCaseSensitiveFileNames:E,getCurrentDirectory:v,fileSystemEntryExists:p,getAccessibleSortedChildDirectories:B,watchDirectory:Be,realpath:k,setTimeout:s,clearTimeout:d})),Ce(Je,mt,Ye,je))}function Be(Je,mt,Ye,je){H.assert(!Ye);const Ke=We(je),Gt=H.checkDefined(Ke.watchDirectory);switch(Gt){case 1:return Ae(Je,()=>mt(Je),500,void 0);case 2:return Se()(Je,()=>mt(Je),500,void 0);case 3:return Ne()(Je,()=>mt(Je),void 0,void 0);case 0:return De(Je,1,Kqe(Je,mt,je,E,v),Ye,500,vH(Ke));default:H.assertNever(Gt)}}function We(Je){if(Je&&Je.watchDirectory!==void 0)return Je;switch(z){case"RecursiveDirectoryUsingFsWatchFile":return{watchDirectory:1};case"RecursiveDirectoryUsingDynamicPriorityPolling":return{watchDirectory:2};default:const mt=Je==null?void 0:Je.fallbackPolling;return{watchDirectory:0,fallbackPolling:mt!==void 0?mt:void 0}}}function Ae(Je,mt,Ye,je){return Vqe(K,E,Je,mt,Ke=>t(Je,Ke,Ye,je))}function De(Je,mt,Ye,je,Ke,Gt){return Vqe(je?oe:Y,E,Je,Ye,Yt=>He(Je,mt,Yt,je,Ke,Gt))}function He(Je,mt,Ye,je,Ke,Gt){let Yt,Ie;j&&(Yt=Je.substring(Je.lastIndexOf(ol)),Ie=Yt.slice(ol.length));let st=p(Je,mt)?It():Ut();return{close:()=>{st&&(st.close(),st=void 0)}};function Bt(Ni){st&&(J(`sysLog:: ${Je}:: Changing watcher to ${Ni===It?"Present":"Missing"}FileSystemEntryWatcher`),st.close(),st=Ni())}function It(){if(ne)return J(`sysLog:: ${Je}:: Defaulting to watchFile`),ft();try{const Ni=f(Je,je,j?ei:Ye);return Ni.on("error",()=>{Ye("rename",""),Bt(Ut)}),Ni}catch(Ni){return ne||(ne=Ni.code==="ENOSPC"),J(`sysLog:: ${Je}:: Changing to watchFile`),ft()}}function ei(Ni,Vi){let xn;if(Vi&&lc(Vi,"~")&&(xn=Vi,Vi=Vi.slice(0,Vi.length-1)),Ni==="rename"&&(!Vi||Vi===Ie||lc(Vi,Yt))){const Jn=u(Je)||W_;xn&&Ye(Ni,xn,Jn),Ye(Ni,Vi,Jn),j?Bt(Jn===W_?Ut:It):Jn===W_&&Bt(Ut)}else xn&&Ye(Ni,xn),Ye(Ni,Vi)}function ft(){return ve(Je,aTt(Ye),Ke,Gt)}function Ut(){return ve(Je,(Ni,Vi,xn)=>{Vi===0&&(xn||(xn=u(Je)||W_),xn!==W_&&(Ye("rename","",xn),Bt(It)))},Ke,Gt)}}}function y2e(t){const u=t.writeFile;t.writeFile=(s,d,f)=>rle(s,d,!!f,(p,E,v)=>u.call(t,p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p))}function Wqe(t){d1=t}var bse,vU,W_,CU,bU,kO,FO,k2e,yse,d1,sTt=o({"src/compiler/sys.ts"(){Bo(),bse=(t=>(t[t.Created=0]="Created",t[t.Changed=1]="Changed",t[t.Deleted=2]="Deleted",t))(bse||{}),vU=(t=>(t[t.High=2e3]="High",t[t.Medium=500]="Medium",t[t.Low=250]="Low",t))(vU||{}),W_=new Date(0),CU={Low:32,Medium:64,High:256},bU=v2e(CU),kO=v2e(CU),FO=["/node_modules/.","/.git","/.#"],k2e=Rs,yse=(t=>(t[t.File=0]="File",t[t.Directory=1]="Directory",t))(yse||{}),d1=(()=>{const t="\uFEFF";function u(){const d=/^native |^\([^)]+\)$|^(internal[\\/]|[a-zA-Z0-9_\s]+(\.js)?$)/,f=rS,p=rS,E=rS;let v;try{v=rS}catch{v=void 0}let b,B="./profile.cpuprofile";const k=rS.Buffer,T=process.platform==="linux"||process.platform==="darwin",M=E.platform(),z=Ne(),j=f.realpathSync.native?process.platform==="win32"?Ke:f.realpathSync.native:f.realpathSync,J=__filename.endsWith("sys.js")?p.join(p.dirname(__dirname),"__fake__.js"):__filename,K=process.platform==="win32"||process.platform==="darwin",Y=zh(()=>process.cwd()),{watchFile:oe,watchDirectory:se}=b2e({pollingWatchFileWorker:fe,getModifiedTime:Yt,setTimeout,clearTimeout,fsWatchWorker:xe,useCaseSensitiveFileNames:z,getCurrentDirectory:Y,fileSystemEntryExists:Je,fsSupportsRecursiveFsWatch:K,getAccessibleSortedChildDirectories:It=>De(It).directories,realpath:Gt,tscWatchFile:e.TSC_WATCHFILE,useNonPollingWatchers:!!e.TSC_NONPOLLING_WATCHER,tscWatchDirectory:e.TSC_WATCHDIRECTORY,inodeWatching:T,sysLog:yO}),ge={args:process.argv.slice(2),newLine:E.EOL,useCaseSensitiveFileNames:z,write(It){process.stdout.write(It)},getWidthOfTerminal(){return process.stdout.columns},writeOutputIsTTY(){return process.stdout.isTTY},readFile:We,writeFile:Ae,watchFile:oe,watchDirectory:se,resolvePath:It=>p.resolve(It),fileExists:mt,directoryExists:Ye,createDirectory(It){if(!ge.directoryExists(It))try{f.mkdirSync(It)}catch(ei){if(ei.code!=="EEXIST")throw ei}},getExecutingFilePath(){return J},getCurrentDirectory:Y,getDirectories:je,getEnvironmentVariable(It){return e[It]||""},readDirectory:He,getModifiedTime:Yt,setModifiedTime:Ie,deleteFile:st,createHash:v?Bt:SN,createSHA256Hash:v?Bt:void 0,getMemoryUsage(){return tgt.gc&&tgt.gc(),process.memoryUsage().heapUsed},getFileSize(It){try{const ei=ae(It);if(ei!=null&&ei.isFile())return ei.size}catch{}return 0},exit(It){ve(()=>process.exit(It))},enableCPUProfiler:Ce,disableCPUProfiler:ve,cpuProfilingEnabled:()=>!!b||kt(process.execArgv,"--cpu-prof")||kt(process.execArgv,"--prof"),realpath:Gt,debugMode:!!e.NODE_INSPECTOR_IPC||!!e.VSCODE_INSPECTOR_OPTIONS||Ge(process.execArgv,It=>/^--(inspect|debug)(-brk)?(=\d+)?$/i.test(It))||!!process.recordreplay,tryEnableSourceMapsForHost(){try{rS.install()}catch{}},setTimeout,clearTimeout,clearScreen:()=>{process.stdout.write("\x1Bc")},setBlocking:()=>{var It;const ei=(It=process.stdout)==null?void 0:It._handle;ei&&ei.setBlocking&&ei.setBlocking(!0)},bufferFrom:Se,base64decode:It=>Se(It,"base64").toString("utf8"),base64encode:It=>Se(It).toString("base64"),require:(It,ei)=>{try{const ft=vAe(ei,It,ge);return{module:igt(ft),modulePath:ft,error:void 0}}catch(ft){return{module:void 0,modulePath:void 0,error:ft}}}};return ge;function ae(It){return f.statSync(It,{throwIfNoEntry:!1})}function Ce(It,ei){if(b)return ei(),!1;const ft=rS;if(!ft||!ft.Session)return ei(),!1;const Ut=new ft.Session;return Ut.connect(),Ut.post("Profiler.enable",()=>{Ut.post("Profiler.start",()=>{b=Ut,B=It,ei()})}),!0}function ne(It){let ei=0;const ft=new Map,Ut=Z1(p.dirname(J)),Ni=`file://${GE(Ut)===1?"":"/"}${Ut}`;for(const Vi of It.nodes)if(Vi.callFrame.url){const xn=Z1(Vi.callFrame.url);JE(Ni,xn,z)?Vi.callFrame.url=i7(Ni,xn,Ni,N1(z),!0):d.test(xn)||(Vi.callFrame.url=(ft.has(xn)?ft:ft.set(xn,`external${ei}.js`)).get(xn),ei++)}return It}function ve(It){if(b&&b!=="stopping"){const ei=b;return b.post("Profiler.stop",(ft,{profile:Ut})=>{var Ni;if(!ft){try{(Ni=ae(B))!=null&&Ni.isDirectory()&&(B=p.join(B,`${new Date().toISOString().replace(/:/g,"-")}+P${process.pid}.cpuprofile`))}catch{}try{f.mkdirSync(p.dirname(B),{recursive:!0})}catch{}f.writeFileSync(B,JSON.stringify(ne(Ut)))}b=void 0,ei.disconnect(),It()}),b="stopping",!0}else return It(),!1}function Se(It,ei){return k.from&&k.from!==Int8Array.from?k.from(It,ei):new k(It,ei)}function Ne(){return M==="win32"||M==="win64"?!1:!mt(pe(__filename))}function pe(It){return It.replace(/\w/g,ei=>{const ft=ei.toUpperCase();return ei===ft?ei.toLowerCase():ft})}function fe(It,ei,ft){f.watchFile(It,{persistent:!0,interval:ft},Ni);let Ut;return{close:()=>f.unwatchFile(It,Ni)};function Ni(Vi,xn){const Jn=+xn.mtime==0||Ut===2;if(+Vi.mtime==0){if(Jn)return;Ut=2}else if(Jn)Ut=0;else{if(+Vi.mtime==+xn.mtime)return;Ut=1}ei(It,Ut,Vi.mtime)}}function xe(It,ei,ft){return f.watch(It,K?{persistent:!0,recursive:!!ei}:{persistent:!0},ft)}function Be(It,ei){let ft;try{ft=f.readFileSync(It)}catch{return}let Ut=ft.length;if(Ut>=2&&ft[0]===254&&ft[1]===255){Ut&=-2;for(let Ni=0;Ni=2&&ft[0]===255&&ft[1]===254?ft.toString("utf16le",2):Ut>=3&&ft[0]===239&&ft[1]===187&&ft[2]===191?ft.toString("utf8",3):ft.toString("utf8")}function We(It,ei){var ft,Ut;(ft=mh)==null||ft.logStartReadFile(It);const Ni=Be(It);return(Ut=mh)==null||Ut.logStopReadFile(),Ni}function Ae(It,ei,ft){var Ut;(Ut=mh)==null||Ut.logEvent("WriteFile: "+It),ft&&(ei=t+ei);let Ni;try{Ni=f.openSync(It,"w"),f.writeSync(Ni,ei,void 0,"utf8")}finally{Ni!==void 0&&f.closeSync(Ni)}}function De(It){var ei;(ei=mh)==null||ei.logEvent("ReadDir: "+(It||"."));try{const ft=f.readdirSync(It||".",{withFileTypes:!0}),Ut=[],Ni=[];for(const Vi of ft){const xn=typeof Vi=="string"?Vi:Vi.name;if(xn==="."||xn==="..")continue;let Jn;if(typeof Vi=="string"||Vi.isSymbolicLink()){const an=hr(It,xn);try{if(Jn=ae(an),!Jn)continue}catch{continue}}else Jn=Vi;Jn.isFile()?Ut.push(xn):Jn.isDirectory()&&Ni.push(xn)}return Ut.sort(),Ni.sort(),{files:Ut,directories:Ni}}catch{return kZ}}function He(It,ei,ft,Ut,Ni){return Ble(It,ei,ft,Ut,z,process.cwd(),Ni,De,Gt)}function Je(It,ei){const ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{const Ut=ae(It);if(!Ut)return!1;switch(ei){case 0:return Ut.isFile();case 1:return Ut.isDirectory();default:return!1}}catch{return!1}finally{Error.stackTraceLimit=ft}}function mt(It){return Je(It,0)}function Ye(It){return Je(It,1)}function je(It){return De(It).directories.slice()}function Ke(It){return It.length<260?f.realpathSync.native(It):f.realpathSync(It)}function Gt(It){try{return j(It)}catch{return It}}function Yt(It){var ei;const ft=Error.stackTraceLimit;Error.stackTraceLimit=0;try{return(ei=ae(It))==null?void 0:ei.mtime}catch{return}finally{Error.stackTraceLimit=ft}}function Ie(It,ei){try{f.utimesSync(It,ei,ei)}catch{return}}function st(It){try{return f.unlinkSync(It)}catch{return}}function Bt(It){const ei=v.createHash("sha256");return ei.update(It),ei.digest("hex")}}let s;return moe()&&(s=u()),s&&y2e(s),s})(),d1&&d1.getEnvironmentVariable&&(eTt(d1),H.setAssertionLevel(/^development$/i.test(d1.getEnvironmentVariable("NODE_ENV"))?1:0)),d1&&d1.debugMode&&(H.isDebugging=!0)}});function kse(t){return t===47||t===92}function F2e(t){return yU(t)<0}function Pf(t){return yU(t)>0}function Fse(t){const u=yU(t);return u>0&&u===t.length}function BN(t){return yU(t)!==0}function om(t){return/^\.\.?($|[\\/])/.test(t)}function Ase(t){return!BN(t)&&!om(t)}function t7(t){return Bc(t).includes(".")}function Ml(t,u){return t.length>u.length&&lc(t,u)}function Hc(t,u){for(const s of u)if(Ml(t,s))return!0;return!1}function ZD(t){return t.length>0&&kse(t.charCodeAt(t.length-1))}function Gqe(t){return t>=97&&t<=122||t>=65&&t<=90}function lTt(t,u){const s=t.charCodeAt(u);if(s===58)return u+1;if(s===37&&t.charCodeAt(u+1)===51){const d=t.charCodeAt(u+2);if(d===97||d===65)return u+3}return-1}function yU(t){if(!t)return 0;const u=t.charCodeAt(0);if(u===47||u===92){if(t.charCodeAt(1)!==u)return 1;const d=t.indexOf(u===47?ol:wO,2);return d<0?t.length:d+1}if(Gqe(u)&&t.charCodeAt(1)===58){const d=t.charCodeAt(2);if(d===47||d===92)return 3;if(t.length===2)return 2}const s=t.indexOf(S2e);if(s!==-1){const d=s+S2e.length,f=t.indexOf(ol,d);if(f!==-1){const p=t.slice(0,s),E=t.slice(d,f);if(p==="file"&&(E===""||E==="localhost")&&Gqe(t.charCodeAt(f+1))){const v=lTt(t,f+2);if(v!==-1){if(t.charCodeAt(v)===47)return~(v+1);if(v===t.length)return~v}}return~(f+1)}return~t.length}return 0}function GE(t){const u=yU(t);return u<0?~u:u}function dr(t){t=Z1(t);const u=GE(t);return u===t.length?t:(t=pv(t),t.slice(0,Math.max(u,t.lastIndexOf(ol))))}function Bc(t,u,s){if(t=Z1(t),GE(t)===t.length)return"";t=pv(t);const f=t.slice(Math.max(GE(t),t.lastIndexOf(ol)+1)),p=u!==void 0&&s!==void 0?wN(f,u,s):void 0;return p?f.slice(0,f.length-p.length):f}function Jqe(t,u,s){if(Ma(u,".")||(u="."+u),t.length>=u.length&&t.charCodeAt(t.length-u.length)===46){const d=t.slice(t.length-u.length);if(s(d,u))return d}}function cTt(t,u,s){if(typeof u=="string")return Jqe(t,u,s)||"";for(const d of u){const f=Jqe(t,d,s);if(f)return f}return""}function wN(t,u,s){if(u)return cTt(pv(t),u,s?QA:XA);const d=Bc(t),f=d.lastIndexOf(".");return f>=0?d.substring(f):""}function dTt(t,u){const s=t.substring(0,u),d=t.substring(u).split(ol);return d.length&&!Zu(d)&&d.pop(),[s,...d]}function yd(t,u=""){return t=hr(u,t),dTt(t,GE(t))}function yx(t,u){return t.length===0?"":(t[0]&&zd(t[0]))+t.slice(1,u).join(ol)}function Z1(t){return t.includes("\\")?t.replace(qqe,ol):t}function Jy(t){if(!Ge(t))return[];const u=[t[0]];for(let s=1;s1){if(u[u.length-1]!==".."){u.pop();continue}}else if(u[0])continue}u.push(d)}}return u}function hr(t,...u){t&&(t=Z1(t));for(let s of u)s&&(s=Z1(s),!t||GE(s)!==0?t=s:t=zd(t)+s);return t}function kx(t,...u){return Uo(Ge(u)?hr(t,...u):Z1(t))}function AO(t,u){return Jy(yd(t,u))}function qa(t,u){return yx(AO(t,u))}function Uo(t){if(t=Z1(t),!FU.test(t))return t;const u=t.replace(/\/\.\//g,"/").replace(/^\.\//,"");if(u!==t&&(t=u,!FU.test(t)))return t;const s=yx(Jy(yd(t)));return s&&ZD(t)?zd(s):s}function hTt(t){return t.length===0?"":t.slice(1).join(ol)}function Sse(t,u){return hTt(AO(t,u))}function $0(t,u,s){const d=Pf(t)?Uo(t):qa(t,u);return s(d)}function pv(t){return ZD(t)?t.substr(0,t.length-1):t}function zd(t){return ZD(t)?t:t+ol}function f2(t){return!BN(t)&&!om(t)?"./"+t:t}function SO(t,u,s,d){const f=s!==void 0&&d!==void 0?wN(t,s,d):wN(t);return f?t.slice(0,t.length-f.length)+(Ma(u,".")?u:"."+u):t}function A2e(t,u,s){if(t===u)return 0;if(t===void 0)return-1;if(u===void 0)return 1;const d=t.substring(0,GE(t)),f=u.substring(0,GE(u)),p=Q$(d,f);if(p!==0)return p;const E=t.substring(d.length),v=u.substring(f.length);if(!FU.test(E)&&!FU.test(v))return s(E,v);const b=Jy(yd(t)),B=Jy(yd(u)),k=Math.min(b.length,B.length);for(let T=1;T0==GE(u)>0,"Paths must either both be absolute or both be relative");const p=wse(t,u,(typeof s=="boolean"?s:!1)?QA:XA,typeof s=="function"?s:ul);return yx(p)}function TN(t,u,s){return Pf(t)?i7(u,t,u,s,!1):t}function BO(t,u,s){return f2($E(dr(t),u,s))}function i7(t,u,s,d,f){const p=wse(kx(s,t),kx(s,u),XA,d),E=p[0];if(f&&Pf(E)){const v=E.charAt(0)===ol?"file://":"file:///";p[0]=v+E}return yx(p)}function qg(t,u){for(;;){const s=u(t);if(s!==void 0)return s;const d=dr(t);if(d===t)return;t=d}}function kU(t){return lc(t,"/node_modules")}var ol,wO,S2e,qqe,FU,fTt=o({"src/compiler/path.ts"(){Bo(),ol="/",wO="\\",S2e="://",qqe=/\\/g,FU=/(?:\/\/)|(?:^|\/)\.\.?(?:$|\/)/}});function P(t,u,s,d,f,p,E){return{code:t,category:u,key:s,message:d,reportsUnnecessary:f,elidedInCompatabilityPyramid:p,reportsDeprecated:E}}var F,mTt=o({"src/compiler/diagnosticInformationMap.generated.ts"(){Rqe(),F={Unterminated_string_literal:P(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:P(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:P(1005,1,"_0_expected_1005","'{0}' expected."),A_file_cannot_have_a_reference_to_itself:P(1006,1,"A_file_cannot_have_a_reference_to_itself_1006","A file cannot have a reference to itself."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:P(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Trailing_comma_not_allowed:P(1009,1,"Trailing_comma_not_allowed_1009","Trailing comma not allowed."),Asterisk_Slash_expected:P(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:P(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:P(1012,1,"Unexpected_token_1012","Unexpected token."),A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma:P(1013,1,"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013","A rest parameter or binding pattern may not have a trailing comma."),A_rest_parameter_must_be_last_in_a_parameter_list:P(1014,1,"A_rest_parameter_must_be_last_in_a_parameter_list_1014","A rest parameter must be last in a parameter list."),Parameter_cannot_have_question_mark_and_initializer:P(1015,1,"Parameter_cannot_have_question_mark_and_initializer_1015","Parameter cannot have question mark and initializer."),A_required_parameter_cannot_follow_an_optional_parameter:P(1016,1,"A_required_parameter_cannot_follow_an_optional_parameter_1016","A required parameter cannot follow an optional parameter."),An_index_signature_cannot_have_a_rest_parameter:P(1017,1,"An_index_signature_cannot_have_a_rest_parameter_1017","An index signature cannot have a rest parameter."),An_index_signature_parameter_cannot_have_an_accessibility_modifier:P(1018,1,"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018","An index signature parameter cannot have an accessibility modifier."),An_index_signature_parameter_cannot_have_a_question_mark:P(1019,1,"An_index_signature_parameter_cannot_have_a_question_mark_1019","An index signature parameter cannot have a question mark."),An_index_signature_parameter_cannot_have_an_initializer:P(1020,1,"An_index_signature_parameter_cannot_have_an_initializer_1020","An index signature parameter cannot have an initializer."),An_index_signature_must_have_a_type_annotation:P(1021,1,"An_index_signature_must_have_a_type_annotation_1021","An index signature must have a type annotation."),An_index_signature_parameter_must_have_a_type_annotation:P(1022,1,"An_index_signature_parameter_must_have_a_type_annotation_1022","An index signature parameter must have a type annotation."),readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature:P(1024,1,"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024","'readonly' modifier can only appear on a property declaration or index signature."),An_index_signature_cannot_have_a_trailing_comma:P(1025,1,"An_index_signature_cannot_have_a_trailing_comma_1025","An index signature cannot have a trailing comma."),Accessibility_modifier_already_seen:P(1028,1,"Accessibility_modifier_already_seen_1028","Accessibility modifier already seen."),_0_modifier_must_precede_1_modifier:P(1029,1,"_0_modifier_must_precede_1_modifier_1029","'{0}' modifier must precede '{1}' modifier."),_0_modifier_already_seen:P(1030,1,"_0_modifier_already_seen_1030","'{0}' modifier already seen."),_0_modifier_cannot_appear_on_class_elements_of_this_kind:P(1031,1,"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031","'{0}' modifier cannot appear on class elements of this kind."),super_must_be_followed_by_an_argument_list_or_member_access:P(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Only_ambient_modules_can_use_quoted_names:P(1035,1,"Only_ambient_modules_can_use_quoted_names_1035","Only ambient modules can use quoted names."),Statements_are_not_allowed_in_ambient_contexts:P(1036,1,"Statements_are_not_allowed_in_ambient_contexts_1036","Statements are not allowed in ambient contexts."),A_declare_modifier_cannot_be_used_in_an_already_ambient_context:P(1038,1,"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038","A 'declare' modifier cannot be used in an already ambient context."),Initializers_are_not_allowed_in_ambient_contexts:P(1039,1,"Initializers_are_not_allowed_in_ambient_contexts_1039","Initializers are not allowed in ambient contexts."),_0_modifier_cannot_be_used_in_an_ambient_context:P(1040,1,"_0_modifier_cannot_be_used_in_an_ambient_context_1040","'{0}' modifier cannot be used in an ambient context."),_0_modifier_cannot_be_used_here:P(1042,1,"_0_modifier_cannot_be_used_here_1042","'{0}' modifier cannot be used here."),_0_modifier_cannot_appear_on_a_module_or_namespace_element:P(1044,1,"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044","'{0}' modifier cannot appear on a module or namespace element."),Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier:P(1046,1,"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046","Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier."),A_rest_parameter_cannot_be_optional:P(1047,1,"A_rest_parameter_cannot_be_optional_1047","A rest parameter cannot be optional."),A_rest_parameter_cannot_have_an_initializer:P(1048,1,"A_rest_parameter_cannot_have_an_initializer_1048","A rest parameter cannot have an initializer."),A_set_accessor_must_have_exactly_one_parameter:P(1049,1,"A_set_accessor_must_have_exactly_one_parameter_1049","A 'set' accessor must have exactly one parameter."),A_set_accessor_cannot_have_an_optional_parameter:P(1051,1,"A_set_accessor_cannot_have_an_optional_parameter_1051","A 'set' accessor cannot have an optional parameter."),A_set_accessor_parameter_cannot_have_an_initializer:P(1052,1,"A_set_accessor_parameter_cannot_have_an_initializer_1052","A 'set' accessor parameter cannot have an initializer."),A_set_accessor_cannot_have_rest_parameter:P(1053,1,"A_set_accessor_cannot_have_rest_parameter_1053","A 'set' accessor cannot have rest parameter."),A_get_accessor_cannot_have_parameters:P(1054,1,"A_get_accessor_cannot_have_parameters_1054","A 'get' accessor cannot have parameters."),Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value:P(1055,1,"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055","Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value."),Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher:P(1056,1,"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056","Accessors are only available when targeting ECMAScript 5 and higher."),The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:P(1058,1,"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058","The return type of an async function must either be a valid promise or must not contain a callable 'then' member."),A_promise_must_have_a_then_method:P(1059,1,"A_promise_must_have_a_then_method_1059","A promise must have a 'then' method."),The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback:P(1060,1,"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060","The first parameter of the 'then' method of a promise must be a callback."),Enum_member_must_have_initializer:P(1061,1,"Enum_member_must_have_initializer_1061","Enum member must have initializer."),Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method:P(1062,1,"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062","Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method."),An_export_assignment_cannot_be_used_in_a_namespace:P(1063,1,"An_export_assignment_cannot_be_used_in_a_namespace_1063","An export assignment cannot be used in a namespace."),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0:P(1064,1,"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064","The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?"),The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),_0_modifier_cannot_appear_on_a_constructor_declaration:P(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:P(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:P(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:P(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:P(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:P(1094,1,"An_accessor_cannot_have_type_parameters_1094","An accessor cannot have type parameters."),A_set_accessor_cannot_have_a_return_type_annotation:P(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:P(1096,1,"An_index_signature_must_have_exactly_one_parameter_1096","An index signature must have exactly one parameter."),_0_list_cannot_be_empty:P(1097,1,"_0_list_cannot_be_empty_1097","'{0}' list cannot be empty."),Type_parameter_list_cannot_be_empty:P(1098,1,"Type_parameter_list_cannot_be_empty_1098","Type parameter list cannot be empty."),Type_argument_list_cannot_be_empty:P(1099,1,"Type_argument_list_cannot_be_empty_1099","Type argument list cannot be empty."),Invalid_use_of_0_in_strict_mode:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:P(1110,1,"Type_expected_1110","Type expected."),Private_field_0_must_be_declared_in_an_enclosing_class:P(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:P(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:P(1114,1,"Duplicate_label_0_1114","Duplicate label '{0}'."),A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement:P(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:P(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:P(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:P(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:P(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:P(1120,1,"An_export_assignment_cannot_have_modifiers_1120","An export assignment cannot have modifiers."),Octal_literals_are_not_allowed_Use_the_syntax_0:P(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:P(1123,1,"Variable_declaration_list_cannot_be_empty_1123","Variable declaration list cannot be empty."),Digit_expected:P(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:P(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:P(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:P(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:P(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:P(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:P(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:P(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:P(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:P(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:P(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:P(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:P(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:P(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:P(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:P(1140,1,"Type_argument_expected_1140","Type argument expected."),String_literal_expected:P(1141,1,"String_literal_expected_1141","String literal expected."),Line_break_not_permitted_here:P(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:P(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:P(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:P(1146,1,"Declaration_expected_1146","Declaration expected."),Import_declarations_in_a_namespace_cannot_reference_a_module:P(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:P(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:P(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:P(1155,1,"_0_declarations_must_be_initialized_1155","'{0}' declarations must be initialized."),_0_declarations_can_only_be_declared_inside_a_block:P(1156,1,"_0_declarations_can_only_be_declared_inside_a_block_1156","'{0}' declarations can only be declared inside a block."),Unterminated_template_literal:P(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:P(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),An_object_member_cannot_be_declared_optional:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1172,1,"extends_clause_already_seen_1172","'extends' clause already seen."),extends_clause_must_precede_implements_clause:P(1173,1,"extends_clause_must_precede_implements_clause_1173","'extends' clause must precede 'implements' clause."),Classes_can_only_extend_a_single_class:P(1174,1,"Classes_can_only_extend_a_single_class_1174","Classes can only extend a single class."),implements_clause_already_seen:P(1175,1,"implements_clause_already_seen_1175","'implements' clause already seen."),Interface_declaration_cannot_have_implements_clause:P(1176,1,"Interface_declaration_cannot_have_implements_clause_1176","Interface declaration cannot have 'implements' clause."),Binary_digit_expected:P(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:P(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:P(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:P(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:P(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),A_destructuring_declaration_must_have_an_initializer:P(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:P(1183,1,"An_implementation_cannot_be_declared_in_ambient_contexts_1183","An implementation cannot be declared in ambient contexts."),Modifiers_cannot_appear_here:P(1184,1,"Modifiers_cannot_appear_here_1184","Modifiers cannot appear here."),Merge_conflict_marker_encountered:P(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),A_rest_element_cannot_have_an_initializer:P(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:P(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:P(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:P(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:P(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:P(1191,1,"An_import_declaration_cannot_have_modifiers_1191","An import declaration cannot have modifiers."),Module_0_has_no_default_export:P(1192,1,"Module_0_has_no_default_export_1192","Module '{0}' has no default export."),An_export_declaration_cannot_have_modifiers:P(1193,1,"An_export_declaration_cannot_have_modifiers_1193","An export declaration cannot have modifiers."),Export_declarations_are_not_permitted_in_a_namespace:P(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:P(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:P(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:P(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:P(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:P(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Line_terminator_not_permitted_before_arrow:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),Signature_0_must_be_a_type_predicate:P(1224,1,"Signature_0_must_be_a_type_predicate_1224","Signature '{0}' must be a type predicate."),Cannot_find_parameter_0:P(1225,1,"Cannot_find_parameter_0_1225","Cannot find parameter '{0}'."),Type_predicate_0_is_not_assignable_to_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_or_ES5:P(1250,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:P(1251,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode."),Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:P(1252,1,"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252","Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode."),Abstract_properties_can_only_appear_within_an_abstract_class:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),with_statements_are_not_allowed_in_an_async_function_block:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1348,1,"Non_simple_parameter_declared_here_1348","Non-simple parameter declared here."),use_strict_directive_used_here:P(1349,1,"use_strict_directive_used_here_1349","'use strict' directive used here."),Print_the_final_configuration_instead_of_building:P(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:P(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:P(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1364,3,"Convert_to_type_only_export_1364","Convert to type-only export"),Convert_all_re_exported_types_to_type_only_exports:P(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:P(1366,3,"Split_into_two_separate_import_declarations_1366","Split into two separate import declarations"),Split_all_invalid_type_only_imports:P(1367,3,"Split_all_invalid_type_only_imports_1367","Split all invalid type-only imports"),Class_constructor_may_not_be_a_generator:P(1368,1,"Class_constructor_may_not_be_a_generator_1368","Class constructor may not be a generator."),Did_you_mean_0:P(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error:P(1371,1,"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371","This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'."),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:P(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:P(1376,3,"_0_was_imported_here_1376","'{0}' was imported here."),_0_was_exported_here:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:P(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:P(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:P(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1392,1,"An_import_alias_cannot_use_import_type_1392","An import alias cannot use 'import type'"),Imported_via_0_from_file_1:P(1393,3,"Imported_via_0_from_file_1_1393","Imported via {0} from file '{1}'"),Imported_via_0_from_file_1_with_packageId_2:P(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:P(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:P(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:P(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:P(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:P(1399,3,"File_is_included_via_import_here_1399","File is included via import here."),Referenced_via_0_from_file_1:P(1400,3,"Referenced_via_0_from_file_1_1400","Referenced via '{0}' from file '{1}'"),File_is_included_via_reference_here:P(1401,3,"File_is_included_via_reference_here_1401","File is included via reference here."),Type_library_referenced_via_0_from_file_1:P(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:P(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:P(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:P(1405,3,"Library_referenced_via_0_from_file_1_1405","Library referenced via '{0}' from file '{1}'"),File_is_included_via_library_reference_here:P(1406,3,"File_is_included_via_library_reference_here_1406","File is included via library reference here."),Matched_by_include_pattern_0_in_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1422,3,"Library_0_specified_in_compilerOptions_1422","Library '{0}' specified in compilerOptions"),File_is_library_specified_here:P(1423,3,"File_is_library_specified_here_1423","File is library specified here."),Default_library:P(1424,3,"Default_library_1424","Default library"),Default_library_for_target_0:P(1425,3,"Default_library_for_target_0_1425","Default library for target '{0}'"),File_is_default_library_for_target_specified_here:P(1426,3,"File_is_default_library_for_target_specified_here_1426","File is default library for target specified here."),Root_file_specified_for_compilation:P(1427,3,"Root_file_specified_for_compilation_1427","Root file specified for compilation"),File_is_output_of_project_reference_source_0:P(1428,3,"File_is_output_of_project_reference_source_0_1428","File is output of project reference source '{0}'"),File_redirects_to_file_0:P(1429,3,"File_redirects_to_file_0_1429","File redirects to file '{0}'"),The_file_is_in_the_program_because_Colon:P(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:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', and the 'target' option is set to 'es2017' or higher."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:P(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:P(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:P(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:P(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:P(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:P(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:P(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:P(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:P(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:P(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:P(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1444,1,"_0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedMod_1444","'{0}' is a type and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:P(1446,1,"_0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveVa_1446","'{0}' resolves to a type-only declaration and must be imported using a type-only import when 'preserveValueImports' and 'isolatedModules' are both enabled."),_0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(1486,1,"Decorator_used_before_export_here_1486","Decorator used before 'export' here."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:P(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:P(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:P(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:P(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),_0_modifier_cannot_appear_on_a_using_declaration:P(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:P(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:P(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:P(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:P(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:P(1496,1,"Identifier_string_literal_or_number_literal_expected_1496","Identifier, string literal, or number literal expected."),The_types_of_0_are_incompatible_between_these_types:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2211,3,"Add_extends_constraint_2211","Add `extends` constraint."),Add_extends_constraint_to_all_type_parameters:P(2212,3,"Add_extends_constraint_to_all_type_parameters_2212","Add `extends` constraint to all type parameters"),Duplicate_identifier_0:P(2300,1,"Duplicate_identifier_0_2300","Duplicate identifier '{0}'."),Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:P(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:P(2302,1,"Static_members_cannot_reference_class_type_parameters_2302","Static members cannot reference class type parameters."),Circular_definition_of_import_alias_0:P(2303,1,"Circular_definition_of_import_alias_0_2303","Circular definition of import alias '{0}'."),Cannot_find_name_0:P(2304,1,"Cannot_find_name_0_2304","Cannot find name '{0}'."),Module_0_has_no_exported_member_1:P(2305,1,"Module_0_has_no_exported_member_1_2305","Module '{0}' has no exported member '{1}'."),File_0_is_not_a_module:P(2306,1,"File_0_is_not_a_module_2306","File '{0}' is not a module."),Cannot_find_module_0_or_its_corresponding_type_declarations:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2314,1,"Generic_type_0_requires_1_type_argument_s_2314","Generic type '{0}' requires {1} type argument(s)."),Type_0_is_not_generic:P(2315,1,"Type_0_is_not_generic_2315","Type '{0}' is not generic."),Global_type_0_must_be_a_class_or_interface_type:P(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:P(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:P(2318,1,"Cannot_find_global_type_0_2318","Cannot find global type '{0}'."),Named_property_0_of_types_1_and_2_are_not_identical:P(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:P(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:P(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:P(2322,1,"Type_0_is_not_assignable_to_type_1_2322","Type '{0}' is not assignable to type '{1}'."),Cannot_redeclare_exported_variable_0:P(2323,1,"Cannot_redeclare_exported_variable_0_2323","Cannot redeclare exported variable '{0}'."),Property_0_is_missing_in_type_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2332,1,"this_cannot_be_referenced_in_current_location_2332","'this' cannot be referenced in current location."),this_cannot_be_referenced_in_constructor_arguments:P(2333,1,"this_cannot_be_referenced_in_constructor_arguments_2333","'this' cannot be referenced in constructor arguments."),this_cannot_be_referenced_in_a_static_property_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2349,1,"This_expression_is_not_callable_2349","This expression is not callable."),Only_a_void_function_can_be_called_with_the_new_keyword:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2372,1,"Parameter_0_cannot_reference_itself_2372","Parameter '{0}' cannot reference itself."),Parameter_0_cannot_reference_identifier_1_declared_after_it:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2386,1,"Overload_signatures_must_all_be_optional_or_required_2386","Overload signatures must all be optional or required."),Function_overload_must_be_static:P(2387,1,"Function_overload_must_be_static_2387","Function overload must be static."),Function_overload_must_not_be_static:P(2388,1,"Function_overload_must_not_be_static_2388","Function overload must not be static."),Function_implementation_name_must_be_0:P(2389,1,"Function_implementation_name_must_be_0_2389","Function implementation name must be '{0}'."),Constructor_implementation_is_missing:P(2390,1,"Constructor_implementation_is_missing_2390","Constructor implementation is missing."),Function_implementation_is_missing_or_not_immediately_following_the_declaration:P(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:P(2392,1,"Multiple_constructor_implementations_are_not_allowed_2392","Multiple constructor implementations are not allowed."),Duplicate_function_implementation:P(2393,1,"Duplicate_function_implementation_2393","Duplicate function implementation."),This_overload_signature_is_not_compatible_with_its_implementation_signature:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2414,1,"Class_name_cannot_be_0_2414","Class name cannot be '{0}'."),Class_0_incorrectly_extends_base_class_1:P(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:P(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:P(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:P(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:P(2419,1,"Types_of_construct_signatures_are_incompatible_2419","Types of construct signatures are incompatible."),Class_0_incorrectly_implements_interface_1:P(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:P(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:P(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:P(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:P(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:P(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),All_declarations_of_0_must_have_identical_type_parameters:P(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:P(2430,1,"Interface_0_incorrectly_extends_interface_1_2430","Interface '{0}' incorrectly extends interface '{1}'."),Enum_name_cannot_be_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2449,1,"Class_0_used_before_its_declaration_2449","Class '{0}' used before its declaration."),Enum_0_used_before_its_declaration:P(2450,1,"Enum_0_used_before_its_declaration_2450","Enum '{0}' used before its declaration."),Cannot_redeclare_block_scoped_variable_0:P(2451,1,"Cannot_redeclare_block_scoped_variable_0_2451","Cannot redeclare block-scoped variable '{0}'."),An_enum_member_cannot_have_a_numeric_name:P(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:P(2454,1,"Variable_0_is_used_before_being_assigned_2454","Variable '{0}' is used before being assigned."),Type_alias_0_circularly_references_itself:P(2456,1,"Type_alias_0_circularly_references_itself_2456","Type alias '{0}' circularly references itself."),Type_alias_name_cannot_be_0:P(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2468,1,"Cannot_find_global_value_0_2468","Cannot find global value '{0}'."),The_0_operator_cannot_be_applied_to_type_symbol:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_and_ES5_Consider_using_a_standard_function_expression:P(2496,1,"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496","The 'arguments' object cannot be referenced in an arrow function in ES3 and 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:P(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:P(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:P(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:P(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:P(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:P(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:P(2503,1,"Cannot_find_namespace_0_2503","Cannot find namespace '{0}'."),Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_ES3_and_ES5_Consider_using_a_standard_function_or_method:P(2522,1,"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522","The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method."),yield_expressions_cannot_be_used_in_a_parameter_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2530,1,"Property_0_is_incompatible_with_index_signature_2530","Property '{0}' is incompatible with index signature."),Object_is_possibly_null:P(2531,1,"Object_is_possibly_null_2531","Object is possibly 'null'."),Object_is_possibly_undefined:P(2532,1,"Object_is_possibly_undefined_2532","Object is possibly 'undefined'."),Object_is_possibly_null_or_undefined:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2554,1,"Expected_0_arguments_but_got_1_2554","Expected {0} arguments, but got {1}."),Expected_at_least_0_arguments_but_got_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2571,1,"Object_is_of_type_unknown_2571","Object is of type 'unknown'."),A_rest_element_type_must_be_an_array_type:P(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:P(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:P(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:P(2577,1,"Return_type_annotation_circularly_references_itself_2577","Return type annotation circularly references itself."),Unused_ts_expect_error_directive:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums:P(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:P(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:P(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}'."),JSX_expressions_must_have_one_parent_element:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2705,1,"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705","An async function or method in ES5/ES3 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:P(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:P(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:P(2708,1,"Cannot_use_namespace_0_as_a_value_2708","Cannot use namespace '{0}' as a value."),Cannot_use_namespace_0_as_a_type:P(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:P(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:P(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_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:P(2712,1,"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712","A dynamic import call in ES5/ES3 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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2728,3,"_0_is_declared_here_2728","'{0}' is declared here."),Property_0_is_used_before_its_initialization:P(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:P(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:P(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:P(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:P(2733,1,"Property_0_was_also_declared_here_2733","Property '{0}' was also declared here."),Are_you_missing_a_semicolon:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2750,1,"The_implementation_signature_is_declared_here_2750","The implementation signature is declared here."),Circularity_originates_in_type_at_this_location:P(2751,1,"Circularity_originates_in_type_at_this_location_2751","Circularity originates in type at this location."),The_first_export_default_is_here:P(2752,1,"The_first_export_default_is_here_2752","The first export default is here."),Another_export_default_is_here:P(2753,1,"Another_export_default_is_here_2753","Another export default is here."),super_may_not_use_type_arguments:P(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),No_constituent_of_type_0_is_callable:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2769,1,"No_overload_matches_this_call_2769","No overload matches this call."),The_last_overload_gave_the_following_error:P(2770,1,"The_last_overload_gave_the_following_error_2770","The last overload gave the following error."),The_last_overload_is_declared_here:P(2771,1,"The_last_overload_is_declared_here_2771","The last overload is declared here."),Overload_0_of_1_2_gave_the_following_error:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(2785,1,"This_spread_always_overwrites_this_property_2785","This spread always overwrites this property."),_0_cannot_be_used_as_a_JSX_component:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_or_nodenext:P(2821,1,"Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2821","Import assertions are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Import_assertions_cannot_be_used_with_type_only_imports_or_exports:P(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_or_nodenext:P(2823,1,"Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext_2823","Import attributes are only supported when the '--module' option is set to 'esnext' or 'nodenext'."),Cannot_find_namespace_0_Did_you_mean_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:P(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', or 'nodenext', 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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_declaration_0_is_using_private_name_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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}'."),Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict:P(4090,1,"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090","Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict."),Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(4109,1,"Type_arguments_for_0_circularly_reference_themselves_4109","Type arguments for '{0}' circularly reference themselves."),Tuple_type_arguments_circularly_reference_themselves:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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'."),The_current_host_does_not_support_the_0_option:P(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:P(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:P(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:P(5012,1,"Cannot_read_file_0_Colon_1_5012","Cannot read file '{0}': {1}."),Failed_to_parse_file_0_Colon_1:P(5014,1,"Failed_to_parse_file_0_Colon_1_5014","Failed to parse file '{0}': {1}."),Unknown_compiler_option_0:P(5023,1,"Unknown_compiler_option_0_5023","Unknown compiler option '{0}'."),Compiler_option_0_requires_a_value_of_type_1:P(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:P(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:P(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:P(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:P(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_cannot_be_specified_when_option_target_is_ES3:P(5048,1,"Option_0_cannot_be_specified_when_option_target_is_ES3_5048","Option '{0}' cannot be specified when option 'target' is 'ES3'."),Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext:P(5071,1,"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071","Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'."),Unknown_build_option_0:P(5072,1,"Unknown_build_option_0_5072","Unknown build option '{0}'."),Build_option_0_requires_a_value_of_type_1:P(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:P(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:P(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:P(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:P(5077,1,"Unknown_build_option_0_Did_you_mean_1_5077","Unknown build option '{0}'. Did you mean '{1}'?"),Unknown_watch_option_0:P(5078,1,"Unknown_watch_option_0_5078","Unknown watch option '{0}'."),Unknown_watch_option_0_Did_you_mean_1:P(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:P(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:P(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:P(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:P(5083,1,"Cannot_read_file_0_5083","Cannot read file '{0}'."),A_tuple_member_cannot_be_both_optional_and_rest:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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_es2015_or_later:P(5095,1,"Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later_5095","Option '{0}' can only be used when 'module' is set to 'es2015' or later."),Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set:P(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:P(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:P(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:P(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:P(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:P(5103,1,"Invalid_value_for_ignoreDeprecations_5103","Invalid value for '--ignoreDeprecations'."),Option_0_is_redundant_and_cannot_be_specified_with_option_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6001,3,"Concatenate_and_emit_output_to_single_file_6001","Concatenate and emit output to single file."),Generates_corresponding_d_ts_file:P(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:P(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:P(6005,3,"Watch_input_files_6005","Watch input files."),Redirect_output_structure_to_the_directory:P(6006,3,"Redirect_output_structure_to_the_directory_6006","Redirect output structure to the directory."),Do_not_erase_const_enum_declarations_in_generated_code:P(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:P(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:P(6009,3,"Do_not_emit_comments_to_output_6009","Do not emit comments to output."),Do_not_emit_outputs:P(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:P(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:P(6012,3,"Skip_type_checking_of_declaration_files_6012","Skip type checking of declaration files."),Do_not_resolve_the_real_path_of_symlinks:P(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:P(6014,3,"Only_emit_d_ts_declaration_files_6014","Only emit '.d.ts' declaration files."),Specify_ECMAScript_target_version:P(6015,3,"Specify_ECMAScript_target_version_6015","Specify ECMAScript target version."),Specify_module_code_generation:P(6016,3,"Specify_module_code_generation_6016","Specify module code generation."),Print_this_message:P(6017,3,"Print_this_message_6017","Print this message."),Print_the_compiler_s_version:P(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:P(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:P(6023,3,"Syntax_Colon_0_6023","Syntax: {0}"),options:P(6024,3,"options_6024","options"),file:P(6025,3,"file_6025","file"),Examples_Colon_0:P(6026,3,"Examples_Colon_0_6026","Examples: {0}"),Options_Colon:P(6027,3,"Options_Colon_6027","Options:"),Version_0:P(6029,3,"Version_0_6029","Version {0}"),Insert_command_line_options_and_files_from_a_file:P(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:P(6031,3,"Starting_compilation_in_watch_mode_6031","Starting compilation in watch mode..."),File_change_detected_Starting_incremental_compilation:P(6032,3,"File_change_detected_Starting_incremental_compilation_6032","File change detected. Starting incremental compilation..."),KIND:P(6034,3,"KIND_6034","KIND"),FILE:P(6035,3,"FILE_6035","FILE"),VERSION:P(6036,3,"VERSION_6036","VERSION"),LOCATION:P(6037,3,"LOCATION_6037","LOCATION"),DIRECTORY:P(6038,3,"DIRECTORY_6038","DIRECTORY"),STRATEGY:P(6039,3,"STRATEGY_6039","STRATEGY"),FILE_OR_DIRECTORY:P(6040,3,"FILE_OR_DIRECTORY_6040","FILE OR DIRECTORY"),Errors_Files:P(6041,3,"Errors_Files_6041","Errors Files"),Generates_corresponding_map_file:P(6043,3,"Generates_corresponding_map_file_6043","Generates corresponding '.map' file."),Compiler_option_0_expects_an_argument:P(6044,1,"Compiler_option_0_expects_an_argument_6044","Compiler option '{0}' expects an argument."),Unterminated_quoted_string_in_response_file_0:P(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:P(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:P(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:P(6050,1,"Unable_to_open_file_0_6050","Unable to open file '{0}'."),Corrupted_locale_file_0:P(6051,1,"Corrupted_locale_file_0_6051","Corrupted locale file {0}."),Raise_error_on_expressions_and_declarations_with_an_implied_any_type:P(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:P(6053,1,"File_0_not_found_6053","File '{0}' not found."),File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1:P(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:P(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:P(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:P(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:P(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:P(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:P(6061,3,"NEWLINE_6061","NEWLINE"),Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line:P(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:P(6065,3,"Enables_experimental_support_for_ES7_decorators_6065","Enables experimental support for ES7 decorators."),Enables_experimental_support_for_emitting_type_metadata_for_decorators:P(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:P(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:P(6071,3,"Successfully_created_a_tsconfig_json_file_6071","Successfully created a tsconfig.json file."),Suppress_excess_property_checks_for_object_literals:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6080,3,"Specify_JSX_code_generation_6080","Specify JSX code generation."),File_0_has_an_unsupported_extension_so_skipping_it:P(6081,3,"File_0_has_an_unsupported_extension_so_skipping_it_6081","File '{0}' has an unsupported extension, so skipping it."),Only_amd_and_system_modules_are_supported_alongside_0:P(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:P(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:P(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:P(6085,3,"Enable_tracing_of_the_name_resolution_process_6085","Enable tracing of the name resolution process."),Resolving_module_0_from_1:P(6086,3,"Resolving_module_0_from_1_6086","======== Resolving module '{0}' from '{1}'. ========"),Explicitly_specified_module_resolution_kind_Colon_0:P(6087,3,"Explicitly_specified_module_resolution_kind_Colon_0_6087","Explicitly specified module resolution kind: '{0}'."),Module_resolution_kind_is_not_specified_using_0:P(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:P(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:P(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:P(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:P(6092,3,"Module_name_0_matched_pattern_1_6092","Module name '{0}', matched pattern '{1}'."),Trying_substitution_0_candidate_module_location_Colon_1:P(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:P(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:P(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:P(6096,3,"File_0_does_not_exist_6096","File '{0}' does not exist."),File_0_exists_use_it_as_a_name_resolution_result:P(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:P(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:P(6099,3,"Found_package_json_at_0_6099","Found 'package.json' at '{0}'."),package_json_does_not_have_a_0_field:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6110,3,"Trying_other_entries_in_rootDirs_6110","Trying other entries in 'rootDirs'."),Module_resolution_using_rootDirs_has_failed:P(6111,3,"Module_resolution_using_rootDirs_has_failed_6111","Module resolution using 'rootDirs' has failed."),Do_not_emit_use_strict_directives_in_module_output:P(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:P(6113,3,"Enable_strict_null_checks_6113","Enable strict null checks."),Unknown_option_excludes_Did_you_mean_exclude:P(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:P(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:P(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:P(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:P(6120,3,"Type_reference_directive_0_was_not_resolved_6120","======== Type reference directive '{0}' was not resolved. ========"),Resolving_with_primary_search_path_0:P(6121,3,"Resolving_with_primary_search_path_0_6121","Resolving with primary search path '{0}'."),Root_directory_cannot_be_determined_skipping_primary_search_paths:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6134,3,"Report_errors_on_unused_locals_6134","Report errors on unused locals."),Report_errors_on_unused_parameters:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6149,3,"Show_diagnostic_information_6149","Show diagnostic information."),Show_verbose_diagnostic_information:P(6150,3,"Show_verbose_diagnostic_information_6150","Show verbose diagnostic information."),Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6162,3,"Disable_size_limitations_on_JavaScript_projects_6162","Disable size limitations on JavaScript projects."),The_character_set_of_the_input_files:P(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:P(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:P(6165,3,"Do_not_truncate_error_messages_6165","Do not truncate error messages."),Output_directory_for_generated_declaration_files:P(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:P(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:P(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:P(6169,3,"Show_all_compiler_options_6169","Show all compiler options."),Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file:P(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:P(6171,3,"Command_line_Options_6171","Command-line Options"),Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3:P(6179,3,"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179","Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'."),Enable_all_strict_type_checking_options:P(6180,3,"Enable_all_strict_type_checking_options_6180","Enable all strict type-checking options."),Scoped_package_detected_looking_in_0:P(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:P(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:P(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:P(6186,3,"Enable_strict_checking_of_function_types_6186","Enable strict checking of function types."),Enable_strict_checking_of_property_initialization_in_classes:P(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:P(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:P(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:P(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:P(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:P(6193,3,"Found_1_error_Watching_for_file_changes_6193","Found 1 error. Watching for file changes."),Found_0_errors_Watching_for_file_changes:P(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:P(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:P(6196,1,"_0_is_declared_but_never_used_6196","'{0}' is declared but never used.",!0),Include_modules_imported_with_json_extension:P(6197,3,"Include_modules_imported_with_json_extension_6197","Include modules imported with '.json' extension"),All_destructured_elements_are_unused:P(6198,1,"All_destructured_elements_are_unused_6198","All destructured elements are unused.",!0),All_variables_are_unused:P(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:P(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:P(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:P(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:P(6203,3,"_0_was_also_declared_here_6203","'{0}' was also declared here."),and_here:P(6204,3,"and_here_6204","and here."),All_type_parameters_are_unused:P(6205,1,"All_type_parameters_are_unused_6205","All type parameters are unused."),package_json_has_a_typesVersions_field_with_version_specific_path_mappings:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6215,3,"Using_compiler_options_of_project_reference_redirect_0_6215","Using compiler options of project reference redirect '{0}'."),Found_1_error:P(6216,3,"Found_1_error_6216","Found 1 error."),Found_0_errors:P(6217,3,"Found_0_errors_6217","Found {0} errors."),Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2:P(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:P(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:P(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:P(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:P(6222,3,"Emit_class_fields_with_Define_instead_of_Set_6222","Emit class fields with Define instead of Set."),Generates_a_CPU_profile:P(6223,3,"Generates_a_CPU_profile_6223","Generates a CPU profile."),Disable_solution_searching_for_this_project:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6235,3,"Disable_loading_referenced_projects_6235","Disable loading referenced projects."),Arguments_for_the_rest_parameter_0_were_not_provided:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6243,3,"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243","Interpret optional property types as written, rather than adding 'undefined'."),Modules:P(6244,3,"Modules_6244","Modules"),File_Management:P(6245,3,"File_Management_6245","File Management"),Emit:P(6246,3,"Emit_6246","Emit"),JavaScript_Support:P(6247,3,"JavaScript_Support_6247","JavaScript Support"),Type_Checking:P(6248,3,"Type_Checking_6248","Type Checking"),Editor_Support:P(6249,3,"Editor_Support_6249","Editor Support"),Watch_and_Build_Modes:P(6250,3,"Watch_and_Build_Modes_6250","Watch and Build Modes"),Compiler_Diagnostics:P(6251,3,"Compiler_Diagnostics_6251","Compiler Diagnostics"),Interop_Constraints:P(6252,3,"Interop_Constraints_6252","Interop Constraints"),Backwards_Compatibility:P(6253,3,"Backwards_Compatibility_6253","Backwards Compatibility"),Language_and_Environment:P(6254,3,"Language_and_Environment_6254","Language and Environment"),Projects:P(6255,3,"Projects_6255","Projects"),Output_Formatting:P(6256,3,"Output_Formatting_6256","Output Formatting"),Completeness:P(6257,3,"Completeness_6257","Completeness"),_0_should_be_set_inside_the_compilerOptions_object_of_the_config_json_file:P(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:P(6259,3,"Found_1_error_in_0_6259","Found 1 error in {0}"),Found_0_errors_in_the_same_file_starting_at_Colon_1:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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.`),Enable_project_compilation:P(6302,3,"Enable_project_compilation_6302","Enable project compilation"),Composite_projects_may_not_disable_declaration_emit:P(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:P(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:P(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:P(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."),Cannot_prepend_project_0_because_it_does_not_have_outFile_set:P(6308,1,"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308","Cannot prepend project '{0}' because it does not have 'outFile' set"),Output_file_0_from_project_1_does_not_exist:P(6309,1,"Output_file_0_from_project_1_does_not_exist_6309","Output file '{0}' from project '{1}' does not exist"),Referenced_project_0_may_not_disable_emit:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6357,3,"A_non_dry_build_would_build_project_0_6357","A non-dry build would build project '{0}'"),Building_project_0:P(6358,3,"Building_project_0_6358","Building project '{0}'..."),Updating_output_timestamps_of_project_0:P(6359,3,"Updating_output_timestamps_of_project_0_6359","Updating output timestamps of project '{0}'..."),Project_0_is_up_to_date:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6370,1,"Options_0_and_1_cannot_be_combined_6370","Options '{0}' and '{1}' cannot be combined."),Updating_unchanged_output_timestamps_of_project_0:P(6371,3,"Updating_unchanged_output_timestamps_of_project_0_6371","Updating unchanged output timestamps of project '{0}'..."),Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed:P(6372,3,"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372","Project '{0}' is out of date because output of its dependency '{1}' has changed"),Updating_output_of_project_0:P(6373,3,"Updating_output_of_project_0_6373","Updating output of project '{0}'..."),A_non_dry_build_would_update_timestamps_for_output_of_project_0:P(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}'"),A_non_dry_build_would_update_output_of_project_0:P(6375,3,"A_non_dry_build_would_update_output_of_project_0_6375","A non-dry build would update output of project '{0}'"),Cannot_update_output_of_project_0_because_there_was_error_reading_file_1:P(6376,3,"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376","Cannot update output of project '{0}' because there was error reading file '{1}'"),Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1:P(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:P(6379,1,"Composite_projects_may_not_disable_incremental_compilation_6379","Composite projects may not disable incremental compilation."),Specify_file_to_store_incremental_compilation_information:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6402,3,"Resolving_in_0_mode_with_conditions_1_6402","Resolving in {0} mode with conditions {1}."),Matched_0_condition_1:P(6403,3,"Matched_0_condition_1_6403","Matched '{0}' condition '{1}'."),Using_0_subpath_1_with_target_2:P(6404,3,"Using_0_subpath_1_with_target_2_6404","Using '{0}' subpath '{1}' with target '{2}'."),Saw_non_matching_condition_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6413,3,"Entering_conditional_exports_6413","Entering conditional exports."),Resolved_under_condition_0:P(6414,3,"Resolved_under_condition_0_6414","Resolved under condition '{0}'."),Failed_to_resolve_under_condition_0:P(6415,3,"Failed_to_resolve_under_condition_0_6415","Failed to resolve under condition '{0}'."),Exiting_conditional_exports:P(6416,3,"Exiting_conditional_exports_6416","Exiting conditional exports."),Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6602,3,"Allow_accessing_UMD_globals_from_modules_6602","Allow accessing UMD globals from modules."),Disable_error_reporting_for_unreachable_code:P(6603,3,"Disable_error_reporting_for_unreachable_code_6603","Disable error reporting for unreachable code."),Disable_error_reporting_for_unused_labels:P(6604,3,"Disable_error_reporting_for_unused_labels_6604","Disable error reporting for unused labels."),Ensure_use_strict_is_always_emitted:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6614,3,"Create_sourcemaps_for_d_ts_files_6614","Create sourcemaps for d.ts files."),Output_compiler_performance_information_after_building:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6627,3,"Filters_results_from_the_include_option_6627","Filters results from the `include` option."),Remove_a_list_of_directories_from_the_watch_process:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6659,3,"Set_the_newline_character_for_emitting_files_6659","Set the newline character for emitting files."),Disable_emitting_files_from_a_compilation:P(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:P(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:P(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:P(6663,3,"Disable_truncating_types_in_error_messages_6663","Disable truncating types in error messages."),Enable_error_reporting_for_fallthrough_cases_in_switch_statements:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6677,3,"Deprecated_setting_Use_outFile_instead_6677","Deprecated setting. Use 'outFile' instead."),Specify_an_output_folder_for_all_emitted_files:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6688,3,"Disable_emitting_comments_6688","Disable emitting comments."),Enable_importing_json_files:P(6689,3,"Enable_importing_json_files_6689","Enable importing .json files."),Specify_the_root_folder_within_your_source_files:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(6712,3,"Emit_ECMAScript_standard_compliant_class_fields_6712","Emit ECMAScript-standard-compliant class fields."),Enable_verbose_logging:P(6713,3,"Enable_verbose_logging_6713","Enable verbose logging."),Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality:P(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:P(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:P(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:P(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."),Default_catch_clause_variables_as_unknown_instead_of_any:P(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:P(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."),one_of_Colon:P(6900,3,"one_of_Colon_6900","one of:"),one_or_more_Colon:P(6901,3,"one_or_more_Colon_6901","one or more:"),type_Colon:P(6902,3,"type_Colon_6902","type:"),default_Colon:P(6903,3,"default_Colon_6903","default:"),module_system_or_esModuleInterop:P(6904,3,"module_system_or_esModuleInterop_6904",'module === "system" or esModuleInterop'),false_unless_strict_is_set:P(6905,3,"false_unless_strict_is_set_6905","`false`, unless `strict` is set"),false_unless_composite_is_set:P(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:P(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:P(6908,3,"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908",'`[]` if `files` is specified, otherwise `["**/*"]`'),true_if_composite_false_otherwise:P(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:P(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:P(6911,3,"Computed_from_the_list_of_input_files_6911","Computed from the list of input files"),Platform_specific:P(6912,3,"Platform_specific_6912","Platform specific"),You_can_learn_about_all_of_the_compiler_options_at_0:P(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:P(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:P(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:P(6916,3,"COMMON_COMMANDS_6916","COMMON COMMANDS"),ALL_COMPILER_OPTIONS:P(6917,3,"ALL_COMPILER_OPTIONS_6917","ALL COMPILER OPTIONS"),WATCH_OPTIONS:P(6918,3,"WATCH_OPTIONS_6918","WATCH OPTIONS"),BUILD_OPTIONS:P(6919,3,"BUILD_OPTIONS_6919","BUILD OPTIONS"),COMMON_COMPILER_OPTIONS:P(6920,3,"COMMON_COMPILER_OPTIONS_6920","COMMON COMPILER OPTIONS"),COMMAND_LINE_FLAGS:P(6921,3,"COMMAND_LINE_FLAGS_6921","COMMAND LINE FLAGS"),tsc_Colon_The_TypeScript_Compiler:P(6922,3,"tsc_Colon_The_TypeScript_Compiler_6922","tsc: The TypeScript Compiler"),Compiles_the_current_project_tsconfig_json_in_the_working_directory:P(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:P(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:P(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:P(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:P(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:P(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:P(6929,3,"Compiles_the_current_project_with_additional_settings_6929","Compiles the current project, with additional settings."),true_for_ES2022_and_above_including_ESNext:P(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:P(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:P(7005,1,"Variable_0_implicitly_has_an_1_type_7005","Variable '{0}' implicitly has an '{1}' type."),Parameter_0_implicitly_has_an_1_type:P(7006,1,"Parameter_0_implicitly_has_an_1_type_7006","Parameter '{0}' implicitly has an '{1}' type."),Member_0_implicitly_has_an_1_type:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(7027,1,"Unreachable_code_detected_7027","Unreachable code detected.",!0),Unused_label:P(7028,1,"Unused_label_7028","Unused label.",!0),Fallthrough_case_in_switch:P(7029,1,"Fallthrough_case_in_switch_7029","Fallthrough case in switch."),Not_all_code_paths_return_a_value:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(8019,3,"Report_errors_in_js_files_8019","Report errors in .js files."),JSDoc_types_can_only_be_used_inside_documentation_comments:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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."),JSX_attributes_must_only_be_assigned_a_non_empty_expression:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:P(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:P(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:P(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:P(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:P(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:P(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:P(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Circularity_detected_while_resolving_configuration_Colon_0:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(80010,2,"JSDoc_typedefs_may_be_converted_to_TypeScript_types_80010","JSDoc typedefs may be converted to TypeScript types."),Add_missing_super_call:P(90001,3,"Add_missing_super_call_90001","Add missing 'super()' call"),Make_super_call_the_first_statement_in_the_constructor:P(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:P(90003,3,"Change_extends_to_implements_90003","Change 'extends' to 'implements'"),Remove_unused_declaration_for_Colon_0:P(90004,3,"Remove_unused_declaration_for_Colon_0_90004","Remove unused declaration for: '{0}'"),Remove_import_from_0:P(90005,3,"Remove_import_from_0_90005","Remove import from '{0}'"),Implement_interface_0:P(90006,3,"Implement_interface_0_90006","Implement interface '{0}'"),Implement_inherited_abstract_class:P(90007,3,"Implement_inherited_abstract_class_90007","Implement inherited abstract class"),Add_0_to_unresolved_variable:P(90008,3,"Add_0_to_unresolved_variable_90008","Add '{0}.' to unresolved variable"),Remove_variable_statement:P(90010,3,"Remove_variable_statement_90010","Remove variable statement"),Remove_template_tag:P(90011,3,"Remove_template_tag_90011","Remove template tag"),Remove_type_parameters:P(90012,3,"Remove_type_parameters_90012","Remove type parameters"),Import_0_from_1:P(90013,3,"Import_0_from_1_90013",`Import '{0}' from "{1}"`),Change_0_to_1:P(90014,3,"Change_0_to_1_90014","Change '{0}' to '{1}'"),Declare_property_0:P(90016,3,"Declare_property_0_90016","Declare property '{0}'"),Add_index_signature_for_property_0:P(90017,3,"Add_index_signature_for_property_0_90017","Add index signature for property '{0}'"),Disable_checking_for_this_file:P(90018,3,"Disable_checking_for_this_file_90018","Disable checking for this file"),Ignore_this_error_message:P(90019,3,"Ignore_this_error_message_90019","Ignore this error message"),Initialize_property_0_in_the_constructor:P(90020,3,"Initialize_property_0_in_the_constructor_90020","Initialize property '{0}' in the constructor"),Initialize_static_property_0:P(90021,3,"Initialize_static_property_0_90021","Initialize static property '{0}'"),Change_spelling_to_0:P(90022,3,"Change_spelling_to_0_90022","Change spelling to '{0}'"),Declare_method_0:P(90023,3,"Declare_method_0_90023","Declare method '{0}'"),Declare_static_method_0:P(90024,3,"Declare_static_method_0_90024","Declare static method '{0}'"),Prefix_0_with_an_underscore:P(90025,3,"Prefix_0_with_an_underscore_90025","Prefix '{0}' with an underscore"),Rewrite_as_the_indexed_access_type_0:P(90026,3,"Rewrite_as_the_indexed_access_type_0_90026","Rewrite as the indexed access type '{0}'"),Declare_static_property_0:P(90027,3,"Declare_static_property_0_90027","Declare static property '{0}'"),Call_decorator_expression:P(90028,3,"Call_decorator_expression_90028","Call decorator expression"),Add_async_modifier_to_containing_function:P(90029,3,"Add_async_modifier_to_containing_function_90029","Add async modifier to containing function"),Replace_infer_0_with_unknown:P(90030,3,"Replace_infer_0_with_unknown_90030","Replace 'infer {0}' with 'unknown'"),Replace_all_unused_infer_with_unknown:P(90031,3,"Replace_all_unused_infer_with_unknown_90031","Replace all unused 'infer' with 'unknown'"),Add_parameter_name:P(90034,3,"Add_parameter_name_90034","Add parameter name"),Declare_private_property_0:P(90035,3,"Declare_private_property_0_90035","Declare private property '{0}'"),Replace_0_with_Promise_1:P(90036,3,"Replace_0_with_Promise_1_90036","Replace '{0}' with 'Promise<{1}>'"),Fix_all_incorrect_return_type_of_an_async_functions:P(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:P(90038,3,"Declare_private_method_0_90038","Declare private method '{0}'"),Remove_unused_destructuring_declaration:P(90039,3,"Remove_unused_destructuring_declaration_90039","Remove unused destructuring declaration"),Remove_unused_declarations_for_Colon_0:P(90041,3,"Remove_unused_declarations_for_Colon_0_90041","Remove unused declarations for: '{0}'"),Declare_a_private_field_named_0:P(90053,3,"Declare_a_private_field_named_0_90053","Declare a private field named '{0}'."),Includes_imports_of_types_referenced_by_0:P(90054,3,"Includes_imports_of_types_referenced_by_0_90054","Includes imports of types referenced by '{0}'"),Remove_type_from_import_declaration_from_0:P(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:P(90056,3,"Remove_type_from_import_of_0_from_1_90056",`Remove 'type' from import of '{0}' from "{1}"`),Add_import_from_0:P(90057,3,"Add_import_from_0_90057",'Add import from "{0}"'),Update_import_from_0:P(90058,3,"Update_import_from_0_90058",'Update import from "{0}"'),Export_0_from_module_1:P(90059,3,"Export_0_from_module_1_90059","Export '{0}' from module '{1}'"),Export_all_referenced_locals:P(90060,3,"Export_all_referenced_locals_90060","Export all referenced locals"),Convert_function_to_an_ES2015_class:P(95001,3,"Convert_function_to_an_ES2015_class_95001","Convert function to an ES2015 class"),Convert_0_to_1_in_0:P(95003,3,"Convert_0_to_1_in_0_95003","Convert '{0}' to '{1} in {0}'"),Extract_to_0_in_1:P(95004,3,"Extract_to_0_in_1_95004","Extract to {0} in {1}"),Extract_function:P(95005,3,"Extract_function_95005","Extract function"),Extract_constant:P(95006,3,"Extract_constant_95006","Extract constant"),Extract_to_0_in_enclosing_scope:P(95007,3,"Extract_to_0_in_enclosing_scope_95007","Extract to {0} in enclosing scope"),Extract_to_0_in_1_scope:P(95008,3,"Extract_to_0_in_1_scope_95008","Extract to {0} in {1} scope"),Annotate_with_type_from_JSDoc:P(95009,3,"Annotate_with_type_from_JSDoc_95009","Annotate with type from JSDoc"),Infer_type_of_0_from_usage:P(95011,3,"Infer_type_of_0_from_usage_95011","Infer type of '{0}' from usage"),Infer_parameter_types_from_usage:P(95012,3,"Infer_parameter_types_from_usage_95012","Infer parameter types from usage"),Convert_to_default_import:P(95013,3,"Convert_to_default_import_95013","Convert to default import"),Install_0:P(95014,3,"Install_0_95014","Install '{0}'"),Replace_import_with_0:P(95015,3,"Replace_import_with_0_95015","Replace import with '{0}'."),Use_synthetic_default_member:P(95016,3,"Use_synthetic_default_member_95016","Use synthetic 'default' member."),Convert_to_ES_module:P(95017,3,"Convert_to_ES_module_95017","Convert to ES module"),Add_undefined_type_to_property_0:P(95018,3,"Add_undefined_type_to_property_0_95018","Add 'undefined' type to property '{0}'"),Add_initializer_to_property_0:P(95019,3,"Add_initializer_to_property_0_95019","Add initializer to property '{0}'"),Add_definite_assignment_assertion_to_property_0:P(95020,3,"Add_definite_assignment_assertion_to_property_0_95020","Add definite assignment assertion to property '{0}'"),Convert_all_type_literals_to_mapped_type:P(95021,3,"Convert_all_type_literals_to_mapped_type_95021","Convert all type literals to mapped type"),Add_all_missing_members:P(95022,3,"Add_all_missing_members_95022","Add all missing members"),Infer_all_types_from_usage:P(95023,3,"Infer_all_types_from_usage_95023","Infer all types from usage"),Delete_all_unused_declarations:P(95024,3,"Delete_all_unused_declarations_95024","Delete all unused declarations"),Prefix_all_unused_declarations_with_where_possible:P(95025,3,"Prefix_all_unused_declarations_with_where_possible_95025","Prefix all unused declarations with '_' where possible"),Fix_all_detected_spelling_errors:P(95026,3,"Fix_all_detected_spelling_errors_95026","Fix all detected spelling errors"),Add_initializers_to_all_uninitialized_properties:P(95027,3,"Add_initializers_to_all_uninitialized_properties_95027","Add initializers to all uninitialized properties"),Add_definite_assignment_assertions_to_all_uninitialized_properties:P(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:P(95029,3,"Add_undefined_type_to_all_uninitialized_properties_95029","Add undefined type to all uninitialized properties"),Change_all_jsdoc_style_types_to_TypeScript:P(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:P(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:P(95032,3,"Implement_all_unimplemented_interfaces_95032","Implement all unimplemented interfaces"),Install_all_missing_types_packages:P(95033,3,"Install_all_missing_types_packages_95033","Install all missing types packages"),Rewrite_all_as_indexed_access_types:P(95034,3,"Rewrite_all_as_indexed_access_types_95034","Rewrite all as indexed access types"),Convert_all_to_default_imports:P(95035,3,"Convert_all_to_default_imports_95035","Convert all to default imports"),Make_all_super_calls_the_first_statement_in_their_constructor:P(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:P(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:P(95038,3,"Change_all_extended_interfaces_to_implements_95038","Change all extended interfaces to 'implements'"),Add_all_missing_super_calls:P(95039,3,"Add_all_missing_super_calls_95039","Add all missing super calls"),Implement_all_inherited_abstract_classes:P(95040,3,"Implement_all_inherited_abstract_classes_95040","Implement all inherited abstract classes"),Add_all_missing_async_modifiers:P(95041,3,"Add_all_missing_async_modifiers_95041","Add all missing 'async' modifiers"),Add_ts_ignore_to_all_error_messages:P(95042,3,"Add_ts_ignore_to_all_error_messages_95042","Add '@ts-ignore' to all error messages"),Annotate_everything_with_types_from_JSDoc:P(95043,3,"Annotate_everything_with_types_from_JSDoc_95043","Annotate everything with types from JSDoc"),Add_to_all_uncalled_decorators:P(95044,3,"Add_to_all_uncalled_decorators_95044","Add '()' to all uncalled decorators"),Convert_all_constructor_functions_to_classes:P(95045,3,"Convert_all_constructor_functions_to_classes_95045","Convert all constructor functions to classes"),Generate_get_and_set_accessors:P(95046,3,"Generate_get_and_set_accessors_95046","Generate 'get' and 'set' accessors"),Convert_require_to_import:P(95047,3,"Convert_require_to_import_95047","Convert 'require' to 'import'"),Convert_all_require_to_import:P(95048,3,"Convert_all_require_to_import_95048","Convert all 'require' to 'import'"),Move_to_a_new_file:P(95049,3,"Move_to_a_new_file_95049","Move to a new file"),Remove_unreachable_code:P(95050,3,"Remove_unreachable_code_95050","Remove unreachable code"),Remove_all_unreachable_code:P(95051,3,"Remove_all_unreachable_code_95051","Remove all unreachable code"),Add_missing_typeof:P(95052,3,"Add_missing_typeof_95052","Add missing 'typeof'"),Remove_unused_label:P(95053,3,"Remove_unused_label_95053","Remove unused label"),Remove_all_unused_labels:P(95054,3,"Remove_all_unused_labels_95054","Remove all unused labels"),Convert_0_to_mapped_object_type:P(95055,3,"Convert_0_to_mapped_object_type_95055","Convert '{0}' to mapped object type"),Convert_namespace_import_to_named_imports:P(95056,3,"Convert_namespace_import_to_named_imports_95056","Convert namespace import to named imports"),Convert_named_imports_to_namespace_import:P(95057,3,"Convert_named_imports_to_namespace_import_95057","Convert named imports to namespace import"),Add_or_remove_braces_in_an_arrow_function:P(95058,3,"Add_or_remove_braces_in_an_arrow_function_95058","Add or remove braces in an arrow function"),Add_braces_to_arrow_function:P(95059,3,"Add_braces_to_arrow_function_95059","Add braces to arrow function"),Remove_braces_from_arrow_function:P(95060,3,"Remove_braces_from_arrow_function_95060","Remove braces from arrow function"),Convert_default_export_to_named_export:P(95061,3,"Convert_default_export_to_named_export_95061","Convert default export to named export"),Convert_named_export_to_default_export:P(95062,3,"Convert_named_export_to_default_export_95062","Convert named export to default export"),Add_missing_enum_member_0:P(95063,3,"Add_missing_enum_member_0_95063","Add missing enum member '{0}'"),Add_all_missing_imports:P(95064,3,"Add_all_missing_imports_95064","Add all missing imports"),Convert_to_async_function:P(95065,3,"Convert_to_async_function_95065","Convert to async function"),Convert_all_to_async_functions:P(95066,3,"Convert_all_to_async_functions_95066","Convert all to async functions"),Add_missing_call_parentheses:P(95067,3,"Add_missing_call_parentheses_95067","Add missing call parentheses"),Add_all_missing_call_parentheses:P(95068,3,"Add_all_missing_call_parentheses_95068","Add all missing call parentheses"),Add_unknown_conversion_for_non_overlapping_types:P(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:P(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:P(95071,3,"Add_missing_new_operator_to_call_95071","Add missing 'new' operator to call"),Add_missing_new_operator_to_all_calls:P(95072,3,"Add_missing_new_operator_to_all_calls_95072","Add missing 'new' operator to all calls"),Add_names_to_all_parameters_without_names:P(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:P(95074,3,"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074","Enable the 'experimentalDecorators' option in your configuration file"),Convert_parameters_to_destructured_object:P(95075,3,"Convert_parameters_to_destructured_object_95075","Convert parameters to destructured object"),Extract_type:P(95077,3,"Extract_type_95077","Extract type"),Extract_to_type_alias:P(95078,3,"Extract_to_type_alias_95078","Extract to type alias"),Extract_to_typedef:P(95079,3,"Extract_to_typedef_95079","Extract to typedef"),Infer_this_type_of_0_from_usage:P(95080,3,"Infer_this_type_of_0_from_usage_95080","Infer 'this' type of '{0}' from usage"),Add_const_to_unresolved_variable:P(95081,3,"Add_const_to_unresolved_variable_95081","Add 'const' to unresolved variable"),Add_const_to_all_unresolved_variables:P(95082,3,"Add_const_to_all_unresolved_variables_95082","Add 'const' to all unresolved variables"),Add_await:P(95083,3,"Add_await_95083","Add 'await'"),Add_await_to_initializer_for_0:P(95084,3,"Add_await_to_initializer_for_0_95084","Add 'await' to initializer for '{0}'"),Fix_all_expressions_possibly_missing_await:P(95085,3,"Fix_all_expressions_possibly_missing_await_95085","Fix all expressions possibly missing 'await'"),Remove_unnecessary_await:P(95086,3,"Remove_unnecessary_await_95086","Remove unnecessary 'await'"),Remove_all_unnecessary_uses_of_await:P(95087,3,"Remove_all_unnecessary_uses_of_await_95087","Remove all unnecessary uses of 'await'"),Enable_the_jsx_flag_in_your_configuration_file:P(95088,3,"Enable_the_jsx_flag_in_your_configuration_file_95088","Enable the '--jsx' flag in your configuration file"),Add_await_to_initializers:P(95089,3,"Add_await_to_initializers_95089","Add 'await' to initializers"),Extract_to_interface:P(95090,3,"Extract_to_interface_95090","Extract to interface"),Convert_to_a_bigint_numeric_literal:P(95091,3,"Convert_to_a_bigint_numeric_literal_95091","Convert to a bigint numeric literal"),Convert_all_to_bigint_numeric_literals:P(95092,3,"Convert_all_to_bigint_numeric_literals_95092","Convert all to bigint numeric literals"),Convert_const_to_let:P(95093,3,"Convert_const_to_let_95093","Convert 'const' to 'let'"),Prefix_with_declare:P(95094,3,"Prefix_with_declare_95094","Prefix with 'declare'"),Prefix_all_incorrect_property_declarations_with_declare:P(95095,3,"Prefix_all_incorrect_property_declarations_with_declare_95095","Prefix all incorrect property declarations with 'declare'"),Convert_to_template_string:P(95096,3,"Convert_to_template_string_95096","Convert to template string"),Add_export_to_make_this_file_into_a_module:P(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:P(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:P(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:P(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:P(95101,3,"Convert_all_invalid_characters_to_HTML_entity_code_95101","Convert all invalid characters to HTML entity code"),Convert_all_const_to_let:P(95102,3,"Convert_all_const_to_let_95102","Convert all 'const' to 'let'"),Convert_function_expression_0_to_arrow_function:P(95105,3,"Convert_function_expression_0_to_arrow_function_95105","Convert function expression '{0}' to arrow function"),Convert_function_declaration_0_to_arrow_function:P(95106,3,"Convert_function_declaration_0_to_arrow_function_95106","Convert function declaration '{0}' to arrow function"),Fix_all_implicit_this_errors:P(95107,3,"Fix_all_implicit_this_errors_95107","Fix all implicit-'this' errors"),Wrap_invalid_character_in_an_expression_container:P(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:P(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:P(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:P(95111,3,"Add_a_return_statement_95111","Add a return statement"),Remove_braces_from_arrow_function_body:P(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:P(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:P(95114,3,"Add_all_missing_return_statement_95114","Add all missing return statement"),Remove_braces_from_all_arrow_function_bodies_with_relevant_issues:P(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:P(95116,3,"Wrap_all_object_literal_with_parentheses_95116","Wrap all object literal with parentheses"),Move_labeled_tuple_element_modifiers_to_labels:P(95117,3,"Move_labeled_tuple_element_modifiers_to_labels_95117","Move labeled tuple element modifiers to labels"),Convert_overload_list_to_single_signature:P(95118,3,"Convert_overload_list_to_single_signature_95118","Convert overload list to single signature"),Generate_get_and_set_accessors_for_all_overriding_properties:P(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:P(95120,3,"Wrap_in_JSX_fragment_95120","Wrap in JSX fragment"),Wrap_all_unparented_JSX_in_JSX_fragment:P(95121,3,"Wrap_all_unparented_JSX_in_JSX_fragment_95121","Wrap all unparented JSX in JSX fragment"),Convert_arrow_function_or_function_expression:P(95122,3,"Convert_arrow_function_or_function_expression_95122","Convert arrow function or function expression"),Convert_to_anonymous_function:P(95123,3,"Convert_to_anonymous_function_95123","Convert to anonymous function"),Convert_to_named_function:P(95124,3,"Convert_to_named_function_95124","Convert to named function"),Convert_to_arrow_function:P(95125,3,"Convert_to_arrow_function_95125","Convert to arrow function"),Remove_parentheses:P(95126,3,"Remove_parentheses_95126","Remove parentheses"),Could_not_find_a_containing_arrow_function:P(95127,3,"Could_not_find_a_containing_arrow_function_95127","Could not find a containing arrow function"),Containing_function_is_not_an_arrow_function:P(95128,3,"Containing_function_is_not_an_arrow_function_95128","Containing function is not an arrow function"),Could_not_find_export_statement:P(95129,3,"Could_not_find_export_statement_95129","Could not find export statement"),This_file_already_has_a_default_export:P(95130,3,"This_file_already_has_a_default_export_95130","This file already has a default export"),Could_not_find_import_clause:P(95131,3,"Could_not_find_import_clause_95131","Could not find import clause"),Could_not_find_namespace_import_or_named_imports:P(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:P(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:P(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:P(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:P(95136,3,"Name_is_not_valid_95136","Name is not valid"),Can_only_convert_property_with_modifier:P(95137,3,"Can_only_convert_property_with_modifier_95137","Can only convert property with modifier"),Switch_each_misused_0_to_1:P(95138,3,"Switch_each_misused_0_to_1_95138","Switch each misused '{0}' to '{1}'"),Convert_to_optional_chain_expression:P(95139,3,"Convert_to_optional_chain_expression_95139","Convert to optional chain expression"),Could_not_find_convertible_access_expression:P(95140,3,"Could_not_find_convertible_access_expression_95140","Could not find convertible access expression"),Could_not_find_matching_access_expressions:P(95141,3,"Could_not_find_matching_access_expressions_95141","Could not find matching access expressions"),Can_only_convert_logical_AND_access_chains:P(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:P(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:P(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:P(95145,3,"Use_element_access_for_0_95145","Use element access for '{0}'"),Use_element_access_for_all_undeclared_properties:P(95146,3,"Use_element_access_for_all_undeclared_properties_95146","Use element access for all undeclared properties."),Delete_all_unused_imports:P(95147,3,"Delete_all_unused_imports_95147","Delete all unused imports"),Infer_function_return_type:P(95148,3,"Infer_function_return_type_95148","Infer function return type"),Return_type_must_be_inferred_from_a_function:P(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:P(95150,3,"Could_not_determine_function_return_type_95150","Could not determine function return type"),Could_not_convert_to_arrow_function:P(95151,3,"Could_not_convert_to_arrow_function_95151","Could not convert to arrow function"),Could_not_convert_to_named_function:P(95152,3,"Could_not_convert_to_named_function_95152","Could not convert to named function"),Could_not_convert_to_anonymous_function:P(95153,3,"Could_not_convert_to_anonymous_function_95153","Could not convert to anonymous function"),Can_only_convert_string_concatenations_and_string_literals:P(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:P(95155,3,"Selection_is_not_a_valid_statement_or_statements_95155","Selection is not a valid statement or statements"),Add_missing_function_declaration_0:P(95156,3,"Add_missing_function_declaration_0_95156","Add missing function declaration '{0}'"),Add_all_missing_function_declarations:P(95157,3,"Add_all_missing_function_declarations_95157","Add all missing function declarations"),Method_not_implemented:P(95158,3,"Method_not_implemented_95158","Method not implemented."),Function_not_implemented:P(95159,3,"Function_not_implemented_95159","Function not implemented."),Add_override_modifier:P(95160,3,"Add_override_modifier_95160","Add 'override' modifier"),Remove_override_modifier:P(95161,3,"Remove_override_modifier_95161","Remove 'override' modifier"),Add_all_missing_override_modifiers:P(95162,3,"Add_all_missing_override_modifiers_95162","Add all missing 'override' modifiers"),Remove_all_unnecessary_override_modifiers:P(95163,3,"Remove_all_unnecessary_override_modifiers_95163","Remove all unnecessary 'override' modifiers"),Can_only_convert_named_export:P(95164,3,"Can_only_convert_named_export_95164","Can only convert named export"),Add_missing_properties:P(95165,3,"Add_missing_properties_95165","Add missing properties"),Add_all_missing_properties:P(95166,3,"Add_all_missing_properties_95166","Add all missing properties"),Add_missing_attributes:P(95167,3,"Add_missing_attributes_95167","Add missing attributes"),Add_all_missing_attributes:P(95168,3,"Add_all_missing_attributes_95168","Add all missing attributes"),Add_undefined_to_optional_property_type:P(95169,3,"Add_undefined_to_optional_property_type_95169","Add 'undefined' to optional property type"),Convert_named_imports_to_default_import:P(95170,3,"Convert_named_imports_to_default_import_95170","Convert named imports to default import"),Delete_unused_param_tag_0:P(95171,3,"Delete_unused_param_tag_0_95171","Delete unused '@param' tag '{0}'"),Delete_all_unused_param_tags:P(95172,3,"Delete_all_unused_param_tags_95172","Delete all unused '@param' tags"),Rename_param_tag_name_0_to_1:P(95173,3,"Rename_param_tag_name_0_to_1_95173","Rename '@param' tag name '{0}' to '{1}'"),Use_0:P(95174,3,"Use_0_95174","Use `{0}`."),Use_Number_isNaN_in_all_conditions:P(95175,3,"Use_Number_isNaN_in_all_conditions_95175","Use `Number.isNaN` in all conditions."),Convert_typedef_to_TypeScript_type:P(95176,3,"Convert_typedef_to_TypeScript_type_95176","Convert typedef to TypeScript type."),Convert_all_typedef_to_TypeScript_types:P(95177,3,"Convert_all_typedef_to_TypeScript_types_95177","Convert all typedef to TypeScript types."),Move_to_file:P(95178,3,"Move_to_file_95178","Move to file"),Cannot_move_to_file_selected_file_is_invalid:P(95179,3,"Cannot_move_to_file_selected_file_is_invalid_95179","Cannot move to file, selected file is invalid"),Use_import_type:P(95180,3,"Use_import_type_95180","Use 'import type'"),Use_type_0:P(95181,3,"Use_type_0_95181","Use 'type {0}'"),Fix_all_with_type_only_imports:P(95182,3,"Fix_all_with_type_only_imports_95182","Fix all with type-only imports"),Cannot_move_statements_to_the_selected_file:P(95183,3,"Cannot_move_statements_to_the_selected_file_95183","Cannot move statements to the selected file"),Inline_variable:P(95184,3,"Inline_variable_95184","Inline variable"),Could_not_find_variable_to_inline:P(95185,3,"Could_not_find_variable_to_inline_95185","Could not find variable to inline."),Variables_with_multiple_declarations_cannot_be_inlined:P(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:P(95187,3,"Add_missing_comma_for_object_member_completion_0_95187","Add missing comma for object member completion '{0}'."),No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(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:P(18046,1,"_0_is_of_type_unknown_18046","'{0}' is of type 'unknown'."),_0_is_possibly_null:P(18047,1,"_0_is_possibly_null_18047","'{0}' is possibly 'null'."),_0_is_possibly_undefined:P(18048,1,"_0_is_possibly_undefined_18048","'{0}' is possibly 'undefined'."),_0_is_possibly_null_or_undefined:P(18049,1,"_0_is_possibly_null_or_undefined_18049","'{0}' is possibly 'null' or 'undefined'."),The_value_0_cannot_be_used_here:P(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:P(18051,1,"Compiler_option_0_cannot_be_given_an_empty_string_18051","Compiler option '{0}' cannot be given an empty string."),Non_abstract_class_0_does_not_implement_all_abstract_members_of_1:P(18052,1,"Non_abstract_class_0_does_not_implement_all_abstract_members_of_1_18052","Non-abstract class '{0}' does not implement all abstract members of '{1}'"),Its_type_0_is_not_a_valid_JSX_element_type:P(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:P(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.")}}});function ph(t){return t>=80}function B2e(t){return t===32||ph(t)}function TO(t,u){if(t=2?TO(t,nZe):u===1?TO(t,tZe):TO(t,Xqe)}function pTt(t,u){return u>=2?TO(t,uZe):u===1?TO(t,iZe):TO(t,eZe)}function gTt(t){const u=[];return t.forEach((s,d)=>{u[s]=d}),u}function qo(t){return sZe[t]}function m2(t){return N2e.get(t)}function n7(t){const u=[];let s=0,d=0;for(;s127&&Y1(f)&&(u.push(d),d=s);break}}return u.push(d),u}function LO(t,u,s,d){return t.getPositionOfLineAndCharacter?t.getPositionOfLineAndCharacter(u,s,d):SU($3(t),u,s,t.text,d)}function SU(t,u,s,d,f){(u<0||u>=t.length)&&(f?u=u<0?0:u>=t.length?t.length-1:u:H.fail(`Bad line number. Line: ${u}, lineStarts.length: ${t.length} , line map is correct? ${d!==void 0?Zt(t,n7(d)):"unknown"}`));const p=t[u]+s;return f?p>t[u+1]?t[u+1]:typeof d=="string"&&p>d.length?d.length:p:(u=8192&&t<=8203||t===8239||t===8287||t===12288||t===65279}function Y1(t){return t===10||t===13||t===8232||t===8233}function PN(t){return t>=48&&t<=57}function Zqe(t){return PN(t)||t>=65&&t<=70||t>=97&&t<=102}function ETt(t){return t<=1114111}function BU(t){return t>=48&&t<=55}function w2e(t,u){const s=t.charCodeAt(u);switch(s){case 13:case 10:case 9:case 11:case 12:case 32:case 47:case 60:case 124:case 61:case 62:return!0;case 35:return u===0;default:return s>127}}function gs(t,u,s,d,f){if(pg(u))return u;let p=!1;for(;;){const E=t.charCodeAt(u);switch(E){case 13:t.charCodeAt(u+1)===10&&u++;case 10:if(u++,s)return u;p=!!f;continue;case 9:case 11:case 12:case 32:u++;continue;case 47:if(d)break;if(t.charCodeAt(u+1)===47){for(u+=2;u127&&U3(E)){u++;continue}break}return u}}function MN(t,u){if(H.assert(u>=0),u===0||Y1(t.charCodeAt(u-1))){const s=t.charCodeAt(u);if(u+TU=0&&s127&&U3(j)){T&&Y1(j)&&(k=!0),s++;continue}break e}}return T&&(z=f(v,b,B,k,p,z)),z}function PO(t,u,s,d){return Nse(!1,t,u,!1,s,d)}function MO(t,u,s,d){return Nse(!1,t,u,!0,s,d)}function T2e(t,u,s,d,f){return Nse(!0,t,u,!1,s,d,f)}function L2e(t,u,s,d,f){return Nse(!0,t,u,!0,s,d,f)}function Yqe(t,u,s,d,f,p=[]){return p.push({kind:s,pos:t,end:u,hasTrailingNewLine:d}),p}function G_(t,u){return T2e(t,u,Yqe,void 0,void 0)}function Ev(t,u){return L2e(t,u,Yqe,void 0,void 0)}function wU(t){const u=Pse.exec(t);if(u)return u[0]}function J_(t,u){return t>=65&&t<=90||t>=97&&t<=122||t===36||t===95||t>127&&AU(t,u)}function _v(t,u,s){return t>=65&&t<=90||t>=97&&t<=122||t>=48&&t<=57||t===36||t===95||(s===1?t===45||t===58:!1)||t>127&&pTt(t,u)}function Nm(t,u,s){let d=Fx(t,0);if(!J_(d,u))return!1;for(let f=Dv(d);fk,getStartPos:()=>k,getTokenEnd:()=>b,getTextPos:()=>b,getToken:()=>M,getTokenStart:()=>T,getTokenPos:()=>T,getTokenText:()=>v.substring(T,b),getTokenValue:()=>z,hasUnicodeEscape:()=>(j&1024)!==0,hasExtendedUnicodeEscape:()=>(j&8)!==0,hasPrecedingLineBreak:()=>(j&1)!==0,hasPrecedingJSDocComment:()=>(j&2)!==0,isIdentifier:()=>M===80||M>118,isReservedWord:()=>M>=83&&M<=118,isUnterminated:()=>(j&4)!==0,getCommentDirectives:()=>J,getNumericLiteralFlags:()=>j&25584,getTokenFlags:()=>j,reScanGreaterToken:Ie,reScanAsteriskEqualsToken:st,reScanSlashToken:Bt,reScanTemplateToken:ft,reScanTemplateHeadOrNoSubstitutionTemplate:Ut,scanJsxIdentifier:Pi,scanJsxAttributeValue:Fi,reScanJsxAttributeValue:Yu,reScanJsxToken:Ni,reScanLessThanToken:Vi,reScanHashToken:xn,reScanQuestionToken:Jn,reScanInvalidIdentifier:Gt,scanJsxToken:an,scanJsDocToken:Fr,scanJSDocCommentTextToken:oa,scan:je,getText:Ai,clearCommentDirectives:Dn,setText:Cn,setScriptTarget:sa,setLanguageVariant:xa,setScriptKind:aa,setJSDocParsingMode:Ta,setOnError:tu,resetTokenState:Qo,setTextPos:Qo,setInJSDocType:bo,tryScan:Ln,lookAhead:jn,scanRange:bt};return H.isDebugging&&Object.defineProperty(se,"__debugShowCurrentPositionInText",{get:()=>{const Qe=se.getText();return Qe.slice(0,se.getTokenFullStart())+"║"+Qe.slice(se.getTokenFullStart())}}),se;function ge(Qe,_t=b,Mt,qt){if(f){const Xt=b;b=_t,f(Qe,Mt||0,qt),b=Xt}}function ae(){let Qe=b,_t=!1,Mt=!1,qt="";for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,_t?(_t=!1,Mt=!0,qt+=v.substring(Qe,b)):(j|=16384,ge(Mt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1)),b++,Qe=b;continue}if(PN(Xt)){_t=!0,Mt=!1,b++;continue}break}return v.charCodeAt(b-1)===95&&(j|=16384,ge(F.Numeric_separators_are_not_allowed_here,b-1,1)),qt+v.substring(Qe,b)}function Ce(){let Qe=b,_t;if(v.charCodeAt(b)===48)if(b++,v.charCodeAt(b)===95)j|=16896,ge(F.Numeric_separators_are_not_allowed_here,b,1),b--,_t=ae();else if(!ve())j|=8192,_t=""+ +z;else if(!z)_t="0";else{z=""+parseInt(z,8),j|=32;const et=M===41,Et=(et?"-":"")+"0o"+(+z).toString(8);return et&&Qe--,ge(F.Octal_literals_are_not_allowed_Use_the_syntax_0,Qe,b-Qe,Et),9}else _t=ae();let Mt,qt;v.charCodeAt(b)===46&&(b++,Mt=ae());let Xt=b;if(v.charCodeAt(b)===69||v.charCodeAt(b)===101){b++,j|=16,(v.charCodeAt(b)===43||v.charCodeAt(b)===45)&&b++;const et=b,Et=ae();Et?(qt=v.substring(Xt,et)+Et,Xt=b):ge(F.Digit_expected)}let Pe;if(j&512?(Pe=_t,Mt&&(Pe+="."+Mt),qt&&(Pe+=qt)):Pe=v.substring(Qe,Xt),j&8192)return ge(F.Decimals_with_leading_zeros_are_not_allowed,Qe,Xt-Qe),z=""+ +Pe,9;if(Mt!==void 0||j&16)return ne(Qe,Mt===void 0&&!!(j&16)),z=""+ +Pe,9;{z=Pe;const et=Ye();return ne(Qe),et}}function ne(Qe,_t){if(!J_(Fx(v,b),t))return;const Mt=b,{length:qt}=He();qt===1&&v[Mt]==="n"?ge(_t?F.A_bigint_literal_cannot_use_exponential_notation:F.A_bigint_literal_must_be_an_integer,Qe,Mt-Qe+1):(ge(F.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,Mt,qt),b=Mt)}function ve(){const Qe=b;let _t=!0;for(;PN(v.charCodeAt(b));)BU(v.charCodeAt(b))||(_t=!1),b++;return z=v.substring(Qe,b),_t}function Se(Qe,_t){const Mt=pe(Qe,!1,_t);return Mt?parseInt(Mt,16):-1}function Ne(Qe,_t){return pe(Qe,!0,_t)}function pe(Qe,_t,Mt){let qt=[],Xt=!1,Pe=!1;for(;qt.length=65&&et<=70)et+=32;else if(!(et>=48&&et<=57||et>=97&&et<=102))break;qt.push(et),b++,Pe=!1}return qt.length=B){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}const Xt=v.charCodeAt(b);if(Xt===_t){Mt+=v.substring(qt,b),b++;break}if(Xt===92&&!Qe){Mt+=v.substring(qt,b),Mt+=Be(!0),qt=b;continue}if((Xt===10||Xt===13)&&!Qe){Mt+=v.substring(qt,b),j|=4,ge(F.Unterminated_string_literal);break}b++}return Mt}function xe(Qe){const _t=v.charCodeAt(b)===96;b++;let Mt=b,qt="",Xt;for(;;){if(b>=B){qt+=v.substring(Mt,b),j|=4,ge(F.Unterminated_template_literal),Xt=_t?15:18;break}const Pe=v.charCodeAt(b);if(Pe===96){qt+=v.substring(Mt,b),b++,Xt=_t?15:18;break}if(Pe===36&&b+1=B)return ge(F.Unexpected_end_of_text),"";const Mt=v.charCodeAt(b);switch(b++,Mt){case 48:if(b>=B||!PN(v.charCodeAt(b)))return"\0";case 49:case 50:case 51:b=B?(j|=2048,Qe&&ge(F.Unexpected_end_of_text),v.substring(_t,b)):v.charCodeAt(b)!==125?(j|=2048,Qe&&ge(F.Unterminated_Unicode_escape_sequence),v.substring(_t,b)):(b++,j|=8,F8(Xt)):(j|=2048,Qe&&ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),v.substring(_t,b))}for(;b<_t+6;b++)if(!(b1114111&&(ge(F.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive),Mt=!0),b>=B?(ge(F.Unexpected_end_of_text),Mt=!0):v.charCodeAt(b)===125?b++:(ge(F.Unterminated_Unicode_escape_sequence),Mt=!0),Mt?"":F8(_t)}function Ae(){if(b+5=0&&_v(Mt,t)){b+=3,j|=8,Qe+=We(),_t=b;continue}if(Mt=Ae(),!(Mt>=0&&_v(Mt,t)))break;j|=1024,Qe+=v.substring(_t,b),Qe+=F8(Mt),b+=6,_t=b}else break}return Qe+=v.substring(_t,b),Qe}function Je(){const Qe=z.length;if(Qe>=2&&Qe<=12){const _t=z.charCodeAt(0);if(_t>=97&&_t<=122){const Mt=Qqe.get(z);if(Mt!==void 0)return M=Mt}}return M=80}function mt(Qe){let _t="",Mt=!1,qt=!1;for(;;){const Xt=v.charCodeAt(b);if(Xt===95){j|=512,Mt?(Mt=!1,qt=!0):ge(qt?F.Multiple_consecutive_numeric_separators_are_not_permitted:F.Numeric_separators_are_not_allowed_here,b,1),b++;continue}if(Mt=!0,!PN(Xt)||Xt-48>=Qe)break;_t+=v[b],b++,qt=!1}return v.charCodeAt(b-1)===95&&ge(F.Numeric_separators_are_not_allowed_here,b-1,1),_t}function Ye(){return v.charCodeAt(b)===110?(z+="n",j&384&&(z=BP(z)+"n"),b++,10):(z=""+(j&128?parseInt(z.slice(2),2):j&256?parseInt(z.slice(2),8):+z),9)}function je(){k=b,j=0;let Qe=!1;for(;;){if(T=b,b>=B)return M=1;const _t=Fx(v,b);if(b===0){if(_t===65533)return ge(F.File_appears_to_be_binary),b=B,M=8;if(_t===35&&Tse(v,b)){if(b=Lse(v,b),u)continue;return M=6}}switch(_t){case 10:case 13:if(j|=1,u){b++;continue}else return _t===13&&b+1=0&&J_(Mt,t))return b+=3,j|=8,z=We()+He(),M=Je();const qt=Ae();return qt>=0&&J_(qt,t)?(b+=6,j|=1024,z=String.fromCharCode(qt)+He(),M=Je()):(ge(F.Invalid_character),b++,M=0);case 35:if(b!==0&&v[b+1]==="!")return ge(F.can_only_be_used_at_the_start_of_a_file),b++,M=0;const Xt=Fx(v,b+1);if(Xt===92){b++;const Et=De();if(Et>=0&&J_(Et,t))return b+=3,j|=8,z="#"+We()+He(),M=81;const ii=Ae();if(ii>=0&&J_(ii,t))return b+=6,j|=1024,z="#"+String.fromCharCode(ii)+He(),M=81;b--}return J_(Xt,t)?(b++,Yt(Xt,t)):(z="#",ge(F.Invalid_character,b++,Dv(_t))),M=81;default:const Pe=Yt(_t,t);if(Pe)return M=Pe;if(Zg(_t)){b+=Dv(_t);continue}else if(Y1(_t)){j|=1,b+=Dv(_t);continue}const et=Dv(_t);return ge(F.Invalid_character,b,et),b+=et,M=0}}}function Ke(){switch(oe){case 0:return!0;case 1:return!1}return Y!==3&&Y!==4?!0:oe===3?!1:oZe.test(v.slice(k,b))}function Gt(){H.assert(M===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),b=T=k,j=0;const Qe=Fx(v,b),_t=Yt(Qe,99);return _t?M=_t:(b+=Dv(Qe),M)}function Yt(Qe,_t){let Mt=Qe;if(J_(Mt,_t)){for(b+=Dv(Mt);b=B)return M=1;let _t=v.charCodeAt(b);if(_t===60)return v.charCodeAt(b+1)===47?(b+=2,M=31):(b++,M=30);if(_t===123)return b++,M=19;let Mt=0;for(;b0)break;U3(_t)||(Mt=b)}b++}return z=v.substring(k,b),Mt===-1?13:12}function Pi(){if(ph(M)){for(;b=B)return M=1;for(let _t=v.charCodeAt(b);b=0&&Zg(v.charCodeAt(b-1))&&!(b+1=B)return M=1;const Qe=Fx(v,b);switch(b+=Dv(Qe),Qe){case 9:case 11:case 12:case 32:for(;b=0&&J_(_t,t))return b+=3,j|=8,z=We()+He(),M=Je();const Mt=Ae();return Mt>=0&&J_(Mt,t)?(b+=6,j|=1024,z=String.fromCharCode(Mt)+He(),M=Je()):(b++,M=0)}if(J_(Qe,t)){let _t=Qe;for(;b=0),b=Qe,k=Qe,T=Qe,M=0,z=void 0,j=0}function bo(Qe){K+=Qe?1:-1}}function Fx(t,u){return t.codePointAt(u)}function Dv(t){return t>=65536?2:1}function _Tt(t){if(H.assert(0<=t&&t<=1114111),t<=65535)return String.fromCharCode(t);const u=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;return String.fromCharCode(u,s)}function F8(t){return lZe(t)}var zO,Qqe,N2e,Xqe,eZe,tZe,iZe,nZe,uZe,rZe,aZe,oZe,sZe,TU,Pse,lZe,DTt=o({"src/compiler/scanner.ts"(){Bo(),zO={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},Qqe=new Map(Object.entries(zO)),N2e=new Map(Object.entries({...zO,"{":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})),Xqe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1569,1594,1600,1610,1649,1747,1749,1749,1765,1766,1786,1788,1808,1808,1810,1836,1920,1957,2309,2361,2365,2365,2384,2384,2392,2401,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,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,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2784,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2877,2877,2908,2909,2911,2913,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3294,3294,3296,3297,3333,3340,3342,3344,3346,3368,3370,3385,3424,3425,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,3805,3840,3840,3904,3911,3913,3946,3976,3979,4096,4129,4131,4135,4137,4138,4176,4181,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6067,6176,6263,6272,6312,7680,7835,7840,7929,7936,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,8319,8319,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12329,12337,12341,12344,12346,12353,12436,12445,12446,12449,12538,12540,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65138,65140,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],eZe=[170,170,181,181,186,186,192,214,216,246,248,543,546,563,592,685,688,696,699,705,720,721,736,740,750,750,768,846,864,866,890,890,902,902,904,906,908,908,910,929,931,974,976,983,986,1011,1024,1153,1155,1158,1164,1220,1223,1224,1227,1228,1232,1269,1272,1273,1329,1366,1369,1369,1377,1415,1425,1441,1443,1465,1467,1469,1471,1471,1473,1474,1476,1476,1488,1514,1520,1522,1569,1594,1600,1621,1632,1641,1648,1747,1749,1756,1759,1768,1770,1773,1776,1788,1808,1836,1840,1866,1920,1968,2305,2307,2309,2361,2364,2381,2384,2388,2392,2403,2406,2415,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2492,2494,2500,2503,2504,2507,2509,2519,2519,2524,2525,2527,2531,2534,2545,2562,2562,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2649,2652,2654,2654,2662,2676,2689,2691,2693,2699,2701,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2784,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2870,2873,2876,2883,2887,2888,2891,2893,2902,2903,2908,2909,2911,2913,2918,2927,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,2997,2999,3001,3006,3010,3014,3016,3018,3021,3031,3031,3047,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3134,3140,3142,3144,3146,3149,3157,3158,3168,3169,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3262,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3297,3302,3311,3330,3331,3333,3340,3342,3344,3346,3368,3370,3385,3390,3395,3398,3400,3402,3405,3415,3415,3424,3425,3430,3439,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,3805,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3946,3953,3972,3974,3979,3984,3991,3993,4028,4038,4038,4096,4129,4131,4135,4137,4138,4140,4146,4150,4153,4160,4169,4176,4185,4256,4293,4304,4342,4352,4441,4447,4514,4520,4601,4608,4614,4616,4678,4680,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4742,4744,4744,4746,4749,4752,4782,4784,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4814,4816,4822,4824,4846,4848,4878,4880,4880,4882,4885,4888,4894,4896,4934,4936,4954,4969,4977,5024,5108,5121,5740,5743,5750,5761,5786,5792,5866,6016,6099,6112,6121,6160,6169,6176,6263,6272,6313,7680,7835,7840,7929,7936,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,8255,8256,8319,8319,8400,8412,8417,8417,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8497,8499,8505,8544,8579,12293,12295,12321,12335,12337,12341,12344,12346,12353,12436,12441,12442,12445,12446,12449,12542,12549,12588,12593,12686,12704,12727,13312,19893,19968,40869,40960,42124,44032,55203,63744,64045,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,65056,65059,65075,65076,65101,65103,65136,65138,65140,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500],tZe=[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],iZe=[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],nZe=[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,2208,2228,2230,2237,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,3168,3169,3200,3200,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,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,5900,5902,5905,5920,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,6987,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,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,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42943,42946,42950,42999,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,43879,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69445,69600,69622,69635,69687,69763,69807,69840,69864,69891,69926,69956,69956,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,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,70751,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71680,71723,71840,71903,71935,71935,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,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,101106,110592,110878,110928,110930,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,123136,123180,123191,123197,123214,123214,123584,123627,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,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101],uZe=[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,2208,2228,2230,2237,2259,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,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,3072,3084,3086,3088,3090,3112,3114,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3162,3168,3171,3174,3183,3200,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,3328,3331,3333,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,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,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,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,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,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,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,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7673,7675,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,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,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,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12730,12784,12799,13312,19893,19968,40943,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42943,42946,42950,42999,43047,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,43879,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,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,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,67072,67382,67392,67413,67424,67431,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,69376,69404,69415,69415,69424,69456,69600,69622,69632,69702,69734,69743,69759,69818,69840,69864,69872,69881,69888,69940,69942,69951,69956,69958,69968,70003,70006,70006,70016,70084,70089,70092,70096,70106,70108,70108,70144,70161,70163,70199,70206,70206,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,70751,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,71680,71738,71840,71913,71935,71935,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72384,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,73728,74649,74752,74862,74880,75075,77824,78894,82944,83526,92160,92728,92736,92766,92768,92777,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,94179,94208,100343,100352,101106,110592,110878,110928,110930,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,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,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,123136,123180,123184,123197,123200,123209,123214,123214,123584,123641,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,131072,173782,173824,177972,177984,178205,178208,183969,183984,191456,194560,195101,917760,917999],rZe=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,aZe=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,oZe=/@(?:see|link)/i,sZe=gTt(N2e),TU=7,Pse=/^#!.*/,lZe=String.fromCodePoint?t=>String.fromCodePoint(t):_Tt}});function Id(t){return om(t)||Pf(t)}function A8(t){return pi(t,yP)}function IO(t){switch(js(t)){case 99:return"lib.esnext.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 Dc(t){return t.start+t.length}function P2e(t){return t.length===0}function Mse(t,u){return u>=t.start&&u=t.pos&&u<=t.end}function M2e(t,u){return u.start>=t.start&&Dc(u)<=Dc(t)}function cZe(t,u){return z2e(t,u)!==void 0}function z2e(t,u){const s=R2e(t,u);return s&&s.length===0?void 0:s}function dZe(t,u){return OO(t.start,t.length,u.start,u.length)}function LU(t,u,s){return OO(t.start,t.length,u,s)}function OO(t,u,s,d){const f=t+u,p=s+d;return s<=f&&p>=t}function I2e(t,u){return u<=Dc(t)&&u>=t.start}function R2e(t,u){const s=Math.max(t.start,u.start),d=Math.min(Dc(t),Dc(u));return s<=d?Kc(s,d):void 0}function h1(t,u){if(t<0)throw new Error("start < 0");if(u<0)throw new Error("length < 0");return{start:t,length:u}}function Kc(t,u){return h1(t,u-t)}function zN(t){return h1(t.span.start,t.newLength)}function O2e(t){return P2e(t.span)&&t.newLength===0}function jO(t,u){if(u<0)throw new Error("newLength < 0");return{span:t,newLength:u}}function j2e(t){if(t.length===0)return ij;if(t.length===1)return t[0];const u=t[0];let s=u.span.start,d=Dc(u.span),f=s+u.newLength;for(let p=1;p=2&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95?"_"+t:t}function Qr(t){const u=t;return u.length>=3&&u.charCodeAt(0)===95&&u.charCodeAt(1)===95&&u.charCodeAt(2)===95?u.substr(1):u}function fu(t){return Qr(t.escapedText)}function xv(t){const u=m2(t.escapedText);return u?ar(u,uf):void 0}function cc(t){return t.valueDeclaration&&Eh(t.valueDeclaration)?fu(t.valueDeclaration.name):Qr(t.escapedName)}function mZe(t){const u=t.parent.parent;if(u){if(X1(u))return Ise(u);switch(u.kind){case 243:if(u.declarationList&&u.declarationList.declarations[0])return Ise(u.declarationList.declarations[0]);break;case 244:let s=u.expression;switch(s.kind===226&&s.operatorToken.kind===64&&(s=s.left),s.kind){case 211:return s.name;case 212:const d=s.argumentExpression;if(at(d))return d}break;case 217:return Ise(u.expression);case 256:{if(X1(u.statement)||Wt(u.statement))return Ise(u.statement);break}}}}function Ise(t){const u=Ya(t);return u&&at(u)?u:void 0}function VO(t,u){return!!(gh(t)&&at(t.name)&&fu(t.name)===fu(u)||Jl(t)&&Ge(t.declarationList.declarations,s=>VO(s,u)))}function W2e(t){return t.name||mZe(t)}function gh(t){return!!t.name}function NU(t){switch(t.kind){case 80:return t;case 355:case 348:{const{name:s}=t;if(s.kind===166)return s.right;break}case 213:case 226:{const s=t;switch(ec(s)){case 1:case 4:case 5:case 3:return Aq(s.left);case 7:case 8:case 9:return s.arguments[1];default:return}}case 353:return W2e(t);case 347:return mZe(t);case 277:{const{expression:s}=t;return at(s)?s:void 0}case 212:const u=t;if(Fq(u))return u.argumentExpression}return t.name}function Ya(t){if(t!==void 0)return NU(t)||(w0(t)||Z0(t)||e1(t)?Rse(t):void 0)}function Rse(t){if(t.parent){if(Uc(t.parent)||Vs(t.parent))return t.parent.name;if(eu(t.parent)&&t===t.parent.right){if(at(t.parent.left))return t.parent.left;if(O0(t.parent.left))return Aq(t.parent.left)}else if(ra(t.parent)&&at(t.parent.name))return t.parent.name}else return}function Ax(t){if(c4(t))return ti(t.modifiers,E1)}function g2(t){if(Qu(t,98303))return ti(t.modifiers,Xo)}function pZe(t,u){if(t.name)if(at(t.name)){const s=t.name.escapedText;return KO(t.parent,u).filter(d=>Eg(d)&&at(d.name)&&d.name.escapedText===s)}else{const s=t.parent.parameters.indexOf(t);H.assert(s>-1,"Parameters should always be in their parents' parameter list");const d=KO(t.parent,u).filter(Eg);if(s_g(d)&&d.typeParameters.some(f=>f.name.escapedText===s))}function J2e(t){return gZe(t,!1)}function $2e(t){return gZe(t,!0)}function U2e(t){return!!K4(t,Eg)}function q2e(t){return K4(t,LB)}function Z2e(t){return Kse(t,Mce)}function Ose(t){return K4(t,kFe)}function EZe(t){return K4(t,wce)}function Y2e(t){return K4(t,wce,!0)}function _Ze(t){return K4(t,Tce)}function Q2e(t){return K4(t,Tce,!0)}function DZe(t){return K4(t,Lce)}function X2e(t){return K4(t,Lce,!0)}function xZe(t){return K4(t,Nce)}function ebe(t){return K4(t,Nce,!0)}function tbe(t){return K4(t,_Y,!0)}function jse(t){return K4(t,Pce)}function ibe(t){return K4(t,Pce,!0)}function Vse(t){return K4(t,NV)}function PU(t){return K4(t,FFe)}function nbe(t){return K4(t,DY)}function vZe(t){return K4(t,_g)}function Hse(t){return K4(t,xY)}function vv(t){const u=K4(t,eM);if(u&&u.typeExpression&&u.typeExpression.type)return u}function Cv(t){let u=K4(t,eM);return!u&&io(t)&&(u=Le(B8(t),s=>!!s.typeExpression)),u&&u.typeExpression&&u.typeExpression.type}function HO(t){const u=nbe(t);if(u&&u.typeExpression)return u.typeExpression.type;const s=vv(t);if(s&&s.typeExpression){const d=s.typeExpression.type;if(fm(d)){const f=Le(d.members,CB);return f&&f.type}if(r3(d)||TB(d))return d.type}}function KO(t,u){var s;if(!Tj(t))return Dt;let d=(s=t.jsDoc)==null?void 0:s.jsDocCache;if(d===void 0||u){const f=O0e(t,u);H.assert(f.length<2||f[0]!==f[1]),d=Vu(f,p=>Hp(p)?p.tags:p),u||(t.jsDoc??(t.jsDoc=[]),t.jsDoc.jsDocCache=d)}return d}function bv(t){return KO(t,!1)}function CZe(t){return KO(t,!0)}function K4(t,u,s){return Le(KO(t,s),u)}function Kse(t,u){return bv(t).filter(u)}function bZe(t,u){return bv(t).filter(s=>s.kind===u)}function WO(t){return typeof t=="string"?t:t==null?void 0:t.map(u=>u.kind===328?u.text:vTt(u)).join("")}function vTt(t){const u=t.kind===331?"link":t.kind===332?"linkcode":"linkplain",s=t.name?zf(t.name):"",d=t.name&&t.text.startsWith("://")?"":" ";return`{@${u} ${s}${d}${t.text}}`}function Sx(t){if(jv(t)){if(NB(t.parent)){const u=nP(t.parent);if(u&&S(u.tags))return Vu(u.tags,s=>_g(s)?s.typeParameters:void 0)}return Dt}if($4(t))return H.assert(t.parent.kind===327),Vu(t.parent.tags,u=>_g(u)?u.typeParameters:void 0);if(t.typeParameters||IFe(t)&&t.typeParameters)return t.typeParameters;if(Xn(t)){const u=Vq(t);if(u.length)return u;const s=Cv(t);if(s&&r3(s)&&s.typeParameters)return s.typeParameters}return Dt}function w8(t){return t.constraint?t.constraint:_g(t.parent)&&t===t.parent.typeParameters[0]?t.parent.constraint:void 0}function $_(t){return t.kind===80||t.kind===81}function MU(t){return t.kind===178||t.kind===177}function zU(t){return Ru(t)&&!!(t.flags&64)}function Wse(t){return q0(t)&&!!(t.flags&64)}function $y(t){return Mo(t)&&!!(t.flags&64)}function Q1(t){const u=t.kind;return!!(t.flags&64)&&(u===211||u===212||u===213||u===235)}function RN(t){return Q1(t)&&!O7(t)&&!!t.questionDotToken}function IU(t){return RN(t.parent)&&t.parent.expression===t}function ON(t){return!Q1(t.parent)||RN(t.parent)||t!==t.parent.expression}function Gse(t){return t.kind===226&&t.operatorToken.kind===61}function q3(t){return tp(t)&&at(t.typeName)&&t.typeName.escapedText==="const"&&!t.typeArguments}function Pp(t){return vc(t,8)}function RU(t){return O7(t)&&!!(t.flags&64)}function jN(t){return t.kind===252||t.kind===251}function Jse(t){return t.kind===280||t.kind===279}function ube(t){switch(t.kind){case 309:case 310:return!0;default:return!1}}function $se(t){return ube(t)||t.kind===307||t.kind===311}function GO(t){return t.kind===355||t.kind===348}function yZe(t){return JO(t.kind)}function JO(t){return t>=166}function Use(t){return t>=0&&t<=165}function u7(t){return Use(t.kind)}function E2(t){return Eu(t,"pos")&&Eu(t,"end")}function VN(t){return 9<=t&&t<=15}function _2(t){return VN(t.kind)}function qse(t){switch(t.kind){case 210:case 209:case 14:case 218:case 231:return!0}return!1}function Bx(t){return 15<=t&&t<=18}function rbe(t){return Bx(t.kind)}function OU(t){const u=t.kind;return u===17||u===18}function r7(t){return bf(t)||th(t)}function jU(t){switch(t.kind){case 276:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 274:return t.parent.isTypeOnly;case 273:case 271:return t.isTypeOnly}return!1}function abe(t){switch(t.kind){case 281:return t.isTypeOnly||t.parent.parent.isTypeOnly;case 278:return t.isTypeOnly&&!!t.moduleSpecifier&&!t.exportClause;case 280:return t.parent.isTypeOnly}return!1}function D2(t){return jU(t)||abe(t)}function Zse(t){return t.kind===11||Bx(t.kind)}function obe(t){return rs(t)||at(t)}function sl(t){var u;return at(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function Uy(t){var u;return ea(t)&&((u=t.emitNode)==null?void 0:u.autoGenerate)!==void 0}function $O(t){const u=t.emitNode.autoGenerate.flags;return!!(u&32)&&!!(u&16)&&!!(u&8)}function Eh(t){return(ko(t)||N8(t))&&ea(t.name)}function T8(t){return Ru(t)&&ea(t.name)}function XD(t){switch(t){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 HN(t){return!!(_7(t)&31)}function Yse(t){return HN(t)||t===126||t===164||t===129}function Xo(t){return XD(t.kind)}function sm(t){const u=t.kind;return u===166||u===80}function wc(t){const u=t.kind;return u===80||u===81||u===11||u===9||u===167}function qy(t){const u=t.kind;return u===80||u===206||u===207}function Co(t){return!!t&&a7(t.kind)}function L8(t){return!!t&&(a7(t.kind)||zl(t))}function U0(t){return t&&kZe(t.kind)}function KN(t){return t.kind===112||t.kind===97}function kZe(t){switch(t){case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function a7(t){switch(t){case 173:case 179:case 330:case 180:case 181:case 184:case 324:case 185:return!0;default:return kZe(t)}}function Qse(t){return ca(t)||aE(t)||go(t)&&Co(t.parent)}function Yd(t){const u=t.kind;return u===176||u===172||u===174||u===177||u===178||u===181||u===175||u===240}function gr(t){return t&&(t.kind===263||t.kind===231)}function wx(t){return t&&(t.kind===177||t.kind===178)}function ef(t){return ko(t)&&tE(t)}function sbe(t){return Xn(t)&&DZ(t)?(!S2(t)||!Ox(t.expression))&&!ak(t,!0):t.parent&&gr(t.parent)&&ko(t)&&!tE(t)}function N8(t){switch(t.kind){case 174:case 177:case 178:return!0;default:return!1}}function lbe(t){switch(t.kind){case 174:case 177:case 178:case 172:return!0;default:return!1}}function ll(t){return Xo(t)||E1(t)}function Zy(t){const u=t.kind;return u===180||u===179||u===171||u===173||u===181||u===177||u===178}function VU(t){return Zy(t)||Yd(t)}function Z3(t){const u=t.kind;return u===303||u===304||u===305||u===174||u===177||u===178}function Xr(t){return xle(t.kind)}function cbe(t){switch(t.kind){case 184:case 185:return!0}return!1}function So(t){if(t){const u=t.kind;return u===207||u===206}return!1}function WN(t){const u=t.kind;return u===209||u===210}function HU(t){const u=t.kind;return u===208||u===232}function UO(t){switch(t.kind){case 260:case 169:case 208:return!0}return!1}function dbe(t){return ra(t)||io(t)||ZO(t)||YO(t)}function qO(t){return Xse(t)||e0e(t)}function Xse(t){switch(t.kind){case 206:case 210:return!0}return!1}function ZO(t){switch(t.kind){case 208:case 303:case 304:case 305:return!0}return!1}function e0e(t){switch(t.kind){case 207:case 209:return!0}return!1}function YO(t){switch(t.kind){case 208:case 232:case 230:case 209:case 210:case 80:case 211:case 212:return!0}return ld(t,!0)}function hbe(t){const u=t.kind;return u===211||u===166||u===205}function fbe(t){const u=t.kind;return u===211||u===166}function t0e(t){return x2(t)||O2(t)}function x2(t){switch(t.kind){case 286:case 285:case 213:case 214:case 215:case 170:return!0;default:return!1}}function UE(t){return t.kind===213||t.kind===214}function P8(t){const u=t.kind;return u===228||u===15}function Df(t){return FZe(Pp(t).kind)}function FZe(t){switch(t){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 i0e(t){return AZe(Pp(t).kind)}function AZe(t){switch(t){case 224:case 225:case 220:case 221:case 222:case 223:case 216:return!0;default:return FZe(t)}}function mbe(t){switch(t.kind){case 225:return!0;case 224:return t.operator===46||t.operator===47;default:return!1}}function pbe(t){switch(t.kind){case 106:case 112:case 97:case 224:return!0;default:return _2(t)}}function Wt(t){return CTt(Pp(t).kind)}function CTt(t){switch(t){case 227:case 229:case 219:case 226:case 230:case 234:case 232:case 361:case 360:case 238:return!0;default:return AZe(t)}}function Yy(t){const u=t.kind;return u===216||u===234}function SZe(t){return Fce(t)||fY(t)}function Tx(t,u){switch(t.kind){case 248:case 249:case 250:case 246:case 247:return!0;case 256:return u&&Tx(t.statement,u)}return!1}function gbe(t){return ic(t)||$c(t)}function Ebe(t){return Ge(t,gbe)}function KU(t){return!oj(t)&&!ic(t)&&!Qu(t,32)&&!P1(t)}function QO(t){return oj(t)||ic(t)||Qu(t,32)}function M8(t){return t.kind===249||t.kind===250}function WU(t){return go(t)||Wt(t)}function n0e(t){return go(t)}function l4(t){return Ad(t)||Wt(t)}function _be(t){const u=t.kind;return u===268||u===267||u===80}function BZe(t){const u=t.kind;return u===268||u===267}function wZe(t){const u=t.kind;return u===80||u===267}function u0e(t){const u=t.kind;return u===275||u===274}function XO(t){return t.kind===267||t.kind===266}function Yg(t){switch(t.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 345:case 347:case 324:case 348:case 355:case 330:case 353:case 329: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 312:case 305:case 11:case 265:case 187:case 168:case 260:return!0;default:return!1}}function qE(t){switch(t.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 345:case 347:case 324:case 330:case 353:case 200:case 174:case 173:case 267:case 178:case 312:case 265:return!0;default:return!1}}function bTt(t){return t===219||t===208||t===263||t===231||t===175||t===176||t===266||t===306||t===281||t===262||t===218||t===177||t===273||t===271||t===276||t===264||t===291||t===174||t===173||t===267||t===270||t===274||t===280||t===169||t===303||t===172||t===171||t===178||t===304||t===265||t===168||t===260||t===353||t===345||t===355}function Dbe(t){return t===262||t===282||t===263||t===264||t===265||t===266||t===267||t===272||t===271||t===278||t===277||t===270}function xbe(t){return t===252||t===251||t===259||t===246||t===244||t===242||t===249||t===250||t===248||t===245||t===256||t===253||t===255||t===257||t===258||t===243||t===247||t===254||t===359}function X1(t){return t.kind===168?t.parent&&t.parent.kind!==352||Xn(t):bTt(t.kind)}function vbe(t){return Dbe(t.kind)}function ej(t){return xbe(t.kind)}function ua(t){const u=t.kind;return xbe(u)||Dbe(u)||yTt(t)}function yTt(t){return t.kind!==241||t.parent!==void 0&&(t.parent.kind===258||t.parent.kind===299)?!1:!F2(t)}function Cbe(t){const u=t.kind;return xbe(u)||Dbe(u)||u===241}function bbe(t){const u=t.kind;return u===283||u===166||u===80}function GN(t){const u=t.kind;return u===110||u===80||u===211||u===295}function tj(t){const u=t.kind;return u===284||u===294||u===285||u===12||u===288}function GU(t){const u=t.kind;return u===291||u===293}function ybe(t){const u=t.kind;return u===11||u===294}function Ih(t){const u=t.kind;return u===286||u===285}function JU(t){const u=t.kind;return u===296||u===297}function z8(t){return t.kind>=316&&t.kind<=357}function $U(t){return t.kind===327||t.kind===326||t.kind===328||o7(t)||I8(t)||K7(t)||jv(t)}function I8(t){return t.kind>=334&&t.kind<=357}function e5(t){return t.kind===178}function Lx(t){return t.kind===177}function lm(t){if(!Tj(t))return!1;const{jsDoc:u}=t;return!!u&&u.length>0}function UU(t){return!!t.type}function Nx(t){return!!t.initializer}function Qy(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:case 306:return!0;default:return!1}}function r0e(t){return t.kind===291||t.kind===293||Z3(t)}function qU(t){return t.kind===183||t.kind===233}function kbe(t){let u=Fbe;for(const s of t){if(!s.length)continue;let d=0;for(;ds.kind===u)}function Ho(t){const u=new Map;if(t)for(const s of t)u.set(s.escapedName,s);return u}function ZE(t){return(t.flags&33554432)!==0}function FTt(){var t="";const u=s=>t+=s;return{getText:()=>t,write:u,rawWrite:u,writeKeyword:u,writeOperator:u,writePunctuation:u,writeSpace:u,writeStringLiteral:u,writeLiteral:u,writeParameter:u,writeProperty:u,writeSymbol:(s,d)=>u(s),writeTrailingSemicolon:u,writeComment:u,getTextPos:()=>t.length,getLine:()=>0,getColumn:()=>0,getIndent:()=>0,isAtStartOfLine:()=>!1,hasTrailingComment:()=>!1,hasTrailingWhitespace:()=>!!t.length&&U3(t.charCodeAt(t.length-1)),writeLine:()=>t+=" ",increaseIndent:Rs,decreaseIndent:Rs,clear:()=>t=""}}function ZU(t,u){return t.configFilePath!==u.configFilePath||Sbe(t,u)}function Sbe(t,u){return R8(t,u,MY)}function Bbe(t,u){return R8(t,u,Ede)}function R8(t,u,s){return t!==u&&s.some(d=>!fZ(nZ(t,d),nZ(u,d)))}function wbe(t,u){for(;;){const s=u(t);if(s==="quit")return;if(s!==void 0)return s;if(ca(t))return;t=t.parent}}function f1(t,u){const s=t.entries();for(const[d,f]of s){const p=u(f,d);if(p)return p}}function q_(t,u){const s=t.keys();for(const d of s){const f=u(d);if(f)return f}}function YU(t,u){t.forEach((s,d)=>{u.set(d,s)})}function JN(t){const u=dV.getText();try{return t(dV),dV.getText()}finally{dV.clear(),dV.writeKeyword(u)}}function nj(t){return t.end-t.pos}function s0e(t,u){return t.path===u.path&&!t.prepend==!u.prepend&&!t.circular==!u.circular}function Tbe(t,u){return t===u||t.resolvedModule===u.resolvedModule||!!t.resolvedModule&&!!u.resolvedModule&&t.resolvedModule.isExternalLibraryImport===u.resolvedModule.isExternalLibraryImport&&t.resolvedModule.extension===u.resolvedModule.extension&&t.resolvedModule.resolvedFileName===u.resolvedModule.resolvedFileName&&t.resolvedModule.originalPath===u.resolvedModule.originalPath&&ATt(t.resolvedModule.packageId,u.resolvedModule.packageId)&&t.node10Result===u.node10Result}function l0e(t,u,s,d,f){var p;const E=(p=u.getResolvedModule(t,s,d))==null?void 0:p.node10Result,v=E?ro(void 0,F.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(s_+"@types/")?`@types/${JB(f)}`:f):u.typesPackageExists(f)?ro(void 0,F.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,f,JB(f)):u.packageBundlesTypes(f)?ro(void 0,F.If_the_0_package_actually_exposes_this_module_try_adding_a_new_declaration_d_ts_file_containing_declare_module_1,f,s):ro(void 0,F.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0,s,JB(f));return v&&(v.repopulateInfo=()=>({moduleReference:s,mode:d,packageName:f===s?void 0:f})),v}function ATt(t,u){return t===u||!!t&&!!u&&t.name===u.name&&t.subModuleName===u.subModuleName&&t.version===u.version}function QU({name:t,subModuleName:u}){return u?`${t}/${u}`:t}function Px(t){return`${QU(t)}@${t.version}`}function Lbe(t,u){return t===u||t.resolvedTypeReferenceDirective===u.resolvedTypeReferenceDirective||!!t.resolvedTypeReferenceDirective&&!!u.resolvedTypeReferenceDirective&&t.resolvedTypeReferenceDirective.resolvedFileName===u.resolvedTypeReferenceDirective.resolvedFileName&&!!t.resolvedTypeReferenceDirective.primary==!!u.resolvedTypeReferenceDirective.primary&&t.resolvedTypeReferenceDirective.originalPath===u.resolvedTypeReferenceDirective.originalPath}function c0e(t,u,s,d,f,p){H.assert(t.length===s.length);for(let E=0;E=0),$3(u)[t]}function TZe(t){const u=zn(t),s=s0(u,t.pos);return`${u.fileName}(${s.line+1},${s.character+1})`}function rj(t,u){H.assert(t>=0);const s=$3(u),d=t,f=u.text;if(d+1===s.length)return f.length-1;{const p=s[d];let E=s[d+1]-1;for(H.assert(Y1(f.charCodeAt(E)));p<=E&&Y1(f.charCodeAt(E));)E--;return E}}function eq(t,u,s){return!(s&&s(u))&&!t.identifiers.has(u)}function Xl(t){return t===void 0?!0:t.pos===t.end&&t.pos>=0&&t.kind!==1}function W4(t){return!Xl(t)}function Pbe(t,u){return wl(t)?u===t.expression:zl(t)?u===t.modifiers:zm(t)?u===t.initializer:ko(t)?u===t.questionToken&&ef(t):Uc(t)?u===t.modifiers||u===t.questionToken||u===t.exclamationToken||aj(t.modifiers,u,ll):pm(t)?u===t.equalsToken||u===t.modifiers||u===t.questionToken||u===t.exclamationToken||aj(t.modifiers,u,ll):hc(t)?u===t.exclamationToken:fc(t)?u===t.typeParameters||u===t.type||aj(t.typeParameters,u,wl):Im(t)?u===t.typeParameters||aj(t.typeParameters,u,wl):jf(t)?u===t.typeParameters||u===t.type||aj(t.typeParameters,u,wl):TV(t)?u===t.modifiers||aj(t.modifiers,u,ll):!1}function aj(t,u,s){return!t||Wa(u)||!s(u)?!1:kt(t,u)}function LZe(t,u,s){if(u===void 0||u.length===0)return t;let d=0;for(;d[`${s0(t,E.range.end).line}`,E])),d=new Map;return{getUnusedExpectations:f,markUsed:p};function f(){return Ea(s.entries()).filter(([E,v])=>v.type===0&&!d.get(E)).map(([E,v])=>v)}function p(E){return s.has(`${E}`)?(d.set(`${E}`,!0),!0):!1}}function ek(t,u,s){return Xl(t)?t.pos:z8(t)||t.kind===12?gs((u||zn(t)).text,t.pos,!1,!0):s&&lm(t)?ek(t.jsDoc[0],u):t.kind===358&&t._children.length>0?ek(t._children[0],u,s):gs((u||zn(t)).text,t.pos,!1,!1,_j(t))}function f0e(t,u){const s=!Xl(t)&&Kp(t)?lt(t.modifiers,E1):void 0;return s?gs((u||zn(t)).text,s.end):ek(t,u)}function v2(t,u,s=!1){return $N(t.text,u,s)}function BTt(t){return!!Tn(t,kk)}function iq(t){return!!($c(t)&&t.exportClause&&r_(t.exportClause)&&t.exportClause.name.escapedText==="default")}function $N(t,u,s=!1){if(Xl(u))return"";let d=t.substring(s?u.pos:gs(t,u.pos),u.end);return BTt(u)&&(d=d.split(/\r\n|\n|\r/).map(f=>f.replace(/^\s*\*/,"").trimStart()).join(` +`)),d}function Wc(t,u=!1){return v2(zn(t),t,u)}function wTt(t){return t.pos}function j8(t,u){return Kl(t,u,wTt,rl)}function bs(t){const u=t.emitNode;return u&&u.flags||0}function Mp(t){const u=t.emitNode;return u&&u.internalFlags||0}function zbe(t,u,s){if(u&&TTt(t,s))return v2(u,t);switch(t.kind){case 11:{const d=s&2?tle:s&1||bs(t)&16777216?Sv:Vj;return t.singleQuote?"'"+d(t.text,39)+"'":'"'+d(t.text,34)+'"'}case 15:case 16:case 17:case 18:{const d=s&1||bs(t)&16777216?Sv:Vj,f=t.rawText??HTt(d(t.text,96));switch(t.kind){case 15:return"`"+f+"`";case 16:return"`"+f+"${";case 17:return"}"+f+"${";case 18:return"}"+f+"`"}break}case 9:case 10:return t.text;case 14:return s&4&&t.isUnterminated?t.text+(t.text.charCodeAt(t.text.length-1)===92?" /":"/"):t.text}return H.fail(`Literal kind '${t.kind}' not accounted for.`)}function TTt(t,u){if(cl(t)||!t.parent||u&4&&t.isUnterminated)return!1;if(Of(t)){if(t.numericLiteralFlags&26656)return!1;if(t.numericLiteralFlags&512)return!!(u&8)}return!uY(t)}function Ibe(t){return Ua(t)?'"'+Vj(t)+'"':""+t}function Rbe(t){return Bc(t).replace(/^(\d)/,"_$1").replace(/\W/g,"_")}function m0e(t){return(QD(t)&7)!==0||p0e(t)}function p0e(t){const u=e_(t);return u.kind===260&&u.parent.kind===299}function P1(t){return xc(t)&&(t.name.kind===11||Qg(t))}function nq(t){return xc(t)&&t.name.kind===11}function g0e(t){return xc(t)&&rs(t.name)}function Obe(t){return xc(t)||at(t)}function UN(t){return LTt(t.valueDeclaration)}function LTt(t){return!!t&&t.kind===267&&!t.body}function jbe(t){return t.kind===312||t.kind===267||L8(t)}function Qg(t){return!!(t.flags&2048)}function C2(t){return P1(t)&&E0e(t)}function E0e(t){switch(t.parent.kind){case 312:return Lc(t.parent);case 268:return P1(t.parent.parent)&&ca(t.parent.parent.parent)&&!Lc(t.parent.parent.parent)}return!1}function _0e(t){var u;return(u=t.declarations)==null?void 0:u.find(s=>!C2(s)&&!(xc(s)&&Qg(s)))}function NTt(t){return t===1||t===100||t===199}function s7(t,u){return Lc(t)||NTt(p1(u))&&!!t.commonJsModuleIndicator}function D0e(t,u){switch(t.scriptKind){case 1:case 3:case 2:case 4:break;default:return!1}return t.isDeclarationFile?!1:Q4(u,"alwaysStrict")||NFe(t.statements)?!0:Lc(t)||mg(u)?p1(u)>=5?!0:!u.noImplicitUseStrict:!1}function x0e(t){return!!(t.flags&33554432)||Qu(t,128)}function v0e(t,u){switch(t.kind){case 312: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!L8(u)}return!1}function C0e(t){switch(H.type(t),t.kind){case 345:case 353:case 330:return!0;default:return b0e(t)}}function b0e(t){switch(H.type(t),t.kind){case 179:case 180:case 173:case 181:case 184:case 185:case 324:case 263:case 231:case 264:case 265:case 352:case 262:case 174:case 176:case 177:case 178:case 218:case 219:return!0;default:return!1}}function tk(t){switch(t.kind){case 272:case 271:return!0;default:return!1}}function Vbe(t){return tk(t)||A2(t)}function uq(t){switch(t.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 Hbe(t){return oj(t)||xc(t)||nD(t)||dm(t)}function oj(t){return tk(t)||$c(t)}function y0e(t){return Tn(t.parent,u=>!!(Pde(u)&1))}function QE(t){return Tn(t.parent,u=>v0e(u,u.parent))}function Kbe(t,u){let s=QE(t);for(;s;)u(s),s=QE(s)}function k0(t){return!t||nj(t)===0?"(Missing)":Wc(t)}function Wbe(t){return t.declaration?k0(t.declaration.parameters[0].name):void 0}function sj(t){return t.kind===167&&!Mm(t.expression)}function qN(t){var u;switch(t.kind){case 80:case 81:return(u=t.emitNode)!=null&&u.autoGenerate?void 0:t.escapedText;case 11:case 9:case 15:return Sl(t.text);case 167:return Mm(t.expression)?Sl(t.expression.text):void 0;case 295:return k7(t);default:return H.assertNever(t)}}function V8(t){return H.checkDefined(qN(t))}function zf(t){switch(t.kind){case 110:return"this";case 81:case 80:return nj(t)===0?fu(t):Wc(t);case 166:return zf(t.left)+"."+zf(t.right);case 211:return at(t.name)||ea(t.name)?zf(t.expression)+"."+zf(t.name):H.assertNever(t.name);case 318:return zf(t.left)+zf(t.right);case 295:return zf(t.namespace)+":"+zf(t.name);default:return H.assertNever(t)}}function Tu(t,u,...s){const d=zn(t);return G4(d,t,u,...s)}function H8(t,u,s,...d){const f=gs(t.text,u.pos);return Rd(t,f,u.end-f,s,...d)}function G4(t,u,s,...d){const f=b2(t,u);return Rd(t,f.start,f.length,s,...d)}function Y3(t,u,s,d){const f=b2(t,u);return rq(t,f.start,f.length,s,d)}function lj(t,u,s,d){const f=gs(t.text,u.pos);return rq(t,f,u.end-f,s,d)}function Gbe(t,u,s){H.assertGreaterThanOrEqual(u,0),H.assertGreaterThanOrEqual(s,0),H.assertLessThanOrEqual(u,t.length),H.assertLessThanOrEqual(u+s,t.length)}function rq(t,u,s,d,f){return Gbe(t.text,u,s),{file:t,start:u,length:s,code:d.code,category:d.category,messageText:d.next?d:d.messageText,relatedInformation:f}}function k0e(t,u,s){return{file:t,start:0,length:0,code:u.code,category:u.category,messageText:u.next?u:u.messageText,relatedInformation:s}}function Jbe(t){return typeof t.messageText=="string"?{code:t.code,category:t.category,messageText:t.messageText,next:t.next}:t.messageText}function $be(t,u,s){return{file:t,start:u.pos,length:u.end-u.pos,code:s.code,category:s.category,messageText:s.message}}function XE(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);s.scan();const d=s.getTokenStart();return Kc(d,s.getTokenEnd())}function Ube(t,u){const s=YD(t.languageVersion,!0,t.languageVariant,t.text,void 0,u);return s.scan(),s.getToken()}function PTt(t,u){const s=gs(t.text,u.pos);if(u.body&&u.body.kind===241){const{line:d}=s0(t,u.body.pos),{line:f}=s0(t,u.body.end);if(d0?u.statements[0].pos:u.end;return Kc(p,E)}case 253:case 229:{const p=gs(t.text,u.pos);return XE(t,p)}case 238:{const p=gs(t.text,u.expression.end);return XE(t,p)}case 357:{const p=gs(t.text,u.tagName.pos);return XE(t,p)}}if(s===void 0)return XE(t,u.pos);H.assert(!Hp(s));const d=Xl(s),f=d||w7(u)?s.pos:gs(t.text,s.pos);return d?(H.assert(f===s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f===s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")):(H.assert(f>=s.pos,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809"),H.assert(f<=s.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809")),Kc(f,s.end)}function cm(t){return(t.externalModuleIndicator||t.commonJsModuleIndicator)!==void 0}function J4(t){return t.scriptKind===6}function y2(t){return!!(p2(t)&4096)}function aq(t){return!!(p2(t)&8&&!Mf(t,t.parent))}function cj(t){return(QD(t)&7)===6}function dj(t){return(QD(t)&7)===4}function K8(t){return(QD(t)&7)===2}function oq(t){return(QD(t)&7)===1}function ik(t){return t.kind===213&&t.expression.kind===108}function dm(t){return t.kind===213&&t.expression.kind===102}function W8(t){return UP(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function zx(t){return nD(t)&&zv(t.argument)&&rs(t.argument.literal)}function zp(t){return t.kind===244&&t.expression.kind===11}function hj(t){return!!(bs(t)&2097152)}function sq(t){return hj(t)&&td(t)}function MTt(t){return at(t.name)&&!t.initializer}function lq(t){return hj(t)&&Jl(t)&&ye(t.declarationList.declarations,MTt)}function F0e(t,u){return t.kind!==12?G_(u.text,t.pos):void 0}function A0e(t,u){const s=t.kind===169||t.kind===168||t.kind===218||t.kind===219||t.kind===217||t.kind===260||t.kind===281?mi(Ev(u,t.pos),G_(u,t.pos)):G_(u,t.pos);return ti(s,d=>u.charCodeAt(d.pos+1)===42&&u.charCodeAt(d.pos+2)===42&&u.charCodeAt(d.pos+3)!==47)}function Z_(t){if(182<=t.kind&&t.kind<=205)return!0;switch(t.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 t.parent.kind!==222;case 233:return mm(t.parent)&&!$j(t);case 168:return t.parent.kind===200||t.parent.kind===195;case 80:(t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t)&&(t=t.parent),H.assert(t.kind===80||t.kind===166||t.kind===211,"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.");case 166:case 211:case 110:{const{parent:u}=t;if(u.kind===186)return!1;if(u.kind===205)return!u.isTypeOf;if(182<=u.kind&&u.kind<=205)return!0;switch(u.kind){case 233:return mm(u.parent)&&!$j(u);case 168:return t===u.constraint;case 352:return t===u.constraint;case 172:case 171:case 169:case 260:return t===u.type;case 262:case 218:case 219:case 176:case 174:case 173:case 177:case 178:return t===u.type;case 179:case 180:case 181:return t===u.type;case 216:return t===u.type;case 213:case 214:case 215:return kt(u.typeArguments,t)}}}return!1}function zZe(t,u){for(;t;){if(t.kind===u)return!0;t=t.parent}return!1}function k2(t,u){return s(t);function s(d){switch(d.kind){case 253:return u(d);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 ao(d,s)}}}function qbe(t,u){return s(t);function s(d){switch(d.kind){case 229:u(d);const f=d.expression;f&&s(f);return;case 266:case 264:case 267:case 265:return;default:if(Co(d)){if(d.name&&d.name.kind===167){s(d.name.expression);return}}else Z_(d)||ao(d,s)}}}function S0e(t){return t&&t.kind===188?t.elementType:t&&t.kind===183?Sa(t.typeArguments):void 0}function Zbe(t){switch(t.kind){case 264:case 263:case 231:case 187:return t.members;case 210:return t.properties}}function G8(t){if(t)switch(t.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function Ybe(t){return G8(t)||wx(t)}function ZN(t){return t.parent.kind===261&&t.parent.parent.kind===243}function Qbe(t){return Xn(t)?ys(t.parent)&&eu(t.parent.parent)&&ec(t.parent.parent)===2||cq(t.parent):!1}function cq(t){return Xn(t)?eu(t)&&ec(t)===1:!1}function Xbe(t){return(ra(t)?K8(t)&&at(t.name)&&ZN(t):ko(t)?mP(t)&&Gc(t):zm(t)&&mP(t))||cq(t)}function eye(t){switch(t.kind){case 174:case 173:case 176:case 177:case 178:case 262:case 218:return!0}return!1}function B0e(t,u){for(;;){if(u&&u(t),t.statement.kind!==256)return t.statement;t=t.statement}}function F2(t){return t&&t.kind===241&&Co(t.parent)}function Ip(t){return t&&t.kind===174&&t.parent.kind===210}function dq(t){return(t.kind===174||t.kind===177||t.kind===178)&&(t.parent.kind===210||t.parent.kind===231)}function tye(t){return t&&t.kind===1}function IZe(t){return t&&t.kind===0}function J8(t,u,s,d){return L(t==null?void 0:t.properties,f=>{if(!Uc(f))return;const p=qN(f.name);return u===p||d&&d===p?s(f):void 0})}function iye(t,u,s){return J8(t,u,d=>vh(d.initializer)?Le(d.initializer.elements,f=>rs(f)&&f.text===s):void 0)}function YN(t){if(t&&t.statements.length){const u=t.statements[0].expression;return ar(u,ys)}}function hq(t,u,s){return fj(t,u,d=>vh(d.initializer)?Le(d.initializer.elements,f=>rs(f)&&f.text===s):void 0)}function fj(t,u,s){return J8(YN(t),u,s)}function Pm(t){return Tn(t.parent,Co)}function nye(t){return Tn(t.parent,U0)}function Qd(t){return Tn(t.parent,gr)}function uye(t){return Tn(t.parent,u=>gr(u)||Co(u)?"quit":zl(u))}function fq(t){return Tn(t.parent,L8)}function mq(t){const u=Tn(t.parent,s=>gr(s)?"quit":E1(s));return u&&gr(u.parent)?Qd(u.parent):Qd(u??t)}function tf(t,u,s){for(H.assert(t.kind!==312);;){if(t=t.parent,!t)return H.fail();switch(t.kind){case 167:if(s&&gr(t.parent.parent))return t;t=t.parent.parent;break;case 170:t.parent.kind===169&&Yd(t.parent.parent)?t=t.parent.parent:Yd(t.parent)&&(t=t.parent);break;case 219:if(!u)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 312:return t}}}function rye(t){switch(t.kind){case 219:case 262:case 218:case 172:return!0;case 241:switch(t.parent.kind){case 176:case 174:case 177:case 178:return!0;default:return!1}default:return!1}}function pq(t){at(t)&&(Jc(t.parent)||td(t.parent))&&t.parent.name===t&&(t=t.parent);const u=tf(t,!0,!1);return ca(u)}function aye(t){const u=tf(t,!1,!1);if(u)switch(u.kind){case 176:case 262:case 218:return u}}function mj(t,u){for(;;){if(t=t.parent,!t)return;switch(t.kind){case 167:t=t.parent;break;case 262:case 218:case 219:if(!u)continue;case 172:case 171:case 174:case 173:case 176:case 177:case 178:case 175:return t;case 170:t.parent.kind===169&&Yd(t.parent.parent)?t=t.parent.parent:Yd(t.parent)&&(t=t.parent);break}}}function nk(t){if(t.kind===218||t.kind===219){let u=t,s=t.parent;for(;s.kind===217;)u=s,s=s.parent;if(s.kind===213&&s.expression===u)return s}}function RZe(t){return t.kind===108||nf(t)}function nf(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===108}function pj(t){const u=t.kind;return(u===211||u===212)&&t.expression.kind===110}function gq(t){var u;return!!t&&ra(t)&&((u=t.initializer)==null?void 0:u.kind)===110}function oye(t){return!!t&&(pm(t)||Uc(t))&&eu(t.parent.parent)&&t.parent.parent.operatorToken.kind===64&&t.parent.parent.right.kind===110}function gj(t){switch(t.kind){case 183:return t.typeName;case 233:return tc(t.expression)?t.expression:void 0;case 80:case 166:return t}}function Eq(t){switch(t.kind){case 215:return t.tag;case 286:case 285:return t.tagName;case 226:return t.right;default:return t.expression}}function _q(t,u,s,d){if(t&&gh(u)&&ea(u.name))return!1;switch(u.kind){case 263:return!0;case 231:return!t;case 172:return s!==void 0&&(t?Jc(s):gr(s)&&!M2(u)&&!ole(u));case 177:case 178:case 174:return u.body!==void 0&&s!==void 0&&(t?Jc(s):gr(s));case 169:return t?s!==void 0&&s.body!==void 0&&(s.kind===176||s.kind===174||s.kind===178)&&L2(s)!==u&&d!==void 0&&d.kind===263:!1}return!1}function QN(t,u,s,d){return c4(u)&&_q(t,u,s,d)}function Ej(t,u,s,d){return QN(t,u,s,d)||XN(t,u,s)}function XN(t,u,s){switch(u.kind){case 263:return Ge(u.members,d=>Ej(t,d,u,s));case 231:return!t&&Ge(u.members,d=>Ej(t,d,u,s));case 174:case 178:case 176:return Ge(u.parameters,d=>QN(t,d,u,s));default:return!1}}function t5(t,u){if(QN(t,u))return!0;const s=e3(u);return!!s&&XN(t,s,u)}function w0e(t,u,s){let d;if(wx(u)){const{firstAccessor:f,secondAccessor:p,setAccessor:E}=dk(s.members,u),v=c4(f)?f:p&&c4(p)?p:void 0;if(!v||u!==v)return!1;d=E==null?void 0:E.parameters}else hc(u)&&(d=u.parameters);if(QN(t,u,s))return!0;if(d){for(const f of d)if(!N2(f)&&QN(t,f,u,s))return!0}return!1}function T0e(t){if(t.textSourceNode){switch(t.textSourceNode.kind){case 11:return T0e(t.textSourceNode);case 15:return t.text===""}return!1}return t.text===""}function $8(t){const{parent:u}=t;return u.kind===286||u.kind===285||u.kind===287?u.tagName===t:!1}function Y_(t){switch(t.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!mm(t.parent)&&!LB(t.parent);case 166:for(;t.parent.kind===166;)t=t.parent;return t.parent.kind===186||o7(t.parent)||XP(t.parent)||Ov(t.parent)||$8(t);case 318:for(;Ov(t.parent);)t=t.parent;return t.parent.kind===186||o7(t.parent)||XP(t.parent)||Ov(t.parent)||$8(t);case 81:return eu(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===103;case 80:if(t.parent.kind===186||o7(t.parent)||XP(t.parent)||Ov(t.parent)||$8(t))return!0;case 9:case 10:case 11:case 15:case 110:return Dq(t);default:return!1}}function Dq(t){const{parent:u}=t;switch(u.kind){case 260:case 169:case 172:case 171:case 306:case 303:case 208:return u.initializer===t;case 244:case 245:case 246:case 247:case 253:case 254:case 255:case 296:case 257:return u.expression===t;case 248:const s=u;return s.initializer===t&&s.initializer.kind!==261||s.condition===t||s.incrementor===t;case 249:case 250:const d=u;return d.initializer===t&&d.initializer.kind!==261||d.expression===t;case 216:case 234:return t===u.expression;case 239:return t===u.expression;case 167:return t===u.expression;case 170:case 294:case 293:case 305:return!0;case 233:return u.expression===t&&!Z_(u);case 304:return u.objectAssignmentInitializer===t;case 238:return t===u.expression;default:return Y_(u)}}function xq(t){for(;t.kind===166||t.kind===80;)t=t.parent;return t.kind===186}function sye(t){return r_(t)&&!!t.parent.moduleSpecifier}function yv(t){return t.kind===271&&t.moduleReference.kind===283}function eP(t){return H.assert(yv(t)),t.moduleReference.expression}function L0e(t){return A2(t)&&bP(t.initializer).arguments[0]}function U8(t){return t.kind===271&&t.moduleReference.kind!==283}function _h(t){return Xn(t)}function OZe(t){return!Xn(t)}function Xn(t){return!!t&&!!(t.flags&524288)}function vq(t){return!!t&&!!(t.flags&134217728)}function N0e(t){return!J4(t)}function _j(t){return!!t&&!!(t.flags&16777216)}function Cq(t){return tp(t)&&at(t.typeName)&&t.typeName.escapedText==="Object"&&t.typeArguments&&t.typeArguments.length===2&&(t.typeArguments[0].kind===154||t.typeArguments[0].kind===150)}function xf(t,u){if(t.kind!==213)return!1;const{expression:s,arguments:d}=t;if(s.kind!==80||s.escapedText!=="require"||d.length!==1)return!1;const f=d[0];return!u||i0(f)}function bq(t){return jZe(t,!1)}function A2(t){return jZe(t,!0)}function lye(t){return Vs(t)&&A2(t.parent.parent)}function jZe(t,u){return ra(t)&&!!t.initializer&&xf(u?bP(t.initializer):t.initializer,!0)}function P0e(t){return Jl(t)&&t.declarationList.declarations.length>0&&ye(t.declarationList.declarations,u=>bq(u))}function Dj(t){return t===39||t===34}function yq(t,u){return v2(u,t).charCodeAt(0)===34}function tP(t){return eu(t)||O0(t)||at(t)||Mo(t)}function xj(t){return Xn(t)&&t.initializer&&eu(t.initializer)&&(t.initializer.operatorToken.kind===57||t.initializer.operatorToken.kind===61)&&t.name&&tc(t.name)&&q8(t.name,t.initializer.left)?t.initializer.right:t.initializer}function vj(t){const u=xj(t);return u&&kv(u,Ox(t.name))}function zTt(t,u){return L(t.properties,s=>Uc(s)&&at(s.name)&&s.name.escapedText==="value"&&s.initializer&&kv(s.initializer,u))}function l7(t){if(t&&t.parent&&eu(t.parent)&&t.parent.operatorToken.kind===64){const u=Ox(t.parent.left);return kv(t.parent.right,u)||ITt(t.parent.left,t.parent.right,u)}if(t&&Mo(t)&&rk(t)){const u=zTt(t.arguments[2],t.arguments[1].text==="prototype");if(u)return u}}function kv(t,u){if(Mo(t)){const s=l0(t.expression);return s.kind===218||s.kind===219?t:void 0}if(t.kind===218||t.kind===231||t.kind===219||ys(t)&&(t.properties.length===0||u))return t}function ITt(t,u,s){const d=eu(u)&&(u.operatorToken.kind===57||u.operatorToken.kind===61)&&kv(u.right,s);if(d&&q8(t,u.left))return d}function cye(t){const u=ra(t.parent)?t.parent.name:eu(t.parent)&&t.parent.operatorToken.kind===64?t.parent.left:void 0;return u&&kv(t.right,Ox(u))&&tc(u)&&q8(u,t.left)}function M0e(t){if(eu(t.parent)){const u=(t.parent.operatorToken.kind===57||t.parent.operatorToken.kind===61)&&eu(t.parent.parent)?t.parent.parent:t.parent;if(u.operatorToken.kind===64&&at(u.left))return u.left}else if(ra(t.parent))return t.parent.name}function q8(t,u){return eE(t)&&eE(u)?U4(t)===U4(u):$_(t)&&kq(u)&&(u.expression.kind===110||at(u.expression)&&(u.expression.escapedText==="window"||u.expression.escapedText==="self"||u.expression.escapedText==="global"))?q8(t,yj(u)):kq(t)&&kq(u)?Q3(t)===Q3(u)&&q8(t.expression,u.expression):!1}function Cj(t){for(;ld(t,!0);)t=t.right;return t}function uk(t){return at(t)&&t.escapedText==="exports"}function z0e(t){return at(t)&&t.escapedText==="module"}function Q_(t){return(Ru(t)||bj(t))&&z0e(t.expression)&&Q3(t)==="exports"}function ec(t){const u=RTt(t);return u===5||Xn(t)?u:0}function rk(t){return S(t.arguments)===3&&Ru(t.expression)&&at(t.expression.expression)&&fu(t.expression.expression)==="Object"&&fu(t.expression.name)==="defineProperty"&&Mm(t.arguments[1])&&ak(t.arguments[0],!0)}function kq(t){return Ru(t)||bj(t)}function bj(t){return q0(t)&&Mm(t.argumentExpression)}function S2(t,u){return Ru(t)&&(!u&&t.expression.kind===110||at(t.name)&&ak(t.expression,!0))||Fq(t,u)}function Fq(t,u){return bj(t)&&(!u&&t.expression.kind===110||tc(t.expression)||S2(t.expression,!0))}function ak(t,u){return tc(t)||S2(t,u)}function yj(t){return Ru(t)?t.name:t.argumentExpression}function RTt(t){if(Mo(t)){if(!rk(t))return 0;const u=t.arguments[0];return uk(u)||Q_(u)?8:S2(u)&&Q3(u)==="prototype"?9:7}return t.operatorToken.kind!==64||!O0(t.left)||OTt(Cj(t))?0:ak(t.left.expression,!0)&&Q3(t.left)==="prototype"&&ys(I0e(t))?6:kj(t.left)}function OTt(t){return R7(t)&&Of(t.expression)&&t.expression.text==="0"}function Aq(t){if(Ru(t))return t.name;const u=l0(t.argumentExpression);return Of(u)||i0(u)?u:t}function Q3(t){const u=Aq(t);if(u){if(at(u))return u.escapedText;if(i0(u)||Of(u))return Sl(u.text)}}function kj(t){if(t.expression.kind===110)return 4;if(Q_(t))return 2;if(ak(t.expression,!0)){if(Ox(t.expression))return 3;let u=t;for(;!at(u.expression);)u=u.expression;const s=u.expression;if((s.escapedText==="exports"||s.escapedText==="module"&&Q3(u)==="exports")&&S2(t))return 1;if(ak(t,!0)||q0(t)&&Pq(t))return 5}return 0}function I0e(t){for(;eu(t.right);)t=t.right;return t.right}function Fj(t){return eu(t)&&ec(t)===3}function dye(t){return Xn(t)&&t.parent&&t.parent.kind===244&&(!q0(t)||bj(t))&&!!vv(t.parent)}function Aj(t,u){const{valueDeclaration:s}=t;(!s||!(u.flags&33554432&&!Xn(u)&&!(s.flags&33554432))&&tP(s)&&!tP(u)||s.kind!==u.kind&&Obe(s))&&(t.valueDeclaration=u)}function hye(t){if(!t||!t.valueDeclaration)return!1;const u=t.valueDeclaration;return u.kind===262||ra(u)&&u.initializer&&Co(u.initializer)}function Z8(t){var u,s;switch(t.kind){case 260:case 208:return(u=Tn(t.initializer,d=>xf(d,!0)))==null?void 0:u.arguments[0];case 272:case 278:return ar(t.moduleSpecifier,i0);case 271:return ar((s=ar(t.moduleReference,a_))==null?void 0:s.expression,i0);case 273:case 280:return ar(t.parent.moduleSpecifier,i0);case 274:case 281:return ar(t.parent.parent.moduleSpecifier,i0);case 276:return ar(t.parent.parent.parent.moduleSpecifier,i0);case 205:return zx(t)?t.argument.literal:void 0;default:H.assertNever(t)}}function iP(t){return Sj(t)||H.failBadSyntaxKind(t.parent)}function Sj(t){switch(t.parent.kind){case 272:case 278:return t.parent;case 283:return t.parent.parent;case 213:return dm(t.parent)||xf(t.parent,!1)?t.parent:void 0;case 201:return H.assert(rs(t)),ar(t.parent.parent,nD);default:return}}function Y8(t){switch(t.kind){case 272:case 278:return t.moduleSpecifier;case 271:return t.moduleReference.kind===283?t.moduleReference.expression:void 0;case 205:return zx(t)?t.argument.literal:void 0;case 213:return t.arguments[0];case 267:return t.name.kind===11?t.name:void 0;default:return H.assertNever(t)}}function Q8(t){switch(t.kind){case 272:return t.importClause&&ar(t.importClause.namedBindings,Jx);case 271:return t;case 278:return t.exportClause&&ar(t.exportClause,r_);default:return H.assertNever(t)}}function c7(t){return t.kind===272&&!!t.importClause&&!!t.importClause.name}function Sq(t,u){if(t.name){const s=u(t);if(s)return s}if(t.namedBindings){const s=Jx(t.namedBindings)?u(t.namedBindings):L(t.namedBindings.elements,u);if(s)return s}}function d7(t){if(t)switch(t.kind){case 169:case 174:case 173:case 304:case 303:case 172:case 171:return t.questionToken!==void 0}return!1}function X8(t){const u=TB(t)?Ki(t.parameters):void 0,s=ar(u&&u.name,at);return!!s&&s.escapedText==="new"}function $4(t){return t.kind===353||t.kind===345||t.kind===347}function Bj(t){return $4(t)||Vp(t)}function jTt(t){return Od(t)&&eu(t.expression)&&t.expression.operatorToken.kind===64?Cj(t.expression):void 0}function VZe(t){return Od(t)&&eu(t.expression)&&ec(t.expression)!==0&&eu(t.expression.right)&&(t.expression.right.operatorToken.kind===57||t.expression.right.operatorToken.kind===61)?t.expression.right.right:void 0}function R0e(t){switch(t.kind){case 243:const u=eB(t);return u&&u.initializer;case 172:return t.initializer;case 303:return t.initializer}}function eB(t){return Jl(t)?Ki(t.declarationList.declarations):void 0}function HZe(t){return xc(t)&&t.body&&t.body.kind===267?t.body:void 0}function wj(t){if(t.kind>=243&&t.kind<=259)return!0;switch(t.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 Tj(t){switch(t.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 324:case 330: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 O0e(t,u){let s;G8(t)&&Nx(t)&&lm(t.initializer)&&(s=yn(s,KZe(t,yr(t.initializer.jsDoc))));let d=t;for(;d&&d.parent;){if(lm(d)&&(s=yn(s,KZe(t,yr(d.jsDoc)))),d.kind===169){s=yn(s,(u?G2e:B8)(d));break}if(d.kind===168){s=yn(s,(u?$2e:J2e)(d));break}d=j0e(d)}return s||Dt}function KZe(t,u){if(Hp(u)){const s=ti(u.tags,d=>WZe(t,d));return u.tags===s?[u]:s}return WZe(t,u)?[u]:void 0}function WZe(t,u){return!(eM(u)||xY(u))||!u.parent||!Hp(u.parent)||!Cf(u.parent.parent)||u.parent.parent===t}function j0e(t){const u=t.parent;if(u.kind===303||u.kind===277||u.kind===172||u.kind===244&&t.kind===211||u.kind===253||HZe(u)||ld(t))return u;if(u.parent&&(eB(u.parent)===t||ld(u)))return u.parent;if(u.parent&&u.parent.parent&&(eB(u.parent.parent)||R0e(u.parent.parent)===t||VZe(u.parent.parent)))return u.parent.parent}function Lj(t){if(t.symbol)return t.symbol;if(!at(t.name))return;const u=t.name.escapedText,s=Fv(t);if(!s)return;const d=Le(s.parameters,f=>f.name.kind===80&&f.name.escapedText===u);return d&&d.symbol}function Bq(t){if(Hp(t.parent)&&t.parent.tags){const u=Le(t.parent.tags,$4);if(u)return u}return Fv(t)}function Fv(t){const u=ok(t);if(u)return zm(u)&&u.type&&Co(u.type)?u.type:Co(u)?u:void 0}function ok(t){const u=h7(t);if(u)return VZe(u)||jTt(u)||R0e(u)||eB(u)||HZe(u)||u}function h7(t){const u=nP(t);if(!u)return;const s=u.parent;if(s&&s.jsDoc&&u===Zu(s.jsDoc))return s}function nP(t){return Tn(t.parent,Hp)}function fye(t){const u=t.name.escapedText,{typeParameters:s}=t.parent.parent.parent;return s&&Le(s,d=>d.name.escapedText===u)}function GZe(t){return!!t.typeArguments}function mye(t){let u=t.parent;for(;;){switch(u.kind){case 226:const s=u,d=s.operatorToken.kind;return u5(d)&&s.left===t?s:void 0;case 224:case 225:const f=u,p=f.operator;return p===46||p===47?f:void 0;case 249:case 250:const E=u;return E.initializer===t?E:void 0;case 217:case 209:case 230:case 235:t=u;break;case 305:t=u.parent;break;case 304:if(u.name!==t)return;t=u.parent;break;case 303:if(u.name===t)return;t=u.parent;break;default:return}u=t.parent}}function f7(t){const u=mye(t);if(!u)return 0;switch(u.kind){case 226:const s=u.operatorToken.kind;return s===64||pP(s)?1:2;case 224:case 225:return 2;case 249:case 250:return 1}}function X_(t){return!!mye(t)}function VTt(t){const u=l0(t.right);return u.kind===226&&Gce(u.operatorToken.kind)}function V0e(t){const u=mye(t);return!!u&&ld(u,!0)&&VTt(u)}function pye(t){switch(t.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 gye(t){return w0(t)||Z0(t)||N8(t)||td(t)||fc(t)}function JZe(t,u){for(;t&&t.kind===u;)t=t.parent;return t}function Nj(t){return JZe(t,196)}function i5(t){return JZe(t,217)}function Eye(t){let u;for(;t&&t.kind===196;)u=t,t=t.parent;return[u,t]}function H0e(t){for(;M7(t);)t=t.type;return t}function l0(t,u){return vc(t,u?17:1)}function K0e(t){return t.kind!==211&&t.kind!==212?!1:(t=i5(t.parent),t&&t.kind===220)}function B2(t,u){for(;t;){if(t===u)return!0;t=t.parent}return!1}function X3(t){return!ca(t)&&!So(t)&&X1(t.parent)&&t.parent.name===t}function uP(t){const u=t.parent;switch(t.kind){case 11:case 15:case 9:if(Ms(u))return u.parent;case 80:if(X1(u))return u.name===t?u:void 0;if(vf(u)){const s=u.parent;return Eg(s)&&s.name===u?s:void 0}else{const s=u.parent;return eu(s)&&ec(s)!==0&&(s.left.symbol||s.symbol)&&Ya(s)===t?s:void 0}case 81:return X1(u)&&u.name===t?u:void 0;default:return}}function Pj(t){return Mm(t)&&t.parent.kind===167&&X1(t.parent.parent)}function _ye(t){const u=t.parent;switch(u.kind){case 172:case 171:case 174:case 173:case 177:case 178:case 306:case 303:case 211:return u.name===t;case 166:return u.right===t;case 208:case 276:return u.propertyName===t;case 281:case 291:case 285:case 286:case 287:return!0}return!1}function $Ze(t){return t.kind===271||t.kind===270||t.kind===273&&t.name||t.kind===274||t.kind===280||t.kind===276||t.kind===281||t.kind===277&&tB(t)?!0:Xn(t)&&(eu(t)&&ec(t)===2&&tB(t)||Ru(t)&&eu(t.parent)&&t.parent.left===t&&t.parent.operatorToken.kind===64&&Mj(t.parent.right))}function W0e(t){switch(t.parent.kind){case 273:case 276:case 274:case 281:case 277:case 271:case 280:return t.parent;case 166:do t=t.parent;while(t.parent.kind===166);return W0e(t)}}function Mj(t){return tc(t)||e1(t)}function tB(t){const u=G0e(t);return Mj(u)}function G0e(t){return ic(t)?t.expression:t.right}function Dye(t){return t.kind===304?t.name:t.kind===303?t.initializer:t.parent.right}function Xg(t){const u=w2(t);if(u&&Xn(t)){const s=q2e(t);if(s)return s.class}return u}function w2(t){const u=zj(t.heritageClauses,96);return u&&u.types.length>0?u.types[0]:void 0}function iB(t){if(Xn(t))return Z2e(t).map(u=>u.class);{const u=zj(t.heritageClauses,119);return u==null?void 0:u.types}}function rP(t){return Ch(t)?aP(t)||Dt:gr(t)&&mi(Hy(Xg(t)),iB(t))||Dt}function aP(t){const u=zj(t.heritageClauses,96);return u?u.types:void 0}function zj(t,u){if(t){for(const s of t)if(s.token===u)return s}}function Av(t,u){for(;t;){if(t.kind===u)return t;t=t.parent}}function uf(t){return 83<=t&&t<=165}function J0e(t){return 19<=t&&t<=79}function wq(t){return uf(t)||J0e(t)}function Tq(t){return 128<=t&&t<=165}function $0e(t){return uf(t)&&!Tq(t)}function UZe(t){return 119<=t&&t<=127}function m7(t){const u=m2(t);return u!==void 0&&$0e(u)}function qZe(t){const u=m2(t);return u!==void 0&&uf(u)}function Lq(t){const u=xv(t);return!!u&&!Tq(u)}function nB(t){return 2<=t&&t<=7}function kd(t){if(!t)return 4;let u=0;switch(t.kind){case 262:case 218:case 174:t.asteriskToken&&(u|=1);case 219:Qu(t,1024)&&(u|=2);break}return t.body||(u|=4),u}function oP(t){switch(t.kind){case 262:case 218:case 219:case 174:return t.body!==void 0&&t.asteriskToken===void 0&&Qu(t,1024)}return!1}function Mm(t){return i0(t)||Of(t)}function Nq(t){return Iv(t)&&(t.operator===40||t.operator===41)&&Of(t.operand)}function Ix(t){const u=Ya(t);return!!u&&Pq(u)}function Pq(t){if(!(t.kind===167||t.kind===212))return!1;const u=q0(t)?l0(t.argumentExpression):t.expression;return!Mm(u)&&!Nq(u)}function sk(t){switch(t.kind){case 80:case 81:return t.escapedText;case 11:case 15:case 9:return Sl(t.text);case 167:const u=t.expression;return Mm(u)?Sl(u.text):Nq(u)?u.operator===41?qo(u.operator)+u.operand.text:u.operand.text:void 0;case 295:return k7(t);default:return H.assertNever(t)}}function eE(t){switch(t.kind){case 80:case 11:case 15:case 9:return!0;default:return!1}}function U4(t){return $_(t)?fu(t):gg(t)?IP(t):t.text}function sP(t){return $_(t)?t.escapedText:gg(t)?k7(t):Sl(t.text)}function ZZe(t){return`__@${Yo(t)}@${t.escapedName}`}function Ij(t,u){return`__#${Yo(t)}@${u}`}function Rj(t){return Ma(t.escapedName,"__@")}function xye(t){return Ma(t.escapedName,"__#")}function YZe(t){return t.kind===80&&t.escapedText==="Symbol"}function vye(t){return at(t)?fu(t)==="__proto__":rs(t)&&t.text==="__proto__"}function lP(t,u){switch(t=vc(t),t.kind){case 231:if(n1e(t))return!1;break;case 218:if(t.name)return!1;break;case 219:break;default:return!1}return typeof u=="function"?u(t):!0}function U0e(t){switch(t.kind){case 303:return!vye(t.name);case 304:return!!t.objectAssignmentInitializer;case 260:return at(t.name)&&!!t.initializer;case 169:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 208:return at(t.name)&&!!t.initializer&&!t.dotDotDotToken;case 172:return!!t.initializer;case 226:switch(t.operatorToken.kind){case 64:case 77:case 76:case 78:return at(t.left)}break;case 277:return!0}return!1}function If(t,u){if(!U0e(t))return!1;switch(t.kind){case 303:return lP(t.initializer,u);case 304:return lP(t.objectAssignmentInitializer,u);case 260:case 169:case 208:case 172:return lP(t.initializer,u);case 226:return lP(t.right,u);case 277:return lP(t.expression,u)}}function q0e(t){return t.escapedText==="push"||t.escapedText==="unshift"}function T2(t){return e_(t).kind===169}function e_(t){for(;t.kind===208;)t=t.parent.parent;return t}function Z0e(t){const u=t.kind;return u===176||u===218||u===262||u===219||u===174||u===177||u===178||u===267||u===312}function cl(t){return pg(t.pos)||pg(t.end)}function QZe(t){return Za(t,ca)||t}function Y0e(t){const u=X0e(t),s=t.kind===214&&t.arguments!==void 0;return Q0e(t.kind,u,s)}function Q0e(t,u,s){switch(t){case 214:return s?0:1;case 224:case 221:case 222:case 220:case 223:case 227:case 229:return 1;case 226:switch(u){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 cP(t){const u=X0e(t),s=t.kind===214&&t.arguments!==void 0;return Oj(t.kind,u,s)}function X0e(t){return t.kind===226?t.operatorToken.kind:t.kind===224||t.kind===225?t.operator:t.kind}function Oj(t,u,s){switch(t){case 361:return 0;case 230:return 1;case 229:return 2;case 227:return 4;case 226:switch(u){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 jj(u)}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 s?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 jj(t){switch(t){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 uB(t){return ti(t,u=>{switch(u.kind){case 294:return!!u.expression;case 12:return!u.containsOnlyTriviaWhiteSpaces;default:return!0}})}function rB(){let t=[];const u=[],s=new Map;let d=!1;return{add:p,lookup:f,getGlobalDiagnostics:E,getDiagnostics:v};function f(b){let B;if(b.file?B=s.get(b.file.fileName):B=t,!B)return;const k=Kl(B,b,ul,Qq);if(k>=0)return B[k]}function p(b){let B;b.file?(B=s.get(b.file.fileName),B||(B=[],s.set(b.file.fileName,B),At(u,b.file.fileName,fh))):(d&&(d=!1,t=t.slice()),B=t),At(B,b,Qq)}function E(){return d=!0,t}function v(b){if(b)return s.get(b)||[];const B=Nr(u,k=>s.get(k));return t.length&&B.unshift(...t),B}}function HTt(t){return t.replace(FYe,"\\${")}function Cye(t){return!!((t.templateFlags||0)&2048)}function ele(t){return t&&!!(T7(t)?Cye(t):Cye(t.head)||Ge(t.templateSpans,u=>Cye(u.literal)))}function XZe(t){return"\\u"+("0000"+t.toString(16).toUpperCase()).slice(-4)}function KTt(t,u,s){if(t.charCodeAt(0)===0){const d=s.charCodeAt(u+t.length);return d>=48&&d<=57?"\\x00":"\\0"}return wYe.get(t)||XZe(t.charCodeAt(0))}function Sv(t,u){const s=u===96?BYe:u===39?SYe:AYe;return t.replace(s,KTt)}function Vj(t,u){return t=Sv(t,u),Lke.test(t)?t.replace(Lke,s=>XZe(s.charCodeAt(0))):t}function WTt(t){return"&#x"+t.toString(16).toUpperCase()+";"}function GTt(t){return t.charCodeAt(0)===0?"�":NYe.get(t)||WTt(t.charCodeAt(0))}function tle(t,u){const s=u===39?LYe:TYe;return t.replace(s,GTt)}function q4(t){const u=t.length;return u>=2&&t.charCodeAt(0)===t.charCodeAt(u-1)&&JTt(t.charCodeAt(0))?t.substring(1,u-1):t}function JTt(t){return t===39||t===34||t===96}function aB(t){const u=t.charCodeAt(0);return u>=97&&u<=122||t.includes("-")}function Mq(t){const u=RP[1];for(let s=RP.length;s<=t;s++)RP.push(RP[s-1]+u);return RP[t]}function oB(){return RP[1].length}function Hj(t){var u,s,d,f,p,E=!1;function v(K){const Y=n7(K);Y.length>1?(f=f+Y.length-1,p=u.length-K.length+yr(Y),d=p-u.length===0):d=!1}function b(K){K&&K.length&&(d&&(K=Mq(s)+K,d=!1),u+=K,v(K))}function B(K){K&&(E=!1),b(K)}function k(K){K&&(E=!0),b(K)}function T(){u="",s=0,d=!0,f=0,p=0,E=!1}function M(K){K!==void 0&&(u+=K,v(K),E=!1)}function z(K){K&&K.length&&B(K)}function j(K){(!d||K)&&(u+=t,f++,p=u.length,d=!0,E=!1)}function J(){return d?u.length:u.length+t.length}return T(),{write:B,rawWrite:M,writeLiteral:z,writeLine:j,increaseIndent:()=>{s++},decreaseIndent:()=>{s--},getIndent:()=>s,getTextPos:()=>u.length,getLine:()=>f,getColumn:()=>d?s*oB():u.length-p,getText:()=>u,isAtStartOfLine:()=>d,hasTrailingComment:()=>E,hasTrailingWhitespace:()=>!!u.length&&U3(u.charCodeAt(u.length-1)),clear:T,writeKeyword:B,writeOperator:B,writeParameter:B,writeProperty:B,writePunctuation:B,writeSpace:B,writeStringLiteral:B,writeSymbol:(K,Y)=>B(K),writeTrailingSemicolon:B,writeComment:k,getTextPosWithWriteLine:J}}function ile(t){let u=!1;function s(){u&&(t.writeTrailingSemicolon(";"),u=!1)}return{...t,writeTrailingSemicolon(){u=!0},writeLiteral(d){s(),t.writeLiteral(d)},writeStringLiteral(d){s(),t.writeStringLiteral(d)},writeSymbol(d,f){s(),t.writeSymbol(d,f)},writePunctuation(d){s(),t.writePunctuation(d)},writeKeyword(d){s(),t.writeKeyword(d)},writeOperator(d){s(),t.writeOperator(d)},writeParameter(d){s(),t.writeParameter(d)},writeSpace(d){s(),t.writeSpace(d)},writeProperty(d){s(),t.writeProperty(d)},writeComment(d){s(),t.writeComment(d)},writeLine(){s(),t.writeLine()},increaseIndent(){s(),t.increaseIndent()},decreaseIndent(){s(),t.decreaseIndent()}}}function Kj(t){return t.useCaseSensitiveFileNames?t.useCaseSensitiveFileNames():!1}function n5(t){return N1(Kj(t))}function zq(t,u,s){return u.moduleName||nle(t,u.fileName,s&&s.fileName)}function eYe(t,u){return t.getCanonicalFileName(qa(u,t.getCurrentDirectory()))}function bye(t,u,s){const d=u.getExternalModuleFileFromDeclaration(s);if(!d||d.isDeclarationFile)return;const f=Y8(s);if(!(f&&i0(f)&&!om(f.text)&&!eYe(t,d.path).includes(eYe(t,zd(t.getCommonSourceDirectory())))))return zq(t,d)}function nle(t,u,s){const d=b=>t.getCanonicalFileName(b),f=$0(s?dr(s):t.getCommonSourceDirectory(),t.getCurrentDirectory(),d),p=qa(u,t.getCurrentDirectory()),E=i7(f,p,f,d,!1),v=xh(E);return s?f2(v):v}function yye(t,u,s){const d=u.getCompilerOptions();let f;return d.outDir?f=xh(Oq(t,u,d.outDir)):f=xh(t),f+s}function kye(t,u){return Iq(t,u.getCompilerOptions(),u.getCurrentDirectory(),u.getCommonSourceDirectory(),s=>u.getCanonicalFileName(s))}function Iq(t,u,s,d,f){const p=u.declarationDir||u.outDir,E=p?jq(t,p,s,d,f):t,v=Wj(E);return xh(E)+v}function Wj(t){return Hc(t,[".mjs",".mts"])?".d.mts":Hc(t,[".cjs",".cts"])?".d.cts":Hc(t,[".json"])?".d.json.ts":".d.ts"}function Fye(t){return Hc(t,[".d.mts",".mjs",".mts"])?[".mts",".mjs"]:Hc(t,[".d.cts",".cjs",".cts"])?[".cts",".cjs"]:Hc(t,[".d.json.ts"])?[".json"]:[".tsx",".ts",".jsx",".js"]}function F0(t){return t.outFile||t.out}function Rq(t,u){var s;if(t.paths)return t.baseUrl??H.checkDefined(t.pathsBasePath||((s=u.getCurrentDirectory)==null?void 0:s.call(u)),"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.")}function ule(t,u,s){const d=t.getCompilerOptions();if(F0(d)){const f=p1(d),p=d.emitDeclarationOnly||f===2||f===4;return ti(t.getSourceFiles(),E=>(p||!Lc(E))&&p7(E,t,s))}else{const f=u===void 0?t.getSourceFiles():[u];return ti(f,p=>p7(p,t,s))}}function p7(t,u,s){const d=u.getCompilerOptions();if(d.noEmitForJsFiles&&_h(t)||t.isDeclarationFile||u.isSourceFileFromExternalLibrary(t))return!1;if(s)return!0;if(u.isSourceOfProjectReferenceRedirect(t.fileName))return!1;if(!J4(t))return!0;if(u.getResolvedProjectReferenceToRedirect(t.fileName))return!1;if(F0(d))return!0;if(!d.outDir)return!1;if(d.rootDir||d.composite&&d.configFilePath){const f=qa(kM(d,()=>[],u.getCurrentDirectory(),u.getCanonicalFileName),u.getCurrentDirectory()),p=jq(t.fileName,d.outDir,u.getCurrentDirectory(),f,u.getCanonicalFileName);if(gv(t.fileName,p,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0)return!1}return!0}function Oq(t,u,s){return jq(t,s,u.getCurrentDirectory(),u.getCommonSourceDirectory(),d=>u.getCanonicalFileName(d))}function jq(t,u,s,d,f){let p=qa(t,s);return p=f(p).indexOf(f(d))===0?p.substring(d.length):p,hr(u,p)}function dP(t,u,s,d,f,p,E){t.writeFile(s,d,f,v=>{u.add(dc(F.Could_not_write_file_0_Colon_1,s,v))},p,E)}function tYe(t,u,s){if(t.length>GE(t)&&!s(t)){const d=dr(t);tYe(d,u,s),u(t)}}function rle(t,u,s,d,f,p){try{d(t,u,s)}catch{tYe(dr(Uo(t)),f,p),d(t,u,s)}}function hP(t,u){const s=$3(t);return LN(s,u)}function lk(t,u){return LN(t,u)}function e3(t){return Le(t.members,u=>fc(u)&&W4(u.body))}function fP(t){if(t&&t.parameters.length>0){const u=t.parameters.length===2&&N2(t.parameters[0]);return t.parameters[u?1:0]}}function Aye(t){const u=fP(t);return u&&u.type}function L2(t){if(t.parameters.length&&!jv(t)){const u=t.parameters[0];if(N2(u))return u}}function N2(t){return P2(t.name)}function P2(t){return!!t&&t.kind===80&&ale(t)}function ck(t){return!!Tn(t,u=>u.kind===186?!0:u.kind===80||u.kind===166?!1:"quit")}function g7(t){if(!P2(t))return!1;for(;vf(t.parent)&&t.parent.left===t;)t=t.parent;return t.parent.kind===186}function ale(t){return t.escapedText==="this"}function dk(t,u){let s,d,f,p;return Ix(u)?(s=u,u.kind===177?f=u:u.kind===178?p=u:H.fail("Accessor has wrong kind")):L(t,E=>{if(wx(E)&&No(E)===No(u)){const v=sk(E.name),b=sk(u.name);v===b&&(s?d||(d=E):s=E,E.kind===177&&!f&&(f=E),E.kind===178&&!p&&(p=E))}}),{firstAccessor:s,secondAccessor:d,getAccessor:f,setAccessor:p}}function m1(t){if(!Xn(t)&&td(t))return;const u=t.type;return u||!Xn(t)?u:GO(t)?t.typeExpression&&t.typeExpression.type:Cv(t)}function Sye(t){return t.type}function Z4(t){return jv(t)?t.type&&t.type.typeExpression&&t.type.typeExpression.type:t.type||(Xn(t)?HO(t):void 0)}function Vq(t){return Vu(bv(t),u=>$Tt(u)?u.typeParameters:void 0)}function $Tt(t){return _g(t)&&!(t.parent.kind===327&&(t.parent.tags.some($4)||t.parent.tags.some(NB)))}function Bye(t){const u=fP(t);return u&&m1(u)}function wye(t,u,s,d){Tye(t,u,s.pos,d)}function Tye(t,u,s,d){d&&d.length&&s!==d[0].pos&&lk(t,s)!==lk(t,d[0].pos)&&u.writeLine()}function Lye(t,u,s,d){s!==d&&lk(t,s)!==lk(t,d)&&u.writeLine()}function Nye(t,u,s,d,f,p,E,v){if(d&&d.length>0){f&&s.writeSpace(" ");let b=!1;for(const B of d)b&&(s.writeSpace(" "),b=!1),v(t,u,s,B.pos,B.end,E),B.hasTrailingNewLine?s.writeLine():b=!0;b&&p&&s.writeSpace(" ")}}function Pye(t,u,s,d,f,p,E){let v,b;if(E?f.pos===0&&(v=ti(G_(t,f.pos),B)):v=G_(t,f.pos),v){const k=[];let T;for(const M of v){if(T){const z=lk(u,T.end);if(lk(u,M.pos)>=z+2)break}k.push(M),T=M}if(k.length){const M=lk(u,yr(k).end);lk(u,gs(t,f.pos))>=M+2&&(wye(u,s,f,v),Nye(t,u,s,k,!1,!0,p,d),b={nodePos:f.pos,detachedCommentEndPos:yr(k).end})}}return b;function B(k){return tq(t,k.pos)}}function sB(t,u,s,d,f,p){if(t.charCodeAt(d+1)===42){const E=k8(u,d),v=u.length;let b;for(let B=d,k=E.line;B0){let j=z%oB();const J=Mq((z-j)/oB());for(s.rawWrite(J);j;)s.rawWrite(" "),j--}else s.rawWrite("")}UTt(t,f,s,p,B,T),B=T}}else s.writeComment(t.substring(d,f))}function UTt(t,u,s,d,f,p){const E=Math.min(u,p-1),v=t.substring(f,E).trim();v?(s.writeComment(v),E!==u&&s.writeLine()):s.rawWrite(d)}function iYe(t,u,s){let d=0;for(;u=0&&t.kind<=165?0:(t.modifierFlagsCache&536870912||(t.modifierFlagsCache=sle(t)|536870912),s||u&&Xn(t)?(!(t.modifierFlagsCache&268435456)&&t.parent&&(t.modifierFlagsCache|=nYe(t)|268435456),uYe(t.modifierFlagsCache)):qTt(t.modifierFlagsCache))}function Dh(t){return Iye(t,!0)}function Rye(t){return Iye(t,!0,!0)}function Rx(t){return Iye(t,!1)}function nYe(t){let u=0;return t.parent&&!io(t)&&(Xn(t)&&(Y2e(t)&&(u|=8388608),Q2e(t)&&(u|=16777216),X2e(t)&&(u|=33554432),ebe(t)&&(u|=67108864),tbe(t)&&(u|=134217728)),ibe(t)&&(u|=65536)),u}function qTt(t){return t&65535}function uYe(t){return t&131071|(t&260046848)>>>23}function ZTt(t){return uYe(nYe(t))}function Oye(t){return sle(t)|ZTt(t)}function sle(t){let u=Kp(t)?iE(t.modifiers):0;return(t.flags&8||t.kind===80&&t.flags&4096)&&(u|=32),u}function iE(t){let u=0;if(t)for(const s of t)u|=_7(s.kind);return u}function _7(t){switch(t){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 rYe(t){return t===57||t===56}function jye(t){return rYe(t)||t===54}function pP(t){return t===76||t===77||t===78}function lle(t){return eu(t)&&pP(t.operatorToken.kind)}function Gj(t){return rYe(t)||t===61}function Jj(t){return eu(t)&&Gj(t.operatorToken.kind)}function u5(t){return t>=64&&t<=79}function cle(t){const u=dle(t);return u&&!u.isImplements?u.class:void 0}function dle(t){if(c5(t)){if(mm(t.parent)&&gr(t.parent.parent))return{class:t.parent.parent,isImplements:t.parent.token===119};if(LB(t.parent)){const u=ok(t.parent);if(u&&gr(u))return{class:u,isImplements:!1}}}}function ld(t,u){return eu(t)&&(u?t.operatorToken.kind===64:u5(t.operatorToken.kind))&&Df(t.left)}function aYe(t){return ld(t.parent)&&t.parent.left===t}function r5(t){if(ld(t,!0)){const u=t.left.kind;return u===210||u===209}return!1}function $j(t){return cle(t)!==void 0}function tc(t){return t.kind===80||Uj(t)}function hm(t){switch(t.kind){case 80:return t;case 166:do t=t.left;while(t.kind!==80);return t;case 211:do t=t.expression;while(t.kind!==80);return t}}function gP(t){return t.kind===80||t.kind===110||t.kind===108||t.kind===236||t.kind===211&&gP(t.expression)||t.kind===217&&gP(t.expression)}function Uj(t){return Ru(t)&&at(t.name)&&tc(t.expression)}function qj(t){if(Ru(t)){const u=qj(t.expression);if(u!==void 0)return u+"."+zf(t.name)}else if(q0(t)){const u=qj(t.expression);if(u!==void 0&&wc(t.argumentExpression))return u+"."+sk(t.argumentExpression)}else{if(at(t))return Qr(t.escapedText);if(gg(t))return IP(t)}}function Ox(t){return S2(t)&&Q3(t)==="prototype"}function EP(t){return t.parent.kind===166&&t.parent.right===t||t.parent.kind===211&&t.parent.name===t||t.parent.kind===236&&t.parent.name===t}function hle(t){return!!t.parent&&(Ru(t.parent)&&t.parent.name===t||q0(t.parent)&&t.parent.argumentExpression===t)}function Vye(t){return vf(t.parent)&&t.parent.right===t||Ru(t.parent)&&t.parent.name===t||Ov(t.parent)&&t.parent.right===t}function Wq(t){return eu(t)&&t.operatorToken.kind===104}function Hye(t){return Wq(t.parent)&&t===t.parent.right}function fle(t){return t.kind===210&&t.properties.length===0}function Kye(t){return t.kind===209&&t.elements.length===0}function lB(t){if(!(!YTt(t)||!t.declarations)){for(const u of t.declarations)if(u.localSymbol)return u.localSymbol}}function YTt(t){return t&&S(t.declarations)>0&&Qu(t.declarations[0],2048)}function Gq(t){return Le(RYe,u=>Ml(t,u))}function QTt(t){const u=[],s=t.length;for(let d=0;d>6|192),u.push(f&63|128)):f<65536?(u.push(f>>12|224),u.push(f>>6&63|128),u.push(f&63|128)):f<131072?(u.push(f>>18|240),u.push(f>>12&63|128),u.push(f>>6&63|128),u.push(f&63|128)):H.assert(!1,"Unexpected code point")}return u}function Wye(t){let u="";const s=QTt(t);let d=0;const f=s.length;let p,E,v,b;for(;d>2,E=(s[d]&3)<<4|s[d+1]>>4,v=(s[d+1]&15)<<2|s[d+2]>>6,b=s[d+2]&63,d+1>=f?v=b=64:d+2>=f&&(b=64),u+=pk.charAt(p)+pk.charAt(E)+pk.charAt(v)+pk.charAt(b),d+=3;return u}function XTt(t){let u="",s=0;const d=t.length;for(;s>4&3,k=(E&15)<<4|v>>2&15,T=(v&3)<<6|b&63;k===0&&v!==0?d.push(B):T===0&&b!==0?d.push(B,k):d.push(B,k,T),f+=4}return XTt(d)}function mle(t,u){const s=Ua(u)?u:u.readFile(t);if(!s)return;const d=nde(t,s);return d.error?void 0:d.config}function _P(t,u){return mle(t,u)||{}}function hg(t,u){return!u.directoryExists||u.directoryExists(t)}function a5(t){switch(t.newLine){case 0:return PYe;case 1:case void 0:return MYe}}function d4(t,u=t){return H.assert(u>=t||u===-1),{pos:t,end:u}}function Jq(t,u){return d4(t.pos,u)}function Bv(t,u){return d4(u,t.end)}function o5(t){const u=Kp(t)?lt(t.modifiers,E1):void 0;return u&&!pg(u.end)?Bv(t,u.end):t}function nE(t){if(ko(t)||hc(t))return Bv(t,t.name.pos);const u=Kp(t)?Zu(t.modifiers):void 0;return u&&!pg(u.end)?Bv(t,u.end):o5(t)}function oYe(t){return t.pos===t.end}function ple(t,u){return d4(t,t+qo(u).length)}function hk(t,u){return Uye(t,t,u)}function $q(t,u,s){return Y4(DP(t,s,!1),DP(u,s,!1),s)}function $ye(t,u,s){return Y4(t.end,u.end,s)}function Uye(t,u,s){return Y4(DP(t,s,!1),u.end,s)}function Zj(t,u,s){return Y4(t.end,DP(u,s,!1),s)}function gle(t,u,s,d){const f=DP(u,s,d);return NN(s,t.end,f)}function sYe(t,u,s){return NN(s,t.end,u.end)}function qye(t,u){return!Y4(t.pos,t.end,u)}function Y4(t,u,s){return NN(s,t,u)===0}function DP(t,u,s){return pg(t.pos)?-1:gs(u.text,t.pos,!1,s)}function Zye(t,u,s,d){const f=gs(s.text,t,!1,d),p=eLt(f,u,s);return NN(s,p??u,f)}function Yye(t,u,s,d){const f=gs(s.text,t,!1,d);return NN(s,t,Math.min(u,f))}function eLt(t,u=0,s){for(;t-- >u;)if(!U3(s.text.charCodeAt(t)))return t}function Ele(t){const u=Za(t);if(u)switch(u.parent.kind){case 266:case 267:return u===u.parent.name}return!1}function xP(t){return ti(t.declarations,Yj)}function Yj(t){return ra(t)&&t.initializer!==void 0}function lYe(t){return t.watch&&Eu(t,"watch")}function fg(t){t.close()}function Gl(t){return t.flags&33554432?t.links.checkFlags:0}function h4(t,u=!1){if(t.valueDeclaration){const s=u&&t.declarations&&Le(t.declarations,jf)||t.flags&32768&&Le(t.declarations,Im)||t.valueDeclaration,d=p2(s);return t.parent&&t.parent.flags&32?d:d&-8}if(Gl(t)&6){const s=t.links.checkFlags,d=s&1024?2:s&256?1:4,f=s&2048?256:0;return d|f}return t.flags&4194304?257:0}function eh(t,u){return t.flags&2097152?u.getAliasedSymbol(t):t}function vP(t){return t.exportSymbol?t.exportSymbol.flags|t.flags:t.flags}function Uq(t){return CP(t)===1}function D7(t){return CP(t)!==0}function CP(t){const{parent:u}=t;switch(u==null?void 0:u.kind){case 217:return CP(u);case 225:case 224:const{operator:s}=u;return s===46||s===47?2:0;case 226:const{left:d,operatorToken:f}=u;return d===t&&u5(f.kind)?f.kind===64?1:2:0;case 211:return u.name!==t?0:CP(u);case 303:{const p=CP(u.parent);return t===u.name?tLt(p):p}case 304:return t===u.objectAssignmentInitializer?0:CP(u.parent);case 209:return CP(u);default:return 0}}function tLt(t){switch(t){case 0:return 1;case 1:return 0;case 2:return 2;default:return H.assertNever(t)}}function _le(t,u){if(!t||!u||Object.keys(t).length!==Object.keys(u).length)return!1;for(const s in t)if(typeof t[s]=="object"){if(!_le(t[s],u[s]))return!1}else if(typeof t[s]!="function"&&t[s]!==u[s])return!1;return!0}function rf(t,u){t.forEach(u),t.clear()}function eD(t,u,s){const{onDeleteValue:d,onExistingValue:f}=s;t.forEach((p,E)=>{const v=u.get(E);v===void 0?(t.delete(E),d(p,E)):f&&f(p,v,E)})}function cB(t,u,s){eD(t,u,s);const{createNewValue:d}=s;u.forEach((f,p)=>{t.has(p)||t.set(p,d(p,f))})}function Qye(t){if(t.flags&32){const u=tD(t);return!!u&&Qu(u,64)}return!1}function tD(t){var u;return(u=t.declarations)==null?void 0:u.find(gr)}function Ju(t){return t.flags&3899393?t.objectFlags:0}function cYe(t,u){return!!qg(t,s=>u(s)?!0:void 0)}function qq(t){return!!t&&!!t.declarations&&!!t.declarations[0]&&TV(t.declarations[0])}function Xye({moduleSpecifier:t}){return rs(t)?t.text:Wc(t)}function Dle(t){let u;return ao(t,s=>{W4(s)&&(u=s)},s=>{for(let d=s.length-1;d>=0;d--)if(W4(s[d])){u=s[d];break}}),u}function Rp(t,u,s=!0){return t.has(u)?!1:(t.set(u,s),!0)}function x7(t){return gr(t)||Ch(t)||fm(t)}function xle(t){return t>=182&&t<=205||t===133||t===159||t===150||t===163||t===151||t===136||t===154||t===155||t===116||t===157||t===146||t===141||t===233||t===319||t===320||t===321||t===322||t===323||t===324||t===325}function O0(t){return t.kind===211||t.kind===212}function eke(t){return t.kind===211?t.name:(H.assert(t.kind===212),t.argumentExpression)}function tke(t){switch(t.kind){case"text":case"internal":return!0;default:return!1}}function Zq(t){return t.kind===275||t.kind===279}function bP(t){for(;O0(t);)t=t.expression;return t}function ike(t,u){if(O0(t.parent)&&hle(t))return s(t.parent);function s(d){if(d.kind===211){const f=u(d.name);if(f!==void 0)return f}else if(d.kind===212)if(at(d.argumentExpression)||i0(d.argumentExpression)){const f=u(d.argumentExpression);if(f!==void 0)return f}else return;if(O0(d.expression))return s(d.expression);if(at(d.expression))return u(d.expression)}}function dB(t,u){for(;;){switch(t.kind){case 225:t=t.operand;continue;case 226:t=t.left;continue;case 227:t=t.condition;continue;case 215:t=t.tag;continue;case 213:if(u)return t;case 234:case 212:case 211:case 235:case 360:case 238:t=t.expression;continue}return t}}function iLt(t,u){this.flags=t,this.escapedName=u,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.isAssigned=void 0,this.links=void 0}function nLt(t,u){this.flags=u,(H.isDebugging||Gn)&&(this.checker=t)}function uLt(t,u){this.flags=u,H.isDebugging&&(this.checker=t)}function nke(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function rLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function aLt(t,u,s){this.pos=u,this.end=s,this.kind=t,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function oLt(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s||(d=>d)}function uke(t){Nke.push(t),t(Xd)}function rke(t){Object.assign(Xd,t),L(Nke,u=>u(Xd))}function t3(t,u){return t.replace(/{(\d+)}/g,(s,d)=>""+H.checkDefined(u[+d]))}function ake(t){bZ=t}function oke(t){!bZ&&t&&(bZ=t())}function to(t){return bZ&&bZ[t.key]||t.message}function hB(t,u,s,d,f,...p){s+d>u.length&&(d=u.length-s),Gbe(u,s,d);let E=to(f);return Ge(p)&&(E=t3(E,p)),{file:void 0,start:s,length:d,messageText:E,category:f.category,code:f.code,reportsUnnecessary:f.reportsUnnecessary,fileName:t}}function sLt(t){return t.file===void 0&&t.start!==void 0&&t.length!==void 0&&typeof t.fileName=="string"}function dYe(t,u){const s=u.fileName||"",d=u.text.length;H.assertEqual(t.fileName,s),H.assertLessThanOrEqual(t.start,d),H.assertLessThanOrEqual(t.start+t.length,d);const f={file:u,start:t.start,length:t.length,messageText:t.messageText,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary};if(t.relatedInformation){f.relatedInformation=[];for(const p of t.relatedInformation)sLt(p)&&p.fileName===s?(H.assertLessThanOrEqual(p.start,d),H.assertLessThanOrEqual(p.start+p.length,d),f.relatedInformation.push(dYe(p,u))):f.relatedInformation.push(p)}return f}function v7(t,u){const s=[];for(const d of t)s.push(dYe(d,u));return s}function Rd(t,u,s,d,...f){Gbe(t.text,u,s);let p=to(d);return Ge(f)&&(p=t3(p,f)),{file:t,start:u,length:s,messageText:p,category:d.category,code:d.code,reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated}}function vle(t,...u){let s=to(t);return Ge(u)&&(s=t3(s,u)),s}function dc(t,...u){let s=to(t);return Ge(u)&&(s=t3(s,u)),{file:void 0,start:void 0,length:void 0,messageText:s,category:t.category,code:t.code,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated}}function Yq(t,u){return{file:void 0,start:void 0,length:void 0,code:t.code,category:t.category,messageText:t.next?t:t.messageText,relatedInformation:u}}function ro(t,u,...s){let d=to(u);return Ge(s)&&(d=t3(d,s)),{messageText:d,category:u.category,code:u.code,next:t===void 0||Array.isArray(t)?t:[t]}}function ske(t,u){let s=t;for(;s.next;)s=s.next[0];s.next=[u]}function hYe(t){return t.file?t.file.path:void 0}function yP(t,u){return Qq(t,u)||lLt(t,u)||0}function Qq(t,u){return fh(hYe(t),hYe(u))||rl(t.start,u.start)||rl(t.length,u.length)||rl(t.code,u.code)||fYe(t.messageText,u.messageText)||0}function lLt(t,u){return!t.relatedInformation&&!u.relatedInformation?0:t.relatedInformation&&u.relatedInformation?rl(t.relatedInformation.length,u.relatedInformation.length)||L(t.relatedInformation,(s,d)=>{const f=u.relatedInformation[d];return yP(s,f)})||0:t.relatedInformation?-1:1}function fYe(t,u){if(typeof t=="string"&&typeof u=="string")return fh(t,u);if(typeof t=="string")return-1;if(typeof u=="string")return 1;let s=fh(t.messageText,u.messageText);if(s)return s;if(!t.next&&!u.next)return 0;if(!t.next)return-1;if(!u.next)return 1;const d=Math.min(t.next.length,u.next.length);for(let f=0;fu.next.length?1:0}function Qj(t){return t===4||t===2||t===1||t===6?1:0}function mYe(t){if(t.transformFlags&2)return Ih(t)||W2(t)?t:ao(t,mYe)}function cLt(t){return t.isDeclarationFile?void 0:mYe(t)}function dLt(t){return(t.impliedNodeFormat===99||Hc(t.fileName,[".cjs",".cts",".mjs",".mts"]))&&!t.isDeclarationFile?!0:void 0}function Xj(t){switch(lke(t)){case 3:return f=>{f.externalModuleIndicator=KV(f)||!f.isDeclarationFile||void 0};case 1:return f=>{f.externalModuleIndicator=KV(f)};case 2:const u=[KV];(t.jsx===4||t.jsx===5)&&u.push(cLt),u.push(dLt);const s=dg(...u);return f=>void(f.externalModuleIndicator=s(f))}}function js(t){return t.target??(t.module===100&&9||t.module===199&&99||1)}function p1(t){return typeof t.module=="number"?t.module:js(t)>=2?5:1}function Xq(t){return t>=5&&t<=99}function g1(t){let u=t.moduleResolution;if(u===void 0)switch(p1(t)){case 1:u=2;break;case 100:u=3;break;case 199:u=99;break;default:u=1;break}return u}function lke(t){return t.moduleDetection||(p1(t)===100||p1(t)===199?3:2)}function eZ(t){switch(p1(t)){case 1:case 2:case 5:case 6:case 7:case 99:case 100:case 199:return!0;default:return!1}}function mg(t){return!!(t.isolatedModules||t.verbatimModuleSyntax)}function Cle(t){return t.verbatimModuleSyntax||t.isolatedModules&&t.preserveValueImports}function cke(t){return t.allowUnreachableCode===!1}function dke(t){return t.allowUnusedLabels===!1}function tZ(t){return!!(f4(t)&&t.declarationMap)}function t_(t){if(t.esModuleInterop!==void 0)return t.esModuleInterop;switch(p1(t)){case 100:case 199:return!0}}function C7(t){return t.allowSyntheticDefaultImports!==void 0?t.allowSyntheticDefaultImports:t_(t)||p1(t)===4||g1(t)===100}function b7(t){return t>=3&&t<=99||t===100}function iZ(t){return!!t.noDtsResolution||g1(t)!==100}function ble(t){const u=g1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function pYe(t){const u=g1(t);if(!b7(u))return!1;if(t.resolvePackageJsonExports!==void 0)return t.resolvePackageJsonExports;switch(u){case 3:case 99:case 100:return!0}return!1}function z2(t){return t.resolveJsonModule!==void 0?t.resolveJsonModule:g1(t)===100}function f4(t){return!!(t.declaration||t.composite)}function fk(t){return!!(t.preserveConstEnums||mg(t))}function eV(t){return!!(t.incremental||t.composite)}function Q4(t,u){return t[u]===void 0?!!t.strict:!!t[u]}function wv(t){return t.allowJs===void 0?!!t.checkJs:t.allowJs}function tV(t){return t.useDefineForClassFields===void 0?js(t)>=9:t.useDefineForClassFields}function hke(t){return t.useDefineForClassFields!==!1&&js(t)>=9}function fke(t,u){return R8(u,t,mde)}function mke(t,u){return R8(u,t,pde)}function pke(t,u){return R8(u,t,gde)}function nZ(t,u){return u.strictFlag?Q4(t,u.name):u.allowJsFlag?wv(t):t[u.name]}function uZ(t){const u=t.jsx;return u===2||u===4||u===5}function rZ(t,u){const s=u==null?void 0:u.pragmas.get("jsximportsource"),d=Wa(s)?s[s.length-1]:s;return t.jsx===4||t.jsx===5||t.jsxImportSource||d?(d==null?void 0:d.arguments.factory)||t.jsxImportSource||"react":void 0}function aZ(t,u){return t?`${t}/${u.jsx===5?"jsx-dev-runtime":"jsx-runtime"}`:void 0}function yle(t){let u=!1;for(let s=0;sf,getSymlinkedDirectories:()=>s,getSymlinkedDirectoriesByRealpath:()=>d,setSymlinkedFile:(v,b)=>(f||(f=new Map)).set(v,b),setSymlinkedDirectory:(v,b)=>{let B=$0(v,t,u);LP(B)||(B=zd(B),b!==!1&&!(s!=null&&s.has(B))&&(d||(d=Tm())).add(b.realPath,v),(s||(s=new Map)).set(B,b))},setSymlinksFromResolutions(v,b,B){H.assert(!p),p=!0,v(k=>E(this,k.resolvedModule)),b(k=>E(this,k.resolvedTypeReferenceDirective)),B.forEach(k=>E(this,k.resolvedTypeReferenceDirective))},hasProcessedResolutions:()=>p};function E(v,b){if(!b||!b.originalPath||!b.resolvedFileName)return;const{resolvedFileName:B,originalPath:k}=b;v.setSymlinkedFile($0(k,t,u),B);const[T,M]=hLt(B,k,t,u)||Dt;T&&M&&v.setSymlinkedDirectory(M,{real:zd(T),realPath:zd($0(T,t,u))})}}function hLt(t,u,s,d){const f=yd(qa(t,s)),p=yd(qa(u,s));let E=!1;for(;f.length>=2&&p.length>=2&&!gYe(f[f.length-2],d)&&!gYe(p[p.length-2],d)&&d(f[f.length-1])===d(p[p.length-1]);)f.pop(),p.pop(),E=!0;return E?[yx(f),yx(p)]:void 0}function gYe(t,u){return t!==void 0&&(u(t)==="node_modules"||Ma(t,"@"))}function fLt(t){return kse(t.charCodeAt(0))?t.slice(1):void 0}function Fle(t,u,s){const d=foe(t,u,s);return d===void 0?void 0:fLt(d)}function EYe(t){return t.replace(qle,mLt)}function mLt(t){return"\\"+t}function kP(t,u,s){const d=oZ(t,u,s);return!d||!d.length?void 0:`^(${d.map(E=>`(${E})`).join("|")})${s==="exclude"?"($|/)":"$"}`}function oZ(t,u,s){if(!(t===void 0||t.length===0))return Vu(t,d=>d&&_Ye(d,u,s,Ike[s]))}function Ale(t){return!/[.*?]/.test(t)}function Sle(t,u,s){const d=t&&_Ye(t,u,s,Ike[s]);return d&&`^(${d})${s==="exclude"?"($|/)":"$"}`}function _Ye(t,u,s,{singleAsteriskRegexFragment:d,doubleAsteriskRegexFragment:f,replaceWildcardCharacter:p}){let E="",v=!1;const b=AO(t,u),B=yr(b);if(s!=="exclude"&&B==="**")return;b[0]=pv(b[0]),Ale(B)&&b.push("**","*");let k=0;for(let T of b){if(T==="**")E+=f;else if(s==="directories"&&(E+="(",k++),v&&(E+=ol),s!=="exclude"){let M="";T.charCodeAt(0)===42?(M+="([^./]"+d+")?",T=T.substr(1)):T.charCodeAt(0)===63&&(M+="[^./]",T=T.substr(1)),M+=T.replace(qle,p),M!==T&&(E+=Yle),E+=M}else E+=T.replace(qle,p);v=!0}for(;k>0;)E+=")?",k--;return E}function gke(t,u){return t==="*"?u:t==="?"?"[^/]":"\\"+t}function sZ(t,u,s,d,f){t=Uo(t),f=Uo(f);const p=hr(f,t);return{includeFilePatterns:Vt(oZ(s,p,"files"),E=>`^${E}$`),includeFilePattern:kP(s,p,"files"),includeDirectoryPattern:kP(s,p,"directories"),excludePattern:kP(u,p,"exclude"),basePaths:pLt(t,s,d)}}function jx(t,u){return new RegExp(t,u?"":"i")}function Ble(t,u,s,d,f,p,E,v,b){t=Uo(t),p=Uo(p);const B=sZ(t,s,d,f,p),k=B.includeFilePatterns&&B.includeFilePatterns.map(Y=>jx(Y,f)),T=B.includeDirectoryPattern&&jx(B.includeDirectoryPattern,f),M=B.excludePattern&&jx(B.excludePattern,f),z=k?k.map(()=>[]):[[]],j=new Map,J=N1(f);for(const Y of B.basePaths)K(Y,hr(p,Y),E);return Ha(z);function K(Y,oe,se){const ge=J(b(oe));if(j.has(ge))return;j.set(ge,!0);const{files:ae,directories:Ce}=v(Y);for(const ne of Mh(ae,fh)){const ve=hr(Y,ne),Se=hr(oe,ne);if(!(u&&!Hc(ve,u))&&!(M&&M.test(Se)))if(!k)z[0].push(ve);else{const Ne=Ue(k,pe=>pe.test(Se));Ne!==-1&&z[Ne].push(ve)}}if(!(se!==void 0&&(se--,se===0)))for(const ne of Mh(Ce,fh)){const ve=hr(Y,ne),Se=hr(oe,ne);(!T||T.test(Se))&&(!M||!M.test(Se))&&K(ve,Se,se)}}}function pLt(t,u,s){const d=[t];if(u){const f=[];for(const p of u){const E=Pf(p)?p:Uo(hr(t,p));f.push(gLt(E))}f.sort(bN(!s));for(const p of f)ye(d,E=>!JE(E,p,t,!s))&&d.push(p)}return d}function gLt(t){const u=jt(t,zYe);return u<0?t7(t)?pv(dr(t)):t:t.substring(0,t.lastIndexOf(ol,u))}function lZ(t,u){return u||cZ(t)||3}function cZ(t){switch(t.substr(t.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}}function FP(t,u){const s=t&&wv(t);if(!u||u.length===0)return s?yZ:EB;const d=s?yZ:EB,f=Ha(d);return[...d,...qi(u,E=>E.scriptKind===7||s&&ELt(E.scriptKind)&&!f.includes(E.extension)?[E.extension]:void 0)]}function iV(t,u){return!t||!z2(t)?u:u===yZ?OYe:u===EB?IYe:[...u,[".json"]]}function ELt(t){return t===1||t===2}function I2(t){return Ge(_B,u=>Ml(t,u))}function mk(t){return Ge(Qle,u=>Ml(t,u))}function Eke({imports:t},u=dg(I2,mk)){return G(t,({text:s})=>om(s)&&!Hc(s,mV)?u(s):void 0)||!1}function wle(t,u,s,d){if(t==="js"||u===99)return $B(s)&&f()!==2?3:2;if(t==="minimal")return 0;if(t==="index")return 1;if(!$B(s))return Eke(d)?2:0;return f();function f(){let p=!1;const E=d.imports.length?d.imports.map(v=>v.text):_h(d)?_Lt(d).map(v=>v.arguments[0].text):Dt;for(const v of E)if(om(v)){if(Hc(v,mV))continue;if(mk(v))return 3;I2(v)&&(p=!0)}return p?2:0}}function _Lt(t){let u=0,s;for(const d of t.statements){if(u>3)break;P0e(d)?s=mi(s,d.declarationList.declarations.map(f=>f.initializer)):Od(d)&&xf(d.expression,!0)?s=Di(s,d.expression):u++}return s||Dt}function _ke(t,u,s){if(!t)return!1;const d=FP(u,s);for(const f of Ha(iV(u,d)))if(Ml(t,f))return!0;return!1}function DYe(t){const u=t.match(/\//g);return u?u.length:0}function nV(t,u){return rl(DYe(t),DYe(u))}function xh(t){for(const u of tce){const s=Dke(t,u);if(s!==void 0)return s}return t}function Dke(t,u){return Ml(t,u)?uV(t,u):void 0}function uV(t,u){return t.substring(0,t.length-u.length)}function Tv(t,u){return SO(t,u,tce,!1)}function fB(t){const u=t.indexOf("*");return u===-1?t:t.indexOf("*",u+1)!==-1?void 0:{prefix:t.substr(0,u),suffix:t.substr(u+1)}}function dZ(t){return qi(Ps(t),u=>fB(u))}function pg(t){return!(t>=0)}function hZ(t){return t===".ts"||t===".tsx"||t===".d.ts"||t===".cts"||t===".mts"||t===".d.mts"||t===".d.cts"||Ma(t,".d.")&&lc(t,".ts")}function AP(t){return hZ(t)||t===".json"}function y7(t){const u=i3(t);return u!==void 0?u:H.fail(`File ${t} has unknown extension.`)}function xYe(t){return i3(t)!==void 0}function i3(t){return Le(tce,u=>Ml(t,u))}function rV(t,u){return t.checkJsDirective?t.checkJsDirective.enabled:u.checkJs}function Tle(t,u){const s=[];for(const d of t){if(d===u)return u;Ua(d)||s.push(d)}return hoe(s,d=>d,u)}function Lle(t,u){const s=t.indexOf(u);return H.assert(s!==-1),t.slice(s)}function Es(t,...u){return u.length&&(t.relatedInformation||(t.relatedInformation=[]),H.assert(t.relatedInformation!==Dt,"Diagnostic had empty array singleton for related info, but is still being constructed!"),t.relatedInformation.push(...u)),t}function xke(t,u){H.assert(t.length!==0);let s=u(t[0]),d=s;for(let f=1;fd&&(d=p)}return{min:s,max:d}}function Nle(t){return{pos:ek(t),end:t.end}}function Ple(t,u){const s=u.pos-1,d=Math.min(t.text.length,gs(t.text,u.end)+1);return{pos:s,end:d}}function SP(t,u,s){return u.skipLibCheck&&t.isDeclarationFile||u.skipDefaultLibCheck&&t.hasNoDefaultLib||s.isSourceOfProjectReferenceRedirect(t.fileName)}function fZ(t,u){return t===u||typeof t=="object"&&t!==null&&typeof u=="object"&&u!==null&&ZA(t,u,fZ)}function BP(t){let u;switch(t.charCodeAt(1)){case 98:case 66:u=1;break;case 111:case 79:u=3;break;case 120:case 88:u=4;break;default:const B=t.length-1;let k=0;for(;t.charCodeAt(k)===48;)k++;return t.slice(k,B)||"0"}const s=2,d=t.length-1,f=(d-s)*u,p=new Uint16Array((f>>>4)+(f&15?1:0));for(let B=d-1,k=0;B>=s;B--,k+=u){const T=k>>>4,M=t.charCodeAt(B),j=(M<=57?M-48:10+M-(M<=70?65:97))<<(k&15);p[T]|=j;const J=j>>>16;J&&(p[T+1]|=J)}let E="",v=p.length-1,b=!0;for(;b;){let B=0;b=!1;for(let k=v;k>=0;k--){const T=B<<16|p[k],M=T/10|0;p[k]=M,B=T-M*10,M&&!b&&(v=k,b=!0)}E=B+E}return E}function R2({negative:t,base10Value:u}){return(t&&u!=="0"?"-":"")+u}function vke(t){if(mZ(t,!1))return Mle(t)}function Mle(t){const u=t.startsWith("-"),s=BP(`${u?t.slice(1):t}n`);return{negative:u,base10Value:s}}function mZ(t,u){if(t==="")return!1;const s=YD(99,!1);let d=!0;s.setOnError(()=>d=!1),s.setText(t+"n");let f=s.scan();const p=f===41;p&&(f=s.scan());const E=s.getTokenFlags();return d&&f===10&&s.getTokenEnd()===t.length+1&&!(E&512)&&(!u||t===R2({negative:p,base10Value:BP(s.getTokenValue())}))}function Lv(t){return!!(t.flags&33554432)||xq(t)||vLt(t)||xLt(t)||!(Y_(t)||DLt(t))}function DLt(t){return at(t)&&pm(t.parent)&&t.parent.name===t}function xLt(t){for(;t.kind===80||t.kind===211;)t=t.parent;if(t.kind!==167)return!1;if(Qu(t.parent,64))return!0;const u=t.parent.parent.kind;return u===264||u===187}function vLt(t){if(t.kind!==80)return!1;const u=Tn(t.parent,s=>{switch(s.kind){case 298:return!0;case 211:case 233:return!1;default:return"quit"}});return(u==null?void 0:u.token)===119||(u==null?void 0:u.parent.kind)===264}function Cke(t){return tp(t)&&at(t.typeName)}function bke(t,u=Cx){if(t.length<2)return!0;const s=t[0];for(let d=1,f=t.length;dt.includes(u))}function Fke(t){if(!t.parent)return;switch(t.kind){case 168:const{parent:s}=t;return s.kind===195?void 0:s.typeParameters;case 169:return t.parent.parameters;case 204:return t.parent.templateSpans;case 239:return t.parent.templateSpans;case 170:{const{parent:d}=t;return Ak(d)?d.modifiers:void 0}case 298:return t.parent.heritageClauses}const{parent:u}=t;if(I8(t))return K7(t.parent)?void 0:t.parent.tags;switch(u.kind){case 187:case 264:return Zy(t)?u.members:void 0;case 192:case 193:return u.types;case 189:case 209:case 361:case 275:case 279:return u.elements;case 210:case 292:return u.properties;case 213:case 214:return Xr(t)?u.typeArguments:u.expression===t?void 0:u.arguments;case 284:case 288:return tj(t)?u.children:void 0;case 286:case 285:return Xr(t)?u.typeArguments:void 0;case 241:case 296:case 297:case 268:return u.statements;case 269:return u.clauses;case 263:case 231:return Yd(t)?u.members:void 0;case 266:return $2(t)?u.members:void 0;case 312:return u.statements}}function pZ(t){if(!t.typeParameters){if(Ge(t.parameters,u=>!m1(u)))return!0;if(t.kind!==219){const u=Ki(t.parameters);if(!(u&&N2(u)))return!0}}return!1}function NP(t){return t==="Infinity"||t==="-Infinity"||t==="NaN"}function Ake(t){return t.kind===260&&t.parent.kind===299}function Ile(t){const u=t.valueDeclaration&&e_(t.valueDeclaration);return!!u&&(io(u)||Ake(u))}function O2(t){return t.kind===218||t.kind===219}function j2(t){return t.replace(/\$/gm,()=>"\\$")}function n3(t){return(+t).toString()===t}function gZ(t,u,s,d,f){const p=f&&t==="new";return!p&&Nm(t,u)?q.createIdentifier(t):!d&&!p&&n3(t)&&+t>=0?q.createNumericLiteral(+t):q.createStringLiteral(t,!!s)}function PP(t){return!!(t.flags&262144&&t.isThisType)}function EZ(t){let u=0,s=0,d=0,f=0,p;(B=>{B[B.BeforeNodeModules=0]="BeforeNodeModules",B[B.NodeModules=1]="NodeModules",B[B.Scope=2]="Scope",B[B.PackageContent=3]="PackageContent"})(p||(p={}));let E=0,v=0,b=0;for(;v>=0;)switch(E=v,v=t.indexOf("/",E+1),b){case 0:t.indexOf(s_,E)===E&&(u=E,s=v,b=1);break;case 1:case 2:b===1&&t.charAt(E+1)==="@"?b=2:(d=v,b=3);break;case 3:t.indexOf(s_,E)===E?b=1:b=3;break}return f=E,b>1?{topLevelNodeModulesIndex:u,topLevelPackageNameIndex:s,packageRootIndex:d,fileNameIndex:f}:void 0}function vYe(t){var u;return t.kind===348?(u=t.typeExpression)==null?void 0:u.type:t.type}function gB(t){switch(t.kind){case 168:case 263:case 264:case 265:case 266:case 353:case 345:case 347:return!0;case 273:return t.isTypeOnly;case 276:case 281:return t.parent.parent.isTypeOnly;default:return!1}}function aV(t){return Rv(t)||Jl(t)||td(t)||Jc(t)||Ch(t)||gB(t)||xc(t)&&!C2(t)&&!Qg(t)}function oV(t){if(!GO(t))return!1;const{isBracketed:u,typeExpression:s}=t;return u||!!s&&s.type.kind===323}function Rle(t,u){if(t.length===0)return!1;const s=t.charCodeAt(0);return s===35?t.length>1&&J_(t.charCodeAt(1),u):J_(s,u)}function Ske(t){var u;return((u=cce(t))==null?void 0:u.kind)===0}function sV(t){return Xn(t)&&(t.type&&t.type.kind===323||B8(t).some(({isBracketed:u,typeExpression:s})=>u||!!s&&s.type.kind===323))}function MP(t){switch(t.kind){case 172:case 171:return!!t.questionToken;case 169:return!!t.questionToken||sV(t);case 355:case 348:return oV(t);default:return!1}}function Bke(t){const u=t.kind;return(u===211||u===212)&&O7(t.expression)}function Ole(t){return Xn(t)&&Cf(t)&&lm(t)&&!!Hse(t)}function jle(t){return H.checkDefined(_Z(t))}function _Z(t){const u=Hse(t);return u&&u.typeExpression&&u.typeExpression.type}function zP(t){return at(t)?t.escapedText:k7(t)}function lV(t){return at(t)?fu(t):IP(t)}function wke(t){const u=t.kind;return u===80||u===295}function k7(t){return`${t.namespace.escapedText}:${fu(t.name)}`}function IP(t){return`${fu(t.namespace)}:${fu(t.name)}`}function Vle(t){return at(t)?fu(t):IP(t)}function X4(t){return!!(t.flags&8576)}function ep(t){return t.flags&8192?t.escapedName:t.flags&384?Sl(""+t.value):H.fail()}function DZ(t){return!!t&&(Ru(t)||q0(t)||eu(t))}function Tke(t){return t===void 0?!1:!!qB(t.attributes)}var xZ,Hx,cV,vZ,dV,CZ,Hle,Kle,CYe,bYe,Wle,yYe,kYe,Gle,Jle,$le,Ule,FYe,AYe,SYe,BYe,wYe,Lke,TYe,LYe,NYe,RP,pk,PYe,MYe,Xd,Nke,bZ,qle,zYe,Zle,Yle,Pke,Mke,zke,Ike,EB,Qle,IYe,RYe,Xle,_B,yZ,OYe,hV,fV,mV,ece,tce,kZ,bLt=o({"src/compiler/utilities.ts"(){Bo(),xZ=[],Hx="tslib",cV=160,vZ=1e6,dV=FTt(),CZ=zh(()=>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:Dt})),AsyncIterator:new Map(Object.entries({es2015:Dt})),Atomics:new Map(Object.entries({es2017:Dt})),SharedArrayBuffer:new Map(Object.entries({es2017:Dt})),AsyncIterable:new Map(Object.entries({es2018:Dt})),AsyncIterableIterator:new Map(Object.entries({es2018:Dt})),AsyncGenerator:new Map(Object.entries({es2018:Dt})),AsyncGeneratorFunction:new Map(Object.entries({es2018:Dt})),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"]})),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"]})),StringConstructor:new Map(Object.entries({es2015:["fromCodePoint","raw"]})),DateTimeFormat:new Map(Object.entries({es2017:["formatToParts"]})),Promise:new Map(Object.entries({es2015:Dt,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:Dt})),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:Dt,es2022:["at"],es2023:["findLastIndex","findLast"]})),BigUint64Array:new Map(Object.entries({es2020:Dt,es2022:["at"],es2023:["findLastIndex","findLast"]})),Error:new Map(Object.entries({es2022:["cause"]}))}))),Hle=(t=>(t[t.None=0]="None",t[t.NeverAsciiEscape=1]="NeverAsciiEscape",t[t.JsxAttributeEscape=2]="JsxAttributeEscape",t[t.TerminateUnterminatedLiterals=4]="TerminateUnterminatedLiterals",t[t.AllowNumericSeparator=8]="AllowNumericSeparator",t))(Hle||{}),Kle=/^(\/\/\/\s*/,CYe=/^(\/\/\/\s*/,bYe=/^(\/\/\/\s*/,Wle=/^(\/\/\/\s*/,yYe=/^\/\/\/\s*/,kYe=/^(\/\/\/\s*/,Gle=(t=>(t[t.None=0]="None",t[t.Definite=1]="Definite",t[t.Compound=2]="Compound",t))(Gle||{}),Jle=(t=>(t[t.Normal=0]="Normal",t[t.Generator=1]="Generator",t[t.Async=2]="Async",t[t.Invalid=4]="Invalid",t[t.AsyncGenerator=3]="AsyncGenerator",t))(Jle||{}),$le=(t=>(t[t.Left=0]="Left",t[t.Right=1]="Right",t))($le||{}),Ule=(t=>(t[t.Comma=0]="Comma",t[t.Spread=1]="Spread",t[t.Yield=2]="Yield",t[t.Assignment=3]="Assignment",t[t.Conditional=4]="Conditional",t[t.Coalesce=4]="Coalesce",t[t.LogicalOR=5]="LogicalOR",t[t.LogicalAND=6]="LogicalAND",t[t.BitwiseOR=7]="BitwiseOR",t[t.BitwiseXOR=8]="BitwiseXOR",t[t.BitwiseAND=9]="BitwiseAND",t[t.Equality=10]="Equality",t[t.Relational=11]="Relational",t[t.Shift=12]="Shift",t[t.Additive=13]="Additive",t[t.Multiplicative=14]="Multiplicative",t[t.Exponentiation=15]="Exponentiation",t[t.Unary=16]="Unary",t[t.Update=17]="Update",t[t.LeftHandSide=18]="LeftHandSide",t[t.Member=19]="Member",t[t.Primary=20]="Primary",t[t.Highest=20]="Highest",t[t.Lowest=0]="Lowest",t[t.Invalid=-1]="Invalid",t))(Ule||{}),FYe=/\$\{/g,AYe=/[\\"\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,SYe=/[\\'\u0000-\u001f\t\v\f\b\r\n\u2028\u2029\u0085]/g,BYe=/\r\n|[\\`\u0000-\u001f\t\v\f\b\r\u2028\u2029\u0085]/g,wYe=new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","…":"\\u0085","\r\n":"\\r\\n"})),Lke=/[^\u0000-\u007F]/g,TYe=/["\u0000-\u001f\u2028\u2029\u0085]/g,LYe=/['\u0000-\u001f\u2028\u2029\u0085]/g,NYe=new Map(Object.entries({'"':""","'":"'"})),RP=[""," "],pk="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",PYe=`\r +`,MYe=` +`,Xd={getNodeConstructor:()=>nke,getTokenConstructor:()=>rLt,getIdentifierConstructor:()=>aLt,getPrivateIdentifierConstructor:()=>nke,getSourceFileConstructor:()=>nke,getSymbolConstructor:()=>iLt,getTypeConstructor:()=>nLt,getSignatureConstructor:()=>uLt,getSourceMapSourceConstructor:()=>oLt},Nke=[],qle=/[^\w\s/]/g,zYe=[42,63],Zle=["node_modules","bower_components","jspm_packages"],Yle=`(?!(${Zle.join("|")})(/|$))`,Pke={singleAsteriskRegexFragment:"([^./]|(\\.(?!min\\.js$))?)*",doubleAsteriskRegexFragment:`(/${Yle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>gke(t,Pke.singleAsteriskRegexFragment)},Mke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:`(/${Yle}[^/.][^/]*)*?`,replaceWildcardCharacter:t=>gke(t,Mke.singleAsteriskRegexFragment)},zke={singleAsteriskRegexFragment:"[^/]*",doubleAsteriskRegexFragment:"(/.+?)?",replaceWildcardCharacter:t=>gke(t,zke.singleAsteriskRegexFragment)},Ike={files:Pke,directories:Mke,exclude:zke},EB=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]],Qle=Ha(EB),IYe=[...EB,[".json"]],RYe=[".d.ts",".d.cts",".d.mts",".cts",".mts",".ts",".tsx"],Xle=[[".js",".jsx"],[".mjs"],[".cjs"]],_B=Ha(Xle),yZ=[[".ts",".tsx",".d.ts",".js",".jsx"],[".cts",".d.cts",".cjs"],[".mts",".d.mts",".mjs"]],OYe=[...yZ,[".json"]],hV=[".d.ts",".d.cts",".d.mts"],fV=[".ts",".cts",".mts",".tsx"],mV=[".mts",".d.mts",".mjs",".cts",".d.cts",".cjs"],ece=(t=>(t[t.Minimal=0]="Minimal",t[t.Index=1]="Index",t[t.JsExtension=2]="JsExtension",t[t.TsExtension=3]="TsExtension",t))(ece||{}),tce=[".d.ts",".d.mts",".d.cts",".mjs",".mts",".cjs",".cts",".ts",".js",".tsx",".jsx",".json"],kZ={files:Dt,directories:Dt}}});function Rke(){let t,u,s,d,f;return{createBaseSourceFileNode:p,createBaseIdentifierNode:E,createBasePrivateIdentifierNode:v,createBaseTokenNode:b,createBaseNode:B};function p(k){return new(f||(f=Xd.getSourceFileConstructor()))(k,-1,-1)}function E(k){return new(s||(s=Xd.getIdentifierConstructor()))(k,-1,-1)}function v(k){return new(d||(d=Xd.getPrivateIdentifierConstructor()))(k,-1,-1)}function b(k){return new(u||(u=Xd.getTokenConstructor()))(k,-1,-1)}function B(k){return new(t||(t=Xd.getNodeConstructor()))(k,-1,-1)}}var yLt=o({"src/compiler/factory/baseNodeFactory.ts"(){Bo()}});function Oke(t){let u,s;return{getParenthesizeLeftSideOfBinaryForOperator:d,getParenthesizeRightSideOfBinaryForOperator:f,parenthesizeLeftSideOfBinary:B,parenthesizeRightSideOfBinary:k,parenthesizeExpressionOfComputedPropertyName:T,parenthesizeConditionOfConditionalExpression:M,parenthesizeBranchOfConditionalExpression:z,parenthesizeExpressionOfExportDefault:j,parenthesizeExpressionOfNew:J,parenthesizeLeftSideOfAccess:K,parenthesizeOperandOfPostfixUnary:Y,parenthesizeOperandOfPrefixUnary:oe,parenthesizeExpressionsOfCommaDelimitedList:se,parenthesizeExpressionForDisallowedComma:ge,parenthesizeExpressionOfExpressionStatement:ae,parenthesizeConciseBodyOfArrowFunction:Ce,parenthesizeCheckTypeOfConditionalType:ne,parenthesizeExtendsTypeOfConditionalType:ve,parenthesizeConstituentTypesOfUnionType:Ne,parenthesizeConstituentTypeOfUnionType:Se,parenthesizeConstituentTypesOfIntersectionType:fe,parenthesizeConstituentTypeOfIntersectionType:pe,parenthesizeOperandOfTypeOperator:xe,parenthesizeOperandOfReadonlyTypeOperator:Be,parenthesizeNonArrayTypeOfPostfixType:We,parenthesizeElementTypesOfTupleType:Ae,parenthesizeElementTypeOfTupleType:De,parenthesizeTypeOfOptionalType:Je,parenthesizeTypeArguments:je,parenthesizeLeadingTypeArgument:mt};function d(Ke){u||(u=new Map);let Gt=u.get(Ke);return Gt||(Gt=Yt=>B(Ke,Yt),u.set(Ke,Gt)),Gt}function f(Ke){s||(s=new Map);let Gt=s.get(Ke);return Gt||(Gt=Yt=>k(Ke,void 0,Yt),s.set(Ke,Gt)),Gt}function p(Ke,Gt,Yt,Ie){const st=Oj(226,Ke),Bt=Q0e(226,Ke),It=Pp(Gt);if(!Yt&&Gt.kind===219&&st>3)return!0;const ei=cP(It);switch(rl(ei,st)){case-1:return!(!Yt&&Bt===1&&Gt.kind===229);case 1:return!1;case 0:if(Yt)return Bt===1;if(eu(It)&&It.operatorToken.kind===Ke){if(E(Ke))return!1;if(Ke===40){const Ut=Ie?v(Ie):0;if(VN(Ut)&&Ut===v(It))return!1}}return Y0e(It)===0}}function E(Ke){return Ke===42||Ke===52||Ke===51||Ke===53||Ke===28}function v(Ke){if(Ke=Pp(Ke),VN(Ke.kind))return Ke.kind;if(Ke.kind===226&&Ke.operatorToken.kind===40){if(Ke.cachedLiteralKind!==void 0)return Ke.cachedLiteralKind;const Gt=v(Ke.left),Yt=VN(Gt)&&Gt===v(Ke.right)?Gt:0;return Ke.cachedLiteralKind=Yt,Yt}return 0}function b(Ke,Gt,Yt,Ie){return Pp(Gt).kind===217?Gt:p(Ke,Gt,Yt,Ie)?t.createParenthesizedExpression(Gt):Gt}function B(Ke,Gt){return b(Ke,Gt,!0)}function k(Ke,Gt,Yt){return b(Ke,Yt,!1,Gt)}function T(Ke){return tM(Ke)?t.createParenthesizedExpression(Ke):Ke}function M(Ke){const Gt=Oj(227,58),Yt=Pp(Ke),Ie=cP(Yt);return rl(Ie,Gt)!==1?t.createParenthesizedExpression(Ke):Ke}function z(Ke){const Gt=Pp(Ke);return tM(Gt)?t.createParenthesizedExpression(Ke):Ke}function j(Ke){const Gt=Pp(Ke);let Yt=tM(Gt);if(!Yt)switch(dB(Gt,!1).kind){case 231:case 218:Yt=!0}return Yt?t.createParenthesizedExpression(Ke):Ke}function J(Ke){const Gt=dB(Ke,!0);switch(Gt.kind){case 213:return t.createParenthesizedExpression(Ke);case 214:return Gt.arguments?Ke:t.createParenthesizedExpression(Ke)}return K(Ke)}function K(Ke,Gt){const Yt=Pp(Ke);return Df(Yt)&&(Yt.kind!==214||Yt.arguments)&&(Gt||!Q1(Yt))?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function Y(Ke){return Df(Ke)?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function oe(Ke){return i0e(Ke)?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function se(Ke){const Gt=Pu(Ke,ge);return Pt(t.createNodeArray(Gt,Ke.hasTrailingComma),Ke)}function ge(Ke){const Gt=Pp(Ke),Yt=cP(Gt),Ie=Oj(226,28);return Yt>Ie?Ke:Pt(t.createParenthesizedExpression(Ke),Ke)}function ae(Ke){const Gt=Pp(Ke);if(Mo(Gt)){const Ie=Gt.expression,st=Pp(Ie).kind;if(st===218||st===219){const Bt=t.updateCallExpression(Gt,Pt(t.createParenthesizedExpression(Ie),Ie),Gt.typeArguments,Gt.arguments);return t.restoreOuterExpressions(Ke,Bt,8)}}const Yt=dB(Gt,!1).kind;return Yt===210||Yt===218?Pt(t.createParenthesizedExpression(Ke),Ke):Ke}function Ce(Ke){return!go(Ke)&&(tM(Ke)||dB(Ke,!1).kind===210)?Pt(t.createParenthesizedExpression(Ke),Ke):Ke}function ne(Ke){switch(Ke.kind){case 184:case 185:case 194:return t.createParenthesizedType(Ke)}return Ke}function ve(Ke){switch(Ke.kind){case 194:return t.createParenthesizedType(Ke)}return Ke}function Se(Ke){switch(Ke.kind){case 192:case 193:return t.createParenthesizedType(Ke)}return ne(Ke)}function Ne(Ke){return t.createNodeArray(Pu(Ke,Se))}function pe(Ke){switch(Ke.kind){case 192:case 193:return t.createParenthesizedType(Ke)}return Se(Ke)}function fe(Ke){return t.createNodeArray(Pu(Ke,pe))}function xe(Ke){switch(Ke.kind){case 193:return t.createParenthesizedType(Ke)}return pe(Ke)}function Be(Ke){switch(Ke.kind){case 198:return t.createParenthesizedType(Ke)}return xe(Ke)}function We(Ke){switch(Ke.kind){case 195:case 198:case 186:return t.createParenthesizedType(Ke)}return xe(Ke)}function Ae(Ke){return t.createNodeArray(Pu(Ke,De))}function De(Ke){return He(Ke)?t.createParenthesizedType(Ke):Ke}function He(Ke){return wB(Ke)?Ke.postfix:JP(Ke)||r3(Ke)||GP(Ke)||z7(Ke)?He(Ke.type):FB(Ke)?He(Ke.falseType):Mv(Ke)||kB(Ke)?He(yr(Ke.types)):P7(Ke)?!!Ke.typeParameter.constraint&&He(Ke.typeParameter.constraint):!1}function Je(Ke){return He(Ke)?t.createParenthesizedType(Ke):We(Ke)}function mt(Ke){return cbe(Ke)&&Ke.typeParameters?t.createParenthesizedType(Ke):Ke}function Ye(Ke,Gt){return Gt===0?mt(Ke):Ke}function je(Ke){if(Ge(Ke))return t.createNodeArray(Pu(Ke,Ye))}}var ice,kLt=o({"src/compiler/factory/parenthesizerRules.ts"(){Bo(),ice={getParenthesizeLeftSideOfBinaryForOperator:t=>ul,getParenthesizeRightSideOfBinaryForOperator:t=>ul,parenthesizeLeftSideOfBinary:(t,u)=>u,parenthesizeRightSideOfBinary:(t,u,s)=>s,parenthesizeExpressionOfComputedPropertyName:ul,parenthesizeConditionOfConditionalExpression:ul,parenthesizeBranchOfConditionalExpression:ul,parenthesizeExpressionOfExportDefault:ul,parenthesizeExpressionOfNew:t=>Po(t,Df),parenthesizeLeftSideOfAccess:t=>Po(t,Df),parenthesizeOperandOfPostfixUnary:t=>Po(t,Df),parenthesizeOperandOfPrefixUnary:t=>Po(t,i0e),parenthesizeExpressionsOfCommaDelimitedList:t=>Po(t,E2),parenthesizeExpressionForDisallowedComma:ul,parenthesizeExpressionOfExpressionStatement:ul,parenthesizeConciseBodyOfArrowFunction:ul,parenthesizeCheckTypeOfConditionalType:ul,parenthesizeExtendsTypeOfConditionalType:ul,parenthesizeConstituentTypesOfUnionType:t=>Po(t,E2),parenthesizeConstituentTypeOfUnionType:ul,parenthesizeConstituentTypesOfIntersectionType:t=>Po(t,E2),parenthesizeConstituentTypeOfIntersectionType:ul,parenthesizeOperandOfTypeOperator:ul,parenthesizeOperandOfReadonlyTypeOperator:ul,parenthesizeNonArrayTypeOfPostfixType:ul,parenthesizeElementTypesOfTupleType:t=>Po(t,E2),parenthesizeElementTypeOfTupleType:ul,parenthesizeTypeOfOptionalType:ul,parenthesizeTypeArguments:t=>t&&Po(t,E2),parenthesizeLeadingTypeArgument:ul}}});function jke(t){return{convertToFunctionBlock:u,convertToFunctionExpression:s,convertToClassExpression:d,convertToArrayAssignmentElement:f,convertToObjectAssignmentElement:p,convertToAssignmentPattern:E,convertToObjectAssignmentPattern:v,convertToArrayAssignmentPattern:b,convertToAssignmentElementTarget:B};function u(k,T){if(go(k))return k;const M=t.createReturnStatement(k);Pt(M,k);const z=t.createBlock([M],T);return Pt(z,k),z}function s(k){var T;if(!k.body)return H.fail("Cannot convert a FunctionDeclaration without a body");const M=t.createFunctionExpression((T=g2(k))==null?void 0:T.filter(z=>!L7(z)&&!oY(z)),k.asteriskToken,k.name,k.typeParameters,k.parameters,k.type,k.body);return su(M,k),Pt(M,k),OP(k)&&SZ(M,!0),M}function d(k){var T;const M=t.createClassExpression((T=k.modifiers)==null?void 0:T.filter(z=>!L7(z)&&!oY(z)),k.name,k.typeParameters,k.heritageClauses,k.members);return su(M,k),Pt(M,k),OP(k)&&SZ(M,!0),M}function f(k){if(Vs(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadElement(k.name),k),k);const T=B(k.name);return k.initializer?su(Pt(t.createAssignment(T,k.initializer),k),k):T}return Po(k,Wt)}function p(k){if(Vs(k)){if(k.dotDotDotToken)return H.assertNode(k.name,at),su(Pt(t.createSpreadAssignment(k.name),k),k);if(k.propertyName){const T=B(k.name);return su(Pt(t.createPropertyAssignment(k.propertyName,k.initializer?t.createAssignment(T,k.initializer):T),k),k)}return H.assertNode(k.name,at),su(Pt(t.createShorthandPropertyAssignment(k.name,k.initializer),k),k)}return Po(k,Z3)}function E(k){switch(k.kind){case 207:case 209:return b(k);case 206:case 210:return v(k)}}function v(k){return Op(k)?su(Pt(t.createObjectLiteralExpression(Vt(k.elements,p)),k),k):Po(k,ys)}function b(k){return _k(k)?su(Pt(t.createArrayLiteralExpression(Vt(k.elements,f)),k),k):Po(k,vh)}function B(k){return So(k)?E(k):Po(k,Wt)}}var nce,FLt=o({"src/compiler/factory/nodeConverters.ts"(){Bo(),nce={convertToFunctionBlock:fo,convertToFunctionExpression:fo,convertToClassExpression:fo,convertToArrayAssignmentElement:fo,convertToObjectAssignmentElement:fo,convertToAssignmentPattern:fo,convertToObjectAssignmentPattern:fo,convertToArrayAssignmentPattern:fo,convertToAssignmentElementTarget:fo}}});function jYe(t){Hke.push(t)}function pV(t,u){const s=t&8?ALt:SLt,d=zh(()=>t&1?ice:Oke(Y)),f=zh(()=>t&2?nce:jke(Y)),p=KE(N=>(W,ee)=>Me(W,N,ee)),E=KE(N=>W=>wt(N,W)),v=KE(N=>W=>vi(W,N)),b=KE(N=>()=>lz(N)),B=KE(N=>W=>L0(N,W)),k=KE(N=>(W,ee)=>A9(N,W,ee)),T=KE(N=>(W,ee)=>F9(N,W,ee)),M=KE(N=>(W,ee)=>_b(N,W,ee)),z=KE(N=>(W,ee)=>v4(N,W,ee)),j=KE(N=>(W,ee,ke)=>mC(N,W,ee,ke)),J=KE(N=>(W,ee,ke)=>T5(N,W,ee,ke)),K=KE(N=>(W,ee,ke,dt)=>u1(N,W,ee,ke,dt)),Y={get parenthesizer(){return d()},get converters(){return f()},baseFactory:u,flags:t,createNodeArray:oe,createNumericLiteral:Ce,createBigIntLiteral:ne,createStringLiteral:Se,createStringLiteralFromNode:Ne,createRegularExpressionLiteral:pe,createLiteralLikeNode:fe,createIdentifier:We,createTempVariable:Ae,createLoopVariable:De,createUniqueName:He,getGeneratedNameForNode:Je,createPrivateIdentifier:Ye,createUniquePrivateName:Ke,getGeneratedPrivateNameForNode:Gt,createToken:Ie,createSuper:st,createThis:Bt,createNull:It,createTrue:ei,createFalse:ft,createModifier:Ut,createModifiersFromModifierFlags:Ni,createQualifiedName:Vi,updateQualifiedName:xn,createComputedPropertyName:Jn,updateComputedPropertyName:an,createTypeParameterDeclaration:Pi,updateTypeParameterDeclaration:Fi,createParameterDeclaration:Yu,updateParameterDeclaration:oa,createDecorator:Fr,updateDecorator:wa,createPropertySignature:bt,updatePropertySignature:jn,createPropertyDeclaration:Ai,updatePropertyDeclaration:Dn,createMethodSignature:Cn,updateMethodSignature:tu,createMethodDeclaration:sa,updateMethodDeclaration:xa,createConstructorDeclaration:Qe,updateConstructorDeclaration:_t,createGetAccessorDeclaration:qt,updateGetAccessorDeclaration:Xt,createSetAccessorDeclaration:et,updateSetAccessorDeclaration:Et,createCallSignature:me,updateCallSignature:ni,createConstructSignature:xi,updateConstructSignature:pt,createIndexSignature:Ot,updateIndexSignature:Ei,createClassStaticBlockDeclaration:Ta,updateClassStaticBlockDeclaration:Qo,createTemplateLiteralTypeSpan:$i,updateTemplateLiteralTypeSpan:Qi,createKeywordTypeNode:on,createTypePredicateNode:le,updateTypePredicateNode:te,createTypeReferenceNode:we,updateTypeReferenceNode:de,createFunctionTypeNode:Oe,updateFunctionTypeNode:X,createConstructorTypeNode:Ct,updateConstructorTypeNode:Ti,createTypeQueryNode:du,updateTypeQueryNode:Ou,createTypeLiteralNode:Er,updateTypeLiteralNode:er,createArrayTypeNode:da,updateArrayTypeNode:Wu,createTupleTypeNode:Va,updateTupleTypeNode:wn,createNamedTupleMember:Rr,updateNamedTupleMember:os,createOptionalTypeNode:wo,updateOptionalTypeNode:Fn,createRestTypeNode:bc,updateRestTypeNode:Qa,createUnionTypeNode:Tl,updateUnionTypeNode:hd,createIntersectionTypeNode:Cl,updateIntersectionTypeNode:ho,createConditionalTypeNode:Ko,updateConditionalTypeNode:nd,createInferTypeNode:Q0,updateInferTypeNode:Wo,createImportTypeNode:Pc,updateImportTypeNode:Il,createParenthesizedType:hl,updateParenthesizedType:Ga,createThisTypeNode:Oi,createTypeOperatorNode:fl,updateTypeOperatorNode:Zc,createIndexedAccessTypeNode:yh,updateIndexedAccessTypeNode:sf,createMappedTypeNode:X0,updateMappedTypeNode:yc,createLiteralTypeNode:$,updateLiteralTypeNode:tt,createTemplateLiteralType:Nc,updateTemplateLiteralType:$p,createObjectBindingPattern:vt,updateObjectBindingPattern:fi,createArrayBindingPattern:fn,updateArrayBindingPattern:Gu,createBindingElement:uu,updateBindingElement:Nu,createArrayLiteralExpression:Mr,updateArrayLiteralExpression:Hu,createObjectLiteralExpression:Ss,updateObjectLiteralExpression:nc,createPropertyAccessExpression:t&4?(N,W)=>Yn(T0(N,W),262144):T0,updatePropertyAccessExpression:rd,createPropertyAccessChain:t&4?(N,W,ee)=>Yn(m0(N,W,ee),262144):m0,updatePropertyAccessChain:Bd,createElementAccessExpression:rh,updateElementAccessExpression:p4,createElementAccessChain:x1,updateElementAccessChain:Ve,createCallExpression:Mn,updateCallExpression:ka,createCallChain:Fo,updateCallChain:To,createNewExpression:uc,updateNewExpression:mc,createTaggedTemplateExpression:bl,updateTaggedTemplateExpression:Ll,createTypeAssertion:kc,updateTypeAssertion:ql,createParenthesizedExpression:Mc,updateParenthesizedExpression:up,createFunctionExpression:$m,updateFunctionExpression:Vh,createArrowFunction:g4,updateArrowFunction:d3,createDeleteExpression:d_,updateDeleteExpression:C5,createTypeOfExpression:O1,updateTypeOfExpression:h3,createVoidExpression:Wf,updateVoidExpression:E4,createAwaitExpression:Hh,updateAwaitExpression:Ee,createPrefixUnaryExpression:wt,updatePrefixUnaryExpression:_i,createPostfixUnaryExpression:vi,updatePostfixUnaryExpression:Q,createBinaryExpression:Me,updateBinaryExpression:yi,createConditionalExpression:In,updateConditionalExpression:nr,createTemplateExpression:ur,updateTemplateExpression:fa,createTemplateHead:Um,createTemplateMiddle:_s,createTemplateTail:rp,createNoSubstitutionTemplateLiteral:qm,createTemplateLiteralLikeNode:fd,createYieldExpression:f3,updateYieldExpression:h_,createSpreadElement:ia,updateSpreadElement:Xx,createClassExpression:e6,updateClassExpression:bg,createOmittedExpression:lb,createExpressionWithTypeArguments:b5,updateExpressionWithTypeArguments:Xe,createAsExpression:xt,updateAsExpression:oi,createNonNullExpression:wi,updateNonNullExpression:Xi,createSatisfiesExpression:Rn,updateSatisfiesExpression:tn,createNonNullChain:bn,updateNonNullChain:Ar,createMetaProperty:bu,updateMetaProperty:yu,createTemplateSpan:_u,updateTemplateSpan:la,createSemicolonClassElement:p0,createBlock:o0,updateBlock:Gf,createVariableStatement:tC,updateVariableStatement:t6,createEmptyStatement:cD,createExpressionStatement:i6,updateExpressionStatement:Gk,createIfStatement:cb,updateIfStatement:Jk,createDoStatement:$k,updateDoStatement:oz,createWhileStatement:D9,updateWhileStatement:ww,createForStatement:iC,updateForStatement:x9,createForInStatement:v9,updateForInStatement:Tw,createForOfStatement:Uk,updateForOfStatement:Lw,createContinueStatement:C9,updateContinueStatement:b9,createBreakStatement:qk,updateBreakStatement:db,createReturnStatement:hb,updateReturnStatement:nC,createWithStatement:y5,updateWithStatement:fb,createSwitchStatement:mE,updateSwitchStatement:Hs,createLabeledStatement:Zk,updateLabeledStatement:Nw,createThrowStatement:n6,updateThrowStatement:k5,createTryStatement:f_,updateTryStatement:_4,createDebuggerStatement:Jf,createVariableDeclaration:Kh,updateVariableDeclaration:Em,createVariableDeclarationList:uC,updateVariableDeclarationList:Pw,createFunctionDeclaration:y9,updateFunctionDeclaration:Yk,createClassDeclaration:rC,updateClassDeclaration:Qk,createInterfaceDeclaration:aC,updateInterfaceDeclaration:jd,createTypeAliasDeclaration:F5,updateTypeAliasDeclaration:A5,createEnumDeclaration:m3,updateEnumDeclaration:gt,createModuleDeclaration:n1,updateModuleDeclaration:D4,createModuleBlock:kh,updateModuleBlock:Mw,createCaseBlock:S5,updateCaseBlock:oC,createNamespaceExportDeclaration:p3,updateNamespaceExportDeclaration:sz,createImportEqualsDeclaration:yg,updateImportEqualsDeclaration:Xk,createImportDeclaration:eF,updateImportDeclaration:pb,createImportClause:gb,updateImportClause:ap,createAssertClause:kg,updateAssertClause:g3,createAssertEntry:tF,updateAssertEntry:pE,createImportTypeAssertionContainer:iF,updateImportTypeAssertionContainer:zw,createImportAttributes:qr,updateImportAttributes:sr,createImportAttribute:gE,updateImportAttribute:kf,createNamespaceImport:Iw,updateNamespaceImport:B5,createNamespaceExport:Rw,updateNamespaceExport:Eb,createNamedImports:rc,updateNamedImports:Fh,createImportSpecifier:dD,updateImportSpecifier:m_,createExportAssignment:E3,updateExportAssignment:Up,createExportDeclaration:sC,updateExportDeclaration:_3,createNamedExports:p_,updateNamedExports:jw,createExportSpecifier:EE,updateExportSpecifier:g_,createMissingDeclaration:w5,createExternalModuleReference:Vw,updateExternalModuleReference:k9,get createJSDocAllType(){return b(319)},get createJSDocUnknownType(){return b(320)},get createJSDocNonNullableType(){return T(322)},get updateJSDocNonNullableType(){return M(322)},get createJSDocNullableType(){return T(321)},get updateJSDocNullableType(){return M(321)},get createJSDocOptionalType(){return B(323)},get updateJSDocOptionalType(){return k(323)},get createJSDocVariadicType(){return B(325)},get updateJSDocVariadicType(){return k(325)},get createJSDocNamepathType(){return B(326)},get updateJSDocNamepathType(){return k(326)},createJSDocFunctionType:op,updateJSDocFunctionType:lC,createJSDocTypeLiteral:S9,updateJSDocTypeLiteral:cz,createJSDocTypeExpression:nF,updateJSDocTypeExpression:ru,createJSDocSignature:C1,updateJSDocSignature:za,createJSDocTemplateTag:Un,updateJSDocTemplateTag:Db,createJSDocTypedefTag:cC,updateJSDocTypedefTag:wd,createJSDocParameterTag:DE,updateJSDocParameterTag:xE,createJSDocPropertyTag:u6,updateJSDocPropertyTag:B9,createJSDocCallbackTag:hD,updateJSDocCallbackTag:dC,createJSDocOverloadTag:hC,updateJSDocOverloadTag:D3,createJSDocAugmentsTag:E_,updateJSDocAugmentsTag:uF,createJSDocImplementsTag:fD,updateJSDocImplementsTag:Cb,createJSDocSeeTag:r6,updateJSDocSeeTag:xb,createJSDocNameReference:w9,updateJSDocNameReference:rF,createJSDocMemberName:vb,updateJSDocMemberName:x4,createJSDocLink:fC,updateJSDocLink:Fc,createJSDocLinkCode:md,updateJSDocLinkCode:T9,createJSDocLinkPlain:j1,updateJSDocLinkPlain:Ff,get createJSDocTypeTag(){return J(351)},get updateJSDocTypeTag(){return K(351)},get createJSDocReturnTag(){return J(349)},get updateJSDocReturnTag(){return K(349)},get createJSDocThisTag(){return J(350)},get updateJSDocThisTag(){return K(350)},get createJSDocAuthorTag(){return z(337)},get updateJSDocAuthorTag(){return j(337)},get createJSDocClassTag(){return z(339)},get updateJSDocClassTag(){return j(339)},get createJSDocPublicTag(){return z(340)},get updateJSDocPublicTag(){return j(340)},get createJSDocPrivateTag(){return z(341)},get updateJSDocPrivateTag(){return j(341)},get createJSDocProtectedTag(){return z(342)},get updateJSDocProtectedTag(){return j(342)},get createJSDocReadonlyTag(){return z(343)},get updateJSDocReadonlyTag(){return j(343)},get createJSDocOverrideTag(){return z(344)},get updateJSDocOverrideTag(){return j(344)},get createJSDocDeprecatedTag(){return z(338)},get updateJSDocDeprecatedTag(){return j(338)},get createJSDocThrowsTag(){return J(356)},get updateJSDocThrowsTag(){return K(356)},get createJSDocSatisfiesTag(){return J(357)},get updateJSDocSatisfiesTag(){return K(357)},createJSDocEnumTag:a6,updateJSDocEnumTag:Hw,createJSDocUnknownTag:aF,updateJSDocUnknownTag:lp,createJSDocText:j0,updateJSDocText:Kw,createJSDocComment:oF,updateJSDocComment:pC,createJsxElement:L9,updateJsxElement:Wh,createJsxSelfClosingElement:x3,updateJsxSelfClosingElement:mD,createJsxOpeningElement:bb,updateJsxOpeningElement:_m,createJsxClosingElement:N9,updateJsxClosingElement:o6,createJsxFragment:Zm,createJsxText:L5,updateJsxText:dz,createJsxOpeningFragment:P9,createJsxJsxClosingFragment:M9,updateJsxFragment:yb,createJsxAttribute:z9,updateJsxAttribute:gC,createJsxAttributes:$f,updateJsxAttributes:v3,createJsxSpreadAttribute:I9,updateJsxSpreadAttribute:R9,createJsxExpression:Ws,updateJsxExpression:Du,createJsxNamespacedName:Dm,updateJsxNamespacedName:cf,createCaseClause:kb,updateCaseClause:Ww,createDefaultClause:EC,updateDefaultClause:Fb,createHeritageClause:s6,updateHeritageClause:Ym,createCatchClause:cp,updateCatchClause:l6,createPropertyAssignment:qp,updatePropertyAssignment:dp,createShorthandPropertyAssignment:Ab,updateShorthandPropertyAssignment:zc,createSpreadAssignment:C4,updateSpreadAssignment:Gw,createEnumMember:V1,updateEnumMember:_C,createSourceFile:Sb,updateSourceFile:c6,createRedirectedSourceFile:sF,createBundle:C3,updateBundle:DC,createUnparsedSource:$w,createUnparsedPrologue:O,createUnparsedPrepend:be,createUnparsedTextLike:Ht,createUnparsedSyntheticReference:ji,createInputFiles:Fu,createSyntheticExpression:$r,createSyntaxList:kr,createNotEmittedStatement:_a,createPartiallyEmittedExpression:Ao,updatePartiallyEmittedExpression:Af,createCommaListExpression:Sr,updateCommaListExpression:CE,createSyntheticReferenceExpression:gn,updateSyntheticReferenceExpression:h6,cloneNode:cF,get createComma(){return p(28)},get createAssignment(){return p(64)},get createLogicalOr(){return p(57)},get createLogicalAnd(){return p(56)},get createBitwiseOr(){return p(52)},get createBitwiseXor(){return p(53)},get createBitwiseAnd(){return p(51)},get createStrictEquality(){return p(37)},get createStrictInequality(){return p(38)},get createEquality(){return p(35)},get createInequality(){return p(36)},get createLessThan(){return p(30)},get createLessThanEquals(){return p(33)},get createGreaterThan(){return p(32)},get createGreaterThanEquals(){return p(34)},get createLeftShift(){return p(48)},get createRightShift(){return p(49)},get createUnsignedRightShift(){return p(50)},get createAdd(){return p(40)},get createSubtract(){return p(41)},get createMultiply(){return p(42)},get createDivide(){return p(44)},get createModulo(){return p(45)},get createExponent(){return p(43)},get createPrefixPlus(){return E(40)},get createPrefixMinus(){return E(41)},get createPrefixIncrement(){return E(46)},get createPrefixDecrement(){return E(47)},get createBitwiseNot(){return E(55)},get createLogicalNot(){return E(54)},get createPostfixIncrement(){return v(46)},get createPostfixDecrement(){return v(47)},createImmediatelyInvokedFunctionExpression:__,createImmediatelyInvokedArrowFunction:M5,createVoidZero:b3,createExportDefault:Uw,createExternalModuleExport:j9,createTypeCheck:YK,createIsNotTypeCheck:fz,createMethodCall:D_,createGlobalMethodCall:vC,createFunctionBindCall:pD,createFunctionCallCall:qw,createFunctionApplyCall:x_,createArraySliceCall:gte,createArrayConcatCall:bE,createObjectDefinePropertyCall:dF,createObjectGetOwnPropertyDescriptorCall:QK,createReflectGetCall:he,createReflectSetCall:Re,createPropertyDescriptor:Nt,createCallBinding:_r,createAssignmentTargetWrapper:ma,inlineExpressions:D0,getInternalName:Gs,getLocalName:y4,getExportName:Zp,getDeclarationName:f6,getNamespaceMemberName:y3,getExternalModuleOrNamespaceExportName:Vd,restoreOuterExpressions:Iu,restoreEnclosingLabel:Wr,createUseStrictPrologue:Zw,copyPrologue:gD,copyStandardPrologue:Yw,copyCustomPrologue:pz,ensureUseStrict:Ete,liftToBlock:gz,mergeLexicalEnvironment:ED,replaceModifiers:Ez,replaceDecoratorsAndModifiers:k4,replacePropertyName:Qw};return L(Hke,N=>N(Y)),Y;function oe(N,W){if(N===void 0||N===Dt)N=[];else if(E2(N)){if(W===void 0||N.hasTrailingComma===W)return N.transformFlags===void 0&&VYe(N),H.attachNodeArrayDebugInfo(N),N;const dt=N.slice();return dt.pos=N.pos,dt.end=N.end,dt.hasTrailingComma=W,dt.transformFlags=N.transformFlags,H.attachNodeArrayDebugInfo(dt),dt}const ee=N.length,ke=ee>=1&&ee<=4?N.slice():N;return ke.pos=-1,ke.end=-1,ke.hasTrailingComma=!!W,ke.transformFlags=0,VYe(ke),H.attachNodeArrayDebugInfo(ke),ke}function se(N){return u.createBaseNode(N)}function ge(N){const W=se(N);return W.symbol=void 0,W.localSymbol=void 0,W}function ae(N,W){return N!==W&&(N.typeArguments=W.typeArguments),s(N,W)}function Ce(N,W=0){const ee=ge(9);return ee.text=typeof N=="number"?N+"":N,ee.numericLiteralFlags=W,W&384&&(ee.transformFlags|=1024),ee}function ne(N){const W=Yt(10);return W.text=typeof N=="string"?N:R2(N)+"n",W.transformFlags|=32,W}function ve(N,W){const ee=ge(11);return ee.text=N,ee.singleQuote=W,ee}function Se(N,W,ee){const ke=ve(N,W);return ke.hasExtendedUnicodeEscape=ee,ee&&(ke.transformFlags|=1024),ke}function Ne(N){const W=ve(U4(N),void 0);return W.textSourceNode=N,W}function pe(N){const W=Yt(14);return W.text=N,W}function fe(N,W){switch(N){case 9:return Ce(W,0);case 10:return ne(W);case 11:return Se(W,void 0);case 12:return L5(W,!1);case 13:return L5(W,!0);case 14:return pe(W);case 15:return fd(N,W,void 0,0)}}function xe(N){const W=u.createBaseIdentifierNode(80);return W.escapedText=N,W.jsDoc=void 0,W.flowNode=void 0,W.symbol=void 0,W}function Be(N,W,ee,ke){const dt=xe(Sl(N));return vV(dt,{flags:W,id:AZ,prefix:ee,suffix:ke}),AZ++,dt}function We(N,W,ee){W===void 0&&N&&(W=m2(N)),W===80&&(W=void 0);const ke=xe(Sl(N));return ee&&(ke.flags|=256),ke.escapedText==="await"&&(ke.transformFlags|=67108864),ke.flags&256&&(ke.transformFlags|=1024),ke}function Ae(N,W,ee,ke){let dt=1;W&&(dt|=8);const Si=Be("",dt,ee,ke);return N&&N(Si),Si}function De(N){let W=2;return N&&(W|=8),Be("",W,void 0,void 0)}function He(N,W=0,ee,ke){return H.assert(!(W&7),"Argument out of range: flags"),H.assert((W&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),Be(N,3|W,ee,ke)}function Je(N,W=0,ee,ke){H.assert(!(W&7),"Argument out of range: flags");const dt=N?$_(N)?Vv(!1,ee,N,ke,fu):`generated@${Us(N)}`:"";(ee||ke)&&(W|=16);const Si=Be(dt,4|W,ee,ke);return Si.original=N,Si}function mt(N){const W=u.createBasePrivateIdentifierNode(81);return W.escapedText=N,W.transformFlags|=16777216,W}function Ye(N){return Ma(N,"#")||H.fail("First character of private identifier must be #: "+N),mt(Sl(N))}function je(N,W,ee,ke){const dt=mt(Sl(N));return vV(dt,{flags:W,id:AZ,prefix:ee,suffix:ke}),AZ++,dt}function Ke(N,W,ee){N&&!Ma(N,"#")&&H.fail("First character of private identifier must be #: "+N);const ke=8|(N?3:1);return je(N??"",ke,W,ee)}function Gt(N,W,ee){const ke=$_(N)?Vv(!0,W,N,ee,fu):`#generated@${Us(N)}`,Si=je(ke,4|(W||ee?16:0),W,ee);return Si.original=N,Si}function Yt(N){return u.createBaseTokenNode(N)}function Ie(N){H.assert(N>=0&&N<=165,"Invalid token"),H.assert(N<=15||N>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),H.assert(N<=9||N>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),H.assert(N!==80,"Invalid token. Use 'createIdentifier' to create identifiers");const W=Yt(N);let ee=0;switch(N){case 134:ee=384;break;case 160:ee=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:ee=1;break;case 108:ee=134218752,W.flowNode=void 0;break;case 126:ee=1024;break;case 129:ee=16777216;break;case 110:ee=16384,W.flowNode=void 0;break}return ee&&(W.transformFlags|=ee),W}function st(){return Ie(108)}function Bt(){return Ie(110)}function It(){return Ie(106)}function ei(){return Ie(112)}function ft(){return Ie(97)}function Ut(N){return Ie(N)}function Ni(N){const W=[];return N&32&&W.push(Ut(95)),N&128&&W.push(Ut(138)),N&2048&&W.push(Ut(90)),N&4096&&W.push(Ut(87)),N&1&&W.push(Ut(125)),N&2&&W.push(Ut(123)),N&4&&W.push(Ut(124)),N&64&&W.push(Ut(128)),N&256&&W.push(Ut(126)),N&16&&W.push(Ut(164)),N&8&&W.push(Ut(148)),N&512&&W.push(Ut(129)),N&1024&&W.push(Ut(134)),N&8192&&W.push(Ut(103)),N&16384&&W.push(Ut(147)),W.length?W:void 0}function Vi(N,W){const ee=se(166);return ee.left=N,ee.right=Ic(W),ee.transformFlags|=ou(ee.left)|gV(ee.right),ee.flowNode=void 0,ee}function xn(N,W,ee){return N.left!==W||N.right!==ee?s(Vi(W,ee),N):N}function Jn(N){const W=se(167);return W.expression=d().parenthesizeExpressionOfComputedPropertyName(N),W.transformFlags|=ou(W.expression)|1024|131072,W}function an(N,W){return N.expression!==W?s(Jn(W),N):N}function Pi(N,W,ee,ke){const dt=ge(168);return dt.modifiers=zs(N),dt.name=Ic(W),dt.constraint=ee,dt.default=ke,dt.transformFlags=1,dt.expression=void 0,dt.jsDoc=void 0,dt}function Fi(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.constraint!==ke||N.default!==dt?s(Pi(W,ee,ke,dt),N):N}function Yu(N,W,ee,ke,dt,Si){const au=ge(169);return au.modifiers=zs(N),au.dotDotDotToken=W,au.name=Ic(ee),au.questionToken=ke,au.type=dt,au.initializer=hF(Si),P2(au.name)?au.transformFlags=1:au.transformFlags=Fs(au.modifiers)|ou(au.dotDotDotToken)|Kx(au.name)|ou(au.questionToken)|ou(au.initializer)|(au.questionToken??au.type?1:0)|(au.dotDotDotToken??au.initializer?1024:0)|(iE(au.modifiers)&31?8192:0),au.jsDoc=void 0,au}function oa(N,W,ee,ke,dt,Si,au){return N.modifiers!==W||N.dotDotDotToken!==ee||N.name!==ke||N.questionToken!==dt||N.type!==Si||N.initializer!==au?s(Yu(W,ee,ke,dt,Si,au),N):N}function Fr(N){const W=se(170);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1|8192|33554432,W}function wa(N,W){return N.expression!==W?s(Fr(W),N):N}function bt(N,W,ee,ke){const dt=ge(171);return dt.modifiers=zs(N),dt.name=Ic(W),dt.type=ke,dt.questionToken=ee,dt.transformFlags=1,dt.initializer=void 0,dt.jsDoc=void 0,dt}function jn(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?Ln(bt(W,ee,ke,dt),N):N}function Ln(N,W){return N!==W&&(N.initializer=W.initializer),s(N,W)}function Ai(N,W,ee,ke,dt){const Si=ge(172);Si.modifiers=zs(N),Si.name=Ic(W),Si.questionToken=ee&&Wx(ee)?ee:void 0,Si.exclamationToken=ee&&FV(ee)?ee:void 0,Si.type=ke,Si.initializer=hF(dt);const au=Si.flags&33554432||iE(Si.modifiers)&128;return Si.transformFlags=Fs(Si.modifiers)|Kx(Si.name)|ou(Si.initializer)|(au||Si.questionToken||Si.exclamationToken||Si.type?1:0)|(Ms(Si.name)||iE(Si.modifiers)&256&&Si.initializer?8192:0)|16777216,Si.jsDoc=void 0,Si}function Dn(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.questionToken!==(ke!==void 0&&Wx(ke)?ke:void 0)||N.exclamationToken!==(ke!==void 0&&FV(ke)?ke:void 0)||N.type!==dt||N.initializer!==Si?s(Ai(W,ee,ke,dt,Si),N):N}function Cn(N,W,ee,ke,dt,Si){const au=ge(173);return au.modifiers=zs(N),au.name=Ic(W),au.questionToken=ee,au.typeParameters=zs(ke),au.parameters=zs(dt),au.type=Si,au.transformFlags=1,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.typeArguments=void 0,au}function tu(N,W,ee,ke,dt,Si,au){return N.modifiers!==W||N.name!==ee||N.questionToken!==ke||N.typeParameters!==dt||N.parameters!==Si||N.type!==au?ae(Cn(W,ee,ke,dt,Si,au),N):N}function sa(N,W,ee,ke,dt,Si,au,Ia){const n0=ge(174);if(n0.modifiers=zs(N),n0.asteriskToken=W,n0.name=Ic(ee),n0.questionToken=ke,n0.exclamationToken=void 0,n0.typeParameters=zs(dt),n0.parameters=oe(Si),n0.type=au,n0.body=Ia,!n0.body)n0.transformFlags=1;else{const Xm=iE(n0.modifiers)&1024,p6=!!n0.asteriskToken,g6=Xm&&p6;n0.transformFlags=Fs(n0.modifiers)|ou(n0.asteriskToken)|Kx(n0.name)|ou(n0.questionToken)|Fs(n0.typeParameters)|Fs(n0.parameters)|ou(n0.type)|ou(n0.body)&-67108865|(g6?128:Xm?256:p6?2048:0)|(n0.questionToken||n0.typeParameters||n0.type?1:0)|1024}return n0.typeArguments=void 0,n0.jsDoc=void 0,n0.locals=void 0,n0.nextContainer=void 0,n0.flowNode=void 0,n0.endFlowNode=void 0,n0.returnFlowNode=void 0,n0}function xa(N,W,ee,ke,dt,Si,au,Ia,n0){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.questionToken!==dt||N.typeParameters!==Si||N.parameters!==au||N.type!==Ia||N.body!==n0?aa(sa(W,ee,ke,dt,Si,au,Ia,n0),N):N}function aa(N,W){return N!==W&&(N.exclamationToken=W.exclamationToken),s(N,W)}function Ta(N){const W=ge(175);return W.body=N,W.transformFlags=ou(N)|16777216,W.modifiers=void 0,W.jsDoc=void 0,W.locals=void 0,W.nextContainer=void 0,W.endFlowNode=void 0,W.returnFlowNode=void 0,W}function Qo(N,W){return N.body!==W?bo(Ta(W),N):N}function bo(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function Qe(N,W,ee){const ke=ge(176);return ke.modifiers=zs(N),ke.parameters=oe(W),ke.body=ee,ke.transformFlags=Fs(ke.modifiers)|Fs(ke.parameters)|ou(ke.body)&-67108865|1024,ke.typeParameters=void 0,ke.type=void 0,ke.typeArguments=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.returnFlowNode=void 0,ke}function _t(N,W,ee,ke){return N.modifiers!==W||N.parameters!==ee||N.body!==ke?Mt(Qe(W,ee,ke),N):N}function Mt(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function qt(N,W,ee,ke,dt){const Si=ge(177);return Si.modifiers=zs(N),Si.name=Ic(W),Si.parameters=oe(ee),Si.type=ke,Si.body=dt,Si.body?Si.transformFlags=Fs(Si.modifiers)|Kx(Si.name)|Fs(Si.parameters)|ou(Si.type)|ou(Si.body)&-67108865|(Si.type?1:0):Si.transformFlags=1,Si.typeArguments=void 0,Si.typeParameters=void 0,Si.jsDoc=void 0,Si.locals=void 0,Si.nextContainer=void 0,Si.flowNode=void 0,Si.endFlowNode=void 0,Si.returnFlowNode=void 0,Si}function Xt(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.type!==dt||N.body!==Si?Pe(qt(W,ee,ke,dt,Si),N):N}function Pe(N,W){return N!==W&&(N.typeParameters=W.typeParameters),ae(N,W)}function et(N,W,ee,ke){const dt=ge(178);return dt.modifiers=zs(N),dt.name=Ic(W),dt.parameters=oe(ee),dt.body=ke,dt.body?dt.transformFlags=Fs(dt.modifiers)|Kx(dt.name)|Fs(dt.parameters)|ou(dt.body)&-67108865|(dt.type?1:0):dt.transformFlags=1,dt.typeArguments=void 0,dt.typeParameters=void 0,dt.type=void 0,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt.endFlowNode=void 0,dt.returnFlowNode=void 0,dt}function Et(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.parameters!==ke||N.body!==dt?ii(et(W,ee,ke,dt),N):N}function ii(N,W){return N!==W&&(N.typeParameters=W.typeParameters,N.type=W.type),ae(N,W)}function me(N,W,ee){const ke=ge(179);return ke.typeParameters=zs(N),ke.parameters=zs(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function ni(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(me(W,ee,ke),N):N}function xi(N,W,ee){const ke=ge(180);return ke.typeParameters=zs(N),ke.parameters=zs(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function pt(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?ae(xi(W,ee,ke),N):N}function Ot(N,W,ee){const ke=ge(181);return ke.modifiers=zs(N),ke.parameters=zs(W),ke.type=ee,ke.transformFlags=1,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function Ei(N,W,ee,ke){return N.parameters!==ee||N.type!==ke||N.modifiers!==W?ae(Ot(W,ee,ke),N):N}function $i(N,W){const ee=se(204);return ee.type=N,ee.literal=W,ee.transformFlags=1,ee}function Qi(N,W,ee){return N.type!==W||N.literal!==ee?s($i(W,ee),N):N}function on(N){return Ie(N)}function le(N,W,ee){const ke=se(182);return ke.assertsModifier=N,ke.parameterName=Ic(W),ke.type=ee,ke.transformFlags=1,ke}function te(N,W,ee,ke){return N.assertsModifier!==W||N.parameterName!==ee||N.type!==ke?s(le(W,ee,ke),N):N}function we(N,W){const ee=se(183);return ee.typeName=Ic(N),ee.typeArguments=W&&d().parenthesizeTypeArguments(oe(W)),ee.transformFlags=1,ee}function de(N,W,ee){return N.typeName!==W||N.typeArguments!==ee?s(we(W,ee),N):N}function Oe(N,W,ee){const ke=ge(184);return ke.typeParameters=zs(N),ke.parameters=zs(W),ke.type=ee,ke.transformFlags=1,ke.modifiers=void 0,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.typeArguments=void 0,ke}function X(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?it(Oe(W,ee,ke),N):N}function it(N,W){return N!==W&&(N.modifiers=W.modifiers),ae(N,W)}function Ct(...N){return N.length===4?ct(...N):N.length===3?Qt(...N):H.fail("Incorrect number of arguments specified.")}function ct(N,W,ee,ke){const dt=ge(185);return dt.modifiers=zs(N),dt.typeParameters=zs(W),dt.parameters=zs(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.typeArguments=void 0,dt}function Qt(N,W,ee){return ct(void 0,N,W,ee)}function Ti(...N){return N.length===5?Ui(...N):N.length===4?Sn(...N):H.fail("Incorrect number of arguments specified.")}function Ui(N,W,ee,ke,dt){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt?ae(Ct(W,ee,ke,dt),N):N}function Sn(N,W,ee,ke){return Ui(N,N.modifiers,W,ee,ke)}function du(N,W){const ee=se(186);return ee.exprName=N,ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags=1,ee}function Ou(N,W,ee){return N.exprName!==W||N.typeArguments!==ee?s(du(W,ee),N):N}function Er(N){const W=ge(187);return W.members=oe(N),W.transformFlags=1,W}function er(N,W){return N.members!==W?s(Er(W),N):N}function da(N){const W=se(188);return W.elementType=d().parenthesizeNonArrayTypeOfPostfixType(N),W.transformFlags=1,W}function Wu(N,W){return N.elementType!==W?s(da(W),N):N}function Va(N){const W=se(189);return W.elements=oe(d().parenthesizeElementTypesOfTupleType(N)),W.transformFlags=1,W}function wn(N,W){return N.elements!==W?s(Va(W),N):N}function Rr(N,W,ee,ke){const dt=ge(202);return dt.dotDotDotToken=N,dt.name=W,dt.questionToken=ee,dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt}function os(N,W,ee,ke,dt){return N.dotDotDotToken!==W||N.name!==ee||N.questionToken!==ke||N.type!==dt?s(Rr(W,ee,ke,dt),N):N}function wo(N){const W=se(190);return W.type=d().parenthesizeTypeOfOptionalType(N),W.transformFlags=1,W}function Fn(N,W){return N.type!==W?s(wo(W),N):N}function bc(N){const W=se(191);return W.type=N,W.transformFlags=1,W}function Qa(N,W){return N.type!==W?s(bc(W),N):N}function c0(N,W,ee){const ke=se(N);return ke.types=Y.createNodeArray(ee(W)),ke.transformFlags=1,ke}function Ul(N,W,ee){return N.types!==W?s(c0(N.kind,W,ee),N):N}function Tl(N){return c0(192,N,d().parenthesizeConstituentTypesOfUnionType)}function hd(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfUnionType)}function Cl(N){return c0(193,N,d().parenthesizeConstituentTypesOfIntersectionType)}function ho(N,W){return Ul(N,W,d().parenthesizeConstituentTypesOfIntersectionType)}function Ko(N,W,ee,ke){const dt=se(194);return dt.checkType=d().parenthesizeCheckTypeOfConditionalType(N),dt.extendsType=d().parenthesizeExtendsTypeOfConditionalType(W),dt.trueType=ee,dt.falseType=ke,dt.transformFlags=1,dt.locals=void 0,dt.nextContainer=void 0,dt}function nd(N,W,ee,ke,dt){return N.checkType!==W||N.extendsType!==ee||N.trueType!==ke||N.falseType!==dt?s(Ko(W,ee,ke,dt),N):N}function Q0(N){const W=se(195);return W.typeParameter=N,W.transformFlags=1,W}function Wo(N,W){return N.typeParameter!==W?s(Q0(W),N):N}function Nc(N,W){const ee=se(203);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags=1,ee}function $p(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(Nc(W,ee),N):N}function Pc(N,W,ee,ke,dt=!1){const Si=se(205);return Si.argument=N,Si.attributes=W,Si.assertions&&Si.assertions.assertClause&&Si.attributes&&(Si.assertions.assertClause=Si.attributes),Si.qualifier=ee,Si.typeArguments=ke&&d().parenthesizeTypeArguments(ke),Si.isTypeOf=dt,Si.transformFlags=1,Si}function Il(N,W,ee,ke,dt,Si=N.isTypeOf){return N.argument!==W||N.attributes!==ee||N.qualifier!==ke||N.typeArguments!==dt||N.isTypeOf!==Si?s(Pc(W,ee,ke,dt,Si),N):N}function hl(N){const W=se(196);return W.type=N,W.transformFlags=1,W}function Ga(N,W){return N.type!==W?s(hl(W),N):N}function Oi(){const N=se(197);return N.transformFlags=1,N}function fl(N,W){const ee=se(198);return ee.operator=N,ee.type=N===148?d().parenthesizeOperandOfReadonlyTypeOperator(W):d().parenthesizeOperandOfTypeOperator(W),ee.transformFlags=1,ee}function Zc(N,W){return N.type!==W?s(fl(N.operator,W),N):N}function yh(N,W){const ee=se(199);return ee.objectType=d().parenthesizeNonArrayTypeOfPostfixType(N),ee.indexType=W,ee.transformFlags=1,ee}function sf(N,W,ee){return N.objectType!==W||N.indexType!==ee?s(yh(W,ee),N):N}function X0(N,W,ee,ke,dt,Si){const au=ge(200);return au.readonlyToken=N,au.typeParameter=W,au.nameType=ee,au.questionToken=ke,au.type=dt,au.members=Si&&oe(Si),au.transformFlags=1,au.locals=void 0,au.nextContainer=void 0,au}function yc(N,W,ee,ke,dt,Si,au){return N.readonlyToken!==W||N.typeParameter!==ee||N.nameType!==ke||N.questionToken!==dt||N.type!==Si||N.members!==au?s(X0(W,ee,ke,dt,Si,au),N):N}function $(N){const W=se(201);return W.literal=N,W.transformFlags=1,W}function tt(N,W){return N.literal!==W?s($(W),N):N}function vt(N){const W=se(206);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W.transformFlags&32768&&(W.transformFlags|=65664),W}function fi(N,W){return N.elements!==W?s(vt(W),N):N}function fn(N){const W=se(207);return W.elements=oe(N),W.transformFlags|=Fs(W.elements)|1024|524288,W}function Gu(N,W){return N.elements!==W?s(fn(W),N):N}function uu(N,W,ee,ke){const dt=ge(208);return dt.dotDotDotToken=N,dt.propertyName=Ic(W),dt.name=Ic(ee),dt.initializer=hF(ke),dt.transformFlags|=ou(dt.dotDotDotToken)|Kx(dt.propertyName)|Kx(dt.name)|ou(dt.initializer)|(dt.dotDotDotToken?32768:0)|1024,dt.flowNode=void 0,dt}function Nu(N,W,ee,ke,dt){return N.propertyName!==ee||N.dotDotDotToken!==W||N.name!==ke||N.initializer!==dt?s(uu(W,ee,ke,dt),N):N}function Mr(N,W){const ee=se(209),ke=N&&Zu(N),dt=oe(N,ke&&Fd(ke)?!0:void 0);return ee.elements=d().parenthesizeExpressionsOfCommaDelimitedList(dt),ee.multiLine=W,ee.transformFlags|=Fs(ee.elements),ee}function Hu(N,W){return N.elements!==W?s(Mr(W,N.multiLine),N):N}function Ss(N,W){const ee=ge(210);return ee.properties=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.properties),ee.jsDoc=void 0,ee}function nc(N,W){return N.properties!==W?s(Ss(W,N.multiLine),N):N}function ud(N,W,ee){const ke=ge(211);return ke.expression=N,ke.questionDotToken=W,ke.name=ee,ke.transformFlags=ou(ke.expression)|ou(ke.questionDotToken)|(at(ke.name)?gV(ke.name):ou(ke.name)|536870912),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function T0(N,W){const ee=ud(d().parenthesizeLeftSideOfAccess(N,!1),void 0,Ic(W));return KP(N)&&(ee.transformFlags|=384),ee}function rd(N,W,ee){return zU(N)?Bd(N,W,N.questionDotToken,Po(ee,at)):N.expression!==W||N.name!==ee?s(T0(W,ee),N):N}function m0(N,W,ee){const ke=ud(d().parenthesizeLeftSideOfAccess(N,!0),W,Ic(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Bd(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.name!==ke?s(m0(W,ee,ke),N):N}function jh(N,W,ee){const ke=ge(212);return ke.expression=N,ke.questionDotToken=W,ke.argumentExpression=ee,ke.transformFlags|=ou(ke.expression)|ou(ke.questionDotToken)|ou(ke.argumentExpression),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function rh(N,W){const ee=jh(d().parenthesizeLeftSideOfAccess(N,!1),void 0,m6(W));return KP(N)&&(ee.transformFlags|=384),ee}function p4(N,W,ee){return Wse(N)?Ve(N,W,N.questionDotToken,ee):N.expression!==W||N.argumentExpression!==ee?s(rh(W,ee),N):N}function x1(N,W,ee){const ke=jh(d().parenthesizeLeftSideOfAccess(N,!0),W,m6(ee));return ke.flags|=64,ke.transformFlags|=32,ke}function Ve(N,W,ee,ke){return H.assert(!!(N.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),N.expression!==W||N.questionDotToken!==ee||N.argumentExpression!==ke?s(x1(W,ee,ke),N):N}function di(N,W,ee,ke){const dt=ge(213);return dt.expression=N,dt.questionDotToken=W,dt.typeArguments=ee,dt.arguments=ke,dt.transformFlags|=ou(dt.expression)|ou(dt.questionDotToken)|Fs(dt.typeArguments)|Fs(dt.arguments),dt.typeArguments&&(dt.transformFlags|=1),nf(dt.expression)&&(dt.transformFlags|=16384),dt}function Mn(N,W,ee){const ke=di(d().parenthesizeLeftSideOfAccess(N,!1),void 0,zs(W),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ee)));return WP(ke.expression)&&(ke.transformFlags|=8388608),ke}function ka(N,W,ee,ke){return $y(N)?To(N,W,N.questionDotToken,ee,ke):N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(Mn(W,ee,ke),N):N}function Fo(N,W,ee,ke){const dt=di(d().parenthesizeLeftSideOfAccess(N,!0),W,zs(ee),d().parenthesizeExpressionsOfCommaDelimitedList(oe(ke)));return dt.flags|=64,dt.transformFlags|=32,dt}function To(N,W,ee,ke,dt){return H.assert(!!(N.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),N.expression!==W||N.questionDotToken!==ee||N.typeArguments!==ke||N.arguments!==dt?s(Fo(W,ee,ke,dt),N):N}function uc(N,W,ee){const ke=ge(214);return ke.expression=d().parenthesizeExpressionOfNew(N),ke.typeArguments=zs(W),ke.arguments=ee?d().parenthesizeExpressionsOfCommaDelimitedList(ee):void 0,ke.transformFlags|=ou(ke.expression)|Fs(ke.typeArguments)|Fs(ke.arguments)|32,ke.typeArguments&&(ke.transformFlags|=1),ke}function mc(N,W,ee,ke){return N.expression!==W||N.typeArguments!==ee||N.arguments!==ke?s(uc(W,ee,ke),N):N}function bl(N,W,ee){const ke=se(215);return ke.tag=d().parenthesizeLeftSideOfAccess(N,!1),ke.typeArguments=zs(W),ke.template=ee,ke.transformFlags|=ou(ke.tag)|Fs(ke.typeArguments)|ou(ke.template)|1024,ke.typeArguments&&(ke.transformFlags|=1),ele(ke.template)&&(ke.transformFlags|=128),ke}function Ll(N,W,ee,ke){return N.tag!==W||N.typeArguments!==ee||N.template!==ke?s(bl(W,ee,ke),N):N}function kc(N,W){const ee=se(216);return ee.expression=d().parenthesizeOperandOfPrefixUnary(W),ee.type=N,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function ql(N,W,ee){return N.type!==W||N.expression!==ee?s(kc(W,ee),N):N}function Mc(N){const W=se(217);return W.expression=N,W.transformFlags=ou(W.expression),W.jsDoc=void 0,W}function up(N,W){return N.expression!==W?s(Mc(W),N):N}function $m(N,W,ee,ke,dt,Si,au){const Ia=ge(218);Ia.modifiers=zs(N),Ia.asteriskToken=W,Ia.name=Ic(ee),Ia.typeParameters=zs(ke),Ia.parameters=oe(dt),Ia.type=Si,Ia.body=au;const n0=iE(Ia.modifiers)&1024,Xm=!!Ia.asteriskToken,p6=n0&&Xm;return Ia.transformFlags=Fs(Ia.modifiers)|ou(Ia.asteriskToken)|Kx(Ia.name)|Fs(Ia.typeParameters)|Fs(Ia.parameters)|ou(Ia.type)|ou(Ia.body)&-67108865|(p6?128:n0?256:Xm?2048:0)|(Ia.typeParameters||Ia.type?1:0)|4194304,Ia.typeArguments=void 0,Ia.jsDoc=void 0,Ia.locals=void 0,Ia.nextContainer=void 0,Ia.flowNode=void 0,Ia.endFlowNode=void 0,Ia.returnFlowNode=void 0,Ia}function Vh(N,W,ee,ke,dt,Si,au,Ia){return N.name!==ke||N.modifiers!==W||N.asteriskToken!==ee||N.typeParameters!==dt||N.parameters!==Si||N.type!==au||N.body!==Ia?ae($m(W,ee,ke,dt,Si,au,Ia),N):N}function g4(N,W,ee,ke,dt,Si){const au=ge(219);au.modifiers=zs(N),au.typeParameters=zs(W),au.parameters=oe(ee),au.type=ke,au.equalsGreaterThanToken=dt??Ie(39),au.body=d().parenthesizeConciseBodyOfArrowFunction(Si);const Ia=iE(au.modifiers)&1024;return au.transformFlags=Fs(au.modifiers)|Fs(au.typeParameters)|Fs(au.parameters)|ou(au.type)|ou(au.equalsGreaterThanToken)|ou(au.body)&-67108865|(au.typeParameters||au.type?1:0)|(Ia?16640:0)|1024,au.typeArguments=void 0,au.jsDoc=void 0,au.locals=void 0,au.nextContainer=void 0,au.flowNode=void 0,au.endFlowNode=void 0,au.returnFlowNode=void 0,au}function d3(N,W,ee,ke,dt,Si,au){return N.modifiers!==W||N.typeParameters!==ee||N.parameters!==ke||N.type!==dt||N.equalsGreaterThanToken!==Si||N.body!==au?ae(g4(W,ee,ke,dt,Si,au),N):N}function d_(N){const W=se(220);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function C5(N,W){return N.expression!==W?s(d_(W),N):N}function O1(N){const W=se(221);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function h3(N,W){return N.expression!==W?s(O1(W),N):N}function Wf(N){const W=se(222);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression),W}function E4(N,W){return N.expression!==W?s(Wf(W),N):N}function Hh(N){const W=se(223);return W.expression=d().parenthesizeOperandOfPrefixUnary(N),W.transformFlags|=ou(W.expression)|256|128|2097152,W}function Ee(N,W){return N.expression!==W?s(Hh(W),N):N}function wt(N,W){const ee=se(224);return ee.operator=N,ee.operand=d().parenthesizeOperandOfPrefixUnary(W),ee.transformFlags|=ou(ee.operand),(N===46||N===47)&&at(ee.operand)&&!sl(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function _i(N,W){return N.operand!==W?s(wt(N.operator,W),N):N}function vi(N,W){const ee=se(225);return ee.operator=W,ee.operand=d().parenthesizeOperandOfPostfixUnary(N),ee.transformFlags|=ou(ee.operand),at(ee.operand)&&!sl(ee.operand)&&!rD(ee.operand)&&(ee.transformFlags|=268435456),ee}function Q(N,W){return N.operand!==W?s(vi(W,N.operator),N):N}function Me(N,W,ee){const ke=ge(226),dt=_te(W),Si=dt.kind;return ke.left=d().parenthesizeLeftSideOfBinary(Si,N),ke.operatorToken=dt,ke.right=d().parenthesizeRightSideOfBinary(Si,ke.left,ee),ke.transformFlags|=ou(ke.left)|ou(ke.operatorToken)|ou(ke.right),Si===61?ke.transformFlags|=32:Si===64?ys(ke.left)?ke.transformFlags|=5248|Tt(ke.left):vh(ke.left)&&(ke.transformFlags|=5120|Tt(ke.left)):Si===43||Si===68?ke.transformFlags|=512:pP(Si)&&(ke.transformFlags|=16),Si===103&&ea(ke.left)&&(ke.transformFlags|=536870912),ke.jsDoc=void 0,ke}function Tt(N){return HV(N)?65536:0}function yi(N,W,ee,ke){return N.left!==W||N.operatorToken!==ee||N.right!==ke?s(Me(W,ee,ke),N):N}function In(N,W,ee,ke,dt){const Si=se(227);return Si.condition=d().parenthesizeConditionOfConditionalExpression(N),Si.questionToken=W??Ie(58),Si.whenTrue=d().parenthesizeBranchOfConditionalExpression(ee),Si.colonToken=ke??Ie(59),Si.whenFalse=d().parenthesizeBranchOfConditionalExpression(dt),Si.transformFlags|=ou(Si.condition)|ou(Si.questionToken)|ou(Si.whenTrue)|ou(Si.colonToken)|ou(Si.whenFalse),Si}function nr(N,W,ee,ke,dt,Si){return N.condition!==W||N.questionToken!==ee||N.whenTrue!==ke||N.colonToken!==dt||N.whenFalse!==Si?s(In(W,ee,ke,dt,Si),N):N}function ur(N,W){const ee=se(228);return ee.head=N,ee.templateSpans=oe(W),ee.transformFlags|=ou(ee.head)|Fs(ee.templateSpans)|1024,ee}function fa(N,W,ee){return N.head!==W||N.templateSpans!==ee?s(ur(W,ee),N):N}function ss(N,W,ee,ke=0){H.assert(!(ke&-7177),"Unsupported template flags.");let dt;if(ee!==void 0&&ee!==W&&(dt=BLt(N,ee),typeof dt=="object"))return H.fail("Invalid raw text");if(W===void 0){if(dt===void 0)return H.fail("Arguments 'text' and 'rawText' may not both be undefined.");W=dt}else dt!==void 0&&H.assert(W===dt,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return W}function ls(N){let W=1024;return N&&(W|=128),W}function Rl(N,W,ee,ke){const dt=Yt(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ls(dt.templateFlags),dt}function v1(N,W,ee,ke){const dt=ge(N);return dt.text=W,dt.rawText=ee,dt.templateFlags=ke&7176,dt.transformFlags=ls(dt.templateFlags),dt}function fd(N,W,ee,ke){return N===15?v1(N,W,ee,ke):Rl(N,W,ee,ke)}function Um(N,W,ee){return N=ss(16,N,W,ee),fd(16,N,W,ee)}function _s(N,W,ee){return N=ss(16,N,W,ee),fd(17,N,W,ee)}function rp(N,W,ee){return N=ss(16,N,W,ee),fd(18,N,W,ee)}function qm(N,W,ee){return N=ss(16,N,W,ee),v1(15,N,W,ee)}function f3(N,W){H.assert(!N||!!W,"A `YieldExpression` with an asteriskToken must have an expression.");const ee=se(229);return ee.expression=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.asteriskToken=N,ee.transformFlags|=ou(ee.expression)|ou(ee.asteriskToken)|1024|128|1048576,ee}function h_(N,W,ee){return N.expression!==ee||N.asteriskToken!==W?s(f3(W,ee),N):N}function ia(N){const W=se(230);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|1024|32768,W}function Xx(N,W){return N.expression!==W?s(ia(W),N):N}function e6(N,W,ee,ke,dt){const Si=ge(231);return Si.modifiers=zs(N),Si.name=Ic(W),Si.typeParameters=zs(ee),Si.heritageClauses=zs(ke),Si.members=oe(dt),Si.transformFlags|=Fs(Si.modifiers)|Kx(Si.name)|Fs(Si.typeParameters)|Fs(Si.heritageClauses)|Fs(Si.members)|(Si.typeParameters?1:0)|1024,Si.jsDoc=void 0,Si}function bg(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(e6(W,ee,ke,dt,Si),N):N}function lb(){return se(232)}function b5(N,W){const ee=se(233);return ee.expression=d().parenthesizeLeftSideOfAccess(N,!1),ee.typeArguments=W&&d().parenthesizeTypeArguments(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.typeArguments)|1024,ee}function Xe(N,W,ee){return N.expression!==W||N.typeArguments!==ee?s(b5(W,ee),N):N}function xt(N,W){const ee=se(234);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function oi(N,W,ee){return N.expression!==W||N.type!==ee?s(xt(W,ee),N):N}function wi(N){const W=se(235);return W.expression=d().parenthesizeLeftSideOfAccess(N,!1),W.transformFlags|=ou(W.expression)|1,W}function Xi(N,W){return RU(N)?Ar(N,W):N.expression!==W?s(wi(W),N):N}function Rn(N,W){const ee=se(238);return ee.expression=N,ee.type=W,ee.transformFlags|=ou(ee.expression)|ou(ee.type)|1,ee}function tn(N,W,ee){return N.expression!==W||N.type!==ee?s(Rn(W,ee),N):N}function bn(N){const W=se(235);return W.flags|=64,W.expression=d().parenthesizeLeftSideOfAccess(N,!0),W.transformFlags|=ou(W.expression)|1,W}function Ar(N,W){return H.assert(!!(N.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),N.expression!==W?s(bn(W),N):N}function bu(N,W){const ee=se(236);switch(ee.keywordToken=N,ee.name=W,ee.transformFlags|=ou(ee.name),N){case 105:ee.transformFlags|=1024;break;case 102:ee.transformFlags|=32;break;default:return H.assertNever(N)}return ee.flowNode=void 0,ee}function yu(N,W){return N.name!==W?s(bu(N.keywordToken,W),N):N}function _u(N,W){const ee=se(239);return ee.expression=N,ee.literal=W,ee.transformFlags|=ou(ee.expression)|ou(ee.literal)|1024,ee}function la(N,W,ee){return N.expression!==W||N.literal!==ee?s(_u(W,ee),N):N}function p0(){const N=se(240);return N.transformFlags|=1024,N}function o0(N,W){const ee=se(241);return ee.statements=oe(N),ee.multiLine=W,ee.transformFlags|=Fs(ee.statements),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee}function Gf(N,W){return N.statements!==W?s(o0(W,N.multiLine),N):N}function tC(N,W){const ee=se(243);return ee.modifiers=zs(N),ee.declarationList=Wa(W)?uC(W):W,ee.transformFlags|=Fs(ee.modifiers)|ou(ee.declarationList),iE(ee.modifiers)&128&&(ee.transformFlags=1),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function t6(N,W,ee){return N.modifiers!==W||N.declarationList!==ee?s(tC(W,ee),N):N}function cD(){const N=se(242);return N.jsDoc=void 0,N}function i6(N){const W=se(244);return W.expression=d().parenthesizeExpressionOfExpressionStatement(N),W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function Gk(N,W){return N.expression!==W?s(i6(W),N):N}function cb(N,W,ee){const ke=se(245);return ke.expression=N,ke.thenStatement=v_(W),ke.elseStatement=v_(ee),ke.transformFlags|=ou(ke.expression)|ou(ke.thenStatement)|ou(ke.elseStatement),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function Jk(N,W,ee,ke){return N.expression!==W||N.thenStatement!==ee||N.elseStatement!==ke?s(cb(W,ee,ke),N):N}function $k(N,W){const ee=se(246);return ee.statement=v_(N),ee.expression=W,ee.transformFlags|=ou(ee.statement)|ou(ee.expression),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function oz(N,W,ee){return N.statement!==W||N.expression!==ee?s($k(W,ee),N):N}function D9(N,W){const ee=se(247);return ee.expression=N,ee.statement=v_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function ww(N,W,ee){return N.expression!==W||N.statement!==ee?s(D9(W,ee),N):N}function iC(N,W,ee,ke){const dt=se(248);return dt.initializer=N,dt.condition=W,dt.incrementor=ee,dt.statement=v_(ke),dt.transformFlags|=ou(dt.initializer)|ou(dt.condition)|ou(dt.incrementor)|ou(dt.statement),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function x9(N,W,ee,ke,dt){return N.initializer!==W||N.condition!==ee||N.incrementor!==ke||N.statement!==dt?s(iC(W,ee,ke,dt),N):N}function v9(N,W,ee){const ke=se(249);return ke.initializer=N,ke.expression=W,ke.statement=v_(ee),ke.transformFlags|=ou(ke.initializer)|ou(ke.expression)|ou(ke.statement),ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke.flowNode=void 0,ke}function Tw(N,W,ee,ke){return N.initializer!==W||N.expression!==ee||N.statement!==ke?s(v9(W,ee,ke),N):N}function Uk(N,W,ee,ke){const dt=se(250);return dt.awaitModifier=N,dt.initializer=W,dt.expression=d().parenthesizeExpressionForDisallowedComma(ee),dt.statement=v_(ke),dt.transformFlags|=ou(dt.awaitModifier)|ou(dt.initializer)|ou(dt.expression)|ou(dt.statement)|1024,N&&(dt.transformFlags|=128),dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt.flowNode=void 0,dt}function Lw(N,W,ee,ke,dt){return N.awaitModifier!==W||N.initializer!==ee||N.expression!==ke||N.statement!==dt?s(Uk(W,ee,ke,dt),N):N}function C9(N){const W=se(251);return W.label=Ic(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function b9(N,W){return N.label!==W?s(C9(W),N):N}function qk(N){const W=se(252);return W.label=Ic(N),W.transformFlags|=ou(W.label)|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function db(N,W){return N.label!==W?s(qk(W),N):N}function hb(N){const W=se(253);return W.expression=N,W.transformFlags|=ou(W.expression)|128|4194304,W.jsDoc=void 0,W.flowNode=void 0,W}function nC(N,W){return N.expression!==W?s(hb(W),N):N}function y5(N,W){const ee=se(254);return ee.expression=N,ee.statement=v_(W),ee.transformFlags|=ou(ee.expression)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function fb(N,W,ee){return N.expression!==W||N.statement!==ee?s(y5(W,ee),N):N}function mE(N,W){const ee=se(255);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.caseBlock=W,ee.transformFlags|=ou(ee.expression)|ou(ee.caseBlock),ee.jsDoc=void 0,ee.flowNode=void 0,ee.possiblyExhaustive=!1,ee}function Hs(N,W,ee){return N.expression!==W||N.caseBlock!==ee?s(mE(W,ee),N):N}function Zk(N,W){const ee=se(256);return ee.label=Ic(N),ee.statement=v_(W),ee.transformFlags|=ou(ee.label)|ou(ee.statement),ee.jsDoc=void 0,ee.flowNode=void 0,ee}function Nw(N,W,ee){return N.label!==W||N.statement!==ee?s(Zk(W,ee),N):N}function n6(N){const W=se(257);return W.expression=N,W.transformFlags|=ou(W.expression),W.jsDoc=void 0,W.flowNode=void 0,W}function k5(N,W){return N.expression!==W?s(n6(W),N):N}function f_(N,W,ee){const ke=se(258);return ke.tryBlock=N,ke.catchClause=W,ke.finallyBlock=ee,ke.transformFlags|=ou(ke.tryBlock)|ou(ke.catchClause)|ou(ke.finallyBlock),ke.jsDoc=void 0,ke.flowNode=void 0,ke}function _4(N,W,ee,ke){return N.tryBlock!==W||N.catchClause!==ee||N.finallyBlock!==ke?s(f_(W,ee,ke),N):N}function Jf(){const N=se(259);return N.jsDoc=void 0,N.flowNode=void 0,N}function Kh(N,W,ee,ke){const dt=ge(260);return dt.name=Ic(N),dt.exclamationToken=W,dt.type=ee,dt.initializer=hF(ke),dt.transformFlags|=Kx(dt.name)|ou(dt.initializer)|(dt.exclamationToken??dt.type?1:0),dt.jsDoc=void 0,dt}function Em(N,W,ee,ke,dt){return N.name!==W||N.type!==ke||N.exclamationToken!==ee||N.initializer!==dt?s(Kh(W,ee,ke,dt),N):N}function uC(N,W=0){const ee=se(261);return ee.flags|=W&7,ee.declarations=oe(N),ee.transformFlags|=Fs(ee.declarations)|4194304,W&7&&(ee.transformFlags|=263168),W&4&&(ee.transformFlags|=4),ee}function Pw(N,W){return N.declarations!==W?s(uC(W,N.flags),N):N}function y9(N,W,ee,ke,dt,Si,au){const Ia=ge(262);if(Ia.modifiers=zs(N),Ia.asteriskToken=W,Ia.name=Ic(ee),Ia.typeParameters=zs(ke),Ia.parameters=oe(dt),Ia.type=Si,Ia.body=au,!Ia.body||iE(Ia.modifiers)&128)Ia.transformFlags=1;else{const n0=iE(Ia.modifiers)&1024,Xm=!!Ia.asteriskToken,p6=n0&&Xm;Ia.transformFlags=Fs(Ia.modifiers)|ou(Ia.asteriskToken)|Kx(Ia.name)|Fs(Ia.typeParameters)|Fs(Ia.parameters)|ou(Ia.type)|ou(Ia.body)&-67108865|(p6?128:n0?256:Xm?2048:0)|(Ia.typeParameters||Ia.type?1:0)|4194304}return Ia.typeArguments=void 0,Ia.jsDoc=void 0,Ia.locals=void 0,Ia.nextContainer=void 0,Ia.endFlowNode=void 0,Ia.returnFlowNode=void 0,Ia}function Yk(N,W,ee,ke,dt,Si,au,Ia){return N.modifiers!==W||N.asteriskToken!==ee||N.name!==ke||N.typeParameters!==dt||N.parameters!==Si||N.type!==au||N.body!==Ia?mb(y9(W,ee,ke,dt,Si,au,Ia),N):N}function mb(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),ae(N,W)}function rC(N,W,ee,ke,dt){const Si=ge(263);return Si.modifiers=zs(N),Si.name=Ic(W),Si.typeParameters=zs(ee),Si.heritageClauses=zs(ke),Si.members=oe(dt),iE(Si.modifiers)&128?Si.transformFlags=1:(Si.transformFlags|=Fs(Si.modifiers)|Kx(Si.name)|Fs(Si.typeParameters)|Fs(Si.heritageClauses)|Fs(Si.members)|(Si.typeParameters?1:0)|1024,Si.transformFlags&8192&&(Si.transformFlags|=1)),Si.jsDoc=void 0,Si}function Qk(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(rC(W,ee,ke,dt,Si),N):N}function aC(N,W,ee,ke,dt){const Si=ge(264);return Si.modifiers=zs(N),Si.name=Ic(W),Si.typeParameters=zs(ee),Si.heritageClauses=zs(ke),Si.members=oe(dt),Si.transformFlags=1,Si.jsDoc=void 0,Si}function jd(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.heritageClauses!==dt||N.members!==Si?s(aC(W,ee,ke,dt,Si),N):N}function F5(N,W,ee,ke){const dt=ge(265);return dt.modifiers=zs(N),dt.name=Ic(W),dt.typeParameters=zs(ee),dt.type=ke,dt.transformFlags=1,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function A5(N,W,ee,ke,dt){return N.modifiers!==W||N.name!==ee||N.typeParameters!==ke||N.type!==dt?s(F5(W,ee,ke,dt),N):N}function m3(N,W,ee){const ke=ge(266);return ke.modifiers=zs(N),ke.name=Ic(W),ke.members=oe(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.name)|Fs(ke.members)|1,ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function gt(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.members!==ke?s(m3(W,ee,ke),N):N}function n1(N,W,ee,ke=0){const dt=ge(267);return dt.modifiers=zs(N),dt.flags|=ke&2088,dt.name=W,dt.body=ee,iE(dt.modifiers)&128?dt.transformFlags=1:dt.transformFlags|=Fs(dt.modifiers)|ou(dt.name)|ou(dt.body)|1,dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt.locals=void 0,dt.nextContainer=void 0,dt}function D4(N,W,ee,ke){return N.modifiers!==W||N.name!==ee||N.body!==ke?s(n1(W,ee,ke,N.flags),N):N}function kh(N){const W=se(268);return W.statements=oe(N),W.transformFlags|=Fs(W.statements),W.jsDoc=void 0,W}function Mw(N,W){return N.statements!==W?s(kh(W),N):N}function S5(N){const W=se(269);return W.clauses=oe(N),W.transformFlags|=Fs(W.clauses),W.locals=void 0,W.nextContainer=void 0,W}function oC(N,W){return N.clauses!==W?s(S5(W),N):N}function p3(N){const W=ge(270);return W.name=Ic(N),W.transformFlags|=gV(W.name)|1,W.modifiers=void 0,W.jsDoc=void 0,W}function sz(N,W){return N.name!==W?Ks(p3(W),N):N}function Ks(N,W){return N!==W&&(N.modifiers=W.modifiers),s(N,W)}function yg(N,W,ee,ke){const dt=ge(271);return dt.modifiers=zs(N),dt.name=Ic(ee),dt.isTypeOnly=W,dt.moduleReference=ke,dt.transformFlags|=Fs(dt.modifiers)|gV(dt.name)|ou(dt.moduleReference),a_(dt.moduleReference)||(dt.transformFlags|=1),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function Xk(N,W,ee,ke,dt){return N.modifiers!==W||N.isTypeOnly!==ee||N.name!==ke||N.moduleReference!==dt?s(yg(W,ee,ke,dt),N):N}function eF(N,W,ee,ke){const dt=se(272);return dt.modifiers=zs(N),dt.importClause=W,dt.moduleSpecifier=ee,dt.attributes=dt.assertClause=ke,dt.transformFlags|=ou(dt.importClause)|ou(dt.moduleSpecifier),dt.transformFlags&=-67108865,dt.jsDoc=void 0,dt}function pb(N,W,ee,ke,dt){return N.modifiers!==W||N.importClause!==ee||N.moduleSpecifier!==ke||N.attributes!==dt?s(eF(W,ee,ke,dt),N):N}function gb(N,W,ee){const ke=ge(273);return ke.isTypeOnly=N,ke.name=W,ke.namedBindings=ee,ke.transformFlags|=ou(ke.name)|ou(ke.namedBindings),N&&(ke.transformFlags|=1),ke.transformFlags&=-67108865,ke}function ap(N,W,ee,ke){return N.isTypeOnly!==W||N.name!==ee||N.namedBindings!==ke?s(gb(W,ee,ke),N):N}function kg(N,W){const ee=se(300);return ee.elements=oe(N),ee.multiLine=W,ee.token=132,ee.transformFlags|=4,ee}function g3(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(kg(W,ee),N):N}function tF(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function pE(N,W,ee){return N.name!==W||N.value!==ee?s(tF(W,ee),N):N}function iF(N,W){const ee=se(302);return ee.assertClause=N,ee.multiLine=W,ee}function zw(N,W,ee){return N.assertClause!==W||N.multiLine!==ee?s(iF(W,ee),N):N}function qr(N,W,ee){const ke=se(300);return ke.token=ee??118,ke.elements=oe(N),ke.multiLine=W,ke.transformFlags|=4,ke}function sr(N,W,ee){return N.elements!==W||N.multiLine!==ee?s(qr(W,ee,N.token),N):N}function gE(N,W){const ee=se(301);return ee.name=N,ee.value=W,ee.transformFlags|=4,ee}function kf(N,W,ee){return N.name!==W||N.value!==ee?s(gE(W,ee),N):N}function Iw(N){const W=ge(274);return W.name=N,W.transformFlags|=ou(W.name),W.transformFlags&=-67108865,W}function B5(N,W){return N.name!==W?s(Iw(W),N):N}function Rw(N){const W=ge(280);return W.name=N,W.transformFlags|=ou(W.name)|32,W.transformFlags&=-67108865,W}function Eb(N,W){return N.name!==W?s(Rw(W),N):N}function rc(N){const W=se(275);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function Fh(N,W){return N.elements!==W?s(rc(W),N):N}function dD(N,W,ee){const ke=ge(276);return ke.isTypeOnly=N,ke.propertyName=W,ke.name=ee,ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke}function m_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(dD(W,ee,ke),N):N}function E3(N,W,ee){const ke=ge(277);return ke.modifiers=zs(N),ke.isExportEquals=W,ke.expression=W?d().parenthesizeRightSideOfBinary(64,void 0,ee):d().parenthesizeExpressionOfExportDefault(ee),ke.transformFlags|=Fs(ke.modifiers)|ou(ke.expression),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function Up(N,W,ee){return N.modifiers!==W||N.expression!==ee?s(E3(W,N.isExportEquals,ee),N):N}function sC(N,W,ee,ke,dt){const Si=ge(278);return Si.modifiers=zs(N),Si.isTypeOnly=W,Si.exportClause=ee,Si.moduleSpecifier=ke,Si.attributes=Si.assertClause=dt,Si.transformFlags|=Fs(Si.modifiers)|ou(Si.exportClause)|ou(Si.moduleSpecifier),Si.transformFlags&=-67108865,Si.jsDoc=void 0,Si}function _3(N,W,ee,ke,dt,Si){return N.modifiers!==W||N.isTypeOnly!==ee||N.exportClause!==ke||N.moduleSpecifier!==dt||N.attributes!==Si?Ow(sC(W,ee,ke,dt,Si),N):N}function Ow(N,W){return N!==W&&N.modifiers===W.modifiers&&(N.modifiers=W.modifiers),s(N,W)}function p_(N){const W=se(279);return W.elements=oe(N),W.transformFlags|=Fs(W.elements),W.transformFlags&=-67108865,W}function jw(N,W){return N.elements!==W?s(p_(W),N):N}function EE(N,W,ee){const ke=se(281);return ke.isTypeOnly=N,ke.propertyName=Ic(W),ke.name=Ic(ee),ke.transformFlags|=ou(ke.propertyName)|ou(ke.name),ke.transformFlags&=-67108865,ke.jsDoc=void 0,ke}function g_(N,W,ee,ke){return N.isTypeOnly!==W||N.propertyName!==ee||N.name!==ke?s(EE(W,ee,ke),N):N}function w5(){const N=ge(282);return N.jsDoc=void 0,N}function Vw(N){const W=se(283);return W.expression=N,W.transformFlags|=ou(W.expression),W.transformFlags&=-67108865,W}function k9(N,W){return N.expression!==W?s(Vw(W),N):N}function lz(N){return se(N)}function F9(N,W,ee=!1){const ke=L0(N,ee?W&&d().parenthesizeNonArrayTypeOfPostfixType(W):W);return ke.postfix=ee,ke}function L0(N,W){const ee=se(N);return ee.type=W,ee}function _b(N,W,ee){return W.type!==ee?s(F9(N,ee,W.postfix),W):W}function A9(N,W,ee){return W.type!==ee?s(L0(N,ee),W):W}function op(N,W){const ee=ge(324);return ee.parameters=zs(N),ee.type=W,ee.transformFlags=Fs(ee.parameters)|(ee.type?1:0),ee.jsDoc=void 0,ee.locals=void 0,ee.nextContainer=void 0,ee.typeArguments=void 0,ee}function lC(N,W,ee){return N.parameters!==W||N.type!==ee?s(op(W,ee),N):N}function S9(N,W=!1){const ee=ge(329);return ee.jsDocPropertyTags=zs(N),ee.isArrayType=W,ee}function cz(N,W,ee){return N.jsDocPropertyTags!==W||N.isArrayType!==ee?s(S9(W,ee),N):N}function nF(N){const W=se(316);return W.type=N,W}function ru(N,W){return N.type!==W?s(nF(W),N):N}function C1(N,W,ee){const ke=ge(330);return ke.typeParameters=zs(N),ke.parameters=oe(W),ke.type=ee,ke.jsDoc=void 0,ke.locals=void 0,ke.nextContainer=void 0,ke}function za(N,W,ee,ke){return N.typeParameters!==W||N.parameters!==ee||N.type!==ke?s(C1(W,ee,ke),N):N}function lf(N){const W=uce(N.kind);return N.tagName.escapedText===Sl(W)?N.tagName:We(W)}function _E(N,W,ee){const ke=se(N);return ke.tagName=W,ke.comment=ee,ke}function sp(N,W,ee){const ke=ge(N);return ke.tagName=W,ke.comment=ee,ke}function Un(N,W,ee,ke){const dt=_E(352,N??We("template"),ke);return dt.constraint=W,dt.typeParameters=oe(ee),dt}function Db(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.constraint!==ee||N.typeParameters!==ke||N.comment!==dt?s(Un(W,ee,ke,dt),N):N}function cC(N,W,ee,ke){const dt=sp(353,N??We("typedef"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Kce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function wd(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(cC(W,ee,ke,dt),N):N}function DE(N,W,ee,ke,dt,Si){const au=sp(348,N??We("param"),Si);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function xE(N,W=lf(N),ee,ke,dt,Si,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Si||N.comment!==au?s(DE(W,ee,ke,dt,Si,au),N):N}function u6(N,W,ee,ke,dt,Si){const au=sp(355,N??We("prop"),Si);return au.typeExpression=ke,au.name=W,au.isNameFirst=!!dt,au.isBracketed=ee,au}function B9(N,W=lf(N),ee,ke,dt,Si,au){return N.tagName!==W||N.name!==ee||N.isBracketed!==ke||N.typeExpression!==dt||N.isNameFirst!==Si||N.comment!==au?s(u6(W,ee,ke,dt,Si,au),N):N}function hD(N,W,ee,ke){const dt=sp(345,N??We("callback"),ke);return dt.typeExpression=W,dt.fullName=ee,dt.name=Kce(ee),dt.locals=void 0,dt.nextContainer=void 0,dt}function dC(N,W=lf(N),ee,ke,dt){return N.tagName!==W||N.typeExpression!==ee||N.fullName!==ke||N.comment!==dt?s(hD(W,ee,ke,dt),N):N}function hC(N,W,ee){const ke=_E(346,N??We("overload"),ee);return ke.typeExpression=W,ke}function D3(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(hC(W,ee,ke),N):N}function E_(N,W,ee){const ke=_E(335,N??We("augments"),ee);return ke.class=W,ke}function uF(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(E_(W,ee,ke),N):N}function fD(N,W,ee){const ke=_E(336,N??We("implements"),ee);return ke.class=W,ke}function r6(N,W,ee){const ke=_E(354,N??We("see"),ee);return ke.name=W,ke}function xb(N,W,ee,ke){return N.tagName!==W||N.name!==ee||N.comment!==ke?s(r6(W,ee,ke),N):N}function w9(N){const W=se(317);return W.name=N,W}function rF(N,W){return N.name!==W?s(w9(W),N):N}function vb(N,W){const ee=se(318);return ee.left=N,ee.right=W,ee.transformFlags|=ou(ee.left)|ou(ee.right),ee}function x4(N,W,ee){return N.left!==W||N.right!==ee?s(vb(W,ee),N):N}function fC(N,W){const ee=se(331);return ee.name=N,ee.text=W,ee}function Fc(N,W,ee){return N.name!==W?s(fC(W,ee),N):N}function md(N,W){const ee=se(332);return ee.name=N,ee.text=W,ee}function T9(N,W,ee){return N.name!==W?s(md(W,ee),N):N}function j1(N,W){const ee=se(333);return ee.name=N,ee.text=W,ee}function Ff(N,W,ee){return N.name!==W?s(j1(W,ee),N):N}function Cb(N,W=lf(N),ee,ke){return N.tagName!==W||N.class!==ee||N.comment!==ke?s(fD(W,ee,ke),N):N}function v4(N,W,ee){return _E(N,W??We(uce(N)),ee)}function mC(N,W,ee=lf(W),ke){return W.tagName!==ee||W.comment!==ke?s(v4(N,ee,ke),W):W}function T5(N,W,ee,ke){const dt=_E(N,W??We(uce(N)),ke);return dt.typeExpression=ee,dt}function u1(N,W,ee=lf(W),ke,dt){return W.tagName!==ee||W.typeExpression!==ke||W.comment!==dt?s(T5(N,ee,ke,dt),W):W}function aF(N,W){return _E(334,N,W)}function lp(N,W,ee){return N.tagName!==W||N.comment!==ee?s(aF(W,ee),N):N}function a6(N,W,ee){const ke=sp(347,N??We(uce(347)),ee);return ke.typeExpression=W,ke.locals=void 0,ke.nextContainer=void 0,ke}function Hw(N,W=lf(N),ee,ke){return N.tagName!==W||N.typeExpression!==ee||N.comment!==ke?s(a6(W,ee,ke),N):N}function j0(N){const W=se(328);return W.text=N,W}function Kw(N,W){return N.text!==W?s(j0(W),N):N}function oF(N,W){const ee=se(327);return ee.comment=N,ee.tags=zs(W),ee}function pC(N,W,ee){return N.comment!==W||N.tags!==ee?s(oF(W,ee),N):N}function L9(N,W,ee){const ke=se(284);return ke.openingElement=N,ke.children=oe(W),ke.closingElement=ee,ke.transformFlags|=ou(ke.openingElement)|Fs(ke.children)|ou(ke.closingElement)|2,ke}function Wh(N,W,ee,ke){return N.openingElement!==W||N.children!==ee||N.closingElement!==ke?s(L9(W,ee,ke),N):N}function x3(N,W,ee){const ke=se(285);return ke.tagName=N,ke.typeArguments=zs(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,ke.typeArguments&&(ke.transformFlags|=1),ke}function mD(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(x3(W,ee,ke),N):N}function bb(N,W,ee){const ke=se(286);return ke.tagName=N,ke.typeArguments=zs(W),ke.attributes=ee,ke.transformFlags|=ou(ke.tagName)|Fs(ke.typeArguments)|ou(ke.attributes)|2,W&&(ke.transformFlags|=1),ke}function _m(N,W,ee,ke){return N.tagName!==W||N.typeArguments!==ee||N.attributes!==ke?s(bb(W,ee,ke),N):N}function N9(N){const W=se(287);return W.tagName=N,W.transformFlags|=ou(W.tagName)|2,W}function o6(N,W){return N.tagName!==W?s(N9(W),N):N}function Zm(N,W,ee){const ke=se(288);return ke.openingFragment=N,ke.children=oe(W),ke.closingFragment=ee,ke.transformFlags|=ou(ke.openingFragment)|Fs(ke.children)|ou(ke.closingFragment)|2,ke}function yb(N,W,ee,ke){return N.openingFragment!==W||N.children!==ee||N.closingFragment!==ke?s(Zm(W,ee,ke),N):N}function L5(N,W){const ee=se(12);return ee.text=N,ee.containsOnlyTriviaWhiteSpaces=!!W,ee.transformFlags|=2,ee}function dz(N,W,ee){return N.text!==W||N.containsOnlyTriviaWhiteSpaces!==ee?s(L5(W,ee),N):N}function P9(){const N=se(289);return N.transformFlags|=2,N}function M9(){const N=se(290);return N.transformFlags|=2,N}function z9(N,W){const ee=ge(291);return ee.name=N,ee.initializer=W,ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|2,ee}function gC(N,W,ee){return N.name!==W||N.initializer!==ee?s(z9(W,ee),N):N}function $f(N){const W=ge(292);return W.properties=oe(N),W.transformFlags|=Fs(W.properties)|2,W}function v3(N,W){return N.properties!==W?s($f(W),N):N}function I9(N){const W=se(293);return W.expression=N,W.transformFlags|=ou(W.expression)|2,W}function R9(N,W){return N.expression!==W?s(I9(W),N):N}function Ws(N,W){const ee=se(294);return ee.dotDotDotToken=N,ee.expression=W,ee.transformFlags|=ou(ee.dotDotDotToken)|ou(ee.expression)|2,ee}function Du(N,W){return N.expression!==W?s(Ws(N.dotDotDotToken,W),N):N}function Dm(N,W){const ee=se(295);return ee.namespace=N,ee.name=W,ee.transformFlags|=ou(ee.namespace)|ou(ee.name)|2,ee}function cf(N,W,ee){return N.namespace!==W||N.name!==ee?s(Dm(W,ee),N):N}function kb(N,W){const ee=se(296);return ee.expression=d().parenthesizeExpressionForDisallowedComma(N),ee.statements=oe(W),ee.transformFlags|=ou(ee.expression)|Fs(ee.statements),ee.jsDoc=void 0,ee}function Ww(N,W,ee){return N.expression!==W||N.statements!==ee?s(kb(W,ee),N):N}function EC(N){const W=se(297);return W.statements=oe(N),W.transformFlags=Fs(W.statements),W}function Fb(N,W){return N.statements!==W?s(EC(W),N):N}function s6(N,W){const ee=se(298);switch(ee.token=N,ee.types=oe(W),ee.transformFlags|=Fs(ee.types),N){case 96:ee.transformFlags|=1024;break;case 119:ee.transformFlags|=1;break;default:return H.assertNever(N)}return ee}function Ym(N,W){return N.types!==W?s(s6(N.token,W),N):N}function cp(N,W){const ee=se(299);return ee.variableDeclaration=V9(N),ee.block=W,ee.transformFlags|=ou(ee.variableDeclaration)|ou(ee.block)|(N?0:64),ee.locals=void 0,ee.nextContainer=void 0,ee}function l6(N,W,ee){return N.variableDeclaration!==W||N.block!==ee?s(cp(W,ee),N):N}function qp(N,W){const ee=ge(303);return ee.name=Ic(N),ee.initializer=d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=Kx(ee.name)|ou(ee.initializer),ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function dp(N,W,ee){return N.name!==W||N.initializer!==ee?N5(qp(W,ee),N):N}function N5(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken),s(N,W)}function Ab(N,W){const ee=ge(304);return ee.name=Ic(N),ee.objectAssignmentInitializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=gV(ee.name)|ou(ee.objectAssignmentInitializer)|1024,ee.equalsToken=void 0,ee.modifiers=void 0,ee.questionToken=void 0,ee.exclamationToken=void 0,ee.jsDoc=void 0,ee}function zc(N,W,ee){return N.name!==W||N.objectAssignmentInitializer!==ee?hz(Ab(W,ee),N):N}function hz(N,W){return N!==W&&(N.modifiers=W.modifiers,N.questionToken=W.questionToken,N.exclamationToken=W.exclamationToken,N.equalsToken=W.equalsToken),s(N,W)}function C4(N){const W=ge(305);return W.expression=d().parenthesizeExpressionForDisallowedComma(N),W.transformFlags|=ou(W.expression)|128|65536,W.jsDoc=void 0,W}function Gw(N,W){return N.expression!==W?s(C4(W),N):N}function V1(N,W){const ee=ge(306);return ee.name=Ic(N),ee.initializer=W&&d().parenthesizeExpressionForDisallowedComma(W),ee.transformFlags|=ou(ee.name)|ou(ee.initializer)|1,ee.jsDoc=void 0,ee}function _C(N,W,ee){return N.name!==W||N.initializer!==ee?s(V1(W,ee),N):N}function Sb(N,W,ee){const ke=u.createBaseSourceFileNode(312);return ke.statements=oe(N),ke.endOfFileToken=W,ke.flags|=ee,ke.text="",ke.fileName="",ke.path="",ke.resolvedPath="",ke.originalFileName="",ke.languageVersion=0,ke.languageVariant=0,ke.scriptKind=0,ke.isDeclarationFile=!1,ke.hasNoDefaultLib=!1,ke.transformFlags|=Fs(ke.statements)|ou(ke.endOfFileToken),ke.locals=void 0,ke.nextContainer=void 0,ke.endFlowNode=void 0,ke.nodeCount=0,ke.identifierCount=0,ke.symbolCount=0,ke.parseDiagnostics=void 0,ke.bindDiagnostics=void 0,ke.bindSuggestionDiagnostics=void 0,ke.lineMap=void 0,ke.externalModuleIndicator=void 0,ke.setExternalModuleIndicator=void 0,ke.pragmas=void 0,ke.checkJsDirective=void 0,ke.referencedFiles=void 0,ke.typeReferenceDirectives=void 0,ke.libReferenceDirectives=void 0,ke.amdDependencies=void 0,ke.commentDirectives=void 0,ke.identifiers=void 0,ke.packageJsonLocations=void 0,ke.packageJsonScope=void 0,ke.imports=void 0,ke.moduleAugmentations=void 0,ke.ambientModuleNames=void 0,ke.classifiableNames=void 0,ke.impliedNodeFormat=void 0,ke}function sF(N){const W=Object.create(N.redirectTarget);return Object.defineProperties(W,{id:{get(){return this.redirectInfo.redirectTarget.id},set(ee){this.redirectInfo.redirectTarget.id=ee}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(ee){this.redirectInfo.redirectTarget.symbol=ee}}}),W.redirectInfo=N,W}function Jw(N){const W=sF(N.redirectInfo);return W.flags|=N.flags&-17,W.fileName=N.fileName,W.path=N.path,W.resolvedPath=N.resolvedPath,W.originalFileName=N.originalFileName,W.packageJsonLocations=N.packageJsonLocations,W.packageJsonScope=N.packageJsonScope,W.emitNode=void 0,W}function b4(N){const W=u.createBaseSourceFileNode(312);W.flags|=N.flags&-17;for(const ee in N)if(!(Eu(W,ee)||!Eu(N,ee))){if(ee==="emitNode"){W.emitNode=void 0;continue}W[ee]=N[ee]}return W}function Ol(N){const W=N.redirectInfo?Jw(N):b4(N);return su(W,N),W}function vE(N,W,ee,ke,dt,Si,au){const Ia=Ol(N);return Ia.statements=oe(W),Ia.isDeclarationFile=ee,Ia.referencedFiles=ke,Ia.typeReferenceDirectives=dt,Ia.hasNoDefaultLib=Si,Ia.libReferenceDirectives=au,Ia.transformFlags=Fs(Ia.statements)|ou(Ia.endOfFileToken),Ia}function c6(N,W,ee=N.isDeclarationFile,ke=N.referencedFiles,dt=N.typeReferenceDirectives,Si=N.hasNoDefaultLib,au=N.libReferenceDirectives){return N.statements!==W||N.isDeclarationFile!==ee||N.referencedFiles!==ke||N.typeReferenceDirectives!==dt||N.hasNoDefaultLib!==Si||N.libReferenceDirectives!==au?s(vE(N,W,ee,ke,dt,Si,au),N):N}function C3(N,W=Dt){const ee=se(313);return ee.prepends=W,ee.sourceFiles=N,ee.syntheticFileReferences=void 0,ee.syntheticTypeReferences=void 0,ee.syntheticLibReferences=void 0,ee.hasNoDefaultLib=void 0,ee}function DC(N,W,ee=Dt){return N.sourceFiles!==W||N.prepends!==ee?s(C3(W,ee),N):N}function $w(N,W,ee){const ke=se(314);return ke.prologues=N,ke.syntheticReferences=W,ke.texts=ee,ke.fileName="",ke.text="",ke.referencedFiles=Dt,ke.libReferenceDirectives=Dt,ke.getLineAndCharacterOfPosition=dt=>s0(ke,dt),ke}function d6(N,W){const ee=se(N);return ee.data=W,ee}function O(N){return d6(307,N)}function be(N,W){const ee=d6(308,N);return ee.texts=W,ee}function Ht(N,W){return d6(W?310:309,N)}function ji(N){const W=se(311);return W.data=N.data,W.section=N,W}function Fu(){const N=se(315);return N.javascriptText="",N.declarationText="",N}function $r(N,W=!1,ee){const ke=se(237);return ke.type=N,ke.isSpread=W,ke.tupleNameSource=ee,ke}function kr(N){const W=se(358);return W._children=N,W}function _a(N){const W=se(359);return W.original=N,Pt(W,N),W}function Ao(N,W){const ee=se(360);return ee.expression=N,ee.original=W,ee.transformFlags|=ou(ee.expression)|1,Pt(ee,W),ee}function Af(N,W){return N.expression!==W?s(Ao(W,N.original),N):N}function Uf(N){if(cl(N)&&!IN(N)&&!N.original&&!N.emitNode&&!N.id){if(qP(N))return N.elements;if(eu(N)&&iFe(N.operatorToken))return[N.left,N.right]}return N}function Sr(N){const W=se(361);return W.elements=oe(R0(N,Uf)),W.transformFlags|=Fs(W.elements),W}function CE(N,W){return N.elements!==W?s(Sr(W),N):N}function gn(N,W){const ee=se(362);return ee.expression=N,ee.thisArg=W,ee.transformFlags|=ou(ee.expression)|ou(ee.thisArg),ee}function h6(N,W,ee){return N.expression!==W||N.thisArg!==ee?s(gn(W,ee),N):N}function P5(N){const W=xe(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),vV(W,{...N.emitNode.autoGenerate}),W}function lF(N){const W=xe(N.escapedText);W.flags|=N.flags&-17,W.jsDoc=N.jsDoc,W.flowNode=N.flowNode,W.symbol=N.symbol,W.transformFlags=N.transformFlags,su(W,N);const ee=gk(N);return ee&&l5(W,ee),W}function xC(N){const W=mt(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),vV(W,{...N.emitNode.autoGenerate}),W}function O9(N){const W=mt(N.escapedText);return W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N),W}function cF(N){if(N===void 0)return N;if(ca(N))return Ol(N);if(sl(N))return P5(N);if(at(N))return lF(N);if(Uy(N))return xC(N);if(ea(N))return O9(N);const W=JO(N.kind)?u.createBaseNode(N.kind):u.createBaseTokenNode(N.kind);W.flags|=N.flags&-17,W.transformFlags=N.transformFlags,su(W,N);for(const ee in N)Eu(W,ee)||!Eu(N,ee)||(W[ee]=N[ee]);return W}function __(N,W,ee){return Mn($m(void 0,void 0,void 0,void 0,W?[W]:[],void 0,o0(N,!0)),void 0,ee?[ee]:[])}function M5(N,W,ee){return Mn(g4(void 0,void 0,W?[W]:[],void 0,void 0,o0(N,!0)),void 0,ee?[ee]:[])}function b3(){return Wf(Ce("0"))}function Uw(N){return E3(void 0,!1,N)}function j9(N){return sC(void 0,!1,p_([EE(!1,void 0,N)]))}function YK(N,W){return W==="null"?Y.createStrictEquality(N,It()):W==="undefined"?Y.createStrictEquality(N,b3()):Y.createStrictEquality(O1(N),Se(W))}function fz(N,W){return W==="null"?Y.createStrictInequality(N,It()):W==="undefined"?Y.createStrictInequality(N,b3()):Y.createStrictInequality(O1(N),Se(W))}function D_(N,W,ee){return $y(N)?Fo(m0(N,void 0,W),void 0,void 0,ee):Mn(T0(N,W),void 0,ee)}function pD(N,W,ee){return D_(N,"bind",[W,...ee])}function qw(N,W,ee){return D_(N,"call",[W,...ee])}function x_(N,W,ee){return D_(N,"apply",[W,ee])}function vC(N,W,ee){return D_(We(N),W,ee)}function gte(N,W){return D_(N,"slice",W===void 0?[]:[m6(W)])}function bE(N,W){return D_(N,"concat",W)}function dF(N,W,ee){return vC("Object","defineProperty",[N,m6(W),ee])}function QK(N,W){return vC("Object","getOwnPropertyDescriptor",[N,m6(W)])}function he(N,W,ee){return vC("Reflect","get",ee?[N,W,ee]:[N,W])}function Re(N,W,ee,ke){return vC("Reflect","set",ke?[N,W,ee,ke]:[N,W,ee])}function nt(N,W,ee){return ee?(N.push(qp(W,ee)),!0):!1}function Nt(N,W){const ee=[];nt(ee,"enumerable",m6(N.enumerable)),nt(ee,"configurable",m6(N.configurable));let ke=nt(ee,"writable",m6(N.writable));ke=nt(ee,"value",N.value)||ke;let dt=nt(ee,"get",N.get);return dt=nt(ee,"set",N.set)||dt,H.assert(!(ke&&dt),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ss(ee,!W)}function Ci(N,W){switch(N.kind){case 217:return up(N,W);case 216:return ql(N,N.type,W);case 234:return oi(N,W,N.type);case 238:return tn(N,W,N.type);case 235:return Xi(N,W);case 360:return Af(N,W)}}function en(N){return Cf(N)&&cl(N)&&cl(Nv(N))&&cl(uE(N))&&!Ge(DB(N))&&!Ge(xV(N))}function Iu(N,W,ee=15){return N&&yY(N,ee)&&!en(N)?Ci(N,Iu(N.expression,W)):W}function Wr(N,W,ee){if(!W)return N;const ke=Nw(W,W.label,H2(W.statement)?Wr(N,W.statement):N);return ee&&ee(W),ke}function Pr(N,W){const ee=l0(N);switch(ee.kind){case 80:return W;case 110:case 9:case 10:case 11:return!1;case 209:return ee.elements.length!==0;case 210:return ee.properties.length>0;default:return!0}}function _r(N,W,ee,ke=!1){const dt=vc(N,15);let Si,au;return nf(dt)?(Si=Bt(),au=dt):KP(dt)?(Si=Bt(),au=ee!==void 0&&ee<2?Pt(We("_super"),dt):dt):bs(dt)&8192?(Si=b3(),au=d().parenthesizeLeftSideOfAccess(dt,!1)):Ru(dt)?Pr(dt.expression,ke)?(Si=Ae(W),au=T0(Pt(Y.createAssignment(Si,dt.expression),dt.expression),dt.name),Pt(au,dt)):(Si=dt.expression,au=dt):q0(dt)?Pr(dt.expression,ke)?(Si=Ae(W),au=rh(Pt(Y.createAssignment(Si,dt.expression),dt.expression),dt.argumentExpression),Pt(au,dt)):(Si=dt.expression,au=dt):(Si=b3(),au=d().parenthesizeLeftSideOfAccess(N,!1)),{target:au,thisArg:Si}}function ma(N,W){return T0(Mc(Ss([et(void 0,"value",[Yu(void 0,void 0,N,void 0,void 0,void 0)],o0([i6(W)]))])),"value")}function D0(N){return N.length>10?Sr(N):nn(N,Y.createComma)}function Zs(N,W,ee,ke=0,dt){const Si=dt?N&&NU(N):Ya(N);if(Si&&at(Si)&&!sl(Si)){const au=ks(Pt(cF(Si),Si),Si.parent);return ke|=bs(Si),ee||(ke|=96),W||(ke|=3072),ke&&Yn(au,ke),au}return Je(N)}function Gs(N,W,ee){return Zs(N,W,ee,98304)}function y4(N,W,ee,ke){return Zs(N,W,ee,32768,ke)}function Zp(N,W,ee){return Zs(N,W,ee,16384)}function f6(N,W,ee){return Zs(N,W,ee)}function y3(N,W,ee,ke){const dt=T0(N,cl(W)?W:cF(W));Pt(dt,W);let Si=0;return ke||(Si|=96),ee||(Si|=3072),Si&&Yn(dt,Si),dt}function Vd(N,W,ee,ke){return N&&Qu(W,32)?y3(N,Zs(W),ee,ke):Zp(W,ee,ke)}function gD(N,W,ee,ke){const dt=Yw(N,W,0,ee);return pz(N,W,dt,ke)}function mz(N){return rs(N.expression)&&N.expression.text==="use strict"}function Zw(){return bh(i6(Se("use strict")))}function Yw(N,W,ee=0,ke){H.assert(W.length===0,"Prologue directives should be at the first statement in the target statements array");let dt=!1;const Si=N.length;for(;eeIa&&Xm.splice(dt,0,...W.slice(Ia,n0)),Ia>au&&Xm.splice(ke,0,...W.slice(au,Ia)),au>Si&&Xm.splice(ee,0,...W.slice(Si,au)),Si>0)if(ee===0)Xm.splice(0,0,...W.slice(0,Si));else{const p6=new Map;for(let g6=0;g6=0;g6--){const CC=W[g6];p6.has(CC.expression.text)||Xm.unshift(CC)}}return E2(N)?Pt(oe(Xm,N.hasTrailingComma),N):N}function Ez(N,W){let ee;return typeof W=="number"?ee=Ni(W):ee=W,wl(N)?Fi(N,ee,N.name,N.constraint,N.default):io(N)?oa(N,ee,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):GP(N)?Ui(N,ee,N.typeParameters,N.parameters,N.type):zm(N)?jn(N,ee,N.name,N.questionToken,N.type):ko(N)?Dn(N,ee,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):u3(N)?tu(N,ee,N.name,N.questionToken,N.typeParameters,N.parameters,N.type):hc(N)?xa(N,ee,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):fc(N)?_t(N,ee,N.parameters,N.body):Im(N)?Xt(N,ee,N.name,N.parameters,N.type,N.body):jf(N)?Et(N,ee,N.name,N.parameters,N.body):Ek(N)?Ei(N,ee,N.parameters,N.type):w0(N)?Vh(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):Z0(N)?d3(N,ee,N.typeParameters,N.parameters,N.type,N.equalsGreaterThanToken,N.body):e1(N)?bg(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Jl(N)?t6(N,ee,N.declarationList):td(N)?Yk(N,ee,N.asteriskToken,N.name,N.typeParameters,N.parameters,N.type,N.body):Jc(N)?Qk(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Ch(N)?jd(N,ee,N.name,N.typeParameters,N.heritageClauses,N.members):Vp(N)?A5(N,ee,N.name,N.typeParameters,N.type):Rv(N)?gt(N,ee,N.name,N.members):xc(N)?D4(N,ee,N.name,N.body):_1(N)?Xk(N,ee,N.isTypeOnly,N.name,N.moduleReference):Sd(N)?pb(N,ee,N.importClause,N.moduleSpecifier,N.attributes):ic(N)?Up(N,ee,N.expression):$c(N)?_3(N,ee,N.isTypeOnly,N.exportClause,N.moduleSpecifier,N.attributes):H.assertNever(N)}function k4(N,W){return io(N)?oa(N,W,N.dotDotDotToken,N.name,N.questionToken,N.type,N.initializer):ko(N)?Dn(N,W,N.name,N.questionToken??N.exclamationToken,N.type,N.initializer):hc(N)?xa(N,W,N.asteriskToken,N.name,N.questionToken,N.typeParameters,N.parameters,N.type,N.body):Im(N)?Xt(N,W,N.name,N.parameters,N.type,N.body):jf(N)?Et(N,W,N.name,N.parameters,N.body):e1(N)?bg(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):Jc(N)?Qk(N,W,N.name,N.typeParameters,N.heritageClauses,N.members):H.assertNever(N)}function Qw(N,W){switch(N.kind){case 177:return Xt(N,N.modifiers,W,N.parameters,N.type,N.body);case 178:return Et(N,N.modifiers,W,N.parameters,N.body);case 174:return xa(N,N.modifiers,N.asteriskToken,W,N.questionToken,N.typeParameters,N.parameters,N.type,N.body);case 173:return tu(N,N.modifiers,W,N.questionToken,N.typeParameters,N.parameters,N.type);case 172:return Dn(N,N.modifiers,W,N.questionToken??N.exclamationToken,N.type,N.initializer);case 171:return jn(N,N.modifiers,W,N.questionToken,N.type);case 303:return dp(N,W,N.initializer)}}function zs(N){return N?oe(N):void 0}function Ic(N){return typeof N=="string"?We(N):N}function m6(N){return typeof N=="string"?Se(N):typeof N=="number"?Ce(N):typeof N=="boolean"?N?ei():ft():N}function hF(N){return N&&d().parenthesizeExpressionForDisallowedComma(N)}function _te(N){return typeof N=="number"?Ie(N):N}function v_(N){return N&&Fce(N)?Pt(su(cD(),N),N):N}function V9(N){return typeof N=="string"||N&&!ra(N)?Kh(N,void 0,void 0,void 0):N}}function ALt(t,u){return t!==u&&Pt(t,u),t}function SLt(t,u){return t!==u&&(su(t,u),Pt(t,u)),t}function uce(t){switch(t){case 351:return"type";case 349:return"returns";case 350:return"this";case 347:return"enum";case 337:return"author";case 339:return"class";case 340:return"public";case 341:return"private";case 342:return"protected";case 343:return"readonly";case 344:return"override";case 352:return"template";case 353:return"typedef";case 348:return"param";case 355:return"prop";case 345:return"callback";case 346:return"overload";case 335:return"augments";case 336:return"implements";default:return H.fail(`Unsupported kind: ${H.formatSyntaxKind(t)}`)}}function BLt(t,u){switch(s5||(s5=YD(99,!1,0)),t){case 15:s5.setText("`"+u+"`");break;case 16:s5.setText("`"+u+"${");break;case 17:s5.setText("}"+u+"${");break;case 18:s5.setText("}"+u+"`");break}let s=s5.scan();if(s===20&&(s=s5.reScanTemplateToken(!1)),s5.isUnterminated())return s5.setText(void 0),Kke;let d;switch(s){case 15:case 16:case 17:case 18:d=s5.getTokenValue();break}return d===void 0||s5.scan()!==1?(s5.setText(void 0),Kke):(s5.setText(void 0),d)}function Kx(t){return t&&at(t)?gV(t):ou(t)}function gV(t){return ou(t)&-67108865}function wLt(t,u){return u|t.transformFlags&134234112}function ou(t){if(!t)return 0;const u=t.transformFlags&~Vke(t.kind);return gh(t)&&wc(t.name)?wLt(t.name,u):u}function Fs(t){return t?t.transformFlags:0}function VYe(t){let u=0;for(const s of t)u|=ou(s);t.transformFlags=u}function Vke(t){if(t>=182&&t<=205)return-2;switch(t){case 213:case 214:case 209:return-2147450880;case 267:return-1941676032;case 169:return-2147483648;case 219:return-2072174592;case 218:case 262:return-1937940480;case 261:return-2146893824;case 263:case 231:return-2147344384;case 176:return-1937948672;case 172:return-2013249536;case 174:case 177:case 178:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 168:case 171:case 173:case 179:case 180:case 181:case 264:case 265:return-2;case 210:return-2147278848;case 299:return-2147418112;case 206:case 207:return-2147450880;case 216:case 238:case 234:case 360:case 217:case 108:return-2147483648;case 211:case 212:return-2147483648;default:return-2147483648}}function FZ(t){return t.flags|=16,t}function rce(t,u,s){let d,f,p,E,v,b,B,k,T,M;Ua(t)?(p="",E=t,v=t.length,b=u,B=s):(H.assert(u==="js"||u==="dts"),p=(u==="js"?t.javascriptPath:t.declarationPath)||"",b=u==="js"?t.javascriptMapPath:t.declarationMapPath,k=()=>u==="js"?t.javascriptText:t.declarationText,T=()=>u==="js"?t.javascriptMapText:t.declarationMapText,v=()=>k().length,t.buildInfo&&t.buildInfo.bundle&&(H.assert(s===void 0||typeof s=="boolean"),d=s,f=u==="js"?t.buildInfo.bundle.js:t.buildInfo.bundle.dts,M=t.oldFileOfCurrentEmit));const z=M?LLt(H.checkDefined(f)):TLt(f,d,v);return z.fileName=p,z.sourceMapPath=b,z.oldFileOfCurrentEmit=M,k&&T?(Object.defineProperty(z,"text",{get:k}),Object.defineProperty(z,"sourceMapText",{get:T})):(H.assert(!M),z.text=E??"",z.sourceMapText=B),z}function TLt(t,u,s){let d,f,p,E,v,b,B,k;for(const M of t?t.sections:Dt)switch(M.kind){case"prologue":d=Di(d,Pt(q.createUnparsedPrologue(M.data),M));break;case"emitHelpers":f=Di(f,mce().get(M.data));break;case"no-default-lib":k=!0;break;case"reference":p=Di(p,{pos:-1,end:-1,fileName:M.data});break;case"type":E=Di(E,{pos:-1,end:-1,fileName:M.data});break;case"type-import":E=Di(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:99});break;case"type-require":E=Di(E,{pos:-1,end:-1,fileName:M.data,resolutionMode:1});break;case"lib":v=Di(v,{pos:-1,end:-1,fileName:M.data});break;case"prepend":let z;for(const j of M.texts)(!u||j.kind!=="internal")&&(z=Di(z,Pt(q.createUnparsedTextLike(j.data,j.kind==="internal"),j)));b=yn(b,z),B=Di(B,q.createUnparsedPrepend(M.data,z??Dt));break;case"internal":if(u){B||(B=[]);break}case"text":B=Di(B,Pt(q.createUnparsedTextLike(M.data,M.kind==="internal"),M));break;default:H.assertNever(M)}if(!B){const M=q.createUnparsedTextLike(void 0,!1);TP(M,0,typeof s=="function"?s():s),B=[M]}const T=o_.createUnparsedSource(d??Dt,void 0,B);return pB(d,T),pB(B,T),pB(b,T),T.hasNoDefaultLib=k,T.helpers=f,T.referencedFiles=p||Dt,T.typeReferenceDirectives=E,T.libReferenceDirectives=v||Dt,T}function LLt(t){let u,s;for(const f of t.sections)switch(f.kind){case"internal":case"text":u=Di(u,Pt(q.createUnparsedTextLike(f.data,f.kind==="internal"),f));break;case"no-default-lib":case"reference":case"type":case"type-import":case"type-require":case"lib":s=Di(s,Pt(q.createUnparsedSyntheticReference(f),f));break;case"prologue":case"emitHelpers":case"prepend":break;default:H.assertNever(f)}const d=q.createUnparsedSource(Dt,s,u??Dt);return pB(s,d),pB(u,d),d.helpers=Vt(t.sources&&t.sources.helpers,f=>mce().get(f)),d}function HYe(t,u,s,d,f,p){return Ua(t)?oce(void 0,t,s,d,void 0,u,f,p):ace(t,u,s,d,f,p)}function ace(t,u,s,d,f,p,E,v){const b=o_.createInputFiles();b.javascriptPath=u,b.javascriptMapPath=s,b.declarationPath=d,b.declarationMapPath=f,b.buildInfoPath=p;const B=new Map,k=j=>{if(j===void 0)return;let J=B.get(j);return J===void 0&&(J=t(j),B.set(j,J!==void 0?J:!1)),J!==!1?J:void 0},T=j=>{const J=k(j);return J!==void 0?J:`/* Input file ${j} was missing */\r +`};let M;return Object.defineProperties(b,{javascriptText:{get:()=>T(u)},javascriptMapText:{get:()=>k(s)},declarationText:{get:()=>T(H.checkDefined(d))},declarationMapText:{get:()=>k(f)},buildInfo:{get:()=>{if(M===void 0&&p)if(E!=null&&E.getBuildInfo)M=E.getBuildInfo(p,v.configFilePath)??!1;else{const j=k(p);M=j!==void 0?xQ(p,j)??!1:!1}return M||void 0}}}),b}function oce(t,u,s,d,f,p,E,v,b,B,k){const T=o_.createInputFiles();return T.javascriptPath=t,T.javascriptText=u,T.javascriptMapPath=s,T.javascriptMapText=d,T.declarationPath=f,T.declarationText=p,T.declarationMapPath=E,T.declarationMapText=v,T.buildInfoPath=b,T.buildInfo=B,T.oldFileOfCurrentEmit=k,T}function KYe(t,u,s){return new(GYe||(GYe=Xd.getSourceMapSourceConstructor()))(t,u,s)}function su(t,u){if(t.original!==u&&(t.original=u,u)){const s=u.emitNode;s&&(t.emitNode=NLt(s,t.emitNode))}return t}function NLt(t,u){const{flags:s,internalFlags:d,leadingComments:f,trailingComments:p,commentRange:E,sourceMapRange:v,tokenSourceMapRanges:b,constantValue:B,helpers:k,startsOnNewLine:T,snippetElement:M,classThis:z,assignedName:j}=t;if(u||(u={}),s&&(u.flags=s),d&&(u.internalFlags=d&-9),f&&(u.leadingComments=yn(f.slice(),u.leadingComments)),p&&(u.trailingComments=yn(p.slice(),u.trailingComments)),E&&(u.commentRange=E),v&&(u.sourceMapRange=v),b&&(u.tokenSourceMapRanges=PLt(b,u.tokenSourceMapRanges)),B!==void 0&&(u.constantValue=B),k)for(const J of k)u.helpers=t0(u.helpers,J);return T!==void 0&&(u.startsOnNewLine=T),M!==void 0&&(u.snippetElement=M),z&&(u.classThis=z),j&&(u.assignedName=j),u}function PLt(t,u){u||(u=[]);for(const s in t)u[s]=t[s];return u}var AZ,sce,Hke,s5,Kke,EV,WYe,q,GYe,MLt=o({"src/compiler/factory/nodeFactory.ts"(){Bo(),AZ=0,sce=(t=>(t[t.None=0]="None",t[t.NoParenthesizerRules=1]="NoParenthesizerRules",t[t.NoNodeConverters=2]="NoNodeConverters",t[t.NoIndentationOnFreshPropertyAccess=4]="NoIndentationOnFreshPropertyAccess",t[t.NoOriginalNode=8]="NoOriginalNode",t))(sce||{}),Hke=[],Kke={},EV=Rke(),WYe={createBaseSourceFileNode:t=>FZ(EV.createBaseSourceFileNode(t)),createBaseIdentifierNode:t=>FZ(EV.createBaseIdentifierNode(t)),createBasePrivateIdentifierNode:t=>FZ(EV.createBasePrivateIdentifierNode(t)),createBaseTokenNode:t=>FZ(EV.createBaseTokenNode(t)),createBaseNode:t=>FZ(EV.createBaseNode(t))},q=pV(4,WYe)}});function M1(t){if(t.emitNode)H.assert(!(t.emitNode.internalFlags&8),"Invalid attempt to mutate an immutable node.");else{if(IN(t)){if(t.kind===312)return t.emitNode={annotatedNodes:[t]};const u=zn(Za(zn(t)))??H.fail("Could not determine parsed source file.");M1(u).annotatedNodes.push(t)}t.emitNode={}}return t.emitNode}function lce(t){var u,s;const d=(s=(u=zn(Za(t)))==null?void 0:u.emitNode)==null?void 0:s.annotatedNodes;if(d)for(const f of d)f.emitNode=void 0}function _V(t){const u=M1(t);return u.flags|=3072,u.leadingComments=void 0,u.trailingComments=void 0,t}function Yn(t,u){return M1(t).flags=u,t}function n_(t,u){const s=M1(t);return s.flags=s.flags|u,t}function DV(t,u){return M1(t).internalFlags=u,t}function F7(t,u){const s=M1(t);return s.internalFlags=s.internalFlags|u,t}function Nv(t){var u;return((u=t.emitNode)==null?void 0:u.sourceMapRange)??t}function As(t,u){return M1(t).sourceMapRange=u,t}function JYe(t,u){var s,d;return(d=(s=t.emitNode)==null?void 0:s.tokenSourceMapRanges)==null?void 0:d[u]}function Wke(t,u,s){const d=M1(t),f=d.tokenSourceMapRanges??(d.tokenSourceMapRanges=[]);return f[u]=s,t}function OP(t){var u;return(u=t.emitNode)==null?void 0:u.startsOnNewLine}function SZ(t,u){return M1(t).startsOnNewLine=u,t}function uE(t){var u;return((u=t.emitNode)==null?void 0:u.commentRange)??t}function Tc(t,u){return M1(t).commentRange=u,t}function DB(t){var u;return(u=t.emitNode)==null?void 0:u.leadingComments}function Pv(t,u){return M1(t).leadingComments=u,t}function jP(t,u,s,d){return Pv(t,Di(DB(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function xV(t){var u;return(u=t.emitNode)==null?void 0:u.trailingComments}function A7(t,u){return M1(t).trailingComments=u,t}function BZ(t,u,s,d){return A7(t,Di(xV(t),{kind:u,pos:-1,end:-1,hasTrailingNewLine:d,text:s}))}function Gke(t,u){Pv(t,DB(u)),A7(t,xV(u));const s=M1(u);return s.leadingComments=void 0,s.trailingComments=void 0,t}function Jke(t){var u;return(u=t.emitNode)==null?void 0:u.constantValue}function $ke(t,u){const s=M1(t);return s.constantValue=u,t}function S7(t,u){const s=M1(t);return s.helpers=Di(s.helpers,u),t}function iD(t,u){if(Ge(u)){const s=M1(t);for(const d of u)s.helpers=t0(s.helpers,d)}return t}function $Ye(t,u){var s;const d=(s=t.emitNode)==null?void 0:s.helpers;return d?EO(d,u):!1}function wZ(t){var u;return(u=t.emitNode)==null?void 0:u.helpers}function Uke(t,u,s){const d=t.emitNode,f=d&&d.helpers;if(!Ge(f))return;const p=M1(u);let E=0;for(let v=0;v0&&(f[v-E]=b)}E>0&&(f.length-=E)}function cce(t){var u;return(u=t.emitNode)==null?void 0:u.snippetElement}function dce(t,u){const s=M1(t);return s.snippetElement=u,t}function hce(t){return M1(t).internalFlags|=4,t}function qke(t,u){const s=M1(t);return s.typeNode=u,t}function Zke(t){var u;return(u=t.emitNode)==null?void 0:u.typeNode}function l5(t,u){return M1(t).identifierTypeArguments=u,t}function gk(t){var u;return(u=t.emitNode)==null?void 0:u.identifierTypeArguments}function vV(t,u){return M1(t).autoGenerate=u,t}function UYe(t){var u;return(u=t.emitNode)==null?void 0:u.autoGenerate}function Yke(t,u){return M1(t).generatedImportReference=u,t}function Qke(t){var u;return(u=t.emitNode)==null?void 0:u.generatedImportReference}var zLt=o({"src/compiler/factory/emitNode.ts"(){Bo()}});function Xke(t){const u=t.factory,s=zh(()=>DV(u.createTrue(),8)),d=zh(()=>DV(u.createFalse(),8));return{getUnscopedHelperName:f,createDecorateHelper:p,createMetadataHelper:E,createParamHelper:v,createESDecorateHelper:J,createRunInitializersHelper:K,createAssignHelper:Y,createAwaitHelper:oe,createAsyncGeneratorHelper:se,createAsyncDelegatorHelper:ge,createAsyncValuesHelper:ae,createRestHelper:Ce,createAwaiterHelper:ne,createExtendsHelper:ve,createTemplateObjectHelper:Se,createSpreadArrayHelper:Ne,createPropKeyHelper:pe,createSetFunctionNameHelper:fe,createValuesHelper:xe,createReadHelper:Be,createGeneratorHelper:We,createCreateBindingHelper:Ae,createImportStarHelper:De,createImportStarCallbackHelper:He,createImportDefaultHelper:Je,createExportStarHelper:mt,createClassPrivateFieldGetHelper:Ye,createClassPrivateFieldSetHelper:je,createClassPrivateFieldInHelper:Ke,createAddDisposableResourceHelper:Gt,createDisposeResourcesHelper:Yt};function f(Ie){return Yn(u.createIdentifier(Ie),8196)}function p(Ie,st,Bt,It){t.requestEmitHelper(TZ);const ei=[];return ei.push(u.createArrayLiteralExpression(Ie,!0)),ei.push(st),Bt&&(ei.push(Bt),It&&ei.push(It)),u.createCallExpression(f("__decorate"),void 0,ei)}function E(Ie,st){return t.requestEmitHelper(LZ),u.createCallExpression(f("__metadata"),void 0,[u.createStringLiteral(Ie),st])}function v(Ie,st,Bt){return t.requestEmitHelper(NZ),Pt(u.createCallExpression(f("__param"),void 0,[u.createNumericLiteral(st+""),Ie]),Bt)}function b(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral("class")),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function B(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("get",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,st))}function k(Ie){const st=Ie.computed?u.createElementAccessExpression(u.createIdentifier("obj"),Ie.name):u.createPropertyAccessExpression(u.createIdentifier("obj"),Ie.name);return u.createPropertyAssignment("set",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj")),u.createParameterDeclaration(void 0,void 0,u.createIdentifier("value"))],void 0,void 0,u.createBlock([u.createExpressionStatement(u.createAssignment(st,u.createIdentifier("value")))])))}function T(Ie){const st=Ie.computed?Ie.name:at(Ie.name)?u.createStringLiteralFromNode(Ie.name):Ie.name;return u.createPropertyAssignment("has",u.createArrowFunction(void 0,void 0,[u.createParameterDeclaration(void 0,void 0,u.createIdentifier("obj"))],void 0,void 0,u.createBinaryExpression(st,103,u.createIdentifier("obj"))))}function M(Ie,st){const Bt=[];return Bt.push(T(Ie)),st.get&&Bt.push(B(Ie)),st.set&&Bt.push(k(Ie)),u.createObjectLiteralExpression(Bt)}function z(Ie){const st=[u.createPropertyAssignment(u.createIdentifier("kind"),u.createStringLiteral(Ie.kind)),u.createPropertyAssignment(u.createIdentifier("name"),Ie.name.computed?Ie.name.name:u.createStringLiteralFromNode(Ie.name.name)),u.createPropertyAssignment(u.createIdentifier("static"),Ie.static?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("private"),Ie.private?u.createTrue():u.createFalse()),u.createPropertyAssignment(u.createIdentifier("access"),M(Ie.name,Ie.access)),u.createPropertyAssignment(u.createIdentifier("metadata"),Ie.metadata)];return u.createObjectLiteralExpression(st)}function j(Ie){return Ie.kind==="class"?b(Ie):z(Ie)}function J(Ie,st,Bt,It,ei,ft){return t.requestEmitHelper(PZ),u.createCallExpression(f("__esDecorate"),void 0,[Ie??u.createNull(),st??u.createNull(),Bt,j(It),ei,ft])}function K(Ie,st,Bt){return t.requestEmitHelper(MZ),u.createCallExpression(f("__runInitializers"),void 0,Bt?[Ie,st,Bt]:[Ie,st])}function Y(Ie){return js(t.getCompilerOptions())>=2?u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"assign"),void 0,Ie):(t.requestEmitHelper(zZ),u.createCallExpression(f("__assign"),void 0,Ie))}function oe(Ie){return t.requestEmitHelper(B7),u.createCallExpression(f("__await"),void 0,[Ie])}function se(Ie,st){return t.requestEmitHelper(B7),t.requestEmitHelper(IZ),(Ie.emitNode||(Ie.emitNode={})).flags|=1572864,u.createCallExpression(f("__asyncGenerator"),void 0,[st?u.createThis():u.createVoidZero(),u.createIdentifier("arguments"),Ie])}function ge(Ie){return t.requestEmitHelper(B7),t.requestEmitHelper(RZ),u.createCallExpression(f("__asyncDelegator"),void 0,[Ie])}function ae(Ie){return t.requestEmitHelper(OZ),u.createCallExpression(f("__asyncValues"),void 0,[Ie])}function Ce(Ie,st,Bt,It){t.requestEmitHelper(jZ);const ei=[];let ft=0;for(let Ut=0;Ut{let d="";for(let f=0;ft.name))}function VP(t,u){return Mo(t)&&at(t.expression)&&(bs(t.expression)&8192)!==0&&t.expression.escapedText===u}var pce,TZ,LZ,NZ,PZ,MZ,zZ,B7,IZ,RZ,OZ,jZ,VZ,HZ,KZ,WZ,GZ,JZ,$Z,UZ,qZ,xB,ZZ,CV,YZ,QZ,XZ,eY,tY,iY,nY,qYe,bV,yV,ILt=o({"src/compiler/factory/emitHelpers.ts"(){Bo(),pce=(t=>(t.Field="f",t.Method="m",t.Accessor="a",t))(pce||{}),TZ={name:"typescript:decorate",importName:"__decorate",scoped:!1,priority:2,text:` var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 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; - };`},wZ={name:"typescript:metadata",importName:"__metadata",scoped:!1,priority:3,text:` + };`},LZ={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); - };`},TZ={name:"typescript:param",importName:"__param",scoped:!1,priority:4,text:` + };`},NZ={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); } - };`},LZ={name:"typescript:esDecorate",importName:"__esDecorate",scoped:!1,priority:2,text:` + };`},PZ={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"; @@ -94,14 +94,14 @@ ${X.join(` } if (target) Object.defineProperty(target, contextIn.name, descriptor); done = true; - };`},NZ={name:"typescript:runInitializers",importName:"__runInitializers",scoped:!1,priority:2,text:` + };`},MZ={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; - };`},PZ={name:"typescript:assign",importName:"__assign",scoped:!1,priority:1,text:` + };`},zZ={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++) { @@ -113,7 +113,7 @@ ${X.join(` }; return __assign.apply(this, arguments); };`},B7={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); }`},MZ={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[B7],text:` + var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }`},IZ={name:"typescript:asyncGenerator",importName:"__asyncGenerator",scoped:!1,dependencies:[B7],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 = []; @@ -125,19 +125,19 @@ ${X.join(` 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]); } - };`},zZ={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[B7],text:` + };`},RZ={name:"typescript:asyncDelegator",importName:"__asyncDelegator",scoped:!1,dependencies:[B7],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; } - };`},IZ={name:"typescript:asyncValues",importName:"__asyncValues",scoped:!1,text:` + };`},OZ={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); } - };`},RZ={name:"typescript:rest",importName:"__rest",scoped:!1,text:` + };`},jZ={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) @@ -148,7 +148,7 @@ ${X.join(` t[p[i]] = s[p[i]]; } return t; - };`},OZ={name:"typescript:awaiter",importName:"__awaiter",scoped:!1,priority:5,text:` + };`},VZ={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) { @@ -157,7 +157,7 @@ ${X.join(` function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); - };`},jZ={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` + };`},HZ={name:"typescript:extends",importName:"__extends",scoped:!1,priority:0,text:` var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || @@ -173,11 +173,11 @@ ${X.join(` function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; - })();`},VZ={name:"typescript:makeTemplateObject",importName:"__makeTemplateObject",scoped:!1,priority:0,text:` + })();`},KZ={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; - };`},HZ={name:"typescript:read",importName:"__read",scoped:!1,text:` + };`},WZ={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; @@ -193,7 +193,7 @@ ${X.join(` finally { if (e) throw e.error; } } return ar; - };`},KZ={name:"typescript:spreadArray",importName:"__spreadArray",scoped:!1,text:` + };`},GZ={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)) { @@ -202,14 +202,14 @@ ${X.join(` } } return to.concat(ar || Array.prototype.slice.call(from)); - };`},WZ={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` + };`},JZ={name:"typescript:propKey",importName:"__propKey",scoped:!1,text:` var __propKey = (this && this.__propKey) || function (x) { return typeof x === "symbol" ? x : "".concat(x); - };`},GZ={name:"typescript:setFunctionName",importName:"__setFunctionName",scoped:!1,text:` + };`},$Z={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 }); - };`},JZ={name:"typescript:values",importName:"__values",scoped:!1,text:` + };`},UZ={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); @@ -220,7 +220,7 @@ ${X.join(` } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - };`},$Z={name:"typescript:generator",importName:"__generator",scoped:!1,priority:6,text:` + };`},qZ={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; @@ -258,40 +258,40 @@ ${X.join(` }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; - }));`},UZ={name:"typescript:commonjscreatevalue",importName:"__setModuleDefault",scoped:!1,priority:1,text:` + }));`},ZZ={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; - });`},vV={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xB,UZ],priority:2,text:` + });`},CV={name:"typescript:commonjsimportstar",importName:"__importStar",scoped:!1,dependencies:[xB,ZZ],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; - };`},qZ={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` + };`},YZ={name:"typescript:commonjsimportdefault",importName:"__importDefault",scoped:!1,text:` var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; - };`},ZZ={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xB],priority:2,text:` + };`},QZ={name:"typescript:export-star",importName:"__exportStar",scoped:!1,dependencies:[xB],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); - };`},YZ={name:"typescript:classPrivateFieldGet",importName:"__classPrivateFieldGet",scoped:!1,text:` + };`},XZ={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); - };`},QZ={name:"typescript:classPrivateFieldSet",importName:"__classPrivateFieldSet",scoped:!1,text:` + };`},eY={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; - };`},XZ={name:"typescript:classPrivateFieldIn",importName:"__classPrivateFieldIn",scoped:!1,text:` + };`},tY={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); - };`},eY={name:"typescript:addDisposableResource",importName:"__addDisposableResource",scoped:!1,text:` + };`},iY={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."); @@ -311,7 +311,7 @@ ${X.join(` env.stack.push({ async: true }); } return value; - };`},tY={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` + };`},nY={name:"typescript:disposeResources",importName:"__disposeResources",scoped:!1,text:` var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) { return function (env) { function fail(e) { @@ -336,73 +336,73 @@ ${X.join(` })(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) { var e = new Error(message); return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e; - });`},CV={name:"typescript:async-super",scoped:!0,text:dce` - const ${"_superIndex"} = name => super[name];`},bV={name:"typescript:advanced-async-super",scoped:!0,text:dce` + });`},bV={name:"typescript:async-super",scoped:!0,text:fce` + const ${"_superIndex"} = name => super[name];`},yV={name:"typescript:advanced-async-super",scoped:!0,text:fce` 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 Of(t){return t.kind===9}function iY(t){return t.kind===10}function us(t){return t.kind===11}function w7(t){return t.kind===12}function mce(t){return t.kind===14}function T7(t){return t.kind===15}function vB(t){return t.kind===16}function qke(t){return t.kind===17}function pce(t){return t.kind===18}function nY(t){return t.kind===26}function Zke(t){return t.kind===28}function gce(t){return t.kind===40}function Ece(t){return t.kind===41}function yV(t){return t.kind===42}function kV(t){return t.kind===54}function Wx(t){return t.kind===58}function Yke(t){return t.kind===59}function uY(t){return t.kind===29}function Qke(t){return t.kind===39}function at(t){return t.kind===80}function ea(t){return t.kind===81}function L7(t){return t.kind===95}function rY(t){return t.kind===90}function VP(t){return t.kind===134}function Xke(t){return t.kind===131}function _ce(t){return t.kind===135}function eFe(t){return t.kind===148}function N7(t){return t.kind===126}function tFe(t){return t.kind===128}function iFe(t){return t.kind===164}function nFe(t){return t.kind===129}function HP(t){return t.kind===108}function KP(t){return t.kind===102}function uFe(t){return t.kind===84}function vf(t){return t.kind===166}function Ps(t){return t.kind===167}function Bl(t){return t.kind===168}function io(t){return t.kind===169}function g1(t){return t.kind===170}function Mm(t){return t.kind===171}function ko(t){return t.kind===172}function n3(t){return t.kind===173}function dc(t){return t.kind===174}function zl(t){return t.kind===175}function hc(t){return t.kind===176}function zm(t){return t.kind===177}function jf(t){return t.kind===178}function CB(t){return t.kind===179}function FV(t){return t.kind===180}function Ek(t){return t.kind===181}function aY(t){return t.kind===182}function X4(t){return t.kind===183}function u3(t){return t.kind===184}function WP(t){return t.kind===185}function bB(t){return t.kind===186}function fm(t){return t.kind===187}function oY(t){return t.kind===188}function yB(t){return t.kind===189}function GP(t){return t.kind===202}function Dce(t){return t.kind===190}function xce(t){return t.kind===191}function Pv(t){return t.kind===192}function kB(t){return t.kind===193}function FB(t){return t.kind===194}function P7(t){return t.kind===195}function M7(t){return t.kind===196}function sY(t){return t.kind===197}function z7(t){return t.kind===198}function I7(t){return t.kind===199}function JP(t){return t.kind===200}function Mv(t){return t.kind===201}function nD(t){return t.kind===205}function rFe(t){return t.kind===204}function GYe(t){return t.kind===203}function Rp(t){return t.kind===206}function _k(t){return t.kind===207}function js(t){return t.kind===208}function Dh(t){return t.kind===209}function ys(t){return t.kind===210}function Iu(t){return t.kind===211}function U0(t){return t.kind===212}function Mo(t){return t.kind===213}function j2(t){return t.kind===214}function Dk(t){return t.kind===215}function aFe(t){return t.kind===216}function Cf(t){return t.kind===217}function A0(t){return t.kind===218}function q0(t){return t.kind===219}function oFe(t){return t.kind===220}function AB(t){return t.kind===221}function R7(t){return t.kind===222}function Gx(t){return t.kind===223}function zv(t){return t.kind===224}function vce(t){return t.kind===225}function Xn(t){return t.kind===226}function SB(t){return t.kind===227}function lY(t){return t.kind===228}function cY(t){return t.kind===229}function uE(t){return t.kind===230}function Xd(t){return t.kind===231}function Fd(t){return t.kind===232}function c5(t){return t.kind===233}function AV(t){return t.kind===234}function sFe(t){return t.kind===238}function O7(t){return t.kind===235}function $P(t){return t.kind===236}function JYe(t){return t.kind===237}function dY(t){return t.kind===360}function UP(t){return t.kind===361}function qP(t){return t.kind===239}function lFe(t){return t.kind===240}function po(t){return t.kind===241}function Jl(t){return t.kind===243}function Cce(t){return t.kind===242}function Od(t){return t.kind===244}function xk(t){return t.kind===245}function $Ye(t){return t.kind===246}function UYe(t){return t.kind===247}function vk(t){return t.kind===248}function hY(t){return t.kind===249}function SV(t){return t.kind===250}function qYe(t){return t.kind===251}function ZYe(t){return t.kind===252}function Op(t){return t.kind===253}function cFe(t){return t.kind===254}function BV(t){return t.kind===255}function V2(t){return t.kind===256}function bce(t){return t.kind===257}function Ck(t){return t.kind===258}function YYe(t){return t.kind===259}function ua(t){return t.kind===260}function Ad(t){return t.kind===261}function ed(t){return t.kind===262}function Wc(t){return t.kind===263}function xh(t){return t.kind===264}function jp(t){return t.kind===265}function Iv(t){return t.kind===266}function _c(t){return t.kind===267}function rE(t){return t.kind===268}function ZP(t){return t.kind===269}function wV(t){return t.kind===270}function E1(t){return t.kind===271}function Sd(t){return t.kind===272}function n_(t){return t.kind===273}function QYe(t){return t.kind===302}function dFe(t){return t.kind===300}function XYe(t){return t.kind===301}function fY(t){return t.kind===300}function hFe(t){return t.kind===301}function Jx(t){return t.kind===274}function u_(t){return t.kind===280}function uD(t){return t.kind===275}function bf(t){return t.kind===276}function tc(t){return t.kind===277}function Gc(t){return t.kind===278}function ep(t){return t.kind===279}function eh(t){return t.kind===281}function eQe(t){return t.kind===282}function yce(t){return t.kind===359}function j7(t){return t.kind===362}function r_(t){return t.kind===283}function r3(t){return t.kind===284}function bk(t){return t.kind===285}function aE(t){return t.kind===286}function H2(t){return t.kind===287}function K2(t){return t.kind===288}function V7(t){return t.kind===289}function fFe(t){return t.kind===290}function oE(t){return t.kind===291}function W2(t){return t.kind===292}function H7(t){return t.kind===293}function YP(t){return t.kind===294}function gg(t){return t.kind===295}function BB(t){return t.kind===296}function TV(t){return t.kind===297}function mm(t){return t.kind===298}function G2(t){return t.kind===299}function Jc(t){return t.kind===303}function pm(t){return t.kind===304}function d5(t){return t.kind===305}function J2(t){return t.kind===306}function mFe(t){return t.kind===308}function la(t){return t.kind===312}function kce(t){return t.kind===313}function yk(t){return t.kind===314}function kk(t){return t.kind===316}function QP(t){return t.kind===317}function Rv(t){return t.kind===318}function pFe(t){return t.kind===331}function gFe(t){return t.kind===332}function tQe(t){return t.kind===333}function EFe(t){return t.kind===319}function _Fe(t){return t.kind===320}function wB(t){return t.kind===321}function mY(t){return t.kind===322}function Fce(t){return t.kind===323}function TB(t){return t.kind===324}function pY(t){return t.kind===325}function iQe(t){return t.kind===326}function Vp(t){return t.kind===327}function K7(t){return t.kind===329}function Ov(t){return t.kind===330}function LB(t){return t.kind===335}function nQe(t){return t.kind===337}function DFe(t){return t.kind===339}function Ace(t){return t.kind===345}function Sce(t){return t.kind===340}function Bce(t){return t.kind===341}function wce(t){return t.kind===342}function Tce(t){return t.kind===343}function gY(t){return t.kind===344}function NB(t){return t.kind===346}function Lce(t){return t.kind===338}function uQe(t){return t.kind===354}function LV(t){return t.kind===347}function Eg(t){return t.kind===348}function EY(t){return t.kind===349}function xFe(t){return t.kind===350}function XP(t){return t.kind===351}function _g(t){return t.kind===352}function PB(t){return t.kind===353}function rQe(t){return t.kind===334}function vFe(t){return t.kind===355}function Nce(t){return t.kind===336}function _Y(t){return t.kind===357}function aQe(t){return t.kind===356}function MB(t){return t.kind===358}var PLt=o({"src/compiler/factory/nodeTests.ts"(){Bo()}});function NV(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function Fk(t,u,s,d){if(Ps(s))return Pt(t.createElementAccessExpression(u,s.expression),d);{const f=Pt(J_(s)?t.createPropertyAccessExpression(u,s):t.createElementAccessExpression(u,s),s);return i_(f,128),f}}function CFe(t,u){const s=a_.createIdentifier(t||"React");return ks(s,Ua(u)),s}function bFe(t,u,s){if(vf(u)){const d=bFe(t,u.left,s),f=t.createIdentifier(fu(u.right));return f.escapedText=u.right.escapedText,t.createPropertyAccessExpression(d,f)}else return CFe(fu(u),s)}function Pce(t,u,s,d){return u?bFe(t,u,d):t.createPropertyAccessExpression(CFe(s,d),"createElement")}function MLt(t,u,s,d){return u?bFe(t,u,d):t.createPropertyAccessExpression(CFe(s,d),"Fragment")}function yFe(t,u,s,d,f,p){const E=[s];if(d&&E.push(d),f&&f.length>0)if(d||E.push(t.createNull()),f.length>1)for(const v of f)vh(v),E.push(v);else E.push(f[0]);return Pt(t.createCallExpression(u,void 0,E),p)}function kFe(t,u,s,d,f,p,E){const b=[MLt(t,s,d,p),t.createNull()];if(f&&f.length>0)if(f.length>1)for(const B of f)vh(B),b.push(B);else b.push(f[0]);return Pt(t.createCallExpression(Pce(t,u,d,p),void 0,b),E)}function Mce(t,u,s){if(Ad(u)){const d=Pn(u.declarations),f=t.updateVariableDeclaration(d,d.name,void 0,void 0,s);return Pt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(u,[f])),u)}else{const d=Pt(t.createAssignment(u,s),u);return Pt(t.createExpressionStatement(d),u)}}function oQe(t,u,s){return po(u)?t.updateBlock(u,Pt(t.createNodeArray([s,...u.statements]),u.statements)):t.createBlock(t.createNodeArray([u,s]),!0)}function PV(t,u){if(vf(u)){const s=PV(t,u.left),d=ks(Pt(t.cloneNode(u.right),u.right),u.right.parent);return Pt(t.createPropertyAccessExpression(s,d),u)}else return ks(Pt(t.cloneNode(u),u),u.parent)}function zce(t,u){return at(u)?t.createStringLiteralFromNode(u):Ps(u)?ks(Pt(t.cloneNode(u.expression),u.expression),u.expression.parent):ks(Pt(t.cloneNode(u),u),u.parent)}function zLt(t,u,s,d,f){const{firstAccessor:p,getAccessor:E,setAccessor:v}=dk(u,s);if(s===p)return Pt(t.createObjectDefinePropertyCall(d,zce(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:E&&Pt(su(t.createFunctionExpression(p2(E),void 0,void 0,void 0,E.parameters,void 0,E.body),E),E),set:v&&Pt(su(t.createFunctionExpression(p2(v),void 0,void 0,void 0,v.parameters,void 0,v.body),v),v)},!f)),p)}function ILt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),u.initializer),u),u)}function RLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),t.cloneNode(u.name)),u),u)}function OLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),su(Pt(t.createFunctionExpression(p2(u),u.asteriskToken,void 0,void 0,u.parameters,void 0,u.body),u),u)),u),u)}function FFe(t,u,s,d){switch(s.name&&ea(s.name)&&H.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return zLt(t,u.properties,s,d,!!u.multiLine);case 303:return ILt(t,s,d);case 304:return RLt(t,s,d);case 174:return OLt(t,s,d)}}function DY(t,u,s,d,f){const p=u.operator;H.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const E=t.createTempVariable(d);s=t.createAssignment(E,s),Pt(s,u.operand);let v=zv(u)?t.createPrefixUnaryExpression(p,E):t.createPostfixUnaryExpression(E,p);return Pt(v,u),f&&(v=t.createAssignment(f,v),Pt(v,u)),s=t.createComma(s,v),Pt(s,u),vce(u)&&(s=t.createComma(s,E),Pt(s,u)),s}function Ice(t){return(bs(t)&65536)!==0}function rD(t){return(bs(t)&32768)!==0}function xY(t){return(bs(t)&16384)!==0}function sQe(t){return us(t.expression)&&t.expression.text==="use strict"}function Rce(t){for(const u of t)if(Mp(u)){if(sQe(u))return u}else break}function AFe(t){const u=Ki(t);return u!==void 0&&Mp(u)&&sQe(u)}function MV(t){return t.kind===226&&t.operatorToken.kind===28}function eM(t){return MV(t)||UP(t)}function tM(t){return Cf(t)&&Qn(t)&&!!xv(t)}function vY(t){const u=vv(t);return H.assertIsDefined(u),u}function CY(t,u=15){switch(t.kind){case 217:return u&16&&tM(t)?!1:(u&1)!==0;case 216:case 234:case 233:case 238:return(u&2)!==0;case 235:return(u&4)!==0;case 360:return(u&8)!==0}return!1}function Dc(t,u=15){for(;CY(t,u);)t=t.expression;return t}function SFe(t,u=15){let s=t.parent;for(;CY(s,u);)s=s.parent,H.assert(s);return s}function lQe(t){return Dc(t,6)}function vh(t){return FZ(t,!0)}function zV(t){const u=Wl(t,la),s=u&&u.emitNode;return s&&s.externalHelpersModuleName}function BFe(t){const u=Wl(t,la),s=u&&u.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function Oce(t,u,s,d,f,p,E){if(d.importHelpers&&s7(s,d)){let v;const b=m1(d);if(b>=5&&b<=99||s.impliedNodeFormat===99){const B=SZ(s);if(B){const k=[];for(const T of B)if(!T.scoped){const M=T.importName;M&&xa(k,M)}if(Oe(k)){k.sort(dh),v=t.createNamedImports(Vt(k,z=>QU(s,z)?t.createImportSpecifier(!1,void 0,t.createIdentifier(z)):t.createImportSpecifier(!1,t.createIdentifier(z),u.getUnscopedHelperName(z))));const T=Wl(s,la),M=P1(T);M.externalHelpers=!0}}}else{const B=wFe(t,s,d,f,p||E);B&&(v=t.createNamespaceImport(B))}if(v){const B=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,v),t.createStringLiteral(Hx),void 0);return F7(B,2),B}}}function wFe(t,u,s,d,f){if(s.importHelpers&&s7(u,s)){const p=zV(u);if(p)return p;const E=m1(s);let v=(d||e_(s)&&f)&&E!==4&&(E<5||u.impliedNodeFormat===1);if(!v){const b=SZ(u);if(b){for(const B of b)if(!B.scoped){v=!0;break}}}if(v){const b=Wl(u,la),B=P1(b);return B.externalHelpersModuleName||(B.externalHelpersModuleName=t.createUniqueName(Hx))}}}function zB(t,u,s){const d=Q8(u);if(d&&!c7(u)&&!eq(u)){const f=d.name;return al(f)?f:t.createIdentifier(x2(s,f)||fu(f))}if(u.kind===272&&u.importClause||u.kind===278&&u.moduleSpecifier)return t.getGeneratedNameForNode(u)}function W7(t,u,s,d,f,p){const E=Y8(u);if(E&&us(E))return VLt(u,d,t,f,p)||jLt(t,E,s)||t.cloneNode(E)}function jLt(t,u,s){const d=s.renamedDependencies&&s.renamedDependencies.get(u.text);return d?t.createStringLiteral(d):void 0}function IV(t,u,s,d){if(u){if(u.moduleName)return t.createStringLiteral(u.moduleName);if(!u.isDeclarationFile&&y0(d))return t.createStringLiteral(tle(s,u.fileName))}}function VLt(t,u,s,d,f){return IV(s,d.getExternalModuleFileFromDeclaration(t),u,f)}function RV(t){if($O(t))return t.initializer;if(Jc(t)){const u=t.initializer;return ld(u,!0)?u.right:void 0}if(pm(t))return t.objectAssignmentInitializer;if(ld(t,!0))return t.right;if(uE(t))return RV(t.expression)}function $x(t){if($O(t))return t.name;if(Z3(t)){switch(t.kind){case 303:return $x(t.initializer);case 304:return t.name;case 305:return $x(t.expression)}return}return ld(t,!0)?$x(t.left):uE(t)?$x(t.expression):t}function bY(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function jce(t){const u=yY(t);return H.assert(!!u||d5(t),"Invalid property name for binding element."),u}function yY(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return ea(s)?H.failBadSyntaxKind(s):Ps(s)&&cQe(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return ea(s)?H.failBadSyntaxKind(s):Ps(s)&&cQe(s.expression)?s.expression:s}break;case 305:return t.name&&ea(t.name)?H.failBadSyntaxKind(t.name):t.name}const u=$x(t);if(u&&Sc(u))return u}function cQe(t){const u=t.kind;return u===11||u===9}function IB(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function Vce(t){if(t){let u=t;for(;;){if(at(u)||!u.body)return at(u)?u:u.name;u=u.body}}}function dQe(t){const u=t.kind;return u===176||u===178}function TFe(t){const u=t.kind;return u===176||u===177||u===178}function Hce(t){const u=t.kind;return u===303||u===304||u===262||u===176||u===181||u===175||u===282||u===243||u===264||u===265||u===266||u===267||u===271||u===272||u===270||u===278||u===277}function LFe(t){const u=t.kind;return u===175||u===303||u===304||u===282||u===270}function NFe(t){return Wx(t)||kV(t)}function PFe(t){return at(t)||sY(t)}function MFe(t){return eFe(t)||gce(t)||Ece(t)}function zFe(t){return Wx(t)||gce(t)||Ece(t)}function IFe(t){return at(t)||us(t)}function hQe(t){const u=t.kind;return u===106||u===112||u===97||E2(t)||zv(t)}function HLt(t){return t===43}function KLt(t){return t===42||t===44||t===45}function WLt(t){return HLt(t)||KLt(t)}function GLt(t){return t===40||t===41}function JLt(t){return GLt(t)||WLt(t)}function $Lt(t){return t===48||t===49||t===50}function Kce(t){return $Lt(t)||JLt(t)}function ULt(t){return t===30||t===33||t===32||t===34||t===104||t===103}function qLt(t){return ULt(t)||Kce(t)}function ZLt(t){return t===35||t===37||t===36||t===38}function YLt(t){return ZLt(t)||qLt(t)}function QLt(t){return t===51||t===52||t===53}function XLt(t){return QLt(t)||YLt(t)}function eNt(t){return t===56||t===57}function tNt(t){return eNt(t)||XLt(t)}function iNt(t){return t===61||tNt(t)||u5(t)}function nNt(t){return iNt(t)||t===28}function RFe(t){return nNt(t.kind)}function kY(t,u,s,d,f,p){const E=new pQe(t,u,s,d,f,p);return v;function v(b,B){const k={value:void 0},T=[Gce.enter],M=[b],z=[void 0];let j=0;for(;T[j]!==Gce.done;)j=T[j](E,j,T,M,z,k,B);return H.assertEqual(j,0),k.value}}function fQe(t){return t===95||t===90}function OV(t){const u=t.kind;return fQe(u)}function mQe(t){const u=t.kind;return XD(u)&&!fQe(u)}function OFe(t,u){if(u!==void 0)return u.length===0?u:Pt(t.createNodeArray([],u.hasTrailingComma),u)}function jV(t){var u;const s=t.emitNode.autoGenerate;if(s.flags&4){const d=s.id;let f=t,p=f.original;for(;p;){f=p;const E=(u=f.emitNode)==null?void 0:u.autoGenerate;if(J_(f)&&(E===void 0||E.flags&4&&E.id!==d))break;p=f.original}return f}return t}function RB(t,u){return typeof t=="object"?jv(!1,t.prefix,t.node,t.suffix,u):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function uNt(t,u){return typeof t=="string"?t:rNt(t,H.checkDefined(u))}function rNt(t,u){return Uy(t)?u(t).slice(1):al(t)?u(t):ea(t)?t.escapedText.slice(1):fu(t)}function jv(t,u,s,d,f){return u=RB(u,f),d=RB(d,f),s=uNt(s,f),`${t?"#":""}${u}${s}${d}`}function Wce(t,u,s,d){return t.updatePropertyDeclaration(u,s,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage"),void 0,void 0,d)}function jFe(t,u,s,d,f=t.createThis()){return t.createGetAccessorDeclaration(s,d,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")))]))}function VFe(t,u,s,d,f=t.createThis()){return t.createSetAccessorDeclaration(s,d,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function FY(t){let u=t.expression;for(;;){if(u=Dc(u),UP(u)){u=Cr(u.elements);continue}if(MV(u)){u=u.right;continue}if(ld(u,!0)&&al(u.left))return u;break}}function aNt(t){return Cf(t)&&sl(t)&&!t.emitNode}function AY(t,u){if(aNt(t))AY(t.expression,u);else if(MV(t))AY(t.left,u),AY(t.right,u);else if(UP(t))for(const s of t.elements)AY(s,u);else u.push(t)}function HFe(t){const u=[];return AY(t,u),u}function VV(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const u of IB(t)){const s=$x(u);if(s&&KN(s)&&(s.transformFlags&65536||s.transformFlags&128&&VV(s)))return!0}return!1}var Gce,pQe,oNt=o({"src/compiler/factory/utilities.ts"(){Bo(),(t=>{function u(k,T,M,z,j,J,K){const Y=T>0?j[T-1]:void 0;return H.assertEqual(M[T],u),j[T]=k.onEnter(z[T],Y,K),M[T]=v(k,u),T}t.enter=u;function s(k,T,M,z,j,J,K){H.assertEqual(M[T],s),H.assertIsDefined(k.onLeft),M[T]=v(k,s);const Y=k.onLeft(z[T].left,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.left=s;function d(k,T,M,z,j,J,K){return H.assertEqual(M[T],d),H.assertIsDefined(k.onOperator),M[T]=v(k,d),k.onOperator(z[T].operatorToken,j[T],z[T]),T}t.operator=d;function f(k,T,M,z,j,J,K){H.assertEqual(M[T],f),H.assertIsDefined(k.onRight),M[T]=v(k,f);const Y=k.onRight(z[T].right,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.right=f;function p(k,T,M,z,j,J,K){H.assertEqual(M[T],p),M[T]=v(k,p);const Y=k.onExit(z[T],j[T]);if(T>0){if(T--,k.foldState){const oe=M[T]===p?"right":"left";j[T]=k.foldState(j[T],Y,oe)}}else J.value=Y;return T}t.exit=p;function E(k,T,M,z,j,J,K){return H.assertEqual(M[T],E),T}t.done=E;function v(k,T){switch(T){case u:if(k.onLeft)return s;case s:if(k.onOperator)return d;case d:if(k.onRight)return f;case f:return p;case p:return E;case E:return E;default:H.fail("Invalid state")}}t.nextState=v;function b(k,T,M,z,j){return k++,T[k]=u,M[k]=j,z[k]=void 0,k}function B(k,T,M){if(H.shouldAssert(2))for(;k>=0;)H.assert(T[k]!==M,"Circular traversal detected."),k--}})(Gce||(Gce={})),pQe=class{constructor(t,u,s,d,f,p){this.onEnter=t,this.onLeft=u,this.onOperator=s,this.onRight=d,this.onExit=f,this.foldState=p}}}});function Pt(t,u){return u?t_(t,u.pos,u.end):t}function Hp(t){const u=t.kind;return u===168||u===169||u===171||u===172||u===173||u===174||u===176||u===177||u===178||u===181||u===185||u===218||u===219||u===231||u===243||u===262||u===263||u===264||u===265||u===266||u===267||u===271||u===272||u===277||u===278}function Ak(t){const u=t.kind;return u===169||u===172||u===174||u===177||u===178||u===231||u===263}var sNt=o({"src/compiler/factory/utilitiesPublic.ts"(){Bo()}});function wi(t,u){return u&&t(u)}function Gr(t,u,s){if(s){if(u)return u(s);for(const d of s){const f=t(d);if(f)return f}}}function Jce(t,u){return t.charCodeAt(u+1)===42&&t.charCodeAt(u+2)===42&&t.charCodeAt(u+3)!==47}function HV(t){return L(t.statements,lNt)||cNt(t)}function lNt(t){return Hp(t)&&dNt(t,95)||E1(t)&&r_(t.moduleReference)||Sd(t)||tc(t)||Gc(t)?t:void 0}function cNt(t){return t.flags&8388608?gQe(t):void 0}function gQe(t){return hNt(t)?t:ao(t,gQe)}function dNt(t,u){return Oe(t.modifiers,s=>s.kind===u)}function hNt(t){return $P(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function EQe(t,u,s){return Gr(u,s,t.typeParameters)||Gr(u,s,t.parameters)||wi(u,t.type)}function _Qe(t,u,s){return Gr(u,s,t.types)}function DQe(t,u,s){return wi(u,t.type)}function xQe(t,u,s){return Gr(u,s,t.elements)}function vQe(t,u,s){return wi(u,t.expression)||wi(u,t.questionDotToken)||Gr(u,s,t.typeArguments)||Gr(u,s,t.arguments)}function CQe(t,u,s){return Gr(u,s,t.statements)}function bQe(t,u,s){return wi(u,t.label)}function yQe(t,u,s){return Gr(u,s,t.modifiers)||wi(u,t.name)||Gr(u,s,t.typeParameters)||Gr(u,s,t.heritageClauses)||Gr(u,s,t.members)}function kQe(t,u,s){return Gr(u,s,t.elements)}function FQe(t,u,s){return wi(u,t.propertyName)||wi(u,t.name)}function AQe(t,u,s){return wi(u,t.tagName)||Gr(u,s,t.typeArguments)||wi(u,t.attributes)}function iM(t,u,s){return wi(u,t.type)}function SQe(t,u,s){return wi(u,t.tagName)||(t.isNameFirst?wi(u,t.name)||wi(u,t.typeExpression):wi(u,t.typeExpression)||wi(u,t.name))||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function nM(t,u,s){return wi(u,t.tagName)||wi(u,t.typeExpression)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function KFe(t,u,s){return wi(u,t.name)}function OB(t,u,s){return wi(u,t.tagName)||(typeof t.comment=="string"?void 0:Gr(u,s,t.comment))}function fNt(t,u,s){return wi(u,t.expression)}function ao(t,u,s){if(t===void 0||t.kind<=165)return;const d=RQe[t.kind];return d===void 0?void 0:d(t,u,s)}function uM(t,u,s){const d=BQe(t),f=[];for(;f.length=0;--v)d.push(p[v]),f.push(E)}else{const v=u(p,E);if(v){if(v==="skip")continue;return v}if(p.kind>=166)for(const b of BQe(p))d.push(b),f.push(p)}}}function BQe(t){const u=[];return ao(t,s,s),u;function s(d){u.unshift(d)}}function wQe(t){t.externalModuleIndicator=HV(t)}function KV(t,u,s,d=!1,f){var p,E,v,b;(p=Gn)==null||p.push(Gn.Phase.Parse,"createSourceFile",{path:t},!0),ul("beforeParse");let B;(E=hh)==null||E.logStartParseSourceFile(t);const{languageVersion:k,setExternalModuleIndicator:T,impliedNodeFormat:M,jsDocParsingMode:z}=typeof s=="object"?s:{languageVersion:s};if(k===100)B=Hv.parseSourceFile(t,u,k,void 0,d,6,Is,z);else{const j=M===void 0?T:J=>(J.impliedNodeFormat=M,(T||wQe)(J));B=Hv.parseSourceFile(t,u,k,void 0,d,f,j,z)}return(v=hh)==null||v.logStopParseSourceFile(),ul("afterParse"),Tm("Parse","beforeParse","afterParse"),(b=Gn)==null||b.pop(),B}function G7(t,u){return Hv.parseIsolatedEntityName(t,u)}function WV(t,u){return Hv.parseJsonText(t,u)}function wc(t){return t.externalModuleIndicator!==void 0}function $ce(t,u,s,d=!1){const f=Yce.updateSourceFile(t,u,s,d);return f.flags|=t.flags&12582912,f}function WFe(t,u,s){const d=Hv.JSDocParser.parseIsolatedJSDocComment(t,u,s);return d&&d.jsDoc&&Hv.fixupParentReferences(d.jsDoc),d}function TQe(t,u,s){return Hv.JSDocParser.parseJSDocTypeExpressionForTests(t,u,s)}function e1(t){return jc(t,dV)||Ml(t,".ts")&&Ac(t).includes(".d.")}function mNt(t,u,s,d){if(t){if(t==="import")return 99;if(t==="require")return 1;d(u,s-u,F.resolution_mode_should_be_either_require_or_import)}}function Uce(t,u){const s=[];for(const d of W_(u,0)||_t){const f=u.substring(d.pos,d.end);gNt(s,d,f)}t.pragmas=new Map;for(const d of s){if(t.pragmas.has(d.name)){const f=t.pragmas.get(d.name);f instanceof Array?f.push(d.args):t.pragmas.set(d.name,[f,d.args]);continue}t.pragmas.set(d.name,d.args)}}function qce(t,u){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,d)=>{switch(d){case"reference":{const f=t.referencedFiles,p=t.typeReferenceDirectives,E=t.libReferenceDirectives;L(YA(s),v=>{const{types:b,lib:B,path:k,["resolution-mode"]:T}=v.arguments;if(v.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(b){const M=mNt(T,b.pos,b.end,u);p.push({pos:b.pos,end:b.end,fileName:b.value,...M?{resolutionMode:M}:{}})}else B?E.push({pos:B.pos,end:B.end,fileName:B.value}):k?f.push({pos:k.pos,end:k.end,fileName:k.value}):u(v.range.pos,v.range.end-v.range.pos,F.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Vt(YA(s),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const f of s)t.moduleName&&u(f.range.pos,f.range.end-f.range.pos,F.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=f.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{L(YA(s),f=>{(!t.checkJsDirective||f.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:d==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:H.fail("Unhandled pragma kind")}})}function pNt(t){if(Qce.has(t))return Qce.get(t);const u=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return Qce.set(t,u),u}function gNt(t,u,s){const d=u.kind===2&&OQe.exec(s);if(d){const p=d[1].toLowerCase(),E=CO[p];if(!E||!(E.kind&1))return;if(E.args){const v={};for(const b of E.args){const k=pNt(b.name).exec(s);if(!k&&!b.optional)return;if(k){const T=k[2]||k[3];if(b.captureSpan){const M=u.pos+k.index+k[1].length+1;v[b.name]={value:T,pos:M,end:M+T.length}}else v[b.name]=T}}t.push({name:p,args:{arguments:v,range:u}})}else t.push({name:p,args:{arguments:{},range:u}});return}const f=u.kind===2&&jQe.exec(s);if(f)return LQe(t,u,2,f);if(u.kind===3){const p=/@(\S+)(\s+.*)?$/gim;let E;for(;E=p.exec(s);)LQe(t,u,4,E)}}function LQe(t,u,s,d){if(!d)return;const f=d[1].toLowerCase(),p=CO[f];if(!p||!(p.kind&s))return;const E=d[2],v=ENt(p,E);v!=="fail"&&t.push({name:f,args:{arguments:v,range:u}})}function ENt(t,u){if(!u)return{};if(!t.args)return{};const s=u.trim().split(/\s+/),d={};for(let f=0;fnew(IQe||(IQe=Qd.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(MQe||(MQe=Qd.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(zQe||(zQe=Qd.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(PQe||(PQe=Qd.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(NQe||(NQe=Qd.getNodeConstructor()))(t,-1,-1)},a_=mV(1,Zce),RQe={166:function(u,s,d){return wi(s,u.left)||wi(s,u.right)},168:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.constraint)||wi(s,u.default)||wi(s,u.expression)},304:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.equalsToken)||wi(s,u.objectAssignmentInitializer)},305:function(u,s,d){return wi(s,u.expression)},169:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.dotDotDotToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)||wi(s,u.initializer)},172:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.type)||wi(s,u.initializer)},171:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)||wi(s,u.initializer)},303:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||wi(s,u.initializer)},260:function(u,s,d){return wi(s,u.name)||wi(s,u.exclamationToken)||wi(s,u.type)||wi(s,u.initializer)},208:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.propertyName)||wi(s,u.name)||wi(s,u.initializer)},181:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},185:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},184:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},179:EQe,180:EQe,174:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.exclamationToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},173:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.questionToken)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)},176:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},177:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},178:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},262:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},218:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.asteriskToken)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.body)},219:function(u,s,d){return Gr(s,d,u.modifiers)||Gr(s,d,u.typeParameters)||Gr(s,d,u.parameters)||wi(s,u.type)||wi(s,u.equalsGreaterThanToken)||wi(s,u.body)},175:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.body)},183:function(u,s,d){return wi(s,u.typeName)||Gr(s,d,u.typeArguments)},182:function(u,s,d){return wi(s,u.assertsModifier)||wi(s,u.parameterName)||wi(s,u.type)},186:function(u,s,d){return wi(s,u.exprName)||Gr(s,d,u.typeArguments)},187:function(u,s,d){return Gr(s,d,u.members)},188:function(u,s,d){return wi(s,u.elementType)},189:function(u,s,d){return Gr(s,d,u.elements)},192:_Qe,193:_Qe,194:function(u,s,d){return wi(s,u.checkType)||wi(s,u.extendsType)||wi(s,u.trueType)||wi(s,u.falseType)},195:function(u,s,d){return wi(s,u.typeParameter)},205:function(u,s,d){return wi(s,u.argument)||wi(s,u.attributes)||wi(s,u.qualifier)||Gr(s,d,u.typeArguments)},302:function(u,s,d){return wi(s,u.assertClause)},196:DQe,198:DQe,199:function(u,s,d){return wi(s,u.objectType)||wi(s,u.indexType)},200:function(u,s,d){return wi(s,u.readonlyToken)||wi(s,u.typeParameter)||wi(s,u.nameType)||wi(s,u.questionToken)||wi(s,u.type)||Gr(s,d,u.members)},201:function(u,s,d){return wi(s,u.literal)},202:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.name)||wi(s,u.questionToken)||wi(s,u.type)},206:xQe,207:xQe,209:function(u,s,d){return Gr(s,d,u.elements)},210:function(u,s,d){return Gr(s,d,u.properties)},211:function(u,s,d){return wi(s,u.expression)||wi(s,u.questionDotToken)||wi(s,u.name)},212:function(u,s,d){return wi(s,u.expression)||wi(s,u.questionDotToken)||wi(s,u.argumentExpression)},213:vQe,214:vQe,215:function(u,s,d){return wi(s,u.tag)||wi(s,u.questionDotToken)||Gr(s,d,u.typeArguments)||wi(s,u.template)},216:function(u,s,d){return wi(s,u.type)||wi(s,u.expression)},217:function(u,s,d){return wi(s,u.expression)},220:function(u,s,d){return wi(s,u.expression)},221:function(u,s,d){return wi(s,u.expression)},222:function(u,s,d){return wi(s,u.expression)},224:function(u,s,d){return wi(s,u.operand)},229:function(u,s,d){return wi(s,u.asteriskToken)||wi(s,u.expression)},223:function(u,s,d){return wi(s,u.expression)},225:function(u,s,d){return wi(s,u.operand)},226:function(u,s,d){return wi(s,u.left)||wi(s,u.operatorToken)||wi(s,u.right)},234:function(u,s,d){return wi(s,u.expression)||wi(s,u.type)},235:function(u,s,d){return wi(s,u.expression)},238:function(u,s,d){return wi(s,u.expression)||wi(s,u.type)},236:function(u,s,d){return wi(s,u.name)},227:function(u,s,d){return wi(s,u.condition)||wi(s,u.questionToken)||wi(s,u.whenTrue)||wi(s,u.colonToken)||wi(s,u.whenFalse)},230:function(u,s,d){return wi(s,u.expression)},241:CQe,268:CQe,312:function(u,s,d){return Gr(s,d,u.statements)||wi(s,u.endOfFileToken)},243:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.declarationList)},261:function(u,s,d){return Gr(s,d,u.declarations)},244:function(u,s,d){return wi(s,u.expression)},245:function(u,s,d){return wi(s,u.expression)||wi(s,u.thenStatement)||wi(s,u.elseStatement)},246:function(u,s,d){return wi(s,u.statement)||wi(s,u.expression)},247:function(u,s,d){return wi(s,u.expression)||wi(s,u.statement)},248:function(u,s,d){return wi(s,u.initializer)||wi(s,u.condition)||wi(s,u.incrementor)||wi(s,u.statement)},249:function(u,s,d){return wi(s,u.initializer)||wi(s,u.expression)||wi(s,u.statement)},250:function(u,s,d){return wi(s,u.awaitModifier)||wi(s,u.initializer)||wi(s,u.expression)||wi(s,u.statement)},251:bQe,252:bQe,253:function(u,s,d){return wi(s,u.expression)},254:function(u,s,d){return wi(s,u.expression)||wi(s,u.statement)},255:function(u,s,d){return wi(s,u.expression)||wi(s,u.caseBlock)},269:function(u,s,d){return Gr(s,d,u.clauses)},296:function(u,s,d){return wi(s,u.expression)||Gr(s,d,u.statements)},297:function(u,s,d){return Gr(s,d,u.statements)},256:function(u,s,d){return wi(s,u.label)||wi(s,u.statement)},257:function(u,s,d){return wi(s,u.expression)},258:function(u,s,d){return wi(s,u.tryBlock)||wi(s,u.catchClause)||wi(s,u.finallyBlock)},299:function(u,s,d){return wi(s,u.variableDeclaration)||wi(s,u.block)},170:function(u,s,d){return wi(s,u.expression)},263:yQe,231:yQe,264:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||Gr(s,d,u.heritageClauses)||Gr(s,d,u.members)},265:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.typeParameters)||wi(s,u.type)},266:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||Gr(s,d,u.members)},306:function(u,s,d){return wi(s,u.name)||wi(s,u.initializer)},267:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.body)},271:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)||wi(s,u.moduleReference)},272:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.importClause)||wi(s,u.moduleSpecifier)||wi(s,u.attributes)},273:function(u,s,d){return wi(s,u.name)||wi(s,u.namedBindings)},300:function(u,s,d){return Gr(s,d,u.elements)},301:function(u,s,d){return wi(s,u.name)||wi(s,u.value)},270:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.name)},274:function(u,s,d){return wi(s,u.name)},280:function(u,s,d){return wi(s,u.name)},275:kQe,279:kQe,278:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.exportClause)||wi(s,u.moduleSpecifier)||wi(s,u.attributes)},276:FQe,281:FQe,277:function(u,s,d){return Gr(s,d,u.modifiers)||wi(s,u.expression)},228:function(u,s,d){return wi(s,u.head)||Gr(s,d,u.templateSpans)},239:function(u,s,d){return wi(s,u.expression)||wi(s,u.literal)},203:function(u,s,d){return wi(s,u.head)||Gr(s,d,u.templateSpans)},204:function(u,s,d){return wi(s,u.type)||wi(s,u.literal)},167:function(u,s,d){return wi(s,u.expression)},298:function(u,s,d){return Gr(s,d,u.types)},233:function(u,s,d){return wi(s,u.expression)||Gr(s,d,u.typeArguments)},283:function(u,s,d){return wi(s,u.expression)},282:function(u,s,d){return Gr(s,d,u.modifiers)},361:function(u,s,d){return Gr(s,d,u.elements)},284:function(u,s,d){return wi(s,u.openingElement)||Gr(s,d,u.children)||wi(s,u.closingElement)},288:function(u,s,d){return wi(s,u.openingFragment)||Gr(s,d,u.children)||wi(s,u.closingFragment)},285:AQe,286:AQe,292:function(u,s,d){return Gr(s,d,u.properties)},291:function(u,s,d){return wi(s,u.name)||wi(s,u.initializer)},293:function(u,s,d){return wi(s,u.expression)},294:function(u,s,d){return wi(s,u.dotDotDotToken)||wi(s,u.expression)},287:function(u,s,d){return wi(s,u.tagName)},295:function(u,s,d){return wi(s,u.namespace)||wi(s,u.name)},190:iM,191:iM,316:iM,322:iM,321:iM,323:iM,325:iM,324:function(u,s,d){return Gr(s,d,u.parameters)||wi(s,u.type)},327:function(u,s,d){return(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))||Gr(s,d,u.tags)},354:function(u,s,d){return wi(s,u.tagName)||wi(s,u.name)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},317:function(u,s,d){return wi(s,u.name)},318:function(u,s,d){return wi(s,u.left)||wi(s,u.right)},348:SQe,355:SQe,337:function(u,s,d){return wi(s,u.tagName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},336:function(u,s,d){return wi(s,u.tagName)||wi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},335:function(u,s,d){return wi(s,u.tagName)||wi(s,u.class)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},352:function(u,s,d){return wi(s,u.tagName)||wi(s,u.constraint)||Gr(s,d,u.typeParameters)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},353:function(u,s,d){return wi(s,u.tagName)||(u.typeExpression&&u.typeExpression.kind===316?wi(s,u.typeExpression)||wi(s,u.fullName)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)):wi(s,u.fullName)||wi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment)))},345:function(u,s,d){return wi(s,u.tagName)||wi(s,u.fullName)||wi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Gr(s,d,u.comment))},349:nM,351:nM,350:nM,347:nM,357:nM,356:nM,346:nM,330:function(u,s,d){return L(u.typeParameters,s)||L(u.parameters,s)||wi(s,u.type)},331:KFe,332:KFe,333:KFe,329:function(u,s,d){return L(u.jsDocPropertyTags,s)},334:OB,339:OB,340:OB,341:OB,342:OB,343:OB,338:OB,344:OB,360:fNt},(t=>{var u=YD(99,!0),s=40960,d,f,p,E,v;function b(he){return ht++,he}var B={createBaseSourceFileNode:he=>b(new v(he,0,0)),createBaseIdentifierNode:he=>b(new p(he,0,0)),createBasePrivateIdentifierNode:he=>b(new E(he,0,0)),createBaseTokenNode:he=>b(new f(he,0,0)),createBaseNode:he=>b(new d(he,0,0))},k=mV(11,B),{createNodeArray:T,createNumericLiteral:M,createStringLiteral:z,createLiteralLikeNode:j,createIdentifier:J,createPrivateIdentifier:K,createToken:Y,createArrayLiteralExpression:oe,createObjectLiteralExpression:se,createPropertyAccessExpression:ge,createPropertyAccessChain:ae,createElementAccessExpression:Ce,createElementAccessChain:ne,createCallExpression:ve,createCallChain:Se,createNewExpression:Ne,createParenthesizedExpression:pe,createBlock:fe,createVariableStatement:xe,createExpressionStatement:Be,createIfStatement:Ge,createWhileStatement:Ae,createForStatement:De,createForOfStatement:Ke,createVariableDeclaration:Je,createVariableDeclarationList:ft}=k,Ye,Ve,We,Gt,Yt,Ie,st,St,It,ei,ht,Ut,Ni,ji,xn,Jn,an=!0,Pi=!1;function Ai(he,Re,nt,Nt,bi=!1,en,zu,Hr=0){var Lr;if(en=oZ(he,en),en===6){const fa=aa(he,Re,nt,Nt,bi);return $V(fa,(Lr=fa.statements[0])==null?void 0:Lr.expression,fa.parseDiagnostics,!1,void 0),fa.referencedFiles=_t,fa.typeReferenceDirectives=_t,fa.libReferenceDirectives=_t,fa.amdDependencies=_t,fa.hasNoDefaultLib=!1,fa.pragmas=iU,fa}yr(he,Re,nt,Nt,en,Hr);const gr=bt(nt,bi,en,zu||wQe,Hr);return Ba(),gr}t.parseSourceFile=Ai;function Zu(he,Re){yr("",he,Re,void 0,1,0),ct();const nt=Ee(!0),Nt=X()===1&&!st.length;return Ba(),Nt?nt:void 0}t.parseIsolatedEntityName=Zu;function aa(he,Re,nt=2,Nt,bi=!1){yr(he,Re,nt,Nt,6,0),Ve=Jn,ct();const en=de();let zu,Hr;if(X()===1)zu=Ka([],en,en),Hr=Tc();else{let fa;for(;X()!==1;){let Ws;switch(X()){case 23:Ws=hD();break;case 112:case 97:case 106:Ws=Tc();break;case 41:wn(()=>ct()===9&&ct()!==59)?Ws=pE():Ws=dC();break;case 9:case 11:if(wn(()=>ct()!==59)){Ws=ir();break}default:Ws=dC();break}fa&&Ha(fa)?fa.push(Ws):fa?fa=[fa,Ws]:(fa=Ws,X()!==1&&Qi(F.Unexpected_token))}const _0=Ha(fa)?Ri(oe(fa),en):H.checkDefined(fa),qs=Be(_0);Ri(qs,en),zu=Ka([qs],en),Hr=Y0(1,F.Unexpected_token)}const Lr=Cn(he,2,6,!1,zu,Hr,Ve,Is);bi&&Dn(Lr),Lr.nodeCount=ht,Lr.identifierCount=Ni,Lr.identifiers=Ut,Lr.parseDiagnostics=v7(st,Lr),St&&(Lr.jsDocDiagnostics=v7(St,Lr));const gr=Lr;return Ba(),gr}t.parseJsonText=aa;function yr(he,Re,nt,Nt,bi,en){switch(d=Qd.getNodeConstructor(),f=Qd.getTokenConstructor(),p=Qd.getIdentifierConstructor(),E=Qd.getPrivateIdentifierConstructor(),v=Qd.getSourceFileConstructor(),Ye=$o(he),We=Re,Gt=nt,It=Nt,Yt=bi,Ie=Yj(bi),st=[],ji=0,Ut=new Map,Ni=0,ht=0,Ve=0,an=!0,Yt){case 1:case 2:Jn=524288;break;case 6:Jn=134742016;break;default:Jn=0;break}Pi=!1,u.setText(We),u.setOnError(we),u.setScriptTarget(Gt),u.setLanguageVariant(Ie),u.setScriptKind(Yt),u.setJSDocParsingMode(en)}function Ba(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),u.setScriptKind(0),u.setJSDocParsingMode(0),We=void 0,Gt=void 0,It=void 0,Yt=void 0,Ie=void 0,Ve=0,st=void 0,St=void 0,ji=0,Ut=void 0,xn=void 0,an=!0}function bt(he,Re,nt,Nt,bi){const en=e1(Ye);en&&(Jn|=33554432),Ve=Jn,ct();const zu=To(0,qm);H.assert(X()===1);const Hr=je(),Lr=Ln(Tc(),Hr),gr=Cn(Ye,he,nt,en,zu,Lr,Ve,Nt);return Uce(gr,We),qce(gr,fa),gr.commentDirectives=u.getCommentDirectives(),gr.nodeCount=ht,gr.identifierCount=Ni,gr.identifiers=Ut,gr.parseDiagnostics=v7(st,gr),gr.jsDocParsingMode=bi,St&&(gr.jsDocDiagnostics=v7(St,gr)),Re&&Dn(gr),gr;function fa(_0,qs,Ws){st.push(hB(Ye,We,_0,qs,Ws))}}let jn=!1;function Ln(he,Re){if(!Re)return he;H.assert(!he.jsDoc);const nt=qi(k0e(he,We),Nt=>YK.parseJSDocComment(he,Nt.pos,Nt.end-Nt.pos));return nt.length&&(he.jsDoc=nt),jn&&(jn=!1,he.flags|=536870912),he}function Si(he){const Re=It,nt=Yce.createSyntaxCursor(he);It={currentNode:fa};const Nt=[],bi=st;st=[];let en=0,zu=Lr(he.statements,0);for(;zu!==-1;){const _0=he.statements[en],qs=he.statements[zu];yn(Nt,he.statements,en,zu),en=gr(he.statements,zu);const Ws=Ue(bi,qp=>qp.start>=_0.pos),v4=Ws>=0?Ue(bi,qp=>qp.start>=qs.pos,Ws):-1;Ws>=0&&yn(st,bi,Ws,v4>=0?v4:void 0),ja(()=>{const qp=Jn;for(Jn|=65536,u.resetTokenState(qs.pos),ct();X()!==1;){const f6=u.getTokenFullStart(),b3=nc(0,qm);if(Nt.push(b3),f6===u.getTokenFullStart()&&ct(),en>=0){const Vd=he.statements[en];if(b3.end===Vd.pos)break;b3.end>Vd.pos&&(en=gr(he.statements,en+1))}}Jn=qp},2),zu=en>=0?Lr(he.statements,en):-1}if(en>=0){const _0=he.statements[en];yn(Nt,he.statements,en);const qs=Ue(bi,Ws=>Ws.start>=_0.pos);qs>=0&&yn(st,bi,qs)}return It=Re,k.updateSourceFile(he,Pt(T(Nt),he.statements));function Hr(_0){return!(_0.flags&65536)&&!!(_0.transformFlags&67108864)}function Lr(_0,qs){for(let Ws=qs;Ws<_0.length;Ws++)if(Hr(_0[Ws]))return Ws;return-1}function gr(_0,qs){for(let Ws=qs;Ws<_0.length;Ws++)if(!Hr(_0[Ws]))return Ws;return-1}function fa(_0){const qs=nt.currentNode(_0);return an&&qs&&Hr(qs)&&(qs.intersectsChange=!0),qs}}function Dn(he){Vx(he,!0)}t.fixupParentReferences=Dn;function Cn(he,Re,nt,Nt,bi,en,zu,Hr){let Lr=k.createSourceFile(bi,en,zu);return wP(Lr,0,We.length),gr(Lr),!Nt&&wc(Lr)&&Lr.transformFlags&67108864&&(Lr=Si(Lr),gr(Lr)),Lr;function gr(fa){fa.text=We,fa.bindDiagnostics=[],fa.bindSuggestionDiagnostics=void 0,fa.languageVersion=Re,fa.fileName=he,fa.languageVariant=Yj(nt),fa.isDeclarationFile=Nt,fa.scriptKind=nt,Hr(fa),fa.setExternalModuleIndicator=Hr}}function tu(he,Re){he?Jn|=Re:Jn&=~Re}function oa(he){tu(he,8192)}function Da(he){tu(he,16384)}function ra(he){tu(he,32768)}function Ta(he){tu(he,65536)}function Yo(he,Re){const nt=he&Jn;if(nt){tu(!1,nt);const Nt=Re();return tu(!0,nt),Nt}return Re()}function bo(he,Re){const nt=he&~Jn;if(nt){tu(!0,nt);const Nt=Re();return tu(!1,nt),Nt}return Re()}function Qe(he){return Yo(8192,he)}function Et(he){return bo(8192,he)}function Mt(he){return Yo(131072,he)}function qt(he){return bo(131072,he)}function Xt(he){return bo(16384,he)}function Pe(he){return bo(32768,he)}function et(he){return bo(65536,he)}function gt(he){return Yo(65536,he)}function ii(he){return bo(81920,he)}function me(he){return Yo(81920,he)}function ni(he){return(Jn&he)!==0}function vi(){return ni(16384)}function mt(){return ni(8192)}function Ot(){return ni(131072)}function Ei(){return ni(32768)}function $i(){return ni(65536)}function Qi(he,...Re){return le(u.getTokenStart(),u.getTokenEnd(),he,...Re)}function on(he,Re,nt,...Nt){const bi=qu(st);let en;return(!bi||he!==bi.start)&&(en=hB(Ye,We,he,Re,nt,...Nt),st.push(en)),Pi=!0,en}function le(he,Re,nt,...Nt){return on(he,Re-he,nt,...Nt)}function te(he,Re,...nt){le(he.pos,he.end,Re,...nt)}function we(he,Re,nt){on(u.getTokenEnd(),Re,he,nt)}function de(){return u.getTokenFullStart()}function je(){return u.hasPrecedingJSDocComment()}function X(){return ei}function it(){return ei=u.scan()}function Ct(he){return ct(),he()}function ct(){return uf(ei)&&(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&le(u.getTokenStart(),u.getTokenEnd(),F.Keywords_cannot_contain_escape_characters),it()}function Qt(){return ei=u.scanJsDocToken()}function Li(he){return ei=u.scanJSDocCommentTextToken(he)}function Ui(){return ei=u.reScanGreaterToken()}function Sn(){return ei=u.reScanSlashToken()}function du(he){return ei=u.reScanTemplateToken(he)}function Ru(){return ei=u.reScanLessThanToken()}function pr(){return ei=u.reScanHashToken()}function Xu(){return ei=u.scanJsxIdentifier()}function ca(){return ei=u.scanJsxToken()}function Ku(){return ei=u.scanJsxAttributeValue()}function ja(he,Re){const nt=ei,Nt=st.length,bi=Pi,en=Jn,zu=Re!==0?u.lookAhead(he):u.tryScan(he);return H.assert(en===Jn),(!zu||Re!==0)&&(ei=nt,Re!==2&&(st.length=Nt),Pi=bi),zu}function wn(he){return ja(he,1)}function Ir(he){return ja(he,0)}function as(){return X()===80?!0:X()>118}function wo(){return X()===80?!0:X()===127&&vi()||X()===135&&$i()?!1:X()>118}function Fn(he,Re,nt=!0){return X()===he?(nt&&ct(),!0):(Re?Qi(Re):Qi(F._0_expected,Uo(he)),!1)}const vc=Object.keys(MO).filter(he=>he.length>2);function Ya(he){if(Dk(he)){le(gs(We,he.template.pos),he.template.end,F.Module_declaration_names_may_only_use_or_quoted_strings);return}const Re=at(he)?fu(he):void 0;if(!Re||!Lm(Re,Gt)){Qi(F._0_expected,Uo(27));return}const nt=gs(We,he.pos);switch(Re){case"const":case"let":case"var":le(nt,he.end,F.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":c0(F.Interface_name_cannot_be_0,F.Interface_must_be_given_a_name,19);return;case"is":le(nt,u.getTokenStart(),F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":c0(F.Namespace_name_cannot_be_0,F.Namespace_must_be_given_a_name,19);return;case"type":c0(F.Type_alias_name_cannot_be_0,F.Type_alias_must_be_given_a_name,64);return}const Nt=bN(Re,vc,bi=>bi)??Ul(Re);if(Nt){le(nt,he.end,F.Unknown_keyword_or_identifier_Did_you_mean_0,Nt);return}X()!==0&&le(nt,he.end,F.Unexpected_keyword_or_identifier)}function c0(he,Re,nt){X()===nt?Qi(Re):Qi(he,u.getTokenValue())}function Ul(he){for(const Re of vc)if(he.length>Re.length+2&&Pa(he,Re))return`${Re} ${he.slice(Re.length)}`}function wl(he,Re,nt){if(X()===60&&!u.hasPrecedingLineBreak()){Qi(F.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(X()===21){Qi(F.Cannot_start_a_function_call_in_a_type_annotation),ct();return}if(Re&&!Lc()){nt?Qi(F._0_expected,Uo(27)):Qi(F.Expected_for_property_initializer);return}if(!Il()){if(nt){Qi(F._0_expected,Uo(27));return}Ya(he)}}function hd(he){return X()===he?(Qt(),!0):(H.assert(Sq(he)),Qi(F._0_expected,Uo(he)),!1)}function vl(he,Re,nt,Nt){if(X()===Re){ct();return}const bi=Qi(F._0_expected,Uo(Re));nt&&bi&&Es(bi,hB(Ye,We,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,Uo(he),Uo(Re)))}function co(he){return X()===he?(ct(),!0):!1}function Ho(he){if(X()===he)return Tc()}function id(he){if(X()===he)return Jp()}function Y0(he,Re,nt){return Ho(he)||dl(he,!1,Re||F._0_expected,nt||Uo(he))}function Ko(he){const Re=id(he);return Re||(H.assert(Sq(he)),dl(he,!1,F._0_expected,Uo(he)))}function Tc(){const he=de(),Re=X();return ct(),Ri(Y(Re),he)}function Jp(){const he=de(),Re=X();return Qt(),Ri(Y(Re),he)}function Lc(){return X()===27?!0:X()===20||X()===1||u.hasPrecedingLineBreak()}function Il(){return Lc()?(X()===27&&ct(),!0):!1}function cl(){return Il()||Fn(27)}function Ka(he,Re,nt,Nt){const bi=T(he,Nt);return t_(bi,Re,nt??u.getTokenFullStart()),bi}function Ri(he,Re,nt){return t_(he,Re,nt??u.getTokenFullStart()),Jn&&(he.flags|=Jn),Pi&&(Pi=!1,he.flags|=262144),he}function dl(he,Re,nt,...Nt){Re?on(u.getTokenFullStart(),0,nt,...Nt):nt&&Qi(nt,...Nt);const bi=de(),en=he===80?J("",void 0):Bx(he)?k.createTemplateLiteralLikeNode(he,"","",void 0):he===9?M("",void 0):he===11?z("",void 0):he===282?k.createMissingDeclaration():Y(he);return Ri(en,bi)}function Uc(he){let Re=Ut.get(he);return Re===void 0&&Ut.set(he,Re=he),Re}function Ch(he,Re,nt){if(he){Ni++;const Hr=de(),Lr=X(),gr=Uc(u.getTokenValue()),fa=u.hasExtendedUnicodeEscape();return it(),Ri(J(gr,Lr,fa),Hr)}if(X()===81)return Qi(nt||F.Private_identifiers_are_not_allowed_outside_class_bodies),Ch(!0);if(X()===0&&u.tryScan(()=>u.reScanInvalidIdentifier()===80))return Ch(!0);Ni++;const Nt=X()===1,bi=u.isReservedWord(),en=u.getTokenText(),zu=bi?F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:F.Identifier_expected;return dl(80,Nt,Re||zu,en)}function sf(he){return Ch(as(),void 0,he)}function Q0(he,Re){return Ch(wo(),he,Re)}function Cc(he){return Ch(fh(X()),he)}function $(){return(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&Qi(F.Unicode_escape_sequence_cannot_appear_here),Ch(fh(X()))}function tt(){return fh(X())||X()===11||X()===9}function vt(){return fh(X())||X()===11}function mi(he){if(X()===11||X()===9){const Re=ir();return Re.text=Uc(Re.text),Re}return he&&X()===23?Wu():X()===81?uu():Cc()}function fn(){return mi(!0)}function Wu(){const he=de();Fn(23);const Re=Qe(i1);return Fn(24),Ri(k.createComputedPropertyName(Re),he)}function uu(){const he=de(),Re=K(Uc(u.getTokenValue()));return ct(),Ri(Re,he)}function Tu(he){return X()===he&&Ir(Vu)}function Nr(){return ct(),u.hasPrecedingLineBreak()?!1:S0()}function Vu(){switch(X()){case 87:return ct()===94;case 95:return ct(),X()===90?wn(ud):X()===156?wn(ic):Ss();case 90:return ud();case 126:case 139:case 153:return ct(),S0();default:return Nr()}}function Ss(){return X()===60||X()!==42&&X()!==130&&X()!==19&&S0()}function ic(){return ct(),Ss()}function nd(){return XD(X())&&Ir(Vu)}function S0(){return X()===23||X()===19||X()===42||X()===26||tt()}function ud(){return ct(),X()===86||X()===100||X()===120||X()===60||X()===128&&wn(Hw)||X()===134&&wn(R0)}function m0(he,Re){if(fc(he))return!0;switch(he){case 0:case 1:case 3:return!(X()===27&&Re)&&L9();case 2:return X()===84||X()===90;case 4:return wn(t6);case 5:return wn(N5)||X()===27&&!Re;case 6:return X()===23||tt();case 12:switch(X()){case 23:case 42:case 26:case 25:return!0;default:return tt()}case 18:return tt();case 9:return X()===23||X()===26||tt();case 24:return vt();case 7:return X()===19?wn(Bd):Re?wo()&&!D1():A5()&&!D1();case 8:return Ks();case 10:return X()===28||X()===26||Ks();case 19:return X()===103||X()===87||wo();case 15:switch(X()){case 28:case 25:return!0}case 11:return X()===26||f3();case 16:return Dt(!1);case 17:return Dt(!0);case 20:case 21:return X()===28||fE();case 22:return R();case 23:return X()===161&&wn(M9)?!1:fh(X());case 13:return fh(X())||X()===19;case 14:return!0;case 25:return!0;case 26:return H.fail("ParsingContext.Count used as a context");default:H.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Bd(){if(H.assert(X()===19),ct()===20){const he=ct();return he===28||he===19||he===96||he===119}return!0}function Oh(){return ct(),wo()}function uh(){return ct(),fh(X())}function h4(){return ct(),b2e(X())}function D1(){return X()===119||X()===96?wn(He):!1}function He(){return ct(),f3()}function di(){return ct(),fE()}function Mn(he){if(X()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return X()===20;case 3:return X()===20||X()===84||X()===90;case 7:return X()===19||X()===96||X()===119;case 8:return ba();case 19:return X()===32||X()===21||X()===19||X()===96||X()===119;case 11:return X()===22||X()===27;case 15:case 21:case 10:return X()===24;case 17:case 16:case 18:return X()===22||X()===24;case 20:return X()!==28;case 22:return X()===19||X()===20;case 13:return X()===32||X()===44;case 14:return X()===30&&wn(gn);default:return!1}}function ba(){return!!(Lc()||tF(X())||X()===39)}function Fo(){H.assert(ji,"Missing parsing context");for(let he=0;he<26;he++)if(ji&1<=0)}function d3(he){return he===6?F.An_enum_member_name_must_be_followed_by_a_or:void 0}function Wf(){const he=Ka([],de());return he.isMissingList=!0,he}function m4(he){return!!he.isMissingList}function Vh(he,Re,nt,Nt){if(Fn(nt)){const bi=R1(he,Re);return Fn(Nt),bi}return Wf()}function Ee(he,Re){const nt=de();let Nt=he?Cc(Re):Q0(Re);for(;co(25)&&X()!==30;)Nt=Ri(k.createQualifiedName(Nt,Di(he,!1,!0)),nt);return Nt}function Bt(he,Re){return Ri(k.createQualifiedName(he,Re),he.pos)}function Di(he,Re,nt){if(u.hasPrecedingLineBreak()&&fh(X())&&wn(a6))return dl(80,!0,F.Identifier_expected);if(X()===81){const Nt=uu();return Re?Nt:dl(80,!0,F.Identifier_expected)}return he?nt?Cc():$():Q0()}function Ci(he){const Re=de(),nt=[];let Nt;do Nt=tr(he),nt.push(Nt);while(Nt.literal.kind===17);return Ka(nt,Re)}function Q(he){const Re=de();return Ri(k.createTemplateExpression(ha(he),Ci(he)),Re)}function Me(){const he=de();return Ri(k.createTemplateLiteralType(ha(!1),wt()),he)}function wt(){const he=de(),Re=[];let nt;do nt=ki(),Re.push(nt);while(nt.literal.kind===17);return Ka(Re,he)}function ki(){const he=de();return Ri(k.createTemplateLiteralTypeSpan(jd(),In(!1)),he)}function In(he){return X()===20?(du(he),os()):Y0(18,F._0_expected,Uo(20))}function tr(he){const Re=de();return Ri(k.createTemplateSpan(Qe(i1),In(he)),Re)}function ir(){return Rl(X())}function ha(he){!he&&u.getTokenFlags()&26656&&du(!1);const Re=Rl(X());return H.assert(Re.kind===16,"Template head has wrong token kind"),Re}function os(){const he=Rl(X());return H.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function ss(he){const Re=he===15||he===18,nt=u.getTokenText();return nt.substring(1,nt.length-(u.isUnterminated()?0:Re?1:2))}function Rl(he){const Re=de(),nt=Bx(he)?k.createTemplateLiteralLikeNode(he,u.getTokenValue(),ss(he),u.getTokenFlags()&7176):he===9?M(u.getTokenValue(),u.getNumericLiteralFlags()):he===11?z(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):jN(he)?j(he,u.getTokenValue()):H.fail();return u.hasExtendedUnicodeEscape()&&(nt.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(nt.isUnterminated=!0),ct(),Ri(nt,Re)}function x1(){return Ee(!0,F.Type_expected)}function fd(){if(!u.hasPrecedingLineBreak()&&Ru()===30)return Vh(20,jd,30,32)}function $m(){const he=de();return Ri(k.createTypeReferenceNode(x1(),fd()),he)}function _s(he){switch(he.kind){case 183:return Ql(he.typeName);case 184:case 185:{const{parameters:Re,type:nt}=he;return m4(Re)||_s(nt)}case 196:return _s(he.type);default:return!1}}function np(he){return ct(),Ri(k.createTypePredicateNode(void 0,he,jd()),he.pos)}function Um(){const he=de();return ct(),Ri(k.createThisTypeNode(),he)}function h3(){const he=de();return ct(),Ri(k.createJSDocAllType(),he)}function d_(){const he=de();return ct(),Ri(k.createJSDocNonNullableType(hb(),!1),he)}function ia(){const he=de();return ct(),X()===28||X()===20||X()===22||X()===32||X()===64||X()===52?Ri(k.createJSDocUnknownType(),he):Ri(k.createJSDocNullableType(jd(),!1),he)}function Xx(){const he=de(),Re=je();if(wn(Fr)){ct();const nt=bu(36),Nt=bn(59,!1);return Ln(Ri(k.createJSDocFunctionType(nt,Nt),he),Re)}return Ri(k.createTypeReferenceNode(Cc(),void 0),he)}function e6(){const he=de();let Re;return(X()===110||X()===105)&&(Re=Cc(),Fn(59)),Ri(k.createParameterDeclaration(void 0,void 0,Re,void 0,bg(),void 0),he)}function bg(){u.setInJSDocType(!0);const he=de();if(co(144)){const Nt=k.createJSDocNamepathType(void 0);e:for(;;)switch(X()){case 20:case 1:case 28:case 5:break e;default:Qt()}return u.setInJSDocType(!1),Ri(Nt,he)}const Re=co(26);let nt=uC();return u.setInJSDocType(!1),Re&&(nt=Ri(k.createJSDocVariadicType(nt),he)),X()===64?(ct(),Ri(k.createJSDocOptionalType(nt),he)):nt}function sb(){const he=de();Fn(114);const Re=Ee(!0),nt=u.hasPrecedingLineBreak()?void 0:d6();return Ri(k.createTypeQueryNode(Re,nt),he)}function b5(){const he=de(),Re=j1(!1,!0),nt=Q0();let Nt,bi;co(96)&&(fE()||!f3()?Nt=jd():bi=uc());const en=co(64)?jd():void 0,zu=k.createTypeParameterDeclaration(Re,nt,Nt,en);return zu.expression=bi,Ri(zu,he)}function Xe(){if(X()===30)return Vh(19,b5,30,32)}function Dt(he){return X()===26||Ks()||XD(X())||X()===60||fE(!he)}function oi(he){const Re=_u(F.Private_identifiers_cannot_be_used_as_parameters);return ij(Re)===0&&!Oe(he)&&XD(X())&&ct(),Re}function Ti(){return as()||X()===23||X()===19}function Xi(he){return tn(he)}function Rn(he){return tn(he,!1)}function tn(he,Re=!0){const nt=de(),Nt=je(),bi=he?et(()=>j1(!0)):gt(()=>j1(!0));if(X()===110){const Lr=k.createParameterDeclaration(bi,void 0,Ch(!0),void 0,F5(),void 0),gr=Ki(bi);return gr&&te(gr,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ln(Ri(Lr,nt),Nt)}const en=an;an=!1;const zu=Ho(26);if(!Re&&!Ti())return;const Hr=Ln(Ri(k.createParameterDeclaration(bi,zu,oi(bi),Ho(58),F5(),g4()),nt),Nt);return an=en,Hr}function bn(he,Re){if(kr(he,Re))return Mt(uC)}function kr(he,Re){return he===39?(Fn(he),!0):co(59)?!0:Re&&X()===39?(Qi(F._0_expected,Uo(59)),ct(),!0):!1}function Cu(he,Re){const nt=vi(),Nt=$i();Da(!!(he&1)),Ta(!!(he&2));const bi=he&32?R1(17,e6):R1(16,()=>Re?Xi(Nt):Rn(Nt));return Da(nt),Ta(Nt),bi}function bu(he){if(!Fn(21))return Wf();const Re=Cu(he,!0);return Fn(22),Re}function Eu(){co(28)||cl()}function sa(he){const Re=de(),nt=je();he===180&&Fn(105);const Nt=Xe(),bi=bu(4),en=bn(59,!0);Eu();const zu=he===179?k.createCallSignature(Nt,bi,en):k.createConstructSignature(Nt,bi,en);return Ln(Ri(zu,Re),nt)}function p0(){return X()===23&&wn(o0)}function o0(){if(ct(),X()===26||X()===24)return!0;if(XD(X())){if(ct(),wo())return!0}else if(wo())ct();else return!1;return X()===59||X()===28?!0:X()!==58?!1:(ct(),X()===59||X()===28||X()===24)}function Gf(he,Re,nt){const Nt=Vh(16,()=>Xi(!1),23,24),bi=F5();Eu();const en=k.createIndexSignature(nt,Nt,bi);return Ln(Ri(en,he),Re)}function eC(he,Re,nt){const Nt=fn(),bi=Ho(58);let en;if(X()===21||X()===30){const zu=Xe(),Hr=bu(4),Lr=bn(59,!0);en=k.createMethodSignature(nt,Nt,bi,zu,Hr,Lr)}else{const zu=F5();en=k.createPropertySignature(nt,Nt,bi,zu),X()===64&&(en.initializer=g4())}return Eu(),Ln(Ri(en,he),Re)}function t6(){if(X()===21||X()===30||X()===139||X()===153)return!0;let he=!1;for(;XD(X());)he=!0,ct();return X()===23?!0:(tt()&&(he=!0,ct()),he?X()===21||X()===30||X()===58||X()===59||X()===28||Lc():!1)}function cD(){if(X()===21||X()===30)return sa(179);if(X()===105&&wn(i6))return sa(180);const he=de(),Re=je(),nt=j1(!1);return Tu(139)?lp(he,Re,nt,177,4):Tu(153)?lp(he,Re,nt,178,4):p0()?Gf(he,Re,nt):eC(he,Re,nt)}function i6(){return ct(),X()===21||X()===30}function Gk(){return ct()===25}function lb(){switch(ct()){case 21:case 30:case 25:return!0}return!1}function Jk(){const he=de();return Ri(k.createTypeLiteralNode($k()),he)}function $k(){let he;return Fn(19)?(he=To(4,cD),Fn(20)):he=Wf(),he}function az(){return ct(),X()===40||X()===41?ct()===148:(X()===148&&ct(),X()===23&&Oh()&&ct()===103)}function D9(){const he=de(),Re=Cc();Fn(103);const nt=jd();return Ri(k.createTypeParameterDeclaration(void 0,Re,nt,void 0),he)}function ww(){const he=de();Fn(19);let Re;(X()===148||X()===40||X()===41)&&(Re=Tc(),Re.kind!==148&&Fn(148)),Fn(23);const nt=D9(),Nt=co(130)?jd():void 0;Fn(24);let bi;(X()===58||X()===40||X()===41)&&(bi=Tc(),bi.kind!==58&&Fn(58));const en=F5();cl();const zu=To(4,cD);return Fn(20),Ri(k.createMappedTypeNode(Re,nt,Nt,bi,en,zu),he)}function tC(){const he=de();if(co(26))return Ri(k.createRestTypeNode(jd()),he);const Re=jd();if(wB(Re)&&Re.pos===Re.type.pos){const nt=k.createOptionalTypeNode(Re.type);return Pt(nt,Re),nt.flags=Re.flags,nt}return Re}function x9(){return ct()===59||X()===58&&ct()===59}function v9(){return X()===26?fh(ct())&&x9():fh(X())&&x9()}function Tw(){if(wn(v9)){const he=de(),Re=je(),nt=Ho(26),Nt=Cc(),bi=Ho(58);Fn(59);const en=tC(),zu=k.createNamedTupleMember(nt,Nt,bi,en);return Ln(Ri(zu,he),Re)}return tC()}function Uk(){const he=de();return Ri(k.createTupleTypeNode(Vh(21,Tw,23,24)),he)}function Lw(){const he=de();Fn(21);const Re=jd();return Fn(22),Ri(k.createParenthesizedType(Re),he)}function C9(){let he;if(X()===128){const Re=de();ct();const nt=Ri(Y(128),Re);he=Ka([nt],Re)}return he}function b9(){const he=de(),Re=je(),nt=C9(),Nt=co(105);H.assert(!nt||Nt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const bi=Xe(),en=bu(4),zu=bn(39,!1),Hr=Nt?k.createConstructorTypeNode(nt,bi,en,zu):k.createFunctionTypeNode(bi,en,zu);return Ln(Ri(Hr,he),Re)}function qk(){const he=Tc();return X()===25?void 0:he}function cb(he){const Re=de();he&&ct();let nt=X()===112||X()===97||X()===106?Tc():Rl(X());return he&&(nt=Ri(k.createPrefixUnaryExpression(41,nt),Re)),Ri(k.createLiteralTypeNode(nt),Re)}function db(){return ct(),X()===102}function iC(){Ve|=4194304;const he=de(),Re=co(114);Fn(102),Fn(21);const nt=jd();let Nt;if(co(28)){const zu=u.getTokenStart();Fn(19);const Hr=X();if(Hr===118||Hr===132?ct():Qi(F._0_expected,Uo(118)),Fn(59),Nt=DC(Hr,!0),!Fn(20)){const Lr=qu(st);Lr&&Lr.code===F._0_expected.code&&Es(Lr,hB(Ye,We,zu,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Fn(22);const bi=co(25)?x1():void 0,en=fd();return Ri(k.createImportTypeNode(nt,Nt,bi,en,Re),he)}function y5(){return ct(),X()===9||X()===10}function hb(){switch(X()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ir(qk)||$m();case 67:u.reScanAsteriskEqualsToken();case 42:return h3();case 61:u.reScanQuestionToken();case 58:return ia();case 100:return Xx();case 54:return d_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return cb();case 41:return wn(y5)?cb(!0):$m();case 116:return Tc();case 110:{const he=Um();return X()===142&&!u.hasPrecedingLineBreak()?np(he):he}case 114:return wn(db)?iC():sb();case 19:return wn(az)?ww():Jk();case 23:return Uk();case 21:return Lw();case 102:return iC();case 131:return wn(a6)?rC():$m();case 16:return Me();default:return $m()}}function fE(he){switch(X()){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!he;case 41:return!he&&wn(y5);case 21:return!he&&wn(Vs);default:return wo()}}function Vs(){return ct(),X()===22||Dt(!1)||fE()}function Zk(){const he=de();let Re=hb();for(;!u.hasPrecedingLineBreak();)switch(X()){case 54:ct(),Re=Ri(k.createJSDocNonNullableType(Re,!0),he);break;case 58:if(wn(di))return Re;ct(),Re=Ri(k.createJSDocNullableType(Re,!0),he);break;case 23:if(Fn(23),fE()){const nt=jd();Fn(24),Re=Ri(k.createIndexedAccessTypeNode(Re,nt),he)}else Fn(24),Re=Ri(k.createArrayTypeNode(Re),he);break;default:return Re}return Re}function Nw(he){const Re=de();return Fn(he),Ri(k.createTypeOperatorNode(he,p4()),Re)}function n6(){if(co(96)){const he=qt(jd);if(Ot()||X()!==58)return he}}function k5(){const he=de(),Re=Q0(),nt=Ir(n6),Nt=k.createTypeParameterDeclaration(void 0,Re,nt);return Ri(Nt,he)}function h_(){const he=de();return Fn(140),Ri(k.createInferTypeNode(k5()),he)}function p4(){const he=X();switch(he){case 143:case 158:case 148:return Nw(he);case 140:return h_()}return Mt(Zk)}function Jf(he){if(y9()){const Re=b9();let nt;return u3(Re)?nt=he?F.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:nt=he?F.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,te(Re,nt),Re}}function Hh(he,Re,nt){const Nt=de(),bi=he===52,en=co(he);let zu=en&&Jf(bi)||Re();if(X()===he||en){const Hr=[zu];for(;co(he);)Hr.push(Jf(bi)||Re());zu=Ri(nt(Ka(Hr,Nt)),Nt)}return zu}function Em(){return Hh(51,p4,k.createIntersectionTypeNode)}function nC(){return Hh(52,Em,k.createUnionTypeNode)}function Pw(){return ct(),X()===105}function y9(){return X()===30||X()===21&&wn(fb)?!0:X()===105||X()===128&&wn(Pw)}function Yk(){if(XD(X())&&j1(!1),wo()||X()===110)return ct(),!0;if(X()===23||X()===19){const he=st.length;return _u(),he===st.length}return!1}function fb(){return ct(),!!(X()===22||X()===26||Yk()&&(X()===59||X()===28||X()===58||X()===64||X()===22&&(ct(),X()===39)))}function uC(){const he=de(),Re=wo()&&Ir(Qk),nt=jd();return Re?Ri(k.createTypePredicateNode(void 0,Re,nt),he):nt}function Qk(){const he=Q0();if(X()===142&&!u.hasPrecedingLineBreak())return ct(),he}function rC(){const he=de(),Re=Y0(131),nt=X()===110?Um():Q0(),Nt=co(142)?jd():void 0;return Ri(k.createTypePredicateNode(Re,nt,Nt),he)}function jd(){if(Jn&81920)return Yo(81920,jd);if(y9())return b9();const he=de(),Re=nC();if(!Ot()&&!u.hasPrecedingLineBreak()&&co(96)){const nt=qt(jd);Fn(58);const Nt=Mt(jd);Fn(59);const bi=Mt(jd);return Ri(k.createConditionalTypeNode(Re,nt,Nt,bi),he)}return Re}function F5(){return co(59)?jd():void 0}function A5(){switch(X()){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 wn(lb);default:return wo()}}function f3(){if(A5())return!0;switch(X()){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 iF()?!0:wo()}}function pt(){return X()!==19&&X()!==100&&X()!==86&&X()!==60&&f3()}function i1(){const he=Ei();he&&ra(!1);const Re=de();let nt=bh(!0),Nt;for(;Nt=Ho(28);)nt=Ur(nt,Nt,bh(!0),Re);return he&&ra(!0),nt}function g4(){return co(64)?bh(!0):void 0}function bh(he){if(Mw())return aC();const Re=oz(he)||eF(he);if(Re)return Re;const nt=de(),Nt=je(),bi=p3(0);return bi.kind===80&&X()===39?m3(nt,bi,he,Nt,void 0):Df(bi)&&u5(Ui())?Ur(bi,Tc(),bh(he),nt):kg(bi,nt,he)}function Mw(){return X()===127?vi()?!0:wn(Kw):!1}function S5(){return ct(),!u.hasPrecedingLineBreak()&&wo()}function aC(){const he=de();return ct(),!u.hasPrecedingLineBreak()&&(X()===42||f3())?Ri(k.createYieldExpression(Ho(42),bh(!0)),he):Ri(k.createYieldExpression(void 0,void 0),he)}function m3(he,Re,nt,Nt,bi){H.assert(X()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const en=k.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);Ri(en,Re.pos);const zu=Ka([en],en.pos,en.end),Hr=Y0(39),Lr=up(!!bi,nt),gr=k.createArrowFunction(bi,void 0,zu,void 0,Hr,Lr);return Ln(Ri(gr,he),Nt)}function oz(he){const Re=Hs();if(Re!==0)return Re===1?pb(!0,!0):Ir(()=>Xk(he))}function Hs(){return X()===21||X()===30||X()===134?wn(yg):X()===39?1:0}function yg(){if(X()===134&&(ct(),u.hasPrecedingLineBreak()||X()!==21&&X()!==30))return 0;const he=X(),Re=ct();if(he===21){if(Re===22)switch(ct()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(XD(Re)&&Re!==134&&wn(Oh))return ct()===130?0:1;if(!wo()&&Re!==110)return 0;switch(ct()){case 59:return 1;case 58:return ct(),X()===59||X()===28||X()===64||X()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return H.assert(he===30),!wo()&&X()!==87?0:Ie===1?wn(()=>{co(87);const Nt=ct();if(Nt===96)switch(ct()){case 64:case 32:case 44:return!1;default:return!0}else if(Nt===28||Nt===64)return!0;return!1})?1:0:2}function Xk(he){const Re=u.getTokenStart();if(xn!=null&&xn.has(Re))return;const nt=pb(!1,he);return nt||(xn||(xn=new Set)).add(Re),nt}function eF(he){if(X()===134&&wn(mb)===1){const Re=de(),nt=je(),Nt=EC(),bi=p3(0);return m3(Re,bi,he,nt,Nt)}}function mb(){if(X()===134){if(ct(),u.hasPrecedingLineBreak()||X()===39)return 0;const he=p3(0);if(!u.hasPrecedingLineBreak()&&he.kind===80&&X()===39)return 1}return 0}function pb(he,Re){const nt=de(),Nt=je(),bi=EC(),en=Oe(bi,VP)?2:0,zu=Xe();let Hr;if(Fn(21)){if(he)Hr=Cu(en,he);else{const f6=Cu(en,he);if(!f6)return;Hr=f6}if(!Fn(22)&&!he)return}else{if(!he)return;Hr=Wf()}const Lr=X()===59,gr=bn(59,!1);if(gr&&!he&&_s(gr))return;let fa=gr;for(;(fa==null?void 0:fa.kind)===196;)fa=fa.type;const _0=fa&&TB(fa);if(!he&&X()!==39&&(_0||X()!==19))return;const qs=X(),Ws=Y0(39),v4=qs===39||qs===19?up(Oe(bi,VP),Re):Q0();if(!Re&&Lr&&X()!==59)return;const qp=k.createArrowFunction(bi,zu,Hr,gr,Ws,v4);return Ln(Ri(qp,nt),Nt)}function up(he,Re){if(X()===19)return r6(he?2:0);if(X()!==27&&X()!==100&&X()!==86&&L9()&&!pt())return r6(16|(he?2:0));const nt=an;an=!1;const Nt=he?et(()=>bh(Re)):gt(()=>bh(Re));return an=nt,Nt}function kg(he,Re,nt){const Nt=Ho(58);if(!Nt)return he;let bi;return Ri(k.createConditionalExpression(he,Nt,Yo(s,()=>bh(!1)),bi=Y0(59),H4(bi)?bh(nt):dl(80,!1,F._0_expected,Uo(59))),Re)}function p3(he){const Re=de(),nt=uc();return mE(he,nt,Re)}function tF(he){return he===103||he===165}function mE(he,Re,nt){for(;;){Ui();const Nt=Oj(X());if(!(X()===43?Nt>=he:Nt>he)||X()===103&&mt())break;if(X()===130||X()===152){if(u.hasPrecedingLineBreak())break;{const en=X();ct(),Re=en===152?zw(Re,jd()):ar(Re,jd())}}else Re=Ur(Re,Tc(),p3(Nt),nt)}return Re}function iF(){return mt()&&X()===103?!1:Oj(X())>0}function zw(he,Re){return Ri(k.createSatisfiesExpression(he,Re),he.pos)}function Ur(he,Re,nt,Nt){return Ri(k.createBinaryExpression(he,Re,nt),Nt)}function ar(he,Re){return Ri(k.createAsExpression(he,Re),he.pos)}function pE(){const he=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(yh)),he)}function kf(){const he=de();return Ri(k.createDeleteExpression(Ct(yh)),he)}function Iw(){const he=de();return Ri(k.createTypeOfExpression(Ct(yh)),he)}function B5(){const he=de();return Ri(k.createVoidExpression(Ct(yh)),he)}function Rw(){return X()===135?$i()?!0:wn(Kw):!1}function gb(){const he=de();return Ri(k.createAwaitExpression(Ct(yh)),he)}function uc(){if(dD()){const nt=de(),Nt=f_();return X()===43?mE(Oj(X()),Nt,nt):Nt}const he=X(),Re=yh();if(X()===43){const nt=gs(We,Re.pos),{end:Nt}=Re;Re.kind===216?le(nt,Nt,F.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(H.assert(Sq(he)),le(nt,Nt,F.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,Uo(he)))}return Re}function yh(){switch(X()){case 40:case 41:case 55:case 54:return pE();case 91:return kf();case 114:return Iw();case 116:return B5();case 30:return Ie===1?E3(!0,void 0,void 0,!0):sC();case 135:if(Rw())return gb();default:return f_()}}function dD(){switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ie!==1)return!1;default:return!0}}function f_(){if(X()===46||X()===47){const Re=de();return Ri(k.createPrefixUnaryExpression(X(),Ct(g3)),Re)}else if(Ie===1&&X()===30&&wn(h4))return E3(!0);const he=g3();if(H.assert(Df(he)),(X()===46||X()===47)&&!u.hasPrecedingLineBreak()){const Re=X();return ct(),Ri(k.createPostfixUnaryExpression(he,Re),he.pos)}return he}function g3(){const he=de();let Re;return X()===102?wn(i6)?(Ve|=4194304,Re=Tc()):wn(Gk)?(ct(),ct(),Re=Ri(k.createMetaProperty(102,Cc()),he),Ve|=8388608):Re=$p():Re=X()===108?oC():$p(),ap(he,Re)}function $p(){const he=de(),Re=wd();return Ma(he,Re,!0)}function oC(){const he=de();let Re=Tc();if(X()===30){const nt=de(),Nt=Ir(_b);Nt!==void 0&&(le(nt,de(),F.super_may_not_use_type_arguments),lf()||(Re=k.createExpressionWithTypeArguments(Re,Nt)))}return X()===21||X()===25||X()===23?Re:(Y0(25,F.super_must_be_followed_by_an_argument_list_or_member_access),Ri(ge(Re,Di(!0,!0,!0)),he))}function E3(he,Re,nt,Nt=!1){const bi=de(),en=p_(he);let zu;if(en.kind===286){let Hr=jw(en),Lr;const gr=Hr[Hr.length-1];if((gr==null?void 0:gr.kind)===284&&!Vv(gr.openingElement.tagName,gr.closingElement.tagName)&&Vv(en.tagName,gr.closingElement.tagName)){const fa=gr.children.end,_0=Ri(k.createJsxElement(gr.openingElement,gr.children,Ri(k.createJsxClosingElement(Ri(J(""),fa,fa)),fa,fa)),gr.openingElement.pos,fa);Hr=Ka([...Hr.slice(0,Hr.length-1),_0],Hr.pos,fa),Lr=gr.closingElement}else Lr=A9(en,he),Vv(en.tagName,Lr.tagName)||(nt&&aE(nt)&&Vv(Lr.tagName,nt.tagName)?te(en.tagName,F.JSX_element_0_has_no_corresponding_closing_tag,JN(We,en.tagName)):te(Lr.tagName,F.Expected_corresponding_JSX_closing_tag_for_0,JN(We,en.tagName)));zu=Ri(k.createJsxElement(en,Hr,Lr),bi)}else en.kind===289?zu=Ri(k.createJsxFragment(en,jw(en),rp(he)),bi):(H.assert(en.kind===285),zu=en);if(!Nt&&he&&X()===30){const Hr=typeof Re>"u"?zu.pos:Re,Lr=Ir(()=>E3(!0,Hr));if(Lr){const gr=dl(28,!1);return wP(gr,Lr.pos,0),le(gs(We,Hr),Lr.end,F.JSX_expressions_must_have_one_parent_element),Ri(k.createBinaryExpression(zu,gr,Lr),bi)}}return zu}function Ow(){const he=de(),Re=k.createJsxText(u.getTokenValue(),ei===13);return ei=u.scanJsxToken(),Ri(Re,he)}function m_(he,Re){switch(Re){case 1:if(V7(he))te(he,F.JSX_fragment_has_no_corresponding_closing_tag);else{const nt=he.tagName,Nt=Math.min(gs(We,nt.pos),nt.end);le(Nt,nt.end,F.JSX_element_0_has_no_corresponding_closing_tag,JN(We,he.tagName))}return;case 31:case 7:return;case 12:case 13:return Ow();case 19:return k9(!1);case 30:return E3(!1,void 0,he);default:return H.assertNever(Re)}}function jw(he){const Re=[],nt=de(),Nt=ji;for(ji|=16384;;){const bi=m_(he,ei=u.reScanJsxToken());if(!bi||(Re.push(bi),aE(he)&&(bi==null?void 0:bi.kind)===284&&!Vv(bi.openingElement.tagName,bi.closingElement.tagName)&&Vv(he.tagName,bi.closingElement.tagName)))break}return ji=Nt,Ka(Re,nt)}function gE(){const he=de();return Ri(k.createJsxAttributes(To(13,sz)),he)}function p_(he){const Re=de();if(Fn(30),X()===32)return ca(),Ri(k.createJsxOpeningFragment(),Re);const nt=w5(),Nt=Jn&524288?void 0:d6(),bi=gE();let en;return X()===32?(ca(),en=k.createJsxOpeningElement(nt,Nt,bi)):(Fn(44),Fn(32,void 0,!1)&&(he?ct():ca()),en=k.createJsxSelfClosingElement(nt,Nt,bi)),Ri(en,Re)}function w5(){const he=de(),Re=Vw();if(gg(Re))return Re;let nt=Re;for(;co(25);)nt=Ri(ge(nt,Di(!0,!1,!1)),he);return nt}function Vw(){const he=de();Xu();const Re=X()===110,nt=$();return co(59)?(Xu(),Ri(k.createJsxNamespacedName(nt,$()),he)):Re?Ri(k.createToken(110),he):nt}function k9(he){const Re=de();if(!Fn(19))return;let nt,Nt;return X()!==20&&(he||(nt=Ho(26)),Nt=i1()),he?Fn(20):Fn(20,void 0,!1)&&ca(),Ri(k.createJsxExpression(nt,Nt),Re)}function sz(){if(X()===19)return Eb();const he=de();return Ri(k.createJsxAttribute(B0(),F9()),he)}function F9(){if(X()===64){if(Ku()===11)return ir();if(X()===19)return k9(!0);if(X()===30)return E3(!0);Qi(F.or_JSX_element_expected)}}function B0(){const he=de();Xu();const Re=$();return co(59)?(Xu(),Ri(k.createJsxNamespacedName(Re,$()),he)):Re}function Eb(){const he=de();Fn(19),Fn(26);const Re=i1();return Fn(20),Ri(k.createJsxSpreadAttribute(Re),he)}function A9(he,Re){const nt=de();Fn(31);const Nt=w5();return Fn(32,void 0,!1)&&(Re||!Vv(he.tagName,Nt)?ct():ca()),Ri(k.createJsxClosingElement(Nt),nt)}function rp(he){const Re=de();return Fn(31),Fn(32,F.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?ct():ca()),Ri(k.createJsxJsxClosingFragment(),Re)}function sC(){H.assert(Ie!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const he=de();Fn(30);const Re=jd();Fn(32);const nt=yh();return Ri(k.createTypeAssertion(Re,nt),he)}function S9(){return ct(),fh(X())||X()===23||lf()}function lz(){return X()===29&&wn(S9)}function nF(he){if(he.flags&64)return!0;if(O7(he)){let Re=he.expression;for(;O7(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;O7(he);)he.flags|=64,he=he.expression;return!0}}return!1}function ru(he,Re,nt){const Nt=Di(!0,!0,!0),bi=nt||nF(Re),en=bi?ae(Re,nt,Nt):ge(Re,Nt);if(bi&&ea(en.name)&&te(en.name,F.An_optional_chain_cannot_contain_private_identifiers),c5(Re)&&Re.typeArguments){const zu=Re.typeArguments.pos-1,Hr=gs(We,Re.typeArguments.end)+1;le(zu,Hr,F.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Ri(en,he)}function v1(he,Re,nt){let Nt;if(X()===24)Nt=dl(80,!0,F.An_element_access_expression_should_take_an_argument);else{const en=Qe(i1);Pm(en)&&(en.text=Uc(en.text)),Nt=en}Fn(24);const bi=nt||nF(Re)?ne(Re,nt,Nt):Ce(Re,Nt);return Ri(bi,he)}function Ma(he,Re,nt){for(;;){let Nt,bi=!1;if(nt&&lz()?(Nt=Y0(29),bi=fh(X())):bi=co(25),bi){Re=ru(he,Re,Nt);continue}if((Nt||!Ei())&&co(23)){Re=v1(he,Re,Nt);continue}if(lf()){Re=!Nt&&Re.kind===233?EE(he,Re.expression,Nt,Re.typeArguments):EE(he,Re,Nt,void 0);continue}if(!Nt){if(X()===54&&!u.hasPrecedingLineBreak()){ct(),Re=Ri(k.createNonNullExpression(Re),he);continue}const en=Ir(_b);if(en){Re=Ri(k.createExpressionWithTypeArguments(Re,en),he);continue}}return Re}}function lf(){return X()===15||X()===16}function EE(he,Re,nt,Nt){const bi=k.createTaggedTemplateExpression(Re,Nt,X()===15?(du(!0),ir()):Q(!0));return(nt||Re.flags&64)&&(bi.flags|=64),bi.questionDotToken=nt,Ri(bi,he)}function ap(he,Re){for(;;){Re=Ma(he,Re,!0);let nt;const Nt=Ho(29);if(Nt&&(nt=Ir(_b),lf())){Re=EE(he,Re,Nt,nt);continue}if(nt||X()===21){!Nt&&Re.kind===233&&(nt=Re.typeArguments,Re=Re.expression);const bi=Un(),en=Nt||nF(Re)?Se(Re,Nt,nt,bi):ve(Re,nt,bi);Re=Ri(en,he);continue}if(Nt){const bi=dl(80,!1,F.Identifier_expected);Re=Ri(ae(Re,Nt,bi),he)}break}return Re}function Un(){Fn(21);const he=R1(11,B9);return Fn(22),he}function _b(){if(Jn&524288||Ru()!==30)return;ct();const he=R1(20,jd);if(Ui()===32)return ct(),he&&lC()?he:void 0}function lC(){switch(X()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return u.hasPrecedingLineBreak()||iF()||!f3()}function wd(){switch(X()){case 15:u.getTokenFlags()&26656&&du(!1);case 9:case 10:case 11:return ir();case 110:case 108:case 106:case 112:case 97:return Tc();case 21:return _E();case 23:return hD();case 19:return dC();case 134:if(!wn(R0))break;return _3();case 60:return sF();case 86:return Jw();case 100:return _3();case 105:return uF();case 44:case 69:if(Sn()===14)return ir();break;case 16:return Q(!1);case 81:return uu()}return Q0(F.Expression_expected)}function _E(){const he=de(),Re=je();Fn(21);const nt=Qe(i1);return Fn(22),Ln(Ri(pe(nt),he),Re)}function DE(){const he=de();Fn(26);const Re=bh(!0);return Ri(k.createSpreadElement(Re),he)}function u6(){return X()===26?DE():X()===28?Ri(k.createOmittedExpression(),de()):bh(!0)}function B9(){return Yo(s,u6)}function hD(){const he=de(),Re=u.getTokenStart(),nt=Fn(23),Nt=u.hasPrecedingLineBreak(),bi=R1(15,u6);return vl(23,24,nt,Re),Ri(oe(bi,Nt),he)}function cC(){const he=de(),Re=je();if(Ho(26)){const fa=bh(!0);return Ln(Ri(k.createSpreadAssignment(fa),he),Re)}const nt=j1(!0);if(Tu(139))return lp(he,Re,nt,177,0);if(Tu(153))return lp(he,Re,nt,178,0);const Nt=Ho(42),bi=wo(),en=fn(),zu=Ho(58),Hr=Ho(54);if(Nt||X()===21||X()===30)return sp(he,Re,nt,Nt,en,zu,Hr);let Lr;if(bi&&X()!==59){const fa=Ho(64),_0=fa?Qe(()=>bh(!0)):void 0;Lr=k.createShorthandPropertyAssignment(en,_0),Lr.equalsToken=fa}else{Fn(59);const fa=Qe(()=>bh(!0));Lr=k.createPropertyAssignment(en,fa)}return Lr.modifiers=nt,Lr.questionToken=zu,Lr.exclamationToken=Hr,Ln(Ri(Lr,he),Re)}function dC(){const he=de(),Re=u.getTokenStart(),nt=Fn(19),Nt=u.hasPrecedingLineBreak(),bi=R1(12,cC,!0);return vl(19,20,nt,Re),Ri(se(bi,Nt),he)}function _3(){const he=Ei();ra(!1);const Re=de(),nt=je(),Nt=j1(!1);Fn(100);const bi=Ho(42),en=bi?1:0,zu=Oe(Nt,VP)?2:0,Hr=en&&zu?ii(g_):en?Xt(g_):zu?et(g_):g_(),Lr=Xe(),gr=bu(en|zu),fa=bn(59,!1),_0=r6(en|zu);ra(he);const qs=k.createFunctionExpression(Nt,bi,Hr,Lr,gr,fa,_0);return Ln(Ri(qs,Re),nt)}function g_(){return as()?sf():void 0}function uF(){const he=de();if(Fn(105),co(25)){const en=Cc();return Ri(k.createMetaProperty(105,en),he)}const Re=de();let nt=Ma(Re,wd(),!1),Nt;nt.kind===233&&(Nt=nt.typeArguments,nt=nt.expression),X()===29&&Qi(F.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,JN(We,nt));const bi=X()===21?Un():void 0;return Ri(Ne(nt,Nt,bi),he)}function fD(he,Re){const nt=de(),Nt=je(),bi=u.getTokenStart(),en=Fn(19,Re);if(en||he){const zu=u.hasPrecedingLineBreak(),Hr=To(1,qm);vl(19,20,en,bi);const Lr=Ln(Ri(fe(Hr,zu),nt),Nt);return X()===64&&(Qi(F.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),ct()),Lr}else{const zu=Wf();return Ln(Ri(fe(zu,void 0),nt),Nt)}}function r6(he,Re){const nt=vi();Da(!!(he&1));const Nt=$i();Ta(!!(he&2));const bi=an;an=!1;const en=Ei();en&&ra(!1);const zu=fD(!!(he&16),Re);return en&&ra(!0),an=bi,Da(nt),Ta(Nt),zu}function Db(){const he=de(),Re=je();return Fn(27),Ln(Ri(k.createEmptyStatement(),he),Re)}function w9(){const he=de(),Re=je();Fn(101);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=qm(),zu=co(93)?qm():void 0;return Ln(Ri(Ge(bi,en,zu),he),Re)}function rF(){const he=de(),Re=je();Fn(92);const nt=qm();Fn(117);const Nt=u.getTokenStart(),bi=Fn(21),en=Qe(i1);return vl(21,22,bi,Nt),co(27),Ln(Ri(k.createDoStatement(nt,en),he),Re)}function xb(){const he=de(),Re=je();Fn(117);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=qm();return Ln(Ri(Ae(bi,en),he),Re)}function E4(){const he=de(),Re=je();Fn(99);const nt=Ho(135);Fn(21);let Nt;X()!==27&&(X()===115||X()===121||X()===87||X()===160&&wn(mD)||X()===135&&wn(N9)?Nt=yb(!0):Nt=Et(i1));let bi;if(nt?Fn(165):co(165)){const en=Qe(()=>bh(!0));Fn(22),bi=Ke(nt,Nt,en,qm())}else if(co(103)){const en=Qe(i1);Fn(22),bi=k.createForInStatement(Nt,en,qm())}else{Fn(27);const en=X()!==27&&X()!==22?Qe(i1):void 0;Fn(27);const zu=X()!==22?Qe(i1):void 0;Fn(22),bi=De(Nt,en,zu,qm())}return Ln(Ri(bi,he),Re)}function hC(he){const Re=de(),nt=je();Fn(he===252?83:88);const Nt=Lc()?void 0:Q0();cl();const bi=he===252?k.createBreakStatement(Nt):k.createContinueStatement(Nt);return Ln(Ri(bi,Re),nt)}function yc(){const he=de(),Re=je();Fn(107);const nt=Lc()?void 0:Qe(i1);return cl(),Ln(Ri(k.createReturnStatement(nt),he),Re)}function md(){const he=de(),Re=je();Fn(118);const nt=u.getTokenStart(),Nt=Fn(21),bi=Qe(i1);vl(21,22,Nt,nt);const en=bo(67108864,qm);return Ln(Ri(k.createWithStatement(bi,en),he),Re)}function T9(){const he=de(),Re=je();Fn(84);const nt=Qe(i1);Fn(59);const Nt=To(3,qm);return Ln(Ri(k.createCaseClause(nt,Nt),he),Re)}function O1(){const he=de();Fn(90),Fn(59);const Re=To(3,qm);return Ri(k.createDefaultClause(Re),he)}function Ff(){return X()===84?T9():O1()}function vb(){const he=de();Fn(19);const Re=To(2,Ff);return Fn(20),Ri(k.createCaseBlock(Re),he)}function _4(){const he=de(),Re=je();Fn(109),Fn(21);const nt=Qe(i1);Fn(22);const Nt=vb();return Ln(Ri(k.createSwitchStatement(nt,Nt),he),Re)}function fC(){const he=de(),Re=je();Fn(111);let nt=u.hasPrecedingLineBreak()?void 0:Qe(i1);return nt===void 0&&(Ni++,nt=Ri(J(""),de())),Il()||Ya(nt),Ln(Ri(k.createThrowStatement(nt),he),Re)}function T5(){const he=de(),Re=je();Fn(113);const nt=fD(!1),Nt=X()===85?n1():void 0;let bi;return(!Nt||X()===98)&&(Fn(98,F.catch_or_finally_expected),bi=fD(!1)),Ln(Ri(k.createTryStatement(nt,Nt,bi),he),Re)}function n1(){const he=de();Fn(85);let Re;co(21)?(Re=cf(),Fn(22)):Re=void 0;const nt=fD(!1);return Ri(k.createCatchClause(Re,nt),he)}function aF(){const he=de(),Re=je();return Fn(89),cl(),Ln(Ri(k.createDebuggerStatement(),he),Re)}function op(){const he=de();let Re=je(),nt;const Nt=X()===21,bi=Qe(i1);return at(bi)&&co(59)?nt=k.createLabeledStatement(bi,qm()):(Il()||Ya(bi),nt=Be(bi),Nt&&(Re=!1)),Ln(Ri(nt,he),Re)}function a6(){return ct(),fh(X())&&!u.hasPrecedingLineBreak()}function Hw(){return ct(),X()===86&&!u.hasPrecedingLineBreak()}function R0(){return ct(),X()===100&&!u.hasPrecedingLineBreak()}function Kw(){return ct(),(fh(X())||X()===9||X()===10||X()===11)&&!u.hasPrecedingLineBreak()}function oF(){for(;;)switch(X()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return _m();case 135:return o6();case 120:case 156:return S5();case 144:case 145:return z9();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const he=X();if(ct(),u.hasPrecedingLineBreak())return!1;if(he===138&&X()===156)return!0;continue;case 162:return ct(),X()===19||X()===80||X()===95;case 102:return ct(),X()===11||X()===42||X()===19||fh(X());case 95:let Re=ct();if(Re===156&&(Re=wn(ct)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ct();continue;default:return!1}}function mC(){return wn(oF)}function L9(){switch(X()){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 mC()||wn(lb);case 87:case 95:return mC();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 mC()||!wn(a6);default:return f3()}}function Kh(){return ct(),as()||X()===19||X()===23}function D3(){return wn(Kh)}function mD(){return Cb(!0)}function Cb(he){return ct(),he&&X()===165?!1:(as()||X()===19)&&!u.hasPrecedingLineBreak()}function _m(){return wn(Cb)}function N9(he){return ct()===160?Cb(he):!1}function o6(){return wn(N9)}function qm(){switch(X()){case 27:return Db();case 19:return fD(!1);case 115:return gC(de(),je(),void 0);case 121:if(D3())return gC(de(),je(),void 0);break;case 135:if(o6())return gC(de(),je(),void 0);break;case 160:if(_m())return gC(de(),je(),void 0);break;case 100:return kb(de(),je(),void 0);case 86:return x4(de(),je(),void 0);case 101:return w9();case 92:return rF();case 117:return xb();case 99:return E4();case 88:return hC(251);case 83:return hC(252);case 107:return yc();case 118:return md();case 109:return _4();case 111:return fC();case 113:case 85:case 98:return T5();case 89:return aF();case 60:return L5();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(mC())return L5();break}return op()}function bb(he){return he.kind===138}function L5(){const he=de(),Re=je(),nt=j1(!0);if(Oe(nt,bb)){const bi=cz(he);if(bi)return bi;for(const en of nt)en.flags|=33554432;return bo(33554432,()=>P9(he,Re,nt))}else return P9(he,Re,nt)}function cz(he){return bo(33554432,()=>{const Re=fc(ji,he);if(Re)return Cl(Re)})}function P9(he,Re,nt){switch(X()){case 115:case 121:case 87:case 160:case 135:return gC(he,Re,nt);case 100:return kb(he,Re,nt);case 86:return x4(he,Re,nt);case 120:return Ht(he,Re,nt);case 156:return Oi(he,Re,nt);case 94:return Jr(he,Re,nt);case 162:case 144:case 145:return Af(he,Re,nt);case 102:return P5(he,Re,nt);case 95:switch(ct(),X()){case 90:case 64:return mte(he,Re,nt);case 130:return h6(he,Re,nt);default:return xC(he,Re,nt)}default:if(nt){const Nt=dl(282,!0,F.Declaration_expected);return BP(Nt,he),Nt.modifiers=nt,Nt}return}}function M9(){return ct()===11}function z9(){return ct(),!u.hasPrecedingLineBreak()&&(wo()||X()===11)}function pC(he,Re){if(X()!==19){if(he&4){Eu();return}if(Lc()){cl();return}}return r6(he,Re)}function $f(){const he=de();if(X()===28)return Ri(k.createOmittedExpression(),he);const Re=Ho(26),nt=_u(),Nt=g4();return Ri(k.createBindingElement(Re,void 0,nt,Nt),he)}function x3(){const he=de(),Re=Ho(26),nt=as();let Nt=fn(),bi;nt&&X()!==59?(bi=Nt,Nt=void 0):(Fn(59),bi=_u());const en=g4();return Ri(k.createBindingElement(Re,Nt,bi,en),he)}function I9(){const he=de();Fn(19);const Re=Qe(()=>R1(9,x3));return Fn(20),Ri(k.createObjectBindingPattern(Re),he)}function R9(){const he=de();Fn(23);const Re=Qe(()=>R1(10,$f));return Fn(24),Ri(k.createArrayBindingPattern(Re),he)}function Ks(){return X()===19||X()===23||X()===81||as()}function _u(he){return X()===23?R9():X()===19?I9():sf(he)}function Dm(){return cf(!0)}function cf(he){const Re=de(),nt=je(),Nt=_u(F.Private_identifiers_are_not_allowed_in_variable_declarations);let bi;he&&Nt.kind===80&&X()===54&&!u.hasPrecedingLineBreak()&&(bi=Tc());const en=F5(),zu=tF(X())?void 0:g4(),Hr=Je(Nt,bi,en,zu);return Ln(Ri(Hr,Re),nt)}function yb(he){const Re=de();let nt=0;switch(X()){case 115:break;case 121:nt|=1;break;case 87:nt|=2;break;case 160:nt|=4;break;case 135:H.assert(o6()),nt|=6,ct();break;default:H.fail()}ct();let Nt;if(X()===165&&wn(Ww))Nt=Wf();else{const bi=mt();oa(he),Nt=R1(8,he?cf:Dm),oa(bi)}return Ri(ft(Nt,nt),Re)}function Ww(){return Oh()&&ct()===22}function gC(he,Re,nt){const Nt=yb(!1);cl();const bi=xe(nt,Nt);return Ln(Ri(bi,he),Re)}function kb(he,Re,nt){const Nt=$i(),bi=tE(nt);Fn(100);const en=Ho(42),zu=bi&2048?g_():sf(),Hr=en?1:0,Lr=bi&1024?2:0,gr=Xe();bi&32&&Ta(!0);const fa=bu(Hr|Lr),_0=bn(59,!1),qs=pC(Hr|Lr,F.or_expected);Ta(Nt);const Ws=k.createFunctionDeclaration(nt,en,zu,gr,fa,_0,qs);return Ln(Ri(Ws,he),Re)}function s6(){if(X()===137)return Fn(137);if(X()===11&&wn(ct)===21)return Ir(()=>{const he=ir();return he.text==="constructor"?he:void 0})}function Zm(he,Re,nt){return Ir(()=>{if(s6()){const Nt=Xe(),bi=bu(0),en=bn(59,!1),zu=pC(0,F.or_expected),Hr=k.createConstructorDeclaration(nt,bi,zu);return Hr.typeParameters=Nt,Hr.type=en,Ln(Ri(Hr,he),Re)}})}function sp(he,Re,nt,Nt,bi,en,zu,Hr){const Lr=Nt?1:0,gr=Oe(nt,VP)?2:0,fa=Xe(),_0=bu(Lr|gr),qs=bn(59,!1),Ws=pC(Lr|gr,Hr),v4=k.createMethodDeclaration(nt,Nt,bi,en,fa,_0,qs,Ws);return v4.exclamationToken=zu,Ln(Ri(v4,he),Re)}function l6(he,Re,nt,Nt,bi){const en=!bi&&!u.hasPrecedingLineBreak()?Ho(54):void 0,zu=F5(),Hr=Yo(90112,g4);wl(Nt,zu,Hr);const Lr=k.createPropertyDeclaration(nt,Nt,bi||en,zu,Hr);return Ln(Ri(Lr,he),Re)}function Up(he,Re,nt){const Nt=Ho(42),bi=fn(),en=Ho(58);return Nt||X()===21||X()===30?sp(he,Re,nt,Nt,bi,en,void 0,F.or_expected):l6(he,Re,nt,bi,en)}function lp(he,Re,nt,Nt,bi){const en=fn(),zu=Xe(),Hr=bu(0),Lr=bn(59,!1),gr=pC(bi),fa=Nt===177?k.createGetAccessorDeclaration(nt,en,Hr,Lr,gr):k.createSetAccessorDeclaration(nt,en,Hr,gr);return fa.typeParameters=zu,jf(fa)&&(fa.type=Lr),Ln(Ri(fa,he),Re)}function N5(){let he;if(X()===60)return!0;for(;XD(X());){if(he=X(),qse(he))return!0;ct()}if(X()===42||(tt()&&(he=X(),ct()),X()===23))return!0;if(he!==void 0){if(!uf(he)||he===153||he===139)return!0;switch(X()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Lc()}}return!1}function Fb(he,Re,nt){Y0(126);const Nt=Pc(),bi=Ln(Ri(k.createClassStaticBlockDeclaration(Nt),he),Re);return bi.modifiers=nt,bi}function Pc(){const he=vi(),Re=$i();Da(!1),Ta(!0);const nt=fD(!1);return Da(he),Ta(Re),nt}function dz(){if($i()&&X()===135){const he=de(),Re=Q0(F.Expression_expected);ct();const nt=Ma(he,Re,!0);return ap(he,nt)}return g3()}function D4(){const he=de();if(!co(60))return;const Re=Pe(dz);return Ri(k.createDecorator(Re),he)}function Gw(he,Re,nt){const Nt=de(),bi=X();if(X()===87&&Re){if(!Ir(Nr))return}else{if(nt&&X()===126&&wn(vE))return;if(he&&X()===126)return;if(!nd())return}return Ri(Y(bi),Nt)}function j1(he,Re,nt){const Nt=de();let bi,en,zu,Hr=!1,Lr=!1,gr=!1;if(he&&X()===60)for(;en=D4();)bi=xi(bi,en);for(;zu=Gw(Hr,Re,nt);)zu.kind===126&&(Hr=!0),bi=xi(bi,zu),Lr=!0;if(Lr&&he&&X()===60)for(;en=D4();)bi=xi(bi,en),gr=!0;if(gr)for(;zu=Gw(Hr,Re,nt);)zu.kind===126&&(Hr=!0),bi=xi(bi,zu);return bi&&Ka(bi,Nt)}function EC(){let he;if(X()===134){const Re=de();ct();const nt=Ri(Y(134),Re);he=Ka([nt],Re)}return he}function Ab(){const he=de(),Re=je();if(X()===27)return ct(),Ln(Ri(k.createSemicolonClassElement(),he),Re);const nt=j1(!0,!0,!0);if(X()===126&&wn(vE))return Fb(he,Re,nt);if(Tu(139))return lp(he,Re,nt,177,0);if(Tu(153))return lp(he,Re,nt,178,0);if(X()===137||X()===11){const Nt=Zm(he,Re,nt);if(Nt)return Nt}if(p0())return Gf(he,Re,nt);if(fh(X())||X()===11||X()===9||X()===42||X()===23)if(Oe(nt,bb)){for(const bi of nt)bi.flags|=33554432;return bo(33554432,()=>Up(he,Re,nt))}else return Up(he,Re,nt);if(nt){const Nt=dl(80,!0,F.Declaration_expected);return l6(he,Re,nt,Nt,void 0)}return H.fail("Should not have attempted to parse class member declaration.")}function sF(){const he=de(),Re=je(),nt=j1(!0);if(X()===86)return Ol(he,Re,nt,231);const Nt=dl(282,!0,F.Expression_expected);return BP(Nt,he),Nt.modifiers=nt,Nt}function Jw(){return Ol(de(),je(),void 0,231)}function x4(he,Re,nt){return Ol(he,Re,nt,263)}function Ol(he,Re,nt,Nt){const bi=$i();Fn(86);const en=xE(),zu=Xe();Oe(nt,L7)&&Ta(!0);const Hr=v3();let Lr;Fn(19)?(Lr=be(),Fn(20)):Lr=Wf(),Ta(bi);const gr=Nt===263?k.createClassDeclaration(nt,en,zu,Hr,Lr):k.createClassExpression(nt,en,zu,Hr,Lr);return Ln(Ri(gr,he),Re)}function xE(){return as()&&!c6()?Ch(as()):void 0}function c6(){return X()===119&&wn(uh)}function v3(){if(R())return To(22,_C)}function _C(){const he=de(),Re=X();H.assert(Re===96||Re===119),ct();const nt=R1(7,$w);return Ri(k.createHeritageClause(Re,nt),he)}function $w(){const he=de(),Re=g3();if(Re.kind===233)return Re;const nt=d6();return Ri(k.createExpressionWithTypeArguments(Re,nt),he)}function d6(){return X()===30?Vh(20,jd,30,32):void 0}function R(){return X()===96||X()===119}function be(){return To(5,Ab)}function Ht(he,Re,nt){Fn(120);const Nt=Q0(),bi=Xe(),en=v3(),zu=$k(),Hr=k.createInterfaceDeclaration(nt,Nt,bi,en,zu);return Ln(Ri(Hr,he),Re)}function Oi(he,Re,nt){Fn(156),u.hasPrecedingLineBreak()&&Qi(F.Line_break_not_permitted_here);const Nt=Q0(),bi=Xe();Fn(64);const en=X()===141&&Ir(qk)||jd();cl();const zu=k.createTypeAliasDeclaration(nt,Nt,bi,en);return Ln(Ri(zu,he),Re)}function yu(){const he=de(),Re=je(),nt=fn(),Nt=Qe(g4);return Ln(Ri(k.createEnumMember(nt,Nt),he),Re)}function Jr(he,Re,nt){Fn(94);const Nt=Q0();let bi;Fn(19)?(bi=me(()=>R1(6,yu)),Fn(20)):bi=Wf();const en=k.createEnumDeclaration(nt,Nt,bi);return Ln(Ri(en,he),Re)}function br(){const he=de();let Re;return Fn(19)?(Re=To(1,qm),Fn(20)):Re=Wf(),Ri(k.createModuleBlock(Re),he)}function Ea(he,Re,nt,Nt){const bi=Nt&32,en=Nt&8?Cc():Q0(),zu=co(25)?Ea(de(),!1,void 0,8|bi):br(),Hr=k.createModuleDeclaration(nt,en,zu,Nt);return Ln(Ri(Hr,he),Re)}function Ao(he,Re,nt){let Nt=0,bi;X()===162?(bi=Q0(),Nt|=2048):(bi=ir(),bi.text=Uc(bi.text));let en;X()===19?en=br():cl();const zu=k.createModuleDeclaration(nt,bi,en,Nt);return Ln(Ri(zu,he),Re)}function Af(he,Re,nt){let Nt=0;if(X()===162)return Ao(he,Re,nt);if(co(145))Nt|=32;else if(Fn(144),X()===11)return Ao(he,Re,nt);return Ea(he,Re,nt,Nt)}function Uf(){return X()===149&&wn(Fr)}function Fr(){return ct()===21}function vE(){return ct()===19}function gn(){return ct()===44}function h6(he,Re,nt){Fn(130),Fn(145);const Nt=Q0();cl();const bi=k.createNamespaceExportDeclaration(Nt);return bi.modifiers=nt,Ln(Ri(bi,he),Re)}function P5(he,Re,nt){Fn(102);const Nt=u.getTokenFullStart();let bi;wo()&&(bi=Q0());let en=!1;if(X()!==161&&(bi==null?void 0:bi.escapedText)==="type"&&(wo()||O9())&&(en=!0,bi=wo()?Q0():void 0),bi&&!cF())return E_(he,Re,nt,bi,en);let zu;(bi||X()===42||X()===19)&&(zu=M5(bi,Nt,en),Fn(161));const Hr=j9(),Lr=X();let gr;(Lr===118||Lr===132)&&!u.hasPrecedingLineBreak()&&(gr=DC(Lr)),cl();const fa=k.createImportDeclaration(nt,zu,Hr,gr);return Ln(Ri(fa,he),Re)}function lF(){const he=de(),Re=fh(X())?Cc():Rl(11);Fn(59);const nt=bh(!0);return Ri(k.createImportAttribute(Re,nt),he)}function DC(he,Re){const nt=de();Re||Fn(he);const Nt=u.getTokenStart();if(Fn(19)){const bi=u.hasPrecedingLineBreak(),en=R1(24,lF,!0);if(!Fn(20)){const zu=qu(st);zu&&zu.code===F._0_expected.code&&Es(zu,hB(Ye,We,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Ri(k.createImportAttributes(en,bi,he),nt)}else{const bi=Ka([],de(),void 0,!1);return Ri(k.createImportAttributes(bi,!1,he),nt)}}function O9(){return X()===42||X()===19}function cF(){return X()===28||X()===161}function E_(he,Re,nt,Nt,bi){Fn(64);const en=C3();cl();const zu=k.createImportEqualsDeclaration(nt,bi,Nt,en);return Ln(Ri(zu,he),Re)}function M5(he,Re,nt){let Nt;return(!he||co(28))&&(Nt=X()===42?ZK():hz(275)),Ri(k.createImportClause(nt,he,Nt),Re)}function C3(){return Uf()?Uw():Ee(!1)}function Uw(){const he=de();Fn(149),Fn(21);const Re=j9();return Fn(22),Ri(k.createExternalModuleReference(Re),he)}function j9(){if(X()===11){const he=ir();return he.text=Uc(he.text),he}else return i1()}function ZK(){const he=de();Fn(42),Fn(130);const Re=Q0();return Ri(k.createNamespaceImport(Re),he)}function hz(he){const Re=de(),nt=he===275?k.createNamedImports(Vh(23,pD,19,20)):k.createNamedExports(Vh(23,__,19,20));return Ri(nt,Re)}function __(){const he=je();return Ln(qw(281),he)}function pD(){return qw(276)}function qw(he){const Re=de();let nt=uf(X())&&!wo(),Nt=u.getTokenStart(),bi=u.getTokenEnd(),en=!1,zu,Hr=!0,Lr=Cc();if(Lr.escapedText==="type")if(X()===130){const _0=Cc();if(X()===130){const qs=Cc();fh(X())?(en=!0,zu=_0,Lr=fa(),Hr=!1):(zu=Lr,Lr=qs,Hr=!1)}else fh(X())?(zu=Lr,Hr=!1,Lr=fa()):(en=!0,Lr=_0)}else fh(X())&&(en=!0,Lr=fa());Hr&&X()===130&&(zu=Lr,Fn(130),Lr=fa()),he===276&&nt&&le(Nt,bi,F.Identifier_expected);const gr=he===276?k.createImportSpecifier(en,zu,Lr):k.createExportSpecifier(en,zu,Lr);return Ri(gr,Re);function fa(){return nt=uf(X())&&!wo(),Nt=u.getTokenStart(),bi=u.getTokenEnd(),Cc()}}function D_(he){return Ri(k.createNamespaceExport(Cc()),he)}function xC(he,Re,nt){const Nt=$i();Ta(!0);let bi,en,zu;const Hr=co(156),Lr=de();co(42)?(co(130)&&(bi=D_(Lr)),Fn(161),en=j9()):(bi=hz(279),(X()===161||X()===11&&!u.hasPrecedingLineBreak())&&(Fn(161),en=j9()));const gr=X();en&&(gr===118||gr===132)&&!u.hasPrecedingLineBreak()&&(zu=DC(gr)),cl(),Ta(Nt);const fa=k.createExportDeclaration(nt,Hr,bi,en,zu);return Ln(Ri(fa,he),Re)}function mte(he,Re,nt){const Nt=$i();Ta(!0);let bi;co(64)?bi=!0:Fn(90);const en=bh(!0);cl(),Ta(Nt);const zu=k.createExportAssignment(nt,bi,en);return Ln(Ri(zu,he),Re)}let CE;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(CE||(CE={}));let dF;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(dF||(dF={}));let YK;(he=>{function Re(gr,fa,_0){yr("file.js",gr,99,void 0,1,0),u.setText(gr,fa,_0),ei=u.scan();const qs=nt(),Ws=Cn("file.js",99,1,!1,[],Y(1),0,Is),v4=v7(st,Ws);return St&&(Ws.jsDocDiagnostics=v7(St,Ws)),Ba(),qs?{jsDocTypeExpression:qs,diagnostics:v4}:void 0}he.parseJSDocTypeExpressionForTests=Re;function nt(gr){const fa=de(),_0=(gr?co:Fn)(19),qs=bo(16777216,bg);(!gr||_0)&&hd(20);const Ws=k.createJSDocTypeExpression(qs);return Dn(Ws),Ri(Ws,fa)}he.parseJSDocTypeExpression=nt;function Nt(){const gr=de(),fa=co(19),_0=de();let qs=Ee(!1);for(;X()===81;)pr(),Qt(),qs=Ri(k.createJSDocMemberName(qs,Q0()),_0);fa&&hd(20);const Ws=k.createJSDocNameReference(qs);return Dn(Ws),Ri(Ws,gr)}he.parseJSDocNameReference=Nt;function bi(gr,fa,_0){yr("",gr,99,void 0,1,0);const qs=bo(16777216,()=>Lr(fa,_0)),v4=v7(st,{languageVariant:0,text:gr});return Ba(),qs?{jsDoc:qs,diagnostics:v4}:void 0}he.parseIsolatedJSDocComment=bi;function en(gr,fa,_0){const qs=ei,Ws=st.length,v4=Pi,qp=bo(16777216,()=>Lr(fa,_0));return ks(qp,gr),Jn&524288&&(St||(St=[]),St.push(...st)),ei=qs,st.length=Ws,Pi=v4,qp}he.parseJSDocComment=en;let zu;(gr=>{gr[gr.BeginningOfLine=0]="BeginningOfLine",gr[gr.SawAsterisk=1]="SawAsterisk",gr[gr.SavingComments=2]="SavingComments",gr[gr.SavingBackticks=3]="SavingBackticks"})(zu||(zu={}));let Hr;(gr=>{gr[gr.Property=1]="Property",gr[gr.Parameter=2]="Parameter",gr[gr.CallbackParameter=4]="CallbackParameter"})(Hr||(Hr={}));function Lr(gr=0,fa){const _0=We,qs=fa===void 0?_0.length:gr+fa;if(fa=qs-gr,H.assert(gr>=0),H.assert(gr<=qs),H.assert(qs<=_0.length),!Jce(_0,gr))return;let Ws,v4,qp,f6,b3,Vd=[];const gD=[],fz=ji;ji|=1<<25;const Zw=u.scanRange(gr+3,fa-5,Yw);return ji=fz,Zw;function Yw(){let sn=1,Qu,Hu=gr-(_0.lastIndexOf(` -`,gr)+1)+4;function Or(D0){Qu||(Qu=Hu),Vd.push(D0),Hu+=D0.length}for(Qt();Sb(5););Sb(4)&&(sn=0,Hu=0);e:for(;;){switch(X()){case 60:pte(Vd),b3||(b3=de()),gte(gz(Hu)),sn=0,Qu=void 0;break;case 4:Vd.push(u.getTokenText()),sn=0,Hu=0;break;case 42:const D0=u.getTokenText();sn===1?(sn=2,Or(D0)):(H.assert(sn===0),sn=1,Hu+=D0.length);break;case 5:H.assert(sn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const qc=u.getTokenText();Qu!==void 0&&Hu+qc.length>Qu&&Vd.push(qc.slice(Qu-Hu)),Hu+=qc.length;break;case 1:break e;case 82:sn=2,Or(u.getTokenValue());break;case 19:sn=2;const _D=u.getTokenFullStart(),v_=u.getTokenEnd()-1,Zc=Ms(v_);if(Zc){f6||mz(Vd),gD.push(Ri(k.createJSDocText(Vd.join("")),f6??gr,_D)),gD.push(Zc),Vd=[],f6=u.getTokenEnd();break}default:sn=2,Or(u.getTokenText());break}sn===2?Li(!1):Qt()}const Vr=Vd.join("").trimEnd();gD.length&&Vr.length&&gD.push(Ri(k.createJSDocText(Vr),f6??gr,b3)),gD.length&&Ws&&H.assertIsDefined(b3,"having parsed tags implies that the end of the comment span should be set");const Rs=Ws&&Ka(Ws,v4,qp);return Ri(k.createJSDocComment(gD.length?Ka(gD,gr,b3):Vr.length?Vr:void 0,Rs),gr,qs)}function mz(sn){for(;sn.length&&(sn[0]===` -`||sn[0]==="\r");)sn.shift()}function pte(sn){for(;sn.length;){const Qu=sn[sn.length-1].trimEnd();if(Qu==="")sn.pop();else if(Qu.lengthqc&&(Or.push(z5.slice(qc-sn)),D0=2),sn+=z5.length;break;case 19:D0=2;const QK=u.getTokenFullStart(),tT=u.getTokenEnd()-1,pF=Ms(tT);pF?(Vr.push(Ri(k.createJSDocText(Or.join("")),Rs??Hu,QK)),Vr.push(pF),Or=[],Rs=u.getTokenEnd()):_D(u.getTokenText());break;case 62:D0===3?D0=2:D0=3,_D(u.getTokenText());break;case 82:D0!==3&&(D0=2),_D(u.getTokenValue());break;case 42:if(D0===0){D0=1,sn+=1;break}default:D0!==3&&(D0=2),_D(u.getTokenText());break}D0===2||D0===3?v_=Li(D0===3):v_=Qt()}mz(Or);const Zc=Or.join("").trimEnd();if(Vr.length)return Zc.length&&Vr.push(Ri(k.createJSDocText(Zc),Rs??Hu)),Ka(Vr,Hu,u.getTokenEnd());if(Zc.length)return Zc}function Ms(sn){const Qu=Ir(Mc);if(!Qu)return;Qt(),Ym();const Hu=de();let Or=fh(X())?Ee(!0):void 0;if(Or)for(;X()===81;)pr(),Qt(),Or=Ri(k.createJSDocMemberName(Or,Q0()),Hu);const Vr=[];for(;X()!==20&&X()!==4&&X()!==1;)Vr.push(u.getTokenText()),Qt();const Rs=Qu==="link"?k.createJSDocLink:Qu==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Ri(Rs(Or,Vr.join("")),sn,u.getTokenEnd())}function Mc(){if(ED(),X()===19&&Qt()===60&&fh(Qt())){const sn=u.getTokenValue();if(m6(sn))return sn}}function m6(sn){return sn==="link"||sn==="linkcode"||sn==="linkplain"}function hF(sn,Qu,Hu,Or){return Ri(k.createJSDocUnknownTag(Qu,C4(sn,de(),Hu,Or)),sn)}function gte(sn){sn&&(Ws?Ws.push(sn):(Ws=[sn],v4=sn.pos),qp=sn.end)}function x_(){return ED(),X()===19?nt():void 0}function V9(){const sn=Sb(23);sn&&Ym();const Qu=Sb(62),Hu=_z();return Qu&&Ko(62),sn&&(Ym(),Ho(64)&&i1(),Fn(24)),{name:Hu,isBracketed:sn}}function N(sn){switch(sn.kind){case 151:return!0;case 188:return N(sn.elementType);default:return X4(sn)&&at(sn.typeName)&&sn.typeName.escapedText==="Object"&&!sn.typeArguments}}function W(sn,Qu,Hu,Or){let Vr=x_(),Rs=!Vr;ED();const{name:D0,isBracketed:qc}=V9(),_D=ED();Rs&&!wn(Mc)&&(Vr=x_());const v_=C4(sn,de(),Or,_D),Zc=ee(Vr,D0,Hu,Or);Zc&&(Vr=Zc,Rs=!0);const z5=Hu===1?k.createJSDocPropertyTag(Qu,D0,qc,Vr,Rs,v_):k.createJSDocParameterTag(Qu,D0,qc,Vr,Rs,v_);return Ri(z5,sn)}function ee(sn,Qu,Hu,Or){if(sn&&N(sn.type)){const Vr=de();let Rs,D0;for(;Rs=Ir(()=>Wn(Hu,Or,Qu));)Rs.kind===348||Rs.kind===355?D0=xi(D0,Rs):Rs.kind===352&&te(Rs.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(D0){const qc=Ri(k.createJSDocTypeLiteral(D0,sn.type.kind===188),Vr);return Ri(k.createJSDocTypeExpression(qc),Vr)}}}function ke(sn,Qu,Hu,Or){Oe(Ws,EY)&&le(Qu.pos,u.getTokenStart(),F._0_tag_already_specified,Qr(Qu.escapedText));const Vr=x_();return Ri(k.createJSDocReturnTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function dt(sn,Qu,Hu,Or){Oe(Ws,XP)&&le(Qu.pos,u.getTokenStart(),F._0_tag_already_specified,Qr(Qu.escapedText));const Vr=nt(!0),Rs=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocTypeTag(Qu,Vr,Rs),sn)}function Bi(sn,Qu,Hu,Or){const Rs=X()===23||wn(()=>Qt()===60&&fh(Qt())&&m6(u.getTokenValue()))?void 0:Nt(),D0=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocSeeTag(Qu,Rs,D0),sn)}function au(sn,Qu,Hu,Or){const Vr=x_(),Rs=C4(sn,de(),Hu,Or);return Ri(k.createJSDocThrowsTag(Qu,Vr,Rs),sn)}function za(sn,Qu,Hu,Or){const Vr=de(),Rs=i0();let D0=u.getTokenFullStart();const qc=C4(sn,D0,Hu,Or);qc||(D0=u.getTokenFullStart());const _D=typeof qc!="string"?Ka(Hi([Ri(Rs,Vr,D0)],qc),Vr):Rs.text+qc;return Ri(k.createJSDocAuthorTag(Qu,_D),sn)}function i0(){const sn=[];let Qu=!1,Hu=u.getToken();for(;Hu!==1&&Hu!==4;){if(Hu===30)Qu=!0;else{if(Hu===60&&!Qu)break;if(Hu===32&&Qu){sn.push(u.getTokenText()),u.resetTokenState(u.getTokenEnd());break}}sn.push(u.getTokenText()),Hu=Qt()}return k.createJSDocText(sn.join(""))}function Qm(sn,Qu,Hu,Or){const Vr=vC();return Ri(k.createJSDocImplementsTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function p6(sn,Qu,Hu,Or){const Vr=vC();return Ri(k.createJSDocAugmentsTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function g6(sn,Qu,Hu,Or){const Vr=nt(!1),Rs=Hu!==void 0&&Or!==void 0?C4(sn,de(),Hu,Or):void 0;return Ri(k.createJSDocSatisfiesTag(Qu,Vr,Rs),sn)}function vC(){const sn=co(19),Qu=de(),Hu=Dge();u.setInJSDocType(!0);const Or=d6();u.setInJSDocType(!1);const Vr=k.createExpressionWithTypeArguments(Hu,Or),Rs=Ri(Vr,Qu);return sn&&Fn(20),Rs}function Dge(){const sn=de();let Qu=Bb();for(;co(25);){const Hu=Bb();Qu=Ri(ge(Qu,Hu),sn)}return Qu}function fF(sn,Qu,Hu,Or,Vr){return Ri(Qu(Hu,C4(sn,de(),Or,Vr)),sn)}function Ez(sn,Qu,Hu,Or){const Vr=nt(!0);return Ym(),Ri(k.createJSDocThisTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function BNe(sn,Qu,Hu,Or){const Vr=nt(!0);return Ym(),Ri(k.createJSDocEnumTag(Qu,Vr,C4(sn,de(),Hu,Or)),sn)}function xge(sn,Qu,Hu,Or){let Vr=x_();ED();const Rs=Ete();Ym();let D0=Qw(Hu),qc;if(!Vr||N(Vr.type)){let v_,Zc,z5,QK=!1;for(;(v_=Ir(()=>mF(Hu)))&&v_.kind!==352;)if(QK=!0,v_.kind===351)if(Zc){const tT=Qi(F.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);tT&&Es(tT,hB(Ye,We,0,0,F.The_tag_was_first_specified_here));break}else Zc=v_;else z5=xi(z5,v_);if(QK){const tT=Vr&&Vr.type.kind===188,pF=k.createJSDocTypeLiteral(z5,tT);Vr=Zc&&Zc.typeExpression&&!N(Zc.typeExpression.type)?Zc.typeExpression:Ri(pF,sn),qc=Vr.end}}qc=qc||D0!==void 0?de():(Rs??Vr??Qu).end,D0||(D0=C4(sn,qc,Hu,Or));const _D=k.createJSDocTypedefTag(Qu,Vr,Rs,D0);return Ri(_D,sn,qc)}function Ete(sn){const Qu=u.getTokenStart();if(!fh(X()))return;const Hu=Bb();if(co(25)){const Or=Ete(!0),Vr=k.createModuleDeclaration(void 0,Hu,Or,sn?8:void 0);return Ri(Vr,Qu)}return sn&&(Hu.flags|=4096),Hu}function wNe(sn){const Qu=de();let Hu,Or;for(;Hu=Ir(()=>Wn(4,sn));){if(Hu.kind===352){te(Hu.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Or=xi(Or,Hu)}return Ka(Or||[],Qu)}function vge(sn,Qu){const Hu=wNe(Qu),Or=Ir(()=>{if(Sb(60)){const Vr=gz(Qu);if(Vr&&Vr.kind===349)return Vr}});return Ri(k.createJSDocSignature(void 0,Hu,Or),sn)}function Xw(sn,Qu,Hu,Or){const Vr=Ete();Ym();let Rs=Qw(Hu);const D0=vge(sn,Hu);Rs||(Rs=C4(sn,de(),Hu,Or));const qc=Rs!==void 0?de():D0.end;return Ri(k.createJSDocCallbackTag(Qu,D0,Vr,Rs),sn,qc)}function Cge(sn,Qu,Hu,Or){Ym();let Vr=Qw(Hu);const Rs=vge(sn,Hu);Vr||(Vr=C4(sn,de(),Hu,Or));const D0=Vr!==void 0?de():Rs.end;return Ri(k.createJSDocOverloadTag(Qu,Rs,Vr),sn,D0)}function TNe(sn,Qu){for(;!at(sn)||!at(Qu);)if(!at(sn)&&!at(Qu)&&sn.right.escapedText===Qu.right.escapedText)sn=sn.left,Qu=Qu.left;else return!1;return sn.escapedText===Qu.escapedText}function mF(sn){return Wn(1,sn)}function Wn(sn,Qu,Hu){let Or=!0,Vr=!1;for(;;)switch(Qt()){case 60:if(Or){const Rs=E6(sn,Qu);return Rs&&(Rs.kind===348||Rs.kind===355)&&Hu&&(at(Rs.name)||!TNe(Hu,Rs.name.left))?!1:Rs}Vr=!1;break;case 4:Or=!0,Vr=!1;break;case 42:Vr&&(Or=!1),Vr=!0;break;case 80:Or=!1;break;case 1:return!1}}function E6(sn,Qu){H.assert(X()===60);const Hu=u.getTokenFullStart();Qt();const Or=Bb(),Vr=ED();let Rs;switch(Or.escapedText){case"type":return sn===1&&dt(Hu,Or);case"prop":case"property":Rs=1;break;case"arg":case"argument":case"param":Rs=6;break;case"template":return H9(Hu,Or,Qu,Vr);default:return!1}return sn&Rs?W(Hu,Or,sn,Qu):!1}function CC(){const sn=de(),Qu=Sb(23);Qu&&Ym();const Hu=Bb(F.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let Or;if(Qu&&(Ym(),Fn(64),Or=bo(16777216,bg),Fn(24)),!Ql(Hu))return Ri(k.createTypeParameterDeclaration(void 0,Hu,void 0,Or),sn)}function eT(){const sn=de(),Qu=[];do{Ym();const Hu=CC();Hu!==void 0&&Qu.push(Hu),ED()}while(Sb(28));return Ka(Qu,sn)}function H9(sn,Qu,Hu,Or){const Vr=X()===19?nt():void 0,Rs=eT();return Ri(k.createJSDocTemplateTag(Qu,Vr,Rs,C4(sn,de(),Hu,Or)),sn)}function Sb(sn){return X()===sn?(Qt(),!0):!1}function _z(){let sn=Bb();for(co(23)&&Fn(24);co(25);){const Qu=Bb();co(23)&&Fn(24),sn=Bt(sn,Qu)}return sn}function Bb(sn){if(!fh(X()))return dl(80,!sn,sn||F.Identifier_expected);Ni++;const Qu=u.getTokenStart(),Hu=u.getTokenEnd(),Or=X(),Vr=Uc(u.getTokenValue()),Rs=Ri(J(Vr,Or),Qu,Hu);return Qt(),Rs}}})(YK=t.JSDocParser||(t.JSDocParser={}))})(Hv||(Hv={})),(t=>{function u(z,j,J,K){if(K=K||H.shouldAssert(2),k(z,j,J,K),N2e(J))return z;if(z.statements.length===0)return Hv.parseSourceFile(z.fileName,j,z.languageVersion,void 0,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);const Y=z;H.assert(!Y.hasBeenIncrementallyParsed),Y.hasBeenIncrementallyParsed=!0,Hv.fixupParentReferences(Y);const oe=z.text,se=T(z),ge=b(z,J);k(z,j,ge,K),H.assert(ge.span.start<=J.span.start),H.assert(Ec(ge.span)===Ec(J.span)),H.assert(Ec(MN(ge))===Ec(MN(J)));const ae=MN(ge).length-ge.span.length;v(Y,ge.span.start,Ec(ge.span),Ec(MN(ge)),ae,oe,j,K);const Ce=Hv.parseSourceFile(z.fileName,j,z.languageVersion,se,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);return Ce.commentDirectives=s(z.commentDirectives,Ce.commentDirectives,ge.span.start,Ec(ge.span),ae,oe,j,K),Ce.impliedNodeFormat=z.impliedNodeFormat,Ce}t.updateSourceFile=u;function s(z,j,J,K,Y,oe,se,ge){if(!z)return j;let ae,Ce=!1;for(const ve of z){const{range:Se,type:Ne}=ve;if(Se.endK){ne();const pe={range:{pos:Se.pos+Y,end:Se.end+Y},type:Ne};ae=xi(ae,pe),ge&&H.assert(oe.substring(Se.pos,Se.end)===se.substring(pe.range.pos,pe.range.end))}}return ne(),ae;function ne(){Ce||(Ce=!0,ae?j&&ae.push(...j):ae=j)}}function d(z,j,J,K,Y,oe){j?ge(z):se(z);return;function se(ae){let Ce="";if(oe&&f(ae)&&(Ce=K.substring(ae.pos,ae.end)),ae._children&&(ae._children=void 0),t_(ae,ae.pos+J,ae.end+J),oe&&f(ae)&&H.assert(Ce===Y.substring(ae.pos,ae.end)),ao(ae,se,ge),lm(ae))for(const ne of ae.jsDoc)se(ne);E(ae,oe)}function ge(ae){ae._children=void 0,t_(ae,ae.pos+J,ae.end+J);for(const Ce of ae)se(Ce)}}function f(z){switch(z.kind){case 11:case 9:case 80:return!0}return!1}function p(z,j,J,K,Y){H.assert(z.end>=j,"Adjusting an element that was entirely before the change range"),H.assert(z.pos<=J,"Adjusting an element that was entirely after the change range"),H.assert(z.pos<=z.end);const oe=Math.min(z.pos,K),se=z.end>=J?z.end+Y:Math.min(z.end,K);H.assert(oe<=se),z.parent&&(H.assertGreaterThanOrEqual(oe,z.parent.pos),H.assertLessThanOrEqual(se,z.parent.end)),t_(z,oe,se)}function E(z,j){if(j){let J=z.pos;const K=Y=>{H.assert(Y.pos>=J),J=Y.end};if(lm(z))for(const Y of z.jsDoc)K(Y);ao(z,K),H.assert(J<=z.end)}}function v(z,j,J,K,Y,oe,se,ge){ae(z);return;function ae(ne){if(H.assert(ne.pos<=ne.end),ne.pos>J){d(ne,!1,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){if(ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y),ao(ne,ae,Ce),lm(ne))for(const Se of ne.jsDoc)ae(Se);E(ne,ge);return}H.assert(veJ){d(ne,!0,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y);for(const Se of ne)ae(Se);return}H.assert(ve0&&se<=1;se++){const ge=B(z,K);H.assert(ge.pos<=K);const ae=ge.pos;K=Math.max(0,ae-1)}const Y=Vc(K,Ec(j.span)),oe=j.newLength+(j.span.start-K);return OO(Y,oe)}function B(z,j){let J=z,K;if(ao(z,oe),K){const se=Y(K);se.pos>J.pos&&(J=se)}return J;function Y(se){for(;;){const ge=Ele(se);if(ge)se=ge;else return se}}function oe(se){if(!Ql(se))if(se.pos<=j){if(se.pos>=J.pos&&(J=se),jj),!0}}function k(z,j,J,K){const Y=z.text;if(J&&(H.assert(Y.length-J.span.length+J.newLength===j.length),K||H.shouldAssert(3))){const oe=Y.substr(0,J.span.start),se=j.substr(0,J.span.start);H.assert(oe===se);const ge=Y.substring(Ec(J.span),Y.length),ae=j.substring(Ec(MN(J)),j.length);H.assert(ge===ae)}}function T(z){let j=z.statements,J=0;H.assert(J=Ce.pos&&se=Ce.pos&&se{z[z.Value=-1]="Value"})(M||(M={}))})(Yce||(Yce={})),Qce=new Map,OQe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,jQe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function SY(t){const u=new Map,s=new Map;return L(t,d=>{u.set(d.name.toLowerCase(),d),d.shortName&&s.set(d.shortName,d.name)}),{optionsNameMap:u,shortOptionNames:s}}function jB(){return yXe||(yXe=SY(a3))}function GFe(t){return VQe(t,cc)}function VQe(t,u){const s=ga(t.type.keys()),d=(t.deprecatedKeys?s.filter(f=>!t.deprecatedKeys.has(f)):s).map(f=>`'${f}'`).join(", ");return u(F.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,d)}function BY(t,u,s){return DXe(t,(u??"").trim(),s)}function JFe(t,u="",s){if(u=u.trim(),Pa(u,"-"))return;if(t.type==="listOrElement"&&!u.includes(","))return J7(t,u,s);if(u==="")return[];const d=u.split(",");switch(t.element.type){case"number":return qi(d,f=>J7(t.element,parseInt(f),s));case"string":return qi(d,f=>J7(t.element,f||"",s));case"boolean":case"object":return H.fail(`List of ${t.element.type} is not yet supported.`);default:return qi(d,f=>BY(t.element,f,s))}}function HQe(t){return t.name}function $Fe(t,u,s,d,f){var p;if((p=u.alternateMode)!=null&&p.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return Kv(f,d,u.alternateMode.diagnostic,t);const E=bN(t,u.optionDeclarations,HQe);return E?Kv(f,d,u.unknownDidYouMeanDiagnostic,s||t,E.name):Kv(f,d,u.unknownOptionDiagnostic,s||t)}function Xce(t,u,s){const d={};let f;const p=[],E=[];return v(u),{options:d,watchOptions:f,fileNames:p,errors:E};function v(B){let k=0;for(;kc1.readFile(z)));if(!Ja(k)){E.push(k);return}const T=[];let M=0;for(;;){for(;M=k.length)break;const z=M;if(k.charCodeAt(z)===34){for(M++;M32;)M++;T.push(k.substring(z,M))}}v(T)}}function KQe(t,u,s,d,f,p){if(d.isTSConfigOnly){const E=t[u];E==="null"?(f[d.name]=void 0,u++):d.type==="boolean"?E==="false"?(f[d.name]=J7(d,!1,p),u++):(E==="true"&&u++,p.push(cc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,d.name))):(p.push(cc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,d.name)),E&&!Pa(E,"-")&&u++)}else if(!t[u]&&d.type!=="boolean"&&p.push(cc(s.optionTypeMismatchDiagnostic,d.name,nde(d))),t[u]!=="null")switch(d.type){case"number":f[d.name]=J7(d,parseInt(t[u]),p),u++;break;case"boolean":const E=t[u];f[d.name]=J7(d,E!=="false",p),(E==="false"||E==="true")&&u++;break;case"string":f[d.name]=J7(d,t[u]||"",p),u++;break;case"list":const v=JFe(d,t[u],p);f[d.name]=v||[],v&&u++;break;case"listOrElement":H.fail("listOrElement not supported here");break;default:f[d.name]=BY(d,t[u],p),u++;break}else f[d.name]=void 0,u++;return u}function WQe(t,u){return Xce(tH,t,u)}function ede(t,u){return UFe(jB,t,u)}function UFe(t,u,s=!1){u=u.toLowerCase();const{optionsNameMap:d,shortOptionNames:f}=t();if(s){const p=f.get(u);p!==void 0&&(u=p)}return d.get(u)}function GQe(){return FXe||(FXe=SY(MY))}function JQe(t){const{options:u,watchOptions:s,fileNames:d,errors:f}=Xce(SXe,t),p=u;return d.length===0&&d.push("."),p.clean&&p.force&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","force")),p.clean&&p.verbose&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","verbose")),p.clean&&p.watch&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"clean","watch")),p.watch&&p.dry&&f.push(cc(F.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:p,watchOptions:s,projects:d,errors:f}}function $Qe(t,...u){return Po(cc(t,...u).messageText,Ja)}function GV(t,u,s,d,f,p){const E=rM(t,B=>s.readFile(B));if(!Ja(E)){s.onUnRecoverableConfigFileDiagnostic(E);return}const v=WV(t,E),b=s.getCurrentDirectory();return v.path=J0(t,b,L1(s.useCaseSensitiveFileNames)),v.resolvedPath=v.path,v.originalFileName=v.fileName,UV(v,s,$a(lr(t),b),u,$a(t,b),void 0,p,d,f)}function JV(t,u){const s=rM(t,u);return Ja(s)?tde(t,s):{config:{},error:s}}function tde(t,u){const s=WV(t,u);return{config:QQe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function qFe(t,u){const s=rM(t,u);return Ja(s)?WV(t,s):{fileName:t,parseDiagnostics:[s]}}function rM(t,u){let s;try{s=u(t)}catch(d){return cc(F.Cannot_read_file_0_Colon_1,t,d.message)}return s===void 0?cc(F.Cannot_read_file_0,t):s}function ide(t){return lg(t,HQe)}function UQe(){return BXe||(BXe=SY(VB))}function qQe(){return wXe||(wXe=ide(a3))}function ZQe(){return TXe||(TXe=ide(VB))}function YQe(){return LXe||(LXe=ide(eH))}function DNt(){return lAe===void 0&&(lAe={name:void 0,type:"object",elementOptions:ide([aAe,oAe,sAe,iH,{name:"references",type:"list",element:{name:"references",type:"object"},category:F.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:F.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:F.File_Management,defaultValueDescription:F.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:F.File_Management,defaultValueDescription:F.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},ZV])}),lAe}function QQe(t,u,s){var d;const f=(d=t.statements[0])==null?void 0:d.expression;if(f&&f.kind!==210){if(u.push(K4(t,f,F.The_root_value_of_a_0_file_must_be_an_object,Ac(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),Dh(f)){const p=Le(f.elements,ys);if(p)return $V(t,p,u,!0,s)}return{}}return $V(t,f,u,!0,s)}function ZFe(t,u){var s;return $V(t,(s=t.statements[0])==null?void 0:s.expression,u,!0,void 0)}function $V(t,u,s,d,f){if(!u)return d?{}:void 0;return v(u,f==null?void 0:f.rootOptions);function p(B,k){var T;const M=d?{}:void 0;for(const z of B.properties){if(z.kind!==303){s.push(K4(t,z,F.Property_assignment_expected));continue}z.questionToken&&s.push(K4(t,z.questionToken,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),b(z.name)||s.push(K4(t,z.name,F.String_literal_with_double_quotes_expected));const j=oj(z.name)?void 0:V8(z.name),J=j&&Qr(j),K=J?(T=k==null?void 0:k.elementOptions)==null?void 0:T.get(J):void 0,Y=v(z.initializer,K);typeof J<"u"&&(d&&(M[J]=Y),f==null||f.onPropertySet(J,Y,z,k,K))}return M}function E(B,k){if(!d){B.forEach(T=>v(T,k));return}return ti(B.map(T=>v(T,k)),T=>T!==void 0)}function v(B,k){switch(B.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return b(B)||s.push(K4(t,B,F.String_literal_with_double_quotes_expected)),B.text;case 9:return Number(B.text);case 224:if(B.operator!==41||B.operand.kind!==9)break;return-Number(B.operand.text);case 210:return p(B,k);case 209:return E(B.elements,k&&k.element)}k?s.push(K4(t,B,F.Compiler_option_0_requires_a_value_of_type_1,k.name,nde(k))):s.push(K4(t,B,F.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function b(B){return us(B)&&Cq(B,t)}}function nde(t){return t.type==="listOrElement"?`${nde(t.element)} or Array`:t.type==="list"?"Array":Ja(t.type)?t.type:"string"}function XQe(t,u){if(t){if(qV(u))return!t.disallowNullOrUndefined;if(t.type==="list")return Ha(u);if(t.type==="listOrElement")return Ha(u)||XQe(t.element,u);const s=Ja(t.type)?t.type:"string";return typeof u===s}return!1}function eXe(t,u,s){var d,f,p;const E=L1(s.useCaseSensitiveFileNames),v=Vt(ti(t.fileNames,(f=(d=t.options.configFile)==null?void 0:d.configFileSpecs)!=null&&f.validatedIncludeSpecs?vNt(u,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):J3),T=>SO($a(u,s.getCurrentDirectory()),$a(T,s.getCurrentDirectory()),E)),b=ade(t.options,{configFilePath:$a(u,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),B=t.watchOptions&&CNt(t.watchOptions);return{compilerOptions:{...ude(b),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:B&&ude(B),references:Vt(t.projectReferences,T=>({...T,path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:S(v)?v:void 0,...(p=t.options.configFile)!=null&&p.configFileSpecs?{include:xNt(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function ude(t){return{...ga(t.entries()).reduce((u,s)=>({...u,[s[0]]:s[1]}),{})}}function xNt(t){if(S(t)){if(S(t)!==1)return t;if(t[0]!==RY)return t}}function vNt(t,u,s,d){if(!u)return J3;const f=aZ(t,s,u,d.useCaseSensitiveFileNames,d.getCurrentDirectory()),p=f.excludePattern&&jx(f.excludePattern,d.useCaseSensitiveFileNames),E=f.includeFilePattern&&jx(f.includeFilePattern,d.useCaseSensitiveFileNames);return E?p?v=>!(E.test(v)&&!p.test(v)):v=>!E.test(v):p?v=>p.test(v):J3}function tXe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return tXe(t.element);default:return t.type}}function rde(t,u){return h1(u,(s,d)=>{if(s===t)return d})}function ade(t,u){return iXe(t,jB(),u)}function CNt(t){return iXe(t,UQe())}function iXe(t,{optionsNameMap:u},s){const d=new Map,f=s&&L1(s.useCaseSensitiveFileNames);for(const p in t)if(gu(t,p)){if(u.has(p)&&(u.get(p).category===F.Command_line_Options||u.get(p).category===F.Output_Formatting))continue;const E=t[p],v=u.get(p.toLowerCase());if(v){H.assert(v.type!=="listOrElement");const b=tXe(v);b?v.type==="list"?d.set(p,E.map(B=>rde(B,b))):d.set(p,rde(E,b)):s&&v.isFilePath?d.set(p,SO(s.configFilePath,$a(E,lr(s.configFilePath)),f)):d.set(p,E)}}return d}function nXe(t,u){const s=uXe(t);return f();function d(p){return Array(p+1).join(" ")}function f(){const p=[],E=d(2);return dde.forEach(v=>{if(!s.has(v.name))return;const b=s.get(v.name),B=iAe(v);b!==B?p.push(`${E}${v.name}: ${b}`):gu(zY,v.name)&&p.push(`${E}${v.name}: ${B}`)}),p.join(u)+u}}function uXe(t){const u=$$(t,zY);return ade(u)}function rXe(t,u,s){const d=uXe(t);return E();function f(v){return Array(v+1).join(" ")}function p({category:v,name:b,isCommandLineOnly:B}){const k=[F.Command_line_Options,F.Editor_Support,F.Compiler_Diagnostics,F.Backwards_Compatibility,F.Watch_and_Build_Modes,F.Output_Formatting];return!B&&v!==void 0&&(!k.includes(v)||d.has(b))}function E(){const v=new Map;v.set(F.Projects,[]),v.set(F.Language_and_Environment,[]),v.set(F.Modules,[]),v.set(F.JavaScript_Support,[]),v.set(F.Emit,[]),v.set(F.Interop_Constraints,[]),v.set(F.Type_Checking,[]),v.set(F.Completeness,[]);for(const z of a3)if(p(z)){let j=v.get(z.category);j||v.set(z.category,j=[]),j.push(z)}let b=0,B=0;const k=[];v.forEach((z,j)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${to(j)} */`});for(const J of z){let K;d.has(J.name)?K=`"${J.name}": ${JSON.stringify(d.get(J.name))}${(B+=1)===d.size?"":","}`:K=`// "${J.name}": ${JSON.stringify(iAe(J))},`,k.push({value:K,description:`/* ${J.description&&to(J.description)||J.name} */`}),b=Math.max(K.length,b)}});const T=f(2),M=[];M.push("{"),M.push(`${T}"compilerOptions": {`),M.push(`${T}${T}/* ${to(F.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),M.push("");for(const z of k){const{value:j,description:J=""}=z;M.push(j&&`${T}${T}${j}${J&&f(b-j.length+2)+J}`)}if(u.length){M.push(`${T}},`),M.push(`${T}"files": [`);for(let z=0;ztypeof Ae=="object","object"),Se=ge(ae("files"));if(Se){const Ae=ve==="no-prop"||Ha(ve)&&ve.length===0,De=gu(M,"extends");if(Se.length===0&&Ae&&!De)if(u){const Ke=E||"tsconfig.json",Je=F.The_files_list_in_config_file_0_is_empty,ft=hj(u,"files",Ve=>Ve.initializer),Ye=Kv(u,ft,Je,Ke);k.push(Ye)}else ne(F.The_files_list_in_config_file_0_is_empty,E||"tsconfig.json")}let Ne=ge(ae("include"));const pe=ae("exclude");let fe=!1,xe=ge(pe);if(pe==="no-prop"&&M.compilerOptions){const Ae=M.compilerOptions.outDir,De=M.compilerOptions.declarationDir;(Ae||De)&&(xe=[Ae,De].filter(Ke=>!!Ke))}Se===void 0&&Ne===void 0&&(Ne=[RY],fe=!0);let Be,Ge;return Ne&&(Be=bXe(Ne,k,!0,u,"include")),xe&&(Ge=bXe(xe,k,!1,u,"exclude")),{filesSpecs:Se,includeSpecs:Ne,excludeSpecs:xe,validatedFilesSpec:ti(Se,Ja),validatedIncludeSpecs:Be,validatedExcludeSpecs:Ge,pathPatterns:void 0,isDefaultIncludeSpec:fe}}function oe(ve){const Se=oM(J,ve,z,s,b);return cXe(Se,aM(M),v)&&k.push(lXe(J,E)),Se}function se(ve){let Se;const Ne=Ce("references",pe=>typeof pe=="object","object");if(Ha(Ne))for(const pe of Ne)typeof pe.path!="string"?ne(F.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Se||(Se=[])).push({path:$a(pe.path,ve),originalPath:pe.path,prepend:pe.prepend,circular:pe.circular});return Se}function ge(ve){return Ha(ve)?ve:void 0}function ae(ve){return Ce(ve,Ja,"string")}function Ce(ve,Se,Ne){if(gu(M,ve)&&!qV(M[ve]))if(Ha(M[ve])){const pe=M[ve];return!u&&!ye(pe,Se)&&k.push(cc(F.Compiler_option_0_requires_a_value_of_type_1,ve,Ne)),pe}else return ne(F.Compiler_option_0_requires_a_value_of_type_1,ve,"Array"),"not-array";return"no-prop"}function ne(ve,...Se){u||k.push(cc(ve,...Se))}}function yNt(t){return t.code===F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function lXe({includeSpecs:t,excludeSpecs:u},s){return cc(F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,s||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(u||[]))}function cXe(t,u,s){return t.length===0&&u&&(!s||s.length===0)}function aM(t){return!gu(t,"files")&&!gu(t,"references")}function wY(t,u,s,d,f){const p=d.length;return cXe(t,f)?d.push(lXe(s,u)):Uu(d,E=>!yNt(E)),p!==d.length}function kNt(t){return!!t.options}function dXe(t,u,s,d,f,p,E,v){var b;d=q1(d);const B=$a(f||"",d);if(p.includes(B))return E.push(cc(F.Circularity_detected_while_resolving_configuration_Colon_0,[...p,B].join(" -> "))),{raw:t||ZFe(u,E)};const k=t?FNt(t,s,d,f,E):ANt(u,s,d,f,E);if((b=k.options)!=null&&b.paths&&(k.options.pathsBasePath=d),k.extendedConfigPath){p=p.concat([B]);const M={options:{}};Ja(k.extendedConfigPath)?T(M,k.extendedConfigPath):k.extendedConfigPath.forEach(z=>T(M,z)),!k.raw.include&&M.include&&(k.raw.include=M.include),!k.raw.exclude&&M.exclude&&(k.raw.exclude=M.exclude),!k.raw.files&&M.files&&(k.raw.files=M.files),k.raw.compileOnSave===void 0&&M.compileOnSave&&(k.raw.compileOnSave=M.compileOnSave),u&&M.extendedSourceFiles&&(u.extendedSourceFiles=ga(M.extendedSourceFiles.keys())),k.options=VE(M.options,k.options),k.watchOptions=k.watchOptions&&M.watchOptions?VE(M.watchOptions,k.watchOptions):k.watchOptions||M.watchOptions}return k;function T(M,z){const j=SNt(u,z,s,p,E,v,M);if(j&&kNt(j)){const J=j.raw;let K;const Y=oe=>{J[oe]&&(M[oe]=Vt(J[oe],se=>Pf(se)?se:cr(K||(K=wN(lr(z),d,L1(s.useCaseSensitiveFileNames))),se)))};Y("include"),Y("exclude"),Y("files"),J.compileOnSave!==void 0&&(M.compileOnSave=J.compileOnSave),VE(M.options,j.options),M.watchOptions=M.watchOptions&&j.watchOptions?VE({},M.watchOptions,j.watchOptions):M.watchOptions||j.watchOptions}}}function FNt(t,u,s,d,f){gu(t,"excludes")&&f.push(cc(F.Unknown_option_excludes_Did_you_mean_exclude));const p=EXe(t.compilerOptions,s,f,d),E=_Xe(t.typeAcquisition,s,f,d),v=wNt(t.watchOptions,s,f);t.compileOnSave=BNt(t,s,f);const b=t.extends||t.extends===""?hXe(t.extends,u,s,d,f):void 0;return{raw:t,options:p,watchOptions:v,typeAcquisition:E,extendedConfigPath:b}}function hXe(t,u,s,d,f,p,E,v){let b;const B=d?oXe(d,s):s;if(Ja(t))b=fXe(t,u,B,f,E,v);else if(Ha(t)){b=[];for(let k=0;koe.name===z)&&(B=xi(B,J.name))))}}function fXe(t,u,s,d,f,p){if(t=q1(t),Pf(t)||Pa(t,"./")||Pa(t,"../")){let v=$a(t,s);if(!u.fileExists(v)&&!sc(v,".json")&&(v=`${v}.json`,!u.fileExists(v))){d.push(Kv(p,f,F.File_0_not_found,t));return}return v}const E=_Ae(t,cr(s,"tsconfig.json"),u);if(E.resolvedModule)return E.resolvedModule.resolvedFileName;t===""?d.push(Kv(p,f,F.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):d.push(Kv(p,f,F.File_0_not_found,t))}function SNt(t,u,s,d,f,p,E){const v=s.useCaseSensitiveFileNames?u:$g(u);let b,B,k;if(p&&(b=p.get(v))?{extendedResult:B,extendedConfig:k}=b:(B=qFe(u,T=>s.readFile(T)),B.parseDiagnostics.length||(k=dXe(void 0,B,s,lr(u),Ac(u),d,f,p)),p&&p.set(v,{extendedResult:B,extendedConfig:k})),t&&((E.extendedSourceFiles??(E.extendedSourceFiles=new Set)).add(B.fileName),B.extendedSourceFiles))for(const T of B.extendedSourceFiles)E.extendedSourceFiles.add(T);if(B.parseDiagnostics.length){f.push(...B.parseDiagnostics);return}return k}function BNt(t,u,s){if(!gu(t,ZV.name))return!1;const d=Sk(ZV,t.compileOnSave,u,s);return typeof d=="boolean"&&d}function mXe(t,u,s){const d=[];return{options:EXe(t,u,d,s),errors:d}}function pXe(t,u,s){const d=[];return{options:_Xe(t,u,d,s),errors:d}}function gXe(t){return t&&Ac(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function EXe(t,u,s,d){const f=gXe(d);return YFe(qQe(),t,u,f,tH,s),d&&(f.configFilePath=q1(d)),f}function lde(t){return{enable:!!t&&Ac(t)==="jsconfig.json",include:[],exclude:[]}}function _Xe(t,u,s,d){const f=lde(d);return YFe(YQe(),t,u,f,rAe,s),f}function wNt(t,u,s){return YFe(ZQe(),t,u,void 0,IY,s)}function YFe(t,u,s,d,f,p){if(u){for(const E in u){const v=t.get(E);v?(d||(d={}))[v.name]=Sk(v,u[E],s,p):p.push($Fe(E,f))}return d}}function Kv(t,u,s,...d){return t&&u?K4(t,u,s,...d):cc(s,...d)}function Sk(t,u,s,d,f,p,E){if(t.isCommandLineOnly){d.push(Kv(E,f==null?void 0:f.name,F.Option_0_can_only_be_specified_on_command_line,t.name));return}if(XQe(t,u)){const v=t.type;if(v==="list"&&Ha(u))return xXe(t,u,s,d,f,p,E);if(v==="listOrElement")return Ha(u)?xXe(t,u,s,d,f,p,E):Sk(t.element,u,s,d,f,p,E);if(!Ja(t.type))return DXe(t,u,d,p,E);const b=J7(t,u,d,p,E);return qV(b)?b:TNt(t,s,b)}else d.push(Kv(E,p,F.Compiler_option_0_requires_a_value_of_type_1,t.name,nde(t)))}function TNt(t,u,s){return t.isFilePath&&(s=$a(s,u),s===""&&(s=".")),s}function J7(t,u,s,d,f){var p;if(qV(u))return;const E=(p=t.extraValidation)==null?void 0:p.call(t,u);if(!E)return u;s.push(Kv(f,d,...E))}function DXe(t,u,s,d,f){if(qV(u))return;const p=u.toLowerCase(),E=t.type.get(p);if(E!==void 0)return J7(t,E,s,d,f);s.push(VQe(t,(v,...b)=>Kv(f,d,v,...b)))}function xXe(t,u,s,d,f,p,E){return ti(Vt(u,(v,b)=>Sk(t.element,v,s,d,f,p==null?void 0:p.elements[b],E)),v=>t.listPreserveFalsyValues?!0:!!v)}function oM(t,u,s,d,f=_t){u=$o(u);const p=L1(d.useCaseSensitiveFileNames),E=new Map,v=new Map,b=new Map,{validatedFilesSpec:B,validatedIncludeSpecs:k,validatedExcludeSpecs:T}=t,M=kP(s,f),z=tV(s,M);if(B)for(const Y of B){const oe=$a(Y,u);E.set(p(oe),oe)}let j;if(k&&k.length>0)for(const Y of d.readDirectory(u,Va(z),T,k,void 0)){if(Ml(Y,".json")){if(!j){const ge=k.filter(Ce=>sc(Ce,".json")),ae=Vt(rZ(ge,u,"files"),Ce=>`^${Ce}$`);j=ae?ae.map(Ce=>jx(Ce,d.useCaseSensitiveFileNames)):_t}if(Ue(j,ge=>ge.test(Y))!==-1){const ge=p(Y);!E.has(ge)&&!b.has(ge)&&b.set(ge,Y)}continue}if(PNt(Y,E,v,M,p))continue;MNt(Y,v,M,p);const oe=p(Y);!E.has(oe)&&!v.has(oe)&&v.set(oe,Y)}const J=ga(E.values()),K=ga(v.values());return J.concat(K,ga(b.values()))}function QFe(t,u,s,d,f){const{validatedFilesSpec:p,validatedIncludeSpecs:E,validatedExcludeSpecs:v}=u;if(!S(E)||!S(v))return!1;s=$o(s);const b=L1(d);if(p){for(const B of p)if(b($a(B,s))===t)return!1}return CXe(t,v,d,f,s)}function vXe(t){const u=Pa(t,"**/")?0:t.indexOf("/**/");return u===-1?!1:(sc(t,"/..")?t.length:t.lastIndexOf("/../"))>u}function TY(t,u,s,d){return CXe(t,ti(u,f=>!vXe(f)),s,d)}function CXe(t,u,s,d,f){const p=yP(u,cr($o(d),f),"exclude"),E=p&&jx(p,s);return E?E.test(t)?!0:!t7(t)&&E.test(zd(t)):!1}function bXe(t,u,s,d,f){return t.filter(E=>{if(!Ja(E))return!1;const v=XFe(E,s);return v!==void 0&&u.push(p(...v)),v===void 0});function p(E,v){const b=cq(d,f,v);return Kv(d,b,E,v)}}function XFe(t,u){if(H.assert(typeof t=="string"),u&&NXe.test(t))return[F.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(vXe(t))return[F.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function LNt({validatedIncludeSpecs:t,validatedExcludeSpecs:u},s,d){const f=yP(u,s,"exclude"),p=f&&new RegExp(f,d?"":"i"),E={};if(t!==void 0){const v=[];for(const b of t){const B=$o(cr(s,b));if(p&&p.test(B))continue;const k=NNt(B,d);if(k){const{key:T,flags:M}=k,z=E[T];(z===void 0||zjc(t,E)?E:void 0);if(!p)return!1;for(const E of p){if(Ml(t,E)&&(E!==".ts"||!Ml(t,".d.ts")))return!1;const v=f(wv(t,E));if(u.has(v)||s.has(v)){if(E===".d.ts"&&(Ml(t,".js")||Ml(t,".jsx")))continue;return!0}}return!1}function MNt(t,u,s,d){const f=L(s,p=>jc(t,p)?p:void 0);if(f)for(let p=f.length-1;p>=0;p--){const E=f[p];if(Ml(t,E))return;const v=d(wv(t,E));u.delete(v)}}function eAe(t){const u={};for(const s in t)if(gu(t,s)){const d=ede(s);d!==void 0&&(u[s]=tAe(t[s],d))}return u}function tAe(t,u){if(t===void 0)return t;switch(u.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Ha(t))return tAe(t,u.element);case"list":const s=u.element;return Ha(t)?qi(t,d=>tAe(d,s)):"";default:return h1(u.type,(d,f)=>{if(d===t)return f})}}function iAe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const u=t.defaultValueDescription;return t.isFilePath?`./${u&&typeof u=="string"?u:""}`:"";case"list":return[];case"listOrElement":return iAe(t.element);case"object":return{};default:const s=Hn(t.type.keys());return s!==void 0?s:H.fail("Expected 'option.type' to have entries.")}}var ZV,nAe,sM,uAe,YV,LY,VB,QV,XV,cde,dde,a3,hde,fde,mde,NY,PY,pde,gde,Ede,MY,eH,yXe,kXe,zY,tH,FXe,AXe,SXe,rAe,BXe,IY,wXe,TXe,LXe,iH,aAe,oAe,sAe,lAe,RY,NXe,PXe,zNt=o({"src/compiler/commandLineParser.ts"(){Bo(),ZV={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},nAe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),sM=new Map(zr(nAe.entries(),([t,u])=>[""+u,t])),uAe=[["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"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.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"],["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"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.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.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],YV=uAe.map(t=>t[0]),LY=new Map(uAe),VB=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:F.Watch_and_Build_Modes,description:F.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:F.Watch_and_Build_Modes,description:F.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:F.Watch_and_Build_Modes,description:F.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:F.Watch_and_Build_Modes,description:F.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:XFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:XFe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_files_from_the_watch_mode_s_processing}],QV=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:F.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:F.Output_Formatting,description:F.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:F.Output_Formatting,description:F.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:F.Compiler_Diagnostics,description:F.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:F.FILE_OR_DIRECTORY,category:F.Compiler_Diagnostics,description:F.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:F.DIRECTORY,category:F.Compiler_Diagnostics,description:F.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:F.Projects,description:F.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:F.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:F.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:F.Emit,description:F.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Watch_and_Build_Modes,description:F.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:F.Command_line_Options,isCommandLineOnly:!0,description:F.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:F.Platform_specific}],XV={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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.VERSION,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},cde={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})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_what_module_code_is_generated,defaultValueDescription:void 0},dde=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:F.Command_line_Options,paramType:F.FILE_OR_DIRECTORY,description:F.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:F.Command_line_Options,description:F.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},XV,cde,{name:"lib",type:"list",element:{name:"lib",type:LY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.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:F.JavaScript_Support,description:F.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:F.JavaScript_Support,description:F.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:nAe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.FILE,showInSimplifiedHelpView:!0,category:F.Emit,description:F.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:F.DIRECTORY,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.LOCATION,category:F.Modules,description:F.Specify_the_root_folder_within_your_source_files,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:F.FILE,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:F.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:F.Emit,description:F.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.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:F.Emit,description:F.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:F.Interop_Constraints,description:F.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:F.Interop_Constraints,description:F.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:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Type_Checking,description:F.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:F.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Ensure_use_strict_is_always_emitted,defaultValueDescription:F.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.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:F.Type_Checking,description:F.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.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:F.Type_Checking,description:F.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:F.STRATEGY,category:F.Modules,description:F.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:F.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:F.Modules,description:F.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:F.Modules,description:F.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,category:F.Modules,description:F.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Modules,description:F.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:F.Interop_Constraints,description:F.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:F.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Interop_Constraints,description:F.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:F.Interop_Constraints,description:F.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:F.Modules,description:F.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:F.Modules,description:F.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.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:F.Modules,description:F.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:F.Modules,description:F.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:F.Language_and_Environment,description:F.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:F.Language_and_Environment,description:F.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:F.Language_and_Environment,description:F.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:F.Modules,description:F.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:F.Modules,description:F.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:F.Backwards_Compatibility,paramType:F.FILE,transpileOptionValue:void 0,description:F.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:F.Backwards_Compatibility,description:F.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:F.Emit,description:F.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:F.NEWLINE,category:F.Emit,description:F.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Output_Formatting,description:F.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:F.Language_and_Environment,affectsProgramStructure:!0,description:F.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.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:F.Emit,description:F.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:F.Editor_Support,description:F.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:F.Projects,description:F.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,category:F.Emit,transpileOptionValue:void 0,description:F.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:F.Interop_Constraints,description:F.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:F.JavaScript_Support,description:F.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:F.Backwards_Compatibility,description:F.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:F.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:F.Backwards_Compatibility,description:F.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:F.Specify_a_list_of_language_service_plugins_to_include,category:F.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:F.Control_what_method_is_used_to_detect_module_format_JS_files,category:F.Language_and_Environment,defaultValueDescription:F.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}],a3=[...QV,...dde],hde=a3.filter(t=>!!t.affectsSemanticDiagnostics),fde=a3.filter(t=>!!t.affectsEmit),mde=a3.filter(t=>!!t.affectsDeclarationPath),NY=a3.filter(t=>!!t.affectsModuleResolution),PY=a3.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),pde=a3.filter(t=>!!t.affectsProgramStructure),gde=a3.filter(t=>gu(t,"transpileOptionValue")),Ede=[{name:"verbose",shortName:"v",category:F.Command_line_Options,description:F.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:F.Command_line_Options,description:F.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:F.Command_line_Options,description:F.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:F.Command_line_Options,description:F.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],MY=[...QV,...Ede],eH=[{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}],kXe={diagnostic:F.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:GQe},zY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},tH={alternateMode:kXe,getOptionsNameMap:jB,optionDeclarations:a3,unknownOptionDiagnostic:F.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:F.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Compiler_option_0_expects_an_argument},AXe={diagnostic:F.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:jB},SXe={alternateMode:AXe,getOptionsNameMap:GQe,optionDeclarations:MY,unknownOptionDiagnostic:F.Unknown_build_option_0,unknownDidYouMeanDiagnostic:F.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Build_option_0_requires_a_value_of_type_1},rAe={optionDeclarations:eH,unknownOptionDiagnostic:F.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:F.Unknown_type_acquisition_option_0_Did_you_mean_1},IY={getOptionsNameMap:UQe,optionDeclarations:VB,unknownOptionDiagnostic:F.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:F.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Watch_option_0_requires_a_value_of_type_1},iH={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:F.File_Management,disallowNullOrUndefined:!0},aAe={name:"compilerOptions",type:"object",elementOptions:qQe(),extraKeyDiagnostics:tH},oAe={name:"watchOptions",type:"object",elementOptions:ZQe(),extraKeyDiagnostics:IY},sAe={name:"typeAcquisition",type:"object",elementOptions:YQe(),extraKeyDiagnostics:rAe},RY="**/*",NXe=/(^|\/)\*\*\/?$/,PXe=/^[^*?]*(?=\/[^/]*[*?])/}});function Sa(t,u,...s){t.trace(Dle(u,...s))}function aD(t,u){return!!t.traceResolution&&u.trace!==void 0}function $7(t,u){let s;if(u&&t){const d=t.contents.packageJsonContent;typeof d.name=="string"&&typeof d.version=="string"&&(s={name:d.name,subModuleName:u.path.slice(t.packageDirectory.length+rl.length),version:d.version})}return u&&{path:u.path,extension:u.ext,packageId:s,resolvedUsingTsExtension:u.resolvedUsingTsExtension}}function _de(t){return $7(void 0,t)}function MXe(t){if(t)return H.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function OY(t){const u=[];return t&1&&u.push("TypeScript"),t&2&&u.push("JavaScript"),t&4&&u.push("Declaration"),t&8&&u.push("JSON"),u.join(", ")}function INt(t){const u=[];return t&1&&u.push(...hV),t&2&&u.push(..._B),t&4&&u.push(...dV),t&8&&u.push(".json"),u}function cAe(t){if(t)return H.assert(cZ(t.extension)),{fileName:t.path,packageId:t.packageId}}function zXe(t,u,s,d,f,p,E,v,b){if(!E.resultFromCache&&!E.compilerOptions.preserveSymlinks&&u&&s&&!u.originalPath&&!Id(t)){const{resolvedFileName:B,originalPath:k}=OXe(u.path,E.host,E.traceEnabled);k&&(u={...u,path:B,originalPath:k})}return IXe(u,s,d,f,p,E.resultFromCache,v,b)}function IXe(t,u,s,d,f,p,E,v){return p?E!=null&&E.isReadonly?{...p,failedLookupLocations:dAe(p.failedLookupLocations,s),affectingLocations:dAe(p.affectingLocations,d),resolutionDiagnostics:dAe(p.resolutionDiagnostics,f)}:(p.failedLookupLocations=HB(p.failedLookupLocations,s),p.affectingLocations=HB(p.affectingLocations,d),p.resolutionDiagnostics=HB(p.resolutionDiagnostics,f),p):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:u,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:lM(s),affectingLocations:lM(d),resolutionDiagnostics:lM(f),node10Result:v}}function lM(t){return t.length?t:void 0}function HB(t,u){return u!=null&&u.length?t!=null&&t.length?(t.push(...u),t):u:t}function dAe(t,u){return t!=null&&t.length?u.length?[...t,...u]:t.slice():lM(u)}function RXe(t,u,s,d){if(!gu(t,u)){d.traceEnabled&&Sa(d.host,F.package_json_does_not_have_a_0_field,u);return}const f=t[u];if(typeof f!==s||f===null){d.traceEnabled&&Sa(d.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,u,s,f===null?"null":typeof f);return}return f}function Dde(t,u,s,d){const f=RXe(t,u,"string",d);if(f===void 0)return;if(!f){d.traceEnabled&&Sa(d.host,F.package_json_had_a_falsy_0_field,u);return}const p=$o(cr(s,f));return d.traceEnabled&&Sa(d.host,F.package_json_has_0_field_1_that_references_2,u,f,p),p}function RNt(t,u,s){return Dde(t,"typings",u,s)||Dde(t,"types",u,s)}function ONt(t,u,s){return Dde(t,"tsconfig",u,s)}function jNt(t,u,s){return Dde(t,"main",u,s)}function VNt(t,u){const s=RXe(t,"typesVersions","object",u);if(s!==void 0)return u.traceEnabled&&Sa(u.host,F.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function HNt(t,u){const s=VNt(t,u);if(s===void 0)return;if(u.traceEnabled)for(const E in s)gu(s,E)&&!EO.tryParse(E)&&Sa(u.host,F.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,E);const d=jY(s);if(!d){u.traceEnabled&&Sa(u.host,F.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g);return}const{version:f,paths:p}=d;if(typeof p!="object"){u.traceEnabled&&Sa(u.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${f}']`,"object",typeof p);return}return d}function jY(t){FAe||(FAe=new Lp(_));for(const u in t){if(!gu(t,u))continue;const s=EO.tryParse(u);if(s!==void 0&&s.test(FAe))return{version:u,paths:t[u]}}}function cM(t,u){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=lr(t.configFilePath):u.getCurrentDirectory&&(s=u.getCurrentDirectory()),s!==void 0)return KNt(s)}function KNt(t){let u;return Ug($o(t),s=>{const d=cr(s,aet);(u??(u=[])).push(d)}),u}function WNt(t,u,s){const d=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return pv(t,u,!d)===0}function OXe(t,u,s){const d=iPt(t,u,s),f=WNt(t,d,u);return{resolvedFileName:f?t:d,originalPath:f?void 0:t}}function jXe(t,u,s){const d=sc(t,"/node_modules/@types")||sc(t,"/node_modules/@types/")?net(u,s):u;return cr(t,d)}function hAe(t,u,s,d,f,p,E){H.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const v=aD(s,d);f&&(s=f.commandLine.options);const b=u?lr(u):void 0;let B=b?p==null?void 0:p.getFromDirectoryCache(t,E,b,f):void 0;if(!B&&b&&!Id(t)&&(B=p==null?void 0:p.getFromNonRelativeNameCache(t,E,b,f)),B)return v&&(Sa(d,F.Resolving_type_reference_directive_0_containing_file_1,t,u),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName),Sa(d,F.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,b),ae(B)),B;const k=cM(s,d);v&&(u===void 0?k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Sa(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,k):k===void 0?Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,u):Sa(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,u,k),f&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName));const T=[],M=[];let z=fAe(s);E!==void 0&&(z|=30);const j=p1(s);E===99&&3<=j&&j<=99&&(z|=32);const J=z&8?$2(s,E):[],K=[],Y={compilerOptions:s,host:d,traceEnabled:v,failedLookupLocations:T,affectingLocations:M,packageJsonInfoCache:p,features:z,conditions:J,requestContainingDirectory:b,reportDiagnostic:ve=>void K.push(ve),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let oe=Ce(),se=!0;oe||(oe=ne(),se=!1);let ge;if(oe){const{fileName:ve,packageId:Se}=oe;let Ne=ve,pe;s.preserveSymlinks||({resolvedFileName:Ne,originalPath:pe}=OXe(ve,d,v)),ge={primary:se,resolvedFileName:Ne,originalPath:pe,packageId:Se,isExternalLibraryImport:q7(ve)}}return B={resolvedTypeReferenceDirective:ge,failedLookupLocations:lM(T),affectingLocations:lM(M),resolutionDiagnostics:lM(K)},b&&p&&!p.isReadonly&&(p.getOrCreateCacheForDirectory(b,f).set(t,E,B),Id(t)||p.getOrCreateCacheForNonRelativeName(t,E,f).set(b,B)),v&&ae(B),B;function ae(ve){var Se;(Se=ve.resolvedTypeReferenceDirective)!=null&&Se.resolvedFileName?ve.resolvedTypeReferenceDirective.packageId?Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ve.resolvedTypeReferenceDirective.resolvedFileName,Px(ve.resolvedTypeReferenceDirective.packageId),ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ve.resolvedTypeReferenceDirective.resolvedFileName,ve.resolvedTypeReferenceDirective.primary):Sa(d,F.Type_reference_directive_0_was_not_resolved,t)}function Ce(){if(k&&k.length)return v&&Sa(d,F.Resolving_with_primary_search_path_0,k.join(", ")),G(k,ve=>{const Se=jXe(ve,t,Y),Ne=hg(ve,d);if(!Ne&&v&&Sa(d,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,ve),s.typeRoots){const pe=GB(4,Se,!Ne,Y);if(pe){const fe=uH(pe.path),xe=fe?U2(fe,!1,Y):void 0;return cAe($7(xe,pe))}}return cAe(vAe(4,Se,!Ne,Y))});v&&Sa(d,F.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const ve=u&&lr(u);if(ve!==void 0){let Se;if(!s.typeRoots||!sc(u,QB))if(v&&Sa(d,F.Looking_up_in_node_modules_folder_initial_location_0,ve),Id(t)){const{path:Ne}=JXe(ve,t);Se=yde(4,Ne,!1,Y,!0)}else{const Ne=XXe(4,t,ve,Y,void 0,void 0);Se=Ne&&Ne.value}else v&&Sa(d,F.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return cAe(Se)}else v&&Sa(d,F.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function fAe(t){let u=0;switch(p1(t)){case 3:u=30;break;case 99:u=30;break;case 100:u=30;break}return t.resolvePackageJsonExports?u|=8:t.resolvePackageJsonExports===!1&&(u&=-9),t.resolvePackageJsonImports?u|=2:t.resolvePackageJsonImports===!1&&(u&=-3),u}function $2(t,u){const s=p1(t);if(u===void 0){if(s===100)u=99;else if(s===2)return[]}const d=u===99?["import"]:["require"];return t.noDtsResolution||d.push("types"),s!==100&&d.push("node"),Hi(d,t.customConditions)}function xde(t,u,s,d,f){const p=rH(f==null?void 0:f.getPackageJsonInfoCache(),d,s);return Ug(u,E=>{if(Ac(E)!=="node_modules"){const v=cr(E,"node_modules"),b=cr(v,t);return U2(b,!1,p)}})}function VY(t,u){if(t.types)return t.types;const s=[];if(u.directoryExists&&u.getDirectories){const d=cM(t,u);if(d){for(const f of d)if(u.directoryExists(f))for(const p of u.getDirectories(f)){const E=$o(p),v=cr(f,E,"package.json");if(!(u.fileExists(v)&&EP(v,u).typings===null)){const B=Ac(E);B.charCodeAt(0)!==46&&s.push(B)}}}}return s}function mAe(t){var u;if(t===null||typeof t!="object")return""+t;if(Ha(t))return`[${(u=t.map(d=>mAe(d)))==null?void 0:u.join(",")}]`;let s="{";for(const d in t)gu(t,d)&&(s+=`${d}: ${mAe(t[d])}`);return s+"}"}function vde(t,u){return u.map(s=>mAe(tZ(t,s))).join("|")+`|${t.pathsBasePath}`}function Cde(t,u){const s=new Map,d=new Map;let f=new Map;return t&&s.set(t,f),{getMapOfCacheRedirects:p,getOrCreateMapOfCacheRedirects:E,update:v,clear:B,getOwnMap:()=>f};function p(T){return T?b(T.commandLine.options,!1):f}function E(T){return T?b(T.commandLine.options,!0):f}function v(T){t!==T&&(t?f=b(T,!0):s.set(T,f),t=T)}function b(T,M){let z=s.get(T);if(z)return z;const j=k(T);if(z=d.get(j),!z){if(t){const J=k(t);J===j?z=f:d.has(J)||d.set(J,f)}M&&(z??(z=new Map)),z&&d.set(j,z)}return z&&s.set(T,z),z}function B(){const T=t&&u.get(t);f.clear(),s.clear(),u.clear(),d.clear(),t&&(T&&u.set(t,T),s.set(t,f))}function k(T){let M=u.get(T);return M||u.set(T,M=vde(T,NY)),M}}function GNt(t,u){let s;return{getPackageJsonInfo:d,setPackageJsonInfo:f,clear:p,entries:E,getInternalMap:v};function d(b){return s==null?void 0:s.get(J0(b,t,u))}function f(b,B){(s||(s=new Map)).set(J0(b,t,u),B)}function p(){s=void 0}function E(){const b=s==null?void 0:s.entries();return b?ga(b):[]}function v(){return s}}function VXe(t,u,s,d){const f=t.getOrCreateMapOfCacheRedirects(u);let p=f.get(s);return p||(p=d(),f.set(s,p)),p}function JNt(t,u,s,d){const f=Cde(s,d);return{getFromDirectoryCache:b,getOrCreateCacheForDirectory:v,clear:p,update:E,directoryToModuleNameMap:f};function p(){f.clear()}function E(B){f.update(B)}function v(B,k){const T=J0(B,t,u);return VXe(f,k,T,()=>U7())}function b(B,k,T,M){var z,j;const J=J0(T,t,u);return(j=(z=f.getMapOfCacheRedirects(M))==null?void 0:z.get(J))==null?void 0:j.get(B,k)}}function dM(t,u){return u===void 0?t:`${u}|${t}`}function U7(){const t=new Map,u=new Map,s={get(f,p){return t.get(d(f,p))},set(f,p,E){return t.set(d(f,p),E),s},delete(f,p){return t.delete(d(f,p)),s},has(f,p){return t.has(d(f,p))},forEach(f){return t.forEach((p,E)=>{const[v,b]=u.get(E);return f(p,v,b)})},size(){return t.size}};return s;function d(f,p){const E=dM(f,p);return u.set(E,[f,p]),E}}function $Nt(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function UNt(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function qNt(t,u,s,d,f){const p=Cde(s,f);return{getFromNonRelativeNameCache:b,getOrCreateCacheForNonRelativeName:B,clear:E,update:v};function E(){p.clear()}function v(T){p.update(T)}function b(T,M,z,j){var J,K;return H.assert(!Id(T)),(K=(J=p.getMapOfCacheRedirects(j))==null?void 0:J.get(dM(T,M)))==null?void 0:K.get(z)}function B(T,M,z){return H.assert(!Id(T)),VXe(p,z,dM(T,M),k)}function k(){const T=new Map;return{get:M,set:z};function M(J){return T.get(J0(J,t,u))}function z(J,K){const Y=J0(J,t,u);if(T.has(Y))return;T.set(Y,K);const oe=d(K),se=oe&&j(Y,oe);let ge=Y;for(;ge!==se;){const ae=lr(ge);if(ae===ge||T.has(ae))break;T.set(ae,K),ge=ae}}function j(J,K){const Y=J0(lr(K),t,u);let oe=0;const se=Math.min(J.length,Y.length);for(;oed,clearAllExceptPackageJsonInfoCache:B,optionsToRedirectsKey:p};function b(){B(),d.clear()}function B(){E.clear(),v.clear()}function k(T){E.update(T),v.update(T)}}function KB(t,u,s,d,f){const p=HXe(t,u,s,d,$Nt,f);return p.getOrCreateCacheForModuleName=(E,v,b)=>p.getOrCreateCacheForNonRelativeName(E,v,b),p}function HY(t,u,s,d,f){return HXe(t,u,s,d,UNt,f)}function bde(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function KY(t,u,s,d,f){return WB(t,u,bde(s),d,f)}function KXe(t,u,s,d){const f=lr(u);return s.getFromDirectoryCache(t,d,f,void 0)}function WB(t,u,s,d,f,p,E){var v,b,B;const k=aD(s,d);p&&(s=p.commandLine.options),k&&(Sa(d,F.Resolving_module_0_from_1,t,u),p&&Sa(d,F.Using_compiler_options_of_project_reference_redirect_0,p.sourceFile.fileName));const T=lr(u);let M=f==null?void 0:f.getFromDirectoryCache(t,E,T,p);if(M)k&&Sa(d,F.Resolution_for_module_0_was_found_in_cache_from_location_1,t,T);else{let z=s.moduleResolution;if(z===void 0){switch(m1(s)){case 1:z=2;break;case 100:z=3;break;case 199:z=99;break;default:z=1;break}k&&Sa(d,F.Module_resolution_kind_is_not_specified_using_0,y8[z])}else k&&Sa(d,F.Explicitly_specified_module_resolution_kind_Colon_0,y8[z]);switch((v=hh)==null||v.logStartResolveModule(t),z){case 3:M=XNt(t,u,s,d,f,p,E);break;case 99:M=ePt(t,u,s,d,f,p,E);break;case 2:M=EAe(t,u,s,d,f,p,E?$2(s,E):void 0);break;case 1:M=yAe(t,u,s,d,f,p);break;case 100:M=gAe(t,u,s,d,f,p,E?$2(s,E):void 0);break;default:return H.fail(`Unexpected moduleResolution: ${z}`)}M&&M.resolvedModule&&((b=hh)==null||b.logInfoEvent(`Module "${t}" resolved to "${M.resolvedModule.resolvedFileName}"`)),(B=hh)==null||B.logStopResolveModule(M&&M.resolvedModule?""+M.resolvedModule.resolvedFileName:"null"),f&&!f.isReadonly&&(f.getOrCreateCacheForDirectory(T,p).set(t,E,M),Id(t)||f.getOrCreateCacheForNonRelativeName(t,E,p).set(T,M))}return k&&(M.resolvedModule?M.resolvedModule.packageId?Sa(d,F.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,M.resolvedModule.resolvedFileName,Px(M.resolvedModule.packageId)):Sa(d,F.Module_name_0_was_successfully_resolved_to_1,t,M.resolvedModule.resolvedFileName):Sa(d,F.Module_name_0_was_not_resolved,t)),M}function WXe(t,u,s,d,f){const p=ZNt(t,u,d,f);return p?p.value:Id(u)?YNt(t,u,s,d,f):QNt(t,u,d,f)}function ZNt(t,u,s,d){var f;const{baseUrl:p,paths:E,configFile:v}=d.compilerOptions;if(E&&!om(u)){d.traceEnabled&&(p&&Sa(d.host,F.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,p,u),Sa(d.host,F.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,u));const b=zq(d.compilerOptions,d.host),B=v!=null&&v.configFileSpecs?(f=v.configFileSpecs).pathPatterns||(f.pathPatterns=lZ(E)):void 0;return bAe(t,u,b,E,B,s,!1,d)}}function YNt(t,u,s,d,f){if(!f.compilerOptions.rootDirs)return;f.traceEnabled&&Sa(f.host,F.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,u);const p=$o(cr(s,u));let E,v;for(const b of f.compilerOptions.rootDirs){let B=$o(b);sc(B,rl)||(B+=rl);const k=Pa(p,B)&&(v===void 0||v.lengthvoid oe.push(ne),isConfigLookup:v,candidateIsFromPackageJsonField:!1};j&&b7(Y)&&Sa(f,F.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",se.conditions.map(ne=>`'${ne}'`).join(", "));let ge;if(Y===2){const ne=E&5,ve=E&-6;ge=ne&&Ce(ne,se)||ve&&Ce(ve,se)||void 0}else ge=Ce(E,se);let ae;if((k=ge==null?void 0:ge.value)!=null&&k.isExternalLibraryImport&&!v&&E&5&&t&8&&!Id(u)&&!CAe(5,ge.value.resolved.extension)&&(B!=null&&B.includes("import"))){Wv(se,F.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne={...se,features:se.features&-9,reportDiagnostic:Is},ve=Ce(E&5,ne);(T=ve==null?void 0:ve.value)!=null&&T.isExternalLibraryImport&&(ae=ve.value.resolved.path)}return zXe(u,(M=ge==null?void 0:ge.value)==null?void 0:M.resolved,(z=ge==null?void 0:ge.value)==null?void 0:z.isExternalLibraryImport,J,K,oe,se,p,ae);function Ce(ne,ve){const Ne=WXe(ne,u,s,(pe,fe,xe,Be)=>yde(pe,fe,xe,Be,!0),ve);if(Ne)return Im({resolved:Ne,isExternalLibraryImport:q7(Ne.path)});if(Id(u)){const{path:pe,parts:fe}=JXe(s,u),xe=yde(ne,pe,!1,ve,!0);return xe&&Im({resolved:xe,isExternalLibraryImport:kt(fe,"node_modules")})}else{let pe;if(t&2&&Pa(u,"#")&&(pe=oPt(ne,u,s,ve,p,b)),!pe&&t&4&&(pe=aPt(ne,u,s,ve,p,b)),!pe){if(u.includes(":")){j&&Sa(f,F.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,u,OY(ne));return}j&&Sa(f,F.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,u,OY(ne)),pe=XXe(ne,u,s,ve,p,b)}return ne&4&&(pe??(pe=ret(u,ve))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function JXe(t,u){const s=cr(t,u),d=yd(s),f=qu(d);return{path:f==="."||f===".."?zd($o(s)):$o(s),parts:d}}function iPt(t,u,s){if(!u.realpath)return t;const d=$o(u.realpath(t));return s&&Sa(u,F.Resolving_real_path_for_0_result_1,t,d),d}function yde(t,u,s,d,f){if(d.traceEnabled&&Sa(d.host,F.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,u,OY(t)),!ZD(u)){if(!s){const E=lr(u);hg(E,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,E),s=!0)}const p=GB(t,u,s,d);if(p){const E=f?uH(p.path):void 0,v=E?U2(E,!1,d):void 0;return $7(v,p)}}if(s||hg(u,d.host)||(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),s=!0),!(d.features&32))return vAe(t,u,s,d,f)}function q7(t){return t.includes(o_)}function uH(t,u){const s=$o(t),d=s.lastIndexOf(o_);if(d===-1)return;const f=d+o_.length;let p=$Xe(s,f,u);return s.charCodeAt(f)===64&&(p=$Xe(s,p,u)),s.slice(0,p)}function $Xe(t,u,s){const d=t.indexOf(rl,u+1);return d===-1?s?t.length:u:d}function DAe(t,u,s,d){return _de(GB(t,u,s,d))}function GB(t,u,s,d){const f=UXe(t,u,s,d);if(f)return f;if(!(d.features&32)){const p=qXe(u,t,"",s,d);if(p)return p}}function UXe(t,u,s,d){if(!Ac(u).includes("."))return;let p=_h(u);p===u&&(p=u.substring(0,u.lastIndexOf(".")));const E=u.substring(p.length);return d.traceEnabled&&Sa(d.host,F.File_name_0_has_a_1_extension_stripping_it,u,E),qXe(p,t,E,s,d)}function xAe(t,u,s,d){return t&1&&jc(u,hV)||t&4&&jc(u,dV)?WY(u,s,d)!==void 0?{path:u,ext:Kq(u),resolvedUsingTsExtension:void 0}:void 0:d.isConfigLookup&&t===8&&Ml(u,".json")?WY(u,s,d)!==void 0?{path:u,ext:".json",resolvedUsingTsExtension:void 0}:void 0:UXe(t,u,s,d)}function qXe(t,u,s,d,f){if(!d){const E=lr(t);E&&(d=!hg(E,f.host))}switch(s){case".mjs":case".mts":case".d.mts":return u&1&&p(".mts",s===".mts"||s===".d.mts")||u&4&&p(".d.mts",s===".mts"||s===".d.mts")||u&2&&p(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return u&1&&p(".cts",s===".cts"||s===".d.cts")||u&4&&p(".d.cts",s===".cts"||s===".d.cts")||u&2&&p(".cjs")||void 0;case".json":return u&4&&p(".d.json.ts")||u&8&&p(".json")||void 0;case".tsx":case".jsx":return u&1&&(p(".tsx",s===".tsx")||p(".ts",s===".tsx"))||u&4&&p(".d.ts",s===".tsx")||u&2&&(p(".jsx")||p(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return u&1&&(p(".ts",s===".ts"||s===".d.ts")||p(".tsx",s===".ts"||s===".d.ts"))||u&4&&p(".d.ts",s===".ts"||s===".d.ts")||u&2&&(p(".js")||p(".jsx"))||f.isConfigLookup&&p(".json")||void 0;default:return u&4&&!e1(t+s)&&p(`.d${s}.ts`)||void 0}function p(E,v){const b=WY(t+E,d,f);return b===void 0?void 0:{path:b,ext:E,resolvedUsingTsExtension:!f.candidateIsFromPackageJsonField&&v}}}function WY(t,u,s){var d;if(!((d=s.compilerOptions.moduleSuffixes)!=null&&d.length))return ZXe(t,u,s);const f=t3(t)??"",p=f?nV(t,f):t;return L(s.compilerOptions.moduleSuffixes,E=>ZXe(p+E+f,u,s))}function ZXe(t,u,s){var d;if(!u){if(s.host.fileExists(t))return s.traceEnabled&&Sa(s.host,F.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Sa(s.host,F.File_0_does_not_exist,t)}(d=s.failedLookupLocations)==null||d.push(t)}function vAe(t,u,s,d,f=!0){const p=f?U2(u,s,d):void 0,E=p&&p.contents.packageJsonContent,v=p&&GY(p,d);return $7(p,Fde(t,u,s,d,E,v))}function kde(t,u,s,d,f){if(!f&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let p;const E=5|(f?2:0),v=fAe(u),b=rH(d==null?void 0:d.getPackageJsonInfoCache(),s,u);b.conditions=$2(u),b.requestContainingDirectory=t.packageDirectory;const B=Fde(E,t.packageDirectory,!1,b,t.contents.packageJsonContent,GY(t,b));if(p=xi(p,B==null?void 0:B.path),v&8&&t.contents.packageJsonContent.exports){const k=ri([$2(u,99),$2(u,1)],On);for(const T of k){const M={...b,failedLookupLocations:[],conditions:T,host:s},z=nPt(t,t.contents.packageJsonContent.exports,M,E);if(z)for(const j of z)p=e0(p,j.path)}}return t.contents.resolvedEntrypoints=p||!1}function nPt(t,u,s,d){let f;if(Ha(u))for(const E of u)p(E);else if(typeof u=="object"&&u!==null&&JY(u))for(const E in u)p(u[E]);else p(u);return f;function p(E){var v,b;if(typeof E=="string"&&Pa(E,"./"))if(E.includes("*")&&s.host.readDirectory){if(E.indexOf("*")!==E.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,INt(d),void 0,[e1(E)?E.replace("*","**/*"):AO(E.replace("*","**/*"),Kj(E))]).forEach(B=>{f=e0(f,{path:B,ext:BN(B),resolvedUsingTsExtension:void 0})})}else{const B=yd(E).slice(2);if(B.includes("..")||B.includes(".")||B.includes("node_modules"))return!1;const k=cr(t.packageDirectory,E),T=$a(k,(b=(v=s.host).getCurrentDirectory)==null?void 0:b.call(v)),M=xAe(d,T,!1,s);if(M)return f=e0(f,M,(z,j)=>z.path===j.path),!0}else if(Array.isArray(E)){for(const B of E)if(p(B))return!0}else if(typeof E=="object"&&E!==null)return L(Ns(E),B=>{if(B==="default"||kt(s.conditions,B)||sH(s.conditions,B))return p(E[B]),!0})}}function rH(t,u,s){return{host:u,compilerOptions:s,traceEnabled:aD(s,u),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:_t,requestContainingDirectory:void 0,reportDiagnostic:Is,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function aH(t,u){const s=yd(t);for(s.pop();s.length>0;){const d=U2(yx(s),!1,u);if(d)return d;s.pop()}}function GY(t,u){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=HNt(t.contents.packageJsonContent,u)||!1),t.contents.versionPaths||void 0}function U2(t,u,s){var d,f,p,E,v,b;const{host:B,traceEnabled:k}=s,T=cr(t,"package.json");if(u){(d=s.failedLookupLocations)==null||d.push(T);return}const M=(f=s.packageJsonInfoCache)==null?void 0:f.getPackageJsonInfo(T);if(M!==void 0){if(typeof M!="boolean")return k&&Sa(B,F.File_0_exists_according_to_earlier_cached_lookups,T),(p=s.affectingLocations)==null||p.push(T),M.packageDirectory===t?M:{packageDirectory:t,contents:M.contents};M&&k&&Sa(B,F.File_0_does_not_exist_according_to_earlier_cached_lookups,T),(E=s.failedLookupLocations)==null||E.push(T);return}const z=hg(t,B);if(z&&B.fileExists(T)){const j=EP(T,B);k&&Sa(B,F.Found_package_json_at_0,T);const J={packageDirectory:t,contents:{packageJsonContent:j,versionPaths:void 0,resolvedEntrypoints:void 0}};return s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,J),(v=s.affectingLocations)==null||v.push(T),J}else z&&k&&Sa(B,F.File_0_does_not_exist,T),s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,z),(b=s.failedLookupLocations)==null||b.push(T)}function Fde(t,u,s,d,f,p){let E;f&&(d.isConfigLookup?E=ONt(f,u,d):E=t&4&&RNt(f,u,d)||t&7&&jNt(f,u,d)||void 0);const v=(M,z,j,J)=>{const K=WY(z,j,J);if(K){const ae=uPt(M,K);if(ae)return _de(ae);J.traceEnabled&&Sa(J.host,F.File_0_has_an_unsupported_extension_so_skipping_it,K)}const Y=M===4?5:M,oe=J.features,se=J.candidateIsFromPackageJsonField;J.candidateIsFromPackageJsonField=!0,(f==null?void 0:f.type)!=="module"&&(J.features&=-33);const ge=yde(Y,z,j,J,!1);return J.features=oe,J.candidateIsFromPackageJsonField=se,ge},b=E?!hg(lr(E),d.host):void 0,B=s||!hg(u,d.host),k=cr(u,d.isConfigLookup?"tsconfig":"index");if(p&&(!E||GE(u,E))){const M=JE(u,E||k,!1);d.traceEnabled&&Sa(d.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.version,_,M);const z=bAe(t,M,u,p.paths,void 0,v,b||B,d);if(z)return MXe(z.value)}const T=E&&MXe(v(t,E,b,d));if(T)return T;if(!(d.features&32))return GB(t,k,B,d)}function uPt(t,u,s){const d=t3(u);return d!==void 0&&CAe(t,d)?{path:u,ext:d,resolvedUsingTsExtension:s}:void 0}function CAe(t,u){return t&2&&(u===".js"||u===".jsx"||u===".mjs"||u===".cjs")||t&1&&(u===".ts"||u===".tsx"||u===".mts"||u===".cts")||t&4&&(u===".d.ts"||u===".d.mts"||u===".d.cts")||t&8&&u===".json"||!1}function oH(t){let u=t.indexOf(rl);return t[0]==="@"&&(u=t.indexOf(rl,u+1)),u===-1?{packageName:t,rest:""}:{packageName:t.slice(0,u),rest:t.slice(u+1)}}function JY(t){return ye(Ns(t),u=>Pa(u,"."))}function rPt(t){return!Oe(Ns(t),u=>Pa(u,"."))}function aPt(t,u,s,d,f,p){var E,v;const b=$a(cr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=aH(b,d);if(!B||!B.contents.packageJsonContent.exports||typeof B.contents.packageJsonContent.name!="string")return;const k=yd(u),T=yd(B.contents.packageJsonContent.name);if(!ye(T,(K,Y)=>k[Y]===K))return;const M=k.slice(T.length),z=S(M)?`.${rl}${M.join(rl)}`:".";if(Bv(d.compilerOptions)&&!q7(s))return Ade(B,t,z,d,f,p);const j=t&5,J=t&-6;return Ade(B,j,z,d,f,p)||Ade(B,J,z,d,f,p)}function Ade(t,u,s,d,f,p){if(t.contents.packageJsonContent.exports){if(s==="."){let E;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&rPt(t.contents.packageJsonContent.exports)?E=t.contents.packageJsonContent.exports:gu(t.contents.packageJsonContent.exports,".")&&(E=t.contents.packageJsonContent.exports["."]),E)return QXe(u,d,f,p,s,t,!1)(E,"",!1,".")}else if(JY(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Im(void 0);const E=YXe(u,d,f,p,s,t.contents.packageJsonContent.exports,t,!1);if(E)return E}return d.traceEnabled&&Sa(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Im(void 0)}}function oPt(t,u,s,d,f,p){var E,v;if(u==="#"||Pa(u,"#/"))return d.traceEnabled&&Sa(d.host,F.Invalid_import_specifier_0_has_no_possible_resolutions,u),Im(void 0);const b=$a(cr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=aH(b,d);if(!B)return d.traceEnabled&&Sa(d.host,F.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,b),Im(void 0);if(!B.contents.packageJsonContent.imports)return d.traceEnabled&&Sa(d.host,F.package_json_scope_0_has_no_imports_defined,B.packageDirectory),Im(void 0);const k=YXe(t,d,f,p,u,B.contents.packageJsonContent.imports,B,!0);return k||(d.traceEnabled&&Sa(d.host,F.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,u,B.packageDirectory),Im(void 0))}function Sde(t,u){const s=t.indexOf("*"),d=u.indexOf("*"),f=s===-1?t.length:s+1,p=d===-1?u.length:d+1;return f>p?-1:p>f||s===-1?1:d===-1||t.length>u.length?-1:u.length>t.length?1:0}function YXe(t,u,s,d,f,p,E,v){const b=QXe(t,u,s,d,f,E,v);if(!sc(f,rl)&&!f.includes("*")&&gu(p,f)){const T=p[f];return b(T,"",!1,f)}const B=Ph(ti(Ns(p),T=>T.includes("*")||sc(T,"/")),Sde);for(const T of B)if(u.features&16&&k(T,f)){const M=p[T],z=T.indexOf("*"),j=f.substring(T.substring(0,z).length,f.length-(T.length-1-z));return b(M,j,!0,T)}else if(sc(T,"*")&&Pa(f,T.substring(0,T.length-1))){const M=p[T],z=f.substring(T.length-1);return b(M,z,!0,T)}else if(Pa(f,T)){const M=p[T],z=f.substring(T.length);return b(M,z,!1,T)}function k(T,M){if(sc(T,"*"))return!1;const z=T.indexOf("*");return z===-1?!1:Pa(M,T.substring(0,z))&&sc(M,T.substring(z+1))}}function QXe(t,u,s,d,f,p,E){return v;function v(b,B,k,T){if(typeof b=="string"){if(!k&&B.length>0&&!sc(b,"/"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);if(!Pa(b,"./")){if(E&&!Pa(b,"../")&&!Pa(b,"/")&&!Pf(b)){const ae=k?b.replace(/\*/g,B):b+B;Wv(u,F.Using_0_subpath_1_with_target_2,"imports",T,ae),Wv(u,F.Resolving_module_0_from_1,ae,p.packageDirectory+"/");const Ce=nH(u.features,ae,p.packageDirectory+"/",u.compilerOptions,u.host,s,t,!1,d,u.conditions);return Im(Ce.resolvedModule?{path:Ce.resolvedModule.resolvedFileName,extension:Ce.resolvedModule.extension,packageId:Ce.resolvedModule.packageId,originalPath:Ce.resolvedModule.originalPath,resolvedUsingTsExtension:Ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0)}const K=(om(b)?yd(b).slice(1):yd(b)).slice(1);if(K.includes("..")||K.includes(".")||K.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);const Y=cr(p.packageDirectory,b),oe=yd(B);if(oe.includes("..")||oe.includes(".")||oe.includes("node_modules"))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);u.traceEnabled&&Sa(u.host,F.Using_0_subpath_1_with_target_2,E?"imports":"exports",T,k?b.replace(/\*/g,B):b+B);const se=M(k?Y.replace(/\*/g,B):Y+B),ge=j(se,B,cr(p.packageDirectory,"package.json"),E);return ge||Im($7(p,xAe(t,se,!1,u)))}else if(typeof b=="object"&&b!==null)if(Array.isArray(b)){if(!S(b))return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);for(const J of b){const K=v(J,B,k,T);if(K)return K}}else{Wv(u,F.Entering_conditional_exports);for(const J of Ns(b))if(J==="default"||u.conditions.includes(J)||sH(u.conditions,J)){Wv(u,F.Matched_0_condition_1,E?"imports":"exports",J);const K=b[J],Y=v(K,B,k,T);if(Y)return Wv(u,F.Resolved_under_condition_0,J),Wv(u,F.Exiting_conditional_exports),Y;Wv(u,F.Failed_to_resolve_under_condition_0,J)}else Wv(u,F.Saw_non_matching_condition_0,J);Wv(u,F.Exiting_conditional_exports);return}else if(b===null)return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_explicitly_maps_specifier_1_to_null,p.packageDirectory,f),Im(void 0);return u.traceEnabled&&Sa(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Im(void 0);function M(J){var K,Y;return J===void 0?J:$a(J,(Y=(K=u.host).getCurrentDirectory)==null?void 0:Y.call(K))}function z(J,K){return zd(cr(J,K))}function j(J,K,Y,oe){var se,ge,ae,Ce;if(!u.isConfigLookup&&(u.compilerOptions.declarationDir||u.compilerOptions.outDir)&&!J.includes("/node_modules/")&&(!u.compilerOptions.configFile||GE(p.packageDirectory,M(u.compilerOptions.configFile.fileName),!Bde(u)))){const ve=n5({useCaseSensitiveFileNames:()=>Bde(u)}),Se=[];if(u.compilerOptions.rootDir||u.compilerOptions.composite&&u.compilerOptions.configFilePath){const Ne=M(yM(u.compilerOptions,()=>[],((ge=(se=u.host).getCurrentDirectory)==null?void 0:ge.call(se))||"",ve));Se.push(Ne)}else if(u.requestContainingDirectory){const Ne=M(cr(u.requestContainingDirectory,"index.ts")),pe=M(yM(u.compilerOptions,()=>[Ne,M(Y)],((Ce=(ae=u.host).getCurrentDirectory)==null?void 0:Ce.call(ae))||"",ve));Se.push(pe);let fe=zd(pe);for(;fe&&fe.length>1;){const xe=yd(fe);xe.pop();const Be=yx(xe);Se.unshift(Be),fe=zd(Be)}}Se.length>1&&u.reportDiagnostic(cc(oe?F.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:F.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,K===""?".":K,Y));for(const Ne of Se){const pe=ne(Ne);for(const fe of pe)if(GE(fe,J,!Bde(u))){const xe=J.slice(fe.length+1),Be=cr(Ne,xe),Ge=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ae of Ge)if(Ml(Be,Ae)){const De=xye(Be);for(const Ke of De){if(!CAe(t,Ke))continue;const Je=AO(Be,Ke,Ae,!Bde(u));if(u.host.fileExists(Je))return Im($7(p,xAe(t,Je,!1,u)))}}}}}return;function ne(ve){var Se,Ne;const pe=u.compilerOptions.configFile?((Ne=(Se=u.host).getCurrentDirectory)==null?void 0:Ne.call(Se))||"":ve,fe=[];return u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.declarationDir))),u.compilerOptions.outDir&&u.compilerOptions.outDir!==u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.outDir))),fe}}}}function sH(t,u){if(!t.includes("types")||!Pa(u,"types@"))return!1;const s=EO.tryParse(u.substring(6));return s?s.test(_):!1}function XXe(t,u,s,d,f,p){return eet(t,u,s,d,!1,f,p)}function sPt(t,u,s){return eet(4,t,u,s,!0,void 0,void 0)}function eet(t,u,s,d,f,p,E){const v=d.features===0?void 0:d.features&32?99:1,b=t&5,B=t&-6;if(b){Wv(d,F.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,OY(b));const T=k(b);if(T)return T}if(B&&!f)return Wv(d,F.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,OY(B)),k(B);function k(T){return Ug(q1(s),M=>{if(Ac(M)!=="node_modules"){const z=uet(p,u,v,M,E,d);return z||Im(tet(T,u,M,d,f,p,E))}})}}function tet(t,u,s,d,f,p,E){const v=cr(s,"node_modules"),b=hg(v,d.host);if(!b&&d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),!f){const B=iet(t,u,v,b,d,p,E);if(B)return B}if(t&4){const B=cr(v,"@types");let k=b;return b&&!hg(B,d.host)&&(d.traceEnabled&&Sa(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,B),k=!1),iet(4,net(u,d),B,k,d,p,E)}}function iet(t,u,s,d,f,p,E){var v,b;const B=$o(cr(s,u)),{packageName:k,rest:T}=oH(u),M=cr(s,k);let z,j=U2(B,!d,f);if(T!==""&&j&&(!(f.features&8)||!gu(((v=z=U2(M,!d,f))==null?void 0:v.contents.packageJsonContent)??_t,"exports"))){const Y=GB(t,B,!d,f);if(Y)return _de(Y);const oe=Fde(t,B,!d,f,j.contents.packageJsonContent,GY(j,f));return $7(j,oe)}const J=(Y,oe,se,ge)=>{let ae=(T||!(ge.features&32))&&GB(Y,oe,se,ge)||Fde(Y,oe,se,ge,j&&j.contents.packageJsonContent,j&&GY(j,ge));return!ae&&j&&(j.contents.packageJsonContent.exports===void 0||j.contents.packageJsonContent.exports===null)&&ge.features&32&&(ae=GB(Y,cr(oe,"index.js"),se,ge)),$7(j,ae)};if(T!==""&&(j=z??U2(M,!d,f)),j&&j.contents.packageJsonContent.exports&&f.features&8)return(b=Ade(j,t,cr(".",T),f,p,E))==null?void 0:b.value;const K=T!==""&&j?GY(j,f):void 0;if(K){f.traceEnabled&&Sa(f.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,K.version,_,T);const Y=d&&hg(M,f.host),oe=bAe(t,T,M,K.paths,void 0,J,!Y,f);if(oe)return oe.value}return J(t,B,!d,f)}function bAe(t,u,s,d,f,p,E,v){f||(f=lZ(d));const b=Ble(f,u);if(b){const B=Ja(b)?void 0:t2e(b,u),k=Ja(b)?b:e2e(b);return v.traceEnabled&&Sa(v.host,F.Module_name_0_matched_pattern_1,u,k),{value:L(d[k],M=>{const z=B?M.replace("*",B):M,j=$o(cr(s,z));v.traceEnabled&&Sa(v.host,F.Trying_substitution_0_candidate_module_location_Colon_1,M,z);const J=t3(M);if(J!==void 0){const K=WY(j,E,v);if(K!==void 0)return _de({path:K,ext:J,resolvedUsingTsExtension:void 0})}return p(t,j,E||!hg(lr(j),v.host),v)})}}}function net(t,u){const s=JB(t);return u.traceEnabled&&s!==t&&Sa(u.host,F.Scoped_package_detected_looking_in_0,s),s}function $Y(t){return`@types/${JB(t)}`}function JB(t){if(Pa(t,"@")){const u=t.replace(rl,Tde);if(u!==t)return u.slice(1)}return t}function hM(t){const u=yN(t,"@types/");return u!==t?lH(u):t}function lH(t){return t.includes(Tde)?"@"+t.replace(Tde,rl):t}function uet(t,u,s,d,f,p){const E=t&&t.getFromNonRelativeNameCache(u,s,d,f);if(E)return p.traceEnabled&&Sa(p.host,F.Resolution_for_module_0_was_found_in_cache_from_location_1,u,d),p.resultFromCache=E,{value:E.resolvedModule&&{path:E.resolvedModule.resolvedFileName,originalPath:E.resolvedModule.originalPath||!0,extension:E.resolvedModule.extension,packageId:E.resolvedModule.packageId,resolvedUsingTsExtension:E.resolvedModule.resolvedUsingTsExtension}}}function yAe(t,u,s,d,f,p){const E=aD(s,d),v=[],b=[],B=lr(u),k=[],T={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:f,features:0,conditions:[],requestContainingDirectory:B,reportDiagnostic:j=>void k.push(j),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},M=z(5)||z(2|(s.resolveJsonModule?8:0));return zXe(t,M&&M.value,(M==null?void 0:M.value)&&q7(M.value.path),v,b,k,T,f);function z(j){const J=WXe(j,t,B,DAe,T);if(J)return{value:J};if(Id(t)){const K=$o(cr(B,t));return Im(DAe(j,K,!1,T))}else{const K=Ug(B,Y=>{const oe=uet(f,t,void 0,Y,p,T);if(oe)return oe;const se=$o(cr(Y,t));return Im(DAe(j,se,!1,T))});if(K)return K;if(j&5){let Y=sPt(t,B,T);return j&4&&(Y??(Y=ret(t,T))),Y}}}}function ret(t,u){if(u.compilerOptions.typeRoots)for(const s of u.compilerOptions.typeRoots){const d=jXe(s,t,u),f=hg(s,u.host);!f&&u.traceEnabled&&Sa(u.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const p=GB(4,d,!f,u);if(p){const v=uH(p.path),b=v?U2(v,!1,u):void 0;return Im($7(b,p))}const E=vAe(4,d,!f,u);if(E)return Im(E)}}function $B(t,u){return!!t.allowImportingTsExtensions||u&&e1(u)}function kAe(t,u,s,d,f,p){const E=aD(s,d);E&&Sa(d,F.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,u,t,f);const v=[],b=[],B=[],k={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:p,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:M=>void B.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=tet(4,t,f,k,!1,void 0,void 0);return IXe(T,!0,v,b,B,k.resultFromCache,void 0)}function Im(t){return t!==void 0?{value:t}:void 0}function Wv(t,u,...s){t.traceEnabled&&Sa(t.host,u,...s)}function Bde(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var FAe,aet,wde,o_,Tde,lPt=o({"src/compiler/moduleNameResolver.ts"(){Bo(),aet=cr("node_modules","@types"),wde=(t=>(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(wde||{}),o_="/node_modules/",Tde="__"}});function oD(t,u){return t.body&&!t.body.parent&&(ks(t.body,t),Vx(t.body,!1)),t.body?AAe(t.body,u):1}function AAe(t,u=new Map){const s=$s(t);if(u.has(s))return u.get(s)||0;u.set(s,void 0);const d=cPt(t,u);return u.set(s,d),d}function cPt(t,u){switch(t.kind){case 264:case 265:return 0;case 266:if(b2(t))return 2;break;case 272:case 271:if(!Yu(t,32))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let d=0;for(const f of s.exportClause.elements){const p=dPt(f,u);if(p>d&&(d=p),d===1)return d}return d}break;case 268:{let d=0;return ao(t,f=>{const p=AAe(f,u);switch(p){case 0:return;case 2:d=2;return;case 1:return d=1,!0;default:H.assertNever(p)}}),d}case 267:return oD(t,u);case 80:if(t.flags&4096)return 0}return 1}function dPt(t,u){const s=t.propertyName||t.name;let d=t.parent;for(;d;){if(po(d)||rE(d)||la(d)){const f=d.statements;let p;for(const E of f)if(jO(E,s)){E.parent||(ks(E,d),Vx(E,!1));const v=AAe(E,u);if((p===void 0||v>p)&&(p=v),p===1)return p;E.kind===271&&(p=1)}if(p!==void 0)return p}d=d.parent}return 1}function Z7(t){return H.attachFlowNodeDebugInfo(t),t}function SAe(t,u){var s,d;ul("beforeBind"),(s=hh)==null||s.logStartBindFile(""+t.fileName),set(t,u),(d=hh)==null||d.logStopBindFile(),ul("afterBind"),Tm("Bind","beforeBind","afterBind")}function hPt(){var t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce=!1,ne=0,ve,Se,Ne={flags:1},pe={flags:1},fe=le();return Be;function xe(Q,Me,...wt){return K4(zn(Q)||t,Q,Me,...wt)}function Be(Q,Me){var wt,ki;t=Q,u=Me,s=Os(u),ae=Ge(t,Me),Se=new Set,ne=0,ve=Qd.getSymbolConstructor(),H.attachFlowNodeDebugInfo(Ne),H.attachFlowNodeDebugInfo(pe),t.locals||((wt=Gn)==null||wt.push(Gn.Phase.Bind,"bindSourceFile",{path:t.path},!0),vt(t),(ki=Gn)==null||ki.pop(),t.symbolCount=ne,t.classifiableNames=Se,vl()),t=void 0,u=void 0,s=void 0,d=void 0,f=void 0,p=void 0,E=void 0,v=void 0,b=void 0,B=!1,k=void 0,T=void 0,M=void 0,z=void 0,j=void 0,J=void 0,K=void 0,oe=void 0,se=!1,Ce=!1,ge=0}function Ge(Q,Me){return Z4(Me,"alwaysStrict")&&!Q.isDeclarationFile?!0:!!Q.externalModuleIndicator}function Ae(Q,Me){return ne++,new ve(Q,Me)}function De(Q,Me,wt){Q.flags|=wt,Me.symbol=Q,Q.declarations=e0(Q.declarations,Me),wt&1955&&!Q.exports&&(Q.exports=Vo()),wt&6240&&!Q.members&&(Q.members=Vo()),Q.constEnumOnlyModule&&Q.flags&304&&(Q.constEnumOnlyModule=!1),wt&111551&&Fj(Q,Me)}function Ke(Q){if(Q.kind===277)return Q.isExportEquals?"export=":"default";const Me=Za(Q);if(Me){if(N1(Q)){const wt=J4(Me);return Yg(Q)?"__global":`"${wt}"`}if(Me.kind===167){const wt=Me.expression;if(Pm(wt))return Al(wt.text);if(Tq(wt))return Uo(wt.operator)+wt.operand.text;H.fail("Only computed properties with literal names have declaration names")}if(ea(Me)){const wt=Yd(Q);if(!wt)return;const ki=wt.symbol;return zj(ki,Me.escapedText)}return gg(Me)?k7(Me):Xg(Me)?oP(Me):void 0}switch(Q.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(Xl(Q)===2)return"export=";H.fail("Unknown binary declaration kind");break;case 324:return X8(Q)?"__new":"__call";case 169:return H.assert(Q.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${H.formatSyntaxKind(Q.parent.kind)}, expected JSDocFunctionType`),"arg"+Q.parent.parameters.indexOf(Q)}}function Je(Q){return mh(Q)?b0(Q.name):Qr(H.checkDefined(Ke(Q)))}function ft(Q,Me,wt,ki,In,tr,ir){H.assert(ir||!Ix(wt));const ha=Yu(wt,2048)||eh(wt)&&wt.name.escapedText==="default",os=ir?"__computed":ha&&Me?"default":Ke(wt);let ss;if(os===void 0)ss=Ae(0,"__missing");else if(ss=Q.get(os),ki&2885600&&Se.add(os),!ss)Q.set(os,ss=Ae(0,os)),tr&&(ss.isReplaceableByMethod=!0);else{if(tr&&!ss.isReplaceableByMethod)return ss;if(ss.flags&In){if(ss.isReplaceableByMethod)Q.set(os,ss=Ae(0,os));else if(!(ki&3&&ss.flags&67108864)){mh(wt)&&ks(wt.name,wt);let Rl=ss.flags&2?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,x1=!0;(ss.flags&384||ki&384)&&(Rl=F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,x1=!1);let fd=!1;S(ss.declarations)&&(ha||ss.declarations&&ss.declarations.length&&wt.kind===277&&!wt.isExportEquals)&&(Rl=F.A_module_cannot_have_multiple_default_exports,x1=!1,fd=!0);const $m=[];jp(wt)&&Ql(wt.type)&&Yu(wt,32)&&ss.flags&2887656&&$m.push(xe(wt,F.Did_you_mean_0,`export type { ${Qr(wt.name.escapedText)} }`));const _s=Za(wt)||wt;L(ss.declarations,(Um,h3)=>{const d_=Za(Um)||Um,ia=x1?xe(d_,Rl,Je(Um)):xe(d_,Rl);t.bindDiagnostics.push(fd?Es(ia,xe(_s,h3===0?F.Another_export_default_is_here:F.and_here)):ia),fd&&$m.push(xe(d_,F.The_first_export_default_is_here))});const np=x1?xe(_s,Rl,Je(wt)):xe(_s,Rl);t.bindDiagnostics.push(Es(np,...$m)),ss=Ae(0,os)}}}return De(ss,wt,ki),ss.parent?H.assert(ss.parent===Me,"Existing symbol parent should match new one"):ss.parent=Me,ss}function Ye(Q,Me,wt){const ki=!!(m2(Q)&32)||Ve(Q);if(Me&2097152)return Q.kind===281||Q.kind===271&&ki?ft(f.symbol.exports,f.symbol,Q,Me,wt):(H.assertNode(f,UE),ft(f.locals,void 0,Q,Me,wt));if(G4(Q)&&H.assert(Qn(Q)),!N1(Q)&&(ki||f.flags&128)){if(!UE(f)||!f.locals||Yu(Q,2048)&&!Ke(Q))return ft(f.symbol.exports,f.symbol,Q,Me,wt);const In=Me&111551?1048576:0,tr=ft(f.locals,void 0,Q,In,wt);return tr.exportSymbol=ft(f.symbol.exports,f.symbol,Q,Me,wt),Q.localSymbol=tr,tr}else return H.assertNode(f,UE),ft(f.locals,void 0,Q,Me,wt)}function Ve(Q){if(Q.parent&&_c(Q)&&(Q=Q.parent),!G4(Q))return!1;if(!LV(Q)&&Q.fullName)return!0;const Me=Za(Q);return Me?!!($j(Me.parent)&&ql(Me.parent)||Q1(Me.parent)&&m2(Me.parent)&32):!1}function We(Q,Me){const wt=f,ki=p,In=E;if(Me&1?(Q.kind!==219&&(p=f),f=E=Q,Me&32&&(f.locals=Vo(),ca(f))):Me&2&&(E=Q,Me&32&&(E.locals=void 0)),Me&4){const tr=k,ir=T,ha=M,os=z,ss=K,Rl=oe,x1=se,fd=Me&16&&!Yu(Q,1024)&&!Q.asteriskToken&&!!nk(Q)||Q.kind===175;fd||(k=Z7({flags:2}),Me&144&&(k.node=Q)),z=fd||Q.kind===176||Qn(Q)&&(Q.kind===262||Q.kind===218)?xn():void 0,K=void 0,T=void 0,M=void 0,oe=void 0,se=!1,st(Q),Q.flags&=-5633,!(k.flags&1)&&Me&8&&H4(Q.body)&&(Q.flags|=512,se&&(Q.flags|=1024),Q.endFlowNode=k),Q.kind===312&&(Q.flags|=ge,Q.endFlowNode=k),z&&(Ai(z,k),k=bt(z),(Q.kind===176||Q.kind===175||Qn(Q)&&(Q.kind===262||Q.kind===218))&&(Q.returnFlowNode=k)),fd||(k=tr),T=ir,M=ha,z=os,K=ss,oe=Rl,se=x1}else Me&64?(B=!1,st(Q),H.assertNotNode(Q,at),Q.flags=B?Q.flags|256:Q.flags&-257):st(Q);f=wt,p=ki,E=In}function Gt(Q){Yt(Q,Me=>Me.kind===262?vt(Me):void 0),Yt(Q,Me=>Me.kind!==262?vt(Me):void 0)}function Yt(Q,Me=vt){Q!==void 0&&L(Q,Me)}function Ie(Q){ao(Q,vt,Yt)}function st(Q){const Me=Ce;if(Ce=!1,Ci(Q)){Ie(Q),mi(Q),Ce=Me;return}switch(Q.kind>=243&&Q.kind<=259&&!u.allowUnreachableCode&&(Q.flowNode=k),Q.kind){case 247:ra(Q);break;case 246:Ta(Q);break;case 248:Yo(Q);break;case 249:case 250:bo(Q);break;case 245:Qe(Q);break;case 253:case 257:Et(Q);break;case 252:case 251:Xt(Q);break;case 258:Pe(Q);break;case 255:et(Q);break;case 269:gt(Q);break;case 296:ii(Q);break;case 244:me(Q);break;case 256:vi(Q);break;case 224:$i(Q);break;case 225:Qi(Q);break;case 226:if(r5(Q)){Ce=Me,on(Q);return}fe(Q);break;case 220:te(Q);break;case 227:we(Q);break;case 260:je(Q);break;case 211:case 212:pr(Q);break;case 213:Xu(Q);break;case 235:Ru(Q);break;case 353:case 345:case 347:ct(Q);break;case 312:{Gt(Q.statements),vt(Q.endOfFileToken);break}case 241:case 268:Gt(Q.statements);break;case 208:X(Q);break;case 169:it(Q);break;case 210:case 209:case 303:case 230:Ce=Me;default:Ie(Q);break}mi(Q),Ce=Me}function St(Q){switch(Q.kind){case 80:case 81:case 110:case 211:case 212:return ei(Q);case 213:return ht(Q);case 217:case 235:return St(Q.expression);case 226:return Ni(Q);case 224:return Q.operator===54&&St(Q.operand);case 221:return St(Q.expression)}return!1}function It(Q){return pP(Q)||(Iu(Q)||O7(Q)||Cf(Q))&&It(Q.expression)||Xn(Q)&&Q.operatorToken.kind===28&&It(Q.right)||U0(Q)&&(Pm(Q.argumentExpression)||ec(Q.argumentExpression))&&It(Q.expression)||ld(Q)&&It(Q.left)}function ei(Q){return It(Q)||Y1(Q)&&ei(Q.expression)}function ht(Q){if(Q.arguments){for(const Me of Q.arguments)if(ei(Me))return!0}return!!(Q.expression.kind===211&&ei(Q.expression.expression))}function Ut(Q,Me){return AB(Q)&&ji(Q.expression)&&t0(Me)}function Ni(Q){switch(Q.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(Q.left);case 35:case 36:case 37:case 38:return ji(Q.left)||ji(Q.right)||Ut(Q.right,Q.left)||Ut(Q.left,Q.right)||HN(Q.right)&&St(Q.left)||HN(Q.left)&&St(Q.right);case 104:return ji(Q.left);case 103:return St(Q.right);case 28:return St(Q.right)}return!1}function ji(Q){switch(Q.kind){case 217:return ji(Q.expression);case 226:switch(Q.operatorToken.kind){case 64:return ji(Q.left);case 28:return ji(Q.right)}}return ei(Q)}function xn(){return Z7({flags:4,antecedents:void 0})}function Jn(){return Z7({flags:8,antecedents:void 0})}function an(Q,Me,wt){return Z7({flags:1024,target:Q,antecedents:Me,antecedent:wt})}function Pi(Q){Q.flags|=Q.flags&2048?4096:2048}function Ai(Q,Me){!(Me.flags&1)&&!kt(Q.antecedents,Me)&&((Q.antecedents||(Q.antecedents=[])).push(Me),Pi(Me))}function Zu(Q,Me,wt){return Me.flags&1?Me:wt?(wt.kind===112&&Q&64||wt.kind===97&&Q&32)&&!MU(wt)&&!Kse(wt.parent)?Ne:St(wt)?(Pi(Me),Z7({flags:Q,antecedent:Me,node:wt})):Me:Q&32?Me:Ne}function aa(Q,Me,wt,ki){return Pi(Q),Z7({flags:128,antecedent:Q,switchStatement:Me,clauseStart:wt,clauseEnd:ki})}function yr(Q,Me,wt){Pi(Me);const ki=Z7({flags:Q,antecedent:Me,node:wt});return K&&Ai(K,ki),ki}function Ba(Q,Me){return Pi(Q),Z7({flags:512,antecedent:Q,node:Me})}function bt(Q){const Me=Q.antecedents;return Me?Me.length===1?Me[0]:Q:Ne}function jn(Q){const Me=Q.parent;switch(Me.kind){case 245:case 247:case 246:return Me.expression===Q;case 248:case 227:return Me.condition===Q}return!1}function Ln(Q){for(;;)if(Q.kind===217)Q=Q.expression;else if(Q.kind===224&&Q.operator===54)Q=Q.operand;else return Gj(Q)}function Si(Q){return ole(l0(Q))}function Dn(Q){for(;Cf(Q.parent)||zv(Q.parent)&&Q.parent.operator===54;)Q=Q.parent;return!jn(Q)&&!Ln(Q.parent)&&!(Y1(Q.parent)&&Q.parent.expression===Q)}function Cn(Q,Me,wt,ki){const In=j,tr=J;j=wt,J=ki,Q(Me),j=In,J=tr}function tu(Q,Me,wt){Cn(vt,Q,Me,wt),(!Q||!Si(Q)&&!Ln(Q)&&!(Y1(Q)&&RN(Q)))&&(Ai(Me,Zu(32,k,Q)),Ai(wt,Zu(64,k,Q)))}function oa(Q,Me,wt){const ki=T,In=M;T=Me,M=wt,vt(Q),T=ki,M=In}function Da(Q,Me){let wt=oe;for(;wt&&Q.parent.kind===256;)wt.continueTarget=Me,wt=wt.next,Q=Q.parent;return Me}function ra(Q){const Me=Da(Q,Jn()),wt=xn(),ki=xn();Ai(Me,k),k=Me,tu(Q.expression,wt,ki),k=bt(wt),oa(Q.statement,ki,Me),Ai(Me,k),k=bt(ki)}function Ta(Q){const Me=Jn(),wt=Da(Q,xn()),ki=xn();Ai(Me,k),k=Me,oa(Q.statement,ki,wt),Ai(wt,k),k=bt(wt),tu(Q.expression,Me,ki),k=bt(ki)}function Yo(Q){const Me=Da(Q,Jn()),wt=xn(),ki=xn();vt(Q.initializer),Ai(Me,k),k=Me,tu(Q.condition,wt,ki),k=bt(wt),oa(Q.statement,ki,Me),vt(Q.incrementor),Ai(Me,k),k=bt(ki)}function bo(Q){const Me=Da(Q,Jn()),wt=xn();vt(Q.expression),Ai(Me,k),k=Me,Q.kind===250&&vt(Q.awaitModifier),Ai(wt,k),vt(Q.initializer),Q.initializer.kind!==261&&Ot(Q.initializer),oa(Q.statement,wt,Me),Ai(Me,k),k=bt(wt)}function Qe(Q){const Me=xn(),wt=xn(),ki=xn();tu(Q.expression,Me,wt),k=bt(Me),vt(Q.thenStatement),Ai(ki,k),k=bt(wt),vt(Q.elseStatement),Ai(ki,k),k=bt(ki)}function Et(Q){vt(Q.expression),Q.kind===253&&(se=!0,z&&Ai(z,k)),k=Ne}function Mt(Q){for(let Me=oe;Me;Me=Me.next)if(Me.name===Q)return Me}function qt(Q,Me,wt){const ki=Q.kind===252?Me:wt;ki&&(Ai(ki,k),k=Ne)}function Xt(Q){if(vt(Q.label),Q.label){const Me=Mt(Q.label.escapedText);Me&&(Me.referenced=!0,qt(Q,Me.breakTarget,Me.continueTarget))}else qt(Q,T,M)}function Pe(Q){const Me=z,wt=K,ki=xn(),In=xn();let tr=xn();if(Q.finallyBlock&&(z=In),Ai(tr,k),K=tr,vt(Q.tryBlock),Ai(ki,k),Q.catchClause&&(k=bt(tr),tr=xn(),Ai(tr,k),K=tr,vt(Q.catchClause),Ai(ki,k)),z=Me,K=wt,Q.finallyBlock){const ir=xn();ir.antecedents=Hi(Hi(ki.antecedents,tr.antecedents),In.antecedents),k=ir,vt(Q.finallyBlock),k.flags&1?k=Ne:(z&&In.antecedents&&Ai(z,an(ir,In.antecedents,k)),K&&tr.antecedents&&Ai(K,an(ir,tr.antecedents,k)),k=ki.antecedents?an(ir,ki.antecedents,k):Ne)}else k=bt(ki)}function et(Q){const Me=xn();vt(Q.expression);const wt=T,ki=Y;T=Me,Y=k,vt(Q.caseBlock),Ai(Me,k);const In=L(Q.caseBlock.clauses,tr=>tr.kind===297);Q.possiblyExhaustive=!In&&!Me.antecedents,In||Ai(Me,aa(Y,Q,0,0)),T=wt,Y=ki,k=bt(Me)}function gt(Q){const Me=Q.clauses,wt=Q.parent.expression.kind===112||St(Q.parent.expression);let ki=Ne;for(let In=0;InGc(wt)||tc(wt))}function as(Q){Q.flags&33554432&&!Ir(Q)?Q.flags|=128:Q.flags&=-129}function wo(Q){if(as(Q),N1(Q))if(Yu(Q,32)&&Q0(Q,F.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),p0e(Q))Fn(Q);else{let Me;if(Q.name.kind===11){const{text:ki}=Q.name;Me=fB(ki),Me===void 0&&Q0(Q.name,F.Pattern_0_can_have_at_most_one_Asterisk_character,ki)}const wt=Ku(Q,512,110735);t.patternAmbientModules=xi(t.patternAmbientModules,Me&&!Ja(Me)?{pattern:Me,symbol:wt}:void 0)}else{const Me=Fn(Q);if(Me!==0){const{symbol:wt}=Q;wt.constEnumOnlyModule=!(wt.flags&304)&&Me===2&&wt.constEnumOnlyModule!==!1}}}function Fn(Q){const Me=oD(Q),wt=Me!==0;return Ku(Q,wt?512:1024,wt?110735:0),Me}function vc(Q){const Me=Ae(131072,Ke(Q));De(Me,Q,131072);const wt=Ae(2048,"__type");De(wt,Q,2048),wt.members=Vo(),wt.members.set(Me.escapedName,Me)}function Ya(Q){return wl(Q,4096,"__object")}function c0(Q){return wl(Q,4096,"__jsxAttributes")}function Ul(Q,Me,wt){return Ku(Q,Me,wt)}function wl(Q,Me,wt){const ki=Ae(Me,wt);return Me&106508&&(ki.parent=f.symbol),De(ki,Q,Me),ki}function hd(Q,Me,wt){switch(E.kind){case 267:Ye(Q,Me,wt);break;case 312:if(cm(f)){Ye(Q,Me,wt);break}default:H.assertNode(E,UE),E.locals||(E.locals=Vo(),ca(E)),ft(E.locals,void 0,Q,Me,wt)}}function vl(){if(!b)return;const Q=f,Me=v,wt=E,ki=d,In=k;for(const tr of b){const ir=tr.parent.parent;f=C0e(ir)||t,E=YE(ir)||t,k=Z7({flags:2}),d=tr,vt(tr.typeExpression);const ha=Za(tr);if((LV(tr)||!tr.fullName)&&ha&&$j(ha.parent)){const os=ql(ha.parent);if(os){Tl(t.symbol,ha.parent,os,!!Tn(ha,Rl=>Iu(Rl)&&Rl.name.escapedText==="prototype"),!1);const ss=f;switch(yj(ha.parent)){case 1:case 2:cm(t)?f=t:f=void 0;break;case 4:f=ha.parent.expression;break;case 3:f=ha.parent.expression.name;break;case 5:f=q2(t,ha.parent.expression)?t:Iu(ha.parent.expression)?ha.parent.expression.name:ha.parent.expression;break;case 0:return H.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}f&&Ye(tr,524288,788968),f=ss}}else LV(tr)||!tr.fullName||tr.fullName.kind===80?(d=tr.parent,hd(tr,524288,788968)):vt(tr.fullName)}f=Q,v=Me,E=wt,d=ki,k=In}function co(Q){if(!t.parseDiagnostics.length&&!(Q.flags&33554432)&&!(Q.flags&16777216)&&!hye(Q)){const Me=Dv(Q);if(Me===void 0)return;ae&&Me>=119&&Me<=127?t.bindDiagnostics.push(xe(Q,Ho(Q),b0(Q))):Me===135?wc(t)&&fq(Q)?t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,b0(Q))):Q.flags&65536&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,b0(Q))):Me===127&&Q.flags&16384&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,b0(Q)))}}function Ho(Q){return Yd(Q)?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:F.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function id(Q){Q.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(xe(Q,F.constructor_is_a_reserved_word,b0(Q))))}function Y0(Q){ae&&Df(Q.left)&&u5(Q.operatorToken.kind)&&Lc(Q,Q.left)}function Ko(Q){ae&&Q.variableDeclaration&&Lc(Q,Q.variableDeclaration.name)}function Tc(Q){if(ae&&Q.expression.kind===80){const Me=C2(t,Q.expression);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,F.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function Jp(Q){return at(Q)&&(Q.escapedText==="eval"||Q.escapedText==="arguments")}function Lc(Q,Me){if(Me&&Me.kind===80){const wt=Me;if(Jp(wt)){const ki=C2(t,Me);t.bindDiagnostics.push(Rd(t,ki.start,ki.length,Il(Q),fu(wt)))}}}function Il(Q){return Yd(Q)?F.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:t.externalModuleIndicator?F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:F.Invalid_use_of_0_in_strict_mode}function cl(Q){ae&&Lc(Q,Q.name)}function Ka(Q){return Yd(Q)?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Ri(Q){if(s<2&&E.kind!==312&&E.kind!==267&&!L8(E)){const Me=C2(t,Q);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,Ka(Q)))}}function dl(Q){ae&&Lc(Q,Q.operand)}function Uc(Q){ae&&(Q.operator===46||Q.operator===47)&&Lc(Q,Q.operand)}function Ch(Q){ae&&Q0(Q,F.with_statements_are_not_allowed_in_strict_mode)}function sf(Q){ae&&Os(u)>=2&&(pbe(Q.statement)||Jl(Q.statement))&&Q0(Q.label,F.A_label_is_not_allowed_here)}function Q0(Q,Me,...wt){const ki=QE(t,Q.pos);t.bindDiagnostics.push(Rd(t,ki.start,ki.length,Me,...wt))}function Cc(Q,Me,wt){$(Q,Me,Me,wt)}function $(Q,Me,wt,ki){tt(Q,{pos:ek(Me,t),end:wt.end},ki)}function tt(Q,Me,wt){const ki=Rd(t,Me.pos,Me.end-Me.pos,wt);Q?t.bindDiagnostics.push(ki):t.bindSuggestionDiagnostics=xi(t.bindSuggestionDiagnostics,{...ki,category:2})}function vt(Q){if(!Q)return;ks(Q,d),Gn&&(Q.tracingPath=t.path);const Me=ae;if(uu(Q),Q.kind>165){const wt=d;d=Q;const ki=Lde(Q);ki===0?st(Q):We(Q,ki),d=wt}else{const wt=d;Q.kind===1&&(d=Q),mi(Q),d=wt}ae=Me}function mi(Q){if(lm(Q))if(Qn(Q))for(const Me of Q.jsDoc)vt(Me);else for(const Me of Q.jsDoc)ks(Me,Q),Vx(Me,!1)}function fn(Q){if(!ae)for(const Me of Q){if(!Mp(Me))return;if(Wu(Me)){ae=!0;return}}}function Wu(Q){const Me=x2(t,Q.expression);return Me==='"use strict"'||Me==="'use strict'"}function uu(Q){switch(Q.kind){case 80:if(Q.flags&4096){let ir=Q.parent;for(;ir&&!G4(ir);)ir=ir.parent;hd(ir,524288,788968);break}case 110:return k&&(Wt(Q)||d.kind===304)&&(Q.flowNode=k),co(Q);case 166:k&&_q(Q)&&(Q.flowNode=k);break;case 236:case 108:Q.flowNode=k;break;case 81:return id(Q);case 211:case 212:const Me=Q;k&&It(Me)&&(Me.flowNode=k),rye(Me)&&Mn(Me),Qn(Me)&&t.commonJsModuleIndicator&&Y_(Me)&&!UY(E,"module")&&ft(t.locals,void 0,Me.expression,134217729,111550);break;case 226:switch(Xl(Q)){case 1:Oh(Q);break;case 2:uh(Q);break;case 3:To(Q.left,Q);break;case 6:ba(Q);break;case 4:D1(Q);break;case 5:const ir=Q.left.expression;if(Qn(Q)&&at(ir)){const ha=UY(E,ir.escapedText);if(mq(ha==null?void 0:ha.valueDeclaration)){D1(Q);break}}fc(Q);break;case 0:break;default:H.fail("Unknown binary expression special property assignment kind")}return Y0(Q);case 299:return Ko(Q);case 220:return Tc(Q);case 225:return dl(Q);case 224:return Uc(Q);case 254:return Ch(Q);case 256:return sf(Q);case 197:B=!0;return;case 182:break;case 168:return Bt(Q);case 169:return d3(Q);case 260:return R1(Q);case 208:return Q.flowNode=k,R1(Q);case 172:case 171:return Tu(Q);case 303:case 304:return Vh(Q,4,0);case 306:return Vh(Q,8,900095);case 179:case 180:case 181:return Ku(Q,131072,0);case 174:case 173:return Vh(Q,8192|(Q.questionToken?16777216:0),zp(Q)?0:103359);case 262:return Wf(Q);case 176:return Ku(Q,16384,0);case 177:return Vh(Q,32768,46015);case 178:return Vh(Q,65536,78783);case 184:case 324:case 330:case 185:return vc(Q);case 187:case 329:case 200:return Nr(Q);case 339:return Qt(Q);case 210:return Ya(Q);case 218:case 219:return m4(Q);case 213:switch(Xl(Q)){case 7:return nc(Q);case 8:return Bd(Q);case 9:return Fo(Q);case 0:break;default:return H.fail("Unknown call expression assignment declaration kind")}Qn(Q)&&c3(Q);break;case 231:case 263:return ae=!0,c_(Q);case 264:return hd(Q,64,788872);case 265:return hd(Q,524288,788968);case 266:return C5(Q);case 267:return wo(Q);case 292:return c0(Q);case 291:return Ul(Q,4,0);case 271:case 274:case 276:case 281:return Ku(Q,2097152,2097152);case 270:return nd(Q);case 273:return ud(Q);case 278:return S0(Q);case 277:return ic(Q);case 312:return fn(Q.statements),Vu();case 241:if(!L8(Q.parent))return;case 268:return fn(Q.statements);case 348:if(Q.parent.kind===330)return d3(Q);if(Q.parent.kind!==329)break;case 355:const In=Q,tr=In.isBracketed||In.typeExpression&&In.typeExpression.type.kind===323?16777220:4;return Ku(In,tr,0);case 353:case 345:case 347:return(b||(b=[])).push(Q);case 346:return vt(Q.typeExpression)}}function Tu(Q){const Me=ef(Q),wt=Me?98304:4,ki=Me?13247:0;return Vh(Q,wt|(Q.questionToken?16777216:0),ki)}function Nr(Q){return wl(Q,2048,"__type")}function Vu(){if(as(t),wc(t))Ss();else if(W4(t)){Ss();const Q=t.symbol;ft(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Q}}function Ss(){wl(t,512,`"${_h(t.fileName)}"`)}function ic(Q){if(!f.symbol||!f.symbol.exports)wl(Q,111551,Ke(Q));else{const Me=tB(Q)?2097152:4,wt=ft(f.symbol.exports,f.symbol,Q,Me,67108863);Q.isExportEquals&&Fj(wt,Q)}}function nd(Q){Oe(Q.modifiers)&&t.bindDiagnostics.push(xe(Q,F.Modifiers_cannot_appear_here));const Me=la(Q.parent)?wc(Q.parent)?Q.parent.isDeclarationFile?void 0:F.Global_module_exports_may_only_appear_in_declaration_files:F.Global_module_exports_may_only_appear_in_module_files:F.Global_module_exports_may_only_appear_at_top_level;Me?t.bindDiagnostics.push(xe(Q,Me)):(t.symbol.globalExports=t.symbol.globalExports||Vo(),ft(t.symbol.globalExports,t.symbol,Q,2097152,2097152))}function S0(Q){!f.symbol||!f.symbol.exports?wl(Q,8388608,Ke(Q)):Q.exportClause?u_(Q.exportClause)&&(ks(Q.exportClause,Q),ft(f.symbol.exports,f.symbol,Q.exportClause,2097152,2097152)):ft(f.symbol.exports,f.symbol,Q,8388608,0)}function ud(Q){Q.name&&Ku(Q,2097152,2097152)}function m0(Q){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Q,t.externalModuleIndicator||Ss()),!0)}function Bd(Q){if(!m0(Q))return;const Me=f4(Q.arguments[0],void 0,(wt,ki)=>(ki&&De(ki,wt,67110400),ki));Me&&ft(Me.exports,Me,Q,1048580,0)}function Oh(Q){if(!m0(Q))return;const Me=f4(Q.left.expression,void 0,(wt,ki)=>(ki&&De(ki,wt,67110400),ki));if(Me){const ki=Pj(Q.right)&&(uk(Q.left.expression)||Y_(Q.left.expression))?2097152:1048580;ks(Q.left,Q),ft(Me.exports,Me,Q.left,ki,0)}}function uh(Q){if(!m0(Q))return;const Me=vj(Q.right);if(dle(Me)||f===t&&q2(t,Me))return;if(ys(Me)&&ye(Me.properties,pm)){L(Me.properties,h4);return}const wt=tB(Q)?2097152:1049092,ki=ft(t.symbol.exports,t.symbol,Q,wt|67108864,0);Fj(ki,Q)}function h4(Q){ft(t.symbol.exports,t.symbol,Q,69206016,0)}function D1(Q){if(H.assert(Qn(Q)),Xn(Q)&&Iu(Q.left)&&ea(Q.left.name)||Iu(Q)&&ea(Q.name))return;const wt=tf(Q,!1,!1);switch(wt.kind){case 262:case 218:let ki=wt.symbol;if(Xn(wt.parent)&&wt.parent.operatorToken.kind===64){const ir=wt.parent.left;A2(ir)&&Ox(ir.expression)&&(ki=jh(ir.expression.expression,p))}ki&&ki.valueDeclaration&&(ki.members=ki.members||Vo(),Ix(Q)?He(Q,ki,ki.members):ft(ki.members,ki,Q,67108868,0),De(ki,ki.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const In=wt.parent,tr=No(wt)?In.symbol.exports:In.symbol.members;Ix(Q)?He(Q,In.symbol,tr):ft(tr,In.symbol,Q,67108868,0,!0);break;case 312:if(Ix(Q))break;wt.commonJsModuleIndicator?ft(wt.symbol.exports,wt.symbol,Q,1048580,0):Ku(Q,1,111550);break;case 267:break;default:H.failBadSyntaxKind(wt)}}function He(Q,Me,wt){ft(wt,Me,Q,4,0,!0,!0),di(Q,Me)}function di(Q,Me){Me&&(Me.assignmentDeclarationMembers||(Me.assignmentDeclarationMembers=new Map)).set($s(Q),Q)}function Mn(Q){Q.expression.kind===110?D1(Q):A2(Q)&&Q.parent.parent.kind===312&&(Ox(Q.expression)?To(Q,Q.parent):Cl(Q))}function ba(Q){ks(Q.left,Q),ks(Q.right,Q),Nc(Q.left.expression,Q.left,!1,!0)}function Fo(Q){const Me=jh(Q.arguments[0].expression);Me&&Me.valueDeclaration&&De(Me,Me.valueDeclaration,32),bc(Q,Me,!0)}function To(Q,Me){const wt=Q.expression,ki=wt.expression;ks(ki,wt),ks(wt,Q),ks(Q,Me),Nc(ki,Q,!0,!0)}function nc(Q){let Me=jh(Q.arguments[0]);const wt=Q.parent.parent.kind===312;Me=Tl(Me,Q.arguments[0],wt,!1,!1),bc(Q,Me,!1)}function fc(Q){var Me;const wt=jh(Q.left.expression,f)||jh(Q.left.expression,E);if(!Qn(Q)&&!aye(wt))return;const ki=CP(Q.left);if(!(at(ki)&&((Me=UY(f,ki.escapedText))==null?void 0:Me.flags)&2097152))if(ks(Q.left,Q),ks(Q.right,Q),at(Q.left.expression)&&f===t&&q2(t,Q.left.expression))Oh(Q);else if(Ix(Q)){wl(Q,67108868,"__computed");const In=Tl(wt,Q.left.expression,ql(Q.left),!1,!1);di(Q,In)}else Cl(Po(Q.left,ak))}function Cl(Q){H.assert(!at(Q)),ks(Q.expression,Q),Nc(Q.expression,Q,!1,!1)}function Tl(Q,Me,wt,ki,In){return(Q==null?void 0:Q.flags)&2097152||(wt&&!ki&&(Q=f4(Me,Q,(ha,os,ss)=>{if(os)return De(os,ha,67110400),os;{const Rl=ss?ss.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Vo());return ft(Rl,ss,ha,67110400,110735)}})),In&&Q&&Q.valueDeclaration&&De(Q,Q.valueDeclaration,32)),Q}function bc(Q,Me,wt){if(!Me||!ip(Me))return;const ki=wt?Me.members||(Me.members=Vo()):Me.exports||(Me.exports=Vo());let In=0,tr=0;$0(l7(Q))?(In=8192,tr=103359):Mo(Q)&&rk(Q)&&(Oe(Q.arguments[2].properties,ir=>{const ha=Za(ir);return!!ha&&at(ha)&&fu(ha)==="set"})&&(In|=65540,tr|=78783),Oe(Q.arguments[2].properties,ir=>{const ha=Za(ir);return!!ha&&at(ha)&&fu(ha)==="get"})&&(In|=32772,tr|=46015)),In===0&&(In=4,tr=0),ft(ki,Me,Q,In|67108864,tr&-67108865)}function ql(Q){return Xn(Q.parent)?Jm(Q.parent).parent.kind===312:Q.parent.parent.kind===312}function Nc(Q,Me,wt,ki){let In=jh(Q,f)||jh(Q,E);const tr=ql(Me);In=Tl(In,Me.expression,tr,wt,ki),bc(Me,In,wt)}function ip(Q){if(Q.flags&1072)return!0;const Me=Q.valueDeclaration;if(Me&&Mo(Me))return!!l7(Me);let wt=Me?ua(Me)?Me.initializer:Xn(Me)?Me.right:Iu(Me)&&Xn(Me.parent)?Me.parent.right:void 0:void 0;if(wt=wt&&vj(wt),wt){const ki=Ox(ua(Me)?Me.name:Xn(Me)?Me.left:Me);return!!yv(Xn(wt)&&(wt.operatorToken.kind===57||wt.operatorToken.kind===61)?wt.right:wt,ki)}return!1}function Jm(Q){for(;Xn(Q.parent);)Q=Q.parent;return Q.parent}function jh(Q,Me=f){if(at(Q))return UY(Me,Q.escapedText);{const wt=jh(Q.expression);return wt&&wt.exports&&wt.exports.get(Q3(Q))}}function f4(Q,Me,wt){if(q2(t,Q))return t.symbol;if(at(Q))return wt(Q,jh(Q),Me);{const ki=f4(Q.expression,Me,wt),In=bj(Q);return ea(In)&&H.fail("unexpected PrivateIdentifier"),wt(In,ki&&ki.exports&&ki.exports.get(Q3(Q)),ki)}}function c3(Q){!t.commonJsModuleIndicator&&xf(Q,!1)&&m0(Q)}function c_(Q){if(Q.kind===263)hd(Q,32,899503);else{const In=Q.name?Q.name.escapedText:"__class";wl(Q,32,In),Q.name&&Se.add(Q.name.escapedText)}const{symbol:Me}=Q,wt=Ae(4194308,"prototype"),ki=Me.exports.get(wt.escapedName);ki&&(Q.name&&ks(Q.name,Q),t.bindDiagnostics.push(xe(ki.declarations[0],F.Duplicate_identifier_0,lc(wt)))),Me.exports.set(wt.escapedName,wt),wt.parent=Me}function C5(Q){return b2(Q)?hd(Q,128,899967):hd(Q,256,899327)}function R1(Q){if(ae&&Lc(Q,Q.name),!So(Q.name)){const Me=Q.kind===260?Q:Q.parent.parent;Qn(Q)&&eZ(u)&&F2(Me)&&!xv(Q)&&!(m2(Q)&32)?Ku(Q,2097152,2097152):h0e(Q)?hd(Q,2,111551):w2(Q)?Ku(Q,1,111551):Ku(Q,1,111550)}}function d3(Q){if(!(Q.kind===348&&f.kind!==330)&&(ae&&!(Q.flags&33554432)&&Lc(Q,Q.name),So(Q.name)?wl(Q,1,"__"+Q.parent.parameters.indexOf(Q)):Ku(Q,1,111551),Mf(Q,Q.parent))){const Me=Q.parent.parent;ft(Me.symbol.members,Me.symbol,Q,4|(Q.questionToken?16777216:0),0)}}function Wf(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),cl(Q),ae?(Ri(Q),hd(Q,16,110991)):Ku(Q,16,110991)}function m4(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),k&&(Q.flowNode=k),cl(Q);const Me=Q.name?Q.name.escapedText:"__function";return wl(Q,16,Me)}function Vh(Q,Me,wt){return!t.isDeclarationFile&&!(Q.flags&33554432)&&aP(Q)&&(ge|=4096),k&&lq(Q)&&(Q.flowNode=k),Ix(Q)?wl(Q,Me,"__computed"):Ku(Q,Me,wt)}function Ee(Q){const Me=Tn(Q,wt=>wt.parent&&FB(wt.parent)&&wt.parent.extendsType===wt);return Me&&Me.parent}function Bt(Q){if(_g(Q.parent)){const Me=Aq(Q.parent);Me?(H.assertNode(Me,UE),Me.locals??(Me.locals=Vo()),ft(Me.locals,void 0,Q,262144,526824)):Ku(Q,262144,526824)}else if(Q.parent.kind===195){const Me=Ee(Q.parent);Me?(H.assertNode(Me,UE),Me.locals??(Me.locals=Vo()),ft(Me.locals,void 0,Q,262144,526824)):wl(Q,262144,Ke(Q))}else Ku(Q,262144,526824)}function Di(Q){const Me=oD(Q);return Me===1||Me===2&&fk(u)}function Ci(Q){if(!(k.flags&1))return!1;if(k===Ne&&(XO(Q)&&Q.kind!==242||Q.kind===263||Q.kind===267&&Di(Q))&&(k=pe,!u.allowUnreachableCode)){const wt=uke(u)&&!(Q.flags&33554432)&&(!Jl(Q)||!!(QD(Q.declarationList)&7)||Q.declarationList.declarations.some(ki=>!!ki.initializer));fPt(Q,(ki,In)=>$(wt,ki,In,F.Unreachable_code_detected))}return!0}}function fPt(t,u){if(na(t)&&oet(t)&&po(t.parent)){const{statements:s}=t.parent,d=wle(s,t);eu(d,oet,(f,p)=>u(d[f],d[p-1]))}else u(t,t)}function oet(t){return!ed(t)&&!mPt(t)&&!Iv(t)&&!(Jl(t)&&!(QD(t)&7)&&t.declarationList.declarations.some(u=>!u.initializer))}function mPt(t){switch(t.kind){case 264:case 265:return!0;case 267:return oD(t)!==1;case 266:return Yu(t,4096);default:return!1}}function q2(t,u){let s=0;const d=U$();for(d.enqueue(u);!d.isEmpty()&&s<100;){if(s++,u=d.dequeue(),uk(u)||Y_(u))return!0;if(at(u)){const f=UY(t,u.escapedText);if(f&&f.valueDeclaration&&ua(f.valueDeclaration)&&f.valueDeclaration.initializer){const p=f.valueDeclaration.initializer;d.enqueue(p),ld(p,!0)&&(d.enqueue(p.left),d.enqueue(p.right))}}}return!1}function Lde(t){switch(t.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(lq(t))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return t.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Co(t.parent)||zl(t.parent)?0:34}return 0}function UY(t,u){var s,d,f,p;const E=(d=(s=ur(t,UE))==null?void 0:s.locals)==null?void 0:d.get(u);if(E)return E.exportSymbol??E;if(la(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(u))return t.jsGlobalAugmentations.get(u);if(Zg(t))return(p=(f=t.symbol)==null?void 0:f.exports)==null?void 0:p.get(u)}var Nde,Pde,set,pPt=o({"src/compiler/binder.ts"(){Bo(),Wy(),Nde=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(Nde||{}),Pde=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(Pde||{}),set=hPt()}});function BAe(t,u,s,d,f,p,E,v,b,B){return k;function k(T=()=>!0){const M=[],z=[];return{walkType:Se=>{try{return j(Se),{visitedTypes:U1(M),visitedSymbols:U1(z)}}finally{pu(M),pu(z)}},walkSymbol:Se=>{try{return ve(Se),{visitedTypes:U1(M),visitedSymbols:U1(z)}}finally{pu(M),pu(z)}}};function j(Se){if(!(!Se||M[Se.id]||(M[Se.id]=Se,ve(Se.symbol)))){if(Se.flags&524288){const pe=Se,fe=pe.objectFlags;fe&4&&J(Se),fe&32&&ge(Se),fe&3&&Ce(Se),fe&24&&ne(pe)}Se.flags&262144&&K(Se),Se.flags&3145728&&Y(Se),Se.flags&4194304&&oe(Se),Se.flags&8388608&&se(Se)}}function J(Se){j(Se.target),L(B(Se),j)}function K(Se){j(v(Se))}function Y(Se){L(Se.types,j)}function oe(Se){j(Se.type)}function se(Se){j(Se.objectType),j(Se.indexType),j(Se.constraint)}function ge(Se){j(Se.typeParameter),j(Se.constraintType),j(Se.templateType),j(Se.modifiersType)}function ae(Se){const Ne=u(Se);Ne&&j(Ne.type),L(Se.typeParameters,j);for(const pe of Se.parameters)ve(pe);j(t(Se)),j(s(Se))}function Ce(Se){ne(Se),L(Se.typeParameters,j),L(d(Se),j),j(Se.thisType)}function ne(Se){const Ne=f(Se);for(const pe of Ne.indexInfos)j(pe.keyType),j(pe.type);for(const pe of Ne.callSignatures)ae(pe);for(const pe of Ne.constructSignatures)ae(pe);for(const pe of Ne.properties)ve(pe)}function ve(Se){if(!Se)return!1;const Ne=Zo(Se);if(z[Ne])return!1;if(z[Ne]=Se,!T(Se))return!0;const pe=p(Se);return j(pe),Se.exports&&Se.exports.forEach(ve),L(Se.declarations,fe=>{if(fe.type&&fe.type.kind===186){const xe=fe.type,Be=E(b(xe.exprName));ve(Be)}}),!1}}}var gPt=o({"src/compiler/symbolWalker.ts"(){Bo()}});function Mde({importModuleSpecifierPreference:t,importModuleSpecifierEnding:u},s,d,f){const p=E();return{relativePreference:f!==void 0?Id(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:v=>{if((v??d.impliedNodeFormat)===99)return $B(s,d.fileName)?[3,2]:[2];if(p1(s)===1)return p===2?[2,1]:[1,2];const b=$B(s,d.fileName);switch(p){case 2:return b?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return b?[1,0,3,2]:[1,0,2];case 0:return b?[0,1,3,2]:[0,1,2];default:H.assertNever(p)}}};function E(){if(f!==void 0){if(z2(f))return 2;if(sc(f,"/index"))return 1}return Sle(u,d.impliedNodeFormat,s,d)}}function EPt(t,u,s,d,f,p,E={}){const v=cet(t,u,s,d,f,Mde({},t,u,p),{},E);if(v!==p)return v}function qY(t,u,s,d,f,p={}){return cet(t,u,s,d,f,Mde({},t,u),{},p)}function _Pt(t,u,s,d,f,p={}){const E=wAe(u.path,d),v=_et(u.path,s,d,f,p);return G(v,b=>TAe(b,E,u,d,t,f,!0,p.overrideImportMode))}function cet(t,u,s,d,f,p,E,v={}){const b=wAe(s,f),B=_et(s,d,f,E,v);return G(B,k=>TAe(k,b,u,f,t,E,void 0,v.overrideImportMode))||met(d,b,t,f,v.overrideImportMode||u.impliedNodeFormat,p)}function DPt(t,u,s,d,f={}){return det(t,u,s,d,f)[0]}function det(t,u,s,d,f={}){var p;const E=YU(t);if(!E)return _t;const v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s),b=v==null?void 0:v.get(u.path,E.path,d,f);return[b==null?void 0:b.moduleSpecifiers,E,b==null?void 0:b.modulePaths,v]}function het(t,u,s,d,f,p,E={}){return fet(t,u,s,d,f,p,E,!1).moduleSpecifiers}function fet(t,u,s,d,f,p,E={},v){let b=!1;const B=vPt(t,u);if(B)return{moduleSpecifiers:[B],computedWithoutCache:b};let[k,T,M,z]=det(t,d,f,p,E);if(k)return{moduleSpecifiers:k,computedWithoutCache:b};if(!T)return{moduleSpecifiers:_t,computedWithoutCache:b};b=!0,M||(M=Det(d.path,T.originalFileName,f));const j=xPt(M,s,d,f,p,E,v);return z==null||z.set(d.path,T.path,p,E,M,j),{moduleSpecifiers:j,computedWithoutCache:b}}function xPt(t,u,s,d,f,p={},E){const v=wAe(s.path,d),b=Mde(f,u,s),B=L(t,J=>L(d.getFileIncludeReasons().get(J0(J.path,d.getCurrentDirectory(),v.getCanonicalFileName)),K=>{if(K.kind!==3||K.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==k1e(s,K.index))return;const Y=TQ(s,K.index).text;return b.relativePreference!==1||!om(Y)?Y:void 0}));if(B)return[B];const k=Oe(t,J=>J.isInNodeModules);let T,M,z,j;for(const J of t){const K=J.isInNodeModules?TAe(J,v,s,d,u,f,void 0,p.overrideImportMode):void 0;if(T=xi(T,K),K&&J.isRedirect)return T;if(!K){const Y=met(J.path,v,u,d,p.overrideImportMode||s.impliedNodeFormat,b,J.isRedirect);if(!Y)continue;J.isRedirect?z=xi(z,Y):kse(Y)?M=xi(M,Y):(E||!k||J.isInNodeModules)&&(j=xi(j,Y))}}return M!=null&&M.length?M:z!=null&&z.length?z:T!=null&&T.length?T:H.checkDefined(j)}function wAe(t,u){const s=L1(u.useCaseSensitiveFileNames?u.useCaseSensitiveFileNames():!0),d=lr(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:d}}function met(t,u,s,d,f,{getAllowedEndingsInPreferredOrder:p,relativePreference:E},v){const{baseUrl:b,paths:B,rootDirs:k}=s;if(v&&!B)return;const{sourceDirectory:T,getCanonicalFileName:M}=u,z=p(f),j=k&&CPt(k,t,T,M,z,s)||cH(h2(JE(T,t,M)),z,s);if(!b&&!B||E===0)return v?void 0:j;const J=$a(zq(s,d)||b,d.getCurrentDirectory()),K=bet(t,J,M);if(!K)return v?void 0:j;const Y=B&&xet(K,B,z,d,s);if(v)return Y;const oe=Y===void 0&&b!==void 0?cH(K,z,s):Y;if(!oe)return j;if(E===1&&!om(oe))return oe;if(E===3&&!om(oe)){const se=s.configFilePath?J0(lr(s.configFilePath),d.getCurrentDirectory(),u.getCanonicalFileName):u.getCanonicalFileName(d.getCurrentDirectory()),ge=J0(t,se,M),ae=Pa(T,se),Ce=Pa(ge,se);if(ae&&!Ce||!ae&&Ce)return oe;const ne=get(d,lr(ge));return get(d,T)!==ne?oe:j}return yet(oe)||ZY(j)t.fileExists(cr(s,"package.json"))?!0:void 0)}function Eet(t,u,s,d,f){var p;const E=n5(s),v=s.getCurrentDirectory(),b=s.isSourceOfProjectReferenceRedirect(u)?s.getProjectReferenceRedirect(u):void 0,B=J0(u,v,E),k=s.redirectTargetsMap.get(B)||_t,M=[...b?[b]:_t,u,...k].map(Y=>$a(Y,v));let z=!ye(M,TP);if(!d){const Y=L(M,oe=>!(z&&TP(oe))&&f(oe,b===oe));if(Y)return Y}const j=(p=s.getSymlinkCache)==null?void 0:p.call(s).getSymlinkedDirectoriesByRealpath(),J=$a(u,v);return j&&Ug(lr(J),Y=>{const oe=j.get(zd(J0(Y,v,E)));if(oe)return Ase(t,Y,E)?!1:L(M,se=>{if(!Ase(se,Y,E))return;const ge=JE(Y,se,E);for(const ae of oe){const Ce=kx(ae,ge),ne=f(Ce,se===b);if(z=!0,ne)return ne}})})||(d?L(M,Y=>z&&TP(Y)?void 0:f(Y,Y===b)):void 0)}function _et(t,u,s,d,f={}){var p;const E=J0(u,s.getCurrentDirectory(),n5(s)),v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s);if(v){const B=v.get(t,E,d,f);if(B!=null&&B.modulePaths)return B.modulePaths}const b=Det(t,u,s);return v&&v.setModulePaths(t,E,d,f,b),b}function Det(t,u,s){const d=n5(s),f=new Map;Eet(t,u,s,!0,(E,v)=>{const b=q7(E);f.set(E,{path:d(E),isRedirect:v,isInNodeModules:b})});const p=[];for(let E=lr(t);f.size!==0;){const v=zd(E);let b;f.forEach(({path:k,isRedirect:T,isInNodeModules:M},z)=>{Pa(k,v)&&((b||(b=[])).push({path:z,isRedirect:T,isInNodeModules:M}),f.delete(z))}),b&&(b.length>1&&b.sort(pet),p.push(...b));const B=lr(E);if(B===E)break;E=B}if(f.size){const E=ga(f.values());E.length>1&&E.sort(pet),p.push(...E)}return p}function vPt(t,u){var s;const d=(s=t.declarations)==null?void 0:s.find(E=>m0e(E)&&(!v2(E)||!Id(J4(E.name))));if(d)return d.name.text;const p=qi(t.declarations,E=>{var v,b,B,k;if(!_c(E))return;const T=J(E);if(!((v=T==null?void 0:T.parent)!=null&&v.parent&&rE(T.parent)&&N1(T.parent.parent)&&la(T.parent.parent.parent)))return;const M=(k=(B=(b=T.parent.parent.symbol.exports)==null?void 0:b.get("export="))==null?void 0:B.valueDeclaration)==null?void 0:k.expression;if(!M)return;const z=u.getSymbolAtLocation(M);if(!z)return;if(((z==null?void 0:z.flags)&2097152?u.getAliasedSymbol(z):z)===E.symbol)return T.parent.parent;function J(K){for(;K.flags&8;)K=K.parent;return K}})[0];if(p)return p.name.text}function xet(t,u,s,d,f){for(const E in u)for(const v of u[E]){const b=$o(v),B=b.indexOf("*"),k=s.map(T=>({ending:T,value:cH(t,[T],f)}));if(t3(b)&&k.push({ending:void 0,value:t}),B!==-1){const T=b.substring(0,B),M=b.substring(B+1);for(const{ending:z,value:j}of k)if(j.length>=T.length+M.length&&Pa(j,T)&&sc(j,M)&&p({ending:z,value:j})){const J=j.substring(T.length,j.length-M.length);if(!om(J))return E.replace("*",J)}}else if(Oe(k,T=>T.ending!==0&&b===T.value)||Oe(k,T=>T.ending===0&&b===T.value&&p(T)))return E}function p({ending:E,value:v}){return E!==0||v===cH(t,[E],f,d)}}function zde(t,u,s,d,f,p,E=0){if(typeof f=="string"){const v=$a(cr(s,f),void 0),b=mk(u)?_h(u)+Ide(u,t):void 0;switch(E){case 0:if(pv(u,v)===0||b&&pv(b,v)===0)return{moduleFileToTry:d};break;case 1:if(GE(v,u)){const M=JE(v,u,!1);return{moduleFileToTry:$a(cr(cr(d,f),M),void 0)}}break;case 2:const B=v.indexOf("*"),k=v.slice(0,B),T=v.slice(B+1);if(Pa(u,k)&&sc(u,T)){const M=u.slice(k.length,u.length-T.length);return{moduleFileToTry:d.replace("*",M)}}if(b&&Pa(b,k)&&sc(b,T)){const M=b.slice(k.length,b.length-T.length);return{moduleFileToTry:d.replace("*",M)}}break}}else{if(Array.isArray(f))return L(f,v=>zde(t,u,s,d,v,p));if(typeof f=="object"&&f!==null){if(JY(f))return L(Ns(f),v=>{const b=$a(cr(d,v),void 0),B=sc(v,"/")?1:v.includes("*")?2:0;return zde(t,u,s,b,f[v],p,B)});for(const v of Ns(f))if(v==="default"||p.includes(v)||sH(p,v)){const b=f[v],B=zde(t,u,s,d,b,p,E);if(B)return B}}}}function CPt(t,u,s,d,f,p){const E=vet(u,t,d);if(E===void 0)return;const v=vet(s,t,d),b=ju(v,k=>Vt(E,T=>h2(JE(k,T,d)))),B=ooe(b,iV);if(B)return cH(B,f,p)}function TAe({path:t,isRedirect:u},{getCanonicalFileName:s,sourceDirectory:d},f,p,E,v,b,B){if(!p.fileExists||!p.readFile)return;const k=pZ(t);if(!k)return;const M=Mde(v,E,f).getAllowedEndingsInPreferredOrder();let z=t,j=!1;if(!b){let ge=k.packageRootIndex,ae;for(;;){const{moduleFileToTry:Ce,packageRootPath:ne,blockedByExports:ve,verbatimFromExports:Se}=se(ge);if(p1(E)!==1){if(ve)return;if(Se)return Ce}if(ne){z=ne,j=!0;break}if(ae||(ae=Ce),ge=t.indexOf(rl,ge+1),ge===-1){z=cH(ae,M,E,p);break}}}if(u&&!j)return;const J=p.getGlobalTypingsCacheLocation&&p.getGlobalTypingsCacheLocation(),K=s(z.substring(0,k.topLevelNodeModulesIndex));if(!(Pa(d,K)||J&&Pa(s(J),K)))return;const Y=z.substring(k.topLevelPackageNameIndex+1),oe=hM(Y);return p1(E)===1&&oe===Y?void 0:oe;function se(ge){var ae,Ce;const ne=t.substring(0,ge),ve=cr(ne,"package.json");let Se=t,Ne=!1;const pe=(Ce=(ae=p.getPackageJsonInfoCache)==null?void 0:ae.call(p))==null?void 0:Ce.getPackageJsonInfo(ve);if(typeof pe=="object"||pe===void 0&&p.fileExists(ve)){const fe=(pe==null?void 0:pe.contents.packageJsonContent)||JSON.parse(p.readFile(ve)),xe=B||f.impliedNodeFormat;if(vle(E)){const Ae=ne.substring(k.topLevelPackageNameIndex+1),De=hM(Ae),Ke=$2(E,xe),Je=fe.exports?zde(E,t,ne,De,fe.exports,Ke):void 0;if(Je)return{...mk(Je.moduleFileToTry)?{moduleFileToTry:_h(Je.moduleFileToTry)+Ide(Je.moduleFileToTry,E)}:Je,verbatimFromExports:!0};if(fe.exports)return{moduleFileToTry:t,blockedByExports:!0}}const Be=fe.typesVersions?jY(fe.typesVersions):void 0;if(Be){const Ae=t.slice(ne.length+1),De=xet(Ae,Be.paths,M,p,E);De===void 0?Ne=!0:Se=cr(ne,De)}const Ge=fe.typings||fe.types||fe.main||"index.js";if(Ja(Ge)&&!(Ne&&Ble(lZ(Be.paths),Ge))){const Ae=J0(Ge,ne,s),De=s(Se);if(_h(Ae)===_h(De))return{packageRootPath:ne,moduleFileToTry:Se};if(fe.type!=="module"&&!jc(De,fV)&&Pa(De,Ae)&&lr(De)===mv(Ae)&&_h(Ac(De))==="index")return{packageRootPath:ne,moduleFileToTry:Se}}}else{const fe=s(Se.substring(k.packageRootIndex+1));if(fe==="index.d.ts"||fe==="index.js"||fe==="index.ts"||fe==="index.tsx")return{moduleFileToTry:Se,packageRootPath:ne}}return{moduleFileToTry:Se}}}function bPt(t,u){if(!t.fileExists)return;const s=Va(kP({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const d of s){const f=u+d;if(t.fileExists(f))return f}}function vet(t,u,s){return qi(u,d=>{const f=bet(t,d,s);return f!==void 0&&yet(f)?void 0:f})}function cH(t,u,s,d){if(jc(t,[".json",".mjs",".cjs"]))return t;const f=_h(t);if(t===f)return t;const p=u.indexOf(2),E=u.indexOf(3);if(jc(t,[".mts",".cts"])&&E!==-1&&EB===0||B===1);return b!==-1&&bZY,forEachFileNameOfModule:()=>Eet,getModuleSpecifier:()=>qY,getModuleSpecifiers:()=>het,getModuleSpecifiersWithCacheInfo:()=>fet,getNodeModulesPackageName:()=>_Pt,tryGetJSExtensionForFile:()=>Ide,tryGetModuleSpecifiersFromCache:()=>DPt,tryGetRealFileNameForNonJsDeclarationFileName:()=>Cet,updateModuleSpecifier:()=>EPt});var NAe=o({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){ket()}});function yPt(){this.flags=0}function $s(t){return t.id||(t.id=zAe,zAe++),t.id}function Zo(t){return t.id||(t.id=MAe,MAe++),t.id}function Rde(t,u){const s=oD(t);return s===1||u&&s===2}function PAe(t){var u=[],s=l=>{u.push(l)},d,f=new Set,p,E,v=Qd.getSymbolConstructor(),b=Qd.getTypeConstructor(),B=Qd.getSignatureConstructor(),k=0,T=0,M=0,z=0,j=0,J=0,K,Y,oe=!1,se=Vo(),ge=[1],ae=t.getCompilerOptions(),Ce=Os(ae),ne=m1(ae),ve=!!ae.experimentalDecorators,Se=eV(ae),Ne=ake(ae),pe=C7(ae),fe=Z4(ae,"strictNullChecks"),xe=Z4(ae,"strictFunctionTypes"),Be=Z4(ae,"strictBindCallApply"),Ge=Z4(ae,"strictPropertyInitialization"),Ae=Z4(ae,"noImplicitAny"),De=Z4(ae,"noImplicitThis"),Ke=Z4(ae,"useUnknownInCatchVariables"),Je=!!ae.keyofStringsOnly,ft=Je?1:0,Ye=ae.suppressExcessPropertyErrors?0:8192,Ve=ae.exactOptionalPropertyTypes,We=Kai(),Gt=vli(),Yt=cF(),Ie=Vo(),st=Hs(4,"undefined");st.declarations=[];var St=Hs(1536,"globalThis",8);St.exports=Ie,St.declarations=[],Ie.set(St.escapedName,St);var It=Hs(4,"arguments"),ei=Hs(4,"require"),ht=ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ut=!ae.verbatimModuleSyntax||!!ae.importsNotUsedAsValues,Ni,ji,xn=0,Jn,an=0;const Pi={getNodeCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.nodeCount,0),getIdentifierCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.identifierCount,0),getSymbolCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.symbolCount,T),getTypeCount:()=>k,getInstantiationCount:()=>M,getRelationCacheSizes:()=>({assignable:Jf.size,identity:Em.size,subtype:h_.size,strictSubtype:p4.size}),isUndefinedSymbol:l=>l===st,isArgumentsSymbol:l=>l===It,isUnknownSymbol:l=>l===Xt,getMergedSymbol:Ks,getDiagnostics:O4t,getGlobalDiagnostics:I0i,getRecursionIdentity:iEe,getUnmatchedProperties:uMe,getTypeOfSymbolAtLocation:(l,m)=>{const D=Ua(m);return D?Mni(l,D):Ot},getTypeOfSymbol:Wn,getSymbolsOfParameterPropertyDeclaration:(l,m)=>{const D=Ua(l,io);return D===void 0?H.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(H.assert(Mf(D,D.parent)),Iw(D,Al(m)))},getDeclaredTypeOfSymbol:X0,getPropertiesOfType:n0,getPropertyOfType:(l,m)=>qo(l,Al(m)),getPrivateIdentifierPropertyOfType:(l,m,D)=>{const C=Ua(D);if(!C)return;const A=Al(m),w=LEe(A,C);return w?KMe(l,w):void 0},getTypeOfPropertyOfType:(l,m)=>he(l,Al(m)),getIndexInfoOfType:(l,m)=>k3(l,m===0?ct:Qt),getIndexInfosOfType:kh,getIndexInfosOfIndexSymbol:tPe,getSignaturesOfType:go,getIndexTypeOfType:(l,m)=>yC(l,m===0?ct:Qt),getIndexType:l=>k_(l),getBaseTypes:Zc,getBaseTypeOfLiteralType:kD,getWidenedType:vm,getTypeFromTypeNode:l=>{const m=Ua(l,Xr);return m?Ar(m):Ot},getParameterType:Lg,getParameterIdentifierInfoAtPosition:oai,getPromisedTypeOfPromise:NW,getAwaitedType:l=>NF(l),getReturnTypeOfSignature:Zs,isNullableType:tie,getNullableType:aEe,getNonNullableType:FD,getNonOptionalType:oEe,getTypeArguments:O0,typeToTypeNode:Yt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Yt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Yt.signatureToSignatureDeclaration,symbolToEntityName:Yt.symbolToEntityName,symbolToExpression:Yt.symbolToExpression,symbolToNode:Yt.symbolToNode,symbolToTypeParameterDeclarations:Yt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Yt.symbolToParameterDeclaration,typeParameterToDeclaration:Yt.typeParameterToDeclaration,getSymbolsInScope:(l,m)=>{const D=Ua(l);return D?R0i(D,m):[]},getSymbolAtLocation:l=>{const m=Ua(l);return m?Yp(m,!0):void 0},getIndexInfosAtLocation:l=>{const m=Ua(l);return m?J0i(m):void 0},getShorthandAssignmentValueSymbol:l=>{const m=Ua(l);return m?$0i(m):void 0},getExportSpecifierLocalTargetSymbol:l=>{const m=Ua(l,eh);return m?U0i(m):void 0},getExportSymbolOfSymbol(l){return Ks(l.exportSymbol||l)},getTypeAtLocation:l=>{const m=Ua(l);return m?tS(m):Ot},getTypeOfAssignmentPattern:l=>{const m=Ua(l,KN);return m&&a_e(m)||Ot},getPropertySymbolOfDestructuringAssignment:l=>{const m=Ua(l,at);return m?q0i(m):void 0},signatureToString:(l,m,D,C)=>vE(l,Ua(m),D,C),typeToString:(l,m,D)=>gn(l,Ua(m),D),symbolToString:(l,m,D,C)=>Fr(l,Ua(m),D,C),typePredicateToString:(l,m,D)=>E_(l,Ua(m),D),writeSignature:(l,m,D,C,A)=>vE(l,Ua(m),D,C,A),writeType:(l,m,D,C)=>gn(l,Ua(m),D,C),writeSymbol:(l,m,D,C,A)=>Fr(l,Ua(m),D,C,A),writeTypePredicate:(l,m,D,C)=>E_(l,Ua(m),D,C),getAugmentedPropertiesOfType:Gze,getRootSymbols:$4t,getSymbolOfExpando:jEe,getContextualType:(l,m)=>{const D=Ua(l,Wt);if(D)return m&4?aa(D,()=>hf(D,m)):hf(D,m)},getContextualTypeForObjectLiteralElement:l=>{const m=Ua(l,Z3);return m?BMe(m,void 0):void 0},getContextualTypeForArgumentAtIndex:(l,m)=>{const D=Ua(l,D2);return D&&SMe(D,m)},getContextualTypeForJsxAttribute:l=>{const m=Ua(l,KU);return m&&lft(m,void 0)},isContextSensitive:k4,getTypeOfPropertyOfContextualType:Ob,getFullyQualifiedName:op,getResolvedSignature:(l,m,D)=>yr(l,m,D,0),getCandidateSignaturesForStringLiteralCompletions:Ai,getResolvedSignatureForSignatureHelp:(l,m,D)=>Zu(l,()=>yr(l,m,D,16)),getExpandedParameters:fdt,hasEffectiveRestParameter:F_,containsArgumentsReference:XNe,getConstantValue:l=>{const m=Ua(l,Q4t);return m?Jze(m):void 0},isValidPropertyAccess:(l,m)=>{const D=Ua(l,abe);return!!D&&Eri(D,Al(m))},isValidPropertyAccessForCompletions:(l,m,D)=>{const C=Ua(l,Iu);return!!C&&Oft(C,m,D)},getSignatureFromDeclaration:l=>{const m=Ua(l,Co);return m?dp(m):void 0},isImplementationOfOverload:l=>{const m=Ua(l,Co);return m?Z4t(m):void 0},getImmediateAliasedSymbol:PMe,getAliasedSymbol:md,getEmitResolver:jd,getExportsOfModule:L5,getExportsAndPropertiesOfModule:cz,forEachExportAndPropertyOfModule:P9,getSymbolWalker:BAe(nei,y4,Zs,Zc,Ag,Wn,Zp,rh,hm,O0),getAmbientModules:cci,getJsxIntrinsicTagNamesAt:Zui,isOptionalParameter:l=>{const m=Ua(l,io);return m?uW(m):!1},tryGetMemberInModuleExports:(l,m)=>M9(Al(l),m),tryGetMemberInModuleExportsAndProperties:(l,m)=>z9(Al(l),m),tryFindAmbientModule:l=>kge(l,!0),tryFindAmbientModuleWithoutAugmentations:l=>kge(l,!1),getApparentType:Gh,getUnionType:er,isTypeAssignableTo:ms,createAnonymousType:Ol,createSignature:y3,createSymbol:Hs,createIndexInfo:y_,getAnyType:()=>me,getStringType:()=>ct,getStringLiteralType:df,getNumberType:()=>Qt,getNumberLiteralType:wg,getBigIntType:()=>Li,createPromiseType:die,createArrayType:V1,getElementTypeOfArrayType:WPe,getBooleanType:()=>pr,getFalseType:l=>l?Ui:Sn,getTrueType:l=>l?du:Ru,getVoidType:()=>ca,getUndefinedType:()=>te,getNullType:()=>it,getESSymbolType:()=>Xu,getNeverType:()=>Ku,getOptionalType:()=>X,getPromiseType:()=>Fte(!1),getPromiseLikeType:()=>e1t(!1),getAsyncIterableType:()=>{const l=Mge(!1);if(l!==Ka)return l},isSymbolAccessible:yu,isArrayType:A4,isTupleType:xs,isArrayLikeType:H5,isEmptyAnonymousObjectType:yD,isTypeInvalidDueToUnionDiscriminant:RXt,getExactOptionalProperties:dii,getAllPossiblePropertiesOfTypes:OXt,getSuggestedSymbolForNonexistentProperty:JMe,getSuggestionForNonexistentProperty:$Me,getSuggestedSymbolForNonexistentJSXAttribute:Ift,getSuggestedSymbolForNonexistentSymbol:(l,m,D)=>UMe(l,Al(m),D),getSuggestionForNonexistentSymbol:(l,m,D)=>fri(l,Al(m),D),getSuggestedSymbolForNonexistentModule:PEe,getSuggestionForNonexistentExport:mri,getSuggestedSymbolForNonexistentClassMember:zft,getBaseConstraintOfType:Wh,getDefaultFromTypeParameter:l=>l&&l.flags&262144?_F(l):void 0,resolveName(l,m,D,C){return uc(m,Al(l),D,void 0,void 0,!1,C)},getJsxNamespace:l=>Qr(uC(l)),getJsxFragmentFactory:l=>{const m=Uze(l);return m&&Qr(hm(m).escapedText)},getAccessibleSymbolChain:_C,getTypePredicateOfSignature:y4,resolveExternalModuleName:l=>{const m=Ua(l,Wt);return m&&Kh(m,m,!0)},resolveExternalModuleSymbol:_m,tryGetThisTypeAt:(l,m,D)=>{const C=Ua(l);return C&&yMe(C,m,D)},getTypeArgumentConstraint:l=>{const m=Ua(l,Xr);return m&&voi(m)},getSuggestionDiagnostics:(l,m)=>{const D=Ua(l,la)||H.fail("Could not determine parsed source file.");if(AP(D,ae,t))return _t;let C;try{return d=m,Kze(D),H.assert(!!(ar(D).flags&1)),C=yn(C,Zk.getDiagnostics(D.fileName)),t4t(R4t(D),(A,w,I)=>{!O8(A)&&!I4t(w,!!(A.flags&33554432))&&(C||(C=[])).push({...I,category:2})}),C||_t}finally{d=void 0}},runWithCancellationToken:(l,m)=>{try{return d=l,m(Pi)}finally{d=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:sn,isDeclarationVisible:pD,isPropertyAccessible:ZMe,getTypeOnlyAliasDeclaration:_4,getMemberOverrideModifierStatus:Xsi,isTypeParameterPossiblyReferenced:Lte,typeHasCallOrConstructSignatures:o_e};function Ai(l,m){const D=new Set,C=[];aa(m,()=>yr(l,C,void 0,0));for(const A of C)D.add(A);C.length=0,Zu(m,()=>yr(l,C,void 0,0));for(const A of C)D.add(A);return ga(D)}function Zu(l,m){if(l=Tn(l,Xse),l){const D=[],C=[];for(;l;){const w=ar(l);if(D.push([w,w.resolvedSignature]),w.resolvedSignature=void 0,R2(l)){const I=Ur(_u(l)),U=I.type;C.push([I,U]),I.type=void 0}l=Tn(l.parent,Xse)}const A=m();for(const[w,I]of D)w.resolvedSignature=I;for(const[w,I]of C)w.type=I;return A}return m()}function aa(l,m){const D=Tn(l,D2);if(D){let A=l;do ar(A).skipDirectInference=!0,A=A.parent;while(A&&A!==D)}oe=!0;const C=Zu(l,m);if(oe=!1,D){let A=l;do ar(A).skipDirectInference=void 0,A=A.parent;while(A&&A!==D)}return C}function yr(l,m,D,C){const A=Ua(l,D2);Ni=D;const w=A?mT(A,m,C):void 0;return Ni=void 0,w}var Ba=new Map,bt=new Map,jn=new Map,Ln=new Map,Si=new Map,Dn=new Map,Cn=new Map,tu=new Map,oa=new Map,Da=new Map,ra=new Map,Ta=new Map,Yo=new Map,bo=new Map,Qe=new Map,Et=[],Mt=new Map,qt=new Set,Xt=Hs(4,"unknown"),Pe=Hs(0,"__resolving__"),et=new Map,gt=new Map,ii=new Set,me=Pc(1,"any"),ni=Pc(1,"any",262144,"auto"),vi=Pc(1,"any",void 0,"wildcard"),mt=Pc(1,"any",void 0,"blocked string"),Ot=Pc(1,"error"),Ei=Pc(1,"unresolved"),$i=Pc(1,"any",65536,"non-inferrable"),Qi=Pc(1,"intrinsic"),on=Pc(2,"unknown"),le=Pc(2,"unknown",void 0,"non-null"),te=Pc(32768,"undefined"),we=fe?te:Pc(32768,"undefined",65536,"widening"),de=Pc(32768,"undefined",void 0,"missing"),je=Ve?de:te,X=Pc(32768,"undefined",void 0,"optional"),it=Pc(65536,"null"),Ct=fe?it:Pc(65536,"null",65536,"widening"),ct=Pc(4,"string"),Qt=Pc(8,"number"),Li=Pc(64,"bigint"),Ui=Pc(512,"false",void 0,"fresh"),Sn=Pc(512,"false"),du=Pc(512,"true",void 0,"fresh"),Ru=Pc(512,"true");du.regularType=Ru,du.freshType=du,Ru.regularType=Ru,Ru.freshType=du,Ui.regularType=Sn,Ui.freshType=Ui,Sn.regularType=Sn,Sn.freshType=Ui;var pr=er([Sn,Ru]),Xu=Pc(4096,"symbol"),ca=Pc(16384,"void"),Ku=Pc(131072,"never"),ja=Pc(131072,"never",262144,"silent"),wn=Pc(131072,"never",void 0,"implicit"),Ir=Pc(131072,"never",void 0,"unreachable"),as=Pc(67108864,"object"),wo=er([ct,Qt]),Fn=er([ct,Qt,Xu]),vc=Je?ct:Fn,Ya=er([Qt,Li]),c0=er([ct,Qt,pr,Li,it,te]),Ul=xF(["",""],[Qt]),wl=Tte(l=>l.flags&262144?Rti(l):l,()=>"(restrictive mapper)"),hd=Tte(l=>l.flags&262144?vi:l,()=>"(permissive mapper)"),vl=Pc(131072,"never",void 0,"unique literal"),co=Tte(l=>l.flags&262144?vl:l,()=>"(unique literal mapper)"),Ho,id=Tte(l=>(Ho&&(l===sf||l===Q0||l===Cc)&&Ho(!0),l),()=>"(unmeasurable reporter)"),Y0=Tte(l=>(Ho&&(l===sf||l===Q0||l===Cc)&&Ho(!1),l),()=>"(unreliable reporter)"),Ko=Ol(void 0,se,_t,_t,_t),Tc=Ol(void 0,se,_t,_t,_t);Tc.objectFlags|=2048;var Jp=Hs(2048,"__type");Jp.members=Vo();var Lc=Ol(Jp,se,_t,_t,_t),Il=Ol(void 0,se,_t,_t,_t),cl=fe?er([te,it,Il]):on,Ka=Ol(void 0,se,_t,_t,_t);Ka.instantiations=new Map;var Ri=Ol(void 0,se,_t,_t,_t);Ri.objectFlags|=262144;var dl=Ol(void 0,se,_t,_t,_t),Uc=Ol(void 0,se,_t,_t,_t),Ch=Ol(void 0,se,_t,_t,_t),sf=j1(),Q0=j1();Q0.constraint=sf;var Cc=j1(),$=j1(),tt=j1();tt.constraint=$;var vt=yte(1,"<>",0,me),mi=y3(void 0,void 0,void 0,_t,me,void 0,0,0),fn=y3(void 0,void 0,void 0,_t,Ot,void 0,0,0),Wu=y3(void 0,void 0,void 0,_t,me,void 0,0,0),uu=y3(void 0,void 0,void 0,_t,ja,void 0,0,0),Tu=y_(Qt,ct,!0),Nr=new Map,Vu={get yieldType(){return H.fail("Not supported")},get returnType(){return H.fail("Not supported")},get nextType(){return H.fail("Not supported")}},Ss=J5(me,me,me),ic=J5(me,me,on),nd=J5(Ku,me,te),S0={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:_ei,getGlobalIterableType:Mge,getGlobalIterableIteratorType:Dei,getGlobalGeneratorType:xei,resolveIterationType:(l,m)=>NF(l,m,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:F.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},ud={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:vei,getGlobalIterableType:lPe,getGlobalIterableIteratorType:Cei,getGlobalGeneratorType:bei,resolveIterationType:(l,m)=>l,mustHaveANextMethodDiagnostic:F.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},m0,Bd=new Map,Oh=[],uh,h4,D1,He,di,Mn,ba,Fo,To,nc,fc,Cl,Tl,bc,ql,Nc,ip,Jm,jh,f4,c3,c_,C5,R1,d3,Wf,m4,Vh,Ee,Bt,Di,Ci,Q,Me,wt,ki,In,tr,ir,ha,os,ss,Rl,x1,fd,$m,_s,np,Um,h3,d_,ia,Xx,e6,bg,sb,b5=new Map,Xe=0,Dt=0,oi=0,Ti=!1,Xi=0,Rn,tn,bn,kr=[],Cu=[],bu=[],Eu=0,sa=[],p0=[],o0=0,Gf=df(""),eC=wg(0),t6=jge({negative:!1,base10Value:"0"}),cD=[],i6=[],Gk=[],lb=0,Jk=!1,$k=0,az=10,D9=[],ww=[],tC=[],x9=[],v9=[],Tw=[],Uk=[],Lw=[],C9=[],b9=[],qk=[],cb=[],db=[],iC=[],y5=[],hb=[],fE=[],Vs=rB(),Zk=rB(),Nw=Gw(),n6,k5,h_=new Map,p4=new Map,Jf=new Map,Hh=new Map,Em=new Map,nC=new Map,Pw=Vo();Pw.set(st.escapedName,st);var y9=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ae.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Cli(),Pi;function Yk(l){return l?Qe.get(l):void 0}function fb(l,m){return l&&Qe.set(l,m),m}function uC(l){if(l){const m=zn(l);if(m)if(V7(l)){if(m.localJsxFragmentNamespace)return m.localJsxFragmentNamespace;const D=m.pragmas.get("jsxfrag");if(D){const A=Ha(D)?D[0]:D;if(m.localJsxFragmentFactory=G7(A.arguments.factory,Ce),yt(m.localJsxFragmentFactory,rC,sm),m.localJsxFragmentFactory)return m.localJsxFragmentNamespace=hm(m.localJsxFragmentFactory).escapedText}const C=Uze(l);if(C)return m.localJsxFragmentFactory=C,m.localJsxFragmentNamespace=hm(C).escapedText}else{const D=Qk(m);if(D)return m.localJsxNamespace=D}}return n6||(n6="React",ae.jsxFactory?(k5=G7(ae.jsxFactory,Ce),yt(k5,rC),k5&&(n6=hm(k5).escapedText)):ae.reactNamespace&&(n6=Al(ae.reactNamespace))),k5||(k5=q.createQualifiedName(q.createIdentifier(Qr(n6)),"createElement")),n6}function Qk(l){if(l.localJsxNamespace)return l.localJsxNamespace;const m=l.pragmas.get("jsx");if(m){const D=Ha(m)?m[0]:m;if(l.localJsxFactory=G7(D.arguments.factory,Ce),yt(l.localJsxFactory,rC,sm),l.localJsxFactory)return l.localJsxNamespace=hm(l.localJsxFactory).escapedText}}function rC(l){return t_(l,-1,-1),rn(l,rC,Dg)}function jd(l,m){return O4t(l,m),Gt}function F5(l,m,...D){const C=l?Su(l,m,...D):cc(m,...D),A=Vs.lookup(C);return A||(Vs.add(C),C)}function A5(l,m,D,...C){const A=pt(m,D,...C);return A.skippedOn=l,A}function f3(l,m,...D){return l?Su(l,m,...D):cc(m,...D)}function pt(l,m,...D){const C=f3(l,m,...D);return Vs.add(C),C}function i1(l,m){l?Vs.add(m):Zk.add({...m,category:2})}function g4(l,m,D,...C){if(m.pos<0||m.end<0){if(!l)return;const A=zn(m);i1(l,"message"in D?Rd(A,0,0,D,...C):b0e(A,D));return}i1(l,"message"in D?Su(m,D,...C):Y3(zn(m),m,D))}function bh(l,m,D,...C){const A=pt(l,D,...C);if(m){const w=Su(l,F.Did_you_forget_to_use_await);Es(A,w)}return A}function Mw(l,m){const D=Array.isArray(l)?L(l,Rse):Rse(l);return D&&Es(m,Su(D,F.The_declaration_was_marked_as_deprecated_here)),Zk.add(m),m}function S5(l){const m=cf(l);return m&&S(l.declarations)>1?m.flags&64?Oe(l.declarations,aC):ye(l.declarations,aC):!!l.valueDeclaration&&aC(l.valueDeclaration)||S(l.declarations)&&ye(l.declarations,aC)}function aC(l){return!!(Gb(l)&536870912)}function m3(l,m,D){const C=Su(l,F._0_is_deprecated,D);return Mw(m,C)}function oz(l,m,D,C){const A=D?Su(l,F.The_signature_0_of_1_is_deprecated,C,D):Su(l,F._0_is_deprecated,C);return Mw(m,A)}function Hs(l,m,D){T++;const C=new v(l|33554432,m);return C.links=new OAe,C.links.checkFlags=D||0,C}function yg(l,m){const D=Hs(1,l);return D.links.type=m,D}function Xk(l,m){const D=Hs(4,l);return D.links.type=m,D}function eF(l){let m=0;return l&2&&(m|=111551),l&1&&(m|=111550),l&4&&(m|=0),l&8&&(m|=900095),l&16&&(m|=110991),l&32&&(m|=899503),l&64&&(m|=788872),l&256&&(m|=899327),l&128&&(m|=899967),l&512&&(m|=110735),l&8192&&(m|=103359),l&32768&&(m|=46015),l&65536&&(m|=78783),l&262144&&(m|=526824),l&524288&&(m|=788968),l&2097152&&(m|=2097152),m}function mb(l,m){m.mergeId||(m.mergeId=IAe,IAe++),D9[m.mergeId]=l}function pb(l){const m=Hs(l.flags,l.escapedName);return m.declarations=l.declarations?l.declarations.slice():[],m.parent=l.parent,l.valueDeclaration&&(m.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(m.constEnumOnlyModule=!0),l.members&&(m.members=new Map(l.members)),l.exports&&(m.exports=new Map(l.exports)),mb(m,l),m}function up(l,m,D=!1){if(!(l.flags&eF(m.flags))||(m.flags|l.flags)&67108864){if(m===l)return l;if(!(l.flags&33554432)){const A=yc(l);if(A===Xt)return m;l=pb(A)}m.flags&512&&l.flags&512&&l.constEnumOnlyModule&&!m.constEnumOnlyModule&&(l.constEnumOnlyModule=!1),l.flags|=m.flags,m.valueDeclaration&&Fj(l,m.valueDeclaration),yn(l.declarations,m.declarations),m.members&&(l.members||(l.members=Vo()),mE(l.members,m.members,D)),m.exports&&(l.exports||(l.exports=Vo()),mE(l.exports,m.exports,D)),D||mb(l,m)}else if(l.flags&1024)l!==St&&pt(m.declarations&&Za(m.declarations[0]),F.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Fr(l));else{const A=!!(l.flags&384||m.flags&384),w=!!(l.flags&2||m.flags&2),I=A?F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:w?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,U=m.declarations&&zn(m.declarations[0]),Z=l.declarations&&zn(l.declarations[0]),ce=nj(U,ae.checkJs),Fe=nj(Z,ae.checkJs),Te=Fr(m);if(U&&Z&&m0&&!A&&U!==Z){const $e=pv(U.path,Z.path)===-1?U:Z,ut=$e===U?Z:U,zt=W0(m0,`${$e.path}|${ut.path}`,()=>({firstFile:$e,secondFile:ut,conflictingSymbols:new Map})),gi=W0(zt.conflictingSymbols,Te,()=>({isBlockScoped:w,firstFileLocations:[],secondFileLocations:[]}));ce||C(gi.firstFileLocations,m),Fe||C(gi.secondFileLocations,l)}else ce||kg(m,I,Te,l),Fe||kg(l,I,Te,m)}return l;function C(A,w){if(w.declarations)for(const I of w.declarations)xa(A,I)}}function kg(l,m,D,C){L(l.declarations,A=>{p3(A,m,D,C.declarations)})}function p3(l,m,D,C){const A=(yv(l,!1)?N0e(l):Za(l))||l,w=F5(A,m,D);for(const I of C||_t){const U=(yv(I,!1)?N0e(I):Za(I))||I;if(U===A)continue;w.relatedInformation=w.relatedInformation||[];const Z=Su(U,F._0_was_also_declared_here,D),ce=Su(U,F.and_here);S(w.relatedInformation)>=5||Oe(w.relatedInformation,Fe=>bP(Fe,ce)===0||bP(Fe,Z)===0)||Es(w,S(w.relatedInformation)?ce:Z)}}function tF(l,m){if(!(l!=null&&l.size))return m;if(!(m!=null&&m.size))return l;const D=Vo();return mE(D,l),mE(D,m),D}function mE(l,m,D=!1){m.forEach((C,A)=>{const w=l.get(A);l.set(A,w?up(w,C,D):Ks(C))})}function iF(l){var m,D,C;const A=l.parent;if(((m=A.symbol.declarations)==null?void 0:m[0])!==A){H.assert(A.symbol.declarations.length>1);return}if(Yg(A))mE(Ie,A.symbol.exports);else{const w=l.parent.parent.flags&33554432?void 0:F.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=D3(l,l,w,!0);if(!I)return;if(I=_m(I),I.flags&1920)if(Oe(h4,U=>I===U.symbol)){const U=up(A.symbol,I,!0);D1||(D1=new Map),D1.set(l.text,U)}else{if((D=I.exports)!=null&&D.get("__export")&&((C=A.symbol.exports)!=null&&C.size)){const U=PNe(I,"resolvedExports");for(const[Z,ce]of ga(A.symbol.exports.entries()))U.has(Z)&&!I.exports.has(Z)&&up(U.get(Z),ce)}up(I,A.symbol)}else pt(l,F.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,l.text)}}function zw(l,m,D){m.forEach((A,w)=>{const I=l.get(w);I?L(I.declarations,C(Qr(w),D)):l.set(w,A)});function C(A,w){return I=>Vs.add(Su(I,w,A))}}function Ur(l){if(l.flags&33554432)return l.links;const m=Zo(l);return ww[m]??(ww[m]=new OAe)}function ar(l){const m=$s(l);return tC[m]||(tC[m]=new yPt)}function pE(l){return l.kind===312&&!cm(l)}function kf(l,m,D){if(D){const C=Ks(l.get(m));if(C&&(H.assert((Gl(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&D||C.flags&2097152&&O1(C)&D))return C}}function Iw(l,m){const D=l.parent,C=l.parent.parent,A=kf(D.locals,m,111551),w=kf(_6(C.symbol),m,111551);return A&&w?[A,w]:H.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function B5(l,m){const D=zn(l),C=zn(m),A=YE(l);if(D!==C){if(ne&&(D.externalModuleIndicator||C.externalModuleIndicator)||!y0(ae)||ck(m)||l.flags&33554432||I(m,l))return!0;const Z=t.getSourceFiles();return Z.indexOf(D)<=Z.indexOf(C)}if(m.flags&16777216||ck(m)||hMe(m))return!0;if(l.pos<=m.pos&&!(ko(l)&&mj(m.parent)&&!l.initializer&&!l.exclamationToken)){if(l.kind===208){const Z=Fv(m,208);return Z?Tn(Z,js)!==Tn(l,js)||l.posPs(Z)&&Z.parent.parent===l);if(ko(l))return!U(l,m,!1);if(Mf(l,l.parent))return!(Ne&&Yd(l)===Yd(m)&&I(m,l))}return!0}if(m.parent.kind===281||m.parent.kind===277&&m.parent.isExportEquals||m.kind===277&&m.isExportEquals)return!0;if(I(m,l))return Ne&&Yd(l)&&(ko(l)||Mf(l,l.parent))?!U(l,m,!0):!0;return!1;function w(Z,ce){switch(Z.parent.parent.kind){case 243:case 248:case 250:if(Eb(ce,Z,A))return!0;break}const Fe=Z.parent.parent;return M8(Fe)&&Eb(ce,Fe.expression,A)}function I(Z,ce){return!!Tn(Z,Fe=>{if(Fe===A)return"quit";if(Co(Fe))return!0;if(zl(Fe))return ce.posZ.end?!1:Tn(ce,$e=>{if($e===Z)return"quit";switch($e.kind){case 219:return!0;case 172:return Fe&&(ko(Z)&&$e.parent===Z.parent||Mf(Z,Z.parent)&&$e.parent===Z.parent.parent)?"quit":!0;case 241:switch($e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Rw(l,m,D){const C=Os(ae),A=m;if(io(D)&&A.body&&l.valueDeclaration&&l.valueDeclaration.pos>=A.body.pos&&l.valueDeclaration.end<=A.body.end&&C>=2){const U=ar(A);return U.declarationRequiresScopeChange===void 0&&(U.declarationRequiresScopeChange=L(A.parameters,w)||!1),!U.declarationRequiresScopeChange}return!1;function w(U){return I(U.name)||!!U.initializer&&I(U.initializer)}function I(U){switch(U.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return I(U.name);case 172:return Kc(U)?!Ne:I(U.name);default:return Kse(U)||Y1(U)?C<7:js(U)&&U.dotDotDotToken&&Rp(U.parent)?C<4:Xr(U)?!1:ao(U,I)||!1}}}function gb(l){return Yy(l)&&q3(l.type)||XP(l)&&q3(l.typeExpression)}function uc(l,m,D,C,A,w,I=!1,U=!0){return yh(l,m,D,C,A,w,I,U,kf)}function yh(l,m,D,C,A,w,I,U,Z){var ce,Fe,Te;const $e=l;let ut,zt,gi,Wi,dn,nu=!1;const En=l;let Ii,Nn=!1;e:for(;l;){if(m==="const"&&gb(l))return;if(QO(l)&&zt&&l.name===zt&&(zt=l,l=l.parent),UE(l)&&l.locals&&!pE(l)&&(ut=Z(l.locals,m,D))){let An=!0;if(Co(l)&&zt&&zt!==l.body?(D&ut.flags&788968&&zt.kind!==327&&(An=ut.flags&262144?zt===l.type||zt.kind===169||zt.kind===348||zt.kind===349||zt.kind===168:!1),D&ut.flags&3&&(Rw(ut,l,zt)?An=!1:ut.flags&1&&(An=zt.kind===169||zt===l.type&&!!Tn(ut.valueDeclaration,io)))):l.kind===194&&(An=zt===l.trueType),An)break e;ut=void 0}switch(nu=nu||f_(l,zt),l.kind){case 312:if(!cm(l))break;Nn=!0;case 267:const An=((ce=_u(l))==null?void 0:ce.exports)||se;if(l.kind===312||_c(l)&&l.flags&33554432&&!Yg(l)){if(ut=An.get("default")){const oo=lB(ut);if(oo&&ut.flags&D&&oo.escapedName===m)break e;ut=void 0}const hu=An.get(m);if(hu&&hu.flags===2097152&&(Sl(hu,281)||Sl(hu,280)))break}if(m!=="default"&&(ut=Z(An,m,D&2623475)))if(la(l)&&l.commonJsModuleIndicator&&!((Fe=ut.declarations)!=null&&Fe.some(G4)))ut=void 0;else break e;break;case 266:if(ut=Z(((Te=_u(l))==null?void 0:Te.exports)||se,m,D&8)){C&&mg(ae)&&!(l.flags&33554432)&&zn(l)!==zn(ut.valueDeclaration)&&pt(En,F.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Qr(m),ht,`${Qr(Dm(l).escapedName)}.${Qr(m)}`);break e}break;case 172:if(!No(l)){const hu=Up(l.parent);hu&&hu.locals&&Z(hu.locals,m,D&111551)&&(H.assertNode(l,ko),Wi=l)}break;case 263:case 231:case 264:if(ut=Z(_u(l).members||se,m,D&788968)){if(!oC(ut,l)){ut=void 0;break}if(zt&&No(zt)){C&&pt(En,F.Static_members_cannot_reference_class_type_parameters);return}break e}if(Xd(l)&&D&32){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 233:if(zt===l.expression&&l.parent.token===96){const hu=l.parent.parent;if(mr(hu)&&(ut=Z(_u(hu).members,m,D&788968))){C&&pt(En,F.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ii=l.parent.parent,(mr(Ii)||Ii.kind===264)&&(ut=Z(_u(Ii).members,m,D&788968))){C&&pt(En,F.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(Os(ae)>=2)break;case 174:case 176:case 177:case 178:case 262:if(D&3&&m==="arguments"){ut=It;break e}break;case 218:if(D&3&&m==="arguments"){ut=It;break e}if(D&16){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 170:l.parent&&l.parent.kind===169&&(l=l.parent),l.parent&&(Zd(l.parent)||l.parent.kind===263)&&(l=l.parent);break;case 353:case 345:case 347:const _n=iP(l);_n&&(l=_n.parent);break;case 169:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&(dn||(dn=l));break;case 208:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&w2(l)&&!dn&&(dn=l);break;case 195:if(D&262144){const hu=l.typeParameter.name;if(hu&&m===hu.escapedText){ut=l.typeParameter.symbol;break e}}break;case 281:zt&&zt===l.propertyName&&l.parent.parent.moduleSpecifier&&(l=l.parent.parent.parent);break}g3(l)&&(gi=l),zt=l,l=_g(l)?Aq(l)||l.parent:(Eg(l)||EY(l))&&kv(l)||l.parent}if(w&&ut&&(!gi||ut!==gi.symbol)&&(ut.isReferenced|=D),!ut){if(zt&&(H.assertNode(zt,la),zt.commonJsModuleIndicator&&m==="exports"&&D&zt.symbol.flags))return zt.symbol;I||(ut=Z(Ie,m,D))}if(!ut&&$e&&Qn($e)&&$e.parent&&xf($e.parent,!1))return ei;function vn(){return Wi&&!Ne?(pt(En,En&&Wi.type&&IO(Wi.type,En.pos)?F.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:F.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,b0(Wi.name),$p(A)),!0):!1}if(ut){if(C&&vn())return}else{C&&s(()=>{if(!En||En.parent.kind!==331&&!E3(En,m,A)&&!vn()&&!Ow(En)&&!jw(En,m,D)&&!w5(En,m)&&!F9(En,m,D)&&!Vw(En,m,D)&&!gE(En,m,D)){let An,_n;if(A&&(_n=dri(A),_n&&pt(En,C,$p(A),_n)),!_n&&U&&$k{if(En&&(D&2||(D&32||D&384)&&(D&111551)===111551)){const An=sp(ut);(An.flags&2||An.flags&32||An.flags&384)&&B0(An,En)}if(ut&&Nn&&(D&111551)===111551&&!($e.flags&16777216)){const An=Ks(ut);S(An.declarations)&&ye(An.declarations,_n=>wV(_n)||la(_n)&&!!_n.symbol.globalExports)&&g4(!ae.allowUmdGlobalAccess,En,F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Qr(m))}if(ut&&dn&&!nu&&(D&111551)===111551){const An=Ks(yge(ut)),_n=XE(dn);An===_u(dn)?pt(En,F.Parameter_0_cannot_reference_itself,b0(dn.name)):An.valueDeclaration&&An.valueDeclaration.pos>dn.pos&&_n.parent.locals&&Z(_n.parent.locals,An.escapedName,D)===An&&pt(En,F.Parameter_0_cannot_reference_identifier_1_declared_after_it,b0(dn.name),b0(En))}if(ut&&En&&D&111551&&ut.flags&2097152&&!(ut.flags&111551)&&!Tv(En)){const An=_4(ut,111551);if(An){const _n=An.kind===281||An.kind===278||An.kind===280?F._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,hu=Qr(m);dD(pt(En,_n,hu),An,hu)}}}),ut}function dD(l,m,D){return m?Es(l,Su(m,m.kind===281||m.kind===278||m.kind===280?F._0_was_exported_here:F._0_was_imported_here,D)):l}function f_(l,m){return l.kind!==219&&l.kind!==218?bB(l)||($0(l)||l.kind===172&&!No(l))&&(!m||m!==l.name):m&&m===l.name?!1:l.asteriskToken||Yu(l,1024)?!0:!nk(l)}function g3(l){switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function $p(l){return Ja(l)?Qr(l):b0(l)}function oC(l,m){if(l.declarations){for(const D of l.declarations)if(D.kind===168&&(_g(D.parent)?h7(D.parent):D.parent)===m)return!(_g(D.parent)&&Le(D.parent.parent.tags,G4))}return!1}function E3(l,m,D){if(!at(l)||l.escapedText!==m||j4t(l)||ck(l))return!1;const C=tf(l,!1,!1);let A=C;for(;A;){if(mr(A.parent)){const w=_u(A.parent);if(!w)break;const I=Wn(w);if(qo(I,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,$p(D),Fr(w)),!0;if(A===C&&!No(A)){const U=X0(w).thisType;if(qo(U,m))return pt(l,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,$p(D)),!0}}A=A.parent}return!1}function Ow(l){const m=m_(l);return m&&R0(m,64,!0)?(pt(l,F.Cannot_extend_an_interface_0_Did_you_mean_implements,Hc(m)),!0):!1}function m_(l){switch(l.kind){case 80:case 211:return l.parent?m_(l.parent):void 0;case 233:if(ec(l.expression))return l.expression;default:return}}function jw(l,m,D){const C=1920|(Qn(l)?111551:0);if(D===C){const A=yc(uc(l,m,788968&~C,void 0,void 0,!1)),w=l.parent;if(A){if(vf(w)){H.assert(w.left===l,"Should only be resolving left side of qualified name as a namespace");const I=w.right.escapedText;if(qo(X0(A),I))return pt(w,F.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,Qr(m),Qr(I)),!0}return pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Qr(m)),!0}}return!1}function gE(l,m,D){if(D&788584){const C=yc(uc(l,m,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return pt(l,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Qr(m)),!0}return!1}function p_(l){return l==="any"||l==="string"||l==="number"||l==="boolean"||l==="never"||l==="unknown"}function w5(l,m){return p_(m)&&l.parent.kind===281?(pt(l,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,m),!0):!1}function Vw(l,m,D){if(D&111551){if(p_(m)){const w=l.parent.parent;if(w&&w.parent&&mm(w)){const I=w.token,U=w.parent.kind;U===264&&I===96?pt(l,F.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Qr(m)):U===263&&I===96?pt(l,F.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Qr(m)):U===263&&I===119&&pt(l,F.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Qr(m))}else pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Qr(m));return!0}const C=yc(uc(l,m,788544,void 0,void 0,!1)),A=C&&O1(C);if(C&&A!==void 0&&!(A&111551)){const w=Qr(m);return sz(m)?pt(l,F._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,w):k9(l,C)?pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,w,w==="K"?"P":"K"):pt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,w),!0}}return!1}function k9(l,m){const D=Tn(l.parent,C=>Ps(C)||Mm(C)?!1:fm(C)||"quit");if(D&&D.members.length===1){const C=X0(m);return!!(C.flags&1048576)&&mie(C,384,!0)}return!1}function sz(l){switch(l){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function F9(l,m,D){if(D&111127){if(yc(uc(l,m,1024,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_value,Qr(m)),!0}else if(D&788544&&yc(uc(l,m,1536,void 0,void 0,!1)))return pt(l,F.Cannot_use_namespace_0_as_a_type,Qr(m)),!0;return!1}function B0(l,m){var D;if(H.assert(!!(l.flags&2||l.flags&32||l.flags&384)),l.flags&67108881&&l.flags&32)return;const C=(D=l.declarations)==null?void 0:D.find(A=>h0e(A)||mr(A)||A.kind===266);if(C===void 0)return H.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!B5(C,m)){let A;const w=b0(Za(C));l.flags&2?A=pt(m,F.Block_scoped_variable_0_used_before_its_declaration,w):l.flags&32?A=pt(m,F.Class_0_used_before_its_declaration,w):l.flags&256&&(A=pt(m,F.Enum_0_used_before_its_declaration,w)),A&&Es(A,Su(C,F._0_is_declared_here,w))}}function Eb(l,m,D){return!!m&&!!Tn(l,C=>C===m||(C===D||Co(C)&&(!nk(C)||kd(C)&3)?"quit":!1))}function A9(l){switch(l.kind){case 271:return l;case 273:return l.parent;case 274:return l.parent.parent;case 276:return l.parent.parent.parent;default:return}}function rp(l){return l.declarations&<(l.declarations,sC)}function sC(l){return l.kind===271||l.kind===270||l.kind===273&&!!l.name||l.kind===274||l.kind===280||l.kind===276||l.kind===281||l.kind===277&&tB(l)||Xn(l)&&Xl(l)===2&&tB(l)||I0(l)&&Xn(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64&&S9(l.parent.right)||l.kind===304||l.kind===303&&S9(l.initializer)||l.kind===260&&F2(l)||l.kind===208&&F2(l.parent.parent)}function S9(l){return Pj(l)||A0(l)&&AE(l)}function lz(l,m){const D=fD(l);if(D){const A=CP(D.expression).arguments[0];return at(D.name)?yc(qo(Ldt(A),D.name.escapedText)):void 0}if(ua(l)||l.moduleReference.kind===283){const A=Kh(l,w0e(l)||XN(l)),w=_m(A);return Ff(l,A,w,!1),w}const C=aF(l.moduleReference,m);return nF(l,C),C}function nF(l,m){if(Ff(l,void 0,m,!1)&&!l.isTypeOnly){const D=_4(_u(l)),C=D.kind===281||D.kind===278,A=C?F.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:F.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,w=C?F._0_was_exported_here:F._0_was_imported_here,I=D.kind===278?"*":Qr(D.name.escapedText);Es(pt(l.moduleReference,A),Su(D,w,I))}}function ru(l,m,D,C){const A=l.exports.get("export="),w=A?qo(Wn(A),m,!0):l.exports.get(m),I=yc(w,C);return Ff(D,w,I,!1),I}function v1(l){return tc(l)&&!l.isExportEquals||Yu(l,2048)||eh(l)||u_(l)}function Ma(l){return t0(l)?xg(zn(l),l):void 0}function lf(l,m){return l===99&&m===1}function EE(l){return Ma(l)===99&&sc(l.text,".json")}function ap(l,m,D,C){const A=l&&Ma(C);if(l&&A!==void 0){const w=lf(A,l.impliedNodeFormat);if(A===99||w)return w}if(!pe)return!1;if(!l||l.isDeclarationFile){const w=ru(m,"default",void 0,!0);return!(w&&Oe(w.declarations,v1)||ru(m,Al("__esModule"),void 0,D))}return gh(l)?typeof l.externalModuleIndicator!="object"&&!ru(m,Al("__esModule"),void 0,D):bb(m)}function Un(l,m){const D=Kh(l,l.parent.moduleSpecifier);if(D)return _b(D,l,m)}function _b(l,m,D){var C;let A;$N(l)?A=l:A=ru(l,"default",m,D);const w=(C=l.declarations)==null?void 0:C.find(la),I=lC(m);if(!I)return A;const U=EE(I),Z=ap(w,l,D,I);if(!A&&!Z&&!U)if(bb(l)&&!pe){const ce=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=l.exports.get("export=").valueDeclaration,$e=pt(m.name,F.Module_0_can_only_be_default_imported_using_the_1_flag,Fr(l),ce);Te&&Es($e,Su(Te,F.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else n_(m)?wd(l,m):dC(l,l,m,r7(m)&&m.propertyName||m.name);else if(Z||U){const ce=_m(l,D)||yc(l,D);return Ff(m,l,ce,!1),ce}return Ff(m,A,void 0,!1),A}function lC(l){switch(l.kind){case 273:return l.parent.moduleSpecifier;case 271:return r_(l.moduleReference)?l.moduleReference.expression:void 0;case 274:return l.parent.parent.moduleSpecifier;case 276:return l.parent.parent.parent.moduleSpecifier;case 281:return l.parent.parent.moduleSpecifier;default:return H.assertNever(l)}}function wd(l,m){var D,C,A;if((D=l.exports)!=null&&D.has(m.symbol.escapedName))pt(m.name,F.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Fr(l),Fr(m.symbol));else{const w=pt(m.name,F.Module_0_has_no_default_export,Fr(l)),I=(C=l.exports)==null?void 0:C.get("__export");if(I){const U=(A=I.declarations)==null?void 0:A.find(Z=>{var ce,Fe;return!!(Gc(Z)&&Z.moduleSpecifier&&((Fe=(ce=Kh(Z,Z.moduleSpecifier))==null?void 0:ce.exports)!=null&&Fe.has("default")))});U&&Es(w,Su(U,F.export_Asterisk_does_not_re_export_a_default))}}}function _E(l,m){const D=l.parent.parent.moduleSpecifier,C=Kh(l,D),A=o6(C,D,m,!1);return Ff(l,C,A,!1),A}function DE(l,m){const D=l.parent.moduleSpecifier,C=D&&Kh(l,D),A=D&&o6(C,D,m,!1);return Ff(l,C,A,!1),A}function u6(l,m){if(l===Xt&&m===Xt)return Xt;if(l.flags&790504)return l;const D=Hs(l.flags|m.flags,l.escapedName);return H.assert(l.declarations||m.declarations),D.declarations=ri(Hi(l.declarations,m.declarations),Cx),D.parent=l.parent||m.parent,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration),m.members&&(D.members=new Map(m.members)),l.exports&&(D.exports=new Map(l.exports)),D}function B9(l,m,D,C){var A;if(l.flags&1536){const w=$f(l).get(m.escapedText),I=yc(w,C),U=(A=Ur(l).typeOnlyExportStarMap)==null?void 0:A.get(m.escapedText);return Ff(D,w,I,!1,U,m.escapedText),I}}function hD(l,m){if(l.flags&3){const D=l.valueDeclaration.type;if(D)return yc(qo(Ar(D),m))}}function cC(l,m,D=!1){var C;const A=w0e(l)||l.moduleSpecifier,w=Kh(l,A),I=!Iu(m)&&m.propertyName||m.name;if(!at(I))return;const U=I.escapedText==="default"&&pe,Z=o6(w,A,!1,U);if(Z&&I.escapedText){if($N(w))return w;let ce;w&&w.exports&&w.exports.get("export=")?ce=qo(Wn(Z),I.escapedText,!0):ce=hD(Z,I.escapedText),ce=yc(ce,D);let Fe=B9(Z,I,m,D);if(Fe===void 0&&I.escapedText==="default"){const $e=(C=w.declarations)==null?void 0:C.find(la);(EE(A)||ap($e,w,D,A))&&(Fe=_m(w,D)||yc(w,D))}const Te=Fe&&ce&&Fe!==ce?u6(ce,Fe):Fe||ce;return Te||dC(w,Z,l,I),Te}}function dC(l,m,D,C){var A;const w=op(l,D),I=b0(C),U=PEe(C,m);if(U!==void 0){const Z=Fr(U),ce=pt(C,F._0_has_no_exported_member_named_1_Did_you_mean_2,w,I,Z);U.valueDeclaration&&Es(ce,Su(U.valueDeclaration,F._0_is_declared_here,Z))}else(A=l.exports)!=null&&A.has("default")?pt(C,F.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,w,I):_3(D,C,I,l,w)}function _3(l,m,D,C,A){var w,I;const U=(I=(w=ur(C.valueDeclaration,UE))==null?void 0:w.locals)==null?void 0:I.get(m.escapedText),Z=C.exports;if(U){const ce=Z==null?void 0:Z.get("export=");if(ce)Zm(ce,U)?g_(l,m,D,A):pt(m,F.Module_0_has_no_exported_member_1,A,D);else{const Fe=Z?Le(QNe(Z),$e=>!!Zm($e,U)):void 0,Te=Fe?pt(m,F.Module_0_declares_1_locally_but_it_is_exported_as_2,A,D,Fr(Fe)):pt(m,F.Module_0_declares_1_locally_but_it_is_not_exported,A,D);U.declarations&&Es(Te,...Vt(U.declarations,($e,ut)=>Su($e,ut===0?F._0_is_declared_here:F.and_here,D)))}}else pt(m,F.Module_0_has_no_exported_member_1,A,D)}function g_(l,m,D,C){if(ne>=5){const A=e_(ae)?F._0_can_only_be_imported_by_using_a_default_import:F._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else if(Qn(l)){const A=e_(ae)?F._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:F._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D)}else{const A=e_(ae)?F._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:F._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;pt(m,A,D,D,C)}}function uF(l,m){if(bf(l)&&fu(l.propertyName||l.name)==="default"){const I=lC(l),U=I&&Kh(l,I);if(U)return _b(U,l,m)}const D=js(l)?XE(l):l.parent.parent.parent,C=fD(D),A=cC(D,C||l,m),w=l.propertyName||l.name;return C&&A&&at(w)?yc(qo(Wn(A),w.escapedText),m):(Ff(l,void 0,A,!1),A)}function fD(l){if(ua(l)&&l.initializer&&Iu(l.initializer))return l.initializer}function r6(l,m){if(Zg(l.parent)){const D=_m(l.parent.symbol,m);return Ff(l,void 0,D,!1),D}}function Db(l,m,D){if(fu(l.propertyName||l.name)==="default"){const A=lC(l),w=A&&Kh(l,A);if(w)return _b(w,l,!!D)}const C=l.parent.parent.moduleSpecifier?cC(l.parent.parent,l,D):R0(l.propertyName||l.name,m,!1,D);return Ff(l,void 0,C,!1),C}function w9(l,m){const D=tc(l)?l.expression:l.right,C=rF(D,m);return Ff(l,void 0,C,!1),C}function rF(l,m){if(Xd(l))return Rc(l).symbol;if(!sm(l)&&!ec(l))return;const D=R0(l,901119,!0,m);return D||(Rc(l),ar(l).resolvedSymbol)}function xb(l,m){if(Xn(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64)return rF(l.parent.right,m)}function E4(l,m=!1){switch(l.kind){case 271:case 260:return lz(l,m);case 273:return Un(l,m);case 274:return _E(l,m);case 280:return DE(l,m);case 276:case 208:return uF(l,m);case 281:return Db(l,901119,m);case 277:case 226:return w9(l,m);case 270:return r6(l,m);case 304:return R0(l.name,901119,!0,m);case 303:return rF(l.initializer,m);case 212:case 211:return xb(l,m);default:return H.fail()}}function hC(l,m=901119){return l?(l.flags&(2097152|m))===2097152||!!(l.flags&2097152&&l.flags&67108864):!1}function yc(l,m){return!m&&hC(l)?md(l):l}function md(l){H.assert((l.flags&2097152)!==0,"Should only get Alias here.");const m=Ur(l);if(m.aliasTarget)m.aliasTarget===Pe&&(m.aliasTarget=Xt);else{m.aliasTarget=Pe;const D=rp(l);if(!D)return H.fail();const C=E4(D);m.aliasTarget===Pe?m.aliasTarget=C||Xt:pt(D,F.Circular_definition_of_import_alias_0,Fr(l))}return m.aliasTarget}function T9(l){if(Ur(l).aliasTarget!==Pe)return md(l)}function O1(l,m,D){const C=m&&_4(l),A=C&&Gc(C),w=C&&(A?Kh(C.moduleSpecifier,C.moduleSpecifier,!0):md(C.symbol)),I=A&&w?x3(w):void 0;let U=D?0:l.flags,Z;for(;l.flags&2097152;){const ce=sp(md(l));if(!A&&ce===w||(I==null?void 0:I.get(ce.escapedName))===ce)break;if(ce===Xt)return 67108863;if(ce===l||Z!=null&&Z.has(ce))break;ce.flags&2097152&&(Z?Z.add(ce):Z=new Set([l,ce])),U|=ce.flags,l=ce}return U}function Ff(l,m,D,C,A,w){if(!l||Iu(l))return!1;const I=_u(l);if(_2(l)){const Z=Ur(I);return Z.typeOnlyDeclaration=l,!0}if(A){const Z=Ur(I);return Z.typeOnlyDeclaration=A,I.escapedName!==w&&(Z.typeOnlyExportStarName=w),!0}const U=Ur(I);return vb(U,m,C)||vb(U,D,C)}function vb(l,m,D){var C;if(m&&(l.typeOnlyDeclaration===void 0||D&&l.typeOnlyDeclaration===!1)){const A=((C=m.exports)==null?void 0:C.get("export="))??m,w=A.declarations&&Le(A.declarations,_2);l.typeOnlyDeclaration=w??Ur(A).typeOnlyDeclaration??!1}return!!l.typeOnlyDeclaration}function _4(l,m){if(!(l.flags&2097152))return;const D=Ur(l);if(m===void 0)return D.typeOnlyDeclaration||void 0;if(D.typeOnlyDeclaration){const C=D.typeOnlyDeclaration.kind===278?yc(x3(D.typeOnlyDeclaration.symbol.parent).get(D.typeOnlyExportStarName||l.escapedName)):md(D.typeOnlyDeclaration.symbol);return O1(C)&m?D.typeOnlyDeclaration:void 0}}function fC(l){if(!Ut)return;const m=_u(l),D=md(m);D&&(D===Xt||O1(m,!0)&111551&&!OW(D))&&T5(m)}function T5(l){H.assert(Ut);const m=Ur(l);if(!m.referenced){m.referenced=!0;const D=rp(l);if(!D)return H.fail();U8(D)&&O1(yc(l))&111551&&Rc(D.moduleReference)}}function n1(l){const m=Ur(l);m.constEnumReferenced||(m.constEnumReferenced=!0)}function aF(l,m){return l.kind===80&&gP(l)&&(l=l.parent),l.kind===80||l.parent.kind===166?R0(l,1920,!1,m):(H.assert(l.parent.kind===271),R0(l,901119,!1,m))}function op(l,m){return l.parent?op(l.parent,m)+"."+Fr(l):Fr(l,m,void 0,36)}function a6(l){for(;vf(l.parent);)l=l.parent;return l}function Hw(l){let m=hm(l),D=uc(m,m.escapedText,111551,void 0,m,!0);if(D){for(;vf(m.parent);){const C=Wn(D);if(D=qo(C,m.parent.right.escapedText),!D)return;m=m.parent}return D}}function R0(l,m,D,C,A){if(Ql(l))return;const w=1920|(Qn(l)?m&111551:0);let I;if(l.kind===80){const U=m===w||sl(l)?F.Cannot_find_namespace_0:Fht(hm(l)),Z=Qn(l)&&!sl(l)?Kw(l,m):void 0;if(I=Ks(uc(A||l,l.escapedText,m,D||Z?void 0:U,l,!0,!1)),!I)return Ks(Z)}else if(l.kind===166||l.kind===211){const U=l.kind===166?l.left:l.expression,Z=l.kind===166?l.right:l.name;let ce=R0(U,w,D,!1,A);if(!ce||Ql(Z))return;if(ce===Xt)return ce;if(ce.valueDeclaration&&Qn(ce.valueDeclaration)&&p1(ae)!==100&&ua(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&amt(ce.valueDeclaration.initializer)){const Fe=ce.valueDeclaration.initializer.arguments[0],Te=Kh(Fe,Fe);if(Te){const $e=_m(Te);$e&&(ce=$e)}}if(I=Ks(kf($f(ce),Z.escapedText,m)),!I&&ce.flags&2097152&&(I=Ks(kf($f(md(ce)),Z.escapedText,m))),!I){if(!D){const Fe=op(ce),Te=b0(Z),$e=PEe(Z,ce);if($e){pt(Z,F._0_has_no_exported_member_named_1_Did_you_mean_2,Fe,Te,Fr($e));return}const ut=vf(l)&&a6(l);if(He&&m&788968&&ut&&!AB(ut.parent)&&Hw(ut)){pt(ut,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zf(ut));return}if(m&1920&&vf(l.parent)){const gi=Ks(kf($f(ce),Z.escapedText,788968));if(gi){pt(l.parent.right,F.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,Fr(gi),Qr(l.parent.right.escapedText));return}}pt(Z,F.Namespace_0_has_no_exported_member_1,Fe,Te)}return}}else H.assertNever(l,"Unknown entity name kind.");return H.assert((Gl(I)&1)===0,"Should never get an instantiated symbol here."),!sl(l)&&sm(l)&&(I.flags&2097152||l.parent.kind===277)&&Ff(H0e(l),I,void 0,!0),I.flags&m||C?I:md(I)}function Kw(l,m){if(Nge(l.parent)){const D=oF(l.parent);if(D)return uc(D,l.escapedText,m,void 0,l,!0)}}function oF(l){if(Tn(l,A=>z8(A)||A.flags&16777216?G4(A):"quit"))return;const D=h7(l);if(D&&Od(D)&&kj(D.expression)){const A=_u(D.expression.left);if(A)return mC(A)}if(D&&A0(D)&&kj(D.parent)&&Od(D.parent.parent)){const A=_u(D.parent.left);if(A)return mC(A)}if(D&&(zp(D)||Jc(D))&&Xn(D.parent.parent)&&Xl(D.parent.parent)===6){const A=_u(D.parent.parent.left);if(A)return mC(A)}const C=ok(l);if(C&&Co(C)){const A=_u(C);return A&&A.valueDeclaration}}function mC(l){const m=l.parent.valueDeclaration;return m?(eP(m)?l7(m):Qy(m)?xj(m):void 0)||m:void 0}function L9(l){const m=l.valueDeclaration;if(!m||!Qn(m)||l.flags&524288||yv(m,!1))return;const D=ua(m)?xj(m):l7(m);if(D){const C=Dm(D);if(C)return nze(C,l)}}function Kh(l,m,D){const A=p1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations;return D3(l,m,D?void 0:A)}function D3(l,m,D,C=!1){return t0(m)?mD(l,m.text,D,m,C):void 0}function mD(l,m,D,C,A=!1){var w,I,U,Z,ce,Fe,Te,$e,ut,zt;if(Pa(m,"@types/")){const _n=F.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hu=yN(m,"@types/");pt(C,_n,hu,m)}const gi=kge(m,!0);if(gi)return gi;const Wi=zn(l),dn=t0(l)?l:((w=Tn(l,dm))==null?void 0:w.arguments[0])||((I=Tn(l,Sd))==null?void 0:I.moduleSpecifier)||((U=Tn(l,bv))==null?void 0:U.moduleReference.expression)||((Z=Tn(l,Gc))==null?void 0:Z.moduleSpecifier)||((ce=_c(l)?l:l.parent&&_c(l.parent)&&l.parent.name===l?l.parent:void 0)==null?void 0:ce.name)||((Fe=zx(l)?l:void 0)==null?void 0:Fe.argument.literal),nu=dn&&t0(dn)?xg(Wi,dn):Wi.impliedNodeFormat,En=p1(ae),Ii=(Te=t.getResolvedModule(Wi,m,nu))==null?void 0:Te.resolvedModule,Nn=Ii&&P1e(ae,Ii,Wi),vn=Ii&&(!Nn||Nn===F.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(Ii.resolvedFileName);if(vn){if(Nn&&pt(C,Nn,m,Ii.resolvedFileName),Ii.resolvedUsingTsExtension&&e1(m)){const _n=(($e=Tn(l,Sd))==null?void 0:$e.importClause)||Tn(l,dg(E1,Gc));(_n&&!_n.isTypeOnly||Tn(l,dm))&&pt(C,F.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,An(H.checkDefined(Kq(m))))}else if(Ii.resolvedUsingTsExtension&&!$B(ae,Wi.fileName)){const _n=((ut=Tn(l,Sd))==null?void 0:ut.importClause)||Tn(l,dg(E1,Gc));if(!(_n!=null&&_n.isTypeOnly||Tn(l,nD))){const hu=H.checkDefined(Kq(m));pt(C,F.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hu)}}if(vn.symbol){if(Ii.isExternalLibraryImport&&!FP(Ii.extension)&&Cb(!1,C,Wi,nu,Ii,m),En===3||En===99){const _n=Wi.impliedNodeFormat===1&&!Tn(l,dm)||!!Tn(l,E1),hu=Tn(l,oo=>nD(oo)||Gc(oo)||Sd(oo));if(_n&&vn.impliedNodeFormat===99&&!kke(hu))if(Tn(l,E1))pt(C,F.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,m);else{let oo;const Eo=t3(Wi.fileName);if(Eo===".ts"||Eo===".js"||Eo===".tsx"||Eo===".jsx"){const fo=Wi.packageJsonScope,ka=Eo===".ts"?".mts":Eo===".js"?".mjs":void 0;fo&&!fo.contents.packageJsonContent.type?ka?oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,ka,cr(fo.packageDirectory,"package.json")):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,cr(fo.packageDirectory,"package.json")):ka?oo=ro(void 0,F.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,ka):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Vs.add(Y3(zn(C),C,ro(oo,F.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,m)))}}return Ks(vn.symbol)}D&&pt(C,F.File_0_is_not_a_module,vn.fileName);return}if(h4){const _n=coe(h4,hu=>hu.pattern,m);if(_n){const hu=D1&&D1.get(m);return Ks(hu||_n.symbol)}}if(Ii&&!FP(Ii.extension)&&Nn===void 0||Nn===F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(A){const _n=F.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;pt(C,_n,m,Ii.resolvedFileName)}else Cb(Ae&&!!D,C,Wi,nu,Ii,m);return}if(D){if(Ii){const _n=t.getProjectReferenceRedirect(Ii.resolvedFileName);if(_n){pt(C,F.Output_file_0_has_not_been_built_from_source_file_1,_n,Ii.resolvedFileName);return}}if(Nn)pt(C,Nn,m,Ii.resolvedFileName);else{const _n=om(m)&&!t7(m),hu=En===3||En===99;if(!M2(ae)&&Ml(m,".json")&&En!==1&&Qq(ae))pt(C,F.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,m);else if(nu===99&&hu&&_n){const oo=$a(m,lr(Wi.path)),Eo=(zt=y9.find(([fo,ka])=>t.fileExists(oo+fo)))==null?void 0:zt[1];Eo?pt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,m+Eo):pt(C,F.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 pt(C,D,m)}}return;function An(_n){const hu=nV(m,_n);if(Yq(ne)||nu===99){const oo=e1(m)&&$B(ae);return hu+(_n===".mts"||_n===".d.mts"?oo?".mts":".mjs":_n===".cts"||_n===".d.mts"?oo?".cts":".cjs":oo?".ts":".js")}return hu}}function Cb(l,m,D,C,{packageId:A,resolvedFileName:w},I){let U;!Id(I)&&A&&(U=o0e(D,t,I,C,A.name)),g4(l,m,ro(U,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,w))}function _m(l,m){if(l!=null&&l.exports){const D=yc(l.exports.get("export="),m),C=N9(Ks(D),Ks(l));return Ks(C)||l}}function N9(l,m){if(!l||l===Xt||l===m||m.exports.size===1||l.flags&2097152)return l;const D=Ur(l);if(D.cjsExportMerged)return D.cjsExportMerged;const C=l.flags&33554432?l:pb(l);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=Vo()),m.exports.forEach((A,w)=>{w!=="export="&&C.exports.set(w,C.exports.has(w)?up(C.exports.get(w),A):A)}),C===l&&(Ur(C).resolvedExports=void 0,Ur(C).resolvedMembers=void 0),Ur(C).cjsExportMerged=C,D.cjsExportMerged=C}function o6(l,m,D,C){var A;const w=_m(l,D);if(!D&&w){if(!C&&!(w.flags&1539)&&!Sl(w,312)){const U=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop";return pt(m,F.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),w}const I=m.parent;if(Sd(I)&&Q8(I)||dm(I)){const U=dm(I)?I.arguments[0]:I.moduleSpecifier,Z=Wn(w),ce=umt(Z,w,l,U);if(ce)return qm(w,ce,I);const Fe=(A=l==null?void 0:l.declarations)==null?void 0:A.find(la),Te=Fe&&lf(Ma(U),Fe.impliedNodeFormat);if(e_(ae)||Te){let $e=bte(Z,0);if((!$e||!$e.length)&&($e=bte(Z,1)),$e&&$e.length||qo(Z,"default",!0)||Te){const ut=Z.flags&3670016?rmt(Z,w,l,U):uze(w,w.parent);return qm(w,ut,I)}}}}return w}function qm(l,m,D){const C=Hs(l.flags,l.escapedName);C.declarations=l.declarations?l.declarations.slice():[],C.parent=l.parent,C.links.target=l,C.links.originatingImport=D,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),l.members&&(C.members=new Map(l.members)),l.exports&&(C.exports=new Map(l.exports));const A=Ag(m);return C.links.type=Ol(C,A.members,_t,_t,A.indexInfos),C}function bb(l){return l.exports.get("export=")!==void 0}function L5(l){return QNe(x3(l))}function cz(l){const m=L5(l),D=_m(l);if(D!==l){const C=Wn(D);pC(C)&&yn(m,n0(C))}return m}function P9(l,m){x3(l).forEach((A,w)=>{EC(w)||m(A,w)});const C=_m(l);if(C!==l){const A=Wn(C);pC(A)&&IXt(A,(w,I)=>{m(w,I)})}}function M9(l,m){const D=x3(m);if(D)return D.get(l)}function z9(l,m){const D=M9(l,m);if(D)return D;const C=_m(m);if(C===m)return;const A=Wn(C);return pC(A)?qo(A,l):void 0}function pC(l){return!(l.flags&402784252||Gu(l)&1||A4(l)||xs(l))}function $f(l){return l.flags&6256?PNe(l,"resolvedExports"):l.flags&1536?x3(l):l.exports||se}function x3(l){const m=Ur(l);if(!m.resolvedExports){const{exports:D,typeOnlyExportStarMap:C}=R9(l);m.resolvedExports=D,m.typeOnlyExportStarMap=C}return m.resolvedExports}function I9(l,m,D,C){m&&m.forEach((A,w)=>{if(w==="default")return;const I=l.get(w);if(!I)l.set(w,A),D&&C&&D.set(w,{specifierText:Hc(C.moduleSpecifier)});else if(D&&C&&I&&yc(I)!==yc(A)){const U=D.get(w);U.exportsWithDuplicate?U.exportsWithDuplicate.push(C):U.exportsWithDuplicate=[C]}})}function R9(l){const m=[];let D;const C=new Set;l=_m(l);const A=w(l)||se;return D&&C.forEach(I=>D.delete(I)),{exports:A,typeOnlyExportStarMap:D};function w(I,U,Z){if(!Z&&(I!=null&&I.exports)&&I.exports.forEach((Te,$e)=>C.add($e)),!(I&&I.exports&&xa(m,I)))return;const ce=new Map(I.exports),Fe=I.exports.get("__export");if(Fe){const Te=Vo(),$e=new Map;if(Fe.declarations)for(const ut of Fe.declarations){const zt=Kh(ut,ut.moduleSpecifier),gi=w(zt,ut,Z||ut.isTypeOnly);I9(Te,gi,$e,ut)}$e.forEach(({exportsWithDuplicate:ut},zt)=>{if(!(zt==="export="||!(ut&&ut.length)||ce.has(zt)))for(const gi of ut)Vs.add(Su(gi,F.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,$e.get(zt).specifierText,Qr(zt)))}),I9(ce,Te)}return U!=null&&U.isTypeOnly&&(D??(D=new Map),ce.forEach((Te,$e)=>D.set($e,U))),ce}}function Ks(l){let m;return l&&l.mergeId&&(m=D9[l.mergeId])?m:l}function _u(l){return Ks(l.symbol&&yge(l.symbol))}function Dm(l){return Zg(l)?_u(l):void 0}function cf(l){return Ks(l.parent&&yge(l.parent))}function yb(l,m){const D=zn(m),C=$s(D),A=Ur(l);let w;if(A.extendedContainersByFile&&(w=A.extendedContainersByFile.get(C)))return w;if(D&&D.imports){for(const U of D.imports){if(sl(U))continue;const Z=Kh(m,U,!0);!Z||!s6(Z,l)||(w=xi(w,Z))}if(S(w))return(A.extendedContainersByFile||(A.extendedContainersByFile=new Map)).set(C,w),w}if(A.extendedContainers)return A.extendedContainers;const I=t.getSourceFiles();for(const U of I){if(!wc(U))continue;const Z=_u(U);s6(Z,l)&&(w=xi(w,Z))}return A.extendedContainers=w||_t}function Ww(l,m,D){const C=cf(l);if(C&&!(l.flags&262144)){const I=qi(C.declarations,w),U=m&&yb(l,m),Z=gC(C,D);if(m&&C.flags&v3(D)&&_C(C,m,1920,!1))return xi(Hi(Hi([C],I),U),Z);const ce=!(C.flags&v3(D))&&C.flags&788968&&X0(C).flags&524288&&D===111551?c6(m,Te=>h1(Te,$e=>{if($e.flags&v3(D)&&Wn($e)===X0(C))return $e})):void 0;let Fe=ce?[ce,...I,C]:[...I,C];return Fe=xi(Fe,Z),Fe=yn(Fe,U),Fe}const A=qi(l.declarations,I=>{if(!N1(I)&&I.parent){if(Ao(I.parent))return _u(I.parent);if(rE(I.parent)&&I.parent.parent&&_m(_u(I.parent.parent))===l)return _u(I.parent.parent)}if(Xd(I)&&Xn(I.parent)&&I.parent.operatorToken.kind===64&&I0(I.parent.left)&&ec(I.parent.left.expression))return Y_(I.parent.left)||uk(I.parent.left.expression)?_u(zn(I)):(Rc(I.parent.left.expression),ar(I.parent.left.expression).resolvedSymbol)});if(!S(A))return;return qi(A,I=>s6(I,l)?I:void 0);function w(I){return C&&kb(I,C)}}function gC(l,m){const D=!!S(l.declarations)&&Pn(l.declarations);if(m&111551&&D&&D.parent&&ua(D.parent)&&(ys(D)&&D===D.parent.initializer||fm(D)&&D===D.parent.type))return _u(D.parent)}function kb(l,m){const D=br(l),C=D&&D.exports&&D.exports.get("export=");return C&&Zm(C,m)?D:void 0}function s6(l,m){if(l===cf(m))return m;const D=l.exports&&l.exports.get("export=");if(D&&Zm(D,m))return l;const C=$f(l),A=C.get(m.escapedName);return A&&Zm(A,m)?A:h1(C,w=>{if(Zm(w,m))return w})}function Zm(l,m){if(Ks(yc(Ks(l)))===Ks(yc(Ks(m))))return l}function sp(l){return Ks(l&&(l.flags&1048576)!==0&&l.exportSymbol||l)}function l6(l,m){return!!(l.flags&111551||l.flags&2097152&&O1(l,!m)&111551)}function Up(l){const m=l.members;for(const D of m)if(D.kind===176&&H4(D.body))return D}function lp(l){var m;const D=new b(Pi,l);return k++,D.id=k,(m=Gn)==null||m.recordType(D),D}function N5(l,m){const D=lp(l);return D.symbol=m,D}function Fb(l){return new b(Pi,l)}function Pc(l,m,D=0,C){dz(m,C);const A=lp(l);return A.intrinsicName=m,A.debugIntrinsicName=C,A.objectFlags=D|524288|2097152|33554432|16777216,A}function dz(l,m){const D=`${l},${m??""}`;ii.has(D)&&H.fail(`Duplicate intrinsic type name ${l}${m?` (${m})`:""}; you may need to pass a name to createIntrinsicType.`),ii.add(D)}function D4(l,m){const D=N5(524288,m);return D.objectFlags=l,D.members=void 0,D.properties=void 0,D.callSignatures=void 0,D.constructSignatures=void 0,D.indexInfos=void 0,D}function Gw(){return er(ga(Vde.keys(),df))}function j1(l){return N5(262144,l)}function EC(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)!==95&&l.charCodeAt(2)!==64&&l.charCodeAt(2)!==35}function Ab(l){let m;return l.forEach((D,C)=>{sF(D,C)&&(m||(m=[])).push(D)}),m||_t}function sF(l,m){return!EC(m)&&l6(l)}function Jw(l){const m=Ab(l),D=Sge(l);return D?Hi(m,[D]):m}function x4(l,m,D,C,A){const w=l;return w.members=m,w.properties=_t,w.callSignatures=D,w.constructSignatures=C,w.indexInfos=A,m!==se&&(w.properties=Ab(m)),w}function Ol(l,m,D,C,A){return x4(D4(16,l),m,D,C,A)}function xE(l){if(l.constructSignatures.length===0)return l;if(l.objectTypeWithoutAbstractConstructSignatures)return l.objectTypeWithoutAbstractConstructSignatures;const m=ti(l.constructSignatures,C=>!(C.flags&4));if(l.constructSignatures===m)return l;const D=Ol(l.symbol,l.members,l.callSignatures,Oe(m)?m:_t,l.indexInfos);return l.objectTypeWithoutAbstractConstructSignatures=D,D.objectTypeWithoutAbstractConstructSignatures=D,D}function c6(l,m){let D;for(let C=l;C;C=C.parent){if(UE(C)&&C.locals&&!pE(C)&&(D=m(C.locals,void 0,!0,C)))return D;switch(C.kind){case 312:if(!cm(C))break;case 267:const A=_u(C);if(D=m((A==null?void 0:A.exports)||se,void 0,!0,C))return D;break;case 263:case 231:case 264:let w;if((_u(C).members||se).forEach((I,U)=>{I.flags&788968&&(w||(w=Vo())).set(U,I)}),w&&(D=m(w,void 0,!1,C)))return D;break}}return m(Ie,void 0,!0)}function v3(l){return l===111551?111551:1920}function _C(l,m,D,C,A=new Map){if(!(l&&!d6(l)))return;const w=Ur(l),I=w.accessibleChainCache||(w.accessibleChainCache=new Map),U=c6(m,(dn,nu,En,Ii)=>Ii),Z=`${C?0:1}|${U&&$s(U)}|${D}`;if(I.has(Z))return I.get(Z);const ce=Zo(l);let Fe=A.get(ce);Fe||A.set(ce,Fe=[]);const Te=c6(m,$e);return I.set(Z,Te),Te;function $e(dn,nu,En){if(!xa(Fe,dn))return;const Ii=gi(dn,nu,En);return Fe.pop(),Ii}function ut(dn,nu){return!$w(dn,m,nu)||!!_C(dn.parent,m,v3(nu),C,A)}function zt(dn,nu,En){return(l===(nu||dn)||Ks(l)===Ks(nu||dn))&&!Oe(dn.declarations,Ao)&&(En||ut(Ks(dn),D))}function gi(dn,nu,En){return zt(dn.get(l.escapedName),void 0,nu)?[l]:h1(dn,Nn=>{if(Nn.flags&2097152&&Nn.escapedName!=="export="&&Nn.escapedName!=="default"&&!($q(Nn)&&m&&wc(zn(m)))&&(!C||Oe(Nn.declarations,bv))&&(!En||!Oe(Nn.declarations,iye))&&(nu||!Sl(Nn,281))){const vn=md(Nn),An=Wi(Nn,vn,nu);if(An)return An}if(Nn.escapedName===l.escapedName&&Nn.exportSymbol&&zt(Ks(Nn.exportSymbol),void 0,nu))return[l]})||(dn===Ie?Wi(St,St,nu):void 0)}function Wi(dn,nu,En){if(zt(dn,nu,En))return[dn];const Ii=$f(nu),Nn=Ii&&$e(Ii,!0);if(Nn&&ut(dn,v3(D)))return[dn].concat(Nn)}}function $w(l,m,D){let C=!1;return c6(m,A=>{let w=Ks(A.get(l.escapedName));if(!w)return!1;if(w===l)return!0;const I=w.flags&2097152&&!Sl(w,281);return w=I?md(w):w,(I?O1(w):w.flags)&D?(C=!0,!0):!1}),C}function d6(l){if(l.declarations&&l.declarations.length){for(const m of l.declarations)switch(m.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function R(l,m){return Jr(l,m,788968,!1,!0).accessibility===0}function be(l,m){return Jr(l,m,111551,!1,!0).accessibility===0}function Ht(l,m,D){return Jr(l,m,D,!1,!1).accessibility===0}function Oi(l,m,D,C,A,w){if(!S(l))return;let I,U=!1;for(const Z of l){const ce=_C(Z,m,C,!1);if(ce){I=Z;const $e=Af(ce[0],A);if($e)return $e}if(w&&Oe(Z.declarations,Ao)){if(A){U=!0;continue}return{accessibility:0}}const Fe=Ww(Z,m,C),Te=Oi(Fe,m,D,D===Z?v3(C):C,A,w);if(Te)return Te}if(U)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:Fr(D,m,C),errorModuleName:I!==D?Fr(I,m,1920):void 0}}function yu(l,m,D,C){return Jr(l,m,D,C,!0)}function Jr(l,m,D,C,A){if(l&&m){const w=Oi([l],m,l,D,C,A);if(w)return w;const I=L(l.declarations,br);if(I){const U=br(m);if(I!==U)return{accessibility:2,errorSymbolName:Fr(l,m,D),errorModuleName:Fr(I),errorNode:Qn(m)?m:void 0}}return{accessibility:1,errorSymbolName:Fr(l,m,D)}}return{accessibility:0}}function br(l){const m=Tn(l,Ea);return m&&_u(m)}function Ea(l){return N1(l)||l.kind===312&&cm(l)}function Ao(l){return tq(l)||l.kind===312&&cm(l)}function Af(l,m){let D;if(!ye(ti(l.declarations,w=>w.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:D};function C(w){var I,U;if(!pD(w)){const Z=A9(w);if(Z&&!Yu(Z,32)&&pD(Z.parent))return A(w,Z);if(ua(w)&&Jl(w.parent.parent)&&!Yu(w.parent.parent,32)&&pD(w.parent.parent.parent))return A(w,w.parent.parent);if(iq(w)&&!Yu(w,32)&&pD(w.parent))return A(w,w);if(js(w)){if(l.flags&2097152&&Qn(w)&&((I=w.parent)!=null&&I.parent)&&ua(w.parent.parent)&&((U=w.parent.parent.parent)!=null&&U.parent)&&Jl(w.parent.parent.parent.parent)&&!Yu(w.parent.parent.parent.parent,32)&&w.parent.parent.parent.parent.parent&&pD(w.parent.parent.parent.parent.parent))return A(w,w.parent.parent.parent.parent);if(l.flags&2){const ce=Tn(w,Jl);return Yu(ce,32)?!0:pD(ce.parent)?A(w,ce):!1}}return!1}return!0}function A(w,I){return m&&(ar(w).isVisible=!0,D=e0(D,I)),!0}}function Uf(l,m){let D;l.parent.kind===186||l.parent.kind===233&&!q_(l.parent)||l.parent.kind===167?D=1160127:l.kind===166||l.kind===211||l.parent.kind===271?D=1920:D=788968;const C=hm(l),A=uc(m,C.escapedText,D,void 0,void 0,!1);return A&&A.flags&262144&&D&788968?{accessibility:0}:!A&&N2(C)&&yu(_u(tf(C,!1,!1)),C,D,!1).accessibility===0?{accessibility:0}:A&&Af(A,!0)||{accessibility:1,errorSymbolName:Hc(C),errorNode:C}}function Fr(l,m,D,C=4,A){let w=70221824;C&2&&(w|=128),C&1&&(w|=512),C&8&&(w|=16384),C&32&&(w|=134217728),C&16&&(w|=1073741824);const I=C&4?Yt.symbolToNode:Yt.symbolToEntityName;return A?U(A).getText():GN(U);function U(Z){const ce=I(l,D,m,w),Fe=(m==null?void 0:m.kind)===312?m1e():X2(),Te=m&&zn(m);return Fe.writeNode(4,ce,Te,Z),Z}}function vE(l,m,D=0,C,A){return A?w(A).getText():GN(w);function w(I){let U;D&262144?U=C===1?185:184:U=C===1?180:179;const Z=Yt.signatureToSignatureDeclaration(l,U,m,DC(D)|70221824|512),ce=EH(),Fe=m&&zn(m);return ce.writeNode(4,Z,Fe,ele(I)),I}}function gn(l,m,D=1064960,C=Vj("")){const A=ae.noErrorTruncation||D&1,w=Yt.typeToTypeNode(l,m,DC(D)|70221824|(A?1:0));if(w===void 0)return H.fail("should always get typenode");const I=l!==Ei?X2():f1e(),U=m&&zn(m);I.writeNode(4,w,U,C);const Z=C.getText(),ce=A?DZ*2:lV*2;return ce&&Z&&Z.length>=ce?Z.substr(0,ce-3)+"...":Z}function h6(l,m){let D=lF(l.symbol)?gn(l,l.symbol.valueDeclaration):gn(l),C=lF(m.symbol)?gn(m,m.symbol.valueDeclaration):gn(m);return D===C&&(D=P5(l),C=P5(m)),[D,C]}function P5(l){return gn(l,void 0,64)}function lF(l){return l&&!!l.valueDeclaration&&Wt(l.valueDeclaration)&&!k4(l.valueDeclaration)}function DC(l=0){return l&848330091}function O9(l){return!!l.symbol&&!!(l.symbol.flags&32)&&(l===b4(l.symbol)||!!(l.flags&524288)&&!!(Gu(l)&16777216))}function cF(){return{typeToTypeNode:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>C(At,Er)),indexInfoToIndexSignatureDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Fe(At,Er,void 0)),signatureToSignatureDeclaration:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>Te(At,ze,fr)),symbolToEntityName:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>ka(At,fr,ze,!1)),symbolToExpression:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>ah(At,fr,ze)),symbolToTypeParameterDeclarations:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Nn(At,Er)),symbolToParameterDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>Wi(At,Er)),typeParameterToDeclaration:(At,ze,Yn,Fu)=>m(ze,Yn,Fu,Er=>zt(At,Er)),symbolTableToDeclarationStatements:(At,ze,Yn,Fu,Er)=>m(ze,Yn,Fu,fr=>bm(At,fr,Er)),symbolToNode:(At,ze,Yn,Fu,Er)=>m(Yn,Fu,Er,fr=>l(At,fr,ze))};function l(At,ze,Yn){if(ze.flags&1073741824){if(At.valueDeclaration){const Er=Za(At.valueDeclaration);if(Er&&Ps(Er))return Er}const Fu=Ur(At).nameType;if(Fu&&Fu.flags&9216)return ze.enclosingDeclaration=Fu.symbol.valueDeclaration,q.createComputedPropertyName(ah(Fu.symbol,ze,Yn))}return ah(At,ze,Yn)}function m(At,ze,Yn,Fu){H.assert(At===void 0||(At.flags&16)===0);const Er=Yn!=null&&Yn.trackSymbol?Yn.moduleResolverHost:ze&134217728?FPt(t):void 0,fr={enclosingDeclaration:At,flags:ze||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};fr.tracker=new Hde(fr,Yn,Er);const Mr=Fu(fr);return fr.truncating&&fr.flags&1&&fr.tracker.reportTruncationError(),fr.encounteredError?void 0:Mr}function D(At){return At.truncating?At.truncating:At.truncating=At.approximateLength>(At.flags&1?DZ:lV)}function C(At,ze){const Yn=ze.flags,Fu=A(At,ze);return ze.flags=Yn,Fu}function A(At,ze){var Yn,Fu;d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();const Er=ze.flags&8388608;if(ze.flags&=-8388609,!At){if(!(ze.flags&262144)){ze.encounteredError=!0;return}return ze.approximateLength+=3,q.createKeywordTypeNode(133)}if(ze.flags&536870912||(At=Sg(At)),At.flags&1)return At.aliasSymbol?q.createTypeReferenceNode(hu(At.aliasSymbol),Z(At.aliasTypeArguments,ze)):At===Ei?OP(q.createKeywordTypeNode(133),3,"unresolved"):(ze.approximateLength+=3,q.createKeywordTypeNode(At===Qi?141:133));if(At.flags&2)return q.createKeywordTypeNode(159);if(At.flags&4)return ze.approximateLength+=6,q.createKeywordTypeNode(154);if(At.flags&8)return ze.approximateLength+=6,q.createKeywordTypeNode(150);if(At.flags&64)return ze.approximateLength+=6,q.createKeywordTypeNode(163);if(At.flags&16&&!At.aliasSymbol)return ze.approximateLength+=7,q.createKeywordTypeNode(136);if(At.flags&1056){if(At.symbol.flags&8){const pn=cf(At.symbol),or=oo(pn,ze,788968);if(X0(pn)===At)return or;const qr=lc(At.symbol);return Lm(qr,0)?Kr(or,q.createTypeReferenceNode(qr,void 0)):nD(or)?(or.isTypeOf=!0,q.createIndexedAccessTypeNode(or,q.createLiteralTypeNode(q.createStringLiteral(qr)))):X4(or)?q.createIndexedAccessTypeNode(q.createTypeQueryNode(or.typeName),q.createLiteralTypeNode(q.createStringLiteral(qr))):H.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return oo(At.symbol,ze,788968)}if(At.flags&128)return ze.approximateLength+=At.value.length+2,q.createLiteralTypeNode(Zn(q.createStringLiteral(At.value,!!(ze.flags&268435456)),16777216));if(At.flags&256){const pn=At.value;return ze.approximateLength+=(""+pn).length,q.createLiteralTypeNode(pn<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-pn)):q.createNumericLiteral(pn))}if(At.flags&2048)return ze.approximateLength+=I2(At.value).length+1,q.createLiteralTypeNode(q.createBigIntLiteral(At.value));if(At.flags&512)return ze.approximateLength+=At.intrinsicName.length,q.createLiteralTypeNode(At.intrinsicName==="true"?q.createTrue():q.createFalse());if(At.flags&8192){if(!(ze.flags&1048576)){if(be(At.symbol,ze.enclosingDeclaration))return ze.approximateLength+=6,oo(At.symbol,ze,111551);ze.tracker.reportInaccessibleUniqueSymbolError&&ze.tracker.reportInaccessibleUniqueSymbolError()}return ze.approximateLength+=13,q.createTypeOperatorNode(158,q.createKeywordTypeNode(155))}if(At.flags&16384)return ze.approximateLength+=4,q.createKeywordTypeNode(116);if(At.flags&32768)return ze.approximateLength+=9,q.createKeywordTypeNode(157);if(At.flags&65536)return ze.approximateLength+=4,q.createLiteralTypeNode(q.createNull());if(At.flags&131072)return ze.approximateLength+=5,q.createKeywordTypeNode(146);if(At.flags&4096)return ze.approximateLength+=6,q.createKeywordTypeNode(155);if(At.flags&67108864)return ze.approximateLength+=6,q.createKeywordTypeNode(151);if(NP(At))return ze.flags&4194304&&(!ze.encounteredError&&!(ze.flags&32768)&&(ze.encounteredError=!0),(Fu=(Yn=ze.tracker).reportInaccessibleThisError)==null||Fu.call(Yn)),ze.approximateLength+=4,q.createThisTypeNode();if(!Er&&At.aliasSymbol&&(ze.flags&16384||R(At.aliasSymbol,ze.enclosingDeclaration))){const pn=Z(At.aliasTypeArguments,ze);return EC(At.aliasSymbol.escapedName)&&!(At.aliasSymbol.flags&32)?q.createTypeReferenceNode(q.createIdentifier(""),pn):S(pn)===1&&At.aliasSymbol===Fo.symbol?q.createArrayTypeNode(pn[0]):oo(At.aliasSymbol,ze,788968,pn)}const fr=Gu(At);if(fr&4)return H.assert(!!(At.flags&524288)),At.node?yi(At,mn):mn(At);if(At.flags&262144||fr&3){if(At.flags&262144&&kt(ze.inferTypeParameters,At)){ze.approximateLength+=lc(At.symbol).length+6;let or;const qr=rh(At);if(qr){const La=Idt(At,!0);La&&CD(qr,La)||(ze.approximateLength+=9,or=qr&&C(qr,ze))}return q.createInferTypeNode(ut(At,ze,or))}if(ze.flags&4&&At.flags&262144&&!R(At.symbol,ze.enclosingDeclaration)){const or=fo(At,ze);return ze.approximateLength+=fu(or).length,q.createTypeReferenceNode(q.createIdentifier(fu(or)),void 0)}if(At.symbol)return oo(At.symbol,ze,788968);const pn=(At===$||At===tt)&&Y&&Y.symbol?(At===tt?"sub-":"super-")+lc(Y.symbol):"?";return q.createTypeReferenceNode(q.createIdentifier(pn),void 0)}if(At.flags&1048576&&At.origin&&(At=At.origin),At.flags&3145728){const pn=At.flags&1048576?M5(At.types):At.types;if(S(pn)===1)return C(pn[0],ze);const or=Z(pn,ze,!0);if(or&&or.length>0)return At.flags&1048576?q.createUnionTypeNode(or):q.createIntersectionTypeNode(or);!ze.encounteredError&&!(ze.flags&262144)&&(ze.encounteredError=!0);return}if(fr&48)return H.assert(!!(At.flags&524288)),Gi(At);if(At.flags&4194304){const pn=At.type;ze.approximateLength+=6;const or=C(pn,ze);return q.createTypeOperatorNode(143,or)}if(At.flags&134217728){const pn=At.texts,or=At.types,qr=q.createTemplateHead(pn[0]),La=q.createNodeArray(Vt(or,(cs,pd)=>q.createTemplateLiteralTypeSpan(C(cs,ze),(pdMr(pn));if(At.flags&33554432)return C(At.baseType,ze);return H.fail("Should be unreachable.");function Mr(pn){const or=C(pn.checkType,ze);if(ze.approximateLength+=15,ze.flags&4&&pn.root.isDistributive&&!(pn.checkType.flags&262144)){const bl=j1(Hs(262144,"T")),fl=fo(bl,ze),H1=q.createTypeReferenceNode(fl);ze.approximateLength+=37;const yl=Y9(pn.root.checkType,bl,pn.mapper),Ft=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const $t=C(_a(pn.root.extendsType,yl),ze);ze.inferTypeParameters=Ft;const Mi=Ou(_a(Ar(pn.root.node.trueType),yl)),Bn=Ou(_a(Ar(pn.root.node.falseType),yl));return q.createConditionalTypeNode(or,q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(H1.typeName))),q.createConditionalTypeNode(q.createTypeReferenceNode(q.cloneNode(fl)),C(pn.checkType,ze),q.createConditionalTypeNode(H1,$t,Mi,Bn),q.createKeywordTypeNode(146)),q.createKeywordTypeNode(146))}const qr=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const La=C(pn.extendsType,ze);ze.inferTypeParameters=qr;const cs=Ou(SC(pn)),pd=Ou(BC(pn));return q.createConditionalTypeNode(or,La,cs,pd)}function Ou(pn){var or,qr,La;return pn.flags&1048576?(or=ze.visitedTypes)!=null&&or.has(Fh(pn))?(ze.flags&131072||(ze.encounteredError=!0,(La=(qr=ze.tracker)==null?void 0:qr.reportCyclicStructureError)==null||La.call(qr)),w(ze)):yi(pn,cs=>C(cs,ze)):C(pn,ze)}function xu(pn){return!!Jge(pn)}function Lt(pn){return!!pn.target&&xu(pn.target)&&!xu(pn)}function li(pn){var or;H.assert(!!(pn.flags&524288));const qr=pn.declaration.readonlyToken?q.createToken(pn.declaration.readonlyToken.kind):void 0,La=pn.declaration.questionToken?q.createToken(pn.declaration.questionToken.kind):void 0;let cs,pd;const bl=!tW(pn)&&!(K9(pn).flags&2)&&ze.flags&4&&!(cp(pn).flags&262144&&((or=rh(cp(pn)))==null?void 0:or.flags)&4194304);if(tW(pn)){if(Lt(pn)&&ze.flags&4){const Mi=j1(Hs(262144,"T")),Bn=fo(Mi,ze);pd=q.createTypeReferenceNode(Bn)}cs=q.createTypeOperatorNode(143,pd||C(K9(pn),ze))}else if(bl){const Mi=j1(Hs(262144,"T")),Bn=fo(Mi,ze);pd=q.createTypeReferenceNode(Bn),cs=pd}else cs=C(cp(pn),ze);const fl=ut(Fg(pn),ze,cs),H1=pn.declaration.nameType?C(I5(pn),ze):void 0,yl=C(B6(DD(pn),!!(C_(pn)&4)),ze),Ft=q.createMappedTypeNode(qr,fl,H1,La,yl,void 0);ze.approximateLength+=10;const $t=Zn(Ft,1);if(Lt(pn)&&ze.flags&4){const Mi=_a(rh(Ar(pn.declaration.typeParameter.constraint.type))||on,pn.mapper);return q.createConditionalTypeNode(C(K9(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),Mi.flags&2?void 0:C(Mi,ze))),$t,q.createKeywordTypeNode(146))}else if(bl)return q.createConditionalTypeNode(C(cp(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),q.createTypeOperatorNode(143,C(K9(pn),ze)))),$t,q.createKeywordTypeNode(146));return $t}function Gi(pn){var or,qr;const La=pn.id,cs=pn.symbol;if(cs){const bl=O9(pn)?788968:111551;if(AE(cs.valueDeclaration))return oo(cs,ze,bl);if(cs.flags&32&&!fF(cs)&&!(cs.valueDeclaration&&mr(cs.valueDeclaration)&&ze.flags&2048&&(!Wc(cs.valueDeclaration)||yu(cs,ze.enclosingDeclaration,bl,!1).accessibility!==0))||cs.flags&896||pd())return oo(cs,ze,bl);if((or=ze.visitedTypes)!=null&&or.has(La)){const fl=Uw(pn);return fl?oo(fl,ze,788968):w(ze)}else return yi(pn,Ji)}else{if(!!(Gu(pn)&8388608)){const fl=pn;if(bB(fl.node)){const H1=el(ze,fl.node);if(H1)return H1}return(qr=ze.visitedTypes)!=null&&qr.has(La)?w(ze):yi(pn,Ji)}return Ji(pn)}function pd(){var bl;const fl=!!(cs.flags&8192)&&Oe(cs.declarations,yl=>No(yl)),H1=!!(cs.flags&16)&&(cs.parent||L(cs.declarations,yl=>yl.parent.kind===312||yl.parent.kind===268));if(fl||H1)return(!!(ze.flags&4096)||((bl=ze.visitedTypes)==null?void 0:bl.has(La)))&&(!(ze.flags&8)||be(cs,ze.enclosingDeclaration))}}function yi(pn,or){var qr,La,cs;const pd=pn.id,bl=Gu(pn)&16&&pn.symbol&&pn.symbol.flags&32,fl=Gu(pn)&4&&pn.node?"N"+$s(pn.node):pn.flags&16777216?"N"+$s(pn.root.node):pn.symbol?(bl?"+":"")+Zo(pn.symbol):void 0;ze.visitedTypes||(ze.visitedTypes=new Set),fl&&!ze.symbolDepth&&(ze.symbolDepth=new Map);const H1=ze.enclosingDeclaration&&ar(ze.enclosingDeclaration),yl=`${Fh(pn)}|${ze.flags}`;H1&&(H1.serializedTypes||(H1.serializedTypes=new Map));const Ft=(qr=H1==null?void 0:H1.serializedTypes)==null?void 0:qr.get(yl);if(Ft)return(La=Ft.trackedSymbols)==null||La.forEach(([Br,Qa,Oo])=>ze.tracker.trackSymbol(Br,Qa,Oo)),Ft.truncating&&(ze.truncating=!0),ze.approximateLength+=Ft.addedLength,lu(Ft.node);let $t;if(fl){if($t=ze.symbolDepth.get(fl)||0,$t>10)return w(ze);ze.symbolDepth.set(fl,$t+1)}ze.visitedTypes.add(pd);const Mi=ze.trackedSymbols;ze.trackedSymbols=void 0;const Bn=ze.approximateLength,Du=or(pn),un=ze.approximateLength-Bn;return!ze.reportedDiagnostic&&!ze.encounteredError&&((cs=H1==null?void 0:H1.serializedTypes)==null||cs.set(yl,{node:Du,truncating:ze.truncating,addedLength:un,trackedSymbols:ze.trackedSymbols})),ze.visitedTypes.delete(pd),fl&&ze.symbolDepth.set(fl,$t),ze.trackedSymbols=Mi,Du;function lu(Br){return!sl(Br)&&Ua(Br)===Br?Br:Pt(q.cloneNode(rn(Br,lu,Dg,_r)),Br)}function _r(Br,Qa,Oo,Wo,xr){return Br&&Br.length===0?Pt(q.createNodeArray(void 0,Br.hasTrailingComma),Br):kn(Br,Qa,Oo,Wo,xr)}}function Ji(pn){if(Xm(pn)||pn.containsError)return li(pn);const or=Ag(pn);if(!or.properties.length&&!or.indexInfos.length){if(!or.callSignatures.length&&!or.constructSignatures.length)return ze.approximateLength+=2,Zn(q.createTypeLiteralNode(void 0),1);if(or.callSignatures.length===1&&!or.constructSignatures.length){const bl=or.callSignatures[0];return Te(bl,184,ze)}if(or.constructSignatures.length===1&&!or.callSignatures.length){const bl=or.constructSignatures[0];return Te(bl,185,ze)}}const qr=ti(or.constructSignatures,bl=>!!(bl.flags&4));if(Oe(qr)){const bl=Vt(qr,DF);return or.callSignatures.length+(or.constructSignatures.length-qr.length)+or.indexInfos.length+(ze.flags&2048?ui(or.properties,H1=>!(H1.flags&4194304)):S(or.properties))&&bl.push(xE(or)),C(Ds(bl),ze)}const La=ze.flags;ze.flags|=4194304;const cs=_o(or);ze.flags=La;const pd=q.createTypeLiteralNode(cs);return ze.approximateLength+=2,Zn(pd,ze.flags&1024?0:1),pd}function mn(pn){let or=O0(pn);if(pn.target===Fo||pn.target===To){if(ze.flags&2){const cs=C(or[0],ze);return q.createTypeReferenceNode(pn.target===Fo?"Array":"ReadonlyArray",[cs])}const qr=C(or[0],ze),La=q.createArrayTypeNode(qr);return pn.target===Fo?La:q.createTypeOperatorNode(148,La)}else if(pn.target.objectFlags&8){if(or=Lu(or,(qr,La)=>B6(qr,!!(pn.target.elementFlags[La]&2))),or.length>0){const qr=O5(pn),La=Z(or.slice(0,qr),ze);if(La){const{labeledElementDeclarations:cs}=pn.target;for(let bl=0;bl0){const H1=(pn.target.typeParameters||_t).length;pd=Z(or.slice(La,H1),ze)}const bl=ze.flags;ze.flags|=16;const fl=oo(pn.symbol,ze,788968,pd);return ze.flags=bl,cs?Kr(cs,fl):fl}}}function Kr(pn,or){if(nD(pn)){let qr=pn.typeArguments,La=pn.qualifier;La&&(at(La)?qr!==gk(La)&&(La=l5(q.cloneNode(La),qr)):qr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),qr)))),qr=or.typeArguments;const cs=ku(or);for(const pd of cs)La=La?q.createQualifiedName(La,pd):pd;return q.updateImportTypeNode(pn,pn.argument,pn.attributes,La,qr,pn.isTypeOf)}else{let qr=pn.typeArguments,La=pn.typeName;at(La)?qr!==gk(La)&&(La=l5(q.cloneNode(La),qr)):qr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),qr))),qr=or.typeArguments;const cs=ku(or);for(const pd of cs)La=q.createQualifiedName(La,pd);return q.updateTypeReferenceNode(pn,La,qr)}}function ku(pn){let or=pn.typeName;const qr=[];for(;!at(or);)qr.unshift(or.right),or=or.left;return qr.unshift(or),qr}function _o(pn){if(D(ze))return[q.createPropertySignature(void 0,"...",void 0,void 0)];const or=[];for(const cs of pn.callSignatures)or.push(Te(cs,179,ze));for(const cs of pn.constructSignatures)cs.flags&4||or.push(Te(cs,180,ze));for(const cs of pn.indexInfos)or.push(Fe(cs,ze,pn.objectFlags&1024?w(ze):void 0));const qr=pn.properties;if(!qr)return or;let La=0;for(const cs of qr){if(La++,ze.flags&2048){if(cs.flags&4194304)continue;l4(cs)&6&&ze.tracker.reportPrivateInBaseOfClassExpression&&ze.tracker.reportPrivateInBaseOfClassExpression(Qr(cs.escapedName))}if(D(ze)&&La+2!(mn.flags&32768)),0);for(const mn of Ji){const Kr=Te(mn,173,ze,{name:Ou,questionToken:xu});Yn.push(yi(Kr))}if(Ji.length||!xu)return}let Lt;I(At,ze)?Lt=w(ze):(Er&&(ze.reverseMappedStack||(ze.reverseMappedStack=[]),ze.reverseMappedStack.push(At)),Lt=fr?ad(ze,fr,At,Mr):q.createKeywordTypeNode(133),Er&&ze.reverseMappedStack.pop());const li=Ng(At)?[q.createToken(148)]:void 0;li&&(ze.approximateLength+=9);const Gi=q.createPropertySignature(li,Ou,xu,Lt);Yn.push(yi(Gi));function yi(Ji){var mn;const Kr=(mn=At.declarations)==null?void 0:mn.find(ku=>ku.kind===355);if(Kr){const ku=KO(Kr.comment);ku&&Nv(Ji,[{kind:3,text:`* - * `+ku.replace(/\n/g,` + })(name => super[name], (name, value) => super[name] = value);`}}});function Of(t){return t.kind===9}function uY(t){return t.kind===10}function rs(t){return t.kind===11}function w7(t){return t.kind===12}function gce(t){return t.kind===14}function T7(t){return t.kind===15}function vB(t){return t.kind===16}function tFe(t){return t.kind===17}function Ece(t){return t.kind===18}function rY(t){return t.kind===26}function iFe(t){return t.kind===28}function _ce(t){return t.kind===40}function Dce(t){return t.kind===41}function kV(t){return t.kind===42}function FV(t){return t.kind===54}function Wx(t){return t.kind===58}function nFe(t){return t.kind===59}function aY(t){return t.kind===29}function uFe(t){return t.kind===39}function at(t){return t.kind===80}function ea(t){return t.kind===81}function L7(t){return t.kind===95}function oY(t){return t.kind===90}function HP(t){return t.kind===134}function rFe(t){return t.kind===131}function xce(t){return t.kind===135}function aFe(t){return t.kind===148}function N7(t){return t.kind===126}function oFe(t){return t.kind===128}function sFe(t){return t.kind===164}function lFe(t){return t.kind===129}function KP(t){return t.kind===108}function WP(t){return t.kind===102}function cFe(t){return t.kind===84}function vf(t){return t.kind===166}function Ms(t){return t.kind===167}function wl(t){return t.kind===168}function io(t){return t.kind===169}function E1(t){return t.kind===170}function zm(t){return t.kind===171}function ko(t){return t.kind===172}function u3(t){return t.kind===173}function hc(t){return t.kind===174}function zl(t){return t.kind===175}function fc(t){return t.kind===176}function Im(t){return t.kind===177}function jf(t){return t.kind===178}function CB(t){return t.kind===179}function AV(t){return t.kind===180}function Ek(t){return t.kind===181}function sY(t){return t.kind===182}function tp(t){return t.kind===183}function r3(t){return t.kind===184}function GP(t){return t.kind===185}function bB(t){return t.kind===186}function fm(t){return t.kind===187}function lY(t){return t.kind===188}function yB(t){return t.kind===189}function JP(t){return t.kind===202}function vce(t){return t.kind===190}function Cce(t){return t.kind===191}function Mv(t){return t.kind===192}function kB(t){return t.kind===193}function FB(t){return t.kind===194}function P7(t){return t.kind===195}function M7(t){return t.kind===196}function cY(t){return t.kind===197}function z7(t){return t.kind===198}function I7(t){return t.kind===199}function $P(t){return t.kind===200}function zv(t){return t.kind===201}function nD(t){return t.kind===205}function dFe(t){return t.kind===204}function ZYe(t){return t.kind===203}function Op(t){return t.kind===206}function _k(t){return t.kind===207}function Vs(t){return t.kind===208}function vh(t){return t.kind===209}function ys(t){return t.kind===210}function Ru(t){return t.kind===211}function q0(t){return t.kind===212}function Mo(t){return t.kind===213}function V2(t){return t.kind===214}function Dk(t){return t.kind===215}function hFe(t){return t.kind===216}function Cf(t){return t.kind===217}function w0(t){return t.kind===218}function Z0(t){return t.kind===219}function fFe(t){return t.kind===220}function AB(t){return t.kind===221}function R7(t){return t.kind===222}function Gx(t){return t.kind===223}function Iv(t){return t.kind===224}function bce(t){return t.kind===225}function eu(t){return t.kind===226}function SB(t){return t.kind===227}function dY(t){return t.kind===228}function hY(t){return t.kind===229}function rE(t){return t.kind===230}function e1(t){return t.kind===231}function Fd(t){return t.kind===232}function c5(t){return t.kind===233}function SV(t){return t.kind===234}function mFe(t){return t.kind===238}function O7(t){return t.kind===235}function UP(t){return t.kind===236}function YYe(t){return t.kind===237}function fY(t){return t.kind===360}function qP(t){return t.kind===361}function ZP(t){return t.kind===239}function pFe(t){return t.kind===240}function go(t){return t.kind===241}function Jl(t){return t.kind===243}function yce(t){return t.kind===242}function Od(t){return t.kind===244}function xk(t){return t.kind===245}function QYe(t){return t.kind===246}function XYe(t){return t.kind===247}function vk(t){return t.kind===248}function mY(t){return t.kind===249}function BV(t){return t.kind===250}function eQe(t){return t.kind===251}function tQe(t){return t.kind===252}function jp(t){return t.kind===253}function gFe(t){return t.kind===254}function wV(t){return t.kind===255}function H2(t){return t.kind===256}function kce(t){return t.kind===257}function Ck(t){return t.kind===258}function iQe(t){return t.kind===259}function ra(t){return t.kind===260}function Ad(t){return t.kind===261}function td(t){return t.kind===262}function Jc(t){return t.kind===263}function Ch(t){return t.kind===264}function Vp(t){return t.kind===265}function Rv(t){return t.kind===266}function xc(t){return t.kind===267}function aE(t){return t.kind===268}function YP(t){return t.kind===269}function TV(t){return t.kind===270}function _1(t){return t.kind===271}function Sd(t){return t.kind===272}function u_(t){return t.kind===273}function nQe(t){return t.kind===302}function EFe(t){return t.kind===300}function uQe(t){return t.kind===301}function pY(t){return t.kind===300}function _Fe(t){return t.kind===301}function Jx(t){return t.kind===274}function r_(t){return t.kind===280}function uD(t){return t.kind===275}function bf(t){return t.kind===276}function ic(t){return t.kind===277}function $c(t){return t.kind===278}function ip(t){return t.kind===279}function th(t){return t.kind===281}function rQe(t){return t.kind===282}function Fce(t){return t.kind===359}function j7(t){return t.kind===362}function a_(t){return t.kind===283}function a3(t){return t.kind===284}function bk(t){return t.kind===285}function oE(t){return t.kind===286}function K2(t){return t.kind===287}function W2(t){return t.kind===288}function V7(t){return t.kind===289}function DFe(t){return t.kind===290}function sE(t){return t.kind===291}function G2(t){return t.kind===292}function H7(t){return t.kind===293}function QP(t){return t.kind===294}function gg(t){return t.kind===295}function BB(t){return t.kind===296}function LV(t){return t.kind===297}function mm(t){return t.kind===298}function J2(t){return t.kind===299}function Uc(t){return t.kind===303}function pm(t){return t.kind===304}function d5(t){return t.kind===305}function $2(t){return t.kind===306}function xFe(t){return t.kind===308}function ca(t){return t.kind===312}function Ace(t){return t.kind===313}function yk(t){return t.kind===314}function kk(t){return t.kind===316}function XP(t){return t.kind===317}function Ov(t){return t.kind===318}function vFe(t){return t.kind===331}function CFe(t){return t.kind===332}function aQe(t){return t.kind===333}function bFe(t){return t.kind===319}function yFe(t){return t.kind===320}function wB(t){return t.kind===321}function gY(t){return t.kind===322}function Sce(t){return t.kind===323}function TB(t){return t.kind===324}function EY(t){return t.kind===325}function oQe(t){return t.kind===326}function Hp(t){return t.kind===327}function K7(t){return t.kind===329}function jv(t){return t.kind===330}function LB(t){return t.kind===335}function sQe(t){return t.kind===337}function kFe(t){return t.kind===339}function Bce(t){return t.kind===345}function wce(t){return t.kind===340}function Tce(t){return t.kind===341}function Lce(t){return t.kind===342}function Nce(t){return t.kind===343}function _Y(t){return t.kind===344}function NB(t){return t.kind===346}function Pce(t){return t.kind===338}function lQe(t){return t.kind===354}function NV(t){return t.kind===347}function Eg(t){return t.kind===348}function DY(t){return t.kind===349}function FFe(t){return t.kind===350}function eM(t){return t.kind===351}function _g(t){return t.kind===352}function PB(t){return t.kind===353}function cQe(t){return t.kind===334}function AFe(t){return t.kind===355}function Mce(t){return t.kind===336}function xY(t){return t.kind===357}function dQe(t){return t.kind===356}function MB(t){return t.kind===358}var RLt=o({"src/compiler/factory/nodeTests.ts"(){Bo()}});function PV(t){return t.createExportDeclaration(void 0,!1,t.createNamedExports([]),void 0)}function Fk(t,u,s,d){if(Ms(s))return Pt(t.createElementAccessExpression(u,s.expression),d);{const f=Pt($_(s)?t.createPropertyAccessExpression(u,s):t.createElementAccessExpression(u,s),s);return n_(f,128),f}}function SFe(t,u){const s=o_.createIdentifier(t||"React");return ks(s,Za(u)),s}function BFe(t,u,s){if(vf(u)){const d=BFe(t,u.left,s),f=t.createIdentifier(fu(u.right));return f.escapedText=u.right.escapedText,t.createPropertyAccessExpression(d,f)}else return SFe(fu(u),s)}function zce(t,u,s,d){return u?BFe(t,u,d):t.createPropertyAccessExpression(SFe(s,d),"createElement")}function OLt(t,u,s,d){return u?BFe(t,u,d):t.createPropertyAccessExpression(SFe(s,d),"Fragment")}function wFe(t,u,s,d,f,p){const E=[s];if(d&&E.push(d),f&&f.length>0)if(d||E.push(t.createNull()),f.length>1)for(const v of f)bh(v),E.push(v);else E.push(f[0]);return Pt(t.createCallExpression(u,void 0,E),p)}function TFe(t,u,s,d,f,p,E){const b=[OLt(t,s,d,p),t.createNull()];if(f&&f.length>0)if(f.length>1)for(const B of f)bh(B),b.push(B);else b.push(f[0]);return Pt(t.createCallExpression(zce(t,u,d,p),void 0,b),E)}function Ice(t,u,s){if(Ad(u)){const d=Pn(u.declarations),f=t.updateVariableDeclaration(d,d.name,void 0,void 0,s);return Pt(t.createVariableStatement(void 0,t.updateVariableDeclarationList(u,[f])),u)}else{const d=Pt(t.createAssignment(u,s),u);return Pt(t.createExpressionStatement(d),u)}}function hQe(t,u,s){return go(u)?t.updateBlock(u,Pt(t.createNodeArray([s,...u.statements]),u.statements)):t.createBlock(t.createNodeArray([u,s]),!0)}function MV(t,u){if(vf(u)){const s=MV(t,u.left),d=ks(Pt(t.cloneNode(u.right),u.right),u.right.parent);return Pt(t.createPropertyAccessExpression(s,d),u)}else return ks(Pt(t.cloneNode(u),u),u.parent)}function Rce(t,u){return at(u)?t.createStringLiteralFromNode(u):Ms(u)?ks(Pt(t.cloneNode(u.expression),u.expression),u.expression.parent):ks(Pt(t.cloneNode(u),u),u.parent)}function jLt(t,u,s,d,f){const{firstAccessor:p,getAccessor:E,setAccessor:v}=dk(u,s);if(s===p)return Pt(t.createObjectDefinePropertyCall(d,Rce(t,s.name),t.createPropertyDescriptor({enumerable:t.createFalse(),configurable:!0,get:E&&Pt(su(t.createFunctionExpression(g2(E),void 0,void 0,void 0,E.parameters,void 0,E.body),E),E),set:v&&Pt(su(t.createFunctionExpression(g2(v),void 0,void 0,void 0,v.parameters,void 0,v.body),v),v)},!f)),p)}function VLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),u.initializer),u),u)}function HLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),t.cloneNode(u.name)),u),u)}function KLt(t,u,s){return su(Pt(t.createAssignment(Fk(t,s,u.name,u.name),su(Pt(t.createFunctionExpression(g2(u),u.asteriskToken,void 0,void 0,u.parameters,void 0,u.body),u),u)),u),u)}function LFe(t,u,s,d){switch(s.name&&ea(s.name)&&H.failBadSyntaxKind(s.name,"Private identifiers are not allowed in object literals."),s.kind){case 177:case 178:return jLt(t,u.properties,s,d,!!u.multiLine);case 303:return VLt(t,s,d);case 304:return HLt(t,s,d);case 174:return KLt(t,s,d)}}function vY(t,u,s,d,f){const p=u.operator;H.assert(p===46||p===47,"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression");const E=t.createTempVariable(d);s=t.createAssignment(E,s),Pt(s,u.operand);let v=Iv(u)?t.createPrefixUnaryExpression(p,E):t.createPostfixUnaryExpression(E,p);return Pt(v,u),f&&(v=t.createAssignment(f,v),Pt(v,u)),s=t.createComma(s,v),Pt(s,u),bce(u)&&(s=t.createComma(s,E),Pt(s,u)),s}function Oce(t){return(bs(t)&65536)!==0}function rD(t){return(bs(t)&32768)!==0}function CY(t){return(bs(t)&16384)!==0}function fQe(t){return rs(t.expression)&&t.expression.text==="use strict"}function jce(t){for(const u of t)if(zp(u)){if(fQe(u))return u}else break}function NFe(t){const u=Ki(t);return u!==void 0&&zp(u)&&fQe(u)}function zV(t){return t.kind===226&&t.operatorToken.kind===28}function tM(t){return zV(t)||qP(t)}function iM(t){return Cf(t)&&Xn(t)&&!!vv(t)}function bY(t){const u=Cv(t);return H.assertIsDefined(u),u}function yY(t,u=15){switch(t.kind){case 217:return u&16&&iM(t)?!1:(u&1)!==0;case 216:case 234:case 233:case 238:return(u&2)!==0;case 235:return(u&4)!==0;case 360:return(u&8)!==0}return!1}function vc(t,u=15){for(;yY(t,u);)t=t.expression;return t}function PFe(t,u=15){let s=t.parent;for(;yY(s,u);)s=s.parent,H.assert(s);return s}function mQe(t){return vc(t,6)}function bh(t){return SZ(t,!0)}function IV(t){const u=Wl(t,ca),s=u&&u.emitNode;return s&&s.externalHelpersModuleName}function MFe(t){const u=Wl(t,ca),s=u&&u.emitNode;return!!s&&(!!s.externalHelpersModuleName||!!s.externalHelpers)}function Vce(t,u,s,d,f,p,E){if(d.importHelpers&&s7(s,d)){let v;const b=p1(d);if(b>=5&&b<=99||s.impliedNodeFormat===99){const B=wZ(s);if(B){const k=[];for(const T of B)if(!T.scoped){const M=T.importName;M&&Ca(k,M)}if(Ge(k)){k.sort(fh),v=t.createNamedImports(Vt(k,z=>eq(s,z)?t.createImportSpecifier(!1,void 0,t.createIdentifier(z)):t.createImportSpecifier(!1,t.createIdentifier(z),u.getUnscopedHelperName(z))));const T=Wl(s,ca),M=M1(T);M.externalHelpers=!0}}}else{const B=zFe(t,s,d,f,p||E);B&&(v=t.createNamespaceImport(B))}if(v){const B=t.createImportDeclaration(void 0,t.createImportClause(!1,void 0,v),t.createStringLiteral(Hx),void 0);return F7(B,2),B}}}function zFe(t,u,s,d,f){if(s.importHelpers&&s7(u,s)){const p=IV(u);if(p)return p;const E=p1(s);let v=(d||t_(s)&&f)&&E!==4&&(E<5||u.impliedNodeFormat===1);if(!v){const b=wZ(u);if(b){for(const B of b)if(!B.scoped){v=!0;break}}}if(v){const b=Wl(u,ca),B=M1(b);return B.externalHelpersModuleName||(B.externalHelpersModuleName=t.createUniqueName(Hx))}}}function zB(t,u,s){const d=Q8(u);if(d&&!c7(u)&&!iq(u)){const f=d.name;return sl(f)?f:t.createIdentifier(v2(s,f)||fu(f))}if(u.kind===272&&u.importClause||u.kind===278&&u.moduleSpecifier)return t.getGeneratedNameForNode(u)}function W7(t,u,s,d,f,p){const E=Y8(u);if(E&&rs(E))return GLt(u,d,t,f,p)||WLt(t,E,s)||t.cloneNode(E)}function WLt(t,u,s){const d=s.renamedDependencies&&s.renamedDependencies.get(u.text);return d?t.createStringLiteral(d):void 0}function RV(t,u,s,d){if(u){if(u.moduleName)return t.createStringLiteral(u.moduleName);if(!u.isDeclarationFile&&F0(d))return t.createStringLiteral(nle(s,u.fileName))}}function GLt(t,u,s,d,f){return RV(s,d.getExternalModuleFileFromDeclaration(t),u,f)}function OV(t){if(UO(t))return t.initializer;if(Uc(t)){const u=t.initializer;return ld(u,!0)?u.right:void 0}if(pm(t))return t.objectAssignmentInitializer;if(ld(t,!0))return t.right;if(rE(t))return OV(t.expression)}function $x(t){if(UO(t))return t.name;if(Z3(t)){switch(t.kind){case 303:return $x(t.initializer);case 304:return t.name;case 305:return $x(t.expression)}return}return ld(t,!0)?$x(t.left):rE(t)?$x(t.expression):t}function kY(t){switch(t.kind){case 169:case 208:return t.dotDotDotToken;case 230:case 305:return t}}function Hce(t){const u=FY(t);return H.assert(!!u||d5(t),"Invalid property name for binding element."),u}function FY(t){switch(t.kind){case 208:if(t.propertyName){const s=t.propertyName;return ea(s)?H.failBadSyntaxKind(s):Ms(s)&&pQe(s.expression)?s.expression:s}break;case 303:if(t.name){const s=t.name;return ea(s)?H.failBadSyntaxKind(s):Ms(s)&&pQe(s.expression)?s.expression:s}break;case 305:return t.name&&ea(t.name)?H.failBadSyntaxKind(t.name):t.name}const u=$x(t);if(u&&wc(u))return u}function pQe(t){const u=t.kind;return u===11||u===9}function IB(t){switch(t.kind){case 206:case 207:case 209:return t.elements;case 210:return t.properties}}function Kce(t){if(t){let u=t;for(;;){if(at(u)||!u.body)return at(u)?u:u.name;u=u.body}}}function gQe(t){const u=t.kind;return u===176||u===178}function IFe(t){const u=t.kind;return u===176||u===177||u===178}function Wce(t){const u=t.kind;return u===303||u===304||u===262||u===176||u===181||u===175||u===282||u===243||u===264||u===265||u===266||u===267||u===271||u===272||u===270||u===278||u===277}function RFe(t){const u=t.kind;return u===175||u===303||u===304||u===282||u===270}function OFe(t){return Wx(t)||FV(t)}function jFe(t){return at(t)||cY(t)}function VFe(t){return aFe(t)||_ce(t)||Dce(t)}function HFe(t){return Wx(t)||_ce(t)||Dce(t)}function KFe(t){return at(t)||rs(t)}function EQe(t){const u=t.kind;return u===106||u===112||u===97||_2(t)||Iv(t)}function JLt(t){return t===43}function $Lt(t){return t===42||t===44||t===45}function ULt(t){return JLt(t)||$Lt(t)}function qLt(t){return t===40||t===41}function ZLt(t){return qLt(t)||ULt(t)}function YLt(t){return t===48||t===49||t===50}function Gce(t){return YLt(t)||ZLt(t)}function QLt(t){return t===30||t===33||t===32||t===34||t===104||t===103}function XLt(t){return QLt(t)||Gce(t)}function eNt(t){return t===35||t===37||t===36||t===38}function tNt(t){return eNt(t)||XLt(t)}function iNt(t){return t===51||t===52||t===53}function nNt(t){return iNt(t)||tNt(t)}function uNt(t){return t===56||t===57}function rNt(t){return uNt(t)||nNt(t)}function aNt(t){return t===61||rNt(t)||u5(t)}function oNt(t){return aNt(t)||t===28}function WFe(t){return oNt(t.kind)}function AY(t,u,s,d,f,p){const E=new xQe(t,u,s,d,f,p);return v;function v(b,B){const k={value:void 0},T=[$ce.enter],M=[b],z=[void 0];let j=0;for(;T[j]!==$ce.done;)j=T[j](E,j,T,M,z,k,B);return H.assertEqual(j,0),k.value}}function _Qe(t){return t===95||t===90}function jV(t){const u=t.kind;return _Qe(u)}function DQe(t){const u=t.kind;return XD(u)&&!_Qe(u)}function GFe(t,u){if(u!==void 0)return u.length===0?u:Pt(t.createNodeArray([],u.hasTrailingComma),u)}function VV(t){var u;const s=t.emitNode.autoGenerate;if(s.flags&4){const d=s.id;let f=t,p=f.original;for(;p;){f=p;const E=(u=f.emitNode)==null?void 0:u.autoGenerate;if($_(f)&&(E===void 0||E.flags&4&&E.id!==d))break;p=f.original}return f}return t}function RB(t,u){return typeof t=="object"?Vv(!1,t.prefix,t.node,t.suffix,u):typeof t=="string"?t.length>0&&t.charCodeAt(0)===35?t.slice(1):t:""}function sNt(t,u){return typeof t=="string"?t:lNt(t,H.checkDefined(u))}function lNt(t,u){return Uy(t)?u(t).slice(1):sl(t)?u(t):ea(t)?t.escapedText.slice(1):fu(t)}function Vv(t,u,s,d,f){return u=RB(u,f),d=RB(d,f),s=sNt(s,f),`${t?"#":""}${u}${s}${d}`}function Jce(t,u,s,d){return t.updatePropertyDeclaration(u,s,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage"),void 0,void 0,d)}function JFe(t,u,s,d,f=t.createThis()){return t.createGetAccessorDeclaration(s,d,[],void 0,t.createBlock([t.createReturnStatement(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")))]))}function $Fe(t,u,s,d,f=t.createThis()){return t.createSetAccessorDeclaration(s,d,[t.createParameterDeclaration(void 0,void 0,"value")],t.createBlock([t.createExpressionStatement(t.createAssignment(t.createPropertyAccessExpression(f,t.getGeneratedPrivateNameForNode(u.name,void 0,"_accessor_storage")),t.createIdentifier("value")))]))}function SY(t){let u=t.expression;for(;;){if(u=vc(u),qP(u)){u=yr(u.elements);continue}if(zV(u)){u=u.right;continue}if(ld(u,!0)&&sl(u.left))return u;break}}function cNt(t){return Cf(t)&&cl(t)&&!t.emitNode}function BY(t,u){if(cNt(t))BY(t.expression,u);else if(zV(t))BY(t.left,u),BY(t.right,u);else if(qP(t))for(const s of t.elements)BY(s,u);else u.push(t)}function UFe(t){const u=[];return BY(t,u),u}function HV(t){if(t.transformFlags&65536)return!0;if(t.transformFlags&128)for(const u of IB(t)){const s=$x(u);if(s&&WN(s)&&(s.transformFlags&65536||s.transformFlags&128&&HV(s)))return!0}return!1}var $ce,xQe,dNt=o({"src/compiler/factory/utilities.ts"(){Bo(),(t=>{function u(k,T,M,z,j,J,K){const Y=T>0?j[T-1]:void 0;return H.assertEqual(M[T],u),j[T]=k.onEnter(z[T],Y,K),M[T]=v(k,u),T}t.enter=u;function s(k,T,M,z,j,J,K){H.assertEqual(M[T],s),H.assertIsDefined(k.onLeft),M[T]=v(k,s);const Y=k.onLeft(z[T].left,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.left=s;function d(k,T,M,z,j,J,K){return H.assertEqual(M[T],d),H.assertIsDefined(k.onOperator),M[T]=v(k,d),k.onOperator(z[T].operatorToken,j[T],z[T]),T}t.operator=d;function f(k,T,M,z,j,J,K){H.assertEqual(M[T],f),H.assertIsDefined(k.onRight),M[T]=v(k,f);const Y=k.onRight(z[T].right,j[T],z[T]);return Y?(B(T,z,Y),b(T,M,z,j,Y)):T}t.right=f;function p(k,T,M,z,j,J,K){H.assertEqual(M[T],p),M[T]=v(k,p);const Y=k.onExit(z[T],j[T]);if(T>0){if(T--,k.foldState){const oe=M[T]===p?"right":"left";j[T]=k.foldState(j[T],Y,oe)}}else J.value=Y;return T}t.exit=p;function E(k,T,M,z,j,J,K){return H.assertEqual(M[T],E),T}t.done=E;function v(k,T){switch(T){case u:if(k.onLeft)return s;case s:if(k.onOperator)return d;case d:if(k.onRight)return f;case f:return p;case p:return E;case E:return E;default:H.fail("Invalid state")}}t.nextState=v;function b(k,T,M,z,j){return k++,T[k]=u,M[k]=j,z[k]=void 0,k}function B(k,T,M){if(H.shouldAssert(2))for(;k>=0;)H.assert(T[k]!==M,"Circular traversal detected."),k--}})($ce||($ce={})),xQe=class{constructor(t,u,s,d,f,p){this.onEnter=t,this.onLeft=u,this.onOperator=s,this.onRight=d,this.onExit=f,this.foldState=p}}}});function Pt(t,u){return u?i_(t,u.pos,u.end):t}function Kp(t){const u=t.kind;return u===168||u===169||u===171||u===172||u===173||u===174||u===176||u===177||u===178||u===181||u===185||u===218||u===219||u===231||u===243||u===262||u===263||u===264||u===265||u===266||u===267||u===271||u===272||u===277||u===278}function Ak(t){const u=t.kind;return u===169||u===172||u===174||u===177||u===178||u===231||u===263}var hNt=o({"src/compiler/factory/utilitiesPublic.ts"(){Bo()}});function Bi(t,u){return u&&t(u)}function Jr(t,u,s){if(s){if(u)return u(s);for(const d of s){const f=t(d);if(f)return f}}}function Uce(t,u){return t.charCodeAt(u+1)===42&&t.charCodeAt(u+2)===42&&t.charCodeAt(u+3)!==47}function KV(t){return L(t.statements,fNt)||mNt(t)}function fNt(t){return Kp(t)&&pNt(t,95)||_1(t)&&a_(t.moduleReference)||Sd(t)||ic(t)||$c(t)?t:void 0}function mNt(t){return t.flags&8388608?vQe(t):void 0}function vQe(t){return gNt(t)?t:ao(t,vQe)}function pNt(t,u){return Ge(t.modifiers,s=>s.kind===u)}function gNt(t){return UP(t)&&t.keywordToken===102&&t.name.escapedText==="meta"}function CQe(t,u,s){return Jr(u,s,t.typeParameters)||Jr(u,s,t.parameters)||Bi(u,t.type)}function bQe(t,u,s){return Jr(u,s,t.types)}function yQe(t,u,s){return Bi(u,t.type)}function kQe(t,u,s){return Jr(u,s,t.elements)}function FQe(t,u,s){return Bi(u,t.expression)||Bi(u,t.questionDotToken)||Jr(u,s,t.typeArguments)||Jr(u,s,t.arguments)}function AQe(t,u,s){return Jr(u,s,t.statements)}function SQe(t,u,s){return Bi(u,t.label)}function BQe(t,u,s){return Jr(u,s,t.modifiers)||Bi(u,t.name)||Jr(u,s,t.typeParameters)||Jr(u,s,t.heritageClauses)||Jr(u,s,t.members)}function wQe(t,u,s){return Jr(u,s,t.elements)}function TQe(t,u,s){return Bi(u,t.propertyName)||Bi(u,t.name)}function LQe(t,u,s){return Bi(u,t.tagName)||Jr(u,s,t.typeArguments)||Bi(u,t.attributes)}function nM(t,u,s){return Bi(u,t.type)}function NQe(t,u,s){return Bi(u,t.tagName)||(t.isNameFirst?Bi(u,t.name)||Bi(u,t.typeExpression):Bi(u,t.typeExpression)||Bi(u,t.name))||(typeof t.comment=="string"?void 0:Jr(u,s,t.comment))}function uM(t,u,s){return Bi(u,t.tagName)||Bi(u,t.typeExpression)||(typeof t.comment=="string"?void 0:Jr(u,s,t.comment))}function qFe(t,u,s){return Bi(u,t.name)}function OB(t,u,s){return Bi(u,t.tagName)||(typeof t.comment=="string"?void 0:Jr(u,s,t.comment))}function ENt(t,u,s){return Bi(u,t.expression)}function ao(t,u,s){if(t===void 0||t.kind<=165)return;const d=KQe[t.kind];return d===void 0?void 0:d(t,u,s)}function rM(t,u,s){const d=PQe(t),f=[];for(;f.length=0;--v)d.push(p[v]),f.push(E)}else{const v=u(p,E);if(v){if(v==="skip")continue;return v}if(p.kind>=166)for(const b of PQe(p))d.push(b),f.push(p)}}}function PQe(t){const u=[];return ao(t,s,s),u;function s(d){u.unshift(d)}}function MQe(t){t.externalModuleIndicator=KV(t)}function WV(t,u,s,d=!1,f){var p,E,v,b;(p=Gn)==null||p.push(Gn.Phase.Parse,"createSourceFile",{path:t},!0),al("beforeParse");let B;(E=mh)==null||E.logStartParseSourceFile(t);const{languageVersion:k,setExternalModuleIndicator:T,impliedNodeFormat:M,jsDocParsingMode:z}=typeof s=="object"?s:{languageVersion:s};if(k===100)B=Kv.parseSourceFile(t,u,k,void 0,d,6,Rs,z);else{const j=M===void 0?T:J=>(J.impliedNodeFormat=M,(T||MQe)(J));B=Kv.parseSourceFile(t,u,k,void 0,d,f,j,z)}return(v=mh)==null||v.logStopParseSourceFile(),al("afterParse"),Lm("Parse","beforeParse","afterParse"),(b=Gn)==null||b.pop(),B}function G7(t,u){return Kv.parseIsolatedEntityName(t,u)}function GV(t,u){return Kv.parseJsonText(t,u)}function Lc(t){return t.externalModuleIndicator!==void 0}function qce(t,u,s,d=!1){const f=Xce.updateSourceFile(t,u,s,d);return f.flags|=t.flags&12582912,f}function ZFe(t,u,s){const d=Kv.JSDocParser.parseIsolatedJSDocComment(t,u,s);return d&&d.jsDoc&&Kv.fixupParentReferences(d.jsDoc),d}function zQe(t,u,s){return Kv.JSDocParser.parseJSDocTypeExpressionForTests(t,u,s)}function t1(t){return Hc(t,hV)||Ml(t,".ts")&&Bc(t).includes(".d.")}function _Nt(t,u,s,d){if(t){if(t==="import")return 99;if(t==="require")return 1;d(u,s-u,F.resolution_mode_should_be_either_require_or_import)}}function Zce(t,u){const s=[];for(const d of G_(u,0)||Dt){const f=u.substring(d.pos,d.end);xNt(s,d,f)}t.pragmas=new Map;for(const d of s){if(t.pragmas.has(d.name)){const f=t.pragmas.get(d.name);f instanceof Array?f.push(d.args):t.pragmas.set(d.name,[f,d.args]);continue}t.pragmas.set(d.name,d.args)}}function Yce(t,u){t.checkJsDirective=void 0,t.referencedFiles=[],t.typeReferenceDirectives=[],t.libReferenceDirectives=[],t.amdDependencies=[],t.hasNoDefaultLib=!1,t.pragmas.forEach((s,d)=>{switch(d){case"reference":{const f=t.referencedFiles,p=t.typeReferenceDirectives,E=t.libReferenceDirectives;L(YA(s),v=>{const{types:b,lib:B,path:k,["resolution-mode"]:T}=v.arguments;if(v.arguments["no-default-lib"])t.hasNoDefaultLib=!0;else if(b){const M=_Nt(T,b.pos,b.end,u);p.push({pos:b.pos,end:b.end,fileName:b.value,...M?{resolutionMode:M}:{}})}else B?E.push({pos:B.pos,end:B.end,fileName:B.value}):k?f.push({pos:k.pos,end:k.end,fileName:k.value}):u(v.range.pos,v.range.end-v.range.pos,F.Invalid_reference_directive_syntax)});break}case"amd-dependency":{t.amdDependencies=Vt(YA(s),f=>({name:f.arguments.name,path:f.arguments.path}));break}case"amd-module":{if(s instanceof Array)for(const f of s)t.moduleName&&u(f.range.pos,f.range.end-f.range.pos,F.An_AMD_module_cannot_have_multiple_name_assignments),t.moduleName=f.arguments.name;else t.moduleName=s.arguments.name;break}case"ts-nocheck":case"ts-check":{L(YA(s),f=>{(!t.checkJsDirective||f.range.pos>t.checkJsDirective.pos)&&(t.checkJsDirective={enabled:d==="ts-check",end:f.range.end,pos:f.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:H.fail("Unhandled pragma kind")}})}function DNt(t){if(ede.has(t))return ede.get(t);const u=new RegExp(`(\\s${t}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return ede.set(t,u),u}function xNt(t,u,s){const d=u.kind===2&&WQe.exec(s);if(d){const p=d[1].toLowerCase(),E=bO[p];if(!E||!(E.kind&1))return;if(E.args){const v={};for(const b of E.args){const k=DNt(b.name).exec(s);if(!k&&!b.optional)return;if(k){const T=k[2]||k[3];if(b.captureSpan){const M=u.pos+k.index+k[1].length+1;v[b.name]={value:T,pos:M,end:M+T.length}}else v[b.name]=T}}t.push({name:p,args:{arguments:v,range:u}})}else t.push({name:p,args:{arguments:{},range:u}});return}const f=u.kind===2&&GQe.exec(s);if(f)return IQe(t,u,2,f);if(u.kind===3){const p=/@(\S+)(\s+.*)?$/gim;let E;for(;E=p.exec(s);)IQe(t,u,4,E)}}function IQe(t,u,s,d){if(!d)return;const f=d[1].toLowerCase(),p=bO[f];if(!p||!(p.kind&s))return;const E=d[2],v=vNt(p,E);v!=="fail"&&t.push({name:f,args:{arguments:v,range:u}})}function vNt(t,u){if(!u)return{};if(!t.args)return{};const s=u.trim().split(/\s+/),d={};for(let f=0;fnew(HQe||(HQe=Xd.getSourceFileConstructor()))(t,-1,-1),createBaseIdentifierNode:t=>new(jQe||(jQe=Xd.getIdentifierConstructor()))(t,-1,-1),createBasePrivateIdentifierNode:t=>new(VQe||(VQe=Xd.getPrivateIdentifierConstructor()))(t,-1,-1),createBaseTokenNode:t=>new(OQe||(OQe=Xd.getTokenConstructor()))(t,-1,-1),createBaseNode:t=>new(RQe||(RQe=Xd.getNodeConstructor()))(t,-1,-1)},o_=pV(1,Qce),KQe={166:function(u,s,d){return Bi(s,u.left)||Bi(s,u.right)},168:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.constraint)||Bi(s,u.default)||Bi(s,u.expression)},304:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.equalsToken)||Bi(s,u.objectAssignmentInitializer)},305:function(u,s,d){return Bi(s,u.expression)},169:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.dotDotDotToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)||Bi(s,u.initializer)},172:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.type)||Bi(s,u.initializer)},171:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)||Bi(s,u.initializer)},303:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Bi(s,u.initializer)},260:function(u,s,d){return Bi(s,u.name)||Bi(s,u.exclamationToken)||Bi(s,u.type)||Bi(s,u.initializer)},208:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.propertyName)||Bi(s,u.name)||Bi(s,u.initializer)},181:function(u,s,d){return Jr(s,d,u.modifiers)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)},185:function(u,s,d){return Jr(s,d,u.modifiers)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)},184:function(u,s,d){return Jr(s,d,u.modifiers)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)},179:CQe,180:CQe,174:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.exclamationToken)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},173:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.questionToken)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)},176:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},177:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},178:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},262:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},218:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.asteriskToken)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.body)},219:function(u,s,d){return Jr(s,d,u.modifiers)||Jr(s,d,u.typeParameters)||Jr(s,d,u.parameters)||Bi(s,u.type)||Bi(s,u.equalsGreaterThanToken)||Bi(s,u.body)},175:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.body)},183:function(u,s,d){return Bi(s,u.typeName)||Jr(s,d,u.typeArguments)},182:function(u,s,d){return Bi(s,u.assertsModifier)||Bi(s,u.parameterName)||Bi(s,u.type)},186:function(u,s,d){return Bi(s,u.exprName)||Jr(s,d,u.typeArguments)},187:function(u,s,d){return Jr(s,d,u.members)},188:function(u,s,d){return Bi(s,u.elementType)},189:function(u,s,d){return Jr(s,d,u.elements)},192:bQe,193:bQe,194:function(u,s,d){return Bi(s,u.checkType)||Bi(s,u.extendsType)||Bi(s,u.trueType)||Bi(s,u.falseType)},195:function(u,s,d){return Bi(s,u.typeParameter)},205:function(u,s,d){return Bi(s,u.argument)||Bi(s,u.attributes)||Bi(s,u.qualifier)||Jr(s,d,u.typeArguments)},302:function(u,s,d){return Bi(s,u.assertClause)},196:yQe,198:yQe,199:function(u,s,d){return Bi(s,u.objectType)||Bi(s,u.indexType)},200:function(u,s,d){return Bi(s,u.readonlyToken)||Bi(s,u.typeParameter)||Bi(s,u.nameType)||Bi(s,u.questionToken)||Bi(s,u.type)||Jr(s,d,u.members)},201:function(u,s,d){return Bi(s,u.literal)},202:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.name)||Bi(s,u.questionToken)||Bi(s,u.type)},206:kQe,207:kQe,209:function(u,s,d){return Jr(s,d,u.elements)},210:function(u,s,d){return Jr(s,d,u.properties)},211:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.questionDotToken)||Bi(s,u.name)},212:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.questionDotToken)||Bi(s,u.argumentExpression)},213:FQe,214:FQe,215:function(u,s,d){return Bi(s,u.tag)||Bi(s,u.questionDotToken)||Jr(s,d,u.typeArguments)||Bi(s,u.template)},216:function(u,s,d){return Bi(s,u.type)||Bi(s,u.expression)},217:function(u,s,d){return Bi(s,u.expression)},220:function(u,s,d){return Bi(s,u.expression)},221:function(u,s,d){return Bi(s,u.expression)},222:function(u,s,d){return Bi(s,u.expression)},224:function(u,s,d){return Bi(s,u.operand)},229:function(u,s,d){return Bi(s,u.asteriskToken)||Bi(s,u.expression)},223:function(u,s,d){return Bi(s,u.expression)},225:function(u,s,d){return Bi(s,u.operand)},226:function(u,s,d){return Bi(s,u.left)||Bi(s,u.operatorToken)||Bi(s,u.right)},234:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.type)},235:function(u,s,d){return Bi(s,u.expression)},238:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.type)},236:function(u,s,d){return Bi(s,u.name)},227:function(u,s,d){return Bi(s,u.condition)||Bi(s,u.questionToken)||Bi(s,u.whenTrue)||Bi(s,u.colonToken)||Bi(s,u.whenFalse)},230:function(u,s,d){return Bi(s,u.expression)},241:AQe,268:AQe,312:function(u,s,d){return Jr(s,d,u.statements)||Bi(s,u.endOfFileToken)},243:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.declarationList)},261:function(u,s,d){return Jr(s,d,u.declarations)},244:function(u,s,d){return Bi(s,u.expression)},245:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.thenStatement)||Bi(s,u.elseStatement)},246:function(u,s,d){return Bi(s,u.statement)||Bi(s,u.expression)},247:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.statement)},248:function(u,s,d){return Bi(s,u.initializer)||Bi(s,u.condition)||Bi(s,u.incrementor)||Bi(s,u.statement)},249:function(u,s,d){return Bi(s,u.initializer)||Bi(s,u.expression)||Bi(s,u.statement)},250:function(u,s,d){return Bi(s,u.awaitModifier)||Bi(s,u.initializer)||Bi(s,u.expression)||Bi(s,u.statement)},251:SQe,252:SQe,253:function(u,s,d){return Bi(s,u.expression)},254:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.statement)},255:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.caseBlock)},269:function(u,s,d){return Jr(s,d,u.clauses)},296:function(u,s,d){return Bi(s,u.expression)||Jr(s,d,u.statements)},297:function(u,s,d){return Jr(s,d,u.statements)},256:function(u,s,d){return Bi(s,u.label)||Bi(s,u.statement)},257:function(u,s,d){return Bi(s,u.expression)},258:function(u,s,d){return Bi(s,u.tryBlock)||Bi(s,u.catchClause)||Bi(s,u.finallyBlock)},299:function(u,s,d){return Bi(s,u.variableDeclaration)||Bi(s,u.block)},170:function(u,s,d){return Bi(s,u.expression)},263:BQe,231:BQe,264:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Jr(s,d,u.heritageClauses)||Jr(s,d,u.members)},265:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.typeParameters)||Bi(s,u.type)},266:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Jr(s,d,u.members)},306:function(u,s,d){return Bi(s,u.name)||Bi(s,u.initializer)},267:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.body)},271:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)||Bi(s,u.moduleReference)},272:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.importClause)||Bi(s,u.moduleSpecifier)||Bi(s,u.attributes)},273:function(u,s,d){return Bi(s,u.name)||Bi(s,u.namedBindings)},300:function(u,s,d){return Jr(s,d,u.elements)},301:function(u,s,d){return Bi(s,u.name)||Bi(s,u.value)},270:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.name)},274:function(u,s,d){return Bi(s,u.name)},280:function(u,s,d){return Bi(s,u.name)},275:wQe,279:wQe,278:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.exportClause)||Bi(s,u.moduleSpecifier)||Bi(s,u.attributes)},276:TQe,281:TQe,277:function(u,s,d){return Jr(s,d,u.modifiers)||Bi(s,u.expression)},228:function(u,s,d){return Bi(s,u.head)||Jr(s,d,u.templateSpans)},239:function(u,s,d){return Bi(s,u.expression)||Bi(s,u.literal)},203:function(u,s,d){return Bi(s,u.head)||Jr(s,d,u.templateSpans)},204:function(u,s,d){return Bi(s,u.type)||Bi(s,u.literal)},167:function(u,s,d){return Bi(s,u.expression)},298:function(u,s,d){return Jr(s,d,u.types)},233:function(u,s,d){return Bi(s,u.expression)||Jr(s,d,u.typeArguments)},283:function(u,s,d){return Bi(s,u.expression)},282:function(u,s,d){return Jr(s,d,u.modifiers)},361:function(u,s,d){return Jr(s,d,u.elements)},284:function(u,s,d){return Bi(s,u.openingElement)||Jr(s,d,u.children)||Bi(s,u.closingElement)},288:function(u,s,d){return Bi(s,u.openingFragment)||Jr(s,d,u.children)||Bi(s,u.closingFragment)},285:LQe,286:LQe,292:function(u,s,d){return Jr(s,d,u.properties)},291:function(u,s,d){return Bi(s,u.name)||Bi(s,u.initializer)},293:function(u,s,d){return Bi(s,u.expression)},294:function(u,s,d){return Bi(s,u.dotDotDotToken)||Bi(s,u.expression)},287:function(u,s,d){return Bi(s,u.tagName)},295:function(u,s,d){return Bi(s,u.namespace)||Bi(s,u.name)},190:nM,191:nM,316:nM,322:nM,321:nM,323:nM,325:nM,324:function(u,s,d){return Jr(s,d,u.parameters)||Bi(s,u.type)},327:function(u,s,d){return(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))||Jr(s,d,u.tags)},354:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.name)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},317:function(u,s,d){return Bi(s,u.name)},318:function(u,s,d){return Bi(s,u.left)||Bi(s,u.right)},348:NQe,355:NQe,337:function(u,s,d){return Bi(s,u.tagName)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},336:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.class)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},335:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.class)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},352:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.constraint)||Jr(s,d,u.typeParameters)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},353:function(u,s,d){return Bi(s,u.tagName)||(u.typeExpression&&u.typeExpression.kind===316?Bi(s,u.typeExpression)||Bi(s,u.fullName)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment)):Bi(s,u.fullName)||Bi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment)))},345:function(u,s,d){return Bi(s,u.tagName)||Bi(s,u.fullName)||Bi(s,u.typeExpression)||(typeof u.comment=="string"?void 0:Jr(s,d,u.comment))},349:uM,351:uM,350:uM,347:uM,357:uM,356:uM,346:uM,330:function(u,s,d){return L(u.typeParameters,s)||L(u.parameters,s)||Bi(s,u.type)},331:qFe,332:qFe,333:qFe,329:function(u,s,d){return L(u.jsDocPropertyTags,s)},334:OB,339:OB,340:OB,341:OB,342:OB,343:OB,338:OB,344:OB,360:ENt},(t=>{var u=YD(99,!0),s=40960,d,f,p,E,v;function b(he){return ft++,he}var B={createBaseSourceFileNode:he=>b(new v(he,0,0)),createBaseIdentifierNode:he=>b(new p(he,0,0)),createBasePrivateIdentifierNode:he=>b(new E(he,0,0)),createBaseTokenNode:he=>b(new f(he,0,0)),createBaseNode:he=>b(new d(he,0,0))},k=pV(11,B),{createNodeArray:T,createNumericLiteral:M,createStringLiteral:z,createLiteralLikeNode:j,createIdentifier:J,createPrivateIdentifier:K,createToken:Y,createArrayLiteralExpression:oe,createObjectLiteralExpression:se,createPropertyAccessExpression:ge,createPropertyAccessChain:ae,createElementAccessExpression:Ce,createElementAccessChain:ne,createCallExpression:ve,createCallChain:Se,createNewExpression:Ne,createParenthesizedExpression:pe,createBlock:fe,createVariableStatement:xe,createExpressionStatement:Be,createIfStatement:We,createWhileStatement:Ae,createForStatement:De,createForOfStatement:He,createVariableDeclaration:Je,createVariableDeclarationList:mt}=k,Ye,je,Ke,Gt,Yt,Ie,st,Bt,It,ei,ft,Ut,Ni,Vi,xn,Jn,an=!0,Pi=!1;function Fi(he,Re,nt,Nt,Ci=!1,en,Iu,Wr=0){var Pr;if(en=lZ(he,en),en===6){const ma=oa(he,Re,nt,Nt,Ci);return UV(ma,(Pr=ma.statements[0])==null?void 0:Pr.expression,ma.parseDiagnostics,!1,void 0),ma.referencedFiles=Dt,ma.typeReferenceDirectives=Dt,ma.libReferenceDirectives=Dt,ma.amdDependencies=Dt,ma.hasNoDefaultLib=!1,ma.pragmas=uU,ma}Fr(he,Re,nt,Nt,en,Wr);const _r=bt(nt,Ci,en,Iu||MQe,Wr);return wa(),_r}t.parseSourceFile=Fi;function Yu(he,Re){Fr("",he,Re,void 0,1,0),ct();const nt=Ee(!0),Nt=X()===1&&!st.length;return wa(),Nt?nt:void 0}t.parseIsolatedEntityName=Yu;function oa(he,Re,nt=2,Nt,Ci=!1){Fr(he,Re,nt,Nt,6,0),je=Jn,ct();const en=de();let Iu,Wr;if(X()===1)Iu=Ga([],en,en),Wr=Nc();else{let ma;for(;X()!==1;){let Gs;switch(X()){case 23:Gs=hD();break;case 112:case 97:case 106:Gs=Nc();break;case 41:wn(()=>ct()===9&&ct()!==59)?Gs=gE():Gs=hC();break;case 9:case 11:if(wn(()=>ct()!==59)){Gs=ur();break}default:Gs=hC();break}ma&&Wa(ma)?ma.push(Gs):ma?ma=[ma,Gs]:(ma=Gs,X()!==1&&Qi(F.Unexpected_token))}const D0=Wa(ma)?Oi(oe(ma),en):H.checkDefined(ma),Zs=Be(D0);Oi(Zs,en),Iu=Ga([Zs],en),Wr=Q0(1,F.Unexpected_token)}const Pr=Cn(he,2,6,!1,Iu,Wr,je,Rs);Ci&&Dn(Pr),Pr.nodeCount=ft,Pr.identifierCount=Ni,Pr.identifiers=Ut,Pr.parseDiagnostics=v7(st,Pr),Bt&&(Pr.jsDocDiagnostics=v7(Bt,Pr));const _r=Pr;return wa(),_r}t.parseJsonText=oa;function Fr(he,Re,nt,Nt,Ci,en){switch(d=Xd.getNodeConstructor(),f=Xd.getTokenConstructor(),p=Xd.getIdentifierConstructor(),E=Xd.getPrivateIdentifierConstructor(),v=Xd.getSourceFileConstructor(),Ye=Uo(he),Ke=Re,Gt=nt,It=Nt,Yt=Ci,Ie=Qj(Ci),st=[],Vi=0,Ut=new Map,Ni=0,ft=0,je=0,an=!0,Yt){case 1:case 2:Jn=524288;break;case 6:Jn=134742016;break;default:Jn=0;break}Pi=!1,u.setText(Ke),u.setOnError(we),u.setScriptTarget(Gt),u.setLanguageVariant(Ie),u.setScriptKind(Yt),u.setJSDocParsingMode(en)}function wa(){u.clearCommentDirectives(),u.setText(""),u.setOnError(void 0),u.setScriptKind(0),u.setJSDocParsingMode(0),Ke=void 0,Gt=void 0,It=void 0,Yt=void 0,Ie=void 0,je=0,st=void 0,Bt=void 0,Vi=0,Ut=void 0,xn=void 0,an=!0}function bt(he,Re,nt,Nt,Ci){const en=t1(Ye);en&&(Jn|=33554432),je=Jn,ct();const Iu=To(0,Zm);H.assert(X()===1);const Wr=Oe(),Pr=Ln(Nc(),Wr),_r=Cn(Ye,he,nt,en,Iu,Pr,je,Nt);return Zce(_r,Ke),Yce(_r,ma),_r.commentDirectives=u.getCommentDirectives(),_r.nodeCount=ft,_r.identifierCount=Ni,_r.identifiers=Ut,_r.parseDiagnostics=v7(st,_r),_r.jsDocParsingMode=Ci,Bt&&(_r.jsDocDiagnostics=v7(Bt,_r)),Re&&Dn(_r),_r;function ma(D0,Zs,Gs){st.push(hB(Ye,Ke,D0,Zs,Gs))}}let jn=!1;function Ln(he,Re){if(!Re)return he;H.assert(!he.jsDoc);const nt=qi(A0e(he,Ke),Nt=>QK.parseJSDocComment(he,Nt.pos,Nt.end-Nt.pos));return nt.length&&(he.jsDoc=nt),jn&&(jn=!1,he.flags|=536870912),he}function Ai(he){const Re=It,nt=Xce.createSyntaxCursor(he);It={currentNode:ma};const Nt=[],Ci=st;st=[];let en=0,Iu=Pr(he.statements,0);for(;Iu!==-1;){const D0=he.statements[en],Zs=he.statements[Iu];yn(Nt,he.statements,en,Iu),en=_r(he.statements,Iu);const Gs=Ue(Ci,Zp=>Zp.start>=D0.pos),y4=Gs>=0?Ue(Ci,Zp=>Zp.start>=Zs.pos,Gs):-1;Gs>=0&&yn(st,Ci,Gs,y4>=0?y4:void 0),Va(()=>{const Zp=Jn;for(Jn|=65536,u.resetTokenState(Zs.pos),ct();X()!==1;){const f6=u.getTokenFullStart(),y3=uc(0,Zm);if(Nt.push(y3),f6===u.getTokenFullStart()&&ct(),en>=0){const Vd=he.statements[en];if(y3.end===Vd.pos)break;y3.end>Vd.pos&&(en=_r(he.statements,en+1))}}Jn=Zp},2),Iu=en>=0?Pr(he.statements,en):-1}if(en>=0){const D0=he.statements[en];yn(Nt,he.statements,en);const Zs=Ue(Ci,Gs=>Gs.start>=D0.pos);Zs>=0&&yn(st,Ci,Zs)}return It=Re,k.updateSourceFile(he,Pt(T(Nt),he.statements));function Wr(D0){return!(D0.flags&65536)&&!!(D0.transformFlags&67108864)}function Pr(D0,Zs){for(let Gs=Zs;Gs118}function wo(){return X()===80?!0:X()===127&&xi()||X()===135&&$i()?!1:X()>118}function Fn(he,Re,nt=!0){return X()===he?(nt&&ct(),!0):(Re?Qi(Re):Qi(F._0_expected,qo(he)),!1)}const bc=Object.keys(zO).filter(he=>he.length>2);function Qa(he){if(Dk(he)){le(gs(Ke,he.template.pos),he.template.end,F.Module_declaration_names_may_only_use_or_quoted_strings);return}const Re=at(he)?fu(he):void 0;if(!Re||!Nm(Re,Gt)){Qi(F._0_expected,qo(27));return}const nt=gs(Ke,he.pos);switch(Re){case"const":case"let":case"var":le(nt,he.end,F.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":c0(F.Interface_name_cannot_be_0,F.Interface_must_be_given_a_name,19);return;case"is":le(nt,u.getTokenStart(),F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":c0(F.Namespace_name_cannot_be_0,F.Namespace_must_be_given_a_name,19);return;case"type":c0(F.Type_alias_name_cannot_be_0,F.Type_alias_must_be_given_a_name,64);return}const Nt=yN(Re,bc,Ci=>Ci)??Ul(Re);if(Nt){le(nt,he.end,F.Unknown_keyword_or_identifier_Did_you_mean_0,Nt);return}X()!==0&&le(nt,he.end,F.Unexpected_keyword_or_identifier)}function c0(he,Re,nt){X()===nt?Qi(Re):Qi(he,u.getTokenValue())}function Ul(he){for(const Re of bc)if(he.length>Re.length+2&&Ma(he,Re))return`${Re} ${he.slice(Re.length)}`}function Tl(he,Re,nt){if(X()===60&&!u.hasPrecedingLineBreak()){Qi(F.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(X()===21){Qi(F.Cannot_start_a_function_call_in_a_type_annotation),ct();return}if(Re&&!Pc()){nt?Qi(F._0_expected,qo(27)):Qi(F.Expected_for_property_initializer);return}if(!Il()){if(nt){Qi(F._0_expected,qo(27));return}Qa(he)}}function hd(he){return X()===he?(Qt(),!0):(H.assert(wq(he)),Qi(F._0_expected,qo(he)),!1)}function Cl(he,Re,nt,Nt){if(X()===Re){ct();return}const Ci=Qi(F._0_expected,qo(Re));nt&&Ci&&Es(Ci,hB(Ye,Ke,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,qo(he),qo(Re)))}function ho(he){return X()===he?(ct(),!0):!1}function Ko(he){if(X()===he)return Nc()}function nd(he){if(X()===he)return $p()}function Q0(he,Re,nt){return Ko(he)||fl(he,!1,Re||F._0_expected,nt||qo(he))}function Wo(he){const Re=nd(he);return Re||(H.assert(wq(he)),fl(he,!1,F._0_expected,qo(he)))}function Nc(){const he=de(),Re=X();return ct(),Oi(Y(Re),he)}function $p(){const he=de(),Re=X();return Qt(),Oi(Y(Re),he)}function Pc(){return X()===27?!0:X()===20||X()===1||u.hasPrecedingLineBreak()}function Il(){return Pc()?(X()===27&&ct(),!0):!1}function hl(){return Il()||Fn(27)}function Ga(he,Re,nt,Nt){const Ci=T(he,Nt);return i_(Ci,Re,nt??u.getTokenFullStart()),Ci}function Oi(he,Re,nt){return i_(he,Re,nt??u.getTokenFullStart()),Jn&&(he.flags|=Jn),Pi&&(Pi=!1,he.flags|=262144),he}function fl(he,Re,nt,...Nt){Re?on(u.getTokenFullStart(),0,nt,...Nt):nt&&Qi(nt,...Nt);const Ci=de(),en=he===80?J("",void 0):Bx(he)?k.createTemplateLiteralLikeNode(he,"","",void 0):he===9?M("",void 0):he===11?z("",void 0):he===282?k.createMissingDeclaration():Y(he);return Oi(en,Ci)}function Zc(he){let Re=Ut.get(he);return Re===void 0&&Ut.set(he,Re=he),Re}function yh(he,Re,nt){if(he){Ni++;const Wr=de(),Pr=X(),_r=Zc(u.getTokenValue()),ma=u.hasExtendedUnicodeEscape();return it(),Oi(J(_r,Pr,ma),Wr)}if(X()===81)return Qi(nt||F.Private_identifiers_are_not_allowed_outside_class_bodies),yh(!0);if(X()===0&&u.tryScan(()=>u.reScanInvalidIdentifier()===80))return yh(!0);Ni++;const Nt=X()===1,Ci=u.isReservedWord(),en=u.getTokenText(),Iu=Ci?F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:F.Identifier_expected;return fl(80,Nt,Re||Iu,en)}function sf(he){return yh(os(),void 0,he)}function X0(he,Re){return yh(wo(),he,Re)}function yc(he){return yh(ph(X()),he)}function $(){return(u.hasUnicodeEscape()||u.hasExtendedUnicodeEscape())&&Qi(F.Unicode_escape_sequence_cannot_appear_here),yh(ph(X()))}function tt(){return ph(X())||X()===11||X()===9}function vt(){return ph(X())||X()===11}function fi(he){if(X()===11||X()===9){const Re=ur();return Re.text=Zc(Re.text),Re}return he&&X()===23?Gu():X()===81?uu():yc()}function fn(){return fi(!0)}function Gu(){const he=de();Fn(23);const Re=Qe(n1);return Fn(24),Oi(k.createComputedPropertyName(Re),he)}function uu(){const he=de(),Re=K(Zc(u.getTokenValue()));return ct(),Oi(Re,he)}function Nu(he){return X()===he&&Rr(Hu)}function Mr(){return ct(),u.hasPrecedingLineBreak()?!1:T0()}function Hu(){switch(X()){case 87:return ct()===94;case 95:return ct(),X()===90?wn(rd):X()===156?wn(nc):Ss();case 90:return rd();case 126:case 139:case 153:return ct(),T0();default:return Mr()}}function Ss(){return X()===60||X()!==42&&X()!==130&&X()!==19&&T0()}function nc(){return ct(),Ss()}function ud(){return XD(X())&&Rr(Hu)}function T0(){return X()===23||X()===19||X()===42||X()===26||tt()}function rd(){return ct(),X()===86||X()===100||X()===120||X()===60||X()===128&&wn(Hw)||X()===134&&wn(j0)}function m0(he,Re){if(mc(he))return!0;switch(he){case 0:case 1:case 3:return!(X()===27&&Re)&&L9();case 2:return X()===84||X()===90;case 4:return wn(t6);case 5:return wn(N5)||X()===27&&!Re;case 6:return X()===23||tt();case 12:switch(X()){case 23:case 42:case 26:case 25:return!0;default:return tt()}case 18:return tt();case 9:return X()===23||X()===26||tt();case 24:return vt();case 7:return X()===19?wn(Bd):Re?wo()&&!x1():A5()&&!x1();case 8:return Ws();case 10:return X()===28||X()===26||Ws();case 19:return X()===103||X()===87||wo();case 15:switch(X()){case 28:case 25:return!0}case 11:return X()===26||m3();case 16:return xt(!1);case 17:return xt(!0);case 20:case 21:return X()===28||mE();case 22:return O();case 23:return X()===161&&wn(M9)?!1:ph(X());case 13:return ph(X())||X()===19;case 14:return!0;case 25:return!0;case 26:return H.fail("ParsingContext.Count used as a context");default:H.assertNever(he,"Non-exhaustive case in 'isListElement'.")}}function Bd(){if(H.assert(X()===19),ct()===20){const he=ct();return he===28||he===19||he===96||he===119}return!0}function jh(){return ct(),wo()}function rh(){return ct(),ph(X())}function p4(){return ct(),B2e(X())}function x1(){return X()===119||X()===96?wn(Ve):!1}function Ve(){return ct(),m3()}function di(){return ct(),mE()}function Mn(he){if(X()===1)return!0;switch(he){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return X()===20;case 3:return X()===20||X()===84||X()===90;case 7:return X()===19||X()===96||X()===119;case 8:return ka();case 19:return X()===32||X()===21||X()===19||X()===96||X()===119;case 11:return X()===22||X()===27;case 15:case 21:case 10:return X()===24;case 17:case 16:case 18:return X()===22||X()===24;case 20:return X()!==28;case 22:return X()===19||X()===20;case 13:return X()===32||X()===44;case 14:return X()===30&&wn(gn);default:return!1}}function ka(){return!!(Pc()||tF(X())||X()===39)}function Fo(){H.assert(Vi,"Missing parsing context");for(let he=0;he<26;he++)if(Vi&1<=0)}function h3(he){return he===6?F.An_enum_member_name_must_be_followed_by_a_or:void 0}function Wf(){const he=Ga([],de());return he.isMissingList=!0,he}function E4(he){return!!he.isMissingList}function Hh(he,Re,nt,Nt){if(Fn(nt)){const Ci=O1(he,Re);return Fn(Nt),Ci}return Wf()}function Ee(he,Re){const nt=de();let Nt=he?yc(Re):X0(Re);for(;ho(25)&&X()!==30;)Nt=Oi(k.createQualifiedName(Nt,_i(he,!1,!0)),nt);return Nt}function wt(he,Re){return Oi(k.createQualifiedName(he,Re),he.pos)}function _i(he,Re,nt){if(u.hasPrecedingLineBreak()&&ph(X())&&wn(a6))return fl(80,!0,F.Identifier_expected);if(X()===81){const Nt=uu();return Re?Nt:fl(80,!0,F.Identifier_expected)}return he?nt?yc():$():X0()}function vi(he){const Re=de(),nt=[];let Nt;do Nt=nr(he),nt.push(Nt);while(Nt.literal.kind===17);return Ga(nt,Re)}function Q(he){const Re=de();return Oi(k.createTemplateExpression(fa(he),vi(he)),Re)}function Me(){const he=de();return Oi(k.createTemplateLiteralType(fa(!1),Tt()),he)}function Tt(){const he=de(),Re=[];let nt;do nt=yi(),Re.push(nt);while(nt.literal.kind===17);return Ga(Re,he)}function yi(){const he=de();return Oi(k.createTemplateLiteralTypeSpan(jd(),In(!1)),he)}function In(he){return X()===20?(du(he),ss()):Q0(18,F._0_expected,qo(20))}function nr(he){const Re=de();return Oi(k.createTemplateSpan(Qe(n1),In(he)),Re)}function ur(){return Rl(X())}function fa(he){!he&&u.getTokenFlags()&26656&&du(!1);const Re=Rl(X());return H.assert(Re.kind===16,"Template head has wrong token kind"),Re}function ss(){const he=Rl(X());return H.assert(he.kind===17||he.kind===18,"Template fragment has wrong token kind"),he}function ls(he){const Re=he===15||he===18,nt=u.getTokenText();return nt.substring(1,nt.length-(u.isUnterminated()?0:Re?1:2))}function Rl(he){const Re=de(),nt=Bx(he)?k.createTemplateLiteralLikeNode(he,u.getTokenValue(),ls(he),u.getTokenFlags()&7176):he===9?M(u.getTokenValue(),u.getNumericLiteralFlags()):he===11?z(u.getTokenValue(),void 0,u.hasExtendedUnicodeEscape()):VN(he)?j(he,u.getTokenValue()):H.fail();return u.hasExtendedUnicodeEscape()&&(nt.hasExtendedUnicodeEscape=!0),u.isUnterminated()&&(nt.isUnterminated=!0),ct(),Oi(nt,Re)}function v1(){return Ee(!0,F.Type_expected)}function fd(){if(!u.hasPrecedingLineBreak()&&Ou()===30)return Hh(20,jd,30,32)}function Um(){const he=de();return Oi(k.createTypeReferenceNode(v1(),fd()),he)}function _s(he){switch(he.kind){case 183:return Xl(he.typeName);case 184:case 185:{const{parameters:Re,type:nt}=he;return E4(Re)||_s(nt)}case 196:return _s(he.type);default:return!1}}function rp(he){return ct(),Oi(k.createTypePredicateNode(void 0,he,jd()),he.pos)}function qm(){const he=de();return ct(),Oi(k.createThisTypeNode(),he)}function f3(){const he=de();return ct(),Oi(k.createJSDocAllType(),he)}function h_(){const he=de();return ct(),Oi(k.createJSDocNonNullableType(fb(),!1),he)}function ia(){const he=de();return ct(),X()===28||X()===20||X()===22||X()===32||X()===64||X()===52?Oi(k.createJSDocUnknownType(),he):Oi(k.createJSDocNullableType(jd(),!1),he)}function Xx(){const he=de(),Re=Oe();if(wn(Sr)){ct();const nt=yu(36),Nt=bn(59,!1);return Ln(Oi(k.createJSDocFunctionType(nt,Nt),he),Re)}return Oi(k.createTypeReferenceNode(yc(),void 0),he)}function e6(){const he=de();let Re;return(X()===110||X()===105)&&(Re=yc(),Fn(59)),Oi(k.createParameterDeclaration(void 0,void 0,Re,void 0,bg(),void 0),he)}function bg(){u.setInJSDocType(!0);const he=de();if(ho(144)){const Nt=k.createJSDocNamepathType(void 0);e:for(;;)switch(X()){case 20:case 1:case 28:case 5:break e;default:Qt()}return u.setInJSDocType(!1),Oi(Nt,he)}const Re=ho(26);let nt=rC();return u.setInJSDocType(!1),Re&&(nt=Oi(k.createJSDocVariadicType(nt),he)),X()===64?(ct(),Oi(k.createJSDocOptionalType(nt),he)):nt}function lb(){const he=de();Fn(114);const Re=Ee(!0),nt=u.hasPrecedingLineBreak()?void 0:d6();return Oi(k.createTypeQueryNode(Re,nt),he)}function b5(){const he=de(),Re=V1(!1,!0),nt=X0();let Nt,Ci;ho(96)&&(mE()||!m3()?Nt=jd():Ci=rc());const en=ho(64)?jd():void 0,Iu=k.createTypeParameterDeclaration(Re,nt,Nt,en);return Iu.expression=Ci,Oi(Iu,he)}function Xe(){if(X()===30)return Hh(19,b5,30,32)}function xt(he){return X()===26||Ws()||XD(X())||X()===60||mE(!he)}function oi(he){const Re=Du(F.Private_identifiers_cannot_be_used_as_parameters);return nj(Re)===0&&!Ge(he)&&XD(X())&&ct(),Re}function wi(){return os()||X()===23||X()===19}function Xi(he){return tn(he)}function Rn(he){return tn(he,!1)}function tn(he,Re=!0){const nt=de(),Nt=Oe(),Ci=he?et(()=>V1(!0)):Et(()=>V1(!0));if(X()===110){const Pr=k.createParameterDeclaration(Ci,void 0,yh(!0),void 0,F5(),void 0),_r=Ki(Ci);return _r&&te(_r,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),Ln(Oi(Pr,nt),Nt)}const en=an;an=!1;const Iu=Ko(26);if(!Re&&!wi())return;const Wr=Ln(Oi(k.createParameterDeclaration(Ci,Iu,oi(Ci),Ko(58),F5(),D4()),nt),Nt);return an=en,Wr}function bn(he,Re){if(Ar(he,Re))return Mt(rC)}function Ar(he,Re){return he===39?(Fn(he),!0):ho(59)?!0:Re&&X()===39?(Qi(F._0_expected,qo(59)),ct(),!0):!1}function bu(he,Re){const nt=xi(),Nt=$i();xa(!!(he&1)),Ta(!!(he&2));const Ci=he&32?O1(17,e6):O1(16,()=>Re?Xi(Nt):Rn(Nt));return xa(nt),Ta(Nt),Ci}function yu(he){if(!Fn(21))return Wf();const Re=bu(he,!0);return Fn(22),Re}function _u(){ho(28)||hl()}function la(he){const Re=de(),nt=Oe();he===180&&Fn(105);const Nt=Xe(),Ci=yu(4),en=bn(59,!0);_u();const Iu=he===179?k.createCallSignature(Nt,Ci,en):k.createConstructSignature(Nt,Ci,en);return Ln(Oi(Iu,Re),nt)}function p0(){return X()===23&&wn(o0)}function o0(){if(ct(),X()===26||X()===24)return!0;if(XD(X())){if(ct(),wo())return!0}else if(wo())ct();else return!1;return X()===59||X()===28?!0:X()!==58?!1:(ct(),X()===59||X()===28||X()===24)}function Gf(he,Re,nt){const Nt=Hh(16,()=>Xi(!1),23,24),Ci=F5();_u();const en=k.createIndexSignature(nt,Nt,Ci);return Ln(Oi(en,he),Re)}function tC(he,Re,nt){const Nt=fn(),Ci=Ko(58);let en;if(X()===21||X()===30){const Iu=Xe(),Wr=yu(4),Pr=bn(59,!0);en=k.createMethodSignature(nt,Nt,Ci,Iu,Wr,Pr)}else{const Iu=F5();en=k.createPropertySignature(nt,Nt,Ci,Iu),X()===64&&(en.initializer=D4())}return _u(),Ln(Oi(en,he),Re)}function t6(){if(X()===21||X()===30||X()===139||X()===153)return!0;let he=!1;for(;XD(X());)he=!0,ct();return X()===23?!0:(tt()&&(he=!0,ct()),he?X()===21||X()===30||X()===58||X()===59||X()===28||Pc():!1)}function cD(){if(X()===21||X()===30)return la(179);if(X()===105&&wn(i6))return la(180);const he=de(),Re=Oe(),nt=V1(!1);return Nu(139)?dp(he,Re,nt,177,4):Nu(153)?dp(he,Re,nt,178,4):p0()?Gf(he,Re,nt):tC(he,Re,nt)}function i6(){return ct(),X()===21||X()===30}function Gk(){return ct()===25}function cb(){switch(ct()){case 21:case 30:case 25:return!0}return!1}function Jk(){const he=de();return Oi(k.createTypeLiteralNode($k()),he)}function $k(){let he;return Fn(19)?(he=To(4,cD),Fn(20)):he=Wf(),he}function oz(){return ct(),X()===40||X()===41?ct()===148:(X()===148&&ct(),X()===23&&jh()&&ct()===103)}function D9(){const he=de(),Re=yc();Fn(103);const nt=jd();return Oi(k.createTypeParameterDeclaration(void 0,Re,nt,void 0),he)}function ww(){const he=de();Fn(19);let Re;(X()===148||X()===40||X()===41)&&(Re=Nc(),Re.kind!==148&&Fn(148)),Fn(23);const nt=D9(),Nt=ho(130)?jd():void 0;Fn(24);let Ci;(X()===58||X()===40||X()===41)&&(Ci=Nc(),Ci.kind!==58&&Fn(58));const en=F5();hl();const Iu=To(4,cD);return Fn(20),Oi(k.createMappedTypeNode(Re,nt,Nt,Ci,en,Iu),he)}function iC(){const he=de();if(ho(26))return Oi(k.createRestTypeNode(jd()),he);const Re=jd();if(wB(Re)&&Re.pos===Re.type.pos){const nt=k.createOptionalTypeNode(Re.type);return Pt(nt,Re),nt.flags=Re.flags,nt}return Re}function x9(){return ct()===59||X()===58&&ct()===59}function v9(){return X()===26?ph(ct())&&x9():ph(X())&&x9()}function Tw(){if(wn(v9)){const he=de(),Re=Oe(),nt=Ko(26),Nt=yc(),Ci=Ko(58);Fn(59);const en=iC(),Iu=k.createNamedTupleMember(nt,Nt,Ci,en);return Ln(Oi(Iu,he),Re)}return iC()}function Uk(){const he=de();return Oi(k.createTupleTypeNode(Hh(21,Tw,23,24)),he)}function Lw(){const he=de();Fn(21);const Re=jd();return Fn(22),Oi(k.createParenthesizedType(Re),he)}function C9(){let he;if(X()===128){const Re=de();ct();const nt=Oi(Y(128),Re);he=Ga([nt],Re)}return he}function b9(){const he=de(),Re=Oe(),nt=C9(),Nt=ho(105);H.assert(!nt||Nt,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");const Ci=Xe(),en=yu(4),Iu=bn(39,!1),Wr=Nt?k.createConstructorTypeNode(nt,Ci,en,Iu):k.createFunctionTypeNode(Ci,en,Iu);return Ln(Oi(Wr,he),Re)}function qk(){const he=Nc();return X()===25?void 0:he}function db(he){const Re=de();he&&ct();let nt=X()===112||X()===97||X()===106?Nc():Rl(X());return he&&(nt=Oi(k.createPrefixUnaryExpression(41,nt),Re)),Oi(k.createLiteralTypeNode(nt),Re)}function hb(){return ct(),X()===102}function nC(){je|=4194304;const he=de(),Re=ho(114);Fn(102),Fn(21);const nt=jd();let Nt;if(ho(28)){const Iu=u.getTokenStart();Fn(19);const Wr=X();if(Wr===118||Wr===132?ct():Qi(F._0_expected,qo(118)),Fn(59),Nt=xC(Wr,!0),!Fn(20)){const Pr=Zu(st);Pr&&Pr.code===F._0_expected.code&&Es(Pr,hB(Ye,Ke,Iu,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Fn(22);const Ci=ho(25)?v1():void 0,en=fd();return Oi(k.createImportTypeNode(nt,Nt,Ci,en,Re),he)}function y5(){return ct(),X()===9||X()===10}function fb(){switch(X()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Rr(qk)||Um();case 67:u.reScanAsteriskEqualsToken();case 42:return f3();case 61:u.reScanQuestionToken();case 58:return ia();case 100:return Xx();case 54:return h_();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return db();case 41:return wn(y5)?db(!0):Um();case 116:return Nc();case 110:{const he=qm();return X()===142&&!u.hasPrecedingLineBreak()?rp(he):he}case 114:return wn(hb)?nC():lb();case 19:return wn(oz)?ww():Jk();case 23:return Uk();case 21:return Lw();case 102:return nC();case 131:return wn(a6)?aC():Um();case 16:return Me();default:return Um()}}function mE(he){switch(X()){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!he;case 41:return!he&&wn(y5);case 21:return!he&&wn(Hs);default:return wo()}}function Hs(){return ct(),X()===22||xt(!1)||mE()}function Zk(){const he=de();let Re=fb();for(;!u.hasPrecedingLineBreak();)switch(X()){case 54:ct(),Re=Oi(k.createJSDocNonNullableType(Re,!0),he);break;case 58:if(wn(di))return Re;ct(),Re=Oi(k.createJSDocNullableType(Re,!0),he);break;case 23:if(Fn(23),mE()){const nt=jd();Fn(24),Re=Oi(k.createIndexedAccessTypeNode(Re,nt),he)}else Fn(24),Re=Oi(k.createArrayTypeNode(Re),he);break;default:return Re}return Re}function Nw(he){const Re=de();return Fn(he),Oi(k.createTypeOperatorNode(he,_4()),Re)}function n6(){if(ho(96)){const he=qt(jd);if(Ot()||X()!==58)return he}}function k5(){const he=de(),Re=X0(),nt=Rr(n6),Nt=k.createTypeParameterDeclaration(void 0,Re,nt);return Oi(Nt,he)}function f_(){const he=de();return Fn(140),Oi(k.createInferTypeNode(k5()),he)}function _4(){const he=X();switch(he){case 143:case 158:case 148:return Nw(he);case 140:return f_()}return Mt(Zk)}function Jf(he){if(y9()){const Re=b9();let nt;return r3(Re)?nt=he?F.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:nt=he?F.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:F.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,te(Re,nt),Re}}function Kh(he,Re,nt){const Nt=de(),Ci=he===52,en=ho(he);let Iu=en&&Jf(Ci)||Re();if(X()===he||en){const Wr=[Iu];for(;ho(he);)Wr.push(Jf(Ci)||Re());Iu=Oi(nt(Ga(Wr,Nt)),Nt)}return Iu}function Em(){return Kh(51,_4,k.createIntersectionTypeNode)}function uC(){return Kh(52,Em,k.createUnionTypeNode)}function Pw(){return ct(),X()===105}function y9(){return X()===30||X()===21&&wn(mb)?!0:X()===105||X()===128&&wn(Pw)}function Yk(){if(XD(X())&&V1(!1),wo()||X()===110)return ct(),!0;if(X()===23||X()===19){const he=st.length;return Du(),he===st.length}return!1}function mb(){return ct(),!!(X()===22||X()===26||Yk()&&(X()===59||X()===28||X()===58||X()===64||X()===22&&(ct(),X()===39)))}function rC(){const he=de(),Re=wo()&&Rr(Qk),nt=jd();return Re?Oi(k.createTypePredicateNode(void 0,Re,nt),he):nt}function Qk(){const he=X0();if(X()===142&&!u.hasPrecedingLineBreak())return ct(),he}function aC(){const he=de(),Re=Q0(131),nt=X()===110?qm():X0(),Nt=ho(142)?jd():void 0;return Oi(k.createTypePredicateNode(Re,nt,Nt),he)}function jd(){if(Jn&81920)return Qo(81920,jd);if(y9())return b9();const he=de(),Re=uC();if(!Ot()&&!u.hasPrecedingLineBreak()&&ho(96)){const nt=qt(jd);Fn(58);const Nt=Mt(jd);Fn(59);const Ci=Mt(jd);return Oi(k.createConditionalTypeNode(Re,nt,Nt,Ci),he)}return Re}function F5(){return ho(59)?jd():void 0}function A5(){switch(X()){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 wn(cb);default:return wo()}}function m3(){if(A5())return!0;switch(X()){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 iF()?!0:wo()}}function gt(){return X()!==19&&X()!==100&&X()!==86&&X()!==60&&m3()}function n1(){const he=Ei();he&&aa(!1);const Re=de();let nt=kh(!0),Nt;for(;Nt=Ko(28);)nt=qr(nt,Nt,kh(!0),Re);return he&&aa(!0),nt}function D4(){return ho(64)?kh(!0):void 0}function kh(he){if(Mw())return oC();const Re=sz(he)||eF(he);if(Re)return Re;const nt=de(),Nt=Oe(),Ci=g3(0);return Ci.kind===80&&X()===39?p3(nt,Ci,he,Nt,void 0):Df(Ci)&&u5(Ui())?qr(Ci,Nc(),kh(he),nt):kg(Ci,nt,he)}function Mw(){return X()===127?xi()?!0:wn(Kw):!1}function S5(){return ct(),!u.hasPrecedingLineBreak()&&wo()}function oC(){const he=de();return ct(),!u.hasPrecedingLineBreak()&&(X()===42||m3())?Oi(k.createYieldExpression(Ko(42),kh(!0)),he):Oi(k.createYieldExpression(void 0,void 0),he)}function p3(he,Re,nt,Nt,Ci){H.assert(X()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");const en=k.createParameterDeclaration(void 0,void 0,Re,void 0,void 0,void 0);Oi(en,Re.pos);const Iu=Ga([en],en.pos,en.end),Wr=Q0(39),Pr=ap(!!Ci,nt),_r=k.createArrowFunction(Ci,void 0,Iu,void 0,Wr,Pr);return Ln(Oi(_r,he),Nt)}function sz(he){const Re=Ks();if(Re!==0)return Re===1?gb(!0,!0):Rr(()=>Xk(he))}function Ks(){return X()===21||X()===30||X()===134?wn(yg):X()===39?1:0}function yg(){if(X()===134&&(ct(),u.hasPrecedingLineBreak()||X()!==21&&X()!==30))return 0;const he=X(),Re=ct();if(he===21){if(Re===22)switch(ct()){case 39:case 59:case 19:return 1;default:return 0}if(Re===23||Re===19)return 2;if(Re===26)return 1;if(XD(Re)&&Re!==134&&wn(jh))return ct()===130?0:1;if(!wo()&&Re!==110)return 0;switch(ct()){case 59:return 1;case 58:return ct(),X()===59||X()===28||X()===64||X()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return H.assert(he===30),!wo()&&X()!==87?0:Ie===1?wn(()=>{ho(87);const Nt=ct();if(Nt===96)switch(ct()){case 64:case 32:case 44:return!1;default:return!0}else if(Nt===28||Nt===64)return!0;return!1})?1:0:2}function Xk(he){const Re=u.getTokenStart();if(xn!=null&&xn.has(Re))return;const nt=gb(!1,he);return nt||(xn||(xn=new Set)).add(Re),nt}function eF(he){if(X()===134&&wn(pb)===1){const Re=de(),nt=Oe(),Nt=_C(),Ci=g3(0);return p3(Re,Ci,he,nt,Nt)}}function pb(){if(X()===134){if(ct(),u.hasPrecedingLineBreak()||X()===39)return 0;const he=g3(0);if(!u.hasPrecedingLineBreak()&&he.kind===80&&X()===39)return 1}return 0}function gb(he,Re){const nt=de(),Nt=Oe(),Ci=_C(),en=Ge(Ci,HP)?2:0,Iu=Xe();let Wr;if(Fn(21)){if(he)Wr=bu(en,he);else{const f6=bu(en,he);if(!f6)return;Wr=f6}if(!Fn(22)&&!he)return}else{if(!he)return;Wr=Wf()}const Pr=X()===59,_r=bn(59,!1);if(_r&&!he&&_s(_r))return;let ma=_r;for(;(ma==null?void 0:ma.kind)===196;)ma=ma.type;const D0=ma&&TB(ma);if(!he&&X()!==39&&(D0||X()!==19))return;const Zs=X(),Gs=Q0(39),y4=Zs===39||Zs===19?ap(Ge(Ci,HP),Re):X0();if(!Re&&Pr&&X()!==59)return;const Zp=k.createArrowFunction(Ci,Iu,Wr,_r,Gs,y4);return Ln(Oi(Zp,nt),Nt)}function ap(he,Re){if(X()===19)return r6(he?2:0);if(X()!==27&&X()!==100&&X()!==86&&L9()&&!gt())return r6(16|(he?2:0));const nt=an;an=!1;const Nt=he?et(()=>kh(Re)):Et(()=>kh(Re));return an=nt,Nt}function kg(he,Re,nt){const Nt=Ko(58);if(!Nt)return he;let Ci;return Oi(k.createConditionalExpression(he,Nt,Qo(s,()=>kh(!1)),Ci=Q0(59),W4(Ci)?kh(nt):fl(80,!1,F._0_expected,qo(59))),Re)}function g3(he){const Re=de(),nt=rc();return pE(he,nt,Re)}function tF(he){return he===103||he===165}function pE(he,Re,nt){for(;;){Ui();const Nt=jj(X());if(!(X()===43?Nt>=he:Nt>he)||X()===103&&pt())break;if(X()===130||X()===152){if(u.hasPrecedingLineBreak())break;{const en=X();ct(),Re=en===152?zw(Re,jd()):sr(Re,jd())}}else Re=qr(Re,Nc(),g3(Nt),nt)}return Re}function iF(){return pt()&&X()===103?!1:jj(X())>0}function zw(he,Re){return Oi(k.createSatisfiesExpression(he,Re),he.pos)}function qr(he,Re,nt,Nt){return Oi(k.createBinaryExpression(he,Re,nt),Nt)}function sr(he,Re){return Oi(k.createAsExpression(he,Re),he.pos)}function gE(){const he=de();return Oi(k.createPrefixUnaryExpression(X(),Ct(Fh)),he)}function kf(){const he=de();return Oi(k.createDeleteExpression(Ct(Fh)),he)}function Iw(){const he=de();return Oi(k.createTypeOfExpression(Ct(Fh)),he)}function B5(){const he=de();return Oi(k.createVoidExpression(Ct(Fh)),he)}function Rw(){return X()===135?$i()?!0:wn(Kw):!1}function Eb(){const he=de();return Oi(k.createAwaitExpression(Ct(Fh)),he)}function rc(){if(dD()){const nt=de(),Nt=m_();return X()===43?pE(jj(X()),Nt,nt):Nt}const he=X(),Re=Fh();if(X()===43){const nt=gs(Ke,Re.pos),{end:Nt}=Re;Re.kind===216?le(nt,Nt,F.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(H.assert(wq(he)),le(nt,Nt,F.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,qo(he)))}return Re}function Fh(){switch(X()){case 40:case 41:case 55:case 54:return gE();case 91:return kf();case 114:return Iw();case 116:return B5();case 30:return Ie===1?_3(!0,void 0,void 0,!0):lC();case 135:if(Rw())return Eb();default:return m_()}}function dD(){switch(X()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Ie!==1)return!1;default:return!0}}function m_(){if(X()===46||X()===47){const Re=de();return Oi(k.createPrefixUnaryExpression(X(),Ct(E3)),Re)}else if(Ie===1&&X()===30&&wn(p4))return _3(!0);const he=E3();if(H.assert(Df(he)),(X()===46||X()===47)&&!u.hasPrecedingLineBreak()){const Re=X();return ct(),Oi(k.createPostfixUnaryExpression(he,Re),he.pos)}return he}function E3(){const he=de();let Re;return X()===102?wn(i6)?(je|=4194304,Re=Nc()):wn(Gk)?(ct(),ct(),Re=Oi(k.createMetaProperty(102,yc()),he),je|=8388608):Re=Up():Re=X()===108?sC():Up(),sp(he,Re)}function Up(){const he=de(),Re=wd();return za(he,Re,!0)}function sC(){const he=de();let Re=Nc();if(X()===30){const nt=de(),Nt=Rr(Db);Nt!==void 0&&(le(nt,de(),F.super_may_not_use_type_arguments),lf()||(Re=k.createExpressionWithTypeArguments(Re,Nt)))}return X()===21||X()===25||X()===23?Re:(Q0(25,F.super_must_be_followed_by_an_argument_list_or_member_access),Oi(ge(Re,_i(!0,!0,!0)),he))}function _3(he,Re,nt,Nt=!1){const Ci=de(),en=g_(he);let Iu;if(en.kind===286){let Wr=jw(en),Pr;const _r=Wr[Wr.length-1];if((_r==null?void 0:_r.kind)===284&&!Hv(_r.openingElement.tagName,_r.closingElement.tagName)&&Hv(en.tagName,_r.closingElement.tagName)){const ma=_r.children.end,D0=Oi(k.createJsxElement(_r.openingElement,_r.children,Oi(k.createJsxClosingElement(Oi(J(""),ma,ma)),ma,ma)),_r.openingElement.pos,ma);Wr=Ga([...Wr.slice(0,Wr.length-1),D0],Wr.pos,ma),Pr=_r.closingElement}else Pr=A9(en,he),Hv(en.tagName,Pr.tagName)||(nt&&oE(nt)&&Hv(Pr.tagName,nt.tagName)?te(en.tagName,F.JSX_element_0_has_no_corresponding_closing_tag,$N(Ke,en.tagName)):te(Pr.tagName,F.Expected_corresponding_JSX_closing_tag_for_0,$N(Ke,en.tagName)));Iu=Oi(k.createJsxElement(en,Wr,Pr),Ci)}else en.kind===289?Iu=Oi(k.createJsxFragment(en,jw(en),op(he)),Ci):(H.assert(en.kind===285),Iu=en);if(!Nt&&he&&X()===30){const Wr=typeof Re>"u"?Iu.pos:Re,Pr=Rr(()=>_3(!0,Wr));if(Pr){const _r=fl(28,!1);return TP(_r,Pr.pos,0),le(gs(Ke,Wr),Pr.end,F.JSX_expressions_must_have_one_parent_element),Oi(k.createBinaryExpression(Iu,_r,Pr),Ci)}}return Iu}function Ow(){const he=de(),Re=k.createJsxText(u.getTokenValue(),ei===13);return ei=u.scanJsxToken(),Oi(Re,he)}function p_(he,Re){switch(Re){case 1:if(V7(he))te(he,F.JSX_fragment_has_no_corresponding_closing_tag);else{const nt=he.tagName,Nt=Math.min(gs(Ke,nt.pos),nt.end);le(Nt,nt.end,F.JSX_element_0_has_no_corresponding_closing_tag,$N(Ke,he.tagName))}return;case 31:case 7:return;case 12:case 13:return Ow();case 19:return k9(!1);case 30:return _3(!1,void 0,he);default:return H.assertNever(Re)}}function jw(he){const Re=[],nt=de(),Nt=Vi;for(Vi|=16384;;){const Ci=p_(he,ei=u.reScanJsxToken());if(!Ci||(Re.push(Ci),oE(he)&&(Ci==null?void 0:Ci.kind)===284&&!Hv(Ci.openingElement.tagName,Ci.closingElement.tagName)&&Hv(he.tagName,Ci.closingElement.tagName)))break}return Vi=Nt,Ga(Re,nt)}function EE(){const he=de();return Oi(k.createJsxAttributes(To(13,lz)),he)}function g_(he){const Re=de();if(Fn(30),X()===32)return da(),Oi(k.createJsxOpeningFragment(),Re);const nt=w5(),Nt=Jn&524288?void 0:d6(),Ci=EE();let en;return X()===32?(da(),en=k.createJsxOpeningElement(nt,Nt,Ci)):(Fn(44),Fn(32,void 0,!1)&&(he?ct():da()),en=k.createJsxSelfClosingElement(nt,Nt,Ci)),Oi(en,Re)}function w5(){const he=de(),Re=Vw();if(gg(Re))return Re;let nt=Re;for(;ho(25);)nt=Oi(ge(nt,_i(!0,!1,!1)),he);return nt}function Vw(){const he=de();er();const Re=X()===110,nt=$();return ho(59)?(er(),Oi(k.createJsxNamespacedName(nt,$()),he)):Re?Oi(k.createToken(110),he):nt}function k9(he){const Re=de();if(!Fn(19))return;let nt,Nt;return X()!==20&&(he||(nt=Ko(26)),Nt=n1()),he?Fn(20):Fn(20,void 0,!1)&&da(),Oi(k.createJsxExpression(nt,Nt),Re)}function lz(){if(X()===19)return _b();const he=de();return Oi(k.createJsxAttribute(L0(),F9()),he)}function F9(){if(X()===64){if(Wu()===11)return ur();if(X()===19)return k9(!0);if(X()===30)return _3(!0);Qi(F.or_JSX_element_expected)}}function L0(){const he=de();er();const Re=$();return ho(59)?(er(),Oi(k.createJsxNamespacedName(Re,$()),he)):Re}function _b(){const he=de();Fn(19),Fn(26);const Re=n1();return Fn(20),Oi(k.createJsxSpreadAttribute(Re),he)}function A9(he,Re){const nt=de();Fn(31);const Nt=w5();return Fn(32,void 0,!1)&&(Re||!Hv(he.tagName,Nt)?ct():da()),Oi(k.createJsxClosingElement(Nt),nt)}function op(he){const Re=de();return Fn(31),Fn(32,F.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(he?ct():da()),Oi(k.createJsxJsxClosingFragment(),Re)}function lC(){H.assert(Ie!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");const he=de();Fn(30);const Re=jd();Fn(32);const nt=Fh();return Oi(k.createTypeAssertion(Re,nt),he)}function S9(){return ct(),ph(X())||X()===23||lf()}function cz(){return X()===29&&wn(S9)}function nF(he){if(he.flags&64)return!0;if(O7(he)){let Re=he.expression;for(;O7(Re)&&!(Re.flags&64);)Re=Re.expression;if(Re.flags&64){for(;O7(he);)he.flags|=64,he=he.expression;return!0}}return!1}function ru(he,Re,nt){const Nt=_i(!0,!0,!0),Ci=nt||nF(Re),en=Ci?ae(Re,nt,Nt):ge(Re,Nt);if(Ci&&ea(en.name)&&te(en.name,F.An_optional_chain_cannot_contain_private_identifiers),c5(Re)&&Re.typeArguments){const Iu=Re.typeArguments.pos-1,Wr=gs(Ke,Re.typeArguments.end)+1;le(Iu,Wr,F.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return Oi(en,he)}function C1(he,Re,nt){let Nt;if(X()===24)Nt=fl(80,!0,F.An_element_access_expression_should_take_an_argument);else{const en=Qe(n1);Mm(en)&&(en.text=Zc(en.text)),Nt=en}Fn(24);const Ci=nt||nF(Re)?ne(Re,nt,Nt):Ce(Re,Nt);return Oi(Ci,he)}function za(he,Re,nt){for(;;){let Nt,Ci=!1;if(nt&&cz()?(Nt=Q0(29),Ci=ph(X())):Ci=ho(25),Ci){Re=ru(he,Re,Nt);continue}if((Nt||!Ei())&&ho(23)){Re=C1(he,Re,Nt);continue}if(lf()){Re=!Nt&&Re.kind===233?_E(he,Re.expression,Nt,Re.typeArguments):_E(he,Re,Nt,void 0);continue}if(!Nt){if(X()===54&&!u.hasPrecedingLineBreak()){ct(),Re=Oi(k.createNonNullExpression(Re),he);continue}const en=Rr(Db);if(en){Re=Oi(k.createExpressionWithTypeArguments(Re,en),he);continue}}return Re}}function lf(){return X()===15||X()===16}function _E(he,Re,nt,Nt){const Ci=k.createTaggedTemplateExpression(Re,Nt,X()===15?(du(!0),ur()):Q(!0));return(nt||Re.flags&64)&&(Ci.flags|=64),Ci.questionDotToken=nt,Oi(Ci,he)}function sp(he,Re){for(;;){Re=za(he,Re,!0);let nt;const Nt=Ko(29);if(Nt&&(nt=Rr(Db),lf())){Re=_E(he,Re,Nt,nt);continue}if(nt||X()===21){!Nt&&Re.kind===233&&(nt=Re.typeArguments,Re=Re.expression);const Ci=Un(),en=Nt||nF(Re)?Se(Re,Nt,nt,Ci):ve(Re,nt,Ci);Re=Oi(en,he);continue}if(Nt){const Ci=fl(80,!1,F.Identifier_expected);Re=Oi(ae(Re,Nt,Ci),he)}break}return Re}function Un(){Fn(21);const he=O1(11,B9);return Fn(22),he}function Db(){if(Jn&524288||Ou()!==30)return;ct();const he=O1(20,jd);if(Ui()===32)return ct(),he&&cC()?he:void 0}function cC(){switch(X()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return u.hasPrecedingLineBreak()||iF()||!m3()}function wd(){switch(X()){case 15:u.getTokenFlags()&26656&&du(!1);case 9:case 10:case 11:return ur();case 110:case 108:case 106:case 112:case 97:return Nc();case 21:return DE();case 23:return hD();case 19:return hC();case 134:if(!wn(j0))break;return D3();case 60:return sF();case 86:return Jw();case 100:return D3();case 105:return uF();case 44:case 69:if(Sn()===14)return ur();break;case 16:return Q(!1);case 81:return uu()}return X0(F.Expression_expected)}function DE(){const he=de(),Re=Oe();Fn(21);const nt=Qe(n1);return Fn(22),Ln(Oi(pe(nt),he),Re)}function xE(){const he=de();Fn(26);const Re=kh(!0);return Oi(k.createSpreadElement(Re),he)}function u6(){return X()===26?xE():X()===28?Oi(k.createOmittedExpression(),de()):kh(!0)}function B9(){return Qo(s,u6)}function hD(){const he=de(),Re=u.getTokenStart(),nt=Fn(23),Nt=u.hasPrecedingLineBreak(),Ci=O1(15,u6);return Cl(23,24,nt,Re),Oi(oe(Ci,Nt),he)}function dC(){const he=de(),Re=Oe();if(Ko(26)){const ma=kh(!0);return Ln(Oi(k.createSpreadAssignment(ma),he),Re)}const nt=V1(!0);if(Nu(139))return dp(he,Re,nt,177,0);if(Nu(153))return dp(he,Re,nt,178,0);const Nt=Ko(42),Ci=wo(),en=fn(),Iu=Ko(58),Wr=Ko(54);if(Nt||X()===21||X()===30)return cp(he,Re,nt,Nt,en,Iu,Wr);let Pr;if(Ci&&X()!==59){const ma=Ko(64),D0=ma?Qe(()=>kh(!0)):void 0;Pr=k.createShorthandPropertyAssignment(en,D0),Pr.equalsToken=ma}else{Fn(59);const ma=Qe(()=>kh(!0));Pr=k.createPropertyAssignment(en,ma)}return Pr.modifiers=nt,Pr.questionToken=Iu,Pr.exclamationToken=Wr,Ln(Oi(Pr,he),Re)}function hC(){const he=de(),Re=u.getTokenStart(),nt=Fn(19),Nt=u.hasPrecedingLineBreak(),Ci=O1(12,dC,!0);return Cl(19,20,nt,Re),Oi(se(Ci,Nt),he)}function D3(){const he=Ei();aa(!1);const Re=de(),nt=Oe(),Nt=V1(!1);Fn(100);const Ci=Ko(42),en=Ci?1:0,Iu=Ge(Nt,HP)?2:0,Wr=en&&Iu?ii(E_):en?Xt(E_):Iu?et(E_):E_(),Pr=Xe(),_r=yu(en|Iu),ma=bn(59,!1),D0=r6(en|Iu);aa(he);const Zs=k.createFunctionExpression(Nt,Ci,Wr,Pr,_r,ma,D0);return Ln(Oi(Zs,Re),nt)}function E_(){return os()?sf():void 0}function uF(){const he=de();if(Fn(105),ho(25)){const en=yc();return Oi(k.createMetaProperty(105,en),he)}const Re=de();let nt=za(Re,wd(),!1),Nt;nt.kind===233&&(Nt=nt.typeArguments,nt=nt.expression),X()===29&&Qi(F.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,$N(Ke,nt));const Ci=X()===21?Un():void 0;return Oi(Ne(nt,Nt,Ci),he)}function fD(he,Re){const nt=de(),Nt=Oe(),Ci=u.getTokenStart(),en=Fn(19,Re);if(en||he){const Iu=u.hasPrecedingLineBreak(),Wr=To(1,Zm);Cl(19,20,en,Ci);const Pr=Ln(Oi(fe(Wr,Iu),nt),Nt);return X()===64&&(Qi(F.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),ct()),Pr}else{const Iu=Wf();return Ln(Oi(fe(Iu,void 0),nt),Nt)}}function r6(he,Re){const nt=xi();xa(!!(he&1));const Nt=$i();Ta(!!(he&2));const Ci=an;an=!1;const en=Ei();en&&aa(!1);const Iu=fD(!!(he&16),Re);return en&&aa(!0),an=Ci,xa(nt),Ta(Nt),Iu}function xb(){const he=de(),Re=Oe();return Fn(27),Ln(Oi(k.createEmptyStatement(),he),Re)}function w9(){const he=de(),Re=Oe();Fn(101);const nt=u.getTokenStart(),Nt=Fn(21),Ci=Qe(n1);Cl(21,22,Nt,nt);const en=Zm(),Iu=ho(93)?Zm():void 0;return Ln(Oi(We(Ci,en,Iu),he),Re)}function rF(){const he=de(),Re=Oe();Fn(92);const nt=Zm();Fn(117);const Nt=u.getTokenStart(),Ci=Fn(21),en=Qe(n1);return Cl(21,22,Ci,Nt),ho(27),Ln(Oi(k.createDoStatement(nt,en),he),Re)}function vb(){const he=de(),Re=Oe();Fn(117);const nt=u.getTokenStart(),Nt=Fn(21),Ci=Qe(n1);Cl(21,22,Nt,nt);const en=Zm();return Ln(Oi(Ae(Ci,en),he),Re)}function x4(){const he=de(),Re=Oe();Fn(99);const nt=Ko(135);Fn(21);let Nt;X()!==27&&(X()===115||X()===121||X()===87||X()===160&&wn(mD)||X()===135&&wn(N9)?Nt=kb(!0):Nt=_t(n1));let Ci;if(nt?Fn(165):ho(165)){const en=Qe(()=>kh(!0));Fn(22),Ci=He(nt,Nt,en,Zm())}else if(ho(103)){const en=Qe(n1);Fn(22),Ci=k.createForInStatement(Nt,en,Zm())}else{Fn(27);const en=X()!==27&&X()!==22?Qe(n1):void 0;Fn(27);const Iu=X()!==22?Qe(n1):void 0;Fn(22),Ci=De(Nt,en,Iu,Zm())}return Ln(Oi(Ci,he),Re)}function fC(he){const Re=de(),nt=Oe();Fn(he===252?83:88);const Nt=Pc()?void 0:X0();hl();const Ci=he===252?k.createBreakStatement(Nt):k.createContinueStatement(Nt);return Ln(Oi(Ci,Re),nt)}function Fc(){const he=de(),Re=Oe();Fn(107);const nt=Pc()?void 0:Qe(n1);return hl(),Ln(Oi(k.createReturnStatement(nt),he),Re)}function md(){const he=de(),Re=Oe();Fn(118);const nt=u.getTokenStart(),Nt=Fn(21),Ci=Qe(n1);Cl(21,22,Nt,nt);const en=bo(67108864,Zm);return Ln(Oi(k.createWithStatement(Ci,en),he),Re)}function T9(){const he=de(),Re=Oe();Fn(84);const nt=Qe(n1);Fn(59);const Nt=To(3,Zm);return Ln(Oi(k.createCaseClause(nt,Nt),he),Re)}function j1(){const he=de();Fn(90),Fn(59);const Re=To(3,Zm);return Oi(k.createDefaultClause(Re),he)}function Ff(){return X()===84?T9():j1()}function Cb(){const he=de();Fn(19);const Re=To(2,Ff);return Fn(20),Oi(k.createCaseBlock(Re),he)}function v4(){const he=de(),Re=Oe();Fn(109),Fn(21);const nt=Qe(n1);Fn(22);const Nt=Cb();return Ln(Oi(k.createSwitchStatement(nt,Nt),he),Re)}function mC(){const he=de(),Re=Oe();Fn(111);let nt=u.hasPrecedingLineBreak()?void 0:Qe(n1);return nt===void 0&&(Ni++,nt=Oi(J(""),de())),Il()||Qa(nt),Ln(Oi(k.createThrowStatement(nt),he),Re)}function T5(){const he=de(),Re=Oe();Fn(113);const nt=fD(!1),Nt=X()===85?u1():void 0;let Ci;return(!Nt||X()===98)&&(Fn(98,F.catch_or_finally_expected),Ci=fD(!1)),Ln(Oi(k.createTryStatement(nt,Nt,Ci),he),Re)}function u1(){const he=de();Fn(85);let Re;ho(21)?(Re=cf(),Fn(22)):Re=void 0;const nt=fD(!1);return Oi(k.createCatchClause(Re,nt),he)}function aF(){const he=de(),Re=Oe();return Fn(89),hl(),Ln(Oi(k.createDebuggerStatement(),he),Re)}function lp(){const he=de();let Re=Oe(),nt;const Nt=X()===21,Ci=Qe(n1);return at(Ci)&&ho(59)?nt=k.createLabeledStatement(Ci,Zm()):(Il()||Qa(Ci),nt=Be(Ci),Nt&&(Re=!1)),Ln(Oi(nt,he),Re)}function a6(){return ct(),ph(X())&&!u.hasPrecedingLineBreak()}function Hw(){return ct(),X()===86&&!u.hasPrecedingLineBreak()}function j0(){return ct(),X()===100&&!u.hasPrecedingLineBreak()}function Kw(){return ct(),(ph(X())||X()===9||X()===10||X()===11)&&!u.hasPrecedingLineBreak()}function oF(){for(;;)switch(X()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return _m();case 135:return o6();case 120:case 156:return S5();case 144:case 145:return z9();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:const he=X();if(ct(),u.hasPrecedingLineBreak())return!1;if(he===138&&X()===156)return!0;continue;case 162:return ct(),X()===19||X()===80||X()===95;case 102:return ct(),X()===11||X()===42||X()===19||ph(X());case 95:let Re=ct();if(Re===156&&(Re=wn(ct)),Re===64||Re===42||Re===19||Re===90||Re===130||Re===60)return!0;continue;case 126:ct();continue;default:return!1}}function pC(){return wn(oF)}function L9(){switch(X()){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 pC()||wn(cb);case 87:case 95:return pC();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 pC()||!wn(a6);default:return m3()}}function Wh(){return ct(),os()||X()===19||X()===23}function x3(){return wn(Wh)}function mD(){return bb(!0)}function bb(he){return ct(),he&&X()===165?!1:(os()||X()===19)&&!u.hasPrecedingLineBreak()}function _m(){return wn(bb)}function N9(he){return ct()===160?bb(he):!1}function o6(){return wn(N9)}function Zm(){switch(X()){case 27:return xb();case 19:return fD(!1);case 115:return EC(de(),Oe(),void 0);case 121:if(x3())return EC(de(),Oe(),void 0);break;case 135:if(o6())return EC(de(),Oe(),void 0);break;case 160:if(_m())return EC(de(),Oe(),void 0);break;case 100:return Fb(de(),Oe(),void 0);case 86:return b4(de(),Oe(),void 0);case 101:return w9();case 92:return rF();case 117:return vb();case 99:return x4();case 88:return fC(251);case 83:return fC(252);case 107:return Fc();case 118:return md();case 109:return v4();case 111:return mC();case 113:case 85:case 98:return T5();case 89:return aF();case 60:return L5();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(pC())return L5();break}return lp()}function yb(he){return he.kind===138}function L5(){const he=de(),Re=Oe(),nt=V1(!0);if(Ge(nt,yb)){const Ci=dz(he);if(Ci)return Ci;for(const en of nt)en.flags|=33554432;return bo(33554432,()=>P9(he,Re,nt))}else return P9(he,Re,nt)}function dz(he){return bo(33554432,()=>{const Re=mc(Vi,he);if(Re)return bl(Re)})}function P9(he,Re,nt){switch(X()){case 115:case 121:case 87:case 160:case 135:return EC(he,Re,nt);case 100:return Fb(he,Re,nt);case 86:return b4(he,Re,nt);case 120:return Ht(he,Re,nt);case 156:return ji(he,Re,nt);case 94:return $r(he,Re,nt);case 162:case 144:case 145:return Af(he,Re,nt);case 102:return P5(he,Re,nt);case 95:switch(ct(),X()){case 90:case 64:return gte(he,Re,nt);case 130:return h6(he,Re,nt);default:return vC(he,Re,nt)}default:if(nt){const Nt=fl(282,!0,F.Declaration_expected);return wP(Nt,he),Nt.modifiers=nt,Nt}return}}function M9(){return ct()===11}function z9(){return ct(),!u.hasPrecedingLineBreak()&&(wo()||X()===11)}function gC(he,Re){if(X()!==19){if(he&4){_u();return}if(Pc()){hl();return}}return r6(he,Re)}function $f(){const he=de();if(X()===28)return Oi(k.createOmittedExpression(),he);const Re=Ko(26),nt=Du(),Nt=D4();return Oi(k.createBindingElement(Re,void 0,nt,Nt),he)}function v3(){const he=de(),Re=Ko(26),nt=os();let Nt=fn(),Ci;nt&&X()!==59?(Ci=Nt,Nt=void 0):(Fn(59),Ci=Du());const en=D4();return Oi(k.createBindingElement(Re,Nt,Ci,en),he)}function I9(){const he=de();Fn(19);const Re=Qe(()=>O1(9,v3));return Fn(20),Oi(k.createObjectBindingPattern(Re),he)}function R9(){const he=de();Fn(23);const Re=Qe(()=>O1(10,$f));return Fn(24),Oi(k.createArrayBindingPattern(Re),he)}function Ws(){return X()===19||X()===23||X()===81||os()}function Du(he){return X()===23?R9():X()===19?I9():sf(he)}function Dm(){return cf(!0)}function cf(he){const Re=de(),nt=Oe(),Nt=Du(F.Private_identifiers_are_not_allowed_in_variable_declarations);let Ci;he&&Nt.kind===80&&X()===54&&!u.hasPrecedingLineBreak()&&(Ci=Nc());const en=F5(),Iu=tF(X())?void 0:D4(),Wr=Je(Nt,Ci,en,Iu);return Ln(Oi(Wr,Re),nt)}function kb(he){const Re=de();let nt=0;switch(X()){case 115:break;case 121:nt|=1;break;case 87:nt|=2;break;case 160:nt|=4;break;case 135:H.assert(o6()),nt|=6,ct();break;default:H.fail()}ct();let Nt;if(X()===165&&wn(Ww))Nt=Wf();else{const Ci=pt();sa(he),Nt=O1(8,he?cf:Dm),sa(Ci)}return Oi(mt(Nt,nt),Re)}function Ww(){return jh()&&ct()===22}function EC(he,Re,nt){const Nt=kb(!1);hl();const Ci=xe(nt,Nt);return Ln(Oi(Ci,he),Re)}function Fb(he,Re,nt){const Nt=$i(),Ci=iE(nt);Fn(100);const en=Ko(42),Iu=Ci&2048?E_():sf(),Wr=en?1:0,Pr=Ci&1024?2:0,_r=Xe();Ci&32&&Ta(!0);const ma=yu(Wr|Pr),D0=bn(59,!1),Zs=gC(Wr|Pr,F.or_expected);Ta(Nt);const Gs=k.createFunctionDeclaration(nt,en,Iu,_r,ma,D0,Zs);return Ln(Oi(Gs,he),Re)}function s6(){if(X()===137)return Fn(137);if(X()===11&&wn(ct)===21)return Rr(()=>{const he=ur();return he.text==="constructor"?he:void 0})}function Ym(he,Re,nt){return Rr(()=>{if(s6()){const Nt=Xe(),Ci=yu(0),en=bn(59,!1),Iu=gC(0,F.or_expected),Wr=k.createConstructorDeclaration(nt,Ci,Iu);return Wr.typeParameters=Nt,Wr.type=en,Ln(Oi(Wr,he),Re)}})}function cp(he,Re,nt,Nt,Ci,en,Iu,Wr){const Pr=Nt?1:0,_r=Ge(nt,HP)?2:0,ma=Xe(),D0=yu(Pr|_r),Zs=bn(59,!1),Gs=gC(Pr|_r,Wr),y4=k.createMethodDeclaration(nt,Nt,Ci,en,ma,D0,Zs,Gs);return y4.exclamationToken=Iu,Ln(Oi(y4,he),Re)}function l6(he,Re,nt,Nt,Ci){const en=!Ci&&!u.hasPrecedingLineBreak()?Ko(54):void 0,Iu=F5(),Wr=Qo(90112,D4);Tl(Nt,Iu,Wr);const Pr=k.createPropertyDeclaration(nt,Nt,Ci||en,Iu,Wr);return Ln(Oi(Pr,he),Re)}function qp(he,Re,nt){const Nt=Ko(42),Ci=fn(),en=Ko(58);return Nt||X()===21||X()===30?cp(he,Re,nt,Nt,Ci,en,void 0,F.or_expected):l6(he,Re,nt,Ci,en)}function dp(he,Re,nt,Nt,Ci){const en=fn(),Iu=Xe(),Wr=yu(0),Pr=bn(59,!1),_r=gC(Ci),ma=Nt===177?k.createGetAccessorDeclaration(nt,en,Wr,Pr,_r):k.createSetAccessorDeclaration(nt,en,Wr,_r);return ma.typeParameters=Iu,jf(ma)&&(ma.type=Pr),Ln(Oi(ma,he),Re)}function N5(){let he;if(X()===60)return!0;for(;XD(X());){if(he=X(),Yse(he))return!0;ct()}if(X()===42||(tt()&&(he=X(),ct()),X()===23))return!0;if(he!==void 0){if(!uf(he)||he===153||he===139)return!0;switch(X()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return Pc()}}return!1}function Ab(he,Re,nt){Q0(126);const Nt=zc(),Ci=Ln(Oi(k.createClassStaticBlockDeclaration(Nt),he),Re);return Ci.modifiers=nt,Ci}function zc(){const he=xi(),Re=$i();xa(!1),Ta(!0);const nt=fD(!1);return xa(he),Ta(Re),nt}function hz(){if($i()&&X()===135){const he=de(),Re=X0(F.Expression_expected);ct();const nt=za(he,Re,!0);return sp(he,nt)}return E3()}function C4(){const he=de();if(!ho(60))return;const Re=Pe(hz);return Oi(k.createDecorator(Re),he)}function Gw(he,Re,nt){const Nt=de(),Ci=X();if(X()===87&&Re){if(!Rr(Mr))return}else{if(nt&&X()===126&&wn(CE))return;if(he&&X()===126)return;if(!ud())return}return Oi(Y(Ci),Nt)}function V1(he,Re,nt){const Nt=de();let Ci,en,Iu,Wr=!1,Pr=!1,_r=!1;if(he&&X()===60)for(;en=C4();)Ci=Di(Ci,en);for(;Iu=Gw(Wr,Re,nt);)Iu.kind===126&&(Wr=!0),Ci=Di(Ci,Iu),Pr=!0;if(Pr&&he&&X()===60)for(;en=C4();)Ci=Di(Ci,en),_r=!0;if(_r)for(;Iu=Gw(Wr,Re,nt);)Iu.kind===126&&(Wr=!0),Ci=Di(Ci,Iu);return Ci&&Ga(Ci,Nt)}function _C(){let he;if(X()===134){const Re=de();ct();const nt=Oi(Y(134),Re);he=Ga([nt],Re)}return he}function Sb(){const he=de(),Re=Oe();if(X()===27)return ct(),Ln(Oi(k.createSemicolonClassElement(),he),Re);const nt=V1(!0,!0,!0);if(X()===126&&wn(CE))return Ab(he,Re,nt);if(Nu(139))return dp(he,Re,nt,177,0);if(Nu(153))return dp(he,Re,nt,178,0);if(X()===137||X()===11){const Nt=Ym(he,Re,nt);if(Nt)return Nt}if(p0())return Gf(he,Re,nt);if(ph(X())||X()===11||X()===9||X()===42||X()===23)if(Ge(nt,yb)){for(const Ci of nt)Ci.flags|=33554432;return bo(33554432,()=>qp(he,Re,nt))}else return qp(he,Re,nt);if(nt){const Nt=fl(80,!0,F.Declaration_expected);return l6(he,Re,nt,Nt,void 0)}return H.fail("Should not have attempted to parse class member declaration.")}function sF(){const he=de(),Re=Oe(),nt=V1(!0);if(X()===86)return Ol(he,Re,nt,231);const Nt=fl(282,!0,F.Expression_expected);return wP(Nt,he),Nt.modifiers=nt,Nt}function Jw(){return Ol(de(),Oe(),void 0,231)}function b4(he,Re,nt){return Ol(he,Re,nt,263)}function Ol(he,Re,nt,Nt){const Ci=$i();Fn(86);const en=vE(),Iu=Xe();Ge(nt,L7)&&Ta(!0);const Wr=C3();let Pr;Fn(19)?(Pr=be(),Fn(20)):Pr=Wf(),Ta(Ci);const _r=Nt===263?k.createClassDeclaration(nt,en,Iu,Wr,Pr):k.createClassExpression(nt,en,Iu,Wr,Pr);return Ln(Oi(_r,he),Re)}function vE(){return os()&&!c6()?yh(os()):void 0}function c6(){return X()===119&&wn(rh)}function C3(){if(O())return To(22,DC)}function DC(){const he=de(),Re=X();H.assert(Re===96||Re===119),ct();const nt=O1(7,$w);return Oi(k.createHeritageClause(Re,nt),he)}function $w(){const he=de(),Re=E3();if(Re.kind===233)return Re;const nt=d6();return Oi(k.createExpressionWithTypeArguments(Re,nt),he)}function d6(){return X()===30?Hh(20,jd,30,32):void 0}function O(){return X()===96||X()===119}function be(){return To(5,Sb)}function Ht(he,Re,nt){Fn(120);const Nt=X0(),Ci=Xe(),en=C3(),Iu=$k(),Wr=k.createInterfaceDeclaration(nt,Nt,Ci,en,Iu);return Ln(Oi(Wr,he),Re)}function ji(he,Re,nt){Fn(156),u.hasPrecedingLineBreak()&&Qi(F.Line_break_not_permitted_here);const Nt=X0(),Ci=Xe();Fn(64);const en=X()===141&&Rr(qk)||jd();hl();const Iu=k.createTypeAliasDeclaration(nt,Nt,Ci,en);return Ln(Oi(Iu,he),Re)}function Fu(){const he=de(),Re=Oe(),nt=fn(),Nt=Qe(D4);return Ln(Oi(k.createEnumMember(nt,Nt),he),Re)}function $r(he,Re,nt){Fn(94);const Nt=X0();let Ci;Fn(19)?(Ci=me(()=>O1(6,Fu)),Fn(20)):Ci=Wf();const en=k.createEnumDeclaration(nt,Nt,Ci);return Ln(Oi(en,he),Re)}function kr(){const he=de();let Re;return Fn(19)?(Re=To(1,Zm),Fn(20)):Re=Wf(),Oi(k.createModuleBlock(Re),he)}function _a(he,Re,nt,Nt){const Ci=Nt&32,en=Nt&8?yc():X0(),Iu=ho(25)?_a(de(),!1,void 0,8|Ci):kr(),Wr=k.createModuleDeclaration(nt,en,Iu,Nt);return Ln(Oi(Wr,he),Re)}function Ao(he,Re,nt){let Nt=0,Ci;X()===162?(Ci=X0(),Nt|=2048):(Ci=ur(),Ci.text=Zc(Ci.text));let en;X()===19?en=kr():hl();const Iu=k.createModuleDeclaration(nt,Ci,en,Nt);return Ln(Oi(Iu,he),Re)}function Af(he,Re,nt){let Nt=0;if(X()===162)return Ao(he,Re,nt);if(ho(145))Nt|=32;else if(Fn(144),X()===11)return Ao(he,Re,nt);return _a(he,Re,nt,Nt)}function Uf(){return X()===149&&wn(Sr)}function Sr(){return ct()===21}function CE(){return ct()===19}function gn(){return ct()===44}function h6(he,Re,nt){Fn(130),Fn(145);const Nt=X0();hl();const Ci=k.createNamespaceExportDeclaration(Nt);return Ci.modifiers=nt,Ln(Oi(Ci,he),Re)}function P5(he,Re,nt){Fn(102);const Nt=u.getTokenFullStart();let Ci;wo()&&(Ci=X0());let en=!1;if(X()!==161&&(Ci==null?void 0:Ci.escapedText)==="type"&&(wo()||O9())&&(en=!0,Ci=wo()?X0():void 0),Ci&&!cF())return __(he,Re,nt,Ci,en);let Iu;(Ci||X()===42||X()===19)&&(Iu=M5(Ci,Nt,en),Fn(161));const Wr=j9(),Pr=X();let _r;(Pr===118||Pr===132)&&!u.hasPrecedingLineBreak()&&(_r=xC(Pr)),hl();const ma=k.createImportDeclaration(nt,Iu,Wr,_r);return Ln(Oi(ma,he),Re)}function lF(){const he=de(),Re=ph(X())?yc():Rl(11);Fn(59);const nt=kh(!0);return Oi(k.createImportAttribute(Re,nt),he)}function xC(he,Re){const nt=de();Re||Fn(he);const Nt=u.getTokenStart();if(Fn(19)){const Ci=u.hasPrecedingLineBreak(),en=O1(24,lF,!0);if(!Fn(20)){const Iu=Zu(st);Iu&&Iu.code===F._0_expected.code&&Es(Iu,hB(Ye,Ke,Nt,1,F.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return Oi(k.createImportAttributes(en,Ci,he),nt)}else{const Ci=Ga([],de(),void 0,!1);return Oi(k.createImportAttributes(Ci,!1,he),nt)}}function O9(){return X()===42||X()===19}function cF(){return X()===28||X()===161}function __(he,Re,nt,Nt,Ci){Fn(64);const en=b3();hl();const Iu=k.createImportEqualsDeclaration(nt,Ci,Nt,en);return Ln(Oi(Iu,he),Re)}function M5(he,Re,nt){let Nt;return(!he||ho(28))&&(Nt=X()===42?YK():fz(275)),Oi(k.createImportClause(nt,he,Nt),Re)}function b3(){return Uf()?Uw():Ee(!1)}function Uw(){const he=de();Fn(149),Fn(21);const Re=j9();return Fn(22),Oi(k.createExternalModuleReference(Re),he)}function j9(){if(X()===11){const he=ur();return he.text=Zc(he.text),he}else return n1()}function YK(){const he=de();Fn(42),Fn(130);const Re=X0();return Oi(k.createNamespaceImport(Re),he)}function fz(he){const Re=de(),nt=he===275?k.createNamedImports(Hh(23,pD,19,20)):k.createNamedExports(Hh(23,D_,19,20));return Oi(nt,Re)}function D_(){const he=Oe();return Ln(qw(281),he)}function pD(){return qw(276)}function qw(he){const Re=de();let nt=uf(X())&&!wo(),Nt=u.getTokenStart(),Ci=u.getTokenEnd(),en=!1,Iu,Wr=!0,Pr=yc();if(Pr.escapedText==="type")if(X()===130){const D0=yc();if(X()===130){const Zs=yc();ph(X())?(en=!0,Iu=D0,Pr=ma(),Wr=!1):(Iu=Pr,Pr=Zs,Wr=!1)}else ph(X())?(Iu=Pr,Wr=!1,Pr=ma()):(en=!0,Pr=D0)}else ph(X())&&(en=!0,Pr=ma());Wr&&X()===130&&(Iu=Pr,Fn(130),Pr=ma()),he===276&&nt&&le(Nt,Ci,F.Identifier_expected);const _r=he===276?k.createImportSpecifier(en,Iu,Pr):k.createExportSpecifier(en,Iu,Pr);return Oi(_r,Re);function ma(){return nt=uf(X())&&!wo(),Nt=u.getTokenStart(),Ci=u.getTokenEnd(),yc()}}function x_(he){return Oi(k.createNamespaceExport(yc()),he)}function vC(he,Re,nt){const Nt=$i();Ta(!0);let Ci,en,Iu;const Wr=ho(156),Pr=de();ho(42)?(ho(130)&&(Ci=x_(Pr)),Fn(161),en=j9()):(Ci=fz(279),(X()===161||X()===11&&!u.hasPrecedingLineBreak())&&(Fn(161),en=j9()));const _r=X();en&&(_r===118||_r===132)&&!u.hasPrecedingLineBreak()&&(Iu=xC(_r)),hl(),Ta(Nt);const ma=k.createExportDeclaration(nt,Wr,Ci,en,Iu);return Ln(Oi(ma,he),Re)}function gte(he,Re,nt){const Nt=$i();Ta(!0);let Ci;ho(64)?Ci=!0:Fn(90);const en=kh(!0);hl(),Ta(Nt);const Iu=k.createExportAssignment(nt,Ci,en);return Ln(Oi(Iu,he),Re)}let bE;(he=>{he[he.SourceElements=0]="SourceElements",he[he.BlockStatements=1]="BlockStatements",he[he.SwitchClauses=2]="SwitchClauses",he[he.SwitchClauseStatements=3]="SwitchClauseStatements",he[he.TypeMembers=4]="TypeMembers",he[he.ClassMembers=5]="ClassMembers",he[he.EnumMembers=6]="EnumMembers",he[he.HeritageClauseElement=7]="HeritageClauseElement",he[he.VariableDeclarations=8]="VariableDeclarations",he[he.ObjectBindingElements=9]="ObjectBindingElements",he[he.ArrayBindingElements=10]="ArrayBindingElements",he[he.ArgumentExpressions=11]="ArgumentExpressions",he[he.ObjectLiteralMembers=12]="ObjectLiteralMembers",he[he.JsxAttributes=13]="JsxAttributes",he[he.JsxChildren=14]="JsxChildren",he[he.ArrayLiteralMembers=15]="ArrayLiteralMembers",he[he.Parameters=16]="Parameters",he[he.JSDocParameters=17]="JSDocParameters",he[he.RestProperties=18]="RestProperties",he[he.TypeParameters=19]="TypeParameters",he[he.TypeArguments=20]="TypeArguments",he[he.TupleElementTypes=21]="TupleElementTypes",he[he.HeritageClauses=22]="HeritageClauses",he[he.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",he[he.ImportAttributes=24]="ImportAttributes",he[he.JSDocComment=25]="JSDocComment",he[he.Count=26]="Count"})(bE||(bE={}));let dF;(he=>{he[he.False=0]="False",he[he.True=1]="True",he[he.Unknown=2]="Unknown"})(dF||(dF={}));let QK;(he=>{function Re(_r,ma,D0){Fr("file.js",_r,99,void 0,1,0),u.setText(_r,ma,D0),ei=u.scan();const Zs=nt(),Gs=Cn("file.js",99,1,!1,[],Y(1),0,Rs),y4=v7(st,Gs);return Bt&&(Gs.jsDocDiagnostics=v7(Bt,Gs)),wa(),Zs?{jsDocTypeExpression:Zs,diagnostics:y4}:void 0}he.parseJSDocTypeExpressionForTests=Re;function nt(_r){const ma=de(),D0=(_r?ho:Fn)(19),Zs=bo(16777216,bg);(!_r||D0)&&hd(20);const Gs=k.createJSDocTypeExpression(Zs);return Dn(Gs),Oi(Gs,ma)}he.parseJSDocTypeExpression=nt;function Nt(){const _r=de(),ma=ho(19),D0=de();let Zs=Ee(!1);for(;X()===81;)Er(),Qt(),Zs=Oi(k.createJSDocMemberName(Zs,X0()),D0);ma&&hd(20);const Gs=k.createJSDocNameReference(Zs);return Dn(Gs),Oi(Gs,_r)}he.parseJSDocNameReference=Nt;function Ci(_r,ma,D0){Fr("",_r,99,void 0,1,0);const Zs=bo(16777216,()=>Pr(ma,D0)),y4=v7(st,{languageVariant:0,text:_r});return wa(),Zs?{jsDoc:Zs,diagnostics:y4}:void 0}he.parseIsolatedJSDocComment=Ci;function en(_r,ma,D0){const Zs=ei,Gs=st.length,y4=Pi,Zp=bo(16777216,()=>Pr(ma,D0));return ks(Zp,_r),Jn&524288&&(Bt||(Bt=[]),Bt.push(...st)),ei=Zs,st.length=Gs,Pi=y4,Zp}he.parseJSDocComment=en;let Iu;(_r=>{_r[_r.BeginningOfLine=0]="BeginningOfLine",_r[_r.SawAsterisk=1]="SawAsterisk",_r[_r.SavingComments=2]="SavingComments",_r[_r.SavingBackticks=3]="SavingBackticks"})(Iu||(Iu={}));let Wr;(_r=>{_r[_r.Property=1]="Property",_r[_r.Parameter=2]="Parameter",_r[_r.CallbackParameter=4]="CallbackParameter"})(Wr||(Wr={}));function Pr(_r=0,ma){const D0=Ke,Zs=ma===void 0?D0.length:_r+ma;if(ma=Zs-_r,H.assert(_r>=0),H.assert(_r<=Zs),H.assert(Zs<=D0.length),!Uce(D0,_r))return;let Gs,y4,Zp,f6,y3,Vd=[];const gD=[],mz=Vi;Vi|=1<<25;const Zw=u.scanRange(_r+3,ma-5,Yw);return Vi=mz,Zw;function Yw(){let sn=1,Xu,Ku=_r-(D0.lastIndexOf(` +`,_r)+1)+4;function jr(x0){Xu||(Xu=Ku),Vd.push(x0),Ku+=x0.length}for(Qt();Bb(5););Bb(4)&&(sn=0,Ku=0);e:for(;;){switch(X()){case 60:Ete(Vd),y3||(y3=de()),_te(Ez(Ku)),sn=0,Xu=void 0;break;case 4:Vd.push(u.getTokenText()),sn=0,Ku=0;break;case 42:const x0=u.getTokenText();sn===1?(sn=2,jr(x0)):(H.assert(sn===0),sn=1,Ku+=x0.length);break;case 5:H.assert(sn!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");const Yc=u.getTokenText();Xu!==void 0&&Ku+Yc.length>Xu&&Vd.push(Yc.slice(Xu-Ku)),Ku+=Yc.length;break;case 1:break e;case 82:sn=2,jr(u.getTokenValue());break;case 19:sn=2;const _D=u.getTokenFullStart(),C_=u.getTokenEnd()-1,Qc=zs(C_);if(Qc){f6||pz(Vd),gD.push(Oi(k.createJSDocText(Vd.join("")),f6??_r,_D)),gD.push(Qc),Vd=[],f6=u.getTokenEnd();break}default:sn=2,jr(u.getTokenText());break}sn===2?Ti(!1):Qt()}const Kr=Vd.join("").trimEnd();gD.length&&Kr.length&&gD.push(Oi(k.createJSDocText(Kr),f6??_r,y3)),gD.length&&Gs&&H.assertIsDefined(y3,"having parsed tags implies that the end of the comment span should be set");const Os=Gs&&Ga(Gs,y4,Zp);return Oi(k.createJSDocComment(gD.length?Ga(gD,_r,y3):Kr.length?Kr:void 0,Os),_r,Zs)}function pz(sn){for(;sn.length&&(sn[0]===` +`||sn[0]==="\r");)sn.shift()}function Ete(sn){for(;sn.length;){const Xu=sn[sn.length-1].trimEnd();if(Xu==="")sn.pop();else if(Xu.lengthYc&&(jr.push(z5.slice(Yc-sn)),x0=2),sn+=z5.length;break;case 19:x0=2;const XK=u.getTokenFullStart(),tT=u.getTokenEnd()-1,pF=zs(tT);pF?(Kr.push(Oi(k.createJSDocText(jr.join("")),Os??Ku,XK)),Kr.push(pF),jr=[],Os=u.getTokenEnd()):_D(u.getTokenText());break;case 62:x0===3?x0=2:x0=3,_D(u.getTokenText());break;case 82:x0!==3&&(x0=2),_D(u.getTokenValue());break;case 42:if(x0===0){x0=1,sn+=1;break}default:x0!==3&&(x0=2),_D(u.getTokenText());break}x0===2||x0===3?C_=Ti(x0===3):C_=Qt()}pz(jr);const Qc=jr.join("").trimEnd();if(Kr.length)return Qc.length&&Kr.push(Oi(k.createJSDocText(Qc),Os??Ku)),Ga(Kr,Ku,u.getTokenEnd());if(Qc.length)return Qc}function zs(sn){const Xu=Rr(Ic);if(!Xu)return;Qt(),Qm();const Ku=de();let jr=ph(X())?Ee(!0):void 0;if(jr)for(;X()===81;)Er(),Qt(),jr=Oi(k.createJSDocMemberName(jr,X0()),Ku);const Kr=[];for(;X()!==20&&X()!==4&&X()!==1;)Kr.push(u.getTokenText()),Qt();const Os=Xu==="link"?k.createJSDocLink:Xu==="linkcode"?k.createJSDocLinkCode:k.createJSDocLinkPlain;return Oi(Os(jr,Kr.join("")),sn,u.getTokenEnd())}function Ic(){if(ED(),X()===19&&Qt()===60&&ph(Qt())){const sn=u.getTokenValue();if(m6(sn))return sn}}function m6(sn){return sn==="link"||sn==="linkcode"||sn==="linkplain"}function hF(sn,Xu,Ku,jr){return Oi(k.createJSDocUnknownTag(Xu,k4(sn,de(),Ku,jr)),sn)}function _te(sn){sn&&(Gs?Gs.push(sn):(Gs=[sn],y4=sn.pos),Zp=sn.end)}function v_(){return ED(),X()===19?nt():void 0}function V9(){const sn=Bb(23);sn&&Qm();const Xu=Bb(62),Ku=Dz();return Xu&&Wo(62),sn&&(Qm(),Ko(64)&&n1(),Fn(24)),{name:Ku,isBracketed:sn}}function N(sn){switch(sn.kind){case 151:return!0;case 188:return N(sn.elementType);default:return tp(sn)&&at(sn.typeName)&&sn.typeName.escapedText==="Object"&&!sn.typeArguments}}function W(sn,Xu,Ku,jr){let Kr=v_(),Os=!Kr;ED();const{name:x0,isBracketed:Yc}=V9(),_D=ED();Os&&!wn(Ic)&&(Kr=v_());const C_=k4(sn,de(),jr,_D),Qc=ee(Kr,x0,Ku,jr);Qc&&(Kr=Qc,Os=!0);const z5=Ku===1?k.createJSDocPropertyTag(Xu,x0,Yc,Kr,Os,C_):k.createJSDocParameterTag(Xu,x0,Yc,Kr,Os,C_);return Oi(z5,sn)}function ee(sn,Xu,Ku,jr){if(sn&&N(sn.type)){const Kr=de();let Os,x0;for(;Os=Rr(()=>Wn(Ku,jr,Xu));)Os.kind===348||Os.kind===355?x0=Di(x0,Os):Os.kind===352&&te(Os.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(x0){const Yc=Oi(k.createJSDocTypeLiteral(x0,sn.type.kind===188),Kr);return Oi(k.createJSDocTypeExpression(Yc),Kr)}}}function ke(sn,Xu,Ku,jr){Ge(Gs,DY)&&le(Xu.pos,u.getTokenStart(),F._0_tag_already_specified,Qr(Xu.escapedText));const Kr=v_();return Oi(k.createJSDocReturnTag(Xu,Kr,k4(sn,de(),Ku,jr)),sn)}function dt(sn,Xu,Ku,jr){Ge(Gs,eM)&&le(Xu.pos,u.getTokenStart(),F._0_tag_already_specified,Qr(Xu.escapedText));const Kr=nt(!0),Os=Ku!==void 0&&jr!==void 0?k4(sn,de(),Ku,jr):void 0;return Oi(k.createJSDocTypeTag(Xu,Kr,Os),sn)}function Si(sn,Xu,Ku,jr){const Os=X()===23||wn(()=>Qt()===60&&ph(Qt())&&m6(u.getTokenValue()))?void 0:Nt(),x0=Ku!==void 0&&jr!==void 0?k4(sn,de(),Ku,jr):void 0;return Oi(k.createJSDocSeeTag(Xu,Os,x0),sn)}function au(sn,Xu,Ku,jr){const Kr=v_(),Os=k4(sn,de(),Ku,jr);return Oi(k.createJSDocThrowsTag(Xu,Kr,Os),sn)}function Ia(sn,Xu,Ku,jr){const Kr=de(),Os=n0();let x0=u.getTokenFullStart();const Yc=k4(sn,x0,Ku,jr);Yc||(x0=u.getTokenFullStart());const _D=typeof Yc!="string"?Ga(mi([Oi(Os,Kr,x0)],Yc),Kr):Os.text+Yc;return Oi(k.createJSDocAuthorTag(Xu,_D),sn)}function n0(){const sn=[];let Xu=!1,Ku=u.getToken();for(;Ku!==1&&Ku!==4;){if(Ku===30)Xu=!0;else{if(Ku===60&&!Xu)break;if(Ku===32&&Xu){sn.push(u.getTokenText()),u.resetTokenState(u.getTokenEnd());break}}sn.push(u.getTokenText()),Ku=Qt()}return k.createJSDocText(sn.join(""))}function Xm(sn,Xu,Ku,jr){const Kr=CC();return Oi(k.createJSDocImplementsTag(Xu,Kr,k4(sn,de(),Ku,jr)),sn)}function p6(sn,Xu,Ku,jr){const Kr=CC();return Oi(k.createJSDocAugmentsTag(Xu,Kr,k4(sn,de(),Ku,jr)),sn)}function g6(sn,Xu,Ku,jr){const Kr=nt(!1),Os=Ku!==void 0&&jr!==void 0?k4(sn,de(),Ku,jr):void 0;return Oi(k.createJSDocSatisfiesTag(Xu,Kr,Os),sn)}function CC(){const sn=ho(19),Xu=de(),Ku=vge();u.setInJSDocType(!0);const jr=d6();u.setInJSDocType(!1);const Kr=k.createExpressionWithTypeArguments(Ku,jr),Os=Oi(Kr,Xu);return sn&&Fn(20),Os}function vge(){const sn=de();let Xu=wb();for(;ho(25);){const Ku=wb();Xu=Oi(ge(Xu,Ku),sn)}return Xu}function fF(sn,Xu,Ku,jr,Kr){return Oi(Xu(Ku,k4(sn,de(),jr,Kr)),sn)}function _z(sn,Xu,Ku,jr){const Kr=nt(!0);return Qm(),Oi(k.createJSDocThisTag(Xu,Kr,k4(sn,de(),Ku,jr)),sn)}function MNe(sn,Xu,Ku,jr){const Kr=nt(!0);return Qm(),Oi(k.createJSDocEnumTag(Xu,Kr,k4(sn,de(),Ku,jr)),sn)}function Cge(sn,Xu,Ku,jr){let Kr=v_();ED();const Os=Dte();Qm();let x0=Qw(Ku),Yc;if(!Kr||N(Kr.type)){let C_,Qc,z5,XK=!1;for(;(C_=Rr(()=>mF(Ku)))&&C_.kind!==352;)if(XK=!0,C_.kind===351)if(Qc){const tT=Qi(F.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);tT&&Es(tT,hB(Ye,Ke,0,0,F.The_tag_was_first_specified_here));break}else Qc=C_;else z5=Di(z5,C_);if(XK){const tT=Kr&&Kr.type.kind===188,pF=k.createJSDocTypeLiteral(z5,tT);Kr=Qc&&Qc.typeExpression&&!N(Qc.typeExpression.type)?Qc.typeExpression:Oi(pF,sn),Yc=Kr.end}}Yc=Yc||x0!==void 0?de():(Os??Kr??Xu).end,x0||(x0=k4(sn,Yc,Ku,jr));const _D=k.createJSDocTypedefTag(Xu,Kr,Os,x0);return Oi(_D,sn,Yc)}function Dte(sn){const Xu=u.getTokenStart();if(!ph(X()))return;const Ku=wb();if(ho(25)){const jr=Dte(!0),Kr=k.createModuleDeclaration(void 0,Ku,jr,sn?8:void 0);return Oi(Kr,Xu)}return sn&&(Ku.flags|=4096),Ku}function zNe(sn){const Xu=de();let Ku,jr;for(;Ku=Rr(()=>Wn(4,sn));){if(Ku.kind===352){te(Ku.tagName,F.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}jr=Di(jr,Ku)}return Ga(jr||[],Xu)}function bge(sn,Xu){const Ku=zNe(Xu),jr=Rr(()=>{if(Bb(60)){const Kr=Ez(Xu);if(Kr&&Kr.kind===349)return Kr}});return Oi(k.createJSDocSignature(void 0,Ku,jr),sn)}function Xw(sn,Xu,Ku,jr){const Kr=Dte();Qm();let Os=Qw(Ku);const x0=bge(sn,Ku);Os||(Os=k4(sn,de(),Ku,jr));const Yc=Os!==void 0?de():x0.end;return Oi(k.createJSDocCallbackTag(Xu,x0,Kr,Os),sn,Yc)}function yge(sn,Xu,Ku,jr){Qm();let Kr=Qw(Ku);const Os=bge(sn,Ku);Kr||(Kr=k4(sn,de(),Ku,jr));const x0=Kr!==void 0?de():Os.end;return Oi(k.createJSDocOverloadTag(Xu,Os,Kr),sn,x0)}function INe(sn,Xu){for(;!at(sn)||!at(Xu);)if(!at(sn)&&!at(Xu)&&sn.right.escapedText===Xu.right.escapedText)sn=sn.left,Xu=Xu.left;else return!1;return sn.escapedText===Xu.escapedText}function mF(sn){return Wn(1,sn)}function Wn(sn,Xu,Ku){let jr=!0,Kr=!1;for(;;)switch(Qt()){case 60:if(jr){const Os=E6(sn,Xu);return Os&&(Os.kind===348||Os.kind===355)&&Ku&&(at(Os.name)||!INe(Ku,Os.name.left))?!1:Os}Kr=!1;break;case 4:jr=!0,Kr=!1;break;case 42:Kr&&(jr=!1),Kr=!0;break;case 80:jr=!1;break;case 1:return!1}}function E6(sn,Xu){H.assert(X()===60);const Ku=u.getTokenFullStart();Qt();const jr=wb(),Kr=ED();let Os;switch(jr.escapedText){case"type":return sn===1&&dt(Ku,jr);case"prop":case"property":Os=1;break;case"arg":case"argument":case"param":Os=6;break;case"template":return H9(Ku,jr,Xu,Kr);default:return!1}return sn&Os?W(Ku,jr,sn,Xu):!1}function bC(){const sn=de(),Xu=Bb(23);Xu&&Qm();const Ku=wb(F.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);let jr;if(Xu&&(Qm(),Fn(64),jr=bo(16777216,bg),Fn(24)),!Xl(Ku))return Oi(k.createTypeParameterDeclaration(void 0,Ku,void 0,jr),sn)}function eT(){const sn=de(),Xu=[];do{Qm();const Ku=bC();Ku!==void 0&&Xu.push(Ku),ED()}while(Bb(28));return Ga(Xu,sn)}function H9(sn,Xu,Ku,jr){const Kr=X()===19?nt():void 0,Os=eT();return Oi(k.createJSDocTemplateTag(Xu,Kr,Os,k4(sn,de(),Ku,jr)),sn)}function Bb(sn){return X()===sn?(Qt(),!0):!1}function Dz(){let sn=wb();for(ho(23)&&Fn(24);ho(25);){const Xu=wb();ho(23)&&Fn(24),sn=wt(sn,Xu)}return sn}function wb(sn){if(!ph(X()))return fl(80,!sn,sn||F.Identifier_expected);Ni++;const Xu=u.getTokenStart(),Ku=u.getTokenEnd(),jr=X(),Kr=Zc(u.getTokenValue()),Os=Oi(J(Kr,jr),Xu,Ku);return Qt(),Os}}})(QK=t.JSDocParser||(t.JSDocParser={}))})(Kv||(Kv={})),(t=>{function u(z,j,J,K){if(K=K||H.shouldAssert(2),k(z,j,J,K),O2e(J))return z;if(z.statements.length===0)return Kv.parseSourceFile(z.fileName,j,z.languageVersion,void 0,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);const Y=z;H.assert(!Y.hasBeenIncrementallyParsed),Y.hasBeenIncrementallyParsed=!0,Kv.fixupParentReferences(Y);const oe=z.text,se=T(z),ge=b(z,J);k(z,j,ge,K),H.assert(ge.span.start<=J.span.start),H.assert(Dc(ge.span)===Dc(J.span)),H.assert(Dc(zN(ge))===Dc(zN(J)));const ae=zN(ge).length-ge.span.length;v(Y,ge.span.start,Dc(ge.span),Dc(zN(ge)),ae,oe,j,K);const Ce=Kv.parseSourceFile(z.fileName,j,z.languageVersion,se,!0,z.scriptKind,z.setExternalModuleIndicator,z.jsDocParsingMode);return Ce.commentDirectives=s(z.commentDirectives,Ce.commentDirectives,ge.span.start,Dc(ge.span),ae,oe,j,K),Ce.impliedNodeFormat=z.impliedNodeFormat,Ce}t.updateSourceFile=u;function s(z,j,J,K,Y,oe,se,ge){if(!z)return j;let ae,Ce=!1;for(const ve of z){const{range:Se,type:Ne}=ve;if(Se.endK){ne();const pe={range:{pos:Se.pos+Y,end:Se.end+Y},type:Ne};ae=Di(ae,pe),ge&&H.assert(oe.substring(Se.pos,Se.end)===se.substring(pe.range.pos,pe.range.end))}}return ne(),ae;function ne(){Ce||(Ce=!0,ae?j&&ae.push(...j):ae=j)}}function d(z,j,J,K,Y,oe){j?ge(z):se(z);return;function se(ae){let Ce="";if(oe&&f(ae)&&(Ce=K.substring(ae.pos,ae.end)),ae._children&&(ae._children=void 0),i_(ae,ae.pos+J,ae.end+J),oe&&f(ae)&&H.assert(Ce===Y.substring(ae.pos,ae.end)),ao(ae,se,ge),lm(ae))for(const ne of ae.jsDoc)se(ne);E(ae,oe)}function ge(ae){ae._children=void 0,i_(ae,ae.pos+J,ae.end+J);for(const Ce of ae)se(Ce)}}function f(z){switch(z.kind){case 11:case 9:case 80:return!0}return!1}function p(z,j,J,K,Y){H.assert(z.end>=j,"Adjusting an element that was entirely before the change range"),H.assert(z.pos<=J,"Adjusting an element that was entirely after the change range"),H.assert(z.pos<=z.end);const oe=Math.min(z.pos,K),se=z.end>=J?z.end+Y:Math.min(z.end,K);H.assert(oe<=se),z.parent&&(H.assertGreaterThanOrEqual(oe,z.parent.pos),H.assertLessThanOrEqual(se,z.parent.end)),i_(z,oe,se)}function E(z,j){if(j){let J=z.pos;const K=Y=>{H.assert(Y.pos>=J),J=Y.end};if(lm(z))for(const Y of z.jsDoc)K(Y);ao(z,K),H.assert(J<=z.end)}}function v(z,j,J,K,Y,oe,se,ge){ae(z);return;function ae(ne){if(H.assert(ne.pos<=ne.end),ne.pos>J){d(ne,!1,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){if(ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y),ao(ne,ae,Ce),lm(ne))for(const Se of ne.jsDoc)ae(Se);E(ne,ge);return}H.assert(veJ){d(ne,!0,Y,oe,se,ge);return}const ve=ne.end;if(ve>=j){ne.intersectsChange=!0,ne._children=void 0,p(ne,j,J,K,Y);for(const Se of ne)ae(Se);return}H.assert(ve0&&se<=1;se++){const ge=B(z,K);H.assert(ge.pos<=K);const ae=ge.pos;K=Math.max(0,ae-1)}const Y=Kc(K,Dc(j.span)),oe=j.newLength+(j.span.start-K);return jO(Y,oe)}function B(z,j){let J=z,K;if(ao(z,oe),K){const se=Y(K);se.pos>J.pos&&(J=se)}return J;function Y(se){for(;;){const ge=Dle(se);if(ge)se=ge;else return se}}function oe(se){if(!Xl(se))if(se.pos<=j){if(se.pos>=J.pos&&(J=se),jj),!0}}function k(z,j,J,K){const Y=z.text;if(J&&(H.assert(Y.length-J.span.length+J.newLength===j.length),K||H.shouldAssert(3))){const oe=Y.substr(0,J.span.start),se=j.substr(0,J.span.start);H.assert(oe===se);const ge=Y.substring(Dc(J.span),Y.length),ae=j.substring(Dc(zN(J)),j.length);H.assert(ge===ae)}}function T(z){let j=z.statements,J=0;H.assert(J=Ce.pos&&se=Ce.pos&&se{z[z.Value=-1]="Value"})(M||(M={}))})(Xce||(Xce={})),ede=new Map,WQe=/^\/\/\/\s*<(\S+)\s.*?\/>/im,GQe=/^\/\/\/?\s*@([^\s:]+)(.*)\s*$/im}});function wY(t){const u=new Map,s=new Map;return L(t,d=>{u.set(d.name.toLowerCase(),d),d.shortName&&s.set(d.shortName,d.name)}),{optionsNameMap:u,shortOptionNames:s}}function jB(){return BXe||(BXe=wY(o3))}function YFe(t){return JQe(t,dc)}function JQe(t,u){const s=Ea(t.type.keys()),d=(t.deprecatedKeys?s.filter(f=>!t.deprecatedKeys.has(f)):s).map(f=>`'${f}'`).join(", ");return u(F.Argument_for_0_option_must_be_Colon_1,`--${t.name}`,d)}function TY(t,u,s){return yXe(t,(u??"").trim(),s)}function QFe(t,u="",s){if(u=u.trim(),Ma(u,"-"))return;if(t.type==="listOrElement"&&!u.includes(","))return J7(t,u,s);if(u==="")return[];const d=u.split(",");switch(t.element.type){case"number":return qi(d,f=>J7(t.element,parseInt(f),s));case"string":return qi(d,f=>J7(t.element,f||"",s));case"boolean":case"object":return H.fail(`List of ${t.element.type} is not yet supported.`);default:return qi(d,f=>TY(t.element,f,s))}}function $Qe(t){return t.name}function XFe(t,u,s,d,f){var p;if((p=u.alternateMode)!=null&&p.getOptionsNameMap().optionsNameMap.has(t.toLowerCase()))return Wv(f,d,u.alternateMode.diagnostic,t);const E=yN(t,u.optionDeclarations,$Qe);return E?Wv(f,d,u.unknownDidYouMeanDiagnostic,s||t,E.name):Wv(f,d,u.unknownOptionDiagnostic,s||t)}function tde(t,u,s){const d={};let f;const p=[],E=[];return v(u),{options:d,watchOptions:f,fileNames:p,errors:E};function v(B){let k=0;for(;kd1.readFile(z)));if(!Ua(k)){E.push(k);return}const T=[];let M=0;for(;;){for(;M=k.length)break;const z=M;if(k.charCodeAt(z)===34){for(M++;M32;)M++;T.push(k.substring(z,M))}}v(T)}}function UQe(t,u,s,d,f,p){if(d.isTSConfigOnly){const E=t[u];E==="null"?(f[d.name]=void 0,u++):d.type==="boolean"?E==="false"?(f[d.name]=J7(d,!1,p),u++):(E==="true"&&u++,p.push(dc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line,d.name))):(p.push(dc(F.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line,d.name)),E&&!Ma(E,"-")&&u++)}else if(!t[u]&&d.type!=="boolean"&&p.push(dc(s.optionTypeMismatchDiagnostic,d.name,rde(d))),t[u]!=="null")switch(d.type){case"number":f[d.name]=J7(d,parseInt(t[u]),p),u++;break;case"boolean":const E=t[u];f[d.name]=J7(d,E!=="false",p),(E==="false"||E==="true")&&u++;break;case"string":f[d.name]=J7(d,t[u]||"",p),u++;break;case"list":const v=QFe(d,t[u],p);f[d.name]=v||[],v&&u++;break;case"listOrElement":H.fail("listOrElement not supported here");break;default:f[d.name]=TY(d,t[u],p),u++;break}else f[d.name]=void 0,u++;return u}function qQe(t,u){return tde(iH,t,u)}function ide(t,u){return eAe(jB,t,u)}function eAe(t,u,s=!1){u=u.toLowerCase();const{optionsNameMap:d,shortOptionNames:f}=t();if(s){const p=f.get(u);p!==void 0&&(u=p)}return d.get(u)}function ZQe(){return TXe||(TXe=wY(IY))}function YQe(t){const{options:u,watchOptions:s,fileNames:d,errors:f}=tde(NXe,t),p=u;return d.length===0&&d.push("."),p.clean&&p.force&&f.push(dc(F.Options_0_and_1_cannot_be_combined,"clean","force")),p.clean&&p.verbose&&f.push(dc(F.Options_0_and_1_cannot_be_combined,"clean","verbose")),p.clean&&p.watch&&f.push(dc(F.Options_0_and_1_cannot_be_combined,"clean","watch")),p.watch&&p.dry&&f.push(dc(F.Options_0_and_1_cannot_be_combined,"watch","dry")),{buildOptions:p,watchOptions:s,projects:d,errors:f}}function QQe(t,...u){return Po(dc(t,...u).messageText,Ua)}function JV(t,u,s,d,f,p){const E=aM(t,B=>s.readFile(B));if(!Ua(E)){s.onUnRecoverableConfigFileDiagnostic(E);return}const v=GV(t,E),b=s.getCurrentDirectory();return v.path=$0(t,b,N1(s.useCaseSensitiveFileNames)),v.resolvedPath=v.path,v.originalFileName=v.fileName,qV(v,s,qa(dr(t),b),u,qa(t,b),void 0,p,d,f)}function $V(t,u){const s=aM(t,u);return Ua(s)?nde(t,s):{config:{},error:s}}function nde(t,u){const s=GV(t,u);return{config:nXe(s,s.parseDiagnostics,void 0),error:s.parseDiagnostics.length?s.parseDiagnostics[0]:void 0}}function tAe(t,u){const s=aM(t,u);return Ua(s)?GV(t,s):{fileName:t,parseDiagnostics:[s]}}function aM(t,u){let s;try{s=u(t)}catch(d){return dc(F.Cannot_read_file_0_Colon_1,t,d.message)}return s===void 0?dc(F.Cannot_read_file_0,t):s}function ude(t){return lg(t,$Qe)}function XQe(){return PXe||(PXe=wY(VB))}function eXe(){return MXe||(MXe=ude(o3))}function tXe(){return zXe||(zXe=ude(VB))}function iXe(){return IXe||(IXe=ude(tH))}function bNt(){return pAe===void 0&&(pAe={name:void 0,type:"object",elementOptions:ude([hAe,fAe,mAe,nH,{name:"references",type:"list",element:{name:"references",type:"object"},category:F.Projects},{name:"files",type:"list",element:{name:"files",type:"string"},category:F.File_Management},{name:"include",type:"list",element:{name:"include",type:"string"},category:F.File_Management,defaultValueDescription:F.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk},{name:"exclude",type:"list",element:{name:"exclude",type:"string"},category:F.File_Management,defaultValueDescription:F.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified},YV])}),pAe}function nXe(t,u,s){var d;const f=(d=t.statements[0])==null?void 0:d.expression;if(f&&f.kind!==210){if(u.push(G4(t,f,F.The_root_value_of_a_0_file_must_be_an_object,Bc(t.fileName)==="jsconfig.json"?"jsconfig.json":"tsconfig.json")),vh(f)){const p=Le(f.elements,ys);if(p)return UV(t,p,u,!0,s)}return{}}return UV(t,f,u,!0,s)}function iAe(t,u){var s;return UV(t,(s=t.statements[0])==null?void 0:s.expression,u,!0,void 0)}function UV(t,u,s,d,f){if(!u)return d?{}:void 0;return v(u,f==null?void 0:f.rootOptions);function p(B,k){var T;const M=d?{}:void 0;for(const z of B.properties){if(z.kind!==303){s.push(G4(t,z,F.Property_assignment_expected));continue}z.questionToken&&s.push(G4(t,z.questionToken,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),b(z.name)||s.push(G4(t,z.name,F.String_literal_with_double_quotes_expected));const j=sj(z.name)?void 0:V8(z.name),J=j&&Qr(j),K=J?(T=k==null?void 0:k.elementOptions)==null?void 0:T.get(J):void 0,Y=v(z.initializer,K);typeof J<"u"&&(d&&(M[J]=Y),f==null||f.onPropertySet(J,Y,z,k,K))}return M}function E(B,k){if(!d){B.forEach(T=>v(T,k));return}return ti(B.map(T=>v(T,k)),T=>T!==void 0)}function v(B,k){switch(B.kind){case 112:return!0;case 97:return!1;case 106:return null;case 11:return b(B)||s.push(G4(t,B,F.String_literal_with_double_quotes_expected)),B.text;case 9:return Number(B.text);case 224:if(B.operator!==41||B.operand.kind!==9)break;return-Number(B.operand.text);case 210:return p(B,k);case 209:return E(B.elements,k&&k.element)}k?s.push(G4(t,B,F.Compiler_option_0_requires_a_value_of_type_1,k.name,rde(k))):s.push(G4(t,B,F.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal))}function b(B){return rs(B)&&yq(B,t)}}function rde(t){return t.type==="listOrElement"?`${rde(t.element)} or Array`:t.type==="list"?"Array":Ua(t.type)?t.type:"string"}function uXe(t,u){if(t){if(ZV(u))return!t.disallowNullOrUndefined;if(t.type==="list")return Wa(u);if(t.type==="listOrElement")return Wa(u)||uXe(t.element,u);const s=Ua(t.type)?t.type:"string";return typeof u===s}return!1}function rXe(t,u,s){var d,f,p;const E=N1(s.useCaseSensitiveFileNames),v=Vt(ti(t.fileNames,(f=(d=t.options.configFile)==null?void 0:d.configFileSpecs)!=null&&f.validatedIncludeSpecs?kNt(u,t.options.configFile.configFileSpecs.validatedIncludeSpecs,t.options.configFile.configFileSpecs.validatedExcludeSpecs,s):J3),T=>BO(qa(u,s.getCurrentDirectory()),qa(T,s.getCurrentDirectory()),E)),b=sde(t.options,{configFilePath:qa(u,s.getCurrentDirectory()),useCaseSensitiveFileNames:s.useCaseSensitiveFileNames}),B=t.watchOptions&&FNt(t.watchOptions);return{compilerOptions:{...ade(b),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:B&&ade(B),references:Vt(t.projectReferences,T=>({...T,path:T.originalPath?T.originalPath:"",originalPath:void 0})),files:S(v)?v:void 0,...(p=t.options.configFile)!=null&&p.configFileSpecs?{include:yNt(t.options.configFile.configFileSpecs.validatedIncludeSpecs),exclude:t.options.configFile.configFileSpecs.validatedExcludeSpecs}:{},compileOnSave:t.compileOnSave?!0:void 0}}function ade(t){return{...Ea(t.entries()).reduce((u,s)=>({...u,[s[0]]:s[1]}),{})}}function yNt(t){if(S(t)){if(S(t)!==1)return t;if(t[0]!==jY)return t}}function kNt(t,u,s,d){if(!u)return J3;const f=sZ(t,s,u,d.useCaseSensitiveFileNames,d.getCurrentDirectory()),p=f.excludePattern&&jx(f.excludePattern,d.useCaseSensitiveFileNames),E=f.includeFilePattern&&jx(f.includeFilePattern,d.useCaseSensitiveFileNames);return E?p?v=>!(E.test(v)&&!p.test(v)):v=>!E.test(v):p?v=>p.test(v):J3}function aXe(t){switch(t.type){case"string":case"number":case"boolean":case"object":return;case"list":case"listOrElement":return aXe(t.element);default:return t.type}}function ode(t,u){return f1(u,(s,d)=>{if(s===t)return d})}function sde(t,u){return oXe(t,jB(),u)}function FNt(t){return oXe(t,XQe())}function oXe(t,{optionsNameMap:u},s){const d=new Map,f=s&&N1(s.useCaseSensitiveFileNames);for(const p in t)if(Eu(t,p)){if(u.has(p)&&(u.get(p).category===F.Command_line_Options||u.get(p).category===F.Output_Formatting))continue;const E=t[p],v=u.get(p.toLowerCase());if(v){H.assert(v.type!=="listOrElement");const b=aXe(v);b?v.type==="list"?d.set(p,E.map(B=>ode(B,b))):d.set(p,ode(E,b)):s&&v.isFilePath?d.set(p,BO(s.configFilePath,qa(E,dr(s.configFilePath)),f)):d.set(p,E)}}return d}function sXe(t,u){const s=lXe(t);return f();function d(p){return Array(p+1).join(" ")}function f(){const p=[],E=d(2);return fde.forEach(v=>{if(!s.has(v.name))return;const b=s.get(v.name),B=sAe(v);b!==B?p.push(`${E}${v.name}: ${b}`):Eu(RY,v.name)&&p.push(`${E}${v.name}: ${B}`)}),p.join(u)+u}}function lXe(t){const u=q$(t,RY);return sde(u)}function cXe(t,u,s){const d=lXe(t);return E();function f(v){return Array(v+1).join(" ")}function p({category:v,name:b,isCommandLineOnly:B}){const k=[F.Command_line_Options,F.Editor_Support,F.Compiler_Diagnostics,F.Backwards_Compatibility,F.Watch_and_Build_Modes,F.Output_Formatting];return!B&&v!==void 0&&(!k.includes(v)||d.has(b))}function E(){const v=new Map;v.set(F.Projects,[]),v.set(F.Language_and_Environment,[]),v.set(F.Modules,[]),v.set(F.JavaScript_Support,[]),v.set(F.Emit,[]),v.set(F.Interop_Constraints,[]),v.set(F.Type_Checking,[]),v.set(F.Completeness,[]);for(const z of o3)if(p(z)){let j=v.get(z.category);j||v.set(z.category,j=[]),j.push(z)}let b=0,B=0;const k=[];v.forEach((z,j)=>{k.length!==0&&k.push({value:""}),k.push({value:`/* ${to(j)} */`});for(const J of z){let K;d.has(J.name)?K=`"${J.name}": ${JSON.stringify(d.get(J.name))}${(B+=1)===d.size?"":","}`:K=`// "${J.name}": ${JSON.stringify(sAe(J))},`,k.push({value:K,description:`/* ${J.description&&to(J.description)||J.name} */`}),b=Math.max(K.length,b)}});const T=f(2),M=[];M.push("{"),M.push(`${T}"compilerOptions": {`),M.push(`${T}${T}/* ${to(F.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_to_read_more_about_this_file)} */`),M.push("");for(const z of k){const{value:j,description:J=""}=z;M.push(j&&`${T}${T}${j}${J&&f(b-j.length+2)+J}`)}if(u.length){M.push(`${T}},`),M.push(`${T}"files": [`);for(let z=0;ztypeof Ae=="object","object"),Se=ge(ae("files"));if(Se){const Ae=ve==="no-prop"||Wa(ve)&&ve.length===0,De=Eu(M,"extends");if(Se.length===0&&Ae&&!De)if(u){const He=E||"tsconfig.json",Je=F.The_files_list_in_config_file_0_is_empty,mt=fj(u,"files",je=>je.initializer),Ye=Wv(u,mt,Je,He);k.push(Ye)}else ne(F.The_files_list_in_config_file_0_is_empty,E||"tsconfig.json")}let Ne=ge(ae("include"));const pe=ae("exclude");let fe=!1,xe=ge(pe);if(pe==="no-prop"&&M.compilerOptions){const Ae=M.compilerOptions.outDir,De=M.compilerOptions.declarationDir;(Ae||De)&&(xe=[Ae,De].filter(He=>!!He))}Se===void 0&&Ne===void 0&&(Ne=[jY],fe=!0);let Be,We;return Ne&&(Be=SXe(Ne,k,!0,u,"include")),xe&&(We=SXe(xe,k,!1,u,"exclude")),{filesSpecs:Se,includeSpecs:Ne,excludeSpecs:xe,validatedFilesSpec:ti(Se,Ua),validatedIncludeSpecs:Be,validatedExcludeSpecs:We,pathPatterns:void 0,isDefaultIncludeSpec:fe}}function oe(ve){const Se=sM(J,ve,z,s,b);return pXe(Se,oM(M),v)&&k.push(mXe(J,E)),Se}function se(ve){let Se;const Ne=Ce("references",pe=>typeof pe=="object","object");if(Wa(Ne))for(const pe of Ne)typeof pe.path!="string"?ne(F.Compiler_option_0_requires_a_value_of_type_1,"reference.path","string"):(Se||(Se=[])).push({path:qa(pe.path,ve),originalPath:pe.path,prepend:pe.prepend,circular:pe.circular});return Se}function ge(ve){return Wa(ve)?ve:void 0}function ae(ve){return Ce(ve,Ua,"string")}function Ce(ve,Se,Ne){if(Eu(M,ve)&&!ZV(M[ve]))if(Wa(M[ve])){const pe=M[ve];return!u&&!ye(pe,Se)&&k.push(dc(F.Compiler_option_0_requires_a_value_of_type_1,ve,Ne)),pe}else return ne(F.Compiler_option_0_requires_a_value_of_type_1,ve,"Array"),"not-array";return"no-prop"}function ne(ve,...Se){u||k.push(dc(ve,...Se))}}function SNt(t){return t.code===F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code}function mXe({includeSpecs:t,excludeSpecs:u},s){return dc(F.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2,s||"tsconfig.json",JSON.stringify(t||[]),JSON.stringify(u||[]))}function pXe(t,u,s){return t.length===0&&u&&(!s||s.length===0)}function oM(t){return!Eu(t,"files")&&!Eu(t,"references")}function LY(t,u,s,d,f){const p=d.length;return pXe(t,f)?d.push(mXe(s,u)):qu(d,E=>!SNt(E)),p!==d.length}function BNt(t){return!!t.options}function gXe(t,u,s,d,f,p,E,v){var b;d=Z1(d);const B=qa(f||"",d);if(p.includes(B))return E.push(dc(F.Circularity_detected_while_resolving_configuration_Colon_0,[...p,B].join(" -> "))),{raw:t||iAe(u,E)};const k=t?wNt(t,s,d,f,E):TNt(u,s,d,f,E);if((b=k.options)!=null&&b.paths&&(k.options.pathsBasePath=d),k.extendedConfigPath){p=p.concat([B]);const M={options:{}};Ua(k.extendedConfigPath)?T(M,k.extendedConfigPath):k.extendedConfigPath.forEach(z=>T(M,z)),!k.raw.include&&M.include&&(k.raw.include=M.include),!k.raw.exclude&&M.exclude&&(k.raw.exclude=M.exclude),!k.raw.files&&M.files&&(k.raw.files=M.files),k.raw.compileOnSave===void 0&&M.compileOnSave&&(k.raw.compileOnSave=M.compileOnSave),u&&M.extendedSourceFiles&&(u.extendedSourceFiles=Ea(M.extendedSourceFiles.keys())),k.options=HE(M.options,k.options),k.watchOptions=k.watchOptions&&M.watchOptions?HE(M.watchOptions,k.watchOptions):k.watchOptions||M.watchOptions}return k;function T(M,z){const j=LNt(u,z,s,p,E,v,M);if(j&&BNt(j)){const J=j.raw;let K;const Y=oe=>{J[oe]&&(M[oe]=Vt(J[oe],se=>Pf(se)?se:hr(K||(K=TN(dr(z),d,N1(s.useCaseSensitiveFileNames))),se)))};Y("include"),Y("exclude"),Y("files"),J.compileOnSave!==void 0&&(M.compileOnSave=J.compileOnSave),HE(M.options,j.options),M.watchOptions=M.watchOptions&&j.watchOptions?HE({},M.watchOptions,j.watchOptions):M.watchOptions||j.watchOptions}}}function wNt(t,u,s,d,f){Eu(t,"excludes")&&f.push(dc(F.Unknown_option_excludes_Did_you_mean_exclude));const p=CXe(t.compilerOptions,s,f,d),E=bXe(t.typeAcquisition,s,f,d),v=PNt(t.watchOptions,s,f);t.compileOnSave=NNt(t,s,f);const b=t.extends||t.extends===""?EXe(t.extends,u,s,d,f):void 0;return{raw:t,options:p,watchOptions:v,typeAcquisition:E,extendedConfigPath:b}}function EXe(t,u,s,d,f,p,E,v){let b;const B=d?hXe(d,s):s;if(Ua(t))b=_Xe(t,u,B,f,E,v);else if(Wa(t)){b=[];for(let k=0;koe.name===z)&&(B=Di(B,J.name))))}}function _Xe(t,u,s,d,f,p){if(t=Z1(t),Pf(t)||Ma(t,"./")||Ma(t,"../")){let v=qa(t,s);if(!u.fileExists(v)&&!lc(v,".json")&&(v=`${v}.json`,!u.fileExists(v))){d.push(Wv(p,f,F.File_0_not_found,t));return}return v}const E=yAe(t,hr(s,"tsconfig.json"),u);if(E.resolvedModule)return E.resolvedModule.resolvedFileName;t===""?d.push(Wv(p,f,F.Compiler_option_0_cannot_be_given_an_empty_string,"extends")):d.push(Wv(p,f,F.File_0_not_found,t))}function LNt(t,u,s,d,f,p,E){const v=s.useCaseSensitiveFileNames?u:Ug(u);let b,B,k;if(p&&(b=p.get(v))?{extendedResult:B,extendedConfig:k}=b:(B=tAe(u,T=>s.readFile(T)),B.parseDiagnostics.length||(k=gXe(void 0,B,s,dr(u),Bc(u),d,f,p)),p&&p.set(v,{extendedResult:B,extendedConfig:k})),t&&((E.extendedSourceFiles??(E.extendedSourceFiles=new Set)).add(B.fileName),B.extendedSourceFiles))for(const T of B.extendedSourceFiles)E.extendedSourceFiles.add(T);if(B.parseDiagnostics.length){f.push(...B.parseDiagnostics);return}return k}function NNt(t,u,s){if(!Eu(t,YV.name))return!1;const d=Sk(YV,t.compileOnSave,u,s);return typeof d=="boolean"&&d}function DXe(t,u,s){const d=[];return{options:CXe(t,u,d,s),errors:d}}function xXe(t,u,s){const d=[];return{options:bXe(t,u,d,s),errors:d}}function vXe(t){return t&&Bc(t)==="jsconfig.json"?{allowJs:!0,maxNodeModuleJsDepth:2,allowSyntheticDefaultImports:!0,skipLibCheck:!0,noEmit:!0}:{}}function CXe(t,u,s,d){const f=vXe(d);return nAe(eXe(),t,u,f,iH,s),d&&(f.configFilePath=Z1(d)),f}function dde(t){return{enable:!!t&&Bc(t)==="jsconfig.json",include:[],exclude:[]}}function bXe(t,u,s,d){const f=dde(d);return nAe(iXe(),t,u,f,dAe,s),f}function PNt(t,u,s){return nAe(tXe(),t,u,void 0,OY,s)}function nAe(t,u,s,d,f,p){if(u){for(const E in u){const v=t.get(E);v?(d||(d={}))[v.name]=Sk(v,u[E],s,p):p.push(XFe(E,f))}return d}}function Wv(t,u,s,...d){return t&&u?G4(t,u,s,...d):dc(s,...d)}function Sk(t,u,s,d,f,p,E){if(t.isCommandLineOnly){d.push(Wv(E,f==null?void 0:f.name,F.Option_0_can_only_be_specified_on_command_line,t.name));return}if(uXe(t,u)){const v=t.type;if(v==="list"&&Wa(u))return kXe(t,u,s,d,f,p,E);if(v==="listOrElement")return Wa(u)?kXe(t,u,s,d,f,p,E):Sk(t.element,u,s,d,f,p,E);if(!Ua(t.type))return yXe(t,u,d,p,E);const b=J7(t,u,d,p,E);return ZV(b)?b:MNt(t,s,b)}else d.push(Wv(E,p,F.Compiler_option_0_requires_a_value_of_type_1,t.name,rde(t)))}function MNt(t,u,s){return t.isFilePath&&(s=qa(s,u),s===""&&(s=".")),s}function J7(t,u,s,d,f){var p;if(ZV(u))return;const E=(p=t.extraValidation)==null?void 0:p.call(t,u);if(!E)return u;s.push(Wv(f,d,...E))}function yXe(t,u,s,d,f){if(ZV(u))return;const p=u.toLowerCase(),E=t.type.get(p);if(E!==void 0)return J7(t,E,s,d,f);s.push(JQe(t,(v,...b)=>Wv(f,d,v,...b)))}function kXe(t,u,s,d,f,p,E){return ti(Vt(u,(v,b)=>Sk(t.element,v,s,d,f,p==null?void 0:p.elements[b],E)),v=>t.listPreserveFalsyValues?!0:!!v)}function sM(t,u,s,d,f=Dt){u=Uo(u);const p=N1(d.useCaseSensitiveFileNames),E=new Map,v=new Map,b=new Map,{validatedFilesSpec:B,validatedIncludeSpecs:k,validatedExcludeSpecs:T}=t,M=FP(s,f),z=iV(s,M);if(B)for(const Y of B){const oe=qa(Y,u);E.set(p(oe),oe)}let j;if(k&&k.length>0)for(const Y of d.readDirectory(u,Ha(z),T,k,void 0)){if(Ml(Y,".json")){if(!j){const ge=k.filter(Ce=>lc(Ce,".json")),ae=Vt(oZ(ge,u,"files"),Ce=>`^${Ce}$`);j=ae?ae.map(Ce=>jx(Ce,d.useCaseSensitiveFileNames)):Dt}if(Ue(j,ge=>ge.test(Y))!==-1){const ge=p(Y);!E.has(ge)&&!b.has(ge)&&b.set(ge,Y)}continue}if(RNt(Y,E,v,M,p))continue;ONt(Y,v,M,p);const oe=p(Y);!E.has(oe)&&!v.has(oe)&&v.set(oe,Y)}const J=Ea(E.values()),K=Ea(v.values());return J.concat(K,Ea(b.values()))}function uAe(t,u,s,d,f){const{validatedFilesSpec:p,validatedIncludeSpecs:E,validatedExcludeSpecs:v}=u;if(!S(E)||!S(v))return!1;s=Uo(s);const b=N1(d);if(p){for(const B of p)if(b(qa(B,s))===t)return!1}return AXe(t,v,d,f,s)}function FXe(t){const u=Ma(t,"**/")?0:t.indexOf("/**/");return u===-1?!1:(lc(t,"/..")?t.length:t.lastIndexOf("/../"))>u}function NY(t,u,s,d){return AXe(t,ti(u,f=>!FXe(f)),s,d)}function AXe(t,u,s,d,f){const p=kP(u,hr(Uo(d),f),"exclude"),E=p&&jx(p,s);return E?E.test(t)?!0:!t7(t)&&E.test(zd(t)):!1}function SXe(t,u,s,d,f){return t.filter(E=>{if(!Ua(E))return!1;const v=rAe(E,s);return v!==void 0&&u.push(p(...v)),v===void 0});function p(E,v){const b=hq(d,f,v);return Wv(d,b,E,v)}}function rAe(t,u){if(H.assert(typeof t=="string"),u&&RXe.test(t))return[F.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t];if(FXe(t))return[F.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0,t]}function zNt({validatedIncludeSpecs:t,validatedExcludeSpecs:u},s,d){const f=kP(u,s,"exclude"),p=f&&new RegExp(f,d?"":"i"),E={};if(t!==void 0){const v=[];for(const b of t){const B=Uo(hr(s,b));if(p&&p.test(B))continue;const k=INt(B,d);if(k){const{key:T,flags:M}=k,z=E[T];(z===void 0||zHc(t,E)?E:void 0);if(!p)return!1;for(const E of p){if(Ml(t,E)&&(E!==".ts"||!Ml(t,".d.ts")))return!1;const v=f(Tv(t,E));if(u.has(v)||s.has(v)){if(E===".d.ts"&&(Ml(t,".js")||Ml(t,".jsx")))continue;return!0}}return!1}function ONt(t,u,s,d){const f=L(s,p=>Hc(t,p)?p:void 0);if(f)for(let p=f.length-1;p>=0;p--){const E=f[p];if(Ml(t,E))return;const v=d(Tv(t,E));u.delete(v)}}function aAe(t){const u={};for(const s in t)if(Eu(t,s)){const d=ide(s);d!==void 0&&(u[s]=oAe(t[s],d))}return u}function oAe(t,u){if(t===void 0)return t;switch(u.type){case"object":return"";case"string":return"";case"number":return typeof t=="number"?t:"";case"boolean":return typeof t=="boolean"?t:"";case"listOrElement":if(!Wa(t))return oAe(t,u.element);case"list":const s=u.element;return Wa(t)?qi(t,d=>oAe(d,s)):"";default:return f1(u.type,(d,f)=>{if(d===t)return f})}}function sAe(t){switch(t.type){case"number":return 1;case"boolean":return!0;case"string":const u=t.defaultValueDescription;return t.isFilePath?`./${u&&typeof u=="string"?u:""}`:"";case"list":return[];case"listOrElement":return sAe(t.element);case"object":return{};default:const s=Hn(t.type.keys());return s!==void 0?s:H.fail("Expected 'option.type' to have entries.")}}var YV,lAe,lM,cAe,QV,PY,VB,XV,eH,hde,fde,o3,mde,pde,gde,MY,zY,Ede,_de,Dde,IY,tH,BXe,wXe,RY,iH,TXe,LXe,NXe,dAe,PXe,OY,MXe,zXe,IXe,nH,hAe,fAe,mAe,pAe,jY,RXe,OXe,jNt=o({"src/compiler/commandLineParser.ts"(){Bo(),YV={name:"compileOnSave",type:"boolean",defaultValueDescription:!1},lAe=new Map(Object.entries({preserve:1,"react-native":3,react:2,"react-jsx":4,"react-jsxdev":5})),lM=new Map(Ir(lAe.entries(),([t,u])=>[""+u,t])),cAe=[["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"],["webworker","lib.webworker.d.ts"],["webworker.importscripts","lib.webworker.importscripts.d.ts"],["webworker.iterable","lib.webworker.iterable.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"],["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"],["esnext.array","lib.es2023.array.d.ts"],["esnext.collection","lib.es2023.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.es2021.promise.d.ts"],["esnext.weakref","lib.es2021.weakref.d.ts"],["esnext.decorators","lib.esnext.decorators.d.ts"],["decorators","lib.decorators.d.ts"],["decorators.legacy","lib.decorators.legacy.d.ts"]],QV=cAe.map(t=>t[0]),PY=new Map(cAe),VB=[{name:"watchFile",type:new Map(Object.entries({fixedpollinginterval:0,prioritypollinginterval:1,dynamicprioritypolling:2,fixedchunksizepolling:3,usefsevents:4,usefseventsonparentdirectory:5})),category:F.Watch_and_Build_Modes,description:F.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:F.Watch_and_Build_Modes,description:F.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:F.Watch_and_Build_Modes,description:F.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,defaultValueDescription:1},{name:"synchronousWatchDirectory",type:"boolean",category:F.Watch_and_Build_Modes,description:F.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:rAe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_directories_from_the_watch_process},{name:"excludeFiles",type:"list",element:{name:"excludeFile",type:"string",isFilePath:!0,extraValidation:rAe},category:F.Watch_and_Build_Modes,description:F.Remove_a_list_of_files_from_the_watch_mode_s_processing}],XV=[{name:"help",shortName:"h",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Print_this_message,defaultValueDescription:!1},{name:"help",shortName:"?",type:"boolean",isCommandLineOnly:!0,category:F.Command_line_Options,defaultValueDescription:!1},{name:"watch",shortName:"w",type:"boolean",showInSimplifiedHelpView:!0,isCommandLineOnly:!0,category:F.Command_line_Options,description:F.Watch_input_files,defaultValueDescription:!1},{name:"preserveWatchOutput",type:"boolean",showInSimplifiedHelpView:!1,category:F.Output_Formatting,description:F.Disable_wiping_the_console_in_watch_mode,defaultValueDescription:!1},{name:"listFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_all_of_the_files_read_during_the_compilation,defaultValueDescription:!1},{name:"explainFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_files_read_during_the_compilation_including_why_it_was_included,defaultValueDescription:!1},{name:"listEmittedFiles",type:"boolean",category:F.Compiler_Diagnostics,description:F.Print_the_names_of_emitted_files_after_a_compilation,defaultValueDescription:!1},{name:"pretty",type:"boolean",showInSimplifiedHelpView:!0,category:F.Output_Formatting,description:F.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,defaultValueDescription:!0},{name:"traceResolution",type:"boolean",category:F.Compiler_Diagnostics,description:F.Log_paths_used_during_the_moduleResolution_process,defaultValueDescription:!1},{name:"diagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"extendedDiagnostics",type:"boolean",category:F.Compiler_Diagnostics,description:F.Output_more_detailed_compiler_performance_information_after_building,defaultValueDescription:!1},{name:"generateCpuProfile",type:"string",isFilePath:!0,paramType:F.FILE_OR_DIRECTORY,category:F.Compiler_Diagnostics,description:F.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,defaultValueDescription:"profile.cpuprofile"},{name:"generateTrace",type:"string",isFilePath:!0,isCommandLineOnly:!0,paramType:F.DIRECTORY,category:F.Compiler_Diagnostics,description:F.Generates_an_event_trace_and_a_list_of_types},{name:"incremental",shortName:"i",type:"boolean",category:F.Projects,description:F.Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects,transpileOptionValue:void 0,defaultValueDescription:F.false_unless_composite_is_set},{name:"declaration",shortName:"d",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,defaultValueDescription:F.false_unless_composite_is_set},{name:"declarationMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Create_sourcemaps_for_d_ts_files},{name:"emitDeclarationOnly",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Only_output_d_ts_files_and_not_JavaScript_files,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"sourceMap",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Create_source_map_files_for_emitted_JavaScript_files},{name:"inlineSourceMap",type:"boolean",affectsBuildInfo:!0,category:F.Emit,description:F.Include_sourcemap_files_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"assumeChangesOnlyAffectDirectDependencies",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Watch_and_Build_Modes,description:F.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:F.Command_line_Options,isCommandLineOnly:!0,description:F.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,defaultValueDescription:F.Platform_specific}],eH={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,esnext:99})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.VERSION,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,defaultValueDescription:1},hde={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})),affectsSourceFile:!0,affectsModuleResolution:!0,affectsEmit:!0,affectsBuildInfo:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Modules,description:F.Specify_what_module_code_is_generated,defaultValueDescription:void 0},fde=[{name:"all",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Show_all_compiler_options,defaultValueDescription:!1},{name:"version",shortName:"v",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Print_the_compiler_s_version,defaultValueDescription:!1},{name:"init",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,description:F.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,defaultValueDescription:!1},{name:"project",shortName:"p",type:"string",isFilePath:!0,showInSimplifiedHelpView:!0,category:F.Command_line_Options,paramType:F.FILE_OR_DIRECTORY,description:F.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:F.Command_line_Options,description:F.Build_one_or_more_projects_and_their_dependencies_if_out_of_date,defaultValueDescription:!1},{name:"showConfig",type:"boolean",showInSimplifiedHelpView:!0,category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_the_final_configuration_instead_of_building,defaultValueDescription:!1},{name:"listFilesOnly",type:"boolean",category:F.Command_line_Options,isCommandLineOnly:!0,description:F.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing,defaultValueDescription:!1},eH,hde,{name:"lib",type:"list",element:{name:"lib",type:PY,defaultValueDescription:void 0},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.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:F.JavaScript_Support,description:F.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:F.JavaScript_Support,description:F.Enable_error_reporting_in_type_checked_JavaScript_files,defaultValueDescription:!1},{name:"jsx",type:lAe,affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,affectsModuleResolution:!0,affectsSemanticDiagnostics:!0,paramType:F.KIND,showInSimplifiedHelpView:!0,category:F.Language_and_Environment,description:F.Specify_what_JSX_code_is_generated,defaultValueDescription:void 0},{name:"outFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.FILE,showInSimplifiedHelpView:!0,category:F.Emit,description:F.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:F.DIRECTORY,showInSimplifiedHelpView:!0,category:F.Emit,description:F.Specify_an_output_folder_for_all_emitted_files},{name:"rootDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.LOCATION,category:F.Modules,description:F.Specify_the_root_folder_within_your_source_files,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"composite",type:"boolean",affectsBuildInfo:!0,isTSConfigOnly:!0,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:!1,description:F.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references},{name:"tsBuildInfoFile",type:"string",affectsEmit:!0,affectsBuildInfo:!0,isFilePath:!0,paramType:F.FILE,category:F.Projects,transpileOptionValue:void 0,defaultValueDescription:".tsbuildinfo",description:F.Specify_the_path_to_tsbuildinfo_incremental_compilation_file},{name:"removeComments",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Emit,defaultValueDescription:!1,description:F.Disable_emitting_comments},{name:"noEmit",type:"boolean",showInSimplifiedHelpView:!0,category:F.Emit,description:F.Disable_emitting_files_from_a_compilation,transpileOptionValue:void 0,defaultValueDescription:!1},{name:"importHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.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:F.Emit,description:F.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types,defaultValueDescription:0},{name:"downlevelIteration",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,defaultValueDescription:!1},{name:"isolatedModules",type:"boolean",category:F.Interop_Constraints,description:F.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,transpileOptionValue:!0,defaultValueDescription:!1},{name:"verbatimModuleSyntax",type:"boolean",category:F.Interop_Constraints,description:F.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:"strict",type:"boolean",affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Type_Checking,description:F.Enable_all_strict_type_checking_options,defaultValueDescription:!1},{name:"noImplicitAny",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictNullChecks",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_type_checking_take_into_account_null_and_undefined,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictFunctionTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictBindCallApply",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,defaultValueDescription:F.false_unless_strict_is_set},{name:"strictPropertyInitialization",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,defaultValueDescription:F.false_unless_strict_is_set},{name:"noImplicitThis",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_this_is_given_the_type_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"useUnknownInCatchVariables",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Default_catch_clause_variables_as_unknown_instead_of_any,defaultValueDescription:F.false_unless_strict_is_set},{name:"alwaysStrict",type:"boolean",affectsSourceFile:!0,affectsEmit:!0,affectsBuildInfo:!0,strictFlag:!0,category:F.Type_Checking,description:F.Ensure_use_strict_is_always_emitted,defaultValueDescription:F.false_unless_strict_is_set},{name:"noUnusedLocals",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Enable_error_reporting_when_local_variables_aren_t_read,defaultValueDescription:!1},{name:"noUnusedParameters",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Raise_an_error_when_a_function_parameter_isn_t_read,defaultValueDescription:!1},{name:"exactOptionalPropertyTypes",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Interpret_optional_property_types_as_written_rather_than_adding_undefined,defaultValueDescription:!1},{name:"noImplicitReturns",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.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:F.Type_Checking,description:F.Enable_error_reporting_for_fallthrough_cases_in_switch_statements,defaultValueDescription:!1},{name:"noUncheckedIndexedAccess",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Add_undefined_to_a_type_when_accessed_using_an_index,defaultValueDescription:!1},{name:"noImplicitOverride",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.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:F.Type_Checking,description:F.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:F.STRATEGY,category:F.Modules,description:F.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,defaultValueDescription:F.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node},{name:"baseUrl",type:"string",affectsModuleResolution:!0,isFilePath:!0,category:F.Modules,description:F.Specify_the_base_directory_to_resolve_non_relative_module_names},{name:"paths",type:"object",affectsModuleResolution:!0,isTSConfigOnly:!0,category:F.Modules,description:F.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,category:F.Modules,description:F.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,transpileOptionValue:void 0,defaultValueDescription:F.Computed_from_the_list_of_input_files},{name:"typeRoots",type:"list",element:{name:"typeRoots",type:"string",isFilePath:!0},affectsModuleResolution:!0,category:F.Modules,description:F.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types},{name:"types",type:"list",element:{name:"types",type:"string"},affectsProgramStructure:!0,showInSimplifiedHelpView:!0,category:F.Modules,description:F.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:F.Interop_Constraints,description:F.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,defaultValueDescription:F.module_system_or_esModuleInterop},{name:"esModuleInterop",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,showInSimplifiedHelpView:!0,category:F.Interop_Constraints,description:F.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,defaultValueDescription:!1},{name:"preserveSymlinks",type:"boolean",category:F.Interop_Constraints,description:F.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:F.Modules,description:F.Allow_accessing_UMD_globals_from_modules,defaultValueDescription:!1},{name:"moduleSuffixes",type:"list",element:{name:"suffix",type:"string"},listPreserveFalsyValues:!0,affectsModuleResolution:!0,category:F.Modules,description:F.List_of_file_name_suffixes_to_search_when_resolving_a_module},{name:"allowImportingTsExtensions",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Modules,description:F.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:F.Modules,description:F.Use_the_package_json_exports_field_when_resolving_package_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"resolvePackageJsonImports",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.Use_the_package_json_imports_field_when_resolving_imports,defaultValueDescription:F.true_when_moduleResolution_is_node16_nodenext_or_bundler_otherwise_false},{name:"customConditions",type:"list",element:{name:"condition",type:"string"},affectsModuleResolution:!0,category:F.Modules,description:F.Conditions_to_set_in_addition_to_the_resolver_specific_defaults_when_resolving_imports},{name:"sourceRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code},{name:"mapRoot",type:"string",affectsEmit:!0,affectsBuildInfo:!0,paramType:F.LOCATION,category:F.Emit,description:F.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations},{name:"inlineSources",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,defaultValueDescription:!1},{name:"experimentalDecorators",type:"boolean",affectsEmit:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Enable_experimental_support_for_legacy_experimental_decorators,defaultValueDescription:!1},{name:"emitDecoratorMetadata",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_design_type_metadata_for_decorated_declarations_in_source_files,defaultValueDescription:!1},{name:"jsxFactory",type:"string",category:F.Language_and_Environment,description:F.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:F.Language_and_Environment,description:F.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:F.Language_and_Environment,description:F.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:F.Modules,description:F.Enable_importing_json_files,defaultValueDescription:!1},{name:"allowArbitraryExtensions",type:"boolean",affectsProgramStructure:!0,category:F.Modules,description:F.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:F.Backwards_Compatibility,paramType:F.FILE,transpileOptionValue:void 0,description:F.Deprecated_setting_Use_outFile_instead},{name:"reactNamespace",type:"string",affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,defaultValueDescription:"`React`"},{name:"skipDefaultLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,defaultValueDescription:!1},{name:"charset",type:"string",category:F.Backwards_Compatibility,description:F.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:F.Emit,description:F.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:F.NEWLINE,category:F.Emit,description:F.Set_the_newline_character_for_emitting_files,defaultValueDescription:"lf"},{name:"noErrorTruncation",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Output_Formatting,description:F.Disable_truncating_types_in_error_messages,defaultValueDescription:!1},{name:"noLib",type:"boolean",category:F.Language_and_Environment,affectsProgramStructure:!0,description:F.Disable_including_any_library_files_including_the_default_lib_d_ts,transpileOptionValue:!0,defaultValueDescription:!1},{name:"noResolve",type:"boolean",affectsModuleResolution:!0,category:F.Modules,description:F.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:F.Emit,description:F.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,defaultValueDescription:!1},{name:"disableSizeLimit",type:"boolean",affectsProgramStructure:!0,category:F.Editor_Support,description:F.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:F.Projects,description:F.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects,defaultValueDescription:!1},{name:"disableSolutionSearching",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Opt_a_project_out_of_multi_project_reference_checking_when_editing,defaultValueDescription:!1},{name:"disableReferencedProjectLoad",type:"boolean",isTSConfigOnly:!0,category:F.Projects,description:F.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript,defaultValueDescription:!1},{name:"noImplicitUseStrict",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,defaultValueDescription:!1},{name:"noEmitHelpers",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,defaultValueDescription:!1},{name:"noEmitOnError",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,transpileOptionValue:void 0,description:F.Disable_emitting_files_if_any_type_checking_errors_are_reported,defaultValueDescription:!1},{name:"preserveConstEnums",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Disable_erasing_const_enum_declarations_in_generated_code,defaultValueDescription:!1},{name:"declarationDir",type:"string",affectsEmit:!0,affectsBuildInfo:!0,affectsDeclarationPath:!0,isFilePath:!0,paramType:F.DIRECTORY,category:F.Emit,transpileOptionValue:void 0,description:F.Specify_the_output_directory_for_generated_declaration_files},{name:"skipLibCheck",type:"boolean",affectsBuildInfo:!0,category:F.Completeness,description:F.Skip_type_checking_all_d_ts_files,defaultValueDescription:!1},{name:"allowUnusedLabels",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unused_labels,defaultValueDescription:void 0},{name:"allowUnreachableCode",type:"boolean",affectsBindDiagnostics:!0,affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Type_Checking,description:F.Disable_error_reporting_for_unreachable_code,defaultValueDescription:void 0},{name:"suppressExcessPropertyErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,defaultValueDescription:!1},{name:"suppressImplicitAnyIndexErrors",type:"boolean",affectsSemanticDiagnostics:!0,affectsBuildInfo:!0,category:F.Backwards_Compatibility,description:F.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,defaultValueDescription:!1},{name:"forceConsistentCasingInFileNames",type:"boolean",affectsModuleResolution:!0,category:F.Interop_Constraints,description:F.Ensure_that_casing_is_correct_in_imports,defaultValueDescription:!0},{name:"maxNodeModuleJsDepth",type:"number",affectsModuleResolution:!0,category:F.JavaScript_Support,description:F.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:F.Backwards_Compatibility,description:F.Disable_strict_checking_of_generic_signatures_in_function_types,defaultValueDescription:!1},{name:"useDefineForClassFields",type:"boolean",affectsSemanticDiagnostics:!0,affectsEmit:!0,affectsBuildInfo:!0,category:F.Language_and_Environment,description:F.Emit_ECMAScript_standard_compliant_class_fields,defaultValueDescription:F.true_for_ES2022_and_above_including_ESNext},{name:"preserveValueImports",type:"boolean",affectsEmit:!0,affectsBuildInfo:!0,category:F.Emit,description:F.Preserve_unused_imported_values_in_the_JavaScript_output_that_would_otherwise_be_removed,defaultValueDescription:!1},{name:"keyofStringsOnly",type:"boolean",category:F.Backwards_Compatibility,description:F.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:F.Specify_a_list_of_language_service_plugins_to_include,category:F.Editor_Support},{name:"moduleDetection",type:new Map(Object.entries({auto:2,legacy:1,force:3})),affectsSourceFile:!0,affectsModuleResolution:!0,description:F.Control_what_method_is_used_to_detect_module_format_JS_files,category:F.Language_and_Environment,defaultValueDescription:F.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}],o3=[...XV,...fde],mde=o3.filter(t=>!!t.affectsSemanticDiagnostics),pde=o3.filter(t=>!!t.affectsEmit),gde=o3.filter(t=>!!t.affectsDeclarationPath),MY=o3.filter(t=>!!t.affectsModuleResolution),zY=o3.filter(t=>!!t.affectsSourceFile||!!t.affectsBindDiagnostics),Ede=o3.filter(t=>!!t.affectsProgramStructure),_de=o3.filter(t=>Eu(t,"transpileOptionValue")),Dde=[{name:"verbose",shortName:"v",category:F.Command_line_Options,description:F.Enable_verbose_logging,type:"boolean",defaultValueDescription:!1},{name:"dry",shortName:"d",category:F.Command_line_Options,description:F.Show_what_would_be_built_or_deleted_if_specified_with_clean,type:"boolean",defaultValueDescription:!1},{name:"force",shortName:"f",category:F.Command_line_Options,description:F.Build_all_projects_including_those_that_appear_to_be_up_to_date,type:"boolean",defaultValueDescription:!1},{name:"clean",category:F.Command_line_Options,description:F.Delete_the_outputs_of_all_projects,type:"boolean",defaultValueDescription:!1}],IY=[...XV,...Dde],tH=[{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}],wXe={diagnostic:F.Compiler_option_0_may_only_be_used_with_build,getOptionsNameMap:ZQe},RY={module:1,target:3,strict:!0,esModuleInterop:!0,forceConsistentCasingInFileNames:!0,skipLibCheck:!0},iH={alternateMode:wXe,getOptionsNameMap:jB,optionDeclarations:o3,unknownOptionDiagnostic:F.Unknown_compiler_option_0,unknownDidYouMeanDiagnostic:F.Unknown_compiler_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Compiler_option_0_expects_an_argument},LXe={diagnostic:F.Compiler_option_0_may_not_be_used_with_build,getOptionsNameMap:jB},NXe={alternateMode:LXe,getOptionsNameMap:ZQe,optionDeclarations:IY,unknownOptionDiagnostic:F.Unknown_build_option_0,unknownDidYouMeanDiagnostic:F.Unknown_build_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Build_option_0_requires_a_value_of_type_1},dAe={optionDeclarations:tH,unknownOptionDiagnostic:F.Unknown_type_acquisition_option_0,unknownDidYouMeanDiagnostic:F.Unknown_type_acquisition_option_0_Did_you_mean_1},OY={getOptionsNameMap:XQe,optionDeclarations:VB,unknownOptionDiagnostic:F.Unknown_watch_option_0,unknownDidYouMeanDiagnostic:F.Unknown_watch_option_0_Did_you_mean_1,optionTypeMismatchDiagnostic:F.Watch_option_0_requires_a_value_of_type_1},nH={name:"extends",type:"listOrElement",element:{name:"extends",type:"string"},category:F.File_Management,disallowNullOrUndefined:!0},hAe={name:"compilerOptions",type:"object",elementOptions:eXe(),extraKeyDiagnostics:iH},fAe={name:"watchOptions",type:"object",elementOptions:tXe(),extraKeyDiagnostics:OY},mAe={name:"typeAcquisition",type:"object",elementOptions:iXe(),extraKeyDiagnostics:dAe},jY="**/*",RXe=/(^|\/)\*\*\/?$/,OXe=/^[^*?]*(?=\/[^/]*[*?])/}});function Ba(t,u,...s){t.trace(vle(u,...s))}function aD(t,u){return!!t.traceResolution&&u.trace!==void 0}function $7(t,u){let s;if(u&&t){const d=t.contents.packageJsonContent;typeof d.name=="string"&&typeof d.version=="string"&&(s={name:d.name,subModuleName:u.path.slice(t.packageDirectory.length+ol.length),version:d.version})}return u&&{path:u.path,extension:u.ext,packageId:s,resolvedUsingTsExtension:u.resolvedUsingTsExtension}}function xde(t){return $7(void 0,t)}function jXe(t){if(t)return H.assert(t.packageId===void 0),{path:t.path,ext:t.extension,resolvedUsingTsExtension:t.resolvedUsingTsExtension}}function VY(t){const u=[];return t&1&&u.push("TypeScript"),t&2&&u.push("JavaScript"),t&4&&u.push("Declaration"),t&8&&u.push("JSON"),u.join(", ")}function VNt(t){const u=[];return t&1&&u.push(...fV),t&2&&u.push(..._B),t&4&&u.push(...hV),t&8&&u.push(".json"),u}function gAe(t){if(t)return H.assert(hZ(t.extension)),{fileName:t.path,packageId:t.packageId}}function VXe(t,u,s,d,f,p,E,v,b){if(!E.resultFromCache&&!E.compilerOptions.preserveSymlinks&&u&&s&&!u.originalPath&&!Id(t)){const{resolvedFileName:B,originalPath:k}=WXe(u.path,E.host,E.traceEnabled);k&&(u={...u,path:B,originalPath:k})}return HXe(u,s,d,f,p,E.resultFromCache,v,b)}function HXe(t,u,s,d,f,p,E,v){return p?E!=null&&E.isReadonly?{...p,failedLookupLocations:EAe(p.failedLookupLocations,s),affectingLocations:EAe(p.affectingLocations,d),resolutionDiagnostics:EAe(p.resolutionDiagnostics,f)}:(p.failedLookupLocations=HB(p.failedLookupLocations,s),p.affectingLocations=HB(p.affectingLocations,d),p.resolutionDiagnostics=HB(p.resolutionDiagnostics,f),p):{resolvedModule:t&&{resolvedFileName:t.path,originalPath:t.originalPath===!0?void 0:t.originalPath,extension:t.extension,isExternalLibraryImport:u,packageId:t.packageId,resolvedUsingTsExtension:!!t.resolvedUsingTsExtension},failedLookupLocations:cM(s),affectingLocations:cM(d),resolutionDiagnostics:cM(f),node10Result:v}}function cM(t){return t.length?t:void 0}function HB(t,u){return u!=null&&u.length?t!=null&&t.length?(t.push(...u),t):u:t}function EAe(t,u){return t!=null&&t.length?u.length?[...t,...u]:t.slice():cM(u)}function KXe(t,u,s,d){if(!Eu(t,u)){d.traceEnabled&&Ba(d.host,F.package_json_does_not_have_a_0_field,u);return}const f=t[u];if(typeof f!==s||f===null){d.traceEnabled&&Ba(d.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,u,s,f===null?"null":typeof f);return}return f}function vde(t,u,s,d){const f=KXe(t,u,"string",d);if(f===void 0)return;if(!f){d.traceEnabled&&Ba(d.host,F.package_json_had_a_falsy_0_field,u);return}const p=Uo(hr(s,f));return d.traceEnabled&&Ba(d.host,F.package_json_has_0_field_1_that_references_2,u,f,p),p}function HNt(t,u,s){return vde(t,"typings",u,s)||vde(t,"types",u,s)}function KNt(t,u,s){return vde(t,"tsconfig",u,s)}function WNt(t,u,s){return vde(t,"main",u,s)}function GNt(t,u){const s=KXe(t,"typesVersions","object",u);if(s!==void 0)return u.traceEnabled&&Ba(u.host,F.package_json_has_a_typesVersions_field_with_version_specific_path_mappings),s}function JNt(t,u){const s=GNt(t,u);if(s===void 0)return;if(u.traceEnabled)for(const E in s)Eu(s,E)&&!_O.tryParse(E)&&Ba(u.host,F.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range,E);const d=HY(s);if(!d){u.traceEnabled&&Ba(u.host,F.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0,g);return}const{version:f,paths:p}=d;if(typeof p!="object"){u.traceEnabled&&Ba(u.host,F.Expected_type_of_0_field_in_package_json_to_be_1_got_2,`typesVersions['${f}']`,"object",typeof p);return}return d}function HY(t){LAe||(LAe=new Np(_));for(const u in t){if(!Eu(t,u))continue;const s=_O.tryParse(u);if(s!==void 0&&s.test(LAe))return{version:u,paths:t[u]}}}function dM(t,u){if(t.typeRoots)return t.typeRoots;let s;if(t.configFilePath?s=dr(t.configFilePath):u.getCurrentDirectory&&(s=u.getCurrentDirectory()),s!==void 0)return $Nt(s)}function $Nt(t){let u;return qg(Uo(t),s=>{const d=hr(s,het);(u??(u=[])).push(d)}),u}function UNt(t,u,s){const d=typeof s.useCaseSensitiveFileNames=="function"?s.useCaseSensitiveFileNames():s.useCaseSensitiveFileNames;return gv(t,u,!d)===0}function WXe(t,u,s){const d=aPt(t,u,s),f=UNt(t,d,u);return{resolvedFileName:f?t:d,originalPath:f?void 0:t}}function GXe(t,u,s){const d=lc(t,"/node_modules/@types")||lc(t,"/node_modules/@types/")?set(u,s):u;return hr(t,d)}function _Ae(t,u,s,d,f,p,E){H.assert(typeof t=="string","Non-string value passed to `ts.resolveTypeReferenceDirective`, likely by a wrapping package working with an outdated `resolveTypeReferenceDirectives` signature. This is probably not a problem in TS itself.");const v=aD(s,d);f&&(s=f.commandLine.options);const b=u?dr(u):void 0;let B=b?p==null?void 0:p.getFromDirectoryCache(t,E,b,f):void 0;if(!B&&b&&!Id(t)&&(B=p==null?void 0:p.getFromNonRelativeNameCache(t,E,b,f)),B)return v&&(Ba(d,F.Resolving_type_reference_directive_0_containing_file_1,t,u),f&&Ba(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName),Ba(d,F.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1,t,b),ae(B)),B;const k=dM(s,d);v&&(u===void 0?k===void 0?Ba(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set,t):Ba(d,F.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1,t,k):k===void 0?Ba(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set,t,u):Ba(d,F.Resolving_type_reference_directive_0_containing_file_1_root_directory_2,t,u,k),f&&Ba(d,F.Using_compiler_options_of_project_reference_redirect_0,f.sourceFile.fileName));const T=[],M=[];let z=DAe(s);E!==void 0&&(z|=30);const j=g1(s);E===99&&3<=j&&j<=99&&(z|=32);const J=z&8?U2(s,E):[],K=[],Y={compilerOptions:s,host:d,traceEnabled:v,failedLookupLocations:T,affectingLocations:M,packageJsonInfoCache:p,features:z,conditions:J,requestContainingDirectory:b,reportDiagnostic:ve=>void K.push(ve),isConfigLookup:!1,candidateIsFromPackageJsonField:!1};let oe=Ce(),se=!0;oe||(oe=ne(),se=!1);let ge;if(oe){const{fileName:ve,packageId:Se}=oe;let Ne=ve,pe;s.preserveSymlinks||({resolvedFileName:Ne,originalPath:pe}=WXe(ve,d,v)),ge={primary:se,resolvedFileName:Ne,originalPath:pe,packageId:Se,isExternalLibraryImport:q7(ve)}}return B={resolvedTypeReferenceDirective:ge,failedLookupLocations:cM(T),affectingLocations:cM(M),resolutionDiagnostics:cM(K)},b&&p&&!p.isReadonly&&(p.getOrCreateCacheForDirectory(b,f).set(t,E,B),Id(t)||p.getOrCreateCacheForNonRelativeName(t,E,f).set(b,B)),v&&ae(B),B;function ae(ve){var Se;(Se=ve.resolvedTypeReferenceDirective)!=null&&Se.resolvedFileName?ve.resolvedTypeReferenceDirective.packageId?Ba(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3,t,ve.resolvedTypeReferenceDirective.resolvedFileName,Px(ve.resolvedTypeReferenceDirective.packageId),ve.resolvedTypeReferenceDirective.primary):Ba(d,F.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2,t,ve.resolvedTypeReferenceDirective.resolvedFileName,ve.resolvedTypeReferenceDirective.primary):Ba(d,F.Type_reference_directive_0_was_not_resolved,t)}function Ce(){if(k&&k.length)return v&&Ba(d,F.Resolving_with_primary_search_path_0,k.join(", ")),G(k,ve=>{const Se=GXe(ve,t,Y),Ne=hg(ve,d);if(!Ne&&v&&Ba(d,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,ve),s.typeRoots){const pe=GB(4,Se,!Ne,Y);if(pe){const fe=rH(pe.path),xe=fe?q2(fe,!1,Y):void 0;return gAe($7(xe,pe))}}return gAe(AAe(4,Se,!Ne,Y))});v&&Ba(d,F.Root_directory_cannot_be_determined_skipping_primary_search_paths)}function ne(){const ve=u&&dr(u);if(ve!==void 0){let Se;if(!s.typeRoots||!lc(u,QB))if(v&&Ba(d,F.Looking_up_in_node_modules_folder_initial_location_0,ve),Id(t)){const{path:Ne}=YXe(ve,t);Se=Fde(4,Ne,!1,Y,!0)}else{const Ne=uet(4,t,ve,Y,void 0,void 0);Se=Ne&&Ne.value}else v&&Ba(d,F.Resolving_type_reference_directive_for_program_that_specifies_custom_typeRoots_skipping_lookup_in_node_modules_folder);return gAe(Se)}else v&&Ba(d,F.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder)}}function DAe(t){let u=0;switch(g1(t)){case 3:u=30;break;case 99:u=30;break;case 100:u=30;break}return t.resolvePackageJsonExports?u|=8:t.resolvePackageJsonExports===!1&&(u&=-9),t.resolvePackageJsonImports?u|=2:t.resolvePackageJsonImports===!1&&(u&=-3),u}function U2(t,u){const s=g1(t);if(u===void 0){if(s===100)u=99;else if(s===2)return[]}const d=u===99?["import"]:["require"];return t.noDtsResolution||d.push("types"),s!==100&&d.push("node"),mi(d,t.customConditions)}function Cde(t,u,s,d,f){const p=aH(f==null?void 0:f.getPackageJsonInfoCache(),d,s);return qg(u,E=>{if(Bc(E)!=="node_modules"){const v=hr(E,"node_modules"),b=hr(v,t);return q2(b,!1,p)}})}function KY(t,u){if(t.types)return t.types;const s=[];if(u.directoryExists&&u.getDirectories){const d=dM(t,u);if(d){for(const f of d)if(u.directoryExists(f))for(const p of u.getDirectories(f)){const E=Uo(p),v=hr(f,E,"package.json");if(!(u.fileExists(v)&&_P(v,u).typings===null)){const B=Bc(E);B.charCodeAt(0)!==46&&s.push(B)}}}}return s}function xAe(t){var u;if(t===null||typeof t!="object")return""+t;if(Wa(t))return`[${(u=t.map(d=>xAe(d)))==null?void 0:u.join(",")}]`;let s="{";for(const d in t)Eu(t,d)&&(s+=`${d}: ${xAe(t[d])}`);return s+"}"}function bde(t,u){return u.map(s=>xAe(nZ(t,s))).join("|")+`|${t.pathsBasePath}`}function yde(t,u){const s=new Map,d=new Map;let f=new Map;return t&&s.set(t,f),{getMapOfCacheRedirects:p,getOrCreateMapOfCacheRedirects:E,update:v,clear:B,getOwnMap:()=>f};function p(T){return T?b(T.commandLine.options,!1):f}function E(T){return T?b(T.commandLine.options,!0):f}function v(T){t!==T&&(t?f=b(T,!0):s.set(T,f),t=T)}function b(T,M){let z=s.get(T);if(z)return z;const j=k(T);if(z=d.get(j),!z){if(t){const J=k(t);J===j?z=f:d.has(J)||d.set(J,f)}M&&(z??(z=new Map)),z&&d.set(j,z)}return z&&s.set(T,z),z}function B(){const T=t&&u.get(t);f.clear(),s.clear(),u.clear(),d.clear(),t&&(T&&u.set(t,T),s.set(t,f))}function k(T){let M=u.get(T);return M||u.set(T,M=bde(T,MY)),M}}function qNt(t,u){let s;return{getPackageJsonInfo:d,setPackageJsonInfo:f,clear:p,entries:E,getInternalMap:v};function d(b){return s==null?void 0:s.get($0(b,t,u))}function f(b,B){(s||(s=new Map)).set($0(b,t,u),B)}function p(){s=void 0}function E(){const b=s==null?void 0:s.entries();return b?Ea(b):[]}function v(){return s}}function JXe(t,u,s,d){const f=t.getOrCreateMapOfCacheRedirects(u);let p=f.get(s);return p||(p=d(),f.set(s,p)),p}function ZNt(t,u,s,d){const f=yde(s,d);return{getFromDirectoryCache:b,getOrCreateCacheForDirectory:v,clear:p,update:E,directoryToModuleNameMap:f};function p(){f.clear()}function E(B){f.update(B)}function v(B,k){const T=$0(B,t,u);return JXe(f,k,T,()=>U7())}function b(B,k,T,M){var z,j;const J=$0(T,t,u);return(j=(z=f.getMapOfCacheRedirects(M))==null?void 0:z.get(J))==null?void 0:j.get(B,k)}}function hM(t,u){return u===void 0?t:`${u}|${t}`}function U7(){const t=new Map,u=new Map,s={get(f,p){return t.get(d(f,p))},set(f,p,E){return t.set(d(f,p),E),s},delete(f,p){return t.delete(d(f,p)),s},has(f,p){return t.has(d(f,p))},forEach(f){return t.forEach((p,E)=>{const[v,b]=u.get(E);return f(p,v,b)})},size(){return t.size}};return s;function d(f,p){const E=hM(f,p);return u.set(E,[f,p]),E}}function YNt(t){return t.resolvedModule&&(t.resolvedModule.originalPath||t.resolvedModule.resolvedFileName)}function QNt(t){return t.resolvedTypeReferenceDirective&&(t.resolvedTypeReferenceDirective.originalPath||t.resolvedTypeReferenceDirective.resolvedFileName)}function XNt(t,u,s,d,f){const p=yde(s,f);return{getFromNonRelativeNameCache:b,getOrCreateCacheForNonRelativeName:B,clear:E,update:v};function E(){p.clear()}function v(T){p.update(T)}function b(T,M,z,j){var J,K;return H.assert(!Id(T)),(K=(J=p.getMapOfCacheRedirects(j))==null?void 0:J.get(hM(T,M)))==null?void 0:K.get(z)}function B(T,M,z){return H.assert(!Id(T)),JXe(p,z,hM(T,M),k)}function k(){const T=new Map;return{get:M,set:z};function M(J){return T.get($0(J,t,u))}function z(J,K){const Y=$0(J,t,u);if(T.has(Y))return;T.set(Y,K);const oe=d(K),se=oe&&j(Y,oe);let ge=Y;for(;ge!==se;){const ae=dr(ge);if(ae===ge||T.has(ae))break;T.set(ae,K),ge=ae}}function j(J,K){const Y=$0(dr(K),t,u);let oe=0;const se=Math.min(J.length,Y.length);for(;oed,clearAllExceptPackageJsonInfoCache:B,optionsToRedirectsKey:p};function b(){B(),d.clear()}function B(){E.clear(),v.clear()}function k(T){E.update(T),v.update(T)}}function KB(t,u,s,d,f){const p=$Xe(t,u,s,d,YNt,f);return p.getOrCreateCacheForModuleName=(E,v,b)=>p.getOrCreateCacheForNonRelativeName(E,v,b),p}function WY(t,u,s,d,f){return $Xe(t,u,s,d,QNt,f)}function kde(t){return{moduleResolution:2,traceResolution:t.traceResolution}}function GY(t,u,s,d,f){return WB(t,u,kde(s),d,f)}function UXe(t,u,s,d){const f=dr(u);return s.getFromDirectoryCache(t,d,f,void 0)}function WB(t,u,s,d,f,p,E){var v,b,B;const k=aD(s,d);p&&(s=p.commandLine.options),k&&(Ba(d,F.Resolving_module_0_from_1,t,u),p&&Ba(d,F.Using_compiler_options_of_project_reference_redirect_0,p.sourceFile.fileName));const T=dr(u);let M=f==null?void 0:f.getFromDirectoryCache(t,E,T,p);if(M)k&&Ba(d,F.Resolution_for_module_0_was_found_in_cache_from_location_1,t,T);else{let z=s.moduleResolution;if(z===void 0){switch(p1(s)){case 1:z=2;break;case 100:z=3;break;case 199:z=99;break;default:z=1;break}k&&Ba(d,F.Module_resolution_kind_is_not_specified_using_0,y8[z])}else k&&Ba(d,F.Explicitly_specified_module_resolution_kind_Colon_0,y8[z]);switch((v=mh)==null||v.logStartResolveModule(t),z){case 3:M=nPt(t,u,s,d,f,p,E);break;case 99:M=uPt(t,u,s,d,f,p,E);break;case 2:M=bAe(t,u,s,d,f,p,E?U2(s,E):void 0);break;case 1:M=wAe(t,u,s,d,f,p);break;case 100:M=CAe(t,u,s,d,f,p,E?U2(s,E):void 0);break;default:return H.fail(`Unexpected moduleResolution: ${z}`)}M&&M.resolvedModule&&((b=mh)==null||b.logInfoEvent(`Module "${t}" resolved to "${M.resolvedModule.resolvedFileName}"`)),(B=mh)==null||B.logStopResolveModule(M&&M.resolvedModule?""+M.resolvedModule.resolvedFileName:"null"),f&&!f.isReadonly&&(f.getOrCreateCacheForDirectory(T,p).set(t,E,M),Id(t)||f.getOrCreateCacheForNonRelativeName(t,E,p).set(T,M))}return k&&(M.resolvedModule?M.resolvedModule.packageId?Ba(d,F.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2,t,M.resolvedModule.resolvedFileName,Px(M.resolvedModule.packageId)):Ba(d,F.Module_name_0_was_successfully_resolved_to_1,t,M.resolvedModule.resolvedFileName):Ba(d,F.Module_name_0_was_not_resolved,t)),M}function qXe(t,u,s,d,f){const p=ePt(t,u,d,f);return p?p.value:Id(u)?tPt(t,u,s,d,f):iPt(t,u,d,f)}function ePt(t,u,s,d){var f;const{baseUrl:p,paths:E,configFile:v}=d.compilerOptions;if(E&&!om(u)){d.traceEnabled&&(p&&Ba(d.host,F.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1,p,u),Ba(d.host,F.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0,u));const b=Rq(d.compilerOptions,d.host),B=v!=null&&v.configFileSpecs?(f=v.configFileSpecs).pathPatterns||(f.pathPatterns=dZ(E)):void 0;return BAe(t,u,b,E,B,s,!1,d)}}function tPt(t,u,s,d,f){if(!f.compilerOptions.rootDirs)return;f.traceEnabled&&Ba(f.host,F.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0,u);const p=Uo(hr(s,u));let E,v;for(const b of f.compilerOptions.rootDirs){let B=Uo(b);lc(B,ol)||(B+=ol);const k=Ma(p,B)&&(v===void 0||v.lengthvoid oe.push(ne),isConfigLookup:v,candidateIsFromPackageJsonField:!1};j&&b7(Y)&&Ba(f,F.Resolving_in_0_mode_with_conditions_1,t&32?"ESM":"CJS",se.conditions.map(ne=>`'${ne}'`).join(", "));let ge;if(Y===2){const ne=E&5,ve=E&-6;ge=ne&&Ce(ne,se)||ve&&Ce(ve,se)||void 0}else ge=Ce(E,se);let ae;if((k=ge==null?void 0:ge.value)!=null&&k.isExternalLibraryImport&&!v&&E&5&&t&8&&!Id(u)&&!SAe(5,ge.value.resolved.extension)&&(B!=null&&B.includes("import"))){Gv(se,F.Resolution_of_non_relative_name_failed_trying_with_modern_Node_resolution_features_disabled_to_see_if_npm_library_needs_configuration_update);const ne={...se,features:se.features&-9,reportDiagnostic:Rs},ve=Ce(E&5,ne);(T=ve==null?void 0:ve.value)!=null&&T.isExternalLibraryImport&&(ae=ve.value.resolved.path)}return VXe(u,(M=ge==null?void 0:ge.value)==null?void 0:M.resolved,(z=ge==null?void 0:ge.value)==null?void 0:z.isExternalLibraryImport,J,K,oe,se,p,ae);function Ce(ne,ve){const Ne=qXe(ne,u,s,(pe,fe,xe,Be)=>Fde(pe,fe,xe,Be,!0),ve);if(Ne)return Rm({resolved:Ne,isExternalLibraryImport:q7(Ne.path)});if(Id(u)){const{path:pe,parts:fe}=YXe(s,u),xe=Fde(ne,pe,!1,ve,!0);return xe&&Rm({resolved:xe,isExternalLibraryImport:kt(fe,"node_modules")})}else{let pe;if(t&2&&Ma(u,"#")&&(pe=dPt(ne,u,s,ve,p,b)),!pe&&t&4&&(pe=cPt(ne,u,s,ve,p,b)),!pe){if(u.includes(":")){j&&Ba(f,F.Skipping_module_0_that_looks_like_an_absolute_URI_target_file_types_Colon_1,u,VY(ne));return}j&&Ba(f,F.Loading_module_0_from_node_modules_folder_target_file_types_Colon_1,u,VY(ne)),pe=uet(ne,u,s,ve,p,b)}return ne&4&&(pe??(pe=det(u,ve))),pe&&{value:pe.value&&{resolved:pe.value,isExternalLibraryImport:!0}}}}}function YXe(t,u){const s=hr(t,u),d=yd(s),f=Zu(d);return{path:f==="."||f===".."?zd(Uo(s)):Uo(s),parts:d}}function aPt(t,u,s){if(!u.realpath)return t;const d=Uo(u.realpath(t));return s&&Ba(u,F.Resolving_real_path_for_0_result_1,t,d),d}function Fde(t,u,s,d,f){if(d.traceEnabled&&Ba(d.host,F.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_types_Colon_1,u,VY(t)),!ZD(u)){if(!s){const E=dr(u);hg(E,d.host)||(d.traceEnabled&&Ba(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,E),s=!0)}const p=GB(t,u,s,d);if(p){const E=f?rH(p.path):void 0,v=E?q2(E,!1,d):void 0;return $7(v,p)}}if(s||hg(u,d.host)||(d.traceEnabled&&Ba(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,u),s=!0),!(d.features&32))return AAe(t,u,s,d,f)}function q7(t){return t.includes(s_)}function rH(t,u){const s=Uo(t),d=s.lastIndexOf(s_);if(d===-1)return;const f=d+s_.length;let p=QXe(s,f,u);return s.charCodeAt(f)===64&&(p=QXe(s,p,u)),s.slice(0,p)}function QXe(t,u,s){const d=t.indexOf(ol,u+1);return d===-1?s?t.length:u:d}function kAe(t,u,s,d){return xde(GB(t,u,s,d))}function GB(t,u,s,d){const f=XXe(t,u,s,d);if(f)return f;if(!(d.features&32)){const p=eet(u,t,"",s,d);if(p)return p}}function XXe(t,u,s,d){if(!Bc(u).includes("."))return;let p=xh(u);p===u&&(p=u.substring(0,u.lastIndexOf(".")));const E=u.substring(p.length);return d.traceEnabled&&Ba(d.host,F.File_name_0_has_a_1_extension_stripping_it,u,E),eet(p,t,E,s,d)}function FAe(t,u,s,d){return t&1&&Hc(u,fV)||t&4&&Hc(u,hV)?JY(u,s,d)!==void 0?{path:u,ext:Gq(u),resolvedUsingTsExtension:void 0}:void 0:d.isConfigLookup&&t===8&&Ml(u,".json")?JY(u,s,d)!==void 0?{path:u,ext:".json",resolvedUsingTsExtension:void 0}:void 0:XXe(t,u,s,d)}function eet(t,u,s,d,f){if(!d){const E=dr(t);E&&(d=!hg(E,f.host))}switch(s){case".mjs":case".mts":case".d.mts":return u&1&&p(".mts",s===".mts"||s===".d.mts")||u&4&&p(".d.mts",s===".mts"||s===".d.mts")||u&2&&p(".mjs")||void 0;case".cjs":case".cts":case".d.cts":return u&1&&p(".cts",s===".cts"||s===".d.cts")||u&4&&p(".d.cts",s===".cts"||s===".d.cts")||u&2&&p(".cjs")||void 0;case".json":return u&4&&p(".d.json.ts")||u&8&&p(".json")||void 0;case".tsx":case".jsx":return u&1&&(p(".tsx",s===".tsx")||p(".ts",s===".tsx"))||u&4&&p(".d.ts",s===".tsx")||u&2&&(p(".jsx")||p(".js"))||void 0;case".ts":case".d.ts":case".js":case"":return u&1&&(p(".ts",s===".ts"||s===".d.ts")||p(".tsx",s===".ts"||s===".d.ts"))||u&4&&p(".d.ts",s===".ts"||s===".d.ts")||u&2&&(p(".js")||p(".jsx"))||f.isConfigLookup&&p(".json")||void 0;default:return u&4&&!t1(t+s)&&p(`.d${s}.ts`)||void 0}function p(E,v){const b=JY(t+E,d,f);return b===void 0?void 0:{path:b,ext:E,resolvedUsingTsExtension:!f.candidateIsFromPackageJsonField&&v}}}function JY(t,u,s){var d;if(!((d=s.compilerOptions.moduleSuffixes)!=null&&d.length))return tet(t,u,s);const f=i3(t)??"",p=f?uV(t,f):t;return L(s.compilerOptions.moduleSuffixes,E=>tet(p+E+f,u,s))}function tet(t,u,s){var d;if(!u){if(s.host.fileExists(t))return s.traceEnabled&&Ba(s.host,F.File_0_exists_use_it_as_a_name_resolution_result,t),t;s.traceEnabled&&Ba(s.host,F.File_0_does_not_exist,t)}(d=s.failedLookupLocations)==null||d.push(t)}function AAe(t,u,s,d,f=!0){const p=f?q2(u,s,d):void 0,E=p&&p.contents.packageJsonContent,v=p&&$Y(p,d);return $7(p,Sde(t,u,s,d,E,v))}function Ade(t,u,s,d,f){if(!f&&t.contents.resolvedEntrypoints!==void 0)return t.contents.resolvedEntrypoints;let p;const E=5|(f?2:0),v=DAe(u),b=aH(d==null?void 0:d.getPackageJsonInfoCache(),s,u);b.conditions=U2(u),b.requestContainingDirectory=t.packageDirectory;const B=Sde(E,t.packageDirectory,!1,b,t.contents.packageJsonContent,$Y(t,b));if(p=Di(p,B==null?void 0:B.path),v&8&&t.contents.packageJsonContent.exports){const k=li([U2(u,99),U2(u,1)],On);for(const T of k){const M={...b,failedLookupLocations:[],conditions:T,host:s},z=oPt(t,t.contents.packageJsonContent.exports,M,E);if(z)for(const j of z)p=t0(p,j.path)}}return t.contents.resolvedEntrypoints=p||!1}function oPt(t,u,s,d){let f;if(Wa(u))for(const E of u)p(E);else if(typeof u=="object"&&u!==null&&UY(u))for(const E in u)p(u[E]);else p(u);return f;function p(E){var v,b;if(typeof E=="string"&&Ma(E,"./"))if(E.includes("*")&&s.host.readDirectory){if(E.indexOf("*")!==E.lastIndexOf("*"))return!1;s.host.readDirectory(t.packageDirectory,VNt(d),void 0,[t1(E)?E.replace("*","**/*"):SO(E.replace("*","**/*"),Wj(E))]).forEach(B=>{f=t0(f,{path:B,ext:wN(B),resolvedUsingTsExtension:void 0})})}else{const B=yd(E).slice(2);if(B.includes("..")||B.includes(".")||B.includes("node_modules"))return!1;const k=hr(t.packageDirectory,E),T=qa(k,(b=(v=s.host).getCurrentDirectory)==null?void 0:b.call(v)),M=FAe(d,T,!1,s);if(M)return f=t0(f,M,(z,j)=>z.path===j.path),!0}else if(Array.isArray(E)){for(const B of E)if(p(B))return!0}else if(typeof E=="object"&&E!==null)return L(Ps(E),B=>{if(B==="default"||kt(s.conditions,B)||lH(s.conditions,B))return p(E[B]),!0})}}function aH(t,u,s){return{host:u,compilerOptions:s,traceEnabled:aD(s,u),failedLookupLocations:void 0,affectingLocations:void 0,packageJsonInfoCache:t,features:0,conditions:Dt,requestContainingDirectory:void 0,reportDiagnostic:Rs,isConfigLookup:!1,candidateIsFromPackageJsonField:!1}}function oH(t,u){const s=yd(t);for(s.pop();s.length>0;){const d=q2(yx(s),!1,u);if(d)return d;s.pop()}}function $Y(t,u){return t.contents.versionPaths===void 0&&(t.contents.versionPaths=JNt(t.contents.packageJsonContent,u)||!1),t.contents.versionPaths||void 0}function q2(t,u,s){var d,f,p,E,v,b;const{host:B,traceEnabled:k}=s,T=hr(t,"package.json");if(u){(d=s.failedLookupLocations)==null||d.push(T);return}const M=(f=s.packageJsonInfoCache)==null?void 0:f.getPackageJsonInfo(T);if(M!==void 0){if(typeof M!="boolean")return k&&Ba(B,F.File_0_exists_according_to_earlier_cached_lookups,T),(p=s.affectingLocations)==null||p.push(T),M.packageDirectory===t?M:{packageDirectory:t,contents:M.contents};M&&k&&Ba(B,F.File_0_does_not_exist_according_to_earlier_cached_lookups,T),(E=s.failedLookupLocations)==null||E.push(T);return}const z=hg(t,B);if(z&&B.fileExists(T)){const j=_P(T,B);k&&Ba(B,F.Found_package_json_at_0,T);const J={packageDirectory:t,contents:{packageJsonContent:j,versionPaths:void 0,resolvedEntrypoints:void 0}};return s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,J),(v=s.affectingLocations)==null||v.push(T),J}else z&&k&&Ba(B,F.File_0_does_not_exist,T),s.packageJsonInfoCache&&!s.packageJsonInfoCache.isReadonly&&s.packageJsonInfoCache.setPackageJsonInfo(T,z),(b=s.failedLookupLocations)==null||b.push(T)}function Sde(t,u,s,d,f,p){let E;f&&(d.isConfigLookup?E=KNt(f,u,d):E=t&4&&HNt(f,u,d)||t&7&&WNt(f,u,d)||void 0);const v=(M,z,j,J)=>{const K=JY(z,j,J);if(K){const ae=sPt(M,K);if(ae)return xde(ae);J.traceEnabled&&Ba(J.host,F.File_0_has_an_unsupported_extension_so_skipping_it,K)}const Y=M===4?5:M,oe=J.features,se=J.candidateIsFromPackageJsonField;J.candidateIsFromPackageJsonField=!0,(f==null?void 0:f.type)!=="module"&&(J.features&=-33);const ge=Fde(Y,z,j,J,!1);return J.features=oe,J.candidateIsFromPackageJsonField=se,ge},b=E?!hg(dr(E),d.host):void 0,B=s||!hg(u,d.host),k=hr(u,d.isConfigLookup?"tsconfig":"index");if(p&&(!E||JE(u,E))){const M=$E(u,E||k,!1);d.traceEnabled&&Ba(d.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,p.version,_,M);const z=BAe(t,M,u,p.paths,void 0,v,b||B,d);if(z)return jXe(z.value)}const T=E&&jXe(v(t,E,b,d));if(T)return T;if(!(d.features&32))return GB(t,k,B,d)}function sPt(t,u,s){const d=i3(u);return d!==void 0&&SAe(t,d)?{path:u,ext:d,resolvedUsingTsExtension:s}:void 0}function SAe(t,u){return t&2&&(u===".js"||u===".jsx"||u===".mjs"||u===".cjs")||t&1&&(u===".ts"||u===".tsx"||u===".mts"||u===".cts")||t&4&&(u===".d.ts"||u===".d.mts"||u===".d.cts")||t&8&&u===".json"||!1}function sH(t){let u=t.indexOf(ol);return t[0]==="@"&&(u=t.indexOf(ol,u+1)),u===-1?{packageName:t,rest:""}:{packageName:t.slice(0,u),rest:t.slice(u+1)}}function UY(t){return ye(Ps(t),u=>Ma(u,"."))}function lPt(t){return!Ge(Ps(t),u=>Ma(u,"."))}function cPt(t,u,s,d,f,p){var E,v;const b=qa(hr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=oH(b,d);if(!B||!B.contents.packageJsonContent.exports||typeof B.contents.packageJsonContent.name!="string")return;const k=yd(u),T=yd(B.contents.packageJsonContent.name);if(!ye(T,(K,Y)=>k[Y]===K))return;const M=k.slice(T.length),z=S(M)?`.${ol}${M.join(ol)}`:".";if(wv(d.compilerOptions)&&!q7(s))return Bde(B,t,z,d,f,p);const j=t&5,J=t&-6;return Bde(B,j,z,d,f,p)||Bde(B,J,z,d,f,p)}function Bde(t,u,s,d,f,p){if(t.contents.packageJsonContent.exports){if(s==="."){let E;if(typeof t.contents.packageJsonContent.exports=="string"||Array.isArray(t.contents.packageJsonContent.exports)||typeof t.contents.packageJsonContent.exports=="object"&&lPt(t.contents.packageJsonContent.exports)?E=t.contents.packageJsonContent.exports:Eu(t.contents.packageJsonContent.exports,".")&&(E=t.contents.packageJsonContent.exports["."]),E)return net(u,d,f,p,s,t,!1)(E,"",!1,".")}else if(UY(t.contents.packageJsonContent.exports)){if(typeof t.contents.packageJsonContent.exports!="object")return d.traceEnabled&&Ba(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Rm(void 0);const E=iet(u,d,f,p,s,t.contents.packageJsonContent.exports,t,!1);if(E)return E}return d.traceEnabled&&Ba(d.host,F.Export_specifier_0_does_not_exist_in_package_json_scope_at_path_1,s,t.packageDirectory),Rm(void 0)}}function dPt(t,u,s,d,f,p){var E,v;if(u==="#"||Ma(u,"#/"))return d.traceEnabled&&Ba(d.host,F.Invalid_import_specifier_0_has_no_possible_resolutions,u),Rm(void 0);const b=qa(hr(s,"dummy"),(v=(E=d.host).getCurrentDirectory)==null?void 0:v.call(E)),B=oH(b,d);if(!B)return d.traceEnabled&&Ba(d.host,F.Directory_0_has_no_containing_package_json_scope_Imports_will_not_resolve,b),Rm(void 0);if(!B.contents.packageJsonContent.imports)return d.traceEnabled&&Ba(d.host,F.package_json_scope_0_has_no_imports_defined,B.packageDirectory),Rm(void 0);const k=iet(t,d,f,p,u,B.contents.packageJsonContent.imports,B,!0);return k||(d.traceEnabled&&Ba(d.host,F.Import_specifier_0_does_not_exist_in_package_json_scope_at_path_1,u,B.packageDirectory),Rm(void 0))}function wde(t,u){const s=t.indexOf("*"),d=u.indexOf("*"),f=s===-1?t.length:s+1,p=d===-1?u.length:d+1;return f>p?-1:p>f||s===-1?1:d===-1||t.length>u.length?-1:u.length>t.length?1:0}function iet(t,u,s,d,f,p,E,v){const b=net(t,u,s,d,f,E,v);if(!lc(f,ol)&&!f.includes("*")&&Eu(p,f)){const T=p[f];return b(T,"",!1,f)}const B=Mh(ti(Ps(p),T=>T.includes("*")||lc(T,"/")),wde);for(const T of B)if(u.features&16&&k(T,f)){const M=p[T],z=T.indexOf("*"),j=f.substring(T.substring(0,z).length,f.length-(T.length-1-z));return b(M,j,!0,T)}else if(lc(T,"*")&&Ma(f,T.substring(0,T.length-1))){const M=p[T],z=f.substring(T.length-1);return b(M,z,!0,T)}else if(Ma(f,T)){const M=p[T],z=f.substring(T.length);return b(M,z,!1,T)}function k(T,M){if(lc(T,"*"))return!1;const z=T.indexOf("*");return z===-1?!1:Ma(M,T.substring(0,z))&&lc(M,T.substring(z+1))}}function net(t,u,s,d,f,p,E){return v;function v(b,B,k,T){if(typeof b=="string"){if(!k&&B.length>0&&!lc(b,"/"))return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0);if(!Ma(b,"./")){if(E&&!Ma(b,"../")&&!Ma(b,"/")&&!Pf(b)){const ae=k?b.replace(/\*/g,B):b+B;Gv(u,F.Using_0_subpath_1_with_target_2,"imports",T,ae),Gv(u,F.Resolving_module_0_from_1,ae,p.packageDirectory+"/");const Ce=uH(u.features,ae,p.packageDirectory+"/",u.compilerOptions,u.host,s,t,!1,d,u.conditions);return Rm(Ce.resolvedModule?{path:Ce.resolvedModule.resolvedFileName,extension:Ce.resolvedModule.extension,packageId:Ce.resolvedModule.packageId,originalPath:Ce.resolvedModule.originalPath,resolvedUsingTsExtension:Ce.resolvedModule.resolvedUsingTsExtension}:void 0)}return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0)}const K=(om(b)?yd(b).slice(1):yd(b)).slice(1);if(K.includes("..")||K.includes(".")||K.includes("node_modules"))return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0);const Y=hr(p.packageDirectory,b),oe=yd(B);if(oe.includes("..")||oe.includes(".")||oe.includes("node_modules"))return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0);u.traceEnabled&&Ba(u.host,F.Using_0_subpath_1_with_target_2,E?"imports":"exports",T,k?b.replace(/\*/g,B):b+B);const se=M(k?Y.replace(/\*/g,B):Y+B),ge=j(se,B,hr(p.packageDirectory,"package.json"),E);return ge||Rm($7(p,FAe(t,se,!1,u)))}else if(typeof b=="object"&&b!==null)if(Array.isArray(b)){if(!S(b))return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0);for(const J of b){const K=v(J,B,k,T);if(K)return K}}else{Gv(u,F.Entering_conditional_exports);for(const J of Ps(b))if(J==="default"||u.conditions.includes(J)||lH(u.conditions,J)){Gv(u,F.Matched_0_condition_1,E?"imports":"exports",J);const K=b[J],Y=v(K,B,k,T);if(Y)return Gv(u,F.Resolved_under_condition_0,J),Gv(u,F.Exiting_conditional_exports),Y;Gv(u,F.Failed_to_resolve_under_condition_0,J)}else Gv(u,F.Saw_non_matching_condition_0,J);Gv(u,F.Exiting_conditional_exports);return}else if(b===null)return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_explicitly_maps_specifier_1_to_null,p.packageDirectory,f),Rm(void 0);return u.traceEnabled&&Ba(u.host,F.package_json_scope_0_has_invalid_type_for_target_of_specifier_1,p.packageDirectory,f),Rm(void 0);function M(J){var K,Y;return J===void 0?J:qa(J,(Y=(K=u.host).getCurrentDirectory)==null?void 0:Y.call(K))}function z(J,K){return zd(hr(J,K))}function j(J,K,Y,oe){var se,ge,ae,Ce;if(!u.isConfigLookup&&(u.compilerOptions.declarationDir||u.compilerOptions.outDir)&&!J.includes("/node_modules/")&&(!u.compilerOptions.configFile||JE(p.packageDirectory,M(u.compilerOptions.configFile.fileName),!Tde(u)))){const ve=n5({useCaseSensitiveFileNames:()=>Tde(u)}),Se=[];if(u.compilerOptions.rootDir||u.compilerOptions.composite&&u.compilerOptions.configFilePath){const Ne=M(kM(u.compilerOptions,()=>[],((ge=(se=u.host).getCurrentDirectory)==null?void 0:ge.call(se))||"",ve));Se.push(Ne)}else if(u.requestContainingDirectory){const Ne=M(hr(u.requestContainingDirectory,"index.ts")),pe=M(kM(u.compilerOptions,()=>[Ne,M(Y)],((Ce=(ae=u.host).getCurrentDirectory)==null?void 0:Ce.call(ae))||"",ve));Se.push(pe);let fe=zd(pe);for(;fe&&fe.length>1;){const xe=yd(fe);xe.pop();const Be=yx(xe);Se.unshift(Be),fe=zd(Be)}}Se.length>1&&u.reportDiagnostic(dc(oe?F.The_project_root_is_ambiguous_but_is_required_to_resolve_import_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate:F.The_project_root_is_ambiguous_but_is_required_to_resolve_export_map_entry_0_in_file_1_Supply_the_rootDir_compiler_option_to_disambiguate,K===""?".":K,Y));for(const Ne of Se){const pe=ne(Ne);for(const fe of pe)if(JE(fe,J,!Tde(u))){const xe=J.slice(fe.length+1),Be=hr(Ne,xe),We=[".mjs",".cjs",".js",".json",".d.mts",".d.cts",".d.ts"];for(const Ae of We)if(Ml(Be,Ae)){const De=Fye(Be);for(const He of De){if(!SAe(t,He))continue;const Je=SO(Be,He,Ae,!Tde(u));if(u.host.fileExists(Je))return Rm($7(p,FAe(t,Je,!1,u)))}}}}}return;function ne(ve){var Se,Ne;const pe=u.compilerOptions.configFile?((Ne=(Se=u.host).getCurrentDirectory)==null?void 0:Ne.call(Se))||"":ve,fe=[];return u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.declarationDir))),u.compilerOptions.outDir&&u.compilerOptions.outDir!==u.compilerOptions.declarationDir&&fe.push(M(z(pe,u.compilerOptions.outDir))),fe}}}}function lH(t,u){if(!t.includes("types")||!Ma(u,"types@"))return!1;const s=_O.tryParse(u.substring(6));return s?s.test(_):!1}function uet(t,u,s,d,f,p){return ret(t,u,s,d,!1,f,p)}function hPt(t,u,s){return ret(4,t,u,s,!0,void 0,void 0)}function ret(t,u,s,d,f,p,E){const v=d.features===0?void 0:d.features&32?99:1,b=t&5,B=t&-6;if(b){Gv(d,F.Searching_all_ancestor_node_modules_directories_for_preferred_extensions_Colon_0,VY(b));const T=k(b);if(T)return T}if(B&&!f)return Gv(d,F.Searching_all_ancestor_node_modules_directories_for_fallback_extensions_Colon_0,VY(B)),k(B);function k(T){return qg(Z1(s),M=>{if(Bc(M)!=="node_modules"){const z=cet(p,u,v,M,E,d);return z||Rm(aet(T,u,M,d,f,p,E))}})}}function aet(t,u,s,d,f,p,E){const v=hr(s,"node_modules"),b=hg(v,d.host);if(!b&&d.traceEnabled&&Ba(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,v),!f){const B=oet(t,u,v,b,d,p,E);if(B)return B}if(t&4){const B=hr(v,"@types");let k=b;return b&&!hg(B,d.host)&&(d.traceEnabled&&Ba(d.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,B),k=!1),oet(4,set(u,d),B,k,d,p,E)}}function oet(t,u,s,d,f,p,E){var v,b;const B=Uo(hr(s,u)),{packageName:k,rest:T}=sH(u),M=hr(s,k);let z,j=q2(B,!d,f);if(T!==""&&j&&(!(f.features&8)||!Eu(((v=z=q2(M,!d,f))==null?void 0:v.contents.packageJsonContent)??Dt,"exports"))){const Y=GB(t,B,!d,f);if(Y)return xde(Y);const oe=Sde(t,B,!d,f,j.contents.packageJsonContent,$Y(j,f));return $7(j,oe)}const J=(Y,oe,se,ge)=>{let ae=(T||!(ge.features&32))&&GB(Y,oe,se,ge)||Sde(Y,oe,se,ge,j&&j.contents.packageJsonContent,j&&$Y(j,ge));return!ae&&j&&(j.contents.packageJsonContent.exports===void 0||j.contents.packageJsonContent.exports===null)&&ge.features&32&&(ae=GB(Y,hr(oe,"index.js"),se,ge)),$7(j,ae)};if(T!==""&&(j=z??q2(M,!d,f)),j&&j.contents.packageJsonContent.exports&&f.features&8)return(b=Bde(j,t,hr(".",T),f,p,E))==null?void 0:b.value;const K=T!==""&&j?$Y(j,f):void 0;if(K){f.traceEnabled&&Ba(f.host,F.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2,K.version,_,T);const Y=d&&hg(M,f.host),oe=BAe(t,T,M,K.paths,void 0,J,!Y,f);if(oe)return oe.value}return J(t,B,!d,f)}function BAe(t,u,s,d,f,p,E,v){f||(f=dZ(d));const b=Tle(f,u);if(b){const B=Ua(b)?void 0:o2e(b,u),k=Ua(b)?b:a2e(b);return v.traceEnabled&&Ba(v.host,F.Module_name_0_matched_pattern_1,u,k),{value:L(d[k],M=>{const z=B?M.replace("*",B):M,j=Uo(hr(s,z));v.traceEnabled&&Ba(v.host,F.Trying_substitution_0_candidate_module_location_Colon_1,M,z);const J=i3(M);if(J!==void 0){const K=JY(j,E,v);if(K!==void 0)return xde({path:K,ext:J,resolvedUsingTsExtension:void 0})}return p(t,j,E||!hg(dr(j),v.host),v)})}}}function set(t,u){const s=JB(t);return u.traceEnabled&&s!==t&&Ba(u.host,F.Scoped_package_detected_looking_in_0,s),s}function qY(t){return`@types/${JB(t)}`}function JB(t){if(Ma(t,"@")){const u=t.replace(ol,Nde);if(u!==t)return u.slice(1)}return t}function fM(t){const u=kN(t,"@types/");return u!==t?cH(u):t}function cH(t){return t.includes(Nde)?"@"+t.replace(Nde,ol):t}function cet(t,u,s,d,f,p){const E=t&&t.getFromNonRelativeNameCache(u,s,d,f);if(E)return p.traceEnabled&&Ba(p.host,F.Resolution_for_module_0_was_found_in_cache_from_location_1,u,d),p.resultFromCache=E,{value:E.resolvedModule&&{path:E.resolvedModule.resolvedFileName,originalPath:E.resolvedModule.originalPath||!0,extension:E.resolvedModule.extension,packageId:E.resolvedModule.packageId,resolvedUsingTsExtension:E.resolvedModule.resolvedUsingTsExtension}}}function wAe(t,u,s,d,f,p){const E=aD(s,d),v=[],b=[],B=dr(u),k=[],T={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:f,features:0,conditions:[],requestContainingDirectory:B,reportDiagnostic:j=>void k.push(j),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},M=z(5)||z(2|(s.resolveJsonModule?8:0));return VXe(t,M&&M.value,(M==null?void 0:M.value)&&q7(M.value.path),v,b,k,T,f);function z(j){const J=qXe(j,t,B,kAe,T);if(J)return{value:J};if(Id(t)){const K=Uo(hr(B,t));return Rm(kAe(j,K,!1,T))}else{const K=qg(B,Y=>{const oe=cet(f,t,void 0,Y,p,T);if(oe)return oe;const se=Uo(hr(Y,t));return Rm(kAe(j,se,!1,T))});if(K)return K;if(j&5){let Y=hPt(t,B,T);return j&4&&(Y??(Y=det(t,T))),Y}}}}function det(t,u){if(u.compilerOptions.typeRoots)for(const s of u.compilerOptions.typeRoots){const d=GXe(s,t,u),f=hg(s,u.host);!f&&u.traceEnabled&&Ba(u.host,F.Directory_0_does_not_exist_skipping_all_lookups_in_it,s);const p=GB(4,d,!f,u);if(p){const v=rH(p.path),b=v?q2(v,!1,u):void 0;return Rm($7(b,p))}const E=AAe(4,d,!f,u);if(E)return Rm(E)}}function $B(t,u){return!!t.allowImportingTsExtensions||u&&t1(u)}function TAe(t,u,s,d,f,p){const E=aD(s,d);E&&Ba(d,F.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2,u,t,f);const v=[],b=[],B=[],k={compilerOptions:s,host:d,traceEnabled:E,failedLookupLocations:v,affectingLocations:b,packageJsonInfoCache:p,features:0,conditions:[],requestContainingDirectory:void 0,reportDiagnostic:M=>void B.push(M),isConfigLookup:!1,candidateIsFromPackageJsonField:!1},T=aet(4,t,f,k,!1,void 0,void 0);return HXe(T,!0,v,b,B,k.resultFromCache,void 0)}function Rm(t){return t!==void 0?{value:t}:void 0}function Gv(t,u,...s){t.traceEnabled&&Ba(t.host,u,...s)}function Tde(t){return t.host.useCaseSensitiveFileNames?typeof t.host.useCaseSensitiveFileNames=="boolean"?t.host.useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames():!0}var LAe,het,Lde,s_,Nde,fPt=o({"src/compiler/moduleNameResolver.ts"(){Bo(),het=hr("node_modules","@types"),Lde=(t=>(t[t.None=0]="None",t[t.Imports=2]="Imports",t[t.SelfName=4]="SelfName",t[t.Exports=8]="Exports",t[t.ExportsPatternTrailers=16]="ExportsPatternTrailers",t[t.AllFeatures=30]="AllFeatures",t[t.Node16Default=30]="Node16Default",t[t.NodeNextDefault=30]="NodeNextDefault",t[t.BundlerDefault=30]="BundlerDefault",t[t.EsmMode=32]="EsmMode",t))(Lde||{}),s_="/node_modules/",Nde="__"}});function oD(t,u){return t.body&&!t.body.parent&&(ks(t.body,t),Vx(t.body,!1)),t.body?NAe(t.body,u):1}function NAe(t,u=new Map){const s=Us(t);if(u.has(s))return u.get(s)||0;u.set(s,void 0);const d=mPt(t,u);return u.set(s,d),d}function mPt(t,u){switch(t.kind){case 264:case 265:return 0;case 266:if(y2(t))return 2;break;case 272:case 271:if(!Qu(t,32))return 0;break;case 278:const s=t;if(!s.moduleSpecifier&&s.exportClause&&s.exportClause.kind===279){let d=0;for(const f of s.exportClause.elements){const p=pPt(f,u);if(p>d&&(d=p),d===1)return d}return d}break;case 268:{let d=0;return ao(t,f=>{const p=NAe(f,u);switch(p){case 0:return;case 2:d=2;return;case 1:return d=1,!0;default:H.assertNever(p)}}),d}case 267:return oD(t,u);case 80:if(t.flags&4096)return 0}return 1}function pPt(t,u){const s=t.propertyName||t.name;let d=t.parent;for(;d;){if(go(d)||aE(d)||ca(d)){const f=d.statements;let p;for(const E of f)if(VO(E,s)){E.parent||(ks(E,d),Vx(E,!1));const v=NAe(E,u);if((p===void 0||v>p)&&(p=v),p===1)return p;E.kind===271&&(p=1)}if(p!==void 0)return p}d=d.parent}return 1}function Z7(t){return H.attachFlowNodeDebugInfo(t),t}function PAe(t,u){var s,d;al("beforeBind"),(s=mh)==null||s.logStartBindFile(""+t.fileName),met(t,u),(d=mh)==null||d.logStopBindFile(),al("afterBind"),Lm("Bind","beforeBind","afterBind")}function gPt(){var t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce=!1,ne=0,ve,Se,Ne={flags:1},pe={flags:1},fe=le();return Be;function xe(Q,Me,...Tt){return G4(zn(Q)||t,Q,Me,...Tt)}function Be(Q,Me){var Tt,yi;t=Q,u=Me,s=js(u),ae=We(t,Me),Se=new Set,ne=0,ve=Xd.getSymbolConstructor(),H.attachFlowNodeDebugInfo(Ne),H.attachFlowNodeDebugInfo(pe),t.locals||((Tt=Gn)==null||Tt.push(Gn.Phase.Bind,"bindSourceFile",{path:t.path},!0),vt(t),(yi=Gn)==null||yi.pop(),t.symbolCount=ne,t.classifiableNames=Se,Cl()),t=void 0,u=void 0,s=void 0,d=void 0,f=void 0,p=void 0,E=void 0,v=void 0,b=void 0,B=!1,k=void 0,T=void 0,M=void 0,z=void 0,j=void 0,J=void 0,K=void 0,oe=void 0,se=!1,Ce=!1,ge=0}function We(Q,Me){return Q4(Me,"alwaysStrict")&&!Q.isDeclarationFile?!0:!!Q.externalModuleIndicator}function Ae(Q,Me){return ne++,new ve(Q,Me)}function De(Q,Me,Tt){Q.flags|=Tt,Me.symbol=Q,Q.declarations=t0(Q.declarations,Me),Tt&1955&&!Q.exports&&(Q.exports=Ho()),Tt&6240&&!Q.members&&(Q.members=Ho()),Q.constEnumOnlyModule&&Q.flags&304&&(Q.constEnumOnlyModule=!1),Tt&111551&&Aj(Q,Me)}function He(Q){if(Q.kind===277)return Q.isExportEquals?"export=":"default";const Me=Ya(Q);if(Me){if(P1(Q)){const Tt=U4(Me);return Qg(Q)?"__global":`"${Tt}"`}if(Me.kind===167){const Tt=Me.expression;if(Mm(Tt))return Sl(Tt.text);if(Nq(Tt))return qo(Tt.operator)+Tt.operand.text;H.fail("Only computed properties with literal names have declaration names")}if(ea(Me)){const Tt=Qd(Q);if(!Tt)return;const yi=Tt.symbol;return Ij(yi,Me.escapedText)}return gg(Me)?k7(Me):eE(Me)?sP(Me):void 0}switch(Q.kind){case 176:return"__constructor";case 184:case 179:case 330:return"__call";case 185:case 180:return"__new";case 181:return"__index";case 278:return"__export";case 312:return"export=";case 226:if(ec(Q)===2)return"export=";H.fail("Unknown binary declaration kind");break;case 324:return X8(Q)?"__new":"__call";case 169:return H.assert(Q.parent.kind===324,"Impossible parameter parent kind",()=>`parent is: ${H.formatSyntaxKind(Q.parent.kind)}, expected JSDocFunctionType`),"arg"+Q.parent.parameters.indexOf(Q)}}function Je(Q){return gh(Q)?k0(Q.name):Qr(H.checkDefined(He(Q)))}function mt(Q,Me,Tt,yi,In,nr,ur){H.assert(ur||!Ix(Tt));const fa=Qu(Tt,2048)||th(Tt)&&Tt.name.escapedText==="default",ss=ur?"__computed":fa&&Me?"default":He(Tt);let ls;if(ss===void 0)ls=Ae(0,"__missing");else if(ls=Q.get(ss),yi&2885600&&Se.add(ss),!ls)Q.set(ss,ls=Ae(0,ss)),nr&&(ls.isReplaceableByMethod=!0);else{if(nr&&!ls.isReplaceableByMethod)return ls;if(ls.flags&In){if(ls.isReplaceableByMethod)Q.set(ss,ls=Ae(0,ss));else if(!(yi&3&&ls.flags&67108864)){gh(Tt)&&ks(Tt.name,Tt);let Rl=ls.flags&2?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,v1=!0;(ls.flags&384||yi&384)&&(Rl=F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations,v1=!1);let fd=!1;S(ls.declarations)&&(fa||ls.declarations&&ls.declarations.length&&Tt.kind===277&&!Tt.isExportEquals)&&(Rl=F.A_module_cannot_have_multiple_default_exports,v1=!1,fd=!0);const Um=[];Vp(Tt)&&Xl(Tt.type)&&Qu(Tt,32)&&ls.flags&2887656&&Um.push(xe(Tt,F.Did_you_mean_0,`export type { ${Qr(Tt.name.escapedText)} }`));const _s=Ya(Tt)||Tt;L(ls.declarations,(qm,f3)=>{const h_=Ya(qm)||qm,ia=v1?xe(h_,Rl,Je(qm)):xe(h_,Rl);t.bindDiagnostics.push(fd?Es(ia,xe(_s,f3===0?F.Another_export_default_is_here:F.and_here)):ia),fd&&Um.push(xe(h_,F.The_first_export_default_is_here))});const rp=v1?xe(_s,Rl,Je(Tt)):xe(_s,Rl);t.bindDiagnostics.push(Es(rp,...Um)),ls=Ae(0,ss)}}}return De(ls,Tt,yi),ls.parent?H.assert(ls.parent===Me,"Existing symbol parent should match new one"):ls.parent=Me,ls}function Ye(Q,Me,Tt){const yi=!!(p2(Q)&32)||je(Q);if(Me&2097152)return Q.kind===281||Q.kind===271&&yi?mt(f.symbol.exports,f.symbol,Q,Me,Tt):(H.assertNode(f,qE),mt(f.locals,void 0,Q,Me,Tt));if($4(Q)&&H.assert(Xn(Q)),!P1(Q)&&(yi||f.flags&128)){if(!qE(f)||!f.locals||Qu(Q,2048)&&!He(Q))return mt(f.symbol.exports,f.symbol,Q,Me,Tt);const In=Me&111551?1048576:0,nr=mt(f.locals,void 0,Q,In,Tt);return nr.exportSymbol=mt(f.symbol.exports,f.symbol,Q,Me,Tt),Q.localSymbol=nr,nr}else return H.assertNode(f,qE),mt(f.locals,void 0,Q,Me,Tt)}function je(Q){if(Q.parent&&xc(Q)&&(Q=Q.parent),!$4(Q))return!1;if(!NV(Q)&&Q.fullName)return!0;const Me=Ya(Q);return Me?!!(Uj(Me.parent)&&ql(Me.parent)||X1(Me.parent)&&p2(Me.parent)&32):!1}function Ke(Q,Me){const Tt=f,yi=p,In=E;if(Me&1?(Q.kind!==219&&(p=f),f=E=Q,Me&32&&(f.locals=Ho(),da(f))):Me&2&&(E=Q,Me&32&&(E.locals=void 0)),Me&4){const nr=k,ur=T,fa=M,ss=z,ls=K,Rl=oe,v1=se,fd=Me&16&&!Qu(Q,1024)&&!Q.asteriskToken&&!!nk(Q)||Q.kind===175;fd||(k=Z7({flags:2}),Me&144&&(k.node=Q)),z=fd||Q.kind===176||Xn(Q)&&(Q.kind===262||Q.kind===218)?xn():void 0,K=void 0,T=void 0,M=void 0,oe=void 0,se=!1,st(Q),Q.flags&=-5633,!(k.flags&1)&&Me&8&&W4(Q.body)&&(Q.flags|=512,se&&(Q.flags|=1024),Q.endFlowNode=k),Q.kind===312&&(Q.flags|=ge,Q.endFlowNode=k),z&&(Fi(z,k),k=bt(z),(Q.kind===176||Q.kind===175||Xn(Q)&&(Q.kind===262||Q.kind===218))&&(Q.returnFlowNode=k)),fd||(k=nr),T=ur,M=fa,z=ss,K=ls,oe=Rl,se=v1}else Me&64?(B=!1,st(Q),H.assertNotNode(Q,at),Q.flags=B?Q.flags|256:Q.flags&-257):st(Q);f=Tt,p=yi,E=In}function Gt(Q){Yt(Q,Me=>Me.kind===262?vt(Me):void 0),Yt(Q,Me=>Me.kind!==262?vt(Me):void 0)}function Yt(Q,Me=vt){Q!==void 0&&L(Q,Me)}function Ie(Q){ao(Q,vt,Yt)}function st(Q){const Me=Ce;if(Ce=!1,vi(Q)){Ie(Q),fi(Q),Ce=Me;return}switch(Q.kind>=243&&Q.kind<=259&&!u.allowUnreachableCode&&(Q.flowNode=k),Q.kind){case 247:aa(Q);break;case 246:Ta(Q);break;case 248:Qo(Q);break;case 249:case 250:bo(Q);break;case 245:Qe(Q);break;case 253:case 257:_t(Q);break;case 252:case 251:Xt(Q);break;case 258:Pe(Q);break;case 255:et(Q);break;case 269:Et(Q);break;case 296:ii(Q);break;case 244:me(Q);break;case 256:xi(Q);break;case 224:$i(Q);break;case 225:Qi(Q);break;case 226:if(r5(Q)){Ce=Me,on(Q);return}fe(Q);break;case 220:te(Q);break;case 227:we(Q);break;case 260:Oe(Q);break;case 211:case 212:Er(Q);break;case 213:er(Q);break;case 235:Ou(Q);break;case 353:case 345:case 347:ct(Q);break;case 312:{Gt(Q.statements),vt(Q.endOfFileToken);break}case 241:case 268:Gt(Q.statements);break;case 208:X(Q);break;case 169:it(Q);break;case 210:case 209:case 303:case 230:Ce=Me;default:Ie(Q);break}fi(Q),Ce=Me}function Bt(Q){switch(Q.kind){case 80:case 81:case 110:case 211:case 212:return ei(Q);case 213:return ft(Q);case 217:case 235:return Bt(Q.expression);case 226:return Ni(Q);case 224:return Q.operator===54&&Bt(Q.operand);case 221:return Bt(Q.expression)}return!1}function It(Q){return gP(Q)||(Ru(Q)||O7(Q)||Cf(Q))&&It(Q.expression)||eu(Q)&&Q.operatorToken.kind===28&&It(Q.right)||q0(Q)&&(Mm(Q.argumentExpression)||tc(Q.argumentExpression))&&It(Q.expression)||ld(Q)&&It(Q.left)}function ei(Q){return It(Q)||Q1(Q)&&ei(Q.expression)}function ft(Q){if(Q.arguments){for(const Me of Q.arguments)if(ei(Me))return!0}return!!(Q.expression.kind===211&&ei(Q.expression.expression))}function Ut(Q,Me){return AB(Q)&&Vi(Q.expression)&&i0(Me)}function Ni(Q){switch(Q.operatorToken.kind){case 64:case 76:case 77:case 78:return ei(Q.left);case 35:case 36:case 37:case 38:return Vi(Q.left)||Vi(Q.right)||Ut(Q.right,Q.left)||Ut(Q.left,Q.right)||KN(Q.right)&&Bt(Q.left)||KN(Q.left)&&Bt(Q.right);case 104:return Vi(Q.left);case 103:return Bt(Q.right);case 28:return Bt(Q.right)}return!1}function Vi(Q){switch(Q.kind){case 217:return Vi(Q.expression);case 226:switch(Q.operatorToken.kind){case 64:return Vi(Q.left);case 28:return Vi(Q.right)}}return ei(Q)}function xn(){return Z7({flags:4,antecedents:void 0})}function Jn(){return Z7({flags:8,antecedents:void 0})}function an(Q,Me,Tt){return Z7({flags:1024,target:Q,antecedents:Me,antecedent:Tt})}function Pi(Q){Q.flags|=Q.flags&2048?4096:2048}function Fi(Q,Me){!(Me.flags&1)&&!kt(Q.antecedents,Me)&&((Q.antecedents||(Q.antecedents=[])).push(Me),Pi(Me))}function Yu(Q,Me,Tt){return Me.flags&1?Me:Tt?(Tt.kind===112&&Q&64||Tt.kind===97&&Q&32)&&!IU(Tt)&&!Gse(Tt.parent)?Ne:Bt(Tt)?(Pi(Me),Z7({flags:Q,antecedent:Me,node:Tt})):Me:Q&32?Me:Ne}function oa(Q,Me,Tt,yi){return Pi(Q),Z7({flags:128,antecedent:Q,switchStatement:Me,clauseStart:Tt,clauseEnd:yi})}function Fr(Q,Me,Tt){Pi(Me);const yi=Z7({flags:Q,antecedent:Me,node:Tt});return K&&Fi(K,yi),yi}function wa(Q,Me){return Pi(Q),Z7({flags:512,antecedent:Q,node:Me})}function bt(Q){const Me=Q.antecedents;return Me?Me.length===1?Me[0]:Q:Ne}function jn(Q){const Me=Q.parent;switch(Me.kind){case 245:case 247:case 246:return Me.expression===Q;case 248:case 227:return Me.condition===Q}return!1}function Ln(Q){for(;;)if(Q.kind===217)Q=Q.expression;else if(Q.kind===224&&Q.operator===54)Q=Q.operand;else return Jj(Q)}function Ai(Q){return lle(l0(Q))}function Dn(Q){for(;Cf(Q.parent)||Iv(Q.parent)&&Q.parent.operator===54;)Q=Q.parent;return!jn(Q)&&!Ln(Q.parent)&&!(Q1(Q.parent)&&Q.parent.expression===Q)}function Cn(Q,Me,Tt,yi){const In=j,nr=J;j=Tt,J=yi,Q(Me),j=In,J=nr}function tu(Q,Me,Tt){Cn(vt,Q,Me,Tt),(!Q||!Ai(Q)&&!Ln(Q)&&!(Q1(Q)&&ON(Q)))&&(Fi(Me,Yu(32,k,Q)),Fi(Tt,Yu(64,k,Q)))}function sa(Q,Me,Tt){const yi=T,In=M;T=Me,M=Tt,vt(Q),T=yi,M=In}function xa(Q,Me){let Tt=oe;for(;Tt&&Q.parent.kind===256;)Tt.continueTarget=Me,Tt=Tt.next,Q=Q.parent;return Me}function aa(Q){const Me=xa(Q,Jn()),Tt=xn(),yi=xn();Fi(Me,k),k=Me,tu(Q.expression,Tt,yi),k=bt(Tt),sa(Q.statement,yi,Me),Fi(Me,k),k=bt(yi)}function Ta(Q){const Me=Jn(),Tt=xa(Q,xn()),yi=xn();Fi(Me,k),k=Me,sa(Q.statement,yi,Tt),Fi(Tt,k),k=bt(Tt),tu(Q.expression,Me,yi),k=bt(yi)}function Qo(Q){const Me=xa(Q,Jn()),Tt=xn(),yi=xn();vt(Q.initializer),Fi(Me,k),k=Me,tu(Q.condition,Tt,yi),k=bt(Tt),sa(Q.statement,yi,Me),vt(Q.incrementor),Fi(Me,k),k=bt(yi)}function bo(Q){const Me=xa(Q,Jn()),Tt=xn();vt(Q.expression),Fi(Me,k),k=Me,Q.kind===250&&vt(Q.awaitModifier),Fi(Tt,k),vt(Q.initializer),Q.initializer.kind!==261&&Ot(Q.initializer),sa(Q.statement,Tt,Me),Fi(Me,k),k=bt(Tt)}function Qe(Q){const Me=xn(),Tt=xn(),yi=xn();tu(Q.expression,Me,Tt),k=bt(Me),vt(Q.thenStatement),Fi(yi,k),k=bt(Tt),vt(Q.elseStatement),Fi(yi,k),k=bt(yi)}function _t(Q){vt(Q.expression),Q.kind===253&&(se=!0,z&&Fi(z,k)),k=Ne}function Mt(Q){for(let Me=oe;Me;Me=Me.next)if(Me.name===Q)return Me}function qt(Q,Me,Tt){const yi=Q.kind===252?Me:Tt;yi&&(Fi(yi,k),k=Ne)}function Xt(Q){if(vt(Q.label),Q.label){const Me=Mt(Q.label.escapedText);Me&&(Me.referenced=!0,qt(Q,Me.breakTarget,Me.continueTarget))}else qt(Q,T,M)}function Pe(Q){const Me=z,Tt=K,yi=xn(),In=xn();let nr=xn();if(Q.finallyBlock&&(z=In),Fi(nr,k),K=nr,vt(Q.tryBlock),Fi(yi,k),Q.catchClause&&(k=bt(nr),nr=xn(),Fi(nr,k),K=nr,vt(Q.catchClause),Fi(yi,k)),z=Me,K=Tt,Q.finallyBlock){const ur=xn();ur.antecedents=mi(mi(yi.antecedents,nr.antecedents),In.antecedents),k=ur,vt(Q.finallyBlock),k.flags&1?k=Ne:(z&&In.antecedents&&Fi(z,an(ur,In.antecedents,k)),K&&nr.antecedents&&Fi(K,an(ur,nr.antecedents,k)),k=yi.antecedents?an(ur,yi.antecedents,k):Ne)}else k=bt(yi)}function et(Q){const Me=xn();vt(Q.expression);const Tt=T,yi=Y;T=Me,Y=k,vt(Q.caseBlock),Fi(Me,k);const In=L(Q.caseBlock.clauses,nr=>nr.kind===297);Q.possiblyExhaustive=!In&&!Me.antecedents,In||Fi(Me,oa(Y,Q,0,0)),T=Tt,Y=yi,k=bt(Me)}function Et(Q){const Me=Q.clauses,Tt=Q.parent.expression.kind===112||Bt(Q.parent.expression);let yi=Ne;for(let In=0;In$c(Tt)||ic(Tt))}function os(Q){Q.flags&33554432&&!Rr(Q)?Q.flags|=128:Q.flags&=-129}function wo(Q){if(os(Q),P1(Q))if(Qu(Q,32)&&X0(Q,F.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible),E0e(Q))Fn(Q);else{let Me;if(Q.name.kind===11){const{text:yi}=Q.name;Me=fB(yi),Me===void 0&&X0(Q.name,F.Pattern_0_can_have_at_most_one_Asterisk_character,yi)}const Tt=Wu(Q,512,110735);t.patternAmbientModules=Di(t.patternAmbientModules,Me&&!Ua(Me)?{pattern:Me,symbol:Tt}:void 0)}else{const Me=Fn(Q);if(Me!==0){const{symbol:Tt}=Q;Tt.constEnumOnlyModule=!(Tt.flags&304)&&Me===2&&Tt.constEnumOnlyModule!==!1}}}function Fn(Q){const Me=oD(Q),Tt=Me!==0;return Wu(Q,Tt?512:1024,Tt?110735:0),Me}function bc(Q){const Me=Ae(131072,He(Q));De(Me,Q,131072);const Tt=Ae(2048,"__type");De(Tt,Q,2048),Tt.members=Ho(),Tt.members.set(Me.escapedName,Me)}function Qa(Q){return Tl(Q,4096,"__object")}function c0(Q){return Tl(Q,4096,"__jsxAttributes")}function Ul(Q,Me,Tt){return Wu(Q,Me,Tt)}function Tl(Q,Me,Tt){const yi=Ae(Me,Tt);return Me&106508&&(yi.parent=f.symbol),De(yi,Q,Me),yi}function hd(Q,Me,Tt){switch(E.kind){case 267:Ye(Q,Me,Tt);break;case 312:if(cm(f)){Ye(Q,Me,Tt);break}default:H.assertNode(E,qE),E.locals||(E.locals=Ho(),da(E)),mt(E.locals,void 0,Q,Me,Tt)}}function Cl(){if(!b)return;const Q=f,Me=v,Tt=E,yi=d,In=k;for(const nr of b){const ur=nr.parent.parent;f=y0e(ur)||t,E=QE(ur)||t,k=Z7({flags:2}),d=nr,vt(nr.typeExpression);const fa=Ya(nr);if((NV(nr)||!nr.fullName)&&fa&&Uj(fa.parent)){const ss=ql(fa.parent);if(ss){Ll(t.symbol,fa.parent,ss,!!Tn(fa,Rl=>Ru(Rl)&&Rl.name.escapedText==="prototype"),!1);const ls=f;switch(kj(fa.parent)){case 1:case 2:cm(t)?f=t:f=void 0;break;case 4:f=fa.parent.expression;break;case 3:f=fa.parent.expression.name;break;case 5:f=Z2(t,fa.parent.expression)?t:Ru(fa.parent.expression)?fa.parent.expression.name:fa.parent.expression;break;case 0:return H.fail("Shouldn't have detected typedef or enum on non-assignment declaration")}f&&Ye(nr,524288,788968),f=ls}}else NV(nr)||!nr.fullName||nr.fullName.kind===80?(d=nr.parent,hd(nr,524288,788968)):vt(nr.fullName)}f=Q,v=Me,E=Tt,d=yi,k=In}function ho(Q){if(!t.parseDiagnostics.length&&!(Q.flags&33554432)&&!(Q.flags&16777216)&&!_ye(Q)){const Me=xv(Q);if(Me===void 0)return;ae&&Me>=119&&Me<=127?t.bindDiagnostics.push(xe(Q,Ko(Q),k0(Q))):Me===135?Lc(t)&&pq(Q)?t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module,k0(Q))):Q.flags&65536&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,k0(Q))):Me===127&&Q.flags&16384&&t.bindDiagnostics.push(xe(Q,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here,k0(Q)))}}function Ko(Q){return Qd(Q)?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode:F.Identifier_expected_0_is_a_reserved_word_in_strict_mode}function nd(Q){Q.escapedText==="#constructor"&&(t.parseDiagnostics.length||t.bindDiagnostics.push(xe(Q,F.constructor_is_a_reserved_word,k0(Q))))}function Q0(Q){ae&&Df(Q.left)&&u5(Q.operatorToken.kind)&&Pc(Q,Q.left)}function Wo(Q){ae&&Q.variableDeclaration&&Pc(Q,Q.variableDeclaration.name)}function Nc(Q){if(ae&&Q.expression.kind===80){const Me=b2(t,Q.expression);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,F.delete_cannot_be_called_on_an_identifier_in_strict_mode))}}function $p(Q){return at(Q)&&(Q.escapedText==="eval"||Q.escapedText==="arguments")}function Pc(Q,Me){if(Me&&Me.kind===80){const Tt=Me;if($p(Tt)){const yi=b2(t,Me);t.bindDiagnostics.push(Rd(t,yi.start,yi.length,Il(Q),fu(Tt)))}}}function Il(Q){return Qd(Q)?F.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:t.externalModuleIndicator?F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode:F.Invalid_use_of_0_in_strict_mode}function hl(Q){ae&&Pc(Q,Q.name)}function Ga(Q){return Qd(Q)?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode:t.externalModuleIndicator?F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode:F.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5}function Oi(Q){if(s<2&&E.kind!==312&&E.kind!==267&&!L8(E)){const Me=b2(t,Q);t.bindDiagnostics.push(Rd(t,Me.start,Me.length,Ga(Q)))}}function fl(Q){ae&&Pc(Q,Q.operand)}function Zc(Q){ae&&(Q.operator===46||Q.operator===47)&&Pc(Q,Q.operand)}function yh(Q){ae&&X0(Q,F.with_statements_are_not_allowed_in_strict_mode)}function sf(Q){ae&&js(u)>=2&&(vbe(Q.statement)||Jl(Q.statement))&&X0(Q.label,F.A_label_is_not_allowed_here)}function X0(Q,Me,...Tt){const yi=XE(t,Q.pos);t.bindDiagnostics.push(Rd(t,yi.start,yi.length,Me,...Tt))}function yc(Q,Me,Tt){$(Q,Me,Me,Tt)}function $(Q,Me,Tt,yi){tt(Q,{pos:ek(Me,t),end:Tt.end},yi)}function tt(Q,Me,Tt){const yi=Rd(t,Me.pos,Me.end-Me.pos,Tt);Q?t.bindDiagnostics.push(yi):t.bindSuggestionDiagnostics=Di(t.bindSuggestionDiagnostics,{...yi,category:2})}function vt(Q){if(!Q)return;ks(Q,d),Gn&&(Q.tracingPath=t.path);const Me=ae;if(uu(Q),Q.kind>165){const Tt=d;d=Q;const yi=Pde(Q);yi===0?st(Q):Ke(Q,yi),d=Tt}else{const Tt=d;Q.kind===1&&(d=Q),fi(Q),d=Tt}ae=Me}function fi(Q){if(lm(Q))if(Xn(Q))for(const Me of Q.jsDoc)vt(Me);else for(const Me of Q.jsDoc)ks(Me,Q),Vx(Me,!1)}function fn(Q){if(!ae)for(const Me of Q){if(!zp(Me))return;if(Gu(Me)){ae=!0;return}}}function Gu(Q){const Me=v2(t,Q.expression);return Me==='"use strict"'||Me==="'use strict'"}function uu(Q){switch(Q.kind){case 80:if(Q.flags&4096){let ur=Q.parent;for(;ur&&!$4(ur);)ur=ur.parent;hd(ur,524288,788968);break}case 110:return k&&(Wt(Q)||d.kind===304)&&(Q.flowNode=k),ho(Q);case 166:k&&xq(Q)&&(Q.flowNode=k);break;case 236:case 108:Q.flowNode=k;break;case 81:return nd(Q);case 211:case 212:const Me=Q;k&&It(Me)&&(Me.flowNode=k),dye(Me)&&Mn(Me),Xn(Me)&&t.commonJsModuleIndicator&&Q_(Me)&&!ZY(E,"module")&&mt(t.locals,void 0,Me.expression,134217729,111550);break;case 226:switch(ec(Q)){case 1:jh(Q);break;case 2:rh(Q);break;case 3:To(Q.left,Q);break;case 6:ka(Q);break;case 4:x1(Q);break;case 5:const ur=Q.left.expression;if(Xn(Q)&&at(ur)){const fa=ZY(E,ur.escapedText);if(gq(fa==null?void 0:fa.valueDeclaration)){x1(Q);break}}mc(Q);break;case 0:break;default:H.fail("Unknown binary expression special property assignment kind")}return Q0(Q);case 299:return Wo(Q);case 220:return Nc(Q);case 225:return fl(Q);case 224:return Zc(Q);case 254:return yh(Q);case 256:return sf(Q);case 197:B=!0;return;case 182:break;case 168:return wt(Q);case 169:return h3(Q);case 260:return O1(Q);case 208:return Q.flowNode=k,O1(Q);case 172:case 171:return Nu(Q);case 303:case 304:return Hh(Q,4,0);case 306:return Hh(Q,8,900095);case 179:case 180:case 181:return Wu(Q,131072,0);case 174:case 173:return Hh(Q,8192|(Q.questionToken?16777216:0),Ip(Q)?0:103359);case 262:return Wf(Q);case 176:return Wu(Q,16384,0);case 177:return Hh(Q,32768,46015);case 178:return Hh(Q,65536,78783);case 184:case 324:case 330:case 185:return bc(Q);case 187:case 329:case 200:return Mr(Q);case 339:return Qt(Q);case 210:return Qa(Q);case 218:case 219:return E4(Q);case 213:switch(ec(Q)){case 7:return uc(Q);case 8:return Bd(Q);case 9:return Fo(Q);case 0:break;default:return H.fail("Unknown call expression assignment declaration kind")}Xn(Q)&&d3(Q);break;case 231:case 263:return ae=!0,d_(Q);case 264:return hd(Q,64,788872);case 265:return hd(Q,524288,788968);case 266:return C5(Q);case 267:return wo(Q);case 292:return c0(Q);case 291:return Ul(Q,4,0);case 271:case 274:case 276:case 281:return Wu(Q,2097152,2097152);case 270:return ud(Q);case 273:return rd(Q);case 278:return T0(Q);case 277:return nc(Q);case 312:return fn(Q.statements),Hu();case 241:if(!L8(Q.parent))return;case 268:return fn(Q.statements);case 348:if(Q.parent.kind===330)return h3(Q);if(Q.parent.kind!==329)break;case 355:const In=Q,nr=In.isBracketed||In.typeExpression&&In.typeExpression.type.kind===323?16777220:4;return Wu(In,nr,0);case 353:case 345:case 347:return(b||(b=[])).push(Q);case 346:return vt(Q.typeExpression)}}function Nu(Q){const Me=ef(Q),Tt=Me?98304:4,yi=Me?13247:0;return Hh(Q,Tt|(Q.questionToken?16777216:0),yi)}function Mr(Q){return Tl(Q,2048,"__type")}function Hu(){if(os(t),Lc(t))Ss();else if(J4(t)){Ss();const Q=t.symbol;mt(t.symbol.exports,t.symbol,t,4,67108863),t.symbol=Q}}function Ss(){Tl(t,512,`"${xh(t.fileName)}"`)}function nc(Q){if(!f.symbol||!f.symbol.exports)Tl(Q,111551,He(Q));else{const Me=tB(Q)?2097152:4,Tt=mt(f.symbol.exports,f.symbol,Q,Me,67108863);Q.isExportEquals&&Aj(Tt,Q)}}function ud(Q){Ge(Q.modifiers)&&t.bindDiagnostics.push(xe(Q,F.Modifiers_cannot_appear_here));const Me=ca(Q.parent)?Lc(Q.parent)?Q.parent.isDeclarationFile?void 0:F.Global_module_exports_may_only_appear_in_declaration_files:F.Global_module_exports_may_only_appear_in_module_files:F.Global_module_exports_may_only_appear_at_top_level;Me?t.bindDiagnostics.push(xe(Q,Me)):(t.symbol.globalExports=t.symbol.globalExports||Ho(),mt(t.symbol.globalExports,t.symbol,Q,2097152,2097152))}function T0(Q){!f.symbol||!f.symbol.exports?Tl(Q,8388608,He(Q)):Q.exportClause?r_(Q.exportClause)&&(ks(Q.exportClause,Q),mt(f.symbol.exports,f.symbol,Q.exportClause,2097152,2097152)):mt(f.symbol.exports,f.symbol,Q,8388608,0)}function rd(Q){Q.name&&Wu(Q,2097152,2097152)}function m0(Q){return t.externalModuleIndicator&&t.externalModuleIndicator!==!0?!1:(t.commonJsModuleIndicator||(t.commonJsModuleIndicator=Q,t.externalModuleIndicator||Ss()),!0)}function Bd(Q){if(!m0(Q))return;const Me=g4(Q.arguments[0],void 0,(Tt,yi)=>(yi&&De(yi,Tt,67110400),yi));Me&&mt(Me.exports,Me,Q,1048580,0)}function jh(Q){if(!m0(Q))return;const Me=g4(Q.left.expression,void 0,(Tt,yi)=>(yi&&De(yi,Tt,67110400),yi));if(Me){const yi=Mj(Q.right)&&(uk(Q.left.expression)||Q_(Q.left.expression))?2097152:1048580;ks(Q.left,Q),mt(Me.exports,Me,Q.left,yi,0)}}function rh(Q){if(!m0(Q))return;const Me=Cj(Q.right);if(fle(Me)||f===t&&Z2(t,Me))return;if(ys(Me)&&ye(Me.properties,pm)){L(Me.properties,p4);return}const Tt=tB(Q)?2097152:1049092,yi=mt(t.symbol.exports,t.symbol,Q,Tt|67108864,0);Aj(yi,Q)}function p4(Q){mt(t.symbol.exports,t.symbol,Q,69206016,0)}function x1(Q){if(H.assert(Xn(Q)),eu(Q)&&Ru(Q.left)&&ea(Q.left.name)||Ru(Q)&&ea(Q.name))return;const Tt=tf(Q,!1,!1);switch(Tt.kind){case 262:case 218:let yi=Tt.symbol;if(eu(Tt.parent)&&Tt.parent.operatorToken.kind===64){const ur=Tt.parent.left;S2(ur)&&Ox(ur.expression)&&(yi=Vh(ur.expression.expression,p))}yi&&yi.valueDeclaration&&(yi.members=yi.members||Ho(),Ix(Q)?Ve(Q,yi,yi.members):mt(yi.members,yi,Q,67108868,0),De(yi,yi.valueDeclaration,32));break;case 176:case 172:case 174:case 177:case 178:case 175:const In=Tt.parent,nr=No(Tt)?In.symbol.exports:In.symbol.members;Ix(Q)?Ve(Q,In.symbol,nr):mt(nr,In.symbol,Q,67108868,0,!0);break;case 312:if(Ix(Q))break;Tt.commonJsModuleIndicator?mt(Tt.symbol.exports,Tt.symbol,Q,1048580,0):Wu(Q,1,111550);break;case 267:break;default:H.failBadSyntaxKind(Tt)}}function Ve(Q,Me,Tt){mt(Tt,Me,Q,4,0,!0,!0),di(Q,Me)}function di(Q,Me){Me&&(Me.assignmentDeclarationMembers||(Me.assignmentDeclarationMembers=new Map)).set(Us(Q),Q)}function Mn(Q){Q.expression.kind===110?x1(Q):S2(Q)&&Q.parent.parent.kind===312&&(Ox(Q.expression)?To(Q,Q.parent):bl(Q))}function ka(Q){ks(Q.left,Q),ks(Q.right,Q),Mc(Q.left.expression,Q.left,!1,!0)}function Fo(Q){const Me=Vh(Q.arguments[0].expression);Me&&Me.valueDeclaration&&De(Me,Me.valueDeclaration,32),kc(Q,Me,!0)}function To(Q,Me){const Tt=Q.expression,yi=Tt.expression;ks(yi,Tt),ks(Tt,Q),ks(Q,Me),Mc(yi,Q,!0,!0)}function uc(Q){let Me=Vh(Q.arguments[0]);const Tt=Q.parent.parent.kind===312;Me=Ll(Me,Q.arguments[0],Tt,!1,!1),kc(Q,Me,!1)}function mc(Q){var Me;const Tt=Vh(Q.left.expression,f)||Vh(Q.left.expression,E);if(!Xn(Q)&&!hye(Tt))return;const yi=bP(Q.left);if(!(at(yi)&&((Me=ZY(f,yi.escapedText))==null?void 0:Me.flags)&2097152))if(ks(Q.left,Q),ks(Q.right,Q),at(Q.left.expression)&&f===t&&Z2(t,Q.left.expression))jh(Q);else if(Ix(Q)){Tl(Q,67108868,"__computed");const In=Ll(Tt,Q.left.expression,ql(Q.left),!1,!1);di(Q,In)}else bl(Po(Q.left,ak))}function bl(Q){H.assert(!at(Q)),ks(Q.expression,Q),Mc(Q.expression,Q,!1,!1)}function Ll(Q,Me,Tt,yi,In){return(Q==null?void 0:Q.flags)&2097152||(Tt&&!yi&&(Q=g4(Me,Q,(fa,ss,ls)=>{if(ss)return De(ss,fa,67110400),ss;{const Rl=ls?ls.exports:t.jsGlobalAugmentations||(t.jsGlobalAugmentations=Ho());return mt(Rl,ls,fa,67110400,110735)}})),In&&Q&&Q.valueDeclaration&&De(Q,Q.valueDeclaration,32)),Q}function kc(Q,Me,Tt){if(!Me||!up(Me))return;const yi=Tt?Me.members||(Me.members=Ho()):Me.exports||(Me.exports=Ho());let In=0,nr=0;U0(l7(Q))?(In=8192,nr=103359):Mo(Q)&&rk(Q)&&(Ge(Q.arguments[2].properties,ur=>{const fa=Ya(ur);return!!fa&&at(fa)&&fu(fa)==="set"})&&(In|=65540,nr|=78783),Ge(Q.arguments[2].properties,ur=>{const fa=Ya(ur);return!!fa&&at(fa)&&fu(fa)==="get"})&&(In|=32772,nr|=46015)),In===0&&(In=4,nr=0),mt(yi,Me,Q,In|67108864,nr&-67108865)}function ql(Q){return eu(Q.parent)?$m(Q.parent).parent.kind===312:Q.parent.parent.kind===312}function Mc(Q,Me,Tt,yi){let In=Vh(Q,f)||Vh(Q,E);const nr=ql(Me);In=Ll(In,Me.expression,nr,Tt,yi),kc(Me,In,Tt)}function up(Q){if(Q.flags&1072)return!0;const Me=Q.valueDeclaration;if(Me&&Mo(Me))return!!l7(Me);let Tt=Me?ra(Me)?Me.initializer:eu(Me)?Me.right:Ru(Me)&&eu(Me.parent)?Me.parent.right:void 0:void 0;if(Tt=Tt&&Cj(Tt),Tt){const yi=Ox(ra(Me)?Me.name:eu(Me)?Me.left:Me);return!!kv(eu(Tt)&&(Tt.operatorToken.kind===57||Tt.operatorToken.kind===61)?Tt.right:Tt,yi)}return!1}function $m(Q){for(;eu(Q.parent);)Q=Q.parent;return Q.parent}function Vh(Q,Me=f){if(at(Q))return ZY(Me,Q.escapedText);{const Tt=Vh(Q.expression);return Tt&&Tt.exports&&Tt.exports.get(Q3(Q))}}function g4(Q,Me,Tt){if(Z2(t,Q))return t.symbol;if(at(Q))return Tt(Q,Vh(Q),Me);{const yi=g4(Q.expression,Me,Tt),In=yj(Q);return ea(In)&&H.fail("unexpected PrivateIdentifier"),Tt(In,yi&&yi.exports&&yi.exports.get(Q3(Q)),yi)}}function d3(Q){!t.commonJsModuleIndicator&&xf(Q,!1)&&m0(Q)}function d_(Q){if(Q.kind===263)hd(Q,32,899503);else{const In=Q.name?Q.name.escapedText:"__class";Tl(Q,32,In),Q.name&&Se.add(Q.name.escapedText)}const{symbol:Me}=Q,Tt=Ae(4194308,"prototype"),yi=Me.exports.get(Tt.escapedName);yi&&(Q.name&&ks(Q.name,Q),t.bindDiagnostics.push(xe(yi.declarations[0],F.Duplicate_identifier_0,cc(Tt)))),Me.exports.set(Tt.escapedName,Tt),Tt.parent=Me}function C5(Q){return y2(Q)?hd(Q,128,899967):hd(Q,256,899327)}function O1(Q){if(ae&&Pc(Q,Q.name),!So(Q.name)){const Me=Q.kind===260?Q:Q.parent.parent;Xn(Q)&&iZ(u)&&A2(Me)&&!vv(Q)&&!(p2(Q)&32)?Wu(Q,2097152,2097152):m0e(Q)?hd(Q,2,111551):T2(Q)?Wu(Q,1,111551):Wu(Q,1,111550)}}function h3(Q){if(!(Q.kind===348&&f.kind!==330)&&(ae&&!(Q.flags&33554432)&&Pc(Q,Q.name),So(Q.name)?Tl(Q,1,"__"+Q.parent.parameters.indexOf(Q)):Wu(Q,1,111551),Mf(Q,Q.parent))){const Me=Q.parent.parent;mt(Me.symbol.members,Me.symbol,Q,4|(Q.questionToken?16777216:0),0)}}function Wf(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&oP(Q)&&(ge|=4096),hl(Q),ae?(Oi(Q),hd(Q,16,110991)):Wu(Q,16,110991)}function E4(Q){!t.isDeclarationFile&&!(Q.flags&33554432)&&oP(Q)&&(ge|=4096),k&&(Q.flowNode=k),hl(Q);const Me=Q.name?Q.name.escapedText:"__function";return Tl(Q,16,Me)}function Hh(Q,Me,Tt){return!t.isDeclarationFile&&!(Q.flags&33554432)&&oP(Q)&&(ge|=4096),k&&dq(Q)&&(Q.flowNode=k),Ix(Q)?Tl(Q,Me,"__computed"):Wu(Q,Me,Tt)}function Ee(Q){const Me=Tn(Q,Tt=>Tt.parent&&FB(Tt.parent)&&Tt.parent.extendsType===Tt);return Me&&Me.parent}function wt(Q){if(_g(Q.parent)){const Me=Bq(Q.parent);Me?(H.assertNode(Me,qE),Me.locals??(Me.locals=Ho()),mt(Me.locals,void 0,Q,262144,526824)):Wu(Q,262144,526824)}else if(Q.parent.kind===195){const Me=Ee(Q.parent);Me?(H.assertNode(Me,qE),Me.locals??(Me.locals=Ho()),mt(Me.locals,void 0,Q,262144,526824)):Tl(Q,262144,He(Q))}else Wu(Q,262144,526824)}function _i(Q){const Me=oD(Q);return Me===1||Me===2&&fk(u)}function vi(Q){if(!(k.flags&1))return!1;if(k===Ne&&(ej(Q)&&Q.kind!==242||Q.kind===263||Q.kind===267&&_i(Q))&&(k=pe,!u.allowUnreachableCode)){const Tt=cke(u)&&!(Q.flags&33554432)&&(!Jl(Q)||!!(QD(Q.declarationList)&7)||Q.declarationList.declarations.some(yi=>!!yi.initializer));EPt(Q,(yi,In)=>$(Tt,yi,In,F.Unreachable_code_detected))}return!0}}function EPt(t,u){if(ua(t)&&fet(t)&&go(t.parent)){const{statements:s}=t.parent,d=Lle(s,t);ku(d,fet,(f,p)=>u(d[f],d[p-1]))}else u(t,t)}function fet(t){return!td(t)&&!_Pt(t)&&!Rv(t)&&!(Jl(t)&&!(QD(t)&7)&&t.declarationList.declarations.some(u=>!u.initializer))}function _Pt(t){switch(t.kind){case 264:case 265:return!0;case 267:return oD(t)!==1;case 266:return Qu(t,4096);default:return!1}}function Z2(t,u){let s=0;const d=Z$();for(d.enqueue(u);!d.isEmpty()&&s<100;){if(s++,u=d.dequeue(),uk(u)||Q_(u))return!0;if(at(u)){const f=ZY(t,u.escapedText);if(f&&f.valueDeclaration&&ra(f.valueDeclaration)&&f.valueDeclaration.initializer){const p=f.valueDeclaration.initializer;d.enqueue(p),ld(p,!0)&&(d.enqueue(p.left),d.enqueue(p.right))}}}return!1}function Pde(t){switch(t.kind){case 231:case 263:case 266:case 210:case 187:case 329:case 292:return 1;case 264:return 65;case 267:case 265:case 200:case 181:return 33;case 312:return 37;case 177:case 178:case 174:if(dq(t))return 173;case 176:case 262:case 173:case 179:case 330:case 324:case 184:case 180:case 185:case 175:return 45;case 218:case 219:return 61;case 268:return 4;case 172:return t.initializer?4:0;case 299:case 248:case 249:case 250:case 269:return 34;case 241:return Co(t.parent)||zl(t.parent)?0:34}return 0}function ZY(t,u){var s,d,f,p;const E=(d=(s=ar(t,qE))==null?void 0:s.locals)==null?void 0:d.get(u);if(E)return E.exportSymbol??E;if(ca(t)&&t.jsGlobalAugmentations&&t.jsGlobalAugmentations.has(u))return t.jsGlobalAugmentations.get(u);if(Yg(t))return(p=(f=t.symbol)==null?void 0:f.exports)==null?void 0:p.get(u)}var Mde,zde,met,DPt=o({"src/compiler/binder.ts"(){Bo(),Wy(),Mde=(t=>(t[t.NonInstantiated=0]="NonInstantiated",t[t.Instantiated=1]="Instantiated",t[t.ConstEnumOnly=2]="ConstEnumOnly",t))(Mde||{}),zde=(t=>(t[t.None=0]="None",t[t.IsContainer=1]="IsContainer",t[t.IsBlockScopedContainer=2]="IsBlockScopedContainer",t[t.IsControlFlowContainer=4]="IsControlFlowContainer",t[t.IsFunctionLike=8]="IsFunctionLike",t[t.IsFunctionExpression=16]="IsFunctionExpression",t[t.HasLocals=32]="HasLocals",t[t.IsInterface=64]="IsInterface",t[t.IsObjectLiteralOrClassExpressionMethodOrAccessor=128]="IsObjectLiteralOrClassExpressionMethodOrAccessor",t))(zde||{}),met=gPt()}});function MAe(t,u,s,d,f,p,E,v,b,B){return k;function k(T=()=>!0){const M=[],z=[];return{walkType:Se=>{try{return j(Se),{visitedTypes:q1(M),visitedSymbols:q1(z)}}finally{gu(M),gu(z)}},walkSymbol:Se=>{try{return ve(Se),{visitedTypes:q1(M),visitedSymbols:q1(z)}}finally{gu(M),gu(z)}}};function j(Se){if(!(!Se||M[Se.id]||(M[Se.id]=Se,ve(Se.symbol)))){if(Se.flags&524288){const pe=Se,fe=pe.objectFlags;fe&4&&J(Se),fe&32&&ge(Se),fe&3&&Ce(Se),fe&24&&ne(pe)}Se.flags&262144&&K(Se),Se.flags&3145728&&Y(Se),Se.flags&4194304&&oe(Se),Se.flags&8388608&&se(Se)}}function J(Se){j(Se.target),L(B(Se),j)}function K(Se){j(v(Se))}function Y(Se){L(Se.types,j)}function oe(Se){j(Se.type)}function se(Se){j(Se.objectType),j(Se.indexType),j(Se.constraint)}function ge(Se){j(Se.typeParameter),j(Se.constraintType),j(Se.templateType),j(Se.modifiersType)}function ae(Se){const Ne=u(Se);Ne&&j(Ne.type),L(Se.typeParameters,j);for(const pe of Se.parameters)ve(pe);j(t(Se)),j(s(Se))}function Ce(Se){ne(Se),L(Se.typeParameters,j),L(d(Se),j),j(Se.thisType)}function ne(Se){const Ne=f(Se);for(const pe of Ne.indexInfos)j(pe.keyType),j(pe.type);for(const pe of Ne.callSignatures)ae(pe);for(const pe of Ne.constructSignatures)ae(pe);for(const pe of Ne.properties)ve(pe)}function ve(Se){if(!Se)return!1;const Ne=Yo(Se);if(z[Ne])return!1;if(z[Ne]=Se,!T(Se))return!0;const pe=p(Se);return j(pe),Se.exports&&Se.exports.forEach(ve),L(Se.declarations,fe=>{if(fe.type&&fe.type.kind===186){const xe=fe.type,Be=E(b(xe.exprName));ve(Be)}}),!1}}}var xPt=o({"src/compiler/symbolWalker.ts"(){Bo()}});function Ide({importModuleSpecifierPreference:t,importModuleSpecifierEnding:u},s,d,f){const p=E();return{relativePreference:f!==void 0?Id(f)?0:1:t==="relative"?0:t==="non-relative"?1:t==="project-relative"?3:2,getAllowedEndingsInPreferredOrder:v=>{if((v??d.impliedNodeFormat)===99)return $B(s,d.fileName)?[3,2]:[2];if(g1(s)===1)return p===2?[2,1]:[1,2];const b=$B(s,d.fileName);switch(p){case 2:return b?[2,3,0,1]:[2,0,1];case 3:return[3,0,2,1];case 1:return b?[1,0,3,2]:[1,0,2];case 0:return b?[0,1,3,2]:[0,1,2];default:H.assertNever(p)}}};function E(){if(f!==void 0){if(I2(f))return 2;if(lc(f,"/index"))return 1}return wle(u,d.impliedNodeFormat,s,d)}}function vPt(t,u,s,d,f,p,E={}){const v=pet(t,u,s,d,f,Ide({},t,u,p),{},E);if(v!==p)return v}function YY(t,u,s,d,f,p={}){return pet(t,u,s,d,f,Ide({},t,u),{},p)}function CPt(t,u,s,d,f,p={}){const E=zAe(u.path,d),v=bet(u.path,s,d,f,p);return G(v,b=>IAe(b,E,u,d,t,f,!0,p.overrideImportMode))}function pet(t,u,s,d,f,p,E,v={}){const b=zAe(s,f),B=bet(s,d,f,E,v);return G(B,k=>IAe(k,b,u,f,t,E,void 0,v.overrideImportMode))||Det(d,b,t,f,v.overrideImportMode||u.impliedNodeFormat,p)}function bPt(t,u,s,d,f={}){return get(t,u,s,d,f)[0]}function get(t,u,s,d,f={}){var p;const E=XU(t);if(!E)return Dt;const v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s),b=v==null?void 0:v.get(u.path,E.path,d,f);return[b==null?void 0:b.moduleSpecifiers,E,b==null?void 0:b.modulePaths,v]}function Eet(t,u,s,d,f,p,E={}){return _et(t,u,s,d,f,p,E,!1).moduleSpecifiers}function _et(t,u,s,d,f,p,E={},v){let b=!1;const B=kPt(t,u);if(B)return{moduleSpecifiers:[B],computedWithoutCache:b};let[k,T,M,z]=get(t,d,f,p,E);if(k)return{moduleSpecifiers:k,computedWithoutCache:b};if(!T)return{moduleSpecifiers:Dt,computedWithoutCache:b};b=!0,M||(M=yet(d.path,T.originalFileName,f));const j=yPt(M,s,d,f,p,E,v);return z==null||z.set(d.path,T.path,p,E,M,j),{moduleSpecifiers:j,computedWithoutCache:b}}function yPt(t,u,s,d,f,p={},E){const v=zAe(s.path,d),b=Ide(f,u,s),B=L(t,J=>L(d.getFileIncludeReasons().get($0(J.path,d.getCurrentDirectory(),v.getCanonicalFileName)),K=>{if(K.kind!==3||K.file!==s.path||s.impliedNodeFormat&&s.impliedNodeFormat!==A1e(s,K.index))return;const Y=NQ(s,K.index).text;return b.relativePreference!==1||!om(Y)?Y:void 0}));if(B)return[B];const k=Ge(t,J=>J.isInNodeModules);let T,M,z,j;for(const J of t){const K=J.isInNodeModules?IAe(J,v,s,d,u,f,void 0,p.overrideImportMode):void 0;if(T=Di(T,K),K&&J.isRedirect)return T;if(!K){const Y=Det(J.path,v,u,d,p.overrideImportMode||s.impliedNodeFormat,b,J.isRedirect);if(!Y)continue;J.isRedirect?z=Di(z,Y):Ase(Y)?M=Di(M,Y):(E||!k||J.isInNodeModules)&&(j=Di(j,Y))}}return M!=null&&M.length?M:z!=null&&z.length?z:T!=null&&T.length?T:H.checkDefined(j)}function zAe(t,u){const s=N1(u.useCaseSensitiveFileNames?u.useCaseSensitiveFileNames():!0),d=dr(t);return{getCanonicalFileName:s,importingSourceFileName:t,sourceDirectory:d}}function Det(t,u,s,d,f,{getAllowedEndingsInPreferredOrder:p,relativePreference:E},v){const{baseUrl:b,paths:B,rootDirs:k}=s;if(v&&!B)return;const{sourceDirectory:T,getCanonicalFileName:M}=u,z=p(f),j=k&&FPt(k,t,T,M,z,s)||dH(f2($E(T,t,M)),z,s);if(!b&&!B||E===0)return v?void 0:j;const J=qa(Rq(s,d)||b,d.getCurrentDirectory()),K=Bet(t,J,M);if(!K)return v?void 0:j;const Y=B&&ket(K,B,z,d,s);if(v)return Y;const oe=Y===void 0&&b!==void 0?dH(K,z,s):Y;if(!oe)return j;if(E===1&&!om(oe))return oe;if(E===3&&!om(oe)){const se=s.configFilePath?$0(dr(s.configFilePath),d.getCurrentDirectory(),u.getCanonicalFileName):u.getCanonicalFileName(d.getCurrentDirectory()),ge=$0(t,se,M),ae=Ma(T,se),Ce=Ma(ge,se);if(ae&&!Ce||!ae&&Ce)return oe;const ne=vet(d,dr(ge));return vet(d,T)!==ne?oe:j}return wet(oe)||QY(j)t.fileExists(hr(s,"package.json"))?!0:void 0)}function Cet(t,u,s,d,f){var p;const E=n5(s),v=s.getCurrentDirectory(),b=s.isSourceOfProjectReferenceRedirect(u)?s.getProjectReferenceRedirect(u):void 0,B=$0(u,v,E),k=s.redirectTargetsMap.get(B)||Dt,M=[...b?[b]:Dt,u,...k].map(Y=>qa(Y,v));let z=!ye(M,LP);if(!d){const Y=L(M,oe=>!(z&&LP(oe))&&f(oe,b===oe));if(Y)return Y}const j=(p=s.getSymlinkCache)==null?void 0:p.call(s).getSymlinkedDirectoriesByRealpath(),J=qa(u,v);return j&&qg(dr(J),Y=>{const oe=j.get(zd($0(Y,v,E)));if(oe)return Bse(t,Y,E)?!1:L(M,se=>{if(!Bse(se,Y,E))return;const ge=$E(Y,se,E);for(const ae of oe){const Ce=kx(ae,ge),ne=f(Ce,se===b);if(z=!0,ne)return ne}})})||(d?L(M,Y=>z&&LP(Y)?void 0:f(Y,Y===b)):void 0)}function bet(t,u,s,d,f={}){var p;const E=$0(u,s.getCurrentDirectory(),n5(s)),v=(p=s.getModuleSpecifierCache)==null?void 0:p.call(s);if(v){const B=v.get(t,E,d,f);if(B!=null&&B.modulePaths)return B.modulePaths}const b=yet(t,u,s);return v&&v.setModulePaths(t,E,d,f,b),b}function yet(t,u,s){const d=n5(s),f=new Map;Cet(t,u,s,!0,(E,v)=>{const b=q7(E);f.set(E,{path:d(E),isRedirect:v,isInNodeModules:b})});const p=[];for(let E=dr(t);f.size!==0;){const v=zd(E);let b;f.forEach(({path:k,isRedirect:T,isInNodeModules:M},z)=>{Ma(k,v)&&((b||(b=[])).push({path:z,isRedirect:T,isInNodeModules:M}),f.delete(z))}),b&&(b.length>1&&b.sort(xet),p.push(...b));const B=dr(E);if(B===E)break;E=B}if(f.size){const E=Ea(f.values());E.length>1&&E.sort(xet),p.push(...E)}return p}function kPt(t,u){var s;const d=(s=t.declarations)==null?void 0:s.find(E=>g0e(E)&&(!C2(E)||!Id(U4(E.name))));if(d)return d.name.text;const p=qi(t.declarations,E=>{var v,b,B,k;if(!xc(E))return;const T=J(E);if(!((v=T==null?void 0:T.parent)!=null&&v.parent&&aE(T.parent)&&P1(T.parent.parent)&&ca(T.parent.parent.parent)))return;const M=(k=(B=(b=T.parent.parent.symbol.exports)==null?void 0:b.get("export="))==null?void 0:B.valueDeclaration)==null?void 0:k.expression;if(!M)return;const z=u.getSymbolAtLocation(M);if(!z)return;if(((z==null?void 0:z.flags)&2097152?u.getAliasedSymbol(z):z)===E.symbol)return T.parent.parent;function J(K){for(;K.flags&8;)K=K.parent;return K}})[0];if(p)return p.name.text}function ket(t,u,s,d,f){for(const E in u)for(const v of u[E]){const b=Uo(v),B=b.indexOf("*"),k=s.map(T=>({ending:T,value:dH(t,[T],f)}));if(i3(b)&&k.push({ending:void 0,value:t}),B!==-1){const T=b.substring(0,B),M=b.substring(B+1);for(const{ending:z,value:j}of k)if(j.length>=T.length+M.length&&Ma(j,T)&&lc(j,M)&&p({ending:z,value:j})){const J=j.substring(T.length,j.length-M.length);if(!om(J))return E.replace("*",J)}}else if(Ge(k,T=>T.ending!==0&&b===T.value)||Ge(k,T=>T.ending===0&&b===T.value&&p(T)))return E}function p({ending:E,value:v}){return E!==0||v===dH(t,[E],f,d)}}function Rde(t,u,s,d,f,p,E=0){if(typeof f=="string"){const v=qa(hr(s,f),void 0),b=mk(u)?xh(u)+Ode(u,t):void 0;switch(E){case 0:if(gv(u,v)===0||b&&gv(b,v)===0)return{moduleFileToTry:d};break;case 1:if(JE(v,u)){const M=$E(v,u,!1);return{moduleFileToTry:qa(hr(hr(d,f),M),void 0)}}break;case 2:const B=v.indexOf("*"),k=v.slice(0,B),T=v.slice(B+1);if(Ma(u,k)&&lc(u,T)){const M=u.slice(k.length,u.length-T.length);return{moduleFileToTry:d.replace("*",M)}}if(b&&Ma(b,k)&&lc(b,T)){const M=b.slice(k.length,b.length-T.length);return{moduleFileToTry:d.replace("*",M)}}break}}else{if(Array.isArray(f))return L(f,v=>Rde(t,u,s,d,v,p));if(typeof f=="object"&&f!==null){if(UY(f))return L(Ps(f),v=>{const b=qa(hr(d,v),void 0),B=lc(v,"/")?1:v.includes("*")?2:0;return Rde(t,u,s,b,f[v],p,B)});for(const v of Ps(f))if(v==="default"||p.includes(v)||lH(p,v)){const b=f[v],B=Rde(t,u,s,d,b,p,E);if(B)return B}}}}function FPt(t,u,s,d,f,p){const E=Fet(u,t,d);if(E===void 0)return;const v=Fet(s,t,d),b=Vu(v,k=>Vt(E,T=>f2($E(k,T,d)))),B=loe(b,nV);if(B)return dH(B,f,p)}function IAe({path:t,isRedirect:u},{getCanonicalFileName:s,sourceDirectory:d},f,p,E,v,b,B){if(!p.fileExists||!p.readFile)return;const k=EZ(t);if(!k)return;const M=Ide(v,E,f).getAllowedEndingsInPreferredOrder();let z=t,j=!1;if(!b){let ge=k.packageRootIndex,ae;for(;;){const{moduleFileToTry:Ce,packageRootPath:ne,blockedByExports:ve,verbatimFromExports:Se}=se(ge);if(g1(E)!==1){if(ve)return;if(Se)return Ce}if(ne){z=ne,j=!0;break}if(ae||(ae=Ce),ge=t.indexOf(ol,ge+1),ge===-1){z=dH(ae,M,E,p);break}}}if(u&&!j)return;const J=p.getGlobalTypingsCacheLocation&&p.getGlobalTypingsCacheLocation(),K=s(z.substring(0,k.topLevelNodeModulesIndex));if(!(Ma(d,K)||J&&Ma(s(J),K)))return;const Y=z.substring(k.topLevelPackageNameIndex+1),oe=fM(Y);return g1(E)===1&&oe===Y?void 0:oe;function se(ge){var ae,Ce;const ne=t.substring(0,ge),ve=hr(ne,"package.json");let Se=t,Ne=!1;const pe=(Ce=(ae=p.getPackageJsonInfoCache)==null?void 0:ae.call(p))==null?void 0:Ce.getPackageJsonInfo(ve);if(typeof pe=="object"||pe===void 0&&p.fileExists(ve)){const fe=(pe==null?void 0:pe.contents.packageJsonContent)||JSON.parse(p.readFile(ve)),xe=B||f.impliedNodeFormat;if(ble(E)){const Ae=ne.substring(k.topLevelPackageNameIndex+1),De=fM(Ae),He=U2(E,xe),Je=fe.exports?Rde(E,t,ne,De,fe.exports,He):void 0;if(Je)return{...mk(Je.moduleFileToTry)?{moduleFileToTry:xh(Je.moduleFileToTry)+Ode(Je.moduleFileToTry,E)}:Je,verbatimFromExports:!0};if(fe.exports)return{moduleFileToTry:t,blockedByExports:!0}}const Be=fe.typesVersions?HY(fe.typesVersions):void 0;if(Be){const Ae=t.slice(ne.length+1),De=ket(Ae,Be.paths,M,p,E);De===void 0?Ne=!0:Se=hr(ne,De)}const We=fe.typings||fe.types||fe.main||"index.js";if(Ua(We)&&!(Ne&&Tle(dZ(Be.paths),We))){const Ae=$0(We,ne,s),De=s(Se);if(xh(Ae)===xh(De))return{packageRootPath:ne,moduleFileToTry:Se};if(fe.type!=="module"&&!Hc(De,mV)&&Ma(De,Ae)&&dr(De)===pv(Ae)&&xh(Bc(De))==="index")return{packageRootPath:ne,moduleFileToTry:Se}}}else{const fe=s(Se.substring(k.packageRootIndex+1));if(fe==="index.d.ts"||fe==="index.js"||fe==="index.ts"||fe==="index.tsx")return{moduleFileToTry:Se,packageRootPath:ne}}return{moduleFileToTry:Se}}}function APt(t,u){if(!t.fileExists)return;const s=Ha(FP({allowJs:!0},[{extension:"node",isMixedContent:!1},{extension:"json",isMixedContent:!1,scriptKind:6}]));for(const d of s){const f=u+d;if(t.fileExists(f))return f}}function Fet(t,u,s){return qi(u,d=>{const f=Bet(t,d,s);return f!==void 0&&wet(f)?void 0:f})}function dH(t,u,s,d){if(Hc(t,[".json",".mjs",".cjs"]))return t;const f=xh(t);if(t===f)return t;const p=u.indexOf(2),E=u.indexOf(3);if(Hc(t,[".mts",".cts"])&&E!==-1&&EB===0||B===1);return b!==-1&&bQY,forEachFileNameOfModule:()=>Cet,getModuleSpecifier:()=>YY,getModuleSpecifiers:()=>Eet,getModuleSpecifiersWithCacheInfo:()=>_et,getNodeModulesPackageName:()=>CPt,tryGetJSExtensionForFile:()=>Ode,tryGetModuleSpecifiersFromCache:()=>bPt,tryGetRealFileNameForNonJsDeclarationFileName:()=>Aet,updateModuleSpecifier:()=>vPt});var OAe=o({"src/compiler/_namespaces/ts.moduleSpecifiers.ts"(){Tet()}});function SPt(){this.flags=0}function Us(t){return t.id||(t.id=HAe,HAe++),t.id}function Yo(t){return t.id||(t.id=VAe,VAe++),t.id}function jde(t,u){const s=oD(t);return s===1||u&&s===2}function jAe(t){var u=[],s=l=>{u.push(l)},d,f=new Set,p,E,v=Xd.getSymbolConstructor(),b=Xd.getTypeConstructor(),B=Xd.getSignatureConstructor(),k=0,T=0,M=0,z=0,j=0,J=0,K,Y,oe=!1,se=Ho(),ge=[1],ae=t.getCompilerOptions(),Ce=js(ae),ne=p1(ae),ve=!!ae.experimentalDecorators,Se=tV(ae),Ne=hke(ae),pe=C7(ae),fe=Q4(ae,"strictNullChecks"),xe=Q4(ae,"strictFunctionTypes"),Be=Q4(ae,"strictBindCallApply"),We=Q4(ae,"strictPropertyInitialization"),Ae=Q4(ae,"noImplicitAny"),De=Q4(ae,"noImplicitThis"),He=Q4(ae,"useUnknownInCatchVariables"),Je=!!ae.keyofStringsOnly,mt=Je?1:0,Ye=ae.suppressExcessPropertyErrors?0:8192,je=ae.exactOptionalPropertyTypes,Ke=$ai(),Gt=kli(),Yt=cF(),Ie=Ho(),st=Ks(4,"undefined");st.declarations=[];var Bt=Ks(1536,"globalThis",8);Bt.exports=Ie,Bt.declarations=[],Ie.set(Bt.escapedName,Bt);var It=Ks(4,"arguments"),ei=Ks(4,"require"),ft=ae.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules",Ut=!ae.verbatimModuleSyntax||!!ae.importsNotUsedAsValues,Ni,Vi,xn=0,Jn,an=0;const Pi={getNodeCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.nodeCount,0),getIdentifierCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.identifierCount,0),getSymbolCount:()=>nn(t.getSourceFiles(),(l,m)=>l+m.symbolCount,T),getTypeCount:()=>k,getInstantiationCount:()=>M,getRelationCacheSizes:()=>({assignable:Jf.size,identity:Em.size,subtype:f_.size,strictSubtype:_4.size}),isUndefinedSymbol:l=>l===st,isArgumentsSymbol:l=>l===It,isUnknownSymbol:l=>l===Xt,getMergedSymbol:Ws,getDiagnostics:W4t,getGlobalDiagnostics:V0i,getRecursionIdentity:uEe,getUnmatchedProperties:cMe,getTypeOfSymbolAtLocation:(l,m)=>{const D=Za(m);return D?Oni(l,D):Ot},getTypeOfSymbol:Wn,getSymbolsOfParameterPropertyDeclaration:(l,m)=>{const D=Za(l,io);return D===void 0?H.fail("Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node."):(H.assert(Mf(D,D.parent)),Iw(D,Sl(m)))},getDeclaredTypeOfSymbol:el,getPropertiesOfType:u0,getPropertyOfType:(l,m)=>Zo(l,Sl(m)),getPrivateIdentifierPropertyOfType:(l,m,D)=>{const C=Za(D);if(!C)return;const A=Sl(m),w=PEe(A,C);return w?qMe(l,w):void 0},getTypeOfPropertyOfType:(l,m)=>he(l,Sl(m)),getIndexInfoOfType:(l,m)=>F3(l,m===0?ct:Qt),getIndexInfosOfType:Ah,getIndexInfosOfIndexSymbol:oPe,getSignaturesOfType:Eo,getIndexTypeOfType:(l,m)=>kC(l,m===0?ct:Qt),getIndexType:l=>F_(l),getBaseTypes:Qc,getBaseTypeOfLiteralType:kD,getWidenedType:vm,getTypeFromTypeNode:l=>{const m=Za(l,Xr);return m?Br(m):Ot},getParameterType:Lg,getParameterIdentifierInfoAtPosition:dai,getPromisedTypeOfPromise:PW,getAwaitedType:l=>NF(l),getReturnTypeOfSignature:Ys,isNullableType:nie,getNullableType:sEe,getNonNullableType:FD,getNonOptionalType:lEe,getTypeArguments:V0,typeToTypeNode:Yt.typeToTypeNode,indexInfoToIndexSignatureDeclaration:Yt.indexInfoToIndexSignatureDeclaration,signatureToSignatureDeclaration:Yt.signatureToSignatureDeclaration,symbolToEntityName:Yt.symbolToEntityName,symbolToExpression:Yt.symbolToExpression,symbolToNode:Yt.symbolToNode,symbolToTypeParameterDeclarations:Yt.symbolToTypeParameterDeclarations,symbolToParameterDeclaration:Yt.symbolToParameterDeclaration,typeParameterToDeclaration:Yt.typeParameterToDeclaration,getSymbolsInScope:(l,m)=>{const D=Za(l);return D?H0i(D,m):[]},getSymbolAtLocation:l=>{const m=Za(l);return m?Qp(m,!0):void 0},getIndexInfosAtLocation:l=>{const m=Za(l);return m?Z0i(m):void 0},getShorthandAssignmentValueSymbol:l=>{const m=Za(l);return m?Y0i(m):void 0},getExportSpecifierLocalTargetSymbol:l=>{const m=Za(l,th);return m?Q0i(m):void 0},getExportSymbolOfSymbol(l){return Ws(l.exportSymbol||l)},getTypeAtLocation:l=>{const m=Za(l);return m?tS(m):Ot},getTypeOfAssignmentPattern:l=>{const m=Za(l,WN);return m&&s_e(m)||Ot},getPropertySymbolOfDestructuringAssignment:l=>{const m=Za(l,at);return m?X0i(m):void 0},signatureToString:(l,m,D,C)=>CE(l,Za(m),D,C),typeToString:(l,m,D)=>gn(l,Za(m),D),symbolToString:(l,m,D,C)=>Sr(l,Za(m),D,C),typePredicateToString:(l,m,D)=>__(l,Za(m),D),writeSignature:(l,m,D,C,A)=>CE(l,Za(m),D,C,A),writeType:(l,m,D,C)=>gn(l,Za(m),D,C),writeSymbol:(l,m,D,C,A)=>Sr(l,Za(m),D,C,A),writeTypePredicate:(l,m,D,C)=>__(l,Za(m),D,C),getAugmentedPropertiesOfType:Yze,getRootSymbols:Q4t,getSymbolOfExpando:HEe,getContextualType:(l,m)=>{const D=Za(l,Wt);if(D)return m&4?oa(D,()=>hf(D,m)):hf(D,m)},getContextualTypeForObjectLiteralElement:l=>{const m=Za(l,Z3);return m?MMe(m,void 0):void 0},getContextualTypeForArgumentAtIndex:(l,m)=>{const D=Za(l,x2);return D&&PMe(D,m)},getContextualTypeForJsxAttribute:l=>{const m=Za(l,GU);return m&&mft(m,void 0)},isContextSensitive:S4,getTypeOfPropertyOfContextualType:jb,getFullyQualifiedName:lp,getResolvedSignature:(l,m,D)=>Fr(l,m,D,0),getCandidateSignaturesForStringLiteralCompletions:Fi,getResolvedSignatureForSignatureHelp:(l,m,D)=>Yu(l,()=>Fr(l,m,D,16)),getExpandedParameters:_dt,hasEffectiveRestParameter:A_,containsArgumentsReference:rPe,getConstantValue:l=>{const m=Za(l,npt);return m?Qze(m):void 0},isValidPropertyAccess:(l,m)=>{const D=Za(l,hbe);return!!D&&vri(D,Sl(m))},isValidPropertyAccessForCompletions:(l,m,D)=>{const C=Za(l,Ru);return!!C&&Wft(C,m,D)},getSignatureFromDeclaration:l=>{const m=Za(l,Co);return m?fp(m):void 0},isImplementationOfOverload:l=>{const m=Za(l,Co);return m?tpt(m):void 0},getImmediateAliasedSymbol:jMe,getAliasedSymbol:md,getEmitResolver:jd,getExportsOfModule:L5,getExportsAndPropertiesOfModule:dz,forEachExportAndPropertyOfModule:P9,getSymbolWalker:MAe(oei,A4,Ys,Qc,Ag,Wn,Yp,ah,hm,V0),getAmbientModules:mci,getJsxIntrinsicTagNamesAt:eri,isOptionalParameter:l=>{const m=Za(l,io);return m?rW(m):!1},tryGetMemberInModuleExports:(l,m)=>M9(Sl(l),m),tryGetMemberInModuleExportsAndProperties:(l,m)=>z9(Sl(l),m),tryFindAmbientModule:l=>Age(l,!0),tryFindAmbientModuleWithoutAugmentations:l=>Age(l,!1),getApparentType:Jh,getUnionType:tr,isTypeAssignableTo:ms,createAnonymousType:Ol,createSignature:k3,createSymbol:Ks,createIndexInfo:k_,getAnyType:()=>me,getStringType:()=>ct,getStringLiteralType:df,getNumberType:()=>Qt,getNumberLiteralType:wg,getBigIntType:()=>Ti,createPromiseType:fie,createArrayType:H1,getElementTypeOfArrayType:ZPe,getBooleanType:()=>Er,getFalseType:l=>l?Ui:Sn,getTrueType:l=>l?du:Ou,getVoidType:()=>da,getUndefinedType:()=>te,getNullType:()=>it,getESSymbolType:()=>er,getNeverType:()=>Wu,getOptionalType:()=>X,getPromiseType:()=>Ste(!1),getPromiseLikeType:()=>r1t(!1),getAsyncIterableType:()=>{const l=Ige(!1);if(l!==Ga)return l},isSymbolAccessible:Fu,isArrayType:w4,isTupleType:xs,isArrayLikeType:H5,isEmptyAnonymousObjectType:yD,isTypeInvalidDueToUnionDiscriminant:HXt,getExactOptionalProperties:pii,getAllPossiblePropertiesOfTypes:KXt,getSuggestedSymbolForNonexistentProperty:QMe,getSuggestionForNonexistentProperty:XMe,getSuggestedSymbolForNonexistentJSXAttribute:Hft,getSuggestedSymbolForNonexistentSymbol:(l,m,D)=>eze(l,Sl(m),D),getSuggestionForNonexistentSymbol:(l,m,D)=>Eri(l,Sl(m),D),getSuggestedSymbolForNonexistentModule:zEe,getSuggestionForNonexistentExport:_ri,getSuggestedSymbolForNonexistentClassMember:Vft,getBaseConstraintOfType:Gh,getDefaultFromTypeParameter:l=>l&&l.flags&262144?_F(l):void 0,resolveName(l,m,D,C){return rc(m,Sl(l),D,void 0,void 0,!1,C)},getJsxNamespace:l=>Qr(rC(l)),getJsxFragmentFactory:l=>{const m=eIe(l);return m&&Qr(hm(m).escapedText)},getAccessibleSymbolChain:DC,getTypePredicateOfSignature:A4,resolveExternalModuleName:l=>{const m=Za(l,Wt);return m&&Wh(m,m,!0)},resolveExternalModuleSymbol:_m,tryGetThisTypeAt:(l,m,D)=>{const C=Za(l);return C&&wMe(C,m,D)},getTypeArgumentConstraint:l=>{const m=Za(l,Xr);return m&&koi(m)},getSuggestionDiagnostics:(l,m)=>{const D=Za(l,ca)||H.fail("Could not determine parsed source file.");if(SP(D,ae,t))return Dt;let C;try{return d=m,qze(D),H.assert(!!(sr(D).flags&1)),C=yn(C,Zk.getDiagnostics(D.fileName)),a4t(K4t(D),(A,w,I)=>{!O8(A)&&!H4t(w,!!(A.flags&33554432))&&(C||(C=[])).push({...I,category:2})}),C||Dt}finally{d=void 0}},runWithCancellationToken:(l,m)=>{try{return d=l,m(Pi)}finally{d=void 0}},getLocalTypeParametersOfClassOrInterfaceOrTypeAlias:sn,isDeclarationVisible:pD,isPropertyAccessible:ize,getTypeOnlyAliasDeclaration:v4,getMemberOverrideModifierStatus:n0i,isTypeParameterPossiblyReferenced:Pte,typeHasCallOrConstructSignatures:l_e};function Fi(l,m){const D=new Set,C=[];oa(m,()=>Fr(l,C,void 0,0));for(const A of C)D.add(A);C.length=0,Yu(m,()=>Fr(l,C,void 0,0));for(const A of C)D.add(A);return Ea(D)}function Yu(l,m){if(l=Tn(l,t0e),l){const D=[],C=[];for(;l;){const w=sr(l);if(D.push([w,w.resolvedSignature]),w.resolvedSignature=void 0,O2(l)){const I=qr(Du(l)),U=I.type;C.push([I,U]),I.type=void 0}l=Tn(l.parent,t0e)}const A=m();for(const[w,I]of D)w.resolvedSignature=I;for(const[w,I]of C)w.type=I;return A}return m()}function oa(l,m){const D=Tn(l,x2);if(D){let A=l;do sr(A).skipDirectInference=!0,A=A.parent;while(A&&A!==D)}oe=!0;const C=Yu(l,m);if(oe=!1,D){let A=l;do sr(A).skipDirectInference=void 0,A=A.parent;while(A&&A!==D)}return C}function Fr(l,m,D,C){const A=Za(l,x2);Ni=D;const w=A?mT(A,m,C):void 0;return Ni=void 0,w}var wa=new Map,bt=new Map,jn=new Map,Ln=new Map,Ai=new Map,Dn=new Map,Cn=new Map,tu=new Map,sa=new Map,xa=new Map,aa=new Map,Ta=new Map,Qo=new Map,bo=new Map,Qe=new Map,_t=[],Mt=new Map,qt=new Set,Xt=Ks(4,"unknown"),Pe=Ks(0,"__resolving__"),et=new Map,Et=new Map,ii=new Set,me=zc(1,"any"),ni=zc(1,"any",262144,"auto"),xi=zc(1,"any",void 0,"wildcard"),pt=zc(1,"any",void 0,"blocked string"),Ot=zc(1,"error"),Ei=zc(1,"unresolved"),$i=zc(1,"any",65536,"non-inferrable"),Qi=zc(1,"intrinsic"),on=zc(2,"unknown"),le=zc(2,"unknown",void 0,"non-null"),te=zc(32768,"undefined"),we=fe?te:zc(32768,"undefined",65536,"widening"),de=zc(32768,"undefined",void 0,"missing"),Oe=je?de:te,X=zc(32768,"undefined",void 0,"optional"),it=zc(65536,"null"),Ct=fe?it:zc(65536,"null",65536,"widening"),ct=zc(4,"string"),Qt=zc(8,"number"),Ti=zc(64,"bigint"),Ui=zc(512,"false",void 0,"fresh"),Sn=zc(512,"false"),du=zc(512,"true",void 0,"fresh"),Ou=zc(512,"true");du.regularType=Ou,du.freshType=du,Ou.regularType=Ou,Ou.freshType=du,Ui.regularType=Sn,Ui.freshType=Ui,Sn.regularType=Sn,Sn.freshType=Ui;var Er=tr([Sn,Ou]),er=zc(4096,"symbol"),da=zc(16384,"void"),Wu=zc(131072,"never"),Va=zc(131072,"never",262144,"silent"),wn=zc(131072,"never",void 0,"implicit"),Rr=zc(131072,"never",void 0,"unreachable"),os=zc(67108864,"object"),wo=tr([ct,Qt]),Fn=tr([ct,Qt,er]),bc=Je?ct:Fn,Qa=tr([Qt,Ti]),c0=tr([ct,Qt,Er,Ti,it,te]),Ul=xF(["",""],[Qt]),Tl=Nte(l=>l.flags&262144?Hti(l):l,()=>"(restrictive mapper)"),hd=Nte(l=>l.flags&262144?xi:l,()=>"(permissive mapper)"),Cl=zc(131072,"never",void 0,"unique literal"),ho=Nte(l=>l.flags&262144?Cl:l,()=>"(unique literal mapper)"),Ko,nd=Nte(l=>(Ko&&(l===sf||l===X0||l===yc)&&Ko(!0),l),()=>"(unmeasurable reporter)"),Q0=Nte(l=>(Ko&&(l===sf||l===X0||l===yc)&&Ko(!1),l),()=>"(unreliable reporter)"),Wo=Ol(void 0,se,Dt,Dt,Dt),Nc=Ol(void 0,se,Dt,Dt,Dt);Nc.objectFlags|=2048;var $p=Ks(2048,"__type");$p.members=Ho();var Pc=Ol($p,se,Dt,Dt,Dt),Il=Ol(void 0,se,Dt,Dt,Dt),hl=fe?tr([te,it,Il]):on,Ga=Ol(void 0,se,Dt,Dt,Dt);Ga.instantiations=new Map;var Oi=Ol(void 0,se,Dt,Dt,Dt);Oi.objectFlags|=262144;var fl=Ol(void 0,se,Dt,Dt,Dt),Zc=Ol(void 0,se,Dt,Dt,Dt),yh=Ol(void 0,se,Dt,Dt,Dt),sf=V1(),X0=V1();X0.constraint=sf;var yc=V1(),$=V1(),tt=V1();tt.constraint=$;var vt=Fte(1,"<>",0,me),fi=k3(void 0,void 0,void 0,Dt,me,void 0,0,0),fn=k3(void 0,void 0,void 0,Dt,Ot,void 0,0,0),Gu=k3(void 0,void 0,void 0,Dt,me,void 0,0,0),uu=k3(void 0,void 0,void 0,Dt,Va,void 0,0,0),Nu=k_(Qt,ct,!0),Mr=new Map,Hu={get yieldType(){return H.fail("Not supported")},get returnType(){return H.fail("Not supported")},get nextType(){return H.fail("Not supported")}},Ss=J5(me,me,me),nc=J5(me,me,on),ud=J5(Wu,me,te),T0={iterableCacheKey:"iterationTypesOfAsyncIterable",iteratorCacheKey:"iterationTypesOfAsyncIterator",iteratorSymbolName:"asyncIterator",getGlobalIteratorType:Cei,getGlobalIterableType:Ige,getGlobalIterableIteratorType:bei,getGlobalGeneratorType:yei,resolveIterationType:(l,m)=>NF(l,m,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member),mustHaveANextMethodDiagnostic:F.An_async_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_async_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property},rd={iterableCacheKey:"iterationTypesOfIterable",iteratorCacheKey:"iterationTypesOfIterator",iteratorSymbolName:"iterator",getGlobalIteratorType:kei,getGlobalIterableType:pPe,getGlobalIterableIteratorType:Fei,getGlobalGeneratorType:Aei,resolveIterationType:(l,m)=>l,mustHaveANextMethodDiagnostic:F.An_iterator_must_have_a_next_method,mustBeAMethodDiagnostic:F.The_0_property_of_an_iterator_must_be_a_method,mustHaveAValueDiagnostic:F.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property},m0,Bd=new Map,jh=[],rh,p4,x1,Ve,di,Mn,ka,Fo,To,uc,mc,bl,Ll,kc,ql,Mc,up,$m,Vh,g4,d3,d_,C5,O1,h3,Wf,E4,Hh,Ee,wt,_i,vi,Q,Me,Tt,yi,In,nr,ur,fa,ss,ls,Rl,v1,fd,Um,_s,rp,qm,f3,h_,ia,Xx,e6,bg,lb,b5=new Map,Xe=0,xt=0,oi=0,wi=!1,Xi=0,Rn,tn,bn,Ar=[],bu=[],yu=[],_u=0,la=[],p0=[],o0=0,Gf=df(""),tC=wg(0),t6=Hge({negative:!1,base10Value:"0"}),cD=[],i6=[],Gk=[],cb=0,Jk=!1,$k=0,oz=10,D9=[],ww=[],iC=[],x9=[],v9=[],Tw=[],Uk=[],Lw=[],C9=[],b9=[],qk=[],db=[],hb=[],nC=[],y5=[],fb=[],mE=[],Hs=rB(),Zk=rB(),Nw=Gw(),n6,k5,f_=new Map,_4=new Map,Jf=new Map,Kh=new Map,Em=new Map,uC=new Map,Pw=Ho();Pw.set(st.escapedName,st);var y9=[[".mts",".mjs"],[".ts",".js"],[".cts",".cjs"],[".mjs",".mjs"],[".js",".js"],[".cjs",".cjs"],[".tsx",ae.jsx===1?".jsx":".js"],[".jsx",".jsx"],[".json",".json"]];return Fli(),Pi;function Yk(l){return l?Qe.get(l):void 0}function mb(l,m){return l&&Qe.set(l,m),m}function rC(l){if(l){const m=zn(l);if(m)if(V7(l)){if(m.localJsxFragmentNamespace)return m.localJsxFragmentNamespace;const D=m.pragmas.get("jsxfrag");if(D){const A=Wa(D)?D[0]:D;if(m.localJsxFragmentFactory=G7(A.arguments.factory,Ce),yt(m.localJsxFragmentFactory,aC,sm),m.localJsxFragmentFactory)return m.localJsxFragmentNamespace=hm(m.localJsxFragmentFactory).escapedText}const C=eIe(l);if(C)return m.localJsxFragmentFactory=C,m.localJsxFragmentNamespace=hm(C).escapedText}else{const D=Qk(m);if(D)return m.localJsxNamespace=D}}return n6||(n6="React",ae.jsxFactory?(k5=G7(ae.jsxFactory,Ce),yt(k5,aC),k5&&(n6=hm(k5).escapedText)):ae.reactNamespace&&(n6=Sl(ae.reactNamespace))),k5||(k5=q.createQualifiedName(q.createIdentifier(Qr(n6)),"createElement")),n6}function Qk(l){if(l.localJsxNamespace)return l.localJsxNamespace;const m=l.pragmas.get("jsx");if(m){const D=Wa(m)?m[0]:m;if(l.localJsxFactory=G7(D.arguments.factory,Ce),yt(l.localJsxFactory,aC,sm),l.localJsxFactory)return l.localJsxNamespace=hm(l.localJsxFactory).escapedText}}function aC(l){return i_(l,-1,-1),rn(l,aC,Dg)}function jd(l,m){return W4t(l,m),Gt}function F5(l,m,...D){const C=l?Tu(l,m,...D):dc(m,...D),A=Hs.lookup(C);return A||(Hs.add(C),C)}function A5(l,m,D,...C){const A=gt(m,D,...C);return A.skippedOn=l,A}function m3(l,m,...D){return l?Tu(l,m,...D):dc(m,...D)}function gt(l,m,...D){const C=m3(l,m,...D);return Hs.add(C),C}function n1(l,m){l?Hs.add(m):Zk.add({...m,category:2})}function D4(l,m,D,...C){if(m.pos<0||m.end<0){if(!l)return;const A=zn(m);n1(l,"message"in D?Rd(A,0,0,D,...C):k0e(A,D));return}n1(l,"message"in D?Tu(m,D,...C):Y3(zn(m),m,D))}function kh(l,m,D,...C){const A=gt(l,D,...C);if(m){const w=Tu(l,F.Did_you_forget_to_use_await);Es(A,w)}return A}function Mw(l,m){const D=Array.isArray(l)?L(l,jse):jse(l);return D&&Es(m,Tu(D,F.The_declaration_was_marked_as_deprecated_here)),Zk.add(m),m}function S5(l){const m=cf(l);return m&&S(l.declarations)>1?m.flags&64?Ge(l.declarations,oC):ye(l.declarations,oC):!!l.valueDeclaration&&oC(l.valueDeclaration)||S(l.declarations)&&ye(l.declarations,oC)}function oC(l){return!!(Jb(l)&536870912)}function p3(l,m,D){const C=Tu(l,F._0_is_deprecated,D);return Mw(m,C)}function sz(l,m,D,C){const A=D?Tu(l,F.The_signature_0_of_1_is_deprecated,C,D):Tu(l,F._0_is_deprecated,C);return Mw(m,A)}function Ks(l,m,D){T++;const C=new v(l|33554432,m);return C.links=new GAe,C.links.checkFlags=D||0,C}function yg(l,m){const D=Ks(1,l);return D.links.type=m,D}function Xk(l,m){const D=Ks(4,l);return D.links.type=m,D}function eF(l){let m=0;return l&2&&(m|=111551),l&1&&(m|=111550),l&4&&(m|=0),l&8&&(m|=900095),l&16&&(m|=110991),l&32&&(m|=899503),l&64&&(m|=788872),l&256&&(m|=899327),l&128&&(m|=899967),l&512&&(m|=110735),l&8192&&(m|=103359),l&32768&&(m|=46015),l&65536&&(m|=78783),l&262144&&(m|=526824),l&524288&&(m|=788968),l&2097152&&(m|=2097152),m}function pb(l,m){m.mergeId||(m.mergeId=KAe,KAe++),D9[m.mergeId]=l}function gb(l){const m=Ks(l.flags,l.escapedName);return m.declarations=l.declarations?l.declarations.slice():[],m.parent=l.parent,l.valueDeclaration&&(m.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(m.constEnumOnlyModule=!0),l.members&&(m.members=new Map(l.members)),l.exports&&(m.exports=new Map(l.exports)),pb(m,l),m}function ap(l,m,D=!1){if(!(l.flags&eF(m.flags))||(m.flags|l.flags)&67108864){if(m===l)return l;if(!(l.flags&33554432)){const A=Fc(l);if(A===Xt)return m;l=gb(A)}m.flags&512&&l.flags&512&&l.constEnumOnlyModule&&!m.constEnumOnlyModule&&(l.constEnumOnlyModule=!1),l.flags|=m.flags,m.valueDeclaration&&Aj(l,m.valueDeclaration),yn(l.declarations,m.declarations),m.members&&(l.members||(l.members=Ho()),pE(l.members,m.members,D)),m.exports&&(l.exports||(l.exports=Ho()),pE(l.exports,m.exports,D)),D||pb(l,m)}else if(l.flags&1024)l!==Bt&>(m.declarations&&Ya(m.declarations[0]),F.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity,Sr(l));else{const A=!!(l.flags&384||m.flags&384),w=!!(l.flags&2||m.flags&2),I=A?F.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations:w?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0,U=m.declarations&&zn(m.declarations[0]),Z=l.declarations&&zn(l.declarations[0]),ce=uj(U,ae.checkJs),Fe=uj(Z,ae.checkJs),Te=Sr(m);if(U&&Z&&m0&&!A&&U!==Z){const $e=gv(U.path,Z.path)===-1?U:Z,ut=$e===U?Z:U,zt=_0(m0,`${$e.path}|${ut.path}`,()=>({firstFile:$e,secondFile:ut,conflictingSymbols:new Map})),gi=_0(zt.conflictingSymbols,Te,()=>({isBlockScoped:w,firstFileLocations:[],secondFileLocations:[]}));ce||C(gi.firstFileLocations,m),Fe||C(gi.secondFileLocations,l)}else ce||kg(m,I,Te,l),Fe||kg(l,I,Te,m)}return l;function C(A,w){if(w.declarations)for(const I of w.declarations)Ca(A,I)}}function kg(l,m,D,C){L(l.declarations,A=>{g3(A,m,D,C.declarations)})}function g3(l,m,D,C){const A=(kv(l,!1)?M0e(l):Ya(l))||l,w=F5(A,m,D);for(const I of C||Dt){const U=(kv(I,!1)?M0e(I):Ya(I))||I;if(U===A)continue;w.relatedInformation=w.relatedInformation||[];const Z=Tu(U,F._0_was_also_declared_here,D),ce=Tu(U,F.and_here);S(w.relatedInformation)>=5||Ge(w.relatedInformation,Fe=>yP(Fe,ce)===0||yP(Fe,Z)===0)||Es(w,S(w.relatedInformation)?ce:Z)}}function tF(l,m){if(!(l!=null&&l.size))return m;if(!(m!=null&&m.size))return l;const D=Ho();return pE(D,l),pE(D,m),D}function pE(l,m,D=!1){m.forEach((C,A)=>{const w=l.get(A);l.set(A,w?ap(w,C,D):Ws(C))})}function iF(l){var m,D,C;const A=l.parent;if(((m=A.symbol.declarations)==null?void 0:m[0])!==A){H.assert(A.symbol.declarations.length>1);return}if(Qg(A))pE(Ie,A.symbol.exports);else{const w=l.parent.parent.flags&33554432?void 0:F.Invalid_module_name_in_augmentation_module_0_cannot_be_found;let I=x3(l,l,w,!0);if(!I)return;if(I=_m(I),I.flags&1920)if(Ge(p4,U=>I===U.symbol)){const U=ap(A.symbol,I,!0);x1||(x1=new Map),x1.set(l.text,U)}else{if((D=I.exports)!=null&&D.get("__export")&&((C=A.symbol.exports)!=null&&C.size)){const U=jNe(I,"resolvedExports");for(const[Z,ce]of Ea(A.symbol.exports.entries()))U.has(Z)&&!I.exports.has(Z)&&ap(U.get(Z),ce)}ap(I,A.symbol)}else gt(l,F.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity,l.text)}}function zw(l,m,D){m.forEach((A,w)=>{const I=l.get(w);I?L(I.declarations,C(Qr(w),D)):l.set(w,A)});function C(A,w){return I=>Hs.add(Tu(I,w,A))}}function qr(l){if(l.flags&33554432)return l.links;const m=Yo(l);return ww[m]??(ww[m]=new GAe)}function sr(l){const m=Us(l);return iC[m]||(iC[m]=new SPt)}function gE(l){return l.kind===312&&!cm(l)}function kf(l,m,D){if(D){const C=Ws(l.get(m));if(C&&(H.assert((Gl(C)&1)===0,"Should never get an instantiated symbol here."),C.flags&D||C.flags&2097152&&j1(C)&D))return C}}function Iw(l,m){const D=l.parent,C=l.parent.parent,A=kf(D.locals,m,111551),w=kf(_6(C.symbol),m,111551);return A&&w?[A,w]:H.fail("There should exist two symbols, one as property declaration and one as parameter declaration")}function B5(l,m){const D=zn(l),C=zn(m),A=QE(l);if(D!==C){if(ne&&(D.externalModuleIndicator||C.externalModuleIndicator)||!F0(ae)||ck(m)||l.flags&33554432||I(m,l))return!0;const Z=t.getSourceFiles();return Z.indexOf(D)<=Z.indexOf(C)}if(m.flags&16777216||ck(m)||_Me(m))return!0;if(l.pos<=m.pos&&!(ko(l)&&pj(m.parent)&&!l.initializer&&!l.exclamationToken)){if(l.kind===208){const Z=Av(m,208);return Z?Tn(Z,Vs)!==Tn(l,Vs)||l.posMs(Z)&&Z.parent.parent===l);if(ko(l))return!U(l,m,!1);if(Mf(l,l.parent))return!(Ne&&Qd(l)===Qd(m)&&I(m,l))}return!0}if(m.parent.kind===281||m.parent.kind===277&&m.parent.isExportEquals||m.kind===277&&m.isExportEquals)return!0;if(I(m,l))return Ne&&Qd(l)&&(ko(l)||Mf(l,l.parent))?!U(l,m,!0):!0;return!1;function w(Z,ce){switch(Z.parent.parent.kind){case 243:case 248:case 250:if(_b(ce,Z,A))return!0;break}const Fe=Z.parent.parent;return M8(Fe)&&_b(ce,Fe.expression,A)}function I(Z,ce){return!!Tn(Z,Fe=>{if(Fe===A)return"quit";if(Co(Fe))return!0;if(zl(Fe))return ce.posZ.end?!1:Tn(ce,$e=>{if($e===Z)return"quit";switch($e.kind){case 219:return!0;case 172:return Fe&&(ko(Z)&&$e.parent===Z.parent||Mf(Z,Z.parent)&&$e.parent===Z.parent.parent)?"quit":!0;case 241:switch($e.parent.kind){case 177:case 174:case 178:return!0;default:return!1}default:return!1}})===void 0}}function Rw(l,m,D){const C=js(ae),A=m;if(io(D)&&A.body&&l.valueDeclaration&&l.valueDeclaration.pos>=A.body.pos&&l.valueDeclaration.end<=A.body.end&&C>=2){const U=sr(A);return U.declarationRequiresScopeChange===void 0&&(U.declarationRequiresScopeChange=L(A.parameters,w)||!1),!U.declarationRequiresScopeChange}return!1;function w(U){return I(U.name)||!!U.initializer&&I(U.initializer)}function I(U){switch(U.kind){case 219:case 218:case 262:case 176:return!1;case 174:case 177:case 178:case 303:return I(U.name);case 172:return Gc(U)?!Ne:I(U.name);default:return Gse(U)||Q1(U)?C<7:Vs(U)&&U.dotDotDotToken&&Op(U.parent)?C<4:Xr(U)?!1:ao(U,I)||!1}}}function Eb(l){return Yy(l)&&q3(l.type)||eM(l)&&q3(l.typeExpression)}function rc(l,m,D,C,A,w,I=!1,U=!0){return Fh(l,m,D,C,A,w,I,U,kf)}function Fh(l,m,D,C,A,w,I,U,Z){var ce,Fe,Te;const $e=l;let ut,zt,gi,Wi,dn,nu=!1;const En=l;let Ri,Nn=!1;e:for(;l;){if(m==="const"&&Eb(l))return;if(XO(l)&&zt&&l.name===zt&&(zt=l,l=l.parent),qE(l)&&l.locals&&!gE(l)&&(ut=Z(l.locals,m,D))){let An=!0;if(Co(l)&&zt&&zt!==l.body?(D&ut.flags&788968&&zt.kind!==327&&(An=ut.flags&262144?zt===l.type||zt.kind===169||zt.kind===348||zt.kind===349||zt.kind===168:!1),D&ut.flags&3&&(Rw(ut,l,zt)?An=!1:ut.flags&1&&(An=zt.kind===169||zt===l.type&&!!Tn(ut.valueDeclaration,io)))):l.kind===194&&(An=zt===l.trueType),An)break e;ut=void 0}switch(nu=nu||m_(l,zt),l.kind){case 312:if(!cm(l))break;Nn=!0;case 267:const An=((ce=Du(l))==null?void 0:ce.exports)||se;if(l.kind===312||xc(l)&&l.flags&33554432&&!Qg(l)){if(ut=An.get("default")){const oo=lB(ut);if(oo&&ut.flags&D&&oo.escapedName===m)break e;ut=void 0}const hu=An.get(m);if(hu&&hu.flags===2097152&&(Bl(hu,281)||Bl(hu,280)))break}if(m!=="default"&&(ut=Z(An,m,D&2623475)))if(ca(l)&&l.commonJsModuleIndicator&&!((Fe=ut.declarations)!=null&&Fe.some($4)))ut=void 0;else break e;break;case 266:if(ut=Z(((Te=Du(l))==null?void 0:Te.exports)||se,m,D&8)){C&&mg(ae)&&!(l.flags&33554432)&&zn(l)!==zn(ut.valueDeclaration)&>(En,F.Cannot_access_0_from_another_file_without_qualification_when_1_is_enabled_Use_2_instead,Qr(m),ft,`${Qr(Dm(l).escapedName)}.${Qr(m)}`);break e}break;case 172:if(!No(l)){const hu=qp(l.parent);hu&&hu.locals&&Z(hu.locals,m,D&111551)&&(H.assertNode(l,ko),Wi=l)}break;case 263:case 231:case 264:if(ut=Z(Du(l).members||se,m,D&788968)){if(!sC(ut,l)){ut=void 0;break}if(zt&&No(zt)){C&>(En,F.Static_members_cannot_reference_class_type_parameters);return}break e}if(e1(l)&&D&32){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 233:if(zt===l.expression&&l.parent.token===96){const hu=l.parent.parent;if(gr(hu)&&(ut=Z(Du(hu).members,m,D&788968))){C&>(En,F.Base_class_expressions_cannot_reference_class_type_parameters);return}}break;case 167:if(Ri=l.parent.parent,(gr(Ri)||Ri.kind===264)&&(ut=Z(Du(Ri).members,m,D&788968))){C&>(En,F.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);return}break;case 219:if(js(ae)>=2)break;case 174:case 176:case 177:case 178:case 262:if(D&3&&m==="arguments"){ut=It;break e}break;case 218:if(D&3&&m==="arguments"){ut=It;break e}if(D&16){const hu=l.name;if(hu&&m===hu.escapedText){ut=l.symbol;break e}}break;case 170:l.parent&&l.parent.kind===169&&(l=l.parent),l.parent&&(Yd(l.parent)||l.parent.kind===263)&&(l=l.parent);break;case 353:case 345:case 347:const _n=nP(l);_n&&(l=_n.parent);break;case 169:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&(dn||(dn=l));break;case 208:zt&&(zt===l.initializer||zt===l.name&&So(zt))&&T2(l)&&!dn&&(dn=l);break;case 195:if(D&262144){const hu=l.typeParameter.name;if(hu&&m===hu.escapedText){ut=l.typeParameter.symbol;break e}}break;case 281:zt&&zt===l.propertyName&&l.parent.parent.moduleSpecifier&&(l=l.parent.parent.parent);break}E3(l)&&(gi=l),zt=l,l=_g(l)?Bq(l)||l.parent:(Eg(l)||DY(l))&&Fv(l)||l.parent}if(w&&ut&&(!gi||ut!==gi.symbol)&&(ut.isReferenced|=D),!ut){if(zt&&(H.assertNode(zt,ca),zt.commonJsModuleIndicator&&m==="exports"&&D&zt.symbol.flags))return zt.symbol;I||(ut=Z(Ie,m,D))}if(!ut&&$e&&Xn($e)&&$e.parent&&xf($e.parent,!1))return ei;function vn(){return Wi&&!Ne?(gt(En,En&&Wi.type&&RO(Wi.type,En.pos)?F.Type_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor:F.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor,k0(Wi.name),Up(A)),!0):!1}if(ut){if(C&&vn())return}else{C&&s(()=>{if(!En||En.parent.kind!==331&&!_3(En,m,A)&&!vn()&&!Ow(En)&&!jw(En,m,D)&&!w5(En,m)&&!F9(En,m,D)&&!Vw(En,m,D)&&!EE(En,m,D)){let An,_n;if(A&&(_n=pri(A),_n&>(En,C,Up(A),_n)),!_n&&U&&$k{if(En&&(D&2||(D&32||D&384)&&(D&111551)===111551)){const An=cp(ut);(An.flags&2||An.flags&32||An.flags&384)&&L0(An,En)}if(ut&&Nn&&(D&111551)===111551&&!($e.flags&16777216)){const An=Ws(ut);S(An.declarations)&&ye(An.declarations,_n=>TV(_n)||ca(_n)&&!!_n.symbol.globalExports)&&D4(!ae.allowUmdGlobalAccess,En,F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead,Qr(m))}if(ut&&dn&&!nu&&(D&111551)===111551){const An=Ws(Fge(ut)),_n=e_(dn);An===Du(dn)?gt(En,F.Parameter_0_cannot_reference_itself,k0(dn.name)):An.valueDeclaration&&An.valueDeclaration.pos>dn.pos&&_n.parent.locals&&Z(_n.parent.locals,An.escapedName,D)===An&>(En,F.Parameter_0_cannot_reference_identifier_1_declared_after_it,k0(dn.name),k0(En))}if(ut&&En&&D&111551&&ut.flags&2097152&&!(ut.flags&111551)&&!Lv(En)){const An=v4(ut,111551);if(An){const _n=An.kind===281||An.kind===278||An.kind===280?F._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type:F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type,hu=Qr(m);dD(gt(En,_n,hu),An,hu)}}}),ut}function dD(l,m,D){return m?Es(l,Tu(m,m.kind===281||m.kind===278||m.kind===280?F._0_was_exported_here:F._0_was_imported_here,D)):l}function m_(l,m){return l.kind!==219&&l.kind!==218?bB(l)||(U0(l)||l.kind===172&&!No(l))&&(!m||m!==l.name):m&&m===l.name?!1:l.asteriskToken||Qu(l,1024)?!0:!nk(l)}function E3(l){switch(l.kind){case 262:case 263:case 264:case 266:case 265:case 267:return!0;default:return!1}}function Up(l){return Ua(l)?Qr(l):k0(l)}function sC(l,m){if(l.declarations){for(const D of l.declarations)if(D.kind===168&&(_g(D.parent)?h7(D.parent):D.parent)===m)return!(_g(D.parent)&&Le(D.parent.parent.tags,$4))}return!1}function _3(l,m,D){if(!at(l)||l.escapedText!==m||G4t(l)||ck(l))return!1;const C=tf(l,!1,!1);let A=C;for(;A;){if(gr(A.parent)){const w=Du(A.parent);if(!w)break;const I=Wn(w);if(Zo(I,m))return gt(l,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0,Up(D),Sr(w)),!0;if(A===C&&!No(A)){const U=el(w).thisType;if(Zo(U,m))return gt(l,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0,Up(D)),!0}}A=A.parent}return!1}function Ow(l){const m=p_(l);return m&&j0(m,64,!0)?(gt(l,F.Cannot_extend_an_interface_0_Did_you_mean_implements,Wc(m)),!0):!1}function p_(l){switch(l.kind){case 80:case 211:return l.parent?p_(l.parent):void 0;case 233:if(tc(l.expression))return l.expression;default:return}}function jw(l,m,D){const C=1920|(Xn(l)?111551:0);if(D===C){const A=Fc(rc(l,m,788968&~C,void 0,void 0,!1)),w=l.parent;if(A){if(vf(w)){H.assert(w.left===l,"Should only be resolving left side of qualified name as a namespace");const I=w.right.escapedText;if(Zo(el(A),I))return gt(w,F.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,Qr(m),Qr(I)),!0}return gt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here,Qr(m)),!0}}return!1}function EE(l,m,D){if(D&788584){const C=Fc(rc(l,m,111127,void 0,void 0,!1));if(C&&!(C.flags&1920))return gt(l,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,Qr(m)),!0}return!1}function g_(l){return l==="any"||l==="string"||l==="number"||l==="boolean"||l==="never"||l==="unknown"}function w5(l,m){return g_(m)&&l.parent.kind===281?(gt(l,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,m),!0):!1}function Vw(l,m,D){if(D&111551){if(g_(m)){const w=l.parent.parent;if(w&&w.parent&&mm(w)){const I=w.token,U=w.parent.kind;U===264&&I===96?gt(l,F.An_interface_cannot_extend_a_primitive_type_like_0_It_can_only_extend_other_named_object_types,Qr(m)):U===263&&I===96?gt(l,F.A_class_cannot_extend_a_primitive_type_like_0_Classes_can_only_extend_constructable_values,Qr(m)):U===263&&I===119&>(l,F.A_class_cannot_implement_a_primitive_type_like_0_It_can_only_implement_other_named_object_types,Qr(m))}else gt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,Qr(m));return!0}const C=Fc(rc(l,m,788544,void 0,void 0,!1)),A=C&&j1(C);if(C&&A!==void 0&&!(A&111551)){const w=Qr(m);return lz(m)?gt(l,F._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,w):k9(l,C)?gt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0,w,w==="K"?"P":"K"):gt(l,F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here,w),!0}}return!1}function k9(l,m){const D=Tn(l.parent,C=>Ms(C)||zm(C)?!1:fm(C)||"quit");if(D&&D.members.length===1){const C=el(m);return!!(C.flags&1048576)&&gie(C,384,!0)}return!1}function lz(l){switch(l){case"Promise":case"Symbol":case"Map":case"WeakMap":case"Set":case"WeakSet":return!0}return!1}function F9(l,m,D){if(D&111127){if(Fc(rc(l,m,1024,void 0,void 0,!1)))return gt(l,F.Cannot_use_namespace_0_as_a_value,Qr(m)),!0}else if(D&788544&&Fc(rc(l,m,1536,void 0,void 0,!1)))return gt(l,F.Cannot_use_namespace_0_as_a_type,Qr(m)),!0;return!1}function L0(l,m){var D;if(H.assert(!!(l.flags&2||l.flags&32||l.flags&384)),l.flags&67108881&&l.flags&32)return;const C=(D=l.declarations)==null?void 0:D.find(A=>m0e(A)||gr(A)||A.kind===266);if(C===void 0)return H.fail("checkResolvedBlockScopedVariable could not find block-scoped declaration");if(!(C.flags&33554432)&&!B5(C,m)){let A;const w=k0(Ya(C));l.flags&2?A=gt(m,F.Block_scoped_variable_0_used_before_its_declaration,w):l.flags&32?A=gt(m,F.Class_0_used_before_its_declaration,w):l.flags&256&&(A=gt(m,F.Enum_0_used_before_its_declaration,w)),A&&Es(A,Tu(C,F._0_is_declared_here,w))}}function _b(l,m,D){return!!m&&!!Tn(l,C=>C===m||(C===D||Co(C)&&(!nk(C)||kd(C)&3)?"quit":!1))}function A9(l){switch(l.kind){case 271:return l;case 273:return l.parent;case 274:return l.parent.parent;case 276:return l.parent.parent.parent;default:return}}function op(l){return l.declarations&<(l.declarations,lC)}function lC(l){return l.kind===271||l.kind===270||l.kind===273&&!!l.name||l.kind===274||l.kind===280||l.kind===276||l.kind===281||l.kind===277&&tB(l)||eu(l)&&ec(l)===2&&tB(l)||O0(l)&&eu(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64&&S9(l.parent.right)||l.kind===304||l.kind===303&&S9(l.initializer)||l.kind===260&&A2(l)||l.kind===208&&A2(l.parent.parent)}function S9(l){return Mj(l)||w0(l)&&SE(l)}function cz(l,m){const D=fD(l);if(D){const A=bP(D.expression).arguments[0];return at(D.name)?Fc(Zo(Idt(A),D.name.escapedText)):void 0}if(ra(l)||l.moduleReference.kind===283){const A=Wh(l,L0e(l)||eP(l)),w=_m(A);return Ff(l,A,w,!1),w}const C=aF(l.moduleReference,m);return nF(l,C),C}function nF(l,m){if(Ff(l,void 0,m,!1)&&!l.isTypeOnly){const D=v4(Du(l)),C=D.kind===281||D.kind===278,A=C?F.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type:F.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type,w=C?F._0_was_exported_here:F._0_was_imported_here,I=D.kind===278?"*":Qr(D.name.escapedText);Es(gt(l.moduleReference,A),Tu(D,w,I))}}function ru(l,m,D,C){const A=l.exports.get("export="),w=A?Zo(Wn(A),m,!0):l.exports.get(m),I=Fc(w,C);return Ff(D,w,I,!1),I}function C1(l){return ic(l)&&!l.isExportEquals||Qu(l,2048)||th(l)||r_(l)}function za(l){return i0(l)?xg(zn(l),l):void 0}function lf(l,m){return l===99&&m===1}function _E(l){return za(l)===99&&lc(l.text,".json")}function sp(l,m,D,C){const A=l&&za(C);if(l&&A!==void 0){const w=lf(A,l.impliedNodeFormat);if(A===99||w)return w}if(!pe)return!1;if(!l||l.isDeclarationFile){const w=ru(m,"default",void 0,!0);return!(w&&Ge(w.declarations,C1)||ru(m,Sl("__esModule"),void 0,D))}return _h(l)?typeof l.externalModuleIndicator!="object"&&!ru(m,Sl("__esModule"),void 0,D):yb(m)}function Un(l,m){const D=Wh(l,l.parent.moduleSpecifier);if(D)return Db(D,l,m)}function Db(l,m,D){var C;let A;UN(l)?A=l:A=ru(l,"default",m,D);const w=(C=l.declarations)==null?void 0:C.find(ca),I=cC(m);if(!I)return A;const U=_E(I),Z=sp(w,l,D,I);if(!A&&!Z&&!U)if(yb(l)&&!pe){const ce=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop",Te=l.exports.get("export=").valueDeclaration,$e=gt(m.name,F.Module_0_can_only_be_default_imported_using_the_1_flag,Sr(l),ce);Te&&Es($e,Tu(Te,F.This_module_is_declared_with_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag,ce))}else u_(m)?wd(l,m):hC(l,l,m,r7(m)&&m.propertyName||m.name);else if(Z||U){const ce=_m(l,D)||Fc(l,D);return Ff(m,l,ce,!1),ce}return Ff(m,A,void 0,!1),A}function cC(l){switch(l.kind){case 273:return l.parent.moduleSpecifier;case 271:return a_(l.moduleReference)?l.moduleReference.expression:void 0;case 274:return l.parent.parent.moduleSpecifier;case 276:return l.parent.parent.parent.moduleSpecifier;case 281:return l.parent.parent.moduleSpecifier;default:return H.assertNever(l)}}function wd(l,m){var D,C,A;if((D=l.exports)!=null&&D.has(m.symbol.escapedName))gt(m.name,F.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead,Sr(l),Sr(m.symbol));else{const w=gt(m.name,F.Module_0_has_no_default_export,Sr(l)),I=(C=l.exports)==null?void 0:C.get("__export");if(I){const U=(A=I.declarations)==null?void 0:A.find(Z=>{var ce,Fe;return!!($c(Z)&&Z.moduleSpecifier&&((Fe=(ce=Wh(Z,Z.moduleSpecifier))==null?void 0:ce.exports)!=null&&Fe.has("default")))});U&&Es(w,Tu(U,F.export_Asterisk_does_not_re_export_a_default))}}}function DE(l,m){const D=l.parent.parent.moduleSpecifier,C=Wh(l,D),A=o6(C,D,m,!1);return Ff(l,C,A,!1),A}function xE(l,m){const D=l.parent.moduleSpecifier,C=D&&Wh(l,D),A=D&&o6(C,D,m,!1);return Ff(l,C,A,!1),A}function u6(l,m){if(l===Xt&&m===Xt)return Xt;if(l.flags&790504)return l;const D=Ks(l.flags|m.flags,l.escapedName);return H.assert(l.declarations||m.declarations),D.declarations=li(mi(l.declarations,m.declarations),Cx),D.parent=l.parent||m.parent,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration),m.members&&(D.members=new Map(m.members)),l.exports&&(D.exports=new Map(l.exports)),D}function B9(l,m,D,C){var A;if(l.flags&1536){const w=$f(l).get(m.escapedText),I=Fc(w,C),U=(A=qr(l).typeOnlyExportStarMap)==null?void 0:A.get(m.escapedText);return Ff(D,w,I,!1,U,m.escapedText),I}}function hD(l,m){if(l.flags&3){const D=l.valueDeclaration.type;if(D)return Fc(Zo(Br(D),m))}}function dC(l,m,D=!1){var C;const A=L0e(l)||l.moduleSpecifier,w=Wh(l,A),I=!Ru(m)&&m.propertyName||m.name;if(!at(I))return;const U=I.escapedText==="default"&&pe,Z=o6(w,A,!1,U);if(Z&&I.escapedText){if(UN(w))return w;let ce;w&&w.exports&&w.exports.get("export=")?ce=Zo(Wn(Z),I.escapedText,!0):ce=hD(Z,I.escapedText),ce=Fc(ce,D);let Fe=B9(Z,I,m,D);if(Fe===void 0&&I.escapedText==="default"){const $e=(C=w.declarations)==null?void 0:C.find(ca);(_E(A)||sp($e,w,D,A))&&(Fe=_m(w,D)||Fc(w,D))}const Te=Fe&&ce&&Fe!==ce?u6(ce,Fe):Fe||ce;return Te||hC(w,Z,l,I),Te}}function hC(l,m,D,C){var A;const w=lp(l,D),I=k0(C),U=zEe(C,m);if(U!==void 0){const Z=Sr(U),ce=gt(C,F._0_has_no_exported_member_named_1_Did_you_mean_2,w,I,Z);U.valueDeclaration&&Es(ce,Tu(U.valueDeclaration,F._0_is_declared_here,Z))}else(A=l.exports)!=null&&A.has("default")?gt(C,F.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead,w,I):D3(D,C,I,l,w)}function D3(l,m,D,C,A){var w,I;const U=(I=(w=ar(C.valueDeclaration,qE))==null?void 0:w.locals)==null?void 0:I.get(m.escapedText),Z=C.exports;if(U){const ce=Z==null?void 0:Z.get("export=");if(ce)Ym(ce,U)?E_(l,m,D,A):gt(m,F.Module_0_has_no_exported_member_1,A,D);else{const Fe=Z?Le(uPe(Z),$e=>!!Ym($e,U)):void 0,Te=Fe?gt(m,F.Module_0_declares_1_locally_but_it_is_exported_as_2,A,D,Sr(Fe)):gt(m,F.Module_0_declares_1_locally_but_it_is_not_exported,A,D);U.declarations&&Es(Te,...Vt(U.declarations,($e,ut)=>Tu($e,ut===0?F._0_is_declared_here:F.and_here,D)))}}else gt(m,F.Module_0_has_no_exported_member_1,A,D)}function E_(l,m,D,C){if(ne>=5){const A=t_(ae)?F._0_can_only_be_imported_by_using_a_default_import:F._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(m,A,D)}else if(Xn(l)){const A=t_(ae)?F._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import:F._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(m,A,D)}else{const A=t_(ae)?F._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import:F._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;gt(m,A,D,D,C)}}function uF(l,m){if(bf(l)&&fu(l.propertyName||l.name)==="default"){const I=cC(l),U=I&&Wh(l,I);if(U)return Db(U,l,m)}const D=Vs(l)?e_(l):l.parent.parent.parent,C=fD(D),A=dC(D,C||l,m),w=l.propertyName||l.name;return C&&A&&at(w)?Fc(Zo(Wn(A),w.escapedText),m):(Ff(l,void 0,A,!1),A)}function fD(l){if(ra(l)&&l.initializer&&Ru(l.initializer))return l.initializer}function r6(l,m){if(Yg(l.parent)){const D=_m(l.parent.symbol,m);return Ff(l,void 0,D,!1),D}}function xb(l,m,D){if(fu(l.propertyName||l.name)==="default"){const A=cC(l),w=A&&Wh(l,A);if(w)return Db(w,l,!!D)}const C=l.parent.parent.moduleSpecifier?dC(l.parent.parent,l,D):j0(l.propertyName||l.name,m,!1,D);return Ff(l,void 0,C,!1),C}function w9(l,m){const D=ic(l)?l.expression:l.right,C=rF(D,m);return Ff(l,void 0,C,!1),C}function rF(l,m){if(e1(l))return jc(l).symbol;if(!sm(l)&&!tc(l))return;const D=j0(l,901119,!0,m);return D||(jc(l),sr(l).resolvedSymbol)}function vb(l,m){if(eu(l.parent)&&l.parent.left===l&&l.parent.operatorToken.kind===64)return rF(l.parent.right,m)}function x4(l,m=!1){switch(l.kind){case 271:case 260:return cz(l,m);case 273:return Un(l,m);case 274:return DE(l,m);case 280:return xE(l,m);case 276:case 208:return uF(l,m);case 281:return xb(l,901119,m);case 277:case 226:return w9(l,m);case 270:return r6(l,m);case 304:return j0(l.name,901119,!0,m);case 303:return rF(l.initializer,m);case 212:case 211:return vb(l,m);default:return H.fail()}}function fC(l,m=901119){return l?(l.flags&(2097152|m))===2097152||!!(l.flags&2097152&&l.flags&67108864):!1}function Fc(l,m){return!m&&fC(l)?md(l):l}function md(l){H.assert((l.flags&2097152)!==0,"Should only get Alias here.");const m=qr(l);if(m.aliasTarget)m.aliasTarget===Pe&&(m.aliasTarget=Xt);else{m.aliasTarget=Pe;const D=op(l);if(!D)return H.fail();const C=x4(D);m.aliasTarget===Pe?m.aliasTarget=C||Xt:gt(D,F.Circular_definition_of_import_alias_0,Sr(l))}return m.aliasTarget}function T9(l){if(qr(l).aliasTarget!==Pe)return md(l)}function j1(l,m,D){const C=m&&v4(l),A=C&&$c(C),w=C&&(A?Wh(C.moduleSpecifier,C.moduleSpecifier,!0):md(C.symbol)),I=A&&w?v3(w):void 0;let U=D?0:l.flags,Z;for(;l.flags&2097152;){const ce=cp(md(l));if(!A&&ce===w||(I==null?void 0:I.get(ce.escapedName))===ce)break;if(ce===Xt)return 67108863;if(ce===l||Z!=null&&Z.has(ce))break;ce.flags&2097152&&(Z?Z.add(ce):Z=new Set([l,ce])),U|=ce.flags,l=ce}return U}function Ff(l,m,D,C,A,w){if(!l||Ru(l))return!1;const I=Du(l);if(D2(l)){const Z=qr(I);return Z.typeOnlyDeclaration=l,!0}if(A){const Z=qr(I);return Z.typeOnlyDeclaration=A,I.escapedName!==w&&(Z.typeOnlyExportStarName=w),!0}const U=qr(I);return Cb(U,m,C)||Cb(U,D,C)}function Cb(l,m,D){var C;if(m&&(l.typeOnlyDeclaration===void 0||D&&l.typeOnlyDeclaration===!1)){const A=((C=m.exports)==null?void 0:C.get("export="))??m,w=A.declarations&&Le(A.declarations,D2);l.typeOnlyDeclaration=w??qr(A).typeOnlyDeclaration??!1}return!!l.typeOnlyDeclaration}function v4(l,m){if(!(l.flags&2097152))return;const D=qr(l);if(m===void 0)return D.typeOnlyDeclaration||void 0;if(D.typeOnlyDeclaration){const C=D.typeOnlyDeclaration.kind===278?Fc(v3(D.typeOnlyDeclaration.symbol.parent).get(D.typeOnlyExportStarName||l.escapedName)):md(D.typeOnlyDeclaration.symbol);return j1(C)&m?D.typeOnlyDeclaration:void 0}}function mC(l){if(!Ut)return;const m=Du(l),D=md(m);D&&(D===Xt||j1(m,!0)&111551&&!jW(D))&&T5(m)}function T5(l){H.assert(Ut);const m=qr(l);if(!m.referenced){m.referenced=!0;const D=op(l);if(!D)return H.fail();U8(D)&&j1(Fc(l))&111551&&jc(D.moduleReference)}}function u1(l){const m=qr(l);m.constEnumReferenced||(m.constEnumReferenced=!0)}function aF(l,m){return l.kind===80&&EP(l)&&(l=l.parent),l.kind===80||l.parent.kind===166?j0(l,1920,!1,m):(H.assert(l.parent.kind===271),j0(l,901119,!1,m))}function lp(l,m){return l.parent?lp(l.parent,m)+"."+Sr(l):Sr(l,m,void 0,36)}function a6(l){for(;vf(l.parent);)l=l.parent;return l}function Hw(l){let m=hm(l),D=rc(m,m.escapedText,111551,void 0,m,!0);if(D){for(;vf(m.parent);){const C=Wn(D);if(D=Zo(C,m.parent.right.escapedText),!D)return;m=m.parent}return D}}function j0(l,m,D,C,A){if(Xl(l))return;const w=1920|(Xn(l)?m&111551:0);let I;if(l.kind===80){const U=m===w||cl(l)?F.Cannot_find_namespace_0:Tht(hm(l)),Z=Xn(l)&&!cl(l)?Kw(l,m):void 0;if(I=Ws(rc(A||l,l.escapedText,m,D||Z?void 0:U,l,!0,!1)),!I)return Ws(Z)}else if(l.kind===166||l.kind===211){const U=l.kind===166?l.left:l.expression,Z=l.kind===166?l.right:l.name;let ce=j0(U,w,D,!1,A);if(!ce||Xl(Z))return;if(ce===Xt)return ce;if(ce.valueDeclaration&&Xn(ce.valueDeclaration)&&g1(ae)!==100&&ra(ce.valueDeclaration)&&ce.valueDeclaration.initializer&&dmt(ce.valueDeclaration.initializer)){const Fe=ce.valueDeclaration.initializer.arguments[0],Te=Wh(Fe,Fe);if(Te){const $e=_m(Te);$e&&(ce=$e)}}if(I=Ws(kf($f(ce),Z.escapedText,m)),!I&&ce.flags&2097152&&(I=Ws(kf($f(md(ce)),Z.escapedText,m))),!I){if(!D){const Fe=lp(ce),Te=k0(Z),$e=zEe(Z,ce);if($e){gt(Z,F._0_has_no_exported_member_named_1_Did_you_mean_2,Fe,Te,Sr($e));return}const ut=vf(l)&&a6(l);if(Ve&&m&788968&&ut&&!AB(ut.parent)&&Hw(ut)){gt(ut,F._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0,zf(ut));return}if(m&1920&&vf(l.parent)){const gi=Ws(kf($f(ce),Z.escapedText,788968));if(gi){gt(l.parent.right,F.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,Sr(gi),Qr(l.parent.right.escapedText));return}}gt(Z,F.Namespace_0_has_no_exported_member_1,Fe,Te)}return}}else H.assertNever(l,"Unknown entity name kind.");return H.assert((Gl(I)&1)===0,"Should never get an instantiated symbol here."),!cl(l)&&sm(l)&&(I.flags&2097152||l.parent.kind===277)&&Ff(W0e(l),I,void 0,!0),I.flags&m||C?I:md(I)}function Kw(l,m){if(Mge(l.parent)){const D=oF(l.parent);if(D)return rc(D,l.escapedText,m,void 0,l,!0)}}function oF(l){if(Tn(l,A=>z8(A)||A.flags&16777216?$4(A):"quit"))return;const D=h7(l);if(D&&Od(D)&&Fj(D.expression)){const A=Du(D.expression.left);if(A)return pC(A)}if(D&&w0(D)&&Fj(D.parent)&&Od(D.parent.parent)){const A=Du(D.parent.left);if(A)return pC(A)}if(D&&(Ip(D)||Uc(D))&&eu(D.parent.parent)&&ec(D.parent.parent)===6){const A=Du(D.parent.parent.left);if(A)return pC(A)}const C=ok(l);if(C&&Co(C)){const A=Du(C);return A&&A.valueDeclaration}}function pC(l){const m=l.parent.valueDeclaration;return m?(tP(m)?l7(m):Qy(m)?vj(m):void 0)||m:void 0}function L9(l){const m=l.valueDeclaration;if(!m||!Xn(m)||l.flags&524288||kv(m,!1))return;const D=ra(m)?vj(m):l7(m);if(D){const C=Dm(D);if(C)return lze(C,l)}}function Wh(l,m,D){const A=g1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations;return x3(l,m,D?void 0:A)}function x3(l,m,D,C=!1){return i0(m)?mD(l,m.text,D,m,C):void 0}function mD(l,m,D,C,A=!1){var w,I,U,Z,ce,Fe,Te,$e,ut,zt;if(Ma(m,"@types/")){const _n=F.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1,hu=kN(m,"@types/");gt(C,_n,hu,m)}const gi=Age(m,!0);if(gi)return gi;const Wi=zn(l),dn=i0(l)?l:((w=Tn(l,dm))==null?void 0:w.arguments[0])||((I=Tn(l,Sd))==null?void 0:I.moduleSpecifier)||((U=Tn(l,yv))==null?void 0:U.moduleReference.expression)||((Z=Tn(l,$c))==null?void 0:Z.moduleSpecifier)||((ce=xc(l)?l:l.parent&&xc(l.parent)&&l.parent.name===l?l.parent:void 0)==null?void 0:ce.name)||((Fe=zx(l)?l:void 0)==null?void 0:Fe.argument.literal),nu=dn&&i0(dn)?xg(Wi,dn):Wi.impliedNodeFormat,En=g1(ae),Ri=(Te=t.getResolvedModule(Wi,m,nu))==null?void 0:Te.resolvedModule,Nn=Ri&&z1e(ae,Ri,Wi),vn=Ri&&(!Nn||Nn===F.Module_0_was_resolved_to_1_but_jsx_is_not_set)&&t.getSourceFile(Ri.resolvedFileName);if(vn){if(Nn&>(C,Nn,m,Ri.resolvedFileName),Ri.resolvedUsingTsExtension&&t1(m)){const _n=(($e=Tn(l,Sd))==null?void 0:$e.importClause)||Tn(l,dg(_1,$c));(_n&&!_n.isTypeOnly||Tn(l,dm))&>(C,F.A_declaration_file_cannot_be_imported_without_import_type_Did_you_mean_to_import_an_implementation_file_0_instead,An(H.checkDefined(Gq(m))))}else if(Ri.resolvedUsingTsExtension&&!$B(ae,Wi.fileName)){const _n=((ut=Tn(l,Sd))==null?void 0:ut.importClause)||Tn(l,dg(_1,$c));if(!(_n!=null&&_n.isTypeOnly||Tn(l,nD))){const hu=H.checkDefined(Gq(m));gt(C,F.An_import_path_can_only_end_with_a_0_extension_when_allowImportingTsExtensions_is_enabled,hu)}}if(vn.symbol){if(Ri.isExternalLibraryImport&&!AP(Ri.extension)&&bb(!1,C,Wi,nu,Ri,m),En===3||En===99){const _n=Wi.impliedNodeFormat===1&&!Tn(l,dm)||!!Tn(l,_1),hu=Tn(l,oo=>nD(oo)||$c(oo)||Sd(oo));if(_n&&vn.impliedNodeFormat===99&&!Tke(hu))if(Tn(l,_1))gt(C,F.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,m);else{let oo;const _o=i3(Wi.fileName);if(_o===".ts"||_o===".js"||_o===".tsx"||_o===".jsx"){const mo=Wi.packageJsonScope,Aa=_o===".ts"?".mts":_o===".js"?".mjs":void 0;mo&&!mo.contents.packageJsonContent.type?Aa?oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_change_its_file_extension_to_0_or_add_the_field_type_Colon_module_to_1,Aa,hr(mo.packageDirectory,"package.json")):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_add_the_field_type_Colon_module_to_0,hr(mo.packageDirectory,"package.json")):Aa?oo=ro(void 0,F.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,Aa):oo=ro(void 0,F.To_convert_this_file_to_an_ECMAScript_module_create_a_local_package_json_file_with_type_Colon_module)}Hs.add(Y3(zn(C),C,ro(oo,F.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,m)))}}return Ws(vn.symbol)}D&>(C,F.File_0_is_not_a_module,vn.fileName);return}if(p4){const _n=hoe(p4,hu=>hu.pattern,m);if(_n){const hu=x1&&x1.get(m);return Ws(hu||_n.symbol)}}if(Ri&&!AP(Ri.extension)&&Nn===void 0||Nn===F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type){if(A){const _n=F.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;gt(C,_n,m,Ri.resolvedFileName)}else bb(Ae&&!!D,C,Wi,nu,Ri,m);return}if(D){if(Ri){const _n=t.getProjectReferenceRedirect(Ri.resolvedFileName);if(_n){gt(C,F.Output_file_0_has_not_been_built_from_source_file_1,_n,Ri.resolvedFileName);return}}if(Nn)gt(C,Nn,m,Ri.resolvedFileName);else{const _n=om(m)&&!t7(m),hu=En===3||En===99;if(!z2(ae)&&Ml(m,".json")&&En!==1&&eZ(ae))gt(C,F.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension,m);else if(nu===99&&hu&&_n){const oo=qa(m,dr(Wi.path)),_o=(zt=y9.find(([mo,Aa])=>t.fileExists(oo+mo)))==null?void 0:zt[1];_o?gt(C,F.Relative_import_paths_need_explicit_file_extensions_in_ECMAScript_imports_when_moduleResolution_is_node16_or_nodenext_Did_you_mean_0,m+_o):gt(C,F.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 gt(C,D,m)}}return;function An(_n){const hu=uV(m,_n);if(Xq(ne)||nu===99){const oo=t1(m)&&$B(ae);return hu+(_n===".mts"||_n===".d.mts"?oo?".mts":".mjs":_n===".cts"||_n===".d.mts"?oo?".cts":".cjs":oo?".ts":".js")}return hu}}function bb(l,m,D,C,{packageId:A,resolvedFileName:w},I){let U;!Id(I)&&A&&(U=l0e(D,t,I,C,A.name)),D4(l,m,ro(U,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type,I,w))}function _m(l,m){if(l!=null&&l.exports){const D=Fc(l.exports.get("export="),m),C=N9(Ws(D),Ws(l));return Ws(C)||l}}function N9(l,m){if(!l||l===Xt||l===m||m.exports.size===1||l.flags&2097152)return l;const D=qr(l);if(D.cjsExportMerged)return D.cjsExportMerged;const C=l.flags&33554432?l:gb(l);return C.flags=C.flags|512,C.exports===void 0&&(C.exports=Ho()),m.exports.forEach((A,w)=>{w!=="export="&&C.exports.set(w,C.exports.has(w)?ap(C.exports.get(w),A):A)}),C===l&&(qr(C).resolvedExports=void 0,qr(C).resolvedMembers=void 0),qr(C).cjsExportMerged=C,D.cjsExportMerged=C}function o6(l,m,D,C){var A;const w=_m(l,D);if(!D&&w){if(!C&&!(w.flags&1539)&&!Bl(w,312)){const U=ne>=5?"allowSyntheticDefaultImports":"esModuleInterop";return gt(m,F.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export,U),w}const I=m.parent;if(Sd(I)&&Q8(I)||dm(I)){const U=dm(I)?I.arguments[0]:I.moduleSpecifier,Z=Wn(w),ce=lmt(Z,w,l,U);if(ce)return Zm(w,ce,I);const Fe=(A=l==null?void 0:l.declarations)==null?void 0:A.find(ca),Te=Fe&&lf(za(U),Fe.impliedNodeFormat);if(t_(ae)||Te){let $e=kte(Z,0);if((!$e||!$e.length)&&($e=kte(Z,1)),$e&&$e.length||Zo(Z,"default",!0)||Te){const ut=Z.flags&3670016?cmt(Z,w,l,U):cze(w,w.parent);return Zm(w,ut,I)}}}}return w}function Zm(l,m,D){const C=Ks(l.flags,l.escapedName);C.declarations=l.declarations?l.declarations.slice():[],C.parent=l.parent,C.links.target=l,C.links.originatingImport=D,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),l.constEnumOnlyModule&&(C.constEnumOnlyModule=!0),l.members&&(C.members=new Map(l.members)),l.exports&&(C.exports=new Map(l.exports));const A=Ag(m);return C.links.type=Ol(C,A.members,Dt,Dt,A.indexInfos),C}function yb(l){return l.exports.get("export=")!==void 0}function L5(l){return uPe(v3(l))}function dz(l){const m=L5(l),D=_m(l);if(D!==l){const C=Wn(D);gC(C)&&yn(m,u0(C))}return m}function P9(l,m){v3(l).forEach((A,w)=>{_C(w)||m(A,w)});const C=_m(l);if(C!==l){const A=Wn(C);gC(A)&&VXt(A,(w,I)=>{m(w,I)})}}function M9(l,m){const D=v3(m);if(D)return D.get(l)}function z9(l,m){const D=M9(l,m);if(D)return D;const C=_m(m);if(C===m)return;const A=Wn(C);return gC(A)?Zo(A,l):void 0}function gC(l){return!(l.flags&402784252||Ju(l)&1||w4(l)||xs(l))}function $f(l){return l.flags&6256?jNe(l,"resolvedExports"):l.flags&1536?v3(l):l.exports||se}function v3(l){const m=qr(l);if(!m.resolvedExports){const{exports:D,typeOnlyExportStarMap:C}=R9(l);m.resolvedExports=D,m.typeOnlyExportStarMap=C}return m.resolvedExports}function I9(l,m,D,C){m&&m.forEach((A,w)=>{if(w==="default")return;const I=l.get(w);if(!I)l.set(w,A),D&&C&&D.set(w,{specifierText:Wc(C.moduleSpecifier)});else if(D&&C&&I&&Fc(I)!==Fc(A)){const U=D.get(w);U.exportsWithDuplicate?U.exportsWithDuplicate.push(C):U.exportsWithDuplicate=[C]}})}function R9(l){const m=[];let D;const C=new Set;l=_m(l);const A=w(l)||se;return D&&C.forEach(I=>D.delete(I)),{exports:A,typeOnlyExportStarMap:D};function w(I,U,Z){if(!Z&&(I!=null&&I.exports)&&I.exports.forEach((Te,$e)=>C.add($e)),!(I&&I.exports&&Ca(m,I)))return;const ce=new Map(I.exports),Fe=I.exports.get("__export");if(Fe){const Te=Ho(),$e=new Map;if(Fe.declarations)for(const ut of Fe.declarations){const zt=Wh(ut,ut.moduleSpecifier),gi=w(zt,ut,Z||ut.isTypeOnly);I9(Te,gi,$e,ut)}$e.forEach(({exportsWithDuplicate:ut},zt)=>{if(!(zt==="export="||!(ut&&ut.length)||ce.has(zt)))for(const gi of ut)Hs.add(Tu(gi,F.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity,$e.get(zt).specifierText,Qr(zt)))}),I9(ce,Te)}return U!=null&&U.isTypeOnly&&(D??(D=new Map),ce.forEach((Te,$e)=>D.set($e,U))),ce}}function Ws(l){let m;return l&&l.mergeId&&(m=D9[l.mergeId])?m:l}function Du(l){return Ws(l.symbol&&Fge(l.symbol))}function Dm(l){return Yg(l)?Du(l):void 0}function cf(l){return Ws(l.parent&&Fge(l.parent))}function kb(l,m){const D=zn(m),C=Us(D),A=qr(l);let w;if(A.extendedContainersByFile&&(w=A.extendedContainersByFile.get(C)))return w;if(D&&D.imports){for(const U of D.imports){if(cl(U))continue;const Z=Wh(m,U,!0);!Z||!s6(Z,l)||(w=Di(w,Z))}if(S(w))return(A.extendedContainersByFile||(A.extendedContainersByFile=new Map)).set(C,w),w}if(A.extendedContainers)return A.extendedContainers;const I=t.getSourceFiles();for(const U of I){if(!Lc(U))continue;const Z=Du(U);s6(Z,l)&&(w=Di(w,Z))}return A.extendedContainers=w||Dt}function Ww(l,m,D){const C=cf(l);if(C&&!(l.flags&262144)){const I=qi(C.declarations,w),U=m&&kb(l,m),Z=EC(C,D);if(m&&C.flags&C3(D)&&DC(C,m,1920,!1))return Di(mi(mi([C],I),U),Z);const ce=!(C.flags&C3(D))&&C.flags&788968&&el(C).flags&524288&&D===111551?c6(m,Te=>f1(Te,$e=>{if($e.flags&C3(D)&&Wn($e)===el(C))return $e})):void 0;let Fe=ce?[ce,...I,C]:[...I,C];return Fe=Di(Fe,Z),Fe=yn(Fe,U),Fe}const A=qi(l.declarations,I=>{if(!P1(I)&&I.parent){if(Ao(I.parent))return Du(I.parent);if(aE(I.parent)&&I.parent.parent&&_m(Du(I.parent.parent))===l)return Du(I.parent.parent)}if(e1(I)&&eu(I.parent)&&I.parent.operatorToken.kind===64&&O0(I.parent.left)&&tc(I.parent.left.expression))return Q_(I.parent.left)||uk(I.parent.left.expression)?Du(zn(I)):(jc(I.parent.left.expression),sr(I.parent.left.expression).resolvedSymbol)});if(!S(A))return;return qi(A,I=>s6(I,l)?I:void 0);function w(I){return C&&Fb(I,C)}}function EC(l,m){const D=!!S(l.declarations)&&Pn(l.declarations);if(m&111551&&D&&D.parent&&ra(D.parent)&&(ys(D)&&D===D.parent.initializer||fm(D)&&D===D.parent.type))return Du(D.parent)}function Fb(l,m){const D=kr(l),C=D&&D.exports&&D.exports.get("export=");return C&&Ym(C,m)?D:void 0}function s6(l,m){if(l===cf(m))return m;const D=l.exports&&l.exports.get("export=");if(D&&Ym(D,m))return l;const C=$f(l),A=C.get(m.escapedName);return A&&Ym(A,m)?A:f1(C,w=>{if(Ym(w,m))return w})}function Ym(l,m){if(Ws(Fc(Ws(l)))===Ws(Fc(Ws(m))))return l}function cp(l){return Ws(l&&(l.flags&1048576)!==0&&l.exportSymbol||l)}function l6(l,m){return!!(l.flags&111551||l.flags&2097152&&j1(l,!m)&111551)}function qp(l){const m=l.members;for(const D of m)if(D.kind===176&&W4(D.body))return D}function dp(l){var m;const D=new b(Pi,l);return k++,D.id=k,(m=Gn)==null||m.recordType(D),D}function N5(l,m){const D=dp(l);return D.symbol=m,D}function Ab(l){return new b(Pi,l)}function zc(l,m,D=0,C){hz(m,C);const A=dp(l);return A.intrinsicName=m,A.debugIntrinsicName=C,A.objectFlags=D|524288|2097152|33554432|16777216,A}function hz(l,m){const D=`${l},${m??""}`;ii.has(D)&&H.fail(`Duplicate intrinsic type name ${l}${m?` (${m})`:""}; you may need to pass a name to createIntrinsicType.`),ii.add(D)}function C4(l,m){const D=N5(524288,m);return D.objectFlags=l,D.members=void 0,D.properties=void 0,D.callSignatures=void 0,D.constructSignatures=void 0,D.indexInfos=void 0,D}function Gw(){return tr(Ea(Kde.keys(),df))}function V1(l){return N5(262144,l)}function _C(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)!==95&&l.charCodeAt(2)!==64&&l.charCodeAt(2)!==35}function Sb(l){let m;return l.forEach((D,C)=>{sF(D,C)&&(m||(m=[])).push(D)}),m||Dt}function sF(l,m){return!_C(m)&&l6(l)}function Jw(l){const m=Sb(l),D=wge(l);return D?mi(m,[D]):m}function b4(l,m,D,C,A){const w=l;return w.members=m,w.properties=Dt,w.callSignatures=D,w.constructSignatures=C,w.indexInfos=A,m!==se&&(w.properties=Sb(m)),w}function Ol(l,m,D,C,A){return b4(C4(16,l),m,D,C,A)}function vE(l){if(l.constructSignatures.length===0)return l;if(l.objectTypeWithoutAbstractConstructSignatures)return l.objectTypeWithoutAbstractConstructSignatures;const m=ti(l.constructSignatures,C=>!(C.flags&4));if(l.constructSignatures===m)return l;const D=Ol(l.symbol,l.members,l.callSignatures,Ge(m)?m:Dt,l.indexInfos);return l.objectTypeWithoutAbstractConstructSignatures=D,D.objectTypeWithoutAbstractConstructSignatures=D,D}function c6(l,m){let D;for(let C=l;C;C=C.parent){if(qE(C)&&C.locals&&!gE(C)&&(D=m(C.locals,void 0,!0,C)))return D;switch(C.kind){case 312:if(!cm(C))break;case 267:const A=Du(C);if(D=m((A==null?void 0:A.exports)||se,void 0,!0,C))return D;break;case 263:case 231:case 264:let w;if((Du(C).members||se).forEach((I,U)=>{I.flags&788968&&(w||(w=Ho())).set(U,I)}),w&&(D=m(w,void 0,!1,C)))return D;break}}return m(Ie,void 0,!0)}function C3(l){return l===111551?111551:1920}function DC(l,m,D,C,A=new Map){if(!(l&&!d6(l)))return;const w=qr(l),I=w.accessibleChainCache||(w.accessibleChainCache=new Map),U=c6(m,(dn,nu,En,Ri)=>Ri),Z=`${C?0:1}|${U&&Us(U)}|${D}`;if(I.has(Z))return I.get(Z);const ce=Yo(l);let Fe=A.get(ce);Fe||A.set(ce,Fe=[]);const Te=c6(m,$e);return I.set(Z,Te),Te;function $e(dn,nu,En){if(!Ca(Fe,dn))return;const Ri=gi(dn,nu,En);return Fe.pop(),Ri}function ut(dn,nu){return!$w(dn,m,nu)||!!DC(dn.parent,m,C3(nu),C,A)}function zt(dn,nu,En){return(l===(nu||dn)||Ws(l)===Ws(nu||dn))&&!Ge(dn.declarations,Ao)&&(En||ut(Ws(dn),D))}function gi(dn,nu,En){return zt(dn.get(l.escapedName),void 0,nu)?[l]:f1(dn,Nn=>{if(Nn.flags&2097152&&Nn.escapedName!=="export="&&Nn.escapedName!=="default"&&!(qq(Nn)&&m&&Lc(zn(m)))&&(!C||Ge(Nn.declarations,yv))&&(!En||!Ge(Nn.declarations,sye))&&(nu||!Bl(Nn,281))){const vn=md(Nn),An=Wi(Nn,vn,nu);if(An)return An}if(Nn.escapedName===l.escapedName&&Nn.exportSymbol&&zt(Ws(Nn.exportSymbol),void 0,nu))return[l]})||(dn===Ie?Wi(Bt,Bt,nu):void 0)}function Wi(dn,nu,En){if(zt(dn,nu,En))return[dn];const Ri=$f(nu),Nn=Ri&&$e(Ri,!0);if(Nn&&ut(dn,C3(D)))return[dn].concat(Nn)}}function $w(l,m,D){let C=!1;return c6(m,A=>{let w=Ws(A.get(l.escapedName));if(!w)return!1;if(w===l)return!0;const I=w.flags&2097152&&!Bl(w,281);return w=I?md(w):w,(I?j1(w):w.flags)&D?(C=!0,!0):!1}),C}function d6(l){if(l.declarations&&l.declarations.length){for(const m of l.declarations)switch(m.kind){case 172:case 174:case 177:case 178:continue;default:return!1}return!0}return!1}function O(l,m){return $r(l,m,788968,!1,!0).accessibility===0}function be(l,m){return $r(l,m,111551,!1,!0).accessibility===0}function Ht(l,m,D){return $r(l,m,D,!1,!1).accessibility===0}function ji(l,m,D,C,A,w){if(!S(l))return;let I,U=!1;for(const Z of l){const ce=DC(Z,m,C,!1);if(ce){I=Z;const $e=Af(ce[0],A);if($e)return $e}if(w&&Ge(Z.declarations,Ao)){if(A){U=!0;continue}return{accessibility:0}}const Fe=Ww(Z,m,C),Te=ji(Fe,m,D,D===Z?C3(C):C,A,w);if(Te)return Te}if(U)return{accessibility:0};if(I)return{accessibility:1,errorSymbolName:Sr(D,m,C),errorModuleName:I!==D?Sr(I,m,1920):void 0}}function Fu(l,m,D,C){return $r(l,m,D,C,!0)}function $r(l,m,D,C,A){if(l&&m){const w=ji([l],m,l,D,C,A);if(w)return w;const I=L(l.declarations,kr);if(I){const U=kr(m);if(I!==U)return{accessibility:2,errorSymbolName:Sr(l,m,D),errorModuleName:Sr(I),errorNode:Xn(m)?m:void 0}}return{accessibility:1,errorSymbolName:Sr(l,m,D)}}return{accessibility:0}}function kr(l){const m=Tn(l,_a);return m&&Du(m)}function _a(l){return P1(l)||l.kind===312&&cm(l)}function Ao(l){return nq(l)||l.kind===312&&cm(l)}function Af(l,m){let D;if(!ye(ti(l.declarations,w=>w.kind!==80),C))return;return{accessibility:0,aliasesToMakeVisible:D};function C(w){var I,U;if(!pD(w)){const Z=A9(w);if(Z&&!Qu(Z,32)&&pD(Z.parent))return A(w,Z);if(ra(w)&&Jl(w.parent.parent)&&!Qu(w.parent.parent,32)&&pD(w.parent.parent.parent))return A(w,w.parent.parent);if(uq(w)&&!Qu(w,32)&&pD(w.parent))return A(w,w);if(Vs(w)){if(l.flags&2097152&&Xn(w)&&((I=w.parent)!=null&&I.parent)&&ra(w.parent.parent)&&((U=w.parent.parent.parent)!=null&&U.parent)&&Jl(w.parent.parent.parent.parent)&&!Qu(w.parent.parent.parent.parent,32)&&w.parent.parent.parent.parent.parent&&pD(w.parent.parent.parent.parent.parent))return A(w,w.parent.parent.parent.parent);if(l.flags&2){const ce=Tn(w,Jl);return Qu(ce,32)?!0:pD(ce.parent)?A(w,ce):!1}}return!1}return!0}function A(w,I){return m&&(sr(w).isVisible=!0,D=t0(D,I)),!0}}function Uf(l,m){let D;l.parent.kind===186||l.parent.kind===233&&!Z_(l.parent)||l.parent.kind===167?D=1160127:l.kind===166||l.kind===211||l.parent.kind===271?D=1920:D=788968;const C=hm(l),A=rc(m,C.escapedText,D,void 0,void 0,!1);return A&&A.flags&262144&&D&788968?{accessibility:0}:!A&&P2(C)&&Fu(Du(tf(C,!1,!1)),C,D,!1).accessibility===0?{accessibility:0}:A&&Af(A,!0)||{accessibility:1,errorSymbolName:Wc(C),errorNode:C}}function Sr(l,m,D,C=4,A){let w=70221824;C&2&&(w|=128),C&1&&(w|=512),C&8&&(w|=16384),C&32&&(w|=134217728),C&16&&(w|=1073741824);const I=C&4?Yt.symbolToNode:Yt.symbolToEntityName;return A?U(A).getText():JN(U);function U(Z){const ce=I(l,D,m,w),Fe=(m==null?void 0:m.kind)===312?g1e():eb(),Te=m&&zn(m);return Fe.writeNode(4,ce,Te,Z),Z}}function CE(l,m,D=0,C,A){return A?w(A).getText():JN(w);function w(I){let U;D&262144?U=C===1?185:184:U=C===1?180:179;const Z=Yt.signatureToSignatureDeclaration(l,U,m,xC(D)|70221824|512),ce=_H(),Fe=m&&zn(m);return ce.writeNode(4,Z,Fe,ile(I)),I}}function gn(l,m,D=1064960,C=Hj("")){const A=ae.noErrorTruncation||D&1,w=Yt.typeToTypeNode(l,m,xC(D)|70221824|(A?1:0));if(w===void 0)return H.fail("should always get typenode");const I=l!==Ei?eb():p1e(),U=m&&zn(m);I.writeNode(4,w,U,C);const Z=C.getText(),ce=A?vZ*2:cV*2;return ce&&Z&&Z.length>=ce?Z.substr(0,ce-3)+"...":Z}function h6(l,m){let D=lF(l.symbol)?gn(l,l.symbol.valueDeclaration):gn(l),C=lF(m.symbol)?gn(m,m.symbol.valueDeclaration):gn(m);return D===C&&(D=P5(l),C=P5(m)),[D,C]}function P5(l){return gn(l,void 0,64)}function lF(l){return l&&!!l.valueDeclaration&&Wt(l.valueDeclaration)&&!S4(l.valueDeclaration)}function xC(l=0){return l&848330091}function O9(l){return!!l.symbol&&!!(l.symbol.flags&32)&&(l===F4(l.symbol)||!!(l.flags&524288)&&!!(Ju(l)&16777216))}function cF(){return{typeToTypeNode:(St,ze,Qn,Bu)=>m(ze,Qn,Bu,Dr=>C(St,Dr)),indexInfoToIndexSignatureDeclaration:(St,ze,Qn,Bu)=>m(ze,Qn,Bu,Dr=>Fe(St,Dr,void 0)),signatureToSignatureDeclaration:(St,ze,Qn,Bu,Dr)=>m(Qn,Bu,Dr,pr=>Te(St,ze,pr)),symbolToEntityName:(St,ze,Qn,Bu,Dr)=>m(Qn,Bu,Dr,pr=>Aa(St,pr,ze,!1)),symbolToExpression:(St,ze,Qn,Bu,Dr)=>m(Qn,Bu,Dr,pr=>oh(St,pr,ze)),symbolToTypeParameterDeclarations:(St,ze,Qn,Bu)=>m(ze,Qn,Bu,Dr=>Nn(St,Dr)),symbolToParameterDeclaration:(St,ze,Qn,Bu)=>m(ze,Qn,Bu,Dr=>Wi(St,Dr)),typeParameterToDeclaration:(St,ze,Qn,Bu)=>m(ze,Qn,Bu,Dr=>zt(St,Dr)),symbolTableToDeclarationStatements:(St,ze,Qn,Bu,Dr)=>m(ze,Qn,Bu,pr=>bm(St,pr,Dr)),symbolToNode:(St,ze,Qn,Bu,Dr)=>m(Qn,Bu,Dr,pr=>l(St,pr,ze))};function l(St,ze,Qn){if(ze.flags&1073741824){if(St.valueDeclaration){const Dr=Ya(St.valueDeclaration);if(Dr&&Ms(Dr))return Dr}const Bu=qr(St).nameType;if(Bu&&Bu.flags&9216)return ze.enclosingDeclaration=Bu.symbol.valueDeclaration,q.createComputedPropertyName(oh(Bu.symbol,ze,Qn))}return oh(St,ze,Qn)}function m(St,ze,Qn,Bu){H.assert(St===void 0||(St.flags&16)===0);const Dr=Qn!=null&&Qn.trackSymbol?Qn.moduleResolverHost:ze&134217728?wPt(t):void 0,pr={enclosingDeclaration:St,flags:ze||0,tracker:void 0,encounteredError:!1,reportedDiagnostic:!1,visitedTypes:void 0,symbolDepth:void 0,inferTypeParameters:void 0,approximateLength:0,trackedSymbols:void 0};pr.tracker=new Wde(pr,Qn,Dr);const zr=Bu(pr);return pr.truncating&&pr.flags&1&&pr.tracker.reportTruncationError(),pr.encounteredError?void 0:zr}function D(St){return St.truncating?St.truncating:St.truncating=St.approximateLength>(St.flags&1?vZ:cV)}function C(St,ze){const Qn=ze.flags,Bu=A(St,ze);return ze.flags=Qn,Bu}function A(St,ze){var Qn,Bu;d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();const Dr=ze.flags&8388608;if(ze.flags&=-8388609,!St){if(!(ze.flags&262144)){ze.encounteredError=!0;return}return ze.approximateLength+=3,q.createKeywordTypeNode(133)}if(ze.flags&536870912||(St=Sg(St)),St.flags&1)return St.aliasSymbol?q.createTypeReferenceNode(hu(St.aliasSymbol),Z(St.aliasTypeArguments,ze)):St===Ei?jP(q.createKeywordTypeNode(133),3,"unresolved"):(ze.approximateLength+=3,q.createKeywordTypeNode(St===Qi?141:133));if(St.flags&2)return q.createKeywordTypeNode(159);if(St.flags&4)return ze.approximateLength+=6,q.createKeywordTypeNode(154);if(St.flags&8)return ze.approximateLength+=6,q.createKeywordTypeNode(150);if(St.flags&64)return ze.approximateLength+=6,q.createKeywordTypeNode(163);if(St.flags&16&&!St.aliasSymbol)return ze.approximateLength+=7,q.createKeywordTypeNode(136);if(St.flags&1056){if(St.symbol.flags&8){const pn=cf(St.symbol),lr=oo(pn,ze,788968);if(el(pn)===St)return lr;const Zr=cc(St.symbol);return Nm(Zr,0)?Gr(lr,q.createTypeReferenceNode(Zr,void 0)):nD(lr)?(lr.isTypeOf=!0,q.createIndexedAccessTypeNode(lr,q.createLiteralTypeNode(q.createStringLiteral(Zr)))):tp(lr)?q.createIndexedAccessTypeNode(q.createTypeQueryNode(lr.typeName),q.createLiteralTypeNode(q.createStringLiteral(Zr))):H.fail("Unhandled type node kind returned from `symbolToTypeNode`.")}return oo(St.symbol,ze,788968)}if(St.flags&128)return ze.approximateLength+=St.value.length+2,q.createLiteralTypeNode(Yn(q.createStringLiteral(St.value,!!(ze.flags&268435456)),16777216));if(St.flags&256){const pn=St.value;return ze.approximateLength+=(""+pn).length,q.createLiteralTypeNode(pn<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-pn)):q.createNumericLiteral(pn))}if(St.flags&2048)return ze.approximateLength+=R2(St.value).length+1,q.createLiteralTypeNode(q.createBigIntLiteral(St.value));if(St.flags&512)return ze.approximateLength+=St.intrinsicName.length,q.createLiteralTypeNode(St.intrinsicName==="true"?q.createTrue():q.createFalse());if(St.flags&8192){if(!(ze.flags&1048576)){if(be(St.symbol,ze.enclosingDeclaration))return ze.approximateLength+=6,oo(St.symbol,ze,111551);ze.tracker.reportInaccessibleUniqueSymbolError&&ze.tracker.reportInaccessibleUniqueSymbolError()}return ze.approximateLength+=13,q.createTypeOperatorNode(158,q.createKeywordTypeNode(155))}if(St.flags&16384)return ze.approximateLength+=4,q.createKeywordTypeNode(116);if(St.flags&32768)return ze.approximateLength+=9,q.createKeywordTypeNode(157);if(St.flags&65536)return ze.approximateLength+=4,q.createLiteralTypeNode(q.createNull());if(St.flags&131072)return ze.approximateLength+=5,q.createKeywordTypeNode(146);if(St.flags&4096)return ze.approximateLength+=6,q.createKeywordTypeNode(155);if(St.flags&67108864)return ze.approximateLength+=6,q.createKeywordTypeNode(151);if(PP(St))return ze.flags&4194304&&(!ze.encounteredError&&!(ze.flags&32768)&&(ze.encounteredError=!0),(Bu=(Qn=ze.tracker).reportInaccessibleThisError)==null||Bu.call(Qn)),ze.approximateLength+=4,q.createThisTypeNode();if(!Dr&&St.aliasSymbol&&(ze.flags&16384||O(St.aliasSymbol,ze.enclosingDeclaration))){const pn=Z(St.aliasTypeArguments,ze);return _C(St.aliasSymbol.escapedName)&&!(St.aliasSymbol.flags&32)?q.createTypeReferenceNode(q.createIdentifier(""),pn):S(pn)===1&&St.aliasSymbol===Fo.symbol?q.createArrayTypeNode(pn[0]):oo(St.aliasSymbol,ze,788968,pn)}const pr=Ju(St);if(pr&4)return H.assert(!!(St.flags&524288)),St.node?bi(St,mn):mn(St);if(St.flags&262144||pr&3){if(St.flags&262144&&kt(ze.inferTypeParameters,St)){ze.approximateLength+=cc(St.symbol).length+6;let lr;const Zr=ah(St);if(Zr){const La=Hdt(St,!0);La&&CD(Zr,La)||(ze.approximateLength+=9,lr=Zr&&C(Zr,ze))}return q.createInferTypeNode(ut(St,ze,lr))}if(ze.flags&4&&St.flags&262144&&!O(St.symbol,ze.enclosingDeclaration)){const lr=mo(St,ze);return ze.approximateLength+=fu(lr).length,q.createTypeReferenceNode(q.createIdentifier(fu(lr)),void 0)}if(St.symbol)return oo(St.symbol,ze,788968);const pn=(St===$||St===tt)&&Y&&Y.symbol?(St===tt?"sub-":"super-")+cc(Y.symbol):"?";return q.createTypeReferenceNode(q.createIdentifier(pn),void 0)}if(St.flags&1048576&&St.origin&&(St=St.origin),St.flags&3145728){const pn=St.flags&1048576?M5(St.types):St.types;if(S(pn)===1)return C(pn[0],ze);const lr=Z(pn,ze,!0);if(lr&&lr.length>0)return St.flags&1048576?q.createUnionTypeNode(lr):q.createIntersectionTypeNode(lr);!ze.encounteredError&&!(ze.flags&262144)&&(ze.encounteredError=!0);return}if(pr&48)return H.assert(!!(St.flags&524288)),Gi(St);if(St.flags&4194304){const pn=St.type;ze.approximateLength+=6;const lr=C(pn,ze);return q.createTypeOperatorNode(143,lr)}if(St.flags&134217728){const pn=St.texts,lr=St.types,Zr=q.createTemplateHead(pn[0]),La=q.createNodeArray(Vt(lr,(ds,pd)=>q.createTemplateLiteralTypeSpan(C(ds,ze),(pdzr(pn));if(St.flags&33554432)return C(St.baseType,ze);return H.fail("Should be unreachable.");function zr(pn){const lr=C(pn.checkType,ze);if(ze.approximateLength+=15,ze.flags&4&&pn.root.isDistributive&&!(pn.checkType.flags&262144)){const yl=V1(Ks(262144,"T")),pl=mo(yl,ze),K1=q.createTypeReferenceNode(pl);ze.approximateLength+=37;const kl=Y9(pn.root.checkType,yl,pn.mapper),Ft=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const $t=C(Da(pn.root.extendsType,kl),ze);ze.inferTypeParameters=Ft;const Mi=ju(Da(Br(pn.root.node.trueType),kl)),Bn=ju(Da(Br(pn.root.node.falseType),kl));return q.createConditionalTypeNode(lr,q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(K1.typeName))),q.createConditionalTypeNode(q.createTypeReferenceNode(q.cloneNode(pl)),C(pn.checkType,ze),q.createConditionalTypeNode(K1,$t,Mi,Bn),q.createKeywordTypeNode(146)),q.createKeywordTypeNode(146))}const Zr=ze.inferTypeParameters;ze.inferTypeParameters=pn.root.inferTypeParameters;const La=C(pn.extendsType,ze);ze.inferTypeParameters=Zr;const ds=ju(BC(pn)),pd=ju(wC(pn));return q.createConditionalTypeNode(lr,La,ds,pd)}function ju(pn){var lr,Zr,La;return pn.flags&1048576?(lr=ze.visitedTypes)!=null&&lr.has(Sh(pn))?(ze.flags&131072||(ze.encounteredError=!0,(La=(Zr=ze.tracker)==null?void 0:Zr.reportCyclicStructureError)==null||La.call(Zr)),w(ze)):bi(pn,ds=>C(ds,ze)):C(pn,ze)}function vu(pn){return!!Uge(pn)}function Lt(pn){return!!pn.target&&vu(pn.target)&&!vu(pn)}function si(pn){var lr;H.assert(!!(pn.flags&524288));const Zr=pn.declaration.readonlyToken?q.createToken(pn.declaration.readonlyToken.kind):void 0,La=pn.declaration.questionToken?q.createToken(pn.declaration.questionToken.kind):void 0;let ds,pd;const yl=!iW(pn)&&!(K9(pn).flags&2)&&ze.flags&4&&!(hp(pn).flags&262144&&((lr=ah(hp(pn)))==null?void 0:lr.flags)&4194304);if(iW(pn)){if(Lt(pn)&&ze.flags&4){const Mi=V1(Ks(262144,"T")),Bn=mo(Mi,ze);pd=q.createTypeReferenceNode(Bn)}ds=q.createTypeOperatorNode(143,pd||C(K9(pn),ze))}else if(yl){const Mi=V1(Ks(262144,"T")),Bn=mo(Mi,ze);pd=q.createTypeReferenceNode(Bn),ds=pd}else ds=C(hp(pn),ze);const pl=ut(Fg(pn),ze,ds),K1=pn.declaration.nameType?C(I5(pn),ze):void 0,kl=C(B6(DD(pn),!!(b_(pn)&4)),ze),Ft=q.createMappedTypeNode(Zr,pl,K1,La,kl,void 0);ze.approximateLength+=10;const $t=Yn(Ft,1);if(Lt(pn)&&ze.flags&4){const Mi=Da(ah(Br(pn.declaration.typeParameter.constraint.type))||on,pn.mapper);return q.createConditionalTypeNode(C(K9(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),Mi.flags&2?void 0:C(Mi,ze))),$t,q.createKeywordTypeNode(146))}else if(yl)return q.createConditionalTypeNode(C(hp(pn),ze),q.createInferTypeNode(q.createTypeParameterDeclaration(void 0,q.cloneNode(pd.typeName),q.createTypeOperatorNode(143,C(K9(pn),ze)))),$t,q.createKeywordTypeNode(146));return $t}function Gi(pn){var lr,Zr;const La=pn.id,ds=pn.symbol;if(ds){const yl=O9(pn)?788968:111551;if(SE(ds.valueDeclaration))return oo(ds,ze,yl);if(ds.flags&32&&!fF(ds)&&!(ds.valueDeclaration&&gr(ds.valueDeclaration)&&ze.flags&2048&&(!Jc(ds.valueDeclaration)||Fu(ds,ze.enclosingDeclaration,yl,!1).accessibility!==0))||ds.flags&896||pd())return oo(ds,ze,yl);if((lr=ze.visitedTypes)!=null&&lr.has(La)){const pl=Uw(pn);return pl?oo(pl,ze,788968):w(ze)}else return bi(pn,Ji)}else{if(!!(Ju(pn)&8388608)){const pl=pn;if(bB(pl.node)){const K1=tl(ze,pl.node);if(K1)return K1}return(Zr=ze.visitedTypes)!=null&&Zr.has(La)?w(ze):bi(pn,Ji)}return Ji(pn)}function pd(){var yl;const pl=!!(ds.flags&8192)&&Ge(ds.declarations,kl=>No(kl)),K1=!!(ds.flags&16)&&(ds.parent||L(ds.declarations,kl=>kl.parent.kind===312||kl.parent.kind===268));if(pl||K1)return(!!(ze.flags&4096)||((yl=ze.visitedTypes)==null?void 0:yl.has(La)))&&(!(ze.flags&8)||be(ds,ze.enclosingDeclaration))}}function bi(pn,lr){var Zr,La,ds;const pd=pn.id,yl=Ju(pn)&16&&pn.symbol&&pn.symbol.flags&32,pl=Ju(pn)&4&&pn.node?"N"+Us(pn.node):pn.flags&16777216?"N"+Us(pn.root.node):pn.symbol?(yl?"+":"")+Yo(pn.symbol):void 0;ze.visitedTypes||(ze.visitedTypes=new Set),pl&&!ze.symbolDepth&&(ze.symbolDepth=new Map);const K1=ze.enclosingDeclaration&&sr(ze.enclosingDeclaration),kl=`${Sh(pn)}|${ze.flags}`;K1&&(K1.serializedTypes||(K1.serializedTypes=new Map));const Ft=(Zr=K1==null?void 0:K1.serializedTypes)==null?void 0:Zr.get(kl);if(Ft)return(La=Ft.trackedSymbols)==null||La.forEach(([Tr,Xa,jo])=>ze.tracker.trackSymbol(Tr,Xa,jo)),Ft.truncating&&(ze.truncating=!0),ze.approximateLength+=Ft.addedLength,lu(Ft.node);let $t;if(pl){if($t=ze.symbolDepth.get(pl)||0,$t>10)return w(ze);ze.symbolDepth.set(pl,$t+1)}ze.visitedTypes.add(pd);const Mi=ze.trackedSymbols;ze.trackedSymbols=void 0;const Bn=ze.approximateLength,xu=lr(pn),un=ze.approximateLength-Bn;return!ze.reportedDiagnostic&&!ze.encounteredError&&((ds=K1==null?void 0:K1.serializedTypes)==null||ds.set(kl,{node:xu,truncating:ze.truncating,addedLength:un,trackedSymbols:ze.trackedSymbols})),ze.visitedTypes.delete(pd),pl&&ze.symbolDepth.set(pl,$t),ze.trackedSymbols=Mi,xu;function lu(Tr){return!cl(Tr)&&Za(Tr)===Tr?Tr:Pt(q.cloneNode(rn(Tr,lu,Dg,xr)),Tr)}function xr(Tr,Xa,jo,Jo,br){return Tr&&Tr.length===0?Pt(q.createNodeArray(void 0,Tr.hasTrailingComma),Tr):kn(Tr,Xa,jo,Jo,br)}}function Ji(pn){if(e4(pn)||pn.containsError)return si(pn);const lr=Ag(pn);if(!lr.properties.length&&!lr.indexInfos.length){if(!lr.callSignatures.length&&!lr.constructSignatures.length)return ze.approximateLength+=2,Yn(q.createTypeLiteralNode(void 0),1);if(lr.callSignatures.length===1&&!lr.constructSignatures.length){const yl=lr.callSignatures[0];return Te(yl,184,ze)}if(lr.constructSignatures.length===1&&!lr.callSignatures.length){const yl=lr.constructSignatures[0];return Te(yl,185,ze)}}const Zr=ti(lr.constructSignatures,yl=>!!(yl.flags&4));if(Ge(Zr)){const yl=Vt(Zr,DF);return lr.callSignatures.length+(lr.constructSignatures.length-Zr.length)+lr.indexInfos.length+(ze.flags&2048?ui(lr.properties,K1=>!(K1.flags&4194304)):S(lr.properties))&&yl.push(vE(lr)),C(Ds(yl),ze)}const La=ze.flags;ze.flags|=4194304;const ds=Do(lr);ze.flags=La;const pd=q.createTypeLiteralNode(ds);return ze.approximateLength+=2,Yn(pd,ze.flags&1024?0:1),pd}function mn(pn){let lr=V0(pn);if(pn.target===Fo||pn.target===To){if(ze.flags&2){const ds=C(lr[0],ze);return q.createTypeReferenceNode(pn.target===Fo?"Array":"ReadonlyArray",[ds])}const Zr=C(lr[0],ze),La=q.createArrayTypeNode(Zr);return pn.target===Fo?La:q.createTypeOperatorNode(148,La)}else if(pn.target.objectFlags&8){if(lr=Pu(lr,(Zr,La)=>B6(Zr,!!(pn.target.elementFlags[La]&2))),lr.length>0){const Zr=O5(pn),La=Z(lr.slice(0,Zr),ze);if(La){const{labeledElementDeclarations:ds}=pn.target;for(let yl=0;yl0){const K1=(pn.target.typeParameters||Dt).length;pd=Z(lr.slice(La,K1),ze)}const yl=ze.flags;ze.flags|=16;const pl=oo(pn.symbol,ze,788968,pd);return ze.flags=yl,ds?Gr(ds,pl):pl}}}function Gr(pn,lr){if(nD(pn)){let Zr=pn.typeArguments,La=pn.qualifier;La&&(at(La)?Zr!==gk(La)&&(La=l5(q.cloneNode(La),Zr)):Zr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),Zr)))),Zr=lr.typeArguments;const ds=Au(lr);for(const pd of ds)La=La?q.createQualifiedName(La,pd):pd;return q.updateImportTypeNode(pn,pn.argument,pn.attributes,La,Zr,pn.isTypeOf)}else{let Zr=pn.typeArguments,La=pn.typeName;at(La)?Zr!==gk(La)&&(La=l5(q.cloneNode(La),Zr)):Zr!==gk(La.right)&&(La=q.updateQualifiedName(La,La.left,l5(q.cloneNode(La.right),Zr))),Zr=lr.typeArguments;const ds=Au(lr);for(const pd of ds)La=q.createQualifiedName(La,pd);return q.updateTypeReferenceNode(pn,La,Zr)}}function Au(pn){let lr=pn.typeName;const Zr=[];for(;!at(lr);)Zr.unshift(lr.right),lr=lr.left;return Zr.unshift(lr),Zr}function Do(pn){if(D(ze))return[q.createPropertySignature(void 0,"...",void 0,void 0)];const lr=[];for(const ds of pn.callSignatures)lr.push(Te(ds,179,ze));for(const ds of pn.constructSignatures)ds.flags&4||lr.push(Te(ds,180,ze));for(const ds of pn.indexInfos)lr.push(Fe(ds,ze,pn.objectFlags&1024?w(ze):void 0));const Zr=pn.properties;if(!Zr)return lr;let La=0;for(const ds of Zr){if(La++,ze.flags&2048){if(ds.flags&4194304)continue;h4(ds)&6&&ze.tracker.reportPrivateInBaseOfClassExpression&&ze.tracker.reportPrivateInBaseOfClassExpression(Qr(ds.escapedName))}if(D(ze)&&La+2!(mn.flags&32768)),0);for(const mn of Ji){const Gr=Te(mn,173,ze,{name:ju,questionToken:vu});Qn.push(bi(Gr))}if(Ji.length||!vu)return}let Lt;I(St,ze)?Lt=w(ze):(Dr&&(ze.reverseMappedStack||(ze.reverseMappedStack=[]),ze.reverseMappedStack.push(St)),Lt=pr?od(ze,pr,St,zr):q.createKeywordTypeNode(133),Dr&&ze.reverseMappedStack.pop());const si=Ng(St)?[q.createToken(148)]:void 0;si&&(ze.approximateLength+=9);const Gi=q.createPropertySignature(si,ju,vu,Lt);Qn.push(bi(Gi));function bi(Ji){var mn;const Gr=(mn=St.declarations)==null?void 0:mn.find(Au=>Au.kind===355);if(Gr){const Au=WO(Gr.comment);Au&&Pv(Ji,[{kind:3,text:`* + * `+Au.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else At.valueDeclaration&&Bc(Ji,At.valueDeclaration);return Ji}}function Z(At,ze,Yn){if(Oe(At)){if(D(ze))if(Yn){if(At.length>2)return[C(At[0],ze),q.createTypeReferenceNode(`... ${At.length-2} more ...`,void 0),C(At[At.length-1],ze)]}else return[q.createTypeReferenceNode("...",void 0)];const Er=!(ze.flags&64)?wm():void 0,fr=[];let Mr=0;for(const Ou of At){if(Mr++,D(ze)&&Mr+2{if(!Eke(xu,([Lt],[li])=>ce(Lt,li)))for(const[Lt,li]of xu)fr[li]=C(Lt,ze)}),ze.flags=Ou}return fr}}function ce(At,ze){return At===ze||!!At.symbol&&At.symbol===ze.symbol||!!At.aliasSymbol&&At.aliasSymbol===ze.aliasSymbol}function Fe(At,ze,Yn){const Fu=Rbe(At)||"x",Er=C(At.keyType,ze),fr=q.createParameterDeclaration(void 0,void 0,Fu,void 0,Er,void 0);return Yn||(Yn=C(At.type||me,ze)),!At.type&&!(ze.flags&2097152)&&(ze.encounteredError=!0),ze.approximateLength+=Fu.length+4,q.createIndexSignature(At.isReadonly?[q.createToken(148)]:void 0,[fr],Yn)}function Te(At,ze,Yn,Fu){var Er;const fr=Yn.flags&256;fr&&(Yn.flags&=-257),Yn.approximateLength+=3;let Mr,Ou;Yn.flags&32&&At.target&&At.mapper&&At.target.typeParameters?Ou=At.target.typeParameters.map(ku=>C(_a(ku,At.mapper),Yn)):Mr=At.typeParameters&&At.typeParameters.map(ku=>zt(ku,Yn));const xu=fdt(At,!0)[0];let Lt;if(Yn.enclosingDeclaration&&At.declaration&&At.declaration!==Yn.enclosingDeclaration&&!Qn(At.declaration)&&Oe(xu)){const ku=ar(Yn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Yn.enclosingDeclaration:void 0;H.assertOptionalNode(ku,po);const _o=(ku==null?void 0:ku.locals)??Vo();let pn;for(const or of xu)_o.has(or.escapedName)||(pn=xi(pn,or.escapedName),_o.set(or.escapedName,or));if(pn){let or=function(){L(pn,qr=>_o.delete(qr))};if(ku)Lt=or;else{const qr=a_.createBlock(_t);ar(qr).fakeScopeForSignatureDeclaration=!0,qr.locals=_o;const La=Yn.enclosingDeclaration;ks(qr,La),Yn.enclosingDeclaration=qr,Lt=()=>{Yn.enclosingDeclaration=La,or()}}}}const li=(Oe(xu,ku=>ku!==xu[xu.length-1]&&!!(Gl(ku)&32768))?At.parameters:xu).map(ku=>Wi(ku,Yn,ze===176,Fu==null?void 0:Fu.privateSymbolVisitor,Fu==null?void 0:Fu.bundledImports)),Gi=Yn.flags&33554432?void 0:$e(At,Yn);Gi&&li.unshift(Gi);let yi;const Ji=y4(At);if(Ji){const ku=Ji.kind===2||Ji.kind===3?q.createToken(131):void 0,_o=Ji.kind===1||Ji.kind===3?Zn(q.createIdentifier(Ji.parameterName),16777216):q.createThisTypeNode(),pn=Ji.type&&C(Ji.type,Yn);yi=q.createTypePredicateNode(ku,_o,pn)}else{const ku=Zs(At);ku&&!(fr&&nt(ku))?yi=Td(Yn,ku,At,Fu==null?void 0:Fu.privateSymbolVisitor,Fu==null?void 0:Fu.bundledImports):fr||(yi=q.createKeywordTypeNode(133))}let mn=Fu==null?void 0:Fu.modifiers;if(ze===185&&At.flags&4){const ku=tE(mn);mn=q.createModifiersFromModifierFlags(ku|64)}const Kr=ze===179?q.createCallSignature(Mr,li,yi):ze===180?q.createConstructSignature(Mr,li,yi):ze===173?q.createMethodSignature(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),Fu==null?void 0:Fu.questionToken,Mr,li,yi):ze===174?q.createMethodDeclaration(mn,void 0,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),void 0,Mr,li,yi,void 0):ze===176?q.createConstructorDeclaration(mn,li,void 0):ze===177?q.createGetAccessorDeclaration(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),li,yi,void 0):ze===178?q.createSetAccessorDeclaration(mn,(Fu==null?void 0:Fu.name)??q.createIdentifier(""),li,void 0):ze===181?q.createIndexSignature(mn,li,yi):ze===324?q.createJSDocFunctionType(li,yi):ze===184?q.createFunctionTypeNode(Mr,li,yi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===185?q.createConstructorTypeNode(mn,Mr,li,yi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===262?q.createFunctionDeclaration(mn,void 0,Fu!=null&&Fu.name?Po(Fu.name,at):q.createIdentifier(""),Mr,li,yi,void 0):ze===218?q.createFunctionExpression(mn,void 0,Fu!=null&&Fu.name?Po(Fu.name,at):q.createIdentifier(""),Mr,li,yi,q.createBlock([])):ze===219?q.createArrowFunction(mn,Mr,li,yi,void 0,q.createBlock([])):H.assertNever(ze);if(Ou&&(Kr.typeArguments=q.createNodeArray(Ou)),((Er=At.declaration)==null?void 0:Er.kind)===330&&At.declaration.parent.kind===346){const ku=Hc(At.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(_o=>_o.replace(/^\s+/," ")).join(` -`);OP(Kr,3,ku,!0)}return Lt==null||Lt(),Kr}function $e(At,ze){if(At.thisParameter)return Wi(At.thisParameter,ze);if(At.declaration&&Qn(At.declaration)){const Yn=LU(At.declaration);if(Yn&&Yn.typeExpression)return q.createParameterDeclaration(void 0,void 0,"this",void 0,C(Ar(Yn.typeExpression),ze))}}function ut(At,ze,Yn){const Fu=ze.flags;ze.flags&=-513;const Er=q.createModifiersFromModifierFlags(HPe(At)),fr=fo(At,ze),Mr=_F(At),Ou=Mr&&C(Mr,ze);return ze.flags=Fu,q.createTypeParameterDeclaration(Er,fr,Yn,Ou)}function zt(At,ze,Yn=rh(At)){const Fu=Yn&&C(Yn,ze);return ut(At,ze,Fu)}function gi(At){const ze=Sl(At,169);if(ze)return ze;if(!qE(At))return Sl(At,348)}function Wi(At,ze,Yn,Fu,Er){const fr=gi(At);let Mr=Wn(At);fr&&Y4t(fr)&&(Mr=S6(Mr));const Ou=ad(ze,Mr,At,ze.enclosingDeclaration,Fu,Er),xu=!(ze.flags&8192)&&Yn&&fr&&Hp(fr)?Vt(p2(fr),q.cloneNode):void 0,li=fr&&$_(fr)||Gl(At)&32768?q.createToken(26):void 0,Gi=dn(At,fr,ze),Ji=fr&&uW(fr)||Gl(At)&16384?q.createToken(58):void 0,mn=q.createParameterDeclaration(xu,li,Gi,Ji,Ou,void 0);return ze.approximateLength+=lc(At).length+3,mn}function dn(At,ze,Yn){return ze&&ze.name?ze.name.kind===80?Zn(q.cloneNode(ze.name),16777216):ze.name.kind===166?Zn(q.cloneNode(ze.name.right),16777216):Fu(ze.name):lc(At);function Fu(Er){return fr(Er);function fr(Mr){Yn.tracker.canTrackSymbol&&Ps(Mr)&&NNe(Mr)&&nu(Mr.expression,Yn.enclosingDeclaration,Yn);let Ou=rn(Mr,fr,Dg,void 0,fr);return js(Ou)&&(Ou=q.updateBindingElement(Ou,Ou.dotDotDotToken,Ou.propertyName,Ou.name,void 0)),sl(Ou)||(Ou=q.cloneNode(Ou)),Zn(Ou,16777217)}}}function nu(At,ze,Yn){if(!Yn.tracker.canTrackSymbol)return;const Fu=hm(At),Er=uc(Fu,Fu.escapedText,1160127,void 0,void 0,!0);Er&&Yn.tracker.trackSymbol(Er,ze,111551)}function En(At,ze,Yn,Fu){return ze.tracker.trackSymbol(At,ze.enclosingDeclaration,Yn),Ii(At,ze,Yn,Fu)}function Ii(At,ze,Yn,Fu){let Er;return!(At.flags&262144)&&(ze.enclosingDeclaration||ze.flags&64)&&!(ze.flags&134217728)?(Er=H.checkDefined(Mr(At,Yn,!0)),H.assert(Er&&Er.length>0)):Er=[At],Er;function Mr(Ou,xu,Lt){let li=_C(Ou,ze.enclosingDeclaration,xu,!!(ze.flags&128)),Gi;if(!li||$w(li[0],ze.enclosingDeclaration,li.length===1?xu:v3(xu))){const Ji=Ww(li?li[0]:Ou,ze.enclosingDeclaration,xu);if(S(Ji)){Gi=Ji.map(ku=>Oe(ku.declarations,Ao)?_n(ku,ze):void 0);const mn=Ji.map((ku,_o)=>_o);mn.sort(yi);const Kr=mn.map(ku=>Ji[ku]);for(const ku of Kr){const _o=Mr(ku,v3(xu),!1);if(_o){if(ku.exports&&ku.exports.get("export=")&&Zm(ku.exports.get("export="),Ou)){li=_o;break}li=_o.concat(li||[s6(ku,Ou)||Ou]);break}}}}if(li)return li;if(Lt||!(Ou.flags&6144))return!Lt&&!Fu&&L(Ou.declarations,Ao)?void 0:[Ou];function yi(Ji,mn){const Kr=Gi[Ji],ku=Gi[mn];if(Kr&&ku){const _o=om(ku);return om(Kr)===_o?ZY(Kr)-ZY(ku):_o?-1:1}return 0}}}function Nn(At,ze){let Yn;return _T(At).flags&524384&&(Yn=q.createNodeArray(Vt(sn(At),Er=>zt(Er,ze)))),Yn}function vn(At,ze,Yn){var Fu;H.assert(At&&0<=ze&&zek6(li,xu.links.mapper)),Yn)}else Mr=Nn(Er,Yn)}return Mr}function An(At){return I7(At.objectType)?An(At.objectType):At}function _n(At,ze,Yn){let Fu=Sl(At,312);if(!Fu){const Lt=G(At.declarations,li=>kb(li,At));Lt&&(Fu=Sl(Lt,312))}if(Fu&&Fu.moduleName!==void 0)return Fu.moduleName;if(!Fu){if(ze.tracker.trackReferencedAmbientModule){const Lt=ti(At.declarations,N1);if(S(Lt))for(const li of Lt)ze.tracker.trackReferencedAmbientModule(li,At)}if(jde.test(At.escapedName))return At.escapedName.substring(1,At.escapedName.length-1)}if(!ze.enclosingDeclaration||!ze.tracker.moduleResolverHost)return jde.test(At.escapedName)?At.escapedName.substring(1,At.escapedName.length-1):zn(g0e(At)).fileName;const Er=zn(Wl(ze.enclosingDeclaration)),fr=Yn||(Er==null?void 0:Er.impliedNodeFormat),Mr=dM(Er.path,fr),Ou=Ur(At);let xu=Ou.specifierCache&&Ou.specifierCache.get(Mr);if(!xu){const Lt=!!y0(ae),{moduleResolverHost:li}=ze.tracker,Gi=Lt?{...ae,baseUrl:li.getCommonSourceDirectory()}:ae;xu=Pn(het(At,Pi,Gi,Er,li,{importModuleSpecifierPreference:Lt?"non-relative":"project-relative",importModuleSpecifierEnding:Lt?"minimal":fr===99?"js":void 0},{overrideImportMode:Yn})),Ou.specifierCache??(Ou.specifierCache=new Map),Ou.specifierCache.set(Mr,xu)}return xu}function hu(At){const ze=q.createIdentifier(Qr(At.escapedName));return At.parent?q.createQualifiedName(hu(At.parent),ze):ze}function oo(At,ze,Yn,Fu){const Er=En(At,ze,Yn,!(ze.flags&16384)),fr=Yn===111551;if(Oe(Er[0].declarations,Ao)){const xu=Er.length>1?Ou(Er,Er.length-1,1):void 0,Lt=Fu||vn(Er,0,ze),li=zn(Wl(ze.enclosingDeclaration)),Gi=YU(Er[0]);let yi,Ji;if((p1(ae)===3||p1(ae)===99)&&(Gi==null?void 0:Gi.impliedNodeFormat)===99&&Gi.impliedNodeFormat!==(li==null?void 0:li.impliedNodeFormat)&&(yi=_n(Er[0],ze,99),Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral("import"))]))),yi||(yi=_n(Er[0],ze)),!(ze.flags&67108864)&&p1(ae)!==1&&yi.includes("/node_modules/")){const Kr=yi;if(p1(ae)===3||p1(ae)===99){const ku=(li==null?void 0:li.impliedNodeFormat)===99?1:99;yi=_n(Er[0],ze,ku),yi.includes("/node_modules/")?yi=Kr:Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral(ku===99?"import":"require"))]))}Ji||(ze.encounteredError=!0,ze.tracker.reportLikelyUnsafeImportRequiredError&&ze.tracker.reportLikelyUnsafeImportRequiredError(Kr))}const mn=q.createLiteralTypeNode(q.createStringLiteral(yi));if(ze.tracker.trackExternalModuleSymbolOfImportTypeNode&&ze.tracker.trackExternalModuleSymbolOfImportTypeNode(Er[0]),ze.approximateLength+=yi.length+10,!xu||sm(xu)){if(xu){const Kr=at(xu)?xu:xu.right;l5(Kr,void 0)}return q.createImportTypeNode(mn,Ji,xu,Lt,fr)}else{const Kr=An(xu),ku=Kr.objectType.typeName;return q.createIndexedAccessTypeNode(q.createImportTypeNode(mn,Ji,ku,Lt,fr),Kr.indexType)}}const Mr=Ou(Er,Er.length-1,0);if(I7(Mr))return Mr;if(fr)return q.createTypeQueryNode(Mr);{const xu=at(Mr)?Mr:Mr.right,Lt=gk(xu);return l5(xu,void 0),q.createTypeReferenceNode(Mr,Lt)}function Ou(xu,Lt,li){const Gi=Lt===xu.length-1?Fu:vn(xu,Lt,ze),yi=xu[Lt],Ji=xu[Lt-1];let mn;if(Lt===0)ze.flags|=16777216,mn=__(yi,ze),ze.approximateLength+=(mn?mn.length:0)+1,ze.flags^=16777216;else if(Ji&&$f(Ji)){const ku=$f(Ji);h1(ku,(_o,pn)=>{if(Zm(_o,yi)&&!XK(pn)&&pn!=="export=")return mn=Qr(pn),!0})}if(mn===void 0){const ku=G(yi.declarations,Za);if(ku&&Ps(ku)&&sm(ku.expression)){const _o=Ou(xu,Lt-1,li);return sm(_o)?q.createIndexedAccessTypeNode(q.createParenthesizedType(q.createTypeQueryNode(_o)),q.createTypeQueryNode(ku.expression)):_o}mn=__(yi,ze)}if(ze.approximateLength+=mn.length+1,!(ze.flags&16)&&Ji&&_6(Ji)&&_6(Ji).get(yi.escapedName)&&Zm(_6(Ji).get(yi.escapedName),yi)){const ku=Ou(xu,Lt-1,li);return I7(ku)?q.createIndexedAccessTypeNode(ku,q.createLiteralTypeNode(q.createStringLiteral(mn))):q.createIndexedAccessTypeNode(q.createTypeReferenceNode(ku,Gi),q.createLiteralTypeNode(q.createStringLiteral(mn)))}const Kr=Zn(q.createIdentifier(mn),16777216);if(Gi&&l5(Kr,q.createNodeArray(Gi)),Kr.symbol=yi,Lt>li){const ku=Ou(xu,Lt-1,li);return sm(ku)?q.createQualifiedName(ku,Kr):H.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Kr}}function Eo(At,ze,Yn){const Fu=uc(ze.enclosingDeclaration,At,788968,void 0,At,!1);return Fu?!(Fu.flags&262144&&Fu===Yn.symbol):!1}function fo(At,ze){var Yn,Fu;if(ze.flags&4&&ze.typeParameterNames){const fr=ze.typeParameterNames.get(Fh(At));if(fr)return fr}let Er=ka(At.symbol,ze,788968,!0);if(!(Er.kind&80))return q.createIdentifier("(Missing type parameter)");if(ze.flags&4){const fr=Er.escapedText;let Mr=((Yn=ze.typeParameterNamesByTextNextNameCount)==null?void 0:Yn.get(fr))||0,Ou=fr;for(;(Fu=ze.typeParameterNamesByText)!=null&&Fu.has(Ou)||Eo(Ou,ze,At);)Mr++,Ou=`${fr}_${Mr}`;if(Ou!==fr){const xu=gk(Er);Er=q.createIdentifier(Ou),l5(Er,xu)}(ze.typeParameterNamesByTextNextNameCount||(ze.typeParameterNamesByTextNextNameCount=new Map)).set(fr,Mr),(ze.typeParameterNames||(ze.typeParameterNames=new Map)).set(Fh(At),Er),(ze.typeParameterNamesByText||(ze.typeParameterNamesByText=new Set)).add(fr)}return Er}function ka(At,ze,Yn,Fu){const Er=En(At,ze,Yn);return Fu&&Er.length!==1&&!ze.encounteredError&&!(ze.flags&65536)&&(ze.encounteredError=!0),fr(Er,Er.length-1);function fr(Mr,Ou){const xu=vn(Mr,Ou,ze),Lt=Mr[Ou];Ou===0&&(ze.flags|=16777216);const li=__(Lt,ze);Ou===0&&(ze.flags^=16777216);const Gi=Zn(q.createIdentifier(li),16777216);return xu&&l5(Gi,q.createNodeArray(xu)),Gi.symbol=Lt,Ou>0?q.createQualifiedName(fr(Mr,Ou-1),Gi):Gi}}function ah(At,ze,Yn){const Fu=En(At,ze,Yn);return Er(Fu,Fu.length-1);function Er(fr,Mr){const Ou=vn(fr,Mr,ze),xu=fr[Mr];Mr===0&&(ze.flags|=16777216);let Lt=__(xu,ze);Mr===0&&(ze.flags^=16777216);let li=Lt.charCodeAt(0);if(_j(li)&&Oe(xu.declarations,Ao))return q.createStringLiteral(_n(xu,ze));if(Mr===0||zle(Lt,Ce)){const Gi=Zn(q.createIdentifier(Lt),16777216);return Ou&&l5(Gi,q.createNodeArray(Ou)),Gi.symbol=xu,Mr>0?q.createPropertyAccessExpression(Er(fr,Mr-1),Gi):Gi}else{li===91&&(Lt=Lt.substring(1,Lt.length-1),li=Lt.charCodeAt(0));let Gi;if(_j(li)&&!(xu.flags&8)?Gi=q.createStringLiteral($4(Lt).replace(/\\./g,yi=>yi.substring(1)),li===39):""+ +Lt===Lt&&(Gi=q.createNumericLiteral(+Lt)),!Gi){const yi=Zn(q.createIdentifier(Lt),16777216);Ou&&l5(yi,q.createNodeArray(Ou)),yi.symbol=xu,Gi=yi}return q.createElementAccessExpression(Er(fr,Mr-1),Gi)}}}function t4(At){const ze=Za(At);return ze?Ps(ze)?!!(ya(ze.expression).flags&402653316):U0(ze)?!!(ya(ze.argumentExpression).flags&402653316):us(ze):!1}function hn(At){const ze=Za(At);return!!(ze&&us(ze)&&(ze.singleQuote||!sl(ze)&&Pa(Hc(ze,!1),"'")))}function Kn(At,ze){const Yn=!!S(At.declarations)&&ye(At.declarations,t4),Fu=!!S(At.declarations)&&ye(At.declarations,hn),Er=!!(At.flags&8192),fr=Yr(At,ze,Fu,Yn,Er);if(fr)return fr;const Mr=Qr(At.escapedName);return mZ(Mr,Os(ae),Fu,Yn,Er)}function Yr(At,ze,Yn,Fu,Er){const fr=Ur(At).nameType;if(fr){if(fr.flags&384){const Mr=""+fr.value;return!Lm(Mr,Os(ae))&&(Fu||!i3(Mr))?q.createStringLiteral(Mr,!!Yn):i3(Mr)&&Pa(Mr,"-")?q.createComputedPropertyName(q.createNumericLiteral(+Mr)):mZ(Mr,Os(ae),Yn,Fu,Er)}if(fr.flags&8192)return q.createComputedPropertyName(ah(fr.symbol,ze,111551))}}function yo(At){const ze={...At};return ze.typeParameterNames&&(ze.typeParameterNames=new Map(ze.typeParameterNames)),ze.typeParameterNamesByText&&(ze.typeParameterNamesByText=new Set(ze.typeParameterNamesByText)),ze.typeParameterSymbolList&&(ze.typeParameterSymbolList=new Set(ze.typeParameterSymbolList)),ze.tracker=new Hde(ze,ze.tracker.inner,ze.tracker.moduleResolverHost),ze}function $n(At,ze){return At.declarations&&Le(At.declarations,Yn=>!!f1(Yn)&&(!ze||!!Tn(Yn,Fu=>Fu===ze)))}function Bs(At,ze){return!(Gu(ze)&4)||!X4(At)||S(At.typeArguments)>=b_(ze.target.typeParameters)}function w0(At){return ar(At).fakeScopeForSignatureDeclaration?At.parent:At}function ad(At,ze,Yn,Fu,Er,fr){if(!Nt(ze)&&Fu){const xu=$n(Yn,w0(Fu));if(xu&&!$0(xu)&&!zm(xu)){const Lt=f1(xu);if(Ys(Lt,xu,ze)&&Bs(Lt,ze)){const li=el(At,Lt,Er,fr);if(li)return li}}}const Mr=At.flags;ze.flags&8192&&ze.symbol===Yn&&(!At.enclosingDeclaration||Oe(Yn.declarations,xu=>zn(xu)===zn(At.enclosingDeclaration)))&&(At.flags|=1048576);const Ou=C(ze,At);return At.flags=Mr,Ou}function Ys(At,ze,Yn){const Fu=Ar(At);return Fu===Yn?!0:io(ze)&&ze.questionToken?mp(Yn,524288)===Fu:!1}function Td(At,ze,Yn,Fu,Er){if(!Nt(ze)&&At.enclosingDeclaration){const fr=Yn.declaration&&U4(Yn.declaration),Mr=w0(At.enclosingDeclaration);if(Tn(fr,Ou=>Ou===Mr)&&fr){const Ou=Ar(fr);if((Ou.flags&262144&&Ou.isThisType?_a(Ou,Yn.mapper):Ou)===ze&&Bs(fr,ze)){const Lt=el(At,fr,Fu,Er);if(Lt)return Lt}}}return C(ze,At)}function kc(At,ze,Yn){let Fu=!1;const Er=hm(At);if(Qn(At)&&(uk(Er)||Y_(Er.parent)||vf(Er.parent)&&P0e(Er.parent.left)&&uk(Er.parent.right)))return Fu=!0,{introducesError:Fu,node:At};const fr=R0(Er,67108863,!0,!0);if(fr&&(yu(fr,ze.enclosingDeclaration,67108863,!1).accessibility!==0?Fu=!0:(ze.tracker.trackSymbol(fr,ze.enclosingDeclaration,67108863),Yn==null||Yn(fr)),at(At))){const Mr=X0(fr),Ou=fr.flags&262144&&!R(Mr.symbol,ze.enclosingDeclaration)?fo(Mr,ze):q.cloneNode(At);return Ou.symbol=fr,{introducesError:Fu,node:Zn(su(Ou,At),16777216)}}return{introducesError:Fu,node:At}}function el(At,ze,Yn,Fu){d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();let Er=!1;const fr=zn(ze),Mr=yt(ze,Ou,Xr);if(Er)return;return Mr===ze?Pt(q.cloneNode(ze),ze):Mr;function Ou(xu){if(EFe(xu)||xu.kind===326)return q.createKeywordTypeNode(133);if(_Fe(xu))return q.createKeywordTypeNode(159);if(wB(xu))return q.createUnionTypeNode([yt(xu.type,Ou,Xr),q.createLiteralTypeNode(q.createNull())]);if(Fce(xu))return q.createUnionTypeNode([yt(xu.type,Ou,Xr),q.createKeywordTypeNode(157)]);if(mY(xu))return yt(xu.type,Ou);if(pY(xu))return q.createArrayTypeNode(yt(xu.type,Ou,Xr));if(K7(xu))return q.createTypeLiteralNode(Vt(xu.jsDocPropertyTags,yi=>{const Ji=at(yi.name)?yi.name:yi.name.right,mn=he(Ar(xu),Ji.escapedText),Kr=mn&&yi.typeExpression&&Ar(yi.typeExpression.type)!==mn?C(mn,At):void 0;return q.createPropertySignature(void 0,Ji,yi.isBracketed||yi.typeExpression&&Fce(yi.typeExpression.type)?q.createToken(58):void 0,Kr||yi.typeExpression&&yt(yi.typeExpression.type,Ou,Xr)||q.createKeywordTypeNode(133))}));if(X4(xu)&&at(xu.typeName)&&xu.typeName.escapedText==="")return su(q.createKeywordTypeNode(133),xu);if((c5(xu)||X4(xu))&&xq(xu))return q.createTypeLiteralNode([q.createIndexSignature(void 0,[q.createParameterDeclaration(void 0,void 0,"x",void 0,yt(xu.typeArguments[0],Ou,Xr))],yt(xu.typeArguments[1],Ou,Xr))]);if(TB(xu))if(X8(xu)){let yi;return q.createConstructorTypeNode(void 0,kn(xu.typeParameters,Ou,Bl),qi(xu.parameters,(Ji,mn)=>Ji.name&&at(Ji.name)&&Ji.name.escapedText==="new"?(yi=Ji.type,void 0):q.createParameterDeclaration(void 0,Lt(Ji),li(Ji,mn),Ji.questionToken,yt(Ji.type,Ou,Xr),void 0)),yt(yi||xu.type,Ou,Xr)||q.createKeywordTypeNode(133))}else return q.createFunctionTypeNode(kn(xu.typeParameters,Ou,Bl),Vt(xu.parameters,(yi,Ji)=>q.createParameterDeclaration(void 0,Lt(yi),li(yi,Ji),yi.questionToken,yt(yi.type,Ou,Xr),void 0)),yt(xu.type,Ou,Xr)||q.createKeywordTypeNode(133));if(X4(xu)&&Ej(xu)&&(!Bs(xu,Ar(xu))||Gdt(xu)||Xt===oT(xu,788968,!0)))return su(C(Ar(xu),At),xu);if(zx(xu)){const yi=ar(xu).resolvedSymbol;return Ej(xu)&&yi&&(!xu.isTypeOf&&!(yi.flags&788968)||!(S(xu.typeArguments)>=b_(sn(yi))))?su(C(Ar(xu),At),xu):q.updateImportTypeNode(xu,q.updateLiteralTypeNode(xu.argument,Gi(xu,xu.argument.literal)),xu.attributes,xu.qualifier,kn(xu.typeArguments,Ou,Xr),xu.isTypeOf)}if(sm(xu)||ec(xu)){const{introducesError:yi,node:Ji}=kc(xu,At,Yn);if(Er=Er||yi,Ji!==xu)return Ji}return fr&&yB(xu)&&s0(fr,xu.pos).line===s0(fr,xu.end).line&&Zn(xu,1),rn(xu,Ou,Dg);function Lt(yi){return yi.dotDotDotToken||(yi.type&&pY(yi.type)?q.createToken(26):void 0)}function li(yi,Ji){return yi.name&&at(yi.name)&&yi.name.escapedText==="this"?"this":Lt(yi)?"args":`arg${Ji}`}function Gi(yi,Ji){if(Fu){if(At.tracker&&At.tracker.moduleResolverHost){const mn=qze(yi);if(mn){const ku={getCanonicalFileName:L1(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>At.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>At.tracker.moduleResolverHost.getCommonSourceDirectory()},_o=Pq(ku,mn);return q.createStringLiteral(_o)}}}else if(At.tracker&&At.tracker.trackExternalModuleSymbolOfImportTypeNode){const mn=D3(Ji,Ji,void 0);mn&&At.tracker.trackExternalModuleSymbolOfImportTypeNode(mn)}return Ji}}}function bm(At,ze,Yn){var Fu;const Er=Hd(q.createPropertyDeclaration,174,!0),fr=Hd((ai,Bu,dr,nr)=>q.createPropertySignature(ai,Bu,dr,nr),173,!1),Mr=ze.enclosingDeclaration;let Ou=[];const xu=new Set,Lt=[],li=ze;ze={...li,usedSymbolNames:new Set(li.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Fu=li.remappedSymbolReferences)==null?void 0:Fu.entries()),tracker:void 0};const Gi={...li.tracker.inner,trackSymbol:(ai,Bu,dr)=>{var nr,hr;if((nr=ze.remappedSymbolNames)!=null&&nr.has(Zo(ai)))return!1;if(yu(ai,Bu,dr,!1).accessibility===0){const zo=Ii(ai,ze,dr);if(!(ai.flags&4)){const so=zo[0],ts=zn(li.enclosingDeclaration);Oe(so.declarations,Xs=>zn(Xs)===ts)&&fl(so)}}else if((hr=li.tracker.inner)!=null&&hr.trackSymbol)return li.tracker.inner.trackSymbol(ai,Bu,dr);return!1}};ze.tracker=new Hde(ze,Gi,li.tracker.moduleResolverHost),h1(At,(ai,Bu)=>{const dr=Qr(Bu);Zf(ai,dr)});let yi=!Yn;const Ji=At.get("export=");return Ji&&At.size>1&&Ji.flags&2097152&&(At=Vo(),At.set("export=",Ji)),cs(At),or(Ou);function mn(ai){return!!ai&&ai.kind===80}function Kr(ai){return Jl(ai)?ti(Vt(ai.declarationList.declarations,Za),mn):ti([Za(ai)],mn)}function ku(ai){const Bu=Le(ai,tc),dr=Ue(ai,_c);let nr=dr!==-1?ai[dr]:void 0;if(nr&&Bu&&Bu.isExportEquals&&at(Bu.expression)&&at(nr.name)&&fu(nr.name)===fu(Bu.expression)&&nr.body&&rE(nr.body)){const hr=ti(ai,so=>!!(Eh(so)&32)),Qs=nr.name;let zo=nr.body;if(S(hr)&&(nr=q.updateModuleDeclaration(nr,nr.modifiers,nr.name,zo=q.updateModuleBlock(zo,q.createNodeArray([...nr.body.statements,q.createExportDeclaration(void 0,!1,q.createNamedExports(Vt(ju(hr,so=>Kr(so)),so=>q.createExportSpecifier(!1,void 0,so))),void 0)]))),ai=[...ai.slice(0,dr),nr,...ai.slice(dr+1)]),!Le(ai,so=>so!==nr&&jO(so,Qs))){Ou=[];const so=!Oe(zo.statements,ts=>Yu(ts,32)||tc(ts)||Gc(ts));L(zo.statements,ts=>{yl(ts,so?32:0)}),ai=[...ti(ai,ts=>ts!==nr&&ts!==Bu),...Ou]}}return ai}function _o(ai){const Bu=ti(ai,nr=>Gc(nr)&&!nr.moduleSpecifier&&!!nr.exportClause&&ep(nr.exportClause));S(Bu)>1&&(ai=[...ti(ai,hr=>!Gc(hr)||!!hr.moduleSpecifier||!hr.exportClause),q.createExportDeclaration(void 0,!1,q.createNamedExports(ju(Bu,hr=>Po(hr.exportClause,ep).elements)),void 0)]);const dr=ti(ai,nr=>Gc(nr)&&!!nr.moduleSpecifier&&!!nr.exportClause&&ep(nr.exportClause));if(S(dr)>1){const nr=vN(dr,hr=>us(hr.moduleSpecifier)?">"+hr.moduleSpecifier.text:">");if(nr.length!==dr.length)for(const hr of nr)hr.length>1&&(ai=[...ti(ai,Qs=>!hr.includes(Qs)),q.createExportDeclaration(void 0,!1,q.createNamedExports(ju(hr,Qs=>Po(Qs.exportClause,ep).elements)),hr[0].moduleSpecifier)])}return ai}function pn(ai){const Bu=Ue(ai,dr=>Gc(dr)&&!dr.moduleSpecifier&&!dr.attributes&&!!dr.exportClause&&ep(dr.exportClause));if(Bu>=0){const dr=ai[Bu],nr=qi(dr.exportClause.elements,hr=>{if(!hr.propertyName){const Qs=$r(ai),zo=ti(Qs,so=>jO(ai[so],hr.name));if(S(zo)&&ye(zo,so=>rV(ai[so]))){for(const so of zo)ai[so]=qr(ai[so]);return}}return hr});S(nr)?ai[Bu]=q.updateExportDeclaration(dr,dr.modifiers,dr.isTypeOnly,q.updateNamedExports(dr.exportClause,nr),dr.moduleSpecifier,dr.attributes):fv(ai,Bu)}return ai}function or(ai){return ai=ku(ai),ai=_o(ai),ai=pn(ai),Mr&&(la(Mr)&&cm(Mr)||_c(Mr))&&(!Oe(ai,YO)||!dbe(ai)&&Oe(ai,VU))&&ai.push(NV(q)),ai}function qr(ai){const Bu=(Eh(ai)|32)&-129;return q.replaceModifiers(ai,Bu)}function La(ai){const Bu=Eh(ai)&-33;return q.replaceModifiers(ai,Bu)}function cs(ai,Bu,dr){Bu||Lt.push(new Map),ai.forEach(nr=>{pd(nr,!1,!!dr)}),Bu||(Lt[Lt.length-1].forEach(nr=>{pd(nr,!0,!!dr)}),Lt.pop())}function pd(ai,Bu,dr){const nr=Ks(ai);if(xu.has(Zo(nr)))return;if(xu.add(Zo(nr)),!Bu||S(ai.declarations)&&Oe(ai.declarations,Qs=>!!Tn(Qs,zo=>zo===Mr))){const Qs=ze;ze=yo(ze),bl(ai,Bu,dr),ze.reportedDiagnostic&&(li.reportedDiagnostic=ze.reportedDiagnostic),ze.trackedSymbols&&(Qs.trackedSymbols?H.assert(ze.trackedSymbols===Qs.trackedSymbols):Qs.trackedSymbols=ze.trackedSymbols),ze=Qs}}function bl(ai,Bu,dr,nr=ai.escapedName){var hr,Qs,zo,so,ts,Xs;const L0=Qr(nr),$h=nr==="default";if(Bu&&!(ze.flags&131072)&&m7(L0)&&!$h){ze.encounteredError=!0;return}let K1=$h&&!!(ai.flags&-113||ai.flags&16&&S(n0(Wn(ai))))&&!(ai.flags&2097152),W1=!K1&&!Bu&&m7(L0)&&!$h;(K1||W1)&&(Bu=!0);const ml=(Bu?0:32)|($h&&!K1?2048:0),y1=ai.flags&1536&&ai.flags&7&&nr!=="export=",B3=y1&&Gs(Wn(ai),ai);if((ai.flags&8208||B3)&&lu(Wn(ai),ai,Zf(ai,L0),ml),ai.flags&524288&&Ft(ai,L0,ml),ai.flags&98311&&nr!=="export="&&!(ai.flags&4194304)&&!(ai.flags&32)&&!(ai.flags&8192)&&!B3)if(dr)T0(ai)&&(W1=!1,K1=!1);else{const k1=Wn(ai),Yf=Zf(ai,L0);if(k1.symbol&&k1.symbol!==ai&&k1.symbol.flags&16&&Oe(k1.symbol.declarations,R2)&&((hr=k1.symbol.members)!=null&&hr.size||(Qs=k1.symbol.exports)!=null&&Qs.size))ze.remappedSymbolReferences||(ze.remappedSymbolReferences=new Map),ze.remappedSymbolReferences.set(Zo(k1.symbol),ai),bl(k1.symbol,Bu,dr,nr),ze.remappedSymbolReferences.delete(Zo(k1.symbol));else if(!(ai.flags&16)&&Gs(k1,ai))lu(k1,ai,Yf,ml);else{const uS=ai.flags&2?Mz(ai)?2:1:(zo=ai.parent)!=null&&zo.valueDeclaration&&la((so=ai.parent)==null?void 0:so.valueDeclaration)?2:void 0,TE=K1||!(ai.flags&4)?Yf:zC(Yf,ai);let L6=ai.declarations&&Le(ai.declarations,HW=>ua(HW));L6&&Ad(L6.parent)&&L6.parent.declarations.length===1&&(L6=L6.parent.parent);const N6=(ts=ai.declarations)==null?void 0:ts.find(Iu);if(N6&&Xn(N6.parent)&&at(N6.parent.right)&&((Xs=k1.symbol)!=null&&Xs.valueDeclaration)&&la(k1.symbol.valueDeclaration)){const HW=Yf===N6.parent.right.escapedText?void 0:N6.parent.right;yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,HW,Yf)])),0),ze.tracker.trackSymbol(k1.symbol,ze.enclosingDeclaration,111551)}else{const HW=Pt(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(TE,void 0,ad(ze,k1,ai,Mr,fl,Yn))],uS)),L6);yl(HW,TE!==Yf?ml&-33:ml),TE!==Yf&&!Bu&&(yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,TE,Yf)])),0),W1=!1,K1=!1)}}}if(ai.flags&384&&un(ai,L0,ml),ai.flags&32&&(ai.flags&4&&ai.valueDeclaration&&Xn(ai.valueDeclaration.parent)&&Xd(ai.valueDeclaration.parent.right)?mo(ai,Zf(ai,L0),ml):Wo(ai,Zf(ai,L0),ml)),(ai.flags&1536&&(!y1||Bn(ai))||B3)&&Du(ai,L0,ml),ai.flags&64&&!(ai.flags&32)&&$t(ai,L0,ml),ai.flags&2097152&&mo(ai,Zf(ai,L0),ml),ai.flags&4&&ai.escapedName==="export="&&T0(ai),ai.flags&8388608&&ai.declarations)for(const k1 of ai.declarations){const Yf=Kh(k1,k1.moduleSpecifier);Yf&&yl(q.createExportDeclaration(void 0,k1.isTypeOnly,void 0,q.createStringLiteral(_n(Yf,ze))),0)}K1?yl(q.createExportAssignment(void 0,!1,q.createIdentifier(Zf(ai,L0))),0):W1&&yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,Zf(ai,L0),L0)])),0)}function fl(ai){if(Oe(ai.declarations,w2))return;H.assertIsDefined(Lt[Lt.length-1]),zC(Qr(ai.escapedName),ai);const Bu=!!(ai.flags&2097152)&&!Oe(ai.declarations,dr=>!!Tn(dr,Gc)||u_(dr)||E1(dr)&&!r_(dr.moduleReference));Lt[Bu?0:Lt.length-1].set(Zo(ai),ai)}function H1(ai){return la(ai)&&(cm(ai)||W4(ai))||N1(ai)&&!Yg(ai)}function yl(ai,Bu){if(Hp(ai)){let dr=0;const nr=ze.enclosingDeclaration&&(G4(ze.enclosingDeclaration)?zn(ze.enclosingDeclaration):ze.enclosingDeclaration);Bu&32&&nr&&(H1(nr)||_c(nr))&&rV(ai)&&(dr|=32),yi&&!(dr&32)&&(!nr||!(nr.flags&33554432))&&(Iv(ai)||Jl(ai)||ed(ai)||Wc(ai)||_c(ai))&&(dr|=128),Bu&2048&&(Wc(ai)||xh(ai)||ed(ai))&&(dr|=2048),dr&&(ai=q.replaceModifiers(ai,dr|Eh(ai)))}Ou.push(ai)}function Ft(ai,Bu,dr){var nr;const hr=tdt(ai),Qs=Ur(ai).typeParameters,zo=Vt(Qs,K1=>zt(K1,ze)),so=(nr=ai.declarations)==null?void 0:nr.find(G4),ts=KO(so?so.comment||so.parent.comment:void 0),Xs=ze.flags;ze.flags|=8388608;const L0=ze.enclosingDeclaration;ze.enclosingDeclaration=so;const $h=so&&so.typeExpression&&kk(so.typeExpression)&&el(ze,so.typeExpression.type,fl,Yn)||C(hr,ze);yl(Nv(q.createTypeAliasDeclaration(void 0,Zf(ai,Bu),zo,$h),ts?[{kind:3,text:`* - * `+ts.replace(/\n/g,` + `,pos:-1,end:-1,hasTrailingNewLine:!0}])}else St.valueDeclaration&&Tc(Ji,St.valueDeclaration);return Ji}}function Z(St,ze,Qn){if(Ge(St)){if(D(ze))if(Qn){if(St.length>2)return[C(St[0],ze),q.createTypeReferenceNode(`... ${St.length-2} more ...`,void 0),C(St[St.length-1],ze)]}else return[q.createTypeReferenceNode("...",void 0)];const Dr=!(ze.flags&64)?Tm():void 0,pr=[];let zr=0;for(const ju of St){if(zr++,D(ze)&&zr+2{if(!bke(vu,([Lt],[si])=>ce(Lt,si)))for(const[Lt,si]of vu)pr[si]=C(Lt,ze)}),ze.flags=ju}return pr}}function ce(St,ze){return St===ze||!!St.symbol&&St.symbol===ze.symbol||!!St.aliasSymbol&&St.aliasSymbol===ze.aliasSymbol}function Fe(St,ze,Qn){const Bu=Wbe(St)||"x",Dr=C(St.keyType,ze),pr=q.createParameterDeclaration(void 0,void 0,Bu,void 0,Dr,void 0);return Qn||(Qn=C(St.type||me,ze)),!St.type&&!(ze.flags&2097152)&&(ze.encounteredError=!0),ze.approximateLength+=Bu.length+4,q.createIndexSignature(St.isReadonly?[q.createToken(148)]:void 0,[pr],Qn)}function Te(St,ze,Qn,Bu){var Dr;const pr=Qn.flags&256;pr&&(Qn.flags&=-257),Qn.approximateLength+=3;let zr,ju;Qn.flags&32&&St.target&&St.mapper&&St.target.typeParameters?ju=St.target.typeParameters.map(Au=>C(Da(Au,St.mapper),Qn)):zr=St.typeParameters&&St.typeParameters.map(Au=>zt(Au,Qn));const vu=_dt(St,!0)[0];let Lt;if(Qn.enclosingDeclaration&&St.declaration&&St.declaration!==Qn.enclosingDeclaration&&!Xn(St.declaration)&&Ge(vu)){const Au=sr(Qn.enclosingDeclaration).fakeScopeForSignatureDeclaration?Qn.enclosingDeclaration:void 0;H.assertOptionalNode(Au,go);const Do=(Au==null?void 0:Au.locals)??Ho();let pn;for(const lr of vu)Do.has(lr.escapedName)||(pn=Di(pn,lr.escapedName),Do.set(lr.escapedName,lr));if(pn){let lr=function(){L(pn,Zr=>Do.delete(Zr))};if(Au)Lt=lr;else{const Zr=o_.createBlock(Dt);sr(Zr).fakeScopeForSignatureDeclaration=!0,Zr.locals=Do;const La=Qn.enclosingDeclaration;ks(Zr,La),Qn.enclosingDeclaration=Zr,Lt=()=>{Qn.enclosingDeclaration=La,lr()}}}}const si=(Ge(vu,Au=>Au!==vu[vu.length-1]&&!!(Gl(Au)&32768))?St.parameters:vu).map(Au=>Wi(Au,Qn,ze===176,Bu==null?void 0:Bu.privateSymbolVisitor,Bu==null?void 0:Bu.bundledImports)),Gi=Qn.flags&33554432?void 0:$e(St,Qn);Gi&&si.unshift(Gi);let bi;const Ji=A4(St);if(Ji){const Au=Ji.kind===2||Ji.kind===3?q.createToken(131):void 0,Do=Ji.kind===1||Ji.kind===3?Yn(q.createIdentifier(Ji.parameterName),16777216):q.createThisTypeNode(),pn=Ji.type&&C(Ji.type,Qn);bi=q.createTypePredicateNode(Au,Do,pn)}else{const Au=Ys(St);Au&&!(pr&&nt(Au))?bi=Td(Qn,Au,St,Bu==null?void 0:Bu.privateSymbolVisitor,Bu==null?void 0:Bu.bundledImports):pr||(bi=q.createKeywordTypeNode(133))}let mn=Bu==null?void 0:Bu.modifiers;if(ze===185&&St.flags&4){const Au=iE(mn);mn=q.createModifiersFromModifierFlags(Au|64)}const Gr=ze===179?q.createCallSignature(zr,si,bi):ze===180?q.createConstructSignature(zr,si,bi):ze===173?q.createMethodSignature(mn,(Bu==null?void 0:Bu.name)??q.createIdentifier(""),Bu==null?void 0:Bu.questionToken,zr,si,bi):ze===174?q.createMethodDeclaration(mn,void 0,(Bu==null?void 0:Bu.name)??q.createIdentifier(""),void 0,zr,si,bi,void 0):ze===176?q.createConstructorDeclaration(mn,si,void 0):ze===177?q.createGetAccessorDeclaration(mn,(Bu==null?void 0:Bu.name)??q.createIdentifier(""),si,bi,void 0):ze===178?q.createSetAccessorDeclaration(mn,(Bu==null?void 0:Bu.name)??q.createIdentifier(""),si,void 0):ze===181?q.createIndexSignature(mn,si,bi):ze===324?q.createJSDocFunctionType(si,bi):ze===184?q.createFunctionTypeNode(zr,si,bi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===185?q.createConstructorTypeNode(mn,zr,si,bi??q.createTypeReferenceNode(q.createIdentifier(""))):ze===262?q.createFunctionDeclaration(mn,void 0,Bu!=null&&Bu.name?Po(Bu.name,at):q.createIdentifier(""),zr,si,bi,void 0):ze===218?q.createFunctionExpression(mn,void 0,Bu!=null&&Bu.name?Po(Bu.name,at):q.createIdentifier(""),zr,si,bi,q.createBlock([])):ze===219?q.createArrowFunction(mn,zr,si,bi,void 0,q.createBlock([])):H.assertNever(ze);if(ju&&(Gr.typeArguments=q.createNodeArray(ju)),((Dr=St.declaration)==null?void 0:Dr.kind)===330&&St.declaration.parent.kind===346){const Au=Wc(St.declaration.parent.parent,!0).slice(2,-2).split(/\r\n|\n|\r/).map(Do=>Do.replace(/^\s+/," ")).join(` +`);jP(Gr,3,Au,!0)}return Lt==null||Lt(),Gr}function $e(St,ze){if(St.thisParameter)return Wi(St.thisParameter,ze);if(St.declaration&&Xn(St.declaration)){const Qn=PU(St.declaration);if(Qn&&Qn.typeExpression)return q.createParameterDeclaration(void 0,void 0,"this",void 0,C(Br(Qn.typeExpression),ze))}}function ut(St,ze,Qn){const Bu=ze.flags;ze.flags&=-513;const Dr=q.createModifiersFromModifierFlags(UPe(St)),pr=mo(St,ze),zr=_F(St),ju=zr&&C(zr,ze);return ze.flags=Bu,q.createTypeParameterDeclaration(Dr,pr,Qn,ju)}function zt(St,ze,Qn=ah(St)){const Bu=Qn&&C(Qn,ze);return ut(St,ze,Bu)}function gi(St){const ze=Bl(St,169);if(ze)return ze;if(!ZE(St))return Bl(St,348)}function Wi(St,ze,Qn,Bu,Dr){const pr=gi(St);let zr=Wn(St);pr&&ipt(pr)&&(zr=S6(zr));const ju=od(ze,zr,St,ze.enclosingDeclaration,Bu,Dr),vu=!(ze.flags&8192)&&Qn&&pr&&Kp(pr)?Vt(g2(pr),q.cloneNode):void 0,si=pr&&U_(pr)||Gl(St)&32768?q.createToken(26):void 0,Gi=dn(St,pr,ze),Ji=pr&&rW(pr)||Gl(St)&16384?q.createToken(58):void 0,mn=q.createParameterDeclaration(vu,si,Gi,Ji,ju,void 0);return ze.approximateLength+=cc(St).length+3,mn}function dn(St,ze,Qn){return ze&&ze.name?ze.name.kind===80?Yn(q.cloneNode(ze.name),16777216):ze.name.kind===166?Yn(q.cloneNode(ze.name.right),16777216):Bu(ze.name):cc(St);function Bu(Dr){return pr(Dr);function pr(zr){Qn.tracker.canTrackSymbol&&Ms(zr)&&ONe(zr)&&nu(zr.expression,Qn.enclosingDeclaration,Qn);let ju=rn(zr,pr,Dg,void 0,pr);return Vs(ju)&&(ju=q.updateBindingElement(ju,ju.dotDotDotToken,ju.propertyName,ju.name,void 0)),cl(ju)||(ju=q.cloneNode(ju)),Yn(ju,16777217)}}}function nu(St,ze,Qn){if(!Qn.tracker.canTrackSymbol)return;const Bu=hm(St),Dr=rc(Bu,Bu.escapedText,1160127,void 0,void 0,!0);Dr&&Qn.tracker.trackSymbol(Dr,ze,111551)}function En(St,ze,Qn,Bu){return ze.tracker.trackSymbol(St,ze.enclosingDeclaration,Qn),Ri(St,ze,Qn,Bu)}function Ri(St,ze,Qn,Bu){let Dr;return!(St.flags&262144)&&(ze.enclosingDeclaration||ze.flags&64)&&!(ze.flags&134217728)?(Dr=H.checkDefined(zr(St,Qn,!0)),H.assert(Dr&&Dr.length>0)):Dr=[St],Dr;function zr(ju,vu,Lt){let si=DC(ju,ze.enclosingDeclaration,vu,!!(ze.flags&128)),Gi;if(!si||$w(si[0],ze.enclosingDeclaration,si.length===1?vu:C3(vu))){const Ji=Ww(si?si[0]:ju,ze.enclosingDeclaration,vu);if(S(Ji)){Gi=Ji.map(Au=>Ge(Au.declarations,Ao)?_n(Au,ze):void 0);const mn=Ji.map((Au,Do)=>Do);mn.sort(bi);const Gr=mn.map(Au=>Ji[Au]);for(const Au of Gr){const Do=zr(Au,C3(vu),!1);if(Do){if(Au.exports&&Au.exports.get("export=")&&Ym(Au.exports.get("export="),ju)){si=Do;break}si=Do.concat(si||[s6(Au,ju)||ju]);break}}}}if(si)return si;if(Lt||!(ju.flags&6144))return!Lt&&!Bu&&L(ju.declarations,Ao)?void 0:[ju];function bi(Ji,mn){const Gr=Gi[Ji],Au=Gi[mn];if(Gr&&Au){const Do=om(Au);return om(Gr)===Do?QY(Gr)-QY(Au):Do?-1:1}return 0}}}function Nn(St,ze){let Qn;return _T(St).flags&524384&&(Qn=q.createNodeArray(Vt(sn(St),Dr=>zt(Dr,ze)))),Qn}function vn(St,ze,Qn){var Bu;H.assert(St&&0<=ze&&zek6(si,vu.links.mapper)),Qn)}else zr=Nn(Dr,Qn)}return zr}function An(St){return I7(St.objectType)?An(St.objectType):St}function _n(St,ze,Qn){let Bu=Bl(St,312);if(!Bu){const Lt=G(St.declarations,si=>Fb(si,St));Lt&&(Bu=Bl(Lt,312))}if(Bu&&Bu.moduleName!==void 0)return Bu.moduleName;if(!Bu){if(ze.tracker.trackReferencedAmbientModule){const Lt=ti(St.declarations,P1);if(S(Lt))for(const si of Lt)ze.tracker.trackReferencedAmbientModule(si,St)}if(Hde.test(St.escapedName))return St.escapedName.substring(1,St.escapedName.length-1)}if(!ze.enclosingDeclaration||!ze.tracker.moduleResolverHost)return Hde.test(St.escapedName)?St.escapedName.substring(1,St.escapedName.length-1):zn(_0e(St)).fileName;const Dr=zn(Wl(ze.enclosingDeclaration)),pr=Qn||(Dr==null?void 0:Dr.impliedNodeFormat),zr=hM(Dr.path,pr),ju=qr(St);let vu=ju.specifierCache&&ju.specifierCache.get(zr);if(!vu){const Lt=!!F0(ae),{moduleResolverHost:si}=ze.tracker,Gi=Lt?{...ae,baseUrl:si.getCommonSourceDirectory()}:ae;vu=Pn(Eet(St,Pi,Gi,Dr,si,{importModuleSpecifierPreference:Lt?"non-relative":"project-relative",importModuleSpecifierEnding:Lt?"minimal":pr===99?"js":void 0},{overrideImportMode:Qn})),ju.specifierCache??(ju.specifierCache=new Map),ju.specifierCache.set(zr,vu)}return vu}function hu(St){const ze=q.createIdentifier(Qr(St.escapedName));return St.parent?q.createQualifiedName(hu(St.parent),ze):ze}function oo(St,ze,Qn,Bu){const Dr=En(St,ze,Qn,!(ze.flags&16384)),pr=Qn===111551;if(Ge(Dr[0].declarations,Ao)){const vu=Dr.length>1?ju(Dr,Dr.length-1,1):void 0,Lt=Bu||vn(Dr,0,ze),si=zn(Wl(ze.enclosingDeclaration)),Gi=XU(Dr[0]);let bi,Ji;if((g1(ae)===3||g1(ae)===99)&&(Gi==null?void 0:Gi.impliedNodeFormat)===99&&Gi.impliedNodeFormat!==(si==null?void 0:si.impliedNodeFormat)&&(bi=_n(Dr[0],ze,99),Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral("import"))]))),bi||(bi=_n(Dr[0],ze)),!(ze.flags&67108864)&&g1(ae)!==1&&bi.includes("/node_modules/")){const Gr=bi;if(g1(ae)===3||g1(ae)===99){const Au=(si==null?void 0:si.impliedNodeFormat)===99?1:99;bi=_n(Dr[0],ze,Au),bi.includes("/node_modules/")?bi=Gr:Ji=q.createImportAttributes(q.createNodeArray([q.createImportAttribute(q.createStringLiteral("resolution-mode"),q.createStringLiteral(Au===99?"import":"require"))]))}Ji||(ze.encounteredError=!0,ze.tracker.reportLikelyUnsafeImportRequiredError&&ze.tracker.reportLikelyUnsafeImportRequiredError(Gr))}const mn=q.createLiteralTypeNode(q.createStringLiteral(bi));if(ze.tracker.trackExternalModuleSymbolOfImportTypeNode&&ze.tracker.trackExternalModuleSymbolOfImportTypeNode(Dr[0]),ze.approximateLength+=bi.length+10,!vu||sm(vu)){if(vu){const Gr=at(vu)?vu:vu.right;l5(Gr,void 0)}return q.createImportTypeNode(mn,Ji,vu,Lt,pr)}else{const Gr=An(vu),Au=Gr.objectType.typeName;return q.createIndexedAccessTypeNode(q.createImportTypeNode(mn,Ji,Au,Lt,pr),Gr.indexType)}}const zr=ju(Dr,Dr.length-1,0);if(I7(zr))return zr;if(pr)return q.createTypeQueryNode(zr);{const vu=at(zr)?zr:zr.right,Lt=gk(vu);return l5(vu,void 0),q.createTypeReferenceNode(zr,Lt)}function ju(vu,Lt,si){const Gi=Lt===vu.length-1?Bu:vn(vu,Lt,ze),bi=vu[Lt],Ji=vu[Lt-1];let mn;if(Lt===0)ze.flags|=16777216,mn=D_(bi,ze),ze.approximateLength+=(mn?mn.length:0)+1,ze.flags^=16777216;else if(Ji&&$f(Ji)){const Au=$f(Ji);f1(Au,(Do,pn)=>{if(Ym(Do,bi)&&!eW(pn)&&pn!=="export=")return mn=Qr(pn),!0})}if(mn===void 0){const Au=G(bi.declarations,Ya);if(Au&&Ms(Au)&&sm(Au.expression)){const Do=ju(vu,Lt-1,si);return sm(Do)?q.createIndexedAccessTypeNode(q.createParenthesizedType(q.createTypeQueryNode(Do)),q.createTypeQueryNode(Au.expression)):Do}mn=D_(bi,ze)}if(ze.approximateLength+=mn.length+1,!(ze.flags&16)&&Ji&&_6(Ji)&&_6(Ji).get(bi.escapedName)&&Ym(_6(Ji).get(bi.escapedName),bi)){const Au=ju(vu,Lt-1,si);return I7(Au)?q.createIndexedAccessTypeNode(Au,q.createLiteralTypeNode(q.createStringLiteral(mn))):q.createIndexedAccessTypeNode(q.createTypeReferenceNode(Au,Gi),q.createLiteralTypeNode(q.createStringLiteral(mn)))}const Gr=Yn(q.createIdentifier(mn),16777216);if(Gi&&l5(Gr,q.createNodeArray(Gi)),Gr.symbol=bi,Lt>si){const Au=ju(vu,Lt-1,si);return sm(Au)?q.createQualifiedName(Au,Gr):H.fail("Impossible construct - an export of an indexed access cannot be reachable")}return Gr}}function _o(St,ze,Qn){const Bu=rc(ze.enclosingDeclaration,St,788968,void 0,St,!1);return Bu?!(Bu.flags&262144&&Bu===Qn.symbol):!1}function mo(St,ze){var Qn,Bu;if(ze.flags&4&&ze.typeParameterNames){const pr=ze.typeParameterNames.get(Sh(St));if(pr)return pr}let Dr=Aa(St.symbol,ze,788968,!0);if(!(Dr.kind&80))return q.createIdentifier("(Missing type parameter)");if(ze.flags&4){const pr=Dr.escapedText;let zr=((Qn=ze.typeParameterNamesByTextNextNameCount)==null?void 0:Qn.get(pr))||0,ju=pr;for(;(Bu=ze.typeParameterNamesByText)!=null&&Bu.has(ju)||_o(ju,ze,St);)zr++,ju=`${pr}_${zr}`;if(ju!==pr){const vu=gk(Dr);Dr=q.createIdentifier(ju),l5(Dr,vu)}(ze.typeParameterNamesByTextNextNameCount||(ze.typeParameterNamesByTextNextNameCount=new Map)).set(pr,zr),(ze.typeParameterNames||(ze.typeParameterNames=new Map)).set(Sh(St),Dr),(ze.typeParameterNamesByText||(ze.typeParameterNamesByText=new Set)).add(pr)}return Dr}function Aa(St,ze,Qn,Bu){const Dr=En(St,ze,Qn);return Bu&&Dr.length!==1&&!ze.encounteredError&&!(ze.flags&65536)&&(ze.encounteredError=!0),pr(Dr,Dr.length-1);function pr(zr,ju){const vu=vn(zr,ju,ze),Lt=zr[ju];ju===0&&(ze.flags|=16777216);const si=D_(Lt,ze);ju===0&&(ze.flags^=16777216);const Gi=Yn(q.createIdentifier(si),16777216);return vu&&l5(Gi,q.createNodeArray(vu)),Gi.symbol=Lt,ju>0?q.createQualifiedName(pr(zr,ju-1),Gi):Gi}}function oh(St,ze,Qn){const Bu=En(St,ze,Qn);return Dr(Bu,Bu.length-1);function Dr(pr,zr){const ju=vn(pr,zr,ze),vu=pr[zr];zr===0&&(ze.flags|=16777216);let Lt=D_(vu,ze);zr===0&&(ze.flags^=16777216);let si=Lt.charCodeAt(0);if(Dj(si)&&Ge(vu.declarations,Ao))return q.createStringLiteral(_n(vu,ze));if(zr===0||Rle(Lt,Ce)){const Gi=Yn(q.createIdentifier(Lt),16777216);return ju&&l5(Gi,q.createNodeArray(ju)),Gi.symbol=vu,zr>0?q.createPropertyAccessExpression(Dr(pr,zr-1),Gi):Gi}else{si===91&&(Lt=Lt.substring(1,Lt.length-1),si=Lt.charCodeAt(0));let Gi;if(Dj(si)&&!(vu.flags&8)?Gi=q.createStringLiteral(q4(Lt).replace(/\\./g,bi=>bi.substring(1)),si===39):""+ +Lt===Lt&&(Gi=q.createNumericLiteral(+Lt)),!Gi){const bi=Yn(q.createIdentifier(Lt),16777216);ju&&l5(bi,q.createNodeArray(ju)),bi.symbol=vu,Gi=bi}return q.createElementAccessExpression(Dr(pr,zr-1),Gi)}}}function i4(St){const ze=Ya(St);return ze?Ms(ze)?!!(Fa(ze.expression).flags&402653316):q0(ze)?!!(Fa(ze.argumentExpression).flags&402653316):rs(ze):!1}function hn(St){const ze=Ya(St);return!!(ze&&rs(ze)&&(ze.singleQuote||!cl(ze)&&Ma(Wc(ze,!1),"'")))}function Kn(St,ze){const Qn=!!S(St.declarations)&&ye(St.declarations,i4),Bu=!!S(St.declarations)&&ye(St.declarations,hn),Dr=!!(St.flags&8192),pr=Yr(St,ze,Bu,Qn,Dr);if(pr)return pr;const zr=Qr(St.escapedName);return gZ(zr,js(ae),Bu,Qn,Dr)}function Yr(St,ze,Qn,Bu,Dr){const pr=qr(St).nameType;if(pr){if(pr.flags&384){const zr=""+pr.value;return!Nm(zr,js(ae))&&(Bu||!n3(zr))?q.createStringLiteral(zr,!!Qn):n3(zr)&&Ma(zr,"-")?q.createComputedPropertyName(q.createNumericLiteral(+zr)):gZ(zr,js(ae),Qn,Bu,Dr)}if(pr.flags&8192)return q.createComputedPropertyName(oh(pr.symbol,ze,111551))}}function yo(St){const ze={...St};return ze.typeParameterNames&&(ze.typeParameterNames=new Map(ze.typeParameterNames)),ze.typeParameterNamesByText&&(ze.typeParameterNamesByText=new Set(ze.typeParameterNamesByText)),ze.typeParameterSymbolList&&(ze.typeParameterSymbolList=new Set(ze.typeParameterSymbolList)),ze.tracker=new Wde(ze,ze.tracker.inner,ze.tracker.moduleResolverHost),ze}function $n(St,ze){return St.declarations&&Le(St.declarations,Qn=>!!m1(Qn)&&(!ze||!!Tn(Qn,Bu=>Bu===ze)))}function ws(St,ze){return!(Ju(ze)&4)||!tp(St)||S(St.typeArguments)>=y_(ze.target.typeParameters)}function N0(St){return sr(St).fakeScopeForSignatureDeclaration?St.parent:St}function od(St,ze,Qn,Bu,Dr,pr){if(!Nt(ze)&&Bu){const vu=$n(Qn,N0(Bu));if(vu&&!U0(vu)&&!Im(vu)){const Lt=m1(vu);if(Qs(Lt,vu,ze)&&ws(Lt,ze)){const si=tl(St,Lt,Dr,pr);if(si)return si}}}const zr=St.flags;ze.flags&8192&&ze.symbol===Qn&&(!St.enclosingDeclaration||Ge(Qn.declarations,vu=>zn(vu)===zn(St.enclosingDeclaration)))&&(St.flags|=1048576);const ju=C(ze,St);return St.flags=zr,ju}function Qs(St,ze,Qn){const Bu=Br(St);return Bu===Qn?!0:io(ze)&&ze.questionToken?gp(Qn,524288)===Bu:!1}function Td(St,ze,Qn,Bu,Dr){if(!Nt(ze)&&St.enclosingDeclaration){const pr=Qn.declaration&&Z4(Qn.declaration),zr=N0(St.enclosingDeclaration);if(Tn(pr,ju=>ju===zr)&&pr){const ju=Br(pr);if((ju.flags&262144&&ju.isThisType?Da(ju,Qn.mapper):ju)===ze&&ws(pr,ze)){const Lt=tl(St,pr,Bu,Dr);if(Lt)return Lt}}}return C(ze,St)}function Ac(St,ze,Qn){let Bu=!1;const Dr=hm(St);if(Xn(St)&&(uk(Dr)||Q_(Dr.parent)||vf(Dr.parent)&&z0e(Dr.parent.left)&&uk(Dr.parent.right)))return Bu=!0,{introducesError:Bu,node:St};const pr=j0(Dr,67108863,!0,!0);if(pr&&(Fu(pr,ze.enclosingDeclaration,67108863,!1).accessibility!==0?Bu=!0:(ze.tracker.trackSymbol(pr,ze.enclosingDeclaration,67108863),Qn==null||Qn(pr)),at(St))){const zr=el(pr),ju=pr.flags&262144&&!O(zr.symbol,ze.enclosingDeclaration)?mo(zr,ze):q.cloneNode(St);return ju.symbol=pr,{introducesError:Bu,node:Yn(su(ju,St),16777216)}}return{introducesError:Bu,node:St}}function tl(St,ze,Qn,Bu){d&&d.throwIfCancellationRequested&&d.throwIfCancellationRequested();let Dr=!1;const pr=zn(ze),zr=yt(ze,ju,Xr);if(Dr)return;return zr===ze?Pt(q.cloneNode(ze),ze):zr;function ju(vu){if(bFe(vu)||vu.kind===326)return q.createKeywordTypeNode(133);if(yFe(vu))return q.createKeywordTypeNode(159);if(wB(vu))return q.createUnionTypeNode([yt(vu.type,ju,Xr),q.createLiteralTypeNode(q.createNull())]);if(Sce(vu))return q.createUnionTypeNode([yt(vu.type,ju,Xr),q.createKeywordTypeNode(157)]);if(gY(vu))return yt(vu.type,ju);if(EY(vu))return q.createArrayTypeNode(yt(vu.type,ju,Xr));if(K7(vu))return q.createTypeLiteralNode(Vt(vu.jsDocPropertyTags,bi=>{const Ji=at(bi.name)?bi.name:bi.name.right,mn=he(Br(vu),Ji.escapedText),Gr=mn&&bi.typeExpression&&Br(bi.typeExpression.type)!==mn?C(mn,St):void 0;return q.createPropertySignature(void 0,Ji,bi.isBracketed||bi.typeExpression&&Sce(bi.typeExpression.type)?q.createToken(58):void 0,Gr||bi.typeExpression&&yt(bi.typeExpression.type,ju,Xr)||q.createKeywordTypeNode(133))}));if(tp(vu)&&at(vu.typeName)&&vu.typeName.escapedText==="")return su(q.createKeywordTypeNode(133),vu);if((c5(vu)||tp(vu))&&Cq(vu))return q.createTypeLiteralNode([q.createIndexSignature(void 0,[q.createParameterDeclaration(void 0,void 0,"x",void 0,yt(vu.typeArguments[0],ju,Xr))],yt(vu.typeArguments[1],ju,Xr))]);if(TB(vu))if(X8(vu)){let bi;return q.createConstructorTypeNode(void 0,kn(vu.typeParameters,ju,wl),qi(vu.parameters,(Ji,mn)=>Ji.name&&at(Ji.name)&&Ji.name.escapedText==="new"?(bi=Ji.type,void 0):q.createParameterDeclaration(void 0,Lt(Ji),si(Ji,mn),Ji.questionToken,yt(Ji.type,ju,Xr),void 0)),yt(bi||vu.type,ju,Xr)||q.createKeywordTypeNode(133))}else return q.createFunctionTypeNode(kn(vu.typeParameters,ju,wl),Vt(vu.parameters,(bi,Ji)=>q.createParameterDeclaration(void 0,Lt(bi),si(bi,Ji),bi.questionToken,yt(bi.type,ju,Xr),void 0)),yt(vu.type,ju,Xr)||q.createKeywordTypeNode(133));if(tp(vu)&&_j(vu)&&(!ws(vu,Br(vu))||Zdt(vu)||Xt===oT(vu,788968,!0)))return su(C(Br(vu),St),vu);if(zx(vu)){const bi=sr(vu).resolvedSymbol;return _j(vu)&&bi&&(!vu.isTypeOf&&!(bi.flags&788968)||!(S(vu.typeArguments)>=y_(sn(bi))))?su(C(Br(vu),St),vu):q.updateImportTypeNode(vu,q.updateLiteralTypeNode(vu.argument,Gi(vu,vu.argument.literal)),vu.attributes,vu.qualifier,kn(vu.typeArguments,ju,Xr),vu.isTypeOf)}if(sm(vu)||tc(vu)){const{introducesError:bi,node:Ji}=Ac(vu,St,Qn);if(Dr=Dr||bi,Ji!==vu)return Ji}return pr&&yB(vu)&&s0(pr,vu.pos).line===s0(pr,vu.end).line&&Yn(vu,1),rn(vu,ju,Dg);function Lt(bi){return bi.dotDotDotToken||(bi.type&&EY(bi.type)?q.createToken(26):void 0)}function si(bi,Ji){return bi.name&&at(bi.name)&&bi.name.escapedText==="this"?"this":Lt(bi)?"args":`arg${Ji}`}function Gi(bi,Ji){if(Bu){if(St.tracker&&St.tracker.moduleResolverHost){const mn=tIe(bi);if(mn){const Au={getCanonicalFileName:N1(!!t.useCaseSensitiveFileNames),getCurrentDirectory:()=>St.tracker.moduleResolverHost.getCurrentDirectory(),getCommonSourceDirectory:()=>St.tracker.moduleResolverHost.getCommonSourceDirectory()},Do=zq(Au,mn);return q.createStringLiteral(Do)}}}else if(St.tracker&&St.tracker.trackExternalModuleSymbolOfImportTypeNode){const mn=x3(Ji,Ji,void 0);mn&&St.tracker.trackExternalModuleSymbolOfImportTypeNode(mn)}return Ji}}}function bm(St,ze,Qn){var Bu;const Dr=Hd(q.createPropertyDeclaration,174,!0),pr=Hd((ai,Lu,fr,rr)=>q.createPropertySignature(ai,Lu,fr,rr),173,!1),zr=ze.enclosingDeclaration;let ju=[];const vu=new Set,Lt=[],si=ze;ze={...si,usedSymbolNames:new Set(si.usedSymbolNames),remappedSymbolNames:new Map,remappedSymbolReferences:new Map((Bu=si.remappedSymbolReferences)==null?void 0:Bu.entries()),tracker:void 0};const Gi={...si.tracker.inner,trackSymbol:(ai,Lu,fr)=>{var rr,mr;if((rr=ze.remappedSymbolNames)!=null&&rr.has(Yo(ai)))return!1;if(Fu(ai,Lu,fr,!1).accessibility===0){const zo=Ri(ai,ze,fr);if(!(ai.flags&4)){const so=zo[0],is=zn(si.enclosingDeclaration);Ge(so.declarations,e0=>zn(e0)===is)&&pl(so)}}else if((mr=si.tracker.inner)!=null&&mr.trackSymbol)return si.tracker.inner.trackSymbol(ai,Lu,fr);return!1}};ze.tracker=new Wde(ze,Gi,si.tracker.moduleResolverHost),f1(St,(ai,Lu)=>{const fr=Qr(Lu);Zf(ai,fr)});let bi=!Qn;const Ji=St.get("export=");return Ji&&St.size>1&&Ji.flags&2097152&&(St=Ho(),St.set("export=",Ji)),ds(St),lr(ju);function mn(ai){return!!ai&&ai.kind===80}function Gr(ai){return Jl(ai)?ti(Vt(ai.declarationList.declarations,Ya),mn):ti([Ya(ai)],mn)}function Au(ai){const Lu=Le(ai,ic),fr=Ue(ai,xc);let rr=fr!==-1?ai[fr]:void 0;if(rr&&Lu&&Lu.isExportEquals&&at(Lu.expression)&&at(rr.name)&&fu(rr.name)===fu(Lu.expression)&&rr.body&&aE(rr.body)){const mr=ti(ai,so=>!!(Dh(so)&32)),Xs=rr.name;let zo=rr.body;if(S(mr)&&(rr=q.updateModuleDeclaration(rr,rr.modifiers,rr.name,zo=q.updateModuleBlock(zo,q.createNodeArray([...rr.body.statements,q.createExportDeclaration(void 0,!1,q.createNamedExports(Vt(Vu(mr,so=>Gr(so)),so=>q.createExportSpecifier(!1,void 0,so))),void 0)]))),ai=[...ai.slice(0,fr),rr,...ai.slice(fr+1)]),!Le(ai,so=>so!==rr&&VO(so,Xs))){ju=[];const so=!Ge(zo.statements,is=>Qu(is,32)||ic(is)||$c(is));L(zo.statements,is=>{kl(is,so?32:0)}),ai=[...ti(ai,is=>is!==rr&&is!==Lu),...ju]}}return ai}function Do(ai){const Lu=ti(ai,rr=>$c(rr)&&!rr.moduleSpecifier&&!!rr.exportClause&&ip(rr.exportClause));S(Lu)>1&&(ai=[...ti(ai,mr=>!$c(mr)||!!mr.moduleSpecifier||!mr.exportClause),q.createExportDeclaration(void 0,!1,q.createNamedExports(Vu(Lu,mr=>Po(mr.exportClause,ip).elements)),void 0)]);const fr=ti(ai,rr=>$c(rr)&&!!rr.moduleSpecifier&&!!rr.exportClause&&ip(rr.exportClause));if(S(fr)>1){const rr=CN(fr,mr=>rs(mr.moduleSpecifier)?">"+mr.moduleSpecifier.text:">");if(rr.length!==fr.length)for(const mr of rr)mr.length>1&&(ai=[...ti(ai,Xs=>!mr.includes(Xs)),q.createExportDeclaration(void 0,!1,q.createNamedExports(Vu(mr,Xs=>Po(Xs.exportClause,ip).elements)),mr[0].moduleSpecifier)])}return ai}function pn(ai){const Lu=Ue(ai,fr=>$c(fr)&&!fr.moduleSpecifier&&!fr.attributes&&!!fr.exportClause&&ip(fr.exportClause));if(Lu>=0){const fr=ai[Lu],rr=qi(fr.exportClause.elements,mr=>{if(!mr.propertyName){const Xs=Cr(ai),zo=ti(Xs,so=>VO(ai[so],mr.name));if(S(zo)&&ye(zo,so=>aV(ai[so]))){for(const so of zo)ai[so]=Zr(ai[so]);return}}return mr});S(rr)?ai[Lu]=q.updateExportDeclaration(fr,fr.modifiers,fr.isTypeOnly,q.updateNamedExports(fr.exportClause,rr),fr.moduleSpecifier,fr.attributes):mv(ai,Lu)}return ai}function lr(ai){return ai=Au(ai),ai=Do(ai),ai=pn(ai),zr&&(ca(zr)&&cm(zr)||xc(zr))&&(!Ge(ai,QO)||!Ebe(ai)&&Ge(ai,KU))&&ai.push(PV(q)),ai}function Zr(ai){const Lu=(Dh(ai)|32)&-129;return q.replaceModifiers(ai,Lu)}function La(ai){const Lu=Dh(ai)&-33;return q.replaceModifiers(ai,Lu)}function ds(ai,Lu,fr){Lu||Lt.push(new Map),ai.forEach(rr=>{pd(rr,!1,!!fr)}),Lu||(Lt[Lt.length-1].forEach(rr=>{pd(rr,!0,!!fr)}),Lt.pop())}function pd(ai,Lu,fr){const rr=Ws(ai);if(vu.has(Yo(rr)))return;if(vu.add(Yo(rr)),!Lu||S(ai.declarations)&&Ge(ai.declarations,Xs=>!!Tn(Xs,zo=>zo===zr))){const Xs=ze;ze=yo(ze),yl(ai,Lu,fr),ze.reportedDiagnostic&&(si.reportedDiagnostic=ze.reportedDiagnostic),ze.trackedSymbols&&(Xs.trackedSymbols?H.assert(ze.trackedSymbols===Xs.trackedSymbols):Xs.trackedSymbols=ze.trackedSymbols),ze=Xs}}function yl(ai,Lu,fr,rr=ai.escapedName){var mr,Xs,zo,so,is,e0;const M0=Qr(rr),Uh=rr==="default";if(Lu&&!(ze.flags&131072)&&m7(M0)&&!Uh){ze.encounteredError=!0;return}let W1=Uh&&!!(ai.flags&-113||ai.flags&16&&S(u0(Wn(ai))))&&!(ai.flags&2097152),G1=!W1&&!Lu&&m7(M0)&&!Uh;(W1||G1)&&(Lu=!0);const gl=(Lu?0:32)|(Uh&&!W1?2048:0),k1=ai.flags&1536&&ai.flags&7&&rr!=="export=",w3=k1&&Js(Wn(ai),ai);if((ai.flags&8208||w3)&&lu(Wn(ai),ai,Zf(ai,M0),gl),ai.flags&524288&&Ft(ai,M0,gl),ai.flags&98311&&rr!=="export="&&!(ai.flags&4194304)&&!(ai.flags&32)&&!(ai.flags&8192)&&!w3)if(fr)P0(ai)&&(G1=!1,W1=!1);else{const F1=Wn(ai),Yf=Zf(ai,M0);if(F1.symbol&&F1.symbol!==ai&&F1.symbol.flags&16&&Ge(F1.symbol.declarations,O2)&&((mr=F1.symbol.members)!=null&&mr.size||(Xs=F1.symbol.exports)!=null&&Xs.size))ze.remappedSymbolReferences||(ze.remappedSymbolReferences=new Map),ze.remappedSymbolReferences.set(Yo(F1.symbol),ai),yl(F1.symbol,Lu,fr,rr),ze.remappedSymbolReferences.delete(Yo(F1.symbol));else if(!(ai.flags&16)&&Js(F1,ai))lu(F1,ai,Yf,gl);else{const uS=ai.flags&2?zz(ai)?2:1:(zo=ai.parent)!=null&&zo.valueDeclaration&&ca((so=ai.parent)==null?void 0:so.valueDeclaration)?2:void 0,LE=W1||!(ai.flags&4)?Yf:IC(Yf,ai);let L6=ai.declarations&&Le(ai.declarations,KW=>ra(KW));L6&&Ad(L6.parent)&&L6.parent.declarations.length===1&&(L6=L6.parent.parent);const N6=(is=ai.declarations)==null?void 0:is.find(Ru);if(N6&&eu(N6.parent)&&at(N6.parent.right)&&((e0=F1.symbol)!=null&&e0.valueDeclaration)&&ca(F1.symbol.valueDeclaration)){const KW=Yf===N6.parent.right.escapedText?void 0:N6.parent.right;kl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,KW,Yf)])),0),ze.tracker.trackSymbol(F1.symbol,ze.enclosingDeclaration,111551)}else{const KW=Pt(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(LE,void 0,od(ze,F1,ai,zr,pl,Qn))],uS)),L6);kl(KW,LE!==Yf?gl&-33:gl),LE!==Yf&&!Lu&&(kl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,LE,Yf)])),0),G1=!1,W1=!1)}}}if(ai.flags&384&&un(ai,M0,gl),ai.flags&32&&(ai.flags&4&&ai.valueDeclaration&&eu(ai.valueDeclaration.parent)&&e1(ai.valueDeclaration.parent.right)?po(ai,Zf(ai,M0),gl):Jo(ai,Zf(ai,M0),gl)),(ai.flags&1536&&(!k1||Bn(ai))||w3)&&xu(ai,M0,gl),ai.flags&64&&!(ai.flags&32)&&$t(ai,M0,gl),ai.flags&2097152&&po(ai,Zf(ai,M0),gl),ai.flags&4&&ai.escapedName==="export="&&P0(ai),ai.flags&8388608&&ai.declarations)for(const F1 of ai.declarations){const Yf=Wh(F1,F1.moduleSpecifier);Yf&&kl(q.createExportDeclaration(void 0,F1.isTypeOnly,void 0,q.createStringLiteral(_n(Yf,ze))),0)}W1?kl(q.createExportAssignment(void 0,!1,q.createIdentifier(Zf(ai,M0))),0):G1&&kl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,Zf(ai,M0),M0)])),0)}function pl(ai){if(Ge(ai.declarations,T2))return;H.assertIsDefined(Lt[Lt.length-1]),IC(Qr(ai.escapedName),ai);const Lu=!!(ai.flags&2097152)&&!Ge(ai.declarations,fr=>!!Tn(fr,$c)||r_(fr)||_1(fr)&&!a_(fr.moduleReference));Lt[Lu?0:Lt.length-1].set(Yo(ai),ai)}function K1(ai){return ca(ai)&&(cm(ai)||J4(ai))||P1(ai)&&!Qg(ai)}function kl(ai,Lu){if(Kp(ai)){let fr=0;const rr=ze.enclosingDeclaration&&($4(ze.enclosingDeclaration)?zn(ze.enclosingDeclaration):ze.enclosingDeclaration);Lu&32&&rr&&(K1(rr)||xc(rr))&&aV(ai)&&(fr|=32),bi&&!(fr&32)&&(!rr||!(rr.flags&33554432))&&(Rv(ai)||Jl(ai)||td(ai)||Jc(ai)||xc(ai))&&(fr|=128),Lu&2048&&(Jc(ai)||Ch(ai)||td(ai))&&(fr|=2048),fr&&(ai=q.replaceModifiers(ai,fr|Dh(ai)))}ju.push(ai)}function Ft(ai,Lu,fr){var rr;const mr=adt(ai),Xs=qr(ai).typeParameters,zo=Vt(Xs,W1=>zt(W1,ze)),so=(rr=ai.declarations)==null?void 0:rr.find($4),is=WO(so?so.comment||so.parent.comment:void 0),e0=ze.flags;ze.flags|=8388608;const M0=ze.enclosingDeclaration;ze.enclosingDeclaration=so;const Uh=so&&so.typeExpression&&kk(so.typeExpression)&&tl(ze,so.typeExpression.type,pl,Qn)||C(mr,ze);kl(Pv(q.createTypeAliasDeclaration(void 0,Zf(ai,Lu),zo,Uh),is?[{kind:3,text:`* + * `+is.replace(/\n/g,` * `)+` - `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),dr),ze.flags=Xs,ze.enclosingDeclaration=L0}function $t(ai,Bu,dr){const nr=b4(ai),hr=sn(ai),Qs=Vt(hr,W1=>zt(W1,ze)),zo=Zc(nr),so=S(zo)?Ds(zo):void 0,ts=ju(n0(nr),W1=>BE(W1,so)),Xs=wE(0,nr,so,179),L0=wE(1,nr,so,180),$h=Jb(nr,so),K1=S(zo)?[q.createHeritageClause(96,qi(zo,W1=>nS(W1,111551)))]:void 0;yl(q.createInterfaceDeclaration(void 0,Zf(ai,Bu),Qs,K1,[...$h,...L0,...Xs,...ts]),dr)}function Mi(ai){const Bu=$f(ai);return Bu?ti(ga(Bu.values()),dr=>Qa(dr)&&Lm(dr.escapedName,99)):[]}function Bn(ai){return ye(Mi(ai),Bu=>!(O1(yc(Bu))&111551))}function Du(ai,Bu,dr){const nr=Mi(ai),hr=mO(nr,so=>so.parent&&so.parent===ai?"real":"merged"),Qs=hr.get("real")||_t,zo=hr.get("merged")||_t;if(S(Qs)){const so=Zf(ai,Bu);Br(Qs,so,dr,!!(ai.flags&67108880))}if(S(zo)){const so=zn(ze.enclosingDeclaration),ts=Zf(ai,Bu),Xs=q.createModuleBlock([q.createExportDeclaration(void 0,!1,q.createNamedExports(qi(ti(zo,L0=>L0.escapedName!=="export="),L0=>{var $h,K1;const W1=Qr(L0.escapedName),ml=Zf(L0,W1),y1=L0.declarations&&rp(L0);if(so&&(y1?so!==zn(y1):!Oe(L0.declarations,Yf=>zn(Yf)===so))){(K1=($h=ze.tracker)==null?void 0:$h.reportNonlocalAugmentation)==null||K1.call($h,so,ai,L0);return}const B3=y1&&E4(y1,!0);fl(B3||L0);const k1=B3?Zf(B3,Qr(B3.escapedName)):ml;return q.createExportSpecifier(!1,W1===k1?void 0:k1,W1)})))]);yl(q.createModuleDeclaration(void 0,q.createIdentifier(ts),Xs,32),0)}}function un(ai,Bu,dr){yl(q.createEnumDeclaration(q.createModifiersFromModifierFlags(pze(ai)?4096:0),Zf(ai,Bu),Vt(ti(n0(Wn(ai)),nr=>!!(nr.flags&8)),nr=>{const hr=nr.declarations&&nr.declarations[0]&&J2(nr.declarations[0])?Jze(nr.declarations[0]):void 0;return q.createEnumMember(Qr(nr.escapedName),hr===void 0?void 0:typeof hr=="string"?q.createStringLiteral(hr):q.createNumericLiteral(hr))})),dr)}function lu(ai,Bu,dr,nr){const hr=go(ai,0);for(const Qs of hr){const zo=Te(Qs,262,ze,{name:q.createIdentifier(dr),privateSymbolVisitor:fl,bundledImports:Yn});yl(Pt(zo,_r(Qs)),nr)}if(!(Bu.flags&1536&&Bu.exports&&Bu.exports.size)){const Qs=ti(n0(ai),Qa);Br(Qs,dr,nr,!0)}}function _r(ai){if(ai.declaration&&ai.declaration.parent){if(Xn(ai.declaration.parent)&&Xl(ai.declaration.parent)===5)return ai.declaration.parent;if(ua(ai.declaration.parent)&&ai.declaration.parent.parent)return ai.declaration.parent.parent}return ai.declaration}function Br(ai,Bu,dr,nr){if(S(ai)){const Qs=mO(ai,ml=>!S(ml.declarations)||Oe(ml.declarations,y1=>zn(y1)===zn(ze.enclosingDeclaration))?"local":"remote").get("local")||_t;let zo=a_.createModuleDeclaration(void 0,q.createIdentifier(Bu),q.createModuleBlock([]),32);ks(zo,Mr),zo.locals=Vo(ai),zo.symbol=ai[0].parent;const so=Ou;Ou=[];const ts=yi;yi=!1;const Xs={...ze,enclosingDeclaration:zo},L0=ze;ze=Xs,cs(Vo(Qs),nr,!0),ze=L0,yi=ts;const $h=Ou;Ou=so;const K1=Vt($h,ml=>tc(ml)&&!ml.isExportEquals&&at(ml.expression)?q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ml.expression,q.createIdentifier("default"))])):ml),W1=ye(K1,ml=>Yu(ml,32))?Vt(K1,La):K1;zo=q.updateModuleDeclaration(zo,zo.modifiers,zo.name,q.createModuleBlock(W1)),yl(zo,dr)}}function Qa(ai){return!!(ai.flags&2887656)||!(ai.flags&4194304||ai.escapedName==="prototype"||ai.valueDeclaration&&No(ai.valueDeclaration)&&mr(ai.valueDeclaration.parent))}function Oo(ai){const Bu=qi(ai,dr=>{const nr=ze.enclosingDeclaration;ze.enclosingDeclaration=dr;let hr=dr.expression;if(ec(hr)){if(at(hr)&&fu(hr)==="")return Qs(void 0);let zo;if({introducesError:zo,node:hr}=kc(hr,ze,fl),zo)return Qs(void 0)}return Qs(q.createExpressionWithTypeArguments(hr,Vt(dr.typeArguments,zo=>el(ze,zo,fl,Yn)||C(Ar(zo),ze))));function Qs(zo){return ze.enclosingDeclaration=nr,zo}});if(Bu.length===ai.length)return Bu}function Wo(ai,Bu,dr){var nr,hr;const Qs=(nr=ai.declarations)==null?void 0:nr.find(mr),zo=ze.enclosingDeclaration;ze.enclosingDeclaration=Qs||zo;const so=sn(ai),ts=Vt(so,LE=>zt(LE,ze)),Xs=xm(b4(ai)),L0=Zc(Xs),$h=Qs&&iB(Qs),K1=$h&&Oo($h)||qi(_D(Xs),BD),W1=Wn(ai),ml=!!((hr=W1.symbol)!=null&&hr.valueDeclaration)&&mr(W1.symbol.valueDeclaration),y1=ml?qc(W1):me,B3=[...S(L0)?[q.createHeritageClause(96,Vt(L0,LE=>xT(LE,y1,Bu)))]:[],...S(K1)?[q.createHeritageClause(119,K1)]:[]],k1=i0i(Xs,L0,n0(Xs)),Yf=ti(k1,LE=>{const $z=LE.valueDeclaration;return!!$z&&!(mh($z)&&ea($z.name))}),TE=Oe(k1,LE=>{const $z=LE.valueDeclaration;return!!$z&&mh($z)&&ea($z.name)})?[q.createPropertyDeclaration(void 0,q.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:_t,L6=ju(Yf,LE=>Er(LE,!1,L0[0])),N6=ju(ti(n0(W1),LE=>!(LE.flags&4194304)&&LE.escapedName!=="prototype"&&!Qa(LE)),LE=>Er(LE,!0,y1)),_ci=!ml&&!!ai.valueDeclaration&&Qn(ai.valueDeclaration)&&!Oe(go(W1,1))?[q.createConstructorDeclaration(q.createModifiersFromModifierFlags(2),[],void 0)]:wE(1,W1,y1,176),Dci=Jb(Xs,L0[0]);ze.enclosingDeclaration=zo,yl(Pt(q.createClassDeclaration(void 0,Bu,ts,B3,[...Dci,...N6,..._ci,...L6,...TE]),ai.declarations&&ti(ai.declarations,LE=>Wc(LE)||Xd(LE))[0]),dr)}function xr(ai){return G(ai,Bu=>{if(bf(Bu)||eh(Bu))return fu(Bu.propertyName||Bu.name);if(Xn(Bu)||tc(Bu)){const dr=tc(Bu)?Bu.expression:Bu.right;if(Iu(dr))return fu(dr.name)}if(sC(Bu)){const dr=Za(Bu);if(dr&&at(dr))return fu(dr)}})}function mo(ai,Bu,dr){var nr,hr,Qs,zo,so;const ts=rp(ai);if(!ts)return H.fail();const Xs=Ks(E4(ts,!0));if(!Xs)return;let L0=$N(Xs)&&xr(ai.declarations)||Qr(Xs.escapedName);L0==="export="&&pe&&(L0="default");const $h=Zf(Xs,L0);switch(fl(Xs),ts.kind){case 208:if(((hr=(nr=ts.parent)==null?void 0:nr.parent)==null?void 0:hr.kind)===260){const ml=_n(Xs.parent||Xs,ze),{propertyName:y1}=ts;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,y1&&at(y1)?q.createIdentifier(fu(y1)):void 0,q.createIdentifier(Bu))])),q.createStringLiteral(ml),void 0),0);break}H.failBadSyntaxKind(((Qs=ts.parent)==null?void 0:Qs.parent)||ts,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((so=(zo=ts.parent)==null?void 0:zo.parent)==null?void 0:so.kind)===226&&es(Qr(ai.escapedName),$h);break;case 260:if(Iu(ts.initializer)){const ml=ts.initializer,y1=q.createUniqueName(Bu),B3=_n(Xs.parent||Xs,ze);yl(q.createImportEqualsDeclaration(void 0,!1,y1,q.createExternalModuleReference(q.createStringLiteral(B3))),0),yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Bu),q.createQualifiedName(y1,ml.name)),dr);break}case 271:if(Xs.escapedName==="export="&&Oe(Xs.declarations,ml=>la(ml)&&W4(ml))){T0(ai);break}const K1=!(Xs.flags&512)&&!ua(ts);yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Bu),K1?ka(Xs,ze,67108863,!1):q.createExternalModuleReference(q.createStringLiteral(_n(Xs,ze)))),K1?dr:0);break;case 270:yl(q.createNamespaceExportDeclaration(fu(ts.name)),0);break;case 273:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,q.createIdentifier(Bu),void 0),y1,ts.parent.attributes),0);break}case 274:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(q.createIdentifier(Bu))),y1,ts.parent.attributes),0);break}case 280:yl(q.createExportDeclaration(void 0,!1,q.createNamespaceExport(q.createIdentifier(Bu)),q.createStringLiteral(_n(Xs,ze))),0);break;case 276:{const ml=_n(Xs.parent||Xs,ze),y1=Yn?q.createStringLiteral(ml):ts.parent.parent.parent.moduleSpecifier;yl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,Bu!==L0?q.createIdentifier(L0):void 0,q.createIdentifier(Bu))])),y1,ts.parent.parent.parent.attributes),0);break}case 281:const W1=ts.parent.parent.moduleSpecifier;es(Qr(ai.escapedName),W1?L0:$h,W1&&t0(W1)?q.createStringLiteral(W1.text):void 0);break;case 277:T0(ai);break;case 226:case 211:case 212:ai.escapedName==="default"||ai.escapedName==="export="?T0(ai):es(Bu,$h);break;default:return H.failBadSyntaxKind(ts,"Unhandled alias declaration kind in symbol serializer!")}}function es(ai,Bu,dr){yl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ai!==Bu?Bu:void 0,ai)]),dr),0)}function T0(ai){var Bu;if(ai.flags&4194304)return!1;const dr=Qr(ai.escapedName),nr=dr==="export=",Qs=nr||dr==="default",zo=ai.declarations&&rp(ai),so=zo&&E4(zo,!0);if(so&&S(so.declarations)&&Oe(so.declarations,ts=>zn(ts)===zn(Mr))){const ts=zo&&(tc(zo)||Xn(zo)?K0e(zo):fye(zo)),Xs=ts&&ec(ts)?g0i(ts):void 0,L0=Xs&&R0(Xs,67108863,!0,!0,Mr);(L0||so)&&fl(L0||so);const $h=ze.tracker.disableTrackSymbol;if(ze.tracker.disableTrackSymbol=!0,Qs)Ou.push(q.createExportAssignment(void 0,nr,ah(so,ze,67108863)));else if(Xs===ts&&Xs)es(dr,fu(Xs));else if(ts&&Xd(ts))es(dr,Zf(so,lc(so)));else{const K1=zC(dr,ai);yl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(K1),ka(so,ze,67108863,!1)),0),es(dr,K1)}return ze.tracker.disableTrackSymbol=$h,!0}else{const ts=zC(dr,ai),Xs=vm(Wn(Ks(ai)));if(Gs(Xs,ai))lu(Xs,ai,ts,Qs?0:32);else{const L0=((Bu=ze.enclosingDeclaration)==null?void 0:Bu.kind)===267&&(!(ai.flags&98304)||ai.flags&65536)?1:2,$h=q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ts,void 0,ad(ze,Xs,ai,Mr,fl,Yn))],L0));yl($h,so&&so.flags&4&&so.escapedName==="export="?128:dr===ts?32:0)}return Qs?(Ou.push(q.createExportAssignment(void 0,nr,q.createIdentifier(ts))),!0):dr!==ts?(es(dr,ts),!0):!1}}function Gs(ai,Bu){const dr=zn(ze.enclosingDeclaration);return Gu(ai)&48&&!S(kh(ai))&&!O9(ai)&&!!(S(ti(n0(ai),Qa))||S(go(ai,0)))&&!S(go(ai,1))&&!$n(Bu,Mr)&&!(ai.symbol&&Oe(ai.symbol.declarations,nr=>zn(nr)!==dr))&&!Oe(n0(ai),nr=>XK(nr.escapedName))&&!Oe(n0(ai),nr=>Oe(nr.declarations,hr=>zn(hr)!==dr))&&ye(n0(ai),nr=>Lm(lc(nr),Ce)?nr.flags&98304?E6(nr)===mF(nr):!0:!1)}function Hd(ai,Bu,dr){return function(hr,Qs,zo){var so,ts,Xs,L0,$h;const K1=l4(hr),W1=!!(K1&2);if(Qs&&hr.flags&2887656)return[];if(hr.flags&4194304||hr.escapedName==="constructor"||zo&&qo(zo,hr.escapedName)&&Ng(qo(zo,hr.escapedName))===Ng(hr)&&(hr.flags&16777216)===(qo(zo,hr.escapedName).flags&16777216)&&CD(Wn(hr),he(zo,hr.escapedName)))return[];const ml=K1&-1025|(Qs?256:0),y1=Kn(hr,ze),B3=(so=hr.declarations)==null?void 0:so.find(dg(ko,wx,ua,Mm,Xn,Iu));if(hr.flags&98304&&dr){const k1=[];if(hr.flags&65536){const Yf=hr.declarations&&L(hr.declarations,TE=>{if(TE.kind===178)return TE;if(Mo(TE)&&rk(TE))return L(TE.arguments[2].properties,L6=>{const N6=Za(L6);if(N6&&at(N6)&&fu(N6)==="set")return L6})});H.assert(!!Yf);const uS=$0(Yf)?dp(Yf).parameters[0]:void 0;k1.push(Pt(q.createSetAccessorDeclaration(q.createModifiersFromModifierFlags(ml),y1,[q.createParameterDeclaration(void 0,void 0,uS?dn(uS,gi(uS),ze):"value",void 0,W1?void 0:ad(ze,Wn(hr),hr,Mr,fl,Yn))],void 0),((ts=hr.declarations)==null?void 0:ts.find(e5))||B3))}if(hr.flags&32768){const Yf=K1&2;k1.push(Pt(q.createGetAccessorDeclaration(q.createModifiersFromModifierFlags(ml),y1,[],Yf?void 0:ad(ze,Wn(hr),hr,Mr,fl,Yn),void 0),((Xs=hr.declarations)==null?void 0:Xs.find(Lx))||B3))}return k1}else if(hr.flags&98311)return Pt(ai(q.createModifiersFromModifierFlags((Ng(hr)?8:0)|ml),y1,hr.flags&16777216?q.createToken(58):void 0,W1?void 0:ad(ze,mF(hr),hr,Mr,fl,Yn),void 0),((L0=hr.declarations)==null?void 0:L0.find(dg(ko,ua)))||B3);if(hr.flags&8208){const k1=Wn(hr),Yf=go(k1,0);if(ml&2)return Pt(ai(q.createModifiersFromModifierFlags((Ng(hr)?8:0)|ml),y1,hr.flags&16777216?q.createToken(58):void 0,void 0,void 0),(($h=hr.declarations)==null?void 0:$h.find($0))||Yf[0]&&Yf[0].declaration||hr.declarations&&hr.declarations[0]);const uS=[];for(const TE of Yf){const L6=Te(TE,Bu,ze,{name:y1,questionToken:hr.flags&16777216?q.createToken(58):void 0,modifiers:ml?q.createModifiersFromModifierFlags(ml):void 0}),N6=TE.declaration&&kj(TE.declaration.parent)?TE.declaration.parent:TE.declaration;uS.push(Pt(L6,N6))}return uS}return H.fail(`Unhandled class member kind! ${hr.__debugFlags||hr.flags}`)}}function BE(ai,Bu){return fr(ai,!1,Bu)}function wE(ai,Bu,dr,nr){const hr=go(Bu,ai);if(ai===1){if(!dr&&ye(hr,so=>S(so.parameters)===0))return[];if(dr){const so=go(dr,1);if(!S(so)&&ye(hr,ts=>S(ts.parameters)===0))return[];if(so.length===hr.length){let ts=!1;for(let Xs=0;XsC(hr,ze)),nr=ah(ai.target.symbol,ze,788968)):ai.symbol&&Ht(ai.symbol,Mr,Bu)&&(nr=ah(ai.symbol,ze,788968)),nr)return q.createExpressionWithTypeArguments(nr,dr)}function BD(ai){const Bu=nS(ai,788968);if(Bu)return Bu;if(ai.symbol)return q.createExpressionWithTypeArguments(ah(ai.symbol,ze,788968),void 0)}function zC(ai,Bu){var dr,nr;const hr=Bu?Zo(Bu):void 0;if(hr&&ze.remappedSymbolNames.has(hr))return ze.remappedSymbolNames.get(hr);Bu&&(ai=Sie(Bu,ai));let Qs=0;const zo=ai;for(;(dr=ze.usedSymbolNames)!=null&&dr.has(ai);)Qs++,ai=`${zo}_${Qs}`;return(nr=ze.usedSymbolNames)==null||nr.add(ai),hr&&ze.remappedSymbolNames.set(hr,ai),ai}function Sie(ai,Bu){if(Bu==="default"||Bu==="__class"||Bu==="__function"){const dr=ze.flags;ze.flags|=16777216;const nr=__(ai,ze);ze.flags=dr,Bu=nr.length>0&&_j(nr.charCodeAt(0))?$4(nr):nr}return Bu==="default"?Bu="_default":Bu==="export="&&(Bu="_exports"),Bu=Lm(Bu,Ce)&&!m7(Bu)?Bu:"_"+Bu.replace(/[^a-zA-Z0-9]/g,"_"),Bu}function Zf(ai,Bu){const dr=Zo(ai);return ze.remappedSymbolNames.has(dr)?ze.remappedSymbolNames.get(dr):(Bu=Sie(ai,Bu),ze.remappedSymbolNames.set(dr,Bu),Bu)}}}function E_(l,m,D=16384,C){return C?A(C).getText():GN(A);function A(w){const I=q.createTypePredicateNode(l.kind===2||l.kind===3?q.createToken(131):void 0,l.kind===1||l.kind===3?q.createIdentifier(l.parameterName):q.createThisTypeNode(),l.type&&Yt.typeToTypeNode(l.type,m,DC(D)|70221824|512)),U=X2(),Z=m&&zn(m);return U.writeNode(4,I,Z,w),w}}function M5(l){const m=[];let D=0;for(let C=0;CZa(I)?I:void 0);const w=A&&Za(A);if(A&&w){if(Mo(A)&&rk(A))return lc(l);if(Ps(w)&&!(Gl(l)&4096)){const I=Ur(l).nameType;if(I&&I.flags&384){const U=hz(l,m);if(U!==void 0)return U}}return b0(w)}if(A||(A=l.declarations[0]),A.parent&&A.parent.kind===260)return b0(A.parent.name);switch(A.kind){case 231:case 218:case 219:return m&&!m.encounteredError&&!(m.flags&131072)&&(m.encounteredError=!0),A.kind===231?"(Anonymous class)":"(Anonymous function)"}}const C=hz(l,m);return C!==void 0?C:lc(l)}function pD(l){if(l){const D=ar(l);return D.isVisible===void 0&&(D.isVisible=!!m()),D.isVisible}return!1;function m(){switch(l.kind){case 345:case 353:case 347:return!!(l.parent&&l.parent.parent&&l.parent.parent.parent&&la(l.parent.parent.parent));case 208:return pD(l.parent.parent);case 260:if(So(l.name)&&!l.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(v2(l))return!0;const D=dF(l);return!(f_e(l)&32)&&!(l.kind!==271&&D.kind!==312&&D.flags&33554432)?pE(D):pD(D);case 172:case 171:case 177:case 178:case 174:case 173:if(Rf(l,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return pD(l.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function qw(l,m){let D;l.parent&&l.parent.kind===277?D=uc(l,l.escapedText,2998271,void 0,l,!1):l.parent.kind===281&&(D=Db(l.parent,2998271));let C,A;return D&&(A=new Set,A.add(Zo(D)),w(D.declarations)),C;function w(I){L(I,U=>{const Z=A9(U)||U;if(m?ar(U).isVisible=!0:(C=C||[],xa(C,Z)),U8(U)){const ce=U.moduleReference,Fe=hm(ce),Te=uc(U,Fe.escapedText,901119,void 0,void 0,!1);Te&&A&&r0(A,Zo(Te))&&w(Te.declarations)}})}}function D_(l,m){const D=xC(l,m);if(D>=0){const{length:C}=cD;for(let A=D;A=lb;D--){if(mte(cD[D],Gk[D]))return-1;if(cD[D]===l&&Gk[D]===m)return D}return-1}function mte(l,m){switch(m){case 0:return!!Ur(l).type;case 5:return!!ar(l).resolvedEnumType;case 2:return!!Ur(l).declaredType;case 1:return!!l.resolvedBaseConstructorType;case 3:return!!l.resolvedReturnType;case 4:return!!l.immediateBaseConstraint;case 6:return!!l.resolvedTypeArguments;case 7:return!!l.baseTypesResolved;case 8:return!!Ur(l).writeType;case 9:return ar(l).parameterInitializerContainsUndefined!==void 0}return H.assertNever(m)}function CE(){return cD.pop(),Gk.pop(),i6.pop()}function dF(l){return Tn(XE(l),m=>{switch(m.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function YK(l){const m=X0(cf(l));return m.typeParameters?R5(m,Vt(m.typeParameters,D=>me)):m}function he(l,m){const D=qo(l,m);return D?Wn(D):void 0}function Re(l,m){var D;let C;return he(l,m)||(C=(D=G9(l,m))==null?void 0:D.type)&&Vd(C,!0,!0)}function nt(l){return l&&(l.flags&1)!==0}function Nt(l){return l===Ot||!!(l.flags&1&&l.aliasSymbol)}function bi(l,m){if(m!==0)return gD(l,!1,m);const D=_u(l);return D&&Ur(D).type||gD(l,!1,m)}function en(l,m,D){if(l=Ic(l,Z=>!(Z.flags&98304)),l.flags&131072)return Ko;if(l.flags&1048576)return hl(l,Z=>en(Z,m,D));let C=er(Vt(m,j5));const A=[],w=[];for(const Z of n0(l)){const ce=yz(Z,8576);!ms(ce,C)&&!(l4(Z)&6)&&Oge(Z)?A.push(Z):w.push(ce)}if(Lb(l)||AC(C)){if(w.length&&(C=er([C,...w])),C.flags&131072)return l;const Z=Sei();return Z?aT(Z,[l,C]):Ot}const I=Vo();for(const Z of A)I.set(Z.escapedName,APe(Z,!1));const U=Ol(D,I,_t,_t,kh(l));return U.objectFlags|=4194304,U}function zu(l){return!!(l.flags&465829888)&&jl(Wh(l)||on,32768)}function Hr(l){const m=yE(l,zu)?hl(l,D=>D.flags&465829888?xD(D):D):l;return mp(m,524288)}function Lr(l,m){const D=gr(l);return D?w6(D,m):m}function gr(l){const m=fa(l);if(m&&Bj(m)&&m.flowNode){const D=_0(l);if(D){const C=Pt(a_.createStringLiteral(D),l),A=Df(m)?m:a_.createParenthesizedExpression(m),w=Pt(a_.createElementAccessExpression(A,C),l);return ks(C,w),ks(w,l),A!==m&&ks(A,w),w.flowNode=m.flowNode,w}}}function fa(l){const m=l.parent.parent;switch(m.kind){case 208:case 303:return gr(m);case 209:return gr(l.parent);case 260:return m.initializer;case 226:return m.right}}function _0(l){const m=l.parent;return l.kind===208&&m.kind===206?qs(l.propertyName||l.name):l.kind===303||l.kind===304?qs(l.name):""+m.elements.indexOf(l)}function qs(l){const m=j5(l);return m.flags&384?""+m.value:void 0}function Ws(l){const m=l.dotDotDotToken?32:0,D=bi(l.parent.parent,m);return D&&v4(l,D,!1)}function v4(l,m,D){if(nt(m))return m;const C=l.parent;fe&&l.flags&33554432&&w2(l)?m=FD(m):fe&&C.parent.initializer&&!fp(Iht(C.parent.initializer),65536)&&(m=mp(m,524288));let A;if(C.kind===206)if(l.dotDotDotToken){if(m=Sg(m),m.flags&2||!Yte(m))return pt(l,F.Rest_types_may_only_be_created_from_object_types),Ot;const w=[];for(const I of C.elements)I.dotDotDotToken||w.push(I.propertyName||I.name);A=en(m,w,l.symbol)}else{const w=l.propertyName||l.name,I=j5(w),U=qf(m,I,32,w);A=Lr(l,U)}else{const w=G5(65|(l.dotDotDotToken?0:128),m,te,C),I=C.elements.indexOf(l);if(l.dotDotDotToken){const U=hl(m,Z=>Z.flags&58982400?xD(Z):Z);A=e4(U,xs)?hl(U,Z=>bz(Z,I)):V1(w)}else if(H5(m)){const U=wg(I),Z=32|(D||zz(l)?16:0),ce=b6(m,U,Z,l.name)||Ot;A=Lr(l,ce)}else A=w}return l.initializer?f1(S8(l))?fe&&!fp(wW(l,0),16777216)?Hr(A):A:_ze(l,er([Hr(A),wW(l,0)],2)):A}function qp(l){const m=vv(l);if(m)return Ar(m)}function f6(l){const m=l0(l,!0);return m.kind===106||m.kind===80&&Zp(m)===st}function b3(l){const m=l0(l,!0);return m.kind===209&&m.elements.length===0}function Vd(l,m=!1,D=!0){return fe&&D?S6(l,m):l}function gD(l,m,D){if(ua(l)&&l.parent.parent.kind===249){const I=k_(HMe(ya(l.parent.parent.expression,D)));return I.flags&4456448?x1t(I):ct}if(ua(l)&&l.parent.parent.kind===250){const I=l.parent.parent;return Cie(I)||me}if(So(l.parent))return Ws(l);const C=ko(l)&&!eE(l)||Mm(l)||vFe(l),A=m&&PP(l),w=dt(l);if(f0e(l))return w?nt(w)||w===on?w:Ot:Ke?on:me;if(w)return Vd(w,C,A);if((Ae||Qn(l))&&ua(l)&&!So(l.name)&&!(f_e(l)&32)&&!(l.flags&33554432)){if(!(Gb(l)&6)&&(!l.initializer||f6(l.initializer)))return ni;if(l.initializer&&b3(l.initializer))return Nc}if(io(l)){const I=l.parent;if(I.kind===178&&iT(I)){const ce=Sl(_u(l.parent),177);if(ce){const Fe=dp(ce),Te=Qze(I);return Te&&l===Te?(H.assert(!Te.type),Wn(Fe.thisParameter)):Zs(Fe)}}const U=eei(I,l);if(U)return U;const Z=l.symbol.escapedName==="this"?nft(I):uft(l);if(Z)return Vd(Z,!1,A)}if(Qy(l)&&l.initializer){if(Qn(l)&&!io(l)){const U=gz(l,_u(l),xj(l));if(U)return U}const I=_ze(l,wW(l,D));return Vd(I,C,A)}if(ko(l)&&(Ae||Qn(l)))if(Kc(l)){const I=ti(l.parent.members,zl),U=I.length?pte(l.symbol,I):Eh(l)&128?tEe(l.symbol):void 0;return U&&Vd(U,!0,A)}else{const I=Up(l.parent),U=I?pz(l.symbol,I):Eh(l)&128?tEe(l.symbol):void 0;return U&&Vd(U,!0,A)}if(oE(l))return du;if(So(l.name))return V9(l.name,!1,!0)}function fz(l){if(l.valueDeclaration&&Xn(l.valueDeclaration)){const m=Ur(l);return m.isConstructorDeclaredProperty===void 0&&(m.isConstructorDeclaredProperty=!1,m.isConstructorDeclaredProperty=!!Yw(l)&&ye(l.declarations,D=>Xn(D)&&kEe(D)&&(D.left.kind!==212||Pm(D.left.argumentExpression))&&!C4(void 0,D,l,D))),m.isConstructorDeclaredProperty}return!1}function Zw(l){const m=l.valueDeclaration;return m&&ko(m)&&!f1(m)&&!m.initializer&&(Ae||Qn(m))}function Yw(l){if(l.declarations)for(const m of l.declarations){const D=tf(m,!1,!1);if(D&&(D.kind===176||AE(D)))return D}}function mz(l){const m=zn(l.declarations[0]),D=Qr(l.escapedName),C=l.declarations.every(w=>Qn(w)&&I0(w)&&Y_(w.expression)),A=C?q.createPropertyAccessExpression(q.createPropertyAccessExpression(q.createIdentifier("module"),q.createIdentifier("exports")),D):q.createPropertyAccessExpression(q.createIdentifier("exports"),D);return C&&ks(A.expression.expression,A.expression),ks(A.expression,A),ks(A,m),A.flowNode=m.endFlowNode,w6(A,ni,te)}function pte(l,m){const D=Pa(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Qr(l.escapedName);for(const C of m){const A=q.createPropertyAccessExpression(q.createThis(),D);ks(A.expression,A),ks(A,C),A.flowNode=C.returnFlowNode;const w=Ym(A,l);if(Ae&&(w===ni||w===Nc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Fr(l),gn(w)),!e4(w,tie))return RW(w)}}function pz(l,m){const D=Pa(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Qr(l.escapedName),C=q.createPropertyAccessExpression(q.createThis(),D);ks(C.expression,C),ks(C,m),C.flowNode=m.returnFlowNode;const A=Ym(C,l);return Ae&&(A===ni||A===Nc)&&pt(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Fr(l),gn(A)),e4(A,tie)?void 0:RW(A)}function Ym(l,m){const D=(m==null?void 0:m.valueDeclaration)&&(!Zw(m)||Eh(m.valueDeclaration)&128)&&tEe(m)||te;return w6(l,ni,D)}function ED(l,m){const D=l7(l.valueDeclaration);if(D){const U=Qn(D)?xv(D):void 0;return U&&U.typeExpression?Ar(U.typeExpression):l.valueDeclaration&&gz(l.valueDeclaration,l,D)||Ib(Rc(D))}let C,A=!1,w=!1;if(fz(l)&&(C=pz(l,Yw(l))),!C){let U;if(l.declarations){let Z;for(const ce of l.declarations){const Fe=Xn(ce)||Mo(ce)?ce:I0(ce)?Xn(ce.parent)?ce.parent:ce:void 0;if(!Fe)continue;const Te=I0(Fe)?yj(Fe):Xl(Fe);(Te===4||Xn(Fe)&&kEe(Fe,Te))&&(Mc(Fe)?A=!0:w=!0),Mo(Fe)||(Z=C4(Z,Fe,l,ce)),Z||(U||(U=[])).push(Xn(Fe)||Mo(Fe)?Qw(l,m,Fe,Te):Ku)}C=Z}if(!C){if(!S(U))return Ot;let Z=A&&l.declarations?m6(U,l.declarations):void 0;if(w){const Fe=tEe(l);Fe&&((Z||(Z=[])).push(Fe),A=!0)}const ce=Oe(Z,Fe=>!!(Fe.flags&-98305))?Z:U;C=er(ce)}}const I=vm(Vd(C,!1,w&&!A));return l.valueDeclaration&&Qn(l.valueDeclaration)&&Ic(I,U=>!!(U.flags&-98305))===Ku?(LC(l.valueDeclaration,me),me):I}function gz(l,m,D){var C,A;if(!Qn(l)||!D||!ys(D)||D.properties.length)return;const w=Vo();for(;Xn(l)||Iu(l);){const Z=Dm(l);(C=Z==null?void 0:Z.exports)!=null&&C.size&&mE(w,Z.exports),l=Xn(l)?l.parent:l.parent.parent}const I=Dm(l);(A=I==null?void 0:I.exports)!=null&&A.size&&mE(w,I.exports);const U=Ol(m,w,_t,_t,_t);return U.objectFlags|=4096,U}function C4(l,m,D,C){var A;const w=f1(m.parent);if(w){const I=vm(Ar(w));if(l)!Nt(l)&&!Nt(I)&&!CD(l,I)&&a4t(void 0,l,C,I);else return I}if((A=D.parent)!=null&&A.valueDeclaration){const I=f1(D.parent.valueDeclaration);if(I){const U=qo(Ar(I),D.escapedName);if(U)return E6(U)}}return l}function Qw(l,m,D,C){if(Mo(D)){if(m)return Wn(m);const I=Rc(D.arguments[2]),U=he(I,"value");if(U)return U;const Z=he(I,"get");if(Z){const Fe=wF(Z);if(Fe)return Zs(Fe)}const ce=he(I,"set");if(ce){const Fe=wF(ce);if(Fe)return lze(Fe)}return me}if(Ms(D.left,D.right))return me;const A=C===1&&(Iu(D.left)||U0(D.left))&&(Y_(D.left.expression)||at(D.left.expression)&&uk(D.left.expression)),w=m?Wn(m):A?Jh(Rc(D.right)):Ib(Rc(D.right));if(w.flags&524288&&C===2&&l.escapedName==="export="){const I=Ag(w),U=Vo();qU(I.members,U);const Z=U.size;m&&!m.exports&&(m.exports=Vo()),(m||l).exports.forEach((Fe,Te)=>{var $e;const ut=U.get(Te);if(ut&&ut!==Fe&&!(Fe.flags&2097152))if(Fe.flags&111551&&ut.flags&111551){if(Fe.valueDeclaration&&ut.valueDeclaration&&zn(Fe.valueDeclaration)!==zn(ut.valueDeclaration)){const gi=Qr(Fe.escapedName),Wi=(($e=ur(ut.valueDeclaration,mh))==null?void 0:$e.name)||ut.valueDeclaration;Es(pt(Fe.valueDeclaration,F.Duplicate_identifier_0,gi),Su(Wi,F._0_was_also_declared_here,gi)),Es(pt(Wi,F.Duplicate_identifier_0,gi),Su(Fe.valueDeclaration,F._0_was_also_declared_here,gi))}const zt=Hs(Fe.flags|ut.flags,Te);zt.links.type=er([Wn(Fe),Wn(ut)]),zt.valueDeclaration=ut.valueDeclaration,zt.declarations=Hi(ut.declarations,Fe.declarations),U.set(Te,zt)}else U.set(Te,up(Fe,ut));else U.set(Te,Fe)});const ce=Ol(Z!==U.size?void 0:I.symbol,U,I.callSignatures,I.constructSignatures,I.indexInfos);if(Z===U.size&&(w.aliasSymbol&&(ce.aliasSymbol=w.aliasSymbol,ce.aliasTypeArguments=w.aliasTypeArguments),Gu(w)&4)){ce.aliasSymbol=w.symbol;const Fe=O0(w);ce.aliasTypeArguments=S(Fe)?Fe:void 0}return ce.objectFlags|=Gu(w)&4096,ce.symbol&&ce.symbol.flags&32&&w===b4(ce.symbol)&&(ce.objectFlags|=16777216),ce}return nEe(w)?(LC(D,ql),ql):w}function Ms(l,m){return Iu(l)&&l.expression.kind===110&&uM(m,D=>C1(l,D))}function Mc(l){const m=tf(l,!1,!1);return m.kind===176||m.kind===262||m.kind===218&&!kj(m.parent)}function m6(l,m){return H.assert(l.length===m.length),l.filter((D,C)=>{const A=m[C],w=Xn(A)?A:Xn(A.parent)?A.parent:void 0;return w&&Mc(w)})}function hF(l,m,D){if(l.initializer){const C=So(l.name)?V9(l.name,!0,!1):on;return Vd(_ze(l,wW(l,0,C)))}return So(l.name)?V9(l.name,m,D):(D&&!ke(l)&&LC(l,me),m?$i:me)}function gte(l,m,D){const C=Vo();let A,w=131200;L(l.elements,U=>{const Z=U.propertyName||U.name;if(U.dotDotDotToken){A=y_(ct,me,!1);return}const ce=j5(Z);if(!Y4(ce)){w|=512;return}const Fe=Q4(ce),Te=4|(U.initializer?16777216:0),$e=Hs(Te,Fe);$e.links.type=hF(U,m,D),$e.links.bindingElement=U,C.set($e.escapedName,$e)});const I=Ol(void 0,C,_t,_t,A?[A]:_t);return I.objectFlags|=w,m&&(I.pattern=l,I.objectFlags|=131072),I}function x_(l,m,D){const C=l.elements,A=qu(C),w=A&&A.kind===208&&A.dotDotDotToken?A:void 0;if(C.length===0||C.length===1&&w)return Ce>=2?u1t(me):ql;const I=Vt(C,Fe=>Fd(Fe)?me:hF(Fe,m,D)),U=Ze(C,Fe=>!(Fe===w||Fd(Fe)||zz(Fe)),C.length-1)+1,Z=Vt(C,(Fe,Te)=>Fe===w?4:Te>=U?2:1);let ce=Bg(I,Z);return m&&(ce=Odt(ce),ce.pattern=l,ce.objectFlags|=131072),ce}function V9(l,m=!1,D=!1){return l.kind===206?gte(l,m,D):x_(l,m,D)}function N(l,m){return ee(gD(l,!0,0),l,m)}function W(l){const m=Dm(l),D=gei(!1);return D&&m&&m===D}function ee(l,m,D){return l?(l.flags&4096&&W(m.parent)&&(l=SPe(m)),D&&hEe(m,l),l.flags&8192&&(js(m)||!m.type)&&l.symbol!==_u(m)&&(l=Xu),vm(l)):(l=io(m)&&m.dotDotDotToken?ql:me,D&&(ke(m)||LC(m,l)),l)}function ke(l){const m=XE(l),D=m.kind===169?m.parent:m;return Eie(D)}function dt(l){const m=f1(l);if(m)return Ar(m)}function Bi(l){let m=l.valueDeclaration;return m?(js(m)&&(m=S8(m)),io(m)?Uge(m.parent):!1):!1}function au(l){const m=Ur(l);if(!m.type){const D=za(l);return!m.type&&!Bi(l)&&(m.type=D),D}return m.type}function za(l){if(l.flags&4194304)return YK(l);if(l===ei)return me;if(l.flags&134217728&&l.valueDeclaration){const C=_u(zn(l.valueDeclaration)),A=Hs(C.flags,"exports");A.declarations=C.declarations?C.declarations.slice():[],A.parent=l,A.links.target=C,C.valueDeclaration&&(A.valueDeclaration=C.valueDeclaration),C.members&&(A.members=new Map(C.members)),C.exports&&(A.exports=new Map(C.exports));const w=Vo();return w.set("exports",A),Ol(l,w,_t,_t,_t)}H.assertIsDefined(l.valueDeclaration);const m=l.valueDeclaration;if(la(m)&&W4(m))return m.statements.length?vm(Ib(ya(m.statements[0].expression))):Ko;if(wx(m))return vC(l);if(!D_(l,0))return l.flags&512&&!(l.flags&67108864)?Ez(l):Xw(l);let D;if(m.kind===277)D=ee(dt(m)||Rc(m.expression),m);else if(Xn(m)||Qn(m)&&(Mo(m)||(Iu(m)||yq(m))&&Xn(m.parent)))D=ED(l);else if(Iu(m)||U0(m)||at(m)||t0(m)||Of(m)||Wc(m)||ed(m)||dc(m)&&!zp(m)||n3(m)||la(m)){if(l.flags&9136)return Ez(l);D=Xn(m.parent)?ED(l):dt(m)||me}else if(Jc(m))D=dt(m)||Lmt(m);else if(oE(m))D=dt(m)||gft(m);else if(pm(m))D=dt(m)||Oz(m.name,0);else if(zp(m))D=dt(m)||Nmt(m,0);else if(io(m)||ko(m)||Mm(m)||ua(m)||js(m)||WO(m))D=N(m,!0);else if(Iv(m))D=Ez(l);else if(J2(m))D=xge(l);else return H.fail("Unhandled declaration kind! "+H.formatSyntaxKind(m.kind)+" for "+H.formatSymbol(l));return CE()?D:l.flags&512&&!(l.flags&67108864)?Ez(l):Xw(l)}function i0(l){if(l)switch(l.kind){case 177:return U4(l);case 178:return bye(l);case 172:return H.assert(eE(l)),f1(l)}}function Qm(l){const m=i0(l);return m&&Ar(m)}function p6(l){const m=Qze(l);return m&&m.symbol}function g6(l){return kC(dp(l))}function vC(l){const m=Ur(l);if(!m.type){if(!D_(l,0))return Ot;const D=Sl(l,177),C=Sl(l,178),A=ur(Sl(l,172),ef);let w=D&&Qn(D)&&qp(D)||Qm(D)||Qm(C)||Qm(A)||D&&D.body&&HEe(D)||A&&A.initializer&&N(A,!0);w||(C&&!Eie(C)?g4(Ae,C,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Fr(l)):D&&!Eie(D)?g4(Ae,D,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Fr(l)):A&&!Eie(A)&&g4(Ae,A,F.Member_0_implicitly_has_an_1_type,Fr(l),"any"),w=me),CE()||(i0(D)?pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)):i0(C)||i0(A)?pt(C,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)):D&&Ae&&pt(D,F._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,Fr(l)),w=me),m.type=w}return m.type}function Dge(l){const m=Ur(l);if(!m.writeType){if(!D_(l,8))return Ot;const D=Sl(l,178)??ur(Sl(l,172),ef);let C=Qm(D);CE()||(i0(D)&&pt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)),C=me),m.writeType=C||vC(l)}return m.writeType}function fF(l){const m=qc(b4(l));return m.flags&8650752?m:m.flags&2097152?Le(m.types,D=>!!(D.flags&8650752)):void 0}function Ez(l){let m=Ur(l);const D=m;if(!m.type){const C=l.valueDeclaration&&jEe(l.valueDeclaration,!1);if(C){const A=nze(l,C);A&&(l=A,m=A.links)}D.type=m.type=BNe(l)}return m.type}function BNe(l){const m=l.valueDeclaration;if(l.flags&1536&&$N(l))return me;if(m&&(m.kind===226||I0(m)&&m.parent.kind===226))return ED(l);if(l.flags&512&&m&&la(m)&&m.commonJsModuleIndicator){const C=_m(l);if(C!==l){if(!D_(l,0))return Ot;const A=Ks(l.exports.get("export=")),w=ED(A,A===C?void 0:C);return CE()?w:Xw(l)}}const D=D4(16,l);if(l.flags&32){const C=fF(l);return C?Ds([D,C]):D}else return fe&&l.flags&16777216?S6(D,!0):D}function xge(l){const m=Ur(l);return m.type||(m.type=udt(l))}function Ete(l){const m=Ur(l);if(!m.type){if(!D_(l,0))return Ot;const D=md(l),C=l.declarations&&E4(rp(l),!0),A=G(C==null?void 0:C.declarations,w=>tc(w)?dt(w):void 0);if(m.type=C!=null&&C.declarations&&u_e(C.declarations)&&l.declarations.length?mz(C):u_e(l.declarations)?ni:A||(O1(D)&111551?Wn(D):Ot),!CE())return Xw(C??l),m.type=Ot}return m.type}function wNe(l){const m=Ur(l);return m.type||(m.type=_a(Wn(m.target),m.mapper))}function vge(l){const m=Ur(l);return m.writeType||(m.writeType=_a(mF(m.target),m.mapper))}function Xw(l){const m=l.valueDeclaration;if(m){if(f1(m))return pt(l.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Fr(l)),Ot;Ae&&(m.kind!==169||m.initializer)&&pt(l.valueDeclaration,F._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Fr(l))}else if(l.flags&2097152){const D=rp(l);D&&pt(D,F.Circular_definition_of_import_alias_0,Fr(l))}return me}function Cge(l){const m=Ur(l);return m.type||(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.type=m.deferralParent.flags&1048576?er(m.deferralConstituents):Ds(m.deferralConstituents)),m.type}function TNe(l){const m=Ur(l);return!m.writeType&&m.deferralWriteConstituents&&(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.writeType=m.deferralParent.flags&1048576?er(m.deferralWriteConstituents):Ds(m.deferralWriteConstituents)),m.writeType}function mF(l){const m=Gl(l);return l.flags&4?m&2?m&65536?TNe(l)||Cge(l):l.links.writeType||l.links.type:B6(Wn(l),!!(l.flags&16777216)):l.flags&98304?m&1?vge(l):Dge(l):Wn(l)}function Wn(l){const m=Gl(l);return m&65536?Cge(l):m&1?wNe(l):m&262144?MXt(l):m&8192?qii(l):l.flags&7?au(l):l.flags&9136?Ez(l):l.flags&8?xge(l):l.flags&98304?vC(l):l.flags&2097152?Ete(l):Ot}function E6(l){return B6(Wn(l),!!(l.flags&16777216))}function CC(l,m){return l!==void 0&&m!==void 0&&(Gu(l)&4)!==0&&l.target===m}function eT(l){return Gu(l)&4?l.target:l}function H9(l,m){return D(l);function D(C){if(Gu(C)&7){const A=eT(C);return A===m||Oe(Zc(A),D)}else if(C.flags&2097152)return Oe(C.types,D);return!1}}function Sb(l,m){for(const D of m)l=e0(l,gF(_u(D)));return l}function _z(l,m){for(;;){if(l=l.parent,l&&Xn(l)){const D=Xl(l);if(D===6||D===3){const C=_u(l.left);C&&C.parent&&!Tn(C.parent.valueDeclaration,A=>l===A)&&(l=C.parent.valueDeclaration)}}if(!l)return;switch(l.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const C=_z(l,m);if(l.kind===200)return xi(C,gF(_u(l.typeParameter)));if(l.kind===194)return Hi(C,w1t(l));const A=Sb(C,Sx(l)),w=m&&(l.kind===263||l.kind===231||l.kind===264||AE(l))&&b4(_u(l)).thisType;return w?xi(A,w):A}case 348:const D=Tj(l);D&&(l=D.valueDeclaration);break;case 327:{const C=_z(l,m);return l.tags?Sb(C,ju(l.tags,A=>_g(A)?A.typeParameters:void 0)):C}}}}function Bb(l){var m;const D=l.flags&32||l.flags&16?l.valueDeclaration:(m=l.declarations)==null?void 0:m.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const A=C.initializer;return!!A&&(A.kind===218||A.kind===219)});return H.assert(!!D,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),_z(D)}function sn(l){if(!l.declarations)return;let m;for(const D of l.declarations)(D.kind===264||D.kind===263||D.kind===231||AE(D)||Sj(D))&&(m=Sb(m,Sx(D)));return m}function Qu(l){return Hi(Bb(l),sn(l))}function Hu(l){const m=go(l,1);if(m.length===1){const D=m[0];if(!D.typeParameters&&D.parameters.length===1&&th(D)){const C=lie(D.parameters[0]);return nt(C)||WPe(C)===me}}return!1}function Or(l){if(go(l,1).length>0)return!0;if(l.flags&8650752){const m=Wh(l);return!!m&&Hu(m)}return!1}function Vr(l){const m=tD(l.symbol);return m&&Qg(m)}function Rs(l,m,D){const C=S(m),A=Qn(D);return ti(go(l,1),w=>(A||C>=b_(w.typeParameters))&&C<=S(w.typeParameters))}function D0(l,m,D){const C=Rs(l,m,D),A=Vt(m,Ar);return Lu(C,w=>Oe(w.typeParameters)?rW(w,A,Qn(D)):w)}function qc(l){if(!l.resolvedBaseConstructorType){const m=tD(l.symbol),D=m&&Qg(m),C=Vr(l);if(!C)return l.resolvedBaseConstructorType=te;if(!D_(l,1))return Ot;const A=ya(C.expression);if(D&&C!==D&&(H.assert(!D.typeArguments),ya(D.expression)),A.flags&2621440&&Ag(A),!CE())return pt(l.symbol.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Fr(l.symbol)),l.resolvedBaseConstructorType=Ot;if(!(A.flags&1)&&A!==Ct&&!Or(A)){const w=pt(C.expression,F.Type_0_is_not_a_constructor_function_type,gn(A));if(A.flags&262144){const I=vz(A);let U=on;if(I){const Z=go(I,1);Z[0]&&(U=Zs(Z[0]))}A.symbol.declarations&&Es(w,Su(A.symbol.declarations[0],F.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Fr(A.symbol),gn(U)))}return l.resolvedBaseConstructorType=Ot}l.resolvedBaseConstructorType=A}return l.resolvedBaseConstructorType}function _D(l){let m=_t;if(l.symbol.declarations)for(const D of l.symbol.declarations){const C=iB(D);if(C)for(const A of C){const w=Ar(A);Nt(w)||(m===_t?m=[w]:m.push(w))}}return m}function v_(l,m){pt(l,F.Type_0_recursively_references_itself_as_a_base_type,gn(m,void 0,2))}function Zc(l){if(!l.baseTypesResolved){if(D_(l,7)&&(l.objectFlags&8?l.resolvedBaseTypes=[z5(l)]:l.symbol.flags&96?(l.symbol.flags&32&&QK(l),l.symbol.flags&64&&dXt(l)):H.fail("type must be class or interface"),!CE()&&l.symbol.declarations))for(const m of l.symbol.declarations)(m.kind===263||m.kind===264)&&v_(m,l);l.baseTypesResolved=!0}return l.resolvedBaseTypes}function z5(l){const m=Lu(l.typeParameters,(D,C)=>l.elementFlags[C]&8?qf(D,Qt):D);return V1(er(m||_t),l.readonly)}function QK(l){l.resolvedBaseTypes=_Z;const m=Gh(qc(l));if(!(m.flags&2621441))return l.resolvedBaseTypes=_t;const D=Vr(l);let C;const A=m.symbol?X0(m.symbol):void 0;if(m.symbol&&m.symbol.flags&32&&tT(A))C=jdt(D,m.symbol);else if(m.flags&1)C=m;else{const I=D0(m,D.typeArguments,D);if(!I.length)return pt(D.expression,F.No_base_constructor_has_the_specified_number_of_type_arguments),l.resolvedBaseTypes=_t;C=Zs(I[0])}if(Nt(C))return l.resolvedBaseTypes=_t;const w=Sg(C);if(!pF(w)){const I=$Ne(void 0,C),U=ro(I,F.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(w));return Vs.add(Y3(zn(D.expression),D.expression,U)),l.resolvedBaseTypes=_t}return l===w||H9(w,l)?(pt(l.symbol.valueDeclaration,F.Type_0_recursively_references_itself_as_a_base_type,gn(l,void 0,2)),l.resolvedBaseTypes=_t):(l.resolvedBaseTypes===_Z&&(l.members=void 0),l.resolvedBaseTypes=[w])}function tT(l){const m=l.outerTypeParameters;if(m){const D=m.length-1,C=O0(l);return m[D].symbol!==C[D].symbol}return!0}function pF(l){if(l.flags&262144){const m=Wh(l);if(m)return pF(m)}return!!(l.flags&67633153&&!Xm(l)||l.flags&2097152&&ye(l.types,pF))}function dXt(l){if(l.resolvedBaseTypes=l.resolvedBaseTypes||_t,l.symbol.declarations){for(const m of l.symbol.declarations)if(m.kind===264&&rP(m))for(const D of rP(m)){const C=Sg(Ar(D));Nt(C)||(pF(C)?l!==C&&!H9(C,l)?l.resolvedBaseTypes===_t?l.resolvedBaseTypes=[C]:l.resolvedBaseTypes.push(C):v_(m,l):pt(D,F.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function hXt(l){if(!l.declarations)return!0;for(const m of l.declarations)if(m.kind===264){if(m.flags&256)return!1;const D=rP(m);if(D){for(const C of D)if(ec(C.expression)){const A=R0(C.expression,788968,!0);if(!A||!(A.flags&64)||b4(A).thisType)return!1}}}return!0}function b4(l){let m=Ur(l);const D=m;if(!m.declaredType){const C=l.flags&32?1:2,A=nze(l,l.valueDeclaration&&qri(l.valueDeclaration));A&&(l=A,m=A.links);const w=D.declaredType=m.declaredType=D4(C,l),I=Bb(l),U=sn(l);(I||U||C===1||!hXt(l))&&(w.objectFlags|=4,w.typeParameters=Hi(I,U),w.outerTypeParameters=I,w.localTypeParameters=U,w.instantiations=new Map,w.instantiations.set(hp(w.typeParameters),w),w.target=w,w.resolvedTypeArguments=w.typeParameters,w.thisType=j1(l),w.thisType.isThisType=!0,w.thisType.constraint=w)}return m.declaredType}function tdt(l){var m;const D=Ur(l);if(!D.declaredType){if(!D_(l,2))return Ot;const C=H.checkDefined((m=l.declarations)==null?void 0:m.find(Sj),"Type alias symbol with no valid declaration found"),A=G4(C)?C.typeExpression:C.type;let w=A?Ar(A):Ot;if(CE()){const I=sn(l);I&&(D.typeParameters=I,D.instantiations=new Map,D.instantiations.set(hp(I),w))}else w=Ot,C.kind===347?pt(C.typeExpression.type,F.Type_alias_0_circularly_references_itself,Fr(l)):pt(mh(C)&&C.name||C,F.Type_alias_0_circularly_references_itself,Fr(l));D.declaredType=w}return D.declaredType}function bge(l){return l.flags&1056&&l.symbol.flags&8?X0(cf(l.symbol)):l}function idt(l){const m=Ur(l);if(!m.declaredType){const D=[];if(l.declarations){for(const A of l.declarations)if(A.kind===266){for(const w of A.members)if(iT(w)){const I=_u(w),U=jW(w),Z=Z9(U!==void 0?wti(U,Zo(l),I):ndt(I));Ur(I).declaredType=Z,D.push(Jh(Z))}}}const C=D.length?er(D,1,l,void 0):ndt(l);C.flags&1048576&&(C.flags|=1024,C.symbol=l),m.declaredType=C}return m.declaredType}function ndt(l){const m=N5(32,l),D=N5(32,l);return m.regularType=m,m.freshType=D,D.regularType=m,D.freshType=D,m}function udt(l){const m=Ur(l);if(!m.declaredType){const D=idt(cf(l));m.declaredType||(m.declaredType=D)}return m.declaredType}function gF(l){const m=Ur(l);return m.declaredType||(m.declaredType=j1(l))}function fXt(l){const m=Ur(l);return m.declaredType||(m.declaredType=X0(md(l)))}function X0(l){return rdt(l)||Ot}function rdt(l){if(l.flags&96)return b4(l);if(l.flags&524288)return tdt(l);if(l.flags&262144)return gF(l);if(l.flags&384)return idt(l);if(l.flags&8)return udt(l);if(l.flags&2097152)return fXt(l)}function _te(l){switch(l.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 _te(l.elementType);case 183:return!l.typeArguments||l.typeArguments.every(_te)}return!1}function mXt(l){const m=w8(l);return!m||_te(m)}function adt(l){const m=f1(l);return m?_te(m):!Nx(l)}function pXt(l){const m=U4(l),D=Sx(l);return(l.kind===176||!!m&&_te(m))&&l.parameters.every(adt)&&D.every(mXt)}function gXt(l){if(l.declarations&&l.declarations.length===1){const m=l.declarations[0];if(m)switch(m.kind){case 172:case 171:return adt(m);case 174:case 173:case 176:case 177:case 178:return pXt(m)}}return!1}function odt(l,m,D){const C=Vo();for(const A of l)C.set(A.escapedName,D&&gXt(A)?A:wPe(A,m));return C}function sdt(l,m){for(const D of m){if(ldt(D))continue;const C=l.get(D.escapedName);(!C||C.valueDeclaration&&Xn(C.valueDeclaration)&&!fz(C)&&!Qbe(C.valueDeclaration))&&(l.set(D.escapedName,D),l.set(D.escapedName,D))}}function ldt(l){return!!l.valueDeclaration&&ph(l.valueDeclaration)&&No(l.valueDeclaration)}function LNe(l){if(!l.declaredProperties){const m=l.symbol,D=_6(m);l.declaredProperties=Ab(D),l.declaredCallSignatures=_t,l.declaredConstructSignatures=_t,l.declaredIndexInfos=_t,l.declaredCallSignatures=wb(D.get("__call")),l.declaredConstructSignatures=wb(D.get("__new")),l.declaredIndexInfos=zdt(m)}return l}function NNe(l){if(!Ps(l)&&!U0(l))return!1;const m=Ps(l)?l.expression:l.argumentExpression;return ec(m)&&Y4(Ps(l)?F3(l):Rc(m))}function XK(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)===64}function Dte(l){const m=Za(l);return!!m&&NNe(m)}function iT(l){return!Ix(l)||Dte(l)}function EXt(l){return Lq(l)&&!NNe(l)}function _Xt(l,m,D){H.assert(!!(Gl(l)&4096),"Expected a late-bound symbol."),l.flags|=D,Ur(m.symbol).lateSymbol=l,l.declarations?m.symbol.isReplaceableByMethod||l.declarations.push(m):l.declarations=[m],D&111551&&(!l.valueDeclaration||l.valueDeclaration.kind!==m.kind)&&(l.valueDeclaration=m)}function cdt(l,m,D,C){H.assert(!!C.symbol,"The member is expected to have a symbol.");const A=ar(C);if(!A.resolvedSymbol){A.resolvedSymbol=C.symbol;const w=Xn(C)?C.left:C.name,I=U0(w)?Rc(w.argumentExpression):F3(w);if(Y4(I)){const U=Q4(I),Z=C.symbol.flags;let ce=D.get(U);ce||D.set(U,ce=Hs(0,U,4096));const Fe=m&&m.get(U);if(!(l.flags&32)&&(ce.flags&eF(Z)||Fe)){const Te=Fe?Hi(Fe.declarations,ce.declarations):ce.declarations,$e=!(I.flags&8192)&&Qr(U)||b0(w);L(Te,ut=>pt(Za(ut)||ut,F.Property_0_was_also_declared_here,$e)),pt(w||C,F.Duplicate_property_0,$e),ce=Hs(0,U,4096)}return ce.links.nameType=I,_Xt(ce,C,Z),ce.parent?H.assert(ce.parent===l,"Existing symbol parent should match new one"):ce.parent=l,A.resolvedSymbol=ce}}return A.resolvedSymbol}function PNe(l,m){var D,C,A;const w=Ur(l);if(!w[m]){const I=m==="resolvedExports",U=I?l.flags&1536?R9(l).exports:l.exports:l.members;w[m]=U||se;const Z=Vo();for(const Te of l.declarations||_t){const $e=Wbe(Te);if($e)for(const ut of $e)I===Kc(ut)&&Dte(ut)&&cdt(l,U,Z,ut)}const ce=(((D=l.valueDeclaration)==null?void 0:D.kind)===219||((C=l.valueDeclaration)==null?void 0:C.kind)===218)&&((A=Dm(l.valueDeclaration.parent))==null?void 0:A.assignmentDeclarationMembers)||l.assignmentDeclarationMembers;if(ce){const Te=ga(ce.values());for(const $e of Te){const ut=Xl($e),zt=ut===3||Xn($e)&&kEe($e,ut)||ut===9||ut===6;I===!zt&&Dte($e)&&cdt(l,U,Z,$e)}}let Fe=tF(U,Z);if(l.flags&33554432&&w.cjsExportMerged&&l.declarations)for(const Te of l.declarations){const $e=Ur(Te.symbol)[m];if(!Fe){Fe=$e;continue}$e&&$e.forEach((ut,zt)=>{const gi=Fe.get(zt);if(!gi)Fe.set(zt,ut);else{if(gi===ut)return;Fe.set(zt,up(gi,ut))}})}w[m]=Fe||se}return w[m]}function _6(l){return l.flags&6256?PNe(l,"resolvedMembers"):l.members||se}function yge(l){if(l.flags&106500&&l.escapedName==="__computed"){const m=Ur(l);if(!m.lateSymbol&&Oe(l.declarations,Dte)){const D=Ks(l.parent);Oe(l.declarations,Kc)?$f(D):_6(D)}return m.lateSymbol||(m.lateSymbol=l)}return l}function xm(l,m,D){if(Gu(l)&4){const C=l.target,A=O0(l);return S(C.typeParameters)===S(A)?R5(C,Hi(A,[m||C.thisType])):l}else if(l.flags&2097152){const C=Lu(l.types,A=>xm(A,m,D));return C!==l.types?Ds(C):l}return D?Gh(l):l}function ddt(l,m,D,C){let A,w,I,U,Z;zi(D,C,0,D.length)?(w=m.symbol?_6(m.symbol):Vo(m.declaredProperties),I=m.declaredCallSignatures,U=m.declaredConstructSignatures,Z=m.declaredIndexInfos):(A=Sf(D,C),w=odt(m.declaredProperties,A,D.length===1),I=Kge(m.declaredCallSignatures,A),U=Kge(m.declaredConstructSignatures,A),Z=z1t(m.declaredIndexInfos,A));const ce=Zc(m);if(ce.length){if(m.symbol&&w===_6(m.symbol)){const Te=Vo();for(const $e of w.values())$e.flags&262144||Te.set($e.escapedName,$e);w=Te}x4(l,w,I,U,Z);const Fe=qu(C);for(const Te of ce){const $e=Fe?xm(_a(Te,A),Fe):Te;sdt(w,n0($e)),I=Hi(I,go($e,0)),U=Hi(U,go($e,1));const ut=$e!==me?kh($e):[y_(ct,me,!1)];Z=Hi(Z,ti(ut,zt=>!UNe(Z,zt.keyType)))}}x4(l,w,I,U,Z)}function DXt(l){ddt(l,LNe(l),_t,_t)}function xXt(l){const m=LNe(l.target),D=Hi(m.typeParameters,[m.thisType]),C=O0(l),A=C.length===D.length?C:Hi(C,[l]);ddt(l,m,D,A)}function y3(l,m,D,C,A,w,I,U){const Z=new B(Pi,U);return Z.declaration=l,Z.typeParameters=m,Z.parameters=C,Z.thisParameter=D,Z.resolvedReturnType=A,Z.resolvedTypePredicate=w,Z.minArgumentCount=I,Z.resolvedMinArgumentCount=void 0,Z.target=void 0,Z.mapper=void 0,Z.compositeSignatures=void 0,Z.compositeKind=void 0,Z}function eW(l){const m=y3(l.declaration,l.typeParameters,l.thisParameter,l.parameters,void 0,void 0,l.minArgumentCount,l.flags&167);return m.target=l.target,m.mapper=l.mapper,m.compositeSignatures=l.compositeSignatures,m.compositeKind=l.compositeKind,m}function hdt(l,m){const D=eW(l);return D.compositeSignatures=m,D.compositeKind=1048576,D.target=void 0,D.mapper=void 0,D}function vXt(l,m){if((l.flags&24)===m)return l;l.optionalCallSignatureCache||(l.optionalCallSignatureCache={});const D=m===8?"inner":"outer";return l.optionalCallSignatureCache[D]||(l.optionalCallSignatureCache[D]=CXt(l,m))}function CXt(l,m){H.assert(m===8||m===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const D=eW(l);return D.flags|=m,D}function fdt(l,m){if(th(l)){const A=l.parameters.length-1,w=l.parameters[A].escapedName,I=Wn(l.parameters[A]);if(xs(I))return[D(I,A,w)];if(!m&&I.flags&1048576&&ye(I.types,xs))return Vt(I.types,U=>D(U,A,w))}return[l.parameters];function D(A,w,I){const U=O0(A),Z=C(A,I),ce=Vt(U,(Fe,Te)=>{const $e=Z&&Z[Te]?Z[Te]:Iz(l,w+Te,A),ut=A.target.elementFlags[Te],zt=ut&12?32768:ut&2?16384:0,gi=Hs(1,$e,zt);return gi.links.type=ut&4?V1(Fe):Fe,gi});return Hi(l.parameters.slice(0,w),ce)}function C(A,w){const I=new Map;return Vt(A.target.labeledElementDeclarations,(U,Z)=>{const ce=sze(U,Z,w),Fe=I.get(ce);return Fe===void 0?(I.set(ce,1),ce):(I.set(ce,Fe+1),`${ce}_${Fe}`)})}}function bXt(l){const m=qc(l),D=go(m,1),C=tD(l.symbol),A=!!C&&Yu(C,64);if(D.length===0)return[y3(void 0,l.localTypeParameters,void 0,_t,l,void 0,0,A?4:0)];const w=Vr(l),I=Qn(w),U=kte(w),Z=S(U),ce=[];for(const Fe of D){const Te=b_(Fe.typeParameters),$e=S(Fe.typeParameters);if(I||Z>=Te&&Z<=$e){const ut=$e?Age(Fe,x6(U,Fe.typeParameters,Te,I)):eW(Fe);ut.typeParameters=l.localTypeParameters,ut.resolvedReturnType=l,ut.flags=A?ut.flags|4:ut.flags&-5,ce.push(ut)}}return ce}function MNe(l,m,D,C,A){for(const w of l)if(Rte(w,m,D,C,A,D?qti:hW))return w}function yXt(l,m,D){if(m.typeParameters){if(D>0)return;for(let A=1;A1&&(D=D===void 0?C:-1);for(const A of l[C])if(!m||!MNe(m,A,!1,!1,!0)){const w=yXt(l,A,C);if(w){let I=A;if(w.length>1){let U=A.thisParameter;const Z=L(w,ce=>ce.thisParameter);if(Z){const ce=Ds(qi(w,Fe=>Fe.thisParameter&&Wn(Fe.thisParameter)));U=CF(Z,ce)}I=hdt(A,w),I.thisParameter=U}(m||(m=[])).push(I)}}}if(!S(m)&&D!==-1){const C=l[D!==void 0?D:0];let A=C.slice();for(const w of l)if(w!==C){const I=w[0];if(H.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),A=I.typeParameters&&Oe(A,U=>!!U.typeParameters&&!mdt(I.typeParameters,U.typeParameters))?void 0:Vt(A,U=>AXt(U,I)),!A)break}m=A}return m||_t}function mdt(l,m){if(S(l)!==S(m))return!1;if(!l||!m)return!0;const D=Sf(m,l);for(let C=0;C=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=F_(l)||F_(m),ce=Z&&!F_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=SE(w)&&Te>=SE(I),dn=Te>=C?void 0:Iz(l,Te),nu=Te>=A?void 0:Iz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ii=Hs(1|(Wi&&!gi?16777216:0),En||`arg${Te}`,gi?32768:Wi?16384:0);Ii.links.type=gi?V1(zt):zt,Fe[Te]=Ii}if(ce){const Te=Hs(1,"args",32768);Te.links.type=V1(Lg(I,U)),I===m&&(Te.links.type=_a(Te.links.type,D)),Fe[U]=Te}return Fe}function AXt(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=FXt(l,m,C),I=kXt(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=y3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=1048576,Z.compositeSignatures=Hi(l.compositeKind!==2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind!==2097152&&l.mapper&&l.compositeSignatures?wC(l.mapper,C):C),Z}function pdt(l){const m=kh(l[0]);if(m){const D=[];for(const C of m){const A=C.keyType;ye(l,w=>!!k3(w,A))&&D.push(y_(A,er(Vt(l,w=>yC(w,A))),Oe(l,w=>k3(w,A).isReadonly)))}return D}return _t}function SXt(l){const m=zNe(Vt(l.types,A=>A===di?[fn]:go(A,0))),D=zNe(Vt(l.types,A=>go(A,1))),C=pdt(l.types);x4(l,se,m,D,C)}function xte(l,m){return l?m?Ds([l,m]):l:m}function gdt(l){const m=ui(l,C=>go(C,1).length>0),D=Vt(l,Hu);if(m>0&&m===ui(D,C=>C)){const C=D.indexOf(!0);D[C]=!1}return D}function BXt(l,m,D,C){const A=[];for(let w=0;wU);for(let U=0;U0&&(ce=Vt(ce,Fe=>{const Te=eW(Fe);return Te.resolvedReturnType=BXt(Zs(Fe),A,w,U),Te})),D=Edt(D,ce)}m=Edt(m,go(Z,0)),C=nn(kh(Z),(ce,Fe)=>_dt(ce,Fe,!1),C)}x4(l,se,m||_t,D||_t,C||_t)}function Edt(l,m){for(const D of m)(!l||ye(l,C=>!Rte(C,D,!1,!1,!1,hW)))&&(l=xi(l,D));return l}function _dt(l,m,D){if(l)for(let C=0;C{var Z;!(U.flags&418)&&!(U.flags&512&&((Z=U.declarations)!=null&&Z.length)&&ye(U.declarations,N1))&&I.set(U.escapedName,U)}),D=I}let A;if(x4(l,D,_t,_t,_t),m.flags&32){const I=b4(m),U=qc(I);U.flags&11272192?(D=Vo(Jw(D)),sdt(D,n0(U))):U===me&&(A=y_(ct,me,!1))}const w=Sge(D);if(w?C=tPe(w):(A&&(C=xi(C,A)),m.flags&384&&(X0(m).flags&32||Oe(l.properties,I=>!!(Wn(I).flags&296)))&&(C=xi(C,Tu))),x4(l,D,_t,_t,C||_t),m.flags&8208&&(l.callSignatures=wb(m)),m.flags&32){const I=b4(m);let U=m.members?wb(m.members.get("__constructor")):_t;m.flags&16&&(U=yn(U.slice(),qi(l.callSignatures,Z=>AE(Z.declaration)?y3(Z.declaration,Z.typeParameters,Z.thisParameter,Z.parameters,I,void 0,Z.minArgumentCount,Z.flags&167):void 0))),U.length||(U=bXt(I)),l.constructSignatures=U}}function LXt(l,m,D){return _a(l,Sf([m.indexType,m.objectType],[wg(0),Bg([D])]))}function NXt(l){const m=k3(l.source,ct),D=C_(l.mappedType),C=!(D&1),A=D&4?0:16777216,w=m?[y_(ct,mEe(m.type,l.mappedType,l.constraintType),C&&m.isReadonly)]:_t,I=Vo();for(const U of n0(l.source)){const Z=8192|(C&&Ng(U)?8:0),ce=Hs(4|U.flags&A,U.escapedName,Z);if(ce.declarations=U.declarations,ce.links.nameType=Ur(U).nameType,ce.links.propertyType=Wn(U),l.constraintType.type.flags&8388608&&l.constraintType.type.objectType.flags&262144&&l.constraintType.type.indexType.flags&262144){const Fe=l.constraintType.type.objectType,Te=LXt(l.mappedType,l.constraintType.type,Fe);ce.links.mappedType=Te,ce.links.constraintType=k_(Fe)}else ce.links.mappedType=l.mappedType,ce.links.constraintType=l.constraintType;I.set(U.escapedName,ce)}x4(l,I,_t,_t,w)}function vte(l){if(l.flags&4194304){const m=Gh(l.type);return K5(m)?s1t(m):k_(m)}if(l.flags&16777216){if(l.root.isDistributive){const m=l.checkType,D=vte(m);if(D!==m)return NPe(l,Y9(l.root.checkType,D,l.mapper))}return l}if(l.flags&1048576)return hl(l,vte,!0);if(l.flags&2097152){const m=l.types;return m.length===2&&m[0].flags&76&&m[1]===Lc?l:Ds(Lu(l.types,vte))}return l}function INe(l){return Gl(l)&4096}function RNe(l,m,D,C){for(const A of n0(l))C(yz(A,m));if(l.flags&1)C(ct);else for(const A of kh(l))(!D||A.keyType.flags&134217732)&&C(A.keyType)}function PXt(l){const m=Vo();let D;x4(l,se,_t,_t,_t);const C=Fg(l),A=cp(l),w=l.target||l,I=I5(w),U=!I||vdt(w),Z=DD(w),ce=Gh(K9(l)),Fe=C_(l),Te=Je?128:8576;tW(l)?RNe(ce,Te,Je,$e):FF(vte(A),$e),x4(l,m,_t,_t,D||_t);function $e(zt){const gi=I?_a(I,dW(l.mapper,C,zt)):zt;FF(gi,Wi=>ut(zt,Wi))}function ut(zt,gi){if(Y4(gi)){const Wi=Q4(gi),dn=m.get(Wi);if(dn)dn.links.nameType=er([dn.links.nameType,gi]),dn.links.keyType=er([dn.links.keyType,zt]);else{const nu=Y4(zt)?qo(ce,Q4(zt)):void 0,En=!!(Fe&4||!(Fe&8)&&nu&&nu.flags&16777216),Ii=!!(Fe&1||!(Fe&2)&&nu&&Ng(nu)),Nn=fe&&!En&&nu&&nu.flags&16777216,vn=nu?INe(nu):0,An=Hs(4|(En?16777216:0),Wi,vn|262144|(Ii?8:0)|(Nn?524288:0));An.links.mappedType=l,An.links.nameType=gi,An.links.keyType=zt,nu&&(An.links.syntheticOrigin=nu,An.declarations=U?nu.declarations:void 0),m.set(Wi,An)}}else if(Bge(gi)||gi.flags&33){const Wi=gi.flags&5?ct:gi.flags&40?Qt:gi,dn=_a(Z,dW(l.mapper,C,zt)),nu=nW(ce,gi),En=!!(Fe&1||!(Fe&2)&&(nu!=null&&nu.isReadonly)),Ii=y_(Wi,dn,En);D=_dt(D,Ii,!0)}}}function MXt(l){if(!l.links.type){const m=l.links.mappedType;if(!D_(l,0))return m.containsError=!0,Ot;const D=DD(m.target||m),C=dW(m.mapper,Fg(m),l.links.keyType),A=_a(D,C);let w=fe&&l.flags&16777216&&!jl(A,49152)?S6(A,!0):l.links.checkFlags&524288?lEe(A):A;CE()||(pt(K,F.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Fr(l),gn(m)),w=Ot),l.links.type=w}return l.links.type}function Fg(l){return l.typeParameter||(l.typeParameter=gF(_u(l.declaration.typeParameter)))}function cp(l){return l.constraintType||(l.constraintType=rh(Fg(l))||Ot)}function I5(l){return l.declaration.nameType?l.nameType||(l.nameType=_a(Ar(l.declaration.nameType),l.mapper)):void 0}function DD(l){return l.templateType||(l.templateType=l.declaration.type?_a(Vd(Ar(l.declaration.type),!0,!!(C_(l)&4)),l.mapper):Ot)}function Ddt(l){return w8(l.declaration.typeParameter)}function tW(l){const m=Ddt(l);return m.kind===198&&m.operator===143}function K9(l){if(!l.modifiersType)if(tW(l))l.modifiersType=_a(Ar(Ddt(l).type),l.mapper);else{const m=bPe(l.declaration),D=cp(m),C=D&&D.flags&262144?rh(D):D;l.modifiersType=C&&C.flags&4194304?_a(C.type,l.mapper):on}return l.modifiersType}function C_(l){const m=l.declaration;return(m.readonlyToken?m.readonlyToken.kind===41?2:1:0)|(m.questionToken?m.questionToken.kind===41?8:4:0)}function xdt(l){const m=C_(l);return m&8?-1:m&4?1:0}function ONe(l){const m=xdt(l),D=K9(l);return m||(Xm(D)?xdt(D):0)}function zXt(l){return!!(Gu(l)&32&&C_(l)&4)}function Xm(l){if(Gu(l)&32){const m=cp(l);if(AC(m))return!0;const D=I5(l);if(D&&AC(_a(D,Mb(Fg(l),m))))return!0}return!1}function vdt(l){const m=I5(l);return!!m&&ms(m,Fg(l))}function Ag(l){return l.members||(l.flags&524288?l.objectFlags&4?xXt(l):l.objectFlags&3?DXt(l):l.objectFlags&1024?NXt(l):l.objectFlags&16?TXt(l):l.objectFlags&32?PXt(l):H.fail("Unhandled object type "+H.formatObjectFlags(l.objectFlags)):l.flags&1048576?SXt(l):l.flags&2097152?wXt(l):H.fail("Unhandled type "+H.formatTypeFlags(l.flags))),l}function D6(l){return l.flags&524288?Ag(l).properties:_t}function bC(l,m){if(l.flags&524288){const C=Ag(l).members.get(m);if(C&&l6(C))return C}}function Cte(l){if(!l.resolvedProperties){const m=Vo();for(const D of l.types){for(const C of n0(D))if(!m.has(C.escapedName)){const A=GNe(l,C.escapedName);A&&m.set(C.escapedName,A)}if(l.flags&1048576&&kh(D).length===0)break}l.resolvedProperties=Ab(m)}return l.resolvedProperties}function n0(l){return l=Dz(l),l.flags&3145728?Cte(l):D6(l)}function IXt(l,m){l=Dz(l),l.flags&3670016&&Ag(l).members.forEach((D,C)=>{sF(D,C)&&m(D,C)})}function RXt(l,m){return m.properties.some(C=>{const A=C.name&&(gg(C.name)?df(sV(C.name)):j5(C.name)),w=A&&Y4(A)?Q4(A):void 0,I=w===void 0?void 0:he(l,w);return!!I&&pW(I)&&!ms(tS(C),I)})}function OXt(l){const m=er(l);if(!(m.flags&1048576))return Gze(m);const D=Vo();for(const C of l)for(const{escapedName:A}of Gze(C))if(!D.has(A)){const w=Fdt(m,A);w&&D.set(A,w)}return ga(D.values())}function EF(l){return l.flags&262144?rh(l):l.flags&8388608?jXt(l):l.flags&16777216?ydt(l):Wh(l)}function rh(l){return iW(l)?vz(l):void 0}function W9(l,m=0){var D;return m<5&&!!(l&&(l.flags&262144&&Oe((D=l.symbol)==null?void 0:D.declarations,C=>Yu(C,4096))||l.flags&3145728&&Oe(l.types,C=>W9(C,m))||l.flags&8388608&&W9(l.objectType,m+1)||l.flags&16777216&&W9(ydt(l),m+1)||l.flags&33554432&&W9(l.baseType,m)||K5(l)&&Ue(FC(l),(C,A)=>!!(l.target.elementFlags[A]&8)&&W9(C,m))>=0))}function jXt(l){return iW(l)?VXt(l):void 0}function jNe(l){const m=vD(l,!1);return m!==l?m:EF(l)}function VXt(l){if(WNe(l)||Xm(l.objectType))return Ige(l.objectType,l.indexType);const m=jNe(l.indexType);if(m&&m!==l.indexType){const C=b6(l.objectType,m,l.accessFlags);if(C)return C}const D=jNe(l.objectType);if(D&&D!==l.objectType)return b6(D,l.indexType,l.accessFlags)}function VNe(l){if(!l.resolvedDefaultConstraint){const m=yti(l),D=BC(l);l.resolvedDefaultConstraint=nt(m)?D:nt(D)?m:er([m,D])}return l.resolvedDefaultConstraint}function Cdt(l){if(l.resolvedConstraintOfDistributive!==void 0)return l.resolvedConstraintOfDistributive||void 0;if(l.root.isDistributive&&l.restrictiveInstantiation!==l){const m=vD(l.checkType,!1),D=m===l.checkType?EF(m):m;if(D&&D!==l.checkType){const C=NPe(l,Y9(l.root.checkType,D,l.mapper));if(!(C.flags&131072))return l.resolvedConstraintOfDistributive=C,C}}l.resolvedConstraintOfDistributive=!1}function bdt(l){return Cdt(l)||VNe(l)}function ydt(l){return iW(l)?bdt(l):void 0}function HXt(l,m){let D,C=!1;for(const A of l)if(A.flags&465829888){let w=EF(A);for(;w&&w.flags&21233664;)w=EF(w);w&&(D=xi(D,w),m&&(D=xi(D,A)))}else(A.flags&469892092||yD(A))&&(C=!0);if(D&&(m||C)){if(C)for(const A of l)(A.flags&469892092||yD(A))&&(D=xi(D,A));return Mte(Ds(D),!1)}}function Wh(l){if(l.flags&464781312||K5(l)){const m=HNe(l);return m!==dl&&m!==Uc?m:void 0}return l.flags&4194304?vc:void 0}function xD(l){return Wh(l)||l}function iW(l){return HNe(l)!==Uc}function HNe(l){if(l.resolvedBaseConstraint)return l.resolvedBaseConstraint;const m=[];return l.resolvedBaseConstraint=D(l);function D(w){if(!w.immediateBaseConstraint){if(!D_(w,4))return Uc;let I;const U=iEe(w);if((m.length<10||m.length<50&&!kt(m,U))&&(m.push(U),I=A(vD(w,!1)),m.pop()),!CE()){if(w.flags&262144){const Z=iPe(w);if(Z){const ce=pt(Z,F.Type_parameter_0_has_a_circular_constraint,gn(w));K&&!S2(Z,K)&&!S2(K,Z)&&Es(ce,Su(K,F.Circularity_originates_in_type_at_this_location))}}I=Uc}w.immediateBaseConstraint=I||dl}return w.immediateBaseConstraint}function C(w){const I=D(w);return I!==dl&&I!==Uc?I:void 0}function A(w){if(w.flags&262144){const I=vz(w);return w.isThisType||!I?I:C(I)}if(w.flags&3145728){const I=w.types,U=[];let Z=!1;for(const ce of I){const Fe=C(ce);Fe?(Fe!==ce&&(Z=!0),U.push(Fe)):Z=!0}return Z?w.flags&1048576&&U.length===I.length?er(U):w.flags&2097152&&U.length?Ds(U):void 0:w}if(w.flags&4194304)return vc;if(w.flags&134217728){const I=w.types,U=qi(I,C);return U.length===I.length?xF(w.texts,U):ct}if(w.flags&268435456){const I=C(w.type);return I&&I!==w.type?$9(w.symbol,I):ct}if(w.flags&8388608){if(WNe(w))return C(Ige(w.objectType,w.indexType));const I=C(w.objectType),U=C(w.indexType),Z=I&&U&&b6(I,U,w.accessFlags);return Z&&C(Z)}if(w.flags&16777216){const I=bdt(w);return I&&C(I)}if(w.flags&33554432)return C(rPe(w));if(K5(w)){const I=Vt(FC(w),(U,Z)=>{const ce=U.flags&262144&&w.target.elementFlags[Z]&8&&C(U)||U;return ce!==U&&e4(ce,Fe=>zb(Fe)&&!K5(Fe))?ce:U});return Bg(I,w.target.elementFlags,w.target.readonly,w.target.labeledElementDeclarations)}return w}}function KXt(l,m){return l.resolvedApparentType||(l.resolvedApparentType=xm(l,m,!0))}function KNe(l){if(l.default)l.default===Ch&&(l.default=Uc);else if(l.target){const m=KNe(l.target);l.default=m?_a(m,l.mapper):dl}else{l.default=Ch;const m=l.symbol&&L(l.symbol.declarations,C=>Bl(C)&&C.default),D=m?Ar(m):dl;l.default===Ch&&(l.default=D)}return l.default}function _F(l){const m=KNe(l);return m!==dl&&m!==Uc?m:void 0}function WXt(l){return KNe(l)!==Uc}function kdt(l){return!!(l.symbol&&L(l.symbol.declarations,m=>Bl(m)&&m.default))}function GXt(l){return l.resolvedApparentType||(l.resolvedApparentType=JXt(l))}function JXt(l){const m=Jge(l);if(m&&!l.declaration.nameType){const D=rh(m);if(D&&e4(D,zb))return _a(l,Y9(m,D,l.mapper))}return l}function WNe(l){let m;return!!(l.flags&8388608&&Gu(m=l.objectType)&32&&!Xm(m)&&AC(l.indexType)&&!(C_(m)&8)&&!m.declaration.nameType)}function Gh(l){const m=l.flags&465829888?Wh(l)||on:l,D=Gu(m);return D&32?GXt(m):D&4&&m!==l?xm(m,l):m.flags&2097152?KXt(m,l):m.flags&402653316?nc:m.flags&296?fc:m.flags&2112?Bei():m.flags&528?Cl:m.flags&12288?Xdt():m.flags&67108864?Ko:m.flags&4194304?vc:m.flags&2&&!fe?Ko:m}function Dz(l){return Sg(Gh(Sg(l)))}function Fdt(l,m,D){var C,A,w;let I,U,Z;const ce=l.flags&1048576;let Fe,Te=4,$e=ce?0:8,ut=!1;for(const An of l.types){const _n=Gh(An);if(!(Nt(_n)||_n.flags&131072)){const hu=qo(_n,m,D),oo=hu?l4(hu):0;if(hu){if(hu.flags&106500&&(Fe??(Fe=ce?0:16777216),ce?Fe|=hu.flags&16777216:Fe&=hu.flags),!I)I=hu;else if(hu!==I)if((_T(hu)||hu)===(_T(I)||I)&&KPe(I,hu,(fo,ka)=>fo===ka?-1:0)===-1)ut=!!I.parent&&!!S(sn(I.parent));else{U||(U=new Map,U.set(Zo(I),I));const fo=Zo(hu);U.has(fo)||U.set(fo,hu)}ce&&Ng(hu)?$e|=8:!ce&&!Ng(hu)&&($e&=-9),$e|=(oo&6?0:256)|(oo&4?512:0)|(oo&2?1024:0)|(oo&256?2048:0),jMe(hu)||(Te=2)}else if(ce){const Eo=!XK(m)&&G9(_n,m);Eo?($e|=32|(Eo.isReadonly?8:0),Z=xi(Z,xs(_n)?rEe(_n)||te:Eo.type)):PC(_n)&&!(Gu(_n)&2097152)?($e|=32,Z=xi(Z,te)):$e|=16}}}if(!I||ce&&(U||$e&48)&&$e&1536&&!(U&&$Xt(U.values())))return;if(!U&&!($e&16)&&!Z)if(ut){const An=(C=ur(I,qE))==null?void 0:C.links,_n=CF(I,An==null?void 0:An.type);return _n.parent=(w=(A=I.valueDeclaration)==null?void 0:A.symbol)==null?void 0:w.parent,_n.links.containingType=l,_n.links.mapper=An==null?void 0:An.mapper,_n}else return I;const zt=U?ga(U.values()):[I];let gi,Wi,dn;const nu=[];let En,Ii,Nn=!1;for(const An of zt){Ii?An.valueDeclaration&&An.valueDeclaration!==Ii&&(Nn=!0):Ii=An.valueDeclaration,gi=yn(gi,An.declarations);const _n=Wn(An);Wi||(Wi=_n,dn=Ur(An).nameType);const hu=mF(An);(En||hu!==_n)&&(En=xi(En||nu.slice(),hu)),_n!==Wi&&($e|=64),(pW(_n)||U9(_n))&&($e|=128),_n.flags&131072&&_n!==vl&&($e|=131072),nu.push(_n)}yn(nu,Z);const vn=Hs(4|(Fe??0),m,Te|$e);return vn.links.containingType=l,!Nn&&Ii&&(vn.valueDeclaration=Ii,Ii.symbol.parent&&(vn.parent=Ii.symbol.parent)),vn.declarations=gi,vn.links.nameType=dn,nu.length>2?(vn.links.checkFlags|=65536,vn.links.deferralParent=l,vn.links.deferralConstituents=nu,vn.links.deferralWriteConstituents=En):(vn.links.type=ce?er(nu):Ds(nu),En&&(vn.links.writeType=ce?er(En):Ds(En))),vn}function Adt(l,m,D){var C,A;let w=(C=l.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(m)||!D?(A=l.propertyCache)==null?void 0:A.get(m):void 0;return w||(w=Fdt(l,m,D),w&&(D?l.propertyCacheWithoutObjectFunctionPropertyAugment||(l.propertyCacheWithoutObjectFunctionPropertyAugment=Vo()):l.propertyCache||(l.propertyCache=Vo())).set(m,w)),w}function $Xt(l){let m;for(const D of l){if(!D.declarations)return;if(!m){m=new Set(D.declarations);continue}if(m.forEach(C=>{kt(D.declarations,C)||m.delete(C)}),m.size===0)return}return m}function GNe(l,m,D){const C=Adt(l,m,D);return C&&!(Gl(C)&16)?C:void 0}function Sg(l){return l.flags&1048576&&l.objectFlags&16777216?l.resolvedReducedType||(l.resolvedReducedType=UXt(l)):l.flags&2097152?(l.objectFlags&16777216||(l.objectFlags|=16777216|(Oe(Cte(l),qXt)?33554432:0)),l.objectFlags&33554432?Ku:l):l}function UXt(l){const m=Lu(l.types,Sg);if(m===l.types)return l;const D=er(m);return D.flags&1048576&&(D.resolvedReducedType=D),D}function qXt(l){return Sdt(l)||Bdt(l)}function Sdt(l){return!(l.flags&16777216)&&(Gl(l)&131264)===192&&!!(Wn(l).flags&131072)}function Bdt(l){return!l.valueDeclaration&&!!(Gl(l)&1024)}function JNe(l){return!!(l.flags&1048576&&l.objectFlags&16777216&&Oe(l.types,JNe)||l.flags&2097152&&ZXt(l))}function ZXt(l){const m=l.uniqueLiteralFilledInstantiation||(l.uniqueLiteralFilledInstantiation=_a(l,co));return Sg(m)!==m}function $Ne(l,m){if(m.flags&2097152&&Gu(m)&33554432){const D=Le(Cte(m),Sdt);if(D)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(m,void 0,536870912),Fr(D));const C=Le(Cte(m),Bdt);if(C)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(m,void 0,536870912),Fr(C))}return l}function qo(l,m,D,C){if(l=Dz(l),l.flags&524288){const A=Ag(l),w=A.members.get(m);if(w&&l6(w,C))return w;if(D)return;const I=A===Ri?di:A.callSignatures.length?Mn:A.constructSignatures.length?ba:void 0;if(I){const U=bC(I,m);if(U)return U}return bC(He,m)}if(l.flags&3145728)return GNe(l,m,D)}function bte(l,m){if(l.flags&3670016){const D=Ag(l);return m===0?D.callSignatures:D.constructSignatures}return _t}function go(l,m){const D=bte(Dz(l),m);if(m===0&&!S(D)&&l.flags&1048576){if(l.arrayFallbackSignatures)return l.arrayFallbackSignatures;let C;if(e4(l,A=>{var w;return!!((w=A.symbol)!=null&&w.parent)&&YXt(A.symbol.parent)&&(C?C===A.symbol.escapedName:(C=A.symbol.escapedName,!0))})){const A=hl(l,I=>k6((wdt(I.symbol.parent)?To:Fo).typeParameters[0],I.mapper)),w=V1(A,yE(l,I=>wdt(I.symbol.parent)));return l.arrayFallbackSignatures=go(he(w,C),m)}l.arrayFallbackSignatures=D}return D}function YXt(l){return!l||!Fo.symbol||!To.symbol?!1:!!Zm(l,Fo.symbol)||!!Zm(l,To.symbol)}function wdt(l){return!l||!To.symbol?!1:!!Zm(l,To.symbol)}function UNe(l,m){return Le(l,D=>D.keyType===m)}function qNe(l,m){let D,C,A;for(const w of l)w.keyType===ct?D=w:nT(m,w.keyType)&&(C?(A||(A=[C])).push(w):C=w);return A?y_(on,Ds(Vt(A,w=>w.type)),nn(A,(w,I)=>w&&I.isReadonly,!0)):C||(D&&nT(m,ct)?D:void 0)}function nT(l,m){return ms(l,m)||m===ct&&ms(l,Qt)||m===Qt&&(l===Ul||!!(l.flags&128)&&i3(l.value))}function ZNe(l){return l.flags&3670016?Ag(l).indexInfos:_t}function kh(l){return ZNe(Dz(l))}function k3(l,m){return UNe(kh(l),m)}function yC(l,m){var D;return(D=k3(l,m))==null?void 0:D.type}function YNe(l,m){return kh(l).filter(D=>nT(m,D.keyType))}function nW(l,m){return qNe(kh(l),m)}function G9(l,m){return nW(l,XK(m)?Xu:df(Qr(m)))}function Tdt(l){var m;let D;for(const C of Sx(l))D=e0(D,gF(C.symbol));return D!=null&&D.length?D:ed(l)?(m=xz(l))==null?void 0:m.typeParameters:void 0}function QNe(l){const m=[];return l.forEach((D,C)=>{EC(C)||m.push(D)}),m}function kge(l,m){if(Id(l))return;const D=kf(Ie,'"'+l+'"',512);return D&&m?Ks(D):D}function uW(l){if(d7(l)||aV(l)||oV(l))return!0;if(l.initializer){const D=dp(l.parent),C=l.parent.parameters.indexOf(l);return H.assert(C>=0),C>=SE(D,3)}const m=nk(l.parent);return m?!l.type&&!l.dotDotDotToken&&l.parent.parameters.indexOf(l)>=REe(m).length:!1}function QXt(l){return ko(l)&&!eE(l)&&l.questionToken}function yte(l,m,D,C){return{kind:l,parameterName:m,parameterIndex:D,type:C}}function b_(l){let m=0;if(l)for(let D=0;D=D&&w<=A){const I=l?l.slice():[];for(let Z=w;ZU.arguments.length&&!Wi||oV(zt)||(A=D.length)}if((l.kind===177||l.kind===178)&&iT(l)&&(!I||!w)){const ut=l.kind===177?178:177,zt=Sl(_u(l),ut);zt&&(w=p6(zt))}if(Qn(l)){const ut=LU(l);ut&&ut.typeExpression&&(w=CF(Hs(1,"this"),Ar(ut.typeExpression)))}const Fe=Ov(l)?ok(l):l,Te=Fe&&hc(Fe)?b4(Ks(Fe.parent.symbol)):void 0,$e=Te?Te.localTypeParameters:Tdt(l);(u0e(l)||Qn(l)&&XXt(l,D))&&(C|=1),(WP(l)&&Yu(l,64)||hc(l)&&Yu(l.parent,64))&&(C|=4),m.resolvedSignature=y3(l,$e,w,D,void 0,void 0,A,C)}return m.resolvedSignature}function XXt(l,m){if(Ov(l)||!XNe(l))return!1;const D=qu(l.parameters),C=D?B8(D):Cv(l).filter(Eg),A=G(C,I=>I.typeExpression&&pY(I.typeExpression.type)?I.typeExpression.type:void 0),w=Hs(3,"args",32768);return A?w.links.type=V1(Ar(A.type)):(w.links.checkFlags|=65536,w.links.deferralParent=Ku,w.links.deferralConstituents=[ql],w.links.deferralWriteConstituents=[ql]),A&&m.pop(),m.push(w),!0}function xz(l){if(!(Qn(l)&&$0(l)))return;const m=xv(l);return(m==null?void 0:m.typeExpression)&&wF(Ar(m.typeExpression))}function eei(l,m){const D=xz(l);if(!D)return;const C=l.parameters.indexOf(m);return m.dotDotDotToken?FW(D,C):Lg(D,C)}function tei(l){const m=xz(l);return m&&Zs(m)}function XNe(l){const m=ar(l);return m.containsArgumentsReference===void 0&&(m.flags&512?m.containsArgumentsReference=!0:m.containsArgumentsReference=D(l.body)),m.containsArgumentsReference;function D(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===It.escapedName&&VW(C)===It;case 172:case 174:case 177:case 178:return C.name.kind===167&&D(C.name);case 211:case 212:return D(C.expression);case 303:return D(C.initializer);default:return!U0e(C)&&!q_(C)&&!!ao(C,D)}}}function wb(l){if(!l||!l.declarations)return _t;const m=[];for(let D=0;D0&&C.body){const A=l.declarations[D-1];if(C.parent===A.parent&&C.kind===A.kind&&C.pos===A.end)continue}if(Qn(C)&&C.jsDoc){let A=!1;for(const w of C.jsDoc)if(w.tags){for(const I of w.tags)if(NB(I)){const U=I.typeExpression;U.type===void 0&&!hc(C)&&LC(U,me),m.push(dp(U)),A=!0}}if(A)continue}m.push(!R2(C)&&!zp(C)&&xz(C)||dp(C))}}return m}function Ldt(l){const m=Kh(l,l);if(m){const D=_m(m);if(D)return Wn(D)}return me}function kC(l){if(l.thisParameter)return Wn(l.thisParameter)}function y4(l){if(!l.resolvedTypePredicate){if(l.target){const m=y4(l.target);l.resolvedTypePredicate=m?Oti(m,l.mapper):vt}else if(l.compositeSignatures)l.resolvedTypePredicate=Qei(l.compositeSignatures,l.compositeKind)||vt;else{const m=l.declaration&&U4(l.declaration);let D;if(!m){const C=xz(l.declaration);C&&l!==C&&(D=y4(C))}l.resolvedTypePredicate=m&&aY(m)?iei(m,l):D||vt}H.assert(!!l.resolvedTypePredicate)}return l.resolvedTypePredicate===vt?void 0:l.resolvedTypePredicate}function iei(l,m){const D=l.parameterName,C=l.type&&Ar(l.type);return D.kind===197?yte(l.assertsModifier?2:0,void 0,void 0,C):yte(l.assertsModifier?3:1,D.escapedText,Ue(m.parameters,A=>A.escapedName===D.escapedText),C)}function Ndt(l,m,D){return m!==2097152?er(l,D):Ds(l)}function Zs(l){if(!l.resolvedReturnType){if(!D_(l,3))return Ot;let m=l.target?_a(Zs(l.target),l.mapper):l.compositeSignatures?_a(Ndt(Vt(l.compositeSignatures,Zs),l.compositeKind,2),l.mapper):uT(l.declaration)||(Ql(l.declaration.body)?me:HEe(l.declaration));if(l.flags&8?m=mht(m):l.flags&16&&(m=S6(m)),!CE()){if(l.declaration){const D=U4(l.declaration);if(D)pt(D,F.Return_type_annotation_circularly_references_itself);else if(Ae){const C=l.declaration,A=Za(C);A?pt(A,F._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,b0(A)):pt(C,F.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)}}m=me}l.resolvedReturnType=m}return l.resolvedReturnType}function uT(l){if(l.kind===176)return b4(Ks(l.parent.symbol));const m=U4(l);if(Ov(l)){const D=iP(l);if(D&&hc(D.parent)&&!m)return b4(Ks(D.parent.parent.symbol))}if(X8(l))return Ar(l.parameters[0].type);if(m)return Ar(m);if(l.kind===177&&iT(l)){const D=Qn(l)&&qp(l);if(D)return D;const C=Sl(_u(l),178),A=Qm(C);if(A)return A}return tei(l)}function Fge(l){return l.compositeSignatures&&Oe(l.compositeSignatures,Fge)||!l.resolvedReturnType&&xC(l,3)>=0}function nei(l){return Pdt(l)||me}function Pdt(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]),D=xs(m)?rEe(m):m;return D&&yC(D,Qt)}}function rW(l,m,D,C){const A=ePe(l,x6(m,l.typeParameters,b_(l.typeParameters),D));if(C){const w=Kft(Zs(A));if(w){const I=eW(w);I.typeParameters=C;const U=eW(A);return U.resolvedReturnType=DF(I),U}}return A}function ePe(l,m){const D=l.instantiations||(l.instantiations=new Map),C=hp(m);let A=D.get(C);return A||D.set(C,A=Age(l,m)),A}function Age(l,m){return lT(l,uei(l,m),!0)}function uei(l,m){return Sf(l.typeParameters,m)}function aW(l){return l.typeParameters?l.erasedSignatureCache||(l.erasedSignatureCache=rei(l)):l}function rei(l){return lT(l,I1t(l.typeParameters),!0)}function aei(l){return l.typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=oei(l)):l}function oei(l){return rW(l,Vt(l.typeParameters,m=>m.target&&!rh(m.target)?m.target:m),Qn(l.declaration))}function sei(l){const m=l.typeParameters;if(m){if(l.baseSignatureCache)return l.baseSignatureCache;const D=I1t(m),C=Sf(m,Vt(m,w=>rh(w)||on));let A=Vt(m,w=>_a(w,C)||on);for(let w=0;w{Bge(A)&&!UNe(m,A)&&m.push(y_(A,D.type?Ar(D.type):me,Rf(D,8),D))})}return m}return _t}function Bge(l){return!!(l.flags&4108)||U9(l)||!!(l.flags&2097152)&&!kz(l)&&Oe(l.types,Bge)}function iPe(l){return qi(ti(l.symbol&&l.symbol.declarations,Bl),w8)[0]}function Idt(l,m){var D;let C;if((D=l.symbol)!=null&&D.declarations){for(const A of l.symbol.declarations)if(A.parent.kind===195){const[w=A.parent,I]=dye(A.parent.parent);if(I.kind===183&&!m){const U=I,Z=yze(U);if(Z){const ce=U.typeArguments.indexOf(w);if(ce()=>Doi(U,Z,zt))),$e=_a(Fe,Te);$e!==l&&(C=xi(C,$e))}}}}else if(I.kind===169&&I.dotDotDotToken||I.kind===191||I.kind===202&&I.dotDotDotToken)C=xi(C,V1(on));else if(I.kind===204)C=xi(C,ct);else if(I.kind===168&&I.parent.kind===200)C=xi(C,vc);else if(I.kind===200&&I.type&&l0(I.type)===A.parent&&I.parent.kind===194&&I.parent.extendsType===I&&I.parent.checkType.kind===200&&I.parent.checkType.type){const U=I.parent.checkType,Z=Ar(U.type);C=xi(C,_a(Z,Mb(gF(_u(U.typeParameter)),U.typeParameter.constraint?Ar(U.typeParameter.constraint):vc)))}}}return C&&Ds(C)}function vz(l){if(!l.constraint)if(l.target){const m=rh(l.target);l.constraint=m?_a(m,l.mapper):dl}else{const m=iPe(l);if(!m)l.constraint=Idt(l)||dl;else{let D=Ar(m);D.flags&1&&!Nt(D)&&(D=m.parent.parent.kind===200?vc:on),l.constraint=D}}return l.constraint===dl?void 0:l.constraint}function Rdt(l){const m=Sl(l.symbol,168),D=_g(m.parent)?Aq(m.parent):m.parent;return D&&Dm(D)}function hp(l){let m="";if(l){const D=l.length;let C=0;for(;C1&&(m+=":"+w),C+=w}}return m}function J9(l,m){return l?`@${Zo(l)}`+(m?`:${hp(m)}`:""):""}function wge(l,m){let D=0;for(const C of l)(m===void 0||!(C.flags&m))&&(D|=Gu(C));return D&458752}function rT(l,m){return Oe(m)&&l===Ka?on:R5(l,m)}function R5(l,m){const D=hp(m);let C=l.instantiations.get(D);return C||(C=D4(4,l.symbol),l.instantiations.set(D,C),C.objectFlags|=m?wge(m):0,C.target=l,C.resolvedTypeArguments=m),C}function Odt(l){const m=N5(l.flags,l.symbol);return m.objectFlags=l.objectFlags,m.target=l.target,m.resolvedTypeArguments=l.resolvedTypeArguments,m}function nPe(l,m,D,C,A){if(!C){C=q9(m);const I=sT(C);A=D?V5(I,D):I}const w=D4(4,l.symbol);return w.target=l,w.node=m,w.mapper=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function O0(l){var m,D;if(!l.resolvedTypeArguments){if(!D_(l,6))return((m=l.target.localTypeParameters)==null?void 0:m.map(()=>Ot))||_t;const C=l.node,A=C?C.kind===183?Hi(l.target.outerTypeParameters,JEe(C,l.target.localTypeParameters)):C.kind===188?[Ar(C.elementType)]:Vt(C.elements,Ar):_t;CE()?l.resolvedTypeArguments=l.mapper?V5(A,l.mapper):A:(l.resolvedTypeArguments=((D=l.target.localTypeParameters)==null?void 0:D.map(()=>Ot))||_t,pt(l.node||K,l.target.symbol?F.Type_arguments_for_0_circularly_reference_themselves:F.Tuple_type_arguments_circularly_reference_themselves,l.target.symbol&&Fr(l.target.symbol)))}return l.resolvedTypeArguments}function O5(l){return S(l.target.typeParameters)}function jdt(l,m){const D=X0(Ks(m)),C=D.localTypeParameters;if(C){const A=S(l.typeArguments),w=b_(C),I=Qn(l);if(!(!Ae&&I)&&(AC.length)){const ce=I&&c5(l)&&!LB(l.parent),Fe=w===C.length?ce?F.Expected_0_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_1_type_argument_s:ce?F.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_between_1_and_2_type_arguments,Te=gn(D,void 0,2);if(pt(l,Fe,Te,w,C.length),!I)return Ot}if(l.kind===183&&a1t(l,S(l.typeArguments)!==C.length))return nPe(D,l,void 0);const Z=Hi(D.outerTypeParameters,x6(kte(l),C,w,I));return R5(D,Z)}return Tb(l,m)?D:Ot}function aT(l,m,D,C){const A=X0(l);if(A===Qi&&tQ.has(l.escapedName)&&m&&m.length===1)return $9(l,m[0]);const w=Ur(l),I=w.typeParameters,U=hp(m)+J9(D,C);let Z=w.instantiations.get(U);return Z||w.instantiations.set(U,Z=j1t(A,Sf(I,x6(m,I,b_(I),Qn(l.valueDeclaration))),D,C)),Z}function lei(l,m){if(Gl(m)&1048576){const A=kte(l),w=J9(m,A);let I=gt.get(w);return I||(I=Pc(1,"error",void 0,`alias ${w}`),I.aliasSymbol=m,I.aliasTypeArguments=A,gt.set(w,I)),I}const D=X0(m),C=Ur(m).typeParameters;if(C){const A=S(l.typeArguments),w=b_(C);if(AC.length)return pt(l,w===C.length?F.Generic_type_0_requires_1_type_argument_s:F.Generic_type_0_requires_between_1_and_2_type_arguments,Fr(m),w,C.length),Ot;const I=q9(l);let U=I&&(Vdt(m)||!Vdt(I))?I:void 0,Z;if(U)Z=sT(U);else if($U(l)){const ce=oT(l,2097152,!0);if(ce&&ce!==Xt){const Fe=md(ce);Fe&&Fe.flags&524288&&(U=Fe,Z=kte(l)||(C?[]:void 0))}}return aT(m,kte(l),U,Z)}return Tb(l,m)?D:Ot}function Vdt(l){var m;const D=(m=l.declarations)==null?void 0:m.find(Sj);return!!(D&&Nm(D))}function cei(l){switch(l.kind){case 183:return l.typeName;case 233:const m=l.expression;if(ec(m))return m}}function Hdt(l){return l.parent?`${Hdt(l.parent)}.${l.escapedName}`:l.escapedName}function Tge(l){const D=(l.kind===166?l.right:l.kind===211?l.name:l).escapedText;if(D){const C=l.kind===166?Tge(l.left):l.kind===211?Tge(l.expression):void 0,A=C?`${Hdt(C)}.${D}`:D;let w=et.get(A);return w||(et.set(A,w=Hs(524288,D,1048576)),w.parent=C,w.links.declaredType=Ei),w}return Xt}function oT(l,m,D){const C=cei(l);if(!C)return Xt;const A=R0(C,m,D);return A&&A!==Xt?A:D?Xt:Tge(C)}function Lge(l,m){if(m===Xt)return Ot;if(m=L9(m)||m,m.flags&96)return jdt(l,m);if(m.flags&524288)return lei(l,m);const D=rdt(m);if(D)return Tb(l,m)?Jh(D):Ot;if(m.flags&111551&&Nge(l)){const C=dei(l,m);return C||(oT(l,788968),Wn(m))}return Ot}function dei(l,m){const D=ar(l);if(!D.resolvedJSDocType){const C=Wn(m);let A=C;if(m.valueDeclaration){const w=l.kind===205&&l.qualifier;C.symbol&&C.symbol!==m&&w&&(A=Lge(l,C.symbol))}D.resolvedJSDocType=A}return D.resolvedJSDocType}function uPe(l,m){if(m.flags&3||m===l||l.flags&1)return l;const D=`${Fh(l)}>${Fh(m)}`,C=Ta.get(D);if(C)return C;const A=lp(33554432);return A.baseType=l,A.constraint=m,Ta.set(D,A),A}function rPe(l){return Ds([l.constraint,l.baseType])}function Kdt(l){return l.kind===189&&l.elements.length===1}function Wdt(l,m,D){return Kdt(m)&&Kdt(D)?Wdt(l,m.elements[0],D.elements[0]):y6(Ar(m))===y6(l)?Ar(D):void 0}function hei(l,m){let D,C=!0;for(;m&&!na(m)&&m.kind!==327;){const A=m.parent;if(A.kind===169&&(C=!C),(C||l.flags&8650752)&&A.kind===194&&m===A.trueType){const w=Wdt(l,A.checkType,A.extendsType);w&&(D=xi(D,w))}else if(l.flags&262144&&A.kind===200&&m===A.type){const w=Ar(A);if(Fg(w)===y6(l)){const I=Jge(w);if(I){const U=rh(I);U&&e4(U,zb)&&(D=xi(D,er([Qt,Ul])))}}}m=A}return D?uPe(l,Ds(D)):l}function Nge(l){return!!(l.flags&16777216)&&(l.kind===183||l.kind===205)}function Tb(l,m){return l.typeArguments?(pt(l,F.Type_0_is_not_generic,m?Fr(m):l.typeName?b0(l.typeName):YY),!1):!0}function Gdt(l){if(at(l.typeName)){const m=l.typeArguments;switch(l.typeName.escapedText){case"String":return Tb(l),ct;case"Number":return Tb(l),Qt;case"Boolean":return Tb(l),pr;case"Void":return Tb(l),ca;case"Undefined":return Tb(l),te;case"Null":return Tb(l),it;case"Function":case"function":return Tb(l),di;case"array":return(!m||!m.length)&&!Ae?ql:void 0;case"promise":return(!m||!m.length)&&!Ae?die(me):void 0;case"Object":if(m&&m.length===2){if(xq(l)){const D=Ar(m[0]),C=Ar(m[1]),A=D===ct||D===Qt?[y_(D,C,!1)]:_t;return Ol(void 0,se,_t,_t,A)}return me}return Tb(l),Ae?void 0:me}}}function fei(l){const m=Ar(l.type);return fe?aEe(m,65536):m}function aPe(l){const m=ar(l);if(!m.resolvedType){if(q3(l)&&Yy(l.parent))return m.resolvedSymbol=Xt,m.resolvedType=Rc(l.parent.expression);let D,C;const A=788968;Nge(l)&&(C=Gdt(l),C||(D=oT(l,A,!0),D===Xt?D=oT(l,A|111551):oT(l,A),C=Lge(l,D))),C||(D=oT(l,A),C=Lge(l,D)),m.resolvedSymbol=D,m.resolvedType=C}return m.resolvedType}function kte(l){return Vt(l.typeArguments,Ar)}function Jdt(l){const m=ar(l);if(!m.resolvedType){const D=lmt(l);m.resolvedType=Jh(vm(D))}return m.resolvedType}function $dt(l,m){function D(A){const w=A.declarations;if(w)for(const I of w)switch(I.kind){case 263:case 264:case 266:return I}}if(!l)return m?Ka:Ko;const C=X0(l);return C.flags&524288?S(C.typeParameters)!==m?(pt(D(l),F.Global_type_0_must_have_1_type_parameter_s,lc(l),m),m?Ka:Ko):C:(pt(D(l),F.Global_type_0_must_be_a_class_or_interface_type,lc(l)),m?Ka:Ko)}function oPe(l,m){return Cz(l,111551,m?F.Cannot_find_global_value_0:void 0)}function Udt(l,m){return Cz(l,788968,m?F.Cannot_find_global_type_0:void 0)}function Pge(l,m,D){const C=Cz(l,788968,D?F.Cannot_find_global_type_0:void 0);if(C&&(X0(C),S(Ur(C).typeParameters)!==m)){const A=C.declarations&&Le(C.declarations,jp);pt(A,F.Global_type_0_must_have_1_type_parameter_s,lc(C),m);return}return C}function Cz(l,m,D){return uc(void 0,l,m,D,l,!1,!1,!1)}function zc(l,m,D){const C=Udt(l,D);return C||D?$dt(C,m):void 0}function mei(){return c_||(c_=zc("TypedPropertyDescriptor",1,!0)||Ka)}function pei(){return In||(In=zc("TemplateStringsArray",0,!0)||Ko)}function qdt(){return tr||(tr=zc("ImportMeta",0,!0)||Ko)}function Zdt(){if(!ir){const l=Hs(0,"ImportMetaExpression"),m=qdt(),D=Hs(4,"meta",8);D.parent=l,D.links.type=m;const C=Vo([D]);l.members=C,ir=Ol(l,C,_t,_t,_t)}return ir}function Ydt(l){return ha||(ha=zc("ImportCallOptions",0,l))||Ko}function Qdt(l){return jh||(jh=oPe("Symbol",l))}function gei(l){return f4||(f4=Udt("SymbolConstructor",l))}function Xdt(){return c3||(c3=zc("Symbol",0,!1))||Ko}function Fte(l){return C5||(C5=zc("Promise",1,l))||Ka}function e1t(l){return R1||(R1=zc("PromiseLike",1,l))||Ka}function sPe(l){return d3||(d3=oPe("Promise",l))}function Eei(l){return Wf||(Wf=zc("PromiseConstructorLike",0,l))||Ko}function Mge(l){return Q||(Q=zc("AsyncIterable",1,l))||Ka}function _ei(l){return Me||(Me=zc("AsyncIterator",3,l))||Ka}function Dei(l){return wt||(wt=zc("AsyncIterableIterator",1,l))||Ka}function xei(l){return ki||(ki=zc("AsyncGenerator",3,l))||Ka}function lPe(l){return m4||(m4=zc("Iterable",1,l))||Ka}function vei(l){return Vh||(Vh=zc("Iterator",3,l))||Ka}function Cei(l){return Ee||(Ee=zc("IterableIterator",1,l))||Ka}function bei(l){return Bt||(Bt=zc("Generator",3,l))||Ka}function yei(l){return Di||(Di=zc("IteratorYieldResult",1,l))||Ka}function kei(l){return Ci||(Ci=zc("IteratorReturnResult",1,l))||Ka}function t1t(l){return os||(os=zc("Disposable",0,l))||Ko}function Fei(l){return ss||(ss=zc("AsyncDisposable",0,l))||Ko}function i1t(l,m=0){const D=Cz(l,788968,void 0);return D&&$dt(D,m)}function Aei(){return Rl||(Rl=Pge("Extract",2,!0)||Xt),Rl===Xt?void 0:Rl}function Sei(){return x1||(x1=Pge("Omit",2,!0)||Xt),x1===Xt?void 0:x1}function cPe(l){return fd||(fd=Pge("Awaited",1,l)||(l?Xt:void 0)),fd===Xt?void 0:fd}function Bei(){return $m||($m=zc("BigInt",0,!1))||Ko}function wei(l){return Um??(Um=zc("ClassDecoratorContext",1,l))??Ka}function Tei(l){return h3??(h3=zc("ClassMethodDecoratorContext",2,l))??Ka}function Lei(l){return d_??(d_=zc("ClassGetterDecoratorContext",2,l))??Ka}function Nei(l){return ia??(ia=zc("ClassSetterDecoratorContext",2,l))??Ka}function Pei(l){return Xx??(Xx=zc("ClassAccessorDecoratorContext",2,l))??Ka}function Mei(l){return e6??(e6=zc("ClassAccessorDecoratorTarget",2,l))??Ka}function zei(l){return bg??(bg=zc("ClassAccessorDecoratorResult",2,l))??Ka}function Iei(l){return sb??(sb=zc("ClassFieldDecoratorContext",2,l))??Ka}function Rei(){return _s||(_s=oPe("NaN",!1))}function Oei(){return np||(np=Pge("Record",2,!0)||Xt),np===Xt?void 0:np}function oW(l,m){return l!==Ka?R5(l,m):Ko}function n1t(l){return oW(mei(),[l])}function u1t(l){return oW(lPe(!0),[l])}function V1(l,m){return oW(m?To:Fo,[l])}function dPe(l){switch(l.kind){case 190:return 2;case 191:return r1t(l);case 202:return l.questionToken?2:l.dotDotDotToken?r1t(l):1;default:return 1}}function r1t(l){return wte(l.type)?4:8}function jei(l){const m=Kei(l.parent);if(wte(l))return m?To:Fo;const C=Vt(l.elements,dPe);return hPe(C,m,Vt(l.elements,Vei))}function Vei(l){return GP(l)||io(l)?l:void 0}function a1t(l,m){return!!q9(l)||o1t(l)&&(l.kind===188?v6(l.elementType):l.kind===189?Oe(l.elements,v6):m||Oe(l.typeArguments,v6))}function o1t(l){const m=l.parent;switch(m.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return o1t(m);case 265:return!0}return!1}function v6(l){switch(l.kind){case 183:return Nge(l)||!!(oT(l,788968).flags&524288);case 186:return!0;case 198:return l.operator!==158&&v6(l.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return v6(l.type);case 191:return l.type.kind!==188||v6(l.type.elementType);case 192:case 193:return Oe(l.types,v6);case 199:return v6(l.objectType)||v6(l.indexType);case 194:return v6(l.checkType)||v6(l.extendsType)||v6(l.trueType)||v6(l.falseType)}return!1}function Hei(l){const m=ar(l);if(!m.resolvedType){const D=jei(l);if(D===Ka)m.resolvedType=Ko;else if(!(l.kind===189&&Oe(l.elements,C=>!!(dPe(C)&8)))&&a1t(l))m.resolvedType=l.kind===189&&l.elements.length===0?D:nPe(D,l,void 0);else{const C=l.kind===188?[Ar(l.elementType)]:Vt(l.elements,Ar);m.resolvedType=fPe(D,C)}}return m.resolvedType}function Kei(l){return z7(l)&&l.operator===148}function Bg(l,m,D=!1,C=[]){const A=hPe(m||Vt(l,w=>1),D,C);return A===Ka?Ko:l.length?fPe(A,l):A}function hPe(l,m,D){if(l.length===1&&l[0]&4)return m?To:Fo;const C=Vt(l,w=>w&1?"#":w&2?"?":w&4?".":"*").join()+(m?"R":"")+(Oe(D,w=>!!w)?","+Vt(D,w=>w?$s(w):"_").join(","):"");let A=Ba.get(C);return A||Ba.set(C,A=Wei(l,m,D)),A}function Wei(l,m,D){const C=l.length,A=ui(l,Te=>!!(Te&9));let w;const I=[];let U=0;if(C){w=new Array(C);for(let Te=0;Te!!(l.elementFlags[gi]&8&&zt.flags&1179648));if(ut>=0)return Ate(Vt(m,(zt,gi)=>l.elementFlags[gi]&8?zt:on))?hl(m[ut],zt=>mPe(l,qd(m,ut,zt))):Ot}const w=[],I=[],U=[];let Z=-1,ce=-1,Fe=-1;for(let ut=0;ut=1e4)return pt(K,q_(K)?F.Type_produces_a_tuple_type_that_is_too_large_to_represent:F.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ot;L(Wi,(dn,nu)=>{var En;return $e(dn,zt.target.elementFlags[nu],(En=zt.target.labeledElementDeclarations)==null?void 0:En[nu])})}else $e(H5(zt)&&yC(zt,Qt)||Ot,4,(C=l.labeledElementDeclarations)==null?void 0:C[ut]);else $e(zt,gi,(A=l.labeledElementDeclarations)==null?void 0:A[ut])}for(let ut=0;ut=0&&ceI[ce+zt]&8?qf(ut,Qt):ut)),w.splice(ce+1,Fe-ce),I.splice(ce+1,Fe-ce),U.splice(ce+1,Fe-ce));const Te=hPe(I,l.readonly,U);return Te===Ka?Ko:I.length?R5(Te,w):Te;function $e(ut,zt,gi){zt&1&&(Z=I.length),zt&4&&ce<0&&(ce=I.length),zt&6&&(Fe=I.length),w.push(zt&2?Vd(ut,!0):ut),I.push(zt),U.push(gi)}}function bz(l,m,D=0){const C=l.target,A=O5(l)-D;return m>C.fixedLength?wii(l)||Bg(_t):Bg(O0(l).slice(m,A),C.elementFlags.slice(m,A),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(m,A))}function s1t(l){return er(xi(am(l.target.fixedLength,m=>df(""+m)),k_(l.target.readonly?To:Fo)))}function Gei(l,m){const D=Ue(l.elementFlags,C=>!(C&m));return D>=0?D:l.elementFlags.length}function sW(l,m){return l.elementFlags.length-Ze(l.elementFlags,D=>!(D&m))-1}function pPe(l){return l.fixedLength+sW(l,3)}function FC(l){const m=O0(l),D=O5(l);return m.length===D?m:m.slice(0,D)}function Jei(l){return Vd(Ar(l.type),!0)}function Fh(l){return l.id}function C6(l,m){return Kl(l,m,Fh,nl)>=0}function gPe(l,m){const D=Kl(l,m,Fh,nl);return D<0?(l.splice(~D,0,m),!0):!1}function $ei(l,m,D){const C=D.flags;if(!(C&131072))if(m|=C&473694207,C&465829888&&(m|=33554432),D===vi&&(m|=8388608),!fe&&C&98304)Gu(D)&65536||(m|=4194304);else{const A=l.length,w=A&&D.id>l[A-1].id?~A:Kl(l,D,Fh,nl);w<0&&l.splice(~w,0,D)}return m}function l1t(l,m,D){let C;for(const A of D)A!==C&&(m=A.flags&1048576?l1t(l,m|(Yei(A)?1048576:0),A.types):$ei(l,m,A),C=A);return m}function Uei(l,m){var D;if(l.length<2)return l;const C=hp(l),A=Yo.get(C);if(A)return A;const w=m&&Oe(l,ce=>!!(ce.flags&524288)&&!Xm(ce)&&IPe(Ag(ce))),I=l.length;let U=I,Z=0;for(;U>0;){U--;const ce=l[U];if(w||ce.flags&469499904){if(ce.flags&262144&&xD(ce).flags&1048576){bE(ce,er(Vt(l,$e=>$e===ce?Ku:$e)),p4)&&fv(l,U);continue}const Fe=ce.flags&61603840?Le(n0(ce),$e=>Tg(Wn($e))):void 0,Te=Fe&&Jh(Wn(Fe));for(const $e of l)if(ce!==$e){if(Z===1e5&&Z/(I-U)*I>1e6){(D=Gn)==null||D.instant(Gn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:l.map(zt=>zt.id)}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Z++,Fe&&$e.flags&61603840){const ut=he($e,Fe.escapedName);if(ut&&Tg(ut)&&Jh(ut)!==Te)continue}if(bE(ce,$e,p4)&&(!(Gu(eT(ce))&1)||!(Gu(eT($e))&1)||TC(ce,$e))){fv(l,U);break}}}}return Yo.set(C,l),l}function qei(l,m,D){let C=l.length;for(;C>0;){C--;const A=l[C],w=A.flags;(w&402653312&&m&4||w&256&&m&8||w&2048&&m&64||w&8192&&m&4096||D&&w&32768&&m&16384||Pb(A)&&C6(l,A.regularType))&&fv(l,C)}}function Zei(l){const m=ti(l,D=>!!(D.flags&134217728)&&U9(D));if(m.length){let D=l.length;for(;D>0;){D--;const C=l[D];C.flags&128&&Oe(m,A=>pEe(C,A))&&fv(l,D)}}}function Yei(l){return!!(l.flags&1048576&&(l.aliasSymbol||l.origin))}function c1t(l,m){for(const D of m)if(D.flags&1048576){const C=D.origin;D.aliasSymbol||C&&!(C.flags&1048576)?xa(l,D):C&&C.flags&1048576&&c1t(l,C.types)}}function EPe(l,m){const D=Fb(l);return D.types=m,D}function er(l,m=1,D,C,A){if(l.length===0)return Ku;if(l.length===1)return l[0];if(l.length===2&&!A&&(l[0].flags&1048576||l[1].flags&1048576)){const w=m===0?"N":m===2?"S":"L",I=l[0].id=2&&w[0]===te&&w[1]===de&&fv(w,1),(I&402664352||I&16384&&I&32768)&&qei(w,I,!!(m&2)),I&128&&I&134217728&&Zei(w),m===2&&(w=Uei(w,!!(I&524288)),!w))return Ot;if(w.length===0)return I&65536?I&4194304?it:Ct:I&32768?I&4194304?te:we:Ku}if(!A&&I&1048576){const Z=[];c1t(Z,l);const ce=[];for(const Te of w)Oe(Z,$e=>C6($e.types,Te))||ce.push(Te);if(!D&&Z.length===1&&ce.length===0)return Z[0];if(nn(Z,(Te,$e)=>Te+$e.types.length,0)+ce.length===w.length){for(const Te of Z)gPe(ce,Te);A=EPe(1048576,ce)}}const U=(I&36323331?0:32768)|(I&2097152?16777216:0);return DPe(w,U,D,C,A)}function Qei(l,m){let D;const C=[];for(const w of l){const I=y4(w);if(I){if(I.kind!==0&&I.kind!==1||D&&!_Pe(D,I))return;D=I,C.push(I.type)}else{const U=m!==2097152?Zs(w):void 0;if(U!==Ui&&U!==Sn)return}}if(!D)return;const A=Ndt(C,m);return yte(D.kind,D.parameterName,D.parameterIndex,A)}function _Pe(l,m){return l.kind===m.kind&&l.parameterIndex===m.parameterIndex}function DPe(l,m,D,C,A){if(l.length===0)return Ku;if(l.length===1)return l[0];const I=(A?A.flags&1048576?`|${hp(A.types)}`:A.flags&2097152?`&${hp(A.types)}`:`#${A.type.id}|${hp(l)}`:hp(l))+J9(D,C);let U=bt.get(I);return U||(U=lp(1048576),U.objectFlags=m|wge(l,98304),U.types=l,U.origin=A,U.aliasSymbol=D,U.aliasTypeArguments=C,l.length===2&&l[0].flags&512&&l[1].flags&512&&(U.flags|=16,U.intrinsicName="boolean"),bt.set(I,U)),U}function Xei(l){const m=ar(l);if(!m.resolvedType){const D=q9(l);m.resolvedType=er(Vt(l.types,Ar),1,D,sT(D))}return m.resolvedType}function eti(l,m,D){const C=D.flags;return C&2097152?h1t(l,m,D.types):(yD(D)?m&16777216||(m|=16777216,l.set(D.id.toString(),D)):(C&3?D===vi&&(m|=8388608):(fe||!(C&98304))&&(D===de&&(m|=262144,D=te),l.has(D.id.toString())||(D.flags&109472&&m&109472&&(m|=67108864),l.set(D.id.toString(),D))),m|=C&473694207),m)}function h1t(l,m,D){for(const C of D)m=eti(l,m,Jh(C));return m}function tti(l,m){let D=l.length;for(;D>0;){D--;const C=l[D];(C.flags&4&&m&402653312||C.flags&8&&m&256||C.flags&64&&m&2048||C.flags&4096&&m&8192||C.flags&16384&&m&32768||yD(C)&&m&470302716)&&fv(l,D)}}function iti(l,m){for(const D of l)if(!C6(D.types,m)){const C=m.flags&128?ct:m.flags&288?Qt:m.flags&2048?Li:m.flags&8192?Xu:void 0;if(!C||!C6(D.types,C))return!1}return!0}function nti(l){let m=l.length;const D=ti(l,C=>!!(C.flags&128));for(;m>0;){m--;const C=l[m];if(C.flags&134217728){for(const A of D)if(F6(A,C)){fv(l,m);break}else if(U9(C))return!0}}return!1}function f1t(l,m){for(let D=0;D!(C.flags&m))}function uti(l){let m;const D=Ue(l,I=>!!(Gu(I)&32768));if(D<0)return!1;let C=D+1;for(;C!!(ce.flags&1048576&&ce.types[0].flags&32768))){const ce=Oe(I,EW)?de:te;f1t(I,32768),Z=er([Ds(I),ce],1,m,D)}else if(ye(I,ce=>!!(ce.flags&1048576&&(ce.types[0].flags&65536||ce.types[1].flags&65536))))f1t(I,65536),Z=er([Ds(I),it],1,m,D);else{if(!Ate(I))return Ot;const ce=ati(I),Fe=Oe(ce,Te=>!!(Te.flags&2097152))&&xPe(ce)>xPe(I)?EPe(2097152,I):void 0;Z=er(ce,1,m,D,Fe)}else Z=rti(I,m,D);Ln.set(U,Z)}return Z}function m1t(l){return nn(l,(m,D)=>D.flags&1048576?m*D.types.length:D.flags&131072?0:m,1)}function Ate(l){var m;const D=m1t(l);return D>=1e5?((m=Gn)==null||m.instant(Gn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:l.map(C=>C.id),size:D}),pt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function ati(l){const m=m1t(l),D=[];for(let C=0;C=0;U--)if(l[U].flags&1048576){const Z=l[U].types,ce=Z.length;A[U]=Z[w%ce],w=Math.floor(w/ce)}const I=Ds(A);I.flags&131072||D.push(I)}return D}function p1t(l){return!(l.flags&3145728)||l.aliasSymbol?1:l.flags&1048576&&l.origin?p1t(l.origin):xPe(l.types)}function xPe(l){return nn(l,(m,D)=>m+p1t(D),0)}function oti(l){const m=ar(l);if(!m.resolvedType){const D=q9(l),C=Vt(l.types,Ar),A=C.length===2?C.indexOf(Lc):-1,w=A>=0?C[1-A]:on,I=!!(w.flags&76||w.flags&134217728&&U9(w));m.resolvedType=Ds(C,D,sT(D),I)}return m.resolvedType}function g1t(l,m){const D=lp(4194304);return D.type=l,D.indexFlags=m,D}function sti(l){const m=Fb(4194304);return m.type=l,m}function E1t(l,m){return m&1?l.resolvedStringIndexType||(l.resolvedStringIndexType=g1t(l,1)):l.resolvedIndexType||(l.resolvedIndexType=g1t(l,0))}function lti(l,m){const D=Fg(l),C=cp(l),A=I5(l.target||l);if(!A&&!(m&2))return C;const w=[];if(tW(l)){if(AC(C))return E1t(l,m);{const Z=Gh(K9(l));RNe(Z,8576,!!(m&1),U)}}else FF(vte(C),U);AC(C)&&FF(C,U);const I=m&2?Ic(er(w),Z=>!(Z.flags&5)):er(w);if(I.flags&1048576&&C.flags&1048576&&hp(I.types)===hp(C.types))return C;return I;function U(Z){const ce=A?_a(A,dW(l.mapper,D,Z)):Z;w.push(ce===ct?wo:ce)}}function cti(l){const m=Fg(l);return D(I5(l)||m);function D(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===m:C.flags&137363456?ye(C.types,D):C.flags&8388608?D(C.objectType)&&D(C.indexType):C.flags&33554432?D(C.baseType)&&D(C.constraint):C.flags&268435456?D(C.type):!1}}function j5(l){if(ea(l))return Ku;if(Of(l))return Jh(ya(l));if(Ps(l))return Jh(F3(l));const m=sk(l);return m!==void 0?df(Qr(m)):Wt(l)?Jh(ya(l)):Ku}function yz(l,m,D){if(D||!(l4(l)&6)){let C=Ur(yge(l)).nameType;if(!C){const A=Za(l.valueDeclaration);C=l.escapedName==="default"?df("default"):A&&j5(A)||(Ij(l)?void 0:df(lc(l)))}if(C&&C.flags&m)return C}return Ku}function _1t(l,m){return!!(l.flags&m||l.flags&2097152&&Oe(l.types,D=>_1t(D,m)))}function dti(l,m,D){const C=D&&(Gu(l)&7||l.aliasSymbol)?sti(l):void 0,A=Vt(n0(l),I=>yz(I,m)),w=Vt(kh(l),I=>I!==Tu&&_1t(I.keyType,m)?I.keyType===ct&&m&8?wo:I.keyType:Ku);return er(Hi(A,w),1,void 0,void 0,C)}function D1t(l,m=0){return!!(l.flags&58982400||K5(l)||Xm(l)&&!cti(l)||l.flags&1048576&&!(m&4)&&JNe(l)||l.flags&2097152&&jl(l,465829888)&&Oe(l.types,yD))}function k_(l,m=ft){return l=Sg(l),D1t(l,m)?E1t(l,m):l.flags&1048576?Ds(Vt(l.types,D=>k_(D,m))):l.flags&2097152?er(Vt(l.types,D=>k_(D,m))):Gu(l)&32?lti(l,m):l===vi?vi:l.flags&2?Ku:l.flags&131073?vc:dti(l,(m&2?128:402653316)|(m&1?0:12584),m===ft)}function x1t(l){if(Je)return l;const m=Aei();return m?aT(m,[l,ct]):ct}function hti(l){const m=x1t(k_(l));return m.flags&131072?ct:m}function fti(l){const m=ar(l);if(!m.resolvedType)switch(l.operator){case 143:m.resolvedType=k_(Ar(l.type));break;case 158:m.resolvedType=l.type.kind===155?SPe(Lj(l.parent)):Ot;break;case 148:m.resolvedType=Ar(l.type);break;default:H.assertNever(l.operator)}return m.resolvedType}function mti(l){const m=ar(l);return m.resolvedType||(m.resolvedType=xF([l.head.text,...Vt(l.templateSpans,D=>D.literal.text)],Vt(l.templateSpans,D=>Ar(D.type)))),m.resolvedType}function xF(l,m){const D=Ue(m,ce=>!!(ce.flags&1179648));if(D>=0)return Ate(m)?hl(m[D],ce=>xF(l,qd(m,D,ce))):Ot;if(kt(m,vi))return vi;const C=[],A=[];let w=l[0];if(!Z(l,m))return ct;if(C.length===0)return df(w);if(A.push(w),ye(A,ce=>ce==="")){if(ye(C,ce=>!!(ce.flags&4)))return ct;if(C.length===1&&U9(C[0]))return C[0]}const I=`${hp(C)}|${Vt(A,ce=>ce.length).join(",")}|${A.join("")}`;let U=Da.get(I);return U||Da.set(I,U=gti(A,C)),U;function Z(ce,Fe){for(let Te=0;Te$9(l,D)):m.flags&128?df(v1t(l,m.value)):m.flags&134217728?xF(...Eti(l,m.texts,m.types)):m.flags&268435456&&l===m.symbol?m:m.flags&268435461||AC(m)?C1t(l,m):Ste(m)?C1t(l,xF(["",""],[m])):m}function v1t(l,m){switch(tQ.get(l.escapedName)){case 0:return m.toUpperCase();case 1:return m.toLowerCase();case 2:return m.charAt(0).toUpperCase()+m.slice(1);case 3:return m.charAt(0).toLowerCase()+m.slice(1)}return m}function Eti(l,m,D){switch(tQ.get(l.escapedName)){case 0:return[m.map(C=>C.toUpperCase()),D.map(C=>$9(l,C))];case 1:return[m.map(C=>C.toLowerCase()),D.map(C=>$9(l,C))];case 2:return[m[0]===""?m:[m[0].charAt(0).toUpperCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D];case 3:return[m[0]===""?m:[m[0].charAt(0).toLowerCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D]}return[m,D]}function C1t(l,m){const D=`${Zo(l)},${Fh(m)}`;let C=ra.get(D);return C||ra.set(D,C=_ti(l,m)),C}function _ti(l,m){const D=N5(268435456,l);return D.type=m,D}function Dti(l,m,D,C,A){const w=lp(8388608);return w.objectType=l,w.indexType=m,w.accessFlags=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function lW(l){if(Ae)return!1;if(Gu(l)&4096)return!0;if(l.flags&1048576)return ye(l.types,lW);if(l.flags&2097152)return Oe(l.types,lW);if(l.flags&465829888){const m=HNe(l);return m!==l&&lW(m)}return!1}function zge(l,m){return Y4(l)?Q4(l):m&&Sc(m)?sk(m):void 0}function vPe(l,m){if(m.flags&8208){const D=Tn(l.parent,C=>!I0(C))||l.parent;return D2(D)?$E(D)&&at(l)&&Tht(D,l):ye(m.declarations,C=>!Co(C)||aC(C))}return!0}function b1t(l,m,D,C,A,w){const I=A&&A.kind===212?A:void 0,U=A&&ea(A)?void 0:zge(D,A);if(U!==void 0){if(w&256)return Ob(m,U)||me;const ce=qo(m,U);if(ce){if(w&64&&A&&ce.declarations&&S5(ce)&&vPe(A,ce)){const Te=(I==null?void 0:I.argumentExpression)??(I7(A)?A.indexType:A);m3(Te,ce.declarations,U)}if(I){if(nie(ce,I,Rft(I.expression,m.symbol)),kmt(I,ce,f7(I))){pt(I.argumentExpression,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Fr(ce));return}if(w&8&&(ar(A).resolvedSymbol=ce),Tft(I,ce))return ni}const Fe=w&4?mF(ce):Wn(ce);return I&&f7(I)!==1?w6(I,Fe):A&&I7(A)&&EW(Fe)?er([Fe,te]):Fe}if(e4(m,xs)&&i3(U)){const Fe=+U;if(A&&e4(m,Te=>!Te.target.hasRestElement)&&!(w&16)){const Te=CPe(A);if(xs(m)){if(Fe<0)return pt(Te,F.A_tuple_type_cannot_be_indexed_with_a_negative_value),te;pt(Te,F.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(m),O5(m),Qr(U))}else pt(Te,F.Property_0_does_not_exist_on_type_1,Qr(U),gn(m))}if(Fe>=0)return Z(k3(m,Qt)),dht(m,Fe,w&1?de:void 0)}}if(!(D.flags&98304)&&u1(D,402665900)){if(m.flags&131073)return m;const ce=nW(m,D)||k3(m,ct);if(ce){if(w&2&&ce.keyType!==Qt){I&&(w&4?pt(I,F.Type_0_is_generic_and_can_only_be_indexed_for_reading,gn(l)):pt(I,F.Type_0_cannot_be_used_to_index_type_1,gn(D),gn(l)));return}if(A&&ce.keyType===ct&&!u1(D,12)){const Fe=CPe(A);return pt(Fe,F.Type_0_cannot_be_used_as_an_index_type,gn(D)),w&1?er([ce.type,de]):ce.type}return Z(ce),w&1&&!(m.symbol&&m.symbol.flags&384&&D.symbol&&D.flags&1024&&cf(D.symbol)===m.symbol)?er([ce.type,de]):ce.type}if(D.flags&131072)return Ku;if(lW(m))return me;if(I&&!WEe(m)){if(PC(m)){if(Ae&&D.flags&384)return Vs.add(Su(I,F.Property_0_does_not_exist_on_type_1,D.value,gn(m))),te;if(D.flags&12){const Fe=Vt(m.properties,Te=>Wn(Te));return er(xi(Fe,te))}}if(m.symbol===St&&U!==void 0&&St.exports.has(U)&&St.exports.get(U).flags&418)pt(I,F.Property_0_does_not_exist_on_type_1,Qr(U),gn(m));else if(Ae&&!ae.suppressImplicitAnyIndexErrors&&!(w&128))if(U!==void 0&&Mft(U,m)){const Fe=gn(m);pt(I,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,U,Fe,Fe+"["+Hc(I.argumentExpression)+"]")}else if(yC(m,Qt))pt(I.argumentExpression,F.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Fe;if(U!==void 0&&(Fe=$Me(U,m)))Fe!==void 0&&pt(I.argumentExpression,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,U,gn(m),Fe);else{const Te=pri(m,I,D);if(Te!==void 0)pt(I,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(m),Te);else{let $e;if(D.flags&1024)$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+gn(D)+"]",gn(m));else if(D.flags&8192){const ut=op(D.symbol,I);$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+ut+"]",gn(m))}else D.flags&128||D.flags&256?$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,D.value,gn(m)):D.flags&12&&($e=ro(void 0,F.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(D),gn(m)));$e=ro($e,F.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(C),gn(m)),Vs.add(Y3(zn(I),I,$e))}}}return}}if(lW(m))return me;if(A){const ce=CPe(A);D.flags&384?pt(ce,F.Property_0_does_not_exist_on_type_1,""+D.value,gn(m)):D.flags&12?pt(ce,F.Type_0_has_no_matching_index_signature_for_type_1,gn(m),gn(D)):pt(ce,F.Type_0_cannot_be_used_as_an_index_type,gn(D))}if(nt(D))return D;return;function Z(ce){ce&&ce.isReadonly&&I&&(Q_(I)||V0e(I))&&pt(I,F.Index_signature_in_type_0_only_permits_reading,gn(m))}}function CPe(l){return l.kind===212?l.argumentExpression:l.kind===199?l.indexType:l.kind===167?l.expression:l}function Ste(l){if(l.flags&2097152){let m=!1;for(const D of l.types)if(D.flags&101248||Ste(D))m=!0;else if(!(D.flags&524288))return!1;return m}return!!(l.flags&77)||U9(l)}function U9(l){return!!(l.flags&134217728)&&ye(l.types,Ste)||!!(l.flags&268435456)&&Ste(l.type)}function kz(l){return!!cW(l)}function Lb(l){return!!(cW(l)&4194304)}function AC(l){return!!(cW(l)&8388608)}function cW(l){return l.flags&3145728?(l.objectFlags&2097152||(l.objectFlags|=2097152|nn(l.types,(m,D)=>m|cW(D),0)),l.objectFlags&12582912):l.flags&33554432?(l.objectFlags&2097152||(l.objectFlags|=2097152|cW(l.baseType)|cW(l.constraint)),l.objectFlags&12582912):(l.flags&58982400||Xm(l)||K5(l)?4194304:0)|(l.flags&465829888&&!U9(l)?8388608:0)}function vD(l,m){return l.flags&8388608?vti(l,m):l.flags&16777216?Cti(l,m):l}function y1t(l,m,D){if(l.flags&1048576||l.flags&2097152&&!D1t(l)){const C=Vt(l.types,A=>vD(qf(A,m),D));return l.flags&2097152||D?Ds(C):er(C)}}function xti(l,m,D){if(m.flags&1048576){const C=Vt(m.types,A=>vD(qf(l,A),D));return D?Ds(C):er(C)}}function vti(l,m){const D=m?"simplifiedForWriting":"simplifiedForReading";if(l[D])return l[D]===Uc?l:l[D];l[D]=Uc;const C=vD(l.objectType,m),A=vD(l.indexType,m),w=xti(C,A,m);if(w)return l[D]=w;if(!(A.flags&465829888)){const I=y1t(C,A,m);if(I)return l[D]=I}if(K5(C)&&A.flags&296){const I=wz(C,A.flags&8?0:C.target.fixedLength,0,m);if(I)return l[D]=I}return Xm(C)&&(!I5(C)||vdt(C))?l[D]=hl(Ige(C,l.indexType),I=>vD(I,m)):l[D]=l}function Cti(l,m){const D=l.checkType,C=l.extendsType,A=SC(l),w=BC(l);if(w.flags&131072&&y6(A)===y6(D)){if(D.flags&1||ms(vF(D),vF(C)))return vD(A,m);if(k1t(D,C))return Ku}else if(A.flags&131072&&y6(w)===y6(D)){if(!(D.flags&1)&&ms(vF(D),vF(C)))return Ku;if(D.flags&1||k1t(D,C))return vD(w,m)}return l}function k1t(l,m){return!!(er([xte(l,m),Ku]).flags&131072)}function Ige(l,m){const D=Sf([Fg(l)],[m]),C=wC(l.mapper,D);return _a(DD(l.target||l),C)}function qf(l,m,D=0,C,A,w){return b6(l,m,D,C,A,w)||(C?Ot:on)}function F1t(l,m){return e4(l,D=>{if(D.flags&384){const C=Q4(D);if(i3(C)){const A=+C;return A>=0&&A0&&!Oe(l.elements,m=>Dce(m)||xce(m)||GP(m)&&!!(m.questionToken||m.dotDotDotToken))}function B1t(l,m){return kz(l)||m&&xs(l)&&Oe(FC(l),kz)}function yPe(l,m,D,C){let A,w,I=0;for(;;){if(I===1e3)return pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;const Z=_a(y6(l.checkType),m),ce=_a(l.extendsType,m);if(Z===Ot||ce===Ot)return Ot;if(Z===vi||ce===vi)return vi;const Fe=S1t(l.node.checkType)&&S1t(l.node.extendsType)&&S(l.node.checkType.elements)===S(l.node.extendsType.elements),Te=B1t(Z,Fe);let $e;if(l.inferTypeParameters){const zt=Lu(l.inferTypeParameters,bti),gi=zt!==l.inferTypeParameters?Sf(l.inferTypeParameters,zt):void 0,Wi=DW(zt,void 0,0);if(gi){const nu=wC(m,gi);for(let En=0;Enk6(gi,Te)),ut=Sf(Fe.outerTypeParameters,$e),zt=Fe.isDistributive?k6(Fe.checkType,ut):void 0;if(!zt||zt===Fe.checkType||!(zt.flags&1179648))return l=Fe,m=ut,D=void 0,C=void 0,Fe.aliasSymbol&&I++,!0}}return!1}}function SC(l){return l.resolvedTrueType||(l.resolvedTrueType=_a(Ar(l.root.node.trueType),l.mapper))}function BC(l){return l.resolvedFalseType||(l.resolvedFalseType=_a(Ar(l.root.node.falseType),l.mapper))}function yti(l){return l.resolvedInferredTrueType||(l.resolvedInferredTrueType=l.combinedMapper?_a(Ar(l.root.node.trueType),l.combinedMapper):SC(l))}function w1t(l){let m;return l.locals&&l.locals.forEach(D=>{D.flags&262144&&(m=xi(m,X0(D)))}),m}function kti(l){return l.isDistributive&&(Lte(l.checkType,l.node.trueType)||Lte(l.checkType,l.node.falseType))}function Fti(l){const m=ar(l);if(!m.resolvedType){const D=Ar(l.checkType),C=q9(l),A=sT(C),w=_z(l,!0),I=A?w:ti(w,Z=>Lte(Z,l)),U={node:l,checkType:D,extendsType:Ar(l.extendsType),isDistributive:!!(D.flags&262144),inferTypeParameters:w1t(l),outerTypeParameters:I,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:A};m.resolvedType=yPe(U,void 0),I&&(U.instantiations=new Map,U.instantiations.set(hp(I),m.resolvedType))}return m.resolvedType}function Ati(l){const m=ar(l);return m.resolvedType||(m.resolvedType=gF(_u(l.typeParameter))),m.resolvedType}function T1t(l){return at(l)?[l]:xi(T1t(l.left),l.right)}function Sti(l){var m;const D=ar(l);if(!D.resolvedType){if(!zx(l))return pt(l.argument,F.String_literal_expected),D.resolvedSymbol=Xt,D.resolvedType=Ot;const C=l.isTypeOf?111551:l.flags&16777216?900095:788968,A=Kh(l,l.argument.literal);if(!A)return D.resolvedSymbol=Xt,D.resolvedType=Ot;const w=!!((m=A.exports)!=null&&m.get("export=")),I=_m(A,!1);if(Ql(l.qualifier))if(I.flags&C)D.resolvedType=L1t(l,D,I,C);else{const U=C===111551?F.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;pt(l,U,l.argument.literal.text),D.resolvedSymbol=Xt,D.resolvedType=Ot}else{const U=T1t(l.qualifier);let Z=I,ce;for(;ce=U.shift();){const Fe=U.length?1920:C,Te=Ks(yc(Z)),$e=l.isTypeOf||Qn(l)&&w?qo(Wn(Te),ce.escapedText,!1,!0):void 0,zt=(l.isTypeOf?void 0:kf($f(Te),ce.escapedText,Fe))??$e;if(!zt)return pt(ce,F.Namespace_0_has_no_exported_member_1,op(Z),b0(ce)),D.resolvedType=Ot;ar(ce).resolvedSymbol=zt,ar(ce.parent).resolvedSymbol=zt,Z=zt}D.resolvedType=L1t(l,D,Z,C)}}return D.resolvedType}function L1t(l,m,D,C){const A=yc(D);return m.resolvedSymbol=A,C===111551?cmt(Wn(D),l):Lge(l,A)}function N1t(l){const m=ar(l);if(!m.resolvedType){const D=q9(l);if(_6(l.symbol).size===0&&!D)m.resolvedType=Lc;else{let C=D4(16,l.symbol);C.aliasSymbol=D,C.aliasTypeArguments=sT(D),K7(l)&&l.isArrayType&&(C=V1(C)),m.resolvedType=C}}return m.resolvedType}function q9(l){let m=l.parent;for(;M7(m)||kk(m)||z7(m)&&m.operator===148;)m=m.parent;return Sj(m)?_u(m):void 0}function sT(l){return l?sn(l):void 0}function Rge(l){return!!(l.flags&524288)&&!Xm(l)}function kPe(l){return bD(l)||!!(l.flags&474058748)}function FPe(l,m){if(!(l.flags&1048576))return l;if(ye(l.types,kPe))return Le(l.types,bD)||Ko;const D=Le(l.types,w=>!kPe(w));if(!D||Le(l.types,w=>w!==D&&!kPe(w)))return l;return A(D);function A(w){const I=Vo();for(const Z of n0(w))if(!(l4(Z)&6)){if(Oge(Z)){const ce=Z.flags&65536&&!(Z.flags&32768),Te=Hs(16777220,Z.escapedName,INe(Z)|(m?8:0));Te.links.type=ce?te:Vd(Wn(Z),!0),Te.declarations=Z.declarations,Te.links.nameType=Ur(Z).nameType,Te.links.syntheticOrigin=Z,I.set(Z.escapedName,Te)}}const U=Ol(w.symbol,I,_t,_t,kh(w));return U.objectFlags|=131200,U}}function Nb(l,m,D,C,A){if(l.flags&1||m.flags&1)return me;if(l.flags&2||m.flags&2)return on;if(l.flags&131072)return m;if(m.flags&131072)return l;if(l=FPe(l,A),l.flags&1048576)return Ate([l,m])?hl(l,ce=>Nb(ce,m,D,C,A)):Ot;if(m=FPe(m,A),m.flags&1048576)return Ate([l,m])?hl(m,ce=>Nb(l,ce,D,C,A)):Ot;if(m.flags&473960444)return l;if(Lb(l)||Lb(m)){if(bD(l))return m;if(l.flags&2097152){const ce=l.types,Fe=ce[ce.length-1];if(Rge(Fe)&&Rge(m))return Ds(Hi(ce.slice(0,ce.length-1),[Nb(Fe,m,D,C,A)]))}return Ds([l,m])}const w=Vo(),I=new Set,U=l===Ko?kh(m):pdt([l,m]);for(const ce of n0(m))l4(ce)&6?I.add(ce.escapedName):Oge(ce)&&w.set(ce.escapedName,APe(ce,A));for(const ce of n0(l))if(!(I.has(ce.escapedName)||!Oge(ce)))if(w.has(ce.escapedName)){const Fe=w.get(ce.escapedName),Te=Wn(Fe);if(Fe.flags&16777216){const $e=Hi(ce.declarations,Fe.declarations),ut=4|ce.flags&16777216,zt=Hs(ut,ce.escapedName),gi=Wn(ce),Wi=lEe(gi),dn=lEe(Te);zt.links.type=Wi===dn?gi:er([gi,dn],2),zt.links.leftSpread=ce,zt.links.rightSpread=Fe,zt.declarations=$e,zt.links.nameType=Ur(ce).nameType,w.set(ce.escapedName,zt)}}else w.set(ce.escapedName,APe(ce,A));const Z=Ol(D,w,_t,_t,Lu(U,ce=>Bti(ce,A)));return Z.objectFlags|=2228352|C,Z}function Oge(l){var m;return!Oe(l.declarations,ph)&&(!(l.flags&106496)||!((m=l.declarations)!=null&&m.some(D=>mr(D.parent))))}function APe(l,m){const D=l.flags&65536&&!(l.flags&32768);if(!D&&m===Ng(l))return l;const C=4|l.flags&16777216,A=Hs(C,l.escapedName,INe(l)|(m?8:0));return A.links.type=D?te:Wn(l),A.declarations=l.declarations,A.links.nameType=Ur(l).nameType,A.links.syntheticOrigin=l,A}function Bti(l,m){return l.isReadonly!==m?y_(l.keyType,l.type,m,l.declaration):l}function Bte(l,m,D,C){const A=N5(l,D);return A.value=m,A.regularType=C||A,A}function Z9(l){if(l.flags&2976){if(!l.freshType){const m=Bte(l.flags,l.value,l.symbol,l);m.freshType=m,l.freshType=m}return l.freshType}return l}function Jh(l){return l.flags&2976?l.regularType:l.flags&1048576?l.regularType||(l.regularType=hl(l,Jh)):l}function Pb(l){return!!(l.flags&2976)&&l.freshType===l}function df(l){let m;return Si.get(l)||(Si.set(l,m=Bte(128,l)),m)}function wg(l){let m;return Dn.get(l)||(Dn.set(l,m=Bte(256,l)),m)}function jge(l){let m;const D=I2(l);return Cn.get(D)||(Cn.set(D,m=Bte(2048,l)),m)}function wti(l,m,D){let C;const A=`${m}${typeof l=="string"?"@":"#"}${l}`,w=1024|(typeof l=="string"?128:256);return tu.get(A)||(tu.set(A,C=Bte(w,l,D)),C)}function Tti(l){if(l.literal.kind===106)return it;const m=ar(l);return m.resolvedType||(m.resolvedType=Jh(ya(l.literal))),m.resolvedType}function Lti(l){const m=N5(8192,l);return m.escapedName=`__@${m.symbol.escapedName}@${Zo(m.symbol)}`,m}function SPe(l){if($be(l)){const m=sq(l)?Dm(l.left):Dm(l);if(m){const D=Ur(m);return D.uniqueESSymbolType||(D.uniqueESSymbolType=Lti(m))}}return Xu}function Nti(l){const m=tf(l,!1,!1),D=m&&m.parent;if(D&&(mr(D)||D.kind===264)&&!No(m)&&(!hc(m)||S2(l,m.body)))return b4(_u(D)).thisType;if(D&&ys(D)&&Xn(D.parent)&&Xl(D.parent)===6)return b4(Dm(D.parent.left).parent).thisType;const C=l.flags&16777216?kv(l):void 0;return C&&A0(C)&&Xn(C.parent)&&Xl(C.parent)===3?b4(Dm(C.parent.left).parent).thisType:AE(m)&&S2(l,m.body)?b4(_u(m)).thisType:(pt(l,F.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ot)}function Vge(l){const m=ar(l);return m.resolvedType||(m.resolvedType=Nti(l)),m.resolvedType}function P1t(l){return Ar(wte(l.type)||l.type)}function wte(l){switch(l.kind){case 196:return wte(l.type);case 189:if(l.elements.length===1&&(l=l.elements[0],l.kind===191||l.kind===202&&l.dotDotDotToken))return wte(l.type);break;case 188:return l.elementType}}function Pti(l){const m=ar(l);return m.resolvedType||(m.resolvedType=l.dotDotDotToken?P1t(l):Vd(Ar(l.type),!0,!!l.questionToken))}function Ar(l){return hei(M1t(l),l)}function M1t(l){switch(l.kind){case 133:case 319:case 320:return me;case 159:return on;case 154:return ct;case 150:return Qt;case 163:return Li;case 136:return pr;case 155:return Xu;case 116:return ca;case 157:return te;case 106:return it;case 146:return Ku;case 151:return l.flags&524288&&!Ae?me:as;case 141:return Qi;case 197:case 110:return Vge(l);case 201:return Tti(l);case 183:return aPe(l);case 182:return l.assertsModifier?ca:pr;case 233:return aPe(l);case 186:return Jdt(l);case 188:case 189:return Hei(l);case 190:return Jei(l);case 192:return Xei(l);case 193:return oti(l);case 321:return fei(l);case 323:return Vd(Ar(l.type));case 202:return Pti(l);case 196:case 322:case 316:return Ar(l.type);case 191:return P1t(l);case 325:return T0i(l);case 184:case 185:case 187:case 329:case 324:case 330:return N1t(l);case 198:return fti(l);case 199:return A1t(l);case 200:return bPe(l);case 194:return Fti(l);case 195:return Ati(l);case 203:return mti(l);case 205:return Sti(l);case 80:case 166:case 211:const m=Yp(l);return m?X0(m):Ot;default:return Ot}}function Hge(l,m,D){if(l&&l.length)for(let C=0;CC.typeParameter),Vt(D,()=>on))}function wC(l,m){return l?Wge(4,l,m):m}function Iti(l,m){return l?Wge(5,l,m):m}function Y9(l,m,D){return D?Wge(5,Mb(l,m),D):Mb(l,m)}function dW(l,m,D){return l?Wge(5,l,Mb(m,D)):Mb(m,D)}function Rti(l){return!l.constraint&&!iPe(l)||l.constraint===dl?l:l.restrictiveInstantiation||(l.restrictiveInstantiation=j1(l.symbol),l.restrictiveInstantiation.constraint=dl,l.restrictiveInstantiation)}function Gge(l){const m=j1(l.symbol);return m.target=l,m}function Oti(l,m){return yte(l.kind,l.parameterName,l.parameterIndex,_a(l.type,m))}function lT(l,m,D){let C;if(l.typeParameters&&!D){C=Vt(l.typeParameters,Gge),m=wC(Sf(l.typeParameters,C),m);for(const w of C)w.mapper=m}const A=y3(l.declaration,C,l.thisParameter&&wPe(l.thisParameter,m),Hge(l.parameters,m,wPe),void 0,void 0,l.minArgumentCount,l.flags&167);return A.target=l,A.mapper=m,A}function wPe(l,m){const D=Ur(l);if(D.type&&!NC(D.type)&&(!(l.flags&65536)||D.writeType&&!NC(D.writeType)))return l;Gl(l)&1&&(l=D.target,m=wC(D.mapper,m));const C=Hs(l.flags,l.escapedName,1|Gl(l)&53256);return C.declarations=l.declarations,C.parent=l.parent,C.links.target=l,C.links.mapper=m,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),D.nameType&&(C.links.nameType=D.nameType),C}function jti(l,m,D,C){const A=l.objectFlags&4||l.objectFlags&8388608?l.node:l.symbol.declarations[0],w=ar(A),I=l.objectFlags&4?w.resolvedType:l.objectFlags&64?l.target:l;let U=w.outerTypeParameters;if(!U){let Z=_z(A,!0);if(AE(A)){const Fe=Tdt(A);Z=yn(Z,Fe)}U=Z||_t;const ce=l.objectFlags&8388612?[A]:l.symbol.declarations;U=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?ti(U,Fe=>Oe(ce,Te=>Lte(Fe,Te))):U,w.outerTypeParameters=U}if(U.length){const Z=wC(l.mapper,m),ce=Vt(U,zt=>k6(zt,Z)),Fe=D||l.aliasSymbol,Te=D?C:V5(l.aliasTypeArguments,m),$e=hp(ce)+J9(Fe,Te);I.instantiations||(I.instantiations=new Map,I.instantiations.set(hp(U)+J9(I.aliasSymbol,I.aliasTypeArguments),I));let ut=I.instantiations.get($e);if(!ut){const zt=Sf(U,ce);ut=I.objectFlags&4?nPe(l.target,l.node,zt,Fe,Te):I.objectFlags&32?R1t(I,zt,Fe,Te):LPe(I,zt,Fe,Te),I.instantiations.set($e,ut);const gi=Gu(ut);if(ut.flags&3899393&&!(gi&524288)){const Wi=Oe(ce,NC);Gu(ut)&524288||(gi&52?ut.objectFlags|=524288|(Wi?1048576:0):ut.objectFlags|=Wi?0:524288)}}return ut}return l}function Vti(l){return!(l.parent.kind===183&&l.parent.typeArguments&&l===l.parent.typeName||l.parent.kind===205&&l.parent.typeArguments&&l===l.parent.qualifier)}function Lte(l,m){if(l.symbol&&l.symbol.declarations&&l.symbol.declarations.length===1){const C=l.symbol.declarations[0].parent;for(let A=m;A!==C;A=A.parent)if(!A||A.kind===241||A.kind===194&&ao(A.extendsType,D))return!0;return D(m)}return!0;function D(C){switch(C.kind){case 197:return!!l.isThisType;case 80:return!l.isThisType&&q_(C)&&Vti(C)&&M1t(C)===l;case 186:const A=C.exprName,w=hm(A);if(!N2(w)){const I=Zp(w),U=l.symbol.declarations[0],Z=U.kind===168?U.parent:l.isThisType?U:void 0;if(I.declarations&&Z)return Oe(I.declarations,ce=>S2(ce,Z))||Oe(C.typeArguments,D)}return!0;case 174:case 173:return!C.type&&!!C.body||Oe(C.typeParameters,D)||Oe(C.parameters,D)||!!C.type&&D(C.type)}return!!ao(C,D)}}function Jge(l){const m=cp(l);if(m.flags&4194304){const D=y6(m.type);if(D.flags&262144)return D}}function R1t(l,m,D,C){const A=Jge(l);if(A){const w=_a(A,m);if(A!==w)return Vht(Sg(w),I=>{if(I.flags&61603843&&I!==vi&&!Nt(I)){if(!l.declaration.nameType){let U;if(A4(I)||I.flags&1&&xC(A,4)<0&&(U=rh(A))&&e4(U,zb))return Kti(I,l,Y9(A,I,m));if(K5(I))return Hti(I,l,A,m);if(xs(I))return Wti(I,l,Y9(A,I,m))}return LPe(l,Y9(A,I,m))}return I},D,C)}return _a(cp(l),m)===vi?vi:LPe(l,m,D,C)}function TPe(l,m){return m&1?!0:m&2?!1:l}function Hti(l,m,D,C){const A=l.target.elementFlags,w=Vt(FC(l),(U,Z)=>{const ce=A[Z]&8?U:A[Z]&4?V1(U):Bg([U],[A[Z]]);return ce===D?m:R1t(m,Y9(D,ce,C))}),I=TPe(l.target.readonly,C_(m));return Bg(w,Vt(w,U=>8),I)}function Kti(l,m,D){const C=O1t(m,Qt,!0,D);return Nt(C)?Ot:V1(C,TPe(Sz(l),C_(m)))}function Wti(l,m,D){const C=l.target.elementFlags,A=Vt(FC(l),(Z,ce)=>O1t(m,df(""+ce),!!(C[ce]&2),D)),w=C_(m),I=w&4?Vt(C,Z=>Z&1?2:Z):w&8?Vt(C,Z=>Z&2?1:Z):C,U=TPe(l.target.readonly,w);return kt(A,Ot)?Ot:Bg(A,I,U,l.target.labeledElementDeclarations)}function O1t(l,m,D,C){const A=dW(C,Fg(l),m),w=_a(DD(l.target||l),A),I=C_(l);return fe&&I&4&&!jl(w,49152)?S6(w,!0):fe&&I&8&&D?mp(w,524288):w}function LPe(l,m,D,C){const A=D4(l.objectFlags&-1572865|64,l.symbol);if(l.objectFlags&32){A.declaration=l.declaration;const w=Fg(l),I=Gge(w);A.typeParameter=I,m=wC(Mb(w,I),m),I.mapper=m}return l.objectFlags&8388608&&(A.node=l.node),A.target=l,A.mapper=m,A.aliasSymbol=D||l.aliasSymbol,A.aliasTypeArguments=D?C:V5(l.aliasTypeArguments,m),A.objectFlags|=A.aliasTypeArguments?wge(A.aliasTypeArguments):0,A}function NPe(l,m,D,C){const A=l.root;if(A.outerTypeParameters){const w=Vt(A.outerTypeParameters,Z=>k6(Z,m)),I=hp(w)+J9(D,C);let U=A.instantiations.get(I);if(!U){const Z=Sf(A.outerTypeParameters,w),ce=A.checkType,Fe=A.isDistributive?k6(ce,Z):void 0;U=Fe&&ce!==Fe&&Fe.flags&1179648?Vht(Sg(Fe),Te=>yPe(A,Y9(ce,Te,Z)),D,C):yPe(A,Z,D,C),A.instantiations.set(I,U)}return U}return l}function _a(l,m){return l&&m?j1t(l,m,void 0,void 0):l}function j1t(l,m,D,C){var A;if(!NC(l))return l;if(j===100||z>=5e6)return(A=Gn)==null||A.instant(Gn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:l.id,instantiationDepth:j,instantiationCount:z}),pt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;M++,z++,j++;const w=Gti(l,m,D,C);return j--,w}function Gti(l,m,D,C){const A=l.flags;if(A&262144)return k6(l,m);if(A&524288){const w=l.objectFlags;if(w&52){if(w&4&&!l.node){const I=l.resolvedTypeArguments,U=V5(I,m);return U!==I?fPe(l.target,U):l}return w&1024?Jti(l,m):jti(l,m,D,C)}return l}if(A&3145728){const w=l.flags&1048576?l.origin:void 0,I=w&&w.flags&3145728?w.types:l.types,U=V5(I,m);if(U===I&&D===l.aliasSymbol)return l;const Z=D||l.aliasSymbol,ce=D?C:V5(l.aliasTypeArguments,m);return A&2097152||w&&w.flags&2097152?Ds(U,Z,ce):er(U,1,Z,ce)}if(A&4194304)return k_(_a(l.type,m));if(A&134217728)return xF(l.texts,V5(l.types,m));if(A&268435456)return $9(l.symbol,_a(l.type,m));if(A&8388608){const w=D||l.aliasSymbol,I=D?C:V5(l.aliasTypeArguments,m);return qf(_a(l.objectType,m),_a(l.indexType,m),l.accessFlags,void 0,w,I)}if(A&16777216)return NPe(l,wC(l.mapper,m),D,C);if(A&33554432){const w=_a(l.baseType,m),I=_a(l.constraint,m);return w.flags&8650752&&kz(I)?uPe(w,I):I.flags&3||ms(vF(w),vF(I))?w:w.flags&8650752?uPe(w,I):Ds([I,w])}return l}function Jti(l,m){const D=_a(l.mappedType,m);if(!(Gu(D)&32))return l;const C=_a(l.constraintType,m);if(!(C.flags&4194304))return l;const A=Dht(_a(l.source,m),D,C);return A||l}function $ge(l){return l.flags&402915327?l:l.permissiveInstantiation||(l.permissiveInstantiation=_a(l,hd))}function vF(l){return l.flags&402915327?l:(l.restrictiveInstantiation||(l.restrictiveInstantiation=_a(l,wl),l.restrictiveInstantiation.restrictiveInstantiation=l.restrictiveInstantiation),l.restrictiveInstantiation)}function $ti(l,m){return y_(l.keyType,_a(l.type,m),l.isReadonly,l.declaration)}function k4(l){switch(H.assert(l.kind!==174||zp(l)),l.kind){case 218:case 219:case 174:case 262:return V1t(l);case 210:return Oe(l.properties,k4);case 209:return Oe(l.elements,k4);case 227:return k4(l.whenTrue)||k4(l.whenFalse);case 226:return(l.operatorToken.kind===57||l.operatorToken.kind===61)&&(k4(l.left)||k4(l.right));case 303:return k4(l.initializer);case 217:return k4(l.expression);case 292:return Oe(l.properties,k4)||aE(l.parent)&&Oe(l.parent.parent.children,k4);case 291:{const{initializer:m}=l;return!!m&&k4(m)}case 294:{const{expression:m}=l;return!!m&&k4(m)}}return!1}function V1t(l){return fZ(l)||Uti(l)}function Uti(l){return l.typeParameters||U4(l)||!l.body?!1:l.body.kind!==241?k4(l.body):!!y2(l.body,m=>!!m.expression&&k4(m.expression))}function Uge(l){return(R2(l)||zp(l))&&V1t(l)}function H1t(l){if(l.flags&524288){const m=Ag(l);if(m.constructSignatures.length||m.callSignatures.length){const D=D4(16,l.symbol);return D.members=m.members,D.properties=m.properties,D.callSignatures=_t,D.constructSignatures=_t,D.indexInfos=_t,D}}else if(l.flags&2097152)return Ds(Vt(l.types,H1t));return l}function CD(l,m){return bE(l,m,Em)}function hW(l,m){return bE(l,m,Em)?-1:0}function PPe(l,m){return bE(l,m,Jf)?-1:0}function qti(l,m){return bE(l,m,h_)?-1:0}function F6(l,m){return bE(l,m,h_)}function K1t(l,m){return bE(l,m,p4)}function ms(l,m){return bE(l,m,Jf)}function TC(l,m){return l.flags&1048576?ye(l.types,D=>TC(D,m)):m.flags&1048576?Oe(m.types,D=>TC(l,D)):l.flags&2097152?Oe(l.types,D=>TC(D,m)):l.flags&58982400?TC(Wh(l)||on,m):yD(m)?!!(l.flags&67633152):m===He?!!(l.flags&67633152)&&!yD(l):m===di?!!(l.flags&524288)&&pMe(l):H9(l,eT(m))||A4(m)&&!Sz(m)&&TC(l,To)}function qge(l,m){return bE(l,m,Hh)}function Nte(l,m){return qge(l,m)||qge(m,l)}function Ah(l,m,D,C,A,w){return F4(l,m,Jf,D,C,A,w)}function A6(l,m,D,C,A,w){return MPe(l,m,Jf,D,C,A,w,void 0)}function MPe(l,m,D,C,A,w,I,U){return bE(l,m,D)?!0:!C||!fW(A,l,m,D,w,I,U)?F4(l,m,D,C,w,I,U):!1}function W1t(l){return!!(l.flags&16777216||l.flags&2097152&&Oe(l.types,W1t))}function fW(l,m,D,C,A,w,I){if(!l||W1t(D))return!1;if(!F4(m,D,C,void 0)&&Zti(l,m,D,C,A,w,I))return!0;switch(l.kind){case 234:if(!gb(l))break;case 294:case 217:return fW(l.expression,m,D,C,A,w,I);case 226:switch(l.operatorToken.kind){case 64:case 28:return fW(l.right,m,D,C,A,w,I)}break;case 210:return uii(l,m,D,C,w,I);case 209:return iii(l,m,D,C,w,I);case 292:return tii(l,m,D,C,w,I);case 219:return Yti(l,m,D,C,w,I)}return!1}function Zti(l,m,D,C,A,w,I){const U=go(m,0),Z=go(m,1);for(const ce of[Z,U])if(Oe(ce,Fe=>{const Te=Zs(Fe);return!(Te.flags&131073)&&F4(Te,D,C,void 0)})){const Fe=I||{};Ah(m,D,l,A,w,Fe);const Te=Fe.errors[Fe.errors.length-1];return Es(Te,Su(l,ce===Z?F.Did_you_mean_to_use_new_with_this_expression:F.Did_you_mean_to_call_this_expression)),!0}return!1}function Yti(l,m,D,C,A,w){if(po(l.body)||Oe(l.parameters,JU))return!1;const I=wF(m);if(!I)return!1;const U=go(D,0);if(!S(U))return!1;const Z=l.body,ce=Zs(I),Fe=er(Vt(U,Zs));if(!F4(ce,Fe,C,void 0)){const Te=Z&&fW(Z,ce,Fe,C,void 0,A,w);if(Te)return Te;const $e=w||{};if(F4(ce,Fe,C,Z,void 0,A,$e),$e.errors)return D.symbol&&S(D.symbol.declarations)&&Es($e.errors[$e.errors.length-1],Su(D.symbol.declarations[0],F.The_expected_type_comes_from_the_return_type_of_this_signature)),!(kd(l)&2)&&!he(ce,"then")&&F4(die(ce),Fe,C,void 0)&&Es($e.errors[$e.errors.length-1],Su(l,F.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function G1t(l,m,D){const C=b6(m,D);if(C)return C;if(m.flags&1048576){const A=X1t(l,m);if(A)return b6(A,D)}}function J1t(l,m){Zte(l,m,!1);const D=Oz(l,1);return bW(),D}function Pte(l,m,D,C,A,w){let I=!1;for(const U of l){const{errorNode:Z,innerExpression:ce,nameType:Fe,errorMessage:Te}=U;let $e=G1t(m,D,Fe);if(!$e||$e.flags&8388608)continue;let ut=b6(m,Fe);if(!ut)continue;const zt=zge(Fe,void 0);if(!F4(ut,$e,C,void 0)){const gi=ce&&fW(ce,ut,$e,C,void 0,A,w);if(I=!0,!gi){const Wi=w||{},dn=ce?J1t(ce,ut):ut;if(Ve&&Yge(dn,$e)){const nu=Su(Z,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(dn),gn($e));Vs.add(nu),Wi.errors=[nu]}else{const nu=!!(zt&&(qo(D,zt)||Xt).flags&16777216),En=!!(zt&&(qo(m,zt)||Xt).flags&16777216);$e=B6($e,nu),ut=B6(ut,nu&&En),F4(dn,$e,C,Z,Te,A,Wi)&&dn!==ut&&F4(ut,$e,C,Z,Te,A,Wi)}if(Wi.errors){const nu=Wi.errors[Wi.errors.length-1],En=Y4(Fe)?Q4(Fe):void 0,Ii=En!==void 0?qo(D,En):void 0;let Nn=!1;if(!Ii){const vn=nW(D,Fe);vn&&vn.declaration&&!zn(vn.declaration).hasNoDefaultLib&&(Nn=!0,Es(nu,Su(vn.declaration,F.The_expected_type_comes_from_this_index_signature)))}if(!Nn&&(Ii&&S(Ii.declarations)||D.symbol&&S(D.symbol.declarations))){const vn=Ii&&S(Ii.declarations)?Ii.declarations[0]:D.symbol.declarations[0];zn(vn).hasNoDefaultLib||Es(nu,Su(vn,F.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,En&&!(Fe.flags&8192)?Qr(En):gn(Fe),gn(D)))}}}}}return I}function Qti(l,m,D,C,A,w){const I=Ic(D,uEe),U=Ic(D,Fe=>!uEe(Fe)),Z=U!==Ku?Nze(13,0,U,void 0):void 0;let ce=!1;for(let Fe=l.next();!Fe.done;Fe=l.next()){const{errorNode:Te,innerExpression:$e,nameType:ut,errorMessage:zt}=Fe.value;let gi=Z;const Wi=I!==Ku?G1t(m,I,ut):void 0;if(Wi&&!(Wi.flags&8388608)&&(gi=Z?er([Z,Wi]):Wi),!gi)continue;let dn=b6(m,ut);if(!dn)continue;const nu=zge(ut,void 0);if(!F4(dn,gi,C,void 0)){const En=$e&&fW($e,dn,gi,C,void 0,A,w);if(ce=!0,!En){const Ii=w||{},Nn=$e?J1t($e,dn):dn;if(Ve&&Yge(Nn,gi)){const vn=Su(Te,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(Nn),gn(gi));Vs.add(vn),Ii.errors=[vn]}else{const vn=!!(nu&&(qo(I,nu)||Xt).flags&16777216),An=!!(nu&&(qo(m,nu)||Xt).flags&16777216);gi=B6(gi,vn),dn=B6(dn,vn&&An),F4(Nn,gi,C,Te,zt,A,Ii)&&Nn!==dn&&F4(dn,gi,C,Te,zt,A,Ii)}}}}return ce}function*Xti(l){if(S(l.properties))for(const m of l.properties)H7(m)||MMe(sV(m.name))||(yield{errorNode:m.name,innerExpression:m.initializer,nameType:df(sV(m.name))})}function*eii(l,m){if(!S(l.children))return;let D=0;for(let C=0;C1;let Wi,dn;if(lPe(!1)!==Ka){const En=u1t(me);Wi=Ic(ut,Ii=>ms(Ii,En)),dn=Ic(ut,Ii=>!ms(Ii,En))}else Wi=Ic(ut,uEe),dn=Ic(ut,En=>!uEe(En));if(gi){if(Wi!==Ku){const En=Bg(BEe(ce,0)),Ii=eii(ce,Z);I=Qti(Ii,En,Wi,C,A,w)||I}else if(!bE(qf(m,$e),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}else if(dn!==Ku){const En=zt[0],Ii=$1t(En,$e,Z);Ii&&(I=Pte(function*(){yield Ii}(),m,D,C,A,w)||I)}else if(!bE(qf(m,$e),ut,C)){I=!0;const En=pt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}return I;function Z(){if(!U){const ce=Hc(l.parent.tagName),Fe=Qte(SF(l)),Te=Fe===void 0?"children":Qr(Fe),$e=qf(D,df(Te)),ut=F._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;U={...ut,key:"!!ALREADY FORMATTED!!",message:Dle(ut,ce,Te,gn($e))}}return U}}function*U1t(l,m){const D=S(l.elements);if(D)for(let C=0;CZ:SE(l)>Z))return C&&!(D&8)&&A(F.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,SE(l),Z),0;l.typeParameters&&l.typeParameters!==m.typeParameters&&(m=aei(m),l=Wft(l,m,void 0,I));const Fe=Cm(l),Te=SW(l),$e=SW(m);(Te||$e)&&_a(Te||$e,U);const ut=m.declaration?m.declaration.kind:0,zt=!(D&3)&&xe&&ut!==174&&ut!==173&&ut!==176;let gi=-1;const Wi=kC(l);if(Wi&&Wi!==ca){const En=kC(m);if(En){const Ii=!zt&&I(Wi,En,!1)||I(En,Wi,C);if(!Ii)return C&&A(F.The_this_types_of_each_signature_are_incompatible),0;gi&=Ii}}const dn=Te||$e?Math.min(Fe,Z):Math.max(Fe,Z),nu=Te||$e?dn-1:-1;for(let En=0;En=SE(l)&&En=3&&m[0].flags&32768&&m[1].flags&65536&&Oe(m,yD)?67108864:0)}return!!(l.objectFlags&67108864)}return!1}function Fz(l){return!!((l.flags&1048576?l.types[0]:l).flags&32768)}function Z1t(l){return l.flags&524288&&!Xm(l)&&n0(l).length===0&&kh(l).length===1&&!!k3(l,ct)||l.flags&3145728&&ye(l.types,Z1t)||!1}function RPe(l,m,D){const C=l.flags&8?cf(l):l,A=m.flags&8?cf(m):m;if(C===A)return!0;if(C.escapedName!==A.escapedName||!(C.flags&256)||!(A.flags&256))return!1;const w=Zo(C)+","+Zo(A),I=nC.get(w);if(I!==void 0&&!(!(I&4)&&I&2&&D))return!!(I&1);const U=Wn(A);for(const Z of n0(Wn(C)))if(Z.flags&8){const ce=qo(U,Z.escapedName);if(!ce||!(ce.flags&8))return D?(D(F.Property_0_is_missing_in_type_1,lc(Z),gn(X0(A),void 0,64)),nC.set(w,6)):nC.set(w,2),!1}return nC.set(w,1),!0}function mW(l,m,D,C){const A=l.flags,w=m.flags;return w&1||A&131072||l===vi||w&2&&!(D===p4&&A&1)?!0:w&131072?!1:!!(A&402653316&&w&4||A&128&&A&1024&&w&128&&!(w&1024)&&l.value===m.value||A&296&&w&8||A&256&&A&1024&&w&256&&!(w&1024)&&l.value===m.value||A&2112&&w&64||A&528&&w&16||A&12288&&w&4096||A&32&&w&32&&l.symbol.escapedName===m.symbol.escapedName&&RPe(l.symbol,m.symbol,C)||A&1024&&w&1024&&(A&1048576&&w&1048576&&RPe(l.symbol,m.symbol,C)||A&2944&&w&2944&&l.value===m.value&&RPe(l.symbol,m.symbol,C))||A&32768&&(!fe&&!(w&3145728)||w&49152)||A&65536&&(!fe&&!(w&3145728)||w&65536)||A&524288&&w&67108864&&!(D===p4&&yD(l)&&!(Gu(l)&8192))||(D===Jf||D===Hh)&&(A&1||A&8&&(w&32||w&256&&w&1024)||A&256&&!(A&1024)&&(w&32||w&256&&w&1024&&l.value===m.value)||sii(m)))}function bE(l,m,D){if(Pb(l)&&(l=l.regularType),Pb(m)&&(m=m.regularType),l===m)return!0;if(D!==Em){if(D===Hh&&!(m.flags&131072)&&mW(m,l,D)||mW(l,m,D))return!0}else if(!((l.flags|m.flags)&61865984)){if(l.flags!==m.flags)return!1;if(l.flags&67358815)return!0}if(l.flags&524288&&m.flags&524288){const C=D.get(eEe(l,m,0,D,!1));if(C!==void 0)return!!(C&1)}return l.flags&469499904||m.flags&469499904?F4(l,m,D,void 0):!1}function Y1t(l,m){return Gu(l)&2048&&MMe(m.escapedName)}function Mte(l,m){for(;;){const D=Pb(l)?l.regularType:K5(l)?cii(l,m):Gu(l)&4?l.node?R5(l.target,O0(l)):JPe(l)||l:l.flags&3145728?lii(l,m):l.flags&33554432?m?l.baseType:rPe(l):l.flags&25165824?vD(l,m):l;if(D===l)return D;l=D}}function lii(l,m){const D=Sg(l);if(D!==l)return D;if(l.flags&2097152&&Oe(l.types,yD)){const C=Lu(l.types,A=>Mte(A,m));if(C!==l.types)return Ds(C)}return l}function cii(l,m){const D=FC(l),C=Lu(D,A=>A.flags&25165824?vD(A,m):A);return D!==C?mPe(l.target,C):l}function F4(l,m,D,C,A,w,I){var U;let Z,ce,Fe,Te,$e,ut,zt=0,gi=0,Wi=0,dn=0,nu=!1,En=0,Ii=0,Nn,vn,An=16e6-D.size>>3;H.assert(D!==Em||!C,"no error reporting in identity checking");const _n=$n(l,m,3,!!C,A);if(vn&&fo(),nu){const Ft=eEe(l,m,0,D,!1);D.set(Ft,6),(U=Gn)==null||U.instant(Gn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:l.id,targetId:m.id,depth:gi,targetDepth:Wi});const $t=An<=0?F.Excessive_complexity_comparing_types_0_and_1:F.Excessive_stack_depth_comparing_types_0_and_1,Mi=pt(C||K,$t,gn(l),gn(m));I&&(I.errors||(I.errors=[])).push(Mi)}else if(Z){if(w){const Mi=w();Mi&&(ike(Mi,Z),Z=Mi)}let Ft;if(A&&C&&!_n&&l.symbol){const Mi=Ur(l.symbol);if(Mi.originatingImport&&!dm(Mi.originatingImport)&&F4(Wn(Mi.target),m,D,void 0)){const Du=Su(Mi.originatingImport,F.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);Ft=xi(Ft,Du)}}const $t=Y3(zn(C),C,Z,Ft);ce&&Es($t,...ce),I&&(I.errors||(I.errors=[])).push($t),(!I||!I.skipLogging)&&Vs.add($t)}return C&&I&&I.skipLogging&&_n===0&&H.assert(!!I.errors,"missed opportunity to interact with error."),_n!==0;function hu(Ft){Z=Ft.errorInfo,Nn=Ft.lastSkippedInfo,vn=Ft.incompatibleStack,En=Ft.overrideNextErrorInfo,Ii=Ft.skipParentCounter,ce=Ft.relatedInfo}function oo(){return{errorInfo:Z,lastSkippedInfo:Nn,incompatibleStack:vn==null?void 0:vn.slice(),overrideNextErrorInfo:En,skipParentCounter:Ii,relatedInfo:ce==null?void 0:ce.slice()}}function Eo(Ft,...$t){En++,Nn=void 0,(vn||(vn=[])).push([Ft,...$t])}function fo(){const Ft=vn||[];vn=void 0;const $t=Nn;if(Nn=void 0,Ft.length===1){ka(...Ft[0]),$t&&hn(void 0,...$t);return}let Mi="";const Bn=[];for(;Ft.length;){const[Du,...un]=Ft.pop();switch(Du.code){case F.Types_of_property_0_are_incompatible.code:{Mi.indexOf("new ")===0&&(Mi=`(${Mi})`);const lu=""+un[0];Mi.length===0?Mi=`${lu}`:Lm(lu,Os(ae))?Mi=`${Mi}.${lu}`:lu[0]==="["&&lu[lu.length-1]==="]"?Mi=`${Mi}${lu}`:Mi=`${Mi}[${lu}]`;break}case F.Call_signature_return_types_0_and_1_are_incompatible.code:case F.Construct_signature_return_types_0_and_1_are_incompatible.code:case F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Mi.length===0){let lu=Du;Du.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?lu=F.Call_signature_return_types_0_and_1_are_incompatible:Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(lu=F.Construct_signature_return_types_0_and_1_are_incompatible),Bn.unshift([lu,un[0],un[1]])}else{const lu=Du.code===F.Construct_signature_return_types_0_and_1_are_incompatible.code||Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",_r=Du.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||Du.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Mi=`${lu}${Mi}(${_r})`}break}case F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Bn.unshift([F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,un[0],un[1]]);break}case F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Bn.unshift([F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,un[0],un[1],un[2]]);break}default:return H.fail(`Unhandled Diagnostic: ${Du.code}`)}}Mi?ka(Mi[Mi.length-1]===")"?F.The_types_returned_by_0_are_incompatible_between_these_types:F.The_types_of_0_are_incompatible_between_these_types,Mi):Bn.shift();for(const[Du,...un]of Bn){const lu=Du.elidedInCompatabilityPyramid;Du.elidedInCompatabilityPyramid=!1,ka(Du,...un),Du.elidedInCompatabilityPyramid=lu}$t&&hn(void 0,...$t)}function ka(Ft,...$t){H.assert(!!C),vn&&fo(),!Ft.elidedInCompatabilityPyramid&&(Ii===0?Z=ro(Z,Ft,...$t):Ii--)}function ah(Ft,...$t){ka(Ft,...$t),Ii++}function t4(Ft){H.assert(!!Z),ce?ce.push(Ft):ce=[Ft]}function hn(Ft,$t,Mi){vn&&fo();const[Bn,Du]=h6($t,Mi);let un=$t,lu=Bn;if(pW($t)&&!OPe(Mi)&&(un=kD($t),H.assert(!ms(un,Mi),"generalized source shouldn't be assignable"),lu=P5(un)),(Mi.flags&8388608&&!($t.flags&8388608)?Mi.objectType.flags:Mi.flags)&262144&&Mi!==$&&Mi!==tt){const Br=Wh(Mi);let Qa;Br&&(ms(un,Br)||(Qa=ms($t,Br)))?ka(F._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Qa?Bn:lu,Du,gn(Br)):(Z=void 0,ka(F._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,Du,lu))}if(Ft)Ft===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&Ve&&Q1t($t,Mi).length&&(Ft=F.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(D===Hh)Ft=F.Type_0_is_not_comparable_to_type_1;else if(Bn===Du)Ft=F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(Ve&&Q1t($t,Mi).length)Ft=F.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($t.flags&128&&Mi.flags&1048576){const Br=gri($t,Mi);if(Br){ka(F.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,lu,Du,gn(Br));return}}Ft=F.Type_0_is_not_assignable_to_type_1}ka(Ft,lu,Du)}function Kn(Ft,$t){const Mi=lF(Ft.symbol)?gn(Ft,Ft.symbol.valueDeclaration):gn(Ft),Bn=lF($t.symbol)?gn($t,$t.symbol.valueDeclaration):gn($t);(nc===Ft&&ct===$t||fc===Ft&&Qt===$t||Cl===Ft&&pr===$t||Xdt()===Ft&&Xu===$t)&&ka(F._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Bn,Mi)}function Yr(Ft,$t,Mi){return xs(Ft)?Ft.target.readonly&&Ote($t)?(Mi&&ka(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):zb($t):Sz(Ft)&&Ote($t)?(Mi&&ka(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):xs($t)?A4(Ft):!0}function yo(Ft,$t,Mi){return $n(Ft,$t,3,Mi)}function $n(Ft,$t,Mi=3,Bn=!1,Du,un=0){if(Ft===$t)return-1;if(Ft.flags&524288&&$t.flags&402784252)return D===Hh&&!($t.flags&131072)&&mW($t,Ft,D)||mW(Ft,$t,D,Bn?ka:void 0)?-1:(Bn&&Bs(Ft,$t,Ft,$t,Du),0);const lu=Mte(Ft,!1);let _r=Mte($t,!0);if(lu===_r)return-1;if(D===Em)return lu.flags!==_r.flags?0:lu.flags&67358815?-1:(w0(lu,_r),fr(lu,_r,!1,0,Mi));if(lu.flags&262144&&EF(lu)===_r)return-1;if(lu.flags&470302716&&_r.flags&1048576){const Br=_r.types,Qa=Br.length===2&&Br[0].flags&98304?Br[1]:Br.length===3&&Br[0].flags&98304&&Br[1].flags&98304?Br[2]:void 0;if(Qa&&!(Qa.flags&98304)&&(_r=Mte(Qa,!0),lu===_r))return-1}if(D===Hh&&!(_r.flags&131072)&&mW(_r,lu,D)||mW(lu,_r,D,Bn?ka:void 0))return-1;if(lu.flags&469499904||_r.flags&469499904){if(!(un&2)&&PC(lu)&&Gu(lu)&8192&&Ys(lu,_r,Bn))return Bn&&hn(Du,lu,$t.aliasSymbol?$t:_r),0;const Qa=(D!==Hh||Tg(lu))&&!(un&2)&&lu.flags&405405692&&lu!==He&&_r.flags&2621440&&eht(_r)&&(n0(lu).length>0||o_e(lu)),Oo=!!(Gu(lu)&2048);if(Qa&&!hii(lu,_r,Oo)){if(Bn){const mo=gn(Ft.aliasSymbol?Ft:lu),es=gn($t.aliasSymbol?$t:_r),T0=go(lu,0),Gs=go(lu,1);T0.length>0&&$n(Zs(T0[0]),_r,1,!1)||Gs.length>0&&$n(Zs(Gs[0]),_r,1,!1)?ka(F.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,mo,es):ka(F.Type_0_has_no_properties_in_common_with_type_1,mo,es)}return 0}w0(lu,_r);const xr=lu.flags&1048576&&lu.types.length<4&&!(_r.flags&1048576)||_r.flags&1048576&&_r.types.length<4&&!(lu.flags&469499904)?kc(lu,_r,Bn,un):fr(lu,_r,Bn,un,Mi);if(xr)return xr}return Bn&&Bs(Ft,$t,lu,_r,Du),0}function Bs(Ft,$t,Mi,Bn,Du){var un,lu;const _r=!!JPe(Ft),Br=!!JPe($t);Mi=Ft.aliasSymbol||_r?Ft:Mi,Bn=$t.aliasSymbol||Br?$t:Bn;let Qa=En>0;if(Qa&&En--,Mi.flags&524288&&Bn.flags&524288){const Oo=Z;Yr(Mi,Bn,!0),Z!==Oo&&(Qa=!!Z)}if(Mi.flags&524288&&Bn.flags&402784252)Kn(Mi,Bn);else if(Mi.symbol&&Mi.flags&524288&&He===Mi)ka(F.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Gu(Mi)&2048&&Bn.flags&2097152){const Oo=Bn.types,Wo=Vb(Rm.IntrinsicAttributes,C),xr=Vb(Rm.IntrinsicClassAttributes,C);if(!Nt(Wo)&&!Nt(xr)&&(kt(Oo,Wo)||kt(Oo,xr)))return}else Z=$Ne(Z,$t);if(!Du&&Qa){Nn=[Mi,Bn];return}if(hn(Du,Mi,Bn),Mi.flags&262144&&((lu=(un=Mi.symbol)==null?void 0:un.declarations)!=null&&lu[0])&&!EF(Mi)){const Oo=Gge(Mi);if(Oo.constraint=_a(Bn,Mb(Mi,Oo)),iW(Oo)){const Wo=gn(Bn,Mi.symbol.declarations[0]);t4(Su(Mi.symbol.declarations[0],F.This_type_parameter_might_need_an_extends_0_constraint,Wo))}}}function w0(Ft,$t){if(Gn&&Ft.flags&3145728&&$t.flags&3145728){const Mi=Ft,Bn=$t;if(Mi.objectFlags&Bn.objectFlags&32768)return;const Du=Mi.types.length,un=Bn.types.length;Du*un>1e6&&Gn.instant(Gn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Ft.id,sourceSize:Du,targetId:$t.id,targetSize:un,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function ad(Ft,$t){return er(nn(Ft,(Bn,Du)=>{var un;Du=Gh(Du);const lu=Du.flags&3145728?GNe(Du,$t):bC(Du,$t),_r=lu&&Wn(lu)||((un=G9(Du,$t))==null?void 0:un.type)||te;return xi(Bn,_r)},void 0)||_t)}function Ys(Ft,$t,Mi){var Bn;if(!eie($t)||!Ae&&Gu($t)&4096)return!1;const Du=!!(Gu(Ft)&2048);if((D===Jf||D===Hh)&&(Nz(He,$t)||!Du&&bD($t)))return!1;let un=$t,lu;$t.flags&1048576&&(un=hpt(Ft,$t,$n)||Eci($t),lu=un.flags&1048576?un.types:[un]);for(const _r of n0(Ft))if(Td(_r,Ft.symbol)&&!Y1t(Ft,_r)){if(!RMe(un,_r.escapedName,Du)){if(Mi){const Br=Ic(un,eie);if(!C)return H.fail();if(W2(C)||zh(C)||zh(C.parent)){_r.valueDeclaration&&oE(_r.valueDeclaration)&&zn(C)===zn(_r.valueDeclaration.name)&&(C=_r.valueDeclaration.name);const Qa=Fr(_r),Oo=Ift(Qa,Br),Wo=Oo?Fr(Oo):void 0;Wo?ka(F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Qa,gn(Br),Wo):ka(F.Property_0_does_not_exist_on_type_1,Qa,gn(Br))}else{const Qa=((Bn=Ft.symbol)==null?void 0:Bn.declarations)&&Ki(Ft.symbol.declarations);let Oo;if(_r.valueDeclaration&&Tn(_r.valueDeclaration,Wo=>Wo===Qa)&&zn(Qa)===zn(C)){const Wo=_r.valueDeclaration;H.assertNode(Wo,Z3);const xr=Wo.name;C=xr,at(xr)&&(Oo=$Me(xr,Br))}Oo!==void 0?ah(F.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Fr(_r),gn(Br),Oo):ah(F.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Fr(_r),gn(Br))}}return!0}if(lu&&!$n(Wn(_r),ad(lu,_r.escapedName),3,Mi))return Mi&&Eo(F.Types_of_property_0_are_incompatible,Fr(_r)),!0}return!1}function Td(Ft,$t){return Ft.valueDeclaration&&$t.valueDeclaration&&Ft.valueDeclaration.parent===$t.valueDeclaration}function kc(Ft,$t,Mi,Bn){if(Ft.flags&1048576){if($t.flags&1048576){const Du=Ft.origin;if(Du&&Du.flags&2097152&&$t.aliasSymbol&&kt(Du.types,$t))return-1;const un=$t.origin;if(un&&un.flags&1048576&&Ft.aliasSymbol&&kt(un.types,Ft))return-1}return D===Hh?ze(Ft,$t,Mi&&!(Ft.flags&402784252),Bn):Fu(Ft,$t,Mi&&!(Ft.flags&402784252),Bn)}if($t.flags&1048576)return bm(_W(Ft),$t,Mi&&!(Ft.flags&402784252)&&!($t.flags&402784252));if($t.flags&2097152)return At(Ft,$t,Mi,2);if(D===Hh&&$t.flags&402784252){const Du=Lu(Ft.types,un=>un.flags&465829888?Wh(un)||on:un);if(Du!==Ft.types){if(Ft=Ds(Du),Ft.flags&131072)return 0;if(!(Ft.flags&2097152))return $n(Ft,$t,1,!1)||$n($t,Ft,1,!1)}}return ze(Ft,$t,!1,1)}function el(Ft,$t){let Mi=-1;const Bn=Ft.types;for(const Du of Bn){const un=bm(Du,$t,!1);if(!un)return 0;Mi&=un}return Mi}function bm(Ft,$t,Mi){const Bn=$t.types;if($t.flags&1048576){if(C6(Bn,Ft))return-1;if(D!==Hh&&Gu($t)&32768&&!(Ft.flags&1024)&&(Ft.flags&2688||(D===h_||D===p4)&&Ft.flags&256)){const un=Ft===Ft.regularType?Ft.freshType:Ft.regularType,lu=Ft.flags&128?ct:Ft.flags&256?Qt:Ft.flags&2048?Li:void 0;return lu&&C6(Bn,lu)||un&&C6(Bn,un)?-1:0}const Du=Bht($t,Ft);if(Du){const un=$n(Ft,Du,2,!1);if(un)return un}}for(const Du of Bn){const un=$n(Ft,Du,2,!1);if(un)return un}if(Mi){const Du=X1t(Ft,$t,$n);Du&&$n(Ft,Du,2,!0)}return 0}function At(Ft,$t,Mi,Bn){let Du=-1;const un=$t.types;for(const lu of un){const _r=$n(Ft,lu,2,Mi,void 0,Bn);if(!_r)return 0;Du&=_r}return Du}function ze(Ft,$t,Mi,Bn){const Du=Ft.types;if(Ft.flags&1048576&&C6(Du,$t))return-1;const un=Du.length;for(let lu=0;lu=lu.types.length&&un.length%lu.types.length===0){const Oo=$n(Br,lu.types[_r%lu.types.length],3,!1,void 0,Bn);if(Oo){Du&=Oo;continue}}const Qa=$n(Br,$t,1,Mi,void 0,Bn);if(!Qa)return 0;Du&=Qa}return Du}function Er(Ft=_t,$t=_t,Mi=_t,Bn,Du){if(Ft.length!==$t.length&&D===Em)return 0;const un=Ft.length<=$t.length?Ft.length:$t.length;let lu=-1;for(let _r=0;_r(mo|=Gs?16:8,xr(Gs)));let es;return dn===3?((un=Gn)==null||un.instant(Gn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ft.id,sourceIdStack:$e.map(Gs=>Gs.id),targetId:$t.id,targetIdStack:ut.map(Gs=>Gs.id),depth:gi,targetDepth:Wi}),es=3):((lu=Gn)==null||lu.push(Gn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ft.id,targetId:$t.id}),es=Mr(Ft,$t,Mi,Bn),(_r=Gn)==null||_r.pop()),Ho&&(Ho=xr),Du&1&&gi--,Du&2&&Wi--,dn=Wo,es?(es===-1||gi===0&&Wi===0)&&T0(es===-1||es===3):(D.set(Br,(Mi?4:0)|2|mo),An--,T0(!1)),es;function T0(Gs){for(let Hd=Oo;Hd_r!==Ft)&&(un=$n(lu,$t,1,!1,void 0,Bn))}un&&!(Bn&2)&&$t.flags&2097152&&!Lb($t)&&Ft.flags&2621440?(un&=mn(Ft,$t,Mi,void 0,!1,0),un&&PC(Ft)&&Gu(Ft)&8192&&(un&=bl(Ft,$t,!1,Mi,0))):un&&Rge($t)&&!zb($t)&&Ft.flags&2097152&&Gh(Ft).flags&3670016&&!Oe(Ft.types,lu=>lu===$t||!!(Gu(lu)&262144))&&(un&=mn(Ft,$t,Mi,void 0,!0,Bn))}return un&&hu(Du),un}function Ou(Ft,$t,Mi,Bn,Du){let un,lu,_r=!1,Br=Ft.flags;const Qa=$t.flags;if(D===Em){if(Br&3145728){let xr=el(Ft,$t);return xr&&(xr&=el($t,Ft)),xr}if(Br&4194304)return $n(Ft.type,$t.type,3,!1);if(Br&8388608&&(un=$n(Ft.objectType,$t.objectType,3,!1))&&(un&=$n(Ft.indexType,$t.indexType,3,!1))||Br&16777216&&Ft.root.isDistributive===$t.root.isDistributive&&(un=$n(Ft.checkType,$t.checkType,3,!1))&&(un&=$n(Ft.extendsType,$t.extendsType,3,!1))&&(un&=$n(SC(Ft),SC($t),3,!1))&&(un&=$n(BC(Ft),BC($t),3,!1))||Br&33554432&&(un=$n(Ft.baseType,$t.baseType,3,!1))&&(un&=$n(Ft.constraint,$t.constraint,3,!1)))return un;if(!(Br&524288))return 0}else if(Br&3145728||Qa&3145728){if(un=kc(Ft,$t,Mi,Bn))return un;if(!(Br&465829888||Br&524288&&Qa&1048576||Br&2097152&&Qa&467402752))return 0}if(Br&17301504&&Ft.aliasSymbol&&Ft.aliasTypeArguments&&Ft.aliasSymbol===$t.aliasSymbol&&!(Qge(Ft)||Qge($t))){const xr=tht(Ft.aliasSymbol);if(xr===_t)return 1;const mo=Ur(Ft.aliasSymbol).typeParameters,es=b_(mo),T0=x6(Ft.aliasTypeArguments,mo,es,Qn(Ft.aliasSymbol.valueDeclaration)),Gs=x6($t.aliasTypeArguments,mo,es,Qn(Ft.aliasSymbol.valueDeclaration)),Hd=Wo(T0,Gs,xr,Bn);if(Hd!==void 0)return Hd}if(cht(Ft)&&!Ft.target.readonly&&(un=$n(O0(Ft)[0],$t,1))||cht($t)&&($t.target.readonly||Ote(Wh(Ft)||Ft))&&(un=$n(Ft,O0($t)[0],2)))return un;if(Qa&262144){if(Gu(Ft)&32&&!Ft.declaration.nameType&&$n(k_($t),cp(Ft),3)&&!(C_(Ft)&4)){const xr=DD(Ft),mo=qf($t,Fg(Ft));if(un=$n(xr,mo,3,Mi))return un}if(D===Hh&&Br&262144){let xr=rh(Ft);if(xr&&iW(Ft))for(;xr&&yE(xr,mo=>!!(mo.flags&262144));){if(un=$n(xr,$t,1,!1))return un;xr=rh(xr)}return 0}}else if(Qa&4194304){const xr=$t.type;if(Br&4194304&&(un=$n(xr,Ft.type,3,!1)))return un;if(xs(xr)){if(un=$n(Ft,s1t(xr),2,Mi))return un}else{const mo=jNe(xr);if(mo){if($n(Ft,k_(mo,$t.indexFlags|4),2,Mi)===-1)return-1}else if(Xm(xr)){const es=I5(xr),T0=cp(xr);let Gs;if(es&&tW(xr)){const Hd=Gh(K9(xr)),BE=[];RNe(Hd,8576,!1,wE=>void BE.push(_a(es,dW(xr.mapper,Fg(xr),wE)))),Gs=er([...BE,es])}else Gs=es||T0;if($n(Ft,Gs,2,Mi)===-1)return-1}}}else if(Qa&8388608){if(Br&8388608){if((un=$n(Ft.objectType,$t.objectType,3,Mi))&&(un&=$n(Ft.indexType,$t.indexType,3,Mi)),un)return un;Mi&&(lu=Z)}if(D===Jf||D===Hh){const xr=$t.objectType,mo=$t.indexType,es=Wh(xr)||xr,T0=Wh(mo)||mo;if(!Lb(es)&&!AC(T0)){const Gs=4|(es!==xr?2:0),Hd=b6(es,T0,Gs);if(Hd){if(Mi&&lu&&hu(Du),un=$n(Ft,Hd,2,Mi,void 0,Bn))return un;Mi&&lu&&Z&&(Z=Oo([lu])<=Oo([Z])?lu:Z)}}}Mi&&(lu=void 0)}else if(Xm($t)&&D!==Em){const xr=!!$t.declaration.nameType,mo=DD($t),es=C_($t);if(!(es&8)){if(!xr&&mo.flags&8388608&&mo.objectType===Ft&&mo.indexType===Fg($t))return-1;if(!Xm(Ft)){const T0=xr?I5($t):cp($t),Gs=k_(Ft,2),Hd=es&4,BE=Hd?xte(T0,Gs):void 0;if(Hd?!(BE.flags&131072):$n(T0,Gs,3)){const wE=DD($t),Jb=Fg($t),xT=Pz(wE,-98305);if(!xr&&xT.flags&8388608&&xT.indexType===Jb){if(un=$n(Ft,xT.objectType,2,Mi))return un}else{const nS=xr?BE||T0:BE?Ds([BE,Jb]):Jb,BD=qf(Ft,nS);if(un=$n(BD,wE,3,Mi))return un}}lu=Z,hu(Du)}}}else if(Qa&16777216){if(Az($t,ut,Wi,10))return 3;const xr=$t;if(!xr.root.inferTypeParameters&&!kti(xr.root)&&!(Ft.flags&16777216&&Ft.root===xr.root)){const mo=!ms($ge(xr.checkType),$ge(xr.extendsType)),es=!mo&&ms(vF(xr.checkType),vF(xr.extendsType));if((un=mo?-1:$n(Ft,SC(xr),2,!1,void 0,Bn))&&(un&=es?-1:$n(Ft,BC(xr),2,!1,void 0,Bn),un))return un}}else if(Qa&134217728){if(Br&134217728){if(D===Hh)return Qii(Ft,$t)?0:-1;_a(Ft,id)}if(pEe(Ft,$t))return-1}else if($t.flags&268435456&&!(Ft.flags&268435456)&&oMe(Ft,$t))return-1;if(Br&8650752){if(!(Br&8388608&&Qa&8388608)){const xr=EF(Ft)||on;if(un=$n(xr,$t,1,!1,void 0,Bn))return un;if(un=$n(xm(xr,Ft),$t,1,Mi&&xr!==on&&!(Qa&Br&262144),void 0,Bn))return un;if(WNe(Ft)){const mo=EF(Ft.indexType);if(mo&&(un=$n(qf(Ft.objectType,mo),$t,1,Mi)))return un}}}else if(Br&4194304){if(un=$n(vc,$t,1,Mi))return un}else if(Br&134217728&&!(Qa&524288)){if(!(Qa&134217728)){const xr=Wh(Ft);if(xr&&xr!==Ft&&(un=$n(xr,$t,1,Mi)))return un}}else if(Br&268435456)if(Qa&268435456){if(Ft.symbol!==$t.symbol)return 0;if(un=$n(Ft.type,$t.type,3,Mi))return un}else{const xr=Wh(Ft);if(xr&&(un=$n(xr,$t,1,Mi)))return un}else if(Br&16777216){if(Az(Ft,$e,gi,10))return 3;if(Qa&16777216){const mo=Ft.root.inferTypeParameters;let es=Ft.extendsType,T0;if(mo){const Gs=DW(mo,void 0,0,yo);AD(Gs.inferences,$t.extendsType,es,1536),es=_a(es,Gs.mapper),T0=Gs.mapper}if(CD(es,$t.extendsType)&&($n(Ft.checkType,$t.checkType,3)||$n($t.checkType,Ft.checkType,3))&&((un=$n(_a(SC(Ft),T0),SC($t),3,Mi))&&(un&=$n(BC(Ft),BC($t),3,Mi)),un))return un}else{const mo=iW(Ft)?Cdt(Ft):void 0;if(mo&&(un=$n(mo,$t,1,Mi)))return un}const xr=VNe(Ft);if(xr&&(un=$n(xr,$t,1,Mi)))return un}else{if(D!==h_&&D!==p4&&zXt($t)&&bD(Ft))return-1;if(Xm($t))return Xm(Ft)&&(un=xu(Ft,$t,Mi))?un:0;const xr=!!(Br&402784252);if(D!==Em)Ft=Gh(Ft),Br=Ft.flags;else if(Xm(Ft))return 0;if(Gu(Ft)&4&&Gu($t)&4&&Ft.target===$t.target&&!xs(Ft)&&!(Qge(Ft)||Qge($t))){if(nEe(Ft))return-1;const mo=VPe(Ft.target);if(mo===_t)return 1;const es=Wo(O0(Ft),O0($t),mo,Bn);if(es!==void 0)return es}else{if(Sz($t)?e4(Ft,zb):A4($t)&&e4(Ft,mo=>xs(mo)&&!mo.target.readonly))return D!==Em?$n(yC(Ft,Qt)||me,yC($t,Qt)||me,3,Mi):0;if(K5(Ft)&&xs($t)&&!K5($t)){const mo=xD(Ft);if(mo!==Ft)return $n(mo,$t,1,Mi)}else if((D===h_||D===p4)&&bD($t)&&Gu($t)&8192&&!bD(Ft))return 0}if(Br&2621440&&Qa&524288){const mo=Mi&&Z===Du.errorInfo&&!xr;if(un=mn(Ft,$t,mo,void 0,!1,Bn),un&&(un&=ku(Ft,$t,0,mo,Bn),un&&(un&=ku(Ft,$t,1,mo,Bn),un&&(un&=bl(Ft,$t,xr,mo,Bn)))),_r&&un)Z=lu||Z||Du.errorInfo;else if(un)return un}if(Br&2621440&&Qa&1048576){const mo=Pz($t,36175872);if(mo.flags&1048576){const es=Lt(Ft,mo);if(es)return es}}}return 0;function Oo(xr){return xr?nn(xr,(mo,es)=>mo+1+Oo(es.next),0):0}function Wo(xr,mo,es,T0){if(un=Er(xr,mo,es,Mi,T0))return un;if(Oe(es,Hd=>!!(Hd&24))){lu=void 0,hu(Du);return}const Gs=mo&&fii(mo,es);if(_r=!Gs,es!==_t&&!Gs){if(_r&&!(Mi&&Oe(es,Hd=>(Hd&7)===0)))return 0;lu=Z,hu(Du)}}}function xu(Ft,$t,Mi){if(D===Hh||(D===Em?C_(Ft)===C_($t):ONe(Ft)<=ONe($t))){let Du;const un=cp($t),lu=_a(cp(Ft),ONe(Ft)<0?Y0:id);if(Du=$n(un,lu,3,Mi)){const _r=Sf([Fg(Ft)],[Fg($t)]);if(_a(I5(Ft),_r)===_a(I5($t),_r))return Du&$n(_a(DD(Ft),_r),DD($t),3,Mi)}}return 0}function Lt(Ft,$t){var Mi;const Bn=n0(Ft),Du=Sht(Bn,$t);if(!Du)return 0;let un=1;for(const Wo of Du)if(un*=Fni(E6(Wo)),un>25)return(Mi=Gn)==null||Mi.instant(Gn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ft.id,targetId:$t.id,numCombinations:un}),0;const lu=new Array(Du.length),_r=new Set;for(let Wo=0;WoWo[es],!1,0,fe||D===Hh))continue e}xa(Qa,mo,Cx),xr=!0}if(!xr)return 0}let Oo=-1;for(const Wo of Qa)if(Oo&=mn(Ft,Wo,!1,_r,!1,0),Oo&&(Oo&=ku(Ft,Wo,0,!1,0),Oo&&(Oo&=ku(Ft,Wo,1,!1,0),Oo&&!(xs(Ft)&&xs(Wo))&&(Oo&=bl(Ft,Wo,!1,!1,0)))),!Oo)return Oo;return Oo}function li(Ft,$t){if(!$t||Ft.length===0)return Ft;let Mi;for(let Bn=0;Bn5?ka(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(Ft),gn($t),Vt(un.slice(0,4),lu=>Fr(lu)).join(", "),un.length-4):ka(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(Ft),gn($t),Vt(un,lu=>Fr(lu)).join(", ")),Du&&Z&&En++)}function mn(Ft,$t,Mi,Bn,Du,un){if(D===Em)return Kr(Ft,$t,Bn);let lu=-1;if(xs($t)){if(zb(Ft)){if(!$t.target.readonly&&(Sz(Ft)||xs(Ft)&&Ft.target.readonly))return 0;const Wo=O5(Ft),xr=O5($t),mo=xs(Ft)?Ft.target.combinedFlags&4:4,es=$t.target.combinedFlags&4,T0=xs(Ft)?Ft.target.minLength:0,Gs=$t.target.minLength;if(!mo&&Wo=wE?xr-1-Math.min(Sie,Jb):BD,ai=$t.target.elementFlags[Zf];if(ai&8&&!(zC&8))return Mi&&ka(F.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Zf),0;if(zC&8&&!(ai&12))return Mi&&ka(F.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,BD,Zf),0;if(ai&1&&!(zC&1))return Mi&&ka(F.Source_provides_no_match_for_required_element_at_position_0_in_target,Zf),0;if(nS&&((zC&12||ai&12)&&(nS=!1),nS&&(Bn!=null&&Bn.has(""+BD))))continue;const Bu=B6(Hd[BD],!!(zC&ai&2)),dr=BE[Zf],nr=zC&8&&ai&4?V1(dr):B6(dr,!!(ai&2)),hr=$n(Bu,nr,3,Mi,void 0,un);if(!hr)return Mi&&(xr>1||Wo>1)&&(xT&&BD>=wE&&Sie>=Jb&&wE!==Wo-Jb-1?Eo(F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,wE,Wo-Jb-1,Zf):Eo(F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,BD,Zf)),0;lu&=hr}return lu}if($t.target.combinedFlags&12)return 0}const _r=(D===h_||D===p4)&&!PC(Ft)&&!nEe(Ft)&&!xs(Ft),Br=rMe(Ft,$t,_r,!1);if(Br)return Mi&&_o(Ft,$t)&&Ji(Ft,$t,Br,_r),0;if(PC($t)){for(const Wo of li(n0(Ft),Bn))if(!bC($t,Wo.escapedName)&&!(Wn(Wo).flags&32768))return Mi&&ka(F.Property_0_does_not_exist_on_type_1,Fr(Wo),gn($t)),0}const Qa=n0($t),Oo=xs(Ft)&&xs($t);for(const Wo of li(Qa,Bn)){const xr=Wo.escapedName;if(!(Wo.flags&4194304)&&(!Oo||i3(xr)||xr==="length")&&(!Du||Wo.flags&16777216)){const mo=qo(Ft,xr);if(mo&&mo!==Wo){const es=yi(Ft,$t,mo,Wo,E6,Mi,un,D===Hh);if(!es)return 0;lu&=es}}}return lu}function Kr(Ft,$t,Mi){if(!(Ft.flags&524288&&$t.flags&524288))return 0;const Bn=li(D6(Ft),Mi),Du=li(D6($t),Mi);if(Bn.length!==Du.length)return 0;let un=-1;for(const lu of Bn){const _r=bC($t,lu.escapedName);if(!_r)return 0;const Br=KPe(lu,_r,$n);if(!Br)return 0;un&=Br}return un}function ku(Ft,$t,Mi,Bn,Du){var un,lu;if(D===Em)return La(Ft,$t,Mi);if($t===Ri||Ft===Ri)return-1;const _r=Ft.symbol&&AE(Ft.symbol.valueDeclaration),Br=$t.symbol&&AE($t.symbol.valueDeclaration),Qa=go(Ft,_r&&Mi===1?0:Mi),Oo=go($t,Br&&Mi===1?0:Mi);if(Mi===1&&Qa.length&&Oo.length){const T0=!!(Qa[0].flags&4),Gs=!!(Oo[0].flags&4);if(T0&&!Gs)return Bn&&ka(F.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!yl(Qa[0],Oo[0],Bn))return 0}let Wo=-1;const xr=Mi===1?or:pn,mo=Gu(Ft),es=Gu($t);if(mo&64&&es&64&&Ft.symbol===$t.symbol||mo&4&&es&4&&Ft.target===$t.target)for(let T0=0;T0vE(wE,void 0,262144,Mi);return ka(F.Type_0_is_not_assignable_to_type_1,BE(Gs),BE(Hd)),ka(F.Types_of_construct_signatures_are_incompatible),Wo}}else e:for(const T0 of Oo){const Gs=oo();let Hd=Bn;for(const BE of Qa){const wE=qr(BE,T0,!0,Hd,Du,xr(BE,T0));if(wE){Wo&=wE,hu(Gs);continue e}Hd=!1}return Hd&&ka(F.Type_0_provides_no_match_for_the_signature_1,gn(Ft),vE(T0,void 0,void 0,Mi)),0}return Wo}function _o(Ft,$t){const Mi=bte(Ft,0),Bn=bte(Ft,1),Du=D6(Ft);return(Mi.length||Bn.length)&&!Du.length?!!(go($t,0).length&&Mi.length||go($t,1).length&&Bn.length):!0}function pn(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>Eo(F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>Eo(F.Call_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function or(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>Eo(F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>Eo(F.Construct_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function qr(Ft,$t,Mi,Bn,Du,un){const lu=D===h_?16:D===p4?24:0;return zPe(Mi?aW(Ft):Ft,Mi?aW($t):$t,lu,Bn,ka,un,_r,id);function _r(Br,Qa,Oo){return $n(Br,Qa,3,Oo,void 0,Du)}}function La(Ft,$t,Mi){const Bn=go(Ft,Mi),Du=go($t,Mi);if(Bn.length!==Du.length)return 0;let un=-1;for(let lu=0;luBr.keyType===ct);let _r=-1;for(const Br of un){const Qa=D!==p4&&!Mi&&lu&&Br.type.flags&1?-1:Xm(Ft)&&lu?$n(DD(Ft),Br.type,3,Bn):fl(Ft,Br,Bn,Du);if(!Qa)return 0;_r&=Qa}return _r}function fl(Ft,$t,Mi,Bn){const Du=nW(Ft,$t.keyType);return Du?pd(Du,$t,Mi,Bn):!(Bn&1)&&(D!==p4||Gu(Ft)&8192)&&cEe(Ft)?cs(Ft,$t,Mi,Bn):(Mi&&ka(F.Index_signature_for_type_0_is_missing_in_type_1,gn($t.keyType),gn(Ft)),0)}function H1(Ft,$t){const Mi=kh(Ft),Bn=kh($t);if(Mi.length!==Bn.length)return 0;for(const Du of Bn){const un=k3(Ft,Du.keyType);if(!(un&&$n(un.type,Du.type,3)&&un.isReadonly===Du.isReadonly))return 0}return-1}function yl(Ft,$t,Mi){if(!Ft.declaration||!$t.declaration)return!0;const Bn=E7(Ft.declaration,6),Du=E7($t.declaration,6);return Du===2||Du===4&&Bn!==2||Du!==4&&!Bn?!0:(Mi&&ka(F.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,C3(Bn),C3(Du)),!1)}}function OPe(l){if(l.flags&16)return!1;if(l.flags&3145728)return!!L(l.types,OPe);if(l.flags&465829888){const m=EF(l);if(m&&m!==l)return OPe(m)}return Tg(l)||!!(l.flags&134217728)||!!(l.flags&268435456)}function Q1t(l,m){return xs(l)&&xs(m)?_t:n0(m).filter(D=>Yge(he(l,D.escapedName),Wn(D)))}function Yge(l,m){return!!l&&!!m&&jl(l,32768)&&!!EW(m)}function dii(l){return n0(l).filter(m=>EW(Wn(m)))}function X1t(l,m,D=PPe){return hpt(l,m,D)||fci(l,m)||mci(l,m)||pci(l,m)||gci(l,m)}function jPe(l,m,D){const C=l.types,A=C.map(I=>I.flags&402784252?0:-1);for(const[I,U]of m){let Z=!1;for(let ce=0;ceA[U]),0):l;return w.flags&131072?l:w}function eht(l){if(l.flags&524288){const m=Ag(l);return m.callSignatures.length===0&&m.constructSignatures.length===0&&m.indexInfos.length===0&&m.properties.length>0&&ye(m.properties,D=>!!(D.flags&16777216))}return l.flags&2097152?ye(l.types,eht):!1}function hii(l,m,D){for(const C of n0(l))if(RMe(m,C.escapedName,D))return!0;return!1}function VPe(l){return l===Fo||l===To||l.objectFlags&8?ge:iht(l.symbol,l.typeParameters)}function tht(l){return iht(l,Ur(l).typeParameters)}function iht(l,m=_t){var D,C;const A=Ur(l);if(!A.variances){(D=Gn)==null||D.push(Gn.Phase.CheckTypes,"getVariancesWorker",{arity:m.length,id:Fh(X0(l))});const w=Jk;Jk||(Jk=!0,lb=cD.length),A.variances=_t;const I=[];for(const U of m){const Z=HPe(U);let ce=Z&16384?Z&8192?0:1:Z&8192?2:void 0;if(ce===void 0){let Fe=!1,Te=!1;const $e=Ho;Ho=gi=>gi?Te=!0:Fe=!0;const ut=zte(l,U,sf),zt=zte(l,U,Q0);ce=(ms(zt,ut)?1:0)|(ms(ut,zt)?2:0),ce===3&&ms(zte(l,U,Cc),ut)&&(ce=4),Ho=$e,(Fe||Te)&&(Fe&&(ce|=8),Te&&(ce|=16))}I.push(ce)}w||(Jk=!1,lb=0),A.variances=I,(C=Gn)==null||C.pop({variances:I.map(H.formatVariance)})}return A.variances}function zte(l,m,D){const C=Mb(m,D),A=X0(l);if(Nt(A))return A;const w=l.flags&524288?aT(l,V5(Ur(l).typeParameters,C)):R5(A,V5(A.typeParameters,C));return qt.add(Fh(w)),w}function Qge(l){return qt.has(Fh(l))}function HPe(l){var m;return nn((m=l.symbol)==null?void 0:m.declarations,(D,C)=>D|Eh(C),0)&28672}function fii(l,m){for(let D=0;D!!(m.flags&262144)||Xge(m))}function gii(l,m,D,C){const A=[];let w="";const I=Z(l,0),U=Z(m,0);return`${w}${I},${U}${D}`;function Z(ce,Fe=0){let Te=""+ce.target.id;for(const $e of O0(ce)){if($e.flags&262144){if(C||mii($e)){let ut=A.indexOf($e);ut<0&&(ut=A.length,A.push($e)),Te+="="+ut;continue}w="*"}else if(Fe<4&&Xge($e)){Te+="<"+Z($e,Fe+1)+">";continue}Te+="-"+$e.id}return Te}}function eEe(l,m,D,C,A){if(C===Em&&l.id>m.id){const I=l;l=m,m=I}const w=D?":"+D:"";return Xge(l)&&Xge(m)?gii(l,m,w,A):`${l.id},${m.id}${w}`}function Ite(l,m){if(Gl(l)&6){for(const D of l.links.containingType.types){const C=qo(D,l.escapedName),A=C&&Ite(C,m);if(A)return A}return}return m(l)}function Q9(l){return l.parent&&l.parent.flags&32?X0(cf(l)):void 0}function tEe(l){const m=Q9(l),D=m&&Zc(m)[0];return D&&he(D,l.escapedName)}function Eii(l,m){return Ite(l,D=>{const C=Q9(D);return C?H9(C,m):!1})}function _ii(l,m){return!Ite(m,D=>l4(D)&4?!Eii(l,Q9(D)):!1)}function nht(l,m,D){return Ite(m,C=>l4(C,D)&4?!H9(l,Q9(C)):!1)?void 0:l}function Az(l,m,D,C=3){if(D>=C){if((Gu(l)&96)===96&&(l=uht(l)),l.flags&2097152)return Oe(l.types,U=>Az(U,m,D,C));const A=iEe(l);let w=0,I=0;for(let U=0;U=I&&(w++,w>=C))return!0;I=Z.id}}}return!1}function uht(l){let m;for(;(Gu(l)&96)===96&&(m=K9(l))&&(m.symbol||m.flags&2097152&&Oe(m.types,D=>!!D.symbol));)l=m;return l}function rht(l,m){return(Gu(l)&96)===96&&(l=uht(l)),l.flags&2097152?Oe(l.types,D=>rht(D,m)):iEe(l)===m}function iEe(l){if(l.flags&524288&&!sMe(l)){if(Gu(l)&4&&l.node)return l.node;if(l.symbol&&!(Gu(l)&16&&l.symbol.flags&32))return l.symbol;if(xs(l))return l.target}if(l.flags&262144)return l.symbol;if(l.flags&8388608){do l=l.objectType;while(l.flags&8388608);return l}return l.flags&16777216?l.root:l}function Dii(l,m){return KPe(l,m,hW)!==0}function KPe(l,m,D){if(l===m)return-1;const C=l4(l)&6,A=l4(m)&6;if(C!==A)return 0;if(C){if(_T(l)!==_T(m))return 0}else if((l.flags&16777216)!==(m.flags&16777216))return 0;return Ng(l)!==Ng(m)?0:D(Wn(l),Wn(m))}function xii(l,m,D){const C=Cm(l),A=Cm(m),w=SE(l),I=SE(m),U=F_(l),Z=F_(m);return!!(C===A&&w===I&&U===Z||D&&w<=I)}function Rte(l,m,D,C,A,w){if(l===m)return-1;if(!xii(l,m,D)||S(l.typeParameters)!==S(m.typeParameters))return 0;if(m.typeParameters){const Z=Sf(l.typeParameters,m.typeParameters);for(let ce=0;cem|(D.flags&1048576?aht(D.types):D.flags),0)}function bii(l){if(l.length===1)return l[0];const m=fe?Lu(l,C=>Ic(C,A=>!(A.flags&98304))):l,D=Cii(m)?er(m):nn(m,(C,A)=>F6(C,A)?A:C);return m===l?D:aEe(D,aht(l)&98304)}function yii(l){return nn(l,(m,D)=>F6(D,m)?D:m)}function A4(l){return!!(Gu(l)&4)&&(l.target===Fo||l.target===To)}function Sz(l){return!!(Gu(l)&4)&&l.target===To}function zb(l){return A4(l)||xs(l)}function Ote(l){return A4(l)&&!Sz(l)||xs(l)&&!l.target.readonly}function WPe(l){return A4(l)?O0(l)[0]:void 0}function H5(l){return A4(l)||!(l.flags&98304)&&ms(l,ip)}function GPe(l){return Ote(l)||!(l.flags&98305)&&ms(l,ql)}function JPe(l){if(!(Gu(l)&4)||!(Gu(l.target)&3))return;if(Gu(l)&33554432)return Gu(l)&67108864?l.cachedEquivalentBaseType:void 0;l.objectFlags|=33554432;const m=l.target;if(Gu(m)&1){const A=Vr(m);if(A&&A.expression.kind!==80&&A.expression.kind!==211)return}const D=Zc(m);if(D.length!==1||_6(l.symbol).size)return;let C=S(m.typeParameters)?_a(D[0],Sf(m.typeParameters,O0(l).slice(0,m.typeParameters.length))):D[0];return S(O0(l))>S(m.typeParameters)&&(C=xm(C,Cr(O0(l)))),l.objectFlags|=67108864,l.cachedEquivalentBaseType=C}function oht(l){return fe?l===wn:l===we}function nEe(l){const m=WPe(l);return!!m&&oht(m)}function Bz(l){let m;return xs(l)||!!qo(l,"0")||H5(l)&&!!(m=he(l,"length"))&&e4(m,D=>!!(D.flags&256))}function uEe(l){return H5(l)||Bz(l)}function kii(l,m){const D=he(l,""+m);if(D)return D;if(e4(l,xs))return dht(l,m,ae.noUncheckedIndexedAccess?te:void 0)}function Fii(l){return!(l.flags&240544)}function Tg(l){return!!(l.flags&109472)}function sht(l){const m=xD(l);return m.flags&2097152?Oe(m.types,Tg):Tg(m)}function Aii(l){return l.flags&2097152&&Le(l.types,Tg)||l}function pW(l){return l.flags&16?!0:l.flags&1048576?l.flags&1024?!0:ye(l.types,Tg):Tg(l)}function kD(l){return l.flags&1056?bge(l):l.flags&402653312?ct:l.flags&256?Qt:l.flags&2048?Li:l.flags&512?pr:l.flags&1048576?Sii(l):l}function Sii(l){const m=`B${Fh(l)}`;return Yk(m)??fb(m,hl(l,kD))}function $Pe(l){return l.flags&402653312?ct:l.flags&288?Qt:l.flags&2048?Li:l.flags&512?pr:l.flags&1048576?hl(l,$Pe):l}function Ib(l){return l.flags&1056&&Pb(l)?bge(l):l.flags&128&&Pb(l)?ct:l.flags&256&&Pb(l)?Qt:l.flags&2048&&Pb(l)?Li:l.flags&512&&Pb(l)?pr:l.flags&1048576?hl(l,Ib):l}function lht(l){return l.flags&8192?Xu:l.flags&1048576?hl(l,lht):l}function UPe(l,m){return GEe(l,m)||(l=lht(Ib(l))),Jh(l)}function Bii(l,m,D){if(l&&Tg(l)){const C=m?D?NW(m):m:void 0;l=UPe(l,C)}return l}function qPe(l,m,D,C){if(l&&Tg(l)){const A=m?Hb(D,m,C):void 0;l=UPe(l,A)}return l}function xs(l){return!!(Gu(l)&4&&l.target.objectFlags&8)}function K5(l){return xs(l)&&!!(l.target.combinedFlags&8)}function cht(l){return K5(l)&&l.target.elementFlags.length===1}function rEe(l){return wz(l,l.target.fixedLength)}function dht(l,m,D){return hl(l,C=>{const A=C,w=rEe(A);return w?D&&m>=pPe(A.target)?er([w,D]):w:te})}function wii(l){const m=rEe(l);return m&&V1(m)}function wz(l,m,D=0,C=!1,A=!1){const w=O5(l)-D;if(m(D&12)===(m.target.elementFlags[C]&12))}function hht({value:l}){return l.base10Value==="0"}function fht(l){return Ic(l,m=>fp(m,4194304))}function Lii(l){return hl(l,Nii)}function Nii(l){return l.flags&4?Gf:l.flags&8?eC:l.flags&64?t6:l===Sn||l===Ui||l.flags&114691||l.flags&128&&l.value===""||l.flags&256&&l.value===0||l.flags&2048&&hht(l)?l:Ku}function aEe(l,m){const D=m&~l.flags&98304;return D===0?l:er(D===32768?[l,te]:D===65536?[l,it]:[l,te,it])}function S6(l,m=!1){H.assert(fe);const D=m?je:te;return l===D||l.flags&1048576&&l.types[0]===D?l:er([l,D])}function Pii(l){return Jm||(Jm=Cz("NonNullable",524288,void 0)||Xt),Jm!==Xt?aT(Jm,[l]):Ds([l,Ko])}function FD(l){return fe?kF(l,2097152):l}function mht(l){return fe?er([l,X]):l}function oEe(l){return fe?_Ee(l,X):l}function sEe(l,m,D){return D?RN(m)?S6(l):mht(l):l}function gW(l,m){return MU(m)?FD(l):Y1(m)?oEe(l):l}function B6(l,m){return Ve&&m?_Ee(l,de):l}function EW(l){return l===de||!!(l.flags&1048576)&&l.types[0]===de}function lEe(l){return Ve?_Ee(l,de):mp(l,524288)}function Mii(l,m){return(l.flags&524)!==0&&(m.flags&28)!==0}function cEe(l){const m=Gu(l);return l.flags&2097152?ye(l.types,cEe):!!(l.symbol&&l.symbol.flags&7040&&!(l.symbol.flags&32)&&!o_e(l))||!!(m&4194304)||!!(m&1024&&cEe(l.source))}function CF(l,m){const D=Hs(l.flags,l.escapedName,Gl(l)&8);D.declarations=l.declarations,D.parent=l.parent,D.links.type=m,D.links.target=l,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration);const C=Ur(l).nameType;return C&&(D.links.nameType=C),D}function zii(l,m){const D=Vo();for(const C of D6(l)){const A=Wn(C),w=m(A);D.set(C.escapedName,w===A?C:CF(C,w))}return D}function _W(l){if(!(PC(l)&&Gu(l)&8192))return l;const m=l.regularType;if(m)return m;const D=l,C=zii(l,_W),A=Ol(D.symbol,C,D.callSignatures,D.constructSignatures,D.indexInfos);return A.flags=D.flags,A.objectFlags|=D.objectFlags&-8193,l.regularType=A,A}function pht(l,m,D){return{parent:l,propertyName:m,siblings:D,resolvedProperties:void 0}}function ght(l){if(!l.siblings){const m=[];for(const D of ght(l.parent))if(PC(D)){const C=bC(D,l.propertyName);C&&FF(Wn(C),A=>{m.push(A)})}l.siblings=m}return l.siblings}function Iii(l){if(!l.resolvedProperties){const m=new Map;for(const D of ght(l))if(PC(D)&&!(Gu(D)&2097152))for(const C of n0(D))m.set(C.escapedName,C);l.resolvedProperties=ga(m.values())}return l.resolvedProperties}function Rii(l,m){if(!(l.flags&4))return l;const D=Wn(l),C=m&&pht(m,l.escapedName,void 0),A=ZPe(D,C);return A===D?l:CF(l,A)}function Oii(l){const m=Mt.get(l.escapedName);if(m)return m;const D=CF(l,je);return D.flags|=16777216,Mt.set(l.escapedName,D),D}function jii(l,m){const D=Vo();for(const A of D6(l))D.set(A.escapedName,Rii(A,m));if(m)for(const A of Iii(m))D.has(A.escapedName)||D.set(A.escapedName,Oii(A));const C=Ol(l.symbol,D,_t,_t,Lu(kh(l),A=>y_(A.keyType,vm(A.type),A.isReadonly)));return C.objectFlags|=Gu(l)&266240,C}function vm(l){return ZPe(l,void 0)}function ZPe(l,m){if(Gu(l)&196608){if(m===void 0&&l.widened)return l.widened;let D;if(l.flags&98305)D=me;else if(PC(l))D=jii(l,m);else if(l.flags&1048576){const C=m||pht(void 0,void 0,l.types),A=Lu(l.types,w=>w.flags&98304?w:ZPe(w,C));D=er(A,Oe(A,bD)?2:1)}else l.flags&2097152?D=Ds(Lu(l.types,vm)):zb(l)&&(D=R5(l.target,Lu(O0(l),vm)));return D&&m===void 0&&(l.widened=D),D||l}return l}function dEe(l){let m=!1;if(Gu(l)&65536){if(l.flags&1048576)if(Oe(l.types,bD))m=!0;else for(const D of l.types)dEe(D)&&(m=!0);if(zb(l))for(const D of O0(l))dEe(D)&&(m=!0);if(PC(l))for(const D of D6(l)){const C=Wn(D);Gu(C)&65536&&(dEe(C)||pt(D.valueDeclaration,F.Object_literal_s_property_0_implicitly_has_an_1_type,Fr(D),gn(vm(C))),m=!0)}}return m}function LC(l,m,D){const C=gn(vm(m));if(Qn(l)&&!uV(zn(l),ae))return;let A;switch(l.kind){case 226:case 172:case 171:A=Ae?F.Member_0_implicitly_has_an_1_type:F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const w=l;if(at(w.name)){const I=Dv(w.name);if((CB(w.parent)||n3(w.parent)||u3(w.parent))&&w.parent.parameters.includes(w)&&(uc(w,w.name.escapedText,788968,void 0,w.name.escapedText,!0)||I&&_le(I))){const U="arg"+w.parent.parameters.indexOf(w),Z=b0(w.name)+(w.dotDotDotToken?"[]":"");g4(Ae,l,F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,U,Z);return}}A=l.dotDotDotToken?Ae?F.Rest_parameter_0_implicitly_has_an_any_type:F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ae?F.Parameter_0_implicitly_has_an_1_type:F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(A=F.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 324:pt(l,F.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Ae&&NB(l.parent)&&pt(l.parent.tagName,F.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,C);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Ae&&!l.name){D===3?pt(l,F.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):pt(l,F.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}A=Ae?D===3?F._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Ae&&pt(l,F.Mapped_object_type_implicitly_has_an_any_template_type);return;default:A=Ae?F.Variable_0_implicitly_has_an_1_type:F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}g4(Ae,l,A,b0(Za(l)),C)}function hEe(l,m,D){s(()=>{Ae&&Gu(m)&65536&&(!D||!LMe(l))&&(dEe(m)||LC(l,m,D))})}function YPe(l,m,D){const C=Cm(l),A=Cm(m),w=AW(l),I=AW(m),U=I?A-1:A,Z=w?U:Math.min(C,U),ce=kC(l);if(ce){const Fe=kC(m);Fe&&D(ce,Fe)}for(let Fe=0;Fem.typeParameter),Vt(l.inferences,(m,D)=>()=>(m.isFixed||(Wii(l),fEe(l.inferences),m.isFixed=!0),lMe(l,D))))}function Kii(l){return BPe(Vt(l.inferences,m=>m.typeParameter),Vt(l.inferences,(m,D)=>()=>lMe(l,D)))}function fEe(l){for(const m of l)m.isFixed||(m.inferredType=void 0)}function eMe(l,m,D){(l.intraExpressionInferenceSites??(l.intraExpressionInferenceSites=[])).push({node:m,type:D})}function Wii(l){if(l.intraExpressionInferenceSites){for(const{node:m,type:D}of l.intraExpressionInferenceSites){const C=m.kind===174?sft(m,2):hf(m,2);C&&AD(l.inferences,D,C)}l.intraExpressionInferenceSites=void 0}}function tMe(l){return{typeParameter:l,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Eht(l){return{typeParameter:l.typeParameter,candidates:l.candidates&&l.candidates.slice(),contraCandidates:l.contraCandidates&&l.contraCandidates.slice(),inferredType:l.inferredType,priority:l.priority,topLevel:l.topLevel,isFixed:l.isFixed,impliedArity:l.impliedArity}}function Gii(l){const m=ti(l.inferences,gT);return m.length?XPe(Vt(m,Eht),l.signature,l.flags,l.compareTypes):void 0}function iMe(l){return l&&l.mapper}function NC(l){const m=Gu(l);if(m&524288)return!!(m&1048576);const D=!!(l.flags&465829888||l.flags&524288&&!_ht(l)&&(m&4&&(l.node||Oe(O0(l),NC))||m&16&&l.symbol&&l.symbol.flags&14384&&l.symbol.declarations||m&12583968)||l.flags&3145728&&!(l.flags&1024)&&!_ht(l)&&Oe(l.types,NC));return l.flags&3899393&&(l.objectFlags|=524288|(D?1048576:0)),D}function _ht(l){if(l.aliasSymbol&&!l.aliasTypeArguments){const m=Sl(l.aliasSymbol,265);return!!(m&&Tn(m.parent,D=>D.kind===312?!0:D.kind===267?!1:"quit"))}return!1}function xW(l,m,D=0){return!!(l===m||l.flags&3145728&&Oe(l.types,C=>xW(C,m,D))||D<3&&l.flags&16777216&&(xW(SC(l),m,D+1)||xW(BC(l),m,D+1)))}function Jii(l,m){const D=y4(l);return D?!!D.type&&xW(D.type,m):xW(Zs(l),m)}function $ii(l){const m=Vo();FF(l,C=>{if(!(C.flags&128))return;const A=Al(C.value),w=Hs(4,A);w.links.type=me,C.symbol&&(w.declarations=C.symbol.declarations,w.valueDeclaration=C.symbol.valueDeclaration),m.set(A,w)});const D=l.flags&4?[y_(ct,Ko,!1)]:_t;return Ol(void 0,m,_t,_t,D)}function Dht(l,m,D){const C=l.id+","+m.id+","+D.id;if(Bd.has(C))return Bd.get(C);const A=l.id+","+(m.target||m).id;if(kt(Oh,A))return;Oh.push(A);const w=Uii(l,m,D);return Oh.pop(),Bd.set(C,w),w}function nMe(l){return!(Gu(l)&262144)||PC(l)&&Oe(n0(l),m=>nMe(Wn(m)))||xs(l)&&Oe(FC(l),nMe)}function Uii(l,m,D){if(!(k3(l,ct)||n0(l).length!==0&&nMe(l)))return;if(A4(l))return V1(mEe(O0(l)[0],m,D),Sz(l));if(xs(l)){const A=Vt(FC(l),I=>mEe(I,m,D)),w=C_(m)&4?Lu(l.target.elementFlags,I=>I&2?1:I):l.target.elementFlags;return Bg(A,w,l.target.readonly,l.target.labeledElementDeclarations)}const C=D4(1040,void 0);return C.source=l,C.mappedType=m,C.constraintType=D,C}function qii(l){const m=Ur(l);return m.type||(m.type=mEe(l.links.propertyType,l.links.mappedType,l.links.constraintType)),m.type}function mEe(l,m,D){const C=qf(D.type,Fg(m)),A=DD(m),w=tMe(C);return AD([w],l,A),xht(w)||on}function*uMe(l,m,D,C){const A=n0(m);for(const w of A)if(!ldt(w)&&(D||!(w.flags&16777216||Gl(w)&48))){const I=qo(l,w.escapedName);if(!I)yield w;else if(C){const U=Wn(w);if(U.flags&109472){const Z=Wn(I);Z.flags&1||Jh(Z)===Jh(U)||(yield w)}}}}function rMe(l,m,D,C){return Hn(uMe(l,m,D,C))}function Zii(l,m){return!(m.target.combinedFlags&8)&&m.target.minLength>l.target.minLength||!m.target.hasRestElement&&(l.target.hasRestElement||m.target.fixedLength$9(w,A),l)===l&&oMe(l,m)}return!1}function bht(l,m){if(l===m||m.flags&5)return!0;if(m.flags&2097152)return ye(m.types,D=>D===Lc||bht(l,D));if(l.flags&128){const D=l.value;return!!(m.flags&8&&Cht(D,!1)||m.flags&64&&hZ(D,!1)||m.flags&98816&&D===m.intrinsicName||m.flags&268435456&&oMe(df(D),m)||m.flags&134217728&&pEe(l,m))}if(l.flags&134217728){const D=l.texts;return D.length===2&&D[0]===""&&D[1]===""&&ms(l.types[0],m)}return ms(l,m)}function yht(l,m){return l.flags&128?kht([l.value],_t,m):l.flags&134217728?Zt(l.texts,m.texts)?Vt(l.types,eni):kht(l.texts,l.types,m):void 0}function pEe(l,m){const D=yht(l,m);return!!D&&ye(D,(C,A)=>bht(C,m.types[A]))}function eni(l){return l.flags&402653317?l:xF(["",""],[l])}function kht(l,m,D){const C=l.length-1,A=l[0],w=l[C],I=D.texts,U=I.length-1,Z=I[0],ce=I[U];if(C===0&&A.length0){let nu=$e,En=ut;for(;En=zt(nu).indexOf(dn,En),!(En>=0);){if(nu++,nu===l.length)return;En=0}gi(nu,En),ut+=dn.length}else if(ut!kt(yo,Bs)):hn,$n?ti(Kn,Bs=>!kt($n,Bs)):Kn]}function nu(hn,Kn,Yr){const yo=hn.length!!Nn($n));if(!yo||Kn&&yo!==Kn)return;Kn=yo}return Kn}function An(hn,Kn,Yr){let yo=0;if(Yr&1048576){let $n;const Bs=hn.flags&1048576?hn.types:[hn],w0=new Array(Bs.length);let ad=!1;for(const Ys of Kn)if(Nn(Ys))$n=Ys,yo++;else for(let Td=0;Tdw0[kc]?void 0:Td);if(Ys.length){$e(er(Ys),$n);return}}}else for(const $n of Kn)Nn($n)?yo++:$e(hn,$n);if(Yr&2097152?yo===1:yo>0)for(const $n of Kn)Nn($n)&&ut(hn,$n,1)}function _n(hn,Kn,Yr){if(Yr.flags&1048576){let yo=!1;for(const $n of Yr.types)yo=_n(hn,Kn,$n)||yo;return yo}if(Yr.flags&4194304){const yo=Nn(Yr.type);if(yo&&!yo.isFixed&&!vht(hn)){const $n=Dht(hn,Kn,Yr);$n&&ut($n,yo.typeParameter,Gu(hn)&262144?16:8)}return!0}if(Yr.flags&262144){ut(k_(hn,hn.pattern?2:0),Yr,32);const yo=EF(Yr);if(yo&&_n(hn,Kn,yo))return!0;const $n=Vt(n0(hn),Wn),Bs=Vt(kh(hn),w0=>w0!==Tu?w0.type:Ku);return $e(er(Hi($n,Bs)),DD(Kn)),!0}return!1}function hu(hn,Kn){if(hn.flags&16777216)$e(hn.checkType,Kn.checkType),$e(hn.extendsType,Kn.extendsType),$e(SC(hn),SC(Kn)),$e(BC(hn),BC(Kn));else{const Yr=[SC(Kn),BC(Kn)];gi(hn,Yr,Kn.flags,A?64:0)}}function oo(hn,Kn){const Yr=yht(hn,Kn),yo=Kn.types;if(Yr||ye(Kn.texts,$n=>$n.length===0))for(let $n=0;$nel|bm.flags,0);if(!(kc&4)){const el=Bs.value;kc&296&&!Cht(el,!0)&&(kc&=-297),kc&2112&&!hZ(el,!0)&&(kc&=-2113);const bm=nn(Td,(At,ze)=>ze.flags&kc?At.flags&4?At:ze.flags&4?Bs:At.flags&134217728?At:ze.flags&134217728&&pEe(Bs,ze)?Bs:At.flags&268435456?At:ze.flags&268435456&&el===v1t(ze.symbol,el)?Bs:At.flags&128?At:ze.flags&128&&ze.value===el?ze:At.flags&8?At:ze.flags&8?wg(+el):At.flags&32?At:ze.flags&32?wg(+el):At.flags&256?At:ze.flags&256&&ze.value===+el?ze:At.flags&64?At:ze.flags&64?Xii(el):At.flags&2048?At:ze.flags&2048&&I2(ze.value)===el?ze:At.flags&16?At:ze.flags&16?el==="true"?du:el==="false"?Ui:pr:At.flags&512?At:ze.flags&512&&ze.intrinsicName===el?ze:At.flags&32768?At:ze.flags&32768&&ze.intrinsicName===el?ze:At.flags&65536?At:ze.flags&65536&&ze.intrinsicName===el?ze:At:At,Ku);if(!(bm.flags&131072)){$e(bm,w0);continue}}}}$e(Bs,w0)}}function Eo(hn,Kn){var Yr,yo;if(Gu(hn)&4&&Gu(Kn)&4&&(hn.target===Kn.target||A4(hn)&&A4(Kn))){nu(O0(hn),O0(Kn),VPe(hn.target));return}if(Xm(hn)&&Xm(Kn)){$e(cp(hn),cp(Kn)),$e(DD(hn),DD(Kn));const $n=I5(hn),Bs=I5(Kn);$n&&Bs&&$e($n,Bs)}if(Gu(Kn)&32&&!Kn.declaration.nameType){const $n=cp(Kn);if(_n(hn,Kn,$n))return}if(!Yii(hn,Kn)){if(zb(hn)){if(xs(Kn)){const $n=O5(hn),Bs=O5(Kn),w0=O0(Kn),ad=Kn.target.elementFlags;if(xs(hn)&&Tii(hn,Kn)){for(let kc=0;kc0){const Bs=go(Kn,Yr),w0=Bs.length;for(let ad=0;ad1){const m=ti(l,sMe);if(m.length){const D=er(m,2);return Hi(ti(l,C=>!sMe(C)),[D])}}return l}function rni(l){return l.priority&416?Ds(l.contraCandidates):yii(l.contraCandidates)}function ani(l,m){const D=uni(l.candidates),C=nni(l.typeParameter)||W9(l.typeParameter),A=!C&&l.topLevel&&(l.isFixed||!Jii(m,l.typeParameter)),w=C?Lu(D,Jh):A?Lu(D,Ib):D,I=l.priority&416?er(w,2):bii(w);return vm(I)}function lMe(l,m){const D=l.inferences[m];if(!D.inferredType){let C,A;if(l.signature){const I=D.candidates?ani(D,l.signature):void 0,U=D.contraCandidates?rni(D):void 0;if(I||U){const Z=I&&(!U||!(I.flags&131072)&&Oe(D.contraCandidates,ce=>F6(I,ce))&&ye(l.inferences,ce=>ce!==D&&rh(ce.typeParameter)!==D.typeParameter||ye(ce.candidates,Fe=>F6(Fe,I))));C=Z?I:U,A=Z?U:I}else if(l.flags&1)C=ja;else{const Z=_F(D.typeParameter);Z&&(C=_a(Z,Iti(zti(l,m),l.nonFixingMapper)))}}else C=xht(D);D.inferredType=C||cMe(!!(l.flags&2));const w=rh(D.typeParameter);if(w){const I=_a(w,l.nonFixingMapper);(!C||!l.compareTypes(C,xm(I,C)))&&(D.inferredType=A&&l.compareTypes(A,xm(I,A))?A:I)}}return D.inferredType}function cMe(l){return l?me:on}function dMe(l){const m=[];for(let D=0;Dxh(m)||jp(m)||fm(m)))}function gEe(l,m,D,C){switch(l.kind){case 80:if(!g7(l)){const I=Zp(l);return I!==Xt?`${C?$s(C):"-1"}|${Fh(m)}|${Fh(D)}|${Zo(I)}`:void 0}case 110:return`0|${C?$s(C):"-1"}|${Fh(m)}|${Fh(D)}`;case 235:case 217:return gEe(l.expression,m,D,C);case 166:const A=gEe(l.left,m,D,C);return A&&A+"."+l.right.escapedText;case 211:case 212:const w=bF(l);if(w!==void 0){const I=gEe(l.expression,m,D,C);return I&&I+"."+w}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${$s(l)}#${Fh(m)}`}}function C1(l,m){switch(m.kind){case 217:case 235:return C1(l,m.expression);case 226:return ld(m)&&C1(l,m.left)||Xn(m)&&m.operatorToken.kind===28&&C1(l,m.right)}switch(l.kind){case 236:return m.kind===236&&l.keywordToken===m.keywordToken&&l.name.escapedText===m.name.escapedText;case 80:case 81:return g7(l)?m.kind===110:m.kind===80&&Zp(l)===Zp(m)||(ua(m)||js(m))&&sp(Zp(l))===_u(m);case 110:return m.kind===110;case 108:return m.kind===108;case 235:case 217:return C1(l.expression,m);case 211:case 212:const D=bF(l),C=I0(m)?bF(m):void 0;return D!==void 0&&C!==void 0&&C===D&&C1(l.expression,m.expression);case 166:return I0(m)&&l.right.escapedText===bF(m)&&C1(l.left,m.expression);case 226:return Xn(l)&&l.operatorToken.kind===28&&C1(l.right,m)}return!1}function bF(l){if(Iu(l))return l.name.escapedText;if(U0(l))return oni(l);if(js(l)){const m=_0(l);return m?Al(m):void 0}if(io(l))return""+l.parent.parameters.indexOf(l)}function fMe(l){return l.flags&8192?l.escapedName:l.flags&384?Al(""+l.value):void 0}function oni(l){return Pm(l.argumentExpression)?Al(l.argumentExpression.text):ec(l.argumentExpression)?sni(l.argumentExpression):void 0}function sni(l){const m=R0(l,111551,!0);if(!m||!(Mz(m)||m.flags&8))return;const D=m.valueDeclaration;if(D===void 0)return;const C=dt(D);if(C){const A=fMe(C);if(A!==void 0)return A}if(Qy(D)&&B5(D,l)){const A=Dj(D);if(A)return fMe(b1(A));if(J2(D))return V8(D.name)}}function Aht(l,m){for(;I0(l);)if(l=l.expression,C1(l,m))return!0;return!1}function yF(l,m){for(;Y1(l);)if(l=l.expression,C1(l,m))return!0;return!1}function Tz(l,m){if(l&&l.flags&1048576){const D=Adt(l,m);if(D&&Gl(D)&2)return D.links.isDiscriminantProperty===void 0&&(D.links.isDiscriminantProperty=(D.links.checkFlags&192)===192&&!kz(Wn(D))),!!D.links.isDiscriminantProperty}return!1}function Sht(l,m){let D;for(const C of l)if(Tz(m,C.escapedName)){if(D){D.push(C);continue}D=[C]}return D}function lni(l,m){const D=new Map;let C=0;for(const A of l)if(A.flags&61603840){const w=he(A,m);if(w){if(!pW(w))return;let I=!1;FF(w,U=>{const Z=Fh(Jh(U)),ce=D.get(Z);ce?ce!==on&&(D.set(Z,on),I=!0):D.set(Z,A)}),I||C++}}return C>=10&&C*2>=l.length?D:void 0}function jte(l){const m=l.types;if(!(m.length<10||Gu(l)&32768||ui(m,D=>!!(D.flags&59506688))<10)){if(l.keyPropertyName===void 0){const D=L(m,A=>A.flags&59506688?L(n0(A),w=>Tg(Wn(w))?w.escapedName:void 0):void 0),C=D&&lni(m,D);l.keyPropertyName=C?D:"",l.constituentMap=C}return l.keyPropertyName.length?l.keyPropertyName:void 0}}function Vte(l,m){var D;const C=(D=l.constituentMap)==null?void 0:D.get(Fh(Jh(m)));return C!==on?C:void 0}function Bht(l,m){const D=jte(l),C=D&&he(m,D);return C&&Vte(l,C)}function cni(l,m){const D=jte(l),C=D&&Le(m.properties,w=>w.symbol&&w.kind===303&&w.symbol.escapedName===D&&qte(w.initializer)),A=C&&gie(C.initializer);return A&&Vte(l,A)}function wht(l,m){return C1(l,m)||Aht(l,m)}function Tht(l,m){if(l.arguments){for(const D of l.arguments)if(wht(m,D)||yF(D,m))return!0}return!!(l.expression.kind===211&&wht(m,l.expression.expression))}function mMe(l){return(!l.id||l.id<0)&&(l.id=RAe,RAe++),l.id}function dni(l,m){if(!(l.flags&1048576))return ms(l,m);for(const D of l.types)if(ms(D,m))return!0;return!1}function hni(l,m){if(l===m)return l;if(m.flags&131072)return m;const D=`A${Fh(l)},${Fh(m)}`;return Yk(D)??fb(D,fni(l,m))}function fni(l,m){const D=Ic(l,A=>dni(m,A)),C=m.flags&512&&Pb(m)?hl(D,Z9):D;return ms(m,C)?C:l}function pMe(l){const m=Ag(l);return!!(m.callSignatures.length||m.constructSignatures.length||m.members.get("bind")&&F6(l,di))}function Lz(l,m){return gMe(l,m)&m}function fp(l,m){return Lz(l,m)!==0}function gMe(l,m){l.flags&467927040&&(l=Wh(l)||on);const D=l.flags;if(D&268435460)return fe?16317953:16776705;if(D&134217856){const C=D&128&&l.value==="";return fe?C?12123649:7929345:C?12582401:16776705}if(D&40)return fe?16317698:16776450;if(D&256){const C=l.value===0;return fe?C?12123394:7929090:C?12582146:16776450}if(D&64)return fe?16317188:16775940;if(D&2048){const C=hht(l);return fe?C?12122884:7928580:C?12581636:16775940}return D&16?fe?16316168:16774920:D&528?fe?l===Ui||l===Sn?12121864:7927560:l===Ui||l===Sn?12580616:16774920:D&524288?m&(fe?83427327:83886079)?Gu(l)&16&&bD(l)?fe?83427327:83886079:pMe(l)?fe?7880640:16728e3:fe?7888800:16736160:0:D&16384?9830144:D&32768?26607360:D&65536?42917664:D&12288?fe?7925520:16772880:D&67108864?fe?7888800:16736160:D&131072?0:D&1048576?nn(l.types,(C,A)=>C|gMe(A,m),0):D&2097152?mni(l,m):83886079}function mni(l,m){const D=jl(l,402784252);let C=0,A=134217727;for(const w of l.types)if(!(D&&w.flags&524288)){const I=gMe(w,m);C|=I,A&=I}return C&8256|A&134209471}function mp(l,m){return Ic(l,D=>fp(D,m))}function kF(l,m){const D=Lht(mp(fe&&l.flags&2?cl:l,m));if(fe)switch(m){case 524288:return hl(D,C=>fp(C,65536)?Ds([C,fp(C,131072)&&!jl(D,65536)?er([Ko,it]):Ko]):C);case 1048576:return hl(D,C=>fp(C,131072)?Ds([C,fp(C,65536)&&!jl(D,32768)?er([Ko,te]):Ko]):C);case 2097152:case 4194304:return hl(D,C=>fp(C,262144)?Pii(C):C)}return D}function Lht(l){return l===cl?on:l}function EMe(l,m){return m?er([Hr(l),b1(m)]):l}function Nht(l,m){var D;const C=j5(m);if(!Y4(C))return Ot;const A=Q4(C);return he(l,A)||vW((D=G9(l,A))==null?void 0:D.type)||Ot}function Pht(l,m){return e4(l,Bz)&&kii(l,m)||vW(G5(65,l,te,void 0))||Ot}function vW(l){return l&&(ae.noUncheckedIndexedAccess?er([l,de]):l)}function Mht(l){return V1(G5(65,l,te,void 0)||Ot)}function pni(l){return l.parent.kind===209&&_Me(l.parent)||l.parent.kind===303&&_Me(l.parent.parent)?EMe(Hte(l),l.right):b1(l.right)}function _Me(l){return l.parent.kind===226&&l.parent.left===l||l.parent.kind===250&&l.parent.initializer===l}function gni(l,m){return Pht(Hte(l),l.elements.indexOf(m))}function Eni(l){return Mht(Hte(l.parent))}function zht(l){return Nht(Hte(l.parent),l.name)}function _ni(l){return EMe(zht(l),l.objectAssignmentInitializer)}function Hte(l){const{parent:m}=l;switch(m.kind){case 249:return ct;case 250:return Cie(m)||Ot;case 226:return pni(m);case 220:return te;case 209:return gni(m,l);case 230:return Eni(m);case 303:return zht(m);case 304:return _ni(m)}return Ot}function Dni(l){const m=l.parent,D=Rht(m.parent),C=m.kind===206?Nht(D,l.propertyName||l.name):l.dotDotDotToken?Mht(D):Pht(D,m.elements.indexOf(l));return EMe(C,l.initializer)}function Iht(l){return ar(l).resolvedType||b1(l)}function xni(l){return l.initializer?Iht(l.initializer):l.parent.parent.kind===249?ct:l.parent.parent.kind===250&&Cie(l.parent.parent)||Ot}function Rht(l){return l.kind===260?xni(l):Dni(l)}function vni(l){return l.kind===260&&l.initializer&&b3(l.initializer)||l.kind!==208&&l.parent.kind===226&&b3(l.parent.right)}function Rb(l){switch(l.kind){case 217:return Rb(l.expression);case 226:switch(l.operatorToken.kind){case 64:case 76:case 77:case 78:return Rb(l.left);case 28:return Rb(l.right)}}return l}function Oht(l){const{parent:m}=l;return m.kind===217||m.kind===226&&m.operatorToken.kind===64&&m.left===l||m.kind===226&&m.operatorToken.kind===28&&m.right===l?Oht(m):l}function Cni(l){return l.kind===296?Jh(b1(l.expression)):Ku}function EEe(l){const m=ar(l);if(!m.switchTypes){m.switchTypes=[];for(const D of l.caseBlock.clauses)m.switchTypes.push(Cni(D))}return m.switchTypes}function jht(l){if(Oe(l.caseBlock.clauses,D=>D.kind===296&&!t0(D.expression)))return;const m=[];for(const D of l.caseBlock.clauses){const C=D.kind===296?D.expression.text:void 0;m.push(C&&!kt(m,C)?C:void 0)}return m}function bni(l,m){return l.flags&1048576?!L(l.types,D=>!kt(m,D)):kt(m,l)}function Nz(l,m){return!!(l===m||l.flags&131072||m.flags&1048576&&yni(l,m))}function yni(l,m){if(l.flags&1048576){for(const D of l.types)if(!C6(m.types,D))return!1;return!0}return l.flags&1056&&bge(l)===m?!0:C6(m.types,l)}function FF(l,m){return l.flags&1048576?L(l.types,m):m(l)}function yE(l,m){return l.flags&1048576?Oe(l.types,m):m(l)}function e4(l,m){return l.flags&1048576?ye(l.types,m):m(l)}function kni(l,m){return l.flags&3145728?ye(l.types,m):m(l)}function Ic(l,m){if(l.flags&1048576){const D=l.types,C=ti(D,m);if(C===D)return l;const A=l.origin;let w;if(A&&A.flags&1048576){const I=A.types,U=ti(I,Z=>!!(Z.flags&1048576)||m(Z));if(I.length-U.length===D.length-C.length){if(U.length===1)return U[0];w=EPe(1048576,U)}}return DPe(C,l.objectFlags&16809984,void 0,void 0,w)}return l.flags&131072||m(l)?l:Ku}function _Ee(l,m){return Ic(l,D=>D!==m)}function Fni(l){return l.flags&1048576?l.types.length:1}function hl(l,m,D){if(l.flags&131072)return l;if(!(l.flags&1048576))return m(l);const C=l.origin,A=C&&C.flags&1048576?C.types:l.types;let w,I=!1;for(const U of A){const Z=U.flags&1048576?hl(U,m,D):m(U);I||(I=U!==Z),Z&&(w?w.push(Z):w=[Z])}return I?w&&er(w,D?0:1):l}function Vht(l,m,D,C){return l.flags&1048576&&D?er(Vt(l.types,m),1,D,C):hl(l,m)}function Pz(l,m){return Ic(l,D=>(D.flags&m)!==0)}function Hht(l,m){return jl(l,134217804)&&jl(m,402655616)?hl(l,D=>D.flags&4?Pz(m,402653316):U9(D)&&!jl(m,402653188)?Pz(m,128):D.flags&8?Pz(m,264):D.flags&64?Pz(m,2112):D):l}function cT(l){return l.flags===0}function AF(l){return l.flags===0?l.type:l}function dT(l,m){return m?{flags:0,type:l.flags&131072?ja:l}:l}function Ani(l){const m=D4(256);return m.elementType=l,m}function DMe(l){return Et[l.id]||(Et[l.id]=Ani(l))}function Kht(l,m){const D=_W(kD(gie(m)));return Nz(D,l.elementType)?l:DMe(er([l.elementType,D]))}function Sni(l){return l.flags&131072?Nc:V1(l.flags&1048576?er(l.types,2):l)}function Bni(l){return l.finalArrayType||(l.finalArrayType=Sni(l.elementType))}function Kte(l){return Gu(l)&256?Bni(l):l}function wni(l){return Gu(l)&256?l.elementType:Ku}function Tni(l){let m=!1;for(const D of l)if(!(D.flags&131072)){if(!(Gu(D)&256))return!1;m=!0}return m}function Wht(l){const m=Oht(l),D=m.parent,C=Iu(D)&&(D.name.escapedText==="length"||D.parent.kind===213&&at(D.name)&&$0e(D.name)),A=D.kind===212&&D.expression===m&&D.parent.kind===226&&D.parent.operatorToken.kind===64&&D.parent.left===D&&!Q_(D.parent)&&u1(b1(D.argumentExpression),296);return C||A}function Lni(l){return(ua(l)||ko(l)||Mm(l)||io(l))&&!!(f1(l)||Qn(l)&&Nx(l)&&l.initializer&&R2(l.initializer)&&U4(l.initializer))}function DEe(l,m){if(l=yc(l),l.flags&8752)return Wn(l);if(l.flags&7){if(Gl(l)&262144){const C=l.links.syntheticOrigin;if(C&&DEe(C))return Wn(l)}const D=l.valueDeclaration;if(D){if(Lni(D))return Wn(l);if(ua(D)&&D.parent.parent.kind===250){const C=D.parent.parent,A=Wte(C.expression,void 0);if(A){const w=C.awaitModifier?15:13;return G5(w,A,te,void 0)}}m&&Es(m,Su(D,F._0_needs_an_explicit_type_annotation,Fr(l)))}}}function Wte(l,m){if(!(l.flags&67108864))switch(l.kind){case 80:const D=sp(Zp(l));return DEe(D,m);case 110:return Yni(l);case 108:return kMe(l);case 211:{const C=Wte(l.expression,m);if(C){const A=l.name;let w;if(ea(A)){if(!C.symbol)return;w=qo(C,zj(C.symbol,A.escapedText))}else w=qo(C,A.escapedText);return w&&DEe(w,m)}return}case 217:return Wte(l.expression,m)}}function Gte(l){const m=ar(l);let D=m.effectsSignature;if(D===void 0){let C;if(Xn(l)){const I=hT(l.right);C=gze(I)}else l.parent.kind===244?C=Wte(l.expression,void 0):l.expression.kind!==108&&(Y1(l)?C=kE(gW(ya(l.expression),l.expression),l.expression):C=hT(l.expression));const A=go(C&&Gh(C)||on,0),w=A.length===1&&!A[0].typeParameters?A[0]:Oe(A,Ght)?mT(l):void 0;D=m.effectsSignature=w&&Ght(w)?w:fn}return D===fn?void 0:D}function Ght(l){return!!(y4(l)||l.declaration&&(uT(l.declaration)||on).flags&131072)}function Nni(l,m){if(l.kind===1||l.kind===3)return m.arguments[l.parameterIndex];const D=l0(m.expression);return I0(D)?l0(D.expression):void 0}function Pni(l){const m=Tn(l,Zse),D=zn(l),C=QE(D,m.statements.pos);Vs.add(Rd(D,C.start,C.length,F.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Jte(l){const m=xEe(l,!1);return Rn=l,tn=m,m}function $te(l){const m=l0(l,!0);return m.kind===97||m.kind===226&&(m.operatorToken.kind===56&&($te(m.left)||$te(m.right))||m.operatorToken.kind===57&&$te(m.left)&&$te(m.right))}function xEe(l,m){for(;;){if(l===Rn)return tn;const D=l.flags;if(D&4096){if(!m){const C=mMe(l),A=b9[C];return A!==void 0?A:b9[C]=xEe(l,!0)}m=!1}if(D&368)l=l.antecedent;else if(D&512){const C=Gte(l.node);if(C){const A=y4(C);if(A&&A.kind===3&&!A.type){const w=l.node.arguments[A.parameterIndex];if(w&&$te(w))return!1}if(Zs(C).flags&131072)return!1}l=l.antecedent}else{if(D&4)return Oe(l.antecedents,C=>xEe(C,!1));if(D&8){const C=l.antecedents;if(C===void 0||C.length===0)return!1;l=C[0]}else if(D&128){if(l.clauseStart===l.clauseEnd&&vmt(l.switchStatement))return!1;l=l.antecedent}else if(D&1024){Rn=void 0;const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=xEe(l.antecedent,!1);return C.antecedents=A,w}else return!(D&1)}}}function vEe(l,m){for(;;){const D=l.flags;if(D&4096){if(!m){const C=mMe(l),A=qk[C];return A!==void 0?A:qk[C]=vEe(l,!0)}m=!1}if(D&496)l=l.antecedent;else if(D&512){if(l.node.expression.kind===108)return!0;l=l.antecedent}else{if(D&4)return ye(l.antecedents,C=>vEe(C,!1));if(D&8)l=l.antecedents[0];else if(D&1024){const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=vEe(l.antecedent,!1);return C.antecedents=A,w}else return!!(D&1)}}}function Jht(l){switch(l.kind){case 110:return!0;case 80:if(!g7(l)){const m=Zp(l);return Mz(m)||Mle(m)&&!CEe(m)}break;case 211:case 212:return Jht(l.expression)&&Ng(ar(l).resolvedSymbol||Xt)}return!1}function w6(l,m,D=m,C,A=(w=>(w=ur(l,Bj))==null?void 0:w.flowNode)()){let w,I=!1,U=0;if(Ti)return Ot;if(!A)return m;Xi++;const Z=oi,ce=AF($e(A));oi=Z;const Fe=Gu(ce)&256&&Wht(l)?Nc:Kte(ce);if(Fe===Ir||l.parent&&l.parent.kind===235&&!(Fe.flags&131072)&&mp(Fe,2097152).flags&131072)return m;return Fe===le?on:Fe;function Te(){return I?w:(I=!0,w=gEe(l,m,D,C))}function $e(Lt){var li;if(U===2e3)return(li=Gn)==null||li.instant(Gn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Lt.id}),Ti=!0,Pni(l),Ot;U++;let Gi;for(;;){const yi=Lt.flags;if(yi&4096){for(let mn=Z;mn=0&&Gi.parameterIndex!(mn.flags&163840)):li.kind===221&&yF(li.expression,l)&&(yi=w0(yi,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd,mn=>!(mn.flags&131072||mn.flags&128&&mn.value==="undefined"))));const Ji=_n(li,yi);Ji&&(yi=Eo(yi,Ji,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd))}return dT(yi,cT(Gi))}function Ii(Lt){const li=[];let Gi=!1,yi=!1,Ji;for(const mn of Lt.antecedents){if(!Ji&&mn.flags&128&&mn.clauseStart===mn.clauseEnd){Ji=mn;continue}const Kr=$e(mn),ku=AF(Kr);if(ku===m&&m===D)return ku;xa(li,ku),Nz(ku,D)||(Gi=!0),cT(Kr)&&(yi=!0)}if(Ji){const mn=$e(Ji),Kr=AF(mn);if(!(Kr.flags&131072)&&!kt(li,Kr)&&!vmt(Ji.switchStatement)){if(Kr===m&&m===D)return Kr;li.push(Kr),Nz(Kr,D)||(Gi=!0),cT(mn)&&(yi=!0)}}return dT(vn(li,Gi?2:1),yi)}function Nn(Lt){const li=mMe(Lt),Gi=x9[li]||(x9[li]=new Map),yi=Te();if(!yi)return m;const Ji=Gi.get(yi);if(Ji)return Ji;for(let pn=Xe;pn{const pn=Re(_o,yi)||on;return!(pn.flags&131072)&&!(ku.flags&131072)&&Nte(ku,pn)})}function oo(Lt,li,Gi,yi,Ji){if((Gi===37||Gi===38)&&Lt.flags&1048576){const mn=jte(Lt);if(mn&&mn===bF(li)){const Kr=Vte(Lt,b1(yi));if(Kr)return Gi===(Ji?37:38)?Kr:Tg(he(Kr,mn)||on)?_Ee(Lt,Kr):Lt}}return hu(Lt,li,mn=>yo(mn,Gi,yi,Ji))}function Eo(Lt,li,Gi,yi,Ji){if(yiVte(Lt,ku)||on));if(Kr!==on)return Kr}return hu(Lt,li,mn=>ad(mn,Gi,yi,Ji))}function fo(Lt,li,Gi){if(C1(l,li))return kF(Lt,Gi?4194304:8388608);fe&&Gi&&yF(li,l)&&(Lt=kF(Lt,2097152));const yi=_n(li,Lt);return yi?hu(Lt,yi,Ji=>mp(Ji,Gi?4194304:8388608)):Lt}function ka(Lt,li,Gi){const yi=qo(Lt,li);return yi?!!(yi.flags&16777216||Gl(yi)&48)||Gi:!!G9(Lt,li)||!Gi}function ah(Lt,li,Gi){const yi=Q4(li);if(yE(Lt,mn=>ka(mn,yi,!0)))return Ic(Lt,mn=>ka(mn,yi,Gi));if(Gi){const mn=Oei();if(mn)return Ds([Lt,aT(mn,[li,on])])}return Lt}function t4(Lt,li,Gi,yi,Ji){return Ji=Ji!==(Gi.kind===112)!=(yi!==38&&yi!==36),Ou(Lt,li,Ji)}function hn(Lt,li,Gi){switch(li.operatorToken.kind){case 64:case 76:case 77:case 78:return fo(Ou(Lt,li.right,Gi),li.left,Gi);case 35:case 36:case 37:case 38:const yi=li.operatorToken.kind,Ji=Rb(li.left),mn=Rb(li.right);if(Ji.kind===221&&t0(mn))return $n(Lt,Ji,yi,mn,Gi);if(mn.kind===221&&t0(Ji))return $n(Lt,mn,yi,Ji,Gi);if(C1(l,Ji))return yo(Lt,yi,mn,Gi);if(C1(l,mn))return yo(Lt,yi,Ji,Gi);fe&&(yF(Ji,l)?Lt=Yr(Lt,yi,mn,Gi):yF(mn,l)&&(Lt=Yr(Lt,yi,Ji,Gi)));const Kr=_n(Ji,Lt);if(Kr)return oo(Lt,Kr,yi,mn,Gi);const ku=_n(mn,Lt);if(ku)return oo(Lt,ku,yi,Ji,Gi);if(bm(Ji))return At(Lt,yi,mn,Gi);if(bm(mn))return At(Lt,yi,Ji,Gi);if(HN(mn)&&!I0(Ji))return t4(Lt,Ji,mn,yi,Gi);if(HN(Ji)&&!I0(mn))return t4(Lt,mn,Ji,yi,Gi);break;case 104:return ze(Lt,li,Gi);case 103:if(ea(li.left))return Kn(Lt,li,Gi);const _o=Rb(li.right);if(EW(Lt)&&I0(l)&&C1(l.expression,_o)){const pn=b1(li.left);if(Y4(pn)&&bF(l)===Q4(pn))return mp(Lt,Gi?524288:65536)}if(C1(l,_o)){const pn=b1(li.left);if(Y4(pn))return ah(Lt,pn,Gi)}break;case 28:return Ou(Lt,li.right,Gi);case 56:return Gi?Ou(Ou(Lt,li.left,!0),li.right,!0):er([Ou(Lt,li.left,!1),Ou(Lt,li.right,!1)]);case 57:return Gi?er([Ou(Lt,li.left,!0),Ou(Lt,li.right,!0)]):Ou(Ou(Lt,li.left,!1),li.right,!1)}return Lt}function Kn(Lt,li,Gi){const yi=Rb(li.right);if(!C1(l,yi))return Lt;H.assertNode(li.left,ea);const Ji=NEe(li.left);if(Ji===void 0)return Lt;const mn=Ji.parent,Kr=Kc(H.checkDefined(Ji.valueDeclaration,"should always have a declaration"))?Wn(mn):X0(mn);return Fu(Lt,Kr,Gi,!0)}function Yr(Lt,li,Gi,yi){const Ji=li===35||li===37,mn=li===35||li===36?98304:32768,Kr=b1(Gi);return Ji!==yi&&e4(Kr,_o=>!!(_o.flags&mn))||Ji===yi&&e4(Kr,_o=>!(_o.flags&(3|mn)))?kF(Lt,2097152):Lt}function yo(Lt,li,Gi,yi){if(Lt.flags&1)return Lt;(li===36||li===38)&&(yi=!yi);const Ji=b1(Gi),mn=li===35||li===36;if(Ji.flags&98304){if(!fe)return Lt;const Kr=mn?yi?262144:2097152:Ji.flags&65536?yi?131072:1048576:yi?65536:524288;return kF(Lt,Kr)}if(yi){if(!mn&&(Lt.flags&2||yE(Lt,yD))){if(Ji.flags&469893116||yD(Ji))return Ji;if(Ji.flags&524288)return as}const Kr=Ic(Lt,ku=>Nte(ku,Ji)||mn&&Mii(ku,Ji));return Hht(Kr,Ji)}return Tg(Ji)?Ic(Lt,Kr=>!(sht(Kr)&&Nte(Kr,Ji))):Lt}function $n(Lt,li,Gi,yi,Ji){(Gi===36||Gi===38)&&(Ji=!Ji);const mn=Rb(li.expression);if(!C1(l,mn)){fe&&yF(mn,l)&&Ji===(yi.text!=="undefined")&&(Lt=kF(Lt,2097152));const Kr=_n(mn,Lt);return Kr?hu(Lt,Kr,ku=>Bs(ku,yi,Ji)):Lt}return Bs(Lt,yi,Ji)}function Bs(Lt,li,Gi){return Gi?Ys(Lt,li.text):kF(Lt,Vde.get(li.text)||32768)}function w0(Lt,li,Gi,yi,Ji){return Gi!==yi&&ye(EEe(li).slice(Gi,yi),Ji)?mp(Lt,2097152):Lt}function ad(Lt,li,Gi,yi){const Ji=EEe(li);if(!Ji.length)return Lt;const mn=Ji.slice(Gi,yi),Kr=Gi===yi||kt(mn,Ku);if(Lt.flags&2&&!Kr){let or;for(let qr=0;qrNte(ku,or)),ku);if(!Kr)return _o;const pn=Ic(Lt,or=>!(sht(or)&&kt(Ji,Jh(Aii(or)))));return _o.flags&131072?pn:er([_o,pn])}function Ys(Lt,li){switch(li){case"string":return Td(Lt,ct,1);case"number":return Td(Lt,Qt,2);case"bigint":return Td(Lt,Li,4);case"boolean":return Td(Lt,pr,8);case"symbol":return Td(Lt,Xu,16);case"object":return Lt.flags&1?Lt:er([Td(Lt,as,32),Td(Lt,it,131072)]);case"function":return Lt.flags&1?Lt:Td(Lt,di,64);case"undefined":return Td(Lt,te,65536)}return Td(Lt,as,128)}function Td(Lt,li,Gi){return hl(Lt,yi=>bE(yi,li,p4)?fp(yi,Gi)?yi:Ku:F6(li,yi)?li:fp(yi,Gi)?Ds([yi,li]):Ku)}function kc(Lt,li,Gi,yi){const Ji=jht(li);if(!Ji)return Lt;const mn=Ue(li.caseBlock.clauses,_o=>_o.kind===297);if(Gi===yi||mn>=Gi&&mnLz(pn,_o)===_o)}const ku=Ji.slice(Gi,yi);return er(Vt(ku,_o=>_o?Ys(Lt,_o):Ku))}function el(Lt,li,Gi,yi){const Ji=Ue(li.caseBlock.clauses,ku=>ku.kind===297),mn=Gi===yi||Ji>=Gi&&Jiku.kind===296?Ou(Lt,ku.expression,!0):Ku))}function bm(Lt){return(Iu(Lt)&&fu(Lt.name)==="constructor"||U0(Lt)&&t0(Lt.argumentExpression)&&Lt.argumentExpression.text==="constructor")&&C1(l,Lt.expression)}function At(Lt,li,Gi,yi){if(yi?li!==35&&li!==37:li!==36&&li!==38)return Lt;const Ji=b1(Gi);if(!$ze(Ji)&&!Or(Ji))return Lt;const mn=qo(Ji,"prototype");if(!mn)return Lt;const Kr=Wn(mn),ku=nt(Kr)?void 0:Kr;if(!ku||ku===He||ku===di)return Lt;if(nt(Lt))return ku;return Ic(Lt,pn=>_o(pn,ku));function _o(pn,or){return pn.flags&524288&&Gu(pn)&1||or.flags&524288&&Gu(or)&1?pn.symbol===or.symbol:F6(pn,or)}}function ze(Lt,li,Gi){const yi=Rb(li.left);if(!C1(l,yi))return Gi&&fe&&yF(yi,l)?kF(Lt,2097152):Lt;const Ji=li.right,mn=b1(Ji);if(!TC(mn,He))return Lt;const Kr=Gte(li),ku=Kr&&y4(Kr);if(ku&&ku.kind===1&&ku.parameterIndex===0)return Fu(Lt,ku.type,Gi,!0);if(!TC(mn,di))return Lt;const _o=hl(mn,Yn);return nt(Lt)&&(_o===He||_o===di)||!Gi&&!(_o.flags&524288&&!yD(_o))?Lt:Fu(Lt,_o,Gi,!0)}function Yn(Lt){const li=he(Lt,"prototype");if(li&&!nt(li))return li;const Gi=go(Lt,1);return Gi.length?er(Vt(Gi,yi=>Zs(aW(yi)))):Ko}function Fu(Lt,li,Gi,yi){const Ji=Lt.flags&1048576?`N${Fh(Lt)},${Fh(li)},${(Gi?1:0)|(yi?2:0)}`:void 0;return Yk(Ji)??fb(Ji,Er(Lt,li,Gi,yi))}function Er(Lt,li,Gi,yi){if(!Gi){if(yi)return Ic(Lt,_o=>!TC(_o,li));const ku=Fu(Lt,li,!0,!1);return Ic(Lt,_o=>!Nz(_o,ku))}if(Lt.flags&3)return li;const Ji=yi?TC:F6,mn=Lt.flags&1048576?jte(Lt):void 0,Kr=hl(li,ku=>{const _o=mn&&he(ku,mn),pn=_o&&Vte(Lt,_o),or=hl(pn||Lt,yi?qr=>TC(qr,ku)?qr:TC(ku,qr)?ku:Ku:qr=>K1t(qr,ku)?qr:K1t(ku,qr)?ku:F6(qr,ku)?qr:F6(ku,qr)?ku:Ku);return or.flags&131072?hl(Lt,qr=>jl(qr,465829888)&&Ji(ku,Wh(qr)||on)?Ds([qr,ku]):Ku):or});return Kr.flags&131072?F6(li,Lt)?li:ms(Lt,li)?Lt:ms(li,Lt)?li:Ds([Lt,li]):Kr}function fr(Lt,li,Gi){if(Tht(li,l)){const yi=Gi||!$y(li)?Gte(li):void 0,Ji=yi&&y4(yi);if(Ji&&(Ji.kind===0||Ji.kind===1))return Mr(Lt,Ji,li,Gi)}if(EW(Lt)&&I0(l)&&Iu(li.expression)){const yi=li.expression;if(C1(l.expression,Rb(yi.expression))&&at(yi.name)&&yi.name.escapedText==="hasOwnProperty"&&li.arguments.length===1){const Ji=li.arguments[0];if(t0(Ji)&&bF(l)===Al(Ji.text))return mp(Lt,Gi?524288:65536)}}return Lt}function Mr(Lt,li,Gi,yi){if(li.type&&!(nt(Lt)&&(li.type===He||li.type===di))){const Ji=Nni(li,Gi);if(Ji){if(C1(l,Ji))return Fu(Lt,li.type,yi,!1);fe&&yF(Ji,l)&&(yi&&!fp(li.type,65536)||!yi&&e4(li.type,tie))&&(Lt=kF(Lt,2097152));const mn=_n(Ji,Lt);if(mn)return hu(Lt,mn,Kr=>Fu(Kr,li.type,yi,!1))}}return Lt}function Ou(Lt,li,Gi){if(MU(li)||Xn(li.parent)&&(li.parent.operatorToken.kind===61||li.parent.operatorToken.kind===78)&&li.parent.left===li)return xu(Lt,li,Gi);switch(li.kind){case 80:if(!C1(l,li)&&J<5){const yi=Zp(li);if(Mz(yi)){const Ji=yi.valueDeclaration;if(Ji&&ua(Ji)&&!Ji.type&&Ji.initializer&&Jht(l)){J++;const mn=Ou(Lt,Ji.initializer,Gi);return J--,mn}}}case 110:case 108:case 211:case 212:return fo(Lt,li,Gi);case 213:return fr(Lt,li,Gi);case 217:case 235:return Ou(Lt,li.expression,Gi);case 226:return hn(Lt,li,Gi);case 224:if(li.operator===54)return Ou(Lt,li.operand,!Gi);break}return Lt}function xu(Lt,li,Gi){if(C1(l,li))return kF(Lt,Gi?2097152:262144);const yi=_n(li,Lt);return yi?hu(Lt,yi,Ji=>mp(Ji,Gi?2097152:262144)):Lt}}function Mni(l,m){if(l=sp(l),(m.kind===80||m.kind===81)&&(gP(m)&&(m=m.parent),Z_(m)&&(!Q_(m)||D7(m)))){const D=oEe(D7(m)&&m.kind===211?TEe(m,void 0,!0):b1(m));if(sp(ar(m).resolvedSymbol)===l)return D}return X3(m)&&e5(m.parent)&&i0(m.parent)?Dge(m.parent.symbol):cle(m)&&D7(m.parent)?mF(l):E6(l)}function CW(l){return Tn(l.parent,m=>Co(m)&&!nk(m)||m.kind===268||m.kind===312||m.kind===172)}function CEe(l){if(!l.valueDeclaration)return!1;const m=XE(l.valueDeclaration).parent,D=ar(m);return D.flags&131072||(D.flags|=131072,zni(m)||$ht(m)),l.isAssigned||!1}function zni(l){return!!Tn(l.parent,m=>(Co(m)||G2(m))&&!!(ar(m).flags&131072))}function $ht(l){if(l.kind===80){if(Q_(l)){const m=Zp(l);Mle(m)&&(m.isAssigned=!0)}}else ao(l,$ht)}function Mz(l){return l.flags&3&&(OMe(l)&6)!==0}function Ini(l){const m=ar(l);if(m.parameterInitializerContainsUndefined===void 0){if(!D_(l,9))return Xw(l.symbol),!0;const D=!!fp(wW(l,0),16777216);if(!CE())return Xw(l.symbol),!0;m.parameterInitializerContainsUndefined=D}return m.parameterInitializerContainsUndefined}function Rni(l,m){return fe&&m.kind===169&&m.initializer&&fp(l,16777216)&&!Ini(m)?mp(l,524288):l}function Oni(l,m){const D=m.parent;return D.kind===211||D.kind===166||D.kind===213&&D.expression===m||D.kind===212&&D.expression===m&&!(yE(l,qht)&&AC(b1(D.argumentExpression)))}function Uht(l){return l.flags&2097152?Oe(l.types,Uht):!!(l.flags&465829888&&xD(l).flags&1146880)}function qht(l){return l.flags&2097152?Oe(l.types,qht):!!(l.flags&465829888&&!jl(xD(l),98304))}function jni(l,m){const D=(at(l)||Iu(l)||U0(l))&&!((aE(l.parent)||bk(l.parent))&&l.parent.tagName===l)&&(m&&m&32?hf(l,8):hf(l,void 0));return D&&!kz(D)}function xMe(l,m,D){return!(D&&D&2)&&yE(l,Uht)&&(Oni(l,m)||jni(m,D))?hl(l,xD):l}function Zht(l){return!!Tn(l,m=>{const D=m.parent;return D===void 0?"quit":tc(D)?D.expression===m&&ec(m):eh(D)?D.name===m||D.propertyName===m:!1})}function bEe(l,m){if(Ut&&hC(l,111551)&&!ck(m)){const D=md(l);O1(l,!0)&1160127&&(mg(ae)||fk(ae)&&Zht(m)||!OW(sp(D))?T5(l):n1(l))}}function Vni(l,m){var D;const C=Wn(l),A=l.valueDeclaration;if(A){if(js(A)&&!A.initializer&&!A.dotDotDotToken&&A.parent.elements.length>=2){const w=A.parent.parent;if(w.kind===260&&Gb(A)&6||w.kind===169){const I=ar(w);if(!(I.flags&4194304)){I.flags|=4194304;const U=bi(w,0),Z=U&&hl(U,xD);if(I.flags&=-4194305,Z&&Z.flags&1048576&&!(w.kind===169&&CEe(l))){const ce=A.parent,Fe=w6(ce,Z,Z,void 0,m.flowNode);return Fe.flags&131072?Ku:v4(A,Fe,!0)}}}}if(io(A)&&!A.type&&!A.initializer&&!A.dotDotDotToken){const w=A.parent;if(w.parameters.length>=2&&Uge(w)){const I=yW(w);if(I&&I.parameters.length===1&&th(I)){const U=Dz(_a(Wn(I.parameters[0]),(D=jb(w))==null?void 0:D.nonFixingMapper));if(U.flags&1048576&&e4(U,xs)&&!CEe(l)){const Z=w6(w,U,U,void 0,m.flowNode),ce=w.parameters.indexOf(A)-(T2(w)?1:0);return qf(Z,wg(ce))}}}}}return C}function Hni(l,m){if(g7(l))return Ute(l);const D=Zp(l);if(D===Xt)return Ot;if(D===It){if(Nft(l))return pt(l,F.arguments_cannot_be_referenced_in_property_initializers),Ot;const Ii=Nm(l);return Ce<2&&(Ii.kind===219?pt(l,F.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Yu(Ii,1024)&&pt(l,F.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),ar(Ii).flags|=512,Wn(D)}Wni(l)&&bEe(D,l);const C=sp(D),A=Vze(C,l);S5(A)&&vPe(l,A)&&A.declarations&&m3(l,A.declarations,l.escapedText);let w=C.valueDeclaration;if(w&&C.flags&32&&mr(w)&&w.name!==l){let Ii=tf(l,!1,!1);for(;Ii.kind!==312&&Ii.parent!==w;)Ii=tf(Ii,!1,!1);Ii.kind!==312&&(ar(w).flags|=262144,ar(Ii).flags|=262144,ar(l).flags|=536870912)}$ni(l,D);let I=Vni(C,l);const U=f7(l);if(U){if(!(C.flags&3)&&!(Qn(l)&&C.flags&512)){const Ii=C.flags&384?F.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?F.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?F.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?F.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?F.Cannot_assign_to_0_because_it_is_an_import:F.Cannot_assign_to_0_because_it_is_not_a_variable;return pt(l,Ii,Fr(D)),Ot}if(Ng(C))return C.flags&3?pt(l,F.Cannot_assign_to_0_because_it_is_a_constant,Fr(D)):pt(l,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Fr(D)),Ot}const Z=C.flags&2097152;if(C.flags&3){if(U===1)return O0e(l)?kD(I):I}else if(Z)w=rp(D);else return I;if(!w)return I;I=xMe(I,l,m);const ce=XE(w).kind===169,Fe=CW(w);let Te=CW(l);const $e=Te!==Fe,ut=l.parent&&l.parent.parent&&d5(l.parent)&&_Me(l.parent.parent),zt=D.flags&134217728,gi=I===ni||I===Nc,Wi=gi&&l.parent.kind===235;for(;Te!==Fe&&(Te.kind===218||Te.kind===219||lq(Te))&&(Mz(C)&&I!==Nc||ce&&!CEe(C));)Te=CW(Te);const dn=ce||Z||$e||ut||zt||Kni(l,w)||I!==ni&&I!==Nc&&(!fe||(I.flags&16387)!==0||ck(l)||hMe(l)||l.parent.kind===281)||l.parent.kind===235||w.kind===260&&w.exclamationToken||w.flags&33554432,nu=Wi?te:dn?ce?Rni(I,w):I:gi?te:S6(I),En=Wi?FD(w6(l,I,nu,Te)):w6(l,I,nu,Te);if(!Wht(l)&&(I===ni||I===Nc)){if(En===ni||En===Nc)return Ae&&(pt(Za(w),F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Fr(D),gn(En)),pt(l,F.Variable_0_implicitly_has_an_1_type,Fr(D),gn(En))),RW(En)}else if(!dn&&!Fz(I)&&Fz(En))return pt(l,F.Variable_0_is_used_before_being_assigned,Fr(D)),I;return U?kD(En):En}function Kni(l,m){if(js(m)){const D=Tn(l,js);return D&&XE(D)===XE(m)}}function Wni(l){var m;const D=l.parent;if(D){if(Iu(D)&&D.expression===l||eh(D)&&D.isTypeOnly)return!1;const C=(m=D.parent)==null?void 0:m.parent;if(C&&Gc(C)&&C.isTypeOnly)return!1}return!0}function Gni(l,m){return!!Tn(l,D=>D===m?"quit":Co(D)||D.parent&&ko(D.parent)&&!Kc(D.parent)&&D.parent.initializer===D)}function Jni(l,m){return Tn(l,D=>D===m?"quit":D===m.initializer||D===m.condition||D===m.incrementor||D===m.statement)}function vMe(l){return Tn(l,m=>!m||U0e(m)?"quit":Tx(m,!1))}function $ni(l,m){if(Ce>=2||!(m.flags&34)||!m.valueDeclaration||la(m.valueDeclaration)||m.valueDeclaration.parent.kind===299)return;const D=YE(m.valueDeclaration),C=Gni(l,D),A=vMe(D);if(A){if(C){let w=!0;if(vk(D)){const I=Fv(m.valueDeclaration,261);if(I&&I.parent===D){const U=Jni(l.parent,D);if(U){const Z=ar(U);Z.flags|=8192;const ce=Z.capturedBlockScopeBindings||(Z.capturedBlockScopeBindings=[]);xa(ce,m),U===D.initializer&&(w=!1)}}}w&&(ar(A).flags|=4096)}if(vk(D)){const w=Fv(m.valueDeclaration,261);w&&w.parent===D&&qni(l,D)&&(ar(m.valueDeclaration).flags|=65536)}ar(m.valueDeclaration).flags|=32768}C&&(ar(m.valueDeclaration).flags|=16384)}function Uni(l,m){const D=ar(l);return!!D&&kt(D.capturedBlockScopeBindings,_u(m))}function qni(l,m){let D=l;for(;D.parent.kind===217;)D=D.parent;let C=!1;if(Q_(D))C=!0;else if(D.parent.kind===224||D.parent.kind===225){const A=D.parent;C=A.operator===46||A.operator===47}return C?!!Tn(D,A=>A===m?"quit":A===m.statement):!1}function CMe(l,m){if(ar(l).flags|=2,m.kind===172||m.kind===176){const D=m.parent;ar(D).flags|=4}else ar(m).flags|=4}function Yht(l){return ik(l)?l:Co(l)?void 0:ao(l,Yht)}function bMe(l){const m=_u(l),D=X0(m);return qc(D)===Ct}function Qht(l,m,D){const C=m.parent;B2(C)&&!bMe(C)&&Bj(l)&&l.flowNode&&!vEe(l.flowNode,!1)&&pt(l,D)}function Zni(l,m){ko(m)&&Kc(m)&&ve&&m.initializer&&IO(m.initializer,l.pos)&&o4(m.parent)&&pt(l,F.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Ute(l){const m=ck(l);let D=tf(l,!0,!0),C=!1,A=!1;for(D.kind===176&&Qht(l,D,F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(D.kind===219&&(D=tf(D,!1,!A),C=!0),D.kind===167){D=tf(D,!C,!1),A=!0;continue}break}if(Zni(l,D),A)pt(l,F.this_cannot_be_referenced_in_a_computed_property_name);else switch(D.kind){case 267:pt(l,F.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:pt(l,F.this_cannot_be_referenced_in_current_location);break;case 176:Xht(l,D)&&pt(l,F.this_cannot_be_referenced_in_constructor_arguments);break}!m&&C&&Ce<2&&CMe(l,D);const w=yMe(l,!0,D);if(De){const I=Wn(St);if(w===I&&C)pt(l,F.The_containing_arrow_function_captures_the_global_value_of_this);else if(!w){const U=pt(l,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!la(D)){const Z=yMe(D);Z&&Z!==I&&Es(U,Su(D,F.An_outer_value_of_this_is_shadowed_by_this_container))}}}return w||me}function yMe(l,m=!0,D=tf(l,!1,!1)){const C=Qn(l);if(Co(D)&&(!AMe(l)||T2(D))){let A=g6(D)||C&&Xni(D);if(!A){const w=Qni(D);if(C&&w){const I=ya(w).symbol;I&&I.members&&I.flags&16&&(A=X0(I).thisType)}else AE(D)&&(A=X0(Ks(D.symbol)).thisType);A||(A=nft(D))}if(A)return w6(l,A)}if(mr(D.parent)){const A=_u(D.parent),w=No(D)?Wn(A):X0(A).thisType;return w6(l,w)}if(la(D))if(D.commonJsModuleIndicator){const A=_u(D);return A&&Wn(A)}else{if(D.externalModuleIndicator)return te;if(m)return Wn(St)}}function Yni(l){const m=tf(l,!1,!1);if(Co(m)){const D=dp(m);if(D.thisParameter)return DEe(D.thisParameter)}if(mr(m.parent)){const D=_u(m.parent);return No(m)?Wn(D):X0(D).thisType}}function Qni(l){if(l.kind===218&&Xn(l.parent)&&Xl(l.parent)===3)return l.parent.left.expression.expression;if(l.kind===174&&l.parent.kind===210&&Xn(l.parent.parent)&&Xl(l.parent.parent)===6)return l.parent.parent.left.expression;if(l.kind===218&&l.parent.kind===303&&l.parent.parent.kind===210&&Xn(l.parent.parent.parent)&&Xl(l.parent.parent.parent)===6)return l.parent.parent.parent.left.expression;if(l.kind===218&&Jc(l.parent)&&at(l.parent.name)&&(l.parent.name.escapedText==="value"||l.parent.name.escapedText==="get"||l.parent.name.escapedText==="set")&&ys(l.parent.parent)&&Mo(l.parent.parent.parent)&&l.parent.parent.parent.arguments[2]===l.parent.parent&&Xl(l.parent.parent.parent)===9)return l.parent.parent.parent.arguments[0].expression;if(dc(l)&&at(l.name)&&(l.name.escapedText==="value"||l.name.escapedText==="get"||l.name.escapedText==="set")&&ys(l.parent)&&Mo(l.parent.parent)&&l.parent.parent.arguments[2]===l.parent&&Xl(l.parent.parent)===9)return l.parent.parent.arguments[0].expression}function Xni(l){const m=LU(l);if(m&&m.typeExpression)return Ar(m.typeExpression);const D=xz(l);if(D)return kC(D)}function Xht(l,m){return!!Tn(l,D=>$0(D)?"quit":D.kind===169&&D.parent===m)}function kMe(l){const m=l.parent.kind===213&&l.parent.expression===l,D=fj(l,!0);let C=D,A=!1,w=!1;if(!m){for(;C&&C.kind===219;)Yu(C,1024)&&(w=!0),C=fj(C,!0),A=Ce<2;C&&Yu(C,1024)&&(w=!0)}let I=0;if(!C||!Fe(C)){const Te=Tn(l,$e=>$e===C?"quit":$e.kind===167);return Te&&Te.kind===167?pt(l,F.super_cannot_be_referenced_in_a_computed_property_name):m?pt(l,F.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(mr(C.parent)||C.parent.kind===210)?pt(l,F.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):pt(l,F.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ot}if(!m&&D.kind===176&&Qht(l,C,F.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),No(C)||m?(I=32,!m&&Ce>=2&&Ce<=8&&(ko(C)||zl(C))&&Ibe(l.parent,Te=>{(!la(Te)||cm(Te))&&(ar(Te).flags|=2097152)})):I=16,ar(l).flags|=I,C.kind===174&&w&&(nf(l.parent)&&Q_(l.parent)?ar(C).flags|=256:ar(C).flags|=128),A&&CMe(l.parent,C),C.parent.kind===210)return Ce<2?(pt(l,F.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ot):me;const U=C.parent;if(!B2(U))return pt(l,F.super_can_only_be_referenced_in_a_derived_class),Ot;if(bMe(U))return m?Ot:Ct;const Z=X0(_u(U)),ce=Z&&Zc(Z)[0];if(!ce)return Ot;if(C.kind===176&&Xht(l,C))return pt(l,F.super_cannot_be_referenced_in_constructor_arguments),Ot;return I===32?qc(Z):xm(ce,Z.thisType);function Fe(Te){return m?Te.kind===176:mr(Te.parent)||Te.parent.kind===210?No(Te)?Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===175:Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===171||Te.kind===176:!1}}function eft(l){return(l.kind===174||l.kind===177||l.kind===178)&&l.parent.kind===210?l.parent:l.kind===218&&l.parent.kind===303?l.parent.parent:void 0}function tft(l){return Gu(l)&4&&l.target===bc?O0(l)[0]:void 0}function eui(l){return hl(l,m=>m.flags&2097152?L(m.types,tft):tft(m))}function ift(l,m){let D=l,C=m;for(;C;){const A=eui(C);if(A)return A;if(D.parent.kind!==303)break;D=D.parent.parent,C=MC(D,void 0)}}function nft(l){if(l.kind===219)return;if(Uge(l)){const D=yW(l);if(D){const C=D.thisParameter;if(C)return Wn(C)}}const m=Qn(l);if(De||m){const D=eft(l);if(D){const A=MC(D,void 0),w=ift(D,A);return w?_a(w,iMe(jb(D))):vm(A?FD(A):Rc(D))}const C=i5(l.parent);if(ld(C)){const A=C.left;if(I0(A)){const{expression:w}=A;if(m&&at(w)){const I=zn(C);if(I.commonJsModuleIndicator&&Zp(w)===I.symbol)return}return vm(Rc(w))}}}}function uft(l){const m=l.parent;if(!Uge(m))return;const D=nk(m);if(D&&D.arguments){const A=REe(D),w=m.parameters.indexOf(l);if(l.dotDotDotToken)return XMe(A,w,A.length,me,void 0,0);const I=ar(D),U=I.resolvedSignature;I.resolvedSignature=mi;const Z=w0)return V9(D.name,!0,!1)}}function uui(l,m){const D=Nm(l);if(D){let C=yEe(D,m);if(C){const A=kd(D);if(A&1){const w=(A&2)!==0;C.flags&1048576&&(C=Ic(C,U=>!!Hb(1,U,w)));const I=Hb(1,C,(A&2)!==0);if(!I)return;C=I}if(A&2){const w=hl(C,W5);return w&&er([w,Emt(w)])}return C}}}function rui(l,m){const D=hf(l,m);if(D){const C=W5(D);return C&&er([C,Emt(C)])}}function aui(l,m){const D=Nm(l);if(D){const C=kd(D);let A=yEe(D,m);if(A){const w=(C&2)!==0;return!l.asteriskToken&&A.flags&1048576&&(A=Ic(A,I=>!!Hb(1,I,w))),l.asteriskToken?A:Hb(0,A,w)}}}function AMe(l){let m=!1;for(;l.parent&&!Co(l.parent);){if(io(l.parent)&&(m||l.parent.initializer===l))return!0;js(l.parent)&&l.parent.initializer===l&&(m=!0),l=l.parent}return!1}function rft(l,m){const D=!!(kd(m)&2),C=yEe(m,void 0);if(C)return Hb(l,C,D)||void 0}function yEe(l,m){const D=uT(l);if(D)return D;const C=LMe(l);if(C&&!Fge(C)){const w=Zs(C),I=kd(l);return I&1?Ic(w,U=>!!(U.flags&58998787)||vze(U,I,void 0)):I&2?Ic(w,U=>!!(U.flags&58998787)||!!jz(U)):w}const A=nk(l);if(A)return hf(A,m)}function aft(l,m){const C=REe(l).indexOf(m);return C===-1?void 0:SMe(l,C)}function SMe(l,m){if(dm(l))return m===0?ct:m===1?Ydt(!1):me;const D=ar(l).resolvedSignature===Wu?Wu:mT(l);if(zh(l)&&m===0)return SEe(D,l);const C=D.parameters.length-1;return th(D)&&m>=C?qf(Wn(D.parameters[C]),wg(m-C),256):Lg(D,m)}function oui(l){const m=hze(l);return m?DF(m):void 0}function sui(l,m){if(l.parent.kind===215)return aft(l.parent,m)}function lui(l,m){const D=l.parent,{left:C,operatorToken:A,right:w}=D;switch(A.kind){case 64:case 77:case 76:case 78:return l===w?dui(D):void 0;case 57:case 61:const I=hf(D,m);return l===w&&(I&&I.pattern||!I&&!uye(D))?b1(C):I;case 56:case 28:return l===w?hf(D,m):void 0;default:return}}function cui(l){if(Zg(l)&&l.symbol)return l.symbol;if(at(l))return Zp(l);if(Iu(l)){const D=b1(l.expression);return ea(l.name)?m(D,l.name):qo(D,l.name.escapedText)}if(U0(l)){const D=Rc(l.argumentExpression);if(!Y4(D))return;const C=b1(l.expression);return qo(C,Q4(D))}return;function m(D,C){const A=LEe(C.escapedText,C);return A&&KMe(D,A)}}function dui(l){var m,D;const C=Xl(l);switch(C){case 0:case 4:const A=cui(l.left),w=A&&A.valueDeclaration;if(w&&(ko(w)||Mm(w))){const Z=f1(w);return Z&&_a(Ar(Z),Ur(A).mapper)||(ko(w)?w.initializer&&b1(l.left):void 0)}return C===0?b1(l.left):oft(l);case 5:if(kEe(l,C))return oft(l);if(!Zg(l.left)||!l.left.symbol)return b1(l.left);{const Z=l.left.symbol.valueDeclaration;if(!Z)return;const ce=Po(l.left,I0),Fe=f1(Z);if(Fe)return Ar(Fe);if(at(ce.expression)){const Te=ce.expression,$e=uc(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if($e){const ut=$e.valueDeclaration&&f1($e.valueDeclaration);if(ut){const zt=Q3(ce);if(zt!==void 0)return Ob(Ar(ut),zt)}return}}return Qn(Z)||Z===l.left?void 0:b1(l.left)}case 1:case 6:case 3:case 2:let I;C!==2&&(I=Zg(l.left)?(m=l.left.symbol)==null?void 0:m.valueDeclaration:void 0),I||(I=(D=l.symbol)==null?void 0:D.valueDeclaration);const U=I&&f1(I);return U?Ar(U):void 0;case 7:case 8:case 9:return H.fail("Does not apply");default:return H.assertNever(C)}}function kEe(l,m=Xl(l)){if(m===4)return!0;if(!Qn(l)||m!==5||!at(l.left.expression))return!1;const D=l.left.expression.escapedText,C=uc(l.left,D,111551,void 0,void 0,!0,!0);return mq(C==null?void 0:C.valueDeclaration)}function oft(l){if(!l.symbol)return b1(l.left);if(l.symbol.valueDeclaration){const A=f1(l.symbol.valueDeclaration);if(A){const w=Ar(A);if(w)return w}}const m=Po(l.left,I0);if(!zp(tf(m.expression,!1,!1)))return;const D=Ute(m.expression),C=Q3(m);return C!==void 0&&Ob(D,C)||void 0}function hui(l){return!!(Gl(l)&262144&&!l.links.type&&xC(l,0)>=0)}function Ob(l,m,D){return hl(l,C=>{var A;if(Xm(C)&&!C.declaration.nameType){const w=cp(C),I=Wh(w)||w,U=D||df(Qr(m));if(ms(U,I))return Ige(C,U)}else if(C.flags&3670016){const w=qo(C,m);if(w)return hui(w)?void 0:B6(Wn(w),!!(w&&w.flags&16777216));if(xs(C)&&i3(m)&&+m>=0){const I=wz(C,C.target.fixedLength,0,!1,!0);if(I)return I}return(A=qNe(ZNe(C),D||df(Qr(m))))==null?void 0:A.type}},!0)}function sft(l,m){if(H.assert(zp(l)),!(l.flags&67108864))return BMe(l,m)}function BMe(l,m){const D=l.parent,C=Jc(l)&&FMe(l,m);if(C)return C;const A=MC(D,m);if(A){if(iT(l)){const w=_u(l);return Ob(A,w.escapedName,Ur(w).nameType)}if(Ix(l)){const w=Za(l);if(w&&Ps(w)){const I=ya(w.expression),U=Y4(I)&&Ob(A,Q4(I));if(U)return U}}if(l.name){const w=j5(l.name);return hl(A,I=>{var U;return(U=qNe(ZNe(I),w))==null?void 0:U.type},!0)}}}function fui(l){let m,D;for(let C=0;C{if(xs(w)){if((C===void 0||mA)?D-m:0,U=I>0&&w.target.hasRestElement?sW(w.target,3):0;return I>0&&I<=U?O0(w)[O5(w)-I]:wz(w,C===void 0?w.target.fixedLength:Math.min(w.target.fixedLength,C),D===void 0||A===void 0?U:Math.min(U,D-A),!1,!0)}return(!C||mH5(Z)?qf(Z,wg(I)):Z,!0))}function gui(l,m){const D=l.parent;return KU(D)?hf(l,m):r3(D)?pui(D,l,m):void 0}function lft(l,m){if(oE(l)){const D=MC(l.parent,m);return!D||nt(D)?void 0:Ob(D,MP(l.name))}else return hf(l.parent,m)}function qte(l){switch(l.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 qte(l.expression);case 294:return!l.expression||qte(l.expression)}return!1}function Eui(l,m){return cni(m,l)||jPe(m,Hi(Vt(ti(l.properties,D=>D.symbol?D.kind===303?qte(D.initializer)&&Tz(m,D.symbol.escapedName):D.kind===304?Tz(m,D.symbol.escapedName):!1:!1),D=>[()=>gie(D.kind===303?D.initializer:D.name),D.symbol.escapedName]),Vt(ti(n0(m),D=>{var C;return!!(D.flags&16777216)&&!!((C=l==null?void 0:l.symbol)!=null&&C.members)&&!l.symbol.members.has(D.escapedName)&&Tz(m,D.escapedName)}),D=>[()=>te,D.escapedName])),ms)}function _ui(l,m){const D=Qte(SF(l));return jPe(m,Hi(Vt(ti(l.properties,C=>!!C.symbol&&C.kind===291&&Tz(m,C.symbol.escapedName)&&(!C.initializer||qte(C.initializer))),C=>[C.initializer?()=>gie(C.initializer):()=>du,C.symbol.escapedName]),Vt(ti(n0(m),C=>{var A;if(!(C.flags&16777216)||!((A=l==null?void 0:l.symbol)!=null&&A.members))return!1;const w=l.parent.parent;return C.escapedName===D&&r3(w)&&uB(w.children).length?!1:!l.symbol.members.has(C.escapedName)&&Tz(m,C.escapedName)}),C=>[()=>te,C.escapedName])),ms)}function MC(l,m){const D=zp(l)?sft(l,m):hf(l,m),C=FEe(D,l,m);if(C&&!(m&&m&2&&C.flags&8650752)){const A=hl(C,w=>Gu(w)&32?w:Gh(w),!0);return A.flags&1048576&&ys(l)?Eui(l,A):A.flags&1048576&&W2(l)?_ui(l,A):A}}function FEe(l,m,D){if(l&&jl(l,465829888)){const C=jb(m);if(C&&D&1&&Oe(C.inferences,Xai))return AEe(l,C.nonFixingMapper);if(C!=null&&C.returnMapper){const A=AEe(l,C.returnMapper);return A.flags&1048576&&C6(A.types,Sn)&&C6(A.types,Ru)?Ic(A,w=>w!==Sn&&w!==Ru):A}}return l}function AEe(l,m){return l.flags&465829888?_a(l,m):l.flags&1048576?er(Vt(l.types,D=>AEe(D,m)),0):l.flags&2097152?Ds(Vt(l.types,D=>AEe(D,m))):l}function hf(l,m){var D;if(l.flags&67108864)return;const C=dft(l,!m);if(C>=0)return Cu[C];const{parent:A}=l;switch(A.kind){case 260:case 169:case 172:case 171:case 208:return nui(l,m);case 219:case 253:return uui(l,m);case 229:return aui(A,m);case 223:return rui(A,m);case 213:case 214:return aft(A,l);case 170:return oui(A);case 216:case 234:return q3(A.type)?hf(A,m):Ar(A.type);case 226:return lui(l,m);case 303:case 304:return BMe(A,m);case 305:return hf(A.parent,m);case 209:{const w=A,I=MC(w,m),U=j8(w.elements,l),Z=(D=ar(w)).spreadIndices??(D.spreadIndices=fui(w.elements));return wMe(I,U,w.elements.length,Z.first,Z.last)}case 227:return mui(l,m);case 239:return H.assert(A.parent.kind===228),sui(A.parent,l);case 217:{if(Qn(A)){if(Ile(A))return Ar(Rle(A));const w=xv(A);if(w&&!q3(w.typeExpression.type))return Ar(w.typeExpression.type)}return hf(A,m)}case 235:return hf(A,m);case 238:return Ar(A.type);case 277:return dt(A);case 294:return gui(A,m);case 291:case 293:return lft(A,m);case 286:case 285:return vui(A,m)}}function cft(l){Zte(l,hf(l,void 0),!0)}function Zte(l,m,D){kr[Eu]=l,Cu[Eu]=m,bu[Eu]=D,Eu++}function bW(){Eu--}function dft(l,m){for(let D=Eu-1;D>=0;D--)if(l===kr[D]&&(m||!bu[D]))return D;return-1}function Dui(l,m){sa[o0]=l,p0[o0]=m,o0++}function xui(){o0--}function jb(l){for(let m=o0-1;m>=0;m--)if(S2(l,sa[m]))return p0[m]}function vui(l,m){if(aE(l)&&m!==4){const D=dft(l.parent,!m);if(D>=0)return Cu[D]}return SMe(l,0)}function SEe(l,m){return $ft(m)!==0?Cui(l,m):kui(l,m)}function Cui(l,m){let D=cze(l,on);D=hft(m,SF(m),D);const C=Vb(Rm.IntrinsicAttributes,m);return Nt(C)||(D=xte(C,D)),D}function bui(l,m){if(l.compositeSignatures){const C=[];for(const A of l.compositeSignatures){const w=Zs(A);if(nt(w))return w;const I=he(w,m);if(!I)return;C.push(I)}return Ds(C)}const D=Zs(l);return nt(D)?D:he(D,m)}function yui(l){if(X9(l.tagName)){const D=vft(l),C=OEe(l,D);return DF(C)}const m=Rc(l.tagName);if(m.flags&128){const D=xft(m,l);if(!D)return Ot;const C=OEe(l,D);return DF(C)}return m}function hft(l,m,D){const C=Gui(m);if(C){const A=yui(l),w=yft(C,Qn(l),A,D);if(w)return w}return D}function kui(l,m){const D=SF(m),C=$ui(D);let A=C===void 0?cze(l,on):C===""?Zs(l):bui(l,C);if(!A)return C&&S(m.attributes.properties)&&pt(m,F.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Qr(C)),on;if(A=hft(m,D,A),nt(A))return A;{let w=A;const I=Vb(Rm.IntrinsicClassAttributes,m);if(!Nt(I)){const Z=sn(I.symbol),ce=Zs(l);let Fe;if(Z){const Te=x6([ce],Z,b_(Z),Qn(m));Fe=_a(I,Sf(Z,Te))}else Fe=I;w=xte(Fe,w)}const U=Vb(Rm.IntrinsicAttributes,m);return Nt(U)||(w=xte(U,w)),w}}function Fui(l){return Z4(ae,"noImplicitAny")?nn(l,(m,D)=>m===D||!m?m:mdt(m.typeParameters,D.typeParameters)?Bui(m,D):void 0):void 0}function Aui(l,m,D){if(!l||!m)return l||m;const C=er([Wn(l),_a(Wn(m),D)]);return CF(l,C)}function Sui(l,m,D){const C=Cm(l),A=Cm(m),w=C>=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=F_(l)||F_(m),ce=Z&&!F_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=SE(w)&&Te>=SE(I),dn=Te>=C?void 0:Iz(l,Te),nu=Te>=A?void 0:Iz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ii=Hs(1|(Wi&&!gi?16777216:0),En||`arg${Te}`);Ii.links.type=gi?V1(zt):zt,Fe[Te]=Ii}if(ce){const Te=Hs(1,"args");Te.links.type=V1(Lg(I,U)),I===m&&(Te.links.type=_a(Te.links.type,D)),Fe[U]=Te}return Fe}function Bui(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=Sui(l,m,C),I=Aui(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=y3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=2097152,Z.compositeSignatures=Hi(l.compositeKind===2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind===2097152&&l.mapper&&l.compositeSignatures?wC(l.mapper,C):C),Z}function TMe(l,m){const D=go(l,0),C=ti(D,A=>!wui(A,m));return C.length===1?C[0]:Fui(C)}function wui(l,m){let D=0;for(;DI[ut]&8?b6($e,Qt)||me:$e),2):fe?wn:we,Z))}function mft(l){if(!(Gu(l)&4))return l;let m=l.literalType;return m||(m=l.literalType=Odt(l),m.objectFlags|=147456),m}function Pui(l){switch(l.kind){case 167:return Mui(l);case 80:return i3(l.escapedText);case 9:case 11:return i3(l.text);default:return!1}}function Mui(l){return u1(F3(l),296)}function F3(l){const m=ar(l.expression);if(!m.resolvedType){if((fm(l.parent.parent)||mr(l.parent.parent)||xh(l.parent.parent))&&Xn(l.expression)&&l.expression.operatorToken.kind===103&&l.parent.kind!==177&&l.parent.kind!==178)return m.resolvedType=Ot;if(m.resolvedType=ya(l.expression),ko(l.parent)&&!Kc(l.parent)&&Xd(l.parent.parent)){const D=YE(l.parent.parent),C=vMe(D);C&&(ar(C).flags|=4096,ar(l).flags|=32768,ar(l.parent.parent).flags|=32768)}(m.resolvedType.flags&98304||!u1(m.resolvedType,402665900)&&!ms(m.resolvedType,Fn))&&pt(l,F.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return m.resolvedType}function zui(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return i3(l.escapedName)||D&&mh(D)&&Pui(D.name)}function pft(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return Ij(l)||D&&mh(D)&&Ps(D.name)&&u1(F3(D.name),4096)}function NMe(l,m,D,C){const A=[];for(let I=m;I0&&(U=Nb(U,Nn(),l.symbol,gi,Fe),I=[],w=Vo(),dn=!1,nu=!1,En=!1);const hu=Sg(ya(vn.expression,m&2));if(Yte(hu)){const oo=FPe(hu,Fe);if(A&&Eft(oo,A,vn),Ii=I.length,Nt(U))continue;U=Nb(U,oo,l.symbol,gi,Fe)}else pt(vn,F.Spread_types_may_only_be_created_from_object_types),U=Ot;continue}else H.assert(vn.kind===177||vn.kind===178),eS(vn);_n&&!(_n.flags&8576)?ms(_n,Fn)&&(ms(_n,Qt)?nu=!0:ms(_n,Xu)?En=!0:dn=!0,C&&(Wi=!0)):w.set(An.escapedName,An),I.push(An)}if(bW(),ce){const vn=Tn(Z.pattern.parent,_n=>_n.kind===260||_n.kind===226||_n.kind===169);if(Tn(l,_n=>_n===vn||_n.kind===305).kind!==305)for(const _n of n0(Z))!w.get(_n.escapedName)&&!qo(U,_n.escapedName)&&(_n.flags&16777216||pt(_n.valueDeclaration||((D=ur(_n,qE))==null?void 0:D.links.bindingElement),F.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),w.set(_n.escapedName,_n),I.push(_n))}if(Nt(U))return Ot;if(U!==Ko)return I.length>0&&(U=Nb(U,Nn(),l.symbol,gi,Fe),I=[],w=Vo(),dn=!1,nu=!1),hl(U,vn=>vn===Ko?Nn():vn);return Nn();function Nn(){const vn=[];dn&&vn.push(NMe(l,Ii,I,ct)),nu&&vn.push(NMe(l,Ii,I,Qt)),En&&vn.push(NMe(l,Ii,I,Xu));const An=Ol(l.symbol,w,_t,_t,vn);return An.objectFlags|=gi|128|131072,zt&&(An.objectFlags|=4096),Wi&&(An.objectFlags|=512),C&&(An.pattern=l),An}}function Yte(l){const m=fht(hl(l,xD));return!!(m.flags&126615553||m.flags&3145728&&ye(m.types,Yte))}function Rui(l){IMe(l)}function Oui(l,m){return eS(l),Xte(l)||me}function jui(l){IMe(l.openingElement),X9(l.closingElement.tagName)?wEe(l.closingElement):ya(l.closingElement.tagName),BEe(l)}function Vui(l,m){return eS(l),Xte(l)||me}function Hui(l){IMe(l.openingFragment);const m=zn(l);return iZ(ae)&&(ae.jsxFactory||m.pragmas.has("jsx"))&&!ae.jsxFragmentFactory&&!m.pragmas.has("jsxfrag")&&pt(l,ae.jsxFactory?F.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:F.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),BEe(l),Xte(l)||me}function MMe(l){return l.includes("-")}function X9(l){return at(l)&&aB(l.escapedText)||gg(l)}function gft(l,m){return l.initializer?Oz(l.initializer,m):du}function Kui(l,m=0){const D=l.attributes,C=hf(D,0),A=fe?Vo():void 0;let w=Vo(),I=Tc,U=!1,Z,ce=!1,Fe=2048;const Te=Qte(SF(l));for(const zt of D.properties){const gi=zt.symbol;if(oE(zt)){const Wi=gft(zt,m);Fe|=Gu(Wi)&458752;const dn=Hs(4|gi.flags,gi.escapedName);if(dn.declarations=gi.declarations,dn.parent=gi.parent,gi.valueDeclaration&&(dn.valueDeclaration=gi.valueDeclaration),dn.links.type=Wi,dn.links.target=gi,w.set(dn.escapedName,dn),A==null||A.set(dn.escapedName,dn),MP(zt.name)===Te&&(ce=!0),C){const nu=qo(C,gi.escapedName);nu&&nu.declarations&&S5(nu)&&at(zt.name)&&m3(zt.name,nu.declarations,zt.name.escapedText)}if(C&&m&2&&!(m&4)&&k4(zt)){const nu=jb(D);H.assert(nu);const En=zt.initializer.expression;eMe(nu,En,Wi)}}else{H.assert(zt.kind===293),w.size>0&&(I=Nb(I,ut(),D.symbol,Fe,!1),w=Vo());const Wi=Sg(ya(zt.expression,m&2));nt(Wi)&&(U=!0),Yte(Wi)?(I=Nb(I,Wi,D.symbol,Fe,!1),A&&Eft(Wi,A,zt)):(pt(zt.expression,F.Spread_types_may_only_be_created_from_object_types),Z=Z?Ds([Z,Wi]):Wi)}}U||w.size>0&&(I=Nb(I,ut(),D.symbol,Fe,!1));const $e=l.parent.kind===284?l.parent:void 0;if($e&&$e.openingElement===l&&uB($e.children).length>0){const zt=BEe($e,m);if(!U&&Te&&Te!==""){ce&&pt(D,F._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Qr(Te));const gi=MC(l.attributes,void 0),Wi=gi&&Ob(gi,Te),dn=Hs(4,Te);dn.links.type=zt.length===1?zt[0]:Wi&&yE(Wi,Bz)?Bg(zt):V1(er(zt)),dn.valueDeclaration=q.createPropertySignature(void 0,Qr(Te),void 0,void 0),ks(dn.valueDeclaration,D),dn.valueDeclaration.symbol=dn;const nu=Vo();nu.set(Te,dn),I=Nb(I,Ol(D.symbol,nu,_t,_t,_t),D.symbol,Fe,!1)}}if(U)return me;if(Z&&I!==Tc)return Ds([Z,I]);return Z||(I===Tc?ut():I);function ut(){Fe|=Ye;const zt=Ol(D.symbol,w,_t,_t,_t);return zt.objectFlags|=Fe|128|131072,zt}}function BEe(l,m){const D=[];for(const C of l.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||D.push(ct);else{if(C.kind===294&&!C.expression)continue;D.push(Oz(C,m))}return D}function Eft(l,m,D){for(const C of n0(l))if(!(C.flags&16777216)){const A=m.get(C.escapedName);if(A){const w=pt(A.valueDeclaration,F._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Qr(A.escapedName));Es(w,Su(D,F.This_spread_always_overwrites_this_property))}}}function Wui(l,m){return Kui(l.parent,m)}function Vb(l,m){const D=SF(m),C=D&&$f(D),A=C&&kf(C,l,788968);return A?X0(A):Ot}function wEe(l){const m=ar(l);if(!m.resolvedSymbol){const D=Vb(Rm.IntrinsicElements,l);if(Nt(D))return Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Qr(Rm.IntrinsicElements)),m.resolvedSymbol=Xt;{if(!at(l.tagName)&&!gg(l.tagName))return H.fail();const C=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText,A=qo(D,C);if(A)return m.jsxFlags|=1,m.resolvedSymbol=A;const w=K4t(D,df(Qr(C)));return w?(m.jsxFlags|=2,m.resolvedSymbol=w):Re(D,C)?(m.jsxFlags|=2,m.resolvedSymbol=D.symbol):(pt(l,F.Property_0_does_not_exist_on_type_1,Ole(l.tagName),"JSX."+Rm.IntrinsicElements),m.resolvedSymbol=Xt)}}return m.resolvedSymbol}function zMe(l){const m=l&&zn(l),D=m&&ar(m);if(D&&D.jsxImplicitImportContainer===!1)return;if(D&&D.jsxImplicitImportContainer)return D.jsxImplicitImportContainer;const C=uZ(nZ(ae,m),ae);if(!C)return;const w=p1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations,I=mD(l,C,w,l),U=I&&I!==Xt?Ks(yc(I)):void 0;return D&&(D.jsxImplicitImportContainer=U||!1),U}function SF(l){const m=l&&ar(l);if(m&&m.jsxNamespace)return m.jsxNamespace;if(!m||m.jsxNamespace!==!1){let C=zMe(l);if(!C||C===Xt){const A=uC(l);C=uc(l,A,1920,void 0,A,!1)}if(C){const A=yc(kf($f(yc(C)),Rm.JSX,1920));if(A&&A!==Xt)return m&&(m.jsxNamespace=A),A}m&&(m.jsxNamespace=!1)}const D=yc(Cz(Rm.JSX,1920,void 0));if(D!==Xt)return D}function _ft(l,m){const D=m&&kf(m.exports,l,788968),C=D&&X0(D),A=C&&n0(C);if(A){if(A.length===0)return"";if(A.length===1)return A[0].escapedName;A.length>1&&D.declarations&&pt(D.declarations[0],F.The_global_type_JSX_0_may_not_have_more_than_one_property,Qr(l))}}function Gui(l){return l&&kf(l.exports,Rm.LibraryManagedAttributes,788968)}function Jui(l){return l&&kf(l.exports,Rm.ElementType,788968)}function $ui(l){return _ft(Rm.ElementAttributesPropertyNameContainer,l)}function Qte(l){return _ft(Rm.ElementChildrenAttributeNameContainer,l)}function Dft(l,m){if(l.flags&4)return[mi];if(l.flags&128){const A=xft(l,m);return A?[OEe(m,A)]:(pt(m,F.Property_0_does_not_exist_on_type_1,l.value,"JSX."+Rm.IntrinsicElements),_t)}const D=Gh(l);let C=go(D,1);return C.length===0&&(C=go(D,0)),C.length===0&&D.flags&1048576&&(C=zNe(Vt(D.types,A=>Dft(A,m)))),C}function xft(l,m){const D=Vb(Rm.IntrinsicElements,m);if(!Nt(D)){const C=l.value,A=qo(D,Al(C));if(A)return Wn(A);const w=yC(D,ct);return w||void 0}return me}function Uui(l,m,D){if(l===1){const A=bft(D);A&&F4(m,A,Jf,D.tagName,F.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(l===0){const A=Cft(D);A&&F4(m,A,Jf,D.tagName,F.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const A=bft(D),w=Cft(D);if(!A||!w)return;const I=er([A,w]);F4(m,I,Jf,D.tagName,F.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const A=Hc(D.tagName);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,A)}}function vft(l){var m;H.assert(X9(l.tagName));const D=ar(l);if(!D.resolvedJsxElementAttributesType){const C=wEe(l);if(D.jsxFlags&1)return D.resolvedJsxElementAttributesType=Wn(C)||Ot;if(D.jsxFlags&2){const A=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText;return D.resolvedJsxElementAttributesType=((m=G9(Vb(Rm.IntrinsicElements,l),A))==null?void 0:m.type)||Ot}else return D.resolvedJsxElementAttributesType=Ot}return D.resolvedJsxElementAttributesType}function Cft(l){const m=Vb(Rm.ElementClass,l);if(!Nt(m))return m}function Xte(l){return Vb(Rm.Element,l)}function bft(l){const m=Xte(l);if(m)return er([m,it])}function qui(l){const m=SF(l);if(!m)return;const D=Jui(m);if(!D)return;const C=yft(D,Qn(l));if(!(!C||Nt(C)))return C}function yft(l,m,...D){const C=X0(l);if(l.flags&524288){const A=Ur(l).typeParameters;if(S(A)>=D.length){const w=x6(D,A,D.length,m);return S(w)===0?C:aT(l,w)}}if(S(C.typeParameters)>=D.length){const A=x6(D,C.typeParameters,D.length,m);return R5(C,A)}}function Zui(l){const m=Vb(Rm.IntrinsicElements,l);return m?n0(m):_t}function Yui(l){(ae.jsx||0)===0&&pt(l,F.Cannot_use_JSX_unless_the_jsx_flag_is_provided),Xte(l)===void 0&&Ae&&pt(l,F.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function IMe(l){const m=zh(l);if(m&&Hli(l),Yui(l),!zMe(l)){const D=Vs&&ae.jsx===2?F.Cannot_find_name_0:void 0,C=uC(l),A=m?l.tagName:l;let w;if(V7(l)&&C==="null"||(w=uc(A,C,111551,D,C,!0)),w&&(w.isReferenced=67108863,Ut&&w.flags&2097152&&!_4(w)&&T5(w)),V7(l)){const I=zn(l),U=Qk(I);U&&uc(A,U,111551,D,U,!0)}}if(m){const D=l,C=mT(D);VEe(C,l);const A=qui(D);if(A!==void 0){const w=D.tagName,I=X9(w)?df(Ole(w)):ya(w);F4(I,A,Jf,w,F.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const U=Hc(w);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,U)})}else Uui($ft(D),Zs(C),D)}}function RMe(l,m,D){if(l.flags&524288){if(bC(l,m)||G9(l,m)||XK(m)&&k3(l,ct)||D&&MMe(m))return!0}else if(l.flags&3145728&&eie(l)){for(const C of l.types)if(RMe(C,m,D))return!0}return!1}function eie(l){return!!(l.flags&524288&&!(Gu(l)&512)||l.flags&67108864||l.flags&1048576&&Oe(l.types,eie)||l.flags&2097152&&ye(l.types,eie))}function Qui(l,m){if(Wli(l),l.expression){const D=ya(l.expression,m);return l.dotDotDotToken&&D!==me&&!A4(D)&&pt(l,F.JSX_spread_child_must_be_an_array_type),D}else return Ot}function OMe(l){return l.valueDeclaration?Gb(l.valueDeclaration):0}function jMe(l){if(l.flags&8192||Gl(l)&4)return!0;if(Qn(l.valueDeclaration)){const m=l.valueDeclaration.parent;return m&&Xn(m)&&Xl(m)===3}}function VMe(l,m,D,C,A,w=!0){const I=w?l.kind===166?l.right:l.kind===205?l:l.kind===208&&l.propertyName?l.propertyName:l.name:void 0;return kft(l,m,D,C,A,I)}function kft(l,m,D,C,A,w){var I;const U=l4(A,D);if(m){if(Ce<2&&Fft(A))return w&&pt(w,F.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(U&64)return w&&pt(w,F.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Fr(A),gn(Q9(A))),!1;if(!(U&256)&&((I=A.declarations)!=null&&I.some(ibe)))return w&&pt(w,F.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Fr(A)),!1}if(U&64&&Fft(A)&&(mj(l)||tye(l)||Rp(l.parent)&&mq(l.parent.parent))){const ce=tD(cf(A));if(ce&&V0i(l))return w&&pt(w,F.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Fr(A),J4(ce.name)),!1}if(!(U&6))return!0;if(U&2){const ce=tD(cf(A));return Wze(l,ce)?!0:(w&&pt(w,F.Property_0_is_private_and_only_accessible_within_class_1,Fr(A),gn(Q9(A))),!1)}if(m)return!0;let Z=V4t(l,ce=>{const Fe=X0(_u(ce));return nht(Fe,A,D)});return!Z&&(Z=Xui(l),Z=Z&&nht(Z,A,D),U&256||!Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Fr(A),gn(Q9(A)||C)),!1):U&256?!0:(C.flags&262144&&(C=C.isThisType?rh(C):Wh(C)),!C||!H9(C,Z)?(w&&pt(w,F.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Fr(A),gn(Z),gn(C)),!1):!0)}function Xui(l){const m=eri(l);let D=(m==null?void 0:m.type)&&Ar(m.type);if(D&&D.flags&262144&&(D=rh(D)),D&&Gu(D)&7)return eT(D)}function eri(l){const m=tf(l,!1,!1);return m&&Co(m)?T2(m):void 0}function Fft(l){return!!Ite(l,m=>!(m.flags&8192))}function hT(l){return kE(ya(l),l)}function tie(l){return fp(l,50331648)}function HMe(l){return tie(l)?FD(l):l}function tri(l,m){const D=ec(l)?zf(l):void 0;if(l.kind===106){pt(l,F.The_value_0_cannot_be_used_here,"null");return}if(D!==void 0&&D.length<100){if(at(l)&&D==="undefined"){pt(l,F.The_value_0_cannot_be_used_here,"undefined");return}pt(l,m&16777216?m&33554432?F._0_is_possibly_null_or_undefined:F._0_is_possibly_undefined:F._0_is_possibly_null,D)}else pt(l,m&16777216?m&33554432?F.Object_is_possibly_null_or_undefined:F.Object_is_possibly_undefined:F.Object_is_possibly_null)}function iri(l,m){pt(l,m&16777216?m&33554432?F.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:F.Cannot_invoke_an_object_which_is_possibly_undefined:F.Cannot_invoke_an_object_which_is_possibly_null)}function Aft(l,m,D){if(fe&&l.flags&2){if(ec(m)){const A=zf(m);if(A.length<100)return pt(m,F._0_is_of_type_unknown,A),Ot}return pt(m,F.Object_is_of_type_unknown),Ot}const C=Lz(l,50331648);if(C&50331648){D(m,C);const A=FD(l);return A.flags&229376?Ot:A}return l}function kE(l,m){return Aft(l,m,tri)}function Sft(l,m){const D=kE(l,m);if(D.flags&16384){if(ec(m)){const C=zf(m);if(at(m)&&C==="undefined")return pt(m,F.The_value_0_cannot_be_used_here,C),D;if(C.length<100)return pt(m,F._0_is_possibly_undefined,C),D}pt(m,F.Object_is_possibly_undefined)}return D}function TEe(l,m,D){return l.flags&64?nri(l,m):WMe(l,l.expression,hT(l.expression),l.name,m,D)}function nri(l,m){const D=ya(l.expression),C=gW(D,l.expression);return sEe(WMe(l,l.expression,kE(C,l.expression),l.name,m),l,C!==D)}function Bft(l,m){const D=_q(l)&&N2(l.left)?kE(Ute(l.left),l.left):hT(l.left);return WMe(l,l.left,D,l.right,m)}function wft(l){for(;l.parent.kind===217;)l=l.parent;return $E(l.parent)&&l.parent.expression===l}function LEe(l,m){for(let D=hq(m);D;D=Yd(D)){const{symbol:C}=D,A=zj(C,l),w=C.members&&C.members.get(A)||C.exports&&C.exports.get(A);if(w)return w}}function uri(l){if(!Yd(l))return Zi(l,F.Private_identifiers_are_not_allowed_outside_class_bodies);if(!hY(l.parent)){if(!Z_(l))return Zi(l,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const m=Xn(l.parent)&&l.parent.operatorToken.kind===103;if(!NEe(l)&&!m)return Zi(l,F.Cannot_find_name_0,fu(l))}return!1}function rri(l){uri(l);const m=NEe(l);return m&&nie(m,void 0,!1),me}function NEe(l){if(!Z_(l))return;const m=ar(l);return m.resolvedSymbol===void 0&&(m.resolvedSymbol=LEe(l.escapedText,l)),m.resolvedSymbol}function KMe(l,m){return qo(l,m.escapedName)}function ari(l,m,D){let C;const A=n0(l);A&&L(A,I=>{const U=I.valueDeclaration;if(U&&mh(U)&&ea(U.name)&&U.name.escapedText===m.escapedText)return C=I,!0});const w=$p(m);if(C){const I=H.checkDefined(C.valueDeclaration),U=H.checkDefined(Yd(I));if(D!=null&&D.valueDeclaration){const Z=D.valueDeclaration,ce=Yd(Z);if(H.assert(!!ce),Tn(ce,Fe=>U===Fe)){const Fe=pt(m,F.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,w,gn(l));return Es(Fe,Su(Z,F.The_shadowing_declaration_of_0_is_defined_here,w),Su(I,F.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,w)),!0}}return pt(m,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,w,$p(U.name||YY)),!0}return!1}function Tft(l,m){return(fz(m)||mj(l)&&Zw(m))&&tf(l,!0,!1)===Yw(m)}function WMe(l,m,D,C,A,w){const I=ar(m).resolvedSymbol,U=f7(l),Z=Gh(U!==0||wft(l)?vm(D):D),ce=nt(Z)||Z===ja;let Fe;if(ea(C)){Ce<99&&(U!==0&&rd(l,1048576),U!==1&&rd(l,524288));const $e=LEe(C.escapedText,C);if(U&&$e&&$e.valueDeclaration&&dc($e.valueDeclaration)&&Zi(C,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,fu(C)),ce){if($e)return Nt(Z)?Ot:Z;if(hq(C)===void 0)return Zi(C,F.Private_identifiers_are_not_allowed_outside_class_bodies),me}if(Fe=$e&&KMe(D,$e),Fe===void 0){if(ari(D,C,$e))return Ot;const ut=hq(C);ut&&nj(zn(ut),ae.checkJs)&&Zi(C,F.Private_field_0_must_be_declared_in_an_enclosing_class,fu(C))}else Fe.flags&65536&&!(Fe.flags&32768)&&U!==1&&pt(l,F.Private_accessor_was_defined_without_a_getter)}else{if(ce)return at(m)&&I&&bEe(I,l),Nt(Z)?Ot:Z;Fe=qo(Z,C.escapedText,WEe(Z),l.kind===166)}at(m)&&I&&(mg(ae)||!(Fe&&(OW(Fe)||Fe.flags&8&&l.parent.kind===306))||fk(ae)&&Zht(l))&&bEe(I,l);let Te;if(Fe){const $e=Vze(Fe,C);if(S5($e)&&vPe(l,$e)&&$e.declarations&&m3(C,$e.declarations,C.escapedText),ori(Fe,l,C),nie(Fe,l,Rft(m,I)),ar(l).resolvedSymbol=Fe,VMe(l,m.kind===108,D7(l),Z,Fe),kmt(l,Fe,U))return pt(C,F.Cannot_assign_to_0_because_it_is_a_read_only_property,fu(C)),Ot;Te=Tft(l,Fe)?ni:w||Jq(l)?mF(Fe):Wn(Fe)}else{const $e=!ea(C)&&(U===0||!Lb(D)||NP(D))?G9(Z,C.escapedText):void 0;if(!($e&&$e.type)){const ut=GMe(l,D.symbol,!0);return!ut&&lW(D)?me:D.symbol===St?(St.exports.has(C.escapedText)&&St.exports.get(C.escapedText).flags&418?pt(C,F.Property_0_does_not_exist_on_type_1,Qr(C.escapedText),gn(D)):Ae&&pt(C,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(D)),me):(C.escapedText&&!Ow(l)&&Pft(C,NP(D)?Z:D,ut),Ot)}$e.isReadonly&&(Q_(l)||V0e(l))&&pt(l,F.Index_signature_in_type_0_only_permits_reading,gn(Z)),Te=ae.noUncheckedIndexedAccess&&!Q_(l)?er([$e.type,de]):$e.type,ae.noPropertyAccessFromIndexSignature&&Iu(l)&&pt(C,F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Qr(C.escapedText)),$e.declaration&&aC($e.declaration)&&m3(C,[$e.declaration],C.escapedText)}return Lft(l,Fe,Te,C,A)}function GMe(l,m,D){var C;const A=zn(l);if(A&&ae.checkJs===void 0&&A.checkJsDirective===void 0&&(A.scriptKind===1||A.scriptKind===2)){const w=L(m==null?void 0:m.declarations,zn),I=!(m!=null&&m.valueDeclaration)||!mr(m.valueDeclaration)||((C=m.valueDeclaration.heritageClauses)==null?void 0:C.length)||t5(!1,m.valueDeclaration);return!(A!==w&&w&&pE(w))&&!(D&&m&&m.flags&32&&I)&&!(l&&D&&Iu(l)&&l.expression.kind===110&&I)}return!1}function Lft(l,m,D,C,A){const w=f7(l);if(w===1)return B6(D,!!(m&&m.flags&16777216));if(m&&!(m.flags&98311)&&!(m.flags&8192&&D.flags&1048576)&&!u_e(m.declarations))return D;if(D===ni)return Ym(l,m);D=xMe(D,l,A);let I=!1;if(fe&&Ge&&I0(l)&&l.expression.kind===110){const Z=m&&m.valueDeclaration;if(Z&&S4t(Z)&&!No(Z)){const ce=CW(l);ce.kind===176&&ce.parent===Z.parent&&!(Z.flags&33554432)&&(I=!0)}}else fe&&m&&m.valueDeclaration&&Iu(m.valueDeclaration)&&yj(m.valueDeclaration)&&CW(l)===CW(m.valueDeclaration)&&(I=!0);const U=w6(l,D,I?S6(D):D);return I&&!Fz(D)&&Fz(U)?(pt(C,F.Property_0_is_used_before_being_assigned,Fr(m)),D):w?kD(U):U}function ori(l,m,D){const{valueDeclaration:C}=l;if(!C||zn(m).isDeclarationFile)return;let A;const w=fu(D);Nft(m)&&!QXt(C)&&!(I0(m)&&I0(m.expression))&&!B5(C,D)&&!(dc(C)&&f_e(C)&256)&&(Se||!sri(l))?A=pt(D,F.Property_0_is_used_before_its_initialization,w):C.kind===263&&m.parent.kind!==183&&!(C.flags&33554432)&&!B5(C,D)&&(A=pt(D,F.Class_0_used_before_its_declaration,w)),A&&Es(A,Su(C,F._0_is_declared_here,w))}function Nft(l){return!!Tn(l,m=>{switch(m.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 po(m.parent)&&zl(m.parent.parent)?!0:"quit";default:return Z_(m)?!1:"quit"}})}function sri(l){if(!(l.parent.flags&32))return!1;let m=Wn(l.parent);for(;;){if(m=m.symbol&&lri(m),!m)return!1;const D=qo(m,l.escapedName);if(D&&D.valueDeclaration)return!0}}function lri(l){const m=Zc(l);if(m.length!==0)return Ds(m)}function Pft(l,m,D){let C,A;if(!ea(l)&&m.flags&1048576&&!(m.flags&402784252)){for(const I of m.types)if(!qo(I,l.escapedText)&&!G9(I,l.escapedText)){C=ro(C,F.Property_0_does_not_exist_on_type_1,b0(l),gn(I));break}}if(Mft(l.escapedText,m)){const I=b0(l),U=gn(m);C=ro(C,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,I,U,U+"."+I)}else{const I=NW(m);if(I&&qo(I,l.escapedText))C=ro(C,F.Property_0_does_not_exist_on_type_1,b0(l),gn(m)),A=Su(l,F.Did_you_forget_to_use_await);else{const U=b0(l),Z=gn(m),ce=hri(U,m);if(ce!==void 0)C=ro(C,F.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,U,Z,ce);else{const Fe=JMe(l,m);if(Fe!==void 0){const Te=lc(Fe),$e=D?F.Property_0_may_not_exist_on_type_1_Did_you_mean_2:F.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=ro(C,$e,U,Z,Te),A=Fe.valueDeclaration&&Su(Fe.valueDeclaration,F._0_is_declared_here,Te)}else{const Te=cri(m)?F.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:F.Property_0_does_not_exist_on_type_1;C=ro($Ne(C,m),Te,U,Z)}}}}const w=Y3(zn(l),l,C);A&&Es(w,A),i1(!D||C.code!==F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w)}function cri(l){return ae.lib&&!ae.lib.includes("dom")&&kni(l,m=>m.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Qr(m.symbol.escapedName)))&&bD(l)}function Mft(l,m){const D=m.symbol&&qo(Wn(m.symbol),l);return D!==void 0&&!!D.valueDeclaration&&No(D.valueDeclaration)}function dri(l){const m=$p(l),C=xZ().get(m);return C&&Oa(C.keys())}function hri(l,m){const D=Gh(m).symbol;if(!D)return;const C=lc(D),w=xZ().get(C);if(w){for(const[I,U]of w)if(kt(U,l))return I}}function zft(l,m){return iie(l,n0(m),106500)}function JMe(l,m){let D=n0(m);if(typeof l!="string"){const C=l.parent;Iu(C)&&(D=ti(D,A=>Oft(C,m,A))),l=fu(l)}return iie(l,D,111551)}function Ift(l,m){const D=Ja(l)?l:fu(l),C=n0(m);return(D==="for"?Le(C,w=>lc(w)==="htmlFor"):D==="class"?Le(C,w=>lc(w)==="className"):void 0)??iie(D,C,111551)}function $Me(l,m){const D=JMe(l,m);return D&&lc(D)}function UMe(l,m,D){return H.assert(m!==void 0,"outername should always be defined"),yh(l,m,D,void 0,m,!1,!1,!0,(A,w,I)=>{H.assertEqual(m,w,"name should equal outerName");const U=kf(A,w,I);if(U)return U;let Z;return A===Ie?Z=qi(["string","number","boolean","object","bigint","symbol"],Fe=>A.has(Fe.charAt(0).toUpperCase()+Fe.slice(1))?Hs(524288,Fe):void 0).concat(ga(A.values())):Z=ga(A.values()),iie(Qr(w),Z,I)})}function fri(l,m,D){const C=UMe(l,m,D);return C&&lc(C)}function PEe(l,m){return m.exports&&iie(fu(l),L5(m),2623475)}function mri(l,m){const D=PEe(l,m);return D&&lc(D)}function pri(l,m,D){function C(I){const U=bC(l,I);if(U){const Z=wF(Wn(U));return!!Z&&SE(Z)>=1&&ms(D,Lg(Z,0))}return!1}const A=Q_(m)?"set":"get";if(!C(A))return;let w=Uj(m.expression);return w===void 0?w=A:w+="."+A,w}function gri(l,m){const D=m.types.filter(C=>!!(C.flags&128));return bN(l.value,D,C=>C.value)}function iie(l,m,D){return bN(l,m,C);function C(A){const w=lc(A);if(!Pa(w,'"')){if(A.flags&D)return w;if(A.flags&2097152){const I=T9(A);if(I&&I.flags&D)return w}}}}function nie(l,m,D){const C=l&&l.flags&106500&&l.valueDeclaration;if(!C)return;const A=Rf(C,2),w=l.valueDeclaration&&mh(l.valueDeclaration)&&ea(l.valueDeclaration.name);if(!(!A&&!w)&&!(m&&Jq(m)&&!(l.flags&65536))){if(D){const I=Tn(m,$0);if(I&&I.symbol===l)return}(Gl(l)&1?Ur(l).target:l).isReferenced=67108863}}function Rft(l,m){return l.kind===110||!!m&&ec(l)&&m===Zp(hm(l))}function Eri(l,m){switch(l.kind){case 211:return qMe(l,l.expression.kind===108,m,vm(ya(l.expression)));case 166:return qMe(l,!1,m,vm(ya(l.left)));case 205:return qMe(l,!1,m,Ar(l))}}function Oft(l,m,D){return ZMe(l,l.kind===211&&l.expression.kind===108,!1,m,D)}function qMe(l,m,D,C){if(nt(C))return!0;const A=qo(C,D);return!!A&&ZMe(l,m,!1,C,A)}function ZMe(l,m,D,C,A){if(nt(C))return!0;if(A.valueDeclaration&&ph(A.valueDeclaration)){const w=Yd(A.valueDeclaration);return!Y1(l)&&!!Tn(l,I=>I===w)}return kft(l,m,D,C,A)}function _ri(l){const m=l.initializer;if(m.kind===261){const D=m.declarations[0];if(D&&!So(D.name))return _u(D)}else if(m.kind===80)return Zp(m)}function Dri(l){return kh(l).length===1&&!!k3(l,Qt)}function xri(l){const m=l0(l);if(m.kind===80){const D=Zp(m);if(D.flags&3){let C=l,A=l.parent;for(;A;){if(A.kind===249&&C===A.statement&&_ri(A)===D&&Dri(b1(A.expression)))return!0;C=A,A=A.parent}}}return!1}function vri(l,m){return l.flags&64?Cri(l,m):jft(l,hT(l.expression),m)}function Cri(l,m){const D=ya(l.expression),C=gW(D,l.expression);return sEe(jft(l,kE(C,l.expression),m),l,C!==D)}function jft(l,m,D){const C=f7(l)!==0||wft(l)?vm(m):m,A=l.argumentExpression,w=ya(A);if(Nt(C)||C===ja)return C;if(WEe(C)&&!t0(A))return pt(A,F.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ot;const I=xri(A)?Qt:w,U=Q_(l)?4|(Lb(C)&&!NP(C)?2:0):32,Z=b6(C,I,U,l)||Ot;return Jmt(Lft(l,ar(l).resolvedSymbol,Z,A,D),l)}function Vft(l){return $E(l)||Dk(l)||zh(l)}function BF(l){return Vft(l)&&L(l.typeArguments,ls),l.kind===215?ya(l.template):zh(l)?ya(l.attributes):Xn(l)?ya(l.left):$E(l)&&L(l.arguments,m=>{ya(m)}),mi}function FE(l){return BF(l),fn}function bri(l,m,D){let C,A,w=0,I,U=-1,Z;H.assert(!m.length);for(const ce of l){const Fe=ce.declaration&&_u(ce.declaration),Te=ce.declaration&&ce.declaration.parent;!A||Fe===A?C&&Te===C?I=I+1:(C=Te,I=w):(I=w=m.length,C=Te),A=Fe,Ode(ce)?(U++,Z=U,w++):Z=I,m.splice(Z,0,D?vXt(ce,D):ce)}}function MEe(l){return!!l&&(l.kind===230||l.kind===237&&l.isSpread)}function zEe(l){return Ue(l,MEe)}function Hft(l){return!!(l.flags&16384)}function yri(l){return!!(l.flags&49155)}function IEe(l,m,D,C=!1){let A,w=!1,I=Cm(D),U=SE(D);if(l.kind===215)if(A=m.length,l.template.kind===228){const Z=Cr(l.template.templateSpans);w=Ql(Z.literal)||!!Z.literal.isUnterminated}else{const Z=l.template;H.assert(Z.kind===15),w=!!Z.isUnterminated}else if(l.kind===170)A=qft(l,D);else if(l.kind===226)A=1;else if(zh(l)){if(w=l.attributes.end===l.end,w)return!0;A=U===0?m.length:1,I=m.length===0?I:1,U=Math.min(U,1)}else if(l.arguments){A=C?m.length+1:m.length,w=l.arguments.end===l.end;const Z=zEe(m);if(Z>=0)return Z>=SE(D)&&(F_(D)||ZI)return!1;if(w||A>=U)return!0;for(let Z=A;Z=C&&m.length<=D}function wF(l){return kW(l,0,!1)}function Kft(l){return kW(l,0,!1)||kW(l,1,!1)}function kW(l,m,D){if(l.flags&524288){const C=Ag(l);if(D||C.properties.length===0&&C.indexInfos.length===0){if(m===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(m===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function Wft(l,m,D,C){const A=DW(l.typeParameters,l,0,C),w=AW(m),I=D&&(w&&w.flags&262144?D.nonFixingMapper:D.mapper),U=I?lT(m,I):m;return YPe(U,l,(Z,ce)=>{AD(A.inferences,Z,ce)}),D||QPe(m,l,(Z,ce)=>{AD(A.inferences,Z,ce,128)}),rW(l,dMe(A),Qn(m.declaration))}function kri(l,m,D,C){const A=SEe(m,l),w=pT(l.attributes,A,C,D);return AD(C.inferences,w,A),dMe(C)}function Gft(l){if(!l)return ca;const m=ya(l);return zye(l)?m:IN(l.parent)?FD(m):Y1(l.parent)?oEe(m):m}function QMe(l,m,D,C,A){if(zh(l))return kri(l,m,C,A);if(l.kind!==170&&l.kind!==226){const Z=ye(m.typeParameters,Fe=>!!_F(Fe)),ce=hf(l,Z?8:0);if(ce){const Fe=Zs(m);if(NC(Fe)){const Te=jb(l);if(!(!Z&&hf(l,8)!==ce)){const gi=iMe(Vii(Te,1)),Wi=_a(ce,gi),dn=wF(Wi),nu=dn&&dn.typeParameters?DF(ePe(dn,dn.typeParameters)):Wi;AD(A.inferences,nu,Fe,128)}const ut=DW(m.typeParameters,m,A.flags),zt=_a(ce,Te&&Te.returnMapper);AD(ut.inferences,zt,Fe),A.returnMapper=Oe(ut.inferences,gT)?iMe(Gii(ut)):void 0}}}const w=SW(m),I=w?Math.min(Cm(m)-1,D.length):D.length;if(w&&w.flags&262144){const Z=Le(A.inferences,ce=>ce.typeParameter===w);Z&&(Z.impliedArity=Ue(D,MEe,I)<0?D.length-I:void 0)}const U=kC(m);if(U&&NC(U)){const Z=Uft(l);AD(A.inferences,Gft(Z),U)}for(let Z=0;Z=D-1){const Fe=l[D-1];if(MEe(Fe)){const Te=Fe.kind===237?Fe.type:pT(Fe.expression,C,A,w);return H5(Te)?Jft(Te):V1(G5(33,Te,te,Fe.kind===230?Fe.expression:Fe),I)}}const U=[],Z=[],ce=[];for(let Fe=m;Fero(void 0,F.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=C||F.Type_0_does_not_satisfy_the_constraint_1;U||(U=Sf(w,I));const $e=I[Z];if(!Ah($e,xm(_a(ce,U),$e),D?m[Z]:void 0,Te,Fe))return}}return I}function $ft(l){if(X9(l.tagName))return 2;const m=Gh(ya(l.tagName));return S(go(m,1))?0:S(go(m,0))?1:2}function Fri(l,m,D,C,A,w,I){const U=SEe(m,l),Z=pT(l.attributes,U,void 0,C),ce=C&4?_W(Z):Z;return Fe()&&MPe(ce,U,D,A?l.tagName:void 0,l.attributes,void 0,w,I);function Fe(){var Te;if(zMe(l))return!0;const $e=(aE(l)||bk(l))&&!(X9(l.tagName)||gg(l.tagName))?ya(l.tagName):void 0;if(!$e)return!0;const ut=go($e,0);if(!S(ut))return!0;const zt=X4t(l);if(!zt)return!0;const gi=R0(zt,111551,!0,!1,l);if(!gi)return!0;const Wi=Wn(gi),dn=go(Wi,0);if(!S(dn))return!0;let nu=!1,En=0;for(const Nn of dn){const vn=Lg(Nn,0),An=go(vn,0);if(S(An))for(const _n of An){if(nu=!0,F_(_n))return!0;const hu=Cm(_n);hu>En&&(En=hu)}}if(!nu)return!0;let Ii=1/0;for(const Nn of ut){const vn=SE(Nn);vn{A.push(w.expression)}),A}if(l.kind===170)return Ari(l);if(l.kind===226)return[l.left];if(zh(l))return l.attributes.properties.length>0||aE(l)&&l.parent.children.length>0?[l.attributes]:_t;const m=l.arguments||_t,D=zEe(m);if(D>=0){const C=m.slice(0,D);for(let A=D;A{var ce;const Fe=I.target.elementFlags[Z],Te=rie(w,Fe&4?V1(U):U,!!(Fe&12),(ce=I.target.labeledElementDeclarations)==null?void 0:ce[Z]);C.push(Te)}):C.push(w)}return C}return m}function Ari(l){const m=l.expression,D=hze(l);if(D){const C=[];for(const A of D.parameters){const w=Wn(A);C.push(rie(m,w))}return C}return H.fail()}function qft(l,m){return ae.experimentalDecorators?Sri(l,m):2}function Sri(l,m){switch(l.parent.kind){case 263:case 231:return 1;case 172:return eE(l.parent)?3:2;case 174:case 177:case 178:return Ce===0||m.parameters.length<=2?2:3;case 169:return 3;default:return H.fail()}}function Zft(l,m){let D,C;const A=zn(l);if(Iu(l.expression)){const w=C2(A,l.expression.name);D=w.start,C=m?w.length:l.end-D}else{const w=C2(A,l.expression);D=w.start,C=m?w.length:l.end-D}return{start:D,length:C,sourceFile:A}}function aie(l,m,...D){if(Mo(l)){const{sourceFile:C,start:A,length:w}=Zft(l);return"message"in m?Rd(C,A,w,m,...D):b0e(C,m)}else return"message"in m?Su(l,m,...D):Y3(zn(l),l,m)}function Bri(l){if(!Mo(l)||!at(l.expression))return!1;const m=uc(l.expression,l.expression.escapedText,111551,void 0,void 0,!1),D=m==null?void 0:m.valueDeclaration;if(!D||!io(D)||!R2(D.parent)||!j2(D.parent.parent)||!at(D.parent.parent.expression))return!1;const C=sPe(!1);return C?Yp(D.parent.parent.expression,!0)===C:!1}function Yft(l,m,D,C){var A;const w=zEe(D);if(w>-1)return Su(D[w],F.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,Fe;for(const gi of m){const Wi=SE(gi),dn=Cm(gi);WiZ&&(Z=Wi),D.lengthA?I=Math.min(I,Z):ce1&&(En=vn($e,h_,zt,Ii)),En||(En=vn($e,Jf,zt,Ii)),En)return En;if(En=Tri(l,$e,ut,!!D,C),ar(l).resolvedSignature=En,Fe)if(!w&&ce&&(w=F.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Wi)if(Wi.length===1||Wi.length>3){const An=Wi[Wi.length-1];let _n;Wi.length>3&&(_n=ro(_n,F.The_last_overload_gave_the_following_error),_n=ro(_n,F.No_overload_matches_this_call)),w&&(_n=ro(_n,w));const hu=uie(l,ut,An,Jf,0,!0,()=>_n);if(hu)for(const oo of hu)An.declaration&&Wi.length>3&&Es(oo,Su(An.declaration,F.The_last_overload_is_declared_here)),Nn(An,oo),Vs.add(oo);else H.fail("No error for last overload signature")}else{const An=[];let _n=0,hu=Number.MAX_VALUE,oo=0,Eo=0;for(const hn of Wi){const Yr=uie(l,ut,hn,Jf,0,!0,()=>ro(void 0,F.Overload_0_of_1_2_gave_the_following_error,Eo+1,$e.length,vE(hn)));Yr?(Yr.length<=hu&&(hu=Yr.length,oo=Eo),_n=Math.max(_n,Yr.length),An.push(Yr)):H.fail("No error for 3 or fewer overload signatures"),Eo++}const fo=_n>1?An[oo]:Va(An);H.assert(fo.length>0,"No errors reported for 3 or fewer overload signatures");let ka=ro(Vt(fo,jbe),F.No_overload_matches_this_call);w&&(ka=ro(ka,w));const ah=[...ju(fo,hn=>hn.relatedInformation)];let t4;if(ye(fo,hn=>hn.start===fo[0].start&&hn.length===fo[0].length&&hn.file===fo[0].file)){const{file:hn,start:Kn,length:Yr}=fo[0];t4={file:hn,start:Kn,length:Yr,code:ka.code,category:ka.category,messageText:ka,relatedInformation:ah}}else t4=Y3(zn(l),l,ka,ah);Nn(Wi[0],t4),Vs.add(t4)}else if(dn)Vs.add(Yft(l,[dn],ut,w));else if(nu)eze(nu,l.typeArguments,!0,w);else{const An=ti(m,_n=>YMe(_n,Te));An.length===0?Vs.add(wri(l,m,Te,w)):Vs.add(Yft(l,An,ut,w))}return En;function Nn(An,_n){var hu,oo;const Eo=Wi,fo=dn,ka=nu,ah=((oo=(hu=An.declaration)==null?void 0:hu.symbol)==null?void 0:oo.declarations)||_t,hn=ah.length>1?Le(ah,Kn=>$0(Kn)&&H4(Kn.body)):void 0;if(hn){const Kn=dp(hn),Yr=!Kn.typeParameters;vn([Kn],Jf,Yr)&&Es(_n,Su(hn,F.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Wi=Eo,dn=fo,nu=ka}function vn(An,_n,hu,oo=!1){if(Wi=void 0,dn=void 0,nu=void 0,hu){const Eo=An[0];if(Oe(Te)||!IEe(l,ut,Eo,oo))return;if(uie(l,ut,Eo,_n,0,!1,void 0)){Wi=[Eo];return}return Eo}for(let Eo=0;Eo0),eS(l),C||m.length===1||m.some(w=>!!w.typeParameters)?Pri(l,m,D,A):Lri(m)}function Lri(l){const m=qi(l,Z=>Z.thisParameter);let D;m.length&&(D=Qft(m,m.map(lie)));const{min:C,max:A}=mke(l,Nri),w=[];for(let Z=0;Zth(Fe)?ZTF(Fe,Z))))}const I=qi(l,Z=>th(Z)?Cr(Z.parameters):void 0);let U=128;if(I.length!==0){const Z=V1(er(qi(l,Pdt),2));w.push(Xft(I,Z)),U|=1}return l.some(Ode)&&(U|=2),y3(l[0].declaration,void 0,D,w,Ds(l.map(Zs)),void 0,C,U)}function Nri(l){const m=l.parameters.length;return th(l)?m-1:m}function Qft(l,m){return Xft(l,er(m,2))}function Xft(l,m){return CF(Pn(l),m)}function Pri(l,m,D,C){const A=Iri(m,Ni===void 0?D.length:Ni),w=m[A],{typeParameters:I}=w;if(!I)return w;const U=Vft(l)?l.typeArguments:void 0,Z=U?Age(w,Mri(U,I,Qn(l))):zri(l,I,w,D,C);return m[A]=Z,Z}function Mri(l,m,D){const C=l.map(tS);for(;C.length>m.length;)C.pop();for(;C.length=m)return A;I>C&&(C=I,D=A)}return D}function Rri(l,m,D){if(l.expression.kind===108){const Z=kMe(l.expression);if(nt(Z)){for(const ce of l.arguments)ya(ce);return mi}if(!Nt(Z)){const ce=Qg(Yd(l));if(ce){const Fe=D0(Z,ce.typeArguments,ce);return fT(l,Fe,m,D,0)}}return BF(l)}let C,A=ya(l.expression);if($y(l)){const Z=gW(A,l.expression);C=Z===A?0:RN(l)?16:8,A=Z}else C=0;if(A=Aft(A,l.expression,iri),A===ja)return uu;const w=Gh(A);if(Nt(w))return FE(l);const I=go(w,0),U=go(w,1).length;if(oie(A,w,I.length,U))return!Nt(A)&&l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);if(!I.length){if(U)pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A));else{let Z;if(l.arguments.length===1){const ce=zn(l).text;Z1(ce.charCodeAt(gs(ce,l.expression.end,!0)-1))&&(Z=Su(l.expression,F.Are_you_missing_a_semicolon))}ize(l.expression,w,0,Z)}return FE(l)}return D&8&&!l.typeArguments&&I.some(Ori)?(Mmt(l,D),Wu):I.some(Z=>Qn(Z.declaration)&&!!Ise(Z.declaration))?(pt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A)),FE(l)):fT(l,I,m,D,C)}function Ori(l){return!!(l.typeParameters&&$ze(Zs(l)))}function oie(l,m,D,C){return nt(l)||nt(m)&&!!(l.flags&262144)||!D&&!C&&!(m.flags&1048576)&&!(Sg(m).flags&131072)&&ms(l,di)}function jri(l,m,D){if(l.arguments&&Ce<1){const I=zEe(l.arguments);I>=0&&pt(l.arguments[I],F.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=hT(l.expression);if(C===ja)return uu;if(C=Gh(C),Nt(C))return FE(l);if(nt(C))return l.typeArguments&&pt(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);const A=go(C,1);if(A.length){if(!Vri(l,A[0]))return FE(l);if(emt(A,U=>!!(U.flags&4)))return pt(l,F.Cannot_create_an_instance_of_an_abstract_class),FE(l);const I=C.symbol&&tD(C.symbol);return I&&Yu(I,64)?(pt(l,F.Cannot_create_an_instance_of_an_abstract_class),FE(l)):fT(l,A,m,D,0)}const w=go(C,0);if(w.length){const I=fT(l,w,m,D,0);return Ae||(I.declaration&&!AE(I.declaration)&&Zs(I)!==ca&&pt(l,F.Only_a_void_function_can_be_called_with_the_new_keyword),kC(I)===ca&&pt(l,F.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return ize(l.expression,C,1),FE(l)}function emt(l,m){return Ha(l)?Oe(l,D=>emt(D,m)):l.compositeKind===1048576?Oe(l.compositeSignatures,m):m(l)}function tze(l,m){const D=Zc(m);if(!S(D))return!1;const C=D[0];if(C.flags&2097152){const A=C.types,w=gdt(A);let I=0;for(const U of C.types){if(!w[I]&&Gu(U)&3&&(U.symbol===l||tze(l,U)))return!0;I++}return!1}return C.symbol===l?!0:tze(l,C)}function Vri(l,m){if(!m||!m.declaration)return!0;const D=m.declaration,C=E7(D,6);if(!C||D.kind!==176)return!0;const A=tD(D.parent.symbol),w=X0(D.parent.symbol);if(!Wze(l,A)){const I=Yd(l);if(I&&C&4){const U=tS(I);if(tze(D.parent.symbol,U))return!0}return C&2&&pt(l,F.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(w)),C&4&&pt(l,F.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(w)),!1}return!0}function tmt(l,m,D){let C;const A=D===0,w=NF(m),I=w&&go(w,D).length>0;if(m.flags&1048576){const Z=m.types;let ce=!1;for(const Fe of Z)if(go(Fe,D).length!==0){if(ce=!0,C)break}else if(C||(C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(Fe)),C=ro(C,A?F.Not_all_constituents_of_type_0_are_callable:F.Not_all_constituents_of_type_0_are_constructable,gn(m))),ce)break;ce||(C=ro(void 0,A?F.No_constituent_of_type_0_is_callable:F.No_constituent_of_type_0_is_constructable,gn(m))),C||(C=ro(C,A?F.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:F.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,gn(m)))}else C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(m));let U=A?F.This_expression_is_not_callable:F.This_expression_is_not_constructable;if(Mo(l.parent)&&l.parent.arguments.length===0){const{resolvedSymbol:Z}=ar(l);Z&&Z.flags&32768&&(U=F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ro(C,U),relatedMessage:I?F.Did_you_forget_to_use_await:void 0}}function ize(l,m,D,C){const{messageChain:A,relatedMessage:w}=tmt(l,m,D),I=Y3(zn(l),l,A);if(w&&Es(I,Su(l,w)),Mo(l.parent)){const{start:U,length:Z}=Zft(l.parent,!0);I.start=U,I.length=Z}Vs.add(I),imt(m,D,C?Es(I,C):I)}function imt(l,m,D){if(!l.symbol)return;const C=Ur(l.symbol).originatingImport;if(C&&!dm(C)){const A=go(Wn(Ur(l.symbol).target),m);if(!A||!A.length)return;Es(D,Su(C,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Hri(l,m,D){const C=ya(l.tag),A=Gh(C);if(Nt(A))return FE(l);const w=go(A,0),I=go(A,1).length;if(oie(C,A,w.length,I))return BF(l);if(!w.length){if(Dh(l.parent)){const U=Su(l.tag,F.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Vs.add(U),FE(l)}return ize(l.tag,A,0),FE(l)}return fT(l,w,m,D,0)}function Kri(l){switch(l.parent.kind){case 263:case 231:return F.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return F.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return F.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return F.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return H.fail()}}function Wri(l,m,D){const C=ya(l.expression),A=Gh(C);if(Nt(A))return FE(l);const w=go(A,0),I=go(A,1).length;if(oie(C,A,w.length,I))return BF(l);if($ri(l,w)&&!Cf(l.expression)){const Z=Hc(l.expression,!1);return pt(l,F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Z),FE(l)}const U=Kri(l);if(!w.length){const Z=tmt(l.expression,A,0),ce=ro(Z.messageChain,U),Fe=Y3(zn(l.expression),l.expression,ce);return Z.relatedMessage&&Es(Fe,Su(l.expression,Z.relatedMessage)),Vs.add(Fe),imt(A,0,Fe),FE(l)}return fT(l,w,m,D,0,U)}function OEe(l,m){const D=SF(l),C=D&&$f(D),A=C&&kf(C,Rm.Element,788968),w=A&&Yt.symbolToEntityName(A,788968,l),I=q.createFunctionTypeNode(void 0,[q.createParameterDeclaration(void 0,void 0,"props",void 0,Yt.typeToTypeNode(m,l))],w?q.createTypeReferenceNode(w,void 0):q.createKeywordTypeNode(133)),U=Hs(1,"props");return U.links.type=m,y3(I,void 0,void 0,[U],A?X0(A):Ot,void 0,1,0)}function Gri(l,m,D){if(X9(l.tagName)){const I=vft(l),U=OEe(l,I);return A6(pT(l.attributes,SEe(U,l),void 0,0),I,l.tagName,l.attributes),S(l.typeArguments)&&(L(l.typeArguments,ls),Vs.add(H8(zn(l),l.typeArguments,F.Expected_0_type_arguments_but_got_1,0,S(l.typeArguments)))),U}const C=ya(l.tagName),A=Gh(C);if(Nt(A))return FE(l);const w=Dft(C,l);return oie(C,A,w.length,0)?BF(l):w.length===0?(pt(l.tagName,F.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Hc(l.tagName)),FE(l)):fT(l,w,m,D,0)}function Jri(l,m,D){const C=ya(l.right);if(!nt(C)){const A=gze(C);if(A){const w=Gh(A);if(Nt(w))return FE(l);const I=go(w,0),U=go(w,1);if(oie(A,w,I.length,U.length))return BF(l);if(I.length)return fT(l,I,m,D,0)}else if(!(o_e(C)||F6(C,di)))return pt(l.right,F.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),FE(l)}return mi}function $ri(l,m){return m.length&&ye(m,D=>D.minArgumentCount===0&&!th(D)&&D.parameters.length1?Rc(l.arguments[1]):void 0;for(let w=2;w{const I=vm(A);qge(w,I)||q1t(A,w,D,F.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)})}function iai(l){const m=ya(l.expression),D=gW(m,l.expression);return sEe(FD(D),l,D!==m)}function nai(l){return l.flags&64?iai(l):FD(ya(l.expression))}function lmt(l){if(ipt(l),L(l.typeArguments,ls),l.kind===233){const D=i5(l.parent);D.kind===226&&D.operatorToken.kind===104&&S2(l,D.right)&&pt(l,F.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const m=l.kind===233?ya(l.expression):N2(l.exprName)?Ute(l.exprName):ya(l.exprName);return cmt(m,l)}function cmt(l,m){const D=m.typeArguments;if(l===ja||Nt(l)||!Oe(D))return l;let C=!1,A;const w=U(l),I=C?A:l;return I&&Vs.add(H8(zn(m),D,F.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,gn(I))),w;function U(ce){let Fe=!1,Te=!1;const $e=ut(ce);return C||(C=Te),Fe&&!Te&&(A??(A=ce)),$e;function ut(zt){if(zt.flags&524288){const gi=Ag(zt),Wi=Z(gi.callSignatures),dn=Z(gi.constructSignatures);if(Fe||(Fe=gi.callSignatures.length!==0||gi.constructSignatures.length!==0),Te||(Te=Wi.length!==0||dn.length!==0),Wi!==gi.callSignatures||dn!==gi.constructSignatures){const nu=Ol(void 0,gi.members,Wi,dn,gi.indexInfos);return nu.objectFlags|=8388608,nu.node=m,nu}}else if(zt.flags&58982400){const gi=Wh(zt);if(gi){const Wi=ut(gi);if(Wi!==gi)return Wi}}else{if(zt.flags&1048576)return hl(zt,U);if(zt.flags&2097152)return Ds(Lu(zt.types,ut))}return zt}}function Z(ce){const Fe=ti(ce,Te=>!!Te.typeParameters&&YMe(Te,D));return Lu(Fe,Te=>{const $e=eze(Te,D,!0);return $e?rW(Te,$e,Qn(Te.declaration)):Te})}}function uai(l){return ls(l.type),aze(l.expression,l.type)}function aze(l,m,D){const C=ya(l,D),A=Ar(m);if(Nt(A))return A;const w=Tn(m.parent,I=>I.kind===238||I.kind===357);return A6(C,A,w,l,F.Type_0_does_not_satisfy_the_expected_type_1),C}function rai(l){return eci(l),l.keywordToken===105?oze(l):l.keywordToken===102?aai(l):H.assertNever(l.keywordToken)}function dmt(l){switch(l.keywordToken){case 102:return Zdt();case 105:const m=oze(l);return Nt(m)?Ot:bai(m);default:H.assertNever(l.keywordToken)}}function oze(l){const m=eye(l);if(m)if(m.kind===176){const D=_u(m.parent);return Wn(D)}else{const D=_u(m);return Wn(D)}else return pt(l,F.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ot}function aai(l){ne===100||ne===199?zn(l).impliedNodeFormat!==99&&pt(l,F.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ne<6&&ne!==4&&pt(l,F.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const m=zn(l);return H.assert(!!(m.flags&8388608),"Containing file is missing import meta node flag."),l.name.escapedText==="meta"?qdt():Ot}function lie(l){const m=l.valueDeclaration;return Vd(Wn(l),!1,!!m&&(Nx(m)||PP(m)))}function sze(l,m,D="arg"){return l?(H.assert(at(l.name)),l.name.escapedText):`${D}_${m}`}function Iz(l,m,D){const C=l.parameters.length-(th(l)?1:0);if(m=C-1)return m===C-1?w:V1(qf(w,Qt));const I=[],U=[],Z=[];for(let ce=m;ce!(Z&1)),U=I<0?w.target.fixedLength:I;U>0&&(A=l.parameters.length-1+U)}}if(A===void 0){if(!D&&l.flags&32)return 0;A=l.minArgumentCount}if(C)return A;for(let w=A-1;w>=0;w--){const I=Lg(l,w);if(Ic(I,Hft).flags&131072)break;A=w}l.resolvedMinArgumentCount=A}return l.resolvedMinArgumentCount}function F_(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]);return!xs(m)||m.target.hasRestElement}return!1}function AW(l){if(th(l)){const m=Wn(l.parameters[l.parameters.length-1]);if(!xs(m))return m;if(m.target.hasRestElement)return bz(m,m.target.fixedLength)}}function SW(l){const m=AW(l);return m&&!A4(m)&&!nt(m)?m:void 0}function lze(l){return cze(l,Ku)}function cze(l,m){return l.parameters.length>0?Lg(l,0):m}function mmt(l,m,D){const C=l.parameters.length-(th(l)?1:0);for(let A=0;A=0);const w=hc(C.parent)?Wn(_u(C.parent.parent)):G4t(C.parent),I=hc(C.parent)?te:J4t(C.parent),U=wg(A),Z=yg("target",w),ce=yg("propertyKey",I),Fe=yg("parameterIndex",U);D.decoratorSignature=MW(void 0,void 0,[Z,ce,Fe],ca);break}case 174:case 177:case 178:case 172:{const C=m;if(!mr(C.parent))break;const A=G4t(C),w=yg("target",A),I=J4t(C),U=yg("propertyKey",I),Z=ko(C)?ca:n1t(tS(C));if(Ce!==0&&(!ko(m)||eE(m))){const Fe=n1t(tS(C)),Te=yg("descriptor",Fe);D.decoratorSignature=MW(void 0,void 0,[w,U,Te],er([Z,ca]))}else D.decoratorSignature=MW(void 0,void 0,[w,U],er([Z,ca]));break}}return D.decoratorSignature===mi?void 0:D.decoratorSignature}function hze(l){return ve?Cai(l):vai(l)}function die(l){const m=Fte(!0);return m!==Ka?(l=W5(Vz(l))||on,R5(m,[l])):on}function Emt(l){const m=e1t(!0);return m!==Ka?(l=W5(Vz(l))||on,R5(m,[l])):on}function hie(l,m){const D=die(m);return D===on?(pt(l,dm(l)?F.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ot):(sPe(!0)||pt(l,dm(l)?F.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),D)}function bai(l){const m=Hs(0,"NewTargetExpression"),D=Hs(4,"target",8);D.parent=m,D.links.type=l;const C=Vo([D]);return m.members=C,Ol(m,C,_t,_t,_t)}function HEe(l,m){if(!l.body)return Ot;const D=kd(l),C=(D&2)!==0,A=(D&1)!==0;let w,I,U,Z=ca;if(l.body.kind!==241)w=Rc(l.body,m&&m&-9),C&&(w=Vz(PW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(A){const ce=bmt(l,m);ce?ce.length>0&&(w=er(ce,2)):Z=Ku;const{yieldTypes:Fe,nextTypes:Te}=yai(l,m);I=Oe(Fe)?er(Fe,2):void 0,U=Oe(Te)?Ds(Te):void 0}else{const ce=bmt(l,m);if(!ce)return D&2?hie(l,Ku):Ku;if(ce.length===0){const Fe=yEe(l,void 0),Te=Fe&&(bie(Fe,D)||ca).flags&32768?te:ca;return D&2?hie(l,Te):Te}w=er(ce,2)}if(w||I||U){if(I&&hEe(l,I,3),w&&hEe(l,w,1),U&&hEe(l,U,2),w&&Tg(w)||I&&Tg(I)||U&&Tg(U)){const ce=LMe(l),Fe=ce?ce===dp(l)?A?void 0:w:FEe(Zs(ce),l,void 0):void 0;A?(I=qPe(I,Fe,0,C),w=qPe(w,Fe,1,C),U=qPe(U,Fe,2,C)):w=Bii(w,Fe,C)}I&&(I=vm(I)),w&&(w=vm(w)),U&&(U=vm(U))}return A?_mt(I||Ku,w||Z,U||rft(2,l)||on,C):C?die(w||Z):w||Z}function _mt(l,m,D,C){const A=C?S0:ud,w=A.getGlobalGeneratorType(!1);if(l=A.resolveIterationType(l,void 0)||on,m=A.resolveIterationType(m,void 0)||on,D=A.resolveIterationType(D,void 0)||on,w===Ka){const I=A.getGlobalIterableIteratorType(!1),U=I!==Ka?c4t(I,A):void 0,Z=U?U.returnType:me,ce=U?U.nextType:te;return ms(m,Z)&&ms(ce,D)?I!==Ka?oW(I,[l]):(A.getGlobalIterableIteratorType(!0),Ko):(A.getGlobalGeneratorType(!0),Ko)}return oW(w,[l,m,D])}function yai(l,m){const D=[],C=[],A=(kd(l)&2)!==0;return Kbe(l.body,w=>{const I=w.expression?ya(w.expression,m):we;xa(D,Dmt(w,I,me,A));let U;if(w.asteriskToken){const Z=e_e(I,A?19:17,w.expression);U=Z&&Z.nextType}else U=hf(w,void 0);U&&xa(C,U)}),{yieldTypes:D,nextTypes:C}}function Dmt(l,m,D,C){const A=l.expression||l,w=l.asteriskToken?G5(C?19:17,m,D,A):m;return C?NF(w,A,l.asteriskToken?F.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:F.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w}function xmt(l,m,D){let C=0;for(let A=0;A=m?D[A]:void 0;C|=w!==void 0?Vde.get(w)||32768:0}return C}function vmt(l){const m=ar(l);if(m.isExhaustive===void 0){m.isExhaustive=0;const D=kai(l);m.isExhaustive===0&&(m.isExhaustive=D)}else m.isExhaustive===0&&(m.isExhaustive=!1);return m.isExhaustive}function kai(l){if(l.expression.kind===221){const C=jht(l);if(!C)return!1;const A=xD(Rc(l.expression.expression)),w=xmt(0,0,C);return A.flags&3?(556800&w)===556800:!yE(A,I=>Lz(I,w)===w)}const m=Rc(l.expression);if(!pW(m))return!1;const D=EEe(l);return!D.length||Oe(D,Fii)?!1:bni(hl(m,Jh),D)}function Cmt(l){return l.endFlowNode&&Jte(l.endFlowNode)}function bmt(l,m){const D=kd(l),C=[];let A=Cmt(l),w=!1;if(y2(l.body,I=>{let U=I.expression;if(U){if(U=l0(U,!0),D&2&&U.kind===223&&(U=l0(U.expression,!0)),U.kind===213&&U.expression.kind===80&&Rc(U.expression).symbol===l.symbol){w=!0;return}let Z=Rc(U,m&&m&-9);D&2&&(Z=Vz(PW(Z,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Z.flags&131072&&(w=!0),xa(C,Z)}else A=!0}),!(C.length===0&&!A&&(w||Fai(l))))return fe&&C.length&&A&&!(AE(l)&&C.some(I=>I.symbol===l.symbol))&&xa(C,te),C}function Fai(l){switch(l.kind){case 218:case 219:return!0;case 174:return l.parent.kind===210;default:return!1}}function fze(l,m){s(D);return;function D(){const C=kd(l),A=m&&bie(m,C);if(A&&(jl(A,16384)||A.flags&32769)||l.kind===173||Ql(l.body)||l.body.kind!==241||!Cmt(l))return;const w=l.flags&1024,I=U4(l)||l;if(A&&A.flags&131072)pt(I,F.A_function_returning_never_cannot_have_a_reachable_end_point);else if(A&&!w)pt(I,F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(A&&fe&&!ms(te,A))pt(I,F.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ae.noImplicitReturns){if(!A){if(!w)return;const U=Zs(dp(l));if(_4t(l,U))return}pt(I,F.Not_all_code_paths_return_a_value)}}}function ymt(l,m){if(H.assert(l.kind!==174||zp(l)),eS(l),A0(l)&&Hz(l,l.name),m&&m&4&&k4(l)){if(!U4(l)&&!fZ(l)){const C=yW(l);if(C&&NC(Zs(C))){const A=ar(l);if(A.contextFreeType)return A.contextFreeType;const w=HEe(l,m),I=y3(void 0,void 0,void 0,_t,w,void 0,0,64),U=Ol(l.symbol,se,[I],_t,_t);return U.objectFlags|=262144,A.contextFreeType=U}}return Ri}return!d_e(l)&&l.kind===218&&Zze(l),Aai(l,m),Wn(_u(l))}function Aai(l,m){const D=ar(l);if(!(D.flags&64)){const C=yW(l);if(!(D.flags&64)){D.flags|=64;const A=Ki(go(Wn(_u(l)),0));if(!A)return;if(k4(l))if(C){const w=jb(l);let I;if(m&&m&2){mmt(A,C,w);const U=AW(C);U&&U.flags&262144&&(I=lT(C,w.nonFixingMapper))}I||(I=w?lT(C,w.mapper):C),lai(A,I)}else cai(A);else if(C&&!l.typeParameters&&C.parameters.length>l.parameters.length){const w=jb(l);m&&m&2&&mmt(A,C,w)}if(C&&!uT(l)&&!A.resolvedReturnType){const w=HEe(l,m);A.resolvedReturnType||(A.resolvedReturnType=w)}TW(l)}}}function Sai(l){H.assert(l.kind!==174||zp(l));const m=kd(l),D=uT(l);if(fze(l,D),l.body)if(U4(l)||Zs(dp(l)),l.body.kind===241)ls(l.body);else{const C=ya(l.body),A=D&&bie(D,m);if(A)if((m&3)===2){const w=PW(C,!1,l.body,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);A6(w,A,l.body,l.body)}else A6(C,A,l.body,l.body)}}function KEe(l,m,D,C=!1){if(!ms(m,Ya)){const A=C&&jz(m);return bh(l,!!A&&ms(A,Ya),D),!1}return!0}function Bai(l){if(!Mo(l)||!rk(l))return!1;const m=Rc(l.arguments[2]);if(he(m,"value")){const A=qo(m,"writable"),w=A&&Wn(A);if(!w||w===Ui||w===Sn)return!0;if(A&&A.valueDeclaration&&Jc(A.valueDeclaration)){const I=A.valueDeclaration.initializer,U=ya(I);if(U===Ui||U===Sn)return!0}return!1}return!qo(m,"set")}function Ng(l){return!!(Gl(l)&8||l.flags&4&&l4(l)&8||l.flags&3&&OMe(l)&6||l.flags&98304&&!(l.flags&65536)||l.flags&8||Oe(l.declarations,Bai))}function kmt(l,m,D){var C,A;if(D===0)return!1;if(Ng(m)){if(m.flags&4&&I0(l)&&l.expression.kind===110){const w=Nm(l);if(!(w&&(w.kind===176||AE(w))))return!0;if(m.valueDeclaration){const I=Xn(m.valueDeclaration),U=w.parent===m.valueDeclaration.parent,Z=w===m.valueDeclaration.parent,ce=I&&((C=m.parent)==null?void 0:C.valueDeclaration)===w.parent,Fe=I&&((A=m.parent)==null?void 0:A.valueDeclaration)===w;return!(U||Z||ce||Fe)}}return!0}if(I0(l)){const w=l0(l.expression);if(w.kind===80){const I=ar(w).resolvedSymbol;if(I.flags&2097152){const U=rp(I);return!!U&&U.kind===274}}}return!1}function BW(l,m,D){const C=Dc(l,7);return C.kind!==80&&!I0(C)?(pt(l,m),!1):C.flags&64?(pt(l,D),!1):!0}function wai(l){ya(l.expression);const m=l0(l.expression);if(!I0(m))return pt(m,F.The_operand_of_a_delete_operator_must_be_a_property_reference),pr;Iu(m)&&ea(m.name)&&pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const D=ar(m),C=sp(D.resolvedSymbol);return C&&(Ng(C)?pt(m,F.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Tai(m,C)),pr}function Tai(l,m){const D=Wn(m);fe&&!(D.flags&131075)&&!(Ve?m.flags&16777216:fp(D,16777216))&&pt(l,F.The_operand_of_a_delete_operator_must_be_optional)}function Lai(l){return ya(l.expression),Nw}function Nai(l){return eS(l),we}function Fmt(l){let m=!1;const D=dq(l);if(D&&zl(D)){const C=Gx(l)?F.await_expression_cannot_be_used_inside_a_class_static_block:F.await_using_statements_cannot_be_used_inside_a_class_static_block;pt(l,C),m=!0}else if(!(l.flags&65536))if(fq(l)){const C=zn(l);if(!Kb(C)){let A;if(!s7(C,ae)){A??(A=QE(C,l.pos));const w=Gx(l)?F.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:F.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,I=Rd(C,A.start,A.length,w);Vs.add(I),m=!0}switch(ne){case 100:case 199:if(C.impliedNodeFormat===1){A??(A=QE(C,l.pos)),Vs.add(Rd(C,A.start,A.length,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),m=!0;break}case 7:case 99:case 4:if(Ce>=4)break;default:A??(A=QE(C,l.pos));const w=Gx(l)?F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;Vs.add(Rd(C,A.start,A.length,w)),m=!0;break}}}else{const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos),w=Gx(l)?F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,I=Rd(C,A.start,A.length,w);if(D&&D.kind!==176&&!(kd(D)&2)){const U=Su(D,F.Did_you_mean_to_mark_this_function_as_async);Es(I,U)}Vs.add(I),m=!0}}return Gx(l)&&AMe(l)&&(pt(l,F.await_expressions_cannot_be_used_in_a_parameter_initializer),m=!0),m}function Pai(l){s(()=>Fmt(l));const m=ya(l.expression),D=PW(m,!0,l,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return D===m&&!Nt(D)&&!(m.flags&3)&&i1(!1,Su(l,F.await_has_no_effect_on_the_type_of_this_expression)),D}function Mai(l){const m=ya(l.operand);if(m===ja)return ja;switch(l.operand.kind){case 9:switch(l.operator){case 41:return Z9(wg(-l.operand.text));case 40:return Z9(wg(+l.operand.text))}break;case 10:if(l.operator===41)return Z9(jge({negative:!0,base10Value:SP(l.operand.text)}))}switch(l.operator){case 40:case 41:case 55:return kE(m,l.operand),fie(m,12288)&&pt(l.operand,F.The_0_operator_cannot_be_applied_to_type_symbol,Uo(l.operator)),l.operator===40?(fie(m,2112)&&pt(l.operand,F.Operator_0_cannot_be_applied_to_type_1,Uo(l.operator),gn(kD(m))),Qt):mze(m);case 54:Tze(m,l.operand);const D=Lz(m,12582912);return D===4194304?Ui:D===8388608?du:pr;case 46:case 47:return KEe(l.operand,kE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&BW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mze(m)}return Ot}function zai(l){const m=ya(l.operand);return m===ja?ja:(KEe(l.operand,kE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&BW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),mze(m))}function mze(l){return jl(l,2112)?u1(l,3)||jl(l,296)?Ya:Li:Qt}function fie(l,m){if(jl(l,m))return!0;const D=xD(l);return!!D&&jl(D,m)}function jl(l,m){if(l.flags&m)return!0;if(l.flags&3145728){const D=l.types;for(const C of D)if(jl(C,m))return!0}return!1}function u1(l,m,D){return l.flags&m?!0:D&&l.flags&114691?!1:!!(m&296)&&ms(l,Qt)||!!(m&2112)&&ms(l,Li)||!!(m&402653316)&&ms(l,ct)||!!(m&528)&&ms(l,pr)||!!(m&16384)&&ms(l,ca)||!!(m&131072)&&ms(l,Ku)||!!(m&65536)&&ms(l,it)||!!(m&32768)&&ms(l,te)||!!(m&4096)&&ms(l,Xu)||!!(m&67108864)&&ms(l,as)}function mie(l,m,D){return l.flags&1048576?ye(l.types,C=>mie(C,m,D)):u1(l,m,D)}function WEe(l){return!!(Gu(l)&16)&&!!l.symbol&&pze(l.symbol)}function pze(l){return(l.flags&128)!==0}function gze(l){const m=h4t("hasInstance"),D=bC(l,m);if(D){const C=Wn(D);if(C&&go(C,0).length!==0)return C}}function Iai(l,m,D,C,A){if(D===ja||C===ja)return ja;!nt(D)&&mie(D,402784252)&&pt(l,F.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),H.assert(Hq(l.parent));const w=mT(l.parent,void 0,A);if(w===Wu)return ja;const I=Zs(w);return Ah(I,pr,m,F.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),pr}function Rai(l){return yE(l,m=>m===Il||!!(m.flags&2097152)&&yD(xD(m)))}function Oai(l,m,D,C){if(D===ja||C===ja)return ja;if(ea(l)){if(Ce<99&&rd(l,2097152),!ar(l).resolvedSymbol&&Yd(l)){const A=GMe(l,C.symbol,!0);Pft(l,C,A)}}else Ah(kE(D,l),Fn,l);return Ah(kE(C,m),as,m)&&Rai(C)&&pt(m,F.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,gn(C)),pr}function jai(l,m,D){const C=l.properties;if(fe&&C.length===0)return kE(m,l);for(let A=0;Abz(ce,D)):V1(C);return LF(U,Z,A)}}}}function LF(l,m,D,C){let A;if(l.kind===304){const w=l;w.objectAssignmentInitializer&&(fe&&!fp(ya(w.objectAssignmentInitializer),16777216)&&(m=mp(m,524288)),Gai(w.name,w.equalsToken,w.objectAssignmentInitializer,D)),A=l.name}else A=l;return A.kind===226&&A.operatorToken.kind===64&&(We(A,D),A=A.left,fe&&(m=mp(m,524288))),A.kind===210?jai(A,m,C):A.kind===209?Vai(A,m,D):Hai(A,m,D)}function Hai(l,m,D){const C=ya(l,D),A=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return BW(l,A,w)&&A6(m,C,l,l),T8(l)&&rd(l.parent,1048576),m}function pie(l){switch(l=l0(l),l.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 pie(l.whenTrue)&&pie(l.whenFalse);case 226:return u5(l.operatorToken.kind)?!1:pie(l.left)&&pie(l.right);case 224:case 225:switch(l.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function Eze(l,m){return(m.flags&98304)!==0||qge(l,m)}function Kai(){const l=kY(m,D,C,A,w,I);return($e,ut)=>{const zt=l($e,ut);return H.assertIsDefined(zt),zt};function m($e,ut,zt){return ut?(ut.stackIndex++,ut.skip=!1,ce(ut,void 0),Te(ut,void 0)):ut={checkMode:zt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Qn($e)&&l7($e)?(ut.skip=!0,Te(ut,ya($e.right,zt)),ut):(Wai($e),$e.operatorToken.kind===64&&($e.left.kind===210||$e.left.kind===209)&&(ut.skip=!0,Te(ut,LF($e.left,ya($e.right,zt),zt,$e.right.kind===110))),ut)}function D($e,ut,zt){if(!ut.skip)return U(ut,$e)}function C($e,ut,zt){if(!ut.skip){const gi=Fe(ut);H.assertIsDefined(gi),ce(ut,gi),Te(ut,void 0);const Wi=$e.kind;if(Wj(Wi)){let dn=zt.parent;for(;dn.kind===217||Gj(dn);)dn=dn.parent;(Wi===56||xk(dn))&&wze(zt.left,gi,xk(dn)?dn.thenStatement:void 0),Tze(gi,zt.left)}}}function A($e,ut,zt){if(!ut.skip)return U(ut,$e)}function w($e,ut){let zt;if(ut.skip)zt=Fe(ut);else{const gi=Z(ut);H.assertIsDefined(gi);const Wi=Fe(ut);H.assertIsDefined(Wi),zt=Bmt($e.left,$e.operatorToken,$e.right,gi,Wi,ut.checkMode,$e)}return ut.skip=!1,ce(ut,void 0),Te(ut,void 0),ut.stackIndex--,zt}function I($e,ut,zt){return Te($e,ut),$e}function U($e,ut){if(Xn(ut))return ut;Te($e,ya(ut,$e.checkMode))}function Z($e){return $e.typeStack[$e.stackIndex]}function ce($e,ut){$e.typeStack[$e.stackIndex]=ut}function Fe($e){return $e.typeStack[$e.stackIndex+1]}function Te($e,ut){$e.typeStack[$e.stackIndex+1]=ut}}function Wai(l){const{left:m,operatorToken:D,right:C}=l;D.kind===61&&(Xn(m)&&(m.operatorToken.kind===57||m.operatorToken.kind===56)&&Zi(m,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(m.operatorToken.kind),Uo(D.kind)),Xn(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&Zi(C,F._0_and_1_operations_cannot_be_mixed_without_parentheses,Uo(C.operatorToken.kind),Uo(D.kind)))}function Gai(l,m,D,C,A){const w=m.kind;if(w===64&&(l.kind===210||l.kind===209))return LF(l,ya(D,C),C,D.kind===110);let I;Wj(w)?I=Kz(l,C):I=ya(l,C);const U=ya(D,C);return Bmt(l,m,D,I,U,C,A)}function Bmt(l,m,D,C,A,w,I){const U=m.kind;switch(U){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(C===ja||A===ja)return ja;C=kE(C,l),A=kE(A,D);let Ii;if(C.flags&528&&A.flags&528&&(Ii=$e(m.kind))!==void 0)return pt(I||m,F.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,Uo(m.kind),Uo(Ii)),Qt;{const An=KEe(l,C,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_n=KEe(D,A,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let hu;if(u1(C,3)&&u1(A,3)||!(jl(C,2112)||jl(A,2112)))hu=Qt;else if(Z(C,A)){switch(U){case 50:case 73:Wi();break;case 43:case 68:Ce<3&&pt(I,F.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}hu=Li}else Wi(Z),hu=Ot;return An&&_n&&ut(hu),hu}case 40:case 65:if(C===ja||A===ja)return ja;!u1(C,402653316)&&!u1(A,402653316)&&(C=kE(C,l),A=kE(A,D));let Nn;return u1(C,296,!0)&&u1(A,296,!0)?Nn=Qt:u1(C,2112,!0)&&u1(A,2112,!0)?Nn=Li:u1(C,402653316,!0)||u1(A,402653316,!0)?Nn=ct:(nt(C)||nt(A))&&(Nn=Nt(C)||Nt(A)?Ot:me),Nn&&!Te(U)?Nn:Nn?(U===65&&ut(Nn),Nn):(Wi((_n,hu)=>u1(_n,402655727)&&u1(hu,402655727)),me);case 30:case 32:case 33:case 34:return Te(U)&&(C=$Pe(kE(C,l)),A=$Pe(kE(A,D)),gi((An,_n)=>{if(nt(An)||nt(_n))return!0;const hu=ms(An,Ya),oo=ms(_n,Ya);return hu&&oo||!hu&&!oo&&Nte(An,_n)})),pr;case 35:case 36:case 37:case 38:if(!(w&&w&64)){if(($se(l)||$se(D))&&(!Qn(l)||U===37||U===38)){const An=U===35||U===37;pt(I,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,An?"false":"true")}nu(I,U,l,D),gi((An,_n)=>Eze(An,_n)||Eze(_n,An))}return pr;case 104:return Iai(l,D,C,A,w);case 103:return Oai(l,D,C,A);case 56:case 77:{const An=fp(C,4194304)?er([Lii(fe?C:kD(A)),A]):C;return U===77&&ut(A),An}case 57:case 76:{const An=fp(C,8388608)?er([FD(fht(C)),A],2):C;return U===76&&ut(A),An}case 61:case 78:{const An=fp(C,262144)?er([FD(C),A],2):C;return U===78&&ut(A),An}case 64:const vn=Xn(l.parent)?Xl(l.parent):0;return ce(vn,A),zt(vn)?((!(A.flags&524288)||vn!==2&&vn!==6&&!bD(A)&&!pMe(A)&&!(Gu(A)&1))&&ut(A),C):(ut(A),A);case 28:if(!ae.allowUnreachableCode&&pie(l)&&!Fe(l.parent)){const An=zn(l),_n=An.text,hu=gs(_n,l.pos);An.parseDiagnostics.some(Eo=>Eo.code!==F.JSX_expressions_must_have_one_parent_element.code?!1:Nse(Eo,hu))||pt(l,F.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return A;default:return H.fail()}function Z(Ii,Nn){return u1(Ii,2112)&&u1(Nn,2112)}function ce(Ii,Nn){if(Ii===2)for(const vn of D6(Nn)){const An=Wn(vn);if(An.symbol&&An.symbol.flags&32){const _n=vn.escapedName,hu=uc(vn.valueDeclaration,_n,788968,void 0,_n,!1);hu!=null&&hu.declarations&&hu.declarations.some(PB)&&(kg(hu,F.Duplicate_identifier_0,Qr(_n),vn),kg(vn,F.Duplicate_identifier_0,Qr(_n),hu))}}}function Fe(Ii){return Ii.parent.kind===217&&Of(Ii.left)&&Ii.left.text==="0"&&(Mo(Ii.parent.parent)&&Ii.parent.parent.expression===Ii.parent||Ii.parent.parent.kind===215)&&(I0(Ii.right)||at(Ii.right)&&Ii.right.escapedText==="eval")}function Te(Ii){const Nn=fie(C,12288)?l:fie(A,12288)?D:void 0;return Nn?(pt(Nn,F.The_0_operator_cannot_be_applied_to_type_symbol,Uo(Ii)),!1):!0}function $e(Ii){switch(Ii){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function ut(Ii){u5(U)&&s(Nn);function Nn(){let vn=C;if(mM(m.kind)&&l.kind===211&&(vn=TEe(l,void 0,!0)),BW(l,F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let An;if(Ve&&Iu(l)&&jl(Ii,32768)){const _n=he(b1(l.expression),l.name.escapedText);Yge(Ii,_n)&&(An=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}A6(Ii,vn,l,D,An)}}}function zt(Ii){var Nn;switch(Ii){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const vn=Dm(l),An=l7(D);return!!An&&ys(An)&&!!((Nn=vn==null?void 0:vn.exports)!=null&&Nn.size);default:return!1}}function gi(Ii){return Ii(C,A)?!1:(Wi(Ii),!0)}function Wi(Ii){let Nn=!1;const vn=I||m;if(Ii){const Eo=W5(C),fo=W5(A);Nn=!(Eo===C&&fo===A)&&!!(Eo&&fo)&&Ii(Eo,fo)}let An=C,_n=A;!Nn&&Ii&&([An,_n]=Jai(C,A,Ii));const[hu,oo]=h6(An,_n);dn(vn,Nn,hu,oo)||bh(vn,Nn,F.Operator_0_cannot_be_applied_to_types_1_and_2,Uo(m.kind),hu,oo)}function dn(Ii,Nn,vn,An){switch(m.kind){case 37:case 35:case 38:case 36:return bh(Ii,Nn,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,vn,An);default:return}}function nu(Ii,Nn,vn,An){const _n=En(l0(vn)),hu=En(l0(An));if(_n||hu){const oo=pt(Ii,F.This_condition_will_always_return_0,Uo(Nn===37||Nn===35?97:112));if(_n&&hu)return;const Eo=Nn===38||Nn===36?Uo(54):"",fo=_n?An:vn,ka=l0(fo);Es(oo,Su(fo,F.Did_you_mean_0,`${Eo}Number.isNaN(${ec(ka)?zf(ka):"..."})`))}}function En(Ii){if(at(Ii)&&Ii.escapedText==="NaN"){const Nn=Rei();return!!Nn&&Nn===Zp(Ii)}return!1}}function Jai(l,m,D){let C=l,A=m;const w=kD(l),I=kD(m);return D(w,I)||(C=w,A=I),[C,A]}function $ai(l){s($e);const m=Nm(l);if(!m)return me;const D=kd(m);if(!(D&1))return me;const C=(D&2)!==0;l.asteriskToken&&(C&&Ce<99&&rd(l,26624),!C&&Ce<2&&ae.downlevelIteration&&rd(l,256));let A=uT(m);A&&A.flags&1048576&&(A=Ic(A,ut=>vze(ut,D,void 0)));const w=A&&E4t(A,C),I=w&&w.yieldType||me,U=w&&w.nextType||me,Z=C?NF(U)||me:U,ce=l.expression?ya(l.expression):we,Fe=Dmt(l,ce,Z,C);if(A&&Fe&&A6(Fe,I,l.expression||l,l.expression),l.asteriskToken)return Nze(C?19:17,1,ce,l.expression)||me;if(A)return Hb(2,A,C)||me;let Te=rft(2,m);return Te||(Te=me,s(()=>{if(Ae&&!Dke(l)){const ut=hf(l,void 0);(!ut||nt(ut))&&pt(l,F.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function $e(){l.flags&16384||r1(l,F.A_yield_expression_is_only_allowed_in_a_generator_body),AMe(l)&&pt(l,F.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Uai(l,m){const D=Kz(l.condition,m);wze(l.condition,D,l.whenTrue);const C=ya(l.whenTrue,m),A=ya(l.whenFalse,m);return er([C,A],2)}function wmt(l){const m=l.parent;return Cf(m)&&wmt(m)||U0(m)&&m.argumentExpression===l}function qai(l){const m=[l.head.text],D=[];for(const A of l.templateSpans){const w=ya(A.expression);fie(w,12288)&&pt(A.expression,F.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),m.push(A.literal.text),D.push(ms(w,c0)?w:ct)}if(Rz(l)||wmt(l)||yE(hf(l,void 0)||on,Zai))return xF(m,D);const C=l.parent.kind!==215&&L4t(l);return C?Z9(df(C)):ct}function Zai(l){return!!(l.flags&134217856||l.flags&58982400&&jl(Wh(l)||on,402653316))}function Yai(l){return W2(l)&&!bk(l.parent)?l.parent.parent:l}function pT(l,m,D,C){const A=Yai(l);Zte(A,m,!1),Dui(A,D);const w=ya(l,C|1|(D?2:0));D&&D.intraExpressionInferenceSites&&(D.intraExpressionInferenceSites=void 0);const I=jl(w,2944)&&GEe(w,FEe(m,l,void 0))?Jh(w):w;return xui(),bW(),I}function Rc(l,m){if(m)return ya(l,m);const D=ar(l);if(!D.resolvedType){const C=Xe,A=bn;Xe=Dt,bn=void 0,D.resolvedType=ya(l,m),bn=A,Xe=C}return D.resolvedType}function Tmt(l){return l=l0(l,!0),l.kind===216||l.kind===234||tM(l)}function wW(l,m,D){const C=Dj(l);if(Qn(l)){const w=gZ(l);if(w)return aze(C,w,m)}const A=xze(C)||(D?pT(C,D,void 0,m||0):Rc(C,m));return io(l)&&l.name.kind===207&&xs(A)&&!A.target.hasRestElement&&O5(A)GEe(l,C))}if(m.flags&58982400){const D=Wh(m)||on;return jl(D,4)&&jl(l,128)||jl(D,8)&&jl(l,256)||jl(D,64)&&jl(l,2048)||jl(D,4096)&&jl(l,8192)||GEe(l,D)}return!!(m.flags&406847616&&jl(l,128)||m.flags&256&&jl(l,256)||m.flags&2048&&jl(l,2048)||m.flags&512&&jl(l,512)||m.flags&8192&&jl(l,8192))}return!1}function Rz(l){const m=l.parent;return Yy(m)&&q3(m.type)||tM(m)&&q3(vY(m))||rze(l)&&W9(hf(l,0))||(Cf(m)||Dh(m)||uE(m))&&Rz(m)||(Jc(m)||pm(m)||qP(m))&&Rz(m.parent)}function Oz(l,m,D){const C=ya(l,m,D);return Rz(l)||Jbe(l)?Jh(C):Tmt(l)?C:UPe(C,FEe(hf(l,void 0),l,void 0))}function Lmt(l,m){return l.name.kind===167&&F3(l.name),Oz(l.initializer,m)}function Nmt(l,m){rpt(l),l.name.kind===167&&F3(l.name);const D=ymt(l,m);return Pmt(l,D,m)}function Pmt(l,m,D){if(D&&D&10){const C=kW(m,0,!0),A=kW(m,1,!0),w=C||A;if(w&&w.typeParameters){const I=MC(l,2);if(I){const U=kW(FD(I),C?0:1,!1);if(U&&!U.typeParameters){if(D&8)return Mmt(l,D),Ri;const Z=jb(l),ce=Z.signature&&Zs(Z.signature),Fe=ce&&Kft(ce);if(Fe&&!Fe.typeParameters&&!ye(Z.inferences,gT)){const Te=ioi(Z,w.typeParameters),$e=ePe(w,Te),ut=Vt(Z.inferences,zt=>tMe(zt.typeParameter));if(YPe($e,U,(zt,gi)=>{AD(ut,zt,gi,0,!0)}),Oe(ut,gT)&&(QPe($e,U,(zt,gi)=>{AD(ut,zt,gi)}),!eoi(Z.inferences,ut)))return toi(Z.inferences,ut),Z.inferredTypeParameters=Hi(Z.inferredTypeParameters,Te),DF($e)}return DF(Wft(w,U,Z))}}}}return m}function Mmt(l,m){if(m&2){const D=jb(l);D.flags|=4}}function gT(l){return!!(l.candidates||l.contraCandidates)}function Xai(l){return!!(l.candidates||l.contraCandidates||kdt(l.typeParameter))}function eoi(l,m){for(let D=0;DD.symbol.escapedName===m)}function noi(l,m){let D=m.length;for(;D>1&&m.charCodeAt(D-1)>=48&&m.charCodeAt(D-1)<=57;)D--;const C=m.slice(0,D);for(let A=1;;A++){const w=C+A;if(!Dze(l,w))return w}}function zmt(l){const m=wF(l);if(m&&!m.typeParameters)return Zs(m)}function uoi(l){const m=ya(l.expression),D=gW(m,l.expression),C=zmt(m);return C&&sEe(C,l,D!==m)}function b1(l){const m=xze(l);if(m)return m;if(l.flags&268435456&&bn){const A=bn[$s(l)];if(A)return A}const D=Xi,C=ya(l,64);if(Xi!==D){const A=bn||(bn=[]);A[$s(l)]=C,_ke(l,l.flags|268435456)}return C}function xze(l){let m=l0(l,!0);if(tM(m)){const D=vY(m);if(!q3(D))return Ar(D)}if(m=l0(l),Gx(m)){const D=xze(m.expression);return D?NF(D):void 0}if(Mo(m)&&m.expression.kind!==108&&!xf(m,!0)&&!nmt(m))return $y(m)?uoi(m):zmt(hT(m.expression));if(Yy(m)&&!q3(m.type))return Ar(m.type);if(E2(l)||HN(l))return ya(l)}function gie(l){const m=ar(l);if(m.contextFreeType)return m.contextFreeType;Zte(l,me,!1);const D=m.contextFreeType=ya(l,4);return bW(),D}function ya(l,m,D){var C,A;(C=Gn)==null||C.push(Gn.Phase.Check,"checkExpression",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const w=K;K=l,z=0;const I=ooi(l,m,D),U=Pmt(l,I,m);return WEe(U)&&roi(l,U),K=w,(A=Gn)==null||A.pop(),U}function roi(l,m){l.parent.kind===211&&l.parent.expression===l||l.parent.kind===212&&l.parent.expression===l||(l.kind===80||l.kind===166)&&r_e(l)||l.parent.kind===186&&l.parent.exprName===l||l.parent.kind===281||pt(l,F.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),mg(ae)&&(H.assert(!!(m.symbol.flags&128)),m.symbol.valueDeclaration.flags&33554432&&!Tv(l)&&pt(l,F.Cannot_access_ambient_const_enums_when_0_is_enabled,ht))}function aoi(l,m){if(lm(l)){if(Ile(l))return aze(l.expression,Rle(l),m);if(tM(l))return omt(l,m)}return ya(l.expression,m)}function ooi(l,m,D){const C=l.kind;if(d)switch(C){case 231:case 218:case 219:d.throwIfCancellationRequested()}switch(C){case 80:return Hni(l,m);case 81:return rri(l);case 110:return Ute(l);case 108:return kMe(l);case 106:return Ct;case 15:case 11:return aMe(l)?mt:Z9(df(l.text));case 9:return eIe(l),Z9(wg(+l.text));case 10:return sci(l),Z9(jge({negative:!1,base10Value:SP(l.text)}));case 112:return du;case 97:return Ui;case 228:return qai(l);case 14:return Tl;case 209:return fft(l,m,D);case 210:return Iui(l,m);case 211:return TEe(l,m);case 166:return Bft(l,m);case 212:return vri(l,m);case 213:if(l.expression.kind===102)return Qri(l);case 214:return Yri(l,m);case 215:return Xri(l);case 217:return aoi(l,m);case 231:return Usi(l);case 218:case 219:return ymt(l,m);case 221:return Lai(l);case 216:case 234:return eai(l,m);case 235:return nai(l);case 233:return lmt(l);case 238:return uai(l);case 236:return rai(l);case 220:return wai(l);case 222:return Nai(l);case 223:return Pai(l);case 224:return Mai(l);case 225:return zai(l);case 226:return We(l,m);case 227:return Uai(l,m);case 230:return Tui(l,m);case 232:return we;case 229:return $ai(l);case 237:return Lui(l);case 294:return Qui(l,m);case 284:return Vui(l);case 285:return Oui(l);case 288:return Hui(l);case 292:return Wui(l,m);case 286:H.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ot}function Imt(l){S3(l),l.expression&&r1(l.expression,F.Type_expected),ls(l.constraint),ls(l.default);const m=gF(_u(l));Wh(m),WXt(m)||pt(l.default,F.Type_parameter_0_has_a_circular_default,gn(m));const D=rh(m),C=_F(m);D&&C&&Ah(C,xm(_a(D,Mb(m,C)),C),l.default,F.Type_0_does_not_satisfy_the_constraint_1),eS(l),s(()=>Wz(l.name,F.Type_parameter_name_cannot_be_0))}function soi(l){var m,D;if(xh(l.parent)||mr(l.parent)||jp(l.parent)){const C=gF(_u(l)),A=HPe(C)&24576;if(A){const w=_u(l.parent);if(jp(l.parent)&&!(Gu(X0(w))&48))pt(l,F.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(A===8192||A===16384){(m=Gn)==null||m.push(Gn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Fh(X0(w)),id:Fh(C)});const I=zte(w,C,A===16384?tt:$),U=zte(w,C,A===16384?$:tt),Z=C;Y=C,Ah(I,U,l,F.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Y=Z,(D=Gn)==null||D.pop()}}}}function Rmt(l){S3(l),vie(l);const m=Nm(l);Yu(l,31)&&(m.kind===176&&H4(m.body)||pt(l,F.A_parameter_property_is_only_allowed_in_a_constructor_implementation),m.kind===176&&at(l.name)&&l.name.escapedText==="constructor"&&pt(l.name,F.constructor_cannot_be_used_as_a_parameter_property_name)),!l.initializer&&PP(l)&&So(l.name)&&m.body&&pt(l,F.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),l.name&&at(l.name)&&(l.name.escapedText==="this"||l.name.escapedText==="new")&&(m.parameters.indexOf(l)!==0&&pt(l,F.A_0_parameter_must_be_the_first_parameter,l.name.escapedText),(m.kind===176||m.kind===180||m.kind===185)&&pt(l,F.A_constructor_cannot_have_a_this_parameter),m.kind===219&&pt(l,F.An_arrow_function_cannot_have_a_this_parameter),(m.kind===177||m.kind===178)&&pt(l,F.get_and_set_accessors_cannot_declare_this_parameters)),l.dotDotDotToken&&!So(l.name)&&!ms(Sg(Wn(l.symbol)),ip)&&pt(l,F.A_rest_parameter_must_be_of_an_array_type)}function loi(l){const m=coi(l);if(!m){pt(l,F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const D=dp(m),C=y4(D);if(!C)return;ls(l.type);const{parameterName:A}=l;if(C.kind===0||C.kind===2)Vge(A);else if(C.parameterIndex>=0){if(th(D)&&C.parameterIndex===D.parameters.length-1)pt(A,F.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const w=()=>ro(void 0,F.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Ah(C.type,Wn(D.parameters[C.parameterIndex]),l.type,void 0,w)}}else if(A){let w=!1;for(const{name:I}of m.parameters)if(So(I)&&Omt(I,A,C.parameterName)){w=!0;break}w||pt(l.parameterName,F.Cannot_find_parameter_0,C.parameterName)}}function coi(l){switch(l.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const m=l.parent;if(l===m.type)return m}}function Omt(l,m,D){for(const C of l.elements){if(Fd(C))continue;const A=C.name;if(A.kind===80&&A.escapedText===D)return pt(m,F.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,D),!0;if((A.kind===207||A.kind===206)&&Omt(A,m,D))return!0}}function TW(l){l.kind===181?zli(l):(l.kind===184||l.kind===262||l.kind===185||l.kind===179||l.kind===176||l.kind===180)&&d_e(l);const m=kd(l);m&4||((m&3)===3&&Ce<99&&rd(l,6144),(m&3)===2&&Ce<4&&rd(l,64),m&3&&Ce<2&&rd(l,128)),yie(Sx(l)),Gsi(l),L(l.parameters,Rmt),l.type&&ls(l.type),s(D);function D(){ssi(l);let C=U4(l),A=C;if(Qn(l)){const w=xv(l);if(w&&w.typeExpression&&X4(w.typeExpression.type)){const I=wF(Ar(w.typeExpression));I&&I.declaration&&(C=U4(I.declaration),A=w.typeExpression.type)}}if(Ae&&!C)switch(l.kind){case 180:pt(l,F.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:pt(l,F.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&A){const w=kd(l);if((w&5)===1){const I=Ar(C);I===ca?pt(A,F.A_generator_cannot_have_a_void_type_annotation):vze(I,w,A)}else(w&3)===2&&Voi(l,C,A)}l.kind!==181&&l.kind!==324&&T6(l)}}function vze(l,m,D){const C=Hb(0,l,(m&2)!==0)||me,A=Hb(1,l,(m&2)!==0)||C,w=Hb(2,l,(m&2)!==0)||on,I=_mt(C,A,w,!!(m&2));return Ah(I,l,D)}function doi(l){const m=new Map,D=new Map,C=new Map;for(const w of l.members)if(w.kind===176)for(const I of w.parameters)Mf(I,w)&&!So(I.name)&&A(m,I.name,I.name.escapedText,3);else{const I=No(w),U=w.name;if(!U)continue;const Z=ea(U),ce=Z&&I?16:0,Fe=Z?C:I?D:m,Te=U&&tIe(U);if(Te)switch(w.kind){case 177:A(Fe,U,Te,1|ce);break;case 178:A(Fe,U,Te,2|ce);break;case 172:A(Fe,U,Te,3|ce);break;case 174:A(Fe,U,Te,8|ce);break}}function A(w,I,U,Z){const ce=w.get(U);if(ce)if((ce&16)!==(Z&16))pt(I,F.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Hc(I));else{const Fe=!!(ce&8),Te=!!(Z&8);Fe||Te?Fe!==Te&&pt(I,F.Duplicate_identifier_0,Hc(I)):ce&Z&-17?pt(I,F.Duplicate_identifier_0,Hc(I)):w.set(U,ce|Z)}else w.set(U,Z)}}function hoi(l){for(const m of l.members){const D=m.name;if(No(m)&&D){const A=tIe(D);switch(A){case"name":case"length":case"caller":case"arguments":if(Se)break;case"prototype":const w=F.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,I=__(_u(l));pt(D,w,A,I);break}}}}function jmt(l){const m=new Map;for(const D of l.members)if(D.kind===171){let C;const A=D.name;switch(A.kind){case 11:case 9:C=A.text;break;case 80:C=fu(A);break;default:continue}m.get(C)?(pt(Za(D.symbol.valueDeclaration),F.Duplicate_identifier_0,C),pt(D.name,F.Duplicate_identifier_0,C)):m.set(C,!0)}}function Cze(l){if(l.kind===264){const D=_u(l);if(D.declarations&&D.declarations.length>0&&D.declarations[0]!==l)return}const m=Mdt(_u(l));if(m!=null&&m.declarations){const D=new Map;for(const C of m.declarations)C.parameters.length===1&&C.parameters[0].type&&FF(Ar(C.parameters[0].type),A=>{const w=D.get(Fh(A));w?w.declarations.push(C):D.set(Fh(A),{type:A,declarations:[C]})});D.forEach(C=>{if(C.declarations.length>1)for(const A of C.declarations)pt(A,F.Duplicate_index_signature_for_type_0,gn(C.type))})}}function Vmt(l){!S3(l)&&!uci(l)&&h_e(l.name),vie(l),bze(l),Yu(l,64)&&l.kind===172&&l.initializer&&pt(l,F.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,b0(l.name))}function foi(l){return ea(l.name)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),Vmt(l)}function moi(l){rpt(l)||h_e(l.name),dc(l)&&l.asteriskToken&&at(l.name)&&fu(l.name)==="constructor"&&pt(l.name,F.Class_constructor_may_not_be_a_generator),e4t(l),Yu(l,64)&&l.kind===174&&l.body&&pt(l,F.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,b0(l.name)),ea(l.name)&&!Yd(l)&&pt(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),bze(l)}function bze(l){if(ea(l.name)&&Ce<99){for(let m=YE(l);m;m=YE(m))ar(m).flags|=1048576;if(Xd(l.parent)){const m=vMe(l.parent);m&&(ar(l.name).flags|=32768,ar(m).flags|=4096)}}}function poi(l){S3(l),ao(l,ls)}function goi(l){TW(l),ici(l)||nci(l),ls(l.body);const m=_u(l),D=Sl(m,l.kind);if(l===D&&UEe(m),Ql(l.body))return;s(A);return;function C(w){return ph(w)?!0:w.kind===172&&!No(w)&&!!w.initializer}function A(){const w=l.parent;if(B2(w)){CMe(l.parent,w);const I=bMe(w),U=Yht(l.body);if(U){if(I&&pt(U,F.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ne&&(Oe(l.parent.members,C)||Oe(l.parameters,ce=>Yu(ce,31))))if(!Eoi(U,l.body))pt(U,F.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{let ce;for(const Fe of l.body.statements){if(Od(Fe)&&ik(Dc(Fe.expression))){ce=Fe;break}if(Hmt(Fe))break}ce===void 0&&pt(l,F.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 I||pt(l,F.Constructors_for_derived_classes_must_contain_a_super_call)}}}function Eoi(l,m){const D=i5(l.parent);return Od(D)&&D.parent===m}function Hmt(l){return l.kind===108||l.kind===110?!0:Xbe(l)?!1:!!ao(l,Hmt)}function Kmt(l){at(l.name)&&fu(l.name)==="constructor"&&mr(l.parent)&&pt(l.name,F.Class_constructor_may_not_be_an_accessor),s(m),ls(l.body),bze(l);function m(){if(!d_e(l)&&!Gli(l)&&h_e(l.name),_ie(l),TW(l),l.kind===177&&!(l.flags&33554432)&&H4(l.body)&&l.flags&512&&(l.flags&1024||pt(l.name,F.A_get_accessor_must_return_a_value)),l.name.kind===167&&F3(l.name),iT(l)){const C=_u(l),A=Sl(C,177),w=Sl(C,178);if(A&&w&&!(DT(A)&1)){ar(A).flags|=1;const I=Eh(A),U=Eh(w);(I&64)!==(U&64)&&(pt(A.name,F.Accessors_must_both_be_abstract_or_non_abstract),pt(w.name,F.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(U&6)||I&2&&!(U&2))&&(pt(A.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),pt(w.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const D=vC(_u(l));l.kind===177&&fze(l,D)}}function _oi(l){_ie(l)}function Doi(l,m,D){return l.typeArguments&&D{const C=yze(l);C&&Wmt(l,C)});const D=ar(l).resolvedSymbol;D&&Oe(D.declarations,C=>gB(C)&&!!(C.flags&536870912))&&m3(sie(l),D.declarations,D.escapedName)}}function voi(l){const m=ur(l.parent,$U);if(!m)return;const D=yze(m);if(!D)return;const C=rh(D[m.typeArguments.indexOf(l)]);return C&&_a(C,Sf(D,JEe(m,D)))}function Coi(l){Jdt(l)}function boi(l){L(l.members,ls),s(m);function m(){const D=N1t(l);t_e(D,D.symbol),Cze(l),jmt(l)}}function yoi(l){ls(l.elementType)}function koi(l){const m=l.elements;let D=!1,C=!1;for(const A of m){const w=dPe(A);if(w&8){const I=Ar(A.type);if(!H5(I)){pt(A,F.A_rest_element_type_must_be_an_array_type);break}(A4(I)||xs(I)&&I.target.combinedFlags&4)&&(C=!0)}else if(w&4){if(C){Zi(A,F.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(w&2){if(C){Zi(A,F.An_optional_element_cannot_follow_a_rest_element);break}D=!0}else if(D){Zi(A,F.A_required_element_cannot_follow_an_optional_element);break}}L(l.elements,ls),Ar(l)}function Foi(l){L(l.types,ls),Ar(l)}function Jmt(l,m){if(!(l.flags&8388608))return l;const D=l.objectType,C=l.indexType;if(ms(C,k_(D,0)))return m.kind===212&&Q_(m)&&Gu(D)&32&&C_(D)&1&&pt(m,F.Index_signature_in_type_0_only_permits_reading,gn(D)),l;const A=Gh(D);if(k3(A,Qt)&&u1(C,296))return l;if(Lb(D)){const w=zge(C,m);if(w){const I=FF(A,U=>qo(U,w));if(I&&l4(I)&6)return pt(m,F.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Qr(w)),Ot}}return pt(m,F.Type_0_cannot_be_used_to_index_type_1,gn(C),gn(D)),Ot}function Aoi(l){ls(l.objectType),ls(l.indexType),Jmt(A1t(l),l)}function Soi(l){Boi(l),ls(l.typeParameter),ls(l.nameType),ls(l.type),l.type||LC(l,me);const m=bPe(l),D=I5(m);if(D)Ah(D,vc,l.nameType);else{const C=cp(m);Ah(C,vc,w8(l.typeParameter))}}function Boi(l){var m;if((m=l.members)!=null&&m.length)return Zi(l.members[0],F.A_mapped_type_may_not_declare_properties_or_methods)}function woi(l){Vge(l)}function Toi(l){$li(l),ls(l.type)}function Loi(l){ao(l,ls)}function Noi(l){Tn(l,D=>D.parent&&D.parent.kind===194&&D.parent.extendsType===D)||Zi(l,F.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),ls(l.typeParameter);const m=_u(l.typeParameter);if(m.declarations&&m.declarations.length>1){const D=Ur(m);if(!D.typeParametersChecked){D.typeParametersChecked=!0;const C=gF(m),A=vbe(m,168);if(!v4t(A,[C],w=>[w])){const w=Fr(m);for(const I of A)pt(I.name,F.All_declarations_of_0_must_have_identical_constraints,w)}}}T6(l)}function Poi(l){for(const m of l.templateSpans){ls(m.type);const D=Ar(m.type);Ah(D,c0,m.type)}Ar(l)}function Moi(l){ls(l.argument),l.attributes&&qB(l.attributes,Zi),Gmt(l)}function zoi(l){l.dotDotDotToken&&l.questionToken&&Zi(l,F.A_tuple_member_cannot_be_both_optional_and_rest),l.type.kind===190&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),l.type.kind===191&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),ls(l.type),Ar(l)}function Eie(l){return(Rf(l,2)||ph(l))&&!!(l.flags&33554432)}function $Ee(l,m){let D=f_e(l);if(l.parent.kind!==264&&l.parent.kind!==263&&l.parent.kind!==231&&l.flags&33554432){const C=C0e(l);C&&C.flags&128&&!(D&128)&&!(rE(l.parent)&&_c(l.parent.parent)&&Yg(l.parent.parent))&&(D|=32),D|=128}return D&m}function UEe(l){s(()=>Ioi(l))}function Ioi(l){function m(Ii,Nn){return Nn!==void 0&&Nn.parent===Ii[0].parent?Nn:Ii[0]}function D(Ii,Nn,vn,An,_n){if((An^_n)!==0){const oo=$Ee(m(Ii,Nn),vn);L(Ii,Eo=>{const fo=$Ee(Eo,vn)^oo;fo&32?pt(Za(Eo),F.Overload_signatures_must_all_be_exported_or_non_exported):fo&128?pt(Za(Eo),F.Overload_signatures_must_all_be_ambient_or_non_ambient):fo&6?pt(Za(Eo)||Eo,F.Overload_signatures_must_all_be_public_private_or_protected):fo&64&&pt(Za(Eo),F.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(Ii,Nn,vn,An){if(vn!==An){const _n=d7(m(Ii,Nn));L(Ii,hu=>{d7(hu)!==_n&&pt(Za(hu),F.Overload_signatures_must_all_be_optional_or_required)})}}const A=230;let w=0,I=A,U=!1,Z=!0,ce=!1,Fe,Te,$e;const ut=l.declarations,zt=(l.flags&16384)!==0;function gi(Ii){if(Ii.name&&Ql(Ii.name))return;let Nn=!1;const vn=ao(Ii.parent,_n=>{if(Nn)return _n;Nn=_n===Ii});if(vn&&vn.pos===Ii.end&&vn.kind===Ii.kind){const _n=vn.name||vn,hu=vn.name;if(Ii.name&&hu&&(ea(Ii.name)&&ea(hu)&&Ii.name.escapedText===hu.escapedText||Ps(Ii.name)&&Ps(hu)&&CD(F3(Ii.name),F3(hu))||Xg(Ii.name)&&Xg(hu)&&oP(Ii.name)===oP(hu))){if((Ii.kind===174||Ii.kind===173)&&No(Ii)!==No(vn)){const Eo=No(Ii)?F.Function_overload_must_be_static:F.Function_overload_must_not_be_static;pt(_n,Eo)}return}if(H4(vn.body)){pt(_n,F.Function_implementation_name_must_be_0,b0(Ii.name));return}}const An=Ii.name||Ii;zt?pt(An,F.Constructor_implementation_is_missing):Yu(Ii,64)?pt(An,F.All_declarations_of_an_abstract_method_must_be_consecutive):pt(An,F.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Wi=!1,dn=!1,nu=!1;const En=[];if(ut)for(const Ii of ut){const Nn=Ii,vn=Nn.flags&33554432,An=Nn.parent&&(Nn.parent.kind===264||Nn.parent.kind===187)||vn;if(An&&($e=void 0),(Nn.kind===263||Nn.kind===231)&&!vn&&(nu=!0),Nn.kind===262||Nn.kind===174||Nn.kind===173||Nn.kind===176){En.push(Nn);const _n=$Ee(Nn,A);w|=_n,I&=_n,U=U||d7(Nn),Z=Z&&d7(Nn);const hu=H4(Nn.body);hu&&Fe?zt?dn=!0:Wi=!0:($e==null?void 0:$e.parent)===Nn.parent&&$e.end!==Nn.pos&&gi($e),hu?Fe||(Fe=Nn):ce=!0,$e=Nn,An||(Te=Nn)}if(Qn(Ii)&&Co(Ii)&&Ii.jsDoc){for(const _n of Ii.jsDoc)if(_n.tags)for(const hu of _n.tags)NB(hu)&&(ce=!0)}}if(dn&&L(En,Ii=>{pt(Ii,F.Multiple_constructor_implementations_are_not_allowed)}),Wi&&L(En,Ii=>{pt(Za(Ii)||Ii,F.Duplicate_function_implementation)}),nu&&!zt&&l.flags&16&&ut){const Ii=ti(ut,Nn=>Nn.kind===263).map(Nn=>Su(Nn,F.Consider_adding_a_declare_modifier_to_this_class));L(ut,Nn=>{const vn=Nn.kind===263?F.Class_declaration_cannot_implement_overload_list_for_0:Nn.kind===262?F.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;vn&&Es(pt(Za(Nn)||Nn,vn,lc(l)),...Ii)})}if(Te&&!Te.body&&!Yu(Te,64)&&!Te.questionToken&&gi(Te),ce&&(ut&&(D(ut,Fe,A,w,I),C(ut,Fe,U,Z)),Fe)){const Ii=wb(l),Nn=dp(Fe);for(const vn of Ii)if(!oii(Nn,vn)){const An=vn.declaration&&Ov(vn.declaration)?vn.declaration.parent.tagName:vn.declaration;Es(pt(An,F.This_overload_signature_is_not_compatible_with_its_implementation_signature),Su(Fe,F.The_implementation_signature_is_declared_here));break}}}function LW(l){s(()=>Roi(l))}function Roi(l){let m=l.localSymbol;if(!m&&(m=_u(l),!m.exportSymbol)||Sl(m,l.kind)!==l)return;let D=0,C=0,A=0;for(const ce of m.declarations){const Fe=Z(ce),Te=$Ee(ce,2080);Te&32?Te&2048?A|=Fe:D|=Fe:C|=Fe}const w=D|C,I=D&C,U=A&w;if(I||U)for(const ce of m.declarations){const Fe=Z(ce),Te=Za(ce);Fe&U?pt(Te,F.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,b0(Te)):Fe&I&&pt(Te,F.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,b0(Te))}function Z(ce){let Fe=ce;switch(Fe.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return N1(Fe)||oD(Fe)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Te=Fe,$e=tc(Te)?Te.expression:Te.right;if(!ec($e))return 1;Fe=$e;case 271:case 274:case 273:let ut=0;const zt=md(_u(Fe));return L(zt.declarations,gi=>{ut|=Z(gi)}),ut;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return H.failBadSyntaxKind(Fe)}}}function jz(l,m,D,...C){const A=NW(l,m);return A&&NF(A,m,D,...C)}function NW(l,m,D){if(nt(l))return;const C=l;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(CC(l,Fte(!1)))return C.promisedTypeOfPromise=O0(l)[0];if(mie(xD(l),402915324))return;const A=he(l,"then");if(nt(A))return;const w=A?go(A,0):_t;if(w.length===0){m&&pt(m,F.A_promise_must_have_a_then_method);return}let I,U;for(const Fe of w){const Te=kC(Fe);Te&&Te!==ca&&!bE(l,Te,h_)?I=Te:U=xi(U,Fe)}if(!U){H.assertIsDefined(I),D&&(D.value=I),m&&pt(m,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(I));return}const Z=mp(er(Vt(U,lze)),2097152);if(nt(Z))return;const ce=go(Z,0);if(ce.length===0){m&&pt(m,F.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=er(Vt(ce,lze),2)}function PW(l,m,D,C,...A){return(m?NF(l,D,C,...A):W5(l,D,C,...A))||Ot}function $mt(l){if(mie(xD(l),402915324))return!1;const m=he(l,"then");return!!m&&go(mp(m,2097152),0).length>0}function qEe(l){var m;if(l.flags&16777216){const D=cPe(!1);return!!D&&l.aliasSymbol===D&&((m=l.aliasTypeArguments)==null?void 0:m.length)===1}return!1}function Vz(l){return l.flags&1048576?hl(l,Vz):qEe(l)?l.aliasTypeArguments[0]:l}function Umt(l){if(nt(l)||qEe(l))return!1;if(Lb(l)){const m=Wh(l);if(m?m.flags&3||bD(m)||yE(m,$mt):jl(l,8650752))return!0}return!1}function Ooi(l){const m=cPe(!0);if(m)return aT(m,[Vz(l)])}function joi(l){if(Umt(l)){const m=Ooi(l);if(m)return m}return H.assert(qEe(l)||NW(l)===void 0,"type provided should not be a non-generic 'promise'-like."),l}function NF(l,m,D,...C){const A=W5(l,m,D,...C);return A&&joi(A)}function W5(l,m,D,...C){if(nt(l)||qEe(l))return l;const A=l;if(A.awaitedTypeOfType)return A.awaitedTypeOfType;if(l.flags&1048576){if(fE.lastIndexOf(l.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const U=m?ce=>W5(ce,m,D,...C):W5;fE.push(l.id);const Z=hl(l,U);return fE.pop(),A.awaitedTypeOfType=Z}if(Umt(l))return A.awaitedTypeOfType=l;const w={value:void 0},I=NW(l,void 0,w);if(I){if(l.id===I.id||fE.lastIndexOf(I.id)>=0){m&&pt(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}fE.push(l.id);const U=W5(I,m,D,...C);return fE.pop(),U?A.awaitedTypeOfType=U:void 0}if($mt(l)){if(m){H.assertIsDefined(D);let U;w.value&&(U=ro(U,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(w.value))),U=ro(U,D,...C),Vs.add(Y3(zn(m),m,U))}return}return A.awaitedTypeOfType=l}function Voi(l,m,D){const C=Ar(m);if(Ce>=2){if(Nt(C))return;const w=Fte(!0);if(w!==Ka&&!CC(C,w)){A(F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,m,D,gn(W5(C)||ca));return}}else{if(Koi(m),Nt(C))return;const w=pj(m);if(w===void 0){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,gn(C));return}const I=R0(w,111551,!0),U=I?Wn(I):Ot;if(Nt(U)){w.kind===80&&w.escapedText==="Promise"&&eT(C)===Fte(!1)?pt(D,F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const Z=Eei(!0);if(Z===Ko){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const ce=F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Ah(U,Z,D,ce,()=>m===D?void 0:ro(void 0,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Te=w&&hm(w),$e=kf(l.locals,Te.escapedText,111551);if($e){pt($e.valueDeclaration,F.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,fu(Te),zf(w));return}}PW(C,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function A(w,I,U,Z){if(I===U)pt(U,w,Z);else{const ce=pt(U,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Es(ce,Su(I,w,Z))}}}function Hoi(l){const m=mT(l);VEe(m,l);const D=Zs(m);if(D.flags&1)return;const C=hze(l);if(!(C!=null&&C.resolvedReturnType))return;let A;const w=C.resolvedReturnType;switch(l.parent.kind){case 263:case 231:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ve){A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:A=F.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return H.failBadSyntaxKind(l.parent)}Ah(D,w,l.expression,A)}function MW(l,m,D,C,A,w=D.length,I=0){const U=q.createFunctionTypeNode(void 0,_t,q.createKeywordTypeNode(133));return y3(U,l,m,D,C,A,w,I)}function Fze(l,m,D,C,A,w,I){const U=MW(l,m,D,C,A,w,I);return DF(U)}function qmt(l){return Fze(void 0,void 0,_t,l)}function Zmt(l){const m=yg("value",l);return Fze(void 0,void 0,[m],ca)}function Koi(l){Ymt(l&&pj(l),!1)}function Ymt(l,m){if(!l)return;const D=hm(l),C=(l.kind===80?788968:1920)|2097152,A=uc(D,D.escapedText,C,void 0,void 0,!0);if(A&&A.flags&2097152){if(Ut&&l6(A)&&!OW(md(A))&&!_4(A))T5(A);else if(m&&mg(ae)&&m1(ae)>=5&&!l6(A)&&!Oe(A.declarations,_2)){const w=pt(l,F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),I=Le(A.declarations||_t,sC);I&&Es(w,Su(I,F._0_was_imported_here,fu(D)))}}}function ET(l){const m=Aze(l);m&&sm(m)&&Ymt(m,!0)}function Aze(l){if(l)switch(l.kind){case 193:case 192:return Qmt(l.types);case 194:return Qmt([l.trueType,l.falseType]);case 196:case 202:return Aze(l.type);case 183:return l.typeName}}function Qmt(l){let m;for(let D of l){for(;D.kind===196||D.kind===202;)D=D.type;if(D.kind===146||!fe&&(D.kind===201&&D.literal.kind===106||D.kind===157))continue;const C=Aze(D);if(!C)return;if(m){if(!at(m)||!at(C)||m.escapedText!==C.escapedText)return}else m=C}return m}function ZEe(l){const m=f1(l);return $_(l)?F0e(m):m}function _ie(l){if(!Ak(l)||!o4(l)||!l.modifiers||!gq(ve,l,l.parent,l.parent.parent))return;const m=Le(l.modifiers,g1);if(m){if(ve?(rd(m,8),l.kind===169&&rd(m,32)):Ce<99&&(rd(m,8),Wc(l)?l.name?C4t(l)&&rd(m,8388608):rd(m,8388608):Xd(l)||(ea(l.name)&&(dc(l)||wx(l)||ef(l))&&rd(m,8388608),Ps(l.name)&&rd(m,16777216))),ae.emitDecoratorMetadata)switch(rd(m,16),l.kind){case 263:const D=X_(l);if(D)for(const I of D.parameters)ET(ZEe(I));break;case 177:case 178:const C=l.kind===177?178:177,A=Sl(_u(l),C);ET(i0(l)||A&&i0(A));break;case 174:for(const I of l.parameters)ET(ZEe(I));ET(U4(l));break;case 172:ET(f1(l));break;case 169:ET(ZEe(l));const w=l.parent;for(const I of w.parameters)ET(ZEe(I));ET(U4(w));break}for(const D of l.modifiers)g1(D)&&Hoi(D)}}function Woi(l){s(m);function m(){e4t(l),Zze(l),Hz(l,l.name)}}function Goi(l){l.typeExpression||pt(l.name,F.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),l.name&&Wz(l.name,F.Type_alias_name_cannot_be_0),ls(l.typeExpression),yie(Sx(l))}function Joi(l){ls(l.constraint);for(const m of l.typeParameters)ls(m)}function $oi(l){ls(l.typeExpression)}function Uoi(l){ls(l.typeExpression);const m=ok(l);if(m){const D=Vse(m,_Y);if(S(D)>1)for(let C=1;C0),D.length>1&&pt(D[1],F.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=Xmt(l.class.expression),A=B2(m);if(A){const w=Xmt(A.expression);w&&C.escapedText!==w.escapedText&&pt(C,F.JSDoc_0_1_does_not_match_the_extends_2_clause,fu(l.tagName),fu(C),fu(w))}}function isi(l){const m=h7(l);m&&ph(m)&&pt(l,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function Xmt(l){switch(l.kind){case 80:return l;case 211:return l.name;default:return}}function e4t(l){var m;_ie(l),TW(l);const D=kd(l);if(l.name&&l.name.kind===167&&F3(l.name),iT(l)){const w=_u(l),I=l.localSymbol||w,U=(m=I.declarations)==null?void 0:m.find(Z=>Z.kind===l.kind&&!(Z.flags&524288));l===U&&UEe(I),w.parent&&UEe(w)}const C=l.kind===173?void 0:l.body;if(ls(C),fze(l,uT(l)),s(A),Qn(l)){const w=xv(l);w&&w.typeExpression&&!TMe(Ar(w.typeExpression),l)&&pt(w.typeExpression.type,F.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function A(){U4(l)||(Ql(C)&&!Eie(l)&&LC(l,me),D&1&&H4(C)&&Zs(dp(l)))}}function T6(l){s(m);function m(){const D=zn(l);let C=b5.get(D.path);C||(C=[],b5.set(D.path,C)),C.push(l)}}function t4t(l,m){for(const D of l)switch(D.kind){case 263:case 231:nsi(D,m),Sze(D,m);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:u4t(D,m);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:D.body&&u4t(D,m),Sze(D,m);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Sze(D,m);break;case 195:usi(D,m);break;default:H.assertNever(D,"Node should not have been registered for unused identifiers check")}}function i4t(l,m,D){const C=Za(l)||l,A=gB(l)?F._0_is_declared_but_never_used:F._0_is_declared_but_its_value_is_never_read;D(l,0,Su(C,A,m))}function zW(l){return at(l)&&fu(l).charCodeAt(0)===95}function nsi(l,m){for(const D of l.members)switch(D.kind){case 174:case 172:case 177:case 178:if(D.kind===178&&D.symbol.flags&32768)break;const C=_u(D);!C.isReferenced&&(Rf(D,2)||mh(D)&&ea(D.name))&&!(D.flags&33554432)&&m(D,0,Su(D.name,F._0_is_declared_but_its_value_is_never_read,Fr(C)));break;case 176:for(const A of D.parameters)!A.symbol.isReferenced&&Yu(A,2)&&m(A,0,Su(A.name,F.Property_0_is_declared_but_its_value_is_never_read,lc(A.symbol)));break;case 181:case 240:case 175:break;default:H.fail("Unexpected class member")}}function usi(l,m){const{typeParameter:D}=l;Bze(D)&&m(l,1,Su(l,F._0_is_declared_but_its_value_is_never_read,fu(D.name)))}function Sze(l,m){const D=_u(l).declarations;if(!D||Cr(D)!==l)return;const C=Sx(l),A=new Set;for(const w of C){if(!Bze(w))continue;const I=fu(w.name),{parent:U}=w;if(U.kind!==195&&U.typeParameters.every(Bze)){if(r0(A,U)){const Z=zn(U),ce=_g(U)?Tle(U):Lle(Z,U.typeParameters),Te=U.typeParameters.length===1?[F._0_is_declared_but_its_value_is_never_read,I]:[F.All_type_parameters_are_unused];m(w,1,Rd(Z,ce.pos,ce.end-ce.pos,...Te))}}else m(w,1,Su(w,F._0_is_declared_but_its_value_is_never_read,I))}}function Bze(l){return!(Ks(l.symbol).isReferenced&262144)&&!zW(l.name)}function Die(l,m,D,C){const A=String(C(m)),w=l.get(A);w?w[1].push(D):l.set(A,[m,[D]])}function n4t(l){return ur(XE(l),io)}function rsi(l){return js(l)?Rp(l.parent)?!!(l.propertyName&&zW(l.name)):zW(l.name):N1(l)||(ua(l)&&M8(l.parent.parent)||r4t(l))&&zW(l.name)}function u4t(l,m){const D=new Map,C=new Map,A=new Map;l.locals.forEach(w=>{if(!(w.flags&262144?!(w.flags&3&&!(w.isReferenced&3)):w.isReferenced||w.exportSymbol)&&w.declarations){for(const I of w.declarations)if(!rsi(I))if(r4t(I))Die(D,osi(I),I,$s);else if(js(I)&&Rp(I.parent)){const U=Cr(I.parent.elements);(I===U||!Cr(I.parent.elements).dotDotDotToken)&&Die(C,I.parent,I,$s)}else if(ua(I)){const U=Gb(I)&7,Z=Za(I);(U!==4&&U!==6||!Z||!zW(Z))&&Die(A,I.parent,I,$s)}else{const U=w.valueDeclaration&&n4t(w.valueDeclaration),Z=w.valueDeclaration&&Za(w.valueDeclaration);U&&Z?!Mf(U,U.parent)&&!L2(U)&&!zW(Z)&&(js(I)&&_k(I.parent)?Die(C,I.parent,I,$s):m(U,1,Su(Z,F._0_is_declared_but_its_value_is_never_read,lc(w)))):i4t(I,lc(w),m)}}}),D.forEach(([w,I])=>{const U=w.parent;if((w.name?1:0)+(w.namedBindings?w.namedBindings.kind===274?1:w.namedBindings.elements.length:0)===I.length)m(U,0,I.length===1?Su(U,F._0_is_declared_but_its_value_is_never_read,fu(Pn(I).name)):Su(U,F.All_imports_in_import_declaration_are_unused));else for(const ce of I)i4t(ce,fu(ce.name),m)}),C.forEach(([w,I])=>{const U=n4t(w.parent)?1:0;if(w.elements.length===I.length)I.length===1&&w.parent.kind===260&&w.parent.parent.kind===261?Die(A,w.parent.parent,w.parent,$s):m(w,U,I.length===1?Su(w,F._0_is_declared_but_its_value_is_never_read,xie(Pn(I).name)):Su(w,F.All_destructured_elements_are_unused));else for(const Z of I)m(Z,U,Su(Z,F._0_is_declared_but_its_value_is_never_read,xie(Z.name)))}),A.forEach(([w,I])=>{if(w.declarations.length===I.length)m(w,0,I.length===1?Su(Pn(I).name,F._0_is_declared_but_its_value_is_never_read,xie(Pn(I).name)):Su(w.parent.kind===243?w.parent:w,F.All_variables_are_unused));else for(const U of I)m(U,0,Su(U,F._0_is_declared_but_its_value_is_never_read,xie(U.name)))})}function asi(){var l;for(const m of hb)if(!((l=_u(m))!=null&&l.isReferenced)){const D=S8(m);H.assert(w2(D),"Only parameter declaration should be checked here");const C=Su(m.name,F._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,b0(m.name),b0(m.propertyName));D.type||Es(C,Rd(zn(D),D.end,1,F.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,b0(m.propertyName))),Vs.add(C)}}function xie(l){switch(l.kind){case 80:return fu(l);case 207:case 206:return xie(Po(Pn(l.elements),js).name);default:return H.assertNever(l)}}function r4t(l){return l.kind===273||l.kind===276||l.kind===274}function osi(l){return l.kind===273?l:l.kind===274?l.parent:l.parent.parent}function YEe(l){if(l.kind===241&&SD(l),Zse(l)){const m=Ti;L(l.statements,ls),Ti=m}else L(l.statements,ls);l.locals&&T6(l)}function ssi(l){Ce>=2||!u0e(l)||l.flags&33554432||Ql(l.body)||L(l.parameters,m=>{m.name&&!So(m.name)&&m.name.escapedText===It.escapedName&&A5("noEmit",m,F.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function IW(l,m,D){if((m==null?void 0:m.escapedText)!==D||l.kind===172||l.kind===171||l.kind===174||l.kind===173||l.kind===177||l.kind===178||l.kind===303||l.flags&33554432||(n_(l)||E1(l)||bf(l))&&_2(l))return!1;const C=XE(l);return!(io(C)&&Ql(C.parent.body))}function lsi(l){Tn(l,m=>DT(m)&4?(l.kind!==80?pt(Za(l),F.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):pt(l,F.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function csi(l){Tn(l,m=>DT(m)&8?(l.kind!==80?pt(Za(l),F.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):pt(l,F.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function dsi(l,m){if(ne>=5&&!(ne>=100&&zn(l).impliedNodeFormat===1)||!m||!IW(l,m,"require")&&!IW(l,m,"exports")||_c(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,b0(m),b0(m))}function hsi(l,m){if(!m||Ce>=4||!IW(l,m,"Promise")||_c(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&D.flags&4096&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,b0(m),b0(m))}function fsi(l,m){Ce<=8&&(IW(l,m,"WeakMap")||IW(l,m,"WeakSet"))&&iC.push(l)}function msi(l){const m=YE(l);DT(m)&1048576&&(H.assert(mh(l)&&at(l.name)&&typeof l.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),A5("noEmit",l,F.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,l.name.escapedText))}function psi(l,m){m&&Ce>=2&&Ce<=8&&IW(l,m,"Reflect")&&y5.push(l)}function gsi(l){let m=!1;if(Xd(l)){for(const D of l.members)if(DT(D)&2097152){m=!0;break}}else if(A0(l))DT(l)&2097152&&(m=!0);else{const D=YE(l);D&&DT(D)&2097152&&(m=!0)}m&&(H.assert(mh(l)&&at(l.name),"The target of a Reflect collision check should be an identifier"),A5("noEmit",l,F.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,b0(l.name),"Reflect"))}function Hz(l,m){m&&(dsi(l,m),hsi(l,m),fsi(l,m),psi(l,m),mr(l)?(Wz(m,F.Class_name_cannot_be_0),l.flags&33554432||Wsi(m)):Iv(l)&&Wz(m,F.Enum_name_cannot_be_0))}function Esi(l){if(Gb(l)&7||w2(l))return;const m=_u(l);if(m.flags&1){if(!at(l.name))return H.fail();const D=uc(l,l.name.escapedText,3,void 0,void 0,!1);if(D&&D!==m&&D.flags&2&&OMe(D)&7){const C=Fv(D.valueDeclaration,261),A=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(A&&(A.kind===241&&Co(A.parent)||A.kind===268||A.kind===267||A.kind===312))){const I=Fr(D);pt(l,F.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function RW(l){return l===ni?me:l===Nc?ql:l}function vie(l){var m;if(_ie(l),js(l)||ls(l.type),!l.name)return;if(l.name.kind===167&&(F3(l.name),Qy(l)&&l.initializer&&Rc(l.initializer)),js(l)){if(l.propertyName&&at(l.name)&&w2(l)&&Ql(Nm(l).body)){hb.push(l);return}Rp(l.parent)&&l.dotDotDotToken&&Ce<5&&rd(l,4),l.propertyName&&l.propertyName.kind===167&&F3(l.propertyName);const A=l.parent.parent,w=l.dotDotDotToken?32:0,I=bi(A,w),U=l.propertyName||l.name;if(I&&!So(U)){const Z=j5(U);if(Y4(Z)){const ce=Q4(Z),Fe=qo(I,ce);Fe&&(nie(Fe,void 0,!1),VMe(l,!!A.initializer&&A.initializer.kind===108,!1,I,Fe))}}}if(So(l.name)&&(l.name.kind===207&&Ce<2&&ae.downlevelIteration&&rd(l,512),L(l.name.elements,ls)),l.initializer&&w2(l)&&Ql(Nm(l).body)){pt(l,F.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(So(l.name)){if(hMe(l))return;const A=Qy(l)&&l.initializer&&l.parent.parent.kind!==249,w=!Oe(l.name.elements,X$(Fd));if(A||w){const I=N(l);if(A){const U=Rc(l.initializer);fe&&w?Sft(U,l):A6(U,N(l),l,l.initializer)}w&&(_k(l.name)?G5(65,I,te,l):fe&&Sft(I,l))}return}const D=_u(l);if(D.flags&2097152&&(F2(l)||nye(l))){i_e(l);return}const C=RW(Wn(D));if(l===D.valueDeclaration){const A=Qy(l)&&Dj(l);if(A&&!(Qn(l)&&ys(A)&&(A.properties.length===0||Ox(l.name))&&!!((m=D.exports)!=null&&m.size))&&l.parent.parent.kind!==249){const I=Rc(A);A6(I,C,l,A,void 0);const U=Gb(l)&7;if(U===6){const Z=Fei(!0),ce=t1t(!0);if(Z!==Ko&&ce!==Ko){const Fe=er([Z,ce,it,te]);Ah(I,Fe,A,F.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)}}else if(U===4){const Z=t1t(!0);if(Z!==Ko){const ce=er([Z,it,te]);Ah(I,ce,A,F.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}D.declarations&&D.declarations.length>1&&Oe(D.declarations,w=>w!==l&&G8(w)&&!o4t(w,l))&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,b0(l.name))}else{const A=RW(N(l));!Nt(C)&&!Nt(A)&&!CD(C,A)&&!(D.flags&67108864)&&a4t(D.valueDeclaration,C,l,A),Qy(l)&&l.initializer&&A6(Rc(l.initializer),A,l,l.initializer,void 0),D.valueDeclaration&&!o4t(l,D.valueDeclaration)&&pt(l.name,F.All_declarations_of_0_must_have_identical_modifiers,b0(l.name))}l.kind!==172&&l.kind!==171&&(LW(l),(l.kind===260||l.kind===208)&&Esi(l),Hz(l,l.name))}function a4t(l,m,D,C){const A=Za(D),w=D.kind===172||D.kind===171?F.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:F.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,I=b0(A),U=pt(A,w,I,gn(m),gn(C));l&&Es(U,Su(l,F._0_was_also_declared_here,I))}function o4t(l,m){if(l.kind===169&&m.kind===260||l.kind===260&&m.kind===169)return!0;if(d7(l)!==d7(m))return!1;const D=1358;return E7(l,D)===E7(m,D)}function _si(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkVariableDeclaration",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath}),Qli(l),vie(l),(D=Gn)==null||D.pop()}function Dsi(l){return qli(l),vie(l)}function QEe(l){const m=QD(l)&7;(m===4||m===6)&&rd(l,33554432),L(l.declarations,ls)}function xsi(l){!S3(l)&&!Xze(l.declarationList)&&Xli(l),QEe(l.declarationList)}function vsi(l){SD(l),ya(l.expression)}function Csi(l){SD(l);const m=Kz(l.expression);wze(l.expression,m,l.thenStatement),ls(l.thenStatement),l.thenStatement.kind===242&&pt(l.thenStatement,F.The_body_of_an_if_statement_cannot_be_the_empty_statement),ls(l.elseStatement)}function wze(l,m,D){if(!fe)return;C(l,D);function C(w,I){for(w=l0(w),A(w,I);Xn(w)&&(w.operatorToken.kind===57||w.operatorToken.kind===61);)w=l0(w.left),A(w,I)}function A(w,I){const U=Gj(w)?l0(w.right):w;if(Y_(U))return;if(Gj(U)){C(U,I);return}const Z=U===w?m:Kz(U),ce=Iu(U)&&Tmt(U.expression);if(!fp(Z,4194304)||ce)return;const Fe=go(Z,0),Te=!!jz(Z);if(Fe.length===0&&!Te)return;const $e=at(U)?U:Iu(U)?U.name:void 0,ut=$e&&Yp($e);if(!ut&&!Te)return;ut&&Xn(w.parent)&&ysi(w.parent,ut)||ut&&I&&bsi(w,I,$e,ut)||(Te?bh(U,!0,F.This_condition_will_always_return_true_since_this_0_is_always_defined,P5(Z)):pt(U,F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function bsi(l,m,D,C){return!!ao(m,function A(w){if(at(w)){const I=Yp(w);if(I&&I===C){if(at(l)||at(D)&&Xn(D.parent))return!0;let U=D.parent,Z=w.parent;for(;U&&Z;){if(at(U)&&at(Z)||U.kind===110&&Z.kind===110)return Yp(U)===Yp(Z);if(Iu(U)&&Iu(Z)){if(Yp(U.name)!==Yp(Z.name))return!1;Z=Z.expression,U=U.expression}else if(Mo(U)&&Mo(Z))Z=Z.expression,U=U.expression;else return!1}}}return ao(w,A)})}function ysi(l,m){for(;Xn(l)&&l.operatorToken.kind===56;){if(ao(l.right,function C(A){if(at(A)){const w=Yp(A);if(w&&w===m)return!0}return ao(A,C)}))return!0;l=l.parent}return!1}function ksi(l){SD(l),ls(l.statement),Kz(l.expression)}function Fsi(l){SD(l),Kz(l.expression),ls(l.statement)}function Tze(l,m){return l.flags&16384&&pt(m,F.An_expression_of_type_void_cannot_be_tested_for_truthiness),l}function Kz(l,m){return Tze(ya(l,m),l)}function Asi(l){SD(l)||l.initializer&&l.initializer.kind===261&&Xze(l.initializer),l.initializer&&(l.initializer.kind===261?QEe(l.initializer):ya(l.initializer)),l.condition&&Kz(l.condition),l.incrementor&&ya(l.incrementor),ls(l.statement),l.locals&&T6(l)}function Ssi(l){upt(l);const m=dq(l);if(l.awaitModifier?m&&zl(m)?Zi(l.awaitModifier,F.for_await_loops_cannot_be_used_inside_a_class_static_block):(kd(m)&6)===2&&Ce<99&&rd(l,16384):ae.downlevelIteration&&Ce<2&&rd(l,256),l.initializer.kind===261)QEe(l.initializer);else{const D=l.initializer,C=Cie(l);if(D.kind===209||D.kind===210)LF(D,C||Ot);else{const A=ya(D);BW(D,F.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&A6(C,A,D,l.expression)}}ls(l.statement),l.locals&&T6(l)}function Bsi(l){upt(l);const m=HMe(ya(l.expression));if(l.initializer.kind===261){const D=l.initializer.declarations[0];D&&So(D.name)&&pt(D.name,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),QEe(l.initializer)}else{const D=l.initializer,C=ya(D);D.kind===209||D.kind===210?pt(D,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ms(hti(m),C)?BW(D,F.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):pt(D,F.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(m===Ku||!u1(m,126091264))&&pt(l.expression,F.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,gn(m)),ls(l.statement),l.locals&&T6(l)}function Cie(l){const m=l.awaitModifier?15:13;return G5(m,hT(l.expression),te,l.expression)}function G5(l,m,D,C){return nt(m)?m:Lze(l,m,D,C,!0)||me}function Lze(l,m,D,C,A){const w=(l&2)!==0;if(m===Ku){Ize(C,m,w);return}const I=Ce>=2,U=!I&&ae.downlevelIteration,Z=ae.noUncheckedIndexedAccess&&!!(l&128);if(I||U||w){const zt=e_e(m,l,I?C:void 0);if(A&&zt){const gi=l&8?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:l&32?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:l&64?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:l&16?F.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;gi&&Ah(D,zt.nextType,C,gi)}if(zt||I)return Z?vW(zt&&zt.yieldType):zt&&zt.yieldType}let ce=m,Fe=!1,Te=!1;if(l&4){if(ce.flags&1048576){const zt=m.types,gi=ti(zt,Wi=>!(Wi.flags&402653316));gi!==zt&&(ce=er(gi,2))}else ce.flags&402653316&&(ce=Ku);if(Te=ce!==m,Te&&(Ce<1&&C&&(pt(C,F.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Fe=!0),ce.flags&131072))return Z?vW(ct):ct}if(!H5(ce)){if(C&&!Fe){const zt=!!(l&4)&&!Te,[gi,Wi]=ut(zt,U);bh(C,Wi&&!!jz(ce),gi,gn(ce))}return Te?Z?vW(ct):ct:void 0}const $e=yC(ce,Qt);if(Te&&$e)return $e.flags&402653316&&!ae.noUncheckedIndexedAccess?ct:er(Z?[$e,ct,te]:[$e,ct],2);return l&128?vW($e):$e;function ut(zt,gi){var Wi;return gi?zt?[F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Nze(l,0,m,void 0)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:wsi((Wi=m.symbol)==null?void 0:Wi.escapedName)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:zt?[F.Type_0_is_not_an_array_type_or_a_string_type,!0]:[F.Type_0_is_not_an_array_type,!0]}}function wsi(l){switch(l){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Nze(l,m,D,C){if(nt(D))return;const A=e_e(D,l,C);return A&&A[Bet(m)]}function J5(l=Ku,m=Ku,D=on){if(l.flags&67359327&&m.flags&180227&&D.flags&180227){const C=hp([l,m,D]);let A=Nr.get(C);return A||(A={yieldType:l,returnType:m,nextType:D},Nr.set(C,A)),A}return{yieldType:l,returnType:m,nextType:D}}function s4t(l){let m,D,C;for(const A of l)if(!(A===void 0||A===Vu)){if(A===Ss)return Ss;m=xi(m,A.yieldType),D=xi(D,A.returnType),C=xi(C,A.nextType)}return m||D||C?J5(m&&er(m),D&&er(D),C&&Ds(C)):Vu}function XEe(l,m){return l[m]}function A3(l,m,D){return l[m]=D}function e_e(l,m,D){var C,A;if(nt(l))return Ss;if(!(l.flags&1048576)){const ce=D?{errors:void 0}:void 0,Fe=l4t(l,m,D,ce);if(Fe===Vu){if(D){const Te=Ize(D,l,!!(m&2));ce!=null&&ce.errors&&Es(Te,...ce.errors)}return}else if((C=ce==null?void 0:ce.errors)!=null&&C.length)for(const Te of ce.errors)Vs.add(Te);return Fe}const w=m&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=XEe(l,w);if(I)return I===Vu?void 0:I;let U;for(const ce of l.types){const Fe=D?{errors:void 0}:void 0,Te=l4t(ce,m,D,Fe);if(Te===Vu){if(D){const $e=Ize(D,l,!!(m&2));Fe!=null&&Fe.errors&&Es($e,...Fe.errors)}A3(l,w,Vu);return}else if((A=Fe==null?void 0:Fe.errors)!=null&&A.length)for(const $e of Fe.errors)Vs.add($e);U=xi(U,Te)}const Z=U?s4t(U):Vu;return A3(l,w,Z),Z===Vu?void 0:Z}function Pze(l,m){if(l===Vu)return Vu;if(l===Ss)return Ss;const{yieldType:D,returnType:C,nextType:A}=l;return m&&cPe(!0),J5(NF(D,m)||me,NF(C,m)||me,A)}function l4t(l,m,D,C){if(nt(l))return Ss;let A=!1;if(m&2){const w=Mze(l,S0)||d4t(l,S0);if(w)if(w===Vu&&D)A=!0;else return m&8?Pze(w,D):w}if(m&1){let w=Mze(l,ud)||d4t(l,ud);if(w)if(w===Vu&&D)A=!0;else if(m&2){if(w!==Vu)return w=Pze(w,D),A?w:A3(l,"iterationTypesOfAsyncIterable",w)}else return w}if(m&2){const w=zze(l,S0,D,C,A);if(w!==Vu)return w}if(m&1){let w=zze(l,ud,D,C,A);if(w!==Vu)return m&2?(w=Pze(w,D),A?w:A3(l,"iterationTypesOfAsyncIterable",w)):w}return Vu}function Mze(l,m){return XEe(l,m.iterableCacheKey)}function c4t(l,m){const D=Mze(l,m)||zze(l,m,void 0,void 0,!1);return D===Vu?nd:D}function d4t(l,m){let D;if(CC(l,D=m.getGlobalIterableType(!1))||CC(l,D=m.getGlobalIterableIteratorType(!1))){const[C]=O0(l),{returnType:A,nextType:w}=c4t(D,m);return A3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}if(CC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=O0(l);return A3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}}function h4t(l){const m=Qdt(!1),D=m&&he(Wn(m),Al(l));return D&&Y4(D)?Q4(D):`__@${l}`}function zze(l,m,D,C,A){const w=qo(l,h4t(m.iteratorSymbolName)),I=w&&!(w.flags&16777216)?Wn(w):void 0;if(nt(I))return A?Ss:A3(l,m.iterableCacheKey,Ss);const U=I?go(I,0):void 0;if(!Oe(U))return A?Vu:A3(l,m.iterableCacheKey,Vu);const Z=Ds(Vt(U,Zs)),ce=f4t(Z,m,D,C,A)??Vu;return A?ce:A3(l,m.iterableCacheKey,ce)}function Ize(l,m,D){const C=D?F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,A=!!jz(m)||!D&&SV(l.parent)&&l.parent.expression===l&&Mge(!1)!==Ka&&ms(m,Mge(!1));return bh(l,A,C,gn(m))}function Tsi(l,m,D,C){return f4t(l,m,D,C,!1)}function f4t(l,m,D,C,A){if(nt(l))return Ss;let w=m4t(l,m)||Lsi(l,m);return w===Vu&&D&&(w=void 0,A=!0),w??(w=g4t(l,m,D,C,A)),w===Vu?void 0:w}function m4t(l,m){return XEe(l,m.iteratorCacheKey)}function Lsi(l,m){const D=m.getGlobalIterableIteratorType(!1);if(CC(l,D)){const[C]=O0(l),A=m4t(D,m)||g4t(D,m,void 0,void 0,!1),{returnType:w,nextType:I}=A===Vu?nd:A;return A3(l,m.iteratorCacheKey,J5(C,w,I))}if(CC(l,m.getGlobalIteratorType(!1))||CC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=O0(l);return A3(l,m.iteratorCacheKey,J5(C,A,w))}}function p4t(l,m){const D=he(l,"done")||Ui;return ms(m===0?Ui:du,D)}function Nsi(l){return p4t(l,0)}function Psi(l){return p4t(l,1)}function Msi(l){if(nt(l))return Ss;const m=XEe(l,"iterationTypesOfIteratorResult");if(m)return m;if(CC(l,yei(!1))){const I=O0(l)[0];return A3(l,"iterationTypesOfIteratorResult",J5(I,void 0,void 0))}if(CC(l,kei(!1))){const I=O0(l)[0];return A3(l,"iterationTypesOfIteratorResult",J5(void 0,I,void 0))}const D=Ic(l,Nsi),C=D!==Ku?he(D,"value"):void 0,A=Ic(l,Psi),w=A!==Ku?he(A,"value"):void 0;return!C&&!w?A3(l,"iterationTypesOfIteratorResult",Vu):A3(l,"iterationTypesOfIteratorResult",J5(C,w||ca,void 0))}function Rze(l,m,D,C,A){var w,I,U,Z;const ce=qo(l,D);if(!ce&&D!=="next")return;const Fe=ce&&!(D==="next"&&ce.flags&16777216)?D==="next"?Wn(ce):mp(Wn(ce),2097152):void 0;if(nt(Fe))return D==="next"?Ss:ic;const Te=Fe?go(Fe,0):_t;if(Te.length===0){if(C){const Ii=D==="next"?m.mustHaveANextMethodDiagnostic:m.mustBeAMethodDiagnostic;A?(A.errors??(A.errors=[]),A.errors.push(Su(C,Ii,D))):pt(C,Ii,D)}return D==="next"?Vu:void 0}if(Fe!=null&&Fe.symbol&&Te.length===1){const Ii=m.getGlobalGeneratorType(!1),Nn=m.getGlobalIteratorType(!1),vn=((I=(w=Ii.symbol)==null?void 0:w.members)==null?void 0:I.get(D))===Fe.symbol,An=!vn&&((Z=(U=Nn.symbol)==null?void 0:U.members)==null?void 0:Z.get(D))===Fe.symbol;if(vn||An){const _n=vn?Ii:Nn,{mapper:hu}=Fe;return J5(k6(_n.typeParameters[0],hu),k6(_n.typeParameters[1],hu),D==="next"?k6(_n.typeParameters[2],hu):void 0)}}let $e,ut;for(const Ii of Te)D!=="throw"&&Oe(Ii.parameters)&&($e=xi($e,Lg(Ii,0))),ut=xi(ut,Zs(Ii));let zt,gi;if(D!=="throw"){const Ii=$e?er($e):on;if(D==="next")gi=Ii;else if(D==="return"){const Nn=m.resolveIterationType(Ii,C)||me;zt=xi(zt,Nn)}}let Wi;const dn=ut?Ds(ut):Ku,nu=m.resolveIterationType(dn,C)||me,En=Msi(nu);return En===Vu?(C&&(A?(A.errors??(A.errors=[]),A.errors.push(Su(C,m.mustHaveAValueDiagnostic,D))):pt(C,m.mustHaveAValueDiagnostic,D)),Wi=me,zt=xi(zt,me)):(Wi=En.yieldType,zt=xi(zt,En.returnType)),J5(Wi,er(zt),gi)}function g4t(l,m,D,C,A){const w=s4t([Rze(l,m,"next",D,C),Rze(l,m,"return",D,C),Rze(l,m,"throw",D,C)]);return A?w:A3(l,m.iteratorCacheKey,w)}function Hb(l,m,D){if(nt(m))return;const C=E4t(m,D);return C&&C[Bet(l)]}function E4t(l,m){if(nt(l))return Ss;const D=m?2:1,C=m?S0:ud;return e_e(l,D,void 0)||Tsi(l,C,void 0,void 0)}function zsi(l){SD(l)||Uli(l)}function bie(l,m){const D=!!(m&1),C=!!(m&2);if(D){const A=Hb(1,l,C);return A?C?W5(Vz(A)):A:Ot}return C?W5(l)||Ot:l}function _4t(l,m){const D=bie(m,kd(l));return!!(D&&(jl(D,16384)||D.flags&32769))}function Isi(l){if(SD(l))return;const m=dq(l);if(m&&zl(m)){r1(l,F.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!m){r1(l,F.A_return_statement_can_only_be_used_within_a_function_body);return}const D=dp(m),C=Zs(D),A=kd(m);if(fe||l.expression||C.flags&131072){const w=l.expression?Rc(l.expression):te;if(m.kind===178)l.expression&&pt(l,F.Setters_cannot_return_a_value);else if(m.kind===176)l.expression&&!A6(w,C,l,l.expression)&&pt(l,F.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(uT(m)){const I=bie(C,A)??C,U=A&2?PW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w;I&&A6(U,I,l,l.expression)}}else m.kind!==176&&ae.noImplicitReturns&&!_4t(m,C)&&pt(l,F.Not_all_code_paths_return_a_value)}function Rsi(l){SD(l)||l.flags&65536&&r1(l,F.with_statements_are_not_allowed_in_an_async_function_block),ya(l.expression);const m=zn(l);if(!Kb(m)){const D=QE(m,l.pos).start,C=l.statement.pos;Wb(m,D,C-D,F.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Osi(l){SD(l);let m,D=!1;const C=ya(l.expression);L(l.caseBlock.clauses,A=>{A.kind===297&&!D&&(m===void 0?m=A:(Zi(A,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),D=!0)),A.kind===296&&s(w(A)),L(A.statements,ls),ae.noFallthroughCasesInSwitch&&A.fallthroughFlowNode&&Jte(A.fallthroughFlowNode)&&pt(A,F.Fallthrough_case_in_switch);function w(I){return()=>{const U=ya(I.expression);Eze(C,U)||q1t(U,C,I.expression,void 0)}}}),l.caseBlock.locals&&T6(l.caseBlock)}function jsi(l){SD(l)||Tn(l.parent,m=>Co(m)?"quit":m.kind===256&&m.label.escapedText===l.label.escapedText?(Zi(l.label,F.Duplicate_label_0,Hc(l.label)),!0):!1),ls(l.statement)}function Vsi(l){SD(l)||at(l.expression)&&!l.expression.escapedText&&lci(l,F.Line_break_not_permitted_here),l.expression&&ya(l.expression)}function Hsi(l){SD(l),YEe(l.tryBlock);const m=l.catchClause;if(m){if(m.variableDeclaration){const D=m.variableDeclaration;vie(D);const C=f1(D);if(C){const A=Ar(C);A&&!(A.flags&3)&&r1(C,F.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(D.initializer)r1(D.initializer,F.Catch_clause_variable_cannot_have_an_initializer);else{const A=m.block.locals;A&&U_(m.locals,w=>{const I=A.get(w);I!=null&&I.valueDeclaration&&I.flags&2&&Zi(I.valueDeclaration,F.Cannot_redeclare_identifier_0_in_catch_clause,Qr(w))})}}YEe(m.block)}l.finallyBlock&&YEe(l.finallyBlock)}function t_e(l,m,D){const C=kh(l);if(C.length===0)return;for(const w of D6(l))D&&w.flags&4194304||D4t(l,w,yz(w,8576,!0),E6(w));const A=m.valueDeclaration;if(A&&mr(A)){for(const w of A.members)if(!No(w)&&!iT(w)){const I=_u(w);D4t(l,I,b1(w.name.expression),E6(I))}}if(C.length>1)for(const w of C)Ksi(l,w)}function D4t(l,m,D,C){const A=m.valueDeclaration,w=Za(A);if(w&&ea(w))return;const I=YNe(l,D),U=Gu(l)&2?Sl(l.symbol,264):void 0,Z=A&&A.kind===226||w&&w.kind===167?A:void 0,ce=cf(m)===l.symbol?A:void 0;for(const Fe of I){const Te=Fe.declaration&&cf(_u(Fe.declaration))===l.symbol?Fe.declaration:void 0,$e=ce||Te||(U&&!Oe(Zc(l),ut=>!!bC(ut,m.escapedName)&&!!yC(ut,Fe.keyType))?U:void 0);if($e&&!ms(C,Fe.type)){const ut=f3($e,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Fr(m),gn(C),gn(Fe.keyType),gn(Fe.type));Z&&$e!==Z&&Es(ut,Su(Z,F._0_is_declared_here,Fr(m))),Vs.add(ut)}}}function Ksi(l,m){const D=m.declaration,C=YNe(l,m.keyType),A=Gu(l)&2?Sl(l.symbol,264):void 0,w=D&&cf(_u(D))===l.symbol?D:void 0;for(const I of C){if(I===m)continue;const U=I.declaration&&cf(_u(I.declaration))===l.symbol?I.declaration:void 0,Z=w||U||(A&&!Oe(Zc(l),ce=>!!k3(ce,m.keyType)&&!!yC(ce,I.keyType))?A:void 0);Z&&!ms(m.type,I.type)&&pt(Z,F._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(m.keyType),gn(m.type),gn(I.keyType),gn(I.type))}}function Wz(l,m){switch(l.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":pt(l,m,l.escapedText)}}function Wsi(l){Ce>=1&&l.escapedText==="Object"&&(ne<5||zn(l).impliedNodeFormat===1)&&pt(l,F.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,FN[ne])}function Gsi(l){const m=ti(Cv(l),Eg);if(!S(m))return;const D=Qn(l),C=new Set,A=new Set;if(L(l.parameters,({name:I},U)=>{at(I)&&C.add(I.escapedText),So(I)&&A.add(U)}),XNe(l)){const I=m.length-1,U=m[I];D&&U&&at(U.name)&&U.typeExpression&&U.typeExpression.type&&!C.has(U.name.escapedText)&&!A.has(I)&&!A4(Ar(U.typeExpression.type))&&pt(U.name,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,fu(U.name))}else L(m,({name:I,isNameFirst:U},Z)=>{A.has(Z)||at(I)&&C.has(I.escapedText)||(vf(I)?D&&pt(I,F.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zf(I),zf(I.left)):U||g4(D,I,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,fu(I)))})}function yie(l){let m=!1;if(l)for(let C=0;C{C.default?(m=!0,Jsi(C.default,l,A)):m&&pt(C,F.Required_type_parameters_may_not_follow_optional_type_parameters);for(let w=0;wC)return!1;for(let Z=0;ZKc(D)&&ph(D))&&Zi(m,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!l.name&&!Yu(l,2048)&&r1(l,F.A_class_declaration_without_the_default_modifier_must_have_a_name),b4t(l),L(l.members,ls),T6(l)}function b4t(l){Nli(l),_ie(l),Hz(l,l.name),yie(Sx(l)),LW(l);const m=_u(l),D=X0(m),C=xm(D),A=Wn(m);x4t(m),UEe(m),doi(l),!!(l.flags&33554432)||hoi(l);const I=Qg(l);if(I){L(I.typeArguments,ls),Ce<2&&rd(I.parent,1);const ce=B2(l);ce&&ce!==I&&ya(ce.expression);const Fe=Zc(D);Fe.length&&s(()=>{const Te=Fe[0],$e=qc(D),ut=Gh($e);if(Qsi(ut,I),ls(I.expression),Oe(I.typeArguments)){L(I.typeArguments,ls);for(const gi of Rs(ut,I.typeArguments,I))if(!Wmt(I,gi.typeParameters))break}const zt=xm(Te,D.thisType);if(Ah(C,zt,void 0)?Ah(A,H1t(ut),l.name||l,F.Class_static_side_0_incorrectly_extends_base_class_static_side_1):F4t(l,C,zt,F.Class_0_incorrectly_extends_base_class_1),$e.flags&8650752&&(Hu(A)?go($e,1).some(Wi=>Wi.flags&4)&&!Yu(l,64)&&pt(l.name||l,F.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):pt(l.name||l,F.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(ut.symbol&&ut.symbol.flags&32)&&!($e.flags&8650752)){const gi=D0(ut,I.typeArguments,I);L(gi,Wi=>!AE(Wi.declaration)&&!CD(Zs(Wi),Te))&&pt(I.expression,F.Base_constructors_must_all_have_the_same_return_type)}t0i(D,Te)})}Ysi(l,D,C,A);const U=iB(l);if(U)for(const ce of U)(!ec(ce.expression)||Y1(ce.expression))&&pt(ce.expression,F.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),kze(ce),s(Z(ce));s(()=>{t_e(D,m),t_e(A,m,!0),Cze(l),u0i(l)});function Z(ce){return()=>{const Fe=Sg(Ar(ce));if(!Nt(Fe))if(pF(Fe)){const Te=Fe.symbol&&Fe.symbol.flags&32?F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:F.Class_0_incorrectly_implements_interface_1,$e=xm(Fe,D.thisType);Ah(C,$e,void 0)||F4t(l,C,$e,Te)}else pt(ce,F.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function Ysi(l,m,D,C){const w=Qg(l)&&Zc(m),I=w!=null&&w.length?xm(Pn(w),m.thisType):void 0,U=qc(m);for(const Z of l.members)rle(Z)||(hc(Z)&&L(Z.parameters,ce=>{Mf(ce,Z)&&y4t(l,C,U,I,m,D,ce,!0)}),y4t(l,C,U,I,m,D,Z,!1))}function y4t(l,m,D,C,A,w,I,U,Z=!0){const ce=I.name&&Yp(I.name)||Yp(I);return ce?k4t(l,m,D,C,A,w,Vq(I),P2(I),No(I),U,lc(ce),Z?I:void 0):0}function k4t(l,m,D,C,A,w,I,U,Z,ce,Fe,Te){const $e=Qn(l),ut=!!(l.flags&33554432);if(C&&(I||ae.noImplicitOverride)){const zt=Al(Fe),gi=Z?m:w,Wi=Z?D:C,dn=qo(gi,zt),nu=qo(Wi,zt),En=gn(C);if(dn&&!nu&&I){if(Te){const Ii=zft(Fe,Wi);Ii?pt(Te,$e?F.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:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,Fr(Ii)):pt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(dn&&(nu!=null&&nu.declarations)&&ae.noImplicitOverride&&!ut){const Ii=Oe(nu.declarations,P2);if(I)return 0;if(Ii){if(U&&Ii)return Te&&pt(Te,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(Te){const Nn=ce?$e?F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:$e?F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;pt(Te,Nn,En)}return 1}}}else if(I){if(Te){const zt=gn(A);pt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,zt)}return 2}return 0}function F4t(l,m,D,C){let A=!1;for(const w of l.members){if(No(w))continue;const I=w.name&&Yp(w.name)||Yp(w);if(I){const U=qo(m,I.escapedName),Z=qo(D,I.escapedName);if(U&&Z){const ce=()=>ro(void 0,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Fr(I),gn(m),gn(D));Ah(Wn(U),Wn(Z),w.name||w,void 0,ce)||(A=!0)}}}A||Ah(m,D,l.name||l,C)}function Qsi(l,m){const D=go(l,1);if(D.length){const C=D[0].declaration;if(C&&Rf(C,2)){const A=tD(l.symbol);Wze(m,A)||pt(m,F.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,op(l.symbol))}}}function Xsi(l,m,D){if(!m.name)return 0;const C=_u(l),A=X0(C),w=xm(A),I=Wn(C),Z=Qg(l)&&Zc(A),ce=Z!=null&&Z.length?xm(Pn(Z),A.thisType):void 0,Fe=qc(A),Te=m.parent?Vq(m):Yu(m,16);return k4t(l,I,Fe,ce,A,w,Te,P2(m),No(m),!1,lc(D))}function _T(l){return Gl(l)&1?l.links.target:l}function e0i(l){return ti(l.declarations,m=>m.kind===263||m.kind===264)}function t0i(l,m){var D,C,A,w;const I=n0(m);let U;e:for(const Z of I){const ce=_T(Z);if(ce.flags&4194304)continue;const Fe=bC(l,ce.escapedName);if(!Fe)continue;const Te=_T(Fe),$e=l4(ce);if(H.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===ce){const ut=tD(l.symbol);if($e&64&&(!ut||!Yu(ut,64))){for(const zt of Zc(l)){if(zt===m)continue;const gi=bC(zt,ce.escapedName),Wi=gi&&_T(gi);if(Wi&&Wi!==ce)continue e}U||(U=pt(ut,F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,gn(l),gn(m))),ut.kind===231?Es(U,Su(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Fr(Z),gn(m))):Es(U,Su(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(l),Fr(Z),gn(m)))}}else{const ut=l4(Te);if($e&2||ut&2)continue;let zt;const gi=ce.flags&98308,Wi=Te.flags&98308;if(gi&&Wi){if((Gl(ce)&6?(D=ce.declarations)!=null&&D.some(En=>A4t(En,$e)):(C=ce.declarations)!=null&&C.every(En=>A4t(En,$e)))||Gl(ce)&262144||Te.valueDeclaration&&Xn(Te.valueDeclaration))continue;const dn=gi!==4&&Wi===4;if(dn||gi===4&&Wi!==4){const En=dn?F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,En,Fr(ce),gn(m),gn(l))}else if(Se){const En=(A=Te.declarations)==null?void 0:A.find(Ii=>Ii.kind===172&&!Ii.initializer);if(En&&!(Te.flags&33554432)&&!($e&64)&&!(ut&64)&&!((w=Te.declarations)!=null&&w.some(Ii=>!!(Ii.flags&33554432)))){const Ii=Up(tD(l.symbol)),Nn=En.name;if(En.exclamationToken||!Ii||!at(Nn)||!fe||!B4t(Nn,l,Ii)){const vn=F.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;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,vn,Fr(ce),gn(m))}}}continue}else if(jMe(ce)){if(jMe(Te)||Te.flags&4)continue;H.assert(!!(Te.flags&98304)),zt=F.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?zt=F.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zt=F.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;pt(Za(Te.valueDeclaration)||Te.valueDeclaration,zt,gn(m),Fr(ce),gn(l))}}}function A4t(l,m){return m&64&&(!ko(l)||!l.initializer)||xh(l.parent)}function i0i(l,m,D){if(!S(m))return D;const C=new Map;L(D,A=>{C.set(A.escapedName,A)});for(const A of m){const w=n0(xm(A,l.thisType));for(const I of w){const U=C.get(I.escapedName);U&&I.parent===U.parent&&C.delete(I.escapedName)}}return ga(C.values())}function n0i(l,m){const D=Zc(l);if(D.length<2)return!0;const C=new Map;L(LNe(l).declaredProperties,w=>{C.set(w.escapedName,{prop:w,containingType:l})});let A=!0;for(const w of D){const I=n0(xm(w,l.thisType));for(const U of I){const Z=C.get(U.escapedName);if(!Z)C.set(U.escapedName,{prop:U,containingType:w});else if(Z.containingType!==l&&!Dii(Z.prop,U)){A=!1;const Fe=gn(Z.containingType),Te=gn(w);let $e=ro(void 0,F.Named_property_0_of_types_1_and_2_are_not_identical,Fr(U),Fe,Te);$e=ro($e,F.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(l),Fe,Te),Vs.add(Y3(zn(m),m,$e))}}}return A}function u0i(l){if(!fe||!Ge||l.flags&33554432)return;const m=Up(l);for(const D of l.members)if(!(Eh(D)&128)&&!No(D)&&S4t(D)){const C=D.name;if(at(C)||ea(C)||Ps(C)){const A=Wn(_u(D));A.flags&3||Fz(A)||(!m||!B4t(C,A,m))&&pt(D.name,F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,b0(C))}}}function S4t(l){return l.kind===172&&!P2(l)&&!l.exclamationToken&&!l.initializer}function r0i(l,m,D,C,A){for(const w of D)if(w.pos>=C&&w.pos<=A){const I=q.createPropertyAccessExpression(q.createThis(),l);ks(I.expression,I),ks(I,w),I.flowNode=w.returnFlowNode;const U=w6(I,m,S6(m));if(!Fz(U))return!0}return!1}function B4t(l,m,D){const C=Ps(l)?q.createElementAccessExpression(q.createThis(),l.expression):q.createPropertyAccessExpression(q.createThis(),l);ks(C.expression,C),ks(C,D),C.flowNode=D.returnFlowNode;const A=w6(C,m,S6(m));return!Fz(A)}function a0i(l){S3(l)||jli(l),yie(l.typeParameters),s(()=>{Wz(l.name,F.Interface_name_cannot_be_0),LW(l);const m=_u(l);x4t(m);const D=Sl(m,264);if(l===D){const C=X0(m),A=xm(C);if(n0i(C,l.name)){for(const w of Zc(C))Ah(A,xm(w,C.thisType),l.name,F.Interface_0_incorrectly_extends_interface_1);t_e(C,m)}}jmt(l)}),L(rP(l),m=>{(!ec(m.expression)||Y1(m.expression))&&pt(m.expression,F.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),kze(m)}),L(l.members,ls),s(()=>{Cze(l),T6(l)})}function o0i(l){S3(l),Wz(l.name,F.Type_alias_name_cannot_be_0),LW(l),yie(l.typeParameters),l.type.kind===141?(!tQ.has(l.name.escapedText)||S(l.typeParameters)!==1)&&pt(l.type,F.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(ls(l.type),T6(l))}function w4t(l){const m=ar(l);if(!(m.flags&1024)){m.flags|=1024;let D=0;for(const C of l.members){const A=s0i(C,D);ar(C).enumMemberValue=A,D=typeof A=="number"?A+1:void 0}}}function s0i(l,m){if(oj(l.name))pt(l.name,F.Computed_property_names_are_not_allowed_in_enums);else{const D=V8(l.name);i3(D)&&!LP(D)&&pt(l.name,F.An_enum_member_cannot_have_a_numeric_name)}if(l.initializer)return l0i(l);if(!(l.parent.flags&33554432&&!b2(l.parent))){if(m!==void 0)return m;pt(l.name,F.Enum_member_must_have_initializer)}}function l0i(l){const m=b2(l.parent),D=l.initializer,C=Gz(D,l);return C!==void 0?m&&typeof C=="number"&&!isFinite(C)&&pt(D,isNaN(C)?F.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:F.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):m?pt(D,F.const_enum_member_initializers_must_be_constant_expressions):l.parent.flags&33554432?pt(D,F.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Ah(ya(D),Qt,D,F.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function Gz(l,m){switch(l.kind){case 224:const D=Gz(l.operand,m);if(typeof D=="number")switch(l.operator){case 40:return D;case 41:return-D;case 55:return~D}break;case 226:const C=Gz(l.left,m),A=Gz(l.right,m);if(typeof C=="number"&&typeof A=="number")switch(l.operatorToken.kind){case 52:return C|A;case 51:return C&A;case 49:return C>>A;case 50:return C>>>A;case 48:return C<d0i(l))}function d0i(l){S3(l),Hz(l,l.name),LW(l),l.members.forEach(h0i),w4t(l);const m=_u(l),D=Sl(m,l.kind);if(l===D){if(m.declarations&&m.declarations.length>1){const A=b2(l);L(m.declarations,w=>{Iv(w)&&b2(w)!==A&&pt(Za(w),F.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;L(m.declarations,A=>{if(A.kind!==266)return!1;const w=A;if(!w.members.length)return!1;const I=w.members[0];I.initializer||(C?pt(I.name,F.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function h0i(l){ea(l.name)&&pt(l,F.An_enum_member_cannot_be_named_with_a_private_identifier),l.initializer&&ya(l.initializer)}function f0i(l){const m=l.declarations;if(m){for(const D of m)if((D.kind===263||D.kind===262&&H4(D.body))&&!(D.flags&33554432))return D}}function m0i(l,m){const D=YE(l),C=YE(m);return pE(D)?pE(C):pE(C)?!1:D===C}function p0i(l){l.body&&(ls(l.body),Yg(l)||T6(l)),s(m);function m(){var D,C;const A=Yg(l),w=l.flags&33554432;A&&!w&&pt(l.name,F.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=N1(l),U=I?F.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:F.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(kie(l,U))return;S3(l)||!w&&l.name.kind===11&&Zi(l.name,F.Only_ambient_modules_can_use_quoted_names),at(l.name)&&Hz(l,l.name),LW(l);const Z=_u(l);if(Z.flags&512&&!w&&Rde(l,fk(ae))){if(mg(ae)&&!zn(l).externalModuleIndicator&&pt(l.name,F.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,ht),((D=Z.declarations)==null?void 0:D.length)>1){const ce=f0i(Z);ce&&(zn(l)!==zn(ce)?pt(l.name,F.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):l.posFe.kind===95);ce&&pt(ce,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(v2(l)){if((A||_u(l).flags&33554432)&&l.body)for(const Fe of l.body.statements)Oze(Fe,A)}else pE(l.parent)?A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Id(J4(l.name))&&pt(l.name,F.Ambient_module_declaration_cannot_specify_relative_module_name):A?pt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):pt(l.name,F.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Oze(l,m){switch(l.kind){case 243:for(const C of l.declarationList.declarations)Oze(C,m);break;case 277:case 278:r1(l,F.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:r1(l,F.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const D=l.name;if(So(D)){for(const C of D.elements)Oze(C,m);break}case 263:case 266:case 262:case 264:case 267:case 265:if(m)return;break}}function g0i(l){switch(l.kind){case 80:return l;case 166:do l=l.left;while(l.kind!==80);return l;case 211:do{if(Y_(l.expression)&&!ea(l.name))return l.name;l=l.expression}while(l.kind!==80);return l}}function jze(l){const m=Y8(l);if(!m||Ql(m))return!1;if(!us(m))return pt(m,F.String_literal_expected),!1;const D=l.parent.kind===268&&N1(l.parent.parent);if(l.parent.kind!==312&&!D)return pt(m,l.kind===278?F.Export_declarations_are_not_permitted_in_a_namespace:F.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(D&&Id(m.text)&&!j9(l))return pt(l,F.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!E1(l)&&l.attributes){const C=l.attributes.token===118?F.Import_attribute_values_must_be_string_literal_expressions:F.Import_assertion_values_must_be_string_literal_expressions;let A=!1;for(const w of l.attributes.elements)us(w.value)||(A=!0,pt(w.value,C));return!A}return!0}function i_e(l){var m,D,C,A;let w=_u(l);const I=md(w);if(I!==Xt){if(w=Ks(w.exportSymbol||w),Qn(l)&&!(I.flags&111551)&&!_2(l)){const ce=r7(l)?l.propertyName||l.name:mh(l)?l.name:l;if(H.assert(l.kind!==280),l.kind===281){const Fe=pt(ce,F.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(D=(m=zn(l).symbol)==null?void 0:m.exports)==null?void 0:D.get((l.propertyName||l.name).escapedText);if(Te===I){const $e=(C=Te.declarations)==null?void 0:C.find(z8);$e&&Es(Fe,Su($e,F._0_is_automatically_exported_here,Qr(Te.escapedName)))}}else{H.assert(l.kind!==260);const Fe=Tn(l,dg(Sd,E1)),Te=(Fe&&((A=Z8(Fe))==null?void 0:A.text))??"...",$e=Qr(at(ce)?ce.escapedText:w.escapedName);pt(ce,F._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,$e,`import("${Te}").${$e}`)}return}const U=O1(I),Z=(w.flags&1160127?111551:0)|(w.flags&788968?788968:0)|(w.flags&1920?1920:0);if(U&Z){const ce=l.kind===281?F.Export_declaration_conflicts_with_exported_declaration_of_0:F.Import_declaration_conflicts_with_local_declaration_of_0;pt(l,ce,Fr(w))}if(mg(ae)&&!_2(l)&&!(l.flags&33554432)){const ce=_4(w),Fe=!(U&111551);if(Fe||ce)switch(l.kind){case 273:case 276:case 271:{if(ae.preserveValueImports||ae.verbatimModuleSyntax){H.assertIsDefined(l.name,"An ImportClause with a symbol should have a name");const Te=ae.verbatimModuleSyntax&&U8(l)?F.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Fe?ae.verbatimModuleSyntax?F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:ae.verbatimModuleSyntax?F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,$e=fu(l.kind===276&&l.propertyName||l.name);dD(pt(l,Te,$e),Fe?void 0:ce,$e)}Fe&&l.kind===271&&Rf(l,32)&&pt(l,F.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ht);break}case 281:if(ae.verbatimModuleSyntax||zn(ce)!==zn(l)){const Te=fu(l.propertyName||l.name),$e=Fe?pt(l,F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ht):pt(l,F._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Te,ht);dD($e,Fe?void 0:ce,Te);break}}ae.verbatimModuleSyntax&&l.kind!==271&&!Qn(l)&&(ne===1||zn(l).impliedNodeFormat===1)&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(bf(l)){const ce=Vze(w,l);S5(ce)&&ce.declarations&&m3(l,ce.declarations,ce.escapedName)}}}function Vze(l,m){if(!(l.flags&2097152)||S5(l)||!rp(l))return l;const D=md(l);if(D===Xt)return D;for(;l.flags&2097152;){const C=PMe(l);if(C){if(C===D)break;if(C.declarations&&S(C.declarations))if(S5(C)){m3(m,C.declarations,C.escapedName);break}else{if(l===D)break;l=C}}else break}return D}function n_e(l){Hz(l,l.name),i_e(l),l.kind===276&&fu(l.propertyName||l.name)==="default"&&e_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&rd(l,131072)}function N4t(l){var m;const D=l.attributes;if(D){const C=F1e(l),A=qB(D,C?Zi:void 0),w=l.attributes.token===118;if(C&&A)return;if((ne===199&&l.moduleSpecifier&&Ma(l.moduleSpecifier))!==99&&ne!==99){const U=w?ne===199?F.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:ne===199?F.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return Zi(D,U)}if(Sd(l)?(m=l.importClause)!=null&&m.isTypeOnly:l.isTypeOnly)return Zi(D,w?F.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:F.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(A)return Zi(D,F.resolution_mode_can_only_be_set_for_type_only_imports)}}function E0i(l){if(!kie(l,Qn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!S3(l)&&jq(l)&&r1(l,F.An_import_declaration_cannot_have_modifiers),jze(l)){const m=l.importClause;m&&!dci(m)&&(m.name&&n_e(m),m.namedBindings&&(m.namedBindings.kind===274?(n_e(m.namedBindings),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&e_(ae)&&rd(l,65536)):Kh(l,l.moduleSpecifier)&&L(m.namedBindings.elements,n_e)))}N4t(l)}}function _0i(l){if(!kie(l,Qn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(S3(l),U8(l)||jze(l)))if(n_e(l),Yu(l,32)&&fC(l),l.moduleReference.kind!==283){const m=md(_u(l));if(m!==Xt){const D=O1(m);if(D&111551){const C=hm(l.moduleReference);R0(C,112575).flags&1920||pt(C,F.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,b0(C))}D&788968&&Wz(l.name,F.Import_name_cannot_be_0)}l.isTypeOnly&&Zi(l,F.An_import_alias_cannot_use_import_type)}else ne>=5&&zn(l).impliedNodeFormat===void 0&&!l.isTypeOnly&&!(l.flags&33554432)&&Zi(l,F.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)}function D0i(l){if(!kie(l,Qn(l)?F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!S3(l)&&Bye(l)&&r1(l,F.An_export_declaration_cannot_have_modifiers),l.moduleSpecifier&&l.exportClause&&ep(l.exportClause)&&S(l.exportClause.elements)&&Ce===0&&rd(l,4194304),x0i(l),!l.moduleSpecifier||jze(l))if(l.exportClause&&!u_(l.exportClause)){L(l.exportClause.elements,F0i);const m=l.parent.kind===268&&N1(l.parent.parent),D=!m&&l.parent.kind===268&&!l.moduleSpecifier&&l.flags&33554432;l.parent.kind!==312&&!m&&!D&&pt(l,F.Export_declarations_are_not_permitted_in_a_namespace)}else{const m=Kh(l,l.moduleSpecifier);m&&bb(m)?pt(l.moduleSpecifier,F.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Fr(m)):l.exportClause&&i_e(l.exportClause),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&(l.exportClause?e_(ae)&&rd(l,65536):rd(l,32768))}N4t(l)}}function x0i(l){var m;return l.isTypeOnly&&((m=l.exportClause)==null?void 0:m.kind)===279?dpt(l.exportClause):!1}function kie(l,m){const D=l.parent.kind===312||l.parent.kind===268||l.parent.kind===267;return D||r1(l,m),!D}function v0i(l){return Fq(l,m=>!!_u(m).isReferenced)}function C0i(l){return Fq(l,m=>!!Ur(_u(m)).constEnumReferenced)}function b0i(l){return Sd(l)&&l.importClause&&!l.importClause.isTypeOnly&&v0i(l.importClause)&&!l_e(l.importClause,!0)&&!C0i(l.importClause)}function y0i(l){return E1(l)&&r_(l.moduleReference)&&!l.isTypeOnly&&_u(l).isReferenced&&!l_e(l,!1)&&!Ur(_u(l)).constEnumReferenced}function k0i(l){if(Ut)for(const m of l.statements)(b0i(m)||y0i(m))&&pt(m,F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function F0i(l){if(i_e(l),c4(ae)&&qw(l.propertyName||l.name,!0),l.parent.parent.moduleSpecifier)e_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&fu(l.propertyName||l.name)==="default"&&rd(l,131072);else{const m=l.propertyName||l.name,D=uc(m,m.escapedText,2998271,void 0,void 0,!0);if(D&&(D===st||D===St||D.declarations&&pE(dF(D.declarations[0]))))pt(m,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,fu(m));else{!l.isTypeOnly&&!l.parent.parent.isTypeOnly&&fC(l);const C=D&&(D.flags&2097152?md(D):D);(!C||O1(C)&111551)&&Rc(l.propertyName||l.name)}}}function A0i(l){const m=l.isExportEquals?F.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(kie(l,m))return;const D=l.parent.kind===312?l.parent:l.parent.parent;if(D.kind===267&&!N1(D)){l.isExportEquals?pt(l,F.An_export_assignment_cannot_be_used_in_a_namespace):pt(l,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!S3(l)&&jq(l)&&r1(l,F.An_export_assignment_cannot_have_modifiers);const C=f1(l);C&&Ah(Rc(l.expression),Ar(C),l.expression);const A=!l.isExportEquals&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&(ne===1||zn(l).impliedNodeFormat===1);if(l.expression.kind===80){const w=l.expression,I=sp(R0(w,67108863,!0,!0,l));I?(bEe(I,w),O1(I)&111551?(Rc(w),!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&_4(I,111551)&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:F.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,fu(w))):!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&pt(w,l.isExportEquals?F.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:F.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,fu(w))):Rc(w),c4(ae)&&qw(w,!0)}else Rc(l.expression);A&&pt(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),P4t(D),l.flags&33554432&&!ec(l.expression)&&Zi(l.expression,F.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),l.isExportEquals&&(ne>=5&&(l.flags&33554432&&zn(l).impliedNodeFormat===99||!(l.flags&33554432)&&zn(l).impliedNodeFormat!==1)?Zi(l,F.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ne===4&&!(l.flags&33554432)&&Zi(l,F.Export_assignment_is_not_supported_when_module_flag_is_system))}function S0i(l){return h1(l.exports,(m,D)=>D!=="export=")}function P4t(l){const m=_u(l),D=Ur(m);if(!D.exportsChecked){const C=m.exports.get("export=");if(C&&S0i(m)){const w=rp(C)||C.valueDeclaration;w&&!j9(w)&&!Qn(w)&&pt(w,F.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const A=x3(m);A&&A.forEach(({declarations:w,flags:I},U)=>{if(U==="__export"||I&1920)return;const Z=ui(w,Q$(wet,X$(xh)));if(!(I&524288&&Z<=2)&&Z>1&&!u_e(w))for(const ce of w)Fet(ce)&&Vs.add(Su(ce,F.Cannot_redeclare_exported_variable_0,Qr(U)))}),D.exportsChecked=!0}}function u_e(l){return l&&l.length>1&&l.every(m=>Qn(m)&&I0(m)&&(uk(m.expression)||Y_(m.expression)))}function ls(l){if(l){const m=K;K=l,z=0,B0i(l),K=m}}function B0i(l){wj(l)&&L(l.jsDoc,({comment:D,tags:C})=>{M4t(D),L(C,A=>{M4t(A.comment),Qn(l)&&ls(A)})});const m=l.kind;if(d)switch(m){case 267:case 263:case 264:case 262:d.throwIfCancellationRequested()}switch(m>=243&&m<=259&&Bj(l)&&l.flowNode&&!Jte(l.flowNode)&&g4(ae.allowUnreachableCode===!1,l,F.Unreachable_code_detected),m){case 168:return Imt(l);case 169:return Rmt(l);case 172:return Vmt(l);case 171:return foi(l);case 185:case 184:case 179:case 180:case 181:return TW(l);case 174:case 173:return moi(l);case 175:return poi(l);case 176:return goi(l);case 177:case 178:return Kmt(l);case 183:return kze(l);case 182:return loi(l);case 186:return Coi(l);case 187:return boi(l);case 188:return yoi(l);case 189:return koi(l);case 192:case 193:return Foi(l);case 196:case 190:case 191:return ls(l.type);case 197:return woi(l);case 198:return Toi(l);case 194:return Loi(l);case 195:return Noi(l);case 203:return Poi(l);case 205:return Moi(l);case 202:return zoi(l);case 335:return tsi(l);case 336:return esi(l);case 353:case 345:case 347:return Goi(l);case 352:return Joi(l);case 351:return $oi(l);case 331:case 332:case 333:return qoi(l);case 348:return Zoi(l);case 355:return Yoi(l);case 324:Qoi(l);case 322:case 321:case 319:case 320:case 329:z4t(l),ao(l,ls);return;case 325:w0i(l);return;case 316:return ls(l.type);case 340:case 342:case 341:return isi(l);case 357:return Uoi(l);case 350:return Xoi(l);case 199:return Aoi(l);case 200:return Soi(l);case 262:return Woi(l);case 241:case 268:return YEe(l);case 243:return xsi(l);case 244:return vsi(l);case 245:return Csi(l);case 246:return ksi(l);case 247:return Fsi(l);case 248:return Asi(l);case 249:return Bsi(l);case 250:return Ssi(l);case 251:case 252:return zsi(l);case 253:return Isi(l);case 254:return Rsi(l);case 255:return Osi(l);case 256:return jsi(l);case 257:return Vsi(l);case 258:return Hsi(l);case 260:return _si(l);case 208:return Dsi(l);case 263:return Zsi(l);case 264:return a0i(l);case 265:return o0i(l);case 266:return c0i(l);case 267:return p0i(l);case 272:return E0i(l);case 271:return _0i(l);case 278:return D0i(l);case 277:return A0i(l);case 242:case 259:SD(l);return;case 282:return _oi(l)}}function M4t(l){Ha(l)&&L(l,m=>{o7(m)&&ls(m)})}function z4t(l){if(!Qn(l))if(mY(l)||wB(l)){const m=Uo(mY(l)?54:58),D=l.postfix?F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=l.type,A=Ar(C);Zi(l,D,m,gn(wB(l)&&!(A===Ku||A===ca)?er(xi([A,te],l.postfix?void 0:it)):A))}else Zi(l,F.JSDoc_types_can_only_be_used_inside_documentation_comments)}function w0i(l){z4t(l),ls(l.type);const{parent:m}=l;if(io(m)&&TB(m.parent)){Cr(m.parent.parameters)!==m&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list);return}kk(m)||pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const D=l.parent.parent;if(!Eg(D)){pt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=Tj(D);if(!C)return;const A=kv(D);(!A||Cr(A.parameters).symbol!==C)&&pt(l,F.A_rest_parameter_must_be_last_in_a_parameter_list)}function T0i(l){const m=Ar(l.type),{parent:D}=l,C=l.parent.parent;if(kk(l.parent)&&Eg(C)){const A=kv(C),w=Ace(C.parent.parent);if(A||w){const I=qu(w?C.parent.parent.typeExpression.parameters:A.parameters),U=Tj(C);if(!I||U&&I.symbol===U&&$_(I))return V1(m)}}return io(D)&&TB(D.parent)?V1(m):Vd(m)}function eS(l){const m=zn(l),D=ar(m);D.flags&1?H.assert(!D.deferredNodes,"A type-checked file should have no deferred nodes."):(D.deferredNodes||(D.deferredNodes=new Set),D.deferredNodes.add(l))}function L0i(l){const m=ar(l);m.deferredNodes&&m.deferredNodes.forEach(N0i),m.deferredNodes=void 0}function N0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkDeferredNode",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const C=K;switch(K=l,z=0,l.kind){case 213:case 214:case 215:case 170:case 286:BF(l);break;case 218:case 219:case 174:case 173:Sai(l);break;case 177:case 178:Kmt(l);break;case 231:qsi(l);break;case 168:soi(l);break;case 285:Rui(l);break;case 284:jui(l);break;case 216:case 234:case 217:tai(l);break;case 222:ya(l.expression);break;case 226:Hq(l)&&BF(l);break}K=C,(D=Gn)==null||D.pop()}function P0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkSourceFile",{path:l.path},!0),ul("beforeCheck"),M0i(l),ul("afterCheck"),Tm("Check","beforeCheck","afterCheck"),(D=Gn)==null||D.pop()}function I4t(l,m){if(m)return!1;switch(l){case 0:return!!ae.noUnusedLocals;case 1:return!!ae.noUnusedParameters;default:return H.assertNever(l)}}function R4t(l){return b5.get(l.path)||_t}function M0i(l){const m=ar(l);if(!(m.flags&1)){if(AP(l,ae,t))return;oci(l),pu(cb),pu(db),pu(iC),pu(y5),pu(hb),L(l.statements,ls),ls(l.endOfFileToken),L0i(l),cm(l)&&T6(l),s(()=>{!l.isDeclarationFile&&(ae.noUnusedLocals||ae.noUnusedParameters)&&t4t(R4t(l),(D,C,A)=>{!O8(D)&&I4t(C,!!(D.flags&33554432))&&Vs.add(A)}),l.isDeclarationFile||asi()}),ae.importsNotUsedAsValues===2&&!l.isDeclarationFile&&wc(l)&&k0i(l),cm(l)&&P4t(l),cb.length&&(L(cb,lsi),pu(cb)),db.length&&(L(db,csi),pu(db)),iC.length&&(L(iC,msi),pu(iC)),y5.length&&(L(y5,gsi),pu(y5)),m.flags|=1}}function O4t(l,m){try{return d=m,z0i(l)}finally{d=void 0}}function Hze(){for(const l of u)l();u=[]}function Kze(l){Hze();const m=s;s=D=>D(),P0i(l),s=m}function z0i(l){if(l){Hze();const m=Vs.getGlobalDiagnostics(),D=m.length;Kze(l);const C=Vs.getDiagnostics(l.fileName),A=Vs.getGlobalDiagnostics();if(A!==m){const w=Wr(m,A,bP);return Hi(w,C)}else if(D===0&&A.length>0)return Hi(A,C);return C}return L(t.getSourceFiles(),Kze),Vs.getDiagnostics()}function I0i(){return Hze(),Vs.getGlobalDiagnostics()}function R0i(l,m){if(l.flags&67108864)return[];const D=Vo();let C=!1;return A(),D.delete("this"),QNe(D);function A(){for(;l;){switch(UE(l)&&l.locals&&!pE(l)&&I(l.locals,m),l.kind){case 312:if(!wc(l))break;case 267:U(_u(l).exports,m&2623475);break;case 266:I(_u(l).exports,m&8);break;case 231:l.name&&w(l.symbol,m);case 263:case 264:C||I(_6(_u(l)),m&788968);break;case 218:l.name&&w(l.symbol,m);break}Ube(l)&&w(It,m),C=No(l),l=l.parent}I(Ie,m)}function w(Z,ce){if(xP(Z)&ce){const Fe=Z.escapedName;D.has(Fe)||D.set(Fe,Z)}}function I(Z,ce){ce&&Z.forEach(Fe=>{w(Fe,ce)})}function U(Z,ce){ce&&Z.forEach(Fe=>{!Sl(Fe,281)&&!Sl(Fe,280)&&Fe.escapedName!=="default"&&w(Fe,ce)})}}function O0i(l){return l.kind===80&&gB(l.parent)&&Za(l.parent)===l}function j4t(l){for(;l.parent.kind===166;)l=l.parent;return l.parent.kind===183}function j0i(l){for(;l.parent.kind===211;)l=l.parent;return l.parent.kind===233}function V4t(l,m){let D,C=Yd(l);for(;C&&!(D=m(C));)C=Yd(C);return D}function V0i(l){return!!Tn(l,m=>hc(m)&&H4(m.body)||ko(m)?!0:mr(m)||$0(m)?"quit":!1)}function Wze(l,m){return!!V4t(l,D=>D===m)}function H0i(l){for(;l.parent.kind===166;)l=l.parent;if(l.parent.kind===271)return l.parent.moduleReference===l?l.parent:void 0;if(l.parent.kind===277)return l.parent.expression===l?l.parent:void 0}function r_e(l){return H0i(l)!==void 0}function K0i(l){switch(Xl(l.parent.parent)){case 1:case 3:return Dm(l.parent);case 4:case 2:case 5:return _u(l.parent.parent)}}function W0i(l){let m=l.parent;for(;vf(m);)l=m,m=m.parent;if(m&&m.kind===205&&m.qualifier===l)return m}function G0i(l){if(l.expression.kind===110){const m=tf(l,!1,!1);if(Co(m)){const D=eft(m);if(D){const C=MC(D,void 0),A=ift(D,C);return A&&!nt(A)}}}}function H4t(l){if(X3(l))return Dm(l.parent);if(Qn(l)&&l.parent.kind===211&&l.parent===l.parent.parent.left&&!ea(l)&&!Rv(l)&&!G0i(l.parent)){const m=K0i(l);if(m)return m}if(l.parent.kind===277&&ec(l)){const m=R0(l,2998271,!0);if(m&&m!==Xt)return m}else if(sm(l)&&r_e(l)){const m=Fv(l,271);return H.assert(m!==void 0),aF(l,!0)}if(sm(l)){const m=W0i(l);if(m){Ar(m);const D=ar(l).resolvedSymbol;return D===Xt?void 0:D}}for(;Mye(l);)l=l.parent;if(j0i(l)){let m=0;l.parent.kind===233?(m=q_(l)?788968:111551,Jj(l.parent)&&(m|=111551)):m=1920,m|=2097152;const D=ec(l)?R0(l,m,!0):void 0;if(D)return D}if(l.parent.kind===348)return Tj(l.parent);if(l.parent.kind===168&&l.parent.parent.kind===352){H.assert(!Qn(l));const m=oye(l.parent);return m&&m.symbol}if(Z_(l)){if(Ql(l))return;const m=Tn(l,dg(o7,QP,Rv)),D=m?901119:111551;if(l.kind===80){if($8(l)&&X9(l)){const A=wEe(l.parent);return A===Xt?void 0:A}const C=R0(l,D,!0,!0,kv(l));if(!C&&m){const A=Tn(l,dg(mr,xh));if(A)return Fie(l,!0,_u(A))}if(C&&m){const A=h7(l);if(A&&J2(A)&&A===C.valueDeclaration)return R0(l,D,!0,!0,zn(A))||C}return C}else{if(ea(l))return NEe(l);if(l.kind===211||l.kind===166){const C=ar(l);return C.resolvedSymbol?C.resolvedSymbol:(l.kind===211?(TEe(l,0),C.resolvedSymbol||(C.resolvedSymbol=K4t(Rc(l.expression),j5(l.name)))):Bft(l,0),!C.resolvedSymbol&&m&&vf(l)?Fie(l):C.resolvedSymbol)}else if(Rv(l))return Fie(l)}}else if(j4t(l)){const m=l.parent.kind===183?788968:1920,D=R0(l,m,!1,!0);return D&&D!==Xt?D:Tge(l)}if(l.parent.kind===182)return R0(l,1)}function K4t(l,m){const D=YNe(l,m);if(D.length&&l.members){const C=Sge(Ag(l).members);if(D===kh(l))return C;if(C){const A=Ur(C),w=qi(D,U=>U.declaration),I=Vt(w,$s).join(",");if(A.filteredIndexSymbolCache||(A.filteredIndexSymbolCache=new Map),A.filteredIndexSymbolCache.has(I))return A.filteredIndexSymbolCache.get(I);{const U=Hs(131072,"__index");return U.declarations=qi(D,Z=>Z.declaration),U.parent=l.aliasSymbol?l.aliasSymbol:l.symbol?l.symbol:Yp(U.declarations[0].parent),A.filteredIndexSymbolCache.set(I,U),U}}}}function Fie(l,m,D){if(sm(l)){let I=R0(l,901119,m,!0,kv(l));if(!I&&at(l)&&D&&(I=Ks(kf($f(D),l.escapedText,901119))),I)return I}const C=at(l)?D:Fie(l.left,m,D),A=at(l)?l.escapedText:l.right.escapedText;if(C){const w=C.flags&111551&&qo(Wn(C),"prototype"),I=w?Wn(w):X0(C);return qo(I,A)}}function Yp(l,m){if(la(l))return wc(l)?Ks(l.symbol):void 0;const{parent:D}=l,C=D.parent;if(!(l.flags&67108864)){if(Aet(l)){const A=_u(D);return r7(l.parent)&&l.parent.propertyName===l?PMe(A):A}else if(Nj(l))return _u(D.parent);if(l.kind===80){if(r_e(l))return H4t(l);if(D.kind===208&&C.kind===206&&l===D.propertyName){const A=tS(C),w=qo(A,l.escapedText);if(w)return w}else if($P(D)&&D.name===l)return D.keywordToken===105&&fu(l)==="target"?oze(D).symbol:D.keywordToken===102&&fu(l)==="meta"?Zdt().members.get("meta"):void 0}switch(l.kind){case 80:case 81:case 211:case 166:if(!g7(l))return H4t(l);case 110:const A=tf(l,!1,!1);if(Co(A)){const U=dp(A);if(U.thisParameter)return U.thisParameter}if(Eq(l))return ya(l).symbol;case 197:return Vge(l).symbol;case 108:return ya(l).symbol;case 137:const w=l.parent;return w&&w.kind===176?w.parent.symbol:void 0;case 11:case 15:if(bv(l.parent.parent)&&XN(l.parent.parent)===l||(l.parent.kind===272||l.parent.kind===278)&&l.parent.moduleSpecifier===l||Qn(l)&&p1(ae)!==100&&xf(l.parent,!1)||dm(l.parent)||Mv(l.parent)&&zx(l.parent.parent)&&l.parent.parent.argument===l.parent)return Kh(l,l,m);if(Mo(D)&&rk(D)&&D.arguments[1]===l)return _u(D);case 9:const I=U0(D)?D.argumentExpression===l?b1(D.expression):void 0:Mv(D)&&I7(C)?Ar(C.objectType):void 0;return I&&qo(I,Al(l.text));case 90:case 100:case 39:case 86:return Dm(l.parent);case 205:return zx(l)?Yp(l.argument.literal,m):void 0;case 95:return tc(l.parent)?H.checkDefined(l.parent.symbol):void 0;case 102:case 105:return $P(l.parent)?dmt(l.parent).symbol:void 0;case 104:if(Xn(l.parent)){const U=b1(l.parent.right),Z=gze(U);return(Z==null?void 0:Z.symbol)??U.symbol}return;case 236:return ya(l).symbol;case 295:if($8(l)&&X9(l)){const U=wEe(l.parent);return U===Xt?void 0:U}default:return}}}function J0i(l){if(at(l)&&Iu(l.parent)&&l.parent.name===l){const m=j5(l),D=b1(l.parent.expression),C=D.flags&1048576?D.types:[D];return ju(C,A=>ti(kh(A),w=>nT(m,w.keyType)))}}function $0i(l){if(l&&l.kind===304)return R0(l.name,2208703)}function U0i(l){return eh(l)?l.parent.parent.moduleSpecifier?cC(l.parent.parent,l):R0(l.propertyName||l.name,2998271):R0(l,2998271)}function tS(l){if(la(l)&&!wc(l)||l.flags&67108864)return Ot;const m=lle(l),D=m&&b4(_u(m.class));if(q_(l)){const C=Ar(l);return D?xm(C,D.thisType):C}if(Z_(l))return W4t(l);if(D&&!m.isImplements){const C=Ki(Zc(D));return C?xm(C,D.thisType):Ot}if(gB(l)){const C=_u(l);return X0(C)}if(O0i(l)){const C=Yp(l);return C?X0(C):Ot}if(js(l))return gD(l,!0,0)||Ot;if(Q1(l)){const C=_u(l);return C?Wn(C):Ot}if(Aet(l)){const C=Yp(l);return C?Wn(C):Ot}if(So(l))return gD(l.parent,!0,0)||Ot;if(r_e(l)){const C=Yp(l);if(C){const A=X0(C);return Nt(A)?Wn(C):A}}return $P(l.parent)&&l.parent.keywordToken===l.kind?dmt(l.parent):Ot}function a_e(l){if(H.assert(l.kind===210||l.kind===209),l.parent.kind===250){const A=Cie(l.parent);return LF(l,A||Ot)}if(l.parent.kind===226){const A=b1(l.parent.right);return LF(l,A||Ot)}if(l.parent.kind===303){const A=Po(l.parent.parent,ys),w=a_e(A)||Ot,I=j8(A.properties,l.parent);return Amt(A,w,I)}const m=Po(l.parent,Dh),D=a_e(m)||Ot,C=G5(65,D,te,l.parent)||Ot;return Smt(m,D,m.elements.indexOf(l),C)}function q0i(l){const m=a_e(Po(l.parent.parent,KN));return m&&qo(m,l.escapedText)}function W4t(l){return gP(l)&&(l=l.parent),Jh(b1(l))}function G4t(l){const m=Dm(l.parent);return No(l)?Wn(m):X0(m)}function J4t(l){const m=l.name;switch(m.kind){case 80:return df(fu(m));case 9:case 11:return df(m.text);case 167:const D=F3(m);return u1(D,12288)?D:ct;default:return H.fail("Unsupported property name.")}}function Gze(l){l=Gh(l);const m=Vo(n0(l)),D=go(l,0).length?Mn:go(l,1).length?ba:void 0;return D&&L(n0(D),C=>{m.has(C.escapedName)||m.set(C.escapedName,C)}),Ab(m)}function o_e(l){return go(l,0).length!==0||go(l,1).length!==0}function $4t(l){const m=Z0i(l);return m?ju(m,$4t):[l]}function Z0i(l){if(Gl(l)&6)return qi(Ur(l).containingType.types,m=>qo(m,l.escapedName));if(l.flags&33554432){const{links:{leftSpread:m,rightSpread:D,syntheticOrigin:C}}=l;return m?[m,D]:C?[C]:Hy(Y0i(l))}}function Y0i(l){let m,D=l;for(;D=Ur(D).target;)m=D;return m}function Q0i(l){if(al(l))return!1;const m=Ua(l,at);if(!m)return!1;const D=m.parent;return D?!((Iu(D)||Jc(D))&&D.name===m)&&VW(m)===It:!1}function X0i(l){let m=Kh(l.parent,l);if(!m||$N(m))return!0;const D=bb(m);m=_m(m);const C=Ur(m);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=D?!!(m.flags&111551):h1(x3(m),A)),C.exportsSomeValue;function A(w){return w=yc(w),w&&!!(O1(w)&111551)}}function eli(l){return QO(l.parent)&&l===l.parent.name}function tli(l,m){var D;const C=Ua(l,at);if(C){let A=VW(C,eli(C));if(A){if(A.flags&1048576){const I=Ks(A.exportSymbol);if(!m&&I.flags&944&&!(I.flags&3))return;A=I}const w=cf(A);if(w){if(w.flags&512&&((D=w.valueDeclaration)==null?void 0:D.kind)===312){const I=w.valueDeclaration,U=zn(C);return I!==U?void 0:I}return Tn(C.parent,I=>QO(I)&&_u(I)===w)}}}}function ili(l){const m=Jke(l);if(m)return m;const D=Ua(l,at);if(D){const C=pli(D);if(hC(C,111551)&&!_4(C,111551))return rp(C)}}function nli(l){return l.valueDeclaration&&js(l.valueDeclaration)&&S8(l.valueDeclaration).parent.kind===299}function U4t(l){if(l.flags&418&&l.valueDeclaration&&!la(l.valueDeclaration)){const m=Ur(l);if(m.isDeclarationWithCollidingName===void 0){const D=YE(l.valueDeclaration);if(Abe(D)||nli(l)){const C=ar(l.valueDeclaration);if(uc(D.parent,l.escapedName,111551,void 0,void 0,!1))m.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const A=C.flags&32768,w=Tx(D,!1),I=D.kind===241&&Tx(D.parent,!1);m.isDeclarationWithCollidingName=!Pbe(D)&&(!A||!w&&!I)}else m.isDeclarationWithCollidingName=!1}}return m.isDeclarationWithCollidingName}return!1}function uli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D&&U4t(D))return D.valueDeclaration}}}function rli(l){const m=Ua(l,Q1);if(m){const D=_u(m);if(D)return U4t(D)}return!1}function q4t(l){switch(H.assert(Ut),l.kind){case 271:return s_e(_u(l));case 273:case 274:case 276:case 281:const m=_u(l);return!!m&&s_e(m,!0);case 278:const D=l.exportClause;return!!D&&(u_(D)||Oe(D.elements,q4t));case 277:return l.expression&&l.expression.kind===80?s_e(_u(l)):!0}return!1}function ali(l){const m=Ua(l,E1);return m===void 0||m.parent.kind!==312||!U8(m)?!1:s_e(_u(m))&&m.moduleReference&&!Ql(m.moduleReference)}function s_e(l,m){if(!l)return!1;const D=sp(md(l));return D===Xt?!m||!_4(l):!!(O1(l,m,!0)&111551)&&(fk(ae)||!OW(D))}function OW(l){return pze(l)||!!l.constEnumOnlyModule}function l_e(l,m){if(H.assert(Ut),sC(l)){const D=_u(l),C=D&&Ur(D);if(C!=null&&C.referenced)return!0;const A=Ur(D).aliasTarget;if(A&&Eh(l)&32&&O1(A)&111551&&(fk(ae)||!OW(A)))return!0}return m?!!ao(l,D=>l_e(D,m)):!1}function Z4t(l){if(H4(l.body)){if(Lx(l)||e5(l))return!1;const m=_u(l),D=wb(m);return D.length>1||D.length===1&&D[0].declaration!==l}return!1}function Y4t(l){return!!fe&&!uW(l)&&!Eg(l)&&!!l.initializer&&!Yu(l,31)}function oli(l){return fe&&uW(l)&&!l.initializer&&Yu(l,31)}function sli(l){const m=Ua(l,ed);if(!m)return!1;const D=_u(m);return!D||!(D.flags&16)?!1:!!h1($f(D),C=>C.flags&111551&&EZ(C.valueDeclaration))}function lli(l){const m=Ua(l,ed);if(!m)return _t;const D=_u(m);return D&&n0(Wn(D))||_t}function DT(l){var m;const D=l.id||0;return D<0||D>=tC.length?0:((m=tC[D])==null?void 0:m.flags)||0}function jW(l){return w4t(l.parent),ar(l).enumMemberValue}function Q4t(l){switch(l.kind){case 306:case 211:case 212:return!0}return!1}function Jze(l){if(l.kind===306)return jW(l);const m=ar(l).resolvedSymbol;if(m&&m.flags&8){const D=m.valueDeclaration;if(b2(D.parent))return jW(D)}}function $ze(l){return!!(l.flags&524288)&&go(l,0).length>0}function cli(l,m){var D;const C=Ua(l,sm);if(!C||m&&(m=Ua(m),!m))return 0;let A=!1;if(vf(C)){const ce=R0(hm(C),111551,!0,!0,m);A=!!((D=ce==null?void 0:ce.declarations)!=null&&D.every(_2))}const w=R0(C,111551,!0,!0,m),I=w&&w.flags&2097152?md(w):w;A||(A=!!(w&&_4(w,111551)));const U=R0(C,788968,!0,!1,m);if(I&&I===U){const ce=sPe(!1);if(ce&&I===ce)return 9;const Fe=Wn(I);if(Fe&&Or(Fe))return A?10:1}if(!U)return A?11:0;const Z=X0(U);return Nt(Z)?A?11:0:Z.flags&3?11:u1(Z,245760)?2:u1(Z,528)?6:u1(Z,296)?3:u1(Z,2112)?4:u1(Z,402653316)?5:xs(Z)?7:u1(Z,12288)?8:$ze(Z)?10:A4(Z)?7:11}function dli(l,m,D,C,A){const w=Ua(l,Gbe);if(!w)return q.createToken(133);const I=_u(w);let U=I&&!(I.flags&133120)?Ib(Wn(I)):Ot;return U.flags&8192&&U.symbol===I&&(D|=1048576),A&&(U=S6(U)),Yt.typeToTypeNode(U,m,D|1024,C)}function hli(l,m,D,C){const A=Ua(l,Co);if(!A)return q.createToken(133);const w=dp(A);return Yt.typeToTypeNode(Zs(w),m,D|1024,C)}function fli(l,m,D,C){const A=Ua(l,Wt);if(!A)return q.createToken(133);const w=vm(W4t(A));return Yt.typeToTypeNode(w,m,D|1024,C)}function mli(l){return Ie.has(Al(l))}function VW(l,m){const D=ar(l).resolvedSymbol;if(D)return D;let C=l;if(m){const A=l.parent;Q1(A)&&l===A.name&&(C=dF(A))}return uc(C,l.escapedText,3257279,void 0,void 0,!0)}function pli(l){const m=ar(l).resolvedSymbol;return m&&m!==Xt?m:uc(l,l.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function gli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D)return sp(D).valueDeclaration}}}function Eli(l){if(!al(l)){const m=Ua(l,at);if(m){const D=VW(m);if(D)return ti(sp(D).declarations,C=>{switch(C.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 _li(l){return uq(l)||ua(l)&&m_e(l)?Pb(Wn(_u(l))):!1}function Dli(l,m,D){const C=l.flags&1056?Yt.symbolToExpression(l.symbol,111551,m,void 0,D):l===du?q.createTrue():l===Ui&&q.createFalse();if(C)return C;const A=l.value;return typeof A=="object"?q.createBigIntLiteral(A):typeof A=="number"?q.createNumericLiteral(A):q.createStringLiteral(A)}function xli(l,m){const D=Wn(_u(l));return Dli(D,l,m)}function X4t(l){return l?(uC(l),zn(l).localJsxFactory||k5):k5}function Uze(l){if(l){const m=zn(l);if(m){if(m.localJsxFragmentFactory)return m.localJsxFragmentFactory;const D=m.pragmas.get("jsxfrag"),C=Ha(D)?D[0]:D;if(C)return m.localJsxFragmentFactory=G7(C.arguments.factory,Ce),m.localJsxFragmentFactory}}if(ae.jsxFragmentFactory)return G7(ae.jsxFragmentFactory,Ce)}function vli(){const l=t.getResolvedTypeReferenceDirectives();let m;return l&&(m=new Map,l.forEach(({resolvedTypeReferenceDirective:Z},ce,Fe)=>{if(!(Z!=null&&Z.resolvedFileName))return;const Te=t.getSourceFile(Z.resolvedFileName);Te&&U(Te,ce,Fe)})),{getReferencedExportContainer:tli,getReferencedImportDeclaration:ili,getReferencedDeclarationWithCollidingName:uli,isDeclarationWithCollidingName:rli,isValueAliasDeclaration:Z=>{const ce=Ua(Z);return ce&&Ut?q4t(ce):!0},hasGlobalName:mli,isReferencedAliasDeclaration:(Z,ce)=>{const Fe=Ua(Z);return Fe&&Ut?l_e(Fe,ce):!0},getNodeCheckFlags:Z=>{const ce=Ua(Z);return ce?DT(ce):0},isTopLevelValueImportEqualsWithEntityName:ali,isDeclarationVisible:pD,isImplementationOfOverload:Z4t,isRequiredInitializedParameter:Y4t,isOptionalUninitializedParameterProperty:oli,isExpandoFunctionDeclaration:sli,getPropertiesOfContainerFunction:lli,createTypeOfDeclaration:dli,createReturnTypeOfSignatureDeclaration:hli,createTypeOfExpression:fli,createLiteralConstValue:xli,isSymbolAccessible:yu,isEntityNameVisible:Uf,getConstantValue:Z=>{const ce=Ua(Z,Q4t);return ce?Jze(ce):void 0},collectLinkedAliases:qw,getReferencedValueDeclaration:gli,getReferencedValueDeclarations:Eli,getTypeReferenceSerializationKind:cli,isOptionalParameter:uW,moduleExportsSomeValue:X0i,isArgumentsLocalBinding:Q0i,getExternalModuleFileFromDeclaration:Z=>{const ce=Ua(Z,zbe);return ce&&qze(ce)},getTypeReferenceDirectivesForEntityName:A,getTypeReferenceDirectivesForSymbol:w,isLiteralConstDeclaration:_li,isLateBound:Z=>{const ce=Ua(Z,Q1),Fe=ce&&_u(ce);return!!(Fe&&Gl(Fe)&4096)},getJsxFactoryEntity:X4t,getJsxFragmentFactoryEntity:Uze,getAllAccessorDeclarations(Z){Z=Ua(Z,NU);const ce=Z.kind===178?177:178,Fe=Sl(_u(Z),ce),Te=Fe&&Fe.posD3(Z,Z,void 0),isBindingCapturedByNode:(Z,ce)=>{const Fe=Ua(Z),Te=Ua(ce);return!!Fe&&!!Te&&(ua(Te)||js(Te))&&Uni(Fe,Te)},getDeclarationStatementsForSourceFile:(Z,ce,Fe,Te)=>{const $e=Ua(Z);H.assert($e&&$e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const ut=_u(Z);return ut?ut.exports?Yt.symbolTableToDeclarationStatements(ut.exports,Z,ce,Fe,Te):[]:Z.locals?Yt.symbolTableToDeclarationStatements(Z.locals,Z,ce,Fe,Te):[]},isImportRequiredByAugmentation:D,tryFindAmbientModule:Z=>{const ce=Ua(Z),Fe=ce&&t0(ce)?ce.text:void 0;return Fe!==void 0?kge(Fe,!0):void 0}};function D(Z){const ce=zn(Z);if(!ce.symbol)return!1;const Fe=qze(Z);if(!Fe||Fe===ce)return!1;const Te=x3(ce.symbol);for(const $e of ga(Te.values()))if($e.mergeId){const ut=Ks($e);if(ut.declarations){for(const zt of ut.declarations)if(zn(zt)===Fe)return!0}}return!1}function C(Z){return Z.parent&&Z.parent.kind===233&&Z.parent.parent&&Z.parent.parent.kind===298}function A(Z){if(!m)return;let ce;Z.parent.kind===167?ce=1160127:(ce=790504,(Z.kind===80&&ck(Z)||Z.kind===211&&!C(Z))&&(ce=1160127));const Fe=R0(Z,ce,!0);return Fe&&Fe!==Xt?w(Fe,ce):void 0}function w(Z,ce){if(!m||!I(Z))return;let Fe;for(const Te of Z.declarations)if(Te.symbol&&Te.symbol.flags&ce){const $e=zn(Te),ut=m.get($e.path);if(ut)(Fe||(Fe=[])).push(ut);else return}return Fe}function I(Z){if(!Z.declarations)return!1;let ce=Z;for(;;){const Fe=cf(ce);if(Fe)ce=Fe;else break}if(ce.valueDeclaration&&ce.valueDeclaration.kind===312&&ce.flags&512)return!1;for(const Fe of Z.declarations){const Te=zn(Fe);if(m.has(Te.path))return!0}return!1}function U(Z,ce,Fe){if(!m.has(Z.path)){m.set(Z.path,[ce,Fe]);for(const{fileName:Te}of Z.referencedFiles){const $e=bQ(Te,Z.fileName),ut=t.getSourceFile($e);ut&&U(ut,ce,Fe||Z.impliedNodeFormat)}}}}function qze(l){const m=l.kind===267?ur(l.name,us):Y8(l),D=D3(m,m,void 0);if(D)return Sl(D,312)}function Cli(){for(const m of t.getSourceFiles())SAe(m,ae);m0=new Map;let l;for(const m of t.getSourceFiles())if(!m.redirectInfo){if(!cm(m)){const D=m.locals.get("globalThis");if(D!=null&&D.declarations)for(const C of D.declarations)Vs.add(Su(C,F.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));mE(Ie,m.locals)}m.jsGlobalAugmentations&&mE(Ie,m.jsGlobalAugmentations),m.patternAmbientModules&&m.patternAmbientModules.length&&(h4=Hi(h4,m.patternAmbientModules)),m.moduleAugmentations.length&&(l||(l=[])).push(m.moduleAugmentations),m.symbol&&m.symbol.globalExports&&m.symbol.globalExports.forEach((C,A)=>{Ie.has(A)||Ie.set(A,C)})}if(l)for(const m of l)for(const D of m)Yg(D.parent)&&iF(D);if(zw(Ie,Pw,F.Declaration_name_conflicts_with_built_in_global_identifier_0),Ur(st).type=we,Ur(It).type=zc("IArguments",0,!0),Ur(Xt).type=Ot,Ur(St).type=D4(16,St),Fo=zc("Array",1,!0),He=zc("Object",0,!0),di=zc("Function",0,!0),Mn=Be&&zc("CallableFunction",0,!0)||di,ba=Be&&zc("NewableFunction",0,!0)||di,nc=zc("String",0,!0),fc=zc("Number",0,!0),Cl=zc("Boolean",0,!0),Tl=zc("RegExp",0,!0),ql=V1(me),Nc=V1(ni),Nc===Ko&&(Nc=Ol(void 0,se,_t,_t,_t)),To=i1t("ReadonlyArray",1)||Fo,ip=To?oW(To,[me]):ql,bc=i1t("ThisType",1),l)for(const m of l)for(const D of m)Yg(D.parent)||iF(D);m0.forEach(({firstFile:m,secondFile:D,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:A,firstFileLocations:w,secondFileLocations:I},U)=>{const Z=A?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0;for(const ce of w)p3(ce,Z,U,I);for(const ce of I)p3(ce,Z,U,w)});else{const A=ga(C.keys()).join(", ");Vs.add(Es(Su(m,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Su(D,F.Conflicts_are_in_this_file))),Vs.add(Es(Su(D,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Su(m,F.Conflicts_are_in_this_file)))}}),m0=void 0}function rd(l,m){if((p&m)!==m&&ae.importHelpers){const D=zn(l);if(s7(D,ae)&&!(l.flags&33554432)){const C=yli(D,l);if(C!==Xt){const A=m&~p;for(let w=1;w<=33554432;w<<=1)if(A&w)for(const I of bli(w)){if(f.has(I))continue;f.add(I);const U=yc(kf(x3(C),Al(I),111551));U?w&524288?Oe(wb(U),Z=>Cm(Z)>3)||pt(l,F.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,Hx,I,4):w&1048576?Oe(wb(U),Z=>Cm(Z)>4)||pt(l,F.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,Hx,I,5):w&1024&&(Oe(wb(U),Z=>Cm(Z)>2)||pt(l,F.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,Hx,I,3)):pt(l,F.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Hx,I)}}p|=m}}}function bli(l){switch(l){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ve?["__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["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return H.fail("Unrecognized helper")}}function yli(l,m){return E||(E=mD(l,Hx,F.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,m)||Xt),E}function S3(l){const m=Ali(l)||kli(l);if(m!==void 0)return m;if(io(l)&&L2(l))return r1(l,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const D=Jl(l)?l.declarationList.flags&7:0;let C,A,w,I,U,Z=0,ce=!1,Fe=!1;for(const Te of l.modifiers)if(g1(Te)){if(gq(ve,l,l.parent,l.parent.parent)){if(ve&&(l.kind===177||l.kind===178)){const $e=dk(l.parent.members,l);if(o4($e.firstAccessor)&&l===$e.secondAccessor)return r1(l,F.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return l.kind===174&&!H4(l.body)?r1(l,F.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):r1(l,F.Decorators_are_not_valid_here);if(Z&-34849)return Zi(Te,F.Decorators_are_not_valid_here);if(Fe&&Z&98303){H.assertIsDefined(U);const $e=zn(Te);return Kb($e)?!1:(Es(pt(Te,F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Su(U,F.Decorator_used_before_export_here)),!0)}Z|=32768,Z&98303?Z&32&&(ce=!0):Fe=!0,U??(U=Te)}else{if(Te.kind!==148){if(l.kind===171||l.kind===173)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_member,Uo(Te.kind));if(l.kind===181&&(Te.kind!==126||!mr(l.parent)))return Zi(Te,F._0_modifier_cannot_appear_on_an_index_signature,Uo(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&l.kind===168)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_parameter,Uo(Te.kind));switch(Te.kind){case 87:if(l.kind!==266&&l.kind!==168)return Zi(l,F.A_class_member_cannot_have_the_0_keyword,Uo(87));const $e=l.parent;if(l.kind===168&&!($0($e)||mr($e)||u3($e)||WP($e)||CB($e)||FV($e)||n3($e)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,Uo(Te.kind));break;case 164:if(Z&16)return Zi(Te,F._0_modifier_already_seen,"override");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","readonly");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","accessor");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","async");Z|=16,I=Te;break;case 125:case 124:case 123:const ut=C3(_7(Te.kind));if(Z&7)return Zi(Te,F.Accessibility_modifier_already_seen);if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"override");if(Z&256)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"static");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"accessor");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"async");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,ut);if(Z&64)return Te.kind===123?Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,ut,"abstract"):Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"abstract");if(ph(l))return Zi(Te,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Z|=_7(Te.kind);break;case 126:if(Z&256)return Zi(Te,F._0_modifier_already_seen,"static");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","async");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","accessor");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"static");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","override");Z|=256,C=Te;break;case 129:if(Z&512)return Zi(Te,F._0_modifier_already_seen,"accessor");if(Z&8)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(l.kind!==172)return Zi(Te,F.accessor_modifier_can_only_appear_on_a_property_declaration);Z|=512;break;case 148:if(Z&8)return Zi(Te,F._0_modifier_already_seen,"readonly");if(l.kind!==172&&l.kind!==171&&l.kind!==181&&l.kind!==169)return Zi(Te,F.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Z|=8;break;case 95:if(ae.verbatimModuleSyntax&&!(l.flags&33554432)&&l.kind!==265&&l.kind!==264&&l.kind!==267&&l.parent.kind===312&&(ne===1||zn(l).impliedNodeFormat===1))return Zi(Te,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Z&32)return Zi(Te,F._0_modifier_already_seen,"export");if(Z&128)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","declare");if(Z&64)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","abstract");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","async");if(mr(l.parent))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"export");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"export");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Z|=32;break;case 90:const zt=l.parent.kind===312?l.parent:l.parent.parent;if(zt.kind===267&&!N1(zt))return Zi(Te,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"default");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Z&32){if(ce)return Zi(U,F.Decorators_are_not_valid_here)}else return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","default");Z|=2048;break;case 138:if(Z&128)return Zi(Te,F._0_modifier_already_seen,"declare");if(Z&1024)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Z&16)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(mr(l.parent)&&!ko(l))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"declare");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(l.parent.flags&33554432&&l.parent.kind===268)return Zi(Te,F.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(ph(l))return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Z|=128,A=Te;break;case 128:if(Z&64)return Zi(Te,F._0_modifier_already_seen,"abstract");if(l.kind!==263&&l.kind!==185){if(l.kind!==174&&l.kind!==172&&l.kind!==177&&l.kind!==178)return Zi(Te,F.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(l.parent.kind===263&&Yu(l.parent,64))){const dn=l.kind===172?F.Abstract_properties_can_only_appear_within_an_abstract_class:F.Abstract_methods_can_only_appear_within_an_abstract_class;return Zi(Te,dn)}if(Z&256)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&2)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Z&1024&&w)return Zi(w,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","override");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(mh(l)&&l.name.kind===81)return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Z|=64;break;case 134:if(Z&1024)return Zi(Te,F._0_modifier_already_seen,"async");if(Z&128||l.parent.flags&33554432)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"async");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Z|=1024,w=Te;break;case 103:case 147:const gi=Te.kind===103?8192:16384,Wi=Te.kind===103?"in":"out";if(l.kind!==168||!(xh(l.parent)||mr(l.parent)||jp(l.parent)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Wi);if(Z&gi)return Zi(Te,F._0_modifier_already_seen,Wi);if(gi&8192&&Z&16384)return Zi(Te,F._0_modifier_must_precede_1_modifier,"in","out");Z|=gi;break}}return l.kind===176?Z&256?Zi(C,F._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Z&16?Zi(I,F._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Z&1024?Zi(w,F._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(l.kind===272||l.kind===271)&&Z&128?Zi(A,F.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):l.kind===169&&Z&31&&So(l.name)?Zi(l,F.A_parameter_property_may_not_be_declared_using_a_binding_pattern):l.kind===169&&Z&31&&l.dotDotDotToken?Zi(l,F.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Z&1024?Bli(l,w):!1}function kli(l){if(!l.modifiers)return!1;const m=Fli(l);return m&&r1(m,F.Modifiers_cannot_appear_here)}function c_e(l,m){const D=Le(l.modifiers,Qo);return D&&D.kind!==m?D:void 0}function Fli(l){switch(l.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Le(l.modifiers,Qo);default:if(l.parent.kind===268||l.parent.kind===312)return;switch(l.kind){case 262:return c_e(l,134);case 263:case 185:return c_e(l,128);case 231:case 264:case 265:return Le(l.modifiers,Qo);case 243:return l.declarationList.flags&4?c_e(l,135):Le(l.modifiers,Qo);case 266:return c_e(l,87);default:H.assertNever(l)}}}function Ali(l){const m=Sli(l);return m&&r1(m,F.Decorators_are_not_valid_here)}function Sli(l){return Hce(l)?Le(l.modifiers,g1):void 0}function Bli(l,m){switch(l.kind){case 174:case 262:case 218:case 219:return!1}return Zi(m,F._0_modifier_cannot_be_used_here,"async")}function iS(l,m=F.Trailing_comma_not_allowed){return l&&l.hasTrailingComma?Wb(l[0],l.end-1,1,m):!1}function ept(l,m){if(l&&l.length===0){const D=l.pos-1,C=gs(m.text,l.end)+1;return Wb(m,D,C-D,F.Type_parameter_list_cannot_be_empty)}return!1}function wli(l){let m=!1;const D=l.length;for(let C=0;C!!m.initializer||So(m.name)||$_(m))}function Lli(l){if(Ce>=3){const m=l.body&&po(l.body)&&Rce(l.body.statements);if(m){const D=Tli(l.parameters);if(S(D)){L(D,A=>{Es(pt(A,F.This_parameter_is_not_allowed_with_use_strict_directive),Su(m,F.use_strict_directive_used_here))});const C=D.map((A,w)=>w===0?Su(A,F.Non_simple_parameter_declared_here):Su(A,F.and_here));return Es(pt(m,F.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function d_e(l){const m=zn(l);return S3(l)||ept(l.typeParameters,m)||wli(l.parameters)||Pli(l,m)||$0(l)&&Lli(l)}function Nli(l){const m=zn(l);return Oli(l)||ept(l.typeParameters,m)}function Pli(l,m){if(!q0(l))return!1;l.typeParameters&&!(S(l.typeParameters)>1||l.typeParameters.hasTrailingComma||l.typeParameters[0].constraint)&&m&&jc(m.fileName,[".mts",".cts"])&&Zi(l.typeParameters[0],F.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:D}=l,C=s0(m,D.pos).line,A=s0(m,D.end).line;return C!==A&&Zi(D,F.Line_terminator_not_permitted_before_arrow)}function Mli(l){const m=l.parameters[0];if(l.parameters.length!==1)return Zi(m?m.name:l,F.An_index_signature_must_have_exactly_one_parameter);if(iS(l.parameters,F.An_index_signature_cannot_have_a_trailing_comma),m.dotDotDotToken)return Zi(m.dotDotDotToken,F.An_index_signature_cannot_have_a_rest_parameter);if(jq(m))return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(m.questionToken)return Zi(m.questionToken,F.An_index_signature_parameter_cannot_have_a_question_mark);if(m.initializer)return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_initializer);if(!m.type)return Zi(m.name,F.An_index_signature_parameter_must_have_a_type_annotation);const D=Ar(m.type);return yE(D,C=>!!(C.flags&8576))||kz(D)?Zi(m.name,F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):e4(D,Bge)?l.type?!1:Zi(l,F.An_index_signature_must_have_a_type_annotation):Zi(m.name,F.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function zli(l){return S3(l)||Mli(l)}function Ili(l,m){if(m&&m.length===0){const D=zn(l),C=m.pos-1,A=gs(D.text,m.end)+1;return Wb(D,C,A-C,F.Type_argument_list_cannot_be_empty)}return!1}function Aie(l,m){return iS(m)||Ili(l,m)}function Rli(l){return l.questionDotToken||l.flags&64?Zi(l.template,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function tpt(l){const m=l.types;if(iS(m))return!0;if(m&&m.length===0){const D=Uo(l.token);return Wb(l,m.pos,0,F._0_list_cannot_be_empty,D)}return Oe(m,ipt)}function ipt(l){return c5(l)&&KP(l.expression)&&l.typeArguments?Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Aie(l,l.typeArguments)}function Oli(l){let m=!1,D=!1;if(!S3(l)&&l.heritageClauses)for(const C of l.heritageClauses){if(C.token===96){if(m)return r1(C,F.extends_clause_already_seen);if(D)return r1(C,F.extends_clause_must_precede_implements_clause);if(C.types.length>1)return r1(C.types[1],F.Classes_can_only_extend_a_single_class);m=!0}else{if(H.assert(C.token===119),D)return r1(C,F.implements_clause_already_seen);D=!0}tpt(C)}}function jli(l){let m=!1;if(l.heritageClauses)for(const D of l.heritageClauses){if(D.token===96){if(m)return r1(D,F.extends_clause_already_seen);m=!0}else return H.assert(D.token===119),r1(D,F.Interface_declaration_cannot_have_implements_clause);tpt(D)}return!1}function h_e(l){if(l.kind!==167)return!1;const m=l;return m.expression.kind===226&&m.expression.operatorToken.kind===28?Zi(m.expression,F.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function Zze(l){if(l.asteriskToken){if(H.assert(l.kind===262||l.kind===218||l.kind===174),l.flags&33554432)return Zi(l.asteriskToken,F.Generators_are_not_allowed_in_an_ambient_context);if(!l.body)return Zi(l.asteriskToken,F.An_overload_signature_cannot_be_declared_as_a_generator)}}function Yze(l,m){return!!l&&Zi(l,m)}function npt(l,m){return!!l&&Zi(l,m)}function Vli(l,m){const D=new Map;for(const C of l.properties){if(C.kind===305){if(m){const I=l0(C.expression);if(Dh(I)||ys(I))return Zi(C.expression,F.A_rest_element_cannot_contain_a_binding_pattern)}continue}const A=C.name;if(A.kind===167&&h_e(A),C.kind===304&&!m&&C.objectAssignmentInitializer&&Zi(C.equalsToken,F.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),A.kind===81&&Zi(A,F.Private_identifiers_are_not_allowed_outside_class_bodies),Hp(C)&&C.modifiers)for(const I of C.modifiers)Qo(I)&&(I.kind!==134||C.kind!==174)&&Zi(I,F._0_modifier_cannot_be_used_here,Hc(I));else if(LFe(C)&&C.modifiers)for(const I of C.modifiers)Qo(I)&&Zi(I,F._0_modifier_cannot_be_used_here,Hc(I));let w;switch(C.kind){case 304:case 303:npt(C.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context),Yze(C.questionToken,F.An_object_member_cannot_be_declared_optional),A.kind===9&&eIe(A),w=4;break;case 174:w=8;break;case 177:w=1;break;case 178:w=2;break;default:H.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!m){const I=tIe(A);if(I===void 0)continue;const U=D.get(I);if(!U)D.set(I,w);else if(w&8&&U&8)Zi(A,F.Duplicate_identifier_0,Hc(A));else if(w&4&&U&4)Zi(A,F.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Hc(A));else if(w&3&&U&3)if(U!==3&&w!==U)D.set(I,w|U);else return Zi(A,F.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Zi(A,F.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Hli(l){Kli(l.tagName),Aie(l,l.typeArguments);const m=new Map;for(const D of l.attributes.properties){if(D.kind===293)continue;const{name:C,initializer:A}=D,w=MP(C);if(!m.get(w))m.set(w,!0);else return Zi(C,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===294&&!A.expression)return Zi(A,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function Kli(l){if(Iu(l)&&gg(l.expression))return Zi(l.expression,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(gg(l)&&iZ(ae)&&!aB(l.namespace.escapedText))return Zi(l,F.React_components_cannot_include_JSX_namespace_names)}function Wli(l){if(l.expression&&eM(l.expression))return Zi(l.expression,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function upt(l){if(SD(l))return!0;if(l.kind===250&&l.awaitModifier&&!(l.flags&65536)){const m=zn(l);if(fq(l)){if(!Kb(m))switch(s7(m,ae)||Vs.add(Su(l.awaitModifier,F.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)),ne){case 100:case 199:if(m.impliedNodeFormat===1){Vs.add(Su(l.awaitModifier,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(Ce>=4)break;default:Vs.add(Su(l.awaitModifier,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Kb(m)){const D=Su(l.awaitModifier,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=Nm(l);if(C&&C.kind!==176){H.assert((kd(C)&2)===0,"Enclosing function should never be an async function.");const A=Su(C,F.Did_you_mean_to_mark_this_function_as_async);Es(D,A)}return Vs.add(D),!0}return!1}if(SV(l)&&!(l.flags&65536)&&at(l.initializer)&&l.initializer.escapedText==="async")return Zi(l.initializer,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(l.initializer.kind===261){const m=l.initializer;if(!Xze(m)){const D=m.declarations;if(!D.length)return!1;if(D.length>1){const A=l.kind===249?F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return r1(m.declarations[1],A)}const C=D[0];if(C.initializer){const A=l.kind===249?F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Zi(C.name,A)}if(C.type){const A=l.kind===249?F.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:F.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Zi(C,A)}}}return!1}function Gli(l){if(!(l.flags&33554432)&&l.parent.kind!==187&&l.parent.kind!==264){if(Ce<1)return Zi(l.name,F.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.body===void 0&&!Yu(l,64))return Wb(l,l.end-1,1,F._0_expected,"{")}if(l.body){if(Yu(l,64))return Zi(l,F.An_abstract_accessor_cannot_have_an_implementation);if(l.parent.kind===187||l.parent.kind===264)return Zi(l.body,F.An_implementation_cannot_be_declared_in_ambient_contexts)}if(l.typeParameters)return Zi(l.name,F.An_accessor_cannot_have_type_parameters);if(!Jli(l))return Zi(l.name,l.kind===177?F.A_get_accessor_cannot_have_parameters:F.A_set_accessor_must_have_exactly_one_parameter);if(l.kind===178){if(l.type)return Zi(l.name,F.A_set_accessor_cannot_have_a_return_type_annotation);const m=H.checkDefined(hP(l),"Return value does not match parameter count assertion.");if(m.dotDotDotToken)return Zi(m.dotDotDotToken,F.A_set_accessor_cannot_have_rest_parameter);if(m.questionToken)return Zi(m.questionToken,F.A_set_accessor_cannot_have_an_optional_parameter);if(m.initializer)return Zi(l.name,F.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Jli(l){return Qze(l)||l.parameters.length===(l.kind===177?0:1)}function Qze(l){if(l.parameters.length===(l.kind===177?1:2))return T2(l)}function $li(l){if(l.operator===158){if(l.type.kind!==155)return Zi(l.type,F._0_expected,Uo(155));let m=Lj(l.parent);if(Qn(m)&&kk(m)){const D=h7(m);D&&(m=eB(D)||D)}switch(m.kind){case 260:const D=m;if(D.name.kind!==80)return Zi(l,F.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!qN(D))return Zi(l,F.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(D.parent.flags&2))return Zi(m.name,F.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!No(m)||!fP(m))return Zi(m.name,F.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Yu(m,8))return Zi(m.name,F.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Zi(l,F.unique_symbol_types_are_not_allowed_here)}}else if(l.operator===148&&l.type.kind!==188&&l.type.kind!==189)return r1(l,F.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,Uo(155))}function Jz(l,m){if(EXt(l))return Zi(l,m)}function rpt(l){if(d_e(l))return!0;if(l.kind===174){if(l.parent.kind===210){if(l.modifiers&&!(l.modifiers.length===1&&Pn(l.modifiers).kind===134))return r1(l,F.Modifiers_cannot_appear_here);if(Yze(l.questionToken,F.An_object_member_cannot_be_declared_optional))return!0;if(npt(l.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(l.body===void 0)return Wb(l,l.end-1,1,F._0_expected,"{")}if(Zze(l))return!0}if(mr(l.parent)){if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.flags&33554432)return Jz(l.name,F.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.kind===174&&!l.body)return Jz(l.name,F.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(l.parent.kind===264)return Jz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.parent.kind===187)return Jz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Uli(l){let m=l;for(;m;){if(L8(m))return Zi(l,F.Jump_target_cannot_cross_function_boundary);switch(m.kind){case 256:if(l.label&&m.label.escapedText===l.label.escapedText)return l.kind===251&&!Tx(m.statement,!0)?Zi(l,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(l.kind===252&&!l.label)return!1;break;default:if(Tx(m,!1)&&!l.label)return!1;break}m=m.parent}if(l.label){const D=l.kind===252?F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Zi(l,D)}else{const D=l.kind===252?F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Zi(l,D)}}function qli(l){if(l.dotDotDotToken){const m=l.parent.elements;if(l!==Cr(m))return Zi(l,F.A_rest_element_must_be_last_in_a_destructuring_pattern);if(iS(m,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.propertyName)return Zi(l.name,F.A_rest_element_cannot_have_a_property_name)}if(l.dotDotDotToken&&l.initializer)return Wb(l,l.initializer.pos-1,1,F.A_rest_element_cannot_have_an_initializer)}function apt(l){return Pm(l)||l.kind===224&&l.operator===41&&l.operand.kind===9}function Zli(l){return l.kind===10||l.kind===224&&l.operator===41&&l.operand.kind===10}function Yli(l){if((Iu(l)||U0(l)&&apt(l.argumentExpression))&&ec(l.expression))return!!(Rc(l).flags&1056)}function opt(l){const m=l.initializer;if(m){const D=!(apt(m)||Yli(m)||m.kind===112||m.kind===97||Zli(m));if((uq(l)||ua(l)&&m_e(l))&&!l.type){if(D)return Zi(m,F.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Zi(m,F.Initializers_are_not_allowed_in_ambient_contexts)}}function Qli(l){const m=Gb(l),D=m&7;if(So(l.name))switch(D){case 6:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"using")}if(l.parent.parent.kind!==249&&l.parent.parent.kind!==250){if(m&33554432)opt(l);else if(!l.initializer){if(So(l.name)&&!So(l.parent))return Zi(l,F.A_destructuring_declaration_must_have_an_initializer);switch(D){case 6:return Zi(l,F._0_declarations_must_be_initialized,"await using");case 4:return Zi(l,F._0_declarations_must_be_initialized,"using");case 2:return Zi(l,F._0_declarations_must_be_initialized,"const")}}}if(l.exclamationToken&&(l.parent.parent.kind!==243||!l.type||l.initializer||m&33554432)){const C=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,C)}return(ne<5||zn(l).impliedNodeFormat===1)&&ne!==4&&!(l.parent.parent.flags&33554432)&&Yu(l.parent.parent,32)&&spt(l.name),!!D&&lpt(l.name)}function spt(l){if(l.kind===80){if(fu(l)==="__esModule")return tci("noEmit",l,F.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const m=l.elements;for(const D of m)if(!Fd(D))return spt(D.name)}return!1}function lpt(l){if(l.kind===80){if(l.escapedText==="let")return Zi(l,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const m=l.elements;for(const D of m)Fd(D)||lpt(D.name)}return!1}function Xze(l){const m=l.declarations;if(iS(l.declarations))return!0;if(!l.declarations.length)return Wb(l,m.pos,m.end-m.pos,F.Variable_declaration_list_cannot_be_empty);const D=l.flags&7;return(D===4||D===6)&&hY(l.parent)?Zi(l,D===4?F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:F.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):D===6?Fmt(l):!1}function cpt(l){switch(l.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return cpt(l.parent)}return!0}function Xli(l){if(!cpt(l.parent)){const m=Gb(l.declarationList)&7;if(m){const D=m===1?"let":m===2?"const":m===4?"using":m===6?"await using":H.fail("Unknown BlockScope flag");return Zi(l,F._0_declarations_can_only_be_declared_inside_a_block,D)}}}function eci(l){const m=l.name.escapedText;switch(l.keywordToken){case 105:if(m!=="target")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Qr(l.name.escapedText),Uo(l.keywordToken),"target");break;case 102:if(m!=="meta")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Qr(l.name.escapedText),Uo(l.keywordToken),"meta");break}}function Kb(l){return l.parseDiagnostics.length>0}function r1(l,m,...D){const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos);return Vs.add(Rd(C,A.start,A.length,m,...D)),!0}return!1}function Wb(l,m,D,C,...A){const w=zn(l);return Kb(w)?!1:(Vs.add(Rd(w,m,D,C,...A)),!0)}function tci(l,m,D,...C){const A=zn(m);return Kb(A)?!1:(A5(l,m,D,...C),!0)}function Zi(l,m,...D){const C=zn(l);return Kb(C)?!1:(Vs.add(Su(l,m,...D)),!0)}function ici(l){const m=Qn(l)?Oq(l):void 0,D=l.typeParameters||m&&Ki(m);if(D){const C=D.pos===D.end?D.pos:gs(zn(l).text,D.pos);return Wb(l,C,D.end-C,F.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function nci(l){const m=l.type||U4(l);if(m)return Zi(m,F.Type_annotation_cannot_appear_on_a_constructor_declaration)}function uci(l){if(Ps(l.name)&&Xn(l.name.expression)&&l.name.expression.operatorToken.kind===103)return Zi(l.parent.members[0],F.A_mapped_type_may_not_declare_properties_or_methods);if(mr(l.parent)){if(us(l.name)&&l.name.text==="constructor")return Zi(l.name,F.Classes_may_not_have_a_field_named_constructor);if(Jz(l.name,F.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ce<2&&ef(l))return Zi(l.name,F.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ef(l)&&Yze(l.questionToken,F.An_accessor_property_cannot_be_declared_optional))return!0}else if(l.parent.kind===264){if(Jz(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Mm),l.initializer)return Zi(l.initializer,F.An_interface_property_cannot_have_an_initializer)}else if(fm(l.parent)){if(Jz(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,Mm),l.initializer)return Zi(l.initializer,F.A_type_literal_property_cannot_have_an_initializer)}if(l.flags&33554432&&opt(l),ko(l)&&l.exclamationToken&&(!mr(l.parent)||!l.type||l.initializer||l.flags&33554432||No(l)||P2(l))){const m=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,m)}}function rci(l){return l.kind===264||l.kind===265||l.kind===272||l.kind===271||l.kind===278||l.kind===277||l.kind===270||Yu(l,2208)?!1:r1(l,F.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function aci(l){for(const m of l.statements)if((Q1(m)||m.kind===243)&&rci(m))return!0;return!1}function oci(l){return!!(l.flags&33554432)&&aci(l)}function SD(l){if(l.flags&33554432){if(!ar(l).hasReportedStatementInAmbientContext&&(Co(l.parent)||wx(l.parent)))return ar(l).hasReportedStatementInAmbientContext=r1(l,F.An_implementation_cannot_be_declared_in_ambient_contexts);if(l.parent.kind===241||l.parent.kind===268||l.parent.kind===312){const D=ar(l.parent);if(!D.hasReportedStatementInAmbientContext)return D.hasReportedStatementInAmbientContext=r1(l,F.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function eIe(l){const m=Hc(l).includes("."),D=l.numericLiteralFlags&16;m||D||+l.text<=9007199254740991||i1(!1,Su(l,F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function sci(l){return!!(!(Mv(l.parent)||zv(l.parent)&&Mv(l.parent.parent))&&Ce<7&&Zi(l,F.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function lci(l,m,...D){const C=zn(l);if(!Kb(C)){const A=QE(C,l.pos);return Vs.add(Rd(C,Ec(A),0,m,...D)),!0}return!1}function cci(){return uh||(uh=[],Ie.forEach((l,m)=>{jde.test(m)&&uh.push(l)})),uh}function dci(l){var m;return l.isTypeOnly&&l.name&&l.namedBindings?Zi(l,F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):l.isTypeOnly&&((m=l.namedBindings)==null?void 0:m.kind)===275?dpt(l.namedBindings):!1}function dpt(l){return!!L(l.elements,m=>{if(m.isTypeOnly)return r1(m,m.kind===276?F.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:F.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function hci(l){if(ae.verbatimModuleSyntax&&ne===1)return Zi(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ne===5)return Zi(l,F.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(l.typeArguments)return Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const m=l.arguments;if(ne!==99&&ne!==199&&ne!==100&&(iS(m),m.length>1)){const C=m[1];return Zi(C,F.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(m.length===0||m.length>2)return Zi(l,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const D=Le(m,uE);return D?Zi(D,F.Argument_of_dynamic_import_cannot_be_spread_element):!1}function fci(l,m){const D=Gu(l);if(D&20&&m.flags&1048576)return Le(m.types,C=>{if(C.flags&524288){const A=D&Gu(C);if(A&4)return l.target===C.target;if(A&16)return!!l.aliasSymbol&&l.aliasSymbol===C.aliasSymbol}return!1})}function mci(l,m){if(Gu(l)&128&&yE(m,H5))return Le(m.types,D=>!H5(D))}function pci(l,m){let D=0;if(go(l,D).length>0||(D=1,go(l,D).length>0))return Le(m.types,A=>go(A,D).length>0)}function gci(l,m){let D;if(!(l.flags&406978556)){let C=0;for(const A of m.types)if(!(A.flags&406978556)){const w=Ds([k_(l),k_(A)]);if(w.flags&4194304)return A;if(Tg(w)||w.flags&1048576){const I=w.flags&1048576?ui(w.types,Tg):1;I>=C&&(D=A,C=I)}}}return D}function Eci(l){if(jl(l,67108864)){const m=Ic(l,D=>!(D.flags&402784252));if(!(m.flags&131072))return m}return l}function hpt(l,m,D){if(m.flags&1048576&&l.flags&2621440){const C=Bht(m,l);if(C)return C;const A=n0(l);if(A){const w=Sht(A,m);if(w){const I=jPe(m,Vt(w,U=>[()=>Wn(U),U.escapedName]),D);if(I!==m)return I}}}}function tIe(l){const m=sk(l);return m||(Ps(l)?fMe(b1(l.expression)):void 0)}function f_e(l){return Jn===l||(Jn=l,an=m2(l)),an}function Gb(l){return ji===l||(ji=l,xn=QD(l)),xn}function m_e(l){const m=Gb(l)&7;return m===2||m===4||m===6}}function kPt(t){return!wx(t)}function Fet(t){return t.kind!==262&&t.kind!==174||!!t.body}function Aet(t){switch(t.parent.kind){case 276:case 281:return at(t);default:return X3(t)}}function Bet(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function th(t){return!!(t.flags&1)}function Ode(t){return!!(t.flags&2)}function FPt(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:Lo(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var u;return(u=t.getPackageJsonInfoCache)==null?void 0:u.call(t)},useCaseSensitiveFileNames:Lo(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:u=>t.getProjectReferenceRedirect(u),isSourceOfProjectReferenceRedirect:u=>t.isSourceOfProjectReferenceRedirect(u),fileExists:u=>t.fileExists(u),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?u=>t.readFile(u):void 0}}var jde,YY,MAe,zAe,IAe,RAe,QY,Vde,XY,eQ,wet,tQ,OAe,Rm,Hde,APt=o({"src/compiler/checker.ts"(){Bo(),NAe(),Wy(),jde=/^".+"$/,YY="(anonymous)",MAe=1,zAe=1,IAe=1,RAe=1,QY=(t=>(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(QY||{}),Vde=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),XY=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(XY||{}),eQ=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(eQ||{}),wet=Q$(Fet,kPt),tQ=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),OAe=class{},(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(Rm||(Rm={})),Hde=class V6t{constructor(u,s,d){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var f;s instanceof V6t;)s=s.inner;this.inner=s,this.moduleResolverHost=d,this.context=u,this.canTrackSymbol=!!((f=this.inner)!=null&&f.trackSymbol)}trackSymbol(u,s,d){var f,p;if((f=this.inner)!=null&&f.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(u,s,d))return this.onDiagnosticReported(),!0;u.flags&262144||((p=this.context).trackedSymbols??(p.trackedSymbols=[])).push([u,s,d])}return!1}reportInaccessibleThisError(){var u;(u=this.inner)!=null&&u.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(u){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(u))}reportInaccessibleUniqueSymbolError(){var u;(u=this.inner)!=null&&u.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var u;(u=this.inner)!=null&&u.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(u){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(u))}reportTruncationError(){var u;(u=this.inner)!=null&&u.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(u,s){var d;(d=this.inner)!=null&&d.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(u,s))}trackExternalModuleSymbolOfImportTypeNode(u){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(u))}reportNonlocalAugmentation(u,s,d){var f;(f=this.inner)!=null&&f.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(u,s,d))}reportNonSerializableProperty(u){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(u))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function yt(t,u,s,d){if(t===void 0)return t;const f=u(t);let p;if(f!==void 0)return Ha(f)?p=(d||LPt)(f):p=f,H.assertNode(p,s),p}function kn(t,u,s,d,f){if(t===void 0)return t;const p=t.length;(d===void 0||d<0)&&(d=0),(f===void 0||f>p-d)&&(f=p-d);let E,v=-1,b=-1;d>0||fp-d)&&(f=p-d),Tet(t,u,s,d,f)}function Tet(t,u,s,d,f){let p;const E=t.length;(d>0||f=2&&(f=SPt(f,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),f}function SPt(t,u){let s;for(let d=0;d{const E=dv,addSource:Ge,setSourceContent:Ae,addName:De,addMapping:ft,appendSourceMap:Ye,toJSON:Ie,toString:()=>JSON.stringify(Ie())};function Ge(St){p();const It=i7(d,St,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ei=B.get(It);return ei===void 0&&(ei=b.length,b.push(It),v.push(St),B.set(It,ei)),E(),ei}function Ae(St,It){if(p(),It!==null){for(k||(k=[]);k.lengthIt||Se===It&&Ne>ei)}function ft(St,It,ei,ht,Ut,Ni){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),H.assert(ei===void 0||ei>=0,"sourceIndex cannot be negative"),H.assert(ht===void 0||ht>=0,"sourceLine cannot be negative"),H.assert(Ut===void 0||Ut>=0,"sourceCharacter cannot be negative"),p(),(Ke(St,It)||Je(ei,ht,Ut))&&(Gt(),Ce=St,ne=It,xe=!1,Be=!1,fe=!0),ei!==void 0&&ht!==void 0&&Ut!==void 0&&(ve=ei,Se=ht,Ne=Ut,xe=!0,Ni!==void 0&&(pe=Ni,Be=!0)),E()}function Ye(St,It,ei,ht,Ut,Ni){H.assert(St>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),p();const ji=[];let xn;const Jn=Gde(ei.mappings);for(const an of Jn){if(Ni&&(an.generatedLine>Ni.line||an.generatedLine===Ni.line&&an.generatedCharacter>Ni.character))break;if(Ut&&(an.generatedLine=1024&&Yt()}function Gt(){if(!(!fe||!Ve())){if(p(),J0&&(j+=String.fromCharCode.apply(void 0,z),z.length=0)}function Ie(){return Gt(),Yt(),{version:3,file:u,sourceRoot:s,sources:b,names:T,mappings:j,sourcesContent:k}}function st(St){St<0?St=(-St<<1)+1:St=St<<1;do{let It=St&31;St=St>>5,St>0&&(It=It|32),We(MPt(It))}while(St>0)}}function Kde(t,u){return{getLineCount:()=>u.length,getLineText:s=>t.substring(u[s],u[s+1])}}function VAe(t){for(let u=t.getLineCount()-1;u>=0;u--){const s=t.getLineText(u),d=nQ.exec(s);if(d)return d[1].trimEnd();if(!s.match(uQ))break}}function PPt(t){return typeof t=="string"||t===null}function HAe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Ha(t.sources)&&ye(t.sources,Ja)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Ha(t.sourcesContent)&&ye(t.sourcesContent,PPt))&&(t.names===void 0||t.names===null||Ha(t.names)&&ye(t.names,Ja))}function Wde(t){try{const u=JSON.parse(t);if(HAe(u))return u}catch{}}function Gde(t){let u=!1,s=0,d=0,f=0,p=0,E=0,v=0,b=0,B;return{get pos(){return s},get error(){return B},get state(){return k(!0,!0)},next(){for(;!u&&s=t.length)return M("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ge=zPt(t.charCodeAt(s));if(ge===-1)return M("Invalid character in VLQ"),-1;Y=(ge&32)!==0,se=se|(ge&31)<>1,se=-se):se=se>>1,se}}function Net(t,u){return t===u||t.generatedLine===u.generatedLine&&t.generatedCharacter===u.generatedCharacter&&t.sourceIndex===u.sourceIndex&&t.sourceLine===u.sourceLine&&t.sourceCharacter===u.sourceCharacter&&t.nameIndex===u.nameIndex}function KAe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function MPt(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:H.fail(`${t}: not a base64 value`)}function zPt(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function Pet(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function Met(t,u){return t.generatedPosition===u.generatedPosition&&t.sourceIndex===u.sourceIndex&&t.sourcePosition===u.sourcePosition}function IPt(t,u){return H.assert(t.sourceIndex===u.sourceIndex),nl(t.sourcePosition,u.sourcePosition)}function RPt(t,u){return nl(t.generatedPosition,u.generatedPosition)}function OPt(t){return t.sourcePosition}function jPt(t){return t.generatedPosition}function WAe(t,u,s){const d=lr(s),f=u.sourceRoot?$a(u.sourceRoot,d):d,p=$a(u.file,d),E=t.getSourceFileLike(p),v=u.sources.map(oe=>$a(oe,f)),b=new Map(v.map((oe,se)=>[t.getCanonicalFileName(oe),se]));let B,k,T;return{getSourcePosition:Y,getGeneratedPosition:K};function M(oe){const se=E!==void 0?TO(E,oe.generatedLine,oe.generatedCharacter,!0):-1;let ge,ae;if(KAe(oe)){const Ce=t.getSourceFileLike(v[oe.sourceIndex]);ge=u.sources[oe.sourceIndex],ae=Ce!==void 0?TO(Ce,oe.sourceLine,oe.sourceCharacter,!0):-1}return{generatedPosition:se,source:ge,sourceIndex:oe.sourceIndex,sourcePosition:ae,nameIndex:oe.nameIndex}}function z(){if(B===void 0){const oe=Gde(u.mappings),se=ga(oe,M);oe.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${oe.error}`),B=_t):B=se}return B}function j(oe){if(T===void 0){const se=[];for(const ge of z()){if(!Pet(ge))continue;let ae=se[ge.sourceIndex];ae||(se[ge.sourceIndex]=ae=[]),ae.push(ge)}T=se.map(ge=>pi(ge,IPt,Met))}return T[oe]}function J(){if(k===void 0){const oe=[];for(const se of z())oe.push(se);k=pi(oe,RPt,Met)}return k}function K(oe){const se=b.get(t.getCanonicalFileName(oe.fileName));if(se===void 0)return oe;const ge=j(se);if(!Oe(ge))return oe;let ae=va(ge,oe.pos,OPt,nl);ae<0&&(ae=~ae);const Ce=ge[ae];return Ce===void 0||Ce.sourceIndex!==se?oe:{fileName:p,pos:Ce.generatedPosition}}function Y(oe){const se=J();if(!Oe(se))return oe;let ge=va(se,oe.pos,jPt,nl);ge<0&&(ge=~ge);const ae=se[ge];return ae===void 0||!Pet(ae)?oe:{fileName:v[ae.sourceIndex],pos:ae.sourcePosition}}}var Jde,nQ,uQ,rQ,VPt=o({"src/compiler/sourcemap.ts"(){Bo(),Wy(),Jde=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,nQ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,uQ=/^\s*(\/\/[@#] .*)?$/,rQ={getSourcePosition:il,getGeneratedPosition:il}}});function M1(t){return t=Wl(t),t?$s(t):0}function HPt(t){return!t||!uD(t)?!1:Oe(t.elements,zet)}function zet(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function Kp(t,u){return s;function s(f){return f.kind===312?u(f):d(f)}function d(f){return t.factory.createBundle(Vt(f.sourceFiles,u),f.prepends)}}function GAe(t){return!!Q8(t)}function aQ(t){if(Q8(t))return!0;const u=t.importClause&&t.importClause.namedBindings;if(!u||!uD(u))return!1;let s=0;for(const d of u.elements)zet(d)&&s++;return s>0&&s!==u.elements.length||!!(u.elements.length-s)&&c7(t)}function $de(t){return!aQ(t)&&(c7(t)||!!t.importClause&&uD(t.importClause.namedBindings)&&HPt(t.importClause.namedBindings))}function Ude(t,u){const s=t.getEmitResolver(),d=t.getCompilerOptions(),f=[],p=new Qde,E=[],v=new Map;let b,B=!1,k,T=!1,M=!1,z=!1;for(const K of u.statements)switch(K.kind){case 272:f.push(K),!M&&aQ(K)&&(M=!0),!z&&$de(K)&&(z=!0);break;case 271:K.moduleReference.kind===283&&f.push(K);break;case 278:if(K.moduleSpecifier)if(!K.exportClause)f.push(K),T=!0;else if(f.push(K),ep(K.exportClause))J(K);else{const Y=K.exportClause.name;v.get(fu(Y))||(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y)),M=!0}else J(K);break;case 277:K.isExportEquals&&!k&&(k=K);break;case 243:if(Yu(K,32))for(const Y of K.declarationList.declarations)b=Iet(Y,v,b,E);break;case 262:if(Yu(K,32))if(Yu(K,2048))B||(fM(E,M1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;v.get(fu(Y))||(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y))}break;case 263:if(Yu(K,32))if(Yu(K,2048))B||(fM(E,M1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;Y&&!v.get(fu(Y))&&(fM(E,M1(K),Y),v.set(fu(Y),!0),b=xi(b,Y))}break}const j=Oce(t.factory,t.getEmitHelperFactory(),u,d,T,M,z);return j&&f.unshift(j),{externalImports:f,exportSpecifiers:p,exportEquals:k,hasExportStarsToExportValues:T,exportedBindings:E,exportedNames:b,externalHelpersImportDeclaration:j};function J(K){for(const Y of Po(K.exportClause,ep).elements)if(!v.get(fu(Y.name))){const oe=Y.propertyName||Y.name;K.moduleSpecifier||p.add(oe,Y);const se=s.getReferencedImportDeclaration(oe)||s.getReferencedValueDeclaration(oe);se&&fM(E,M1(se),Y.name),v.set(fu(Y.name),!0),b=xi(b,Y.name)}}}function Iet(t,u,s,d){if(So(t.name))for(const f of t.name.elements)Fd(f)||(s=Iet(f,u,s,d));else if(!al(t.name)){const f=fu(t.name);u.get(f)||(u.set(f,!0),s=xi(s,t.name),rD(t.name)&&fM(d,M1(t),t.name))}return s}function fM(t,u,s){let d=t[u];return d?d.push(s):t[u]=d=[s],d}function Y2(t){return t0(t)||t.kind===9||uf(t.kind)||at(t)}function sE(t){return!at(t)&&Y2(t)}function mM(t){return t>=65&&t<=79}function pM(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function oQ(t){if(!Od(t))return;const u=l0(t.expression);return ik(u)?u:void 0}function Ret(t,u,s){for(let d=u;dWPt(d,u,s))}function KPt(t){return GPt(t)||zl(t)}function lQ(t){return ti(t.members,KPt)}function WPt(t,u,s){return ko(t)&&(!!t.initializer||!u)&&Kc(t)===s}function GPt(t){return ko(t)&&Kc(t)}function fH(t){return t.kind===172&&t.initializer!==void 0}function JAe(t){return!No(t)&&(N8(t)||ef(t))&&ea(t.name)}function $Ae(t){let u;if(t){const s=t.parameters,d=s.length>0&&L2(s[0]),f=d?1:0,p=d?s.length-1:s.length;for(let E=0;EYde(s.privateEnv,u))}var Y7,Qde,UPt=o({"src/compiler/transformers/utilities.ts"(){Bo(),Y7=class LT{constructor(){this._map=new Map}get size(){return this._map.size}has(u){return this._map.has(LT.toKey(u))}get(u){return this._map.get(LT.toKey(u))}set(u,s){return this._map.set(LT.toKey(u),s),this}delete(u){var s;return((s=this._map)==null?void 0:s.delete(LT.toKey(u)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(u){if(Uy(u)||al(u)){const s=u.emitNode.autoGenerate;if((s.flags&7)===4){const d=jV(u),f=J_(d)&&d!==u?LT.toKey(d):`(generated@${$s(d)})`;return jv(!1,s.prefix,f,s.suffix,LT.toKey)}else{const d=`(auto@${s.id})`;return jv(!1,s.prefix,d,s.suffix,LT.toKey)}}return ea(u)?fu(u).slice(1):fu(u)}},Qde=class extends Y7{add(t,u){let s=this.get(t);return s?s.push(u):this.set(t,s=[u]),s}remove(t,u){const s=this.get(t);s&&(Vy(s,u),s.length||this.delete(t))}}}});function wk(t,u,s,d,f,p){let E=t,v;if(r5(t))for(v=t.right;Iye(t.left)||dle(t.left);)if(r5(v))E=t=v,v=t.right;else return H.checkDefined(yt(v,u,Wt));let b;const B={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:M=>iMt(s.factory,M),createObjectBindingOrAssignmentPattern:M=>uMt(s.factory,M),createArrayBindingOrAssignmentElement:aMt,visitor:u};if(v&&(v=yt(v,u,Wt),H.assert(v),at(v)&&YAe(t,v.escapedText)||QAe(t)?v=Q7(B,v,!1,E):f?v=Q7(B,v,!0,E):sl(t)&&(E=v)),gM(B,t,v,E,r5(t)),v&&f){if(!Oe(b))return v;b.push(v)}return s.factory.inlineExpressions(b)||s.factory.createOmittedExpression();function k(M){b=xi(b,M)}function T(M,z,j,J){H.assertNode(M,p?at:Wt);const K=p?p(M,z,j):Pt(s.factory.createAssignment(H.checkDefined(yt(M,u,Wt)),z),j);K.original=J,k(K)}}function YAe(t,u){const s=$x(t);return UO(s)?qPt(s,u):at(s)?s.escapedText===u:!1}function qPt(t,u){const s=IB(t);for(const d of s)if(YAe(d,u))return!0;return!1}function QAe(t){const u=yY(t);if(u&&Ps(u)&&!E2(u.expression))return!0;const s=$x(t);return!!s&&UO(s)&&ZPt(s)}function ZPt(t){return!!L(IB(t),QAe)}function Q2(t,u,s,d,f,p=!1,E){let v;const b=[],B=[],k={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:p,emitExpression:T,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:z=>tMt(s.factory,z),createObjectBindingOrAssignmentPattern:z=>nMt(s.factory,z),createArrayBindingOrAssignmentElement:z=>rMt(s.factory,z),visitor:u};if(ua(t)){let z=RV(t);z&&(at(z)&&YAe(t,z.escapedText)||QAe(t))&&(z=Q7(k,H.checkDefined(yt(z,k.visitor,Wt)),!1,z),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,z))}if(gM(k,t,f,t,E),v){const z=s.factory.createTempVariable(void 0);if(p){const j=s.factory.inlineExpressions(v);v=void 0,M(z,j,void 0,void 0)}else{s.hoistVariableDeclaration(z);const j=Cr(b);j.pendingExpressions=xi(j.pendingExpressions,s.factory.createAssignment(z,j.value)),yn(j.pendingExpressions,v),j.value=z}}for(const{pendingExpressions:z,name:j,value:J,location:K,original:Y}of b){const oe=s.factory.createVariableDeclaration(j,void 0,void 0,z?s.factory.inlineExpressions(xi(z,J)):J);oe.original=Y,Pt(oe,K),B.push(oe)}return B;function T(z){v=xi(v,z)}function M(z,j,J,K){H.assertNode(z,qy),v&&(j=s.factory.inlineExpressions(xi(v,j)),v=void 0),b.push({pendingExpressions:v,name:z,value:j,location:J,original:K})}}function gM(t,u,s,d,f){const p=$x(u);if(!f){const E=yt(RV(u),t.visitor,Wt);E?s?(s=XPt(t,s,E,d),!sE(E)&&UO(p)&&(s=Q7(t,s,!0,d))):s=E:s||(s=t.context.factory.createVoidZero())}Yse(p)?YPt(t,u,p,s,d):Qse(p)?QPt(t,u,p,s,d):t.emitBindingOrAssignment(p,s,d,u)}function YPt(t,u,s,d,f){const p=IB(s),E=p.length;if(E!==1){const B=!$O(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1&&!(k.transformFlags&98304)&&!($x(k).transformFlags&98304)&&!Ps(T))v=xi(v,yt(k,t.visitor,rbe));else{v&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s),v=void 0);const M=eMt(t,d,T);Ps(T)&&(b=xi(b,M.argumentExpression)),gM(t,k,M,k)}}}v&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s)}function QPt(t,u,s,d,f){const p=IB(s),E=p.length;if(t.level<1&&t.downlevelIteration)d=Q7(t,Pt(t.context.getEmitHelperFactory().createReadHelper(d,E>0&&bY(p[E-1])?void 0:E),f),!1,f);else if(E!==1&&(t.level<1||E===0)||ye(p,Fd)){const B=!$O(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1)if(k.transformFlags&65536||t.hasTransformedPriorElement&&!jet(k)){t.hasTransformedPriorElement=!0;const T=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(T),b=xi(b,[T,k]),v=xi(v,t.createArrayBindingOrAssignmentElement(T))}else v=xi(v,k);else{if(Fd(k))continue;if(bY(k)){if(B===E-1){const T=t.context.factory.createArraySliceCall(d,B);gM(t,k,T,k)}}else{const T=t.context.factory.createElementAccessExpression(d,B);gM(t,k,T,k)}}}if(v&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(v),d,f,s),b)for(const[B,k]of b)gM(t,k,B,k)}function jet(t){const u=$x(t);if(!u||Fd(u))return!0;const s=yY(t);if(s&&!Xg(s))return!1;const d=RV(t);return d&&!sE(d)?!1:UO(u)?ye(IB(u),jet):at(u)}function XPt(t,u,s,d){return u=Q7(t,u,!0,d),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(u,"undefined"),void 0,s,void 0,u)}function eMt(t,u,s){const{factory:d}=t.context;if(Ps(s)){const f=Q7(t,H.checkDefined(yt(s.expression,t.visitor,Wt)),!1,s);return t.context.factory.createElementAccessExpression(u,f)}else if(Pm(s)){const f=d.cloneNode(s);return t.context.factory.createElementAccessExpression(u,f)}else{const f=t.context.factory.createIdentifier(fu(s));return t.context.factory.createPropertyAccessExpression(u,f)}}function Q7(t,u,s,d){if(at(u)&&s)return u;{const f=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(f),t.emitExpression(Pt(t.context.factory.createAssignment(f,u),d))):t.emitBindingOrAssignment(f,u,d,void 0),f}}function tMt(t,u){return H.assertEachNode(u,jU),t.createArrayBindingPattern(u)}function iMt(t,u){return H.assertEachNode(u,ZO),t.createArrayLiteralExpression(Vt(u,t.converters.convertToArrayAssignmentElement))}function nMt(t,u){return H.assertEachNode(u,js),t.createObjectBindingPattern(u)}function uMt(t,u){return H.assertEachNode(u,qO),t.createObjectLiteralExpression(Vt(u,t.converters.convertToObjectAssignmentElement))}function rMt(t,u){return t.createBindingElement(void 0,void 0,u)}function aMt(t){return t}var Xde,oMt=o({"src/compiler/transformers/destructuring.ts"(){Bo(),Xde=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(Xde||{})}});function XAe(t,u,s=t.createThis()){const d=t.createAssignment(u,s),f=t.createExpressionStatement(d),p=t.createBlock([f],!1),E=t.createClassStaticBlockDeclaration(p);return P1(E).classThis=u,E}function EM(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&ld(s.expression,!0)&&at(s.expression.left)&&((u=t.emitNode)==null?void 0:u.classThis)===s.expression.left&&s.expression.right.kind===110}function e1e(t){var u;return!!((u=t.emitNode)!=null&&u.classThis)&&Oe(t.members,EM)}function e7e(t,u,s,d){if(e1e(u))return u;const f=XAe(t,s,d);u.name&&As(f.body.statements[0],u.name);const p=t.createNodeArray([f,...u.members]);Pt(p,u.members);const E=Wc(u)?t.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p):t.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p);return P1(E).classThis=s,E}var sMt=o({"src/compiler/transformers/classThis.ts"(){Bo()}});function _M(t,u,s){const d=Wl(Dc(s));return(Wc(d)||ed(d))&&!d.name&&Yu(d,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(u)}function Vet(t,u,s){const{factory:d}=t;if(s!==void 0)return{assignedName:d.createStringLiteral(s),name:u};if(Xg(u)||ea(u))return{assignedName:d.createStringLiteralFromNode(u),name:u};if(Xg(u.expression)&&!at(u.expression))return{assignedName:d.createStringLiteralFromNode(u.expression),name:u};const f=d.getGeneratedNameForNode(u);t.hoistVariableDeclaration(f);const p=t.getEmitHelperFactory().createPropKeyHelper(u.expression),E=d.createAssignment(f,p),v=d.updateComputedPropertyName(u,E);return{assignedName:f,name:v}}function t7e(t,u,s=t.factory.createThis()){const{factory:d}=t,f=t.getEmitHelperFactory().createSetFunctionNameHelper(s,u),p=d.createExpressionStatement(f),E=d.createBlock([p],!1),v=d.createClassStaticBlockDeclaration(E);return P1(v).assignedName=u,v}function X7(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&jP(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((u=t.emitNode)==null?void 0:u.assignedName)}function dQ(t){var u;return!!((u=t.emitNode)!=null&&u.assignedName)&&Oe(t.members,X7)}function t1e(t){return!!t.name||dQ(t)}function hQ(t,u,s,d){if(dQ(u))return u;const{factory:f}=t,p=t7e(t,s,d);u.name&&As(p.body.statements[0],u.name);const E=Ue(u.members,EM)+1,v=u.members.slice(0,E),b=u.members.slice(E),B=f.createNodeArray([...v,p,...b]);return Pt(B,u.members),u=Wc(u)?f.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B):f.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B),P1(u).assignedName=s,u}function UB(t,u,s,d){if(d&&us(s)&&B0e(s))return u;const{factory:f}=t,p=Dc(u),E=Xd(p)?Po(hQ(t,p,s),Xd):t.getEmitHelperFactory().createSetFunctionNameHelper(p,s);return f.restoreOuterExpressions(u,E)}function lMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Vet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyAssignment(u,E,v)}function cMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.objectAssignmentInitializer),E=UB(t,u.objectAssignmentInitializer,p,s);return f.updateShorthandPropertyAssignment(u,u.name,E)}function dMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateVariableDeclaration(u,u.name,u.exclamationToken,u.type,E)}function hMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateParameterDeclaration(u,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type,E)}function fMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateBindingElement(u,u.dotDotDotToken,u.propertyName,u.name,E)}function mMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Vet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyDeclaration(u,u.modifiers,E,u.questionToken??u.exclamationToken,u.type,v)}function pMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):_M(f,u.left,u.right),E=UB(t,u.right,p,s);return f.updateBinaryExpression(u,u.left,u.operatorToken,E)}function gMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):f.createStringLiteral(u.isExportEquals?"":"default"),E=UB(t,u.expression,p,s);return f.updateExportAssignment(u,u.modifiers,E)}function Vf(t,u,s,d){switch(u.kind){case 303:return lMt(t,u,s,d);case 304:return cMt(t,u,s,d);case 260:return dMt(t,u,s,d);case 169:return hMt(t,u,s,d);case 208:return fMt(t,u,s,d);case 172:return mMt(t,u,s,d);case 226:return pMt(t,u,s,d);case 277:return gMt(t,u,s,d)}}var EMt=o({"src/compiler/transformers/namedEvaluation.ts"(){Bo()}});function i1e(t,u,s,d,f,p){const E=yt(u.tag,s,Wt);H.assert(E);const v=[void 0],b=[],B=[],k=u.template;if(p===0&&!Q0e(k))return rn(u,s,t);const{factory:T}=t;if(T7(k))b.push(i7e(T,k)),B.push(n7e(T,k,d));else{b.push(i7e(T,k.head)),B.push(n7e(T,k.head,d));for(const z of k.templateSpans)b.push(i7e(T,z.literal)),B.push(n7e(T,z.literal,d)),v.push(H.checkDefined(yt(z.expression,s,Wt)))}const M=t.getEmitHelperFactory().createTemplateObjectHelper(T.createArrayLiteralExpression(b),T.createArrayLiteralExpression(B));if(wc(d)){const z=T.createUniqueName("templateObject");f(z),v[0]=T.createLogicalOr(z,T.createAssignment(z,M))}else v[0]=M;return T.createCallExpression(E,void 0,v)}function i7e(t,u){return u.templateFlags&26656?t.createVoidZero():t.createStringLiteral(u.text)}function n7e(t,u,s){let d=u.rawText;if(d===void 0){H.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),d=x2(s,u);const f=u.kind===15||u.kind===18;d=d.substring(1,d.length-(f?1:2))}return d=d.replace(/\r\n?/g,` -`),Pt(t.createStringLiteral(d),u)}var n1e,_Mt=o({"src/compiler/transformers/taggedTemplate.ts"(){Bo(),n1e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(n1e||{})}});function u7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getEmitResolver(),b=t.getCompilerOptions(),B=Os(b),k=m1(b),T=!!b.experimentalDecorators,M=b.emitDecoratorMetadata?a7e(t):void 0,z=t.onEmitNode,j=t.onSubstituteNode;t.onEmitNode=Jp,t.onSubstituteNode=Lc,t.enableSubstitution(211),t.enableSubstitution(212);let J,K,Y,oe,se,ge,ae,Ce;return ne;function ne($){return $.kind===313?ve($):Se($)}function ve($){return u.createBundle($.sourceFiles.map(Se),qi($.prepends,tt=>tt.kind===315?nce(tt,"js"):tt))}function Se($){if($.isDeclarationFile)return $;J=$;const tt=Ne($,st);return iD(tt,t.readEmitHelpers()),J=void 0,tt}function Ne($,tt){const vt=oe,mi=se,fn=ge;pe($);const Wu=tt($);return oe!==vt&&(se=mi),oe=vt,ge=fn,Wu}function pe($){switch($.kind){case 312:case 269:case 268:case 241:oe=$,se=void 0;break;case 263:case 262:if(Yu($,128))break;$.name?je($):H.assert($.kind===263||Yu($,2048));break}}function fe($){return Ne($,xe)}function xe($){return $.transformFlags&1?Ie($):$}function Be($){return Ne($,Ge)}function Ge($){switch($.kind){case 272:case 271:case 277:case 278:return Ae($);default:return xe($)}}function Ae($){if(Ua($)!==$)return $.transformFlags&1?rn($,fe,t):$;switch($.kind){case 272:return Ui($);case 271:return as($);case 277:return pr($);case 278:return Xu($);default:H.fail("Unhandled ellided statement")}}function De($){return Ne($,Ke)}function Ke($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||Yu($,32)?Ie($):$}function Je($){return tt=>Ne(tt,vt=>ft(vt,$))}function ft($,tt){switch($.kind){case 176:return Cn($);case 172:return Dn($,tt);case 177:return Yo($,tt);case 178:return bo($,tt);case 174:return ra($,tt);case 175:return rn($,fe,t);case 240:return $;case 181:return;default:return H.failBadSyntaxKind($)}}function Ye($){return tt=>Ne(tt,vt=>Ve(vt,$))}function Ve($,tt){switch($.kind){case 303:case 304:case 305:return fe($);case 177:return Yo($,tt);case 178:return bo($,tt);case 174:return ra($,tt);default:return H.failBadSyntaxKind($)}}function We($){return g1($)?void 0:fe($)}function Gt($){return Qo($)?void 0:fe($)}function Yt($){if(!g1($)&&!(_7($.kind)&28895)&&!(K&&$.kind===95))return $}function Ie($){if(na($)&&Yu($,128))return u.createNotEmittedStatement($);switch($.kind){case 95:case 90:return K?void 0:$;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 u.createNotEmittedStatement($);case 270:return;case 264:return u.createNotEmittedStatement($);case 263:return Ut($);case 231:return Ni($);case 298:return jn($);case 233:return Ln($);case 210:return St($);case 176:case 172:case 174:case 177:case 178:case 175:return H.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Qe($);case 218:return Et($);case 219:return Mt($);case 169:return qt($);case 217:return gt($);case 216:case 234:return ii($);case 238:return ni($);case 213:return vi($);case 214:return mt($);case 215:return Ot($);case 235:return me($);case 266:return on($);case 243:return Xt($);case 260:return et($);case 267:return ct($);case 271:return as($);case 285:return Ei($);case 286:return $i($);default:return rn($,fe,t)}}function st($){const tt=Z4(b,"alwaysStrict")&&!(wc($)&&k>=5)&&!W4($);return u.updateSourceFile($,iQ($.statements,Be,t,0,tt))}function St($){return u.updateObjectLiteralExpression($,kn($.properties,Ye($),Z3))}function It($){let tt=0;Oe(qde($,!0,!0))&&(tt|=1);const vt=Qg($);return vt&&Dc(vt.expression).kind!==106&&(tt|=64),t5(T,$)&&(tt|=2),QN(T,$)&&(tt|=4),wo($)?tt|=8:Ya($)?tt|=32:vc($)&&(tt|=16),tt}function ei($){return!!($.transformFlags&8192)}function ht($){return o4($)||Oe($.typeParameters)||Oe($.heritageClauses,ei)||Oe($.members,ei)}function Ut($){const tt=It($),vt=B<=1&&!!(tt&7);if(!ht($)&&!t5(T,$)&&!wo($))return u.updateClassDeclaration($,kn($.modifiers,Yt,Qo),$.name,void 0,kn($.heritageClauses,fe,mm),kn($.members,Je($),Zd));vt&&t.startLexicalEnvironment();const mi=vt||tt&8;let fn=mi?kn($.modifiers,Gt,ol):kn($.modifiers,fe,ol);tt&2&&(fn=xn(fn,$));const uu=mi&&!$.name||tt&4||tt&1?$.name??u.getGeneratedNameForNode($):$.name,Tu=u.updateClassDeclaration($,fn,uu,void 0,kn($.heritageClauses,fe,mm),ji($));let Nr=bs($);tt&1&&(Nr|=64),Zn(Tu,Nr);let Vu;if(vt){const Ss=[Tu],ic=fle(gs(J.text,$.members.end),20),nd=u.getInternalName($),S0=u.createPartiallyEmittedExpression(nd);mB(S0,ic.end),Zn(S0,3072);const ud=u.createReturnStatement(S0);BP(ud,ic.pos),Zn(ud,3840),Ss.push(ud),ZE(Ss,t.endLexicalEnvironment());const m0=u.createImmediatelyInvokedArrowFunction(Ss);_V(m0,1);const Bd=u.createVariableDeclaration(u.getLocalName($,!1,!1),void 0,void 0,m0);su(Bd,$);const Oh=u.createVariableStatement(void 0,u.createVariableDeclarationList([Bd],1));su(Oh,$),Bc(Oh,$),As(Oh,o5($)),vh(Oh),Vu=Oh}else Vu=Tu;if(mi){if(tt&8)return[Vu,c0($)];if(tt&32)return[Vu,u.createExportDefault(u.getLocalName($,!1,!0))];if(tt&16)return[Vu,u.createExternalModuleExport(u.getDeclarationName($,!1,!0))]}return Vu}function Ni($){let tt=kn($.modifiers,Gt,ol);return t5(T,$)&&(tt=xn(tt,$)),u.updateClassExpression($,tt,$.name,void 0,kn($.heritageClauses,fe,mm),ji($))}function ji($){const tt=kn($.members,Je($),Zd);let vt;const mi=X_($),fn=mi&&ti(mi.parameters,Wu=>Mf(Wu,mi));if(fn)for(const Wu of fn){const uu=u.createPropertyDeclaration(void 0,Wu.name,void 0,void 0,void 0);su(uu,Wu),vt=xi(vt,uu)}return vt?(vt=yn(vt,tt),Pt(u.createNodeArray(vt),$.members)):tt}function xn($,tt){const vt=an(tt,tt);if(Oe(vt)){const mi=[];yn(mi,tU($,OV)),yn(mi,ti($,g1)),yn(mi,vt),yn(mi,ti(n2e($,OV),Qo)),$=Pt(u.createNodeArray(mi),$)}return $}function Jn($,tt,vt){if(mr(vt)&&S0e(T,tt,vt)){const mi=an(tt,vt);if(Oe(mi)){const fn=[];yn(fn,ti($,g1)),yn(fn,mi),yn(fn,ti($,Qo)),$=Pt(u.createNodeArray(fn),$)}}return $}function an($,tt){if(T)return Het?Ai($,tt):Pi($,tt)}function Pi($,tt){if(M){let vt;if(Zu($)){const mi=s().createMetadataHelper("design:type",M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=xi(vt,u.createDecorator(mi))}if(yr($)){const mi=s().createMetadataHelper("design:paramtypes",M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt));vt=xi(vt,u.createDecorator(mi))}if(aa($)){const mi=s().createMetadataHelper("design:returntype",M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=xi(vt,u.createDecorator(mi))}return vt}}function Ai($,tt){if(M){let vt;if(Zu($)){const mi=u.createPropertyAssignment("type",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=xi(vt,mi)}if(yr($)){const mi=u.createPropertyAssignment("paramTypes",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt)));vt=xi(vt,mi)}if(aa($)){const mi=u.createPropertyAssignment("returnType",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=xi(vt,mi)}if(vt){const mi=s().createMetadataHelper("design:typeinfo",u.createObjectLiteralExpression(vt,!0));return[u.createDecorator(mi)]}}}function Zu($){const tt=$.kind;return tt===174||tt===177||tt===178||tt===172}function aa($){return $.kind===174}function yr($){switch($.kind){case 263:case 231:return X_($)!==void 0;case 174:case 177:case 178:return!0}return!1}function Ba($,tt){const vt=$.name;return ea(vt)?u.createIdentifier(""):Ps(vt)?tt&&!sE(vt.expression)?u.getGeneratedNameForNode(vt):vt.expression:at(vt)?u.createStringLiteral(fu(vt)):u.cloneNode(vt)}function bt($){const tt=$.name;if(Ps(tt)&&(!Kc($)&&ge||o4($)&&T)){const vt=yt(tt.expression,fe,Wt);H.assert(vt);const mi=Np(vt);if(!sE(mi)){const fn=u.getGeneratedNameForNode(tt);return E(fn),u.updateComputedPropertyName(tt,u.createAssignment(fn,vt))}}return H.checkDefined(yt(tt,fe,Sc))}function jn($){if($.token!==119)return rn($,fe,t)}function Ln($){return u.updateExpressionWithTypeArguments($,H.checkDefined(yt($.expression,fe,Df)),void 0)}function Si($){return!Ql($.body)}function Dn($,tt){const vt=$.flags&33554432||Yu($,64);if(vt&&!(T&&o4($)))return;let mi=mr(tt)?vt?kn($.modifiers,Gt,ol):kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return mi=Jn(mi,$,tt),vt?u.updatePropertyDeclaration($,Hi(mi,u.createModifiersFromModifierFlags(128)),H.checkDefined(yt($.name,fe,Sc)),void 0,void 0,void 0):u.updatePropertyDeclaration($,mi,bt($),void 0,void 0,yt($.initializer,fe,Wt))}function Cn($){if(Si($))return u.updateConstructorDeclaration($,void 0,xc($.parameters,fe,t),oa($.body,$))}function tu($,tt,vt,mi,fn,Wu){const uu=mi[fn],Tu=tt[uu];if(yn($,kn(tt,fe,na,vt,uu-vt)),Ck(Tu)){const Nr=[];tu(Nr,Tu.tryBlock.statements,0,mi,fn+1,Wu);const Vu=u.createNodeArray(Nr);Pt(Vu,Tu.tryBlock.statements),$.push(u.updateTryStatement(Tu,u.updateBlock(Tu.tryBlock,Nr),yt(Tu.catchClause,fe,G2),yt(Tu.finallyBlock,fe,po)))}else yn($,kn(tt,fe,na,uu,1)),yn($,Wu);yn($,kn(tt,fe,na,uu+1))}function oa($,tt){const vt=tt&&ti(tt.parameters,Nr=>Mf(Nr,tt));if(!Oe(vt))return Om($,fe,t);let mi=[];f();const fn=u.copyPrologue($.statements,mi,!1,fe),Wu=sQ($.statements,fn),uu=qi(vt,Da);Wu.length?tu(mi,$.statements,fn,Wu,0,uu):(yn(mi,uu),yn(mi,kn($.statements,fe,na,fn))),mi=u.mergeLexicalEnvironment(mi,p());const Tu=u.createBlock(Pt(u.createNodeArray(mi),$.statements),!0);return Pt(Tu,$),su(Tu,$),Tu}function Da($){const tt=$.name;if(!at(tt))return;const vt=ks(Pt(u.cloneNode(tt),tt),tt.parent);Zn(vt,3168);const mi=ks(Pt(u.cloneNode(tt),tt),tt.parent);return Zn(mi,3072),vh(EV(Pt(su(u.createExpressionStatement(u.createAssignment(Pt(u.createPropertyAccessExpression(u.createThis(),vt),$.name),mi)),$),Sv($,-1))))}function ra($,tt){if(!($.transformFlags&1))return $;if(!Si($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateMethodDeclaration($,vt,$.asteriskToken,bt($),void 0,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t))}function Ta($){return!(Ql($.body)&&Yu($,64))}function Yo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateGetAccessorDeclaration($,vt,bt($),xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([]))}function bo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=mr(tt)?kn($.modifiers,fe,ol):kn($.modifiers,We,ol);return vt=Jn(vt,$,tt),u.updateSetAccessorDeclaration($,vt,bt($),xc($.parameters,fe,t),Om($.body,fe,t)||u.createBlock([]))}function Qe($){if(!Si($))return u.createNotEmittedStatement($);const tt=u.updateFunctionDeclaration($,kn($.modifiers,Yt,Qo),$.asteriskToken,$.name,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([]));if(wo($)){const vt=[tt];return Ul(vt,$),vt}return tt}function Et($){return Si($)?u.updateFunctionExpression($,kn($.modifiers,Yt,Qo),$.asteriskToken,$.name,void 0,xc($.parameters,fe,t),void 0,Om($.body,fe,t)||u.createBlock([])):u.createOmittedExpression()}function Mt($){return u.updateArrowFunction($,kn($.modifiers,Yt,Qo),void 0,xc($.parameters,fe,t),void 0,$.equalsGreaterThanToken,Om($.body,fe,t))}function qt($){if(L2($))return;const tt=u.updateParameterDeclaration($,kn($.modifiers,vt=>g1(vt)?fe(vt):void 0,ol),$.dotDotDotToken,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return tt!==$&&(Bc(tt,$),Pt(tt,iE($)),As(tt,iE($)),Zn(tt.name,64)),tt}function Xt($){if(wo($)){const tt=DP($.declarationList);return tt.length===0?void 0:Pt(u.createExpressionStatement(u.inlineExpressions(Vt(tt,Pe))),$)}else return rn($,fe,t)}function Pe($){const tt=$.name;return So(tt)?wk($,fe,t,0,!1,hd):Pt(u.createAssignment(vl(tt),H.checkDefined(yt($.initializer,fe,Wt))),$)}function et($){const tt=u.updateVariableDeclaration($,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return $.type&&Kke(tt.name,$.type),tt}function gt($){const tt=Dc($.expression,-7);if(Yy(tt)){const vt=yt($.expression,fe,Wt);return H.assert(vt),u.createPartiallyEmittedExpression(vt,$)}return rn($,fe,t)}function ii($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function me($){const tt=yt($.expression,fe,Df);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function ni($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function vi($){return u.updateCallExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function mt($){return u.updateNewExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function Ot($){return u.updateTaggedTemplateExpression($,H.checkDefined(yt($.tag,fe,Wt)),void 0,H.checkDefined(yt($.template,fe,P8)))}function Ei($){return u.updateJsxSelfClosingElement($,H.checkDefined(yt($.tagName,fe,WN)),void 0,H.checkDefined(yt($.attributes,fe,W2)))}function $i($){return u.updateJsxOpeningElement($,H.checkDefined(yt($.tagName,fe,WN)),void 0,H.checkDefined(yt($.attributes,fe,W2)))}function Qi($){return!b2($)||fk(b)}function on($){if(!Qi($))return u.createNotEmittedStatement($);const tt=[];let vt=4;const mi=Ct(tt,$);mi&&(k!==4||oe!==J)&&(vt|=1024);const fn=co($),Wu=Ho($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Nr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,le($,Wu)),void 0,[Tu]));return su(Nr,$),mi&&(Nv(Nr,void 0),A7(Nr,void 0)),Pt(Nr,$),i_(Nr,vt),tt.push(Nr),tt}function le($,tt){const vt=Y;Y=tt;const mi=[];d();const fn=Vt($.members,te);return ZE(mi,p()),yn(mi,fn),Y=vt,u.createBlock(Pt(u.createNodeArray(mi),$.members),!0)}function te($){const tt=Ba($,!1),vt=we($),mi=u.createAssignment(u.createElementAccessExpression(Y,tt),vt),fn=vt.kind===11?mi:u.createAssignment(u.createElementAccessExpression(Y,mi),tt);return Pt(u.createExpressionStatement(Pt(fn,$)),$)}function we($){const tt=v.getConstantValue($);return tt!==void 0?typeof tt=="string"?u.createStringLiteral(tt):u.createNumericLiteral(tt):(id(),$.initializer?H.checkDefined(yt($.initializer,fe,Wt)):u.createVoidZero())}function de($){const tt=Ua($,_c);return tt?Rde(tt,fk(b)):!0}function je($){se||(se=new Map);const tt=it($);se.has(tt)||se.set(tt,$)}function X($){if(se){const tt=it($);return se.get(tt)===$}return!0}function it($){return H.assertNode($.name,at),$.name.escapedText}function Ct($,tt){const vt=u.createVariableDeclaration(u.getLocalName(tt,!1,!0)),mi=oe.kind===312?0:1,fn=u.createVariableStatement(kn(tt.modifiers,Yt,Qo),u.createVariableDeclarationList([vt],mi));return su(vt,tt),Nv(vt,void 0),A7(vt,void 0),su(fn,tt),je(tt),X(tt)?(tt.kind===266?As(fn.declarationList,tt):As(fn,tt),Bc(fn,tt),i_(fn,2048),$.push(fn),!0):!1}function ct($){if(!de($))return u.createNotEmittedStatement($);H.assertNode($.name,at,"A TypeScript namespace should have an Identifier name."),Y0();const tt=[];let vt=4;const mi=Ct(tt,$);mi&&(k!==4||oe!==J)&&(vt|=1024);const fn=co($),Wu=Ho($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Tu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Vu=u.getLocalName($,!1,!0);Tu=u.createAssignment(Vu,Tu)}const Nr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,Qt($,Wu)),void 0,[Tu]));return su(Nr,$),mi&&(Nv(Nr,void 0),A7(Nr,void 0)),Pt(Nr,$),i_(Nr,vt),tt.push(Nr),tt}function Qt($,tt){const vt=Y,mi=K,fn=se;Y=tt,K=$,se=void 0;const Wu=[];d();let uu,Tu;if($.body)if($.body.kind===268)Ne($.body,Vu=>yn(Wu,kn(Vu.statements,De,na))),uu=$.body.statements,Tu=$.body;else{const Vu=ct($.body);Vu&&(Ha(Vu)?yn(Wu,Vu):Wu.push(Vu));const Ss=Li($).body;uu=Sv(Ss.statements,-1)}ZE(Wu,p()),Y=vt,K=mi,se=fn;const Nr=u.createBlock(Pt(u.createNodeArray(Wu),uu),!0);return Pt(Nr,Tu),(!$.body||$.body.kind!==268)&&Zn(Nr,bs(Nr)|3072),Nr}function Li($){if($.body.kind===267)return Li($.body)||$.body}function Ui($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;const tt=yt($.importClause,Sn,n_);return tt||b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2?u.updateImportDeclaration($,void 0,tt,$.moduleSpecifier,$.attributes):void 0}function Sn($){H.assert(!$.isTypeOnly);const tt=Cc($)?$.name:void 0,vt=yt($.namedBindings,du,i0e);return tt||vt?u.updateImportClause($,!1,tt,vt):void 0}function du($){if($.kind===274)return Cc($)?$:void 0;{const tt=b.verbatimModuleSyntax||b.preserveValueImports&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=kn($.elements,Ru,bf);return tt||Oe(vt)?u.updateNamedImports($,vt):void 0}}function Ru($){return!$.isTypeOnly&&Cc($)?$:void 0}function pr($){return b.verbatimModuleSyntax||v.isValueAliasDeclaration($)?rn($,fe,t):void 0}function Xu($){if($.isTypeOnly)return;if(!$.exportClause||u_($.exportClause))return $;const tt=b.verbatimModuleSyntax||!!$.moduleSpecifier&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=yt($.exportClause,mi=>ja(mi,tt),Wse);return vt?u.updateExportDeclaration($,void 0,$.isTypeOnly,vt,$.moduleSpecifier,$.attributes):void 0}function ca($,tt){const vt=kn($.elements,wn,eh);return tt||Oe(vt)?u.updateNamedExports($,vt):void 0}function Ku($){return u.updateNamespaceExport($,H.checkDefined(yt($.name,fe,at)))}function ja($,tt){return u_($)?Ku($):ca($,tt)}function wn($){return!$.isTypeOnly&&(b.verbatimModuleSyntax||v.isValueAliasDeclaration($))?$:void 0}function Ir($){return Cc($)||!wc(J)&&v.isTopLevelValueImportEqualsWithEntityName($)}function as($){if($.isTypeOnly)return;if(bv($)){const vt=Cc($);return!vt&&b.importsNotUsedAsValues===1?su(Pt(u.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):vt?rn($,fe,t):void 0}if(!Ir($))return;const tt=PV(u,$.moduleReference);return Zn(tt,7168),vc($)||!wo($)?su(Pt(u.createVariableStatement(kn($.modifiers,Yt,Qo),u.createVariableDeclarationList([su(u.createVariableDeclaration($.name,void 0,void 0,tt),$)])),$),$):su(wl($.name,tt,$),$)}function wo($){return K!==void 0&&Yu($,32)}function Fn($){return K===void 0&&Yu($,32)}function vc($){return Fn($)&&!Yu($,2048)}function Ya($){return Fn($)&&Yu($,2048)}function c0($){const tt=u.createAssignment(u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0),u.getLocalName($));As(tt,s4($.name?$.name.pos:$.pos,$.end));const vt=u.createExpressionStatement(tt);return As(vt,s4(-1,$.end)),vt}function Ul($,tt){$.push(c0(tt))}function wl($,tt,vt){return Pt(u.createExpressionStatement(u.createAssignment(u.getNamespaceMemberName(Y,$,!1,!0),tt)),vt)}function hd($,tt,vt){return Pt(u.createAssignment(vl($),tt),vt)}function vl($){return u.getNamespaceMemberName(Y,$,!1,!0)}function co($){const tt=u.getGeneratedNameForNode($);return As(tt,$.name),tt}function Ho($){return u.getGeneratedNameForNode($)}function id(){ae&8||(ae|=8,t.enableSubstitution(80))}function Y0(){ae&2||(ae|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function Ko($){return Wl($).kind===267}function Tc($){return Wl($).kind===266}function Jp($,tt,vt){const mi=Ce,fn=J;la(tt)&&(J=tt),ae&2&&Ko(tt)&&(Ce|=2),ae&8&&Tc(tt)&&(Ce|=8),z($,tt,vt),Ce=mi,J=fn}function Lc($,tt){return tt=j($,tt),$===1?cl(tt):pm(tt)?Il(tt):tt}function Il($){if(ae&2){const tt=$.name,vt=Ri(tt);if(vt){if($.objectAssignmentInitializer){const mi=u.createAssignment(vt,$.objectAssignmentInitializer);return Pt(u.createPropertyAssignment(tt,mi),$)}return Pt(u.createPropertyAssignment(tt,vt),$)}}return $}function cl($){switch($.kind){case 80:return Ka($);case 211:return dl($);case 212:return Uc($)}return $}function Ka($){return Ri($)||$}function Ri($){if(ae&Ce&&!al($)&&!rD($)){const tt=v.getReferencedExportContainer($,!1);if(tt&&tt.kind!==312&&(Ce&2&&tt.kind===267||Ce&8&&tt.kind===266))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(tt),$),$)}}function dl($){return sf($)}function Uc($){return sf($)}function Ch($){return $.replace(/\*\//g,"*_/")}function sf($){const tt=Q0($);if(tt!==void 0){Vke($,tt);const vt=typeof tt=="string"?u.createStringLiteral(tt):tt<0?u.createPrefixUnaryExpression(41,u.createNumericLiteral(Math.abs(tt))):u.createNumericLiteral(tt);if(!b.removeComments){const mi=Wl($,I0);AZ(vt,3,` ${Ch(Hc(mi))} `)}return vt}return $}function Q0($){if(!mg(b))return Iu($)||U0($)?v.getConstantValue($):void 0}function Cc($){return b.verbatimModuleSyntax||Qn($)||(b.preserveValueImports?v.isValueAliasDeclaration($):v.isReferencedAliasDeclaration($))}}var Het,DMt=o({"src/compiler/transformers/ts.ts"(){Bo(),Het=!1}});function r7e(t){const{factory:u,getEmitHelperFactory:s,hoistVariableDeclaration:d,endLexicalEnvironment:f,startLexicalEnvironment:p,resumeLexicalEnvironment:E,addBlockScopedVariable:v}=t,b=t.getEmitResolver(),B=t.getCompilerOptions(),k=Os(B),T=eV(B),M=!!B.experimentalDecorators,z=!T,j=T&&k<9,J=z||j,K=k<9,Y=k<99?-1:T?0:3,oe=k<9,se=oe&&k>=2,ge=J||K||Y===-1,ae=t.onSubstituteNode;t.onSubstituteNode=Uc;const Ce=t.onEmitNode;t.onEmitNode=dl;let ne=!1,ve,Se,Ne,pe,fe;const xe=new Map,Be=new Set;let Ge,Ae,De=!1,Ke=!1;return Kp(t,Je);function Je($){if($.isDeclarationFile||(fe=void 0,ne=!!(Pp($)&32),!ge&&!ne))return $;const tt=rn($,Ye,t);return iD(tt,t.readEmitHelpers()),tt}function ft($){switch($.kind){case 129:return Cn()?void 0:$;default:return ur($,Qo)}}function Ye($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 129:return H.fail("Use `modifierVisitor` instead.");case 263:return Qi($);case 231:return le($);case 175:case 172:return H.fail("Use `classElementVisitor` instead.");case 303:return ht($);case 243:return Ut($);case 260:return Ni($);case 169:return ji($);case 208:return xn($);case 277:return Jn($);case 81:return It($);case 211:return Yo($);case 212:return bo($);case 224:case 225:return Qe($,!1);case 226:return ii($,!1);case 217:return ni($,!1);case 213:return Xt($);case 244:return Mt($);case 215:return Pe($);case 248:return Et($);case 110:return de($);case 262:case 218:return yr(void 0,Ve,$);case 176:case 174:case 177:case 178:return yr($,Ve,$);default:return Ve($)}}function Ve($){return rn($,Ye,t)}function We($){switch($.kind){case 224:case 225:return Qe($,!0);case 226:return ii($,!0);case 361:return me($,!0);case 217:return ni($,!0);default:return Ye($)}}function Gt($){switch($.kind){case 298:return rn($,Gt,t);case 233:return Ei($);default:return Ye($)}}function Yt($){switch($.kind){case 210:case 209:return Ri($);default:return Ye($)}}function Ie($){switch($.kind){case 176:return yr($,Ai,$);case 177:case 178:case 174:return yr($,aa,$);case 172:return yr($,tu,$);case 175:return yr($,we,$);case 167:return Pi($);case 240:return $;default:return ol($)?ft($):Ye($)}}function st($){switch($.kind){case 167:return Pi($);default:return Ye($)}}function St($){switch($.kind){case 172:return Dn($);case 177:case 178:return Ie($);default:H.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function It($){return!K||na($.parent)?$:su(u.createIdentifier(""),$)}function ei($){const tt=Ho($.left);if(tt){const vt=yt($.right,Ye,Wt);return su(s().createClassPrivateFieldInHelper(tt.brandCheckIdentifier,vt),$)}return rn($,Ye,t)}function ht($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function Ut($){const tt=pe;pe=[];const vt=rn($,Ye,t),mi=Oe(pe)?[vt,...pe]:vt;return pe=tt,mi}function Ni($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function ji($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function xn($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function Jn($){return If($,gt)&&($=Vf(t,$,!0,$.isExportEquals?"":"default")),rn($,Ye,t)}function an($){return Oe(Ne)&&(Cf($)?(Ne.push($.expression),$=u.updateParenthesizedExpression($,u.inlineExpressions(Ne))):(Ne.push($),$=u.inlineExpressions(Ne)),Ne=void 0),$}function Pi($){const tt=yt($.expression,Ye,Wt);return u.updateComputedPropertyName($,an(tt))}function Ai($){return Ge?it($,Ge):Ve($)}function Zu($){return!!(K||Kc($)&&Pp($)&32)}function aa($){if(H.assert(!o4($)),!ph($)||!Zu($))return rn($,Ie,t);const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;const vt=Ba($);vt&&wo().push(u.createAssignment(vt,u.createFunctionExpression(ti($.modifiers,mi=>Qo(mi)&&!N7(mi)&&!nFe(mi)),$.asteriskToken,vt,void 0,xc($.parameters,Ye,t),void 0,Om($.body,Ye,t))))}function yr($,tt,vt){if($!==Ae){const mi=Ae;Ae=$;const fn=tt(vt);return Ae=mi,fn}return tt(vt)}function Ba($){H.assert(ea($.name));const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),tt.kind==="m")return tt.methodName;if(tt.kind==="a"){if(Lx($))return tt.getterName;if(e5($))return tt.setterName}}function bt(){const $=Ir(),tt=$.classThis??$.classConstructor??(Ge==null?void 0:Ge.name);return H.checkDefined(tt)}function jn($){const tt=nE($),vt=Lv($),mi=$.name;let fn=mi,Wu=mi;if(Ps(mi)&&!sE(mi.expression)){const nd=FY(mi);if(nd)fn=u.updateComputedPropertyName(mi,yt(mi.expression,Ye,Wt)),Wu=u.updateComputedPropertyName(mi,nd.left);else{const S0=u.createTempVariable(d);As(S0,mi.expression);const ud=yt(mi.expression,Ye,Wt),m0=u.createAssignment(S0,ud);As(m0,mi.expression),fn=u.updateComputedPropertyName(mi,m0),Wu=u.updateComputedPropertyName(mi,S0)}}const uu=kn($.modifiers,ft,Qo),Tu=Wce(u,$,uu,$.initializer);su(Tu,$),Zn(Tu,3072),As(Tu,vt);const Nr=No($)?bt():u.createThis(),Vu=jFe(u,$,uu,fn,Nr);su(Vu,$),Bc(Vu,tt),As(Vu,vt);const Ss=u.createModifiersFromModifierFlags(tE(uu)),ic=VFe(u,$,Ss,Wu,Nr);return su(ic,$),Zn(ic,3072),As(ic,vt),dH([Tu,Vu,ic],St,Zd)}function Ln($){if(Zu($)){const tt=Ho($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;if(tt.isStatic&&!K){const vt=Li($,u.createThis());if(vt)return u.createClassStaticBlockDeclaration(u.createBlock([vt],!0))}return}return z&&!No($)&&(fe!=null&&fe.data)&&fe.data.facts&16?u.updatePropertyDeclaration($,kn($.modifiers,Ye,ol),$.name,void 0,void 0,void 0):(If($,gt)&&($=Vf(t,$)),u.updatePropertyDeclaration($,kn($.modifiers,ft,Qo),yt($.name,st,Sc),void 0,void 0,yt($.initializer,Ye,Wt)))}function Si($){if(J&&!ef($)){const tt=Ku($.name,!!$.initializer||T);if(tt&&wo().push(...HFe(tt)),No($)&&!K){const vt=Li($,u.createThis());if(vt){const mi=u.createClassStaticBlockDeclaration(u.createBlock([vt]));return su(mi,$),Bc(mi,$),Bc(vt,{pos:-1,end:-1}),Nv(vt,void 0),A7(vt,void 0),mi}}return}return u.updatePropertyDeclaration($,kn($.modifiers,ft,Qo),yt($.name,st,Sc),void 0,void 0,yt($.initializer,Ye,Wt))}function Dn($){return H.assert(!o4($),"Decorators should already have been transformed and elided."),ph($)?Ln($):Si($)}function Cn(){return Y===-1||Y===3&&!!(fe!=null&&fe.data)&&!!(fe.data.facts&16)}function tu($){return ef($)&&(Cn()||Kc($)&&Pp($)&32)?jn($):Dn($)}function oa(){return!!Ae&&Kc(Ae)&&wx(Ae)&&ef(Wl(Ae))}function Da($){if(oa()){const tt=Dc($);tt.kind===110&&Be.add(tt)}}function ra($,tt){return tt=yt(tt,Ye,Wt),Da(tt),Ta($,tt)}function Ta($,tt){switch(Bc(tt,Sv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function Yo($){if(ea($.name)){const tt=Ho($.name);if(tt)return Pt(su(ra(tt,$.expression),$),$)}if(se&&Ae&&nf($)&&at($.name)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=u.createReflectGetCall(vt,u.createStringLiteralFromNode($.name),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function bo($){if(se&&Ae&&nf($)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=u.createReflectGetCall(vt,yt($.argumentExpression,Ye,Wt),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function Qe($,tt){if($.operator===46||$.operator===47){const vt=l0($.operand);if(T8(vt)){let mi;if(mi=Ho(vt.name)){const fn=yt(vt.expression,Ye,Wt);Da(fn);const{readExpression:Wu,initializeExpression:uu}=qt(fn);let Tu=ra(mi,Wu);const Nr=zv($)||tt?void 0:u.createTempVariable(d);return Tu=DY(u,$,Tu,d,Nr),Tu=vi(mi,uu||Wu,Tu,64),su(Tu,$),Pt(Tu,$),Nr&&(Tu=u.createComma(Tu,Nr),Pt(Tu,$)),Tu}}else if(se&&Ae&&nf(vt)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:mi,superClassReference:fn,facts:Wu}=fe.data;if(Wu&1){const uu=ca(vt);return zv($)?u.updatePrefixUnaryExpression($,uu):u.updatePostfixUnaryExpression($,uu)}if(mi&&fn){let uu,Tu;if(Iu(vt)?at(vt.name)&&(Tu=uu=u.createStringLiteralFromNode(vt.name)):sE(vt.argumentExpression)?Tu=uu=vt.argumentExpression:(Tu=u.createTempVariable(d),uu=u.createAssignment(Tu,yt(vt.argumentExpression,Ye,Wt))),uu&&Tu){let Nr=u.createReflectGetCall(fn,Tu,mi);Pt(Nr,vt);const Vu=tt?void 0:u.createTempVariable(d);return Nr=DY(u,$,Nr,d,Vu),Nr=u.createReflectSetCall(fn,uu,Nr,mi),su(Nr,$),Pt(Nr,$),Vu&&(Nr=u.createComma(Nr,Vu),Pt(Nr,$)),Nr}}}}return rn($,Ye,t)}function Et($){return u.updateForStatement($,yt($.initializer,We,a4),yt($.condition,Ye,Wt),yt($.incrementor,We,Wt),Ih($.statement,Ye,t))}function Mt($){return u.updateExpressionStatement($,yt($.expression,We,Wt))}function qt($){const tt=sl($)?$:u.cloneNode($);if($.kind===110&&Be.has($)&&Be.add(tt),sE($))return{readExpression:tt,initializeExpression:void 0};const vt=u.createTempVariable(d),mi=u.createAssignment(vt,tt);return{readExpression:vt,initializeExpression:mi}}function Xt($){var tt;if(T8($.expression)&&Ho($.expression.name)){const{thisArg:vt,target:mi}=u.createCallBinding($.expression,d,k);return $y($)?u.updateCallChain($,u.createPropertyAccessChain(yt(mi,Ye,Wt),$.questionDotToken,"call"),void 0,void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)]):u.updateCallExpression($,u.createPropertyAccessExpression(yt(mi,Ye,Wt),"call"),void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)])}if(se&&Ae&&nf($.expression)&&DM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionCallCall(yt($.expression,Ye,Wt),fe.data.classConstructor,kn($.arguments,Ye,Wt));return su(vt,$),Pt(vt,$),vt}return rn($,Ye,t)}function Pe($){var tt;if(T8($.tag)&&Ho($.tag.name)){const{thisArg:vt,target:mi}=u.createCallBinding($.tag,d,k);return u.updateTaggedTemplateExpression($,u.createCallExpression(u.createPropertyAccessExpression(yt(mi,Ye,Wt),"bind"),void 0,[yt(vt,Ye,Wt)]),void 0,yt($.template,Ye,P8))}if(se&&Ae&&nf($.tag)&&DM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionBindCall(yt($.tag,Ye,Wt),fe.data.classConstructor,[]);return su(vt,$),Pt(vt,$),u.updateTaggedTemplateExpression($,vt,void 0,yt($.template,Ye,P8))}return rn($,Ye,t)}function et($){if(fe&&xe.set(Wl($),fe),K){if(EM($)){const mi=yt($.body.statements[0].expression,Ye,Wt);return ld(mi,!0)&&mi.left===mi.right?void 0:mi}if(X7($))return yt($.body.statements[0].expression,Ye,Wt);p();let tt=yr($,mi=>kn(mi,Ye,na),$.body.statements);tt=u.mergeLexicalEnvironment(tt,f());const vt=u.createImmediatelyInvokedArrowFunction(tt);return su(l0(vt.expression),$),i_(l0(vt.expression),4),su(vt,$),Pt(vt,$),vt}}function gt($){if(Xd($)&&!$.name){const tt=lQ($);return Oe(tt,X7)?!1:(K||!!Pp($))&&Oe(tt,mi=>zl(mi)||ph(mi)||J&&fH(mi))}return!1}function ii($,tt){if(r5($)){const vt=Ne;Ne=void 0,$=u.updateBinaryExpression($,yt($.left,Yt,Wt),$.operatorToken,yt($.right,Ye,Wt));const mi=Oe(Ne)?u.inlineExpressions(Dr([...Ne,$])):$;return Ne=vt,mi}if(ld($)){If($,gt)&&($=Vf(t,$),H.assertNode($,ld));const vt=Dc($.left,9);if(T8(vt)){const mi=Ho(vt.name);if(mi)return Pt(su(vi(mi,vt.expression,$.right,$.operatorToken.kind),$),$)}else if(se&&Ae&&nf($.left)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:mi,superClassReference:fn,facts:Wu}=fe.data;if(Wu&1)return u.updateBinaryExpression($,ca($.left),$.operatorToken,yt($.right,Ye,Wt));if(mi&&fn){let uu=U0($.left)?yt($.left.argumentExpression,Ye,Wt):at($.left.name)?u.createStringLiteralFromNode($.left.name):void 0;if(uu){let Tu=yt($.right,Ye,Wt);if(mM($.operatorToken.kind)){let Vu=uu;sE(uu)||(Vu=u.createTempVariable(d),uu=u.createAssignment(Vu,uu));const Ss=u.createReflectGetCall(fn,Vu,mi);su(Ss,$.left),Pt(Ss,$.left),Tu=u.createBinaryExpression(Ss,pM($.operatorToken.kind),Tu),Pt(Tu,$)}const Nr=tt?void 0:u.createTempVariable(d);return Nr&&(Tu=u.createAssignment(Nr,Tu),Pt(Nr,$)),Tu=u.createReflectSetCall(fn,uu,Tu,mi),su(Tu,$),Pt(Tu,$),Nr&&(Tu=u.createComma(Tu,Nr),Pt(Tu,$)),Tu}}}}return yMt($)?ei($):rn($,Ye,t)}function me($,tt){const vt=tt?hH($.elements,We):hH($.elements,Ye,We);return u.updateCommaListExpression($,vt)}function ni($,tt){const vt=tt?We:Ye,mi=yt($.expression,vt,Wt);return u.updateParenthesizedExpression($,mi)}function vi($,tt,vt,mi){if(tt=yt(tt,Ye,Wt),vt=yt(vt,Ye,Wt),Da(tt),mM(mi)){const{readExpression:fn,initializeExpression:Wu}=qt(tt);tt=Wu||fn,vt=u.createBinaryExpression(Ta($,fn),pM(mi),vt)}switch(Bc(tt,Sv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.setterName);case"m":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function mt($){return ti($.members,JAe)}function Ot($){var tt;let vt=0;const mi=Wl($);Wc(mi)&&t5(M,mi)&&(vt|=1),K&&(e1e($)||dQ($))&&(vt|=2);let fn=!1,Wu=!1,uu=!1,Tu=!1;for(const Vu of $.members)No(Vu)?((Vu.name&&(ea(Vu.name)||ef(Vu))&&K||ef(Vu)&&Y===-1&&!$.name&&!((tt=$.emitNode)!=null&&tt.classThis))&&(vt|=2),(ko(Vu)||zl(Vu))&&(oe&&Vu.transformFlags&16384&&(vt|=8,vt&1||(vt|=2)),se&&Vu.transformFlags&134217728&&(vt&1||(vt|=6)))):P2(Wl(Vu))||(ef(Vu)?(Tu=!0,uu||(uu=ph(Vu))):ph(Vu)?(uu=!0,b.getNodeCheckFlags(Vu)&262144&&(vt|=2)):ko(Vu)&&(fn=!0,Wu||(Wu=!!Vu.initializer)));return(j&&fn||z&&Wu||K&&uu||K&&Tu&&Y===-1)&&(vt|=16),vt}function Ei($){var tt;if((((tt=fe==null?void 0:fe.data)==null?void 0:tt.facts)||0)&4){const mi=u.createTempVariable(d,!0);return Ir().superClassReference=mi,u.updateExpressionWithTypeArguments($,u.createAssignment(mi,yt($.expression,Ye,Wt)),void 0)}return rn($,Ye,t)}function $i($,tt){var vt;const mi=Ge,fn=Ne,Wu=fe;Ge=$,Ne=void 0,ja();const uu=Pp($)&32;if(K||uu){const Vu=Za($);if(Vu&&at(Vu))as().data.className=Vu;else if((vt=$.emitNode)!=null&&vt.assignedName&&us($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&at($.emitNode.assignedName.textSourceNode))as().data.className=$.emitNode.assignedName.textSourceNode;else if(Lm($.emitNode.assignedName.text,k)){const Ss=u.createIdentifier($.emitNode.assignedName.text);as().data.className=Ss}}}if(K){const Vu=mt($);Oe(Vu)&&(as().data.weakSetName=vl("instances",Vu[0].name))}const Tu=Ot($);Tu&&(Ir().facts=Tu),Tu&8&&pr();const Nr=tt($,Tu);return wn(),H.assert(fe===Wu),Ge=mi,Ne=fn,Nr}function Qi($){return $i($,on)}function on($,tt){var vt,mi;let fn;if(tt&2)if(K&&((vt=$.emitNode)!=null&&vt.classThis))Ir().classConstructor=$.emitNode.classThis,fn=u.createAssignment($.emitNode.classThis,u.getInternalName($));else{const m0=u.createTempVariable(d,!0);Ir().classConstructor=u.cloneNode(m0),fn=u.createAssignment(m0,u.getInternalName($))}(mi=$.emitNode)!=null&&mi.classThis&&(Ir().classThis=$.emitNode.classThis);const Wu=b.getNodeCheckFlags($)&262144,uu=Yu($,32),Tu=Yu($,2048);let Nr=kn($.modifiers,ft,Qo);const Vu=kn($.heritageClauses,Gt,mm),{members:Ss,prologue:ic}=je($),nd=[];if(fn&&wo().unshift(fn),Oe(Ne)&&nd.push(u.createExpressionStatement(u.inlineExpressions(Ne))),z||K||Pp($)&32){const m0=lQ($);Oe(m0)&&Qt(nd,m0,u.getInternalName($))}nd.length>0&&uu&&Tu&&(Nr=kn(Nr,m0=>OV(m0)?void 0:m0,Qo),nd.push(u.createExportAssignment(void 0,!1,u.getLocalName($,!1,!0))));const S0=Ir().classConstructor;Wu&&S0&&(Ru(),Se[M1($)]=S0);const ud=u.updateClassDeclaration($,Nr,$.name,void 0,Vu,Ss);return nd.unshift(ud),ic&&nd.unshift(u.createExpressionStatement(ic)),nd}function le($){return $i($,te)}function te($,tt){var vt,mi,fn;const Wu=!!(tt&1),uu=lQ($),Tu=b.getNodeCheckFlags($),Nr=Tu&262144;let Vu;function Ss(){var uh;if(K&&((uh=$.emitNode)!=null&&uh.classThis))return Ir().classConstructor=$.emitNode.classThis;const h4=Tu&32768,D1=u.createTempVariable(h4?v:d,!0);return Ir().classConstructor=u.cloneNode(D1),D1}(vt=$.emitNode)!=null&&vt.classThis&&(Ir().classThis=$.emitNode.classThis),tt&2&&(Vu??(Vu=Ss()));const ic=kn($.modifiers,ft,Qo),nd=kn($.heritageClauses,Gt,mm),{members:S0,prologue:ud}=je($),m0=u.updateClassExpression($,ic,$.name,void 0,nd,S0),Bd=[];if(ud&&Bd.push(ud),(K||Pp($)&32)&&Oe(uu,uh=>zl(uh)||ph(uh)||J&&fH(uh))||Oe(Ne))if(Wu)H.assertIsDefined(pe,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Oe(Ne)&&yn(pe,Vt(Ne,u.createExpressionStatement)),Oe(uu)&&Qt(pe,uu,((mi=$.emitNode)==null?void 0:mi.classThis)??u.getInternalName($)),Vu?Bd.push(u.createAssignment(Vu,m0)):K&&((fn=$.emitNode)!=null&&fn.classThis)?Bd.push(u.createAssignment($.emitNode.classThis,m0)):Bd.push(m0);else{if(Vu??(Vu=Ss()),Nr){Ru();const uh=u.cloneNode(Vu);uh.emitNode.autoGenerate.flags&=-9,Se[M1($)]=uh}Bd.push(u.createAssignment(Vu,m0)),yn(Bd,Ne),yn(Bd,Ui(uu,Vu)),Bd.push(u.cloneNode(Vu))}else Bd.push(m0);return Bd.length>1&&(i_(m0,131072),Bd.forEach(vh)),u.inlineExpressions(Bd)}function we($){if(!K)return rn($,Ye,t)}function de($){if(oe&&Ae&&zl(Ae)&&(fe!=null&&fe.data)){const{classThis:tt,classConstructor:vt}=fe.data;return tt??vt??$}return $}function je($){const tt=!!(Pp($)&32);if(K||ne){for(const uu of $.members)if(ph(uu))if(Zu(uu))hd(uu,uu.name,Fn);else{const Tu=as();Bk(Tu,uu.name,{kind:"untransformed"})}if(K&&Oe(mt($))&&X(),Cn()){for(const uu of $.members)if(ef(uu)){const Tu=u.getGeneratedPrivateNameForNode(uu.name,void 0,"_accessor_storage");if(K||tt&&Kc(uu))hd(uu,Tu,vc);else{const Nr=as();Bk(Nr,Tu,{kind:"untransformed"})}}}}let vt=kn($.members,Ie,Zd),mi;Oe(vt,hc)||(mi=it(void 0,$));let fn,Wu;if(!K&&Oe(Ne)){let uu=u.createExpressionStatement(u.inlineExpressions(Ne));if(uu.transformFlags&134234112){const Nr=u.createTempVariable(d),Vu=u.createArrowFunction(void 0,void 0,[],void 0,void 0,u.createBlock([uu]));fn=u.createAssignment(Nr,Vu),uu=u.createExpressionStatement(u.createCallExpression(Nr,void 0,[]))}const Tu=u.createBlock([uu]);Wu=u.createClassStaticBlockDeclaration(Tu),Ne=void 0}if(mi||Wu){let uu;const Tu=Le(vt,EM),Nr=Le(vt,X7);uu=xi(uu,Tu),uu=xi(uu,Nr),uu=xi(uu,mi),uu=xi(uu,Wu);const Vu=Tu||Nr?ti(vt,Ss=>Ss!==Tu&&Ss!==Nr):vt;uu=yn(uu,Vu),vt=Pt(u.createNodeArray(uu),$.members)}return{members:vt,prologue:fn}}function X(){const{weakSetName:$}=as().data;H.assert($,"weakSetName should be set in private identifier environment"),wo().push(u.createAssignment($,u.createNewExpression(u.createIdentifier("WeakSet"),void 0,[])))}function it($,tt){if($=yt($,Ye,hc),!(fe!=null&&fe.data)||!(fe.data.facts&16))return $;const vt=Qg(tt),mi=!!(vt&&Dc(vt.expression).kind!==106),fn=xc($?$.parameters:void 0,Ye,t),Wu=ct(tt,$,mi);return Wu?$?(H.assert(fn),u.updateConstructorDeclaration($,void 0,fn,Wu)):vh(su(Pt(u.createConstructorDeclaration(void 0,fn??[],Wu),$||tt),$)):$}function Ct($,tt,vt,mi,fn,Wu,uu){const Tu=mi[fn],Nr=tt[Tu];if(yn($,kn(tt,Ye,na,vt,Tu-vt)),vt=Tu+1,Ck(Nr)){const Vu=[];Ct(Vu,Nr.tryBlock.statements,0,mi,fn+1,Wu,uu);const Ss=u.createNodeArray(Vu);Pt(Ss,Nr.tryBlock.statements),$.push(u.updateTryStatement(Nr,u.updateBlock(Nr.tryBlock,Vu),yt(Nr.catchClause,Ye,G2),yt(Nr.finallyBlock,Ye,po)))}else{for(yn($,kn(tt,Ye,na,Tu,1));vt!!S0.initializer||ea(S0.name)||eE(S0)));const Wu=mt($),uu=Oe(fn)||Oe(Wu);if(!tt&&!uu)return Om(void 0,Ye,t);E();const Tu=!tt&&vt;let Nr=0,Vu=[];const Ss=[],ic=u.createThis();if(Xu(Ss,Wu,ic),tt){const S0=ti(mi,m0=>Mf(Wl(m0),tt)),ud=ti(fn,m0=>!Mf(Wl(m0),tt));Qt(Ss,S0,ic),Qt(Ss,ud,ic)}else Qt(Ss,fn,ic);if(tt!=null&&tt.body){Nr=u.copyPrologue(tt.body.statements,Vu,!1,Ye);const S0=sQ(tt.body.statements,Nr);if(S0.length)Ct(Vu,tt.body.statements,Nr,S0,0,Ss,tt);else{for(;Nr=Vu.length?tt.body.multiLine??Vu.length>0:Vu.length>0;return Pt(u.createBlock(Pt(u.createNodeArray(Vu),tt?tt.body.statements:$.members),nd),tt?tt.body:void 0)}function Qt($,tt,vt){for(const mi of tt){if(No(mi)&&!K)continue;const fn=Li(mi,vt);fn&&$.push(fn)}}function Li($,tt){const vt=zl($)?yr($,et,$):Sn($,tt);if(!vt)return;const mi=u.createExpressionStatement(vt);su(mi,$),i_(mi,bs($)&3072),Bc(mi,$);const fn=Wl($);return io(fn)?(As(mi,fn),EV(mi)):As(mi,iE($)),Nv(vt,void 0),A7(vt,void 0),eE(fn)&&i_(mi,3072),mi}function Ui($,tt){const vt=[];for(const mi of $){const fn=zl(mi)?yr(mi,et,mi):yr(mi,()=>Sn(mi,tt),void 0);fn&&(vh(fn),su(fn,mi),i_(fn,bs(mi)&3072),As(fn,iE(mi)),Bc(fn,mi),vt.push(fn))}return vt}function Sn($,tt){var vt;const mi=Ae,fn=du($,tt);return fn&&Kc($)&&((vt=fe==null?void 0:fe.data)!=null&&vt.facts)&&(su(fn,$),i_(fn,4),As(fn,Lv($.name)),xe.set(Wl($),fe)),Ae=mi,fn}function du($,tt){const vt=!T;If($,gt)&&($=Vf(t,$));const mi=eE($)?u.getGeneratedPrivateNameForNode($.name):Ps($.name)&&!sE($.name.expression)?u.updateComputedPropertyName($.name,u.getGeneratedNameForNode($.name)):$.name;if(Kc($)&&(Ae=$),ea(mi)&&Zu($)){const uu=Ho(mi);if(uu)return uu.kind==="f"?uu.isStatic?xMt(u,uu.variableName,yt($.initializer,Ye,Wt)):vMt(u,tt,yt($.initializer,Ye,Wt),uu.brandCheckIdentifier):void 0;H.fail("Undeclared private name for property declaration.")}if((ea(mi)||Kc($))&&!$.initializer)return;const fn=Wl($);if(Yu(fn,64))return;let Wu=yt($.initializer,Ye,Wt);if(Mf(fn,fn.parent)&&at(mi)){const uu=u.cloneNode(mi);Wu?(Cf(Wu)&&MV(Wu.expression)&&jP(Wu.expression.left,"___runInitializers")&&R7(Wu.expression.right)&&Of(Wu.expression.right.expression)&&(Wu=Wu.expression.left),Wu=u.inlineExpressions([Wu,uu])):Wu=uu,Zn(mi,3168),As(uu,fn.name),Zn(uu,3072)}else Wu??(Wu=u.createVoidZero());if(vt||ea(mi)){const uu=Fk(u,tt,mi,mi);return i_(uu,1024),u.createAssignment(uu,Wu)}else{const uu=Ps(mi)?mi.expression:at(mi)?u.createStringLiteral(Qr(mi.escapedText)):mi,Tu=u.createPropertyDescriptor({value:Wu,configurable:!0,writable:!0,enumerable:!0});return u.createObjectDefinePropertyCall(tt,uu,Tu)}}function Ru(){ve&1||(ve|=1,t.enableSubstitution(80),Se=[])}function pr(){ve&2||(ve|=2,t.enableSubstitution(110),t.enableEmitNotification(262),t.enableEmitNotification(218),t.enableEmitNotification(176),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(174),t.enableEmitNotification(172),t.enableEmitNotification(167))}function Xu($,tt,vt){if(!K||!Oe(tt))return;const{weakSetName:mi}=as().data;H.assert(mi,"weakSetName should be set in private identifier environment"),$.push(u.createExpressionStatement(CMt(u,vt,mi)))}function ca($){return Iu($)?u.updatePropertyAccessExpression($,u.createVoidZero(),$.name):u.updateElementAccessExpression($,u.createVoidZero(),yt($.argumentExpression,Ye,Wt))}function Ku($,tt){if(Ps($)){const vt=FY($),mi=yt($.expression,Ye,Wt),fn=Np(mi),Wu=sE(fn);if(!(!!vt||ld(fn)&&al(fn.left))&&!Wu&&tt){const Tu=u.getGeneratedNameForNode($);return b.getNodeCheckFlags($)&32768?v(Tu):d(Tu),u.createAssignment(Tu,mi)}return Wu||at(fn)?void 0:mi}}function ja(){fe={previous:fe,data:void 0}}function wn(){fe=fe==null?void 0:fe.previous}function Ir(){return H.assert(fe),fe.data??(fe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function as(){return H.assert(fe),fe.privateEnv??(fe.privateEnv=qAe({className:void 0,weakSetName:void 0}))}function wo(){return Ne??(Ne=[])}function Fn($,tt,vt,mi,fn,Wu,uu){ef($)?wl($,tt,vt,mi,fn,Wu):ko($)?vc($,tt,vt,mi,fn,Wu):dc($)?Ya($,tt,vt,mi,fn,Wu):zm($)?c0($,tt,vt,mi,fn,Wu,uu):jf($)&&Ul($,tt,vt,mi,fn,Wu,uu)}function vc($,tt,vt,mi,fn,Wu,uu){if(fn){const Tu=H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"),Nr=co(tt);Bk(mi,tt,{kind:"f",isStatic:!0,brandCheckIdentifier:Tu,variableName:Nr,isValid:Wu})}else{const Tu=co(tt);Bk(mi,tt,{kind:"f",isStatic:!1,brandCheckIdentifier:Tu,isValid:Wu}),wo().push(u.createAssignment(Tu,u.createNewExpression(u.createIdentifier("WeakMap"),void 0,[])))}}function Ya($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(mi,tt,{kind:"m",methodName:Tu,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function c0($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_get"),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.getterName?uu.getterName=Tu:Bk(mi,tt,{kind:"a",getterName:Tu,setterName:void 0,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function Ul($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_set"),Nr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.setterName?uu.setterName=Tu:Bk(mi,tt,{kind:"a",getterName:void 0,setterName:Tu,brandCheckIdentifier:Nr,isStatic:fn,isValid:Wu})}function wl($,tt,vt,mi,fn,Wu,uu){const Tu=co(tt,"_get"),Nr=co(tt,"_set"),Vu=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(mi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(mi,tt,{kind:"a",getterName:Tu,setterName:Nr,brandCheckIdentifier:Vu,isStatic:fn,isValid:Wu})}function hd($,tt,vt){const mi=Ir(),fn=as(),Wu=Yde(fn,tt),uu=Kc($),Tu=!bMt(tt)&&Wu===void 0;vt($,tt,mi,fn,uu,Tu,Wu)}function vl($,tt,vt){const{className:mi}=as().data,fn=mi?{prefix:"_",node:mi,suffix:"_"}:"_",Wu=typeof $=="object"?u.getGeneratedNameForNode($,24,fn,vt):typeof $=="string"?u.createUniqueName($,16,fn,vt):u.createTempVariable(void 0,!0,fn,vt);return b.getNodeCheckFlags(tt)&32768?v(Wu):d(Wu),Wu}function co($,tt){const vt=UN($);return vl((vt==null?void 0:vt.substring(1))??$,$,tt)}function Ho($){const tt=ZAe(fe,$);return(tt==null?void 0:tt.kind)==="untransformed"?void 0:tt}function id($){const tt=u.getGeneratedNameForNode($),vt=Ho($.name);if(!vt)return rn($,Ye,t);let mi=$.expression;return(mj($)||nf($)||!Y2($.expression))&&(mi=u.createTempVariable(d,!0),wo().push(u.createBinaryExpression(mi,64,yt($.expression,Ye,Wt)))),u.createAssignmentTargetWrapper(tt,vi(vt,mi,tt,64))}function Y0($){if(ys($)||Dh($))return Ri($);if(T8($))return id($);if(se&&Ae&&nf($)&&DM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:mi}=fe.data;if(mi&1)return ca($);if(tt&&vt){const fn=U0($)?yt($.argumentExpression,Ye,Wt):at($.name)?u.createStringLiteralFromNode($.name):void 0;if(fn){const Wu=u.createTempVariable(void 0);return u.createAssignmentTargetWrapper(Wu,u.createReflectSetCall(vt,fn,Wu,tt))}}}return rn($,Ye,t)}function Ko($){if(If($,gt)&&($=Vf(t,$)),ld($,!0)){const tt=Y0($.left),vt=yt($.right,Ye,Wt);return u.updateBinaryExpression($,tt,$.operatorToken,vt)}return Y0($)}function Tc($){if(Df($.expression)){const tt=Y0($.expression);return u.updateSpreadElement($,tt)}return rn($,Ye,t)}function Jp($){if(ZO($)){if(uE($))return Tc($);if(!Fd($))return Ko($)}return rn($,Ye,t)}function Lc($){const tt=yt($.name,Ye,Sc);if(ld($.initializer,!0)){const vt=Ko($.initializer);return u.updatePropertyAssignment($,tt,vt)}if(Df($.initializer)){const vt=Y0($.initializer);return u.updatePropertyAssignment($,tt,vt)}return rn($,Ye,t)}function Il($){return If($,gt)&&($=Vf(t,$)),rn($,Ye,t)}function cl($){if(Df($.expression)){const tt=Y0($.expression);return u.updateSpreadAssignment($,tt)}return rn($,Ye,t)}function Ka($){return H.assertNode($,qO),d5($)?cl($):pm($)?Il($):Jc($)?Lc($):rn($,Ye,t)}function Ri($){return Dh($)?u.updateArrayLiteralExpression($,kn($.elements,Jp,Wt)):u.updateObjectLiteralExpression($,kn($.properties,Ka,Z3))}function dl($,tt,vt){const mi=Wl(tt),fn=xe.get(mi);if(fn){const Wu=fe,uu=Ke;fe=fn,Ke=De,De=!zl(mi)||!(Pp(mi)&32),Ce($,tt,vt),De=Ke,Ke=uu,fe=Wu;return}switch(tt.kind){case 218:if(q0(mi)||bs(tt)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Wu=fe,uu=Ke;fe=void 0,Ke=De,De=!1,Ce($,tt,vt),De=Ke,Ke=uu,fe=Wu;return}case 167:{const Wu=fe,uu=De;fe=fe==null?void 0:fe.previous,De=Ke,Ce($,tt,vt),De=uu,fe=Wu;return}}Ce($,tt,vt)}function Uc($,tt){return tt=ae($,tt),$===1?Ch(tt):tt}function Ch($){switch($.kind){case 80:return Q0($);case 110:return sf($)}return $}function sf($){if(ve&2&&(fe!=null&&fe.data)&&!Be.has($)){const{facts:tt,classConstructor:vt,classThis:mi}=fe.data,fn=De?mi??vt:vt;if(fn)return Pt(su(u.cloneNode(fn),$),$);if(tt&1&&M)return u.createParenthesizedExpression(u.createVoidZero())}return $}function Q0($){return Cc($)||$}function Cc($){if(ve&1&&b.getNodeCheckFlags($)&536870912){const tt=b.getReferencedValueDeclaration($);if(tt){const vt=Se[tt.id];if(vt){const mi=u.cloneNode(vt);return As(mi,$),Bc(mi,$),mi}}}}}function xMt(t,u,s){return t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function vMt(t,u,s,d){return t.createCallExpression(t.createPropertyAccessExpression(d,"set"),void 0,[u,s||t.createVoidZero()])}function CMt(t,u,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[u])}function bMt(t){return!Uy(t)&&t.escapedText==="#constructor"}function yMt(t){return ea(t.left)&&t.operatorToken.kind===103}function kMt(t){return ko(t)&&Kc(t)}function DM(t){return zl(t)||kMt(t)}var FMt=o({"src/compiler/transformers/classFields.ts"(){Bo()}});function a7e(t){const{factory:u,hoistVariableDeclaration:s}=t,d=t.getEmitResolver(),f=t.getCompilerOptions(),p=Os(f),E=Z4(f,"strictNullChecks");let v,b;return{serializeTypeNode:(Ne,pe)=>B(Ne,J,pe),serializeTypeOfNode:(Ne,pe)=>B(Ne,T,pe),serializeParameterTypesOfNode:(Ne,pe,fe)=>B(Ne,M,pe,fe),serializeReturnTypeOfNode:(Ne,pe)=>B(Ne,j,pe)};function B(Ne,pe,fe,xe){const Be=v,Ge=b;v=Ne.currentLexicalScope,b=Ne.currentNameScope;const Ae=xe===void 0?pe(fe):pe(fe,xe);return v=Be,b=Ge,Ae}function k(Ne){const pe=d.getAllAccessorDeclarations(Ne);return pe.setAccessor&&vye(pe.setAccessor)||pe.getAccessor&&U4(pe.getAccessor)}function T(Ne){switch(Ne.kind){case 172:case 169:return J(Ne.type);case 178:case 177:return J(k(Ne));case 263:case 231:case 174:return u.createIdentifier("Function");default:return u.createVoidZero()}}function M(Ne,pe){const fe=mr(Ne)?X_(Ne):Co(Ne)&&H4(Ne.body)?Ne:void 0,xe=[];if(fe){const Be=z(fe,pe),Ge=Be.length;for(let Ae=0;AeBe.parent&&FB(Be.parent)&&(Be.parent.trueType===Be||Be.parent.falseType===Be)))return u.createIdentifier("Object");const fe=ae(Ne.typeName),xe=u.createTempVariable(s);return u.createConditionalExpression(u.createTypeCheck(u.createAssignment(xe,fe),"function"),void 0,xe,void 0,u.createIdentifier("Object"));case 1:return Ce(Ne.typeName);case 2:return u.createVoidZero();case 4:return Se("BigInt",7);case 6:return u.createIdentifier("Boolean");case 3:return u.createIdentifier("Number");case 5:return u.createIdentifier("String");case 7:return u.createIdentifier("Array");case 8:return Se("Symbol",2);case 10:return u.createIdentifier("Function");case 9:return u.createIdentifier("Promise");case 11:return u.createIdentifier("Object");default:return H.assertNever(pe)}}function ge(Ne,pe){return u.createLogicalAnd(u.createStrictInequality(u.createTypeOfExpression(Ne),u.createStringLiteral("undefined")),pe)}function ae(Ne){if(Ne.kind===80){const xe=Ce(Ne);return ge(xe,xe)}if(Ne.left.kind===80)return ge(Ce(Ne.left),Ce(Ne));const pe=ae(Ne.left),fe=u.createTempVariable(s);return u.createLogicalAnd(u.createLogicalAnd(pe.left,u.createStrictInequality(u.createAssignment(fe,pe.right),u.createVoidZero())),u.createPropertyAccessExpression(fe,Ne.right))}function Ce(Ne){switch(Ne.kind){case 80:const pe=ks(Pt(a_.cloneNode(Ne),Ne),Ne.parent);return pe.original=void 0,ks(pe,Ua(v)),pe;case 166:return ne(Ne)}}function ne(Ne){return u.createPropertyAccessExpression(Ce(Ne.left),Ne.right)}function ve(Ne){return u.createConditionalExpression(u.createTypeCheck(u.createIdentifier(Ne),"function"),void 0,u.createIdentifier(Ne),void 0,u.createIdentifier("Object"))}function Se(Ne,pe){return pOV(Cn)||g1(Cn)?void 0:Cn,ol),Jn=iE(ht),an=Gt(ht),Pi=E<2?u.getInternalName(ht,!1,!0):u.getLocalName(ht,!1,!0),Ai=kn(ht.heritageClauses,T,mm);let Zu=kn(ht.members,T,Zd),aa=[];({members:Zu,decorationStatements:aa}=K(ht,Zu));const yr=E>=9&&!!an&&Oe(Zu,Cn=>ko(Cn)&&Yu(Cn,256)||zl(Cn));yr&&(Zu=Pt(u.createNodeArray([u.createClassStaticBlockDeclaration(u.createBlock([u.createExpressionStatement(u.createAssignment(an,u.createThis()))])),...Zu]),Zu));const Ba=u.createClassExpression(xn,Ut&&al(Ut)?void 0:Ut,void 0,Ai,Zu);su(Ba,ht),Pt(Ba,Jn);const bt=an&&!yr?u.createAssignment(an,Ba):Ba,jn=u.createVariableDeclaration(Pi,void 0,void 0,bt);su(jn,ht);const Ln=u.createVariableDeclarationList([jn],1),Si=u.createVariableStatement(void 0,Ln);su(Si,ht),Pt(Si,Jn),Bc(Si,ht);const Dn=[Si];if(yn(Dn,aa),Ke(Dn,ht),Ni)if(ji){const Cn=u.createExportDefault(Pi);Dn.push(Cn)}else{const Cn=u.createExternalModuleExport(u.getDeclarationName(ht));Dn.push(Cn)}return Dn}function se(ht){return u.updateClassExpression(ht,kn(ht.modifiers,k,Qo),ht.name,void 0,kn(ht.heritageClauses,T,mm),kn(ht.members,T,Zd))}function ge(ht){return u.updateConstructorDeclaration(ht,kn(ht.modifiers,k,Qo),kn(ht.parameters,T,io),yt(ht.body,T,po))}function ae(ht,Ut){return ht!==Ut&&(Bc(ht,Ut),As(ht,iE(Ut))),ht}function Ce(ht){return ae(u.updateMethodDeclaration(ht,kn(ht.modifiers,k,Qo),ht.asteriskToken,H.checkDefined(yt(ht.name,T,Sc)),void 0,void 0,kn(ht.parameters,T,io),void 0,yt(ht.body,T,po)),ht)}function ne(ht){return ae(u.updateGetAccessorDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),kn(ht.parameters,T,io),void 0,yt(ht.body,T,po)),ht)}function ve(ht){return ae(u.updateSetAccessorDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),kn(ht.parameters,T,io),yt(ht.body,T,po)),ht)}function Se(ht){if(!(ht.flags&33554432||Yu(ht,128)))return ae(u.updatePropertyDeclaration(ht,kn(ht.modifiers,k,Qo),H.checkDefined(yt(ht.name,T,Sc)),void 0,void 0,yt(ht.initializer,T,Wt)),ht)}function Ne(ht){const Ut=u.updateParameterDeclaration(ht,OFe(u,ht.modifiers),ht.dotDotDotToken,H.checkDefined(yt(ht.name,T,qy)),void 0,void 0,yt(ht.initializer,T,Wt));return Ut!==ht&&(Bc(Ut,ht),Pt(Ut,iE(ht)),As(Ut,iE(ht)),Zn(Ut.name,64)),Ut}function pe(ht){return jP(ht.expression,"___metadata")}function fe(ht){if(!ht)return;const{false:Ut,true:Ni}=JCe(ht.decorators,pe),ji=[];return yn(ji,Vt(Ut,ft)),yn(ji,ju(ht.parameters,Ye)),yn(ji,Vt(Ni,ft)),ji}function xe(ht,Ut,Ni){yn(ht,Vt(Ae(Ut,Ni),ji=>u.createExpressionStatement(ji)))}function Be(ht,Ut,Ni){return gj(!0,ht,Ni)&&Ut===No(ht)}function Ge(ht,Ut){return ti(ht.members,Ni=>Be(Ni,Ut,ht))}function Ae(ht,Ut){const Ni=Ge(ht,Ut);let ji;for(const xn of Ni)ji=xi(ji,De(ht,xn));return ji}function De(ht,Ut){const Ni=cQ(Ut,ht,!0),ji=fe(Ni);if(!ji)return;const xn=Ie(ht,Ut),Jn=Ve(Ut,!Yu(Ut,128)),an=E>0?ko(Ut)&&!eE(Ut)?u.createVoidZero():u.createNull():void 0,Pi=s().createDecorateHelper(ji,xn,Jn,an);return Zn(Pi,3072),As(Pi,iE(Ut)),Pi}function Ke(ht,Ut){const Ni=Je(Ut);Ni&&ht.push(su(u.createExpressionStatement(Ni),Ut))}function Je(ht){const Ut=Zde(ht),Ni=fe(Ut);if(!Ni)return;const ji=b&&b[M1(ht)],xn=E<2?u.getInternalName(ht,!1,!0):u.getDeclarationName(ht,!1,!0),Jn=s().createDecorateHelper(Ni,xn),an=u.createAssignment(xn,ji?u.createAssignment(ji,Jn):Jn);return Zn(an,3072),As(an,iE(ht)),an}function ft(ht){return H.checkDefined(yt(ht.expression,T,Wt))}function Ye(ht,Ut){let Ni;if(ht){Ni=[];for(const ji of ht){const xn=s().createParamHelper(ft(ji),Ut);Pt(xn,ji.expression),Zn(xn,3072),Ni.push(xn)}}return Ni}function Ve(ht,Ut){const Ni=ht.name;return ea(Ni)?u.createIdentifier(""):Ps(Ni)?Ut&&!sE(Ni.expression)?u.getGeneratedNameForNode(Ni):Ni.expression:at(Ni)?u.createStringLiteral(fu(Ni)):u.cloneNode(Ni)}function We(){b||(t.enableSubstitution(80),b=[])}function Gt(ht){if(f.getNodeCheckFlags(ht)&262144){We();const Ut=u.createUniqueName(ht.name&&!al(ht.name)?fu(ht.name):"default");return b[M1(ht)]=Ut,d(Ut),Ut}}function Yt(ht){return u.createPropertyAccessExpression(u.getDeclarationName(ht),"prototype")}function Ie(ht,Ut){return No(Ut)?u.getDeclarationName(ht):Yt(ht)}function st(ht,Ut){return Ut=v(ht,Ut),ht===1?St(Ut):Ut}function St(ht){switch(ht.kind){case 80:return It(ht)}return ht}function It(ht){return ei(ht)??ht}function ei(ht){if(b&&f.getNodeCheckFlags(ht)&536870912){const Ut=f.getReferencedValueDeclaration(ht);if(Ut){const Ni=b[Ut.id];if(Ni){const ji=u.cloneNode(Ni);return As(ji,ht),Bc(ji,ht),ji}}}}}var SMt=o({"src/compiler/transformers/legacyDecorators.ts"(){Bo()}});function s7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=Os(t.getCompilerOptions());let v,b,B,k,T,M;return Kp(t,z);function z(te){v=void 0,M=!1;const we=rn(te,ve,t);return iD(we,t.readEmitHelpers()),M&&(F7(we,32),M=!1),we}function j(){switch(b=void 0,B=void 0,k=void 0,v==null?void 0:v.kind){case"class":b=v.classInfo;break;case"class-element":b=v.next.classInfo,B=v.classThis,k=v.classSuper;break;case"name":const te=v.next.next.next;(te==null?void 0:te.kind)==="class-element"&&(b=te.next.classInfo,B=te.classThis,k=te.classSuper);break}}function J(te){v={kind:"class",next:v,classInfo:te,savedPendingExpressions:T},T=void 0,j()}function K(){H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),T=v.savedPendingExpressions,v=v.next,j()}function Y(te){var we,de;H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"class-element",next:v},(zl(te)||ko(te)&&Kc(te))&&(v.classThis=(we=v.next.classInfo)==null?void 0:we.classThis,v.classSuper=(de=v.next.classInfo)==null?void 0:de.classSuper),j()}function oe(){var te;H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),H.assert(((te=v.next)==null?void 0:te.kind)==="class","Incorrect value for top.next.kind.",()=>{var we;return`Expected top.next.kind to be 'class' but got '${(we=v.next)==null?void 0:we.kind}' instead.`}),v=v.next,j()}function se(){H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"name",next:v},j()}function ge(){H.assert((v==null?void 0:v.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${v==null?void 0:v.kind}' instead.`),v=v.next,j()}function ae(){(v==null?void 0:v.kind)==="other"?(H.assert(!T),v.depth++):(v={kind:"other",next:v,depth:0,savedPendingExpressions:T},T=void 0,j())}function Ce(){H.assert((v==null?void 0:v.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${v==null?void 0:v.kind}' instead.`),v.depth>0?(H.assert(!T),v.depth--):(T=v.savedPendingExpressions,v=v.next,j())}function ne(te){return!!(te.transformFlags&33554432)||!!B&&!!(te.transformFlags&16384)||!!B&&!!k&&!!(te.transformFlags&134217728)}function ve(te){if(!ne(te))return te;switch(te.kind){case 170:return H.fail("Use `modifierVisitor` instead.");case 263:return Je(te);case 231:return ft(te);case 176:case 172:case 175:return H.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Jn(te);case 226:return aa(te,!1);case 303:return Si(te);case 260:return Dn(te);case 208:return Cn(te);case 277:return Mt(te);case 110:return ht(te);case 248:return Ai(te);case 244:return Zu(te);case 361:return Ba(te,!1);case 217:return qt(te,!1);case 360:return Xt(te,!1);case 213:return Ut(te);case 215:return Ni(te);case 224:case 225:return yr(te,!1);case 211:return ji(te);case 212:return xn(te);case 167:return Ln(te);case 174:case 178:case 177:case 218:case 262:{ae();const we=rn(te,Se,t);return Ce(),we}default:return rn(te,Se,t)}}function Se(te){switch(te.kind){case 170:return;default:return ve(te)}}function Ne(te){switch(te.kind){case 170:return;default:return te}}function pe(te){switch(te.kind){case 176:return We(te);case 174:return Ie(te);case 177:return st(te);case 178:return St(te);case 172:return ei(te);case 175:return It(te);default:return ve(te)}}function fe(te){switch(te.kind){case 224:case 225:return yr(te,!0);case 226:return aa(te,!0);case 361:return Ba(te,!0);case 217:return qt(te,!0);default:return ve(te)}}function xe(te){let we=te.name&&at(te.name)&&!al(te.name)?fu(te.name):te.name&&ea(te.name)&&!al(te.name)?fu(te.name).slice(1):te.name&&us(te.name)&&Lm(te.name.text,99)?te.name.text:mr(te)?"class":"member";return Lx(te)&&(we=`get_${we}`),e5(te)&&(we=`set_${we}`),te.name&&ea(te.name)&&(we=`private_${we}`),No(te)&&(we=`static_${we}`),"_"+we}function Be(te,we){return u.createUniqueName(`${xe(te)}_${we}`,24)}function Ge(te,we){return u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(te,void 0,void 0,we)],1))}function Ae(te){const we=u.createUniqueName("_metadata",48);let de,je,X=!1,it=!1,Ct=!1;for(const ct of te.members)if(nbe(ct)&&gj(!1,ct,te)&&(Kc(ct)?je??(je=u.createUniqueName("_staticExtraInitializers",48)):de??(de=u.createUniqueName("_instanceExtraInitializers",48))),zl(ct)?X7(ct)||(X=!0):ko(ct)&&(Kc(ct)?X||(X=!!ct.initializer||o4(ct)):it||(it=!_0e(ct))),(ph(ct)||ef(ct))&&Kc(ct)&&(Ct=!0),je&&de&&X&&it&&Ct)break;return{class:te,metadataReference:we,instanceExtraInitializersName:de,staticExtraInitializersName:je,hasStaticInitializers:X,hasNonAmbientInstanceFields:it,hasStaticPrivateClassElements:Ct}}function De(te){d(),!t1e(te)&&t5(!1,te)&&(te=hQ(t,te,u.createStringLiteral("")));const we=u.getLocalName(te,!1,!1,!0),de=Ae(te),je=[];let X,it,Ct,ct,Qt=!1;const Li=et(Zde(te));if(Li){de.classDecoratorsName=u.createUniqueName("_classDecorators",48),de.classDescriptorName=u.createUniqueName("_classDescriptor",48),de.classExtraInitializersName=u.createUniqueName("_classExtraInitializers",48);const wn=Oe(te.members,Ir=>(ph(Ir)||ef(Ir))&&Kc(Ir));de.classThis=u.createUniqueName("_classThis",wn?24:48),je.push(Ge(de.classDecoratorsName,u.createArrayLiteralExpression(Li)),Ge(de.classDescriptorName),Ge(de.classExtraInitializersName,u.createArrayLiteralExpression()),Ge(de.classThis)),de.hasStaticPrivateClassElements&&(Qt=!0,M=!0)}const Ui=Mj(te.heritageClauses,96),Sn=Ui&&Ki(Ui.types),du=Sn&&yt(Sn.expression,ve,Wt);if(du){de.classSuper=u.createUniqueName("_classSuper",48);const wn=Dc(du),Ir=Xd(wn)&&!wn.name||A0(wn)&&!wn.name||q0(wn)?u.createComma(u.createNumericLiteral(0),du):du;je.push(Ge(de.classSuper,Ir));const as=u.updateExpressionWithTypeArguments(Sn,de.classSuper,void 0),wo=u.updateHeritageClause(Ui,[as]);ct=u.createNodeArray([wo])}const Ru=de.classThis??u.createThis();J(de),X=xi(X,Qi(de.metadataReference,de.classSuper));let pr=kn(te.members,pe,Zd);if(T){let wn;for(let Ir of T){Ir=yt(Ir,function wo(Fn){if(!(Fn.transformFlags&16384))return Fn;switch(Fn.kind){case 110:return wn||(wn=u.createUniqueName("_outerThis",16),je.unshift(Ge(wn,u.createThis()))),wn;default:return rn(Fn,wo,t)}},Wt);const as=u.createExpressionStatement(Ir);X=xi(X,as)}T=void 0}if(K(),de.instanceExtraInitializersName&&!X_(te)){const wn=Ye(te,de);if(wn){const Ir=Qg(te),as=!!(Ir&&Dc(Ir.expression).kind!==106),wo=[];if(as){const vc=u.createSpreadElement(u.createIdentifier("arguments")),Ya=u.createCallExpression(u.createSuper(),void 0,[vc]);wo.push(u.createExpressionStatement(Ya))}yn(wo,wn);const Fn=u.createBlock(wo,!0);Ct=u.createConstructorDeclaration(void 0,[],Fn)}}if(de.staticExtraInitializersName&&je.push(Ge(de.staticExtraInitializersName,u.createArrayLiteralExpression())),de.instanceExtraInitializersName&&je.push(Ge(de.instanceExtraInitializersName,u.createArrayLiteralExpression())),de.memberInfos&&h1(de.memberInfos,(wn,Ir)=>{No(Ir)&&(je.push(Ge(wn.memberDecoratorsName)),wn.memberInitializersName&&je.push(Ge(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&je.push(Ge(wn.memberDescriptorName)))}),de.memberInfos&&h1(de.memberInfos,(wn,Ir)=>{No(Ir)||(je.push(Ge(wn.memberDecoratorsName)),wn.memberInitializersName&&je.push(Ge(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&je.push(Ge(wn.memberDescriptorName)))}),X=yn(X,de.staticNonFieldDecorationStatements),X=yn(X,de.nonStaticNonFieldDecorationStatements),X=yn(X,de.staticFieldDecorationStatements),X=yn(X,de.nonStaticFieldDecorationStatements),de.classDescriptorName&&de.classDecoratorsName&&de.classExtraInitializersName&&de.classThis){X??(X=[]);const wn=u.createPropertyAssignment("value",Ru),Ir=u.createObjectLiteralExpression([wn]),as=u.createAssignment(de.classDescriptorName,Ir),wo=u.createPropertyAccessExpression(Ru,"name"),Fn=s().createESDecorateHelper(u.createNull(),as,de.classDecoratorsName,{kind:"class",name:wo,metadata:de.metadataReference},u.createNull(),de.classExtraInitializersName),vc=u.createExpressionStatement(Fn);As(vc,o5(te)),X.push(vc);const Ya=u.createPropertyAccessExpression(de.classDescriptorName,"value"),c0=u.createAssignment(de.classThis,Ya),Ul=u.createAssignment(we,c0);X.push(u.createExpressionStatement(Ul))}if(X.push(on(Ru,de.metadataReference)),de.staticExtraInitializersName){const wn=s().createRunInitializersHelper(Ru,de.staticExtraInitializersName),Ir=u.createExpressionStatement(wn);As(Ir,te.name??o5(te)),X=xi(X,Ir)}if(de.classExtraInitializersName){const wn=s().createRunInitializersHelper(Ru,de.classExtraInitializersName),Ir=u.createExpressionStatement(wn);As(Ir,te.name??o5(te)),it=xi(it,Ir)}X&&it&&!de.hasStaticInitializers&&(yn(X,it),it=void 0);const Xu=X&&u.createClassStaticBlockDeclaration(u.createBlock(X,!0));Xu&&Qt&&_V(Xu,32);const ca=it&&u.createClassStaticBlockDeclaration(u.createBlock(it,!0));if(Xu||Ct||ca){const wn=[],Ir=pr.findIndex(X7);Xu?(yn(wn,pr,0,Ir+1),wn.push(Xu),yn(wn,pr,Ir+1)):yn(wn,pr),Ct&&wn.push(Ct),ca&&wn.push(ca),pr=Pt(u.createNodeArray(wn),pr)}const Ku=f();let ja;if(Li){ja=u.createClassExpression(void 0,void 0,void 0,ct,pr),de.classThis&&(ja=e7e(u,ja,de.classThis));const wn=u.createVariableDeclaration(we,void 0,void 0,ja),Ir=u.createVariableDeclarationList([wn]),as=de.classThis?u.createAssignment(we,de.classThis):we;je.push(u.createVariableStatement(void 0,Ir),u.createReturnStatement(as))}else ja=u.createClassExpression(void 0,te.name,void 0,ct,pr),je.push(u.createReturnStatement(ja));if(Qt){F7(ja,32);for(const wn of ja.members)(ph(wn)||ef(wn))&&Kc(wn)&&F7(wn,32)}return su(ja,te),u.createImmediatelyInvokedArrowFunction(u.mergeLexicalEnvironment(je,Ku))}function Ke(te){return t5(!1,te)||QN(!1,te)}function Je(te){if(Ke(te)){const we=[],de=Wl(te,mr)??te,je=de.name?u.createStringLiteralFromNode(de.name):u.createStringLiteral("default"),X=Yu(te,32),it=Yu(te,2048);if(te.name||(te=hQ(t,te,je)),X&&it){const Ct=De(te);if(te.name){const ct=u.createVariableDeclaration(u.getLocalName(te),void 0,void 0,Ct);su(ct,te);const Qt=u.createVariableDeclarationList([ct],1),Li=u.createVariableStatement(void 0,Qt);we.push(Li);const Ui=u.createExportDefault(u.getDeclarationName(te));su(Ui,te),Bc(Ui,nE(te)),As(Ui,o5(te)),we.push(Ui)}else{const ct=u.createExportDefault(Ct);su(ct,te),Bc(ct,nE(te)),As(ct,o5(te)),we.push(ct)}}else{H.assertIsDefined(te.name,"A class declaration that is not a default export must have a name.");const Ct=De(te),ct=X?Ru=>L7(Ru)?void 0:Ne(Ru):Ne,Qt=kn(te.modifiers,ct,Qo),Li=u.getLocalName(te,!1,!0),Ui=u.createVariableDeclaration(Li,void 0,void 0,Ct);su(Ui,te);const Sn=u.createVariableDeclarationList([Ui],1),du=u.createVariableStatement(Qt,Sn);if(su(du,te),Bc(du,nE(te)),we.push(du),X){const Ru=u.createExternalModuleExport(Li);su(Ru,te),we.push(Ru)}}return F0(we)}else{const we=kn(te.modifiers,Ne,Qo),de=kn(te.heritageClauses,ve,mm);J(void 0);const je=kn(te.members,pe,Zd);return K(),u.updateClassDeclaration(te,we,te.name,void 0,de,je)}}function ft(te){if(Ke(te)){const we=De(te);return su(we,te),we}else{const we=kn(te.modifiers,Ne,Qo),de=kn(te.heritageClauses,ve,mm);J(void 0);const je=kn(te.members,pe,Zd);return K(),u.updateClassExpression(te,we,te.name,void 0,de,je)}}function Ye(te,we){if(we.instanceExtraInitializersName&&!we.hasNonAmbientInstanceFields){const de=[];return de.push(u.createExpressionStatement(s().createRunInitializersHelper(u.createThis(),we.instanceExtraInitializersName))),de}}function Ve(te,we,de,je,X,it){const Ct=je[X],ct=we[Ct];if(yn(te,kn(we,ve,na,de,Ct-de)),Ck(ct)){const Qt=[];Ve(Qt,ct.tryBlock.statements,0,je,X+1,it);const Li=u.createNodeArray(Qt);Pt(Li,ct.tryBlock.statements),te.push(u.updateTryStatement(ct,u.updateBlock(ct.tryBlock,Qt),yt(ct.catchClause,ve,G2),yt(ct.finallyBlock,ve,po)))}else yn(te,kn(we,ve,na,Ct,1)),yn(te,it);yn(te,kn(we,ve,na,Ct+1))}function We(te){Y(te);const we=kn(te.modifiers,Ne,Qo),de=kn(te.parameters,ve,io);let je;if(te.body&&b){const X=Ye(b.class,b);if(X){const it=[],Ct=u.copyPrologue(te.body.statements,it,!1,ve),ct=sQ(te.body.statements,Ct);ct.length>0?Ve(it,te.body.statements,Ct,ct,0,X):(yn(it,X),yn(it,kn(te.body.statements,ve,na))),je=u.createBlock(it,!0),su(je,te.body),Pt(je,te.body)}}return je??(je=yt(te.body,ve,po)),oe(),u.updateConstructorDeclaration(te,we,de,je)}function Gt(te,we){return te!==we&&(Bc(te,we),As(te,o5(we))),te}function Yt(te,we,de){let je,X,it,Ct,ct;if(!we){const Ui=kn(te.modifiers,Ne,Qo);return se(),X=jn(te.name),ge(),{modifiers:Ui,referencedName:je,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}const Qt=et(cQ(te,we.class,!1)),Li=kn(te.modifiers,Ne,Qo);if(Qt){const Ui=Be(te,"decorators"),Sn=u.createArrayLiteralExpression(Qt),du=u.createAssignment(Ui,Sn),Ru={memberDecoratorsName:Ui};we.memberInfos??(we.memberInfos=new Map),we.memberInfos.set(te,Ru),T??(T=[]),T.push(du);const pr=N8(te)||ef(te)?No(te)?we.staticNonFieldDecorationStatements??(we.staticNonFieldDecorationStatements=[]):we.nonStaticNonFieldDecorationStatements??(we.nonStaticNonFieldDecorationStatements=[]):ko(te)&&!ef(te)?No(te)?we.staticFieldDecorationStatements??(we.staticFieldDecorationStatements=[]):we.nonStaticFieldDecorationStatements??(we.nonStaticFieldDecorationStatements=[]):H.fail(),Xu=zm(te)?"getter":jf(te)?"setter":dc(te)?"method":ef(te)?"accessor":ko(te)?"field":H.fail();let ca;if(at(te.name)||ea(te.name))ca={computed:!1,name:te.name};else if(Xg(te.name))ca={computed:!0,name:u.createStringLiteralFromNode(te.name)};else{const wn=te.name.expression;Xg(wn)&&!at(wn)?ca={computed:!0,name:u.createStringLiteralFromNode(wn)}:(se(),{referencedName:je,name:X}=bt(te.name),ca={computed:!0,name:je},ge())}const Ku={kind:Xu,name:ca,static:No(te),private:ea(te.name),access:{get:ko(te)||zm(te)||dc(te),set:ko(te)||jf(te)},metadata:we.metadataReference},ja=No(te)?we.staticExtraInitializersName??(we.staticExtraInitializersName=u.createUniqueName("_staticExtraInitializers",48)):we.instanceExtraInitializersName??(we.instanceExtraInitializersName=u.createUniqueName("_instanceExtraInitializers",48));if(N8(te)){let wn;ph(te)&&de&&(wn=de(te,kn(Li,wo=>ur(wo,VP),Qo)),Ru.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Ir=s().createESDecorateHelper(u.createThis(),wn??u.createNull(),Ui,Ku,u.createNull(),ja),as=u.createExpressionStatement(Ir);As(as,o5(te)),pr.push(as)}else if(ko(te)){it=Ru.memberInitializersName??(Ru.memberInitializersName=Be(te,"initializers")),No(te)&&(Ct=we.classThis);let wn;ph(te)&&eE(te)&&de&&(wn=de(te,void 0),Ru.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Ir=s().createESDecorateHelper(ef(te)?u.createThis():u.createNull(),wn??u.createNull(),Ui,Ku,it,ja),as=u.createExpressionStatement(Ir);As(as,o5(te)),pr.push(as)}}return X===void 0&&(se(),X=jn(te.name),ge()),!Oe(Li)&&(dc(te)||ko(te))&&Zn(X,1024),{modifiers:Li,referencedName:je,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}function Ie(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,me);if(je)return oe(),Gt(Ot(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateMethodDeclaration(te,we,te.asteriskToken,de,void 0,void 0,X,void 0,it),te)}}function st(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,ni);if(je)return oe(),Gt(Ei(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateGetAccessorDeclaration(te,we,de,X,void 0,it),te)}}function St(te){Y(te);const{modifiers:we,name:de,descriptorName:je}=Yt(te,b,vi);if(je)return oe(),Gt($i(we,de,je),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,po);return oe(),Gt(u.updateSetAccessorDeclaration(te,we,de,X,it),te)}}function It(te){Y(te);let we;if(X7(te))we=rn(te,ve,t);else if(EM(te)){const de=B;B=void 0,we=rn(te,ve,t),B=de}else b&&(b.hasStaticInitializers=!0),we=rn(te,ve,t);return oe(),we}function ei(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),Y(te),H.assert(!_0e(te),"Not yet implemented.");const{modifiers:we,name:de,initializersName:je,descriptorName:X,thisArg:it}=Yt(te,b,eE(te)?mt:void 0);d();let Ct=yt(te.initializer,ve,Wt);je&&(Ct=s().createRunInitializersHelper(it??u.createThis(),je,Ct??u.createVoidZero())),!No(te)&&(b!=null&&b.instanceExtraInitializersName)&&!(b!=null&&b.hasInjectedInstanceInitializers)&&(b.hasInjectedInstanceInitializers=!0,Ct??(Ct=u.createVoidZero()),Ct=u.createParenthesizedExpression(u.createComma(s().createRunInitializersHelper(u.createThis(),b.instanceExtraInitializersName),Ct))),No(te)&&b&&Ct&&(b.hasStaticInitializers=!0);const ct=f();if(Oe(ct)&&(Ct=u.createImmediatelyInvokedArrowFunction([...ct,u.createReturnStatement(Ct)])),oe(),eE(te)&&X){const Qt=nE(te),Li=Lv(te),Ui=te.name;let Sn=Ui,du=Ui;if(Ps(Ui)&&!sE(Ui.expression)){const Ku=FY(Ui);if(Ku)Sn=u.updateComputedPropertyName(Ui,yt(Ui.expression,ve,Wt)),du=u.updateComputedPropertyName(Ui,Ku.left);else{const ja=u.createTempVariable(p);As(ja,Ui.expression);const wn=yt(Ui.expression,ve,Wt),Ir=u.createAssignment(ja,wn);As(Ir,Ui.expression),Sn=u.updateComputedPropertyName(Ui,Ir),du=u.updateComputedPropertyName(Ui,ja)}}const Ru=kn(we,Ku=>Ku.kind!==129?Ku:void 0,Qo),pr=Wce(u,te,Ru,Ct);su(pr,te),Zn(pr,3072),As(pr,Li),As(pr.name,te.name);const Xu=Ei(Ru,Sn,X);su(Xu,te),Bc(Xu,Qt),As(Xu,Li);const ca=$i(Ru,du,X);return su(ca,te),Zn(ca,3072),As(ca,Li),[pr,Xu,ca]}return Gt(u.updatePropertyDeclaration(te,we,de,void 0,void 0,Ct),te)}function ht(te){return B??te}function Ut(te){if(nf(te.expression)&&B){const we=yt(te.expression,ve,Wt),de=kn(te.arguments,ve,Wt),je=u.createFunctionCallCall(we,B,de);return su(je,te),Pt(je,te),je}return rn(te,ve,t)}function Ni(te){if(nf(te.tag)&&B){const we=yt(te.tag,ve,Wt),de=u.createFunctionBindCall(we,B,[]);su(de,te),Pt(de,te);const je=yt(te.template,ve,P8);return u.updateTaggedTemplateExpression(te,de,void 0,je)}return rn(te,ve,t)}function ji(te){if(nf(te)&&at(te.name)&&B&&k){const we=u.createStringLiteralFromNode(te.name),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function xn(te){if(nf(te)&&B&&k){const we=yt(te.argumentExpression,ve,Wt),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function Jn(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer)));const we=u.updateParameterDeclaration(te,void 0,te.dotDotDotToken,yt(te.name,ve,qy),void 0,void 0,yt(te.initializer,ve,Wt));return we!==te&&(Bc(we,te),Pt(we,iE(te)),As(we,iE(te)),Zn(we.name,64)),we}function an(te){return Xd(te)&&!te.name&&Ke(te)}function Pi(te){const we=Dc(te);return Xd(we)&&!we.name&&!t5(!1,we)}function Ai(te){return u.updateForStatement(te,yt(te.initializer,fe,a4),yt(te.condition,ve,Wt),yt(te.incrementor,fe,Wt),Ih(te.statement,ve,t))}function Zu(te){return rn(te,fe,t)}function aa(te,we){if(r5(te)){const de=Et(te.left),je=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,je)}if(ld(te)){if(If(te,an))return te=Vf(t,te,Pi(te.right)),rn(te,ve,t);if(nf(te.left)&&B&&k){let de=U0(te.left)?yt(te.left.argumentExpression,ve,Wt):at(te.left.name)?u.createStringLiteralFromNode(te.left.name):void 0;if(de){let je=yt(te.right,ve,Wt);if(mM(te.operatorToken.kind)){let it=de;sE(de)||(it=u.createTempVariable(p),de=u.createAssignment(it,de));const Ct=u.createReflectGetCall(k,it,B);su(Ct,te.left),Pt(Ct,te.left),je=u.createBinaryExpression(Ct,pM(te.operatorToken.kind),je),Pt(je,te)}const X=we?void 0:u.createTempVariable(p);return X&&(je=u.createAssignment(X,je),Pt(X,te)),je=u.createReflectSetCall(k,de,je,B),su(je,te),Pt(je,te),X&&(je=u.createComma(je,X),Pt(je,te)),je}}}if(te.operatorToken.kind===28){const de=yt(te.left,fe,Wt),je=yt(te.right,we?fe:ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,je)}return rn(te,ve,t)}function yr(te,we){if(te.operator===46||te.operator===47){const de=l0(te.operand);if(nf(de)&&B&&k){let je=U0(de)?yt(de.argumentExpression,ve,Wt):at(de.name)?u.createStringLiteralFromNode(de.name):void 0;if(je){let X=je;sE(je)||(X=u.createTempVariable(p),je=u.createAssignment(X,je));let it=u.createReflectGetCall(k,X,B);su(it,te),Pt(it,te);const Ct=we?void 0:u.createTempVariable(p);return it=DY(u,te,it,p,Ct),it=u.createReflectSetCall(k,je,it,B),su(it,te),Pt(it,te),Ct&&(it=u.createComma(it,Ct),Pt(it,te)),it}}}return rn(te,ve,t)}function Ba(te,we){const de=we?hH(te.elements,fe):hH(te.elements,ve,fe);return u.updateCommaListExpression(te,de)}function bt(te){if(Xg(te)||ea(te)){const it=u.createStringLiteralFromNode(te),Ct=yt(te,ve,Sc);return{referencedName:it,name:Ct}}if(Xg(te.expression)&&!at(te.expression)){const it=u.createStringLiteralFromNode(te.expression),Ct=yt(te,ve,Sc);return{referencedName:it,name:Ct}}const we=u.getGeneratedNameForNode(te);p(we);const de=s().createPropKeyHelper(yt(te.expression,ve,Wt)),je=u.createAssignment(we,de),X=u.updateComputedPropertyName(te,Pe(je));return{referencedName:we,name:X}}function jn(te){return Ps(te)?Ln(te):yt(te,ve,Sc)}function Ln(te){let we=yt(te.expression,ve,Wt);return sE(we)||(we=Pe(we)),u.updateComputedPropertyName(te,we)}function Si(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Dn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Cn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function tu(te){if(ys(te)||Dh(te))return Et(te);if(nf(te)&&B&&k){const we=U0(te)?yt(te.argumentExpression,ve,Wt):at(te.name)?u.createStringLiteralFromNode(te.name):void 0;if(we){const de=u.createTempVariable(void 0),je=u.createAssignmentTargetWrapper(de,u.createReflectSetCall(k,we,de,B));return su(je,te),Pt(je,te),je}}return rn(te,ve,t)}function oa(te){if(ld(te,!0)){If(te,an)&&(te=Vf(t,te,Pi(te.right)));const we=tu(te.left),de=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,we,te.operatorToken,de)}else return tu(te)}function Da(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadElement(te,we)}return rn(te,ve,t)}function ra(te){return H.assertNode(te,ZO),uE(te)?Da(te):Fd(te)?rn(te,ve,t):oa(te)}function Ta(te){const we=yt(te.name,ve,Sc);if(ld(te.initializer,!0)){const de=oa(te.initializer);return u.updatePropertyAssignment(te,we,de)}if(Df(te.initializer)){const de=tu(te.initializer);return u.updatePropertyAssignment(te,we,de)}return rn(te,ve,t)}function Yo(te){return If(te,an)&&(te=Vf(t,te,Pi(te.objectAssignmentInitializer))),rn(te,ve,t)}function bo(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadAssignment(te,we)}return rn(te,ve,t)}function Qe(te){return H.assertNode(te,qO),d5(te)?bo(te):pm(te)?Yo(te):Jc(te)?Ta(te):rn(te,ve,t)}function Et(te){if(Dh(te)){const we=kn(te.elements,ra,Wt);return u.updateArrayLiteralExpression(te,we)}else{const we=kn(te.properties,Qe,Z3);return u.updateObjectLiteralExpression(te,we)}}function Mt(te){return If(te,an)&&(te=Vf(t,te,Pi(te.expression))),rn(te,ve,t)}function qt(te,we){const de=we?fe:ve,je=yt(te.expression,de,Wt);return u.updateParenthesizedExpression(te,je)}function Xt(te,we){const de=we?fe:ve,je=yt(te.expression,de,Wt);return u.updatePartiallyEmittedExpression(te,je)}function Pe(te){return Oe(T)&&(Cf(te)?(T.push(te.expression),te=u.updateParenthesizedExpression(te,u.inlineExpressions(T))):(T.push(te),te=u.inlineExpressions(T)),T=void 0),te}function et(te){if(!te)return;const we=[];return yn(we,Vt(te.decorators,gt)),we}function gt(te){const we=yt(te.expression,ve,Wt);Zn(we,3072);const de=Dc(we);if(I0(de)){const{target:je,thisArg:X}=u.createCallBinding(we,p,E,!0);return u.restoreOuterExpressions(we,u.createFunctionBindCall(je,X,[]))}return we}function ii(te,we,de,je,X,it,Ct){const ct=u.createFunctionExpression(de,je,void 0,void 0,it,void 0,Ct??u.createBlock([]));su(ct,te),As(ct,o5(te)),Zn(ct,3072);const Qt=X==="get"||X==="set"?X:void 0,Li=u.createStringLiteralFromNode(we,void 0),Ui=s().createSetFunctionNameHelper(ct,Li,Qt),Sn=u.createPropertyAssignment(u.createIdentifier(X),Ui);return su(Sn,te),As(Sn,o5(te)),Zn(Sn,3072),Sn}function me(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,te.asteriskToken,"value",kn(te.parameters,ve,io),yt(te.body,ve,po))])}function ni(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],yt(te.body,ve,po))])}function vi(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"set",kn(te.parameters,ve,io),yt(te.body,ve,po))])}function mt(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)))])),ii(te,te.name,we,void 0,"set",[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)),u.createIdentifier("value")))]))])}function Ot(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(de,u.createIdentifier("value")))]))}function Ei(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("get")),u.createThis(),[]))]))}function $i(te,we,de){return te=kn(te,je=>N7(je)?je:void 0,Qo),u.createSetAccessorDeclaration(te,we,[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("set")),u.createThis(),[u.createIdentifier("value")]))]))}function Qi(te,we){const de=u.createVariableDeclaration(te,void 0,void 0,u.createConditionalExpression(u.createLogicalAnd(u.createTypeCheck(u.createIdentifier("Symbol"),"function"),u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),u.createToken(58),u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"create"),void 0,[we?le(we):u.createNull()]),u.createToken(59),u.createVoidZero()));return u.createVariableStatement(void 0,u.createVariableDeclarationList([de],2))}function on(te,we){const de=u.createObjectDefinePropertyCall(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata"),u.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:we},!0));return Zn(u.createIfStatement(we,u.createExpressionStatement(de)),1)}function le(te){return u.createBinaryExpression(u.createElementAccessExpression(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),61,u.createNull())}}var BMt=o({"src/compiler/transformers/esDecorators.ts"(){Bo()}});function l7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Os(v);let B,k=0,T,M,z;const j=[];let J=0;const K=t.onEmitNode,Y=t.onSubstituteNode;return t.onEmitNode=Jn,t.onSubstituteNode=an,Kp(t,oe);function oe(bt){if(bt.isDeclarationFile)return bt;se(1,!1),se(2,!E0e(bt,v));const jn=rn(bt,Se,t);return iD(jn,t.readEmitHelpers()),jn}function se(bt,jn){J=jn?J|bt:J&~bt}function ge(bt){return(J&bt)!==0}function ae(){return!ge(1)}function Ce(){return ge(2)}function ne(bt,jn,Ln){const Si=bt&~J;if(Si){se(Si,!0);const Dn=jn(Ln);return se(Si,!1),Dn}return jn(Ln)}function ve(bt){return rn(bt,Se,t)}function Se(bt){if(!(bt.transformFlags&256))return bt;switch(bt.kind){case 134:return;case 223:return Ae(bt);case 174:return ne(3,Ke,bt);case 262:return ne(3,Ye,bt);case 218:return ne(3,Ve,bt);case 219:return ne(1,We,bt);case 211:return M&&Iu(bt)&&bt.expression.kind===108&&M.add(bt.name.escapedText),rn(bt,Se,t);case 212:return M&&bt.expression.kind===108&&(z=!0),rn(bt,Se,t);case 177:return ne(3,Je,bt);case 178:return ne(3,ft,bt);case 176:return ne(3,De,bt);case 263:case 231:return ne(3,ve,bt);default:return rn(bt,Se,t)}}function Ne(bt){if(lye(bt))switch(bt.kind){case 243:return fe(bt);case 248:return Ge(bt);case 249:return xe(bt);case 250:return Be(bt);case 299:return pe(bt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return rn(bt,Ne,t);default:return H.assertNever(bt,"Unhandled node.")}return Se(bt)}function pe(bt){const jn=new Set;Gt(bt.variableDeclaration,jn);let Ln;if(jn.forEach((Si,Dn)=>{T.has(Dn)&&(Ln||(Ln=new Set(T)),Ln.delete(Dn))}),Ln){const Si=T;T=Ln;const Dn=rn(bt,Ne,t);return T=Si,Dn}else return rn(bt,Ne,t)}function fe(bt){if(Yt(bt.declarationList)){const jn=Ie(bt.declarationList,!1);return jn?u.createExpressionStatement(jn):void 0}return rn(bt,Se,t)}function xe(bt){return u.updateForInStatement(bt,Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,a4)),H.checkDefined(yt(bt.expression,Se,Wt)),Ih(bt.statement,Ne,t))}function Be(bt){return u.updateForOfStatement(bt,yt(bt.awaitModifier,Se,_ce),Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,a4)),H.checkDefined(yt(bt.expression,Se,Wt)),Ih(bt.statement,Ne,t))}function Ge(bt){const jn=bt.initializer;return u.updateForStatement(bt,Yt(jn)?Ie(jn,!1):yt(bt.initializer,Se,a4),yt(bt.condition,Se,Wt),yt(bt.incrementor,Se,Wt),Ih(bt.statement,Ne,t))}function Ae(bt){return ae()?rn(bt,Se,t):su(Pt(u.createYieldExpression(void 0,yt(bt.expression,Se,Wt)),bt),bt)}function De(bt){return u.updateConstructorDeclaration(bt,kn(bt.modifiers,Se,Qo),xc(bt.parameters,Se,t),ht(bt))}function Ke(bt){return u.updateMethodDeclaration(bt,kn(bt.modifiers,Se,ol),bt.asteriskToken,bt.name,void 0,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):ht(bt))}function Je(bt){return u.updateGetAccessorDeclaration(bt,kn(bt.modifiers,Se,ol),bt.name,xc(bt.parameters,Se,t),void 0,ht(bt))}function ft(bt){return u.updateSetAccessorDeclaration(bt,kn(bt.modifiers,Se,ol),bt.name,xc(bt.parameters,Se,t),ht(bt))}function Ye(bt){return u.updateFunctionDeclaration(bt,kn(bt.modifiers,Se,ol),bt.asteriskToken,bt.name,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function Ve(bt){return u.updateFunctionExpression(bt,kn(bt.modifiers,Se,Qo),bt.asteriskToken,bt.name,void 0,xc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function We(bt){return u.updateArrowFunction(bt,kn(bt.modifiers,Se,Qo),void 0,xc(bt.parameters,Se,t),void 0,bt.equalsGreaterThanToken,kd(bt)&2?Ut(bt):Om(bt.body,Se,t))}function Gt({name:bt},jn){if(at(bt))jn.add(bt.escapedText);else for(const Ln of bt.elements)Fd(Ln)||Gt(Ln,jn)}function Yt(bt){return!!bt&&Ad(bt)&&!(bt.flags&7)&&bt.declarations.some(ei)}function Ie(bt,jn){st(bt);const Ln=DP(bt);return Ln.length===0?jn?yt(u.converters.convertToAssignmentElementTarget(bt.declarations[0].name),Se,Wt):void 0:u.inlineExpressions(Vt(Ln,It))}function st(bt){L(bt.declarations,St)}function St({name:bt}){if(at(bt))p(bt);else for(const jn of bt.elements)Fd(jn)||St(jn)}function It(bt){const jn=As(u.createAssignment(u.converters.convertToAssignmentElementTarget(bt.name),bt.initializer),bt);return H.checkDefined(yt(jn,Se,Wt))}function ei({name:bt}){if(at(bt))return T.has(bt.escapedText);for(const jn of bt.elements)if(!Fd(jn)&&ei(jn))return!0;return!1}function ht(bt){H.assertIsDefined(bt.body);const jn=M,Ln=z;M=new Set,z=!1;let Si=Om(bt.body,Se,t);const Dn=Wl(bt,$0);if(b>=2&&E.getNodeCheckFlags(bt)&384&&(kd(Dn)&3)!==3){if(xn(),M.size){const tu=fQ(u,E,bt,M);j[$s(tu)]=!0;const oa=Si.statements.slice();ZE(oa,[tu]),Si=u.updateBlock(Si,oa)}z&&(E.getNodeCheckFlags(bt)&256?S7(Si,bV):E.getNodeCheckFlags(bt)&128&&S7(Si,CV))}return M=jn,z=Ln,Si}function Ut(bt){d();const Ln=Wl(bt,Co).type,Si=b<2?ji(Ln):void 0,Dn=bt.kind===219,Cn=(E.getNodeCheckFlags(bt)&512)!==0,tu=T;T=new Set;for(const Ta of bt.parameters)Gt(Ta,T);const oa=M,Da=z;Dn||(M=new Set,z=!1);let ra;if(Dn){const Ta=s().createAwaiterHelper(Ce(),Cn,Si,Ni(bt.body)),Yo=f();if(Oe(Yo)){const bo=u.converters.convertToFunctionBlock(Ta);ra=u.updateBlock(bo,Pt(u.createNodeArray(Hi(Yo,bo.statements)),bo.statements))}else ra=Ta}else{const Ta=[],Yo=u.copyPrologue(bt.body.statements,Ta,!1,Se);Ta.push(u.createReturnStatement(s().createAwaiterHelper(Ce(),Cn,Si,Ni(bt.body,Yo)))),ZE(Ta,f());const bo=b>=2&&E.getNodeCheckFlags(bt)&384;if(bo&&(xn(),M.size)){const Et=fQ(u,E,bt,M);j[$s(Et)]=!0,ZE(Ta,[Et])}const Qe=u.createBlock(Ta,!0);Pt(Qe,bt.body),bo&&z&&(E.getNodeCheckFlags(bt)&256?S7(Qe,bV):E.getNodeCheckFlags(bt)&128&&S7(Qe,CV)),ra=Qe}return T=tu,Dn||(M=oa,z=Da),ra}function Ni(bt,jn){return po(bt)?u.updateBlock(bt,kn(bt.statements,Ne,na,jn)):u.converters.convertToFunctionBlock(H.checkDefined(yt(bt,Ne,HU)))}function ji(bt){const jn=bt&&pj(bt);if(jn&&sm(jn)){const Ln=E.getTypeReferenceSerializationKind(jn);if(Ln===1||Ln===0)return jn}}function xn(){B&1||(B|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Jn(bt,jn,Ln){if(B&1&&yr(jn)){const Si=E.getNodeCheckFlags(jn)&384;if(Si!==k){const Dn=k;k=Si,K(bt,jn,Ln),k=Dn;return}}else if(B&&j[$s(jn)]){const Si=k;k=0,K(bt,jn,Ln),k=Si;return}K(bt,jn,Ln)}function an(bt,jn){return jn=Y(bt,jn),bt===1&&k?Pi(jn):jn}function Pi(bt){switch(bt.kind){case 211:return Ai(bt);case 212:return Zu(bt);case 213:return aa(bt)}return bt}function Ai(bt){return bt.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),bt.name),bt):bt}function Zu(bt){return bt.expression.kind===108?Ba(bt.argumentExpression,bt):bt}function aa(bt){const jn=bt.expression;if(nf(jn)){const Ln=Iu(jn)?Ai(jn):Zu(jn);return u.createCallExpression(u.createPropertyAccessExpression(Ln,"call"),void 0,[u.createThis(),...bt.arguments])}return bt}function yr(bt){const jn=bt.kind;return jn===263||jn===176||jn===174||jn===177||jn===178}function Ba(bt,jn){return k&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),"value"),jn):Pt(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),jn)}}function fQ(t,u,s,d){const f=(u.getNodeCheckFlags(s)&256)!==0,p=[];return d.forEach((E,v)=>{const b=Qr(v),B=[];B.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Zn(t.createPropertyAccessExpression(Zn(t.createSuper(),8),b),8)))),f&&B.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Zn(t.createPropertyAccessExpression(Zn(t.createSuper(),8),b),8),t.createIdentifier("v"))))),p.push(t.createPropertyAssignment(b,t.createObjectLiteralExpression(B)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(p,!0)]))],2))}var wMt=o({"src/compiler/transformers/es2017.ts"(){Bo()}});function c7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=Os(v),B=t.onEmitNode;t.onEmitNode=Ta;const k=t.onSubstituteNode;t.onSubstituteNode=Yo;let T=!1,M,z,j,J=0,K=0,Y,oe,se,ge;const ae=[];return Kp(t,Ne);function Ce(Pe,et){return K!==(K&~Pe|et)}function ne(Pe,et){const gt=K;return K=(K&~Pe|et)&3,gt}function ve(Pe){K=Pe}function Se(Pe){oe=xi(oe,u.createVariableDeclaration(Pe))}function Ne(Pe){if(Pe.isDeclarationFile)return Pe;Y=Pe;const et=Yt(Pe);return iD(et,t.readEmitHelpers()),Y=void 0,oe=void 0,et}function pe(Pe){return Ae(Pe,!1)}function fe(Pe){return Ae(Pe,!0)}function xe(Pe){if(Pe.kind!==134)return Pe}function Be(Pe,et,gt,ii){if(Ce(gt,ii)){const me=ne(gt,ii),ni=Pe(et);return ve(me),ni}return Pe(et)}function Ge(Pe){return rn(Pe,pe,t)}function Ae(Pe,et){if(!(Pe.transformFlags&128))return Pe;switch(Pe.kind){case 223:return De(Pe);case 229:return Ke(Pe);case 253:return Je(Pe);case 256:return ft(Pe);case 210:return Ve(Pe);case 226:return st(Pe,et);case 361:return St(Pe,et);case 299:return It(Pe);case 243:return ei(Pe);case 260:return ht(Pe);case 246:case 247:case 249:return Be(Ge,Pe,0,2);case 250:return xn(Pe,void 0);case 248:return Be(Ni,Pe,0,2);case 222:return ji(Pe);case 176:return Be(Ba,Pe,2,1);case 174:return Be(Ln,Pe,2,1);case 177:return Be(bt,Pe,2,1);case 178:return Be(jn,Pe,2,1);case 262:return Be(Si,Pe,2,1);case 218:return Be(Cn,Pe,2,1);case 219:return Be(Dn,Pe,2,0);case 169:return aa(Pe);case 244:return We(Pe);case 217:return Gt(Pe,et);case 215:return Ie(Pe);case 211:return se&&Iu(Pe)&&Pe.expression.kind===108&&se.add(Pe.name.escapedText),rn(Pe,pe,t);case 212:return se&&Pe.expression.kind===108&&(ge=!0),rn(Pe,pe,t);case 263:case 231:return Be(Ge,Pe,2,1);default:return rn(Pe,pe,t)}}function De(Pe){return z&2&&z&1?su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(yt(Pe.expression,pe,Wt))),Pe),Pe):rn(Pe,pe,t)}function Ke(Pe){if(z&2&&z&1){if(Pe.asteriskToken){const et=yt(H.checkDefined(Pe.expression),pe,Wt);return su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(u.updateYieldExpression(Pe,Pe.asteriskToken,Pt(s().createAsyncDelegatorHelper(Pt(s().createAsyncValuesHelper(et),et)),et)))),Pe),Pe)}return su(Pt(u.createYieldExpression(void 0,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())),Pe),Pe)}return rn(Pe,pe,t)}function Je(Pe){return z&2&&z&1?u.updateReturnStatement(Pe,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())):rn(Pe,pe,t)}function ft(Pe){if(z&2){const et=A0e(Pe);return et.kind===250&&et.awaitModifier?xn(et,Pe):u.restoreEnclosingLabel(yt(et,pe,na,u.liftToBlock),Pe)}return rn(Pe,pe,t)}function Ye(Pe){let et;const gt=[];for(const ii of Pe)if(ii.kind===305){et&&(gt.push(u.createObjectLiteralExpression(et)),et=void 0);const me=ii.expression;gt.push(yt(me,pe,Wt))}else et=xi(et,ii.kind===303?u.createPropertyAssignment(ii.name,yt(ii.initializer,pe,Wt)):yt(ii,pe,Z3));return et&>.push(u.createObjectLiteralExpression(et)),gt}function Ve(Pe){if(Pe.transformFlags&65536){const et=Ye(Pe.properties);et.length&&et[0].kind!==210&&et.unshift(u.createObjectLiteralExpression());let gt=et[0];if(et.length>1){for(let ii=1;ii=2&&E.getNodeCheckFlags(Pe)&384;if(vi){ra();const Ot=fQ(u,E,Pe,se);ae[$s(Ot)]=!0,ZE(et,[Ot])}et.push(ni),ZE(et,f());const mt=u.updateBlock(Pe.body,et);return vi&&ge&&(E.getNodeCheckFlags(Pe)&256?S7(mt,bV):E.getNodeCheckFlags(Pe)&128&&S7(mt,CV)),se=ii,ge=me,mt}function oa(Pe){d();let et=0;const gt=[],ii=yt(Pe.body,pe,HU)??u.createBlock([]);po(ii)&&(et=u.copyPrologue(ii.statements,gt,!1,pe)),yn(gt,Da(void 0,Pe));const me=f();if(et>0||Oe(gt)||Oe(me)){const ni=u.converters.convertToFunctionBlock(ii,!0);return ZE(gt,me),yn(gt,ni.statements.slice(et)),u.updateBlock(ni,Pt(u.createNodeArray(gt),ni.statements))}return ii}function Da(Pe,et){let gt=!1;for(const ii of et.parameters)if(gt){if(So(ii.name)){if(ii.name.elements.length>0){const me=Q2(ii,pe,t,0,u.getGeneratedNameForNode(ii));if(Oe(me)){const ni=u.createVariableDeclarationList(me),vi=u.createVariableStatement(void 0,ni);Zn(vi,2097152),Pe=xi(Pe,vi)}}else if(ii.initializer){const me=u.getGeneratedNameForNode(ii),ni=yt(ii.initializer,pe,Wt),vi=u.createAssignment(me,ni),mt=u.createExpressionStatement(vi);Zn(mt,2097152),Pe=xi(Pe,mt)}}else if(ii.initializer){const me=u.cloneNode(ii.name);Pt(me,ii.name),Zn(me,96);const ni=yt(ii.initializer,pe,Wt);i_(ni,3168);const vi=u.createAssignment(me,ni);Pt(vi,ii),Zn(vi,3072);const mt=u.createBlock([u.createExpressionStatement(vi)]);Pt(mt,ii),Zn(mt,3905);const Ot=u.createTypeCheck(u.cloneNode(ii.name),"undefined"),Ei=u.createIfStatement(Ot,mt);vh(Ei),Pt(Ei,ii),Zn(Ei,2101056),Pe=xi(Pe,Ei)}}else if(ii.transformFlags&65536){gt=!0;const me=Q2(ii,pe,t,1,u.getGeneratedNameForNode(ii),!1,!0);if(Oe(me)){const ni=u.createVariableDeclarationList(me),vi=u.createVariableStatement(void 0,ni);Zn(vi,2097152),Pe=xi(Pe,vi)}}return Pe}function ra(){M&1||(M|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Ta(Pe,et,gt){if(M&1&&qt(et)){const ii=E.getNodeCheckFlags(et)&384;if(ii!==J){const me=J;J=ii,B(Pe,et,gt),J=me;return}}else if(M&&ae[$s(et)]){const ii=J;J=0,B(Pe,et,gt),J=ii;return}B(Pe,et,gt)}function Yo(Pe,et){return et=k(Pe,et),Pe===1&&J?bo(et):et}function bo(Pe){switch(Pe.kind){case 211:return Qe(Pe);case 212:return Et(Pe);case 213:return Mt(Pe)}return Pe}function Qe(Pe){return Pe.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),Pe.name),Pe):Pe}function Et(Pe){return Pe.expression.kind===108?Xt(Pe.argumentExpression,Pe):Pe}function Mt(Pe){const et=Pe.expression;if(nf(et)){const gt=Iu(et)?Qe(et):Et(et);return u.createCallExpression(u.createPropertyAccessExpression(gt,"call"),void 0,[u.createThis(),...Pe.arguments])}return Pe}function qt(Pe){const et=Pe.kind;return et===263||et===176||et===174||et===177||et===178}function Xt(Pe,et){return J&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),"value"),et):Pt(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),et)}}var TMt=o({"src/compiler/transformers/es2018.ts"(){Bo()}});function d7e(t){const u=t.factory;return Kp(t,s);function s(p){return p.isDeclarationFile?p:rn(p,d,t)}function d(p){if(!(p.transformFlags&64))return p;switch(p.kind){case 299:return f(p);default:return rn(p,d,t)}}function f(p){return p.variableDeclaration?rn(p,d,t):u.updateCatchClause(p,u.createVariableDeclaration(u.createTempVariable(void 0)),yt(p.block,d,po))}}var LMt=o({"src/compiler/transformers/es2019.ts"(){Bo()}});function h7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Kp(t,d);function d(j){return j.isDeclarationFile?j:rn(j,f,t)}function f(j){if(!(j.transformFlags&32))return j;switch(j.kind){case 213:{const J=b(j,!1);return H.assertNotNode(J,j7),J}case 211:case 212:if(Y1(j)){const J=k(j,!1,!1);return H.assertNotNode(J,j7),J}return rn(j,f,t);case 226:return j.operatorToken.kind===61?M(j):rn(j,f,t);case 220:return z(j);default:return rn(j,f,t)}}function p(j){H.assertNotNode(j,zU);const J=[j];for(;!j.questionDotToken&&!Dk(j);)j=Po(Np(j.expression),Y1),H.assertNotNode(j,zU),J.unshift(j);return{expression:j.expression,chain:J}}function E(j,J,K){const Y=B(j.expression,J,K);return j7(Y)?u.createSyntheticReferenceExpression(u.updateParenthesizedExpression(j,Y.expression),Y.thisArg):u.updateParenthesizedExpression(j,Y)}function v(j,J,K){if(Y1(j))return k(j,J,K);let Y=yt(j.expression,f,Wt);H.assertNotNode(Y,j7);let oe;return J&&(Y2(Y)?oe=Y:(oe=u.createTempVariable(s),Y=u.createAssignment(oe,Y))),Y=j.kind===211?u.updatePropertyAccessExpression(j,Y,yt(j.name,f,at)):u.updateElementAccessExpression(j,Y,yt(j.argumentExpression,f,Wt)),oe?u.createSyntheticReferenceExpression(Y,oe):Y}function b(j,J){if(Y1(j))return k(j,J,!1);if(Cf(j.expression)&&Y1(l0(j.expression))){const K=E(j.expression,!0,!1),Y=kn(j.arguments,f,Wt);return j7(K)?Pt(u.createFunctionCallCall(K.expression,K.thisArg,Y),j):u.updateCallExpression(j,K,void 0,Y)}return rn(j,f,t)}function B(j,J,K){switch(j.kind){case 217:return E(j,J,K);case 211:case 212:return v(j,J,K);case 213:return b(j,J);default:return yt(j,f,Wt)}}function k(j,J,K){const{expression:Y,chain:oe}=p(j),se=B(Np(Y),$y(oe[0]),!1);let ge=j7(se)?se.thisArg:void 0,ae=j7(se)?se.expression:se,Ce=u.restoreOuterExpressions(Y,ae,8);Y2(ae)||(ae=u.createTempVariable(s),Ce=u.createAssignment(ae,Ce));let ne=ae,ve;for(let Ne=0;NeAe&&yn(De,kn(Be.statements,T,na,Ae,Ke-Ae));break}Ke++}H.assert(KeK(De,Ae))))],Ae,Ge===2)}return rn(Be,T,t)}function oe(Be,Ge,Ae,De,Ke){const Je=[];for(let Ve=Ge;Veu&&(u=d)}return u}function zMt(t){let u=0;for(const s of t){const d=u1e(s.statements);if(d===2)return 2;d>u&&(u=d)}return u}var IMt=o({"src/compiler/transformers/esnext.ts"(){Bo()}});function _7e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getCompilerOptions();let f,p;return Kp(t,T);function E(){if(p.filenameDeclaration)return p.filenameDeclaration.name;const Ie=u.createVariableDeclaration(u.createUniqueName("_jsxFileName",48),void 0,void 0,u.createStringLiteral(f.fileName));return p.filenameDeclaration=Ie,p.filenameDeclaration.name}function v(Ie){return d.jsx===5?"jsxDEV":Ie?"jsxs":"jsx"}function b(Ie){const st=v(Ie);return k(st)}function B(){return k("Fragment")}function k(Ie){var st,St;const It=Ie==="createElement"?p.importSpecifier:uZ(p.importSpecifier,d),ei=(St=(st=p.utilizedImplicitRuntimeImports)==null?void 0:st.get(It))==null?void 0:St.get(Ie);if(ei)return ei.name;p.utilizedImplicitRuntimeImports||(p.utilizedImplicitRuntimeImports=new Map);let ht=p.utilizedImplicitRuntimeImports.get(It);ht||(ht=new Map,p.utilizedImplicitRuntimeImports.set(It,ht));const Ut=u.createUniqueName(`_${Ie}`,112),Ni=u.createImportSpecifier(!1,u.createIdentifier(Ie),Ut);return Gke(Ut,Ni),ht.set(Ie,Ni),Ut}function T(Ie){if(Ie.isDeclarationFile)return Ie;f=Ie,p={},p.importSpecifier=nZ(d,Ie);let st=rn(Ie,M,t);iD(st,t.readEmitHelpers());let St=st.statements;if(p.filenameDeclaration&&(St=Xy(St.slice(),u.createVariableStatement(void 0,u.createVariableDeclarationList([p.filenameDeclaration],2)))),p.utilizedImplicitRuntimeImports){for(const[It,ei]of ga(p.utilizedImplicitRuntimeImports.entries()))if(wc(Ie)){const ht=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports(ga(ei.values()))),u.createStringLiteral(It),void 0);Vx(ht,!1),St=Xy(St.slice(),ht)}else if(cm(Ie)){const ht=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createObjectBindingPattern(ga(ei.values(),Ut=>u.createBindingElement(void 0,Ut.propertyName,Ut.name))),void 0,void 0,u.createCallExpression(u.createIdentifier("require"),void 0,[u.createStringLiteral(It)]))],2));Vx(ht,!1),St=Xy(St.slice(),ht)}}return St!==st.statements&&(st=u.updateSourceFile(st,St)),p=void 0,st}function M(Ie){return Ie.transformFlags&2?z(Ie):Ie}function z(Ie){switch(Ie.kind){case 284:return oe(Ie,!1);case 285:return se(Ie,!1);case 288:return ge(Ie,!1);case 294:return Yt(Ie);default:return rn(Ie,M,t)}}function j(Ie){switch(Ie.kind){case 12:return Ke(Ie);case 294:return Yt(Ie);case 284:return oe(Ie,!0);case 285:return se(Ie,!0);case 288:return ge(Ie,!0);default:return H.failBadSyntaxKind(Ie)}}function J(Ie){return Ie.properties.some(st=>Jc(st)&&(at(st.name)&&fu(st.name)==="__proto__"||us(st.name)&&st.name.text==="__proto__"))}function K(Ie){let st=!1;for(const St of Ie.attributes.properties)if(H7(St)&&(!ys(St.expression)||St.expression.properties.some(d5)))st=!0;else if(st&&oE(St)&&at(St.name)&&St.name.escapedText==="key")return!0;return!1}function Y(Ie){return p.importSpecifier===void 0||K(Ie)}function oe(Ie,st){return(Y(Ie.openingElement)?Se:ne)(Ie.openingElement,Ie.children,st,Ie)}function se(Ie,st){return(Y(Ie)?Se:ne)(Ie,void 0,st,Ie)}function ge(Ie,st){return(p.importSpecifier===void 0?pe:Ne)(Ie.openingFragment,Ie.children,st,Ie)}function ae(Ie){const st=Ce(Ie);return st&&u.createObjectLiteralExpression([st])}function Ce(Ie){const st=uB(Ie);if(S(st)===1&&!st[0].dotDotDotToken){const It=j(st[0]);return It&&u.createPropertyAssignment("children",It)}const St=qi(Ie,j);return S(St)?u.createPropertyAssignment("children",u.createArrayLiteralExpression(St)):void 0}function ne(Ie,st,St,It){const ei=We(Ie),ht=st&&st.length?Ce(st):void 0,Ut=Le(Ie.attributes.properties,xn=>!!xn.name&&at(xn.name)&&xn.name.escapedText==="key"),Ni=Ut?ti(Ie.attributes.properties,xn=>xn!==Ut):Ie.attributes.properties,ji=S(Ni)?xe(Ni,ht):u.createObjectLiteralExpression(ht?[ht]:_t);return ve(ei,ji,Ut,st||_t,St,It)}function ve(Ie,st,St,It,ei,ht){var Ut;const Ni=uB(It),ji=S(Ni)>1||!!((Ut=Ni[0])!=null&&Ut.dotDotDotToken),xn=[Ie,st];if(St&&xn.push(De(St.initializer)),d.jsx===5){const an=Wl(f);if(an&&la(an)){St===void 0&&xn.push(u.createVoidZero()),xn.push(ji?u.createTrue():u.createFalse());const Pi=s0(an,ht.pos);xn.push(u.createObjectLiteralExpression([u.createPropertyAssignment("fileName",E()),u.createPropertyAssignment("lineNumber",u.createNumericLiteral(Pi.line+1)),u.createPropertyAssignment("columnNumber",u.createNumericLiteral(Pi.character+1))])),xn.push(u.createThis())}}const Jn=Pt(u.createCallExpression(b(ji),void 0,xn),ht);return ei&&vh(Jn),Jn}function Se(Ie,st,St,It){const ei=We(Ie),ht=Ie.attributes.properties,Ut=S(ht)?xe(ht):u.createNull(),Ni=p.importSpecifier===void 0?Pce(u,t.getEmitResolver().getJsxFactoryEntity(f),d.reactNamespace,Ie):k("createElement"),ji=yFe(u,Ni,ei,Ut,qi(st,j),It);return St&&vh(ji),ji}function Ne(Ie,st,St,It){let ei;if(st&&st.length){const ht=ae(st);ht&&(ei=ht)}return ve(B(),ei||u.createObjectLiteralExpression([]),void 0,st,St,It)}function pe(Ie,st,St,It){const ei=kFe(u,t.getEmitResolver().getJsxFactoryEntity(f),t.getEmitResolver().getJsxFragmentFactoryEntity(f),d.reactNamespace,qi(st,j),Ie,It);return St&&vh(ei),ei}function fe(Ie){return ys(Ie.expression)&&!J(Ie.expression)?Lu(Ie.expression.properties,st=>H.checkDefined(yt(st,M,Z3))):u.createSpreadAssignment(H.checkDefined(yt(Ie.expression,M,Wt)))}function xe(Ie,st){const St=Os(d);return St&&St>=5?u.createObjectLiteralExpression(Be(Ie,st)):Ge(Ie,st)}function Be(Ie,st){const St=Va(Hl(Ie,H7,(It,ei)=>Va(Vt(It,ht=>ei?fe(ht):Ae(ht)))));return st&&St.push(st),St}function Ge(Ie,st){const St=[];let It=[];for(const ht of Ie){if(H7(ht)){if(ys(ht.expression)&&!J(ht.expression)){for(const Ut of ht.expression.properties){if(d5(Ut)){ei(),St.push(H.checkDefined(yt(Ut.expression,M,Wt)));continue}It.push(H.checkDefined(yt(Ut,M)))}continue}ei(),St.push(H.checkDefined(yt(ht.expression,M,Wt)));continue}It.push(Ae(ht))}return st&&It.push(st),ei(),St.length&&!ys(St[0])&&St.unshift(u.createObjectLiteralExpression()),Aa(St)||s().createAssignHelper(St);function ei(){It.length&&(St.push(u.createObjectLiteralExpression(It)),It=[])}}function Ae(Ie){const st=Gt(Ie),St=De(Ie.initializer);return u.createPropertyAssignment(st,St)}function De(Ie){if(Ie===void 0)return u.createTrue();if(Ie.kind===11){const st=Ie.singleQuote!==void 0?Ie.singleQuote:!Cq(Ie,f),St=u.createStringLiteral(Ve(Ie.text)||Ie.text,st);return Pt(St,Ie)}return Ie.kind===294?Ie.expression===void 0?u.createTrue():H.checkDefined(yt(Ie.expression,M,Wt)):r3(Ie)?oe(Ie,!1):bk(Ie)?se(Ie,!1):K2(Ie)?ge(Ie,!1):H.failBadSyntaxKind(Ie)}function Ke(Ie){const st=Je(Ie.text);return st===void 0?void 0:u.createStringLiteral(st)}function Je(Ie){let st,St=0,It=-1;for(let ei=0;ei{if(ht)return F8(parseInt(ht,10));if(Ut)return F8(parseInt(Ut,16));{const ji=Wet.get(Ni);return ji?F8(ji):st}})}function Ve(Ie){const st=Ye(Ie);return st===Ie?void 0:st}function We(Ie){if(Ie.kind===284)return We(Ie.openingElement);{const st=Ie.tagName;return at(st)&&aB(st.escapedText)?u.createStringLiteral(fu(st)):gg(st)?u.createStringLiteral(fu(st.namespace)+":"+fu(st.name)):PV(u,st)}}function Gt(Ie){const st=Ie.name;if(at(st)){const St=fu(st);return/^[A-Za-z_]\w*$/.test(St)?st:u.createStringLiteral(St)}return u.createStringLiteral(fu(st.namespace)+":"+fu(st.name))}function Yt(Ie){const st=yt(Ie.expression,M,Wt);return Ie.dotDotDotToken?u.createSpreadElement(st):st}}var Wet,RMt=o({"src/compiler/transformers/jsx.ts"(){Bo(),Wet=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 D7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Kp(t,d);function d(b){return b.isDeclarationFile?b:rn(b,f,t)}function f(b){if(!(b.transformFlags&512))return b;switch(b.kind){case 226:return p(b);default:return rn(b,f,t)}}function p(b){switch(b.operatorToken.kind){case 68:return E(b);case 43:return v(b);default:return rn(b,f,t)}}function E(b){let B,k;const T=yt(b.left,f,Wt),M=yt(b.right,f,Wt);if(U0(T)){const z=u.createTempVariable(s),j=u.createTempVariable(s);B=Pt(u.createElementAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),Pt(u.createAssignment(j,T.argumentExpression),T.argumentExpression)),T),k=Pt(u.createElementAccessExpression(z,j),T)}else if(Iu(T)){const z=u.createTempVariable(s);B=Pt(u.createPropertyAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),T.name),T),k=Pt(u.createPropertyAccessExpression(z,T.name),T)}else B=T,k=T;return Pt(u.createAssignment(B,Pt(u.createGlobalMethodCall("Math","pow",[k,M]),b)),b)}function v(b){const B=yt(b.left,f,Wt),k=yt(b.right,f,Wt);return Pt(u.createGlobalMethodCall("Math","pow",[B,k]),b)}}var OMt=o({"src/compiler/transformers/es2016.ts"(){Bo()}});function Get(t,u){return{kind:t,expression:u}}function x7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=t.getEmitResolver(),B=t.onSubstituteNode,k=t.onEmitNode;t.onEmitNode=ip,t.onSubstituteNode=f4;let T,M,z,j;function J(Ee){j=xi(j,u.createVariableDeclaration(Ee))}let K,Y;return Kp(t,oe);function oe(Ee){if(Ee.isDeclarationFile)return Ee;T=Ee,M=Ee.text;const Bt=xe(Ee);return iD(Bt,t.readEmitHelpers()),T=void 0,M=void 0,j=void 0,z=0,Bt}function se(Ee,Bt){const Di=z;return z=(z&~Ee|Bt)&32767,Di}function ge(Ee,Bt,Di){z=(z&~Bt|Di)&-32768|Ee}function ae(Ee){return(z&8192)!==0&&Ee.kind===253&&!Ee.expression}function Ce(Ee){return Ee.transformFlags&4194304&&(Op(Ee)||xk(Ee)||cFe(Ee)||BV(Ee)||ZP(Ee)||BB(Ee)||TV(Ee)||Ck(Ee)||G2(Ee)||V2(Ee)||Tx(Ee,!1)||po(Ee))}function ne(Ee){return(Ee.transformFlags&1024)!==0||K!==void 0||z&8192&&Ce(Ee)||Tx(Ee,!1)&&co(Ee)||(Pp(Ee)&1)!==0}function ve(Ee){return ne(Ee)?fe(Ee,!1):Ee}function Se(Ee){return ne(Ee)?fe(Ee,!0):Ee}function Ne(Ee){if(ne(Ee)){const Bt=Wl(Ee);if(ko(Bt)&&Kc(Bt)){const Di=se(32670,16449),Ci=fe(Ee,!1);return ge(Di,229376,0),Ci}return fe(Ee,!1)}return Ee}function pe(Ee){return Ee.kind===108?ql(Ee,!0):ve(Ee)}function fe(Ee,Bt){switch(Ee.kind){case 126:return;case 263:return We(Ee);case 231:return Gt(Ee);case 169:return bo(Ee);case 262:return Qi(Ee);case 219:return Ei(Ee);case 218:return $i(Ee);case 260:return Sn(Ee);case 80:return Ye(Ee);case 261:return ct(Ee);case 255:return Be(Ee);case 269:return Ge(Ee);case 241:return te(Ee,!1);case 252:case 251:return Ve(Ee);case 256:return pr(Ee);case 246:case 247:return Ku(Ee,void 0);case 248:return ja(Ee,void 0);case 249:return Ir(Ee,void 0);case 250:return as(Ee,void 0);case 244:return we(Ee);case 210:return c0(Ee);case 299:return Nr(Ee);case 304:return nd(Ee);case 167:return S0(Ee);case 209:return m0(Ee);case 213:return Bd(Ee);case 214:return h4(Ee);case 217:return de(Ee,Bt);case 226:return je(Ee,Bt);case 361:return X(Ee,Bt);case 15:case 16:case 17:case 18:return To(Ee);case 11:return nc(Ee);case 9:return fc(Ee);case 215:return Cl(Ee);case 228:return Tl(Ee);case 229:return ud(Ee);case 230:return Fo(Ee);case 108:return ql(Ee,!1);case 110:return Je(Ee);case 236:return Nc(Ee);case 174:return Ss(Ee);case 177:case 178:return ic(Ee);case 243:return Ct(Ee);case 253:return Ke(Ee);case 222:return ft(Ee);default:return rn(Ee,ve,t)}}function xe(Ee){const Bt=se(8064,64),Di=[],Ci=[];d();const Q=u.copyPrologue(Ee.statements,Di,!1,ve);return yn(Ci,kn(Ee.statements,ve,na,Q)),j&&Ci.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(j))),u.mergeLexicalEnvironment(Di,p()),et(Di,Ee),ge(Bt,0,0),u.updateSourceFile(Ee,Pt(u.createNodeArray(Hi(Di,Ci)),Ee.statements))}function Be(Ee){if(K!==void 0){const Bt=K.allowedNonLabeledJumps;K.allowedNonLabeledJumps|=2;const Di=rn(Ee,ve,t);return K.allowedNonLabeledJumps=Bt,Di}return rn(Ee,ve,t)}function Ge(Ee){const Bt=se(7104,0),Di=rn(Ee,ve,t);return ge(Bt,0,0),Di}function Ae(Ee){return su(u.createReturnStatement(De()),Ee)}function De(){return u.createUniqueName("_this",48)}function Ke(Ee){return K?(K.nonLocalJumps|=8,ae(Ee)&&(Ee=Ae(Ee)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),Ee.expression?H.checkDefined(yt(Ee.expression,ve,Wt)):u.createVoidZero())]))):ae(Ee)?Ae(Ee):rn(Ee,ve,t)}function Je(Ee){return z|=65536,z&2&&!(z&16384)&&(z|=131072),K?z&2?(K.containsLexicalThis=!0,Ee):K.thisName||(K.thisName=u.createUniqueName("this")):Ee}function ft(Ee){return rn(Ee,Se,t)}function Ye(Ee){return K&&b.isArgumentsLocalBinding(Ee)?K.argumentsName||(K.argumentsName=u.createUniqueName("arguments")):Ee.flags&256?su(Pt(u.createIdentifier(Qr(Ee.escapedText)),Ee),Ee):Ee}function Ve(Ee){if(K){const Bt=Ee.kind===252?2:4;if(!(Ee.label&&K.labels&&K.labels.get(fu(Ee.label))||!Ee.label&&K.allowedNonLabeledJumps&Bt)){let Ci;const Q=Ee.label;Q?Ee.kind===252?(Ci=`break-${Q.escapedText}`,tt(K,!0,fu(Q),Ci)):(Ci=`continue-${Q.escapedText}`,tt(K,!1,fu(Q),Ci)):Ee.kind===252?(K.nonLocalJumps|=2,Ci="break"):(K.nonLocalJumps|=4,Ci="continue");let Me=u.createStringLiteral(Ci);if(K.loopOutParameters.length){const wt=K.loopOutParameters;let ki;for(let In=0;Inat(Bt.name)&&!Bt.initializer)}function Ut(Ee){if(ik(Ee))return!0;if(!(Ee.transformFlags&134217728))return!1;switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?!!ao(Bt.name,Ut):!1}}return!!ao(Ee,Ut)}function Ni(Ee,Bt,Di,Ci){const Q=!!Di&&Dc(Di.expression).kind!==106;if(!Ee)return ei(Bt,Q);const Me=[],wt=[];f();const ki=u.copyStandardPrologue(Ee.body.statements,Me,0);(Ci||Ut(Ee.body))&&(z|=8192),yn(wt,kn(Ee.body.statements,ve,na,ki));const In=Q||z&8192;Et(Me,Ee),Pe(Me,Ee,Ci),ii(Me,Ee),In?gt(Me,Ee,Ta()):et(Me,Ee),u.mergeLexicalEnvironment(Me,p()),In&&!ra(Ee.body)&&wt.push(u.createReturnStatement(De()));const tr=u.createBlock(Pt(u.createNodeArray([...Me,...wt]),Ee.body.statements),!0);return Pt(tr,Ee.body),Da(tr,Ee.body,Ci)}function ji(Ee){return al(Ee)&&fu(Ee)==="_this"}function xn(Ee){return al(Ee)&&fu(Ee)==="_super"}function Jn(Ee){return Jl(Ee)&&Ee.declarationList.declarations.length===1&&an(Ee.declarationList.declarations[0])}function an(Ee){return ua(Ee)&&ji(Ee.name)&&!!Ee.initializer}function Pi(Ee){return ld(Ee,!0)&&ji(Ee.left)}function Ai(Ee){return Mo(Ee)&&Iu(Ee.expression)&&xn(Ee.expression.expression)&&at(Ee.expression.name)&&(fu(Ee.expression.name)==="call"||fu(Ee.expression.name)==="apply")&&Ee.arguments.length>=1&&Ee.arguments[0].kind===110}function Zu(Ee){return Xn(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&Ai(Ee.left)}function aa(Ee){return Xn(Ee)&&Ee.operatorToken.kind===56&&Xn(Ee.left)&&Ee.left.operatorToken.kind===38&&xn(Ee.left.left)&&Ee.left.right.kind===106&&Ai(Ee.right)&&fu(Ee.right.expression.name)==="apply"}function yr(Ee){return Xn(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&aa(Ee.left)}function Ba(Ee){return Pi(Ee)&&Zu(Ee.right)}function bt(Ee){return Pi(Ee)&&yr(Ee.right)}function jn(Ee){return Ai(Ee)||Zu(Ee)||Ba(Ee)||aa(Ee)||yr(Ee)||bt(Ee)}function Ln(Ee){for(let Bt=0;Bt0;Ci--){const Q=Ee.statements[Ci];if(Op(Q)&&Q.expression&&ji(Q.expression)){const Me=Ee.statements[Ci-1];let wt;if(Od(Me)&&Ba(Dc(Me.expression)))wt=Me.expression;else if(Di&&Jn(Me)){const tr=Me.declarationList.declarations[0];jn(Dc(tr.initializer))&&(wt=u.createAssignment(De(),tr.initializer))}if(!wt)break;const ki=u.createReturnStatement(wt);su(ki,Me),Pt(ki,Me);const In=u.createNodeArray([...Ee.statements.slice(0,Ci-1),ki,...Ee.statements.slice(Ci+1)]);return Pt(In,Ee.statements),u.updateBlock(Ee,In)}}return Ee}function Dn(Ee){if(Jn(Ee)){if(Ee.declarationList.declarations[0].initializer.kind===110)return}else if(Pi(Ee))return u.createPartiallyEmittedExpression(Ee.right,Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?u.replacePropertyName(Bt,rn(Bt.name,Dn,Dg)):Ee}}return rn(Ee,Dn,Dg)}function Cn(Ee,Bt){if(Bt.transformFlags&16384||z&65536||z&131072)return Ee;for(const Di of Bt.statements)if(Di.transformFlags&134217728&&!oQ(Di))return Ee;return u.updateBlock(Ee,kn(Ee.statements,Dn,na))}function tu(Ee){if(Ai(Ee)&&Ee.arguments.length===2&&at(Ee.arguments[1])&&fu(Ee.arguments[1])==="arguments")return u.createLogicalAnd(u.createStrictInequality(bc(),u.createNull()),Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const Bt=Ee;return Ps(Bt.name)?u.replacePropertyName(Bt,rn(Bt.name,tu,Dg)):Ee}}return rn(Ee,tu,Dg)}function oa(Ee){return u.updateBlock(Ee,kn(Ee.statements,tu,na))}function Da(Ee,Bt,Di){const Ci=Ee;return Ee=Ln(Ee),Ee=Si(Ee,Bt),Ee!==Ci&&(Ee=Cn(Ee,Bt)),Di&&(Ee=oa(Ee)),Ee}function ra(Ee){if(Ee.kind===253)return!0;if(Ee.kind===245){const Bt=Ee;if(Bt.elseStatement)return ra(Bt.thenStatement)&&ra(Bt.elseStatement)}else if(Ee.kind===241){const Bt=qu(Ee.statements);if(Bt&&ra(Bt))return!0}return!1}function Ta(){return Zn(u.createThis(),8)}function Yo(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(bc(),u.createNull()),u.createFunctionApplyCall(bc(),Ta(),u.createIdentifier("arguments"))),Ta())}function bo(Ee){if(!Ee.dotDotDotToken)return So(Ee.name)?su(Pt(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(Ee),void 0,void 0,void 0),Ee),Ee):Ee.initializer?su(Pt(u.createParameterDeclaration(void 0,void 0,Ee.name,void 0,void 0,void 0),Ee),Ee):Ee}function Qe(Ee){return Ee.initializer!==void 0||So(Ee.name)}function Et(Ee,Bt){if(!Oe(Bt.parameters,Qe))return!1;let Di=!1;for(const Ci of Bt.parameters){const{name:Q,initializer:Me,dotDotDotToken:wt}=Ci;wt||(So(Q)?Di=Mt(Ee,Ci,Q,Me)||Di:Me&&(qt(Ee,Ci,Q,Me),Di=!0))}return Di}function Mt(Ee,Bt,Di,Ci){return Di.elements.length>0?(Xy(Ee,Zn(u.createVariableStatement(void 0,u.createVariableDeclarationList(Q2(Bt,ve,t,0,u.getGeneratedNameForNode(Bt)))),2097152)),!0):Ci?(Xy(Ee,Zn(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(Bt),H.checkDefined(yt(Ci,ve,Wt)))),2097152)),!0):!1}function qt(Ee,Bt,Di,Ci){Ci=H.checkDefined(yt(Ci,ve,Wt));const Q=u.createIfStatement(u.createTypeCheck(u.cloneNode(Di),"undefined"),Zn(Pt(u.createBlock([u.createExpressionStatement(Zn(Pt(u.createAssignment(Zn(ks(Pt(u.cloneNode(Di),Di),Di.parent),96),Zn(Ci,96|bs(Ci)|3072)),Bt),3072))]),Bt),3905));vh(Q),Pt(Q,Bt),Zn(Q,2101056),Xy(Ee,Q)}function Xt(Ee,Bt){return!!(Ee&&Ee.dotDotDotToken&&!Bt)}function Pe(Ee,Bt,Di){const Ci=[],Q=qu(Bt.parameters);if(!Xt(Q,Di))return!1;const Me=Q.name.kind===80?ks(Pt(u.cloneNode(Q.name),Q.name),Q.name.parent):u.createTempVariable(void 0);Zn(Me,96);const wt=Q.name.kind===80?u.cloneNode(Q.name):Me,ki=Bt.parameters.length-1,In=u.createLoopVariable();Ci.push(Zn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Me,void 0,void 0,u.createArrayLiteralExpression([]))])),Q),2097152));const tr=u.createForStatement(Pt(u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,u.createNumericLiteral(ki))]),Q),Pt(u.createLessThan(In,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),Q),Pt(u.createPostfixIncrement(In),Q),u.createBlock([vh(Pt(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(wt,ki===0?In:u.createSubtract(In,u.createNumericLiteral(ki))),u.createElementAccessExpression(u.createIdentifier("arguments"),In))),Q))]));return Zn(tr,2097152),vh(tr),Ci.push(tr),Q.name.kind!==80&&Ci.push(Zn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList(Q2(Q,ve,t,0,wt))),Q),2097152)),l0e(Ee,Ci),!0}function et(Ee,Bt){return z&131072&&Bt.kind!==219?(gt(Ee,Bt,u.createThis()),!0):!1}function gt(Ee,Bt,Di){jh();const Ci=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(De(),void 0,void 0,Di)]));Zn(Ci,2100224),As(Ci,Bt),Xy(Ee,Ci)}function ii(Ee,Bt){if(z&32768){let Di;switch(Bt.kind){case 219:return Ee;case 174:case 177:case 178:Di=u.createVoidZero();break;case 176:Di=u.createPropertyAccessExpression(Zn(u.createThis(),8),"constructor");break;case 262:case 218:Di=u.createConditionalExpression(u.createLogicalAnd(Zn(u.createThis(),8),u.createBinaryExpression(Zn(u.createThis(),8),104,u.getLocalName(Bt))),void 0,u.createPropertyAccessExpression(Zn(u.createThis(),8),"constructor"),void 0,u.createVoidZero());break;default:return H.failBadSyntaxKind(Bt)}const Ci=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,Di)]));Zn(Ci,2100224),Xy(Ee,Ci)}return Ee}function me(Ee,Bt){for(const Di of Bt.members)switch(Di.kind){case 240:Ee.push(ni(Di));break;case 174:Ee.push(vi(m4(Bt,Di),Di,Bt));break;case 177:case 178:const Ci=dk(Bt.members,Di);Di===Ci.firstAccessor&&Ee.push(mt(m4(Bt,Di),Ci,Bt));break;case 176:case 175:break;default:H.failBadSyntaxKind(Di,T&&T.fileName);break}}function ni(Ee){return Pt(u.createEmptyStatement(),Ee)}function vi(Ee,Bt,Di){const Ci=nE(Bt),Q=Lv(Bt),Me=on(Bt,Bt,void 0,Di),wt=yt(Bt.name,ve,Sc);H.assert(wt);let ki;if(!ea(wt)&&eV(t.getCompilerOptions())){const tr=Ps(wt)?wt.expression:at(wt)?u.createStringLiteral(Qr(wt.escapedText)):wt;ki=u.createObjectDefinePropertyCall(Ee,tr,u.createPropertyDescriptor({value:Me,enumerable:!1,writable:!0,configurable:!0}))}else{const tr=Fk(u,Ee,wt,Bt.name);ki=u.createAssignment(tr,Me)}Zn(Me,3072),As(Me,Q);const In=Pt(u.createExpressionStatement(ki),Bt);return su(In,Bt),Bc(In,Ci),Zn(In,96),In}function mt(Ee,Bt,Di){const Ci=u.createExpressionStatement(Ot(Ee,Bt,Di,!1));return Zn(Ci,3072),As(Ci,Lv(Bt.firstAccessor)),Ci}function Ot(Ee,{firstAccessor:Bt,getAccessor:Di,setAccessor:Ci},Q,Me){const wt=ks(Pt(u.cloneNode(Ee),Ee),Ee.parent);Zn(wt,3136),As(wt,Bt.name);const ki=yt(Bt.name,ve,Sc);if(H.assert(ki),ea(ki))return H.failBadSyntaxKind(ki,"Encountered unhandled private identifier while transforming ES2015.");const In=zce(u,ki);Zn(In,3104),As(In,Bt.name);const tr=[];if(Di){const ha=on(Di,void 0,void 0,Q);As(ha,Lv(Di)),Zn(ha,1024);const os=u.createPropertyAssignment("get",ha);Bc(os,nE(Di)),tr.push(os)}if(Ci){const ha=on(Ci,void 0,void 0,Q);As(ha,Lv(Ci)),Zn(ha,1024);const os=u.createPropertyAssignment("set",ha);Bc(os,nE(Ci)),tr.push(os)}tr.push(u.createPropertyAssignment("enumerable",Di||Ci?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));const ir=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[wt,In,u.createObjectLiteralExpression(tr,!0)]);return Me&&vh(ir),ir}function Ei(Ee){Ee.transformFlags&16384&&!(z&16384)&&(z|=131072);const Bt=K;K=void 0;const Di=se(15232,66),Ci=u.createFunctionExpression(void 0,void 0,void 0,void 0,xc(Ee.parameters,ve,t),void 0,le(Ee));return Pt(Ci,Ee),su(Ci,Ee),Zn(Ci,16),ge(Di,0,0),K=Bt,Ci}function $i(Ee){const Bt=bs(Ee)&524288?se(32662,69):se(32670,65),Di=K;K=void 0;const Ci=xc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(Bt,229376,0),K=Di,u.updateFunctionExpression(Ee,void 0,Ee.asteriskToken,Me,void 0,Ci,void 0,Q)}function Qi(Ee){const Bt=K;K=void 0;const Di=se(32670,65),Ci=xc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(Di,229376,0),K=Bt,u.updateFunctionDeclaration(Ee,kn(Ee.modifiers,ve,Qo),Ee.asteriskToken,Me,void 0,Ci,void 0,Q)}function on(Ee,Bt,Di,Ci){const Q=K;K=void 0;const Me=Ci&&mr(Ci)&&!No(Ee)?se(32670,73):se(32670,65),wt=xc(Ee.parameters,ve,t),ki=le(Ee);return z&32768&&!Di&&(Ee.kind===262||Ee.kind===218)&&(Di=u.getGeneratedNameForNode(Ee)),ge(Me,229376,0),K=Q,su(Pt(u.createFunctionExpression(void 0,Ee.asteriskToken,Di,void 0,wt,void 0,ki),Bt),Ee)}function le(Ee){let Bt=!1,Di=!1,Ci,Q;const Me=[],wt=[],ki=Ee.body;let In;if(f(),po(ki)&&(In=u.copyStandardPrologue(ki.statements,Me,0,!1),In=u.copyCustomPrologue(ki.statements,wt,In,ve,aq),In=u.copyCustomPrologue(ki.statements,wt,In,ve,oq)),Bt=Et(wt,Ee)||Bt,Bt=Pe(wt,Ee,!1)||Bt,po(ki))In=u.copyCustomPrologue(ki.statements,wt,In,ve),Ci=ki.statements,yn(wt,kn(ki.statements,ve,na,In)),!Bt&&ki.multiLine&&(Bt=!0);else{H.assert(Ee.kind===219),Ci=Wq(ki,-1);const ir=Ee.equalsGreaterThanToken;!sl(ir)&&!sl(ki)&&(qj(ir,ki,T)?Di=!0:Bt=!0);const ha=yt(ki,ve,Wt),os=u.createReturnStatement(ha);Pt(os,ki),Oke(os,ki),Zn(os,2880),wt.push(os),Q=ki}if(u.mergeLexicalEnvironment(Me,p()),ii(Me,Ee),et(Me,Ee),Oe(Me)&&(Bt=!0),wt.unshift(...Me),po(ki)&&On(wt,ki.statements))return ki;const tr=u.createBlock(Pt(u.createNodeArray(wt),Ci),Bt);return Pt(tr,Ee.body),!Bt&&Di&&Zn(tr,1),Q&&Rke(tr,20,Q),su(tr,Ee.body),tr}function te(Ee,Bt){if(Bt)return rn(Ee,ve,t);const Di=z&256?se(7104,512):se(6976,128),Ci=rn(Ee,ve,t);return ge(Di,0,0),Ci}function we(Ee){return rn(Ee,Se,t)}function de(Ee,Bt){return rn(Ee,Bt?Se:ve,t)}function je(Ee,Bt){return r5(Ee)?wk(Ee,ve,t,0,!Bt):Ee.operatorToken.kind===28?u.updateBinaryExpression(Ee,H.checkDefined(yt(Ee.left,Se,Wt)),Ee.operatorToken,H.checkDefined(yt(Ee.right,Bt?Se:ve,Wt))):rn(Ee,ve,t)}function X(Ee,Bt){if(Bt)return rn(Ee,Se,t);let Di;for(let Q=0;QIn.name)),ki=Ci?u.createYieldExpression(u.createToken(42),Zn(wt,8388608)):wt;if(Me)Q.push(u.createExpressionStatement(ki)),Q0(Bt.loopOutParameters,1,0,Q);else{const In=u.createUniqueName("state"),tr=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,ki)]));if(Q.push(tr),Q0(Bt.loopOutParameters,1,0,Q),Bt.nonLocalJumps&8){let ir;Di?(Di.nonLocalJumps|=8,ir=u.createReturnStatement(In)):ir=u.createReturnStatement(u.createPropertyAccessExpression(In,"value")),Q.push(u.createIfStatement(u.createTypeCheck(In,"object"),ir))}if(Bt.nonLocalJumps&2&&Q.push(u.createIfStatement(u.createStrictEquality(In,u.createStringLiteral("break")),u.createBreakStatement())),Bt.labeledNonLocalBreaks||Bt.labeledNonLocalContinues){const ir=[];vt(Bt.labeledNonLocalBreaks,!0,In,Di,ir),vt(Bt.labeledNonLocalContinues,!1,In,Di,ir),Q.push(u.createSwitchStatement(In,u.createCaseBlock(ir)))}}return Q}function tt(Ee,Bt,Di,Ci){Bt?(Ee.labeledNonLocalBreaks||(Ee.labeledNonLocalBreaks=new Map),Ee.labeledNonLocalBreaks.set(Di,Ci)):(Ee.labeledNonLocalContinues||(Ee.labeledNonLocalContinues=new Map),Ee.labeledNonLocalContinues.set(Di,Ci))}function vt(Ee,Bt,Di,Ci,Q){Ee&&Ee.forEach((Me,wt)=>{const ki=[];if(!Ci||Ci.labels&&Ci.labels.get(wt)){const In=u.createIdentifier(wt);ki.push(Bt?u.createBreakStatement(In):u.createContinueStatement(In))}else tt(Ci,Bt,wt,Me),ki.push(u.createReturnStatement(Di));Q.push(u.createCaseClause(u.createStringLiteral(Me),ki))})}function mi(Ee,Bt,Di,Ci,Q){const Me=Bt.name;if(So(Me))for(const wt of Me.elements)Fd(wt)||mi(Ee,wt,Di,Ci,Q);else{Di.push(u.createParameterDeclaration(void 0,void 0,Me));const wt=b.getNodeCheckFlags(Bt);if(wt&65536||Q){const ki=u.createUniqueName("out_"+fu(Me));let In=0;wt&65536&&(In|=1),vk(Ee)&&(Ee.initializer&&b.isBindingCapturedByNode(Ee.initializer,Bt)&&(In|=2),(Ee.condition&&b.isBindingCapturedByNode(Ee.condition,Bt)||Ee.incrementor&&b.isBindingCapturedByNode(Ee.incrementor,Bt))&&(In|=1)),Ci.push({flags:In,originalName:Me,outParamName:ki})}}}function fn(Ee,Bt,Di,Ci){const Q=Bt.properties,Me=Q.length;for(let wt=Ci;wtJl(_s)&&!!Pn(_s.declarationList.declarations).initializer,Ci=K;K=void 0;const Q=kn(Bt.statements,Ne,na);K=Ci;const Me=ti(Q,Di),wt=ti(Q,_s=>!Di(_s)),In=Po(Pn(Me),Jl).declarationList.declarations[0],tr=Dc(In.initializer);let ir=ur(tr,ld);!ir&&Xn(tr)&&tr.operatorToken.kind===28&&(ir=ur(tr.left,ld));const ha=Po(ir?Dc(ir.right):tr,Mo),os=Po(Dc(ha.expression),A0),ss=os.body.statements;let Rl=0,x1=-1;const fd=[];if(ir){const _s=ur(ss[Rl],Od);_s&&(fd.push(_s),Rl++),fd.push(ss[Rl]),Rl++,fd.push(u.createExpressionStatement(u.createAssignment(ir.left,Po(In.name,at))))}for(;!Op(qD(ss,x1));)x1--;yn(fd,ss,Rl,x1),x1<-1&&yn(fd,ss,x1+1);const $m=ur(qD(ss,x1),Op);for(const _s of wt)Op(_s)&&($m!=null&&$m.expression)&&!at($m.expression)?fd.push($m):fd.push(_s);return yn(fd,Me,1),u.restoreOuterExpressions(Ee.expression,u.restoreOuterExpressions(In.initializer,u.restoreOuterExpressions(ir&&ir.right,u.updateCallExpression(ha,u.restoreOuterExpressions(ha.expression,u.updateFunctionExpression(os,void 0,void 0,void 0,void 0,os.parameters,void 0,u.updateBlock(os.body,fd))),void 0,ha.arguments))))}function uh(Ee,Bt){if(Ee.transformFlags&32768||Ee.expression.kind===108||nf(Dc(Ee.expression))){const{target:Di,thisArg:Ci}=u.createCallBinding(Ee.expression,E);Ee.expression.kind===108&&Zn(Ci,8);let Q;if(Ee.transformFlags&32768?Q=u.createFunctionApplyCall(H.checkDefined(yt(Di,pe,Wt)),Ee.expression.kind===108?Ci:H.checkDefined(yt(Ci,ve,Wt)),D1(Ee.arguments,!0,!1,!1)):Q=Pt(u.createFunctionCallCall(H.checkDefined(yt(Di,pe,Wt)),Ee.expression.kind===108?Ci:H.checkDefined(yt(Ci,ve,Wt)),kn(Ee.arguments,ve,Wt)),Ee),Ee.expression.kind===108){const Me=u.createLogicalOr(Q,Ta());Q=Bt?u.createAssignment(De(),Me):Me}return su(Q,Ee)}return ik(Ee)&&(z|=131072),rn(Ee,ve,t)}function h4(Ee){if(Oe(Ee.arguments,uE)){const{target:Bt,thisArg:Di}=u.createCallBinding(u.createPropertyAccessExpression(Ee.expression,"bind"),E);return u.createNewExpression(u.createFunctionApplyCall(H.checkDefined(yt(Bt,ve,Wt)),Di,D1(u.createNodeArray([u.createVoidZero(),...Ee.arguments]),!0,!1,!1)),void 0,[])}return rn(Ee,ve,t)}function D1(Ee,Bt,Di,Ci){const Q=Ee.length,Me=Va(Hl(Ee,He,(tr,ir,ha,os)=>ir(tr,Di,Ci&&os===Q)));if(Me.length===1){const tr=Me[0];if(Bt&&!v.downlevelIteration||Ple(tr.expression)||jP(tr.expression,"___spreadArray"))return tr.expression}const wt=s(),ki=Me[0].kind!==0;let In=ki?u.createArrayLiteralExpression():Me[0].expression;for(let tr=ki?0:1;tr0&&Ci.push(u.createStringLiteral(Di.literal.text)),Bt=u.createCallExpression(u.createPropertyAccessExpression(Bt,"concat"),void 0,Ci)}return Pt(Bt,Ee)}function bc(){return u.createUniqueName("_super",48)}function ql(Ee,Bt){const Di=z&8&&!Bt?u.createPropertyAccessExpression(su(bc(),Ee),"prototype"):bc();return su(Di,Ee),Bc(Di,Ee),As(Di,Ee),Di}function Nc(Ee){return Ee.keywordToken===105&&Ee.name.escapedText==="target"?(z|=32768,u.createUniqueName("_newTarget",48)):Ee}function ip(Ee,Bt,Di){if(Y&1&&Co(Bt)){const Ci=se(32670,bs(Bt)&16?81:65);k(Ee,Bt,Di),ge(Ci,0,0);return}k(Ee,Bt,Di)}function Jm(){Y&2||(Y|=2,t.enableSubstitution(80))}function jh(){Y&1||(Y|=1,t.enableSubstitution(110),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(219),t.enableEmitNotification(218),t.enableEmitNotification(262))}function f4(Ee,Bt){return Bt=B(Ee,Bt),Ee===1?C5(Bt):at(Bt)?c3(Bt):Bt}function c3(Ee){if(Y&2&&!Ice(Ee)){const Bt=Ua(Ee,at);if(Bt&&c_(Bt))return Pt(u.getGeneratedNameForNode(Bt),Ee)}return Ee}function c_(Ee){switch(Ee.parent.kind){case 208:case 263:case 266:case 260:return Ee.parent.name===Ee&&b.isDeclarationWithCollidingName(Ee.parent)}return!1}function C5(Ee){switch(Ee.kind){case 80:return R1(Ee);case 110:return Wf(Ee)}return Ee}function R1(Ee){if(Y&2&&!Ice(Ee)){const Bt=b.getReferencedDeclarationWithCollidingName(Ee);if(Bt&&!(mr(Bt)&&d3(Bt,Ee)))return Pt(u.getGeneratedNameForNode(Za(Bt)),Ee)}return Ee}function d3(Ee,Bt){let Di=Ua(Bt);if(!Di||Di===Ee||Di.end<=Ee.pos||Di.pos>=Ee.end)return!1;const Ci=YE(Ee);for(;Di;){if(Di===Ci||Di===Ee)return!1;if(Zd(Di)&&Di.parent===Ee)return!0;Di=Di.parent}return!1}function Wf(Ee){return Y&1&&z&16?Pt(De(),Ee):Ee}function m4(Ee,Bt){return No(Bt)?u.getInternalName(Ee):u.createPropertyAccessExpression(u.getInternalName(Ee),"prototype")}function Vh(Ee,Bt){if(!Ee||!Bt||Oe(Ee.parameters))return!1;const Di=Ki(Ee.body.statements);if(!Di||!sl(Di)||Di.kind!==244)return!1;const Ci=Di.expression;if(!sl(Ci)||Ci.kind!==213)return!1;const Q=Ci.expression;if(!sl(Q)||Q.kind!==108)return!1;const Me=Aa(Ci.arguments);if(!Me||!sl(Me)||Me.kind!==230)return!1;const wt=Me.expression;return at(wt)&&wt.escapedText==="arguments"}}var jMt=o({"src/compiler/transformers/es2015.ts"(){Bo()}});function v7e(t){const{factory:u}=t,s=t.getCompilerOptions();let d,f;(s.jsx===1||s.jsx===3)&&(d=t.onEmitNode,t.onEmitNode=v,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),f=[]);const p=t.onSubstituteNode;return t.onSubstituteNode=b,t.enableSubstitution(211),t.enableSubstitution(303),Kp(t,E);function E(M){return M}function v(M,z,j){switch(z.kind){case 286:case 287:case 285:const J=z.tagName;f[M1(J)]=!0;break}d(M,z,j)}function b(M,z){return z.id&&f&&f[z.id]?p(M,z):(z=p(M,z),Iu(z)?B(z):Jc(z)?k(z):z)}function B(M){if(ea(M.name))return M;const z=T(M.name);return z?Pt(u.createElementAccessExpression(M.expression,z),M):M}function k(M){const z=at(M.name)&&T(M.name);return z?u.updatePropertyAssignment(M,z,M.initializer):M}function T(M){const z=Dv(M);if(z!==void 0&&z>=83&&z<=118)return Pt(u.createStringLiteralFromNode(M),M)}}var VMt=o({"src/compiler/transformers/es5.ts"(){Bo()}});function HMt(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function C7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistFunctionDeclaration:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=Os(v),B=t.getEmitResolver(),k=t.onSubstituteNode;t.onSubstituteNode=we;let T,M,z,j,J,K,Y,oe,se,ge,ae=1,Ce,ne,ve,Se,Ne=0,pe=0,fe,xe,Be,Ge,Ae,De,Ke,Je;return Kp(t,ft);function ft(He){if(He.isDeclarationFile||!(He.transformFlags&2048))return He;const di=rn(He,Ye,t);return iD(di,t.readEmitHelpers()),di}function Ye(He){const di=He.transformFlags;return j?Ve(He):z?We(He):$0(He)&&He.asteriskToken?Yt(He):di&2048?rn(He,Ye,t):He}function Ve(He){switch(He.kind){case 246:return Yo(He);case 247:return Qe(He);case 255:return Ot(He);case 256:return $i(He);default:return We(He)}}function We(He){switch(He.kind){case 262:return Ie(He);case 218:return st(He);case 177:case 178:return St(He);case 243:return ei(He);case 248:return Mt(He);case 249:return Xt(He);case 252:return ii(He);case 251:return et(He);case 253:return ni(He);default:return He.transformFlags&1048576?Gt(He):He.transformFlags&4196352?rn(He,Ye,t):He}}function Gt(He){switch(He.kind){case 226:return ht(He);case 361:return xn(He);case 227:return an(He);case 229:return Pi(He);case 209:return Ai(He);case 210:return aa(He);case 212:return yr(He);case 213:return Ba(He);case 214:return bt(He);default:return rn(He,Ye,t)}}function Yt(He){switch(He.kind){case 262:return Ie(He);case 218:return st(He);default:return H.failBadSyntaxKind(He)}}function Ie(He){if(He.asteriskToken)He=su(Pt(u.createFunctionDeclaration(He.modifiers,void 0,He.name,void 0,xc(He.parameters,Ye,t),void 0,It(He.body)),He),He);else{const di=z,Mn=j;z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn}if(z){p(He);return}else return He}function st(He){if(He.asteriskToken)He=su(Pt(u.createFunctionExpression(void 0,void 0,He.name,void 0,xc(He.parameters,Ye,t),void 0,It(He.body)),He),He);else{const di=z,Mn=j;z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn}return He}function St(He){const di=z,Mn=j;return z=!1,j=!1,He=rn(He,Ye,t),z=di,j=Mn,He}function It(He){const di=[],Mn=z,ba=j,Fo=J,To=K,nc=Y,fc=oe,Cl=se,Tl=ge,bc=ae,ql=Ce,Nc=ne,ip=ve,Jm=Se;z=!0,j=!1,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,ge=void 0,ae=1,Ce=void 0,ne=void 0,ve=void 0,Se=u.createTempVariable(void 0),d();const jh=u.copyPrologue(He.statements,di,!1,Ye);jn(He.statements,jh);const f4=tt();return ZE(di,f()),di.push(u.createReturnStatement(f4)),z=Mn,j=ba,J=Fo,K=To,Y=nc,oe=fc,se=Cl,ge=Tl,ae=bc,Ce=ql,ne=Nc,ve=ip,Se=Jm,Pt(u.createBlock(di,He.multiLine),He)}function ei(He){if(He.transformFlags&1048576){oa(He.declarationList);return}else{if(bs(He)&2097152)return He;for(const Mn of He.declarationList.declarations)E(Mn.name);const di=DP(He.declarationList);return di.length===0?void 0:As(u.createExpressionStatement(u.inlineExpressions(Vt(di,Da))),He)}}function ht(He){const di=q0e(He);switch(di){case 0:return Ni(He);case 1:return Ut(He);default:return H.assertNever(di)}}function Ut(He){const{left:di,right:Mn}=He;if(le(Mn)){let ba;switch(di.kind){case 211:ba=u.updatePropertyAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),di.name);break;case 212:ba=u.updateElementAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),X(H.checkDefined(yt(di.argumentExpression,Ye,Wt))));break;default:ba=H.checkDefined(yt(di,Ye,Wt));break}const Fo=He.operatorToken.kind;return mM(Fo)?Pt(u.createAssignment(ba,Pt(u.createBinaryExpression(X(ba),pM(Fo),H.checkDefined(yt(Mn,Ye,Wt))),He)),He):u.updateBinaryExpression(He,ba,He.operatorToken,H.checkDefined(yt(Mn,Ye,Wt)))}return rn(He,Ye,t)}function Ni(He){return le(He.right)?Pye(He.operatorToken.kind)?Jn(He):He.operatorToken.kind===28?ji(He):u.updateBinaryExpression(He,X(H.checkDefined(yt(He.left,Ye,Wt))),He.operatorToken,H.checkDefined(yt(He.right,Ye,Wt))):rn(He,Ye,t)}function ji(He){let di=[];return Mn(He.left),Mn(He.right),u.inlineExpressions(di);function Mn(ba){Xn(ba)&&ba.operatorToken.kind===28?(Mn(ba.left),Mn(ba.right)):(le(ba)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(ba,Ye,Wt))))}}function xn(He){let di=[];for(const Mn of He.elements)Xn(Mn)&&Mn.operatorToken.kind===28?di.push(ji(Mn)):(le(Mn)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(Mn,Ye,Wt))));return u.inlineExpressions(di)}function Jn(He){const di=Ct(),Mn=it();return cl(Mn,H.checkDefined(yt(He.left,Ye,Wt)),He.left),He.operatorToken.kind===56?dl(di,Mn,He.left):Ri(di,Mn,He.left),cl(Mn,H.checkDefined(yt(He.right,Ye,Wt)),He.right),ct(di),Mn}function an(He){if(le(He.whenTrue)||le(He.whenFalse)){const di=Ct(),Mn=Ct(),ba=it();return dl(di,H.checkDefined(yt(He.condition,Ye,Wt)),He.condition),cl(ba,H.checkDefined(yt(He.whenTrue,Ye,Wt)),He.whenTrue),Ka(Mn),ct(di),cl(ba,H.checkDefined(yt(He.whenFalse,Ye,Wt)),He.whenFalse),ct(Mn),ba}return rn(He,Ye,t)}function Pi(He){const di=Ct(),Mn=yt(He.expression,Ye,Wt);if(He.asteriskToken){const ba=bs(He.expression)&8388608?Mn:Pt(s().createValuesHelper(Mn),He);Uc(ba,He)}else Ch(Mn,He);return ct(di),Jp(He)}function Ai(He){return Zu(He.elements,void 0,void 0,He.multiLine)}function Zu(He,di,Mn,ba){const Fo=te(He);let To;if(Fo>0){To=it();const Cl=kn(He,Ye,Wt,0,Fo);cl(To,u.createArrayLiteralExpression(di?[di,...Cl]:Cl)),di=void 0}const nc=nn(He,fc,[],Fo);return To?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(nc,ba)]):Pt(u.createArrayLiteralExpression(di?[di,...nc]:nc,ba),Mn);function fc(Cl,Tl){if(le(Tl)&&Cl.length>0){const bc=To!==void 0;To||(To=it()),cl(To,bc?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(Cl,ba)]):u.createArrayLiteralExpression(di?[di,...Cl]:Cl,ba)),di=void 0,Cl=[]}return Cl.push(H.checkDefined(yt(Tl,Ye,Wt))),Cl}}function aa(He){const di=He.properties,Mn=He.multiLine,ba=te(di),Fo=it();cl(Fo,u.createObjectLiteralExpression(kn(di,Ye,Z3,0,ba),Mn));const To=nn(di,nc,[],ba);return To.push(Mn?vh(ks(Pt(u.cloneNode(Fo),Fo),Fo.parent)):Fo),u.inlineExpressions(To);function nc(fc,Cl){le(Cl)&&fc.length>0&&(Il(u.createExpressionStatement(u.inlineExpressions(fc))),fc=[]);const Tl=FFe(u,He,Cl,Fo),bc=yt(Tl,Ye,Wt);return bc&&(Mn&&vh(bc),fc.push(bc)),fc}}function yr(He){return le(He.argumentExpression)?u.updateElementAccessExpression(He,X(H.checkDefined(yt(He.expression,Ye,Df))),H.checkDefined(yt(He.argumentExpression,Ye,Wt))):rn(He,Ye,t)}function Ba(He){if(!dm(He)&&L(He.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(He.expression,E,b,!0);return su(Pt(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Df))),Mn,Zu(He.arguments)),He),He)}return rn(He,Ye,t)}function bt(He){if(L(He.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(u.createPropertyAccessExpression(He.expression,"bind"),E);return su(Pt(u.createNewExpression(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Wt))),Mn,Zu(He.arguments,u.createVoidZero())),void 0,[]),He),He)}return rn(He,Ye,t)}function jn(He,di=0){const Mn=He.length;for(let ba=di;ba0)break;Fo.push(Da(nc))}Fo.length&&(Il(u.createExpressionStatement(u.inlineExpressions(Fo))),ba+=Fo.length,Fo=[])}}function Da(He){return As(u.createAssignment(As(u.cloneNode(He.name),He.name),H.checkDefined(yt(He.initializer,Ye,Wt))),He)}function ra(He){if(le(He))if(le(He.thenStatement)||le(He.elseStatement)){const di=Ct(),Mn=He.elseStatement?Ct():void 0;dl(He.elseStatement?Mn:di,H.checkDefined(yt(He.expression,Ye,Wt)),He.expression),Ln(He.thenStatement),He.elseStatement&&(Ka(di),ct(Mn),Ln(He.elseStatement)),ct(di)}else Il(yt(He,Ye,na));else Il(yt(He,Ye,na))}function Ta(He){if(le(He)){const di=Ct(),Mn=Ct();wn(di),ct(Mn),Ln(He.statement),ct(di),Ri(Mn,H.checkDefined(yt(He.expression,Ye,Wt))),Ir()}else Il(yt(He,Ye,na))}function Yo(He){return j?(ja(),He=rn(He,Ye,t),Ir(),He):rn(He,Ye,t)}function bo(He){if(le(He)){const di=Ct(),Mn=wn(di);ct(di),dl(Mn,H.checkDefined(yt(He.expression,Ye,Wt))),Ln(He.statement),Ka(di),Ir()}else Il(yt(He,Ye,na))}function Qe(He){return j?(ja(),He=rn(He,Ye,t),Ir(),He):rn(He,Ye,t)}function Et(He){if(le(He)){const di=Ct(),Mn=Ct(),ba=wn(Mn);if(He.initializer){const Fo=He.initializer;Ad(Fo)?oa(Fo):Il(Pt(u.createExpressionStatement(H.checkDefined(yt(Fo,Ye,Wt))),Fo))}ct(di),He.condition&&dl(ba,H.checkDefined(yt(He.condition,Ye,Wt))),Ln(He.statement),ct(Mn),He.incrementor&&Il(Pt(u.createExpressionStatement(H.checkDefined(yt(He.incrementor,Ye,Wt))),He.incrementor)),Ka(di),Ir()}else Il(yt(He,Ye,na))}function Mt(He){j&&ja();const di=He.initializer;if(di&&Ad(di)){for(const ba of di.declarations)E(ba.name);const Mn=DP(di);He=u.updateForStatement(He,Mn.length>0?u.inlineExpressions(Vt(Mn,Da)):void 0,yt(He.condition,Ye,Wt),yt(He.incrementor,Ye,Wt),Ih(He.statement,Ye,t))}else He=rn(He,Ye,t);return j&&Ir(),He}function qt(He){if(le(He)){const di=it(),Mn=it(),ba=it(),Fo=u.createLoopVariable(),To=He.initializer;E(Fo),cl(di,H.checkDefined(yt(He.expression,Ye,Wt))),cl(Mn,u.createArrayLiteralExpression()),Il(u.createForInStatement(ba,di,u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(Mn,"push"),void 0,[ba])))),cl(Fo,u.createNumericLiteral(0));const nc=Ct(),fc=Ct(),Cl=wn(fc);ct(nc),dl(Cl,u.createLessThan(Fo,u.createPropertyAccessExpression(Mn,"length"))),cl(ba,u.createElementAccessExpression(Mn,Fo)),dl(fc,u.createBinaryExpression(ba,103,di));let Tl;if(Ad(To)){for(const bc of To.declarations)E(bc.name);Tl=u.cloneNode(To.declarations[0].name)}else Tl=H.checkDefined(yt(To,Ye,Wt)),H.assert(Df(Tl));cl(Tl,ba),Ln(He.statement),ct(fc),Il(u.createExpressionStatement(u.createPostfixIncrement(Fo))),Ka(nc),Ir()}else Il(yt(He,Ye,na))}function Xt(He){j&&ja();const di=He.initializer;if(Ad(di)){for(const Mn of di.declarations)E(Mn.name);He=u.updateForInStatement(He,di.declarations[0].name,H.checkDefined(yt(He.expression,Ye,Wt)),H.checkDefined(yt(He.statement,Ye,na,u.liftToBlock)))}else He=rn(He,Ye,t);return j&&Ir(),He}function Pe(He){const di=Ho(He.label?fu(He.label):void 0);di>0?Ka(di,He):Il(He)}function et(He){if(j){const di=Ho(He.label&&fu(He.label));if(di>0)return Ko(di,He)}return rn(He,Ye,t)}function gt(He){const di=co(He.label?fu(He.label):void 0);di>0?Ka(di,He):Il(He)}function ii(He){if(j){const di=co(He.label&&fu(He.label));if(di>0)return Ko(di,He)}return rn(He,Ye,t)}function me(He){sf(yt(He.expression,Ye,Wt),He)}function ni(He){return Tc(yt(He.expression,Ye,Wt),He)}function vi(He){le(He)?(du(X(H.checkDefined(yt(He.expression,Ye,Wt)))),Ln(He.statement),Ru()):Il(yt(He,Ye,na))}function mt(He){if(le(He.caseBlock)){const di=He.caseBlock,Mn=di.clauses.length,ba=wo(),Fo=X(H.checkDefined(yt(He.expression,Ye,Wt))),To=[];let nc=-1;for(let Tl=0;Tl0)break;Cl.push(u.createCaseClause(H.checkDefined(yt(ql.expression,Ye,Wt)),[Ko(To[bc],ql.expression)]))}else Tl++}Cl.length&&(Il(u.createSwitchStatement(Fo,u.createCaseBlock(Cl))),fc+=Cl.length,Cl=[]),Tl>0&&(fc+=Tl,Tl=0)}nc>=0?Ka(To[nc]):Ka(ba);for(let Tl=0;Tl=0;Mn--){const ba=oe[Mn];if(wl(ba)){if(ba.labelText===He)return!0}else break}return!1}function co(He){if(oe)if(He)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(wl(Mn)&&Mn.labelText===He)return Mn.breakLabel;if(Ul(Mn)&&vl(He,di-1))return Mn.breakLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(Ul(Mn))return Mn.breakLabel}return 0}function Ho(He){if(oe)if(He)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn)&&vl(He,di-1))return Mn.continueLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn))return Mn.continueLabel}return 0}function id(He){if(He!==void 0&&He>0){ge===void 0&&(ge=[]);const di=u.createNumericLiteral(-1);return ge[He]===void 0?ge[He]=[di]:ge[He].push(di),di}return u.createOmittedExpression()}function Y0(He){const di=u.createNumericLiteral(He);return AZ(di,3,HMt(He)),di}function Ko(He,di){return H.assertLessThan(0,He,"Invalid label"),Pt(u.createReturnStatement(u.createArrayLiteralExpression([Y0(3),id(He)])),di)}function Tc(He,di){return Pt(u.createReturnStatement(u.createArrayLiteralExpression(He?[Y0(2),He]:[Y0(2)])),di)}function Jp(He){return Pt(u.createCallExpression(u.createPropertyAccessExpression(Se,"sent"),void 0,[]),He)}function Lc(){$(0)}function Il(He){He?$(1,[He]):Lc()}function cl(He,di,Mn){$(2,[He,di],Mn)}function Ka(He,di){$(3,[He],di)}function Ri(He,di,Mn){$(4,[He,di],Mn)}function dl(He,di,Mn){$(5,[He,di],Mn)}function Uc(He,di){$(7,[He],di)}function Ch(He,di){$(6,[He],di)}function sf(He,di){$(8,[He],di)}function Q0(He,di){$(9,[He],di)}function Cc(){$(10)}function $(He,di,Mn){Ce===void 0&&(Ce=[],ne=[],ve=[]),se===void 0&&ct(Ct());const ba=Ce.length;Ce[ba]=He,ne[ba]=di,ve[ba]=Mn}function tt(){Ne=0,pe=0,fe=void 0,xe=!1,Be=!1,Ge=void 0,Ae=void 0,De=void 0,Ke=void 0,Je=void 0;const He=vt();return s().createGeneratorHelper(Zn(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,Se)],void 0,u.createBlock(He,He.length>0)),1048576))}function vt(){if(Ce){for(let He=0;He=0;di--){const Mn=Je[di];Ae=[u.createWithStatement(Mn.expression,u.createBlock(Ae))]}if(Ke){const{startLabel:di,catchLabel:Mn,finallyLabel:ba,endLabel:Fo}=Ke;Ae.unshift(u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createPropertyAccessExpression(Se,"trys"),"push"),void 0,[u.createArrayLiteralExpression([id(di),id(Mn),id(ba),id(Fo)])]))),Ke=void 0}He&&Ae.push(u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(Se,"label"),u.createNumericLiteral(pe+1))))}Ge.push(u.createCaseClause(u.createNumericLiteral(pe),Ae||[])),Ae=void 0}function Tu(He){if(se)for(let di=0;dis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(ct))),Ct),s.createVoidZero())));xi(te,yt(K.externalHelpersImportDeclaration,fe,na)),yn(te,kn(le.statements,fe,na,de)),pe(te,!1),ZE(te,p());const je=s.updateSourceFile(le,Pt(s.createNodeArray(te),le.statements));return iD(je,t.readEmitHelpers()),je}function Ce(le){const te=s.createIdentifier("define"),we=IV(s,le,B,v),de=W4(le)&&le,{aliasedModuleNames:je,unaliasedModuleNames:X,importAliasNames:it}=ve(le,!0),Ct=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(te,void 0,[...we?[we]:[],s.createArrayLiteralExpression(de?_t:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...je,...X]),de?de.statements.length?de.statements[0].expression:s.createObjectLiteralExpression():s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...it],void 0,Ne(le))]))]),le.statements));return iD(Ct,t.readEmitHelpers()),Ct}function ne(le){const{aliasedModuleNames:te,unaliasedModuleNames:we,importAliasNames:de}=ve(le,!1),je=IV(s,le,B,v),X=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,Pt(s.createBlock([s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("module"),"object"),s.createTypeCheck(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),"object")),s.createBlock([s.createVariableStatement(void 0,[s.createVariableDeclaration("v",void 0,void 0,s.createCallExpression(s.createIdentifier("factory"),void 0,[s.createIdentifier("require"),s.createIdentifier("exports")]))]),Zn(s.createIfStatement(s.createStrictInequality(s.createIdentifier("v"),s.createIdentifier("undefined")),s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),s.createIdentifier("v")))),1)]),s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("define"),"function"),s.createPropertyAccessExpression(s.createIdentifier("define"),"amd")),s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("define"),void 0,[...je?[je]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...te,...we]),s.createIdentifier("factory")]))])))],!0),void 0)),it=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(X,void 0,[s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...de],void 0,Ne(le))]))]),le.statements));return iD(it,t.readEmitHelpers()),it}function ve(le,te){const we=[],de=[],je=[];for(const X of le.amdDependencies)X.name?(we.push(s.createStringLiteral(X.path)),je.push(s.createParameterDeclaration(void 0,void 0,X.name))):de.push(s.createStringLiteral(X.path));for(const X of K.externalImports){const it=W7(s,X,J,B,b,v),Ct=zB(s,X,J);it&&(te&&Ct?(Zn(Ct,8),we.push(it),je.push(s.createParameterDeclaration(void 0,void 0,Ct))):de.push(it))}return{aliasedModuleNames:we,unaliasedModuleNames:de,importAliasNames:je}}function Se(le){if(E1(le)||Gc(le)||!W7(s,le,J,B,b,v))return;const te=zB(s,le,J),we=Ba(le,te);if(we!==te)return s.createExpressionStatement(s.createAssignment(te,we))}function Ne(le){f();const te=[],we=s.copyPrologue(le.statements,te,!v.noImplicitUseStrict,fe);ge()&&xi(te,Pe()),S(K.exportedNames)&&xi(te,s.createExpressionStatement(nn(K.exportedNames,(je,X)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(X))),je),s.createVoidZero()))),xi(te,yt(K.externalHelpersImportDeclaration,fe,na)),T===2&&yn(te,qi(K.externalImports,Se)),yn(te,kn(le.statements,fe,na,we)),pe(te,!0),ZE(te,p());const de=s.createBlock(te,!0);return oe&&S7(de,Jet),de}function pe(le,te){if(K.exportEquals){const we=yt(K.exportEquals.expression,Ge,Wt);if(we)if(te){const de=s.createReturnStatement(we);Pt(de,K.exportEquals),Zn(de,3840),le.push(de)}else{const de=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),we));Pt(de,K.exportEquals),Zn(de,3072),le.push(de)}}}function fe(le){switch(le.kind){case 272:return bt(le);case 271:return Ln(le);case 278:return Si(le);case 277:return Dn(le);default:return xe(le)}}function xe(le){switch(le.kind){case 243:return oa(le);case 262:return Cn(le);case 263:return tu(le);case 248:return Je(le,!0);case 249:return ft(le);case 250:return Ye(le);case 246:return Ve(le);case 247:return We(le);case 256:return Gt(le);case 254:return Yt(le);case 245:return Ie(le);case 255:return st(le);case 269:return St(le);case 296:return It(le);case 297:return ei(le);case 258:return ht(le);case 299:return Ut(le);case 241:return Ni(le);default:return Ge(le)}}function Be(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return Je(le,!1);case 244:return ji(le);case 217:return xn(le,te);case 360:return Jn(le,te);case 213:if(dm(le)&&J.impliedNodeFormat===void 0)return Pi(le);break;case 226:if(r5(le))return Ke(le,te);break;case 224:case 225:return an(le,te)}return rn(le,Ge,t)}function Ge(le){return Be(le,!1)}function Ae(le){return Be(le,!0)}function De(le){if(ys(le))for(const te of le.properties)switch(te.kind){case 303:if(De(te.initializer))return!0;break;case 304:if(De(te.name))return!0;break;case 305:if(De(te.expression))return!0;break;case 174:case 177:case 178:return!1;default:H.assertNever(te,"Unhandled object member kind")}else if(Dh(le)){for(const te of le.elements)if(uE(te)){if(De(te.expression))return!0}else if(De(te))return!0}else if(at(le))return S(on(le))>(xY(le)?1:0);return!1}function Ke(le,te){return De(le.left)?wk(le,Ge,t,0,!te,Da):rn(le,Ge,t)}function Je(le,te){if(te&&le.initializer&&Ad(le.initializer)&&!(le.initializer.flags&7)){const we=Qe(void 0,le.initializer,!1);if(we){const de=[],je=yt(le.initializer,Ae,Ad),X=s.createVariableStatement(void 0,je);de.push(X),yn(de,we);const it=yt(le.condition,Ge,Wt),Ct=yt(le.incrementor,Ae,Wt),ct=Ih(le.statement,te?xe:Ge,t);return de.push(s.updateForStatement(le,void 0,it,Ct,ct)),de}}return s.updateForStatement(le,yt(le.initializer,Ae,a4),yt(le.condition,Ge,Wt),yt(le.incrementor,Ae,Wt),Ih(le.statement,te?xe:Ge,t))}function ft(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0);if(Oe(te)){const we=yt(le.initializer,Ae,a4),de=yt(le.expression,Ge,Wt),je=Ih(le.statement,xe,t),X=po(je)?s.updateBlock(je,[...te,...je.statements]):s.createBlock([...te,je],!0);return s.updateForInStatement(le,we,de,X)}}return s.updateForInStatement(le,yt(le.initializer,Ae,a4),yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Ye(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0),we=yt(le.initializer,Ae,a4),de=yt(le.expression,Ge,Wt);let je=Ih(le.statement,xe,t);return Oe(te)&&(je=po(je)?s.updateBlock(je,[...te,...je.statements]):s.createBlock([...te,je],!0)),s.updateForOfStatement(le,le.awaitModifier,we,de,je)}return s.updateForOfStatement(le,le.awaitModifier,yt(le.initializer,Ae,a4),yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Ve(le){return s.updateDoStatement(le,Ih(le.statement,xe,t),yt(le.expression,Ge,Wt))}function We(le){return s.updateWhileStatement(le,yt(le.expression,Ge,Wt),Ih(le.statement,xe,t))}function Gt(le){return s.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,xe,na,s.liftToBlock)))}function Yt(le){return s.updateWithStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.statement,xe,na,s.liftToBlock)))}function Ie(le){return s.updateIfStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.thenStatement,xe,na,s.liftToBlock)),yt(le.elseStatement,xe,na,s.liftToBlock))}function st(le){return s.updateSwitchStatement(le,yt(le.expression,Ge,Wt),H.checkDefined(yt(le.caseBlock,xe,ZP)))}function St(le){return s.updateCaseBlock(le,kn(le.clauses,xe,WU))}function It(le){return s.updateCaseClause(le,yt(le.expression,Ge,Wt),kn(le.statements,xe,na))}function ei(le){return rn(le,xe,t)}function ht(le){return rn(le,xe,t)}function Ut(le){return s.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,xe,po)))}function Ni(le){return le=rn(le,xe,t),le}function ji(le){return s.updateExpressionStatement(le,yt(le.expression,Ae,Wt))}function xn(le,te){return s.updateParenthesizedExpression(le,yt(le.expression,te?Ae:Ge,Wt))}function Jn(le,te){return s.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ae:Ge,Wt))}function an(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!al(le.operand)&&!rD(le.operand)&&!ple(le.operand)){const we=on(le.operand);if(we){let de,je=yt(le.operand,Ge,Wt);zv(le)?je=s.updatePrefixUnaryExpression(le,je):(je=s.updatePostfixUnaryExpression(le,je),te||(de=s.createTempVariable(E),je=s.createAssignment(de,je),Pt(je,le)),je=s.createComma(je,s.cloneNode(le.operand)),Pt(je,le));for(const X of we)Y[$s(je)]=!0,je=gt(X,je),Pt(je,le);return de&&(Y[$s(je)]=!0,je=s.createComma(je,de),Pt(je,le)),je}}return rn(le,Ge,t)}function Pi(le){if(T===0&&k>=7)return rn(le,Ge,t);const te=W7(s,le,J,B,b,v),we=yt(Ki(le.arguments),Ge,Wt),de=te&&(!we||!us(we)||we.text!==te.text)?te:we,je=!!(le.transformFlags&16384);switch(v.module){case 2:return Zu(de,je);case 3:return Ai(de??s.createVoidZero(),je);case 1:default:return aa(de)}}function Ai(le,te){if(oe=!0,Y2(le)){const we=al(le)?le:us(le)?s.createStringLiteralFromNode(le):Zn(Pt(s.cloneNode(le),le),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(le),void 0,Zu(we,te))}else{const we=s.createTempVariable(E);return s.createComma(s.createAssignment(we,le),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,aa(we,!0),void 0,Zu(we,te)))}}function Zu(le,te){const we=s.createUniqueName("resolve"),de=s.createUniqueName("reject"),je=[s.createParameterDeclaration(void 0,void 0,we),s.createParameterDeclaration(void 0,void 0,de)],X=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([le||s.createOmittedExpression()]),we,de]))]);let it;k>=2?it=s.createArrowFunction(void 0,void 0,je,void 0,void 0,X):(it=s.createFunctionExpression(void 0,void 0,void 0,void 0,je,void 0,X),te&&Zn(it,16));const Ct=s.createNewExpression(s.createIdentifier("Promise"),void 0,[it]);return e_(v)?s.createCallExpression(s.createPropertyAccessExpression(Ct,s.createIdentifier("then")),void 0,[d().createImportStarCallbackHelper()]):Ct}function aa(le,te){const we=le&&!sE(le)&&!te,de=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,we?k>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(le,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[le])]:[]);let je=s.createCallExpression(s.createIdentifier("require"),void 0,we?[s.createIdentifier("s")]:le?[le]:[]);e_(v)&&(je=d().createImportStarHelper(je));const X=we?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let it;return k>=2?it=s.createArrowFunction(void 0,void 0,X,void 0,void 0,je):it=s.createFunctionExpression(void 0,void 0,void 0,void 0,X,void 0,s.createBlock([s.createReturnStatement(je)])),s.createCallExpression(s.createPropertyAccessExpression(de,"then"),void 0,[it])}function yr(le,te){return!e_(v)||Pp(le)&2?te:GAe(le)?d().createImportStarHelper(te):te}function Ba(le,te){return!e_(v)||Pp(le)&2?te:aQ(le)?d().createImportStarHelper(te):$de(le)?d().createImportDefaultHelper(te):te}function bt(le){let te;const we=Q8(le);if(T!==2)if(le.importClause){const de=[];we&&!c7(le)?de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,Ba(le,jn(le)))):(de.push(s.createVariableDeclaration(s.getGeneratedNameForNode(le),void 0,void 0,Ba(le,jn(le)))),we&&c7(le)&&de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)))),te=xi(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList(de,k>=2?2:0)),le),le))}else return su(Pt(s.createExpressionStatement(jn(le)),le),le);else we&&c7(le)&&(te=xi(te,s.createVariableStatement(void 0,s.createVariableDeclarationList([su(Pt(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)),le),le)],k>=2?2:0))));return te=Ta(te,le),F0(te)}function jn(le){const te=W7(s,le,J,B,b,v),we=[];return te&&we.push(te),s.createCallExpression(s.createIdentifier("require"),void 0,we)}function Ln(le){H.assert(bv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return T!==2?Yu(le,32)?te=xi(te,su(Pt(s.createExpressionStatement(gt(le.name,jn(le))),le),le)):te=xi(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(le.name),void 0,void 0,jn(le))],k>=2?2:0)),le),le)):Yu(le,32)&&(te=xi(te,su(Pt(s.createExpressionStatement(gt(s.getExportName(le),s.getLocalName(le))),le),le))),te=Yo(te,le),F0(te)}function Si(le){if(!le.moduleSpecifier)return;const te=s.getGeneratedNameForNode(le);if(le.exportClause&&ep(le.exportClause)){const we=[];T!==2&&we.push(su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(te,void 0,void 0,jn(le))])),le),le));for(const de of le.exportClause.elements)if(k===0)we.push(su(Pt(s.createExpressionStatement(d().createCreateBindingHelper(te,s.createStringLiteralFromNode(de.propertyName||de.name),de.propertyName?s.createStringLiteralFromNode(de.name):void 0)),de),de));else{const je=!!e_(v)&&!(Pp(le)&2)&&fu(de.propertyName||de.name)==="default",X=s.createPropertyAccessExpression(je?d().createImportDefaultHelper(te):te,de.propertyName||de.name);we.push(su(Pt(s.createExpressionStatement(gt(s.getExportName(de),X,void 0,!0)),de),de))}return F0(we)}else if(le.exportClause){const we=[];return we.push(su(Pt(s.createExpressionStatement(gt(s.cloneNode(le.exportClause.name),yr(le,T!==2?jn(le):eq(le)?te:s.createIdentifier(fu(le.exportClause.name))))),le),le)),F0(we)}else return su(Pt(s.createExpressionStatement(d().createExportStarHelper(T!==2?jn(le):te)),le),le)}function Dn(le){if(!le.isExportEquals)return et(s.createIdentifier("default"),yt(le.expression,Ge,Wt),le,!0)}function Cn(le){let te;return Yu(le,32)?te=xi(te,su(Pt(s.createFunctionDeclaration(kn(le.modifiers,ii,Qo),le.asteriskToken,s.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,Ge,io),void 0,rn(le.body,Ge,t)),le),le)):te=xi(te,rn(le,Ge,t)),te=Mt(te,le),F0(te)}function tu(le){let te;return Yu(le,32)?te=xi(te,su(Pt(s.createClassDeclaration(kn(le.modifiers,ii,ol),s.getDeclarationName(le,!0,!0),void 0,kn(le.heritageClauses,Ge,mm),kn(le.members,Ge,Zd)),le),le)):te=xi(te,rn(le,Ge,t)),te=Mt(te,le),F0(te)}function oa(le){let te,we,de;if(Yu(le,32)){let je,X=!1;for(const it of le.declarationList.declarations)if(at(it.name)&&rD(it.name))if(je||(je=kn(le.modifiers,ii,Qo)),it.initializer){const Ct=s.updateVariableDeclaration(it,it.name,void 0,void 0,gt(it.name,yt(it.initializer,Ge,Wt)));we=xi(we,Ct)}else we=xi(we,it);else if(it.initializer)if(!So(it.name)&&(q0(it.initializer)||A0(it.initializer)||Xd(it.initializer))){const Ct=s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),it.name),it.name),s.createIdentifier(J4(it.name))),ct=s.createVariableDeclaration(it.name,it.exclamationToken,it.type,yt(it.initializer,Ge,Wt));we=xi(we,ct),de=xi(de,Ct),X=!0}else de=xi(de,ra(it));if(we&&(te=xi(te,s.updateVariableStatement(le,je,s.updateVariableDeclarationList(le.declarationList,we)))),de){const it=su(Pt(s.createExpressionStatement(s.inlineExpressions(de)),le),le);X&&EV(it),te=xi(te,it)}}else te=xi(te,rn(le,Ge,t));return te=bo(te,le),F0(te)}function Da(le,te,we){const de=on(le);if(de){let je=xY(le)?te:s.createAssignment(le,te);for(const X of de)Zn(je,8),je=gt(X,je,we);return je}return s.createAssignment(le,te)}function ra(le){return So(le.name)?wk(yt(le,Ge,Zj),Ge,t,0,!1,Da):s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),le.name),le.name),le.initializer?yt(le.initializer,Ge,Wt):s.createVoidZero())}function Ta(le,te){if(K.exportEquals)return le;const we=te.importClause;if(!we)return le;const de=new Y7;we.name&&(le=qt(le,de,we));const je=we.namedBindings;if(je)switch(je.kind){case 274:le=qt(le,de,je);break;case 275:for(const X of je.elements)le=qt(le,de,X,!0);break}return le}function Yo(le,te){return K.exportEquals?le:qt(le,new Y7,te)}function bo(le,te){return Qe(le,te.declarationList,!1)}function Qe(le,te,we){if(K.exportEquals)return le;for(const de of te.declarations)le=Et(le,de,we);return le}function Et(le,te,we){if(K.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=Et(le,de,we));else!al(te.name)&&(!ua(te)||te.initializer||we)&&(le=qt(le,new Y7,te));return le}function Mt(le,te){if(K.exportEquals)return le;const we=new Y7;if(Yu(te,32)){const de=Yu(te,2048)?s.createIdentifier("default"):s.getDeclarationName(te);le=Xt(le,we,de,s.getLocalName(te),te)}return te.name&&(le=qt(le,we,te)),le}function qt(le,te,we,de){const je=s.getDeclarationName(we),X=K.exportSpecifiers.get(je);if(X)for(const it of X)le=Xt(le,te,it.name,je,it.name,void 0,de);return le}function Xt(le,te,we,de,je,X,it){return te.has(we)||(te.set(we,!0),le=xi(le,et(we,de,je,X,it))),le}function Pe(){let le;return k===0?le=s.createExpressionStatement(gt(s.createIdentifier("__esModule"),s.createTrue())):le=s.createExpressionStatement(s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteral("__esModule"),s.createObjectLiteralExpression([s.createPropertyAssignment("value",s.createTrue())])])),Zn(le,2097152),le}function et(le,te,we,de,je){const X=Pt(s.createExpressionStatement(gt(le,te,void 0,je)),we);return vh(X),de||Zn(X,3072),X}function gt(le,te,we,de){return Pt(de&&k!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(le),s.createObjectLiteralExpression([s.createPropertyAssignment("enumerable",s.createTrue()),s.createPropertyAssignment("get",s.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,s.createBlock([s.createReturnStatement(te)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),te),we)}function ii(le){switch(le.kind){case 95:case 90:return}return le}function me(le,te,we){te.kind===312?(J=te,K=j[M1(J)],z(le,te,we),J=void 0,K=void 0):z(le,te,we)}function ni(le,te){return te=M(le,te),te.id&&Y[te.id]?te:le===1?mt(te):pm(te)?vi(te):te}function vi(le){const te=le.name,we=$i(te);if(we!==te){if(le.objectAssignmentInitializer){const de=s.createAssignment(we,le.objectAssignmentInitializer);return Pt(s.createPropertyAssignment(te,de),le)}return Pt(s.createPropertyAssignment(te,we),le)}return le}function mt(le){switch(le.kind){case 80:return $i(le);case 213:return Ot(le);case 215:return Ei(le);case 226:return Qi(le)}return le}function Ot(le){if(at(le.expression)){const te=$i(le.expression);if(Y[$s(te)]=!0,!at(te)&&!(bs(le.expression)&8192))return F7(s.updateCallExpression(le,te,void 0,le.arguments),16)}return le}function Ei(le){if(at(le.tag)){const te=$i(le.tag);if(Y[$s(te)]=!0,!at(te)&&!(bs(le.tag)&8192))return F7(s.updateTaggedTemplateExpression(le,te,void 0,le.template),16)}return le}function $i(le){var te,we;if(bs(le)&8192){const de=zV(J);return de?s.createPropertyAccessExpression(de,le):le}else if(!(al(le)&&!(le.emitNode.autoGenerate.flags&64))&&!rD(le)){const de=b.getReferencedExportContainer(le,xY(le));if(de&&de.kind===312)return Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),le);const je=b.getReferencedImportDeclaration(le);if(je){if(n_(je))return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(je.parent),s.createIdentifier("default")),le);if(bf(je)){const X=je.propertyName||je.name;return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((we=(te=je.parent)==null?void 0:te.parent)==null?void 0:we.parent)||je),s.cloneNode(X)),le)}}}return le}function Qi(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!al(le.left)||JO(le.left))&&!rD(le.left)){const te=on(le.left);if(te){let we=le;for(const de of te)Y[$s(we)]=!0,we=gt(de,we,le);return we}}return le}function on(le){if(al(le)){if(JO(le)){const te=K==null?void 0:K.exportSpecifiers.get(le);if(te){const we=[];for(const de of te)we.push(de.name);return we}}}else{const te=b.getReferencedImportDeclaration(le);if(te)return K==null?void 0:K.exportedBindings[M1(te)];const we=new Set,de=b.getReferencedValueDeclarations(le);if(de){for(const je of de){const X=K==null?void 0:K.exportedBindings[M1(je)];if(X)for(const it of X)we.add(it)}if(we.size)return ga(we)}}}}var Jet,WMt=o({"src/compiler/transformers/module/module.ts"(){Bo(),Jet={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` - var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function b7e(t){const{factory:u,startLexicalEnvironment:s,endLexicalEnvironment:d,hoistVariableDeclaration:f}=t,p=t.getCompilerOptions(),E=t.getEmitResolver(),v=t.getEmitHost(),b=t.onSubstituteNode,B=t.onEmitNode;t.onSubstituteNode=gt,t.onEmitNode=et,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const k=[],T=[],M=[],z=[];let j,J,K,Y,oe,se,ge;return Kp(t,ae);function ae(le){if(le.isDeclarationFile||!(s7(le,p)||le.transformFlags&8388608))return le;const te=M1(le);j=le,se=le,J=k[te]=Ude(t,le),K=u.createUniqueName("exports"),T[te]=K,Y=z[te]=u.createUniqueName("context");const we=Ce(J.externalImports),de=ne(le,we),je=u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,K),u.createParameterDeclaration(void 0,void 0,Y)],void 0,de),X=IV(u,le,v,p),it=u.createArrayLiteralExpression(Vt(we,ct=>ct.name)),Ct=Zn(u.updateSourceFile(le,Pt(u.createNodeArray([u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("System"),"register"),void 0,X?[X,it,je]:[it,je]))]),le.statements)),2048);return y0(p)||Hke(Ct,de,ct=>!ct.scoped),ge&&(M[te]=ge,ge=void 0),j=void 0,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,Ct}function Ce(le){const te=new Map,we=[];for(const de of le){const je=W7(u,de,j,v,E,p);if(je){const X=je.text,it=te.get(X);it!==void 0?we[it].externalImports.push(de):(te.set(X,we.length),we.push({name:je,externalImports:[de]}))}}return we}function ne(le,te){const we=[];s();const de=Z4(p,"alwaysStrict")||!p.noImplicitUseStrict&&wc(j),je=u.copyPrologue(le.statements,we,de,pe);we.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration("__moduleName",void 0,void 0,u.createLogicalAnd(Y,u.createPropertyAccessExpression(Y,"id")))]))),yt(J.externalHelpersImportDeclaration,pe,na);const X=kn(le.statements,pe,na,je);yn(we,oe),ZE(we,d());const it=ve(we),Ct=le.transformFlags&2097152?u.createModifiersFromModifierFlags(1024):void 0,ct=u.createObjectLiteralExpression([u.createPropertyAssignment("setters",Ne(it,te)),u.createPropertyAssignment("execute",u.createFunctionExpression(Ct,void 0,void 0,void 0,[],void 0,u.createBlock(X,!0)))],!0);return we.push(u.createReturnStatement(ct)),u.createBlock(we,!0)}function ve(le){if(!J.hasExportStarsToExportValues)return;if(!J.exportedNames&&J.exportSpecifiers.size===0){let je=!1;for(const X of J.externalImports)if(X.kind===278&&X.exportClause){je=!0;break}if(!je){const X=Se(void 0);return le.push(X),X.name}}const te=[];if(J.exportedNames)for(const je of J.exportedNames)je.escapedText!=="default"&&te.push(u.createPropertyAssignment(u.createStringLiteralFromNode(je),u.createTrue()));const we=u.createUniqueName("exportedNames");le.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(we,void 0,void 0,u.createObjectLiteralExpression(te,!0))])));const de=Se(we);return le.push(de),de.name}function Se(le){const te=u.createUniqueName("exportStar"),we=u.createIdentifier("m"),de=u.createIdentifier("n"),je=u.createIdentifier("exports");let X=u.createStrictInequality(de,u.createStringLiteral("default"));return le&&(X=u.createLogicalAnd(X,u.createLogicalNot(u.createCallExpression(u.createPropertyAccessExpression(le,"hasOwnProperty"),void 0,[de])))),u.createFunctionDeclaration(void 0,void 0,te,void 0,[u.createParameterDeclaration(void 0,void 0,we)],void 0,u.createBlock([u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(je,void 0,void 0,u.createObjectLiteralExpression([]))])),u.createForInStatement(u.createVariableDeclarationList([u.createVariableDeclaration(de)]),we,u.createBlock([Zn(u.createIfStatement(X,u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(je,de),u.createElementAccessExpression(we,de)))),1)])),u.createExpressionStatement(u.createCallExpression(K,void 0,[je]))],!0))}function Ne(le,te){const we=[];for(const de of te){const je=L(de.externalImports,Ct=>zB(u,Ct,j)),X=je?u.getGeneratedNameForNode(je):u.createUniqueName(""),it=[];for(const Ct of de.externalImports){const ct=zB(u,Ct,j);switch(Ct.kind){case 272:if(!Ct.importClause)break;case 271:H.assert(ct!==void 0),it.push(u.createExpressionStatement(u.createAssignment(ct,X))),Yu(Ct,32)&&it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(ct)),X])));break;case 278:if(H.assert(ct!==void 0),Ct.exportClause)if(ep(Ct.exportClause)){const Qt=[];for(const Li of Ct.exportClause.elements)Qt.push(u.createPropertyAssignment(u.createStringLiteral(fu(Li.name)),u.createElementAccessExpression(X,u.createStringLiteral(fu(Li.propertyName||Li.name)))));it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createObjectLiteralExpression(Qt,!0)])))}else it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(Ct.exportClause.name)),X])));else it.push(u.createExpressionStatement(u.createCallExpression(le,void 0,[X])));break}}we.push(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,X)],void 0,u.createBlock(it,!0)))}return u.createArrayLiteralExpression(we,!0)}function pe(le){switch(le.kind){case 272:return fe(le);case 271:return Be(le);case 278:return xe(le);case 277:return Ge(le);default:return ji(le)}}function fe(le){let te;return le.importClause&&f(zB(u,le,j)),F0(Yt(te,le))}function xe(le){H.assertIsDefined(le)}function Be(le){H.assert(bv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return f(zB(u,le,j)),F0(Ie(te,le))}function Ge(le){if(le.isExportEquals)return;const te=yt(le.expression,ra,Wt);return Ut(u.createIdentifier("default"),te,!0)}function Ae(le){Yu(le,32)?oe=xi(oe,u.updateFunctionDeclaration(le,kn(le.modifiers,Pe,ol),le.asteriskToken,u.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,ra,io),void 0,yt(le.body,ra,po))):oe=xi(oe,rn(le,ra,t)),oe=It(oe,le)}function De(le){let te;const we=u.getLocalName(le);return f(we),te=xi(te,Pt(u.createExpressionStatement(u.createAssignment(we,Pt(u.createClassExpression(kn(le.modifiers,Pe,ol),le.name,void 0,kn(le.heritageClauses,ra,mm),kn(le.members,ra,Zd)),le))),le)),te=It(te,le),F0(te)}function Ke(le){if(!ft(le.declarationList))return yt(le,ra,na);let te;if(cj(le.declarationList)||lj(le.declarationList)){const we=kn(le.modifiers,Pe,ol),de=[];for(const X of le.declarationList.declarations)de.push(u.updateVariableDeclaration(X,u.getGeneratedNameForNode(X.name),void 0,void 0,Ye(X,!1)));const je=u.updateVariableDeclarationList(le.declarationList,de);te=xi(te,u.updateVariableStatement(le,we,je))}else{let we;const de=Yu(le,32);for(const je of le.declarationList.declarations)je.initializer?we=xi(we,Ye(je,de)):Je(je);we&&(te=xi(te,Pt(u.createExpressionStatement(u.inlineExpressions(we)),le)))}return te=st(te,le,!1),F0(te)}function Je(le){if(So(le.name))for(const te of le.name.elements)Fd(te)||Je(te);else f(u.cloneNode(le.name))}function ft(le){return(bs(le)&4194304)===0&&(se.kind===312||(Wl(le).flags&7)===0)}function Ye(le,te){const we=te?Ve:We;return So(le.name)?wk(le,ra,t,0,!1,we):le.initializer?we(le.name,yt(le.initializer,ra,Wt)):le.name}function Ve(le,te,we){return Gt(le,te,we,!0)}function We(le,te,we){return Gt(le,te,we,!1)}function Gt(le,te,we,de){return f(u.cloneNode(le)),de?Ni(le,Qi(Pt(u.createAssignment(le,te),we))):Qi(Pt(u.createAssignment(le,te),we))}function Yt(le,te){if(J.exportEquals)return le;const we=te.importClause;if(!we)return le;we.name&&(le=ei(le,we));const de=we.namedBindings;if(de)switch(de.kind){case 274:le=ei(le,de);break;case 275:for(const je of de.elements)le=ei(le,je);break}return le}function Ie(le,te){return J.exportEquals?le:ei(le,te)}function st(le,te,we){if(J.exportEquals)return le;for(const de of te.declarationList.declarations)(de.initializer||we)&&(le=St(le,de,we));return le}function St(le,te,we){if(J.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=St(le,de,we));else if(!al(te.name)){let de;we&&(le=ht(le,te.name,u.getLocalName(te)),de=fu(te.name)),le=ei(le,te,de)}return le}function It(le,te){if(J.exportEquals)return le;let we;if(Yu(te,32)){const de=Yu(te,2048)?u.createStringLiteral("default"):te.name;le=ht(le,de,u.getLocalName(te)),we=J4(de)}return te.name&&(le=ei(le,te,we)),le}function ei(le,te,we){if(J.exportEquals)return le;const de=u.getDeclarationName(te),je=J.exportSpecifiers.get(de);if(je)for(const X of je)X.name.escapedText!==we&&(le=ht(le,X.name,de));return le}function ht(le,te,we,de){return le=xi(le,Ut(te,we,de)),le}function Ut(le,te,we){const de=u.createExpressionStatement(Ni(le,te));return vh(de),we||Zn(de,3072),de}function Ni(le,te){const we=at(le)?u.createStringLiteralFromNode(le):le;return Zn(te,bs(te)|3072),Bc(u.createCallExpression(K,void 0,[we,te]),te)}function ji(le){switch(le.kind){case 243:return Ke(le);case 262:return Ae(le);case 263:return De(le);case 248:return xn(le,!0);case 249:return Jn(le);case 250:return an(le);case 246:return Zu(le);case 247:return aa(le);case 256:return yr(le);case 254:return Ba(le);case 245:return bt(le);case 255:return jn(le);case 269:return Ln(le);case 296:return Si(le);case 297:return Dn(le);case 258:return Cn(le);case 299:return tu(le);case 241:return oa(le);default:return ra(le)}}function xn(le,te){const we=se;return se=le,le=u.updateForStatement(le,yt(le.initializer,te?Ai:Ta,a4),yt(le.condition,ra,Wt),yt(le.incrementor,Ta,Wt),Ih(le.statement,te?ji:ra,t)),se=we,le}function Jn(le){const te=se;return se=le,le=u.updateForInStatement(le,Ai(le.initializer),yt(le.expression,ra,Wt),Ih(le.statement,ji,t)),se=te,le}function an(le){const te=se;return se=le,le=u.updateForOfStatement(le,le.awaitModifier,Ai(le.initializer),yt(le.expression,ra,Wt),Ih(le.statement,ji,t)),se=te,le}function Pi(le){return Ad(le)&&ft(le)}function Ai(le){if(Pi(le)){let te;for(const we of le.declarations)te=xi(te,Ye(we,!1)),we.initializer||Je(we);return te?u.inlineExpressions(te):u.createOmittedExpression()}else return yt(le,Ta,a4)}function Zu(le){return u.updateDoStatement(le,Ih(le.statement,ji,t),yt(le.expression,ra,Wt))}function aa(le){return u.updateWhileStatement(le,yt(le.expression,ra,Wt),Ih(le.statement,ji,t))}function yr(le){return u.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,ji,na,u.liftToBlock)))}function Ba(le){return u.updateWithStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.statement,ji,na,u.liftToBlock)))}function bt(le){return u.updateIfStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.thenStatement,ji,na,u.liftToBlock)),yt(le.elseStatement,ji,na,u.liftToBlock))}function jn(le){return u.updateSwitchStatement(le,yt(le.expression,ra,Wt),H.checkDefined(yt(le.caseBlock,ji,ZP)))}function Ln(le){const te=se;return se=le,le=u.updateCaseBlock(le,kn(le.clauses,ji,WU)),se=te,le}function Si(le){return u.updateCaseClause(le,yt(le.expression,ra,Wt),kn(le.statements,ji,na))}function Dn(le){return rn(le,ji,t)}function Cn(le){return rn(le,ji,t)}function tu(le){const te=se;return se=le,le=u.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,ji,po))),se=te,le}function oa(le){const te=se;return se=le,le=rn(le,ji,t),se=te,le}function Da(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return xn(le,!1);case 244:return Yo(le);case 217:return bo(le,te);case 360:return Qe(le,te);case 226:if(r5(le))return Mt(le,te);break;case 213:if(dm(le))return Et(le);break;case 224:case 225:return Xt(le,te)}return rn(le,ra,t)}function ra(le){return Da(le,!1)}function Ta(le){return Da(le,!0)}function Yo(le){return u.updateExpressionStatement(le,yt(le.expression,Ta,Wt))}function bo(le,te){return u.updateParenthesizedExpression(le,yt(le.expression,te?Ta:ra,Wt))}function Qe(le,te){return u.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ta:ra,Wt))}function Et(le){const te=W7(u,le,j,v,E,p),we=yt(Ki(le.arguments),ra,Wt),de=te&&(!we||!us(we)||we.text!==te.text)?te:we;return u.createCallExpression(u.createPropertyAccessExpression(Y,u.createIdentifier("import")),void 0,de?[de]:[])}function Mt(le,te){return qt(le.left)?wk(le,ra,t,0,!te):rn(le,ra,t)}function qt(le){if(ld(le,!0))return qt(le.left);if(uE(le))return qt(le.expression);if(ys(le))return Oe(le.properties,qt);if(Dh(le))return Oe(le.elements,qt);if(pm(le))return qt(le.name);if(Jc(le))return qt(le.initializer);if(at(le)){const te=E.getReferencedExportContainer(le);return te!==void 0&&te.kind===312}else return!1}function Xt(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!al(le.operand)&&!rD(le.operand)&&!ple(le.operand)){const we=Ei(le.operand);if(we){let de,je=yt(le.operand,ra,Wt);zv(le)?je=u.updatePrefixUnaryExpression(le,je):(je=u.updatePostfixUnaryExpression(le,je),te||(de=u.createTempVariable(f),je=u.createAssignment(de,je),Pt(je,le)),je=u.createComma(je,u.cloneNode(le.operand)),Pt(je,le));for(const X of we)je=Ni(X,Qi(je));return de&&(je=u.createComma(je,de),Pt(je,le)),je}}return rn(le,ra,t)}function Pe(le){switch(le.kind){case 95:case 90:return}return le}function et(le,te,we){if(te.kind===312){const de=M1(te);j=te,J=k[de],K=T[de],ge=M[de],Y=z[de],ge&&delete M[de],B(le,te,we),j=void 0,J=void 0,K=void 0,Y=void 0,ge=void 0}else B(le,te,we)}function gt(le,te){return te=b(le,te),on(te)?te:le===1?ni(te):le===4?ii(te):te}function ii(le){switch(le.kind){case 304:return me(le)}return le}function me(le){var te,we;const de=le.name;if(!al(de)&&!rD(de)){const je=E.getReferencedImportDeclaration(de);if(je){if(n_(je))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(je.parent),u.createIdentifier("default"))),le);if(bf(je))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=je.parent)==null?void 0:te.parent)==null?void 0:we.parent)||je),u.cloneNode(je.propertyName||je.name))),le)}}return le}function ni(le){switch(le.kind){case 80:return vi(le);case 226:return mt(le);case 236:return Ot(le)}return le}function vi(le){var te,we;if(bs(le)&8192){const de=zV(j);return de?u.createPropertyAccessExpression(de,le):le}if(!al(le)&&!rD(le)){const de=E.getReferencedImportDeclaration(le);if(de){if(n_(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(de.parent),u.createIdentifier("default")),le);if(bf(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=de.parent)==null?void 0:te.parent)==null?void 0:we.parent)||de),u.cloneNode(de.propertyName||de.name)),le)}}return le}function mt(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!al(le.left)||JO(le.left))&&!rD(le.left)){const te=Ei(le.left);if(te){let we=le;for(const de of te)we=Ni(de,Qi(we));return we}}return le}function Ot(le){return W8(le)?u.createPropertyAccessExpression(Y,u.createIdentifier("meta")):le}function Ei(le){let te;const we=$i(le);if(we){const de=E.getReferencedExportContainer(le,!1);de&&de.kind===312&&(te=xi(te,u.getDeclarationName(we))),te=yn(te,J==null?void 0:J.exportedBindings[M1(we)])}else if(al(le)&&JO(le)){const de=J==null?void 0:J.exportSpecifiers.get(le);if(de){const je=[];for(const X of de)je.push(X.name);return je}}return te}function $i(le){if(!al(le)){const te=E.getReferencedImportDeclaration(le);if(te)return te;const we=E.getReferencedValueDeclaration(le);if(we&&(J!=null&&J.exportedBindings[M1(we)]))return we;const de=E.getReferencedValueDeclarations(le);if(de){for(const je of de)if(je!==we&&(J!=null&&J.exportedBindings[M1(je)]))return je}return we}}function Qi(le){return ge===void 0&&(ge=[]),ge[$s(le)]=!0,le}function on(le){return ge&&le.id&&ge[le.id]}}var GMt=o({"src/compiler/transformers/module/system.ts"(){Bo()}});function a1e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getEmitHost(),f=t.getEmitResolver(),p=t.getCompilerOptions(),E=Os(p),v=t.onEmitNode,b=t.onSubstituteNode;t.onEmitNode=ge,t.onSubstituteNode=ae,t.enableEmitNotification(312),t.enableSubstitution(80);let B,k,T;return Kp(t,M);function M(ne){if(ne.isDeclarationFile)return ne;if(wc(ne)||mg(p)){k=ne,T=void 0;let ve=z(ne);return k=void 0,T&&(ve=u.updateSourceFile(ve,Pt(u.createNodeArray(l0e(ve.statements.slice(),T)),ve.statements))),!wc(ne)||Oe(ve.statements,YO)?ve:u.updateSourceFile(ve,Pt(u.createNodeArray([...ve.statements,NV(u)]),ve.statements))}return ne}function z(ne){const ve=Oce(u,s(),ne,p);if(ve){const Se=[],Ne=u.copyPrologue(ne.statements,Se);return xi(Se,ve),yn(Se,kn(ne.statements,j,na,Ne)),u.updateSourceFile(ne,Pt(u.createNodeArray(Se),ne.statements))}else return rn(ne,j,t)}function j(ne){switch(ne.kind){case 271:return m1(p)>=100?K(ne):void 0;case 277:return oe(ne);case 278:return se(ne)}return ne}function J(ne){const ve=W7(u,ne,H.checkDefined(k),d,f,p),Se=[];if(ve&&Se.push(ve),!T){const pe=u.createUniqueName("_createRequire",48),fe=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports([u.createImportSpecifier(!1,u.createIdentifier("createRequire"),pe)])),u.createStringLiteral("module"),void 0),xe=u.createUniqueName("__require",48),Be=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(xe,void 0,void 0,u.createCallExpression(u.cloneNode(pe),void 0,[u.createPropertyAccessExpression(u.createMetaProperty(102,u.createIdentifier("meta")),u.createIdentifier("url"))]))],E>=2?2:0));T=[fe,Be]}const Ne=T[1].declarationList.declarations[0].name;return H.assertNode(Ne,at),u.createCallExpression(u.cloneNode(Ne),void 0,Se)}function K(ne){H.assert(bv(ne),"import= for internal module references should be handled in an earlier transformer.");let ve;return ve=xi(ve,su(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.cloneNode(ne.name),void 0,void 0,J(ne))],E>=2?2:0)),ne),ne)),ve=Y(ve,ne),F0(ve)}function Y(ne,ve){return Yu(ve,32)&&(ne=xi(ne,u.createExportDeclaration(void 0,ve.isTypeOnly,u.createNamedExports([u.createExportSpecifier(!1,void 0,fu(ve.name))])))),ne}function oe(ne){return ne.isExportEquals?void 0:ne}function se(ne){if(p.module!==void 0&&p.module>5||!ne.exportClause||!u_(ne.exportClause)||!ne.moduleSpecifier)return ne;const ve=ne.exportClause.name,Se=u.getGeneratedNameForNode(ve),Ne=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamespaceImport(Se)),ne.moduleSpecifier,ne.attributes);su(Ne,ne.exportClause);const pe=eq(ne)?u.createExportDefault(Se):u.createExportDeclaration(void 0,!1,u.createNamedExports([u.createExportSpecifier(!1,Se,ve)]));return su(pe,ne),[Ne,pe]}function ge(ne,ve,Se){la(ve)?((wc(ve)||mg(p))&&p.importHelpers&&(B=new Map),v(ne,ve,Se),B=void 0):v(ne,ve,Se)}function ae(ne,ve){return ve=b(ne,ve),B&&at(ve)&&bs(ve)&8192?Ce(ve):ve}function Ce(ne){const ve=fu(ne);let Se=B.get(ve);return Se||B.set(ve,Se=u.createUniqueName(ve,48)),Se}}var JMt=o({"src/compiler/transformers/module/esnextAnd2015.ts"(){Bo()}});function y7e(t){const u=t.onSubstituteNode,s=t.onEmitNode,d=a1e(t),f=t.onSubstituteNode,p=t.onEmitNode;t.onSubstituteNode=u,t.onEmitNode=s;const E=r1e(t),v=t.onSubstituteNode,b=t.onEmitNode;t.onSubstituteNode=k,t.onEmitNode=T,t.enableSubstitution(312),t.enableEmitNotification(312);let B;return j;function k(K,Y){return la(Y)?(B=Y,u(K,Y)):B?B.impliedNodeFormat===99?f(K,Y):v(K,Y):u(K,Y)}function T(K,Y,oe){return la(Y)&&(B=Y),B?B.impliedNodeFormat===99?p(K,Y,oe):b(K,Y,oe):s(K,Y,oe)}function M(K){return K.impliedNodeFormat===99?d:E}function z(K){if(K.isDeclarationFile)return K;B=K;const Y=M(K)(K);return B=void 0,H.assert(la(Y)),Y}function j(K){return K.kind===312?z(K):J(K)}function J(K){return t.factory.createBundle(Vt(K.sourceFiles,z),K.prepends)}}var $Mt=o({"src/compiler/transformers/module/node.ts"(){Bo()}});function mQ(t){return ua(t)||ko(t)||Mm(t)||js(t)||e5(t)||Lx(t)||FV(t)||CB(t)||dc(t)||n3(t)||ed(t)||io(t)||Bl(t)||c5(t)||E1(t)||jp(t)||hc(t)||Ek(t)||Iu(t)||U0(t)||Xn(t)||G4(t)}function k7e(t){if(e5(t)||Lx(t))return u;return n3(t)||dc(t)?d:h5(t);function u(p){const E=s(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function s(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function d(p){const E=f(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function f(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_method_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function h5(t){if(ua(t)||ko(t)||Mm(t)||Iu(t)||U0(t)||Xn(t)||js(t)||hc(t))return s;return e5(t)||Lx(t)?d:FV(t)||CB(t)||dc(t)||n3(t)||ed(t)||Ek(t)?f:io(t)?Mf(t,t.parent)&&Yu(t.parent,2)?s:p:Bl(t)?v:c5(t)?b:E1(t)?B:jp(t)||G4(t)?k:H.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${H.formatSyntaxKind(t.kind)}`);function u(T){if(t.kind===260||t.kind===208)return T.errorModuleName?T.accessibility===2?F.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:F.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===172||t.kind===211||t.kind===212||t.kind===226||t.kind===171||t.kind===169&&Yu(t.parent,2))return No(t)?T.errorModuleName?T.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?T.errorModuleName?T.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(T){const M=u(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function d(T){let M;return t.kind===178?No(t)?M=T.errorModuleName?F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:M,errorNode:t.name,typeName:t.name}}function f(T){let M;switch(t.kind){case 180:M=T.errorModuleName?F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:M=T.errorModuleName?F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:M=T.errorModuleName?F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:M=T.errorModuleName?F.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return H.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:M,errorNode:t.name||t}}function p(T){const M=E(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function E(T){switch(t.parent.kind){case 176:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return T.errorModuleName?F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return T.errorModuleName?F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return T.errorModuleName?F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return No(t.parent)?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return H.fail(`Unknown parent for parameter: ${H.formatSyntaxKind(t.parent.kind)}`)}}function v(){let T;switch(t.parent.kind){case 263:T=F.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:T=F.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:T=F.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:T=F.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:T=F.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:No(t.parent)?T=F.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T=F.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=F.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:T=F.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:T=F.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:T=F.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return H.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:T,errorNode:t,typeName:t.name}}function b(){let T;return Wc(t.parent.parent)?T=mm(t.parent)&&t.parent.token===119?F.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:F.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=F.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:t,typeName:Za(t.parent.parent)}}function B(){return{diagnosticMessage:F.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function k(T){return{diagnosticMessage:T.errorModuleName?F.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:F.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:G4(t)?H.checkDefined(t.typeExpression):t.type,typeName:G4(t)?Za(t):t.name}}}var UMt=o({"src/compiler/transformers/declarations/diagnostics.ts"(){Bo()}});function F7e(t,u,s){const d=t.getCompilerOptions();return pH(u,t,q,d,s?[s]:ti(t.getSourceFiles(),T0e),[s1e],!1).diagnostics}function $et(t,u){return u.text.substring(t.pos,t.end).includes("@internal")}function o1e(t,u){const s=Ua(t);if(s&&s.kind===169){const f=s.parent.parameters.indexOf(s),p=f>0?s.parent.parameters[f-1]:void 0,E=u.text,v=p?Hi(gv(E,gs(E,p.end+1,!1,!0)),W_(E,t.pos)):gv(E,gs(E,t.pos,!1,!0));return v&&v.length&&$et(Cr(v),u)}const d=s&&y0e(s,u);return!!L(d,f=>$et(f,u))}function s1e(t){const u=()=>H.fail("Diagnostic emitted without context");let s=u,d=!0,f=!1,p=!1,E=!1,v=!1,b,B,k,T,M,z;const{factory:j}=t,J=t.getEmitHost(),K={trackSymbol:Ae,reportInaccessibleThisError:Ye,reportInaccessibleUniqueSymbolError:Je,reportCyclicStructureError:ft,reportPrivateInBaseOfClassExpression:De,reportLikelyUnsafeImportRequiredError:Ve,reportTruncationError:We,moduleResolverHost:J,trackReferencedAmbientModule:fe,trackExternalModuleSymbolOfImportTypeNode:Ge,reportNonlocalAugmentation:Gt,reportNonSerializableProperty:Yt};let Y,oe,se,ge,ae,Ce;const ne=t.getEmitResolver(),ve=t.getCompilerOptions(),{noResolve:Se,stripInternal:Ne}=ve;return st;function pe(me){if(me){B=B||new Set;for(const ni of me)B.add(ni)}}function fe(me,ni){const vi=ne.getTypeReferenceDirectivesForSymbol(ni,67108863);if(S(vi))return pe(vi);const mt=zn(me);ge.set(M1(mt),mt)}function xe(me){const ni=Z8(me),vi=ni&&ne.tryFindAmbientModule(ni);if(vi!=null&&vi.declarations)for(const mt of vi.declarations)N1(mt)&&zn(mt)!==se&&fe(mt,vi)}function Be(me){if(me.accessibility===0){if(me&&me.aliasesToMakeVisible)if(!k)k=me.aliasesToMakeVisible;else for(const ni of me.aliasesToMakeVisible)xa(k,ni)}else{const ni=s(me);if(ni)return ni.typeName?t.addDiagnostic(Su(me.errorNode||ni.errorNode,ni.diagnosticMessage,Hc(ni.typeName),me.errorSymbolName,me.errorModuleName)):t.addDiagnostic(Su(me.errorNode||ni.errorNode,ni.diagnosticMessage,me.errorSymbolName,me.errorModuleName)),!0}return!1}function Ge(me){f||(z||(z=[])).push(me)}function Ae(me,ni,vi){if(me.flags&262144)return!1;const mt=Be(ne.isSymbolAccessible(me,ni,vi,!0));return pe(ne.getTypeReferenceDirectivesForSymbol(me,vi)),mt}function De(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.Property_0_of_exported_class_expression_may_not_be_private_or_protected,me))}function Ke(){return Y?b0(Y):oe&&Za(oe)?b0(Za(oe)):oe&&tc(oe)?oe.isExportEquals?"export=":"default":"(Missing)"}function Je(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ke(),"unique symbol"))}function ft(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,Ke()))}function Ye(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,Ke(),"this"))}function Ve(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,Ke(),me))}function We(){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Gt(me,ni,vi){var mt;const Ot=(mt=ni.declarations)==null?void 0:mt.find($i=>zn($i)===me),Ei=ti(vi.declarations,$i=>zn($i)!==me);if(Ot&&Ei)for(const $i of Ei)t.addDiagnostic(Es(Su($i,F.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Su(Ot,F.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Yt(me){(Y||oe)&&t.addDiagnostic(Su(Y||oe,F.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,me))}function Ie(me,ni){const vi=s;s=Ot=>Ot.errorNode&&mQ(Ot.errorNode)?h5(Ot.errorNode)(Ot):{diagnosticMessage:Ot.errorModuleName?F.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:F.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ot.errorNode||me};const mt=ne.getDeclarationStatementsForSourceFile(me,Tk,K,ni);return s=vi,mt}function st(me){if(me.kind===312&&me.isDeclarationFile)return me;if(me.kind===313){f=!0,ge=new Map,ae=new Map;let te=!1;const we=j.createBundle(Vt(me.sourceFiles,X=>{if(X.isDeclarationFile)return;if(te=te||X.hasNoDefaultLib,se=X,b=X,k=void 0,M=!1,T=new Map,s=u,E=!1,v=!1,St(X,ge),It(X,ae),cm(X)||W4(X)){p=!1,d=!1;const Ct=gh(X)?j.createNodeArray(Ie(X,!0)):kn(X.statements,oa,na);return j.updateSourceFile(X,[j.createModuleDeclaration([j.createModifier(138)],j.createStringLiteral(Pq(t.getEmitHost(),X)),j.createModuleBlock(Pt(j.createNodeArray(Dn(Ct)),X.statements)))],!0,[],[],!1,[])}d=!0;const it=gh(X)?j.createNodeArray(Ie(X)):kn(X.statements,oa,na);return j.updateSourceFile(X,Dn(it),!0,[],[],!1,[])}),qi(me.prepends,X=>{if(X.kind===315){const it=nce(X,"dts",Ne);return te=te||!!it.hasNoDefaultLib,St(it,ge),pe(Vt(it.typeReferenceDirectives,Ct=>[Ct.fileName,Ct.resolutionMode])),It(it,ae),it}return X}));we.syntheticFileReferences=[],we.syntheticTypeReferences=Qi(),we.syntheticLibReferences=$i(),we.hasNoDefaultLib=te;const de=lr(q1(CM(me,J,!0).declarationFilePath)),je=le(we.syntheticFileReferences,de);return ge.forEach(je),we}d=!0,E=!1,v=!1,b=me,se=me,s=u,f=!1,p=!1,M=!1,k=void 0,T=new Map,B=void 0,ge=St(se,new Map),ae=It(se,new Map);const ni=[],vi=lr(q1(CM(me,J,!0).declarationFilePath)),mt=le(ni,vi);let Ot;if(gh(se))Ot=j.createNodeArray(Ie(me)),ge.forEach(mt),Ce=ti(Ot,tk);else{const te=kn(me.statements,oa,na);Ot=Pt(j.createNodeArray(Dn(te)),me.statements),ge.forEach(mt),Ce=ti(Ot,tk),wc(me)&&(!p||E&&!v)&&(Ot=Pt(j.createNodeArray([...Ot,NV(j)]),Ot))}const Ei=j.updateSourceFile(me,Ot,!0,ni,Qi(),me.hasNoDefaultLib,$i());return Ei.exportedModulesFromDeclarationEmit=z,Ei;function $i(){return ga(ae.keys(),te=>({fileName:te,pos:-1,end:-1}))}function Qi(){return B?qi(ga(B.keys()),on):[]}function on([te,we]){if(Ce){for(const de of Ce)if(E1(de)&&r_(de.moduleReference)){const je=de.moduleReference.expression;if(t0(je)&&je.text===te)return}else if(Sd(de)&&us(de.moduleSpecifier)&&de.moduleSpecifier.text===te)return}return{fileName:te,pos:-1,end:-1,...we?{resolutionMode:we}:void 0}}function le(te,we){return de=>{let je;if(de.isDeclarationFile)je=de.fileName;else{if(f&&kt(me.sourceFiles,de))return;const X=CM(de,J,!0);je=X.declarationFilePath||X.jsFilePath||de.fileName}if(je){const X=qY(ve,se,J0(we,J.getCurrentDirectory(),J.getCanonicalFileName),J0(je,J.getCurrentDirectory(),J.getCanonicalFileName),J);if(!om(X)){pe([[X,void 0]]);return}let it=i7(we,je,J.getCurrentDirectory(),J.getCanonicalFileName,!1);if(Pa(it,"./")&&t7(it)&&(it=it.substring(2)),Pa(it,"node_modules/")||q7(it))return;te.push({pos:-1,end:-1,fileName:it})}}}}function St(me,ni){return Se||!yk(me)&&gh(me)||L(me.referencedFiles,vi=>{const mt=J.getSourceFileFromReference(me,vi);mt&&ni.set(M1(mt),mt)}),ni}function It(me,ni){return L(me.libReferenceDirectives,vi=>{J.getLibFileFromReference(vi)&&ni.set($g(vi.fileName),!0)}),ni}function ei(me){if(me.kind===80)return me;return me.kind===207?j.updateArrayBindingPattern(me,kn(me.elements,ni,jU)):j.updateObjectBindingPattern(me,kn(me.elements,ni,js));function ni(vi){return vi.kind===232?vi:(vi.propertyName&&Ps(vi.propertyName)&&ec(vi.propertyName.expression)&&yr(vi.propertyName.expression,b),vi.propertyName&&at(vi.propertyName)&&at(vi.name)&&!vi.symbol.isReferenced&&!wq(vi.propertyName)?j.updateBindingElement(vi,vi.dotDotDotToken,void 0,vi.propertyName,Ut(vi)?vi.initializer:void 0):j.updateBindingElement(vi,vi.dotDotDotToken,vi.propertyName,ei(vi.name),Ut(vi)?vi.initializer:void 0))}}function ht(me,ni,vi){let mt;M||(mt=s,s=h5(me));const Ot=j.updateParameterDeclaration(me,ZMt(j,me,ni),me.dotDotDotToken,ei(me.name),ne.isOptionalParameter(me)?me.questionToken||j.createToken(58):void 0,ji(me,vi||me.type,!0),Ni(me));return M||(s=mt),Ot}function Ut(me){return YMt(me)&&ne.isLiteralConstDeclaration(Ua(me))}function Ni(me){if(Ut(me))return ne.createLiteralConstValue(Ua(me),K)}function ji(me,ni,vi){if(!vi&&Rf(me,2)||Ut(me))return;const mt=me.kind===169&&(ne.isRequiredInitializedParameter(me)||ne.isOptionalUninitializedParameterProperty(me));if(ni&&!mt)return yt(ni,Cn,Xr);if(!Ua(me))return ni?yt(ni,Cn,Xr):j.createKeywordTypeNode(133);if(me.kind===178)return j.createKeywordTypeNode(133);Y=me.name;let Ot;if(M||(Ot=s,s=h5(me)),me.kind===260||me.kind===208)return Ei(ne.createTypeOfDeclaration(me,b,Tk,K));if(me.kind===169||me.kind===172||me.kind===171)return Mm(me)||!me.initializer?Ei(ne.createTypeOfDeclaration(me,b,Tk,K,mt)):Ei(ne.createTypeOfDeclaration(me,b,Tk,K,mt)||ne.createTypeOfExpression(me.initializer,b,Tk,K));return Ei(ne.createReturnTypeOfSignatureDeclaration(me,b,Tk,K));function Ei($i){return Y=void 0,M||(s=Ot),$i||j.createKeywordTypeNode(133)}}function xn(me){switch(me=Ua(me),me.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(me);case 260:return!an(me);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Jn(me){var ni;if(me.body)return!0;const vi=(ni=me.symbol.declarations)==null?void 0:ni.filter(mt=>ed(mt)&&!mt.body);return!vi||vi.indexOf(me)===vi.length-1}function an(me){return Fd(me)?!1:So(me.name)?Oe(me.name.elements,an):ne.isDeclarationVisible(me)}function Pi(me,ni,vi){if(Rf(me,2))return j.createNodeArray();const mt=Vt(ni,Ot=>ht(Ot,vi));return mt?j.createNodeArray(mt,ni.hasTrailingComma):j.createNodeArray()}function Ai(me,ni){let vi;if(!ni){const mt=T2(me);mt&&(vi=[ht(mt)])}if(jf(me)){let mt;if(!ni){const Ot=hP(me);if(Ot){const Ei=gt(me,ne.getAllAccessorDeclarations(me));mt=ht(Ot,void 0,Ei)}}mt||(mt=j.createParameterDeclaration(void 0,void 0,"value")),vi=xi(vi,mt)}return j.createNodeArray(vi||_t)}function Zu(me,ni){return Rf(me,2)?void 0:kn(ni,Cn,Bl)}function aa(me){return la(me)||jp(me)||_c(me)||Wc(me)||xh(me)||Co(me)||Ek(me)||JP(me)}function yr(me,ni){const vi=ne.isEntityNameVisible(me,ni);Be(vi),pe(ne.getTypeReferenceDirectivesForEntityName(me))}function Ba(me,ni){return lm(me)&&lm(ni)&&(me.jsDoc=ni.jsDoc),Bc(me,nE(ni))}function bt(me,ni){if(ni){if(p=p||me.kind!==267&&me.kind!==205,t0(ni))if(f){const vi=Eye(t.getEmitHost(),ne,me);if(vi)return j.createStringLiteral(vi)}else{const vi=ne.getSymbolOfExternalModuleSpecifier(ni);vi&&(z||(z=[])).push(vi)}return ni}}function jn(me){if(ne.isDeclarationVisible(me))if(me.moduleReference.kind===283){const ni=XN(me);return j.updateImportEqualsDeclaration(me,me.modifiers,me.isTypeOnly,me.name,j.updateExternalModuleReference(me.moduleReference,bt(me,ni)))}else{const ni=s;return s=h5(me),yr(me.moduleReference,b),s=ni,me}}function Ln(me){if(!me.importClause)return j.updateImportDeclaration(me,me.modifiers,me.importClause,bt(me,me.moduleSpecifier),Si(me.attributes));const ni=me.importClause&&me.importClause.name&&ne.isDeclarationVisible(me.importClause)?me.importClause.name:void 0;if(!me.importClause.namedBindings)return ni&&j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,void 0),bt(me,me.moduleSpecifier),Si(me.attributes));if(me.importClause.namedBindings.kind===274){const mt=ne.isDeclarationVisible(me.importClause.namedBindings)?me.importClause.namedBindings:void 0;return ni||mt?j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,mt),bt(me,me.moduleSpecifier),Si(me.attributes)):void 0}const vi=qi(me.importClause.namedBindings.elements,mt=>ne.isDeclarationVisible(mt)?mt:void 0);if(vi&&vi.length||ni)return j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,vi&&vi.length?j.updateNamedImports(me.importClause.namedBindings,vi):void 0),bt(me,me.moduleSpecifier),Si(me.attributes));if(ne.isImportRequiredByAugmentation(me))return j.updateImportDeclaration(me,me.modifiers,void 0,bt(me,me.moduleSpecifier),Si(me.attributes))}function Si(me){const ni=qB(me);return me&&ni!==void 0?me:void 0}function Dn(me){for(;S(k);){const vi=k.shift();if(!iq(vi))return H.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${H.formatSyntaxKind(vi.kind)}`);const mt=d;d=vi.parent&&la(vi.parent)&&!(wc(vi.parent)&&f);const Ot=Ta(vi);d=mt,T.set(M1(vi),Ot)}return kn(me,ni,na);function ni(vi){if(iq(vi)){const mt=M1(vi);if(T.has(mt)){const Ot=T.get(mt);return T.delete(mt),Ot&&((Ha(Ot)?Oe(Ot,VU):VU(Ot))&&(E=!0),la(vi.parent)&&(Ha(Ot)?Oe(Ot,YO):YO(Ot))&&(p=!0)),Ot}}return vi}}function Cn(me){if(Mt(me)||Q1(me)&&(xn(me)||Ix(me)&&!ne.isLateBound(Ua(me)))||Co(me)&&ne.isImplementationOfOverload(me)||lFe(me))return;let ni;aa(me)&&(ni=b,b=me);const vi=s,mt=mQ(me),Ot=M;let Ei=(me.kind===187||me.kind===200)&&me.parent.kind!==265;if((dc(me)||n3(me))&&Rf(me,2))return me.symbol&&me.symbol.declarations&&me.symbol.declarations[0]!==me?void 0:$i(j.createPropertyDeclaration(Pe(me),me.name,void 0,void 0,void 0));if(mt&&!M&&(s=h5(me)),bB(me)&&yr(me.exprName,b),Ei&&(M=!0),XMt(me))switch(me.kind){case 233:{(sm(me.expression)||ec(me.expression))&&yr(me.expression,b);const Qi=rn(me,Cn,t);return $i(j.updateExpressionWithTypeArguments(Qi,Qi.expression,Qi.typeArguments))}case 183:{yr(me.typeName,b);const Qi=rn(me,Cn,t);return $i(j.updateTypeReferenceNode(Qi,Qi.typeName,Qi.typeArguments))}case 180:return $i(j.updateConstructSignature(me,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 176:{const Qi=j.createConstructorDeclaration(Pe(me),Pi(me,me.parameters,0),void 0);return $i(Qi)}case 174:{if(ea(me.name))return $i(void 0);const Qi=j.createMethodDeclaration(Pe(me),void 0,me.name,me.questionToken,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type),void 0);return $i(Qi)}case 177:{if(ea(me.name))return $i(void 0);const Qi=gt(me,ne.getAllAccessorDeclarations(me));return $i(j.updateGetAccessorDeclaration(me,Pe(me),me.name,Ai(me,Rf(me,2)),ji(me,Qi),void 0))}case 178:return ea(me.name)?$i(void 0):$i(j.updateSetAccessorDeclaration(me,Pe(me),me.name,Ai(me,Rf(me,2)),void 0));case 172:return ea(me.name)?$i(void 0):$i(j.updatePropertyDeclaration(me,Pe(me),me.name,me.questionToken,ji(me,me.type),Ni(me)));case 171:return ea(me.name)?$i(void 0):$i(j.updatePropertySignature(me,Pe(me),me.name,me.questionToken,ji(me,me.type)));case 173:return ea(me.name)?$i(void 0):$i(j.updateMethodSignature(me,Pe(me),me.name,me.questionToken,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 179:return $i(j.updateCallSignature(me,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type)));case 181:return $i(j.updateIndexSignature(me,Pe(me),Pi(me,me.parameters),yt(me.type,Cn,Xr)||j.createKeywordTypeNode(133)));case 260:return So(me.name)?bo(me.name):(Ei=!0,M=!0,$i(j.updateVariableDeclaration(me,me.name,void 0,ji(me,me.type),Ni(me))));case 168:return tu(me)&&(me.default||me.constraint)?$i(j.updateTypeParameterDeclaration(me,me.modifiers,me.name,void 0,void 0)):$i(rn(me,Cn,t));case 194:{const Qi=yt(me.checkType,Cn,Xr),on=yt(me.extendsType,Cn,Xr),le=b;b=me.trueType;const te=yt(me.trueType,Cn,Xr);b=le;const we=yt(me.falseType,Cn,Xr);return H.assert(Qi),H.assert(on),H.assert(te),H.assert(we),$i(j.updateConditionalTypeNode(me,Qi,on,te,we))}case 184:return $i(j.updateFunctionTypeNode(me,kn(me.typeParameters,Cn,Bl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Xr))));case 185:return $i(j.updateConstructorTypeNode(me,Pe(me),kn(me.typeParameters,Cn,Bl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Xr))));case 205:return zx(me)?(xe(me),$i(j.updateImportTypeNode(me,j.updateLiteralTypeNode(me.argument,bt(me,me.argument.literal)),me.attributes,me.qualifier,kn(me.typeArguments,Cn,Xr),me.isTypeOf))):$i(me);default:H.assertNever(me,`Attempted to process unhandled node kind: ${H.formatSyntaxKind(me.kind)}`)}return yB(me)&&s0(se,me.pos).line===s0(se,me.end).line&&Zn(me,1),$i(rn(me,Cn,t));function $i(Qi){return Qi&&mt&&Ix(me)&&Et(me),aa(me)&&(b=ni),mt&&!M&&(s=vi),Ei&&(M=Ot),Qi===me?Qi:Qi&&su(Ba(Qi,me),me)}}function tu(me){return me.parent.kind===174&&Rf(me.parent,2)}function oa(me){if(!QMt(me)||Mt(me))return;switch(me.kind){case 278:return la(me.parent)&&(p=!0),v=!0,xe(me),j.updateExportDeclaration(me,me.modifiers,me.isTypeOnly,me.exportClause,bt(me,me.moduleSpecifier),Si(me.attributes));case 277:{if(la(me.parent)&&(p=!0),v=!0,me.expression.kind===80)return me;{const vi=j.createUniqueName("_default",16);s=()=>({diagnosticMessage:F.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:me}),oe=me;const mt=j.createVariableDeclaration(vi,void 0,ne.createTypeOfExpression(me.expression,me,Tk,K),void 0);oe=void 0;const Ot=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([mt],2));return Ba(Ot,me),EV(me),[Ot,j.updateExportAssignment(me,me.modifiers,vi)]}}}const ni=Ta(me);return T.set(M1(me),ni),me}function Da(me){if(E1(me)||Rf(me,2048)||!Hp(me))return me;const ni=j.createModifiersFromModifierFlags(Eh(me)&131039);return j.replaceModifiers(me,ni)}function ra(me,ni,vi,mt){const Ot=j.updateModuleDeclaration(me,ni,vi,mt);if(N1(Ot)||Ot.flags&32)return Ot;const Ei=j.createModuleDeclaration(Ot.modifiers,Ot.name,Ot.body,Ot.flags|32);return su(Ei,Ot),Pt(Ei,Ot),Ei}function Ta(me){if(k)for(;gO(k,me););if(Mt(me))return;switch(me.kind){case 271:{const $i=jn(me);return $i&&xe(me),$i}case 272:{const $i=Ln(me);return $i&&xe(me),$i}}if(Q1(me)&&xn(me)||Co(me)&&ne.isImplementationOfOverload(me))return;let ni;aa(me)&&(ni=b,b=me);const vi=mQ(me),mt=s;vi&&(s=h5(me));const Ot=d;switch(me.kind){case 265:{d=!1;const $i=Ei(j.updateTypeAliasDeclaration(me,Pe(me),me.name,kn(me.typeParameters,Cn,Bl),H.checkDefined(yt(me.type,Cn,Xr))));return d=Ot,$i}case 264:return Ei(j.updateInterfaceDeclaration(me,Pe(me),me.name,Zu(me,me.typeParameters),ii(me.heritageClauses),kn(me.members,Cn,Zy)));case 262:{const $i=Ei(j.updateFunctionDeclaration(me,Pe(me),void 0,me.name,Zu(me,me.typeParameters),Pi(me,me.parameters),ji(me,me.type),void 0));if($i&&ne.isExpandoFunctionDeclaration(me)&&Jn(me)){const Qi=ne.getPropertiesOfContainerFunction(me),on=a_.createModuleDeclaration(void 0,$i.name||j.createIdentifier("_default"),j.createModuleBlock([]),32);ks(on,b),on.locals=Vo(Qi),on.symbol=Qi[0].parent;const le=[];let te=qi(Qi,Ct=>{if(!EZ(Ct.valueDeclaration))return;const ct=Qr(Ct.escapedName);if(!Lm(ct,99))return;s=h5(Ct.valueDeclaration);const Qt=ne.createTypeOfDeclaration(Ct.valueDeclaration,on,Tk,K);s=mt;const Li=m7(ct),Ui=Li?j.getGeneratedNameForNode(Ct.valueDeclaration):j.createIdentifier(ct);Li&&le.push([Ui,ct]);const Sn=j.createVariableDeclaration(Ui,void 0,Qt,void 0);return j.createVariableStatement(Li?void 0:[j.createToken(95)],j.createVariableDeclarationList([Sn]))});le.length?te.push(j.createExportDeclaration(void 0,!1,j.createNamedExports(Vt(le,([Ct,ct])=>j.createExportSpecifier(!1,Ct,ct))))):te=qi(te,Ct=>j.replaceModifiers(Ct,0));const we=j.createModuleDeclaration(Pe(me),me.name,j.createModuleBlock(te),32);if(!Rf($i,2048))return[$i,we];const de=j.createModifiersFromModifierFlags(Eh($i)&-2081|128),je=j.updateFunctionDeclaration($i,de,void 0,$i.name,$i.typeParameters,$i.parameters,$i.type,void 0),X=j.updateModuleDeclaration(we,de,we.name,we.body),it=j.createExportAssignment(void 0,!1,we.name);return la(me.parent)&&(p=!0),v=!0,[je,X,it]}else return $i}case 267:{d=!1;const $i=me.body;if($i&&$i.kind===268){const Qi=E,on=v;v=!1,E=!1;const le=kn($i.statements,oa,na);let te=Dn(le);me.flags&33554432&&(E=!1),!Yg(me)&&!Xt(te)&&!v&&(E?te=j.createNodeArray([...te,NV(j)]):te=kn(te,Da,na));const we=j.updateModuleBlock($i,te);d=Ot,E=Qi,v=on;const de=Pe(me);return Ei(ra(me,de,v2(me)?bt(me,me.name):me.name,we))}else{d=Ot;const Qi=Pe(me);d=!1,yt($i,oa);const on=M1($i),le=T.get(on);return T.delete(on),Ei(ra(me,Qi,me.name,le))}}case 263:{Y=me.name,oe=me;const $i=j.createNodeArray(Pe(me)),Qi=Zu(me,me.typeParameters),on=X_(me);let le;if(on){const it=s;le=Dr(ju(on.parameters,Ct=>{if(!Yu(Ct,31)||Mt(Ct))return;if(s=h5(Ct),Ct.name.kind===80)return Ba(j.createPropertyDeclaration(Pe(Ct),Ct.name,Ct.questionToken,ji(Ct,Ct.type),Ni(Ct)),Ct);return ct(Ct.name);function ct(Qt){let Li;for(const Ui of Qt.elements)Fd(Ui)||(So(Ui.name)&&(Li=Hi(Li,ct(Ui.name))),Li=Li||[],Li.push(j.createPropertyDeclaration(Pe(Ct),Ui.name,void 0,ji(Ui,void 0),void 0)));return Li}})),s=it}const we=Oe(me.members,it=>!!it.name&&ea(it.name))?[j.createPropertyDeclaration(void 0,j.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,de=Hi(Hi(we,le),kn(me.members,Cn,Zd)),je=j.createNodeArray(de),X=Qg(me);if(X&&!ec(X.expression)&&X.expression.kind!==106){const it=me.name?Qr(me.name.escapedText):"default",Ct=j.createUniqueName(`${it}_base`,16);s=()=>({diagnosticMessage:F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:X,typeName:me.name});const ct=j.createVariableDeclaration(Ct,void 0,ne.createTypeOfExpression(X.expression,me,Tk,K),void 0),Qt=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([ct],2)),Li=j.createNodeArray(Vt(me.heritageClauses,Ui=>{if(Ui.token===96){const Sn=s;s=h5(Ui.types[0]);const du=j.updateHeritageClause(Ui,Vt(Ui.types,Ru=>j.updateExpressionWithTypeArguments(Ru,Ct,kn(Ru.typeArguments,Cn,Xr))));return s=Sn,du}return j.updateHeritageClause(Ui,kn(j.createNodeArray(ti(Ui.types,Sn=>ec(Sn.expression)||Sn.expression.kind===106)),Cn,c5))}));return[Qt,Ei(j.updateClassDeclaration(me,$i,me.name,Qi,Li,je))]}else{const it=ii(me.heritageClauses);return Ei(j.updateClassDeclaration(me,$i,me.name,Qi,it,je))}}case 243:return Ei(Yo(me));case 266:return Ei(j.updateEnumDeclaration(me,j.createNodeArray(Pe(me)),me.name,j.createNodeArray(qi(me.members,$i=>{if(Mt($i))return;const Qi=ne.getConstantValue($i);return Ba(j.updateEnumMember($i,$i.name,Qi!==void 0?typeof Qi=="string"?j.createStringLiteral(Qi):j.createNumericLiteral(Qi):void 0),$i)}))))}return H.assertNever(me,`Unhandled top-level node in declaration emit: ${H.formatSyntaxKind(me.kind)}`);function Ei($i){return aa(me)&&(b=ni),vi&&(s=mt),me.kind===267&&(d=Ot),$i===me?$i:(oe=void 0,Y=void 0,$i&&su(Ba($i,me),me))}}function Yo(me){if(!L(me.declarationList.declarations,an))return;const ni=kn(me.declarationList.declarations,Cn,ua);if(!S(ni))return;const vi=j.createNodeArray(Pe(me));let mt;return cj(me.declarationList)||lj(me.declarationList)?(mt=j.createVariableDeclarationList(ni,2),su(mt,me.declarationList),Pt(mt,me.declarationList),Bc(mt,me.declarationList)):mt=j.updateVariableDeclarationList(me.declarationList,ni),j.updateVariableStatement(me,vi,mt)}function bo(me){return Va(qi(me.elements,ni=>Qe(ni)))}function Qe(me){if(me.kind!==232&&me.name)return an(me)?So(me.name)?bo(me.name):j.createVariableDeclaration(me.name,void 0,ji(me,void 0),void 0):void 0}function Et(me){let ni;M||(ni=s,s=k7e(me)),Y=me.name,H.assert(ne.isLateBound(Ua(me)));const mt=me.name.expression;yr(mt,b),M||(s=ni),Y=void 0}function Mt(me){return!!Ne&&!!me&&o1e(me,se)}function qt(me){return tc(me)||Gc(me)}function Xt(me){return Oe(me,qt)}function Pe(me){const ni=Eh(me),vi=et(me);return ni===vi?dH(me.modifiers,mt=>ur(mt,Qo),Qo):j.createModifiersFromModifierFlags(vi)}function et(me){let ni=130030,vi=d&&!qMt(me)?128:0;const mt=me.parent.kind===312;return(!mt||f&&mt&&wc(me.parent))&&(ni^=128,vi=0),Uet(me,ni,vi)}function gt(me,ni){let vi=A7e(me);return!vi&&me!==ni.firstAccessor&&(vi=A7e(ni.firstAccessor),s=h5(ni.firstAccessor)),!vi&&ni.secondAccessor&&me!==ni.secondAccessor&&(vi=A7e(ni.secondAccessor),s=h5(ni.secondAccessor)),vi}function ii(me){return j.createNodeArray(ti(Vt(me,ni=>j.updateHeritageClause(ni,kn(j.createNodeArray(ti(ni.types,vi=>ec(vi.expression)||ni.token===96&&vi.expression.kind===106)),Cn,c5))),ni=>ni.types&&!!ni.types.length))}}function qMt(t){return t.kind===264}function ZMt(t,u,s,d){return t.createModifiersFromModifierFlags(Uet(u,s,d))}function Uet(t,u=131070,s=0){let d=Eh(t)&u|s;return d&2048&&!(d&32)&&(d^=32),d&2048&&d&128&&(d^=128),d}function A7e(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function YMt(t){switch(t.kind){case 172:case 171:return!Rf(t,2);case 169:case 260:return!0}return!1}function QMt(t){switch(t.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function XMt(t){switch(t.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Tk,ezt=o({"src/compiler/transformers/declarations.ts"(){Bo(),NAe(),Tk=531469}});function tzt(t){switch(t){case 99:case 7:case 6:case 5:return a1e;case 4:return b7e;case 100:case 199:return y7e;default:return r1e}}function l1e(t,u,s){return{scriptTransformers:izt(t,u,s),declarationTransformers:nzt(u)}}function izt(t,u,s){if(s)return _t;const d=Os(t),f=m1(t),p=eV(t),E=[];return yn(E,u&&Vt(u.before,Zet)),E.push(u7e),t.experimentalDecorators&&E.push(o7e),iZ(t)&&E.push(_7e),d<99&&E.push(m7e),!t.experimentalDecorators&&(d<99||!p)&&E.push(s7e),E.push(r7e),d<8&&E.push(f7e),d<7&&E.push(h7e),d<6&&E.push(d7e),d<5&&E.push(c7e),d<4&&E.push(l7e),d<3&&E.push(D7e),d<2&&(E.push(x7e),E.push(C7e)),E.push(tzt(f)),d<1&&E.push(v7e),yn(E,u&&Vt(u.after,Zet)),E}function nzt(t){const u=[];return u.push(s1e),yn(u,t&&Vt(t.afterDeclarations,rzt)),u}function uzt(t){return u=>kce(u)?t.transformBundle(u):t.transformSourceFile(u)}function qet(t,u){return s=>{const d=t(s);return typeof d=="function"?u(s,d):uzt(d)}}function Zet(t){return qet(t,Kp)}function rzt(t){return qet(t,(u,s)=>s)}function xM(t,u){return u}function mH(t,u,s){s(t,u)}function pH(t,u,s,d,f,p,E){var v,b;const B=new Array(363);let k,T,M,z=0,j=[],J=[],K=[],Y=[],oe=0,se=!1,ge=[],ae=0,Ce,ne,ve=xM,Se=mH,Ne=0;const pe=[],fe={factory:s,getCompilerOptions:()=>d,getEmitResolver:()=>t,getEmitHost:()=>u,getEmitHelperFactory:Mh(()=>$ke(fe)),startLexicalEnvironment:Ie,suspendLexicalEnvironment:st,resumeLexicalEnvironment:St,endLexicalEnvironment:It,setLexicalEnvironmentFlags:ei,getLexicalEnvironmentFlags:ht,hoistVariableDeclaration:We,hoistFunctionDeclaration:Gt,addInitializationStatement:Yt,startBlockScope:Ut,endBlockScope:Ni,addBlockScopedVariable:ji,requestEmitHelper:xn,readEmitHelpers:Jn,enableSubstitution:De,enableEmitNotification:ft,isSubstitutionEnabled:Ke,isEmitNotificationEnabled:Ye,get onSubstituteNode(){return ve},set onSubstituteNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),ve=Pi},get onEmitNode(){return Se},set onEmitNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),Se=Pi},addDiagnostic(Pi){pe.push(Pi)}};for(const Pi of f)oce(zn(Ua(Pi)));ul("beforeTransform");const xe=p.map(Pi=>Pi(fe)),Be=Pi=>{for(const Ai of xe)Pi=Ai(Pi);return Pi};Ne=1;const Ge=[];for(const Pi of f)(v=Gn)==null||v.push(Gn.Phase.Emit,"transformNodes",Pi.kind===312?{path:Pi.path}:{kind:Pi.kind,pos:Pi.pos,end:Pi.end}),Ge.push((E?Be:Ae)(Pi)),(b=Gn)==null||b.pop();return Ne=2,ul("afterTransform"),Tm("transformTime","beforeTransform","afterTransform"),{transformed:Ge,substituteNode:Je,emitNodeWithNotification:Ve,isEmitNotificationEnabled:Ye,dispose:an,diagnostics:pe};function Ae(Pi){return Pi&&(!la(Pi)||!Pi.isDeclarationFile)?Be(Pi):Pi}function De(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=1}function Ke(Pi){return(B[Pi.kind]&1)!==0&&(bs(Pi)&8)===0}function Je(Pi,Ai){return H.assert(Ne<3,"Cannot substitute a node after the result is disposed."),Ai&&Ke(Ai)&&ve(Pi,Ai)||Ai}function ft(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=2}function Ye(Pi){return(B[Pi.kind]&2)!==0||(bs(Pi)&4)!==0}function Ve(Pi,Ai,Zu){H.assert(Ne<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Ai&&(Ye(Ai)?Se(Pi,Ai,Zu):Zu(Pi,Ai))}function We(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed.");const Ai=Zn(s.createVariableDeclaration(Pi),128);k?k.push(Ai):k=[Ai],z&1&&(z|=2)}function Gt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Zn(Pi,2097152),T?T.push(Pi):T=[Pi]}function Yt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Zn(Pi,2097152),M?M.push(Pi):M=[Pi]}function Ie(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended."),j[oe]=k,J[oe]=T,K[oe]=M,Y[oe]=z,oe++,k=void 0,T=void 0,M=void 0,z=0}function st(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is already suspended."),se=!0}function St(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(se,"Lexical environment is not suspended."),se=!1}function It(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended.");let Pi;if(k||T||M){if(T&&(Pi=[...T]),k){const Ai=s.createVariableStatement(void 0,s.createVariableDeclarationList(k));Zn(Ai,2097152),Pi?Pi.push(Ai):Pi=[Ai]}M&&(Pi?Pi=[...Pi,...M]:Pi=[...M])}return oe--,k=j[oe],T=J[oe],M=K[oe],z=Y[oe],oe===0&&(j=[],J=[],K=[],Y=[]),Pi}function ei(Pi,Ai){z=Ai?z|Pi:z&~Pi}function ht(){return z}function Ut(){H.assert(Ne>0,"Cannot start a block scope during initialization."),H.assert(Ne<2,"Cannot start a block scope after transformation has completed."),ge[ae]=Ce,ae++,Ce=void 0}function Ni(){H.assert(Ne>0,"Cannot end a block scope during initialization."),H.assert(Ne<2,"Cannot end a block scope after transformation has completed.");const Pi=Oe(Ce)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(Ce.map(Ai=>s.createVariableDeclaration(Ai)),1))]:void 0;return ae--,Ce=ge[ae],ae===0&&(ge=[]),Pi}function ji(Pi){H.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(Ce||(Ce=[])).push(Pi)}function xn(Pi){if(H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),H.assert(!Pi.scoped,"Cannot request a scoped emit helper."),Pi.dependencies)for(const Ai of Pi.dependencies)xn(Ai);ne=xi(ne,Pi)}function Jn(){H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed.");const Pi=ne;return ne=void 0,Pi}function an(){if(Ne<3){for(const Pi of f)oce(zn(Ua(Pi)));k=void 0,j=void 0,T=void 0,J=void 0,ve=void 0,Se=void 0,ne=void 0,Ne=3}}}var c1e,Dg,azt=o({"src/compiler/transformer.ts"(){Bo(),Wy(),c1e={scriptTransformers:_t,declarationTransformers:_t},Dg={factory:q,getCompilerOptions:()=>({}),getEmitResolver:ho,getEmitHost:ho,getEmitHelperFactory:ho,startLexicalEnvironment:Is,resumeLexicalEnvironment:Is,suspendLexicalEnvironment:Is,endLexicalEnvironment:hv,setLexicalEnvironmentFlags:Is,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Is,hoistFunctionDeclaration:Is,addInitializationStatement:Is,startBlockScope:Is,endBlockScope:hv,addBlockScopedVariable:Is,requestEmitHelper:Is,readEmitHelpers:ho,enableSubstitution:Is,enableEmitNotification:Is,isSubstitutionEnabled:ho,isEmitNotificationEnabled:ho,onSubstituteNode:xM,onEmitNode:mH,addDiagnostic:Is}}});function S7e(t){return Ml(t,".tsbuildinfo")}function d1e(t,u,s,d=!1,f,p){const E=Ha(s)?s:ile(t,s,d),v=t.getCompilerOptions();if(y0(v)){const b=t.getPrependNodes();if(E.length||b.length){const B=q.createBundle(E,b),k=u(CM(B,t,d),B);if(k)return k}}else{if(!f)for(const b of E){const B=u(CM(b,t,d),b);if(B)return B}if(p){const b=f5(v);if(b)return u({buildInfoPath:b},void 0)}}}function f5(t){const u=t.configFilePath;if(!Xj(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=y0(t);let d;if(s)d=_h(s);else{if(!u)return;const f=_h(u);d=t.outDir?t.rootDir?kx(t.outDir,JE(t.rootDir,f,!0)):cr(t.outDir,Ac(f)):f}return d+".tsbuildinfo"}function vM(t,u){const s=y0(t),d=t.emitDeclarationOnly?void 0:s,f=d&&Yet(d,t),p=u||c4(t)?_h(s)+".d.ts":void 0,E=p&&Xq(t)?p+".map":void 0,v=f5(t);return{jsFilePath:d,sourceMapFilePath:f,declarationFilePath:p,declarationMapPath:E,buildInfoPath:v}}function CM(t,u,s){const d=u.getCompilerOptions();if(t.kind===313)return vM(d,s);{const f=_ye(t.fileName,u,pQ(t.fileName,d)),p=W4(t),E=p&&pv(t.fileName,f,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0,v=d.emitDeclarationOnly||E?void 0:f,b=!v||W4(t)?void 0:Yet(v,d),B=s||c4(d)&&!p?Dye(t.fileName,u):void 0,k=B&&Xq(d)?B+".map":void 0;return{jsFilePath:v,sourceMapFilePath:b,declarationFilePath:B,declarationMapPath:k,buildInfoPath:void 0}}}function Yet(t,u){return u.sourceMap&&!u.inlineSourceMap?t+".map":void 0}function pQ(t,u){return Ml(t,".json")?".json":u.jsx===1&&jc(t,[".jsx",".tsx"])?".jsx":jc(t,[".mts",".mjs"])?".mjs":jc(t,[".cts",".cjs"])?".cjs":".js"}function Qet(t,u,s,d,f){return d?kx(d,JE(f?f():kM(u,s),t,s)):t}function bM(t,u,s,d){return wv(Qet(t,u,s,u.options.declarationDir||u.options.outDir,d),Kj(t))}function Xet(t,u,s,d){if(u.options.emitDeclarationOnly)return;const f=Ml(t,".json"),p=wv(Qet(t,u,s,u.options.outDir,d),pQ(t,u.options));return!f||pv(t,p,H.checkDefined(u.options.configFilePath),s)!==0?p:void 0}function ett(){let t;return{addOutput:u,getOutputs:s};function u(d){d&&(t||(t=[])).push(d)}function s(){return t||_t}}function ttt(t,u){const{jsFilePath:s,sourceMapFilePath:d,declarationFilePath:f,declarationMapPath:p,buildInfoPath:E}=vM(t.options,!1);u(s),u(d),u(f),u(p),u(E)}function itt(t,u,s,d,f){if(e1(u))return;const p=Xet(u,t,s,f);if(d(p),!Ml(u,".json")&&(p&&t.options.sourceMap&&d(`${p}.map`),c4(t.options))){const E=bM(u,t,s,f);d(E),t.options.declarationMap&&d(`${E}.map`)}}function yM(t,u,s,d,f){let p;return t.rootDir?(p=$a(t.rootDir,s),f==null||f(t.rootDir)):t.composite&&t.configFilePath?(p=lr(q1(t.configFilePath)),f==null||f(p)):p=P7e(u(),s,d),p&&p[p.length-1]!==rl&&(p+=rl),p}function kM({options:t,fileNames:u},s){return yM(t,()=>ti(u,d=>!(t.noEmitForJsFiles&&jc(d,_B))&&!e1(d)),lr(q1(H.checkDefined(t.configFilePath))),L1(!s))}function gQ(t,u){const{addOutput:s,getOutputs:d}=ett();if(y0(t.options))ttt(t,s);else{const f=Mh(()=>kM(t,u));for(const p of t.fileNames)itt(t,p,u,s,f);s(f5(t.options))}return d()}function ntt(t,u,s){u=$o(u),H.assert(kt(t.fileNames,u),"Expected fileName to be present in command line");const{addOutput:d,getOutputs:f}=ett();return y0(t.options)?ttt(t,d):itt(t,u,s,d),f()}function h1e(t,u){if(y0(t.options)){const{jsFilePath:f,declarationFilePath:p}=vM(t.options,!1);return H.checkDefined(f||p,`project ${t.options.configFilePath} expected to have at least one output`)}const s=Mh(()=>kM(t,u));for(const f of t.fileNames){if(e1(f))continue;const p=Xet(f,t,u,s);if(p)return p;if(!Ml(f,".json")&&c4(t.options))return bM(f,t,u,s)}const d=f5(t.options);return d||H.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function EQ(t,u,s,{scriptTransformers:d,declarationTransformers:f},p,E,v){var b=u.getCompilerOptions(),B=b.sourceMap||b.inlineSourceMap||Xq(b)?[]:void 0,k=b.listEmittedFiles?[]:void 0,T=rB(),M=a5(b),z=Vj(M),{enter:j,exit:J}=Doe("printTime","beforePrint","afterPrint"),K,Y=!1;return j(),d1e(u,oe,ile(u,s,v),v,E,!s),J(),{emitSkipped:Y,diagnostics:T.getDiagnostics(),emittedFiles:k,sourceMaps:B};function oe({jsFilePath:fe,sourceMapFilePath:xe,declarationFilePath:Be,declarationMapPath:Ge,buildInfoPath:Ae},De){var Ke,Je,ft,Ye,Ve,We;let Gt;Ae&&De&&kce(De)&&(Gt=lr($a(Ae,u.getCurrentDirectory())),K={commonSourceDirectory:Yt(u.getCommonSourceDirectory()),sourceFiles:De.sourceFiles.map(Ie=>Yt($a(Ie.fileName,u.getCurrentDirectory())))}),(Ke=Gn)==null||Ke.push(Gn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:fe}),ge(De,fe,xe,Yt),(Je=Gn)==null||Je.pop(),(ft=Gn)==null||ft.push(Gn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Be}),ae(De,Be,Ge,Yt),(Ye=Gn)==null||Ye.pop(),(Ve=Gn)==null||Ve.push(Gn.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ae}),se(K,Ae),(We=Gn)==null||We.pop(),!Y&&k&&(p||(fe&&k.push(fe),xe&&k.push(xe),Ae&&k.push(Ae)),p!==0&&(Be&&k.push(Be),Ge&&k.push(Ge)));function Yt(Ie){return h2(JE(Gt,Ie,u.getCanonicalFileName))}}function se(fe,xe){if(!xe||s||Y)return;if(u.isEmitBlocked(xe)){Y=!0;return}const Be=u.getBuildInfo(fe)||gH(void 0,fe);cP(u,T,xe,B7e(Be),!1,void 0,{buildInfo:Be})}function ge(fe,xe,Be,Ge){if(!fe||p||!xe)return;if(u.isEmitBlocked(xe)||b.noEmit){Y=!0;return}const Ae=pH(t,u,q,b,[fe],d,!1),De={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:b.noEmitHelpers,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,inlineSources:b.inlineSources,extendedDiagnostics:b.extendedDiagnostics,writeBundleFileInfo:!!K,relativeToBuildInfo:Ge},Ke=Gv(De,{hasGlobalName:t.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});H.assert(Ae.transformed.length===1,"Should only see one output from the transform"),ne(xe,Be,Ae,Ke,b),Ae.dispose(),K&&(K.js=Ke.bundleFileInfo)}function ae(fe,xe,Be,Ge){if(!fe||p===0)return;if(!xe){(p||b.emitDeclarationOnly)&&(Y=!0);return}const Ae=la(fe)?[fe]:fe.sourceFiles,De=v?Ae:ti(Ae,T0e),Ke=y0(b)?[q.createBundle(De,la(fe)?void 0:fe.prepends)]:De;p&&!c4(b)&&De.forEach(Ce);const Je=pH(t,u,q,b,Ke,f,!1);if(S(Je.diagnostics))for(const We of Je.diagnostics)T.add(We);const ft={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:!0,module:b.module,target:b.target,sourceMap:!v&&b.declarationMap,inlineSourceMap:b.inlineSourceMap,extendedDiagnostics:b.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!K,recordInternalSection:!!K,relativeToBuildInfo:Ge},Ye=Gv(ft,{hasGlobalName:t.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),Ve=!!Je.diagnostics&&!!Je.diagnostics.length||!!u.isEmitBlocked(xe)||!!b.noEmit;Y=Y||Ve,(!Ve||v)&&(H.assert(Je.transformed.length===1,"Should only see one output from the decl transform"),ne(xe,Be,Je,Ye,{sourceMap:ft.sourceMap,sourceRoot:b.sourceRoot,mapRoot:b.mapRoot,extendedDiagnostics:b.extendedDiagnostics})),Je.dispose(),K&&(K.dts=Ye.bundleFileInfo)}function Ce(fe){if(tc(fe)){fe.expression.kind===80&&t.collectLinkedAliases(fe.expression,!0);return}else if(eh(fe)){t.collectLinkedAliases(fe.propertyName||fe.name,!0);return}ao(fe,Ce)}function ne(fe,xe,Be,Ge,Ae){const De=Be.transformed[0],Ke=De.kind===313?De:void 0,Je=De.kind===312?De:void 0,ft=Ke?Ke.sourceFiles:[Je];let Ye;ve(Ae,De)&&(Ye=jAe(u,Ac(q1(fe)),Se(Ae),Ne(Ae,fe,Je),Ae)),Ke?Ge.writeBundle(Ke,z,Ye):Ge.writeFile(Je,z,Ye);let Ve;if(Ye){B&&B.push({inputSourceFileNames:Ye.getSources(),sourceMap:Ye.toJSON()});const Gt=pe(Ae,Ye,fe,xe,Je);if(Gt&&(z.isAtStartOfLine()||z.rawWrite(M),Ve=z.getTextPos(),z.writeComment(`//# sourceMappingURL=${Gt}`)),xe){const Yt=Ye.toString();cP(u,T,xe,Yt,!1,ft),Ge.bundleFileInfo&&(Ge.bundleFileInfo.mapHash=Nk(Yt,u))}}else z.writeLine();const We=z.getText();cP(u,T,fe,We,!!b.emitBOM,ft,{sourceMapUrlPos:Ve,diagnostics:Be.diagnostics}),Ge.bundleFileInfo&&(Ge.bundleFileInfo.hash=Nk(We,u)),z.clear()}function ve(fe,xe){return(fe.sourceMap||fe.inlineSourceMap)&&(xe.kind!==312||!Ml(xe.fileName,".json"))}function Se(fe){const xe=q1(fe.sourceRoot||"");return xe&&zd(xe)}function Ne(fe,xe,Be){if(fe.sourceRoot)return u.getCommonSourceDirectory();if(fe.mapRoot){let Ge=q1(fe.mapRoot);return Be&&(Ge=lr(Iq(Be.fileName,u,Ge))),WE(Ge)===0&&(Ge=cr(u.getCommonSourceDirectory(),Ge)),Ge}return lr($o(xe))}function pe(fe,xe,Be,Ge,Ae){if(fe.inlineSourceMap){const Ke=xe.toString();return`data:application/json;base64,${Oye(c1,Ke)}`}const De=Ac(q1(H.checkDefined(Ge)));if(fe.mapRoot){let Ke=q1(fe.mapRoot);return Ae&&(Ke=lr(Iq(Ae.fileName,u,Ke))),WE(Ke)===0?(Ke=cr(u.getCommonSourceDirectory(),Ke),encodeURI(i7(lr($o(Be)),cr(Ke,De),u.getCurrentDirectory(),u.getCanonicalFileName,!0))):encodeURI(cr(Ke,De))}return encodeURI(De)}}function gH(t,u){return{bundle:u,program:t,version:_}}function B7e(t){return JSON.stringify(t)}function _Q(t,u){return hle(t,u)}function ozt(t,u,s){var d;const f=H.checkDefined(t.js),p=((d=f.sources)==null?void 0:d.prologues)&&lg(f.sources.prologues,E=>E.file);return t.sourceFiles.map((E,v)=>{const b=p==null?void 0:p.get(v),B=b==null?void 0:b.directives.map(M=>{const z=Pt(q.createStringLiteral(M.expression.text),M.expression),j=Pt(q.createExpressionStatement(z),M);return ks(z,j),j}),k=q.createToken(1),T=q.createSourceFile(B??[],k,0);return T.fileName=JE(s.getCurrentDirectory(),$a(E,u),!s.useCaseSensitiveFileNames()),T.text=(b==null?void 0:b.text)??"",wP(T,0,(b==null?void 0:b.text.length)??0),pB(T.statements,T),wP(k,T.end,0),ks(k,T),T})}function w7e(t,u,s,d){var f,p;(f=Gn)==null||f.push(Gn.Phase.Emit,"emitUsingBuildInfo",{},!0),ul("beforeEmit");const E=szt(t,u,s,d);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),(p=Gn)==null||p.pop(),E}function szt(t,u,s,d){const{buildInfoPath:f,jsFilePath:p,sourceMapFilePath:E,declarationFilePath:v,declarationMapPath:b}=vM(t.options,!1),B=u.getBuildInfo(f,t.options.configFilePath);if(!B||!B.bundle||!B.bundle.js||v&&!B.bundle.dts)return f;const k=u.readFile(H.checkDefined(p));if(!k||Nk(k,u)!==B.bundle.js.hash)return p;const T=E&&u.readFile(E);if(E&&!T||t.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&Nk(T,u)!==B.bundle.js.mapHash)return E;const M=v&&u.readFile(v);if(v&&!M||v&&Nk(M,u)!==B.bundle.dts.hash)return v;const z=b&&u.readFile(b);if(b&&!z||t.options.inlineSourceMap)return b||"inline sourcemap decoding";if(b&&Nk(z,u)!==B.bundle.dts.mapHash)return b;const j=lr($a(f,u.getCurrentDirectory())),J=rce(p,k,E,T,v,M,b,z,f,B,!0),K=[],Y=N1e(t.projectReferences,s,Ce=>u.readFile(Ce),u),oe=ozt(B.bundle,j,u);let se,ge;const ae={getPrependNodes:Mh(()=>[...Y,J]),getCanonicalFileName:u.getCanonicalFileName,getCommonSourceDirectory:()=>$a(B.bundle.commonSourceDirectory,j),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>u.getCurrentDirectory(),getSourceFile:hv,getSourceFileByPath:hv,getSourceFiles:()=>oe,getLibFileFromReference:ho,isSourceFileFromExternalLibrary:cg,getResolvedProjectReferenceToRedirect:hv,getProjectReferenceRedirect:hv,isSourceOfProjectReferenceRedirect:cg,writeFile:(Ce,ne,ve,Se,Ne,pe)=>{switch(Ce){case p:if(k===ne)return;break;case E:if(T===ne)return;break;case f:break;case v:if(M===ne)return;se=ne,ge=pe;break;case b:if(z===ne)return;break;default:H.fail(`Unexpected path: ${Ce}`)}K.push({name:Ce,text:ne,writeByteOrderMark:ve,data:pe})},isEmitBlocked:cg,readFile:Ce=>u.readFile(Ce),fileExists:Ce=>u.fileExists(Ce),useCaseSensitiveFileNames:()=>u.useCaseSensitiveFileNames(),getBuildInfo:Ce=>{const ne=B.program;ne&&se!==void 0&&t.options.composite&&(ne.outSignature=Nk(se,u,ge));const{js:ve,dts:Se,sourceFiles:Ne}=B.bundle;return Ce.js.sources=ve.sources,Se&&(Ce.dts.sources=Se.sources),Ce.sourceFiles=Ne,gH(ne,Ce)},getSourceFileFromReference:hv,redirectTargetsMap:wm(),getFileIncludeReasons:ho,createHash:Lo(u,u.createHash)};return EQ(DQ,ae,void 0,l1e(t.options,d)),K}function Gv(t={},u={}){var{hasGlobalName:s,onEmitNode:d=mH,isEmitNotificationEnabled:f,substituteNode:p=xM,onBeforeEmitNode:E,onAfterEmitNode:v,onBeforeEmitNodeArray:b,onAfterEmitNodeArray:B,onBeforeEmitToken:k,onAfterEmitToken:T}=u,M=!!t.extendedDiagnostics,z=!!t.omitBraceSourceMapPositions,j=a5(t),J=m1(t),K=new Map,Y,oe,se,ge,ae,Ce,ne,ve,Se,Ne,pe,fe,xe,Be,Ge,Ae=t.preserveSourceNewlines,De,Ke,Je,ft=lz,Ye,Ve=t.writeBundleFileInfo?{sections:[]}:void 0,We=Ve?H.checkDefined(t.relativeToBuildInfo):void 0,Gt=t.recordInternalSection,Yt=0,Ie="text",st=!0,St,It,ei=-1,ht,Ut=-1,Ni=-1,ji=-1,xn=-1,Jn,an,Pi=!1,Ai=!!t.removeComments,Zu,aa,{enter:yr,exit:Ba}=Lqe(M,"commentTime","beforeComment","afterComment"),bt=q.parenthesizer,jn={select:R=>R===0?bt.parenthesizeLeadingTypeArgument:void 0},Ln=d3();return ni(),{printNode:Si,printList:Dn,printFile:tu,printBundle:Cn,writeNode:Da,writeList:ra,writeFile:Xt,writeBundle:Mt,bundleFileInfo:Ve};function Si(R,be,Ht){switch(R){case 0:H.assert(la(be),"Expected a SourceFile node.");break;case 2:H.assert(at(be),"Expected an Identifier node.");break;case 1:H.assert(Wt(be),"Expected an Expression node.");break}switch(be.kind){case 312:return tu(be);case 313:return Cn(be);case 314:return oa(be)}return Da(R,be,Ht,Pe()),et()}function Dn(R,be,Ht){return ra(R,be,Ht,Pe()),et()}function Cn(R){return Mt(R,Pe(),void 0),et()}function tu(R){return Xt(R,Pe(),void 0),et()}function oa(R){return qt(R,Pe()),et()}function Da(R,be,Ht,Oi){const yu=Ke;me(Oi,void 0),gt(R,be,Ht),ni(),Ke=yu}function ra(R,be,Ht,Oi){const yu=Ke;me(Oi,void 0),Ht&&ii(Ht),B0(void 0,be,R),ni(),Ke=yu}function Ta(){return Ke.getTextPosWithWriteLine?Ke.getTextPosWithWriteLine():Ke.getTextPos()}function Yo(R,be,Ht){const Oi=qu(Ve.sections);Oi&&Oi.kind===Ht?Oi.end=be:Ve.sections.push({pos:R,end:be,kind:Ht})}function bo(R){if(Gt&&Ve&&Y&&(Q1(R)||Jl(R))&&o1e(R,Y)&&Ie!=="internal"){const be=Ie;return Et(Ke.getTextPos()),Yt=Ta(),Ie="internal",be}}function Qe(R){R&&(Et(Ke.getTextPos()),Yt=Ta(),Ie=R)}function Et(R){return YtH.assert(qye(Ao))),Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"prepend",data:We(yu.fileName),texts:Ea}))}}Yt=Ta();for(const yu of R.sourceFiles)gt(0,yu,yu);if(Ve&&R.sourceFiles.length){const yu=Ke.getTextPos();if(Et(yu)){const Jr=Rw(R);Jr&&(Ve.sources||(Ve.sources={}),Ve.sources.prologues=Jr);const br=Li(R);br&&(Ve.sources||(Ve.sources={}),Ve.sources.helpers=br)}}ni(),Ke=Oi}function qt(R,be){const Ht=Ke;me(be,void 0),gt(4,R,void 0),ni(),Ke=Ht}function Xt(R,be,Ht){Ye=!0;const Oi=Ke;me(be,Ht),gb(R),B5(R),gt(0,R,R),ni(),Ke=Oi}function Pe(){return Je||(Je=Vj(j))}function et(){const R=Je.getText();return Je.clear(),R}function gt(R,be,Ht){Ht&&ii(Ht),le(R,be,void 0)}function ii(R){Y=R,Jn=void 0,an=void 0,R&&_C(R)}function me(R,be){R&&t.omitTrailingSemicolon&&(R=ele(R)),Ke=R,St=be,st=!Ke||!St}function ni(){oe=[],se=[],ge=[],ae=new Set,Ce=[],ne=new Map,ve=[],Se=0,Ne=[],pe=0,fe=[],xe=void 0,Be=[],Ge=void 0,Y=void 0,Jn=void 0,an=void 0,me(void 0,void 0)}function vi(){return Jn||(Jn=$3(H.checkDefined(Y)))}function mt(R,be){if(R===void 0)return;const Ht=bo(R);le(4,R,be),Qe(Ht)}function Ot(R){R!==void 0&&le(2,R,void 0)}function Ei(R,be){R!==void 0&&le(1,R,be)}function $i(R){le(us(R)?6:4,R)}function Qi(R){Ae&&Pp(R)&4&&(Ae=!1)}function on(R){Ae=R}function le(R,be,Ht){aa=Ht,de(0,R,be)(R,be),aa=void 0}function te(R){return!Ai&&!la(R)}function we(R){return!st&&!la(R)&&!Dq(R)&&!yk(R)&&!mFe(R)}function de(R,be,Ht){switch(R){case 0:if(d!==mH&&(!f||f(Ht)))return X;case 1:if(p!==xM&&(Zu=p(be,Ht)||Ht)!==Ht)return aa&&(Zu=aa(Zu)),Qt;case 2:if(te(Ht))return P9;case 3:if(we(Ht))return sF;case 4:return it;default:return H.assertNever(R)}}function je(R,be,Ht){return de(R+1,be,Ht)}function X(R,be){const Ht=je(0,R,be);d(R,be,Ht)}function it(R,be){if(E==null||E(be),Ae){const Ht=Ae;Qi(be),Ct(R,be),on(Ht)}else Ct(R,be);v==null||v(be),aa=void 0}function Ct(R,be,Ht=!0){if(Ht){const Oi=sce(be);if(Oi)return ja(R,be,Oi)}if(R===0)return tF(Po(be,la));if(R===2)return as(Po(be,at));if(R===6)return Ru(Po(be,us),!0);if(R===3)return ct(Po(be,Bl));if(R===5)return H.assertNode(be,Cce),ha(!0);if(R===4){switch(be.kind){case 16:case 17:case 18:return Ru(be,!1);case 80:return as(be);case 81:return wo(be);case 166:return Fn(be);case 167:return Ya(be);case 168:return c0(be);case 169:return Ul(be);case 170:return wl(be);case 171:return hd(be);case 172:return vl(be);case 173:return co(be);case 174:return Ho(be);case 175:return id(be);case 176:return Y0(be);case 177:case 178:return Ko(be);case 179:return Tc(be);case 180:return Jp(be);case 181:return Lc(be);case 182:return Ka(be);case 183:return Ri(be);case 184:return dl(be);case 185:return Cc(be);case 186:return $(be);case 187:return tt(be);case 188:return vt(be);case 189:return fn(be);case 190:return uu(be);case 192:return Tu(be);case 193:return Nr(be);case 194:return Vu(be);case 195:return Ss(be);case 196:return ic(be);case 233:return Di(be);case 197:return nd();case 198:return S0(be);case 199:return ud(be);case 200:return m0(be);case 201:return Bd(be);case 202:return Wu(be);case 203:return Oh(be);case 204:return Il(be);case 205:return uh(be);case 206:return h4(be);case 207:return D1(be);case 208:return He(be);case 239:return ki(be);case 240:return cl();case 241:return In(be);case 243:return ir(be);case 242:return ha(!1);case 244:return os(be);case 245:return ss(be);case 246:return x1(be);case 247:return fd(be);case 248:return $m(be);case 249:return _s(be);case 250:return np(be);case 251:return h3(be);case 252:return d_(be);case 253:return b5(be);case 254:return Xe(be);case 255:return Dt(be);case 256:return oi(be);case 257:return Ti(be);case 258:return Xi(be);case 259:return Rn(be);case 260:return tn(be);case 261:return bn(be);case 262:return kr(be);case 263:return eC(be);case 264:return cD(be);case 265:return i6(be);case 266:return Gk(be);case 267:return lb(be);case 268:return Jk(be);case 269:return $k(be);case 270:return qk(be);case 271:return az(be);case 272:return ww(be);case 273:return tC(be);case 274:return x9(be);case 280:return cb(be);case 275:return v9(be);case 276:return Tw(be);case 277:return Uk(be);case 278:return Lw(be);case 279:return db(be);case 281:return iC(be);case 300:return C9(be);case 301:return b9(be);case 282:return;case 283:return fE(be);case 12:return k5(be);case 286:case 289:return n6(be);case 287:case 290:return h_(be);case 291:return Jf(be);case 292:return p4(be);case 293:return Hh(be);case 294:return y9(be);case 295:return Yk(be);case 296:return uC(be);case 297:return Qk(be);case 298:return jd(be);case 299:return F5(be);case 303:return A5(be);case 304:return f3(be);case 305:return pt(be);case 306:return i1(be);case 307:return Xu(be);case 314:case 308:return pr(be);case 309:case 310:return ca(be);case 311:return Ku(be);case 312:return tF(be);case 313:return H.fail("Bundles should be printed using printBundle");case 315:return H.fail("InputFiles should not be printed");case 316:return p3(be);case 317:return S5(be);case 319:return ru("*");case 320:return ru("?");case 321:return Ch(be);case 322:return sf(be);case 323:return Q0(be);case 324:return Uc(be);case 191:case 325:return mi(be);case 326:return;case 327:return g4(be);case 329:return eF(be);case 330:return mb(be);case 334:case 339:case 344:return Xk(be);case 335:case 336:return aC(be);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Hs(be);case 346:return yg(be);case 348:case 355:return pb(be);case 347:case 349:case 350:case 351:case 356:case 357:return bh(be);case 352:return m3(be);case 353:return oz(be);case 354:return Mw(be);case 359:return}if(Wt(be)&&(R=1,p!==xM)){const Oi=p(R,be)||be;Oi!==be&&(be=Oi,aa&&(be=aa(be)))}}if(R===1)switch(be.kind){case 9:case 10:return du(be);case 11:case 14:case 15:return Ru(be,!1);case 80:return as(be);case 81:return wo(be);case 209:return di(be);case 210:return Mn(be);case 211:return ba(be);case 212:return To(be);case 213:return nc(be);case 214:return fc(be);case 215:return Cl(be);case 216:return Tl(be);case 217:return bc(be);case 218:return ql(be);case 219:return Nc(be);case 220:return Jm(be);case 221:return jh(be);case 222:return f4(be);case 223:return c3(be);case 224:return c_(be);case 225:return R1(be);case 226:return Ln(be);case 227:return Wf(be);case 228:return m4(be);case 229:return Vh(be);case 230:return Ee(be);case 231:return Bt(be);case 232:return;case 234:return Ci(be);case 235:return Q(be);case 233:return Di(be);case 238:return Me(be);case 236:return wt(be);case 237:return H.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Vs(be);case 285:return Zk(be);case 288:return Nw(be);case 358:return H.fail("SyntaxList should not be printed");case 359:return;case 360:return ar(be);case 361:return pE(be);case 362:return H.fail("SyntheticReferenceExpression should not be printed")}if(uf(be.kind))return B9(be,Ma);if(Jse(be.kind))return B9(be,ru);H.fail(`Unhandled SyntaxKind: ${H.formatSyntaxKind(be.kind)}.`)}function ct(R){mt(R.name),Un(),Ma("in"),Un(),mt(R.constraint)}function Qt(R,be){const Ht=je(1,R,be);H.assertIsDefined(Zu),be=Zu,Zu=void 0,Ht(R,be)}function Li(R){let be;if(J===0||t.noEmitHelpers)return;const Ht=new Map;for(const Oi of R.sourceFiles){const yu=zV(Oi)!==void 0,Jr=Sn(Oi);if(Jr)for(const br of Jr)!br.scoped&&!yu&&!Ht.get(br.name)&&(Ht.set(br.name,!0),(be||(be=[])).push(br.name))}return be}function Ui(R){let be=!1;const Ht=R.kind===313?R:void 0;if(Ht&&J===0)return;const Oi=Ht?Ht.prepends.length:0,yu=Ht?Ht.sourceFiles.length+Oi:1;for(let Jr=0;Jr"),Un(),mt(R.type),Ff(R)}function Uc(R){Ma("function"),w5(R,R.parameters),ru(":"),mt(R.type)}function Ch(R){ru("?"),mt(R.type)}function sf(R){ru("!"),mt(R.type)}function Q0(R){mt(R.type),ru("=")}function Cc(R){O1(R),dD(R,R.modifiers),Ma("new"),Un(),p_(R,R.typeParameters),w5(R,R.parameters),Un(),ru("=>"),Un(),mt(R.type),Ff(R)}function $(R){Ma("typeof"),Un(),mt(R.exprName),gE(R,R.typeArguments)}function tt(R){_4(0,void 0),ru("{");const be=bs(R)&1?768:32897;B0(R,R.members,be|524288),ru("}"),fC()}function vt(R){mt(R.elementType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),ru("]")}function mi(R){ru("..."),mt(R.type)}function fn(R){ia(23,R.pos,ru,R);const be=bs(R)&1?528:657;B0(R,R.elements,be|524288,bt.parenthesizeElementTypeOfTupleType),ia(24,R.elements.end,ru,R)}function Wu(R){mt(R.dotDotDotToken),mt(R.name),mt(R.questionToken),ia(59,R.name.end,ru,R),Un(),mt(R.type)}function uu(R){mt(R.type,bt.parenthesizeTypeOfOptionalType),ru("?")}function Tu(R){B0(R,R.types,516,bt.parenthesizeConstituentTypeOfUnionType)}function Nr(R){B0(R,R.types,520,bt.parenthesizeConstituentTypeOfIntersectionType)}function Vu(R){mt(R.checkType,bt.parenthesizeCheckTypeOfConditionalType),Un(),Ma("extends"),Un(),mt(R.extendsType,bt.parenthesizeExtendsTypeOfConditionalType),Un(),ru("?"),Un(),mt(R.trueType),Un(),ru(":"),Un(),mt(R.falseType)}function Ss(R){Ma("infer"),Un(),mt(R.typeParameter)}function ic(R){ru("("),mt(R.type),ru(")")}function nd(){Ma("this")}function S0(R){hD(R.operator,Ma),Un();const be=R.operator===148?bt.parenthesizeOperandOfReadonlyTypeOperator:bt.parenthesizeOperandOfTypeOperator;mt(R.type,be)}function ud(R){mt(R.objectType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),mt(R.indexType),ru("]")}function m0(R){const be=bs(R);ru("{"),be&1?Un():(wd(),_E()),R.readonlyToken&&(mt(R.readonlyToken),R.readonlyToken.kind!==148&&Ma("readonly"),Un()),ru("["),le(3,R.typeParameter),R.nameType&&(Un(),Ma("as"),Un(),mt(R.nameType)),ru("]"),R.questionToken&&(mt(R.questionToken),R.questionToken.kind!==58&&ru("?")),ru(":"),Un(),mt(R.type),v1(),be&1?Un():(wd(),DE()),B0(R,R.members,2),ru("}")}function Bd(R){Ei(R.literal)}function Oh(R){mt(R.head),B0(R,R.templateSpans,262144)}function uh(R){if(R.isTypeOf&&(Ma("typeof"),Un()),Ma("import"),ru("("),mt(R.argument),R.attributes){ru(","),Un(),ru("{"),Un(),Ma(R.attributes.token===132?"assert":"with"),ru(":"),Un();const be=R.attributes.elements;B0(R.attributes,be,526226),Un(),ru("}")}ru(")"),R.qualifier&&(ru("."),mt(R.qualifier)),gE(R,R.typeArguments)}function h4(R){ru("{"),B0(R,R.elements,525136),ru("}")}function D1(R){ru("["),B0(R,R.elements,524880),ru("]")}function He(R){mt(R.dotDotDotToken),R.propertyName&&(mt(R.propertyName),ru(":"),Un()),mt(R.name),g3(R.initializer,R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function di(R){const be=R.elements,Ht=R.multiLine?65536:0;Eb(R,be,8914|Ht,bt.parenthesizeExpressionForDisallowedComma)}function Mn(R){_4(0,void 0),L(R.properties,aF);const be=bs(R)&131072;be&&_E();const Ht=R.multiLine?65536:0,Oi=Y&&Y.languageVersion>=1&&!W4(Y)?64:0;B0(R,R.properties,526226|Oi|Ht),be&&DE(),fC()}function ba(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess);const be=R.questionDotToken||t_(q.createToken(25),R.expression.end,R.name.pos),Ht=E4(R,R.expression,be),Oi=E4(R,be,R.name);_3(Ht,!1),be.kind!==29&&Fo(R.expression)&&!Ke.hasTrailingComment()&&!Ke.hasTrailingWhitespace()&&ru("."),R.questionDotToken?mt(be):ia(be.kind,R.expression.end,ru,R),_3(Oi,!1),mt(R.name),g_(Ht,Oi)}function Fo(R){if(R=Np(R),Of(R)){const be=T9(R,!0,!1);return!(R.numericLiteralFlags&448)&&!be.includes(Uo(25))&&!be.includes("E")&&!be.includes("e")}else if(I0(R)){const be=jke(R);return typeof be=="number"&&isFinite(be)&&be>=0&&Math.floor(be)===be}}function To(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),mt(R.questionDotToken),ia(23,R.expression.end,ru,R),Ei(R.argumentExpression),ia(24,R.argumentExpression.end,ru,R)}function nc(R){const be=Pp(R)&16;be&&(ru("("),sC("0"),ru(","),Un()),Ei(R.expression,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),mt(R.questionDotToken),gE(R,R.typeArguments),Eb(R,R.arguments,2576,bt.parenthesizeExpressionForDisallowedComma)}function fc(R){ia(105,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeExpressionOfNew),gE(R,R.typeArguments),Eb(R,R.arguments,18960,bt.parenthesizeExpressionForDisallowedComma)}function Cl(R){const be=Pp(R)&16;be&&(ru("("),sC("0"),ru(","),Un()),Ei(R.tag,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),gE(R,R.typeArguments),Un(),Ei(R.template)}function Tl(R){ru("<"),mt(R.type),ru(">"),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function bc(R){const be=ia(21,R.pos,ru,R),Ht=w9(R.expression,R);Ei(R.expression,void 0),rF(R.expression,R),g_(Ht),ia(22,R.expression?R.expression.end:be,ru,R)}function ql(R){op(R.name),Cu(R)}function Nc(R){dD(R,R.modifiers),bu(R,ip)}function ip(R){p_(R,R.typeParameters),k9(R,R.parameters),f_(R.type),Un(),mt(R.equalsGreaterThanToken)}function Jm(R){ia(91,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function jh(R){ia(114,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function f4(R){ia(116,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function c3(R){ia(135,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeOperandOfPrefixUnary)}function c_(R){hD(R.operator,lf),C5(R)&&Un(),Ei(R.operand,bt.parenthesizeOperandOfPrefixUnary)}function C5(R){const be=R.operand;return be.kind===224&&(R.operator===40&&(be.operator===40||be.operator===46)||R.operator===41&&(be.operator===41||be.operator===47))}function R1(R){Ei(R.operand,bt.parenthesizeOperandOfPostfixUnary),hD(R.operator,lf)}function d3(){return kY(R,be,Ht,Oi,yu,void 0);function R(br,Ea){if(Ea){Ea.stackIndex++,Ea.preserveSourceNewlinesStack[Ea.stackIndex]=Ae,Ea.containerPosStack[Ea.stackIndex]=Ni,Ea.containerEndStack[Ea.stackIndex]=ji,Ea.declarationListContainerEndStack[Ea.stackIndex]=xn;const Ao=Ea.shouldEmitCommentsStack[Ea.stackIndex]=te(br),Af=Ea.shouldEmitSourceMapsStack[Ea.stackIndex]=we(br);E==null||E(br),Ao&&M9(br),Af&&Jw(br),Qi(br)}else Ea={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return Ea}function be(br,Ea,Ao){return Jr(br,Ao,"left")}function Ht(br,Ea,Ao){const Af=br.kind!==28,Uf=E4(Ao,Ao.left,br),Fr=E4(Ao,br,Ao.right);_3(Uf,Af),Zm(br.pos),B9(br,br.kind===103?Ma:lf),Up(br.end,!0),_3(Fr,!0)}function Oi(br,Ea,Ao){return Jr(br,Ao,"right")}function yu(br,Ea){const Ao=E4(br,br.left,br.operatorToken),Af=E4(br,br.operatorToken,br.right);if(g_(Ao,Af),Ea.stackIndex>0){const Uf=Ea.preserveSourceNewlinesStack[Ea.stackIndex],Fr=Ea.containerPosStack[Ea.stackIndex],vE=Ea.containerEndStack[Ea.stackIndex],gn=Ea.declarationListContainerEndStack[Ea.stackIndex],h6=Ea.shouldEmitCommentsStack[Ea.stackIndex],P5=Ea.shouldEmitSourceMapsStack[Ea.stackIndex];on(Uf),P5&&x4(br),h6&&z9(br,Fr,vE,gn),v==null||v(br),Ea.stackIndex--}}function Jr(br,Ea,Ao){const Af=Ao==="left"?bt.getParenthesizeLeftSideOfBinaryForOperator(Ea.operatorToken.kind):bt.getParenthesizeRightSideOfBinaryForOperator(Ea.operatorToken.kind);let Uf=de(0,1,br);if(Uf===Qt&&(H.assertIsDefined(Zu),br=Af(Po(Zu,Wt)),Uf=je(1,1,br),Zu=void 0),(Uf===P9||Uf===sF||Uf===it)&&Xn(br))return br;aa=Af,Uf(1,br)}}function Wf(R){const be=E4(R,R.condition,R.questionToken),Ht=E4(R,R.questionToken,R.whenTrue),Oi=E4(R,R.whenTrue,R.colonToken),yu=E4(R,R.colonToken,R.whenFalse);Ei(R.condition,bt.parenthesizeConditionOfConditionalExpression),_3(be,!0),mt(R.questionToken),_3(Ht,!0),Ei(R.whenTrue,bt.parenthesizeBranchOfConditionalExpression),g_(be,Ht),_3(Oi,!0),mt(R.colonToken),_3(yu,!0),Ei(R.whenFalse,bt.parenthesizeBranchOfConditionalExpression),g_(Oi,yu)}function m4(R){mt(R.head),B0(R,R.templateSpans,262144)}function Vh(R){ia(127,R.pos,Ma,R),mt(R.asteriskToken),E3(R.expression&&bg(R.expression),sb)}function Ee(R){ia(26,R.pos,ru,R),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma)}function Bt(R){op(R.name),t6(R)}function Di(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),gE(R,R.typeArguments)}function Ci(R){Ei(R.expression,void 0),R.type&&(Un(),Ma("as"),Un(),mt(R.type))}function Q(R){Ei(R.expression,bt.parenthesizeLeftSideOfAccess),lf("!")}function Me(R){Ei(R.expression,void 0),R.type&&(Un(),Ma("satisfies"),Un(),mt(R.type))}function wt(R){u6(R.keywordToken,R.pos,ru),ru("."),mt(R.name)}function ki(R){Ei(R.expression),mt(R.literal)}function In(R){tr(R,!R.multiLine&&hC(R))}function tr(R,be){ia(19,R.pos,ru,R);const Ht=be||bs(R)&1?768:129;B0(R,R.statements,Ht),ia(20,R.statements.end,ru,R,!!(Ht&1))}function ir(R){yh(R,R.modifiers,!1),mt(R.declarationList),v1()}function ha(R){R?ru(";"):v1()}function os(R){Ei(R.expression,bt.parenthesizeExpressionOfExpressionStatement),(!Y||!W4(Y)||sl(R.expression))&&v1()}function ss(R){const be=ia(101,R.pos,Ma,R);Un(),ia(21,be,ru,R),Ei(R.expression),ia(22,R.expression.end,ru,R),m_(R,R.thenStatement),R.elseStatement&&(cC(R,R.thenStatement,R.elseStatement),ia(93,R.thenStatement.end,Ma,R),R.elseStatement.kind===245?(Un(),mt(R.elseStatement)):m_(R,R.elseStatement))}function Rl(R,be){const Ht=ia(117,be,Ma,R);Un(),ia(21,Ht,ru,R),Ei(R.expression),ia(22,R.expression.end,ru,R)}function x1(R){ia(92,R.pos,Ma,R),m_(R,R.statement),po(R.statement)&&!Ae?Un():cC(R,R.statement,R.expression),Rl(R,R.statement.end),v1()}function fd(R){Rl(R,R.pos),m_(R,R.statement)}function $m(R){const be=ia(99,R.pos,Ma,R);Un();let Ht=ia(21,be,ru,R);Um(R.initializer),Ht=ia(27,R.initializer?R.initializer.end:Ht,ru,R),E3(R.condition),Ht=ia(27,R.condition?R.condition.end:Ht,ru,R),E3(R.incrementor),ia(22,R.incrementor?R.incrementor.end:Ht,ru,R),m_(R,R.statement)}function _s(R){const be=ia(99,R.pos,Ma,R);Un(),ia(21,be,ru,R),Um(R.initializer),Un(),ia(103,R.initializer.end,Ma,R),Un(),Ei(R.expression),ia(22,R.expression.end,ru,R),m_(R,R.statement)}function np(R){const be=ia(99,R.pos,Ma,R);Un(),Ow(R.awaitModifier),ia(21,be,ru,R),Um(R.initializer),Un(),ia(165,R.initializer.end,Ma,R),Un(),Ei(R.expression),ia(22,R.expression.end,ru,R),m_(R,R.statement)}function Um(R){R!==void 0&&(R.kind===261?mt(R):Ei(R))}function h3(R){ia(88,R.pos,Ma,R),oC(R.label),v1()}function d_(R){ia(83,R.pos,Ma,R),oC(R.label),v1()}function ia(R,be,Ht,Oi,yu){const Jr=Ua(Oi),br=Jr&&Jr.kind===Oi.kind,Ea=be;if(br&&Y&&(be=gs(Y.text,be)),br&&Oi.pos!==Ea){const Ao=yu&&Y&&!q4(Ea,be,Y);Ao&&_E(),Zm(Ea),Ao&&DE()}if(!z&&(R===19||R===20)?be=u6(R,be,Ht,Oi):be=hD(R,Ht,be),br&&Oi.end!==be){const Ao=Oi.kind===294;Up(be,!Ao,Ao)}return be}function Xx(R){return R.kind===2||!!R.hasTrailingNewLine}function e6(R){return Y?Oe(W_(Y.text,R.pos),Xx)||Oe(DB(R),Xx)?!0:dY(R)?R.pos!==R.expression.pos&&Oe(gv(Y.text,R.expression.pos),Xx)?!0:e6(R.expression):!1:!1}function bg(R){if(!Ai&&dY(R)&&e6(R)){const be=Ua(R);if(be&&Cf(be)){const Ht=q.createParenthesizedExpression(R.expression);return su(Ht,R),Pt(Ht,be),Ht}return q.createParenthesizedExpression(R)}return R}function sb(R){return bg(bt.parenthesizeExpressionForDisallowedComma(R))}function b5(R){ia(107,R.pos,Ma,R),E3(R.expression&&bg(R.expression),bg),v1()}function Xe(R){const be=ia(118,R.pos,Ma,R);Un(),ia(21,be,ru,R),Ei(R.expression),ia(22,R.expression.end,ru,R),m_(R,R.statement)}function Dt(R){const be=ia(109,R.pos,Ma,R);Un(),ia(21,be,ru,R),Ei(R.expression),ia(22,R.expression.end,ru,R),Un(),mt(R.caseBlock)}function oi(R){mt(R.label),ia(59,R.label.end,ru,R),Un(),mt(R.statement)}function Ti(R){ia(111,R.pos,Ma,R),E3(bg(R.expression),bg),v1()}function Xi(R){ia(113,R.pos,Ma,R),Un(),mt(R.tryBlock),R.catchClause&&(cC(R,R.tryBlock,R.catchClause),mt(R.catchClause)),R.finallyBlock&&(cC(R,R.catchClause||R.tryBlock,R.finallyBlock),ia(98,(R.catchClause||R.tryBlock).end,Ma,R),Un(),mt(R.finallyBlock))}function Rn(R){u6(89,R.pos,Ma),v1()}function tn(R){var be,Ht,Oi;mt(R.name),mt(R.exclamationToken),f_(R.type),g3(R.initializer,((be=R.type)==null?void 0:be.end)??((Oi=(Ht=R.name.emitNode)==null?void 0:Ht.typeNode)==null?void 0:Oi.end)??R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function bn(R){if(lj(R))Ma("await"),Un(),Ma("using");else{const be=rq(R)?"let":K8(R)?"const":cj(R)?"using":"var";Ma(be)}Un(),B0(R,R.declarations,528)}function kr(R){Cu(R)}function Cu(R){yh(R,R.modifiers,!1),Ma("function"),mt(R.asteriskToken),Un(),Ot(R.name),bu(R,Eu)}function bu(R,be){const Ht=R.body;if(Ht)if(po(Ht)){const Oi=bs(R)&131072;Oi&&_E(),O1(R),L(R.parameters,n1),n1(R.body),be(R),p0(Ht),Ff(R),Oi&&DE()}else be(R),Un(),Ei(Ht,bt.parenthesizeConciseBodyOfArrowFunction);else be(R),v1()}function Eu(R){p_(R,R.typeParameters),w5(R,R.parameters),f_(R.type)}function sa(R){if(bs(R)&1)return!0;if(R.multiLine||!sl(R)&&Y&&!hk(R,Y)||uF(R,Ki(R.statements),2)||r6(R,qu(R.statements),2,R.statements))return!1;let be;for(const Ht of R.statements){if(fD(be,Ht,2)>0)return!1;be=Ht}return!0}function p0(R){E==null||E(R),Un(),ru("{"),_E();const be=sa(R)?o0:Gf;_u(R,R.statements,be),DE(),u6(20,R.statements.end,ru,R),v==null||v(R)}function o0(R){Gf(R,!0)}function Gf(R,be){const Ht=kf(R.statements),Oi=Ke.getTextPos();Ui(R),Ht===0&&Oi===Ke.getTextPos()&&be?(DE(),B0(R,R.statements,768),_E()):B0(R,R.statements,1,void 0,Ht)}function eC(R){t6(R)}function t6(R){_4(0,void 0),L(R.members,aF),yh(R,R.modifiers,!0),ia(86,iE(R).pos,Ma,R),R.name&&(Un(),Ot(R.name));const be=bs(R)&131072;be&&_E(),p_(R,R.typeParameters),B0(R,R.heritageClauses,0),Un(),ru("{"),B0(R,R.members,129),ru("}"),be&&DE(),fC()}function cD(R){_4(0,void 0),yh(R,R.modifiers,!1),Ma("interface"),Un(),mt(R.name),p_(R,R.typeParameters),B0(R,R.heritageClauses,512),Un(),ru("{"),B0(R,R.members,129),ru("}"),fC()}function i6(R){yh(R,R.modifiers,!1),Ma("type"),Un(),mt(R.name),p_(R,R.typeParameters),Un(),ru("="),Un(),mt(R.type),v1()}function Gk(R){yh(R,R.modifiers,!1),Ma("enum"),Un(),mt(R.name),Un(),ru("{"),B0(R,R.members,145),ru("}")}function lb(R){yh(R,R.modifiers,!1),~R.flags&2048&&(Ma(R.flags&32?"namespace":"module"),Un()),mt(R.name);let be=R.body;if(!be)return v1();for(;be&&_c(be);)ru("."),mt(be.name),be=be.body;Un(),mt(be)}function Jk(R){O1(R),L(R.statements,n1),tr(R,hC(R)),Ff(R)}function $k(R){ia(19,R.pos,ru,R),B0(R,R.clauses,129),ia(20,R.clauses.end,ru,R,!0)}function az(R){yh(R,R.modifiers,!1),ia(102,R.modifiers?R.modifiers.end:R.pos,Ma,R),Un(),R.isTypeOnly&&(ia(156,R.pos,Ma,R),Un()),mt(R.name),Un(),ia(64,R.name.end,ru,R),Un(),D9(R.moduleReference),v1()}function D9(R){R.kind===80?Ei(R):mt(R)}function ww(R){yh(R,R.modifiers,!1),ia(102,R.modifiers?R.modifiers.end:R.pos,Ma,R),Un(),R.importClause&&(mt(R.importClause),Un(),ia(161,R.importClause.end,Ma,R),Un()),Ei(R.moduleSpecifier),R.attributes&&oC(R.attributes),v1()}function tC(R){R.isTypeOnly&&(ia(156,R.pos,Ma,R),Un()),mt(R.name),R.name&&R.namedBindings&&(ia(28,R.name.end,ru,R),Un()),mt(R.namedBindings)}function x9(R){const be=ia(42,R.pos,ru,R);Un(),ia(130,be,Ma,R),Un(),mt(R.name)}function v9(R){y5(R)}function Tw(R){hb(R)}function Uk(R){const be=ia(95,R.pos,Ma,R);Un(),R.isExportEquals?ia(64,be,lf,R):ia(90,be,Ma,R),Un(),Ei(R.expression,R.isExportEquals?bt.getParenthesizeRightSideOfBinaryForOperator(64):bt.parenthesizeExpressionOfExportDefault),v1()}function Lw(R){yh(R,R.modifiers,!1);let be=ia(95,R.pos,Ma,R);if(Un(),R.isTypeOnly&&(be=ia(156,be,Ma,R),Un()),R.exportClause?mt(R.exportClause):be=ia(42,be,ru,R),R.moduleSpecifier){Un();const Ht=R.exportClause?R.exportClause.end:be;ia(161,Ht,Ma,R),Un(),Ei(R.moduleSpecifier)}R.attributes&&oC(R.attributes),v1()}function C9(R){ia(R.token,R.pos,Ma,R),Un();const be=R.elements;B0(R,be,526226)}function b9(R){mt(R.name),ru(":"),Un();const be=R.value;if(!(bs(be)&1024)){const Ht=nE(be);Up(Ht.pos)}mt(be)}function qk(R){let be=ia(95,R.pos,Ma,R);Un(),be=ia(130,be,Ma,R),Un(),be=ia(145,be,Ma,R),Un(),mt(R.name),v1()}function cb(R){const be=ia(42,R.pos,ru,R);Un(),ia(130,be,Ma,R),Un(),mt(R.name)}function db(R){y5(R)}function iC(R){hb(R)}function y5(R){ru("{"),B0(R,R.elements,525136),ru("}")}function hb(R){R.isTypeOnly&&(Ma("type"),Un()),R.propertyName&&(mt(R.propertyName),Un(),ia(130,R.propertyName.end,Ma,R),Un()),mt(R.name)}function fE(R){Ma("require"),ru("("),Ei(R.expression),ru(")")}function Vs(R){mt(R.openingElement),B0(R,R.children,262144),mt(R.closingElement)}function Zk(R){ru("<"),fb(R.tagName),gE(R,R.typeArguments),Un(),mt(R.attributes),ru("/>")}function Nw(R){mt(R.openingFragment),B0(R,R.children,262144),mt(R.closingFragment)}function n6(R){if(ru("<"),aE(R)){const be=w9(R.tagName,R);fb(R.tagName),gE(R,R.typeArguments),R.attributes.properties&&R.attributes.properties.length>0&&Un(),mt(R.attributes),rF(R.attributes,R),g_(be)}ru(">")}function k5(R){Ke.writeLiteral(R.text)}function h_(R){ru("")}function p4(R){B0(R,R.properties,262656)}function Jf(R){mt(R.name),$p("=",ru,R.initializer,$i)}function Hh(R){ru("{..."),Ei(R.expression),ru("}")}function Em(R){let be=!1;return PO((Y==null?void 0:Y.text)||"",R+1,()=>be=!0),be}function nC(R){let be=!1;return NO((Y==null?void 0:Y.text)||"",R+1,()=>be=!0),be}function Pw(R){return Em(R)||nC(R)}function y9(R){var be;if(R.expression||!Ai&&!sl(R)&&Pw(R.pos)){const Ht=Y&&!sl(R)&&s0(Y,R.pos).line!==s0(Y,R.end).line;Ht&&Ke.increaseIndent();const Oi=ia(19,R.pos,ru,R);mt(R.dotDotDotToken),Ei(R.expression),ia(20,((be=R.expression)==null?void 0:be.end)||Oi,ru,R),Ht&&Ke.decreaseIndent()}}function Yk(R){Ot(R.namespace),ru(":"),Ot(R.name)}function fb(R){R.kind===80?Ei(R):mt(R)}function uC(R){ia(84,R.pos,Ma,R),Un(),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma),rC(R,R.statements,R.expression.end)}function Qk(R){const be=ia(90,R.pos,Ma,R);rC(R,R.statements,be)}function rC(R,be,Ht){const Oi=be.length===1&&(!Y||sl(R)||sl(be[0])||Gq(R,be[0],Y));let yu=163969;Oi?(u6(59,Ht,ru,R),Un(),yu&=-130):ia(59,Ht,ru,R),B0(R,be,yu)}function jd(R){Un(),hD(R.token,Ma),Un(),B0(R,R.types,528)}function F5(R){const be=ia(85,R.pos,Ma,R);Un(),R.variableDeclaration&&(ia(21,be,ru,R),mt(R.variableDeclaration),ia(22,R.variableDeclaration.end,ru,R),Un()),mt(R.block)}function A5(R){mt(R.name),ru(":"),Un();const be=R.initializer;if(!(bs(be)&1024)){const Ht=nE(be);Up(Ht.pos)}Ei(be,bt.parenthesizeExpressionForDisallowedComma)}function f3(R){mt(R.name),R.objectAssignmentInitializer&&(Un(),ru("="),Un(),Ei(R.objectAssignmentInitializer,bt.parenthesizeExpressionForDisallowedComma))}function pt(R){R.expression&&(ia(26,R.pos,ru,R),Ei(R.expression,bt.parenthesizeExpressionForDisallowedComma))}function i1(R){mt(R.name),g3(R.initializer,R.name.end,R,bt.parenthesizeExpressionForDisallowedComma)}function g4(R){if(ft("/**"),R.comment){const be=KO(R.comment);if(be){const Ht=be.split(/\r\n?|\n/g);for(const Oi of Ht)wd(),Un(),ru("*"),Un(),ft(Oi)}}R.tags&&(R.tags.length===1&&R.tags[0].kind===351&&!R.comment?(Un(),mt(R.tags[0])):B0(R,R.tags,33)),Un(),ft("*/")}function bh(R){up(R.tagName),p3(R.typeExpression),kg(R.comment)}function Mw(R){up(R.tagName),mt(R.name),kg(R.comment)}function S5(R){Un(),ru("{"),mt(R.name),ru("}")}function aC(R){up(R.tagName),Un(),ru("{"),mt(R.class),ru("}"),kg(R.comment)}function m3(R){up(R.tagName),p3(R.constraint),Un(),B0(R,R.typeParameters,528),kg(R.comment)}function oz(R){up(R.tagName),R.typeExpression&&(R.typeExpression.kind===316?p3(R.typeExpression):(Un(),ru("{"),ft("Object"),R.typeExpression.isArrayType&&(ru("["),ru("]")),ru("}"))),R.fullName&&(Un(),mt(R.fullName)),kg(R.comment),R.typeExpression&&R.typeExpression.kind===329&&eF(R.typeExpression)}function Hs(R){up(R.tagName),R.name&&(Un(),mt(R.name)),kg(R.comment),mb(R.typeExpression)}function yg(R){kg(R.comment),mb(R.typeExpression)}function Xk(R){up(R.tagName),kg(R.comment)}function eF(R){B0(R,q.createNodeArray(R.jsDocPropertyTags),33)}function mb(R){R.typeParameters&&B0(R,q.createNodeArray(R.typeParameters),33),R.parameters&&B0(R,q.createNodeArray(R.parameters),33),R.type&&(wd(),Un(),ru("*"),Un(),mt(R.type))}function pb(R){up(R.tagName),p3(R.typeExpression),Un(),R.isBracketed&&ru("["),mt(R.name),R.isBracketed&&ru("]"),kg(R.comment)}function up(R){ru("@"),mt(R)}function kg(R){const be=KO(R);be&&(Un(),ft(be))}function p3(R){R&&(Un(),ru("{"),mt(R.type),ru("}"))}function tF(R){wd();const be=R.statements;if(be.length===0||!Mp(be[0])||sl(be[0])){_u(R,be,Ur);return}Ur(R)}function mE(R){zw(!!R.hasNoDefaultLib,R.syntheticFileReferences||[],R.syntheticTypeReferences||[],R.syntheticLibReferences||[]);for(const be of R.prepends)if(yk(be)&&be.syntheticReferences)for(const Ht of be.syntheticReferences)mt(Ht),wd()}function iF(R){R.isDeclarationFile&&zw(R.hasNoDefaultLib,R.referencedFiles,R.typeReferenceDirectives,R.libReferenceDirectives)}function zw(R,be,Ht,Oi){if(R){const yu=Ke.getTextPos();ap('/// '),Ve&&Ve.sections.push({pos:yu,end:Ke.getTextPos(),kind:"no-default-lib"}),wd()}if(Y&&Y.moduleName&&(ap(`/// `),wd()),Y&&Y.amdDependencies)for(const yu of Y.amdDependencies)yu.name?ap(`/// `):ap(`/// `),wd();for(const yu of be){const Jr=Ke.getTextPos();ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"reference",data:yu.fileName}),wd()}for(const yu of Ht){const Jr=Ke.getTextPos(),br=yu.resolutionMode&&yu.resolutionMode!==(Y==null?void 0:Y.impliedNodeFormat)?`resolution-mode="${yu.resolutionMode===99?"import":"require"}"`:"";ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:yu.resolutionMode?yu.resolutionMode===99?"type-import":"type-require":"type",data:yu.fileName}),wd()}for(const yu of Oi){const Jr=Ke.getTextPos();ap(`/// `),Ve&&Ve.sections.push({pos:Jr,end:Ke.getTextPos(),kind:"lib",data:yu.fileName}),wd()}}function Ur(R){const be=R.statements;O1(R),L(R.statements,n1),Ui(R);const Ht=Ue(be,Oi=>!Mp(Oi));iF(R),B0(R,be,1,void 0,Ht===-1?be.length:Ht),Ff(R)}function ar(R){const be=bs(R);!(be&1024)&&R.pos!==R.expression.pos&&Up(R.expression.pos),Ei(R.expression),!(be&2048)&&R.end!==R.expression.end&&Zm(R.expression.end)}function pE(R){Eb(R,R.elements,528,void 0)}function kf(R,be,Ht,Oi){let yu=!!be;for(let Jr=0;Jr=Ht.length||br===0;if(Ao&&Oi&32768){b==null||b(Ht),B==null||B(Ht);return}Oi&15360&&(ru(czt(Oi)),Ao&&Ht&&Up(Ht.pos,!0)),b==null||b(Ht),Ao?Oi&1&&!(Ae&&(!be||Y&&hk(be,Y)))?wd():Oi&256&&!(Oi&524288)&&Un():rp(R,be,Ht,Oi,yu,Jr,br,Ht.hasTrailingComma,Ht),B==null||B(Ht),Oi&15360&&(Ao&&Ht&&Zm(Ht.end),ru(dzt(Oi)))}function rp(R,be,Ht,Oi,yu,Jr,br,Ea,Ao){const Af=(Oi&262144)===0;let Uf=Af;const Fr=uF(be,Ht[Jr],Oi);Fr?(wd(Fr),Uf=!1):Oi&256&&Un(),Oi&128&&_E();const vE=pzt(R,yu);let gn,h6,P5=!1;for(let E_=0;E_0){if(Oi&131||(_E(),P5=!0),Uf&&Oi&60&&!pg(M5.pos)){const Uw=nE(M5);Up(Uw.pos,!!(Oi&512),!0)}wd(C3),Uf=!1}else gn&&Oi&512&&Un()}if(h6=bo(M5),Uf){const C3=nE(M5);Up(C3.pos)}else Uf=Af;De=M5.pos,vE(M5,R,yu,E_),P5&&(DE(),P5=!1),gn=M5}const lF=gn?bs(gn):0,DC=Ai||!!(lF&2048),O9=Ea&&Oi&64&&Oi&16;O9&&(gn&&!DC?ia(28,gn.end,ru,gn):ru(",")),gn&&(be?be.end:-1)!==gn.end&&Oi&60&&!DC&&Zm(O9&&(Ao!=null&&Ao.end)?Ao.end:gn.end),Oi&128&&DE(),Qe(h6);const cF=r6(be,Ht[Jr+br-1],Oi,Ao);cF?wd(cF):Oi&2097408&&Un()}function sC(R){Ke.writeLiteral(R)}function S9(R){Ke.writeStringLiteral(R)}function lz(R){Ke.write(R)}function nF(R,be){Ke.writeSymbol(R,be)}function ru(R){Ke.writePunctuation(R)}function v1(){Ke.writeTrailingSemicolon(";")}function Ma(R){Ke.writeKeyword(R)}function lf(R){Ke.writeOperator(R)}function EE(R){Ke.writeParameter(R)}function ap(R){Ke.writeComment(R)}function Un(){Ke.writeSpace(" ")}function _b(R){Ke.writeProperty(R)}function lC(R){Ke.nonEscapingWrite?Ke.nonEscapingWrite(R):Ke.write(R)}function wd(R=1){for(let be=0;be0)}function _E(){Ke.increaseIndent()}function DE(){Ke.decreaseIndent()}function u6(R,be,Ht,Oi){return st?hD(R,Ht,be):v3(Oi,R,Ht,be,hD)}function B9(R,be){k&&k(R),be(Uo(R.kind)),T&&T(R)}function hD(R,be,Ht){const Oi=Uo(R);return be(Oi),Ht<0?Ht:Ht+Oi.length}function cC(R,be,Ht){if(bs(R)&1)Un();else if(Ae){const Oi=E4(R,be,Ht);Oi?wd(Oi):Un()}else wd()}function dC(R){const be=R.split(/\r\n?|\n/g),Ht=Dbe(be);for(const Oi of be){const yu=Ht?Oi.slice(Ht):Oi;yu.length&&(wd(),ft(yu))}}function _3(R,be){R?(_E(),wd(R)):be&&Un()}function g_(R,be){R&&DE(),be&&DE()}function uF(R,be,Ht){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!R||Y&&hk(R,Y)?0:1;if(be.pos===De||be.kind===12)return 0;if(Y&&R&&!pg(R.pos)&&!sl(be)&&(!be.parent||Wl(be.parent)===Wl(R)))return Ae?Db(Oi=>Wye(be.pos,R.pos,Y,Oi)):Gq(R,be,Y)?0:1;if(xb(be,Ht))return 1}return Ht&1?1:0}function fD(R,be,Ht){if(Ht&2||Ae){if(R===void 0||be===void 0||be.kind===12)return 0;if(Y&&!sl(R)&&!sl(be))return Ae&&cf(R,be)?Db(Oi=>mle(R,be,Y,Oi)):!Ae&&Dm(R,be)?qj(R,be,Y)?0:1:Ht&65536?1:0;if(xb(R,Ht)||xb(be,Ht))return 1}else if(RP(be))return 1;return Ht&1?1:0}function r6(R,be,Ht,Oi){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!R||Y&&hk(R,Y)?0:1;if(Y&&R&&!pg(R.pos)&&!sl(be)&&(!be.parent||be.parent===R)){if(Ae){const yu=Oi&&!pg(Oi.end)?Oi.end:be.end;return Db(Jr=>Gye(yu,R.end,Y,Jr))}return Vye(R,be,Y)?0:1}if(xb(be,Ht))return 1}return Ht&1&&!(Ht&131072)?1:0}function Db(R){H.assert(!!Ae);const be=R(!0);return be===0?R(!1):be}function w9(R,be){const Ht=Ae&&uF(be,R,0);return Ht&&_3(Ht,!1),!!Ht}function rF(R,be){const Ht=Ae&&r6(be,R,0,void 0);Ht&&wd(Ht)}function xb(R,be){if(sl(R)){const Ht=RP(R);return Ht===void 0?(be&65536)!==0:Ht}return(be&65536)!==0}function E4(R,be,Ht){return bs(R)&262144?0:(R=yc(R),be=yc(be),Ht=yc(Ht),RP(Ht)?1:Y&&!sl(R)&&!sl(be)&&!sl(Ht)?Ae?Db(Oi=>mle(be,Ht,Y,Oi)):qj(be,Ht,Y)?0:1:0)}function hC(R){return R.statements.length===0&&(!Y||qj(R,R,Y))}function yc(R){for(;R.kind===217&&sl(R);)R=R.expression;return R}function md(R,be){if(al(R)||Uy(R))return a6(R);if(us(R)&&R.textSourceNode)return md(R.textSourceNode,be);const Ht=Y,Oi=!!Ht&&!!R.parent&&!sl(R);if(J_(R)){if(!Oi||zn(R)!==Wl(Ht))return fu(R)}else if(gg(R)){if(!Oi||zn(R)!==Wl(Ht))return zP(R)}else if(H.assertNode(R,E2),!Oi)return R.text;return x2(Ht,R,be)}function T9(R,be,Ht){if(R.kind===11&&R.textSourceNode){const yu=R.textSourceNode;if(at(yu)||ea(yu)||Of(yu)||gg(yu)){const Jr=Of(yu)?yu.text:md(yu);return Ht?`"${X0e(Jr)}"`:be||bs(R)&16777216?`"${Av(Jr)}"`:`"${jj(Jr)}"`}else return T9(yu,be,Ht)}const Oi=(be?1:0)|(Ht?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return wbe(R,Y,Oi)}function O1(R){R&&bs(R)&1048576||(Ne.push(pe),pe=0,Ce.push(ne),ne=void 0,fe.push(xe))}function Ff(R){R&&bs(R)&1048576||(pe=Ne.pop(),ne=Ce.pop(),xe=fe.pop())}function vb(R){(!xe||xe===qu(fe))&&(xe=new Set),xe.add(R)}function _4(R,be){ve.push(Se),Se=R,Be.push(xe),Ge=be}function fC(){Se=ve.pop(),Ge=Be.pop()}function T5(R){(!Ge||Ge===qu(Be))&&(Ge=new Set),Ge.add(R)}function n1(R){if(R)switch(R.kind){case 241:L(R.statements,n1);break;case 256:case 254:case 246:case 247:n1(R.statement);break;case 245:n1(R.thenStatement),n1(R.elseStatement);break;case 248:case 250:case 249:n1(R.initializer),n1(R.statement);break;case 255:n1(R.caseBlock);break;case 269:L(R.clauses,n1);break;case 296:case 297:L(R.statements,n1);break;case 258:n1(R.tryBlock),n1(R.catchClause),n1(R.finallyBlock);break;case 299:n1(R.variableDeclaration),n1(R.block);break;case 243:n1(R.declarationList);break;case 261:L(R.declarations,n1);break;case 260:case 169:case 208:case 263:op(R.name);break;case 262:op(R.name),bs(R)&1048576&&(L(R.parameters,n1),n1(R.body));break;case 206:case 207:L(R.elements,n1);break;case 272:n1(R.importClause);break;case 273:op(R.name),n1(R.namedBindings);break;case 274:op(R.name);break;case 280:op(R.name);break;case 275:L(R.elements,n1);break;case 276:op(R.propertyName||R.name);break}}function aF(R){if(R)switch(R.kind){case 303:case 304:case 172:case 174:case 177:case 178:op(R.name);break}}function op(R){R&&(al(R)||Uy(R)?a6(R):So(R)&&n1(R))}function a6(R){const be=R.emitNode.autoGenerate;if((be.flags&7)===4)return Hw(jV(R),ea(R),be.flags,be.prefix,be.suffix);{const Ht=be.id;return ge[Ht]||(ge[Ht]=cz(R))}}function Hw(R,be,Ht,Oi,yu){const Jr=$s(R),br=be?se:oe;return br[Jr]||(br[Jr]=L5(R,be,Ht??0,RB(Oi,a6),RB(yu)))}function R0(R,be){return oF(R)&&!Kw(R,be)&&!ae.has(R)}function Kw(R,be){return be?!!(Ge!=null&&Ge.has(R)):!!(xe!=null&&xe.has(R))}function oF(R,be){return Y?QU(Y,R,s):!0}function mC(R,be){for(let Ht=be;Ht&&S2(Ht,be);Ht=Ht.nextContainer)if(UE(Ht)&&Ht.locals){const Oi=Ht.locals.get(Al(R));if(Oi&&Oi.flags&3257279)return!1}return!0}function L9(R){switch(R){case"":return pe;case"#":return Se;default:return(ne==null?void 0:ne.get(R))??0}}function Kh(R,be){switch(R){case"":pe=be;break;case"#":Se=be;break;default:ne??(ne=new Map),ne.set(R,be);break}}function D3(R,be,Ht,Oi,yu){Oi.length>0&&Oi.charCodeAt(0)===35&&(Oi=Oi.slice(1));const Jr=jv(Ht,Oi,"",yu);let br=L9(Jr);if(R&&!(br&R)){const Ao=jv(Ht,Oi,R===268435456?"_i":"_n",yu);if(R0(Ao,Ht))return br|=R,Ht?T5(Ao):be&&vb(Ao),Kh(Jr,br),Ao}for(;;){const Ea=br&268435455;if(br++,Ea!==8&&Ea!==13){const Ao=Ea<26?"_"+String.fromCharCode(97+Ea):"_"+(Ea-26),Af=jv(Ht,Oi,Ao,yu);if(R0(Af,Ht))return Ht?T5(Af):be&&vb(Af),Kh(Jr,br),Af}}}function mD(R,be=R0,Ht,Oi,yu,Jr,br){if(R.length>0&&R.charCodeAt(0)===35&&(R=R.slice(1)),Jr.length>0&&Jr.charCodeAt(0)===35&&(Jr=Jr.slice(1)),Ht){const Ao=jv(yu,Jr,R,br);if(be(Ao,yu))return yu?T5(Ao):Oi?vb(Ao):ae.add(Ao),Ao}R.charCodeAt(R.length-1)!==95&&(R+="_");let Ea=1;for(;;){const Ao=jv(yu,Jr,R+Ea,br);if(be(Ao,yu))return yu?T5(Ao):Oi?vb(Ao):ae.add(Ao),Ao;Ea++}}function Cb(R){return mD(R,oF,!0,!1,!1,"","")}function _m(R){const be=md(R.name);return mC(be,ur(R,UE))?be:mD(be,R0,!1,!1,!1,"","")}function N9(R){const be=Y8(R),Ht=us(be)?Lbe(be.text):"module";return mD(Ht,R0,!1,!1,!1,"","")}function o6(){return mD("default",R0,!1,!1,!1,"","")}function qm(){return mD("class",R0,!1,!1,!1,"","")}function bb(R,be,Ht,Oi){return at(R.name)?Hw(R.name,be):D3(0,!1,be,Ht,Oi)}function L5(R,be,Ht,Oi,yu){switch(R.kind){case 80:case 81:return mD(md(R),R0,!!(Ht&16),!!(Ht&8),be,Oi,yu);case 267:case 266:return H.assert(!Oi&&!yu&&!be),_m(R);case 272:case 278:return H.assert(!Oi&&!yu&&!be),N9(R);case 262:case 263:{H.assert(!Oi&&!yu&&!be);const Jr=R.name;return Jr&&!al(Jr)?L5(Jr,!1,Ht,Oi,yu):o6()}case 277:return H.assert(!Oi&&!yu&&!be),o6();case 231:return H.assert(!Oi&&!yu&&!be),qm();case 174:case 177:case 178:return bb(R,be,Oi,yu);case 167:return D3(0,!0,be,Oi,yu);default:return D3(0,!1,be,Oi,yu)}}function cz(R){const be=R.emitNode.autoGenerate,Ht=RB(be.prefix,a6),Oi=RB(be.suffix);switch(be.flags&7){case 1:return D3(0,!!(be.flags&8),ea(R),Ht,Oi);case 2:return H.assertNode(R,at),D3(268435456,!!(be.flags&8),!1,Ht,Oi);case 3:return mD(fu(R),be.flags&32?oF:R0,!!(be.flags&16),!!(be.flags&8),ea(R),Ht,Oi)}return H.fail(`Unsupported GeneratedIdentifierKind: ${H.formatEnum(be.flags&7,sU,!0)}.`)}function P9(R,be){const Ht=je(2,R,be),Oi=Ni,yu=ji,Jr=xn;M9(be),Ht(R,be),z9(be,Oi,yu,Jr)}function M9(R){const be=bs(R),Ht=nE(R);pC(R,be,Ht.pos,Ht.end),be&4096&&(Ai=!0)}function z9(R,be,Ht,Oi){const yu=bs(R),Jr=nE(R);yu&4096&&(Ai=!1),$f(R,yu,Jr.pos,Jr.end,be,Ht,Oi);const br=Wke(R);br&&$f(R,yu,br.pos,br.end,be,Ht,Oi)}function pC(R,be,Ht,Oi){yr(),Pi=!1;const yu=Ht<0||(be&1024)!==0||R.kind===12,Jr=Oi<0||(be&2048)!==0||R.kind===12;(Ht>0||Oi>0)&&Ht!==Oi&&(yu||yb(Ht,R.kind!==359),(!yu||Ht>=0&&be&1024)&&(Ni=Ht),(!Jr||Oi>=0&&be&2048)&&(ji=Oi,R.kind===261&&(xn=Oi))),L(DB(R),x3),Ba()}function $f(R,be,Ht,Oi,yu,Jr,br){yr();const Ea=Oi<0||(be&2048)!==0||R.kind===12;L(DV(R),I9),(Ht>0||Oi>0)&&Ht!==Oi&&(Ni=yu,ji=Jr,xn=br,!Ea&&R.kind!==359&&sp(Oi)),Ba()}function x3(R){(R.hasLeadingNewline||R.kind===2)&&Ke.writeLine(),R9(R),R.hasTrailingNewLine||R.kind===2?Ke.writeLine():Ke.writeSpace(" ")}function I9(R){Ke.isAtStartOfLine()||Ke.writeSpace(" "),R9(R),R.hasTrailingNewLine&&Ke.writeLine()}function R9(R){const be=Ks(R),Ht=R.kind===3?n7(be):void 0;sB(be,Ht,Ke,0,be.length,j)}function Ks(R){return R.kind===3?`/*${R.text}*/`:`//${R.text}`}function _u(R,be,Ht){yr();const{pos:Oi,end:yu}=be,Jr=bs(R),br=Oi<0||(Jr&1024)!==0,Ea=Ai||yu<0||(Jr&2048)!==0;br||Gw(be),Ba(),Jr&4096&&!Ai?(Ai=!0,Ht(R),Ai=!1):Ht(R),yr(),Ea||(yb(be.end,!0),Pi&&!Ke.isAtStartOfLine()&&Ke.writeLine()),Ba()}function Dm(R,be){return R=Wl(R),R.parent&&R.parent===Wl(be).parent}function cf(R,be){if(be.pos-1&&Oi.indexOf(be)===yu+1}function yb(R,be){Pi=!1,be?R===0&&(Y!=null&&Y.isDeclarationFile)?Fb(R,gC):Fb(R,s6):R===0&&Fb(R,Ww)}function Ww(R,be,Ht,Oi,yu){EC(R,be)&&s6(R,be,Ht,Oi,yu)}function gC(R,be,Ht,Oi,yu){EC(R,be)||s6(R,be,Ht,Oi,yu)}function kb(R,be){return t.onlyPrintJsDocStyle?Jce(R,be)||XU(R,be):!0}function s6(R,be,Ht,Oi,yu){!Y||!kb(Y.text,R)||(Pi||(Fye(vi(),Ke,yu,R),Pi=!0),xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi?Ke.writeLine():Ht===3&&Ke.writeSpace(" "))}function Zm(R){Ai||R===-1||yb(R,!0)}function sp(R){Pc(R,l6)}function l6(R,be,Ht,Oi){!Y||!kb(Y.text,R)||(Ke.isAtStartOfLine()||Ke.writeSpace(" "),xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi&&Ke.writeLine())}function Up(R,be,Ht){Ai||(yr(),Pc(R,be?l6:Ht?lp:N5),Ba())}function lp(R,be,Ht){Y&&(xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Ht===2&&Ke.writeLine())}function N5(R,be,Ht,Oi){Y&&(xE(R),sB(Y.text,vi(),Ke,R,be,j),xE(be),Oi?Ke.writeLine():Ke.writeSpace(" "))}function Fb(R,be){Y&&(Ni===-1||R!==Ni)&&(dz(R)?D4(be):NO(Y.text,R,be,R))}function Pc(R,be){Y&&(ji===-1||R!==ji&&R!==xn)&&PO(Y.text,R,be)}function dz(R){return an!==void 0&&Cr(an).nodePos===R}function D4(R){if(!Y)return;const be=Cr(an).detachedCommentEndPos;an.length-1?an.pop():an=void 0,NO(Y.text,be,R,be)}function Gw(R){const be=Y&&Sye(Y.text,vi(),Ke,j1,R,j,Ai);be&&(an?an.push(be):an=[be])}function j1(R,be,Ht,Oi,yu,Jr){!Y||!kb(Y.text,Oi)||(xE(Oi),sB(R,be,Ht,Oi,yu,Jr),xE(yu))}function EC(R,be){return!!Y&&c0e(Y.text,R,be)}function Ab(R){return R.parsedSourceMap===void 0&&R.sourceMapText!==void 0&&(R.parsedSourceMap=Wde(R.sourceMapText)||!1),R.parsedSourceMap||void 0}function sF(R,be){const Ht=je(3,R,be);Jw(be),Ht(R,be),x4(be)}function Jw(R){const be=bs(R),Ht=Lv(R);if(Gse(R)){H.assertIsDefined(R.parent,"UnparsedNodes must have parent pointers");const Oi=Ab(R.parent);Oi&&St&&St.appendSourceMap(Ke.getLine(),Ke.getColumn(),Oi,R.parent.sourceMapPath,R.parent.getLineAndCharacterOfPosition(R.pos),R.parent.getLineAndCharacterOfPosition(R.end))}else{const Oi=Ht.source||It;R.kind!==359&&!(be&32)&&Ht.pos>=0&&c6(Ht.source||It,Ol(Oi,Ht.pos)),be&128&&(st=!0)}}function x4(R){const be=bs(R),Ht=Lv(R);Gse(R)||(be&128&&(st=!1),R.kind!==359&&!(be&64)&&Ht.end>=0&&c6(Ht.source||It,Ht.end))}function Ol(R,be){return R.skipTrivia?R.skipTrivia(be):gs(R.text,be)}function xE(R){if(st||pg(R)||d6(It))return;const{line:be,character:Ht}=s0(It,R);St.addMapping(Ke.getLine(),Ke.getColumn(),ei,be,Ht,void 0)}function c6(R,be){if(R!==It){const Ht=It,Oi=ei;_C(R),xE(be),$w(Ht,Oi)}else xE(be)}function v3(R,be,Ht,Oi,yu){if(st||R&&Dq(R))return yu(be,Ht,Oi);const Jr=R&&R.emitNode,br=Jr&&Jr.flags||0,Ea=Jr&&Jr.tokenSourceMapRanges&&Jr.tokenSourceMapRanges[be],Ao=Ea&&Ea.source||It;return Oi=Ol(Ao,Ea?Ea.pos:Oi),!(br&256)&&Oi>=0&&c6(Ao,Oi),Oi=yu(be,Ht,Oi),Ea&&(Oi=Ea.end),!(br&512)&&Oi>=0&&c6(Ao,Oi),Oi}function _C(R){if(!st){if(It=R,R===ht){ei=Ut;return}d6(R)||(ei=St.addSource(R.fileName),t.inlineSources&&St.setSourceContent(ei,R.text),ht=R,Ut=ei)}}function $w(R,be){It=R,ei=be}function d6(R){return Ml(R.fileName,".json")}}function lzt(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function czt(t){return T7e[t&15360][0]}function dzt(t){return T7e[t&15360][1]}function hzt(t,u,s,d){u(t)}function fzt(t,u,s,d){u(t,s.select(d))}function mzt(t,u,s,d){u(t,s)}function pzt(t,u){return t.length===1?hzt:typeof u=="object"?fzt:mzt}var T7e,DQ,f1e,X2,m1e,EH,gzt=o({"src/compiler/emitter.ts"(){Bo(),Bo(),Wy(),T7e=lzt(),DQ={hasGlobalName:ho,getReferencedExportContainer:ho,getReferencedImportDeclaration:ho,getReferencedDeclarationWithCollidingName:ho,isDeclarationWithCollidingName:ho,isValueAliasDeclaration:ho,isReferencedAliasDeclaration:ho,isTopLevelValueImportEqualsWithEntityName:ho,getNodeCheckFlags:ho,isDeclarationVisible:ho,isLateBound:t=>!1,collectLinkedAliases:ho,isImplementationOfOverload:ho,isRequiredInitializedParameter:ho,isOptionalUninitializedParameterProperty:ho,isExpandoFunctionDeclaration:ho,getPropertiesOfContainerFunction:ho,createTypeOfDeclaration:ho,createReturnTypeOfSignatureDeclaration:ho,createTypeOfExpression:ho,createLiteralConstValue:ho,isSymbolAccessible:ho,isEntityNameVisible:ho,getConstantValue:ho,getReferencedValueDeclaration:ho,getReferencedValueDeclarations:ho,getTypeReferenceSerializationKind:ho,isOptionalParameter:ho,moduleExportsSomeValue:ho,isArgumentsLocalBinding:ho,getExternalModuleFileFromDeclaration:ho,getTypeReferenceDirectivesForEntityName:ho,getTypeReferenceDirectivesForSymbol:ho,isLiteralConstDeclaration:ho,getJsxFactoryEntity:ho,getJsxFragmentFactoryEntity:ho,getAllAccessorDeclarations:ho,getSymbolOfExternalModuleSpecifier:ho,isBindingCapturedByNode:ho,getDeclarationStatementsForSourceFile:ho,isImportRequiredByAugmentation:ho,tryFindAmbientModule:ho},f1e=Mh(()=>Gv({})),X2=Mh(()=>Gv({removeComments:!0})),m1e=Mh(()=>Gv({removeComments:!0,neverAsciiEscape:!0})),EH=Mh(()=>Gv({removeComments:!0,omitTrailingSemicolon:!0}))}});function xQ(t,u,s){if(!t.getDirectories||!t.readDirectory)return;const d=new Map,f=L1(s);return{useCaseSensitiveFileNames:s,fileExists:z,readFile:(ne,ve)=>t.readFile(ne,ve),directoryExists:t.directoryExists&&j,getDirectories:K,readDirectory:Y,createDirectory:t.createDirectory&&J,writeFile:t.writeFile&&M,addOrDeleteFileOrDirectory:se,addOrDeleteFile:ge,clearCache:Ce,realpath:t.realpath&&oe};function p(ne){return J0(ne,u,f)}function E(ne){return d.get(zd(ne))}function v(ne){const ve=E(lr(ne));return ve&&(ve.sortedAndCanonicalizedFiles||(ve.sortedAndCanonicalizedFiles=ve.files.map(f).sort(),ve.sortedAndCanonicalizedDirectories=ve.directories.map(f).sort()),ve)}function b(ne){return Ac($o(ne))}function B(ne,ve){var Se;if(!t.realpath||zd(p(t.realpath(ne)))===ve){const Ne={files:Vt(t.readDirectory(ne,void 0,void 0,["*.*"]),b)||[],directories:t.getDirectories(ne)||[]};return d.set(zd(ve),Ne),Ne}if((Se=t.directoryExists)!=null&&Se.call(t,ne))return d.set(ve,!1),!1}function k(ne,ve){ve=zd(ve);const Se=E(ve);if(Se)return Se;try{return B(ne,ve)}catch{H.assert(!d.has(zd(ve)));return}}function T(ne,ve){return Kl(ne,ve,il,dh)>=0}function M(ne,ve,Se){const Ne=p(ne),pe=v(Ne);return pe&&ae(pe,b(ne),!0),t.writeFile(ne,ve,Se)}function z(ne){const ve=p(ne),Se=v(ve);return Se&&T(Se.sortedAndCanonicalizedFiles,f(b(ne)))||t.fileExists(ne)}function j(ne){const ve=p(ne);return d.has(zd(ve))||t.directoryExists(ne)}function J(ne){const ve=p(ne),Se=v(ve);if(Se){const Ne=b(ne),pe=f(Ne),fe=Se.sortedAndCanonicalizedDirectories;Tt(fe,pe,dh)&&Se.directories.push(Ne)}t.createDirectory(ne)}function K(ne){const ve=p(ne),Se=k(ne,ve);return Se?Se.directories.slice():t.getDirectories(ne)}function Y(ne,ve,Se,Ne,pe){const fe=p(ne),xe=k(ne,fe);let Be;if(xe!==void 0)return Ale(ne,ve,Se,Ne,s,u,pe,Ge,oe);return t.readDirectory(ne,ve,Se,Ne,pe);function Ge(De){const Ke=p(De);if(Ke===fe)return xe||Ae(De,Ke);const Je=k(De,Ke);return Je!==void 0?Je||Ae(De,Ke):bZ}function Ae(De,Ke){if(Be&&Ke===fe)return Be;const Je={files:Vt(t.readDirectory(De,void 0,void 0,["*.*"]),b)||_t,directories:t.getDirectories(De)||_t};return Ke===fe&&(Be=Je),Je}}function oe(ne){return t.realpath?t.realpath(ne):ne}function se(ne,ve){if(E(ve)!==void 0){Ce();return}const Ne=v(ve);if(!Ne)return;if(!t.directoryExists){Ce();return}const pe=b(ne),fe={fileExists:t.fileExists(ve),directoryExists:t.directoryExists(ve)};return fe.directoryExists||T(Ne.sortedAndCanonicalizedDirectories,f(pe))?Ce():ae(Ne,pe,fe.fileExists),fe}function ge(ne,ve,Se){if(Se===1)return;const Ne=v(ve);Ne&&ae(Ne,b(ne),Se===0)}function ae(ne,ve,Se){const Ne=ne.sortedAndCanonicalizedFiles,pe=f(ve);if(Se)Tt(Ne,pe,dh)&&ne.files.push(ve);else{const fe=Kl(Ne,pe,il,dh);if(fe>=0){Ne.splice(fe,1);const xe=ne.files.findIndex(Be=>f(Be)===pe);ne.files.splice(xe,1)}}}function Ce(){d.clear()}}function vQ(t,u,s,d,f){var p;const E=lg(((p=u==null?void 0:u.configFile)==null?void 0:p.extendedSourceFiles)||_t,f);s.forEach((v,b)=>{E.has(b)||(v.projects.delete(t),v.close())}),E.forEach((v,b)=>{const B=s.get(b);B?B.projects.add(t):s.set(b,{projects:new Set([t]),watcher:d(v,b),close:()=>{const k=s.get(b);!k||k.projects.size!==0||(k.watcher.close(),s.delete(b))}})})}function p1e(t,u){u.forEach(s=>{s.projects.delete(t)&&s.close()})}function CQ(t,u,s){t.delete(u)&&t.forEach(({extendedResult:d},f)=>{var p;(p=d.extendedSourceFiles)!=null&&p.some(E=>s(E)===u)&&CQ(t,f,s)})}function utt(t,u,s){const d=new Map(t);cB(u,d,{createNewValue:s,onDeleteValue:fg})}function g1e(t,u,s){const d=t.getMissingFilePaths(),f=lg(d,il,J3);cB(u,f,{createNewValue:s,onDeleteValue:fg})}function _H(t,u,s){cB(t,u,{createNewValue:d,onDeleteValue:jm,onExistingValue:f});function d(p,E){return{watcher:s(p,E),flags:E}}function f(p,E,v){p.flags!==E&&(p.watcher.close(),t.set(v,d(v,E)))}}function DH({watchedDirPath:t,fileOrDirectory:u,fileOrDirectoryPath:s,configFileName:d,options:f,program:p,extraFileExtensions:E,currentDirectory:v,useCaseSensitiveFileNames:b,writeLog:B,toPath:k,getScriptKind:T}){const M=zQ(s);if(!M)return B(`Project: ${d} Detected ignored path: ${u}`),!0;if(s=M,s===t)return!1;if(t7(s)&&!(hke(u,f,E)||Y()))return B(`Project: ${d} Detected file add/remove of non supported extension: ${u}`),!0;if(QFe(u,f.configFile.configFileSpecs,$a(lr(d),v),b,v))return B(`Project: ${d} Detected excluded file: ${u}`),!0;if(!p||y0(f)||f.outDir)return!1;if(e1(s)){if(f.declarationDir)return!1}else if(!jc(s,_B))return!1;const z=_h(s),j=Ha(p)?void 0:Ezt(p)?p.getProgramOrUndefined():p,J=!j&&!Ha(p)?p:void 0;if(K(z+".ts")||K(z+".tsx"))return B(`Project: ${d} Detected output file: ${u}`),!0;return!1;function K(oe){return j?!!j.getSourceFileByPath(oe):J?J.getState().fileInfos.has(oe):!!Le(p,se=>k(se)===oe)}function Y(){if(!T)return!1;switch(T(u)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return Bv(f);case 6:return M2(f);case 0:return!1}}}function Ezt(t){return!!t.getState}function L7e(t,u){return t?t.isEmittedFile(u):!1}function E1e(t,u,s,d){g2e(u===2?s:Is);const f={watchFile:(J,K,Y,oe)=>t.watchFile(J,K,Y,oe),watchDirectory:(J,K,Y,oe)=>t.watchDirectory(J,K,(Y&1)!==0,oe)},p=u!==0?{watchFile:z("watchFile"),watchDirectory:z("watchDirectory")}:void 0,E=u===2?{watchFile:T,watchDirectory:M}:p||f,v=u===2?k:iw;return{watchFile:b("watchFile"),watchDirectory:b("watchDirectory")};function b(J){return(K,Y,oe,se,ge,ae)=>{var Ce;return TY(K,J==="watchFile"?se==null?void 0:se.excludeFiles:se==null?void 0:se.excludeDirectories,B(),((Ce=t.getCurrentDirectory)==null?void 0:Ce.call(t))||"")?v(K,oe,se,ge,ae):E[J].call(void 0,K,Y,oe,se,ge,ae)}}function B(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function k(J,K,Y,oe,se){return s(`ExcludeWatcher:: Added:: ${j(J,K,Y,oe,se,d)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${j(J,K,Y,oe,se,d)}`)}}function T(J,K,Y,oe,se,ge){s(`FileWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`);const ae=p.watchFile(J,K,Y,oe,se,ge);return{close:()=>{s(`FileWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`),ae.close()}}}function M(J,K,Y,oe,se,ge){const ae=`DirectoryWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`;s(ae);const Ce=G0(),ne=p.watchDirectory(J,K,Y,oe,se,ge),ve=G0()-Ce;return s(`Elapsed:: ${ve}ms ${ae}`),{close:()=>{const Se=`DirectoryWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`;s(Se);const Ne=G0();ne.close();const pe=G0()-Ne;s(`Elapsed:: ${pe}ms ${Se}`)}}}function z(J){return(K,Y,oe,se,ge,ae)=>f[J].call(void 0,K,(...Ce)=>{const ne=`${J==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Ce[0]} ${Ce[1]!==void 0?Ce[1]:""}:: ${j(K,oe,se,ge,ae,d)}`;s(ne);const ve=G0();Y.call(void 0,...Ce);const Se=G0()-ve;s(`Elapsed:: ${Se}ms ${ne}`)},oe,se,ge,ae)}function j(J,K,Y,oe,se,ge){return`WatchInfo: ${J} ${K} ${JSON.stringify(Y)} ${ge?ge(oe,se):se===void 0?oe:`${oe} ${se}`}`}}function xH(t){const u=t==null?void 0:t.fallbackPolling;return{watchFile:u!==void 0?u:1}}function jm(t){t.watcher.close()}var _1e,D1e,_zt=o({"src/compiler/watchUtilities.ts"(){Bo(),_1e=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(_1e||{}),D1e=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(D1e||{})}});function N7e(t,u,s="tsconfig.json"){return Ug(t,d=>{const f=cr(d,s);return u(f)?f:void 0})}function bQ(t,u){const s=lr(u),d=Pf(t)?t:cr(s,t);return $o(d)}function P7e(t,u,s){let d;return L(t,p=>{const E=FO(p,u);if(E.pop(),!d){d=E;return}const v=Math.min(d.length,E.length);for(let b=0;b{let E;try{ul("beforeIORead"),E=t(d,u().charset),ul("afterIORead"),Tm("I/O Read","beforeIORead","afterIORead")}catch(v){p&&p(v.message),E=""}return E!==void 0?KV(d,E,f,s):void 0}}function v1e(t,u,s){return(d,f,p,E)=>{try{ul("beforeIOWrite"),nle(d,f,p,t,u,s),ul("afterIOWrite"),Tm("I/O Write","beforeIOWrite","afterIOWrite")}catch(v){E&&E(v.message)}}}function C1e(t,u,s=c1){const d=new Map,f=L1(s.useCaseSensitiveFileNames);function p(k){return d.has(k)?!0:(B.directoryExists||s.directoryExists)(k)?(d.set(k,!0),!0):!1}function E(){return lr($o(s.getExecutingFilePath()))}const v=a5(t),b=s.realpath&&(k=>s.realpath(k)),B={getSourceFile:x1e(k=>B.readFile(k),()=>t,u),getDefaultLibLocation:E,getDefaultLibFileName:k=>cr(E(),zO(k)),writeFile:v1e((k,T,M)=>s.writeFile(k,T,M),k=>(B.createDirectory||s.createDirectory)(k),k=>p(k)),getCurrentDirectory:Mh(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:f,getNewLine:()=>v,fileExists:k=>s.fileExists(k),readFile:k=>s.readFile(k),trace:k=>s.write(k+v),directoryExists:k=>s.directoryExists(k),getEnvironmentVariable:k=>s.getEnvironmentVariable?s.getEnvironmentVariable(k):"",getDirectories:k=>s.getDirectories(k),realpath:b,readDirectory:(k,T,M,z,j)=>s.readDirectory(k,T,M,z,j),createDirectory:k=>s.createDirectory(k),createHash:Lo(s,s.createHash)};return B}function vH(t,u,s){const d=t.readFile,f=t.fileExists,p=t.directoryExists,E=t.createDirectory,v=t.writeFile,b=new Map,B=new Map,k=new Map,T=new Map,M=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:z(K,J)},z=(J,K)=>{const Y=d.call(t,K);return b.set(J,Y!==void 0?Y:!1),Y};t.readFile=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:!Ml(J,".json")&&!S7e(J)?d.call(t,J):z(K,J)};const j=s?(J,K,Y,oe)=>{const se=u(J),ge=typeof K=="object"?K.impliedNodeFormat:void 0,ae=T.get(ge),Ce=ae==null?void 0:ae.get(se);if(Ce)return Ce;const ne=s(J,K,Y,oe);return ne&&(e1(J)||Ml(J,".json"))&&T.set(ge,(ae||new Map).set(se,ne)),ne}:void 0;return t.fileExists=J=>{const K=u(J),Y=B.get(K);if(Y!==void 0)return Y;const oe=f.call(t,J);return B.set(K,!!oe),oe},v&&(t.writeFile=(J,K,...Y)=>{const oe=u(J);B.delete(oe);const se=b.get(oe);se!==void 0&&se!==K?(b.delete(oe),T.forEach(ge=>ge.delete(oe))):j&&T.forEach(ge=>{const ae=ge.get(oe);ae&&ae.text!==K&&ge.delete(oe)}),v.call(t,J,K,...Y)}),p&&(t.directoryExists=J=>{const K=u(J),Y=k.get(K);if(Y!==void 0)return Y;const oe=p.call(t,J);return k.set(K,!!oe),oe},E&&(t.createDirectory=J=>{const K=u(J);k.delete(K),E.call(t,J)})),{originalReadFile:d,originalFileExists:f,originalDirectoryExists:p,originalCreateDirectory:E,originalWriteFile:v,getSourceFileWithCache:j,readFileWithCache:M}}function rtt(t,u,s){let d;return d=yn(d,t.getConfigFileParsingDiagnostics()),d=yn(d,t.getOptionsDiagnostics(s)),d=yn(d,t.getSyntacticDiagnostics(u,s)),d=yn(d,t.getGlobalDiagnostics(s)),d=yn(d,t.getSemanticDiagnostics(u,s)),c4(t.getCompilerOptions())&&(d=yn(d,t.getDeclarationDiagnostics(u,s))),A8(d||_t)}function att(t,u){let s="";for(const d of t)s+=b1e(d,u);return s}function b1e(t,u){const s=`${Gy(t)} TS${t.code}: ${lE(t.messageText,u.getNewLine())}${u.getNewLine()}`;if(t.file){const{line:d,character:f}=s0(t.file,t.start),p=t.file.fileName;return`${wN(p,u.getCurrentDirectory(),v=>u.getCanonicalFileName(v))}(${d+1},${f+1}): `+s}return s}function ott(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return H.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function eb(t,u){return u+t+O7e}function stt(t,u,s,d,f,p){const{line:E,character:v}=s0(t,u),{line:b,character:B}=s0(t,u+s),k=s0(t,t.text.length).line,T=b-E>=4;let M=(b+1+"").length;T&&(M=Math.max(j7e.length,M));let z="";for(let j=E;j<=b;j++){z+=p.getNewLine(),T&&E+1s.getCanonicalFileName(b)):t.fileName;let v="";return v+=d(E,"\x1B[96m"),v+=":",v+=d(`${f+1}`,"\x1B[93m"),v+=":",v+=d(`${p+1}`,"\x1B[93m"),v}function z7e(t,u){let s="";for(const d of t){if(d.file){const{file:f,start:p}=d;s+=y1e(f,p,u),s+=" - "}if(s+=eb(Gy(d),ott(d.category)),s+=eb(` TS${d.code}: `,"\x1B[90m"),s+=lE(d.messageText,u.getNewLine()),d.file&&d.code!==F.File_appears_to_be_binary.code&&(s+=u.getNewLine(),s+=stt(d.file,d.start,d.length,"",ott(d.category),u)),d.relatedInformation){s+=u.getNewLine();for(const{file:f,start:p,length:E,messageText:v}of d.relatedInformation)f&&(s+=u.getNewLine(),s+=dtt+y1e(f,p,u),s+=stt(f,p,E,V7e,"\x1B[96m",u)),s+=u.getNewLine(),s+=V7e+lE(v,u.getNewLine())}s+=u.getNewLine()}return s}function lE(t,u,s=0){if(Ja(t))return t;if(t===void 0)return"";let d="";if(s){d+=u;for(let f=0;fWB(p,t,s,d,f,u,E)}}function R7e(t){return Ja(t)?t:$g(t.fileName)}function kQ(t,u,s,d,f){return{nameAndMode:LQ,resolve:(p,E)=>hAe(p,t,s,d,u,f,E)}}function CH(t,u,s,d,f,p,E,v){if(t.length===0)return _t;const b=[],B=new Map,k=v(u,s,d,p,E);for(const T of t){const M=k.nameAndMode.getName(T),z=k.nameAndMode.getMode(T,f),j=dM(M,z);let J=B.get(j);J||B.set(j,J=k.resolve(M,z)),b.push(J)}return b}function S1e(t,u){return FQ(void 0,t,(s,d)=>s&&u(s,d))}function FQ(t,u,s,d){let f;return p(t,u,void 0);function p(E,v,b){if(d){const B=d(E,b);if(B)return B}return L(v,(B,k)=>{if(B&&(f!=null&&f.has(B.sourceFile.path)))return;const T=s(B,b,k);return T||!B?T:((f||(f=new Set)).add(B.sourceFile.path),p(B.commandLine.projectReferences,B.references,B))})}}function AQ(t,u,s){const d=t.configFilePath?lr(t.configFilePath):u;return cr(d,`__lib_node_modules_lookup_${s}__.ts`)}function B1e(t){const u=t.split(".");let s=u[1],d=2;for(;u[d]&&u[d]!=="d";)s+=(d===2?"/":"-")+u[d],d++;return"@typescript/lib-"+s}function ltt(t){const u=$g(t.fileName),s=LY.get(u);return{libName:u,libFileName:s}}function Jv(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function ZB(t){return t.pos!==void 0}function FM(t,u){var s,d,f,p;const E=H.checkDefined(t.getSourceFileByPath(u.file)),{kind:v,index:b}=u;let B,k,T,M;switch(v){case 3:const z=TQ(E,b);if(T=(d=(s=t.getResolvedModule(E,z.text,k1e(E,b)))==null?void 0:s.resolvedModule)==null?void 0:d.packageId,z.pos===-1)return{file:E,packageId:T,text:z.text};B=gs(E.text,z.pos),k=z.end;break;case 4:({pos:B,end:k}=E.referencedFiles[b]);break;case 5:({pos:B,end:k,resolutionMode:M}=E.typeReferenceDirectives[b]),T=(p=(f=t.getResolvedTypeReferenceDirective(E,$g(E.typeReferenceDirectives[b].fileName),M||E.impliedNodeFormat))==null?void 0:f.resolvedTypeReferenceDirective)==null?void 0:p.packageId;break;case 7:({pos:B,end:k}=E.libReferenceDirectives[b]);break;default:return H.assertNever(v)}return{file:E,pos:B,end:k,packageId:T}}function w1e(t,u,s,d,f,p,E,v,b,B){if(!t||v!=null&&v()||!On(t.getRootFileNames(),u))return!1;let k;if(!On(t.getProjectReferences(),B,j)||t.getSourceFiles().some(M)||t.getMissingFilePaths().some(f))return!1;const T=t.getCompilerOptions();if(!gle(T,s)||t.resolvedLibReferences&&h1(t.resolvedLibReferences,(K,Y)=>E(Y)))return!1;if(T.configFile&&s.configFile)return T.configFile.text===s.configFile.text;return!0;function M(K){return!z(K)||p(K.path)}function z(K){return K.version===d(K.resolvedPath,K.fileName)}function j(K,Y,oe){return a0e(K,Y)&&J(t.getResolvedProjectReferences()[oe],K)}function J(K,Y){if(K){if(kt(k,K))return!0;const se=YB(Y),ge=b(se);return!ge||K.commandLine.options.configFile!==ge.options.configFile||!On(K.commandLine.fileNames,ge.fileNames)?!1:((k||(k=[])).push(K),!L(K.references,(ae,Ce)=>!J(ae,K.commandLine.projectReferences[Ce])))}const oe=YB(Y);return!b(oe)}}function Lk(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function bH(t,u,s,d){const f=T1e(t,u,s,d);return typeof f=="object"?f.impliedNodeFormat:f}function T1e(t,u,s,d){switch(p1(d)){case 3:case 99:return jc(t,[".d.mts",".mts",".mjs"])?99:jc(t,[".d.cts",".cts",".cjs"])?1:jc(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;default:return}function f(){const p=rH(u,s,d),E=[];p.failedLookupLocations=E,p.affectingLocations=E;const v=aH(t,p);return{impliedNodeFormat:(v==null?void 0:v.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:E,packageJsonScope:v}}}function Dzt(t,u){return t?R8(t.getCompilerOptions(),u,PY):!1}function xzt(t,u,s,d,f,p){return{rootNames:t,options:u,host:s,oldProgram:d,configFileParsingDiagnostics:f,typeScriptVersion:p}}function SQ(t,u,s,d,f){var p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge;const ae=Ha(t)?xzt(t,u,s,d,f):t,{rootNames:Ce,options:ne,configFileParsingDiagnostics:ve,projectReferences:Se,typeScriptVersion:Ne}=ae;let{oldProgram:pe}=ae;const fe=Mh(()=>np("ignoreDeprecations",F.Invalid_value_for_ignoreDeprecations));let xe,Be,Ge,Ae,De,Ke,Je;const ft=new Map;let Ye=wm();const Ve={},We={};let Gt=U7(),Yt,Ie,st,St,It,ei,ht,Ut,Ni,ji;const xn=typeof ne.maxNodeModuleJsDepth=="number"?ne.maxNodeModuleJsDepth:0;let Jn=0;const an=new Map,Pi=new Map;(p=Gn)==null||p.push(Gn.Phase.Program,"createProgram",{configFilePath:ne.configFilePath,rootDir:ne.rootDir},!0),ul("beforeProgram");const Ai=ae.host||M7e(ne),Zu=wQ(Ai);let aa=ne.noLib;const yr=Mh(()=>Ai.getDefaultLibFileName(ne)),Ba=Ai.getDefaultLibLocation?Ai.getDefaultLibLocation():lr(yr()),bt=rB(),jn=Ai.getCurrentDirectory(),Ln=kP(ne),Si=tV(ne,Ln),Dn=new Map;let Cn,tu,oa;const Da=Ai.hasInvalidatedResolutions||cg;Ai.resolveModuleNameLiterals?(oa=Ai.resolveModuleNameLiterals.bind(Ai),tu=(E=Ai.getModuleResolutionCache)==null?void 0:E.call(Ai)):Ai.resolveModuleNames?(oa=(Xe,Dt,oi,Ti,Xi,Rn)=>Ai.resolveModuleNames(Xe.map(I7e),Dt,Rn==null?void 0:Rn.map(I7e),oi,Ti,Xi).map(tn=>tn?tn.extension!==void 0?{resolvedModule:tn}:{resolvedModule:{...tn,extension:y7(tn.resolvedFileName)}}:H7e),tu=(v=Ai.getModuleResolutionCache)==null?void 0:v.call(Ai)):(tu=KB(jn,m4,ne),oa=(Xe,Dt,oi,Ti,Xi)=>CH(Xe,Dt,oi,Ti,Xi,Ai,tu,A1e));let ra;if(Ai.resolveTypeReferenceDirectiveReferences)ra=Ai.resolveTypeReferenceDirectiveReferences.bind(Ai);else if(Ai.resolveTypeReferenceDirectives)ra=(Xe,Dt,oi,Ti,Xi)=>Ai.resolveTypeReferenceDirectives(Xe.map(R7e),Dt,oi,Ti,Xi==null?void 0:Xi.impliedNodeFormat).map(Rn=>({resolvedTypeReferenceDirective:Rn}));else{const Xe=HY(jn,m4,void 0,tu==null?void 0:tu.getPackageJsonInfoCache(),tu==null?void 0:tu.optionsToRedirectsKey);ra=(Dt,oi,Ti,Xi,Rn)=>CH(Dt,oi,Ti,Xi,Rn,Ai,Xe,kQ)}const Ta=Ai.hasInvalidatedLibResolutions||cg;let Yo;if(Ai.resolveLibrary)Yo=Ai.resolveLibrary.bind(Ai);else{const Xe=KB(jn,m4,ne,tu==null?void 0:tu.getPackageJsonInfoCache());Yo=(Dt,oi,Ti)=>KY(Dt,oi,Ti,Ai,Xe)}const bo=new Map;let Qe=new Map,Et=wm(),Mt=!1;const qt=new Map;let Xt;const Pe=Ai.useCaseSensitiveFileNames()?new Map:void 0;let et,gt,ii,me;const ni=!!((b=Ai.useSourceOfProjectReferenceRedirect)!=null&&b.call(Ai))&&!ne.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:vi,fileExists:mt,directoryExists:Ot}=vzt({compilerHost:Ai,getSymlinkCache:b5,useSourceOfProjectReferenceRedirect:ni,toPath:Xu,getResolvedProjectReferences:Ya,getSourceOfProjectReferenceRedirect:ip,forEachResolvedProjectReference:Nc}),Ei=Ai.readFile.bind(Ai);(B=Gn)==null||B.push(Gn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const $i=Dzt(pe,ne);(k=Gn)==null||k.pop();let Qi;if((T=Gn)==null||T.push(Gn.Phase.Program,"tryReuseStructureFromOldProgram",{}),Qi=as(),(M=Gn)==null||M.pop(),Qi!==2){if(xe=[],Be=[],Se&&(et||(et=Se.map(Bt)),Ce.length&&(et==null||et.forEach((Xe,Dt)=>{if(!Xe)return;const oi=y0(Xe.commandLine.options);if(ni){if(oi||m1(Xe.commandLine.options)===0)for(const Ti of Xe.commandLine.fileNames)He(Ti,{kind:1,index:Dt})}else if(oi)He(wv(oi,".d.ts"),{kind:2,index:Dt});else if(m1(Xe.commandLine.options)===0){const Ti=Mh(()=>kM(Xe.commandLine,!Ai.useCaseSensitiveFileNames()));for(const Xi of Xe.commandLine.fileNames)!e1(Xi)&&!Ml(Xi,".json")&&He(bM(Xi,Xe.commandLine,!Ai.useCaseSensitiveFileNames(),Ti),{kind:2,index:Dt})}}))),(z=Gn)==null||z.push(Gn.Phase.Program,"processRootFiles",{count:Ce.length}),L(Ce,(Xe,Dt)=>nd(Xe,!1,!1,{kind:0,index:Dt})),(j=Gn)==null||j.pop(),Ie??(Ie=Ce.length?VY(ne,Ai):_t),st=U7(),Ie.length){(J=Gn)==null||J.push(Gn.Phase.Program,"processTypeReferences",{count:Ie.length});const Xe=ne.configFilePath?lr(ne.configFilePath):jn,Dt=cr(Xe,QB),oi=wn(Ie,Dt);for(let Ti=0;Ti{nd(R1(Dt),!0,!1,{kind:6,index:oi})})}Xt=ga(eo(qt.entries(),([Xe,Dt])=>Dt===void 0?Xe:void 0)),Ge=oc(xe,Ru).concat(Be),xe=void 0,Be=void 0}if(H.assert(!!Xt),pe&&Ai.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const Dt of Xe){const oi=Ko(Dt.resolvedPath);($i||!oi||oi.impliedNodeFormat!==Dt.impliedNodeFormat||Dt.resolvedPath===Dt.path&&oi.resolvedPath!==Dt.path)&&Ai.onReleaseOldSourceFile(Dt,pe.getCompilerOptions(),!!Ko(Dt.path))}Ai.getParsedCommandLine||pe.forEachResolvedProjectReference(Dt=>{jh(Dt.sourceFile.path)||Ai.onReleaseOldSourceFile(Dt.sourceFile,pe.getCompilerOptions(),!1)})}pe&&Ai.onReleaseParsedCommandLine&&FQ(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,Dt,oi)=>{const Ti=(Dt==null?void 0:Dt.commandLine.projectReferences[oi])||pe.getProjectReferences()[oi],Xi=YB(Ti);gt!=null&>.has(Xu(Xi))||Ai.onReleaseParsedCommandLine(Xi,Xe,pe.getCompilerOptions())}),pe=void 0,It=void 0,ht=void 0,Ni=void 0;const on={getRootFileNames:()=>Ce,getSourceFile:Y0,getSourceFileByPath:Ko,getSourceFiles:()=>Ge,getMissingFilePaths:()=>Xt,getModuleResolutionCache:()=>tu,getFilesByNameMap:()=>qt,getCompilerOptions:()=>ne,getSyntacticDiagnostics:Jp,getOptionsDiagnostics:Nr,getGlobalDiagnostics:Ss,getSemanticDiagnostics:Lc,getCachedSemanticDiagnostics:Il,getSuggestionDiagnostics:tt,getDeclarationDiagnostics:Ri,getBindAndCheckDiagnostics:cl,getProgramDiagnostics:Ka,getTypeChecker:vl,getClassifiableNames:Ku,getCommonSourceDirectory:ca,emit:co,getCurrentDirectory:()=>jn,getNodeCount:()=>vl().getNodeCount(),getIdentifierCount:()=>vl().getIdentifierCount(),getSymbolCount:()=>vl().getSymbolCount(),getTypeCount:()=>vl().getTypeCount(),getInstantiationCount:()=>vl().getInstantiationCount(),getRelationCacheSizes:()=>vl().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Yt,getResolvedTypeReferenceDirectives:()=>Gt,getAutomaticTypeDirectiveNames:()=>Ie,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:wl,isSourceFileDefaultLibrary:hd,getSourceFileFromReference:uh,getLibFileFromReference:Oh,sourceFileToPackageName:Qe,redirectTargetsMap:Et,usesUriStyleNodeCoreModules:Mt,resolvedModules:ei,resolvedTypeReferenceDirectiveNames:Ut,resolvedLibReferences:St,getResolvedModule:le,getResolvedTypeReferenceDirective:te,forEachResolvedModule:we,forEachResolvedTypeReferenceDirective:de,getCurrentPackagesMap:()=>ji,typesPackageExists:it,packageBundlesTypes:Ct,isEmittedFile:bg,getConfigFileParsingDiagnostics:ic,getProjectReferences:c0,getResolvedProjectReferences:Ya,getProjectReferenceRedirect:Cl,getResolvedProjectReferenceToRedirect:ql,getResolvedProjectReferenceByPath:jh,forEachResolvedProjectReference:Nc,isSourceOfProjectReferenceRedirect:Jm,emitBuildInfo:vc,fileExists:mt,readFile:Ei,directoryExists:Ot,getSymlinkCache:b5,realpath:(se=Ai.realpath)==null?void 0:se.bind(Ai),useCaseSensitiveFileNames:()=>Ai.useCaseSensitiveFileNames(),getCanonicalFileName:m4,getFileIncludeReasons:()=>Ye,structureIsReused:Qi,writeFile:Fn};return vi(),Yt==null||Yt.forEach(Xe=>{switch(Xe.kind){case 1:return bt.add(ki(Xe.file&&Ko(Xe.file),Xe.fileProcessingReason,Xe.diagnostic,Xe.args||_t));case 0:const{file:Dt,pos:oi,end:Ti}=FM(on,Xe.reason);return bt.add(Rd(Dt,H.checkDefined(oi),H.checkDefined(Ti)-oi,Xe.diagnostic,...Xe.args||_t));case 2:return Xe.diagnostics.forEach(Xi=>bt.add(Xi));default:H.assertNever(Xe)}}),Di(),ul("afterProgram"),Tm("Program","beforeProgram","afterProgram"),(ge=Gn)==null||ge.pop(),on;function le(Xe,Dt,oi){var Ti;return(Ti=ei==null?void 0:ei.get(Xe.path))==null?void 0:Ti.get(Dt,oi)}function te(Xe,Dt,oi){var Ti;return(Ti=Ut==null?void 0:Ut.get(Xe.path))==null?void 0:Ti.get(Dt,oi)}function we(Xe,Dt){je(ei,Xe,Dt)}function de(Xe,Dt){je(Ut,Xe,Dt)}function je(Xe,Dt,oi){var Ti;oi?(Ti=Xe==null?void 0:Xe.get(oi.path))==null||Ti.forEach((Xi,Rn,tn)=>Dt(Xi,Rn,tn,oi.path)):Xe==null||Xe.forEach((Xi,Rn)=>Xi.forEach((tn,bn,kr)=>Dt(tn,bn,kr,Rn)))}function X(){return ji||(ji=new Map,we(({resolvedModule:Xe})=>{Xe!=null&&Xe.packageId&&ji.set(Xe.packageId.name,Xe.extension===".d.ts"||!!ji.get(Xe.packageId.name))}),ji)}function it(Xe){return X().has($Y(Xe))}function Ct(Xe){return!!X().get(Xe)}function ct(Xe){var Dt;(Dt=Xe.resolutionDiagnostics)!=null&&Dt.length&&(Yt??(Yt=[])).push({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Qt(Xe,Dt,oi,Ti){if(Ai.resolveModuleNameLiterals||!Ai.resolveModuleNames)return ct(oi);if(!tu||Id(Dt))return;const Xi=$a(Xe.originalFileName,jn),Rn=lr(Xi),tn=Sn(Xe),bn=tu.getFromNonRelativeNameCache(Dt,Ti,Rn,tn);bn&&ct(bn)}function Li(Xe,Dt,oi){var Ti,Xi;if(!Xe.length)return _t;const Rn=$a(Dt.originalFileName,jn),tn=Sn(Dt);(Ti=Gn)==null||Ti.push(Gn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Rn}),ul("beforeResolveModule");const bn=oa(Xe,Rn,tn,ne,Dt,oi);return ul("afterResolveModule"),Tm("ResolveModule","beforeResolveModule","afterResolveModule"),(Xi=Gn)==null||Xi.pop(),bn}function Ui(Xe,Dt,oi){var Ti,Xi;if(!Xe.length)return[];const Rn=Ja(Dt)?void 0:Dt,tn=Ja(Dt)?Dt:$a(Dt.originalFileName,jn),bn=Rn&&Sn(Rn);(Ti=Gn)==null||Ti.push(Gn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tn}),ul("beforeResolveTypeReference");const kr=ra(Xe,tn,bn,ne,Rn,oi);return ul("afterResolveTypeReference"),Tm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Xi=Gn)==null||Xi.pop(),kr}function Sn(Xe){const Dt=ql(Xe.originalFileName);if(Dt||!e1(Xe.originalFileName))return Dt;const oi=du(Xe.path);if(oi)return oi;if(!Ai.realpath||!ne.preserveSymlinks||!Xe.originalFileName.includes(o_))return;const Ti=Xu(Ai.realpath(Xe.originalFileName));return Ti===Xe.path?void 0:du(Ti)}function du(Xe){const Dt=ip(Xe);if(Ja(Dt))return ql(Dt);if(Dt)return Nc(oi=>{const Ti=y0(oi.commandLine.options);if(Ti)return Xu(Ti)===Xe?oi:void 0})}function Ru(Xe,Dt){return nl(pr(Xe),pr(Dt))}function pr(Xe){if(GE(Ba,Xe.fileName,!1)){const Dt=Ac(Xe.fileName);if(Dt==="lib.d.ts"||Dt==="lib.es6.d.ts")return 0;const oi=D8(yN(Dt,"lib."),".d.ts"),Ti=YV.indexOf(oi);if(Ti!==-1)return Ti+1}return YV.length+2}function Xu(Xe){return J0(Xe,jn,m4)}function ca(){if(De===void 0){const Xe=ti(Ge,Dt=>p7(Dt,on));De=yM(ne,()=>qi(Xe,Dt=>Dt.isDeclarationFile?void 0:Dt.fileName),jn,m4,Dt=>Ee(Xe,Dt))}return De}function Ku(){var Xe;if(!Je){vl(),Je=new Set;for(const Dt of Ge)(Xe=Dt.classifiableNames)==null||Xe.forEach(oi=>Je.add(oi))}return Je}function ja(Xe,Dt){if(Qi===0&&!Dt.ambientModuleNames.length)return Li(Xe,Dt,void 0);let oi,Ti,Xi;const Rn=H7e,tn=pe&&pe.getSourceFile(Dt.fileName);for(let bu=0;bu{const Ti=(Dt?Dt.commandLine.projectReferences:Se)[oi],Xi=Bt(Ti);return Xe?!Xi||Xi.sourceFile!==Xe.sourceFile||!On(Xe.commandLine.fileNames,Xi.commandLine.fileNames):Xi!==void 0},(Xe,Dt)=>{const oi=Dt?jh(Dt.sourceFile.path).commandLine.projectReferences:Se;return!On(Xe,oi,a0e)})}function as(){var Xe;if(!pe)return 0;const Dt=pe.getCompilerOptions();if(UU(Dt,ne))return 0;const oi=pe.getRootFileNames();if(!On(oi,Ce)||!Ir())return 0;Se&&(et=Se.map(Bt));const Ti=[],Xi=[];if(Qi=2,pe.getMissingFilePaths().some(Cu=>Ai.fileExists(Cu)))return 0;const Rn=pe.getSourceFiles();let tn;(Cu=>{Cu[Cu.Exists=0]="Exists",Cu[Cu.Modified=1]="Modified"})(tn||(tn={}));const bn=new Map;for(const Cu of Rn){const bu=Fo(Cu.fileName,tu,Ai,ne);let Eu=Ai.getSourceFileByPath?Ai.getSourceFileByPath(Cu.fileName,Cu.resolvedPath,bu,void 0,$i):Ai.getSourceFile(Cu.fileName,bu,void 0,$i);if(!Eu)return 0;Eu.packageJsonLocations=(Xe=bu.packageJsonLocations)!=null&&Xe.length?bu.packageJsonLocations:void 0,Eu.packageJsonScope=bu.packageJsonScope,H.assert(!Eu.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let sa;if(Cu.redirectInfo){if(Eu!==Cu.redirectInfo.unredirected)return 0;sa=!1,Eu=Cu}else if(pe.redirectTargetsMap.has(Cu.path)){if(Eu!==Cu)return 0;sa=!1}else sa=Eu!==Cu;Eu.path=Cu.path,Eu.originalFileName=Cu.originalFileName,Eu.resolvedPath=Cu.resolvedPath,Eu.fileName=Cu.fileName;const p0=pe.sourceFileToPackageName.get(Cu.path);if(p0!==void 0){const o0=bn.get(p0),Gf=sa?1:0;if(o0!==void 0&&Gf===1||o0===1)return 0;bn.set(p0,Gf)}if(sa)Cu.impliedNodeFormat!==Eu.impliedNodeFormat?Qi=1:On(Cu.libReferenceDirectives,Eu.libReferenceDirectives,S0)?Cu.hasNoDefaultLib!==Eu.hasNoDefaultLib?Qi=1:On(Cu.referencedFiles,Eu.referencedFiles,S0)?(Bd(Eu),On(Cu.imports,Eu.imports,ud)&&On(Cu.moduleAugmentations,Eu.moduleAugmentations,ud)?(Cu.flags&12582912)!==(Eu.flags&12582912)?Qi=1:On(Cu.typeReferenceDirectives,Eu.typeReferenceDirectives,S0)||(Qi=1):Qi=1):Qi=1:Qi=1,Xi.push(Eu);else if(Da(Cu.path))Qi=1,Xi.push(Eu);else for(const o0 of Cu.ambientModuleNames)ft.set(o0,Cu.fileName);Ti.push(Eu)}if(Qi!==2)return Qi;for(const Cu of Xi){const bu=ctt(Cu),Eu=ja(bu,Cu);(ht??(ht=new Map)).set(Cu.path,Eu),s0e(bu,Cu,Eu,(eC,t6)=>pe.getResolvedModule(Cu,eC,t6),kbe,yH)&&(Qi=1);const p0=Cu.typeReferenceDirectives,o0=wn(p0,Cu);(Ni??(Ni=new Map)).set(Cu.path,o0),s0e(p0,Cu,o0,(eC,t6)=>pe==null?void 0:pe.getResolvedTypeReferenceDirective(Cu,eC,t6),Fbe,LQ)&&(Qi=1)}if(Qi!==2)return Qi;if(bbe(Dt,ne)||pe.resolvedLibReferences&&h1(pe.resolvedLibReferences,(Cu,bu)=>d3(bu).actual!==Cu.actual))return 1;if(Ai.hasChangedAutomaticTypeDirectiveNames){if(Ai.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ie=VY(ne,Ai),!On(pe.getAutomaticTypeDirectiveNames(),Ie))return 1;Xt=pe.getMissingFilePaths(),H.assert(Ti.length===pe.getSourceFiles().length);for(const Cu of Ti)qt.set(Cu.path,Cu);return pe.getFilesByNameMap().forEach((Cu,bu)=>{if(!Cu){qt.set(bu,Cu);return}if(Cu.path===bu){pe.isSourceFileFromExternalLibrary(Cu)&&Pi.set(Cu.path,!0);return}qt.set(bu,qt.get(Cu.path))}),Ge=Ti,Ye=pe.getFileIncludeReasons(),Yt=pe.getFileProcessingDiagnostics(),Gt=pe.getResolvedTypeReferenceDirectives(),Ie=pe.getAutomaticTypeDirectiveNames(),st=pe.getAutomaticTypeDirectiveResolutions(),Qe=pe.sourceFileToPackageName,Et=pe.redirectTargetsMap,Mt=pe.usesUriStyleNodeCoreModules,ei=pe.resolvedModules,Ut=pe.resolvedTypeReferenceDirectiveNames,St=pe.resolvedLibReferences,ji=pe.getCurrentPackagesMap(),2}function wo(Xe){return{getPrependNodes:Ul,getCanonicalFileName:m4,getCommonSourceDirectory:on.getCommonSourceDirectory,getCompilerOptions:on.getCompilerOptions,getCurrentDirectory:()=>jn,getSourceFile:on.getSourceFile,getSourceFileByPath:on.getSourceFileByPath,getSourceFiles:on.getSourceFiles,getLibFileFromReference:on.getLibFileFromReference,isSourceFileFromExternalLibrary:wl,getResolvedProjectReferenceToRedirect:ql,getProjectReferenceRedirect:Cl,isSourceOfProjectReferenceRedirect:Jm,getSymlinkCache:b5,writeFile:Xe||Fn,isEmitBlocked:Ho,readFile:Dt=>Ai.readFile(Dt),fileExists:Dt=>{const oi=Xu(Dt);return Ko(oi)?!0:kt(Xt,oi)?!1:Ai.fileExists(Dt)},useCaseSensitiveFileNames:()=>Ai.useCaseSensitiveFileNames(),getBuildInfo:Dt=>{var oi;return(oi=on.getBuildInfo)==null?void 0:oi.call(on,Dt)},getSourceFileFromReference:(Dt,oi)=>on.getSourceFileFromReference(Dt,oi),redirectTargetsMap:Et,getFileIncludeReasons:on.getFileIncludeReasons,createHash:Lo(Ai,Ai.createHash)}}function Fn(Xe,Dt,oi,Ti,Xi,Rn){Ai.writeFile(Xe,Dt,oi,Ti,Xi,Rn)}function vc(Xe){var Dt,oi;H.assert(!y0(ne)),(Dt=Gn)==null||Dt.push(Gn.Phase.Emit,"emitBuildInfo",{},!0),ul("beforeEmit");const Ti=EQ(DQ,wo(Xe),void 0,c1e,!1,!0);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),(oi=Gn)==null||oi.pop(),Ti}function Ya(){return et}function c0(){return Se}function Ul(){return N1e(Se,(Xe,Dt)=>{var oi;return(oi=et[Dt])==null?void 0:oi.commandLine},Xe=>{const Dt=Xu(Xe),oi=Ko(Dt);return oi?oi.text:qt.has(Dt)?void 0:Ai.readFile(Dt)},Ai)}function wl(Xe){return!!Pi.get(Xe.path)}function hd(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(!ne.noLib)return!1;const Dt=Ai.useCaseSensitiveFileNames()?XA:QA;return ne.lib?Oe(ne.lib,oi=>Dt(Xe.fileName,St.get(oi).actual)):Dt(Xe.fileName,yr())}function vl(){return Ke||(Ke=PAe(on))}function co(Xe,Dt,oi,Ti,Xi,Rn){var tn,bn;(tn=Gn)==null||tn.push(Gn.Phase.Emit,"emit",{path:Xe==null?void 0:Xe.path},!0);const kr=Uc(()=>id(on,Xe,Dt,oi,Ti,Xi,Rn));return(bn=Gn)==null||bn.pop(),kr}function Ho(Xe){return Dn.has(Xu(Xe))}function id(Xe,Dt,oi,Ti,Xi,Rn,tn){if(!tn){const Cu=L1e(Xe,Dt,oi,Ti);if(Cu)return Cu}const bn=vl().getEmitResolver(y0(ne)?void 0:Dt,Ti);ul("beforeEmit");const kr=EQ(bn,wo(oi),Dt,l1e(ne,Rn,Xi),Xi,!1,tn);return ul("afterEmit"),Tm("Emit","beforeEmit","afterEmit"),kr}function Y0(Xe){return Ko(Xu(Xe))}function Ko(Xe){return qt.get(Xe)||void 0}function Tc(Xe,Dt,oi){return A8(Xe?Dt(Xe,oi):ju(on.getSourceFiles(),Ti=>(oi&&oi.throwIfCancellationRequested(),Dt(Ti,oi))))}function Jp(Xe,Dt){return Tc(Xe,dl,Dt)}function Lc(Xe,Dt){return Tc(Xe,Ch,Dt)}function Il(Xe){var Dt;return Xe?(Dt=Ve.perFile)==null?void 0:Dt.get(Xe.path):Ve.allDiagnostics}function cl(Xe,Dt){return sf(Xe,Dt)}function Ka(Xe){var Dt;if(AP(Xe,ne,on))return _t;const oi=bt.getDiagnostics(Xe.fileName);return(Dt=Xe.commentDirectives)!=null&&Dt.length?$(Xe,Xe.commentDirectives,oi).diagnostics:oi}function Ri(Xe,Dt){const oi=on.getCompilerOptions();return!Xe||y0(oi)?fn(Xe,Dt):Tc(Xe,Tu,Dt)}function dl(Xe){return gh(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=mi(Xe)),Hi(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function Uc(Xe){try{return Xe()}catch(Dt){throw Dt instanceof b8&&(Ke=void 0),Dt}}function Ch(Xe,Dt){return Hi(BQ(sf(Xe,Dt),ne),Ka(Xe))}function sf(Xe,Dt){return uu(Xe,Dt,Ve,Q0)}function Q0(Xe,Dt){return Uc(()=>{if(AP(Xe,ne,on))return _t;const oi=vl();H.assert(!!Xe.bindDiagnostics);const Xi=(Xe.scriptKind===1||Xe.scriptKind===2)&&uV(Xe,ne),Rn=nj(Xe,ne.checkJs),bn=!(!!Xe.checkJsDirective&&Xe.checkJsDirective.enabled===!1)&&(Xe.scriptKind===3||Xe.scriptKind===4||Xe.scriptKind===5||Rn||Xi||Xe.scriptKind===7);let kr=bn?Xe.bindDiagnostics:_t,Cu=bn?oi.getDiagnostics(Xe,Dt):_t;return Rn&&(kr=ti(kr,bu=>NQ.has(bu.code)),Cu=ti(Cu,bu=>NQ.has(bu.code))),Cc(Xe,bn&&!Rn,kr,Cu,Xi?Xe.jsDocDiagnostics:void 0)})}function Cc(Xe,Dt,...oi){var Ti;const Xi=Va(oi);if(!Dt||!((Ti=Xe.commentDirectives)!=null&&Ti.length))return Xi;const{diagnostics:Rn,directives:tn}=$(Xe,Xe.commentDirectives,Xi);for(const bn of tn.getUnusedExpectations())Rn.push(Vbe(Xe,bn.range,F.Unused_ts_expect_error_directive));return Rn}function $(Xe,Dt,oi){const Ti=Bbe(Xe,Dt);return{diagnostics:oi.filter(Rn=>vt(Rn,Ti)===-1),directives:Ti}}function tt(Xe,Dt){return Uc(()=>vl().getSuggestionDiagnostics(Xe,Dt))}function vt(Xe,Dt){const{file:oi,start:Ti}=Xe;if(!oi)return-1;const Xi=$3(oi);let Rn=k8(Xi,Ti).line-1;for(;Rn>=0;){if(Dt.markUsed(Rn))return Rn;const tn=oi.text.slice(Xi[Rn],Xi[Rn+1]).trim();if(tn!==""&&!/^(\s*)\/\/(.*)$/.test(tn))return-1;Rn--}return-1}function mi(Xe){return Uc(()=>{const Dt=[];return oi(Xe,Xe),uM(Xe,oi,Ti),Dt;function oi(bn,kr){switch(kr.kind){case 169:case 172:case 174:if(kr.questionToken===bn)return Dt.push(tn(bn,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(kr.type===bn)return Dt.push(tn(bn,F.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(bn.kind){case 273:if(bn.isTypeOnly)return Dt.push(tn(kr,F._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(bn.isTypeOnly)return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(bn.isTypeOnly)return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,bf(bn)?"import...type":"export...type")),"skip";break;case 271:return Dt.push(tn(bn,F.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(bn.isExportEquals)return Dt.push(tn(bn,F.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(bn.token===119)return Dt.push(tn(bn,F.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const bu=Uo(120);return H.assertIsDefined(bu),Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,bu)),"skip";case 267:const Eu=bn.flags&32?Uo(145):Uo(144);return H.assertIsDefined(Eu),Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,Eu)),"skip";case 265:return Dt.push(tn(bn,F.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return bn.body?void 0:(Dt.push(tn(bn,F.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const sa=H.checkDefined(Uo(94));return Dt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,sa)),"skip";case 235:return Dt.push(tn(bn,F.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return Dt.push(tn(bn.type,F.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return Dt.push(tn(bn.type,F.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:H.fail()}}function Ti(bn,kr){if(Hce(kr)){const Cu=Le(kr.modifiers,g1);Cu&&Dt.push(tn(Cu,F.Decorators_are_not_valid_here))}else if(Ak(kr)&&kr.modifiers){const Cu=Ue(kr.modifiers,g1);if(Cu>=0){if(io(kr)&&!ne.experimentalDecorators)Dt.push(tn(kr.modifiers[Cu],F.Decorators_are_not_valid_here));else if(Wc(kr)){const bu=Ue(kr.modifiers,L7);if(bu>=0){const Eu=Ue(kr.modifiers,rY);if(Cu>bu&&Eu>=0&&Cu=0&&Cu=0&&Dt.push(Es(tn(kr.modifiers[sa],F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tn(kr.modifiers[Cu],F.Decorator_used_before_export_here)))}}}}}switch(kr.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(bn===kr.typeParameters)return Dt.push(Rn(bn,F.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(bn===kr.modifiers)return Xi(kr.modifiers,kr.kind===243),"skip";break;case 172:if(bn===kr.modifiers){for(const Cu of bn)Qo(Cu)&&Cu.kind!==126&&Cu.kind!==129&&Dt.push(tn(Cu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Cu.kind)));return"skip"}break;case 169:if(bn===kr.modifiers&&Oe(bn,Qo))return Dt.push(Rn(bn,F.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(bn===kr.typeArguments)return Dt.push(Rn(bn,F.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Xi(bn,kr){for(const Cu of bn)switch(Cu.kind){case 87:if(kr)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:Dt.push(tn(Cu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,Uo(Cu.kind)));break;case 126:case 95:case 90:case 129:}}function Rn(bn,kr,...Cu){const bu=bn.pos;return Rd(Xe,bu,bn.end-bu,kr,...Cu)}function tn(bn,kr,...Cu){return K4(Xe,bn,kr,...Cu)}})}function fn(Xe,Dt){return uu(Xe,Dt,We,Wu)}function Wu(Xe,Dt){return Uc(()=>{const oi=vl().getEmitResolver(Xe,Dt);return F7e(wo(Is),oi,Xe)||_t})}function uu(Xe,Dt,oi,Ti){var Xi;const Rn=Xe?(Xi=oi.perFile)==null?void 0:Xi.get(Xe.path):oi.allDiagnostics;if(Rn)return Rn;const tn=Ti(Xe,Dt);return Xe?(oi.perFile||(oi.perFile=new Map)).set(Xe.path,tn):oi.allDiagnostics=tn,tn}function Tu(Xe,Dt){return Xe.isDeclarationFile?[]:fn(Xe,Dt)}function Nr(){return A8(Hi(bt.getGlobalDiagnostics(),Vu()))}function Vu(){if(!ne.configFile)return _t;let Xe=bt.getDiagnostics(ne.configFile.fileName);return Nc(Dt=>{Xe=Hi(Xe,bt.getDiagnostics(Dt.sourceFile.fileName))}),Xe}function Ss(){return Ce.length?A8(vl().getGlobalDiagnostics().slice()):_t}function ic(){return ve||_t}function nd(Xe,Dt,oi,Ti){D1($o(Xe),Dt,oi,void 0,Ti)}function S0(Xe,Dt){return Xe.fileName===Dt.fileName}function ud(Xe,Dt){return Xe.kind===80?Dt.kind===80&&Xe.escapedText===Dt.escapedText:Dt.kind===11&&Xe.text===Dt.text}function m0(Xe,Dt){const oi=q.createStringLiteral(Xe),Ti=q.createImportDeclaration(void 0,void 0,oi,void 0);return F7(Ti,2),ks(oi,Ti),ks(Ti,Dt),oi.flags&=-17,Ti.flags&=-17,oi}function Bd(Xe){if(Xe.imports)return;const Dt=gh(Xe),oi=wc(Xe);let Ti,Xi,Rn;if((mg(ne)||oi)&&!Xe.isDeclarationFile){ne.importHelpers&&(Ti=[m0(Hx,Xe)]);const bu=uZ(nZ(ne,Xe),ne);bu&&(Ti||(Ti=[])).push(m0(bu,Xe))}for(const bu of Xe.statements)bn(bu,!1);const tn=Dt&&eZ(ne);(Xe.flags&4194304||tn)&&kr(Xe),Xe.imports=Ti||_t,Xe.moduleAugmentations=Xi||_t,Xe.ambientModuleNames=Rn||_t;return;function bn(bu,Eu){if(aj(bu)){const sa=Y8(bu);sa&&us(sa)&&sa.text&&(!Eu||!Id(sa.text))&&(Vx(bu,!1),Ti=xi(Ti,sa),!Mt&&Jn===0&&!Xe.isDeclarationFile&&(Mt=Pa(sa.text,"node:")))}else if(_c(bu)&&N1(bu)&&(Eu||Yu(bu,128)||Xe.isDeclarationFile)){bu.name.parent=bu;const sa=J4(bu.name);if(oi||Eu&&!Id(sa))(Xi||(Xi=[])).push(bu.name);else if(!Eu){Xe.isDeclarationFile&&(Rn||(Rn=[])).push(sa);const p0=bu.body;if(p0)for(const o0 of p0.statements)bn(o0,!0)}}}function kr(bu){const Eu=/import|require/g;for(;Eu.exec(bu.text)!==null;){const sa=Cu(bu,Eu.lastIndex);tn&&xf(sa,!0)||dm(sa)&&sa.arguments.length>=1&&t0(sa.arguments[0])?(Vx(sa,!1),Ti=xi(Ti,sa.arguments[0])):zx(sa)&&(Vx(sa,!1),Ti=xi(Ti,sa.argument.literal))}}function Cu(bu,Eu){let sa=bu;const p0=o0=>{if(o0.pos<=Eu&&(EuMl(Xi,tn))){oi&&(z2(Xi)?oi(F.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):oi(F.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+Va(Ln).join("', '")+"'"));return}const Rn=Dt(Xe);if(oi)if(Rn)Jv(Ti)&&Xi===Ai.getCanonicalFileName(Ko(Ti.file).fileName)&&oi(F.A_file_cannot_have_a_reference_to_itself);else{const tn=Cl(Xe);tn?oi(F.Output_file_0_has_not_been_built_from_source_file_1,tn,Xe):oi(F.File_0_not_found,Xe)}return Rn}else{const Xi=ne.allowNonTsExtensions&&Dt(Xe);if(Xi)return Xi;if(oi&&ne.allowNonTsExtensions){oi(F.File_0_not_found,Xe);return}const Rn=L(Ln[0],tn=>Dt(Xe+tn));return oi&&!Rn&&oi(F.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+Va(Ln).join("', '")+"'"),Rn}}function D1(Xe,Dt,oi,Ti,Xi){h4(Xe,Rn=>ba(Rn,Dt,oi,Xi,Ti),(Rn,...tn)=>In(void 0,Xi,Rn,tn),Xi)}function He(Xe,Dt){return D1(Xe,!1,!1,void 0,Dt)}function di(Xe,Dt,oi){!Jv(oi)&&Oe(Ye.get(Dt.path),Jv)?In(Dt,oi,F.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[Dt.fileName,Xe]):In(Dt,oi,F.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,Dt.fileName])}function Mn(Xe,Dt,oi,Ti,Xi,Rn,tn){var bn;const kr=a_.createRedirectedSourceFile({redirectTarget:Xe,unredirected:Dt});return kr.fileName=oi,kr.path=Ti,kr.resolvedPath=Xi,kr.originalFileName=Rn,kr.packageJsonLocations=(bn=tn.packageJsonLocations)!=null&&bn.length?tn.packageJsonLocations:void 0,kr.packageJsonScope=tn.packageJsonScope,Pi.set(Ti,Jn>0),kr}function ba(Xe,Dt,oi,Ti,Xi){var Rn,tn;(Rn=Gn)==null||Rn.push(Gn.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:Dt||void 0,fileIncludeKind:lU[Ti.kind]});const bn=To(Xe,Dt,oi,Ti,Xi);return(tn=Gn)==null||tn.pop(),bn}function Fo(Xe,Dt,oi,Ti){const Xi=T1e($a(Xe,jn),Dt==null?void 0:Dt.getPackageJsonInfoCache(),oi,Ti),Rn=Os(Ti),tn=Qj(Ti);return typeof Xi=="object"?{...Xi,languageVersion:Rn,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}:{languageVersion:Rn,impliedNodeFormat:Xi,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}}function To(Xe,Dt,oi,Ti,Xi){var Rn;const tn=Xu(Xe);if(ni){let Eu=ip(tn);if(!Eu&&Ai.realpath&&ne.preserveSymlinks&&e1(Xe)&&Xe.includes(o_)){const sa=Xu(Ai.realpath(Xe));sa!==tn&&(Eu=ip(sa))}if(Eu){const sa=Ja(Eu)?ba(Eu,Dt,oi,Ti,Xi):void 0;return sa&&fc(sa,tn,void 0),sa}}const bn=Xe;if(qt.has(tn)){const Eu=qt.get(tn);if(nc(Eu||void 0,Ti),Eu&&ne.forceConsistentCasingInFileNames!==!1){const sa=Eu.fileName;Xu(sa)!==Xu(Xe)&&(Xe=Cl(Xe)||Xe);const o0=Fse(sa,jn),Gf=Fse(Xe,jn);o0!==Gf&&di(Xe,Eu,Ti)}return Eu&&Pi.get(Eu.path)&&Jn===0?(Pi.set(Eu.path,!1),ne.noResolve||(f4(Eu,Dt),c3(Eu)),ne.noLib||Wf(Eu),an.set(Eu.path,!1),Vh(Eu)):Eu&&an.get(Eu.path)&&JnIn(void 0,Ti,F.Cannot_read_file_0_Colon_1,[Xe,Eu]),$i);if(Xi){const Eu=Px(Xi),sa=bo.get(Eu);if(sa){const p0=Mn(sa,bu,Xe,tn,Xu(Xe),bn,Cu);return Et.add(sa.path,Xe),fc(p0,tn,kr),nc(p0,Ti),Qe.set(tn,ZU(Xi)),Be.push(p0),p0}else bu&&(bo.set(Eu,bu),Qe.set(tn,ZU(Xi)))}if(fc(bu,tn,kr),bu){if(Pi.set(tn,Jn>0),bu.fileName=Xe,bu.path=tn,bu.resolvedPath=Xu(Xe),bu.originalFileName=bn,bu.packageJsonLocations=(Rn=Cu.packageJsonLocations)!=null&&Rn.length?Cu.packageJsonLocations:void 0,bu.packageJsonScope=Cu.packageJsonScope,nc(bu,Ti),Ai.useCaseSensitiveFileNames()){const Eu=$g(tn),sa=Pe.get(Eu);sa?di(Xe,sa,Ti):Pe.set(Eu,bu)}aa=aa||bu.hasNoDefaultLib&&!oi,ne.noResolve||(f4(bu,Dt),c3(bu)),ne.noLib||Wf(bu),Vh(bu),Dt?xe.push(bu):Be.push(bu)}return bu}function nc(Xe,Dt){Xe&&Ye.add(Xe.path,Dt)}function fc(Xe,Dt,oi){oi?(qt.set(oi,Xe),qt.set(Dt,Xe||!1)):qt.set(Dt,Xe)}function Cl(Xe){const Dt=Tl(Xe);return Dt&&bc(Dt,Xe)}function Tl(Xe){if(!(!et||!et.length||e1(Xe)||Ml(Xe,".json")))return ql(Xe)}function bc(Xe,Dt){const oi=y0(Xe.commandLine.options);return oi?wv(oi,".d.ts"):bM(Dt,Xe.commandLine,!Ai.useCaseSensitiveFileNames())}function ql(Xe){ii===void 0&&(ii=new Map,Nc(oi=>{Xu(ne.configFilePath)!==oi.sourceFile.path&&oi.commandLine.fileNames.forEach(Ti=>ii.set(Xu(Ti),oi.sourceFile.path))}));const Dt=ii.get(Xu(Xe));return Dt&&jh(Dt)}function Nc(Xe){return S1e(et,Xe)}function ip(Xe){if(e1(Xe))return me===void 0&&(me=new Map,Nc(Dt=>{const oi=y0(Dt.commandLine.options);if(oi){const Ti=wv(oi,".d.ts");me.set(Xu(Ti),!0)}else{const Ti=Mh(()=>kM(Dt.commandLine,!Ai.useCaseSensitiveFileNames()));L(Dt.commandLine.fileNames,Xi=>{if(!e1(Xi)&&!Ml(Xi,".json")){const Rn=bM(Xi,Dt.commandLine,!Ai.useCaseSensitiveFileNames(),Ti);me.set(Xu(Rn),Xi)}})}})),me.get(Xe)}function Jm(Xe){return ni&&!!ql(Xe)}function jh(Xe){if(gt)return gt.get(Xe)||void 0}function f4(Xe,Dt){L(Xe.referencedFiles,(oi,Ti)=>{D1(bQ(oi.fileName,Xe.fileName),Dt,!1,void 0,{kind:4,file:Xe.path,index:Ti})})}function c3(Xe){const Dt=Xe.typeReferenceDirectives;if(!Dt.length)return;const oi=(Ni==null?void 0:Ni.get(Xe.path))||wn(Dt,Xe),Ti=U7();(Ut??(Ut=new Map)).set(Xe.path,Ti);for(let Xi=0;Xi{const{libName:Ti,libFileName:Xi}=ltt(Dt);if(Xi)nd(R1(Xi),!0,!0,{kind:7,file:Xe.path,index:oi});else{const Rn=D8(yN(Ti,"lib."),".d.ts"),tn=bN(Rn,YV,il),bn=tn?F.Cannot_find_lib_definition_for_0_Did_you_mean_1:F.Cannot_find_lib_definition_for_0,kr=tn?[Ti,tn]:[Ti];(Yt||(Yt=[])).push({kind:0,reason:{kind:7,file:Xe.path,index:oi},diagnostic:bn,args:kr})}})}function m4(Xe){return Ai.getCanonicalFileName(Xe)}function Vh(Xe){var Dt;if(Bd(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const oi=ctt(Xe),Ti=(ht==null?void 0:ht.get(Xe.path))||ja(oi,Xe);H.assert(Ti.length===oi.length);const Xi=(ni?(Dt=Sn(Xe))==null?void 0:Dt.commandLine.options:void 0)||ne,Rn=U7();(ei??(ei=new Map)).set(Xe.path,Rn);for(let tn=0;tnxn,Gf=p0&&!P1e(Xi,bn,Xe)&&!Xi.noResolve&&tnwc(tn)&&!tn.isDeclarationFile);if(ne.isolatedModules||ne.verbatimModuleSyntax)ne.module===0&&Dt<2&&ne.isolatedModules&&_s(F.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ne.preserveConstEnums===!1&&_s(F.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(oi&&Dt<2&&ne.module===0){const tn=C2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!ne.emitDeclarationOnly){if(ne.module&&!(ne.module===2||ne.module===4))_s(F.Only_amd_and_system_modules_are_supported_alongside_0,ne.out?"out":"outFile","module");else if(ne.module===void 0&&oi){const tn=C2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ne.out?"out":"outFile"))}}if(M2(ne)&&(p1(ne)===1?_s(F.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):Qq(ne)||_s(F.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ne.outDir||ne.rootDir||ne.sourceRoot||ne.mapRoot){const tn=ca();ne.outDir&&tn===""&&Ge.some(bn=>WE(bn.fileName)>1)&&_s(F.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ne.useDefineForClassFields&&Dt===0&&_s(F.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ne.checkJs&&!Bv(ne)&&bt.add(cc(F.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ne.emitDeclarationOnly&&(c4(ne)||_s(F.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ne.noEmit&&_s(F.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ne.emitDecoratorMetadata&&!ne.experimentalDecorators&&_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ne.jsxFactory?(ne.reactNamespace&&_s(F.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",sM.get(""+ne.jsx)),G7(ne.jsxFactory,Dt)||np("jsxFactory",F.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFactory)):ne.reactNamespace&&!Lm(ne.reactNamespace,Dt)&&np("reactNamespace",F.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ne.reactNamespace),ne.jsxFragmentFactory&&(ne.jsxFactory||_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",sM.get(""+ne.jsx)),G7(ne.jsxFragmentFactory,Dt)||np("jsxFragmentFactory",F.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFragmentFactory)),ne.reactNamespace&&(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",sM.get(""+ne.jsx)),ne.jsxImportSource&&ne.jsx===2&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",sM.get(""+ne.jsx)),ne.preserveValueImports&&m1(ne)<5&&_s(F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const Ti=m1(ne);ne.verbatimModuleSyntax&&((Ti===2||Ti===3||Ti===4)&&_s(F.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ne.preserveValueImports&&Xx("preserveValueImports","verbatimModuleSyntax"),ne.importsNotUsedAsValues&&Xx("importsNotUsedAsValues","verbatimModuleSyntax")),ne.allowImportingTsExtensions&&!(ne.noEmit||ne.emitDeclarationOnly)&&np("allowImportingTsExtensions",F.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Xi=p1(ne);if(ne.resolvePackageJsonExports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ne.resolvePackageJsonImports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ne.customConditions&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Xi===100&&!Yq(Ti)&&np("moduleResolution",F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),FN[Ti]&&100<=Ti&&Ti<=199&&!(3<=Xi&&Xi<=99)){const tn=FN[Ti];np("moduleResolution",F.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tn,tn)}else if(y8[Xi]&&3<=Xi&&Xi<=99&&!(100<=Ti&&Ti<=199)){const tn=y8[Xi];np("module",F.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tn,tn)}if(!ne.noEmit&&!ne.suppressOutputPathCheck){const tn=wo(),bn=new Set;d1e(tn,kr=>{ne.emitDeclarationOnly||Rn(kr.jsFilePath,bn),Rn(kr.declarationFilePath,bn)})}function Rn(tn,bn){if(tn){const kr=Xu(tn);if(qt.has(kr)){let bu;ne.configFilePath||(bu=ro(void 0,F.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)),bu=ro(bu,F.Cannot_write_file_0_because_it_would_overwrite_input_file,tn),e6(tn,qq(bu))}const Cu=Ai.useCaseSensitiveFileNames()?kr:$g(kr);bn.has(Cu)?e6(tn,cc(F.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tn)):bn.add(Cu)}}}function Ci(){const Xe=ne.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new Lp(Xe);fe()}return Lp.zero}function Q(Xe,Dt,oi,Ti){const Xi=new Lp(Xe),Rn=new Lp(Dt),tn=new Lp(Ne||g),bn=Ci(),kr=Rn.compareTo(tn)!==1,Cu=!kr&&bn.compareTo(Xi)===-1;(kr||Cu)&&Ti((bu,Eu,sa)=>{kr?Eu===void 0?oi(bu,Eu,sa,F.Option_0_has_been_removed_Please_remove_it_from_your_configuration,bu):oi(bu,Eu,sa,F.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,bu,Eu):Eu===void 0?oi(bu,Eu,sa,F.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,bu,Dt,Xe):oi(bu,Eu,sa,F.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,bu,Eu,Dt,Xe)})}function Me(){function Xe(Dt,oi,Ti,Xi,...Rn){if(Ti){const tn=ro(void 0,F.Use_0_instead,Ti),bn=ro(tn,Xi,...Rn);h3(!oi,Dt,void 0,bn)}else h3(!oi,Dt,void 0,Xi,...Rn)}Q("5.0","5.5",Xe,Dt=>{ne.target===0&&Dt("target","ES3"),ne.noImplicitUseStrict&&Dt("noImplicitUseStrict"),ne.keyofStringsOnly&&Dt("keyofStringsOnly"),ne.suppressExcessPropertyErrors&&Dt("suppressExcessPropertyErrors"),ne.suppressImplicitAnyIndexErrors&&Dt("suppressImplicitAnyIndexErrors"),ne.noStrictGenericChecks&&Dt("noStrictGenericChecks"),ne.charset&&Dt("charset"),ne.out&&Dt("out",void 0,"outFile"),ne.importsNotUsedAsValues&&Dt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ne.preserveValueImports&&Dt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function wt(Xe,Dt,oi){function Ti(Xi,Rn,tn,bn,...kr){Um(Dt,oi,bn,...kr)}Q("5.0","5.5",Ti,Xi=>{Xe.prepend&&Xi("prepend")})}function ki(Xe,Dt,oi,Ti){var Xi;let Rn,tn,bn=Jv(Dt)?Dt:void 0;Xe&&((Xi=Ye.get(Xe.path))==null||Xi.forEach(sa)),Dt&&sa(Dt),bn&&(Rn==null?void 0:Rn.length)===1&&(Rn=void 0);const kr=bn&&FM(on,bn),Cu=Rn&&ro(Rn,F.The_file_is_in_the_program_because_Colon),bu=Xe&&Y1e(Xe),Eu=ro(bu?Cu?[Cu,...bu]:bu:Cu,oi,...Ti||_t);return kr&&ZB(kr)?nq(kr.file,kr.pos,kr.end-kr.pos,Eu,tn):qq(Eu,tn);function sa(p0){(Rn||(Rn=[])).push(ehe(on,p0)),!bn&&Jv(p0)?bn=p0:bn!==p0&&(tn=xi(tn,ir(p0))),p0===Dt&&(Dt=void 0)}}function In(Xe,Dt,oi,Ti){(Yt||(Yt=[])).push({kind:1,file:Xe&&Xe.path,fileProcessingReason:Dt,diagnostic:oi,args:Ti})}function tr(Xe,Dt,oi){bt.add(ki(Xe,void 0,Dt,oi))}function ir(Xe){if(Jv(Xe)){const Ti=FM(on,Xe);let Xi;switch(Xe.kind){case 3:Xi=F.File_is_included_via_import_here;break;case 4:Xi=F.File_is_included_via_reference_here;break;case 5:Xi=F.File_is_included_via_type_library_reference_here;break;case 7:Xi=F.File_is_included_via_library_reference_here;break;default:H.assertNever(Xe)}return ZB(Ti)?Rd(Ti.file,Ti.pos,Ti.end-Ti.pos,Xi):void 0}if(!ne.configFile)return;let Dt,oi;switch(Xe.kind){case 0:if(!ne.configFile.configFileSpecs)return;const Ti=$a(Ce[Xe.index],jn),Xi=Q1e(on,Ti);if(Xi){Dt=cq(ne.configFile,"files",Xi),oi=F.File_is_matched_by_files_list_specified_here;break}const Rn=X1e(on,Ti);if(!Rn||!Ja(Rn))return;Dt=cq(ne.configFile,"include",Rn),oi=F.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const tn=H.checkDefined(et==null?void 0:et[Xe.index]),bn=FQ(Se,et,(sa,p0,o0)=>sa===tn?{sourceFile:(p0==null?void 0:p0.sourceFile)||ne.configFile,index:o0}:void 0);if(!bn)return;const{sourceFile:kr,index:Cu}=bn,bu=hj(kr,"references",sa=>Dh(sa.initializer)?sa.initializer:void 0);return bu&&bu.elements.length>Cu?K4(kr,bu.elements[Cu],Xe.kind===2?F.File_is_output_from_referenced_project_specified_here:F.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ne.types)return;Dt=$m("types",Xe.typeReference),oi=F.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Xe.index!==void 0){Dt=$m("lib",ne.lib[Xe.index]),oi=F.File_is_library_specified_here;break}const Eu=h1(XV.type,(sa,p0)=>sa===Os(ne)?p0:void 0);Dt=Eu?fd("target",Eu):void 0,oi=F.File_is_default_library_for_target_specified_here;break;default:H.assertNever(Xe)}return Dt&&K4(ne.configFile,Dt,oi)}function ha(){const Xe=ne.suppressOutputPathCheck?void 0:f5(ne);FQ(Se,et,(Dt,oi,Ti)=>{const Xi=(oi?oi.commandLine.projectReferences:Se)[Ti],Rn=oi&&oi.sourceFile;if(wt(Xi,Rn,Ti),!Dt){Um(Rn,Ti,F.File_0_not_found,Xi.path);return}const tn=Dt.commandLine.options;if((!tn.composite||tn.noEmit)&&(oi?oi.commandLine.fileNames:Ce).length&&(tn.composite||Um(Rn,Ti,F.Referenced_project_0_must_have_setting_composite_Colon_true,Xi.path),tn.noEmit&&Um(Rn,Ti,F.Referenced_project_0_may_not_disable_emit,Xi.path)),Xi.prepend){const bn=y0(tn);bn?Ai.fileExists(bn)||Um(Rn,Ti,F.Output_file_0_from_project_1_does_not_exist,bn,Xi.path):Um(Rn,Ti,F.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Xi.path)}!oi&&Xe&&Xe===f5(tn)&&(Um(Rn,Ti,F.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Xi.path),Dn.set(Xu(Xe),!0))})}function os(Xe,Dt,oi,...Ti){let Xi=!0;x1(Rn=>{ys(Rn.initializer)&&J8(Rn.initializer,Xe,tn=>{const bn=tn.initializer;Dh(bn)&&bn.elements.length>Dt&&(bt.add(K4(ne.configFile,bn.elements[Dt],oi,...Ti)),Xi=!1)})}),Xi&&bt.add(cc(oi,...Ti))}function ss(Xe,Dt,oi,...Ti){let Xi=!0;x1(Rn=>{ys(Rn.initializer)&&ia(Rn.initializer,Xe,Dt,void 0,oi,...Ti)&&(Xi=!1)}),Xi&&bt.add(cc(oi,...Ti))}function Rl(Xe,Dt){return J8(d_(),Xe,Dt)}function x1(Xe){return Rl("paths",Xe)}function fd(Xe,Dt){return Rl(Xe,oi=>us(oi.initializer)&&oi.initializer.text===Dt?oi.initializer:void 0)}function $m(Xe,Dt){const oi=d_();return oi&&Zbe(oi,Xe,Dt)}function _s(Xe,Dt,oi,Ti){h3(!0,Dt,oi,Xe,Dt,oi,Ti)}function np(Xe,Dt,...oi){h3(!1,Xe,void 0,Dt,...oi)}function Um(Xe,Dt,oi,...Ti){const Xi=hj(Xe||ne.configFile,"references",Rn=>Dh(Rn.initializer)?Rn.initializer:void 0);Xi&&Xi.elements.length>Dt?bt.add(K4(Xe||ne.configFile,Xi.elements[Dt],oi,...Ti)):bt.add(cc(oi,...Ti))}function h3(Xe,Dt,oi,Ti,...Xi){const Rn=d_();(!Rn||!ia(Rn,Xe,Dt,oi,Ti,...Xi))&&("messageText"in Ti?bt.add(qq(Ti)):bt.add(cc(Ti,...Xi)))}function d_(){return Cn===void 0&&(Cn=J8(ZN(ne.configFile),"compilerOptions",Xe=>ys(Xe.initializer)?Xe.initializer:void 0)||!1),Cn||void 0}function ia(Xe,Dt,oi,Ti,Xi,...Rn){let tn=!1;return J8(Xe,oi,bn=>{"messageText"in Xi?bt.add(Y3(ne.configFile,Dt?bn.name:bn.initializer,Xi)):bt.add(K4(ne.configFile,Dt?bn.name:bn.initializer,Xi,...Rn)),tn=!0},Ti),tn}function Xx(Xe,Dt){const oi=d_();oi?ia(oi,!0,Xe,void 0,F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt):_s(F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,Dt)}function e6(Xe,Dt){Dn.set(Xu(Xe),!0),bt.add(Dt)}function bg(Xe){if(ne.noEmit)return!1;const Dt=Xu(Xe);if(Ko(Dt))return!1;const oi=y0(ne);if(oi)return sb(Dt,oi)||sb(Dt,_h(oi)+".d.ts");if(ne.declarationDir&&GE(ne.declarationDir,Dt,jn,!Ai.useCaseSensitiveFileNames()))return!0;if(ne.outDir)return GE(ne.outDir,Dt,jn,!Ai.useCaseSensitiveFileNames());if(jc(Dt,_B)||e1(Dt)){const Ti=_h(Dt);return!!Ko(Ti+".ts")||!!Ko(Ti+".tsx")}return!1}function sb(Xe,Dt){return pv(Xe,Dt,jn,!Ai.useCaseSensitiveFileNames())===0}function b5(){return Ai.getSymlinkCache?Ai.getSymlinkCache():(Ae||(Ae=ble(jn,m4)),Ge&&!Ae.hasProcessedResolutions()&&Ae.setSymlinksFromResolutions(we,de,st),Ae)}}function vzt(t){let u;const s=t.compilerHost.fileExists,d=t.compilerHost.directoryExists,f=t.compilerHost.getDirectories,p=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Is,fileExists:b};t.compilerHost.fileExists=b;let E;return d&&(E=t.compilerHost.directoryExists=z=>d.call(t.compilerHost,z)?(T(z),!0):t.getResolvedProjectReferences()?(u||(u=new Set,t.forEachResolvedProjectReference(j=>{const J=y0(j.commandLine.options);if(J)u.add(lr(t.toPath(J)));else{const K=j.commandLine.options.declarationDir||j.commandLine.options.outDir;K&&u.add(t.toPath(K))}})),M(z,!1)):!1),f&&(t.compilerHost.getDirectories=z=>!t.getResolvedProjectReferences()||d&&d.call(t.compilerHost,z)?f.call(t.compilerHost,z):[]),p&&(t.compilerHost.realpath=z=>{var j;return((j=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:j.get(t.toPath(z)))||p.call(t.compilerHost,z)}),{onProgramCreateComplete:v,fileExists:b,directoryExists:E};function v(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=d,t.compilerHost.getDirectories=f}function b(z){return s.call(t.compilerHost,z)?!0:!t.getResolvedProjectReferences()||!e1(z)?!1:M(z,!0)}function B(z){const j=t.getSourceOfProjectReferenceRedirect(t.toPath(z));return j!==void 0?Ja(j)?s.call(t.compilerHost,j):!0:void 0}function k(z){const j=t.toPath(z),J=`${j}${rl}`;return U_(u,K=>j===K||Pa(K,J)||Pa(j,`${K}/`))}function T(z){var j;if(!t.getResolvedProjectReferences()||TP(z)||!p||!z.includes(o_))return;const J=t.getSymlinkCache(),K=zd(t.toPath(z));if((j=J.getSymlinkedDirectories())!=null&&j.has(K))return;const Y=$o(p.call(t.compilerHost,z));let oe;if(Y===z||(oe=zd(t.toPath(Y)))===K){J.setSymlinkedDirectory(K,!1);return}J.setSymlinkedDirectory(z,{real:zd(Y),realPath:oe})}function M(z,j){var J;const K=j?ae=>B(ae):ae=>k(ae),Y=K(z);if(Y!==void 0)return Y;const oe=t.getSymlinkCache(),se=oe.getSymlinkedDirectories();if(!se)return!1;const ge=t.toPath(z);return ge.includes(o_)?j&&((J=oe.getSymlinkedFiles())!=null&&J.has(ge))?!0:ie(se.entries(),([ae,Ce])=>{if(!Ce||!Pa(ge,ae))return;const ne=K(ge.replace(ae,Ce.realPath));if(j&&ne){const ve=$a(z,t.compilerHost.getCurrentDirectory());oe.setSymlinkedFile(ge,`${Ce.real}${ve.replace(new RegExp(ae,"i"),"")}`)}return ne})||!1:!1}}function L1e(t,u,s,d){const f=t.getCompilerOptions();if(f.noEmit)return t.getSemanticDiagnostics(u,d),u||y0(f)?PQ:t.emitBuildInfo(s,d);if(!f.noEmitOnError)return;let p=[...t.getOptionsDiagnostics(d),...t.getSyntacticDiagnostics(u,d),...t.getGlobalDiagnostics(d),...t.getSemanticDiagnostics(u,d)];if(p.length===0&&c4(t.getCompilerOptions())&&(p=t.getDeclarationDiagnostics(void 0,d)),!p.length)return;let E;if(!u&&!y0(f)){const v=t.emitBuildInfo(s,d);v.diagnostics&&(p=[...p,...v.diagnostics]),E=v.emittedFiles}return{diagnostics:p,sourceMaps:void 0,emittedFiles:E,emitSkipped:!0}}function BQ(t,u){return ti(t,s=>!s.skippedOn||!u[s.skippedOn])}function wQ(t,u=t){return{fileExists:s=>u.fileExists(s),readDirectory(s,d,f,p,E){return H.assertIsDefined(u.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(s,d,f,p,E)},readFile:s=>u.readFile(s),directoryExists:Lo(u,u.directoryExists),getDirectories:Lo(u,u.getDirectories),realpath:Lo(u,u.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||hv,trace:t.trace?s=>t.trace(s):void 0}}function N1e(t,u,s,d){if(!t)return _t;let f;for(let p=0;pd);for(const d of u)d.kind===11&&s.push(d);return s}function TQ({imports:t,moduleAugmentations:u},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(M1e||{}),z1e="\x1B[7m",I1e=" ",O7e="\x1B[0m",j7e="...",dtt=" ",V7e=" ",H7e={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},yH={getName:I7e,getMode:(t,u)=>xg(u,t)},LQ={getName:R7e,getMode:(t,u)=>yQ(t,u==null?void 0:u.impliedNodeFormat)},QB="__inferred type names__.ts",NQ=new Set([F.Cannot_redeclare_block_scoped_variable_0.code,F.A_module_cannot_have_multiple_default_exports.code,F.Another_export_default_is_here.code,F.The_first_export_default_is_here.code,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,F.constructor_is_a_reserved_word.code,F.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,F.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,F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,F.Invalid_use_of_0_in_strict_mode.code,F.A_label_is_not_allowed_here.code,F.with_statements_are_not_allowed_in_strict_mode.code,F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,F.A_class_declaration_without_the_default_modifier_must_have_a_name.code,F.A_class_member_cannot_have_the_0_keyword.code,F.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,F.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,F.A_destructuring_declaration_must_have_an_initializer.code,F.A_get_accessor_cannot_have_parameters.code,F.A_rest_element_cannot_contain_a_binding_pattern.code,F.A_rest_element_cannot_have_a_property_name.code,F.A_rest_element_cannot_have_an_initializer.code,F.A_rest_element_must_be_last_in_a_destructuring_pattern.code,F.A_rest_parameter_cannot_have_an_initializer.code,F.A_rest_parameter_must_be_last_in_a_parameter_list.code,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,F.A_return_statement_cannot_be_used_inside_a_class_static_block.code,F.A_set_accessor_cannot_have_rest_parameter.code,F.A_set_accessor_must_have_exactly_one_parameter.code,F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_export_declaration_cannot_have_modifiers.code,F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_import_declaration_cannot_have_modifiers.code,F.An_object_member_cannot_be_declared_optional.code,F.Argument_of_dynamic_import_cannot_be_spread_element.code,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,F.Cannot_redeclare_identifier_0_in_catch_clause.code,F.Catch_clause_variable_cannot_have_an_initializer.code,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,F.Classes_can_only_extend_a_single_class.code,F.Classes_may_not_have_a_field_named_constructor.code,F.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,F.Duplicate_label_0.code,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,F.for_await_loops_cannot_be_used_inside_a_class_static_block.code,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,F.Jump_target_cannot_cross_function_boundary.code,F.Line_terminator_not_permitted_before_arrow.code,F.Modifiers_cannot_appear_here.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,F.Private_identifiers_are_not_allowed_outside_class_bodies.code,F.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,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,F.Trailing_comma_not_allowed.code,F.Variable_declaration_list_cannot_be_empty.code,F._0_and_1_operations_cannot_be_mixed_without_parentheses.code,F._0_expected.code,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,F._0_list_cannot_be_empty.code,F._0_modifier_already_seen.code,F._0_modifier_cannot_appear_on_a_constructor_declaration.code,F._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,F._0_modifier_cannot_appear_on_a_parameter.code,F._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,F._0_modifier_cannot_be_used_here.code,F._0_modifier_must_precede_1_modifier.code,F._0_declarations_can_only_be_declared_inside_a_block.code,F._0_declarations_must_be_initialized.code,F.extends_clause_already_seen.code,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,F.Class_constructor_may_not_be_a_generator.code,F.Class_constructor_may_not_be_an_accessor.code,F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Private_field_0_must_be_declared_in_an_enclosing_class.code,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),PQ={diagnostics:_t,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),bzt=o({"src/compiler/builderStatePublic.ts"(){}});function K7e(t,u,s,d,f,p){const E=[],{emitSkipped:v,diagnostics:b}=t.emit(u,B,d,s,f,p);return{outputFiles:E,emitSkipped:v,diagnostics:b};function B(k,T,M){E.push({name:k,writeByteOrderMark:M,text:T})}}var Wp,yzt=o({"src/compiler/builderState.ts"(){Bo(),(t=>{function u(){function pe(fe,xe,Be){const Ge={getKeys:Ae=>xe.get(Ae),getValues:Ae=>fe.get(Ae),keys:()=>fe.keys(),deleteKey:Ae=>{(Be||(Be=new Set)).add(Ae);const De=fe.get(Ae);return De?(De.forEach(Ke=>d(xe,Ke,Ae)),fe.delete(Ae),!0):!1},set:(Ae,De)=>{Be==null||Be.delete(Ae);const Ke=fe.get(Ae);return fe.set(Ae,De),Ke==null||Ke.forEach(Je=>{De.has(Je)||d(xe,Je,Ae)}),De.forEach(Je=>{Ke!=null&&Ke.has(Je)||s(xe,Je,Ae)}),Ge}};return Ge}return pe(new Map,new Map,void 0)}t.createManyToManyPathMap=u;function s(pe,fe,xe){let Be=pe.get(fe);Be||(Be=new Set,pe.set(fe,Be)),Be.add(xe)}function d(pe,fe,xe){const Be=pe.get(fe);return Be!=null&&Be.delete(xe)?(Be.size||pe.delete(fe),!0):!1}function f(pe){return qi(pe.declarations,fe=>{var xe;return(xe=zn(fe))==null?void 0:xe.resolvedPath})}function p(pe,fe){const xe=pe.getSymbolAtLocation(fe);return xe&&f(xe)}function E(pe,fe,xe,Be){return J0(pe.getProjectReferenceRedirect(fe)||fe,xe,Be)}function v(pe,fe,xe){let Be;if(fe.imports&&fe.imports.length>0){const Ke=pe.getTypeChecker();for(const Je of fe.imports){const ft=p(Ke,Je);ft==null||ft.forEach(De)}}const Ge=lr(fe.resolvedPath);if(fe.referencedFiles&&fe.referencedFiles.length>0)for(const Ke of fe.referencedFiles){const Je=E(pe,Ke.fileName,Ge,xe);De(Je)}if(pe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:Ke})=>{if(!Ke)return;const Je=Ke.resolvedFileName,ft=E(pe,Je,Ge,xe);De(ft)},fe),fe.moduleAugmentations.length){const Ke=pe.getTypeChecker();for(const Je of fe.moduleAugmentations){if(!us(Je))continue;const ft=Ke.getSymbolAtLocation(Je);ft&&Ae(ft)}}for(const Ke of pe.getTypeChecker().getAmbientModules())Ke.declarations&&Ke.declarations.length>1&&Ae(Ke);return Be;function Ae(Ke){if(Ke.declarations)for(const Je of Ke.declarations){const ft=zn(Je);ft&&ft!==fe&&De(ft.resolvedPath)}}function De(Ke){(Be||(Be=new Set)).add(Ke)}}function b(pe,fe){return fe&&!fe.referencedMap==!pe}t.canReuseOldState=b;function B(pe,fe,xe){var Be,Ge,Ae;const De=new Map,Ke=pe.getCompilerOptions(),Je=y0(Ke),ft=Ke.module!==0&&!Je?u():void 0,Ye=ft?u():void 0,Ve=b(ft,fe);pe.getTypeChecker();for(const We of pe.getSourceFiles()){const Gt=H.checkDefined(We.version,"Program intended to be used with Builder should have source files with versions set"),Yt=Ve?(Be=fe.oldSignatures)==null?void 0:Be.get(We.resolvedPath):void 0,Ie=Yt===void 0?Ve?(Ge=fe.fileInfos.get(We.resolvedPath))==null?void 0:Ge.signature:void 0:Yt||void 0;if(ft){const st=v(pe,We,pe.getCanonicalFileName);if(st&&ft.set(We.resolvedPath,st),Ve){const St=(Ae=fe.oldExportedModulesMap)==null?void 0:Ae.get(We.resolvedPath),It=St===void 0?fe.exportedModulesMap.getValues(We.resolvedPath):St||void 0;It&&Ye.set(We.resolvedPath,It)}}De.set(We.resolvedPath,{version:Gt,signature:Ie,affectsGlobalScope:Je?void 0:ne(We)||void 0,impliedFormat:We.impliedNodeFormat})}return{fileInfos:De,referencedMap:ft,exportedModulesMap:Ye,useFileVersionAsSignature:!xe&&!Ve}}t.create=B;function k(pe){pe.allFilesExcludingDefaultLibraryFile=void 0,pe.allFileNames=void 0}t.releaseCache=k;function T(pe,fe,xe,Be,Ge){var Ae,De;const Ke=M(pe,fe,xe,Be,Ge);return(Ae=pe.oldSignatures)==null||Ae.clear(),(De=pe.oldExportedModulesMap)==null||De.clear(),Ke}t.getFilesAffectedBy=T;function M(pe,fe,xe,Be,Ge){const Ae=fe.getSourceFileByPath(xe);return Ae?J(pe,fe,Ae,Be,Ge)?(pe.referencedMap?Ne:Se)(pe,fe,Ae,Be,Ge):[Ae]:_t}t.getFilesAffectedByWithOldState=M;function z(pe,fe,xe){pe.fileInfos.get(xe).signature=fe,(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe)}t.updateSignatureOfFile=z;function j(pe,fe,xe,Be,Ge){pe.emit(fe,(Ae,De,Ke,Je,ft,Ye)=>{H.assert(e1(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),Ge(O1e(pe,fe,De,Be,Ye),ft)},xe,!0,void 0,!0)}t.computeDtsSignature=j;function J(pe,fe,xe,Be,Ge,Ae=pe.useFileVersionAsSignature){var De;if((De=pe.hasCalledUpdateShapeSignature)!=null&&De.has(xe.resolvedPath))return!1;const Ke=pe.fileInfos.get(xe.resolvedPath),Je=Ke.signature;let ft;if(!xe.isDeclarationFile&&!Ae&&j(fe,xe,Be,Ge,(Ye,Ve)=>{ft=Ye,ft!==Je&&K(pe,xe,Ve[0].exportedModulesFromDeclarationEmit)}),ft===void 0&&(ft=xe.version,pe.exportedModulesMap&&ft!==Je)){(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(xe.resolvedPath,pe.exportedModulesMap.getValues(xe.resolvedPath)||!1);const Ye=pe.referencedMap?pe.referencedMap.getValues(xe.resolvedPath):void 0;Ye?pe.exportedModulesMap.set(xe.resolvedPath,Ye):pe.exportedModulesMap.deleteKey(xe.resolvedPath)}return(pe.oldSignatures||(pe.oldSignatures=new Map)).set(xe.resolvedPath,Je||!1),(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe.resolvedPath),Ke.signature=ft,ft!==Je}t.updateShapeSignature=J;function K(pe,fe,xe){if(!pe.exportedModulesMap)return;(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(fe.resolvedPath,pe.exportedModulesMap.getValues(fe.resolvedPath)||!1);const Be=Y(xe);Be?pe.exportedModulesMap.set(fe.resolvedPath,Be):pe.exportedModulesMap.deleteKey(fe.resolvedPath)}t.updateExportedModules=K;function Y(pe){let fe;return pe==null||pe.forEach(xe=>f(xe).forEach(Be=>(fe??(fe=new Set)).add(Be))),fe}t.getExportedModules=Y;function oe(pe,fe,xe){const Be=fe.getCompilerOptions();if(y0(Be)||!pe.referencedMap||ne(xe))return se(pe,fe);const Ge=new Set,Ae=[xe.resolvedPath];for(;Ae.length;){const De=Ae.pop();if(!Ge.has(De)){Ge.add(De);const Ke=pe.referencedMap.getValues(De);if(Ke)for(const Je of Ke.keys())Ae.push(Je)}}return ga(eo(Ge.keys(),De=>{var Ke;return((Ke=fe.getSourceFileByPath(De))==null?void 0:Ke.fileName)??De}))}t.getAllDependencies=oe;function se(pe,fe){if(!pe.allFileNames){const xe=fe.getSourceFiles();pe.allFileNames=xe===_t?_t:xe.map(Be=>Be.fileName)}return pe.allFileNames}function ge(pe,fe){const xe=pe.referencedMap.getKeys(fe);return xe?ga(xe.keys()):[]}t.getReferencedByPaths=ge;function ae(pe){for(const fe of pe.statements)if(!tq(fe))return!1;return!0}function Ce(pe){return Oe(pe.moduleAugmentations,fe=>Yg(fe.parent))}function ne(pe){return Ce(pe)||!cm(pe)&&!W4(pe)&&!ae(pe)}function ve(pe,fe,xe){if(pe.allFilesExcludingDefaultLibraryFile)return pe.allFilesExcludingDefaultLibraryFile;let Be;xe&&Ge(xe);for(const Ae of fe.getSourceFiles())Ae!==xe&&Ge(Ae);return pe.allFilesExcludingDefaultLibraryFile=Be||_t,pe.allFilesExcludingDefaultLibraryFile;function Ge(Ae){fe.isSourceFileDefaultLibrary(Ae)||(Be||(Be=[])).push(Ae)}}t.getAllFilesExcludingDefaultLibraryFile=ve;function Se(pe,fe,xe){const Be=fe.getCompilerOptions();return Be&&y0(Be)?[xe]:ve(pe,fe,xe)}function Ne(pe,fe,xe,Be,Ge){if(ne(xe))return ve(pe,fe,xe);const Ae=fe.getCompilerOptions();if(Ae&&(mg(Ae)||y0(Ae)))return[xe];const De=new Map;De.set(xe.resolvedPath,xe);const Ke=ge(pe,xe.resolvedPath);for(;Ke.length>0;){const Je=Ke.pop();if(!De.has(Je)){const ft=fe.getSourceFileByPath(Je);De.set(Je,ft),ft&&J(pe,fe,ft,Be,Ge)&&Ke.push(...ge(pe,ft.resolvedPath))}}return ga(eo(De.values(),Je=>Je))}})(Wp||(Wp={}))}});function Ux(t){let u=1;return t.sourceMap&&(u=u|2),t.inlineSourceMap&&(u=u|4),c4(t)&&(u=u|8),t.declarationMap&&(u=u|16),t.emitDeclarationOnly&&(u=u&24),u}function XB(t,u){const s=u&&(UD(u)?u:Ux(u)),d=UD(t)?t:Ux(t);if(s===d)return 0;if(!s||!d)return d;const f=s^d;let p=0;return f&7&&(p=d&7),f&24&&(p=p|d&24),p}function kzt(t,u){return t===u||t!==void 0&&u!==void 0&&t.size===u.size&&!U_(t,s=>!u.has(s))}function Fzt(t,u){var s,d;const f=Wp.create(t,u,!1);f.program=t;const p=t.getCompilerOptions();f.compilerOptions=p;const E=y0(p);E?p.composite&&(u!=null&&u.outSignature)&&E===y0(u==null?void 0:u.compilerOptions)&&(f.outSignature=u.outSignature&&ftt(p,u.compilerOptions,u.outSignature)):f.semanticDiagnosticsPerFile=new Map,f.changedFilesSet=new Set,f.latestChangedDtsFile=p.composite?u==null?void 0:u.latestChangedDtsFile:void 0;const v=Wp.canReuseOldState(f.referencedMap,u),b=v?u.compilerOptions:void 0,B=v&&u.semanticDiagnosticsPerFile&&!!f.semanticDiagnosticsPerFile&&!oke(p,b),k=p.composite&&(u==null?void 0:u.emitSignatures)&&!E&&!lke(p,u.compilerOptions);v?((s=u.changedFilesSet)==null||s.forEach(J=>f.changedFilesSet.add(J)),!E&&((d=u.affectedFilesPendingEmit)!=null&&d.size)&&(f.affectedFilesPendingEmit=new Map(u.affectedFilesPendingEmit),f.seenAffectedFiles=new Set),f.programEmitPending=u.programEmitPending):f.buildInfoEmitPending=!0;const T=f.referencedMap,M=v?u.referencedMap:void 0,z=B&&!p.skipLibCheck==!b.skipLibCheck,j=z&&!p.skipDefaultLibCheck==!b.skipDefaultLibCheck;if(f.fileInfos.forEach((J,K)=>{let Y,oe;if(!v||!(Y=u.fileInfos.get(K))||Y.version!==J.version||Y.impliedFormat!==J.impliedFormat||!kzt(oe=T&&T.getValues(K),M&&M.getValues(K))||oe&&U_(oe,se=>!f.fileInfos.has(se)&&u.fileInfos.has(se)))htt(f,K);else if(B){const se=t.getSourceFileByPath(K);if(se.isDeclarationFile&&!z||se.hasNoDefaultLib&&!j)return;const ge=u.semanticDiagnosticsPerFile.get(K);ge&&(f.semanticDiagnosticsPerFile.set(K,u.hasReusableDiagnostic?Szt(ge,t):Azt(ge,t)),f.semanticDiagnosticsFromOldState||(f.semanticDiagnosticsFromOldState=new Set),f.semanticDiagnosticsFromOldState.add(K))}if(k){const se=u.emitSignatures.get(K);se&&(f.emitSignatures??(f.emitSignatures=new Map)).set(K,ftt(p,u.compilerOptions,se))}}),v&&h1(u.fileInfos,(J,K)=>f.fileInfos.has(K)?!1:E||J.affectsGlobalScope?!0:(f.buildInfoEmitPending=!0,!1)))Wp.getAllFilesExcludingDefaultLibraryFile(f,t,void 0).forEach(J=>htt(f,J.resolvedPath));else if(b){const J=ske(p,b)?Ux(p):XB(p,b);J!==0&&(E?f.programEmitPending=f.programEmitPending?f.programEmitPending|J:J:(t.getSourceFiles().forEach(K=>{f.changedFilesSet.has(K.resolvedPath)||Z7e(f,K.resolvedPath,J)}),H.assert(!f.seenAffectedFiles||!f.seenAffectedFiles.size),f.seenAffectedFiles=f.seenAffectedFiles||new Set,f.buildInfoEmitPending=!0))}return E&&!f.changedFilesSet.size&&(v&&(f.bundle=u.bundle),Oe(t.getProjectReferences(),J=>!!J.prepend)&&(f.programEmitPending=Ux(p))),f}function htt(t,u){t.changedFilesSet.add(u),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function ftt(t,u,s){return!!t.declarationMap==!!u.declarationMap?s:Ja(s)?[s]:s[0]}function Azt(t,u){return t.length?Lu(t,s=>{if(Ja(s.messageText))return s;const d=W7e(s.messageText,s.file,u,f=>{var p;return(p=f.repopulateInfo)==null?void 0:p.call(f)});return d===s.messageText?s:{...s,messageText:d}}):t}function W7e(t,u,s,d){const f=d(t);if(f)return{...o0e(u,s,f.moduleReference,f.mode,f.packageName||f.moduleReference),next:mtt(t.next,u,s,d)};const p=mtt(t.next,u,s,d);return p===t.next?t:{...t,next:p}}function mtt(t,u,s,d){return Lu(t,f=>W7e(f,u,s,d))}function Szt(t,u){if(!t.length)return _t;let s;return t.map(f=>{const p=ptt(f,u,d);p.reportsUnnecessary=f.reportsUnnecessary,p.reportsDeprecated=f.reportDeprecated,p.source=f.source,p.skippedOn=f.skippedOn;const{relatedInformation:E}=f;return p.relatedInformation=E?E.length?E.map(v=>ptt(v,u,d)):[]:void 0,p});function d(f){return s??(s=lr($a(f5(u.getCompilerOptions()),u.getCurrentDirectory()))),J0(f,s,u.getCanonicalFileName)}}function ptt(t,u,s){const{file:d}=t,f=d?u.getSourceFileByPath(s(d)):void 0;return{...t,file:f,messageText:Ja(t.messageText)?t.messageText:W7e(t.messageText,f,u,p=>p.info)}}function Bzt(t){Wp.releaseCache(t),t.program=void 0}function wzt(t){const u=y0(t.compilerOptions);return H.assert(!t.changedFilesSet.size||u),{affectedFilesPendingEmit:t.affectedFilesPendingEmit&&new Map(t.affectedFilesPendingEmit),seenEmittedFiles:t.seenEmittedFiles&&new Map(t.seenEmittedFiles),programEmitPending:t.programEmitPending,emitSignatures:t.emitSignatures&&new Map(t.emitSignatures),outSignature:t.outSignature,latestChangedDtsFile:t.latestChangedDtsFile,hasChangedEmitSignature:t.hasChangedEmitSignature,changedFilesSet:u?new Set(t.changedFilesSet):void 0}}function Tzt(t,u){t.affectedFilesPendingEmit=u.affectedFilesPendingEmit,t.seenEmittedFiles=u.seenEmittedFiles,t.programEmitPending=u.programEmitPending,t.emitSignatures=u.emitSignatures,t.outSignature=u.outSignature,t.latestChangedDtsFile=u.latestChangedDtsFile,t.hasChangedEmitSignature=u.hasChangedEmitSignature,u.changedFilesSet&&(t.changedFilesSet=u.changedFilesSet)}function gtt(t,u){H.assert(!u||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==u||!t.semanticDiagnosticsPerFile.has(u.resolvedPath))}function Ett(t,u,s){for(var d,f;;){const{affectedFiles:p}=t;if(p){const B=t.seenAffectedFiles;let k=t.affectedFilesIndex;for(;k{const p=d&7;p?t.affectedFilesPendingEmit.set(f,p):t.affectedFilesPendingEmit.delete(f)})}}function Nzt(t,u){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return h1(t.affectedFilesPendingEmit,(d,f)=>{var p;const E=t.program.getSourceFileByPath(f);if(!E||!p7(E,t.program)){t.affectedFilesPendingEmit.delete(f);return}const v=(p=t.seenEmittedFiles)==null?void 0:p.get(E.resolvedPath);let b=XB(d,v);if(u&&(b=b&24),b)return{affectedFile:E,emitKind:b}})}function _tt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const u=H.checkDefined(t.program),s=u.getCompilerOptions();L(u.getSourceFiles(),d=>u.isSourceFileDefaultLibrary(d)&&!AP(d,s,u)&&G7e(t,d.resolvedPath))}}function Pzt(t,u,s,d){if(G7e(t,u.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){_tt(t),Wp.updateShapeSignature(t,H.checkDefined(t.program),u,s,d);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Mzt(t,u,s,d)}function R1e(t,u,s,d){if(G7e(t,u),!t.changedFilesSet.has(u)){const f=H.checkDefined(t.program),p=f.getSourceFileByPath(u);p&&(Wp.updateShapeSignature(t,f,p,s,d,!0),c4(t.compilerOptions)&&Z7e(t,u,t.compilerOptions.declarationMap?24:8))}}function G7e(t,u){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(u),t.semanticDiagnosticsPerFile.delete(u),!t.semanticDiagnosticsFromOldState.size):!0}function Dtt(t,u){const s=H.checkDefined(t.oldSignatures).get(u)||void 0;return H.checkDefined(t.fileInfos.get(u)).signature!==s}function J7e(t,u,s,d){var f;return(f=t.fileInfos.get(u))!=null&&f.affectsGlobalScope?(Wp.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(p=>R1e(t,p.resolvedPath,s,d)),_tt(t),!0):!1}function Mzt(t,u,s,d){var f;if(!t.exportedModulesMap||!t.changedFilesSet.has(u.resolvedPath)||!Dtt(t,u.resolvedPath))return;if(mg(t.compilerOptions)){const E=new Map;E.set(u.resolvedPath,!0);const v=Wp.getReferencedByPaths(t,u.resolvedPath);for(;v.length>0;){const b=v.pop();if(!E.has(b)){if(E.set(b,!0),J7e(t,b,s,d))return;if(R1e(t,b,s,d),Dtt(t,b)){const B=H.checkDefined(t.program).getSourceFileByPath(b);v.push(...Wp.getReferencedByPaths(t,B.resolvedPath))}}}}const p=new Set;(f=t.exportedModulesMap.getKeys(u.resolvedPath))==null||f.forEach(E=>{if(J7e(t,E,s,d))return!0;const v=t.referencedMap.getKeys(E);return v&&U_(v,b=>xtt(t,b,p,s,d))})}function xtt(t,u,s,d,f){var p,E;if(r0(s,u)){if(J7e(t,u,d,f))return!0;R1e(t,u,d,f),(p=t.exportedModulesMap.getKeys(u))==null||p.forEach(v=>xtt(t,v,s,d,f)),(E=t.referencedMap.getKeys(u))==null||E.forEach(v=>!s.has(v)&&R1e(t,v,d,f))}}function $7e(t,u,s){return Hi(zzt(t,u,s),H.checkDefined(t.program).getProgramDiagnostics(u))}function zzt(t,u,s){const d=u.resolvedPath;if(t.semanticDiagnosticsPerFile){const p=t.semanticDiagnosticsPerFile.get(d);if(p)return BQ(p,t.compilerOptions)}const f=H.checkDefined(t.program).getBindAndCheckDiagnostics(u,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(d,f),BQ(f,t.compilerOptions)}function U7e(t){return!!y0(t.options||{})}function Izt(t,u){var s,d,f;const p=H.checkDefined(t.program).getCurrentDirectory(),E=lr($a(f5(t.compilerOptions),p)),v=t.latestChangedDtsFile?ae(t.latestChangedDtsFile):void 0,b=[],B=new Map,k=[];if(y0(t.compilerOptions)){const pe=ga(t.fileInfos.entries(),([De,Ke])=>{const Je=ne(De);return Se(De,Je),Ke.impliedFormat?{version:Ke.version,impliedFormat:Ke.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:Ke.version}),fe={fileNames:b,fileInfos:pe,root:k,options:Ne(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:v,pendingEmit:t.programEmitPending?t.programEmitPending===Ux(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:xe,dts:Be,commonSourceDirectory:Ge,sourceFiles:Ae}=u;return t.bundle=u={commonSourceDirectory:Ge,sourceFiles:Ae,js:xe||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:Be||(c4(t.compilerOptions)?(d=t.bundle)==null?void 0:d.dts:void 0)},gH(fe,u)}let T,M,z;const j=ga(t.fileInfos.entries(),([pe,fe])=>{var xe,Be;const Ge=ne(pe);Se(pe,Ge),H.assert(b[Ge-1]===Ce(pe));const Ae=(xe=t.oldSignatures)==null?void 0:xe.get(pe),De=Ae!==void 0?Ae||void 0:fe.signature;if(t.compilerOptions.composite){const Ke=t.program.getSourceFileByPath(pe);if(!W4(Ke)&&p7(Ke,t.program)){const Je=(Be=t.emitSignatures)==null?void 0:Be.get(pe);Je!==De&&(z||(z=[])).push(Je===void 0?Ge:[Ge,!Ja(Je)&&Je[0]===De?_t:Je])}}return fe.version===De?fe.affectsGlobalScope||fe.impliedFormat?{version:fe.version,signature:void 0,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:fe.version:De!==void 0?Ae===void 0?fe:{version:fe.version,signature:De,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:{version:fe.version,signature:!1,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}});let J;t.referencedMap&&(J=ga(t.referencedMap.keys()).sort(dh).map(pe=>[ne(pe),ve(t.referencedMap.getValues(pe))]));let K;t.exportedModulesMap&&(K=qi(ga(t.exportedModulesMap.keys()).sort(dh),pe=>{var fe;const xe=(fe=t.oldExportedModulesMap)==null?void 0:fe.get(pe);if(xe===void 0)return[ne(pe),ve(t.exportedModulesMap.getValues(pe))];if(xe)return[ne(pe),ve(xe)]}));let Y;if(t.semanticDiagnosticsPerFile)for(const pe of ga(t.semanticDiagnosticsPerFile.keys()).sort(dh)){const fe=t.semanticDiagnosticsPerFile.get(pe);(Y||(Y=[])).push(fe.length?[ne(pe),Ozt(fe,Ce)]:ne(pe))}let oe;if((f=t.affectedFilesPendingEmit)!=null&&f.size){const pe=Ux(t.compilerOptions),fe=new Set;for(const xe of ga(t.affectedFilesPendingEmit.keys()).sort(dh))if(r0(fe,xe)){const Be=t.program.getSourceFileByPath(xe);if(!Be||!p7(Be,t.program))continue;const Ge=ne(xe),Ae=t.affectedFilesPendingEmit.get(xe);(oe||(oe=[])).push(Ae===pe?Ge:Ae===8?[Ge]:[Ge,Ae])}}let se;if(t.changedFilesSet.size)for(const pe of ga(t.changedFilesSet.keys()).sort(dh))(se||(se=[])).push(ne(pe));const ge={fileNames:b,fileInfos:j,root:k,options:Ne(t.compilerOptions),fileIdsList:T,referencedMap:J,exportedModulesMap:K,semanticDiagnosticsPerFile:Y,affectedFilesPendingEmit:oe,changeFileSet:se,emitSignatures:z,latestChangedDtsFile:v};return gH(ge,u);function ae(pe){return Ce($a(pe,p))}function Ce(pe){return h2(JE(E,pe,t.program.getCanonicalFileName))}function ne(pe){let fe=B.get(pe);return fe===void 0&&(b.push(Ce(pe)),B.set(pe,fe=b.length)),fe}function ve(pe){const fe=ga(pe.keys(),ne).sort(nl),xe=fe.join();let Be=M==null?void 0:M.get(xe);return Be===void 0&&((T||(T=[])).push(fe),(M||(M=new Map)).set(xe,Be=T.length)),Be}function Se(pe,fe){const xe=t.program.getSourceFile(pe);if(!t.program.getFileIncludeReasons().get(xe.path).some(De=>De.kind===0))return;if(!k.length)return k.push(fe);const Be=k[k.length-1],Ge=Ha(Be);if(Ge&&Be[1]===fe-1)return Be[1]=fe;if(Ge||k.length===1||Be!==fe-1)return k.push(fe);const Ae=k[k.length-2];return!UD(Ae)||Ae!==Be-1?k.push(fe):(k[k.length-2]=[Ae,fe],k.length=k.length-1)}function Ne(pe){let fe;const{optionsNameMap:xe}=jB();for(const Be of Ns(pe).sort(dh)){const Ge=xe.get(Be.toLowerCase());Ge!=null&&Ge.affectsBuildInfo&&((fe||(fe={}))[Be]=Rzt(Ge,pe[Be],ae))}return fe}}function Rzt(t,u,s){if(t){if(H.assert(t.type!=="listOrElement"),t.type==="list"){const d=u;if(t.element.isFilePath&&d.length)return d.map(s)}else if(t.isFilePath)return s(u)}return u}function Ozt(t,u){return H.assert(!!t.length),t.map(s=>{const d=vtt(s,u);d.reportsUnnecessary=s.reportsUnnecessary,d.reportDeprecated=s.reportsDeprecated,d.source=s.source,d.skippedOn=s.skippedOn;const{relatedInformation:f}=s;return d.relatedInformation=f?f.length?f.map(p=>vtt(p,u)):[]:void 0,d})}function vtt(t,u){const{file:s}=t;return{...t,file:s?u(s.resolvedPath):void 0,messageText:Ja(t.messageText)?t.messageText:q7e(t.messageText)}}function q7e(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:Ctt(t.next)};const u=Ctt(t.next);return u===t.next?t:{...t,next:u}}function Ctt(t){return t&&(L(t,(u,s)=>{const d=q7e(u);if(u===d)return;const f=s>0?t.slice(0,s-1):[];f.push(d);for(let p=s+1;p`${b(B)}${vO[B.category]}${B.code}: ${v(B.messageText)}`).join(` -`)),(d.createHash??AN)(s);function v(B){return Ja(B)?B:B===void 0?"":B.next?B.messageText+B.next.map(v).join(` -`):B.messageText}function b(B){return B.file.resolvedPath===u.resolvedPath?`(${B.start},${B.length})`:(E===void 0&&(E=lr(u.resolvedPath)),`${h2(JE(E,B.file.resolvedPath,t.getCanonicalFileName))}(${B.start},${B.length})`)}}function Nk(t,u,s){return(u.createHash??AN)(btt(t,s))}function j1e(t,{newProgram:u,host:s,oldProgram:d,configFileParsingDiagnostics:f}){let p=d&&d.getState();if(p&&u===p.program&&f===u.getConfigFileParsingDiagnostics())return u=void 0,p=void 0,d;const E=Fzt(u,p);u.getBuildInfo=J=>Izt(E,J),u=void 0,d=void 0,p=void 0;const v=()=>E,b=H1e(v,f);return b.getState=v,b.saveEmitState=()=>wzt(E),b.restoreEmitState=J=>Tzt(E,J),b.hasChangedEmitSignature=()=>!!E.hasChangedEmitSignature,b.getAllDependencies=J=>Wp.getAllDependencies(E,H.checkDefined(E.program),J),b.getSemanticDiagnostics=j,b.emit=M,b.releaseProgram=()=>Bzt(E),t===0?b.getSemanticDiagnosticsOfNextAffectedFile=z:t===1?(b.getSemanticDiagnosticsOfNextAffectedFile=z,b.emitNextAffectedFile=k,b.emitBuildInfo=B):ho(),b;function B(J,K){if(E.buildInfoEmitPending){const Y=H.checkDefined(E.program).emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,Y}return PQ}function k(J,K,Y,oe){var se,ge,ae;let Ce=Ett(E,K,s);const ne=Ux(E.compilerOptions);let ve=Y?ne&24:ne;if(!Ce)if(y0(E.compilerOptions)){if(!E.programEmitPending||(ve=E.programEmitPending,Y&&(ve=ve&24),!ve))return;Ce=E.program}else{const pe=Nzt(E,Y);if(!pe){if(!E.buildInfoEmitPending)return;const fe=E.program,xe=fe.emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,{result:xe,affected:fe}}({affectedFile:Ce,emitKind:ve}=pe)}let Se;ve&7&&(Se=0),ve&24&&(Se=Se===void 0?1:void 0),Ce===E.program&&(E.programEmitPending=E.changedFilesSet.size?XB(ne,ve):E.programEmitPending?XB(E.programEmitPending,ve):void 0);const Ne=E.program.emit(Ce===E.program?void 0:Ce,T(J,oe),K,Se,oe);if(Ce!==E.program){const pe=Ce;E.seenAffectedFiles.add(pe.resolvedPath),E.affectedFilesIndex!==void 0&&E.affectedFilesIndex++,E.buildInfoEmitPending=!0;const fe=((se=E.seenEmittedFiles)==null?void 0:se.get(pe.resolvedPath))||0;(E.seenEmittedFiles??(E.seenEmittedFiles=new Map)).set(pe.resolvedPath,ve|fe);const xe=((ge=E.affectedFilesPendingEmit)==null?void 0:ge.get(pe.resolvedPath))||ne,Be=XB(xe,ve|fe);Be?(E.affectedFilesPendingEmit??(E.affectedFilesPendingEmit=new Map)).set(pe.resolvedPath,Be):(ae=E.affectedFilesPendingEmit)==null||ae.delete(pe.resolvedPath)}else E.changedFilesSet.clear();return{result:Ne,affected:Ce}}function T(J,K){return c4(E.compilerOptions)?(Y,oe,se,ge,ae,Ce)=>{var ne,ve,Se,Ne;if(e1(Y))if(y0(E.compilerOptions)){if(E.compilerOptions.composite){const fe=pe(E.outSignature,void 0);if(!fe)return;E.outSignature=fe}}else{H.assert((ae==null?void 0:ae.length)===1);let fe;if(!K){const xe=ae[0],Be=E.fileInfos.get(xe.resolvedPath);if(Be.signature===xe.version){const Ge=O1e(E.program,xe,oe,s,Ce);(ne=Ce==null?void 0:Ce.diagnostics)!=null&&ne.length||(fe=Ge),Ge!==xe.version&&(s.storeFilesChangingSignatureDuringEmit&&(E.filesChangingSignature??(E.filesChangingSignature=new Set)).add(xe.resolvedPath),E.exportedModulesMap&&Wp.updateExportedModules(E,xe,xe.exportedModulesFromDeclarationEmit),E.affectedFiles?(((ve=E.oldSignatures)==null?void 0:ve.get(xe.resolvedPath))===void 0&&(E.oldSignatures??(E.oldSignatures=new Map)).set(xe.resolvedPath,Be.signature||!1),Be.signature=Ge):(Be.signature=Ge,(Se=E.oldExportedModulesMap)==null||Se.clear()))}}if(E.compilerOptions.composite){const xe=ae[0].resolvedPath;if(fe=pe((Ne=E.emitSignatures)==null?void 0:Ne.get(xe),fe),!fe)return;(E.emitSignatures??(E.emitSignatures=new Map)).set(xe,fe)}}J?J(Y,oe,se,ge,ae,Ce):s.writeFile?s.writeFile(Y,oe,se,ge,ae,Ce):E.program.writeFile(Y,oe,se,ge,ae,Ce);function pe(fe,xe){const Be=!fe||Ja(fe)?fe:fe[0];if(xe??(xe=Nk(oe,s,Ce)),xe===Be){if(fe===Be)return;Ce?Ce.differsOnlyInMap=!0:Ce={differsOnlyInMap:!0}}else E.hasChangedEmitSignature=!0,E.latestChangedDtsFile=Y;return xe}}:J||Lo(s,s.writeFile)}function M(J,K,Y,oe,se){t===1&>t(E,J);const ge=L1e(b,J,K,Y);if(ge)return ge;if(!J)if(t===1){let ae=[],Ce=!1,ne,ve=[],Se;for(;Se=k(K,Y,oe,se);)Ce=Ce||Se.result.emitSkipped,ne=yn(ne,Se.result.diagnostics),ve=yn(ve,Se.result.emittedFiles),ae=yn(ae,Se.result.sourceMaps);return{emitSkipped:Ce,diagnostics:ne||_t,emittedFiles:ve,sourceMaps:ae}}else Lzt(E,oe);return H.checkDefined(E.program).emit(J,T(K,se),Y,oe,se)}function z(J,K){for(;;){const Y=Ett(E,J,s);let oe;if(Y)if(Y!==E.program){const se=Y;if((!K||!K(se))&&(oe=$7e(E,se,J)),E.seenAffectedFiles.add(se.resolvedPath),E.affectedFilesIndex++,E.buildInfoEmitPending=!0,!oe)continue}else oe=E.program.getSemanticDiagnostics(void 0,J),E.changedFilesSet.clear(),E.programEmitPending=Ux(E.compilerOptions);else return;return{result:oe,affected:Y}}}function j(J,K){gtt(E,J);const Y=H.checkDefined(E.program).getCompilerOptions();if(y0(Y))return H.assert(!E.semanticDiagnosticsPerFile),H.checkDefined(E.program).getSemanticDiagnostics(J,K);if(J)return $7e(E,J,K);for(;z(K););let oe;for(const se of H.checkDefined(E.program).getSourceFiles())oe=yn(oe,$7e(E,se,K));return oe||_t}}function Z7e(t,u,s){var d;const f=((d=t.affectedFilesPendingEmit)==null?void 0:d.get(u))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(u,f|s)}function Y7e(t){return Ja(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ja(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function Q7e(t,u){return UD(t)?u:t[1]||8}function X7e(t,u){return t||Ux(u||{})}function e9e(t,u,s){var d,f,p,E;const v=t.program,b=lr($a(u,s.getCurrentDirectory())),B=L1(s.useCaseSensitiveFileNames());let k;const T=(d=v.fileNames)==null?void 0:d.map(j);let M;const z=v.latestChangedDtsFile?J(v.latestChangedDtsFile):void 0;if(U7e(v)){const se=new Map;v.fileInfos.forEach((ge,ae)=>{const Ce=K(ae+1);se.set(Ce,Ja(ge)?{version:ge,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ge)}),k={fileInfos:se,compilerOptions:v.options?ode(v.options,J):{},latestChangedDtsFile:z,outSignature:v.outSignature,programEmitPending:v.pendingEmit===void 0?void 0:X7e(v.pendingEmit,v.options),bundle:t.bundle}}else{M=(f=v.fileIdsList)==null?void 0:f.map(Ce=>new Set(Ce.map(K)));const se=new Map,ge=(p=v.options)!=null&&p.composite&&!y0(v.options)?new Map:void 0;v.fileInfos.forEach((Ce,ne)=>{const ve=K(ne+1),Se=Y7e(Ce);se.set(ve,Se),ge&&Se.signature&&ge.set(ve,Se.signature)}),(E=v.emitSignatures)==null||E.forEach(Ce=>{if(UD(Ce))ge.delete(K(Ce));else{const ne=K(Ce[0]);ge.set(ne,!Ja(Ce[1])&&!Ce[1].length?[ge.get(ne)]:Ce[1])}});const ae=v.affectedFilesPendingEmit?Ux(v.options||{}):void 0;k={fileInfos:se,compilerOptions:v.options?ode(v.options,J):{},referencedMap:oe(v.referencedMap),exportedModulesMap:oe(v.exportedModulesMap),semanticDiagnosticsPerFile:v.semanticDiagnosticsPerFile&&lg(v.semanticDiagnosticsPerFile,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>UD(Ce)?_t:Ce[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:v.affectedFilesPendingEmit&&lg(v.affectedFilesPendingEmit,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>Q7e(Ce,ae)),changedFilesSet:new Set(Vt(v.changeFileSet,K)),latestChangedDtsFile:z,emitSignatures:ge!=null&&ge.size?ge:void 0}}return{getState:()=>k,saveEmitState:Is,restoreEmitState:Is,getProgram:ho,getProgramOrUndefined:hv,releaseProgram:Is,getCompilerOptions:()=>k.compilerOptions,getSourceFile:ho,getSourceFiles:ho,getOptionsDiagnostics:ho,getGlobalDiagnostics:ho,getConfigFileParsingDiagnostics:ho,getSyntacticDiagnostics:ho,getDeclarationDiagnostics:ho,getSemanticDiagnostics:ho,emit:ho,getAllDependencies:ho,getCurrentDirectory:ho,emitNextAffectedFile:ho,getSemanticDiagnosticsOfNextAffectedFile:ho,emitBuildInfo:ho,close:Is,hasChangedEmitSignature:cg};function j(se){return J0(se,b,B)}function J(se){return $a(se,b)}function K(se){return T[se-1]}function Y(se){return M[se-1]}function oe(se){if(!se)return;const ge=Wp.createManyToManyPathMap();return se.forEach(([ae,Ce])=>ge.set(K(ae),Y(Ce))),ge}}function V1e(t,u,s){const d=lr($a(u,s.getCurrentDirectory())),f=L1(s.useCaseSensitiveFileNames()),p=new Map;let E=0;const v=[];return t.fileInfos.forEach((b,B)=>{const k=J0(t.fileNames[B],d,f),T=Ja(b)?b:b.version;if(p.set(k,T),Et().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:d=>s().getSourceFile(d),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:d=>s().getOptionsDiagnostics(d),getGlobalDiagnostics:d=>s().getGlobalDiagnostics(d),getConfigFileParsingDiagnostics:()=>u,getSyntacticDiagnostics:(d,f)=>s().getSyntacticDiagnostics(d,f),getDeclarationDiagnostics:(d,f)=>s().getDeclarationDiagnostics(d,f),getSemanticDiagnostics:(d,f)=>s().getSemanticDiagnostics(d,f),emit:(d,f,p,E,v)=>s().emit(d,f,p,E,v),emitBuildInfo:(d,f)=>s().emitBuildInfo(d,f),getAllDependencies:ho,getCurrentDirectory:()=>s().getCurrentDirectory(),close:Is};function s(){return H.checkDefined(t().program)}}var K1e,W1e,jzt=o({"src/compiler/builder.ts"(){Bo(),K1e=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.Dts=8]="Dts",t[t.DtsMap=16]="DtsMap",t[t.AllJs=7]="AllJs",t[t.AllDts=24]="AllDts",t[t.All=31]="All",t))(K1e||{}),W1e=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(W1e||{})}});function ytt(t,u,s,d,f,p){return j1e(0,MQ(t,u,s,d,f,p))}function G1e(t,u,s,d,f,p){return j1e(1,MQ(t,u,s,d,f,p))}function ktt(t,u,s,d,f,p){const{newProgram:E,configFileParsingDiagnostics:v}=MQ(t,u,s,d,f,p);return H1e(()=>({program:E,compilerOptions:E.getCompilerOptions()}),v)}var Vzt=o({"src/compiler/builderPublic.ts"(){Bo()}});function zQ(t){return sc(t,"/node_modules/.staging")?D8(t,"/.staging"):Oe(kO,u=>t.includes(u))?void 0:t}function t9e(t,u){if(u<=1)return 1;let s=1,d=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==rl&&!d&&t[1].search(/[a-zA-Z]\$$/)===0){if(u===2)return 2;s=2,d=!0}return d&&!t[s].match(/^users$/i)?s:t[s].match(/^workspaces$/i)?s+1:s+2}function IQ(t,u){if(u===void 0&&(u=t.length),u<=2)return!1;const s=t9e(t,u);return u>s+1}function i9e(t){return Att(lr(t))}function Ftt(t,u){if(u.lengthf.length+1?u9e(v,E,Math.max(f.length+1,b+1)):{dir:s,dirPath:d,nonRecursive:!0}:Stt(v,E,E.length-1,b,B,f)}function Stt(t,u,s,d,f,p){if(f!==-1)return u9e(t,u,f+1);let E=!0,v=s;for(let b=0;bHzt(d,f,p,t,s,u,E)}}function Hzt(t,u,s,d,f,p,E){const v=RQ(t),b=WB(s,d,f,v,u,p,E);if(!t.getGlobalCache)return b;const B=t.getGlobalCache();if(B!==void 0&&!Id(s)&&!(b.resolvedModule&&cZ(b.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:T,affectingLocations:M,resolutionDiagnostics:z}=kAe(H.checkDefined(t.globalCacheResolutionModuleName)(s),t.projectName,f,v,B,u);if(k)return b.resolvedModule=k,b.failedLookupLocations=HB(b.failedLookupLocations,T),b.affectingLocations=HB(b.affectingLocations,M),b.resolutionDiagnostics=HB(b.resolutionDiagnostics,z),b}return b}function $1e(t,u,s){let d,f,p;const E=wm(),v=new Set,b=new Set,B=new Map,k=new Map;let T=!1,M,z,j,J,K,Y=!1;const oe=Mh(()=>t.getCurrentDirectory()),se=t.getCachedDirectoryStructureHost(),ge=new Map,ae=KB(oe(),t.getCanonicalFileName,t.getCompilationSettings()),Ce=new Map,ne=HY(oe(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),ve=new Map,Se=KB(oe(),t.getCanonicalFileName,bde(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),Ne=new Map,pe=new Map,fe=a9e(u,oe),xe=t.toPath(fe),Be=yd(xe),Ge=new Map;return{rootDirForResolution:u,resolvedModuleNames:ge,resolvedTypeReferenceDirectives:Ce,resolvedLibraries:ve,resolvedFileToResolution:B,resolutionsWithFailedLookups:v,resolutionsWithOnlyAffectingLocations:b,directoryWatchesOfFailedLookups:Ne,fileWatchesOfAffectingLocations:pe,watchFailedLookupLocationsOfExternalModuleResolutions:xn,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:ft,finishRecordingFilesWithChangedResolutions:Ye,startCachingPerDirectoryResolution:Gt,finishCachingPerDirectoryResolution:Ie,resolveModuleNameLiterals:ht,resolveTypeReferenceDirectiveReferences:ei,resolveLibrary:Ut,resolveSingleModuleNameWithoutWatching:Ni,removeResolutionsFromProjectReferenceRedirects:Dn,removeResolutionsOfFile:Cn,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:oa,invalidateResolutionsOfFailedLookupLocations:Yo,setFilesWithInvalidatedNonRelativeUnresolvedImports:Da,createHasInvalidatedResolutions:We,isFileWithInvalidatedNonRelativeUnresolvedImports:Ve,updateTypeRootsWatch:Xt,closeTypeRootsWatch:Mt,clear:Ke,onChangesAffectModuleResolution:Je};function Ae(et){return et.resolvedModule}function De(et){return et.resolvedTypeReferenceDirective}function Ke(){rf(Ne,jm),rf(pe,jm),E.clear(),Mt(),ge.clear(),Ce.clear(),B.clear(),v.clear(),b.clear(),j=void 0,J=void 0,K=void 0,z=void 0,M=void 0,Y=!1,ae.clear(),ne.clear(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings()),Se.clear(),k.clear(),ve.clear(),T=!1}function Je(){Y=!0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings())}function ft(){d=[]}function Ye(){const et=d;return d=void 0,et}function Ve(et){if(!p)return!1;const gt=p.get(et);return!!gt&&!!gt.length}function We(et,gt){Yo();const ii=f;return f=void 0,{hasInvalidatedResolutions:me=>et(me)||Y||!!(ii!=null&&ii.has(me))||Ve(me),hasInvalidatedLibResolutions:me=>{var ni;return gt(me)||!!((ni=ve==null?void 0:ve.get(me))!=null&&ni.isInvalidated)}}}function Gt(){ae.isReadonly=void 0,ne.isReadonly=void 0,Se.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),Se.clearAllExceptPackageJsonInfoCache(),E.forEach(aa),E.clear()}function Yt(et){ve.forEach((gt,ii)=>{var me;(me=et==null?void 0:et.resolvedLibReferences)!=null&&me.has(ii)||(bt(gt,t.toPath(AQ(t.getCompilationSettings(),oe(),ii)),Ae),ve.delete(ii))})}function Ie(et,gt){p=void 0,Y=!1,E.forEach(aa),E.clear(),et!==gt&&(Yt(et),et==null||et.getSourceFiles().forEach(ii=>{var me;const ni=cm(ii)?((me=ii.packageJsonLocations)==null?void 0:me.length)??0:0,vi=k.get(ii.path)??_t;for(let mt=vi.length;mtni)for(let mt=ni;mt{et!=null&&et.getSourceFileByPath(me)||(ii.forEach(ni=>pe.get(ni).files--),k.delete(me))})),Ne.forEach(st),pe.forEach(St),T=!1,ae.isReadonly=!0,ne.isReadonly=!0,Se.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0}function st(et,gt){et.refCount===0&&(Ne.delete(gt),et.watcher.close())}function St(et,gt){var ii;et.files===0&&et.resolutions===0&&!((ii=et.symlinks)!=null&&ii.size)&&(pe.delete(gt),et.watcher.close())}function It({entries:et,containingFile:gt,containingSourceFile:ii,redirectedReference:me,options:ni,perFileCache:vi,reusedNames:mt,loader:Ot,getResolutionWithResolvedFileName:Ei,deferWatchingNonRelativeResolution:$i,shouldRetryResolution:Qi,logChanges:on}){const le=t.toPath(gt),te=vi.get(le)||vi.set(le,U7()).get(le),we=[],de=on&&Ve(le),je=t.getCurrentProgram(),X=je&&je.getResolvedProjectReferenceToRedirect(gt),it=X?!me||me.sourceFile.path!==X.sourceFile.path:!!me,Ct=U7();for(const Qt of et){const Li=Ot.nameAndMode.getName(Qt),Ui=Ot.nameAndMode.getMode(Qt,ii);let Sn=te.get(Li,Ui);if(!Ct.has(Li,Ui)&&(Y||it||!Sn||Sn.isInvalidated||de&&!Id(Li)&&Qi(Sn))){const du=Sn;Sn=Ot.resolve(Li,Ui),t.onDiscoveredSymlink&&Kzt(Sn)&&t.onDiscoveredSymlink(),te.set(Li,Ui,Sn),Sn!==du&&(xn(Li,Sn,le,Ei,$i),du&&bt(du,le,Ei)),on&&d&&!ct(du,Sn)&&(d.push(le),on=!1)}else{const du=RQ(t);if(aD(ni,du)&&!Ct.has(Li,Ui)){const Ru=Ei(Sn);Sa(du,vi===ge?Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ru!=null&&Ru.resolvedFileName?Ru.packageId?F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Li,gt,Ru==null?void 0:Ru.resolvedFileName,(Ru==null?void 0:Ru.packageId)&&Px(Ru.packageId))}}H.assert(Sn!==void 0&&!Sn.isInvalidated),Ct.set(Li,Ui,!0),we.push(Sn)}return mt==null||mt.forEach(Qt=>Ct.set(Ot.nameAndMode.getName(Qt),Ot.nameAndMode.getMode(Qt,ii),!0)),te.size()!==Ct.size()&&te.forEach((Qt,Li,Ui)=>{Ct.has(Li,Ui)||(bt(Qt,le,Ei),te.delete(Li,Ui))}),we;function ct(Qt,Li){if(Qt===Li)return!0;if(!Qt||!Li)return!1;const Ui=Ei(Qt),Sn=Ei(Li);return Ui===Sn?!0:!Ui||!Sn?!1:Ui.resolvedFileName===Sn.resolvedFileName}}function ei(et,gt,ii,me,ni,vi){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:vi,perFileCache:Ce,loader:kQ(gt,ii,me,RQ(t),ne),getResolutionWithResolvedFileName:De,shouldRetryResolution:mt=>mt.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ht(et,gt,ii,me,ni,vi){return It({entries:et,containingFile:gt,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:vi,perFileCache:ge,loader:o9e(gt,ii,me,t,ae),getResolutionWithResolvedFileName:Ae,shouldRetryResolution:mt=>!mt.resolvedModule||!FP(mt.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ut(et,gt,ii,me){const ni=RQ(t);let vi=ve==null?void 0:ve.get(me);if(!vi||vi.isInvalidated){const mt=vi;vi=KY(et,gt,ii,ni,Se);const Ot=t.toPath(gt);xn(et,vi,Ot,Ae,!1),ve.set(me,vi),mt&&bt(mt,Ot,Ae)}else if(aD(ii,ni)){const mt=Ae(vi);Sa(ni,mt!=null&&mt.resolvedFileName?mt.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,et,gt,mt==null?void 0:mt.resolvedFileName,(mt==null?void 0:mt.packageId)&&Px(mt.packageId))}return vi}function Ni(et,gt){var ii,me;const ni=t.toPath(gt),vi=ge.get(ni),mt=vi==null?void 0:vi.get(et,void 0);if(mt&&!mt.isInvalidated)return mt;const Ot=(ii=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:ii.call(t,ae),Ei=RQ(t),$i=WB(et,gt,t.getCompilationSettings(),Ei,ae);return(me=t.afterResolveSingleModuleNameWithoutWatching)==null||me.call(t,ae,et,gt,$i,Ot),$i}function ji(et){return sc(et,"/node_modules/@types")}function xn(et,gt,ii,me,ni){var vi;if(gt.refCount)gt.refCount++,H.assertIsDefined(gt.files);else{gt.refCount=1,H.assert(!((vi=gt.files)!=null&&vi.size)),!ni||Id(et)?an(gt):E.add(et,gt);const mt=me(gt);if(mt&&mt.resolvedFileName){const Ot=t.toPath(mt.resolvedFileName);let Ei=B.get(Ot);Ei||B.set(Ot,Ei=new Set),Ei.add(gt)}}(gt.files??(gt.files=new Set)).add(ii)}function Jn(et,gt){const ii=t.toPath(et),me=J1e(et,ii,fe,xe,Be,oe);if(me){const{dir:ni,dirPath:vi,nonRecursive:mt}=me;vi===xe?(H.assert(mt),gt=!0):yr(ni,vi,mt)}return gt}function an(et){H.assert(!!et.refCount);const{failedLookupLocations:gt,affectingLocations:ii,node10Result:me}=et;if(!(gt!=null&>.length)&&!(ii!=null&&ii.length)&&!me)return;(gt!=null&>.length||me)&&v.add(et);let ni=!1;if(gt)for(const vi of gt)ni=Jn(vi,ni);me&&(ni=Jn(me,ni)),ni&&yr(fe,xe,!0),Pi(et,!(gt!=null&>.length)&&!me)}function Pi(et,gt){H.assert(!!et.refCount);const{affectingLocations:ii}=et;if(ii!=null&&ii.length){gt&&b.add(et);for(const me of ii)Ai(me,!0)}}function Ai(et,gt){const ii=pe.get(et);if(ii){gt?ii.resolutions++:ii.files++;return}let me=et,ni=!1,vi;t.realpath&&(me=t.realpath(et),et!==me&&(ni=!0,vi=pe.get(me)));const mt=gt?1:0,Ot=gt?0:1;if(!ni||!vi){const Ei={watcher:n9e(t.toPath(me))?t.watchAffectingFileLocation(me,($i,Qi)=>{se==null||se.addOrDeleteFile($i,t.toPath(me),Qi),Zu(me,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):tw,resolutions:ni?0:mt,files:ni?0:Ot,symlinks:void 0};pe.set(me,Ei),ni&&(vi=Ei)}if(ni){H.assert(!!vi);const Ei={watcher:{close:()=>{var $i;const Qi=pe.get(me);($i=Qi==null?void 0:Qi.symlinks)!=null&&$i.delete(et)&&!Qi.symlinks.size&&!Qi.resolutions&&!Qi.files&&(pe.delete(me),Qi.watcher.close())}},resolutions:mt,files:Ot,symlinks:void 0};pe.set(et,Ei),(vi.symlinks??(vi.symlinks=new Set)).add(et)}}function Zu(et,gt){var ii;const me=pe.get(et);me!=null&&me.resolutions&&(z??(z=new Set)).add(et),me!=null&&me.files&&(M??(M=new Set)).add(et),(ii=me==null?void 0:me.symlinks)==null||ii.forEach(ni=>Zu(ni,gt)),gt==null||gt.delete(t.toPath(et))}function aa(et,gt){const ii=t.getCurrentProgram();!ii||!ii.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(gt)?et.forEach(an):et.forEach(me=>Pi(me,!0))}function yr(et,gt,ii){const me=Ne.get(gt);me?(H.assert(!!ii==!!me.nonRecursive),me.refCount++):Ne.set(gt,{watcher:Ln(et,gt,ii),refCount:1,nonRecursive:ii})}function Ba(et,gt,ii){const me=t.toPath(et),ni=J1e(et,me,fe,xe,Be,oe);if(ni){const{dirPath:vi}=ni;vi===xe?gt=!0:jn(vi,ii)}return gt}function bt(et,gt,ii,me){if(H.checkDefined(et.files).delete(gt),et.refCount--,et.refCount)return;const ni=ii(et);if(ni&&ni.resolvedFileName){const Ei=t.toPath(ni.resolvedFileName),$i=B.get(Ei);$i!=null&&$i.delete(et)&&!$i.size&&B.delete(Ei)}const{failedLookupLocations:vi,affectingLocations:mt,node10Result:Ot}=et;if(v.delete(et)){let Ei=!1;if(vi)for(const $i of vi)Ei=Ba($i,Ei,me);Ot&&(Ei=Ba(Ot,Ei,me)),Ei&&jn(xe,me)}else mt!=null&&mt.length&&b.delete(et);if(mt)for(const Ei of mt){const $i=pe.get(Ei);$i.resolutions--,me&&St($i,Ei)}}function jn(et,gt){const ii=Ne.get(et);ii.refCount--,gt&&st(ii,et)}function Ln(et,gt,ii){return t.watchDirectoryOfFailedLookupLocation(et,me=>{const ni=t.toPath(me);se&&se.addOrDeleteFileOrDirectory(me,ni),ra(ni,gt===ni)},ii?0:1)}function Si(et,gt,ii,me){const ni=et.get(gt);ni&&(ni.forEach(vi=>bt(vi,gt,ii,me)),et.delete(gt))}function Dn(et){if(!Ml(et,".json"))return;const gt=t.getCurrentProgram();if(!gt)return;const ii=gt.getResolvedProjectReferenceByPath(et);ii&&ii.commandLine.fileNames.forEach(me=>Cn(t.toPath(me)))}function Cn(et,gt){Si(ge,et,Ae,gt),Si(Ce,et,De,gt)}function tu(et,gt){if(!et)return!1;let ii=!1;return et.forEach(me=>{if(!(me.isInvalidated||!gt(me))){me.isInvalidated=ii=!0;for(const ni of H.checkDefined(me.files))(f??(f=new Set)).add(ni),T=T||sc(ni,QB)}}),ii}function oa(et){Cn(et);const gt=T;tu(B.get(et),J3)&&T&&!gt&&t.onChangedAutomaticTypeDirectiveNames()}function Da(et){H.assert(p===et||p===void 0),p=et}function ra(et,gt){if(gt)(K||(K=new Set)).add(et);else{const ii=zQ(et);if(!ii||(et=ii,t.fileIsOpen(et)))return!1;const me=lr(et);if(ji(et)||bU(et)||ji(me)||bU(me))(j||(j=new Set)).add(et),(J||(J=new Set)).add(et);else{if(L7e(t.getCurrentProgram(),et)||Ml(et,".map"))return!1;(j||(j=new Set)).add(et);const ni=uH(et,!0);ni&&(J||(J=new Set)).add(ni)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ta(){const et=ae.getPackageJsonInfoCache().getInternalMap();et&&(j||J||K)&&et.forEach((gt,ii)=>Qe(ii)?et.delete(ii):void 0)}function Yo(){var et;if(Y)return M=void 0,Ta(),(j||J||K||z)&&tu(ve,bo),j=void 0,J=void 0,K=void 0,z=void 0,!0;let gt=!1;return M&&((et=t.getCurrentProgram())==null||et.getSourceFiles().forEach(ii=>{Oe(ii.packageJsonLocations,me=>M.has(me))&&((f??(f=new Set)).add(ii.path),gt=!0)}),M=void 0),!j&&!J&&!K&&!z||(gt=tu(v,bo)||gt,Ta(),j=void 0,J=void 0,K=void 0,gt=tu(b,Et)||gt,z=void 0),gt}function bo(et){var gt;return Et(et)?!0:!j&&!J&&!K?!1:((gt=et.failedLookupLocations)==null?void 0:gt.some(ii=>Qe(t.toPath(ii))))||!!et.node10Result&&Qe(t.toPath(et.node10Result))}function Qe(et){return(j==null?void 0:j.has(et))||ie((J==null?void 0:J.keys())||[],gt=>Pa(et,gt)?!0:void 0)||ie((K==null?void 0:K.keys())||[],gt=>et.length>gt.length&&Pa(et,gt)&&(yse(gt)||et[gt.length]===rl)?!0:void 0)}function Et(et){var gt;return!!z&&((gt=et.affectingLocations)==null?void 0:gt.some(ii=>z.has(ii)))}function Mt(){rf(Ge,fg)}function qt(et,gt){return Pe(et)?t.watchTypeRootsDirectory(gt,ii=>{const me=t.toPath(ii);se&&se.addOrDeleteFileOrDirectory(ii,me),T=!0,t.onChangedAutomaticTypeDirectiveNames();const ni=r9e(gt,et,xe,Be,oe,vi=>Ne.has(vi));ni&&ra(me,ni===me)},1):tw}function Xt(){const et=t.getCompilationSettings();if(et.types){Mt();return}const gt=cM(et,{getCurrentDirectory:oe});gt?cB(Ge,lg(gt,ii=>t.toPath(ii)),{createNewValue:qt,onDeleteValue:fg}):Mt()}function Pe(et){return t.getCompilationSettings().typeRoots?!0:i9e(t.toPath(et))}}function Kzt(t){var u,s;return!!((u=t.resolvedModule)!=null&&u.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var Wzt=o({"src/compiler/resolutionCache.ts"(){Bo()}});function kH(t,u){const s=t===c1&&m9e?m9e:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:L1(t.useCaseSensitiveFileNames)};if(!u)return f=>t.write(b1e(f,s));const d=new Array(1);return f=>{d[0]=f,t.write(z7e(d,s)+s.getNewLine()),d[0]=void 0}}function wtt(t,u,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&kt(WQ,u.code)?(t.clearScreen(),!0):!1}function Gzt(t,u){return kt(WQ,t.code)?u+u:u}function FH(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function s9e(t,u){return u?(s,d,f)=>{wtt(t,s,f);let p=`[${eb(FH(t),"\x1B[90m")}] `;p+=`${lE(s.messageText,t.newLine)}${d+d}`,t.write(p)}:(s,d,f)=>{let p="";wtt(t,s,f)||(p+=d),p+=`${FH(t)} - `,p+=`${lE(s.messageText,t.newLine)}${Gzt(s,d)}`,t.write(p)}}function Ttt(t,u,s,d,f,p){const E=f;E.onUnRecoverableConfigFileDiagnostic=b=>Ptt(f,p,b);const v=GV(t,u,E,s,d);return E.onUnRecoverableConfigFileDiagnostic=void 0,v}function OQ(t){return ui(t,u=>u.category===1)}function jQ(t){return ti(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const d=Le(t,f=>f.file!==void 0&&f.file.fileName===s);if(d!==void 0){const{line:f}=s0(d.file,d.start);return{fileName:s,line:f+1}}})}function U1e(t){return t===1?F.Found_1_error_Watching_for_file_changes:F.Found_0_errors_Watching_for_file_changes}function Ltt(t,u){const s=eb(":"+t.line,"\x1B[90m");return SN(t.fileName)&&SN(u)?JE(u,t.fileName,!1)+s:t.fileName+s}function l9e(t,u,s,d){if(t===0)return"";const f=u.filter(k=>k!==void 0),p=f.map(k=>`${k.fileName}:${k.line}`).filter((k,T,M)=>M.indexOf(k)===T),E=f[0]&&Ltt(f[0],d.getCurrentDirectory());let v;t===1?v=u[0]!==void 0?[F.Found_1_error_in_0,E]:[F.Found_1_error]:v=p.length===0?[F.Found_0_errors,t]:p.length===1?[F.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,E]:[F.Found_0_errors_in_1_files,t,p.length];const b=cc(...v),B=p.length>1?Jzt(f,d):"";return`${s}${lE(b.messageText,s)}${s}${s}${B}`}function Jzt(t,u){const s=t.filter((T,M,z)=>M===z.findIndex(j=>(j==null?void 0:j.fileName)===(T==null?void 0:T.fileName)));if(s.length===0)return"";const d=T=>Math.log(T)*Math.LOG10E+1,f=s.map(T=>[T,ui(t,M=>M.fileName===T.fileName)]),p=f.reduce((T,M)=>Math.max(T,M[1]||0),0),E=F.Errors_Files.message,v=E.split(" ")[0].length,b=Math.max(v,d(p)),B=Math.max(d(p)-v,0);let k="";return k+=" ".repeat(B)+E+` -`,f.forEach(T=>{const[M,z]=T,j=Math.log(z)*Math.LOG10E+1|0,J=j{u(d.fileName)})}function Z1e(t,u){var s,d;const f=t.getFileIncludeReasons(),p=E=>wN(E,t.getCurrentDirectory(),t.getCanonicalFileName);for(const E of t.getSourceFiles())u(`${ew(E,p)}`),(s=f.get(E.path))==null||s.forEach(v=>u(` ${ehe(t,v,p).messageText}`)),(d=Y1e(E,p))==null||d.forEach(v=>u(` ${v.messageText}`))}function Y1e(t,u){var s;let d;if(t.path!==t.resolvedPath&&(d??(d=[])).push(ro(void 0,F.File_is_output_of_project_reference_source_0,ew(t.originalFileName,u))),t.redirectInfo&&(d??(d=[])).push(ro(void 0,F.File_redirects_to_file_0,ew(t.redirectInfo.redirectTarget,u))),cm(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(d??(d=[])).push(ro(void 0,F.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,ew(Cr(t.packageJsonLocations),u)));break;case 1:t.packageJsonScope?(d??(d=[])).push(ro(void 0,t.packageJsonScope.contents.packageJsonContent.type?F.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:F.File_is_CommonJS_module_because_0_does_not_have_field_type,ew(Cr(t.packageJsonLocations),u))):(s=t.packageJsonLocations)!=null&&s.length&&(d??(d=[])).push(ro(void 0,F.File_is_CommonJS_module_because_package_json_was_not_found));break}return d}function Q1e(t,u){var s;const d=t.getCompilerOptions().configFile;if(!((s=d==null?void 0:d.configFileSpecs)!=null&&s.validatedFilesSpec))return;const f=t.getCanonicalFileName(u),p=lr($a(d.fileName,t.getCurrentDirectory()));return Le(d.configFileSpecs.validatedFilesSpec,E=>t.getCanonicalFileName($a(E,p))===f)}function X1e(t,u){var s,d;const f=t.getCompilerOptions().configFile;if(!((s=f==null?void 0:f.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(f.configFileSpecs.isDefaultIncludeSpec)return!0;const p=Ml(u,".json"),E=lr($a(f.fileName,t.getCurrentDirectory())),v=t.useCaseSensitiveFileNames();return Le((d=f==null?void 0:f.configFileSpecs)==null?void 0:d.validatedIncludeSpecs,b=>{if(p&&!sc(b,".json"))return!1;const B=Fle(b,E,"files");return!!B&&jx(`(${B})$`,v).test(u)})}function ehe(t,u,s){var d,f;const p=t.getCompilerOptions();if(Jv(u)){const E=FM(t,u),v=ZB(E)?E.file.text.substring(E.pos,E.end):`"${E.text}"`;let b;switch(H.assert(ZB(E)||u.kind===3,"Only synthetic references are imports"),u.kind){case 3:ZB(E)?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2:F.Imported_via_0_from_file_1:E.text===Hx?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:F.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:F.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:H.assert(!E.packageId),b=F.Referenced_via_0_from_file_1;break;case 5:b=E.packageId?F.Type_library_referenced_via_0_from_file_1_with_packageId_2:F.Type_library_referenced_via_0_from_file_1;break;case 7:H.assert(!E.packageId),b=F.Library_referenced_via_0_from_file_1;break;default:H.assertNever(u)}return ro(void 0,b,v,ew(E.file,s),E.packageId&&Px(E.packageId))}switch(u.kind){case 0:if(!((d=p.configFile)!=null&&d.configFileSpecs))return ro(void 0,F.Root_file_specified_for_compilation);const E=$a(t.getRootFileNames()[u.index],t.getCurrentDirectory());if(Q1e(t,E))return ro(void 0,F.Part_of_files_list_in_tsconfig_json);const b=X1e(t,E);return Ja(b)?ro(void 0,F.Matched_by_include_pattern_0_in_1,b,ew(p.configFile,s)):ro(void 0,b?F.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:F.Root_file_specified_for_compilation);case 1:case 2:const B=u.kind===2,k=H.checkDefined((f=t.getResolvedProjectReferences())==null?void 0:f[u.index]);return ro(void 0,y0(p)?B?F.Output_from_referenced_project_0_included_because_1_specified:F.Source_from_referenced_project_0_included_because_1_specified:B?F.Output_from_referenced_project_0_included_because_module_is_specified_as_none:F.Source_from_referenced_project_0_included_because_module_is_specified_as_none,ew(k.sourceFile.fileName,s),p.outFile?"--outFile":"--out");case 8:{const T=p.types?u.packageId?[F.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_of_type_library_0_specified_in_compilerOptions,u.typeReference]:u.packageId?[F.Entry_point_for_implicit_type_library_0_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_for_implicit_type_library_0,u.typeReference];return ro(void 0,...T)}case 6:{if(u.index!==void 0)return ro(void 0,F.Library_0_specified_in_compilerOptions,p.lib[u.index]);const T=h1(XV.type,(z,j)=>z===Os(p)?j:void 0),M=T?[F.Default_library_for_target_0,T]:[F.Default_library];return ro(void 0,...M)}default:H.assertNever(u)}}function ew(t,u){const s=Ja(t)?t:t.fileName;return u?u(s):s}function VQ(t,u,s,d,f,p,E,v){const b=!!t.getCompilerOptions().listFilesOnly,B=t.getConfigFileParsingDiagnostics().slice(),k=B.length;yn(B,t.getSyntacticDiagnostics(void 0,p)),B.length===k&&(yn(B,t.getOptionsDiagnostics(p)),b||(yn(B,t.getGlobalDiagnostics(p)),B.length===k&&yn(B,t.getSemanticDiagnostics(void 0,p))));const T=b?{emitSkipped:!0,diagnostics:_t}:t.emit(void 0,f,p,E,v),{emittedFiles:M,diagnostics:z}=T;yn(B,z);const j=A8(B);if(j.forEach(u),s){const J=t.getCurrentDirectory();L(M,K=>{const Y=$a(K,J);s(`TSFILE: ${Y}`)}),q1e(t,s)}return d&&d(OQ(j),jQ(j)),{emitResult:T,diagnostics:j}}function d9e(t,u,s,d,f,p,E,v){const{emitResult:b,diagnostics:B}=VQ(t,u,s,d,f,p,E,v);return b.emitSkipped&&B.length>0?1:B.length>0?2:0}function the(t=c1,u){return{onWatchStatusChange:u||s9e(t),watchFile:Lo(t,t.watchFile)||iw,watchDirectory:Lo(t,t.watchDirectory)||iw,setTimeout:Lo(t,t.setTimeout)||Is,clearTimeout:Lo(t,t.clearTimeout)||Is}}function ihe(t,u){const s=t.trace?u.extendedDiagnostics?2:u.diagnostics?1:0:0,d=s!==0?p=>t.trace(p):Is,f=E1e(t,s,d);return f.writeLog=d,f}function nhe(t,u,s=t){const d=t.useCaseSensitiveFileNames(),f={getSourceFile:x1e((p,E)=>E?t.readFile(p,E):f.readFile(p),u,void 0),getDefaultLibLocation:Lo(t,t.getDefaultLibLocation),getDefaultLibFileName:p=>t.getDefaultLibFileName(p),writeFile:v1e((p,E,v)=>t.writeFile(p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p)),getCurrentDirectory:Mh(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>d,getCanonicalFileName:L1(d),getNewLine:()=>a5(u()),fileExists:p=>t.fileExists(p),readFile:p=>t.readFile(p),trace:Lo(t,t.trace),directoryExists:Lo(s,s.directoryExists),getDirectories:Lo(s,s.getDirectories),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable)||(()=>""),createHash:Lo(t,t.createHash),readDirectory:Lo(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:t.jsDocParsingMode};return f}function HQ(t,u){if(u.match(Jde)){let s=u.length,d=s;for(let f=s-1;f>=0;f--){const p=u.charCodeAt(f);switch(p){case 10:f&&u.charCodeAt(f-1)===13&&f--;case 13:break;default:if(p<127||!Z1(p)){d=f;continue}break}const E=u.substring(d,s);if(E.match(nQ)){u=u.substring(0,d);break}else if(!E.match(uQ))break;s=d}}return(t.createHash||AN)(u)}function KQ(t){const u=t.getSourceFile;t.getSourceFile=(...s)=>{const d=u.call(t,...s);return d&&(d.version=HQ(t,d.text)),d}}function uhe(t,u){const s=Mh(()=>lr($o(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:Mh(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:d=>cr(s(),zO(d)),fileExists:d=>t.fileExists(d),readFile:(d,f)=>t.readFile(d,f),directoryExists:d=>t.directoryExists(d),getDirectories:d=>t.getDirectories(d),readDirectory:(d,f,p,E,v)=>t.readDirectory(d,f,p,E,v),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable),trace:d=>t.write(d+t.newLine),createDirectory:d=>t.createDirectory(d),writeFile:(d,f,p)=>t.writeFile(d,f,p),createHash:Lo(t,t.createHash),createProgram:u||G1e,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:Lo(t,t.now)}}function Ntt(t=c1,u,s,d){const f=E=>t.write(E+t.newLine),p=uhe(t,u);return roe(p,the(t,d)),p.afterProgramCreate=E=>{const v=E.getCompilerOptions(),b=a5(v);VQ(E,s,f,B=>p.onWatchStatusChange(cc(U1e(B),B),b,v,B))},p}function Ptt(t,u,s){u(s),t.exit(1)}function h9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:s,extraFileExtensions:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=E||kH(f),B=Ntt(f,p,b,v);return B.onUnRecoverableConfigFileDiagnostic=k=>Ptt(f,b,k),B.configFileName=t,B.optionsToExtend=u,B.watchOptionsToExtend=s,B.extraFileExtensions=d,B}function f9e({rootFiles:t,options:u,watchOptions:s,projectReferences:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=Ntt(f,p,E||kH(f),v);return b.rootFiles=t,b.options=u,b.watchOptions=s,b.projectReferences=d,b}function Mtt(t){const u=t.system||c1,s=t.host||(t.host=rhe(t.options,u)),d=p9e(t),f=d9e(d,t.reportDiagnostic||kH(u),p=>s.trace&&s.trace(p),t.reportErrorSummary||t.options.pretty?(p,E)=>u.write(l9e(p,E,u.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(d),f}var m9e,WQ,tw,iw,cd,$zt=o({"src/compiler/watch.ts"(){Bo(),m9e=c1?{getCurrentDirectory:()=>c1.getCurrentDirectory(),getNewLine:()=>c1.newLine,getCanonicalFileName:L1(c1.useCaseSensitiveFileNames)}:void 0,WQ=[F.Starting_compilation_in_watch_mode.code,F.File_change_detected_Starting_incremental_compilation.code],tw={close:Is},iw=()=>tw,cd={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 GQ(t,u){const s=f5(t);if(!s)return;let d;if(u.getBuildInfo)d=u.getBuildInfo(s,t.configFilePath);else{const f=u.readFile(s);if(!f)return;d=_Q(s,f)}if(!(!d||d.version!==_||!d.program))return e9e(d,s,u)}function rhe(t,u=c1){const s=C1e(t,void 0,u);return s.createHash=Lo(u,u.createHash),s.storeFilesChangingSignatureDuringEmit=u.storeFilesChangingSignatureDuringEmit,KQ(s),vH(s,d=>J0(d,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function p9e({rootNames:t,options:u,configFileParsingDiagnostics:s,projectReferences:d,host:f,createProgram:p}){f=f||rhe(u),p=p||G1e;const E=GQ(u,f);return p(t,u,f,E,s,d)}function ztt(t,u,s,d,f,p,E,v){return Ha(t)?f9e({rootFiles:t,options:u,watchOptions:v,projectReferences:E,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p}):h9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:E,extraFileExtensions:v,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p})}function Itt(t){let u,s,d,f,p,E,v,b,B=t.extendedConfigCache,k=!1;const T=new Map;let M,z=!1;const j=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:K,optionsToExtend:Y={},watchOptionsToExtend:oe,extraFileExtensions:se,createProgram:ge}=t;let{rootFiles:ae,options:Ce,watchOptions:ne,projectReferences:ve}=t,Se,Ne,pe=!1,fe=!1;const xe=K===void 0?void 0:xQ(t,J,j),Be=xe||t,Ge=wQ(t,Be);let Ae=xn();K&&t.configFileParsingResult&&(bo(t.configFileParsingResult),Ae=xn()),bt(F.Starting_compilation_in_watch_mode),K&&!t.configFileParsingResult&&(Ae=a5(Y),H.assert(!ae),Yo(),Ae=xn()),H.assert(Ce),H.assert(ae);const{watchFile:De,watchDirectory:Ke,writeLog:Je}=ihe(t,Ce),ft=L1(j);Je(`Current directory: ${J} CaseSensitiveFileNames: ${j}`);let Ye;K&&(Ye=De(K,tu,2e3,ne,cd.ConfigFile));const Ve=nhe(t,()=>Ce,Be);KQ(Ve);const We=Ve.getSourceFile;Ve.getSourceFile=(mt,...Ot)=>Zu(mt,Jn(mt),...Ot),Ve.getSourceFileByPath=Zu,Ve.getNewLine=()=>Ae,Ve.fileExists=Ai,Ve.onReleaseOldSourceFile=Ba,Ve.onReleaseParsedCommandLine=Mt,Ve.toPath=Jn,Ve.getCompilationSettings=()=>Ce,Ve.useSourceOfProjectReferenceRedirect=Lo(t,t.useSourceOfProjectReferenceRedirect),Ve.watchDirectoryOfFailedLookupLocation=(mt,Ot,Ei)=>Ke(mt,Ot,Ei,ne,cd.FailedLookupLocations),Ve.watchAffectingFileLocation=(mt,Ot)=>De(mt,Ot,2e3,ne,cd.AffectingFileLocation),Ve.watchTypeRootsDirectory=(mt,Ot,Ei)=>Ke(mt,Ot,Ei,ne,cd.TypeRoots),Ve.getCachedDirectoryStructureHost=()=>xe,Ve.scheduleInvalidateResolutionsOfFailedLookupLocations=Si,Ve.onInvalidatedResolution=Cn,Ve.onChangedAutomaticTypeDirectiveNames=Cn,Ve.fileIsOpen=cg,Ve.getCurrentProgram=ht,Ve.writeLog=Je,Ve.getParsedCommandLine=Qe;const Gt=$1e(Ve,K?lr($a(K,J)):J,!1);Ve.resolveModuleNameLiterals=Lo(t,t.resolveModuleNameLiterals),Ve.resolveModuleNames=Lo(t,t.resolveModuleNames),!Ve.resolveModuleNameLiterals&&!Ve.resolveModuleNames&&(Ve.resolveModuleNameLiterals=Gt.resolveModuleNameLiterals.bind(Gt)),Ve.resolveTypeReferenceDirectiveReferences=Lo(t,t.resolveTypeReferenceDirectiveReferences),Ve.resolveTypeReferenceDirectives=Lo(t,t.resolveTypeReferenceDirectives),!Ve.resolveTypeReferenceDirectiveReferences&&!Ve.resolveTypeReferenceDirectives&&(Ve.resolveTypeReferenceDirectiveReferences=Gt.resolveTypeReferenceDirectiveReferences.bind(Gt)),Ve.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Gt.resolveLibrary.bind(Gt),Ve.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?Lo(t,t.getModuleResolutionCache):()=>Gt.getModuleResolutionCache();const Ie=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?Lo(t,t.hasInvalidatedResolutions)||J3:cg,st=t.resolveLibrary?Lo(t,t.hasInvalidatedLibResolutions)||J3:cg;return u=GQ(Ce,Ve),Ut(),ii(),K&&ni(Jn(K),Ce,ne,cd.ExtendedConfigFile),K?{getCurrentProgram:ei,getProgram:Da,close:St,getResolutionCache:It}:{getCurrentProgram:ei,getProgram:Da,updateRootFileNames:ji,close:St,getResolutionCache:It};function St(){Ln(),Gt.clear(),rf(T,mt=>{mt&&mt.fileWatcher&&(mt.fileWatcher.close(),mt.fileWatcher=void 0)}),Ye&&(Ye.close(),Ye=void 0),B==null||B.clear(),B=void 0,b&&(rf(b,jm),b=void 0),f&&(rf(f,jm),f=void 0),d&&(rf(d,fg),d=void 0),v&&(rf(v,mt=>{var Ot;(Ot=mt.watcher)==null||Ot.close(),mt.watcher=void 0,mt.watchedDirectories&&rf(mt.watchedDirectories,jm),mt.watchedDirectories=void 0}),v=void 0)}function It(){return Gt}function ei(){return u}function ht(){return u&&u.getProgramOrUndefined()}function Ut(){Je("Synchronizing program"),H.assert(Ce),H.assert(ae),Ln();const mt=ei();z&&(Ae=xn(),mt&&UU(mt.getCompilerOptions(),Ce)&&Gt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:Ei}=Gt.createHasInvalidatedResolutions(Ie,st),{originalReadFile:$i,originalFileExists:Qi,originalDirectoryExists:on,originalCreateDirectory:le,originalWriteFile:te,readFileWithCache:we}=vH(Ve,Jn);return w1e(ht(),ae,Ce,de=>yr(de,we),de=>Ve.fileExists(de),Ot,Ei,jn,Qe,ve)?fe&&(k&&bt(F.File_change_detected_Starting_incremental_compilation),u=ge(void 0,void 0,Ve,u,Ne,ve),fe=!1):(k&&bt(F.File_change_detected_Starting_incremental_compilation),Ni(Ot,Ei)),k=!1,t.afterProgramCreate&&mt!==u&&t.afterProgramCreate(u),Ve.readFile=$i,Ve.fileExists=Qi,Ve.directoryExists=on,Ve.createDirectory=le,Ve.writeFile=te,u}function Ni(mt,Ot){Je("CreatingProgramWith::"),Je(` roots: ${JSON.stringify(ae)}`),Je(` options: ${JSON.stringify(Ce)}`),ve&&Je(` projectReferences: ${JSON.stringify(ve)}`);const Ei=z||!ht();z=!1,fe=!1,Gt.startCachingPerDirectoryResolution(),Ve.hasInvalidatedResolutions=mt,Ve.hasInvalidatedLibResolutions=Ot,Ve.hasChangedAutomaticTypeDirectiveNames=jn;const $i=ht();if(u=ge(ae,Ce,Ve,u,Ne,ve),Gt.finishCachingPerDirectoryResolution(u.getProgram(),$i),g1e(u.getProgram(),d||(d=new Map),et),Ei&&Gt.updateTypeRootsWatch(),M){for(const Qi of M)d.has(Qi)||T.delete(Qi);M=void 0}}function ji(mt){H.assert(!K,"Cannot update root file names with config file watch mode"),ae=mt,Cn()}function xn(){return a5(Ce||Y)}function Jn(mt){return J0(mt,J,ft)}function an(mt){return typeof mt=="boolean"}function Pi(mt){return typeof mt.version=="boolean"}function Ai(mt){const Ot=Jn(mt);return an(T.get(Ot))?!1:Be.fileExists(mt)}function Zu(mt,Ot,Ei,$i,Qi){const on=T.get(Ot);if(an(on))return;const le=typeof Ei=="object"?Ei.impliedNodeFormat:void 0;if(on===void 0||Qi||Pi(on)||on.sourceFile.impliedNodeFormat!==le){const te=We(mt,Ei,$i);if(on)te?(on.sourceFile=te,on.version=te.version,on.fileWatcher||(on.fileWatcher=qt(Ot,mt,Xt,250,ne,cd.SourceFile))):(on.fileWatcher&&on.fileWatcher.close(),T.set(Ot,!1));else if(te){const we=qt(Ot,mt,Xt,250,ne,cd.SourceFile);T.set(Ot,{sourceFile:te,version:te.version,fileWatcher:we})}else T.set(Ot,!1);return te}return on.sourceFile}function aa(mt){const Ot=T.get(mt);Ot!==void 0&&(an(Ot)?T.set(mt,{version:!1}):Ot.version=!1)}function yr(mt,Ot){const Ei=T.get(mt);if(!Ei)return;if(Ei.version)return Ei.version;const $i=Ot(mt);return $i!==void 0?HQ(Ve,$i):void 0}function Ba(mt,Ot,Ei){const $i=T.get(mt.resolvedPath);$i!==void 0&&(an($i)?(M||(M=[])).push(mt.path):$i.sourceFile===mt&&($i.fileWatcher&&$i.fileWatcher.close(),T.delete(mt.resolvedPath),Ei||Gt.removeResolutionsOfFile(mt.path)))}function bt(mt){t.onWatchStatusChange&&t.onWatchStatusChange(cc(mt),Ae,Ce||Y)}function jn(){return Gt.hasChangedAutomaticTypeDirectiveNames()}function Ln(){return E?(t.clearTimeout(E),E=void 0,!0):!1}function Si(){if(!t.setTimeout||!t.clearTimeout)return Gt.invalidateResolutionsOfFailedLookupLocations();const mt=Ln();Je(`Scheduling invalidateFailedLookup${mt?", Cancelled earlier one":""}`),E=t.setTimeout(Dn,250,"timerToInvalidateFailedLookupResolutions")}function Dn(){E=void 0,Gt.invalidateResolutionsOfFailedLookupLocations()&&Cn()}function Cn(){!t.setTimeout||!t.clearTimeout||(p&&t.clearTimeout(p),Je("Scheduling update"),p=t.setTimeout(oa,250,"timerToUpdateProgram"))}function tu(){H.assert(!!K),s=2,Cn()}function oa(){p=void 0,k=!0,Da()}function Da(){var mt,Ot,Ei,$i;switch(s){case 1:(mt=hh)==null||mt.logStartUpdateProgram("PartialConfigReload"),ra();break;case 2:(Ot=hh)==null||Ot.logStartUpdateProgram("FullConfigReload"),Ta();break;default:(Ei=hh)==null||Ei.logStartUpdateProgram("SynchronizeProgram"),Ut();break}return($i=hh)==null||$i.logStopUpdateProgram("Done"),ei()}function ra(){Je("Reloading new file names and options"),H.assert(Ce),H.assert(K),s=0,ae=oM(Ce.configFile.configFileSpecs,$a(lr(K),J),Ce,Ge,se),wY(ae,$a(K,J),Ce.configFile.configFileSpecs,Ne,pe)&&(fe=!0),Ut()}function Ta(){H.assert(K),Je(`Reloading config file: ${K}`),s=0,xe&&xe.clearCache(),Yo(),z=!0,Ut(),ii(),ni(Jn(K),Ce,ne,cd.ExtendedConfigFile)}function Yo(){H.assert(K),bo(GV(K,Y,Ge,B||(B=new Map),oe,se))}function bo(mt){ae=mt.fileNames,Ce=mt.options,ne=mt.watchOptions,ve=mt.projectReferences,Se=mt.wildcardDirectories,Ne=Lk(mt).slice(),pe=aM(mt.raw),fe=!0}function Qe(mt){const Ot=Jn(mt);let Ei=v==null?void 0:v.get(Ot);if(Ei){if(!Ei.updateLevel)return Ei.parsedCommandLine;if(Ei.parsedCommandLine&&Ei.updateLevel===1&&!t.getParsedCommandLine){Je("Reloading new file names and options"),H.assert(Ce);const Qi=oM(Ei.parsedCommandLine.options.configFile.configFileSpecs,$a(lr(mt),J),Ce,Ge);return Ei.parsedCommandLine={...Ei.parsedCommandLine,fileNames:Qi},Ei.updateLevel=void 0,Ei.parsedCommandLine}}Je(`Loading config file: ${mt}`);const $i=t.getParsedCommandLine?t.getParsedCommandLine(mt):Et(mt);return Ei?(Ei.parsedCommandLine=$i,Ei.updateLevel=void 0):(v||(v=new Map)).set(Ot,Ei={parsedCommandLine:$i}),vi(mt,Ot,Ei),$i}function Et(mt){const Ot=Ge.onUnRecoverableConfigFileDiagnostic;Ge.onUnRecoverableConfigFileDiagnostic=Is;const Ei=GV(mt,void 0,Ge,B||(B=new Map),oe);return Ge.onUnRecoverableConfigFileDiagnostic=Ot,Ei}function Mt(mt){var Ot;const Ei=Jn(mt),$i=v==null?void 0:v.get(Ei);$i&&(v.delete(Ei),$i.watchedDirectories&&rf($i.watchedDirectories,jm),(Ot=$i.watcher)==null||Ot.close(),p1e(Ei,b))}function qt(mt,Ot,Ei,$i,Qi,on){return De(Ot,(le,te)=>Ei(le,te,mt),$i,Qi,on)}function Xt(mt,Ot,Ei){Pe(mt,Ei,Ot),Ot===2&&T.has(Ei)&&Gt.invalidateResolutionOfFile(Ei),aa(Ei),Cn()}function Pe(mt,Ot,Ei){xe&&xe.addOrDeleteFile(mt,Ot,Ei)}function et(mt){return v!=null&&v.has(mt)?tw:qt(mt,mt,gt,500,ne,cd.MissingFile)}function gt(mt,Ot,Ei){Pe(mt,Ei,Ot),Ot===0&&d.has(Ei)&&(d.get(Ei).close(),d.delete(Ei),aa(Ei),Cn())}function ii(){Se?_H(f||(f=new Map),new Map(Object.entries(Se)),me):f&&rf(f,jm)}function me(mt,Ot){return Ke(mt,Ei=>{H.assert(K),H.assert(Ce);const $i=Jn(Ei);xe&&xe.addOrDeleteFileOrDirectory(Ei,$i),aa($i),!DH({watchedDirPath:Jn(mt),fileOrDirectory:Ei,fileOrDirectoryPath:$i,configFileName:K,extraFileExtensions:se,options:Ce,program:ei()||ae,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})&&s!==2&&(s=1,Cn())},Ot,ne,cd.WildcardDirectory)}function ni(mt,Ot,Ei,$i){vQ(mt,Ot,b||(b=new Map),(Qi,on)=>De(Qi,(le,te)=>{var we;Pe(Qi,on,te),B&&CQ(B,on,Jn);const de=(we=b.get(on))==null?void 0:we.projects;de!=null&&de.size&&de.forEach(je=>{if(K&&Jn(K)===je)s=2;else{const X=v==null?void 0:v.get(je);X&&(X.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(je)}Cn()})},2e3,Ei,$i),Jn)}function vi(mt,Ot,Ei){var $i,Qi,on,le,te;Ei.watcher||(Ei.watcher=De(mt,(we,de)=>{Pe(mt,Ot,de);const je=v==null?void 0:v.get(Ot);je&&(je.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(Ot),Cn()},2e3,(($i=Ei.parsedCommandLine)==null?void 0:$i.watchOptions)||ne,cd.ConfigFileOfReferencedProject)),(Qi=Ei.parsedCommandLine)!=null&&Qi.wildcardDirectories?_H(Ei.watchedDirectories||(Ei.watchedDirectories=new Map),new Map(Object.entries((on=Ei.parsedCommandLine)==null?void 0:on.wildcardDirectories)),(we,de)=>{var je;return Ke(we,X=>{const it=Jn(X);xe&&xe.addOrDeleteFileOrDirectory(X,it),aa(it);const Ct=v==null?void 0:v.get(Ot);Ct!=null&&Ct.parsedCommandLine&&(DH({watchedDirPath:Jn(we),fileOrDirectory:X,fileOrDirectoryPath:it,configFileName:mt,options:Ct.parsedCommandLine.options,program:Ct.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})||Ct.updateLevel!==2&&(Ct.updateLevel=1,Cn()))},de,((je=Ei.parsedCommandLine)==null?void 0:je.watchOptions)||ne,cd.WildcardDirectoryOfReferencedProject)}):Ei.watchedDirectories&&(rf(Ei.watchedDirectories,jm),Ei.watchedDirectories=void 0),ni(Ot,(le=Ei.parsedCommandLine)==null?void 0:le.options,((te=Ei.parsedCommandLine)==null?void 0:te.watchOptions)||ne,cd.ExtendedConfigOfReferencedProject)}}var Uzt=o({"src/compiler/watchPublic.ts"(){Bo()}});function ahe(t){return Ml(t,".json")?t:cr(t,"tsconfig.json")}var ohe,qzt=o({"src/compiler/tsbuild.ts"(){Bo(),ohe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.ErrorReadingFile=5]="ErrorReadingFile",t[t.OutOfDateWithSelf=6]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(ohe||{})}});function Zzt(t,u,s){const d=t.get(u);let f;return d||(f=s(),t.set(u,f)),d||f}function g9e(t,u){return Zzt(t,u,()=>new Map)}function AH(t){return t.now?t.now():new Date}function e9(t){return!!t&&!!t.buildOrder}function JQ(t){return e9(t)?t.buildOrder:t}function E9e(t,u){return s=>{let d=u?`[${eb(FH(t),"\x1B[90m")}] `:`${FH(t)} - `;d+=`${lE(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(d)}}function Rtt(t,u,s,d){const f=uhe(t,u);return f.getModifiedTime=t.getModifiedTime?p=>t.getModifiedTime(p):hv,f.setModifiedTime=t.setModifiedTime?(p,E)=>t.setModifiedTime(p,E):Is,f.deleteFile=t.deleteFile?p=>t.deleteFile(p):Is,f.reportDiagnostic=s||kH(t),f.reportSolutionBuilderStatus=d||E9e(t),f.now=Lo(t,t.now),f}function Ott(t=c1,u,s,d,f){const p=Rtt(t,u,s,d);return p.reportErrorSummary=f,p}function jtt(t=c1,u,s,d,f){const p=Rtt(t,u,s,d),E=the(t,f);return roe(p,E),p}function Yzt(t){const u={};return QV.forEach(s=>{gu(t,s.name)&&(u[s.name]=t[s.name])}),u}function Vtt(t,u,s){return dit(!1,t,u,s)}function Htt(t,u,s,d){return dit(!0,t,u,s,d)}function Qzt(t,u,s,d,f){const p=u,E=u,v=Yzt(d),b=nhe(p,()=>J.projectCompilerOptions);KQ(b),b.getParsedCommandLine=K=>t9(J,K,cE(J,K)),b.resolveModuleNameLiterals=Lo(p,p.resolveModuleNameLiterals),b.resolveTypeReferenceDirectiveReferences=Lo(p,p.resolveTypeReferenceDirectiveReferences),b.resolveLibrary=Lo(p,p.resolveLibrary),b.resolveModuleNames=Lo(p,p.resolveModuleNames),b.resolveTypeReferenceDirectives=Lo(p,p.resolveTypeReferenceDirectives),b.getModuleResolutionCache=Lo(p,p.getModuleResolutionCache);let B,k;!b.resolveModuleNameLiterals&&!b.resolveModuleNames&&(B=KB(b.getCurrentDirectory(),b.getCanonicalFileName),b.resolveModuleNameLiterals=(K,Y,oe,se,ge)=>CH(K,Y,oe,se,ge,p,B,A1e),b.getModuleResolutionCache=()=>B),!b.resolveTypeReferenceDirectiveReferences&&!b.resolveTypeReferenceDirectives&&(k=HY(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache(),B==null?void 0:B.optionsToRedirectsKey),b.resolveTypeReferenceDirectiveReferences=(K,Y,oe,se,ge)=>CH(K,Y,oe,se,ge,p,k,kQ));let T;b.resolveLibrary||(T=KB(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache()),b.resolveLibrary=(K,Y,oe)=>KY(K,Y,oe,p,T)),b.getBuildInfo=(K,Y)=>iit(J,K,cE(J,Y),void 0);const{watchFile:M,watchDirectory:z,writeLog:j}=ihe(E,d),J={host:p,hostWithWatch:E,parseConfigFileHost:wQ(p),write:Lo(p,p.trace),options:d,baseCompilerOptions:v,rootNames:s,baseWatchOptions:f,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:b,moduleResolutionCache:B,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:T,buildOrder:void 0,readFileWithCache:K=>p.readFile(K),projectCompilerOptions:v,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,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:M,watchDirectory:z,writeLog:j};return J}function gm(t,u){return J0(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function cE(t,u){const{resolvedConfigFilePaths:s}=t,d=s.get(u);if(d!==void 0)return d;const f=gm(t,u);return s.set(u,f),f}function Ktt(t){return!!t.options}function Xzt(t,u){const s=t.configFileCache.get(u);return s&&Ktt(s)?s:void 0}function t9(t,u,s){const{configFileCache:d}=t,f=d.get(s);if(f)return Ktt(f)?f:void 0;ul("SolutionBuilder::beforeConfigFileParsing");let p;const{parseConfigFileHost:E,baseCompilerOptions:v,baseWatchOptions:b,extendedConfigCache:B,host:k}=t;let T;return k.getParsedCommandLine?(T=k.getParsedCommandLine(u),T||(p=cc(F.File_0_not_found,u))):(E.onUnRecoverableConfigFileDiagnostic=M=>p=M,T=GV(u,v,E,B,b),E.onUnRecoverableConfigFileDiagnostic=Is),d.set(s,T||p),ul("SolutionBuilder::afterConfigFileParsing"),Tm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function AM(t,u){return ahe(kx(t.compilerHost.getCurrentDirectory(),u))}function Wtt(t,u){const s=new Map,d=new Map,f=[];let p,E;for(const b of u)v(b);return E?{buildOrder:p||_t,circularDiagnostics:E}:p||_t;function v(b,B){const k=cE(t,b);if(d.has(k))return;if(s.has(k)){B||(E||(E=[])).push(cc(F.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join(`\r -`)));return}s.set(k,!0),f.push(b);const T=t9(t,b,k);if(T&&T.projectReferences)for(const M of T.projectReferences){const z=AM(t,M.path);v(z,B||M.circular)}f.pop(),d.set(k,!0),(p||(p=[])).push(b)}}function $Q(t){return t.buildOrder||eIt(t)}function eIt(t){const u=Wtt(t,t.rootNames.map(f=>AM(t,f)));t.resolvedConfigFilePaths.clear();const s=new Map(JQ(u).map(f=>[cE(t,f),!0])),d={onDeleteValue:Is};return eD(t.configFileCache,s,d),eD(t.projectStatus,s,d),eD(t.builderPrograms,s,d),eD(t.diagnostics,s,d),eD(t.projectPendingBuild,s,d),eD(t.projectErrorsReported,s,d),eD(t.buildInfoCache,s,d),eD(t.outputTimeStamps,s,d),t.watch&&(eD(t.allWatchedConfigFiles,s,{onDeleteValue:fg}),t.allWatchedExtendedConfigFiles.forEach(f=>{f.projects.forEach(p=>{s.has(p)||f.projects.delete(p)}),f.close()}),eD(t.allWatchedWildcardDirectories,s,{onDeleteValue:f=>f.forEach(jm)}),eD(t.allWatchedInputFiles,s,{onDeleteValue:f=>f.forEach(fg)}),eD(t.allWatchedPackageJsonFiles,s,{onDeleteValue:f=>f.forEach(fg)})),t.buildOrder=u}function Gtt(t,u,s){const d=u&&AM(t,u),f=$Q(t);if(e9(f))return f;if(d){const E=cE(t,d);if(Ue(f,b=>cE(t,b)===E)===-1)return}const p=d?Wtt(t,[d]):f;return H.assert(!e9(p)),H.assert(!s||d!==void 0),H.assert(!s||p[p.length-1]===d),s?p.slice(0,p.length-1):p}function Jtt(t){t.cache&&_9e(t);const{compilerHost:u,host:s}=t,d=t.readFileWithCache,f=u.getSourceFile,{originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,getSourceFileWithCache:k,readFileWithCache:T}=vH(s,M=>gm(t,M),(...M)=>f.call(u,...M));t.readFileWithCache=T,u.getSourceFile=k,t.cache={originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,originalReadFileWithCache:d,originalGetSourceFile:f}}function _9e(t){if(!t.cache)return;const{cache:u,host:s,compilerHost:d,extendedConfigCache:f,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:E,libraryResolutionCache:v}=t;s.readFile=u.originalReadFile,s.fileExists=u.originalFileExists,s.directoryExists=u.originalDirectoryExists,s.createDirectory=u.originalCreateDirectory,s.writeFile=u.originalWriteFile,d.getSourceFile=u.originalGetSourceFile,t.readFileWithCache=u.originalReadFileWithCache,f.clear(),p==null||p.clear(),E==null||E.clear(),v==null||v.clear(),t.cache=void 0}function $tt(t,u){t.projectStatus.delete(u),t.diagnostics.delete(u)}function Utt({projectPendingBuild:t},u,s){const d=t.get(u);(d===void 0||dt.projectPendingBuild.set(cE(t,d),0)),u&&u.throwIfCancellationRequested()}function Ztt(t,u){return t.projectPendingBuild.delete(u),t.diagnostics.has(u)?1:0}function tIt(t,u,s,d,f){let p=!0;return{kind:2,project:u,projectPath:s,buildOrder:f,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{uit(t,d,s),p=!1},done:()=>(p&&uit(t,d,s),ul("SolutionBuilder::Timestamps only updates"),Ztt(t,s))}}function Ytt(t,u,s,d,f,p,E){let v=t===0?0:4,b,B,k;return t===0?{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>M(il),getProgram:()=>M(ne=>ne.getProgramOrUndefined()),getSourceFile:ne=>M(ve=>ve.getSourceFile(ne)),getSourceFiles:()=>z(ne=>ne.getSourceFiles()),getOptionsDiagnostics:ne=>z(ve=>ve.getOptionsDiagnostics(ne)),getGlobalDiagnostics:ne=>z(ve=>ve.getGlobalDiagnostics(ne)),getConfigFileParsingDiagnostics:()=>z(ne=>ne.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ne,ve)=>z(Se=>Se.getSyntacticDiagnostics(ne,ve)),getAllDependencies:ne=>z(ve=>ve.getAllDependencies(ne)),getSemanticDiagnostics:(ne,ve)=>z(Se=>Se.getSemanticDiagnostics(ne,ve)),getSemanticDiagnosticsOfNextAffectedFile:(ne,ve)=>M(Se=>Se.getSemanticDiagnosticsOfNextAffectedFile&&Se.getSemanticDiagnosticsOfNextAffectedFile(ne,ve)),emit:(ne,ve,Se,Ne,pe)=>{if(ne||Ne)return M(fe=>{var xe,Be;return fe.emit(ne,ve,Se,Ne,pe||((Be=(xe=u.host).getCustomTransformers)==null?void 0:Be.call(xe,s)))});if(Ce(2,Se),v===5)return se(ve,Se);if(v===3)return oe(ve,Se,pe)},done:T}:{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),emit:(ne,ve)=>v!==4?k:ae(ne,ve),done:T};function T(ne,ve,Se){return Ce(8,ne,ve,Se),ul(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),Ztt(u,d)}function M(ne){return Ce(0),b&&ne(b)}function z(ne){return M(ne)||_t}function j(){var ne,ve;if(H.assert(b===void 0),u.options.dry){Rh(u,F.A_non_dry_build_would_build_project_0,s),B=1,v=7;return}if(u.options.verbose&&Rh(u,F.Building_project_0,s),p.fileNames.length===0){SM(u,d,Lk(p)),B=0,v=7;return}const{host:Se,compilerHost:Ne}=u;u.projectCompilerOptions=p.options,(ne=u.moduleResolutionCache)==null||ne.update(p.options),(ve=u.typeReferenceDirectiveResolutionCache)==null||ve.update(p.options),b=Se.createProgram(p.fileNames,p.options,Ne,nIt(u,d,p),Lk(p),p.projectReferences),u.watch&&(u.lastCachedPackageJsonLookups.set(d,u.moduleResolutionCache&&Vt(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),([pe,fe])=>[u.host.realpath&&fe?gm(u,u.host.realpath(pe)):pe,fe])),u.builderPrograms.set(d,b)),v++}function J(ne,ve,Se){ne.length?{buildResult:B,step:v}=v9e(u,d,b,p,ne,ve,Se):v++}function K(ne){H.assertIsDefined(b),J([...b.getConfigFileParsingDiagnostics(),...b.getOptionsDiagnostics(ne),...b.getGlobalDiagnostics(ne),...b.getSyntacticDiagnostics(void 0,ne)],8,"Syntactic")}function Y(ne){J(H.checkDefined(b).getSemanticDiagnostics(void 0,ne),16,"Semantic")}function oe(ne,ve,Se){var Ne,pe,fe;H.assertIsDefined(b),H.assert(v===3);const xe=b.saveEmitState();let Be;const Ge=st=>(Be||(Be=[])).push(st),Ae=[],{emitResult:De}=VQ(b,Ge,void 0,void 0,(st,St,It,ei,ht,Ut)=>Ae.push({name:st,text:St,writeByteOrderMark:It,data:Ut}),ve,!1,Se||((pe=(Ne=u.host).getCustomTransformers)==null?void 0:pe.call(Ne,s)));if(Be)return b.restoreEmitState(xe),{buildResult:B,step:v}=v9e(u,d,b,p,Be,32,"Declaration file"),{emitSkipped:!0,diagnostics:De.diagnostics};const{host:Ke,compilerHost:Je}=u,ft=(fe=b.hasChangedEmitSignature)!=null&&fe.call(b)?0:2,Ye=rB(),Ve=new Map,We=b.getCompilerOptions(),Gt=Xj(We);let Yt,Ie;return Ae.forEach(({name:st,text:St,writeByteOrderMark:It,data:ei})=>{const ht=gm(u,st);Ve.set(gm(u,st),st),ei!=null&&ei.buildInfo&&b9e(u,ei.buildInfo,d,We,ft);const Ut=ei!=null&&ei.differsOnlyInMap?e7(u.host,st):void 0;cP(ne?{writeFile:ne}:Je,Ye,st,St,It),ei!=null&&ei.differsOnlyInMap?u.host.setModifiedTime(st,Ut):!Gt&&u.watch&&(Yt||(Yt=C9e(u,d))).set(ht,Ie||(Ie=AH(u.host)))}),ge(Ye,Ve,Ae.length?Ae[0].name:h1e(p,!Ke.useCaseSensitiveFileNames()),ft),De}function se(ne,ve){H.assertIsDefined(b),H.assert(v===5);const Se=b.emitBuildInfo((Ne,pe,fe,xe,Be,Ge)=>{Ge!=null&&Ge.buildInfo&&b9e(u,Ge.buildInfo,d,b.getCompilerOptions(),2),ne?ne(Ne,pe,fe,xe,Be,Ge):u.compilerHost.writeFile(Ne,pe,fe,xe,Be,Ge)},ve);return Se.diagnostics.length&&(qQ(u,Se.diagnostics),u.diagnostics.set(d,[...u.diagnostics.get(d),...Se.diagnostics]),B=64&B),Se.emittedFiles&&u.write&&Se.emittedFiles.forEach(Ne=>eit(u,p,Ne)),x9e(u,b,p),v=7,Se}function ge(ne,ve,Se,Ne){const pe=ne.getDiagnostics();return pe.length?({buildResult:B,step:v}=v9e(u,d,b,p,pe,64,"Emit"),pe):(u.write&&ve.forEach(fe=>eit(u,p,fe)),nit(u,p,d,F.Updating_unchanged_output_timestamps_of_project_0,ve),u.diagnostics.delete(d),u.projectStatus.set(d,{type:1,oldestOutputFileName:Se}),x9e(u,b,p),v=7,B=Ne,pe)}function ae(ne,ve){var Se,Ne,pe,fe;if(H.assert(t===1),u.options.dry){Rh(u,F.A_non_dry_build_would_update_output_of_project_0,s),B=1,v=7;return}u.options.verbose&&Rh(u,F.Updating_output_of_project_0,s);const{compilerHost:xe}=u;u.projectCompilerOptions=p.options,(Ne=(Se=u.host).beforeEmitBundle)==null||Ne.call(Se,p);const Be=w7e(p,xe,ft=>{const Ye=AM(u,ft.path);return t9(u,Ye,cE(u,Ye))},ve||((fe=(pe=u.host).getCustomTransformers)==null?void 0:fe.call(pe,s)));if(Ja(Be))return Rh(u,F.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,t1(u,Be)),v=6,k=Ytt(0,u,s,d,f,p,E);H.assert(!!Be.length);const Ge=rB(),Ae=new Map;let De=2;const Ke=u.buildInfoCache.get(d).buildInfo||void 0;return Be.forEach(({name:ft,text:Ye,writeByteOrderMark:Ve,data:We})=>{var Gt,Yt;Ae.set(gm(u,ft),ft),We!=null&&We.buildInfo&&(((Gt=We.buildInfo.program)==null?void 0:Gt.outSignature)!==((Yt=Ke==null?void 0:Ke.program)==null?void 0:Yt.outSignature)&&(De&=-3),b9e(u,We.buildInfo,d,p.options,De)),cP(ne?{writeFile:ne}:xe,Ge,ft,Ye,Ve)}),{emitSkipped:!1,diagnostics:ge(Ge,Ae,Be[0].name,De)}}function Ce(ne,ve,Se,Ne){for(;v<=ne&&v<8;){const pe=v;switch(v){case 0:j();break;case 1:K(ve);break;case 2:Y(ve);break;case 3:oe(Se,ve,Ne);break;case 5:se(Se,ve);break;case 4:ae(Se,Ne);break;case 6:H.checkDefined(k).done(ve,Se,Ne),v=8;break;case 7:oIt(u,s,d,f,p,E,H.checkDefined(B)),v++;break}H.assert(v>pe)}}}function iIt({options:t},u,s){return u.type!==3||t.force?!0:s.fileNames.length===0||!!Lk(s).length||!Xj(s.options)}function Qtt(t,u,s){if(!t.projectPendingBuild.size||e9(u))return;const{options:d,projectPendingBuild:f}=t;for(let p=0;p{const z=H.checkDefined(t.filesWatched.get(v));H.assert(she(z)),z.modifiedTime=M,z.callbacks.forEach(j=>j(k,T,M))},d,f,p,E);t.filesWatched.set(v,{callbacks:[s],watcher:B,modifiedTime:b})}return{close:()=>{const B=H.checkDefined(t.filesWatched.get(v));H.assert(she(B)),B.callbacks.length===1?(t.filesWatched.delete(v),jm(B)):Vy(B.callbacks,s)}}}function C9e(t,u){if(!t.watch)return;let s=t.outputTimeStamps.get(u);return s||t.outputTimeStamps.set(u,s=new Map),s}function b9e(t,u,s,d,f){const p=f5(d),E=y9e(t,p,s),v=AH(t.host);E?(E.buildInfo=u,E.modifiedTime=v,f&2||(E.latestChangedDtsTime=v)):t.buildInfoCache.set(s,{path:gm(t,p),buildInfo:u,modifiedTime:v,latestChangedDtsTime:f&2?void 0:v})}function y9e(t,u,s){const d=gm(t,u),f=t.buildInfoCache.get(s);return(f==null?void 0:f.path)===d?f:void 0}function iit(t,u,s,d){const f=gm(t,u),p=t.buildInfoCache.get(s);if(p!==void 0&&p.path===f)return p.buildInfo||void 0;const E=t.readFileWithCache(u),v=E?_Q(u,E):void 0;return t.buildInfoCache.set(s,{path:f,buildInfo:v||!1,modifiedTime:d||K_}),v}function k9e(t,u,s,d){const f=tit(t,u);if(sJ&&(j=Se,J=Ne),M&&Y.add(gm(t,Se))}if(M){z||(z=V1e(M,b,v));for(const Se of z.roots)if(!Y.has(Se))return{type:10,buildInfoFile:b,inputFile:Se}}if(!b){const Se=gQ(u,!v.useCaseSensitiveFileNames()),Ne=C9e(t,s);for(const pe of Se){const fe=gm(t,pe);let xe=Ne==null?void 0:Ne.get(fe);if(xe||(xe=e7(t.host,pe),Ne==null||Ne.set(fe,xe)),xe===K_)return{type:4,missingOutputFileName:pe};if(xek9e(t,Se,k,B));if(ne)return ne;const ve=L(t.lastCachedPackageJsonLookups.get(s)||_t,([Se])=>k9e(t,Se,k,B));return ve||(ge&&se?{type:3,outOfDateOutputFileName:B,newerProjectName:ae}:{type:se?2:K?15:1,newestInputFileTime:J,newestInputFileName:j,oldestOutputFileName:B})}function rIt(t,u,s){return t.buildInfoCache.get(s).path===u.path}function F9e(t,u,s){if(u===void 0)return{type:0,reason:"File deleted mid-build"};const d=t.projectStatus.get(s);if(d!==void 0)return d;ul("SolutionBuilder::beforeUpToDateCheck");const f=uIt(t,u,s);return ul("SolutionBuilder::afterUpToDateCheck"),Tm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,f),f}function nit(t,u,s,d,f){if(u.options.noEmit)return;let p;const E=f5(u.options);if(E){f!=null&&f.has(gm(t,E))||(t.options.verbose&&Rh(t,d,u.options.configFilePath),t.host.setModifiedTime(E,p=AH(t.host)),y9e(t,E,s).modifiedTime=p),t.outputTimeStamps.delete(s);return}const{host:v}=t,b=gQ(u,!v.useCaseSensitiveFileNames()),B=C9e(t,s),k=B?new Set:void 0;if(!f||b.length!==f.size){let T=!!t.options.verbose;for(const M of b){const z=gm(t,M);f!=null&&f.has(z)||(T&&(T=!1,Rh(t,d,u.options.configFilePath)),v.setModifiedTime(M,p||(p=AH(t.host))),B&&(B.set(z,p),k.add(z)))}}B==null||B.forEach((T,M)=>{!(f!=null&&f.has(M))&&!k.has(M)&&B.delete(M)})}function aIt(t,u,s){if(!u.composite)return;const d=H.checkDefined(t.buildInfoCache.get(s));if(d.latestChangedDtsTime!==void 0)return d.latestChangedDtsTime||void 0;const f=d.buildInfo&&d.buildInfo.program&&d.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime($a(d.buildInfo.program.latestChangedDtsFile,lr(d.path))):void 0;return d.latestChangedDtsTime=f||!1,f}function uit(t,u,s){if(t.options.dry)return Rh(t,F.A_non_dry_build_would_update_timestamps_for_output_of_project_0,u.options.configFilePath);nit(t,u,s,F.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:h1e(u,!t.host.useCaseSensitiveFileNames())})}function oIt(t,u,s,d,f,p,E){if(!(E&124)&&f.options.composite)for(let v=d+1;vt.diagnostics.has(cE(t,B)))?b?2:1:0}function ait(t,u,s){ul("SolutionBuilder::beforeClean");const d=lIt(t,u,s);return ul("SolutionBuilder::afterClean"),Tm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),d}function lIt(t,u,s){const d=Gtt(t,u,s);if(!d)return 3;if(e9(d))return qQ(t,d.circularDiagnostics),4;const{options:f,host:p}=t,E=f.dry?[]:void 0;for(const v of d){const b=cE(t,v),B=t9(t,v,b);if(B===void 0){hit(t,b);continue}const k=gQ(B,!p.useCaseSensitiveFileNames());if(!k.length)continue;const T=new Set(B.fileNames.map(M=>gm(t,M)));for(const M of k)T.has(gm(t,M))||p.fileExists(M)&&(E?E.push(M):(p.deleteFile(M),A9e(t,b,0)))}return E&&Rh(t,F.A_non_dry_build_would_delete_the_following_files_Colon_0,E.map(v=>`\r - * ${v}`).join("")),0}function A9e(t,u,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(u),t.buildOrder=void 0),t.needsSummary=!0,$tt(t,u),Utt(t,u,s),Jtt(t)}function UQ(t,u,s){t.reportFileChangeDetected=!0,A9e(t,u,s),oit(t,250,!0)}function oit(t,u,s){const{hostWithWatch:d}=t;!d.setTimeout||!d.clearTimeout||(t.timerToBuildInvalidatedProject&&d.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=d.setTimeout(cIt,u,"timerToBuildInvalidatedProject",t,s))}function cIt(t,u,s){ul("SolutionBuilder::beforeBuild");const d=dIt(u,s);ul("SolutionBuilder::afterBuild"),Tm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),d&&fit(u,d)}function dIt(t,u){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),w9e(t,F.File_change_detected_Starting_incremental_compilation));let s=0;const d=$Q(t),f=D9e(t,d,!1);if(f)for(f.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const p=Qtt(t,d,!1);if(!p)break;if(p.kind!==2&&(u||s===5)){oit(t,100,!1);return}Xtt(t,p,d).done(),p.kind!==2&&s++}return _9e(t),d}function sit(t,u,s,d){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,lhe(t,u,()=>UQ(t,s,2),2e3,d==null?void 0:d.watchOptions,cd.ConfigFile,u))}function lit(t,u,s){vQ(u,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(d,f)=>lhe(t,d,()=>{var p;return(p=t.allWatchedExtendedConfigFiles.get(f))==null?void 0:p.projects.forEach(E=>UQ(t,E,2))},2e3,s==null?void 0:s.watchOptions,cd.ExtendedConfigFile),d=>gm(t,d))}function cit(t,u,s,d){t.watch&&_H(g9e(t.allWatchedWildcardDirectories,s),new Map(Object.entries(d.wildcardDirectories)),(f,p)=>t.watchDirectory(f,E=>{var v;DH({watchedDirPath:gm(t,f),fileOrDirectory:E,fileOrDirectoryPath:gm(t,E),configFileName:u,currentDirectory:t.compilerHost.getCurrentDirectory(),options:d.options,program:t.builderPrograms.get(s)||((v=Xzt(t,s))==null?void 0:v.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:b=>t.writeLog(b),toPath:b=>gm(t,b)})||UQ(t,s,1)},p,d==null?void 0:d.watchOptions,cd.WildcardDirectory,u))}function S9e(t,u,s,d){t.watch&&cB(g9e(t.allWatchedInputFiles,s),lg(d.fileNames,f=>gm(t,f)),{createNewValue:(f,p)=>lhe(t,p,()=>UQ(t,s,0),250,d==null?void 0:d.watchOptions,cd.SourceFile,u),onDeleteValue:fg})}function B9e(t,u,s,d){!t.watch||!t.lastCachedPackageJsonLookups||cB(g9e(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(f,p)=>lhe(t,f,()=>UQ(t,s,0),2e3,d==null?void 0:d.watchOptions,cd.PackageJson,u),onDeleteValue:fg})}function hIt(t,u){if(t.watchAllProjectsPending){ul("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of JQ(u)){const d=cE(t,s),f=t9(t,s,d);sit(t,s,d,f),lit(t,d,f),f&&(cit(t,s,d,f),S9e(t,s,d,f),B9e(t,s,d,f))}ul("SolutionBuilder::afterWatcherCreation"),Tm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function fIt(t){rf(t.allWatchedConfigFiles,fg),rf(t.allWatchedExtendedConfigFiles,jm),rf(t.allWatchedWildcardDirectories,u=>rf(u,jm)),rf(t.allWatchedInputFiles,u=>rf(u,fg)),rf(t.allWatchedPackageJsonFiles,u=>rf(u,fg))}function dit(t,u,s,d,f){const p=Qzt(t,u,s,d,f);return{build:(E,v,b,B)=>rit(p,E,v,b,B),clean:E=>ait(p,E),buildReferences:(E,v,b,B)=>rit(p,E,v,b,B,!0),cleanReferences:E=>ait(p,E,!0),getNextInvalidatedProject:E=>(qtt(p,E),D9e(p,$Q(p),!1)),getBuildOrder:()=>$Q(p),getUpToDateStatusOfProject:E=>{const v=AM(p,E),b=cE(p,v);return F9e(p,t9(p,v,b),b)},invalidateProject:(E,v)=>A9e(p,E,v||0),close:()=>fIt(p)}}function t1(t,u){return wN(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Rh(t,u,...s){t.host.reportSolutionBuilderStatus(cc(u,...s))}function w9e(t,u,...s){var d,f;(f=(d=t.hostWithWatch).onWatchStatusChange)==null||f.call(d,cc(u,...s),t.host.getNewLine(),t.baseCompilerOptions)}function qQ({host:t},u){u.forEach(s=>t.reportDiagnostic(s))}function SM(t,u,s){qQ(t,s),t.projectErrorsReported.set(u,!0),s.length&&t.diagnostics.set(u,s)}function hit(t,u){SM(t,u,[t.configFileCache.get(u)])}function fit(t,u){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:d}=t;let f=0,p=[];e9(u)?(mit(t,u.buildOrder),qQ(t,u.circularDiagnostics),s&&(f+=OQ(u.circularDiagnostics)),s&&(p=[...p,...jQ(u.circularDiagnostics)])):(u.forEach(E=>{const v=cE(t,E);t.projectErrorsReported.has(v)||qQ(t,d.get(v)||_t)}),s&&d.forEach(E=>f+=OQ(E)),s&&d.forEach(E=>[...p,...jQ(E)])),t.watch?w9e(t,U1e(f),f):t.host.reportErrorSummary&&t.host.reportErrorSummary(f,p)}function mit(t,u){t.options.verbose&&Rh(t,F.Projects_in_this_build_Colon_0,u.map(s=>`\r - * `+t1(t,s)).join(""))}function mIt(t,u,s){switch(s.type){case 6:return Rh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(t,u),t1(t,s.outOfDateOutputFileName),t1(t,s.newerInputFileName));case 7:return Rh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,t1(t,u),t1(t,s.outOfDateOutputFileName),t1(t,s.newerProjectName));case 4:return Rh(t,F.Project_0_is_out_of_date_because_output_file_1_does_not_exist,t1(t,u),t1(t,s.missingOutputFileName));case 5:return Rh(t,F.Project_0_is_out_of_date_because_there_was_error_reading_file_1,t1(t,u),t1(t,s.fileName));case 8:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,t1(t,u),t1(t,s.buildInfoFile));case 9:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,t1(t,u),t1(t,s.buildInfoFile));case 10:return Rh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,t1(t,u),t1(t,s.buildInfoFile),t1(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return Rh(t,F.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,t1(t,u),t1(t,s.newestInputFileName||""),t1(t,s.oldestOutputFileName||""));break;case 3:return Rh(t,F.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,t1(t,u),t1(t,s.newerProjectName));case 2:return Rh(t,F.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,t1(t,u));case 15:return Rh(t,F.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,t1(t,u));case 11:return Rh(t,F.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,t1(t,u),t1(t,s.upstreamProjectName));case 12:return Rh(t,s.upstreamProjectBlocked?F.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Project_0_can_t_be_built_because_its_dependency_1_has_errors,t1(t,u),t1(t,s.upstreamProjectName));case 0:return Rh(t,F.Failed_to_parse_file_0_Colon_1,t1(t,u),s.reason);case 14:return Rh(t,F.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,t1(t,u),s.version,_);case 17:return Rh(t,F.Project_0_is_being_forcibly_rebuilt,t1(t,u))}}function che(t,u,s){t.options.verbose&&mIt(t,u,s)}var pit,git,dhe,pIt=o({"src/compiler/tsbuildPublic.ts"(){Bo(),Wy(),pit=new Date(-864e13),git=new Date(864e13),dhe=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(dhe||{})}}),Bo=o({"src/compiler/_namespaces/ts.ts"(){y(),bwt(),ywt(),Pwt(),Iwt(),Rwt(),qwt(),Nqe(),uTt(),lTt(),cTt(),pTt(),vTt(),DLt(),xLt(),vLt(),CLt(),TLt(),LLt(),NLt(),PLt(),oNt(),sNt(),_Nt(),zNt(),lPt(),pPt(),gPt(),APt(),NPt(),VPt(),UPt(),oMt(),sMt(),EMt(),_Mt(),DMt(),FMt(),AMt(),SMt(),BMt(),wMt(),TMt(),LMt(),NMt(),PMt(),IMt(),RMt(),OMt(),jMt(),VMt(),KMt(),WMt(),GMt(),JMt(),$Mt(),UMt(),ezt(),azt(),gzt(),_zt(),Czt(),bzt(),yzt(),jzt(),Vzt(),Wzt(),$zt(),Uzt(),qzt(),pIt(),NAe(),Wy()}});function Eit(t){return c1.args.includes(t)}function _it(t){const u=c1.args.indexOf(t);return u>=0&&u{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(mhe||(mhe={})),P9e=` - `}}),EIt=o({"src/jsTyping/types.ts"(){}}),QQ=o({"src/jsTyping/_namespaces/ts.server.ts"(){gIt(),EIt()}});function xit(t,u){return new Lp(uo(u,`ts${g}`)||uo(u,"latest")).compareTo(t.version)<=0}function vit(t){return O9e.has(t)?"node":t}function _It(t,u){const s=JV(u,d=>t.readFile(d));return new Map(Object.entries(s.config))}function DIt(t,u){var s;const d=JV(u,f=>t.readFile(f));if((s=d.config)!=null&&s.simpleMap)return new Map(Object.entries(d.config.simpleMap))}function xIt(t,u,s,d,f,p,E,v,b,B){if(!E||!E.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const k=new Map;s=qi(s,ge=>{const ae=$o(ge);if(z2(ae))return ae});const T=[];E.include&&Y(E.include,"Explicitly included types");const M=E.exclude||[];if(!B.types){const ge=new Set(s.map(lr));ge.add(d),ge.forEach(ae=>{oe(ae,"bower.json","bower_components",T),oe(ae,"package.json","node_modules",T)})}if(E.disableFilenameBasedTypeAcquisition||se(s),v){const ge=ri(v.map(vit),XA,dh);Y(ge,"Inferred typings from unresolved imports")}for(const ge of M)k.delete(ge)&&u&&u(`Typing for ${ge} is in exclude list, will be ignored.`);p.forEach((ge,ae)=>{const Ce=b.get(ae);k.get(ae)===!1&&Ce!==void 0&&xit(ge,Ce)&&k.set(ae,ge.typingLocation)});const z=[],j=[];k.forEach((ge,ae)=>{ge?j.push(ge):z.push(ae)});const J={cachedTypingPaths:j,newTypingNames:z,filesToWatch:T};return u&&u(`Finished typings discovery:${nw(J)}`),J;function K(ge){k.has(ge)||k.set(ge,!1)}function Y(ge,ae){u&&u(`${ae}: ${JSON.stringify(ge)}`),L(ge,K)}function oe(ge,ae,Ce,ne){const ve=cr(ge,ae);let Se,Ne;t.fileExists(ve)&&(ne.push(ve),Se=JV(ve,Be=>t.readFile(Be)).config,Ne=ju([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],Ns),Y(Ne,`Typing names in '${ve}' dependencies`));const pe=cr(ge,Ce);if(ne.push(pe),!t.directoryExists(pe))return;const fe=[],xe=Ne?Ne.map(Be=>cr(pe,Be,ae)):t.readDirectory(pe,[".json"],void 0,void 0,3).filter(Be=>{if(Ac(Be)!==ae)return!1;const Ge=yd($o(Be)),Ae=Ge[Ge.length-3][0]==="@";return Ae&&$g(Ge[Ge.length-4])===Ce||!Ae&&$g(Ge[Ge.length-3])===Ce});u&&u(`Searching for typing names in ${pe}; all files: ${JSON.stringify(xe)}`);for(const Be of xe){const Ge=$o(Be),De=JV(Ge,Je=>t.readFile(Je)).config;if(!De.name)continue;const Ke=De.types||De.typings;if(Ke){const Je=$a(Ke,lr(Ge));t.fileExists(Je)?(u&&u(` Package '${De.name}' provides its own types.`),k.set(De.name,Je)):u&&u(` Package '${De.name}' provides its own types but they are missing.`)}else fe.push(De.name)}Y(fe," Found package names")}function se(ge){const ae=qi(ge,ne=>{if(!z2(ne))return;const ve=_h($g(Ac(ne))),Se=soe(ve);return f.get(Se)});ae.length&&Y(ae,"Inferred typings from file names"),Oe(ge,ne=>Ml(ne,".jsx"))&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),K("react"))}}function vIt(t){return M9e(t,!0)}function M9e(t,u){if(!t)return 1;if(t.length>V9e)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(u){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const d=M9e(s[1],!1);if(d!==0)return{name:s[1],isScopeName:!0,result:d};const f=M9e(s[2],!1);return f!==0?{name:s[2],isScopeName:!1,result:f}:0}}return encodeURIComponent(t)!==t?5:0}function CIt(t,u){return typeof t=="object"?Cit(u,t.result,t.name,t.isScopeName):Cit(u,t,u,!1)}function Cit(t,u,s,d){const f=d?"Scope":"Package";switch(u){case 1:return`'${t}':: ${f} name '${s}' cannot be empty`;case 2:return`'${t}':: ${f} name '${s}' should be less than ${V9e} characters`;case 3:return`'${t}':: ${f} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${f} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${f} name '${s}' contains non URI safe characters`;case 0:return H.fail();default:H.assertNever(u)}}var z9e,I9e,R9e,O9e,j9e,V9e,bIt=o({"src/jsTyping/jsTyping.ts"(){BH(),QQ(),z9e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],I9e=z9e.map(t=>`node:${t}`),R9e=[...z9e,...I9e],O9e=new Set(R9e),j9e=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(j9e||{}),V9e=214}}),o3={};h(o3,{NameValidationResult:()=>j9e,discoverTypings:()=>xIt,isTypingUpToDate:()=>xit,loadSafeList:()=>_It,loadTypesMap:()=>DIt,nodeCoreModuleList:()=>R9e,nodeCoreModules:()=>O9e,nonRelativeModuleNameForTypingCache:()=>vit,prefixedNodeCoreModuleList:()=>I9e,renderPackageNameValidationFailure:()=>CIt,validatePackageName:()=>vIt});var yIt=o({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){bIt()}}),BH=o({"src/jsTyping/_namespaces/ts.ts"(){Bo(),yIt(),QQ()}});function XQ(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` -`,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 eX,phe,ghe,Ehe,d4,_he,Dhe,xhe,vhe,Che,bhe,yhe,H9e,wH,khe,Fhe,Ahe,She,Bhe,whe,The,Lhe,Nhe,kIt=o({"src/services/types.ts"(){(t=>{class u{constructor(f){this.text=f}getText(f,p){return f===0&&p===this.text.length?this.text:this.text.substring(f,p)}getLength(){return this.text.length}getChangeRange(){}}function s(d){return new u(d)}t.fromString=s})(eX||(eX={})),phe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(phe||{}),ghe=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(ghe||{}),Ehe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(Ehe||{}),d4={},_he=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(_he||{}),Dhe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(Dhe||{}),xhe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(xhe||{}),vhe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(vhe||{}),Che=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(Che||{}),bhe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(bhe||{}),yhe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(yhe||{}),H9e=XQ(` -`),wH=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(wH||{}),khe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(khe||{}),Fhe=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(Fhe||{}),Ahe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(Ahe||{}),She=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(She||{}),Bhe=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(Bhe||{}),whe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(whe||{}),The=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(The||{}),Lhe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(Lhe||{}),Nhe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(Nhe||{})}});function TH(t){switch(t.kind){case 260:return Qn(t)&&Ose(t)?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 353:return t.name===void 0?3:2;case 306:case 263:return 3;case 267:return N1(t)||oD(t)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function Pk(t){t=Jhe(t);const u=t.parent;return t.kind===312?1:tc(u)||eh(u)||r_(u)||bf(u)||n_(u)||E1(u)&&t===u.name?7:tX(t)?FIt(t):X3(t)?TH(u):sm(t)&&Tn(t,dg(QP,o7,Rv))?7:wIt(t)?2:AIt(t)?4:Bl(u)?(H.assert(_g(u.parent)),2):Mv(u)?3:1}function FIt(t){const u=t.kind===166?t:vf(t.parent)&&t.parent.right===t?t.parent:void 0;return u&&u.parent.kind===271?7:4}function tX(t){for(;t.parent.kind===166;)t=t.parent;return U8(t.parent)&&t.parent.moduleReference===t}function AIt(t){return SIt(t)||BIt(t)}function SIt(t){let u=t,s=!0;if(u.parent.kind===166){for(;u.parent&&u.parent.kind===166;)u=u.parent;s=u.right===t}return u.parent.kind===183&&!s}function BIt(t){let u=t,s=!0;if(u.parent.kind===211){for(;u.parent&&u.parent.kind===211;)u=u.parent;s=u.name===t}if(!s&&u.parent.kind===233&&u.parent.parent.kind===298){const d=u.parent.parent.parent;return d.kind===263&&u.parent.parent.token===119||d.kind===264&&u.parent.parent.token===96}return!1}function wIt(t){switch(gP(t)&&(t=t.parent),t.kind){case 110:return!Z_(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return q_(t.parent)}return!1}function Phe(t,u=!1,s=!1){return LH(t,Mo,zhe,u,s)}function wM(t,u=!1,s=!1){return LH(t,j2,zhe,u,s)}function Mhe(t,u=!1,s=!1){return LH(t,$E,zhe,u,s)}function K9e(t,u=!1,s=!1){return LH(t,Dk,TIt,u,s)}function W9e(t,u=!1,s=!1){return LH(t,g1,zhe,u,s)}function G9e(t,u=!1,s=!1){return LH(t,zh,LIt,u,s)}function zhe(t){return t.expression}function TIt(t){return t.tag}function LIt(t){return t.tagName}function LH(t,u,s,d,f){let p=d?J9e(t):iX(t);return f&&(p=Dc(p)),!!p&&!!p.parent&&u(p.parent)&&s(p.parent)===p}function iX(t){return uw(t)?t.parent:t}function J9e(t){return uw(t)||jhe(t)?t.parent:t}function nX(t,u){for(;t;){if(t.kind===256&&t.label.escapedText===u)return t.label;t=t.parent}}function NH(t,u){return Iu(t.expression)?t.expression.name.text===u:!1}function PH(t){var u;return at(t)&&((u=ur(t.parent,ON))==null?void 0:u.label)===t}function Ihe(t){var u;return at(t)&&((u=ur(t.parent,V2))==null?void 0:u.label)===t}function Rhe(t){return Ihe(t)||PH(t)}function Ohe(t){var u;return((u=ur(t.parent,I8))==null?void 0:u.tagName)===t}function $9e(t){var u;return((u=ur(t.parent,vf))==null?void 0:u.right)===t}function uw(t){var u;return((u=ur(t.parent,Iu))==null?void 0:u.name)===t}function jhe(t){var u;return((u=ur(t.parent,U0))==null?void 0:u.argumentExpression)===t}function Vhe(t){var u;return((u=ur(t.parent,_c))==null?void 0:u.name)===t}function Hhe(t){var u;return at(t)&&((u=ur(t.parent,Co))==null?void 0:u.name)===t}function uX(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Za(t.parent)===t;case 212:return t.parent.argumentExpression===t;case 167:return!0;case 201:return t.parent.parent.kind===199;default:return!1}}function U9e(t){return bv(t.parent.parent)&&XN(t.parent.parent)===t}function Mk(t){for(G4(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return t}}}function tb(t){switch(t.kind){case 312:return wc(t)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return u(t);case 208:return u(XE(t));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:s}=t;return Co(s)?"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 Yu(t,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const d=Xl(t),{right:f}=t;switch(d){case 7:case 8:case 9:case 0:return"";case 1:case 2:const E=tb(f);return E===""?"const":E;case 3:return A0(f)?"method":"property";case 4:return"property";case 5:return A0(f)?"method":"property";case 6:return"local class";default:return""}case 80:return n_(t.parent)?"alias":"";case 277:const p=tb(t.expression);return p===""?"const":p;default:return""}function u(s){return K8(s)?"const":rq(s)?"let":"var"}}function rw(t){switch(t.kind){case 110:return!0;case 80:return ule(t)&&t.parent.kind===169;default:return!1}}function tp(t,u){const s=$3(u),d=u.getLineAndCharacterOfPosition(t).line;return s[d]}function Vm(t,u){return Khe(t.pos,t.end,u)}function q9e(t,u){return zH(t,u.pos)&&zH(t,u.end)}function MH(t,u){return t.pos<=u&&u<=t.end}function zH(t,u){return t.pos=s.end}function IH(t,u,s){return t.pos<=u&&t.end>=s}function TM(t,u,s){return aX(t.pos,t.end,u,s)}function rX(t,u,s,d){return aX(t.getStart(u),t.end,s,d)}function aX(t,u,s,d){const f=Math.max(t,s),p=Math.min(u,d);return fd.kind===u)}function oX(t){const u=Le(t.parent.getChildren(),s=>MB(s)&&Vm(s,t));return H.assert(!u||kt(u.getChildren(),t)),u}function bit(t){return t.kind===90}function NIt(t){return t.kind===86}function PIt(t){return t.kind===100}function MIt(t){if(mh(t))return t.name;if(Wc(t)){const u=t.modifiers&&Le(t.modifiers,bit);if(u)return u}if(Xd(t)){const u=Le(t.getChildren(),NIt);if(u)return u}}function zIt(t){if(mh(t))return t.name;if(ed(t)){const u=Le(t.modifiers,bit);if(u)return u}if(A0(t)){const u=Le(t.getChildren(),PIt);if(u)return u}}function IIt(t){let u;return Tn(t,s=>(Xr(s)&&(u=s),!vf(s.parent)&&!Xr(s.parent)&&!Zy(s.parent))),u}function sX(t,u){if(t.flags&16777216)return;const s=SX(t,u);if(s)return s;const d=IIt(t);return d&&u.getTypeAtLocation(d)}function RIt(t,u){if(!u)switch(t.kind){case 263:case 231:return MIt(t);case 262:case 218:return zIt(t);case 176:return t}if(mh(t))return t.name}function yit(t,u){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(uD(t.importClause.namedBindings)){const s=Aa(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(Jx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!u)return t.moduleSpecifier}function kit(t,u){if(t.exportClause){if(ep(t.exportClause))return Aa(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(u_(t.exportClause))return t.exportClause.name}if(!u)return t.moduleSpecifier}function OIt(t){if(t.types.length===1)return t.types[0].expression}function Fit(t,u){const{parent:s}=t;if(Qo(t)&&(u||t.kind!==90)?Hp(s)&&kt(s.modifiers,t):t.kind===86?Wc(s)||Xd(t):t.kind===100?ed(s)||A0(t):t.kind===120?xh(s):t.kind===94?Iv(s):t.kind===156?jp(s):t.kind===145||t.kind===144?_c(s):t.kind===102?E1(s):t.kind===139?zm(s):t.kind===153&&jf(s)){const d=RIt(s,u);if(d)return d}if((t.kind===115||t.kind===87||t.kind===121)&&Ad(s)&&s.declarations.length===1){const d=s.declarations[0];if(at(d.name))return d.name}if(t.kind===156){if(n_(s)&&s.isTypeOnly){const d=yit(s.parent,u);if(d)return d}if(Gc(s)&&s.isTypeOnly){const d=kit(s,u);if(d)return d}}if(t.kind===130){if(bf(s)&&s.propertyName||eh(s)&&s.propertyName||Jx(s)||u_(s))return s.name;if(Gc(s)&&s.exportClause&&u_(s.exportClause))return s.exportClause.name}if(t.kind===102&&Sd(s)){const d=yit(s,u);if(d)return d}if(t.kind===95){if(Gc(s)){const d=kit(s,u);if(d)return d}if(tc(s))return Dc(s.expression)}if(t.kind===149&&r_(s))return s.expression;if(t.kind===161&&(Sd(s)||Gc(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&mm(s)&&s.token===t.kind){const d=OIt(s);if(d)return d}if(t.kind===96){if(Bl(s)&&s.constraint&&X4(s.constraint))return s.constraint.typeName;if(FB(s)&&X4(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&P7(s))return s.typeParameter.name;if(t.kind===103&&Bl(s)&&JP(s.parent))return s.name;if(t.kind===143&&z7(s)&&s.operator===143&&X4(s.type))return s.type.typeName;if(t.kind===148&&z7(s)&&s.operator===148&&oY(s.type)&&X4(s.type.elementType))return s.type.elementType.typeName;if(!u){if((t.kind===105&&j2(s)||t.kind===116&&R7(s)||t.kind===114&&AB(s)||t.kind===135&&Gx(s)||t.kind===127&&cY(s)||t.kind===91&&oFe(s))&&s.expression)return Dc(s.expression);if((t.kind===103||t.kind===104)&&Xn(s)&&s.operatorToken===t)return Dc(s.right);if(t.kind===130&&AV(s)&&X4(s.type))return s.type.typeName;if(t.kind===103&&hY(s)||t.kind===165&&SV(s))return Dc(s.expression)}return t}function Jhe(t){return Fit(t,!1)}function lX(t){return Fit(t,!0)}function af(t,u){return LM(t,u,s=>Xg(s)||uf(s.kind)||ea(s))}function LM(t,u,s){return Ait(t,u,!1,s,!1)}function Ca(t,u){return Ait(t,u,!0,void 0,!1)}function Ait(t,u,s,d,f){let p=t,E;e:for(;;){const b=p.getChildren(t),B=va(b,u,(k,T)=>T,(k,T)=>{const M=b[k].getEnd();if(Mu?1:v(b[k],z,M)?b[k-1]&&v(b[k-1])?1:0:d&&z===u&&b[k-1]&&b[k-1].getEnd()===u&&v(b[k-1])?1:-1});if(E)return E;if(B>=0&&b[B]){p=b[B];continue e}return p}function v(b,B,k){if(k??(k=b.getEnd()),ku))return!1;if(us.getStart(t)&&u(p.pos<=t.pos&&p.end>t.end||p.pos===t.end)&&uSe(p,s)?d(p):void 0)}}function td(t,u,s,d){const f=p(s||u);return H.assert(!(f&&dX(f))),f;function p(E){if(Sit(E)&&E.kind!==1)return E;const v=E.getChildren(u),b=va(v,t,(k,T)=>T,(k,T)=>t=v[k-1].end?0:1:-1);if(b>=0&&v[b]){const k=v[b];if(t=t||!uSe(k,u)||dX(k)){const z=X9e(v,b,u,E.kind);return z?!d&&GU(z)&&z.getChildren(u).length?p(z):Q9e(z,u):void 0}else return p(k)}H.assert(s!==void 0||E.kind===312||E.kind===1||GU(E));const B=X9e(v,v.length,u,E.kind);return B&&Q9e(B,u)}}function Sit(t){return u7(t)&&!dX(t)}function Q9e(t,u){if(Sit(t))return t;const s=t.getChildren(u);if(s.length===0)return t;const d=X9e(s,s.length,u,t.kind);return d&&Q9e(d,u)}function X9e(t,u,s,d){for(let f=u-1;f>=0;f--){const p=t[f];if(dX(p))f===0&&(d===12||d===285)&&H.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(uSe(t[f],s))return t[f]}}function zk(t,u,s=td(u,t)){if(s&&Use(s)){const d=s.getStart(t),f=s.getEnd();if(ds.getStart(t)}function tSe(t,u){const s=Ca(t,u);return!!(w7(s)||s.kind===19&&YP(s.parent)&&r3(s.parent.parent)||s.kind===30&&zh(s.parent)&&r3(s.parent.parent))}function hX(t,u){function s(d){for(;d;)if(d.kind>=285&&d.kind<=294||d.kind===12||d.kind===30||d.kind===32||d.kind===80||d.kind===20||d.kind===19||d.kind===44)d=d.parent;else if(d.kind===284){if(u>d.getStart(t))return!0;d=d.parent}else return!1;return!1}return s(Ca(t,u))}function fX(t,u,s){const d=Uo(t.kind),f=Uo(u),p=t.getFullStart(),E=s.text.lastIndexOf(f,p);if(E===-1)return;if(s.text.lastIndexOf(d,p-1)!!p.typeParameters&&p.typeParameters.length>=u)}function qhe(t,u){if(u.text.lastIndexOf("<",t?t.pos:u.text.length)===-1)return;let s=t,d=0,f=0;for(;s;){switch(s.kind){case 30:if(s=td(s.getFullStart(),u),s&&s.kind===29&&(s=td(s.getFullStart(),u)),!s||!at(s))return;if(!d)return X3(s)?void 0:{called:s,nTypeArguments:f};d--;break;case 50:d=3;break;case 49:d=2;break;case 32:d++;break;case 20:if(s=fX(s,19,u),!s)return;break;case 22:if(s=fX(s,21,u),!s)return;break;case 24:if(s=fX(s,23,u),!s)return;break;case 28:f++;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(Xr(s))break;return}s=td(s.getFullStart(),u)}}function m5(t,u,s){return dd.getRangeOfEnclosingComment(t,u,void 0,s)}function nSe(t,u){const s=Ca(t,u);return!!Tn(s,Vp)}function uSe(t,u){return t.kind===1?!!t.jsDoc:t.getWidth(u)!==0}function NM(t,u=0){const s=[],d=Q1(t)?Pse(t)&~u:0;return d&2&&s.push("private"),d&4&&s.push("protected"),d&1&&s.push("public"),(d&256||zl(t))&&s.push("static"),d&64&&s.push("abstract"),d&32&&s.push("export"),d&65536&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function rSe(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(Co(t)||t.kind===263||t.kind===264)return t.typeParameters}function mX(t){return t===2||t===3}function Zhe(t){return!!(t===11||t===14||Bx(t))}function Bit(t,u,s){return!!(u.flags&4)&&t.isEmptyAnonymousObjectType(s)}function aSe(t){if(!t.isIntersection())return!1;const{types:u,checker:s}=t;return u.length===2&&(Bit(s,u[0],u[1])||Bit(s,u[1],u[0]))}function jH(t,u,s){return Bx(t.kind)&&t.getStart(s){const s=$s(u);return!t[s]&&(t[s]=!0)}}function aw(t){return t.getText(0,t.getLength())}function KH(t,u){let s="";for(let d=0;d!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!(u.externalModuleIndicator||u.commonJsModuleIndicator))}function cSe(t){return t.getSourceFiles().some(u=>!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!u.externalModuleIndicator)}function ufe(t){return!!t.module||Os(t)>=2||!!t.noEmit}function Ik(t,u){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>u.getCurrentDirectory(),readFile:Lo(u,u.readFile),useCaseSensitiveFileNames:Lo(u,u.useCaseSensitiveFileNames),getSymlinkCache:Lo(u,u.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:Lo(u,u.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Lo(u,u.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:Lo(u,u.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function rfe(t,u){return{...Ik(t,u),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function _X(t){return t===2||t>=3&&t<=99||t===100}function dSe(t,u,s,d){return t||u&&u.length?g5(t,u,s,d):void 0}function g5(t,u,s,d,f){return q.createImportDeclaration(void 0,t||u?q.createImportClause(!!f,t,u&&u.length?q.createNamedImports(u):void 0):void 0,typeof s=="string"?n9(s,d):s,void 0)}function n9(t,u){return q.createStringLiteral(t,u===0)}function afe(t,u){return Cq(t,u)?1:0}function Hm(t,u){if(u.quotePreference&&u.quotePreference!=="auto")return u.quotePreference==="single"?0:1;{const s=t.imports&&Le(t.imports,d=>us(d)&&!sl(d.parent));return s?afe(s,t):1}}function ofe(t){switch(t){case 0:return"'";case 1:return'"';default:return H.assertNever(t)}}function DX(t){const u=xX(t);return u===void 0?void 0:Qr(u)}function xX(t){return t.escapedName!=="default"?t.escapedName:G(t.declarations,u=>{const s=Za(u);return s&&s.kind===80?s.escapedText:void 0})}function vX(t){return t0(t)&&(r_(t.parent)||Sd(t.parent)||xf(t.parent,!1)&&t.parent.arguments[0]===t||dm(t.parent)&&t.parent.arguments[0]===t)}function GH(t){return js(t)&&Rp(t.parent)&&at(t.name)&&!t.propertyName}function CX(t,u){const s=t.getTypeAtLocation(u.parent);return s&&t.getPropertyOfType(s,u.name.text)}function JH(t,u,s){if(t)for(;t.parent;){if(la(t.parent)||!jIt(s,t.parent,u))return t;t=t.parent}}function jIt(t,u,s){return Nse(t,u.getStart(s))&&u.getEnd()<=Ec(t)}function ow(t,u){return Hp(t)?Le(t.modifiers,s=>s.kind===u):void 0}function MM(t,u,s,d,f){const E=(Ha(s)?s[0]:s).kind===243?L0e:tk,v=ti(u.statements,E);let b=Ha(s)?Gp.detectImportDeclarationSorting(s,f):3;const B=Gp.getOrganizeImportsComparer(f,b===2),k=Ha(s)?oc(s,(T,M)=>Gp.compareImportsOrRequireStatements(T,M,B)):[s];if(!v.length)t.insertNodesAtTopOfFile(u,k,d);else if(v&&(b=Gp.detectImportDeclarationSorting(v,f))){const T=Gp.getOrganizeImportsComparer(f,b===2);for(const M of k){const z=Gp.getImportDeclarationInsertionIndex(v,M,T);if(z===0){const j=v[0]===u.statements[0]?{leadingTriviaOption:iu.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(u,v[0],M,!1,j)}else{const j=v[z-1];t.insertNodeAfter(u,j,M)}}}else{const T=qu(v);T?t.insertNodesAfter(u,T,k):t.insertNodesAtTopOfFile(u,k,d)}}function sfe(t,u){return H.assert(t.isTypeOnly),Po(t.getChildAt(0,u),ife)}function sw(t,u){return!!t&&!!u&&t.start===u.start&&t.length===u.length}function bX(t,u){return t.fileName===u.fileName&&sw(t.textSpan,u.textSpan)}function lfe(t,u){if(t){for(let s=0;sio(s)?!0:js(s)||Rp(s)||_k(s)?!1:"quit")}function VIt(){const t=lV*10;let u,s,d,f;k();const p=T=>v(T,17);return{displayParts:()=>{const T=u.length&&u[u.length-1].text;return f>t&&T&&T!=="..."&&(U3(T.charCodeAt(T.length-1))||u.push(yf(" ",16)),u.push(yf("...",15))),u},writeKeyword:T=>v(T,5),writeOperator:T=>v(T,12),writePunctuation:T=>v(T,15),writeTrailingSemicolon:T=>v(T,15),writeSpace:T=>v(T,16),writeStringLiteral:T=>v(T,8),writeParameter:T=>v(T,13),writeProperty:T=>v(T,14),writeLiteral:T=>v(T,8),writeSymbol:b,writeLine:B,write:p,writeComment:p,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:ho,getIndent:()=>d,increaseIndent:()=>{d++},decreaseIndent:()=>{d--},clear:k};function E(){if(!(f>t)&&s){const T=Nq(d);T&&(f+=T.length,u.push(yf(T,16))),s=!1}}function v(T,M){f>t||(E(),f+=T.length,u.push(yf(T,M)))}function b(T,M){f>t||(E(),f+=T.length,u.push(fSe(T,M)))}function B(){f>t||(f+=1,u.push(lw()),s=!0)}function k(){u=[],s=!0,d=0,f=0}}function fSe(t,u){return yf(t,s(u));function s(d){const f=d.flags;return f&3?dfe(d)?13:9:f&4||f&32768||f&65536?14:f&8?19:f&16?20:f&32?1:f&64?4:f&384?2:f&1536?11:f&8192?10:f&262144?18:f&524288||f&2097152?0:17}}function yf(t,u){return{text:t,kind:wH[u]}}function $l(){return yf(" ",16)}function Hf(t){return yf(Uo(t),5)}function ih(t){return yf(Uo(t),15)}function IM(t){return yf(Uo(t),12)}function mSe(t){return yf(t,13)}function pSe(t){return yf(t,14)}function hfe(t){const u=f2(t);return u===void 0?Km(t):Hf(u)}function Km(t){return yf(t,17)}function gSe(t){return yf(t,0)}function ESe(t){return yf(t,18)}function kX(t){return yf(t,24)}function _Se(t,u){return{text:t,kind:wH[23],target:{fileName:zn(u).fileName,textSpan:of(u)}}}function ffe(t){return yf(t,22)}function DSe(t,u){var s;const d=pFe(t)?"link":gFe(t)?"linkcode":"linkplain",f=[ffe(`{@${d} `)];if(!t.name)t.text&&f.push(kX(t.text));else{const p=u==null?void 0:u.getSymbolAtLocation(t.name),E=KIt(t.text),v=Hc(t.name)+t.text.slice(0,E),b=HIt(t.text.slice(E)),B=(p==null?void 0:p.valueDeclaration)||((s=p==null?void 0:p.declarations)==null?void 0:s[0]);B?(f.push(_Se(v,B)),b&&f.push(kX(b))):f.push(kX(v+(E?"":" ")+b))}return f.push(ffe("}")),f}function HIt(t){let u=0;if(t.charCodeAt(u++)===124){for(;u"&&s--,d++,!s)return d}return 0}function E5(t,u){var s;return(u==null?void 0:u.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||Oit}function lw(){return yf(` -`,6)}function Zx(t){try{return t(Lfe),Lfe.displayParts()}finally{Lfe.clear()}}function $H(t,u,s,d=0){return Zx(f=>{t.writeType(u,s,d|1024|16384,f)})}function RM(t,u,s,d,f=0){return Zx(p=>{t.writeSymbol(u,s,d,f|8,p)})}function mfe(t,u,s,d=0){return d|=25632,Zx(f=>{t.writeSignature(u,s,d,void 0,f)})}function Tit(t,u){const s=u.getSourceFile();return Zx(d=>{EH().writeNode(4,t,s,d)})}function xSe(t){return!!t.parent&&r7(t.parent)&&t.parent.propertyName===t}function pfe(t,u){return oZ(t,u.getScriptKind&&u.getScriptKind(t))}function vSe(t,u){let s=t;for(;WIt(s)||qE(s)&&s.links.target;)qE(s)&&s.links.target?s=s.links.target:s=X1(s,u);return s}function WIt(t){return(t.flags&2097152)!==0}function CSe(t,u){return Zo(X1(t,u))}function bSe(t,u){for(;U3(t.charCodeAt(u));)u+=1;return u}function FX(t,u){for(;u>-1&&qg(t.charCodeAt(u));)u-=1;return u+1}function ll(t,u=!0){const s=t&&Lit(t);return s&&!u&&Kf(s),s}function UH(t,u,s){let d=s(t);return d?su(d,t):d=Lit(t,s),d&&!u&&Kf(d),d}function Lit(t,u){const s=u?p=>UH(p,!0,u):ll,f=rn(t,s,Dg,u?p=>p&&gfe(p,!0,u):p=>p&&nb(p),s);if(f===t){const p=us(t)?su(q.createStringLiteralFromNode(t),t):Of(t)?su(q.createNumericLiteral(t.text,t.numericLiteralFlags),t):q.cloneNode(t);return Pt(p,t)}return f.parent=void 0,f}function nb(t,u=!0){if(t){const s=q.createNodeArray(t.map(d=>ll(d,u)),t.hasTrailingComma);return Pt(s,t),s}return t}function gfe(t,u,s){return q.createNodeArray(t.map(d=>UH(d,u,s)),t.hasTrailingComma)}function Kf(t){Efe(t),ySe(t)}function Efe(t){kSe(t,1024,JIt)}function ySe(t){kSe(t,2048,Ele)}function Rk(t,u){const s=t.getSourceFile(),d=s.text;GIt(t,d)?cw(t,u,s):ZH(t,u,s),OM(t,u,s)}function GIt(t,u){const s=t.getFullStart(),d=t.getStart();for(let f=s;fu)}function Ok(t,u){let s=t;for(let d=1;!QU(u,s);d++)s=`${t}_${d}`;return s}function qH(t,u,s,d){let f=0,p=-1;for(const{fileName:E,textChanges:v}of t){H.assert(E===u);for(const b of v){const{span:B,newText:k}=b,T=$It(k,Av(s));if(T!==-1&&(p=B.start+f+T,!d))return p;f+=k.length-B.length}}return H.assert(d),H.assert(p>=0),p}function cw(t,u,s,d,f){NO(s.text,t.pos,FSe(u,s,d,f,OP))}function OM(t,u,s,d,f){PO(s.text,t.end,FSe(u,s,d,f,AZ))}function ZH(t,u,s,d,f){PO(s.text,t.pos,FSe(u,s,d,f,OP))}function FSe(t,u,s,d,f){return(p,E,v,b)=>{v===3?(p+=2,E-=2):p+=2,f(t,s||v,u.text.slice(p,E),d!==void 0?d:b)}}function $It(t,u){if(Pa(t,u))return 0;let s=t.indexOf(" "+u);return s===-1&&(s=t.indexOf("."+u)),s===-1&&(s=t.indexOf('"'+u)),s===-1?-1:s+1}function AX(t){return Xn(t)&&t.operatorToken.kind===28||ys(t)||(AV(t)||sFe(t))&&ys(t.expression)}function SX(t,u,s){const d=i5(t.parent);switch(d.kind){case 214:return u.getContextualType(d,s);case 226:{const{left:f,operatorToken:p,right:E}=d;return BX(p.kind)?u.getTypeAtLocation(t===E?f:E):u.getContextualType(t,s)}case 296:return Dfe(d,u);default:return u.getContextualType(t,s)}}function jM(t,u,s){const d=Hm(t,u),f=JSON.stringify(s);return d===0?`'${$4(f).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:f}function BX(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function ASe(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function _fe(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function Dfe(t,u){return u.getTypeAtLocation(t.parent.parent.expression)}function VM(t,u,s,d){const f=s.getTypeChecker();let p=!0;const E=()=>p=!1,v=f.typeToTypeNode(t,u,1,{trackSymbol:(b,B,k)=>(p=p&&f.isSymbolAccessible(b,B,k,!1).accessibility===0,!p),reportInaccessibleThisError:E,reportPrivateInBaseOfClassExpression:E,reportInaccessibleUniqueSymbolError:E,moduleResolverHost:rfe(s,d)});return p?v:void 0}function SSe(t){return t===179||t===180||t===181||t===171||t===173}function Nit(t){return t===262||t===176||t===174||t===177||t===178}function Pit(t){return t===267}function wX(t){return t===243||t===244||t===246||t===251||t===252||t===253||t===257||t===259||t===172||t===265||t===272||t===271||t===278||t===270||t===277}function UIt(t,u){const s=t.getLastToken(u);if(s&&s.kind===27)return!1;if(SSe(t.kind)){if(s&&s.kind===28)return!1}else if(Pit(t.kind)){const v=Cr(t.getChildren(u));if(v&&rE(v))return!1}else if(Nit(t.kind)){const v=Cr(t.getChildren(u));if(v&&k2(v))return!1}else if(!wX(t.kind))return!1;if(t.kind===246)return!0;const d=Tn(t,v=>!v.parent),f=ib(t,d,u);if(!f||f.kind===20)return!0;const p=u.getLineAndCharacterOfPosition(t.getEnd()).line,E=u.getLineAndCharacterOfPosition(f.getStart(u)).line;return p!==E}function TX(t,u,s){const d=Tn(u,f=>f.end!==t?"quit":Nfe(f.kind));return!!d&&UIt(d,s)}function YH(t){let u=0,s=0;const d=5;return ao(t,function f(p){if(wX(p.kind)){const E=p.getLastToken(t);(E==null?void 0:E.kind)===27?u++:s++}else if(SSe(p.kind)){const E=p.getLastToken(t);if((E==null?void 0:E.kind)===27)u++;else if(E&&E.kind!==28){const v=s0(t,E.getStart(t)).line,b=s0(t,QE(t,E.end).start).line;v!==b&&s++}}return u+s>=d?!0:ao(p,f)}),u===0&&s<=1?!0:u/s>1/d}function LX(t,u){return MX(t,t.getDirectories,u)||[]}function xfe(t,u,s,d,f){return MX(t,t.readDirectory,u,s,d,f)||_t}function QH(t,u){return MX(t,t.fileExists,u)}function NX(t,u){return PX(()=>hg(u,t))||!1}function PX(t){try{return t()}catch{return}}function MX(t,u,...s){return PX(()=>u&&u.apply(t,s))}function vfe(t,u,s){const d=[];return Ug(t,f=>{if(f===s)return!0;const p=cr(f,"package.json");QH(u,p)&&d.push(p)}),d}function BSe(t,u){let s;return Ug(t,d=>{if(d==="node_modules"||(s=N7e(d,f=>QH(u,f),"package.json"),s))return!0}),s}function wSe(t,u){if(!u.fileExists)return[];const s=[];return Ug(lr(t),d=>{const f=cr(d,"package.json");if(u.fileExists(f)){const p=Cfe(f,u);p&&s.push(p)}}),s}function Cfe(t,u){if(!u.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],d=u.readFile(t)||"",f=qIt(d),p={};if(f)for(const b of s){const B=f[b];if(!B)continue;const k=new Map;for(const T in B)k.set(T,B[T]);p[b]=k}const E=[[1,p.dependencies],[2,p.devDependencies],[8,p.optionalDependencies],[4,p.peerDependencies]];return{...p,parseable:!!f,fileName:t,get:v,has(b,B){return!!v(b,B)}};function v(b,B=15){for(const[k,T]of E)if(T&&B&k){const M=T.get(b);if(M!==void 0)return M}}}function HM(t,u,s){const d=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||wSe(t.fileName,s)).filter(j=>j.parseable);let f,p,E;return{allowsImportingAmbientModule:b,allowsImportingSourceFile:B,allowsImportingSpecifier:k};function v(j){const J=z(j);for(const K of d)if(K.has(J)||K.has($Y(J)))return!0;return!1}function b(j,J){if(!d.length||!j.valueDeclaration)return!0;if(!p)p=new Map;else{const ge=p.get(j);if(ge!==void 0)return ge}const K=$4(j.getName());if(T(K))return p.set(j,!0),!0;const Y=j.valueDeclaration.getSourceFile(),oe=M(Y.fileName,J);if(typeof oe>"u")return p.set(j,!0),!0;const se=v(oe)||v(K);return p.set(j,se),se}function B(j,J){if(!d.length)return!0;if(!E)E=new Map;else{const oe=E.get(j);if(oe!==void 0)return oe}const K=M(j.fileName,J);if(!K)return E.set(j,!0),!0;const Y=v(K);return E.set(j,Y),Y}function k(j){return!d.length||T(j)||om(j)||Pf(j)?!0:v(j)}function T(j){return!!(gh(t)&&o3.nodeCoreModules.has(j)&&(f===void 0&&(f=zX(t)),f))}function M(j,J){if(!j.includes("node_modules"))return;const K=Z2.getNodeModulesPackageName(s.getCompilationSettings(),t,j,J,u);if(K&&!om(K)&&!Pf(K))return z(K)}function z(j){const J=yd(hM(j)).slice(1);return Pa(J[0],"@")?`${J[0]}/${J[1]}`:J[0]}}function qIt(t){try{return JSON.parse(t)}catch{return}}function zX(t){return Oe(t.imports,({text:u})=>o3.nodeCoreModules.has(u))}function XH(t){return kt(yd(t),"node_modules")}function bfe(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function TSe(t,u){const s=of(t),d=va(u,s,il,q$);if(d>=0){const f=u[d];return H.assertEqual(f.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Po(f,bfe)}}function LSe(t,u){var s;let d=va(u,t.start,E=>E.start,nl);for(d<0&&(d=~d);((s=u[d-1])==null?void 0:s.start)===t.start;)d--;const f=[],p=Ec(t);for(;;){const E=ur(u[d],bfe);if(!E||E.start>p)break;B2e(t,E)&&f.push(E),d++}return f}function u9({startPosition:t,endPosition:u}){return Vc(t,u===void 0?t:u)}function yfe(t,u){const s=Ca(t,u.start);return Tn(s,f=>f.getStart(t)Ec(u)?"quit":Wt(f)&&sw(u,of(f,t)))}function kfe(t,u,s=il){return t?Ha(t)?s(Vt(t,u)):u(t,0):void 0}function Ffe(t){return Ha(t)?Pn(t):t}function NSe(t,u){if(Mit(t)){const s=zit(t);if(s)return s;const d=z1.moduleSymbolToValidIdentifier(PSe(t),u,!1),f=z1.moduleSymbolToValidIdentifier(PSe(t),u,!0);return d===f?d:[d,f]}return t.name}function IX(t,u,s){return Mit(t)?zit(t)||z1.moduleSymbolToValidIdentifier(PSe(t),u,!!s):t.name}function Mit(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function zit(t){return G(t.declarations,u=>{var s,d,f;return tc(u)?(s=ur(Dc(u.expression),at))==null?void 0:s.text:eh(u)&&u.symbol.flags===2097152?(d=ur(u.propertyName,at))==null?void 0:d.text:(f=ur(Za(u),at))==null?void 0:f.text})}function PSe(t){var u;return H.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${H.formatSymbolFlags(t.flags)}. Declarations: ${(u=t.declarations)==null?void 0:u.map(s=>{const d=H.formatSyntaxKind(s.kind),f=Qn(s),{expression:p}=s;return(f?"[JS]":"")+d+(p?` (expression: ${H.formatSyntaxKind(p.kind)})`:"")}).join(", ")}.`)}function MSe(t,u,s){const d=u.length;if(d+s>t.length)return!1;for(let f=0;f_c(s)&&Yg(s))}function RX(t){return!!(Pse(t)&65536)}function OX(t,u){return G(t.imports,d=>{if(o3.nodeCoreModules.has(d.text))return Pa(d.text,"node:")})??u.usesUriStyleNodeCoreModules}function eK(t){return t===` -`?1:0}function jk(t){return Ha(t)?e3(to(t[0]),t.slice(1)):to(t)}function jX({options:t},u){const s=!t.semicolons||t.semicolons==="ignore",d=t.semicolons==="remove"||s&&!YH(u);return{...t,semicolons:d?"remove":"ignore"}}function Sfe(t){return t===2||t===3}function KM(t,u){return t.isSourceFileFromExternalLibrary(u)||t.isSourceFileDefaultLibrary(u)}function VX(t,u){const s=new Set,d=new Set,f=new Set;for(const v of u)if(!TV(v)){const b=l0(v.expression);if(E2(b))switch(b.kind){case 15:case 11:s.add(b.text);break;case 9:d.add(parseInt(b.text));break;case 10:const B=pke(sc(b.text,"n")?b.text.slice(0,-1):b.text);B&&f.add(I2(B));break}else{const B=t.getSymbolAtLocation(v.expression);if(B&&B.valueDeclaration&&J2(B.valueDeclaration)){const k=t.getConstantValue(B.valueDeclaration);k!==void 0&&p(k)}}}return{addValue:p,hasValue:E};function p(v){switch(typeof v){case"string":s.add(v);break;case"number":d.add(v)}}function E(v){switch(typeof v){case"string":return s.has(v);case"number":return d.has(v);case"object":return f.has(I2(v))}}}function Bfe(t,u,s,d){var f;const p=typeof t=="string"?t:t.fileName;if(!z2(p))return!1;const E=u.getCompilerOptions(),v=m1(E),b=typeof t=="string"?bH(J0(t,s.getCurrentDirectory(),n5(s)),(f=u.getPackageJsonInfoCache)==null?void 0:f.call(u),s,E):t.impliedNodeFormat;if(b===99)return!1;if(b===1||E.verbatimModuleSyntax&&v===1)return!0;if(E.verbatimModuleSyntax&&Yq(v))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return d}var nh,wfe,Rit,HX,Tfe,Lfe,Oit,KX,Nfe,ZIt=o({"src/services/utilities.ts"(){rr(),nh=YD(99,!0),wfe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(wfe||{}),Rit=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(Tfe||{}),Lfe=VIt(),Oit=` -`,KX="anonymous function",Nfe=dg(SSe,Nit,Pit,wX)}});function Pfe(t){let u=1;const s=wm(),d=new Map,f=new Map;let p;const E={isUsableByFile:z=>z===p,isEmpty:()=>!s.size,clear:()=>{s.clear(),d.clear(),p=void 0},add:(z,j,J,K,Y,oe,se,ge)=>{z!==p&&(E.clear(),p=z);let ae;if(Y){const Ae=pZ(Y.fileName);if(Ae){const{topLevelNodeModulesIndex:De,topLevelPackageNameIndex:Ke,packageRootIndex:Je}=Ae;if(ae=lH(hM(Y.fileName.substring(Ke+1,Je))),Pa(z,Y.path.substring(0,De))){const ft=f.get(ae),Ye=Y.fileName.substring(0,Ke+1);if(ft){const Ve=ft.indexOf(o_);De>Ve&&f.set(ae,Ye)}else f.set(ae,Ye)}}}const ne=oe===1&&lB(j)||j,ve=oe===0||HH(ne)?Qr(J):NSe(ne,void 0),Se=typeof ve=="string"?ve:ve[0],Ne=typeof ve=="string"?void 0:ve[1],pe=$4(K.name),fe=u++,xe=X1(j,ge),Be=j.flags&33554432?void 0:j,Ge=K.flags&33554432?void 0:K;(!Be||!Ge)&&d.set(fe,[j,K]),s.add(b(Se,j,Id(pe)?void 0:pe,ge),{id:fe,symbolTableKey:J,symbolName:Se,capitalizedSymbolName:Ne,moduleName:pe,moduleFile:Y,moduleFileName:Y==null?void 0:Y.fileName,packageName:ae,exportKind:oe,targetFlags:xe.flags,isFromPackageJson:se,symbol:Be,moduleSymbol:Ge})},get:(z,j)=>{if(z!==p)return;const J=s.get(j);return J==null?void 0:J.map(v)},search:(z,j,J,K)=>{if(z===p)return h1(s,(Y,oe)=>{const{symbolName:se,ambientModuleName:ge}=B(oe),ae=j&&Y[0].capitalizedSymbolName||se;if(J(ae,Y[0].targetFlags)){const ne=Y.map(v).filter((ve,Se)=>M(ve,Y[Se].packageName));if(ne.length){const ve=K(ne,ae,!!ge,oe);if(ve!==void 0)return ve}}})},releaseSymbols:()=>{d.clear()},onFileChanged:(z,j,J)=>k(z)&&k(j)?!1:p&&p!==j.path||J&&zX(z)!==zX(j)||!On(z.moduleAugmentations,j.moduleAugmentations)||!T(z,j)?(E.clear(),!0):(p=j.path,!1)};return H.isDebugging&&Object.defineProperty(E,"__cache",{value:s}),E;function v(z){if(z.symbol&&z.moduleSymbol)return z;const{id:j,exportKind:J,targetFlags:K,isFromPackageJson:Y,moduleFileName:oe}=z,[se,ge]=d.get(j)||_t;if(se&&ge)return{symbol:se,moduleSymbol:ge,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y};const ae=(Y?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),Ce=z.moduleSymbol||ge||H.checkDefined(z.moduleFile?ae.getMergedSymbol(z.moduleFile.symbol):ae.tryFindAmbientModule(z.moduleName)),ne=z.symbol||se||H.checkDefined(J===2?ae.resolveExternalModuleSymbol(Ce):ae.tryGetMemberInModuleExportsAndProperties(Qr(z.symbolTableKey),Ce),`Could not find symbol '${z.symbolName}' by key '${z.symbolTableKey}' in module ${Ce.name}`);return d.set(j,[ne,Ce]),{symbol:ne,moduleSymbol:Ce,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y}}function b(z,j,J,K){const Y=J||"";return`${z.length} ${Zo(X1(j,K))} ${z} ${Y}`}function B(z){const j=z.indexOf(" "),J=z.indexOf(" ",j+1),K=parseInt(z.substring(0,j),10),Y=z.substring(J+1),oe=Y.substring(0,K),se=Y.substring(K+1);return{symbolName:oe,ambientModuleName:se===""?void 0:se}}function k(z){return!z.commonJsModuleIndicator&&!z.externalModuleIndicator&&!z.moduleAugmentations&&!z.ambientModuleNames}function T(z,j){if(!On(z.ambientModuleNames,j.ambientModuleNames))return!1;let J=-1,K=-1;for(const Y of j.ambientModuleNames){const oe=se=>m0e(se)&&se.name.text===Y;if(J=Ue(z.statements,oe,J+1),K=Ue(j.statements,oe,K+1),z.statements[J]!==j.statements[K])return!1}return!0}function M(z,j){if(!j||!z.moduleFileName)return!0;const J=t.getGlobalTypingsCacheLocation();if(J&&Pa(z.moduleFileName,J))return!0;const K=f.get(j);return!K||Pa(z.moduleFileName,K)}}function Mfe(t,u,s,d,f,p,E){var v;if(u===s)return!1;const b=E==null?void 0:E.get(u.path,s.path,d,{});if((b==null?void 0:b.isBlockedByPackageJsonDependencies)!==void 0)return!b.isBlockedByPackageJsonDependencies;const B=n5(p),k=(v=p.getGlobalTypingsCacheLocation)==null?void 0:v.call(p),T=!!Z2.forEachFileNameOfModule(u.fileName,s.fileName,p,!1,M=>{const z=t.getSourceFile(M);return(z===s||!z)&&YIt(u.fileName,M,B,k)});if(f){const M=T&&f.allowsImportingSourceFile(s,p);return E==null||E.setBlockedByPackageJsonDependencies(u.path,s.path,d,{},!M),M}return T}function YIt(t,u,s,d){const f=Ug(u,E=>Ac(E)==="node_modules"?E:void 0),p=f&&lr(s(f));return p===void 0||Pa(s(t),p)||!!d&&Pa(s(d),p)}function zfe(t,u,s,d,f){var p,E;const v=Hj(u),b=s.autoImportFileExcludePatterns&&qi(s.autoImportFileExcludePatterns,k=>{const T=Fle(k,"","exclude");return T?jx(T,v):void 0});jit(t.getTypeChecker(),t.getSourceFiles(),b,(k,T)=>f(k,T,t,!1));const B=d&&((p=u.getPackageJsonAutoImportProvider)==null?void 0:p.call(u));if(B){const k=G0(),T=t.getTypeChecker();jit(B.getTypeChecker(),B.getSourceFiles(),b,(M,z)=>{(z&&!t.getSourceFile(z.fileName)||!z&&!T.resolveName(M.name,void 0,1536,!1))&&f(M,z,B,!0)}),(E=u.log)==null||E.call(u,`forEachExternalModuleToImportFrom autoImportProvider: ${G0()-k}`)}}function jit(t,u,s,d){var f;const p=s&&(E=>s.some(v=>v.test(E)));for(const E of t.getAmbientModules())!E.name.includes("*")&&!(s&&((f=E.declarations)!=null&&f.every(v=>p(v.getSourceFile().fileName))))&&d(E,void 0);for(const E of u)cm(E)&&!(p!=null&&p(E.fileName))&&d(t.getMergedSymbol(E.symbol),E)}function tK(t,u,s,d,f){var p,E,v,b,B;const k=G0();(p=u.getPackageJsonAutoImportProvider)==null||p.call(u);const T=((E=u.getCachedExportInfoMap)==null?void 0:E.call(u))||Pfe({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var j;return(j=u.getPackageJsonAutoImportProvider)==null?void 0:j.call(u)},getGlobalTypingsCacheLocation:()=>{var j;return(j=u.getGlobalTypingsCacheLocation)==null?void 0:j.call(u)}});if(T.isUsableByFile(t.path))return(v=u.log)==null||v.call(u,"getExportInfoMap: cache hit"),T;(b=u.log)==null||b.call(u,"getExportInfoMap: cache miss or empty; calculating new results");const M=s.getCompilerOptions();let z=0;try{zfe(s,u,d,!0,(j,J,K,Y)=>{++z%100===0&&(f==null||f.throwIfCancellationRequested());const oe=new Map,se=K.getTypeChecker(),ge=WX(j,se,M);ge&&Vit(ge.symbol,se)&&T.add(t.path,ge.symbol,ge.exportKind===1?"default":"export=",j,J,ge.exportKind,Y,se),se.forEachExportAndPropertyOfModule(j,(ae,Ce)=>{ae!==(ge==null?void 0:ge.symbol)&&Vit(ae,se)&&Ip(oe,Ce)&&T.add(t.path,ae,Ce,j,J,0,Y,se)})})}catch(j){throw T.clear(),j}return(B=u.log)==null||B.call(u,`getExportInfoMap: done in ${G0()-k} ms`),T}function WX(t,u,s){const d=QIt(t,u);if(!d)return;const{symbol:f,exportKind:p}=d,E=GX(f,u,s);return E&&{symbol:f,exportKind:p,...E}}function Vit(t,u){return!u.isUndefinedSymbol(t)&&!u.isUnknownSymbol(t)&&!Ij(t)&&!mye(t)}function QIt(t,u){const s=u.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const d=u.tryGetMemberInModuleExports("default",t);if(d)return{symbol:d,exportKind:1}}function GX(t,u,s){const d=lB(t);if(d)return{resolvedSymbol:d,name:d.name};const f=XIt(t);if(f!==void 0)return{resolvedSymbol:t,name:f};if(t.flags&2097152){const p=u.getImmediateAliasedSymbol(t);if(p&&p.parent)return GX(p,u,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:IX(t,s.target)}}function XIt(t){return t.declarations&&G(t.declarations,u=>{var s;if(tc(u))return(s=ur(Dc(u.expression),at))==null?void 0:s.text;if(eh(u))return H.assert(u.name.text==="default","Expected the specifier to be a default export"),u.propertyName&&u.propertyName.text})}var Ife,Rfe,eRt=o({"src/services/exportInfoMap.ts"(){rr(),Ife=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(Ife||{}),Rfe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(Rfe||{})}});function Hit(){const t=YD(99,!1);function u(d,f,p){return nRt(s(d,f,p),d)}function s(d,f,p){let E=0,v=0;const b=[],{prefix:B,pushTemplate:k}=aRt(f);d=B+d;const T=B.length;k&&b.push(16),t.setText(d);let M=0;const z=[];let j=0;do{E=t.scan(),nB(E)||(J(),v=E);const K=t.getTokenEnd();if(iRt(t.getTokenStart(),K,T,lRt(E),z),K>=d.length){const Y=tRt(t,E,qu(b));Y!==void 0&&(M=Y)}}while(E!==1);function J(){switch(E){case 44:case 69:!Jit[v]&&t.reScanSlashToken()===14&&(E=14);break;case 30:v===80&&j++;break;case 32:j>0&&j--;break;case 133:case 154:case 150:case 136:case 155:j>0&&!p&&(E=80);break;case 16:b.push(E);break;case 19:b.length>0&&b.push(E);break;case 20:if(b.length>0){const K=qu(b);K===16?(E=t.reScanTemplateToken(!1),E===18?b.pop():H.assertEqual(E,17,"Should have been a template middle.")):(H.assertEqual(K,19,"Should have been an open brace"),b.pop())}break;default:if(!uf(E))break;(v===25||uf(v)&&uf(E)&&!rRt(v,E))&&(E=80)}}return{endOfLineState:M,spans:z}}return{getClassificationsForLine:u,getEncodedLexicalClassifications:s}}function tRt(t,u,s){switch(u){case 11:{if(!t.isUnterminated())return;const d=t.getTokenText(),f=d.length-1;let p=0;for(;d.charCodeAt(f-p)===92;)p++;return p&1?d.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(Bx(u)){if(!t.isUnterminated())return;switch(u){case 18:return 5;case 15:return 4;default:return H.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+u)}}return s===16?6:void 0}}function iRt(t,u,s,d,f){if(d===8)return;t===0&&s>0&&(t+=s);const p=u-t;p>0&&f.push(t-s,p,d)}function nRt(t,u){const s=[],d=t.spans;let f=0;for(let E=0;E=0){const k=v-f;k>0&&s.push({length:k,classification:4})}s.push({length:b,classification:uRt(B)}),f=v+b}const p=u.length-f;return p>0&&s.push({length:p,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function uRt(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function rRt(t,u){if(!Yhe(t))return!0;switch(u){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function aRt(t){switch(t){case 3:return{prefix:`"\\ + `,pos:-1,end:-1,hasTrailingNewLine:!0}]:[]),fr),ze.flags=e0,ze.enclosingDeclaration=M0}function $t(ai,Lu,fr){const rr=F4(ai),mr=sn(ai),Xs=Vt(mr,G1=>zt(G1,ze)),zo=Qc(rr),so=S(zo)?Ds(zo):void 0,is=Vu(u0(rr),G1=>wE(G1,so)),e0=TE(0,rr,so,179),M0=TE(1,rr,so,180),Uh=$b(rr,so),W1=S(zo)?[q.createHeritageClause(96,qi(zo,G1=>nS(G1,111551)))]:void 0;kl(q.createInterfaceDeclaration(void 0,Zf(ai,Lu),Xs,W1,[...Uh,...M0,...e0,...is]),fr)}function Mi(ai){const Lu=$f(ai);return Lu?ti(Ea(Lu.values()),fr=>Xa(fr)&&Nm(fr.escapedName,99)):[]}function Bn(ai){return ye(Mi(ai),Lu=>!(j1(Fc(Lu))&111551))}function xu(ai,Lu,fr){const rr=Mi(ai),mr=pO(rr,so=>so.parent&&so.parent===ai?"real":"merged"),Xs=mr.get("real")||Dt,zo=mr.get("merged")||Dt;if(S(Xs)){const so=Zf(ai,Lu);Tr(Xs,so,fr,!!(ai.flags&67108880))}if(S(zo)){const so=zn(ze.enclosingDeclaration),is=Zf(ai,Lu),e0=q.createModuleBlock([q.createExportDeclaration(void 0,!1,q.createNamedExports(qi(ti(zo,M0=>M0.escapedName!=="export="),M0=>{var Uh,W1;const G1=Qr(M0.escapedName),gl=Zf(M0,G1),k1=M0.declarations&&op(M0);if(so&&(k1?so!==zn(k1):!Ge(M0.declarations,Yf=>zn(Yf)===so))){(W1=(Uh=ze.tracker)==null?void 0:Uh.reportNonlocalAugmentation)==null||W1.call(Uh,so,ai,M0);return}const w3=k1&&x4(k1,!0);pl(w3||M0);const F1=w3?Zf(w3,Qr(w3.escapedName)):gl;return q.createExportSpecifier(!1,G1===F1?void 0:F1,G1)})))]);kl(q.createModuleDeclaration(void 0,q.createIdentifier(is),e0,32),0)}}function un(ai,Lu,fr){kl(q.createEnumDeclaration(q.createModifiersFromModifierFlags(vze(ai)?4096:0),Zf(ai,Lu),Vt(ti(u0(Wn(ai)),rr=>!!(rr.flags&8)),rr=>{const mr=rr.declarations&&rr.declarations[0]&&$2(rr.declarations[0])?Qze(rr.declarations[0]):void 0;return q.createEnumMember(Qr(rr.escapedName),mr===void 0?void 0:typeof mr=="string"?q.createStringLiteral(mr):q.createNumericLiteral(mr))})),fr)}function lu(ai,Lu,fr,rr){const mr=Eo(ai,0);for(const Xs of mr){const zo=Te(Xs,262,ze,{name:q.createIdentifier(fr),privateSymbolVisitor:pl,bundledImports:Qn});kl(Pt(zo,xr(Xs)),rr)}if(!(Lu.flags&1536&&Lu.exports&&Lu.exports.size)){const Xs=ti(u0(ai),Xa);Tr(Xs,fr,rr,!0)}}function xr(ai){if(ai.declaration&&ai.declaration.parent){if(eu(ai.declaration.parent)&&ec(ai.declaration.parent)===5)return ai.declaration.parent;if(ra(ai.declaration.parent)&&ai.declaration.parent.parent)return ai.declaration.parent.parent}return ai.declaration}function Tr(ai,Lu,fr,rr){if(S(ai)){const Xs=pO(ai,gl=>!S(gl.declarations)||Ge(gl.declarations,k1=>zn(k1)===zn(ze.enclosingDeclaration))?"local":"remote").get("local")||Dt;let zo=o_.createModuleDeclaration(void 0,q.createIdentifier(Lu),q.createModuleBlock([]),32);ks(zo,zr),zo.locals=Ho(ai),zo.symbol=ai[0].parent;const so=ju;ju=[];const is=bi;bi=!1;const e0={...ze,enclosingDeclaration:zo},M0=ze;ze=e0,ds(Ho(Xs),rr,!0),ze=M0,bi=is;const Uh=ju;ju=so;const W1=Vt(Uh,gl=>ic(gl)&&!gl.isExportEquals&&at(gl.expression)?q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,gl.expression,q.createIdentifier("default"))])):gl),G1=ye(W1,gl=>Qu(gl,32))?Vt(W1,La):W1;zo=q.updateModuleDeclaration(zo,zo.modifiers,zo.name,q.createModuleBlock(G1)),kl(zo,fr)}}function Xa(ai){return!!(ai.flags&2887656)||!(ai.flags&4194304||ai.escapedName==="prototype"||ai.valueDeclaration&&No(ai.valueDeclaration)&&gr(ai.valueDeclaration.parent))}function jo(ai){const Lu=qi(ai,fr=>{const rr=ze.enclosingDeclaration;ze.enclosingDeclaration=fr;let mr=fr.expression;if(tc(mr)){if(at(mr)&&fu(mr)==="")return Xs(void 0);let zo;if({introducesError:zo,node:mr}=Ac(mr,ze,pl),zo)return Xs(void 0)}return Xs(q.createExpressionWithTypeArguments(mr,Vt(fr.typeArguments,zo=>tl(ze,zo,pl,Qn)||C(Br(zo),ze))));function Xs(zo){return ze.enclosingDeclaration=rr,zo}});if(Lu.length===ai.length)return Lu}function Jo(ai,Lu,fr){var rr,mr;const Xs=(rr=ai.declarations)==null?void 0:rr.find(gr),zo=ze.enclosingDeclaration;ze.enclosingDeclaration=Xs||zo;const so=sn(ai),is=Vt(so,NE=>zt(NE,ze)),e0=xm(F4(ai)),M0=Qc(e0),Uh=Xs&&iB(Xs),W1=Uh&&jo(Uh)||qi(_D(e0),BD),G1=Wn(ai),gl=!!((mr=G1.symbol)!=null&&mr.valueDeclaration)&&gr(G1.symbol.valueDeclaration),k1=gl?Yc(G1):me,w3=[...S(M0)?[q.createHeritageClause(96,Vt(M0,NE=>xT(NE,k1,Lu)))]:[],...S(W1)?[q.createHeritageClause(119,W1)]:[]],F1=a0i(e0,M0,u0(e0)),Yf=ti(F1,NE=>{const Uz=NE.valueDeclaration;return!!Uz&&!(gh(Uz)&&ea(Uz.name))}),LE=Ge(F1,NE=>{const Uz=NE.valueDeclaration;return!!Uz&&gh(Uz)&&ea(Uz.name)})?[q.createPropertyDeclaration(void 0,q.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:Dt,L6=Vu(Yf,NE=>Dr(NE,!1,M0[0])),N6=Vu(ti(u0(G1),NE=>!(NE.flags&4194304)&&NE.escapedName!=="prototype"&&!Xa(NE)),NE=>Dr(NE,!0,k1)),Cci=!gl&&!!ai.valueDeclaration&&Xn(ai.valueDeclaration)&&!Ge(Eo(G1,1))?[q.createConstructorDeclaration(q.createModifiersFromModifierFlags(2),[],void 0)]:TE(1,G1,k1,176),bci=$b(e0,M0[0]);ze.enclosingDeclaration=zo,kl(Pt(q.createClassDeclaration(void 0,Lu,is,w3,[...bci,...N6,...Cci,...L6,...LE]),ai.declarations&&ti(ai.declarations,NE=>Jc(NE)||e1(NE))[0]),fr)}function br(ai){return G(ai,Lu=>{if(bf(Lu)||th(Lu))return fu(Lu.propertyName||Lu.name);if(eu(Lu)||ic(Lu)){const fr=ic(Lu)?Lu.expression:Lu.right;if(Ru(fr))return fu(fr.name)}if(lC(Lu)){const fr=Ya(Lu);if(fr&&at(fr))return fu(fr)}})}function po(ai,Lu,fr){var rr,mr,Xs,zo,so;const is=op(ai);if(!is)return H.fail();const e0=Ws(x4(is,!0));if(!e0)return;let M0=UN(e0)&&br(ai.declarations)||Qr(e0.escapedName);M0==="export="&&pe&&(M0="default");const Uh=Zf(e0,M0);switch(pl(e0),is.kind){case 208:if(((mr=(rr=is.parent)==null?void 0:rr.parent)==null?void 0:mr.kind)===260){const gl=_n(e0.parent||e0,ze),{propertyName:k1}=is;kl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,k1&&at(k1)?q.createIdentifier(fu(k1)):void 0,q.createIdentifier(Lu))])),q.createStringLiteral(gl),void 0),0);break}H.failBadSyntaxKind(((Xs=is.parent)==null?void 0:Xs.parent)||is,"Unhandled binding element grandparent kind in declaration serialization");break;case 304:((so=(zo=is.parent)==null?void 0:zo.parent)==null?void 0:so.kind)===226&&ts(Qr(ai.escapedName),Uh);break;case 260:if(Ru(is.initializer)){const gl=is.initializer,k1=q.createUniqueName(Lu),w3=_n(e0.parent||e0,ze);kl(q.createImportEqualsDeclaration(void 0,!1,k1,q.createExternalModuleReference(q.createStringLiteral(w3))),0),kl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Lu),q.createQualifiedName(k1,gl.name)),fr);break}case 271:if(e0.escapedName==="export="&&Ge(e0.declarations,gl=>ca(gl)&&J4(gl))){P0(ai);break}const W1=!(e0.flags&512)&&!ra(is);kl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(Lu),W1?Aa(e0,ze,67108863,!1):q.createExternalModuleReference(q.createStringLiteral(_n(e0,ze)))),W1?fr:0);break;case 270:kl(q.createNamespaceExportDeclaration(fu(is.name)),0);break;case 273:{const gl=_n(e0.parent||e0,ze),k1=Qn?q.createStringLiteral(gl):is.parent.moduleSpecifier;kl(q.createImportDeclaration(void 0,q.createImportClause(!1,q.createIdentifier(Lu),void 0),k1,is.parent.attributes),0);break}case 274:{const gl=_n(e0.parent||e0,ze),k1=Qn?q.createStringLiteral(gl):is.parent.parent.moduleSpecifier;kl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(q.createIdentifier(Lu))),k1,is.parent.attributes),0);break}case 280:kl(q.createExportDeclaration(void 0,!1,q.createNamespaceExport(q.createIdentifier(Lu)),q.createStringLiteral(_n(e0,ze))),0);break;case 276:{const gl=_n(e0.parent||e0,ze),k1=Qn?q.createStringLiteral(gl):is.parent.parent.parent.moduleSpecifier;kl(q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamedImports([q.createImportSpecifier(!1,Lu!==M0?q.createIdentifier(M0):void 0,q.createIdentifier(Lu))])),k1,is.parent.parent.parent.attributes),0);break}case 281:const G1=is.parent.parent.moduleSpecifier;ts(Qr(ai.escapedName),G1?M0:Uh,G1&&i0(G1)?q.createStringLiteral(G1.text):void 0);break;case 277:P0(ai);break;case 226:case 211:case 212:ai.escapedName==="default"||ai.escapedName==="export="?P0(ai):ts(Lu,Uh);break;default:return H.failBadSyntaxKind(is,"Unhandled alias declaration kind in symbol serializer!")}}function ts(ai,Lu,fr){kl(q.createExportDeclaration(void 0,!1,q.createNamedExports([q.createExportSpecifier(!1,ai!==Lu?Lu:void 0,ai)]),fr),0)}function P0(ai){var Lu;if(ai.flags&4194304)return!1;const fr=Qr(ai.escapedName),rr=fr==="export=",Xs=rr||fr==="default",zo=ai.declarations&&op(ai),so=zo&&x4(zo,!0);if(so&&S(so.declarations)&&Ge(so.declarations,is=>zn(is)===zn(zr))){const is=zo&&(ic(zo)||eu(zo)?G0e(zo):Dye(zo)),e0=is&&tc(is)?x0i(is):void 0,M0=e0&&j0(e0,67108863,!0,!0,zr);(M0||so)&&pl(M0||so);const Uh=ze.tracker.disableTrackSymbol;if(ze.tracker.disableTrackSymbol=!0,Xs)ju.push(q.createExportAssignment(void 0,rr,oh(so,ze,67108863)));else if(e0===is&&e0)ts(fr,fu(e0));else if(is&&e1(is))ts(fr,Zf(so,cc(so)));else{const W1=IC(fr,ai);kl(q.createImportEqualsDeclaration(void 0,!1,q.createIdentifier(W1),Aa(so,ze,67108863,!1)),0),ts(fr,W1)}return ze.tracker.disableTrackSymbol=Uh,!0}else{const is=IC(fr,ai),e0=vm(Wn(Ws(ai)));if(Js(e0,ai))lu(e0,ai,is,Xs?0:32);else{const M0=((Lu=ze.enclosingDeclaration)==null?void 0:Lu.kind)===267&&(!(ai.flags&98304)||ai.flags&65536)?1:2,Uh=q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(is,void 0,od(ze,e0,ai,zr,pl,Qn))],M0));kl(Uh,so&&so.flags&4&&so.escapedName==="export="?128:fr===is?32:0)}return Xs?(ju.push(q.createExportAssignment(void 0,rr,q.createIdentifier(is))),!0):fr!==is?(ts(fr,is),!0):!1}}function Js(ai,Lu){const fr=zn(ze.enclosingDeclaration);return Ju(ai)&48&&!S(Ah(ai))&&!O9(ai)&&!!(S(ti(u0(ai),Xa))||S(Eo(ai,0)))&&!S(Eo(ai,1))&&!$n(Lu,zr)&&!(ai.symbol&&Ge(ai.symbol.declarations,rr=>zn(rr)!==fr))&&!Ge(u0(ai),rr=>eW(rr.escapedName))&&!Ge(u0(ai),rr=>Ge(rr.declarations,mr=>zn(mr)!==fr))&&ye(u0(ai),rr=>Nm(cc(rr),Ce)?rr.flags&98304?E6(rr)===mF(rr):!0:!1)}function Hd(ai,Lu,fr){return function(mr,Xs,zo){var so,is,e0,M0,Uh;const W1=h4(mr),G1=!!(W1&2);if(Xs&&mr.flags&2887656)return[];if(mr.flags&4194304||mr.escapedName==="constructor"||zo&&Zo(zo,mr.escapedName)&&Ng(Zo(zo,mr.escapedName))===Ng(mr)&&(mr.flags&16777216)===(Zo(zo,mr.escapedName).flags&16777216)&&CD(Wn(mr),he(zo,mr.escapedName)))return[];const gl=W1&-1025|(Xs?256:0),k1=Kn(mr,ze),w3=(so=mr.declarations)==null?void 0:so.find(dg(ko,wx,ra,zm,eu,Ru));if(mr.flags&98304&&fr){const F1=[];if(mr.flags&65536){const Yf=mr.declarations&&L(mr.declarations,LE=>{if(LE.kind===178)return LE;if(Mo(LE)&&rk(LE))return L(LE.arguments[2].properties,L6=>{const N6=Ya(L6);if(N6&&at(N6)&&fu(N6)==="set")return L6})});H.assert(!!Yf);const uS=U0(Yf)?fp(Yf).parameters[0]:void 0;F1.push(Pt(q.createSetAccessorDeclaration(q.createModifiersFromModifierFlags(gl),k1,[q.createParameterDeclaration(void 0,void 0,uS?dn(uS,gi(uS),ze):"value",void 0,G1?void 0:od(ze,Wn(mr),mr,zr,pl,Qn))],void 0),((is=mr.declarations)==null?void 0:is.find(e5))||w3))}if(mr.flags&32768){const Yf=W1&2;F1.push(Pt(q.createGetAccessorDeclaration(q.createModifiersFromModifierFlags(gl),k1,[],Yf?void 0:od(ze,Wn(mr),mr,zr,pl,Qn),void 0),((e0=mr.declarations)==null?void 0:e0.find(Lx))||w3))}return F1}else if(mr.flags&98311)return Pt(ai(q.createModifiersFromModifierFlags((Ng(mr)?8:0)|gl),k1,mr.flags&16777216?q.createToken(58):void 0,G1?void 0:od(ze,mF(mr),mr,zr,pl,Qn),void 0),((M0=mr.declarations)==null?void 0:M0.find(dg(ko,ra)))||w3);if(mr.flags&8208){const F1=Wn(mr),Yf=Eo(F1,0);if(gl&2)return Pt(ai(q.createModifiersFromModifierFlags((Ng(mr)?8:0)|gl),k1,mr.flags&16777216?q.createToken(58):void 0,void 0,void 0),((Uh=mr.declarations)==null?void 0:Uh.find(U0))||Yf[0]&&Yf[0].declaration||mr.declarations&&mr.declarations[0]);const uS=[];for(const LE of Yf){const L6=Te(LE,Lu,ze,{name:k1,questionToken:mr.flags&16777216?q.createToken(58):void 0,modifiers:gl?q.createModifiersFromModifierFlags(gl):void 0}),N6=LE.declaration&&Fj(LE.declaration.parent)?LE.declaration.parent:LE.declaration;uS.push(Pt(L6,N6))}return uS}return H.fail(`Unhandled class member kind! ${mr.__debugFlags||mr.flags}`)}}function wE(ai,Lu){return pr(ai,!1,Lu)}function TE(ai,Lu,fr,rr){const mr=Eo(Lu,ai);if(ai===1){if(!fr&&ye(mr,so=>S(so.parameters)===0))return[];if(fr){const so=Eo(fr,1);if(!S(so)&&ye(mr,is=>S(is.parameters)===0))return[];if(so.length===mr.length){let is=!1;for(let e0=0;e0C(mr,ze)),rr=oh(ai.target.symbol,ze,788968)):ai.symbol&&Ht(ai.symbol,zr,Lu)&&(rr=oh(ai.symbol,ze,788968)),rr)return q.createExpressionWithTypeArguments(rr,fr)}function BD(ai){const Lu=nS(ai,788968);if(Lu)return Lu;if(ai.symbol)return q.createExpressionWithTypeArguments(oh(ai.symbol,ze,788968),void 0)}function IC(ai,Lu){var fr,rr;const mr=Lu?Yo(Lu):void 0;if(mr&&ze.remappedSymbolNames.has(mr))return ze.remappedSymbolNames.get(mr);Lu&&(ai=wie(Lu,ai));let Xs=0;const zo=ai;for(;(fr=ze.usedSymbolNames)!=null&&fr.has(ai);)Xs++,ai=`${zo}_${Xs}`;return(rr=ze.usedSymbolNames)==null||rr.add(ai),mr&&ze.remappedSymbolNames.set(mr,ai),ai}function wie(ai,Lu){if(Lu==="default"||Lu==="__class"||Lu==="__function"){const fr=ze.flags;ze.flags|=16777216;const rr=D_(ai,ze);ze.flags=fr,Lu=rr.length>0&&Dj(rr.charCodeAt(0))?q4(rr):rr}return Lu==="default"?Lu="_default":Lu==="export="&&(Lu="_exports"),Lu=Nm(Lu,Ce)&&!m7(Lu)?Lu:"_"+Lu.replace(/[^a-zA-Z0-9]/g,"_"),Lu}function Zf(ai,Lu){const fr=Yo(ai);return ze.remappedSymbolNames.has(fr)?ze.remappedSymbolNames.get(fr):(Lu=wie(ai,Lu),ze.remappedSymbolNames.set(fr,Lu),Lu)}}}function __(l,m,D=16384,C){return C?A(C).getText():JN(A);function A(w){const I=q.createTypePredicateNode(l.kind===2||l.kind===3?q.createToken(131):void 0,l.kind===1||l.kind===3?q.createIdentifier(l.parameterName):q.createThisTypeNode(),l.type&&Yt.typeToTypeNode(l.type,m,xC(D)|70221824|512)),U=eb(),Z=m&&zn(m);return U.writeNode(4,I,Z,w),w}}function M5(l){const m=[];let D=0;for(let C=0;CYa(I)?I:void 0);const w=A&&Ya(A);if(A&&w){if(Mo(A)&&rk(A))return cc(l);if(Ms(w)&&!(Gl(l)&4096)){const I=qr(l).nameType;if(I&&I.flags&384){const U=fz(l,m);if(U!==void 0)return U}}return k0(w)}if(A||(A=l.declarations[0]),A.parent&&A.parent.kind===260)return k0(A.parent.name);switch(A.kind){case 231:case 218:case 219:return m&&!m.encounteredError&&!(m.flags&131072)&&(m.encounteredError=!0),A.kind===231?"(Anonymous class)":"(Anonymous function)"}}const C=fz(l,m);return C!==void 0?C:cc(l)}function pD(l){if(l){const D=sr(l);return D.isVisible===void 0&&(D.isVisible=!!m()),D.isVisible}return!1;function m(){switch(l.kind){case 345:case 353:case 347:return!!(l.parent&&l.parent.parent&&l.parent.parent.parent&&ca(l.parent.parent.parent));case 208:return pD(l.parent.parent);case 260:if(So(l.name)&&!l.name.elements.length)return!1;case 267:case 263:case 264:case 265:case 262:case 266:case 271:if(C2(l))return!0;const D=dF(l);return!(p_e(l)&32)&&!(l.kind!==271&&D.kind!==312&&D.flags&33554432)?gE(D):pD(D);case 172:case 171:case 177:case 178:case 174:case 173:if(Rf(l,6))return!1;case 176:case 180:case 179:case 181:case 169:case 268:case 184:case 185:case 187:case 183:case 188:case 189:case 192:case 193:case 196:case 202:return pD(l.parent);case 273:case 274:case 276:return!1;case 168:case 312:case 270:return!0;case 277:return!1;default:return!1}}}function qw(l,m){let D;l.parent&&l.parent.kind===277?D=rc(l,l.escapedText,2998271,void 0,l,!1):l.parent.kind===281&&(D=xb(l.parent,2998271));let C,A;return D&&(A=new Set,A.add(Yo(D)),w(D.declarations)),C;function w(I){L(I,U=>{const Z=A9(U)||U;if(m?sr(U).isVisible=!0:(C=C||[],Ca(C,Z)),U8(U)){const ce=U.moduleReference,Fe=hm(ce),Te=rc(U,Fe.escapedText,901119,void 0,void 0,!1);Te&&A&&Bs(A,Yo(Te))&&w(Te.declarations)}})}}function x_(l,m){const D=vC(l,m);if(D>=0){const{length:C}=cD;for(let A=D;A=cb;D--){if(gte(cD[D],Gk[D]))return-1;if(cD[D]===l&&Gk[D]===m)return D}return-1}function gte(l,m){switch(m){case 0:return!!qr(l).type;case 5:return!!sr(l).resolvedEnumType;case 2:return!!qr(l).declaredType;case 1:return!!l.resolvedBaseConstructorType;case 3:return!!l.resolvedReturnType;case 4:return!!l.immediateBaseConstraint;case 6:return!!l.resolvedTypeArguments;case 7:return!!l.baseTypesResolved;case 8:return!!qr(l).writeType;case 9:return sr(l).parameterInitializerContainsUndefined!==void 0}return H.assertNever(m)}function bE(){return cD.pop(),Gk.pop(),i6.pop()}function dF(l){return Tn(e_(l),m=>{switch(m.kind){case 260:case 261:case 276:case 275:case 274:case 273:return!1;default:return!0}}).parent}function QK(l){const m=el(cf(l));return m.typeParameters?R5(m,Vt(m.typeParameters,D=>me)):m}function he(l,m){const D=Zo(l,m);return D?Wn(D):void 0}function Re(l,m){var D;let C;return he(l,m)||(C=(D=G9(l,m))==null?void 0:D.type)&&Vd(C,!0,!0)}function nt(l){return l&&(l.flags&1)!==0}function Nt(l){return l===Ot||!!(l.flags&1&&l.aliasSymbol)}function Ci(l,m){if(m!==0)return gD(l,!1,m);const D=Du(l);return D&&qr(D).type||gD(l,!1,m)}function en(l,m,D){if(l=Oc(l,Z=>!(Z.flags&98304)),l.flags&131072)return Wo;if(l.flags&1048576)return ml(l,Z=>en(Z,m,D));let C=tr(Vt(m,j5));const A=[],w=[];for(const Z of u0(l)){const ce=kz(Z,8576);!ms(ce,C)&&!(h4(Z)&6)&&Vge(Z)?A.push(Z):w.push(ce)}if(Nb(l)||SC(C)){if(w.length&&(C=tr([C,...w])),C.flags&131072)return l;const Z=Lei();return Z?aT(Z,[l,C]):Ot}const I=Ho();for(const Z of A)I.set(Z.escapedName,NPe(Z,!1));const U=Ol(D,I,Dt,Dt,Ah(l));return U.objectFlags|=4194304,U}function Iu(l){return!!(l.flags&465829888)&&jl(Gh(l)||on,32768)}function Wr(l){const m=kE(l,Iu)?ml(l,D=>D.flags&465829888?xD(D):D):l;return gp(m,524288)}function Pr(l,m){const D=_r(l);return D?w6(D,m):m}function _r(l){const m=ma(l);if(m&&wj(m)&&m.flowNode){const D=D0(l);if(D){const C=Pt(o_.createStringLiteral(D),l),A=Df(m)?m:o_.createParenthesizedExpression(m),w=Pt(o_.createElementAccessExpression(A,C),l);return ks(C,w),ks(w,l),A!==m&&ks(A,w),w.flowNode=m.flowNode,w}}}function ma(l){const m=l.parent.parent;switch(m.kind){case 208:case 303:return _r(m);case 209:return _r(l.parent);case 260:return m.initializer;case 226:return m.right}}function D0(l){const m=l.parent;return l.kind===208&&m.kind===206?Zs(l.propertyName||l.name):l.kind===303||l.kind===304?Zs(l.name):""+m.elements.indexOf(l)}function Zs(l){const m=j5(l);return m.flags&384?""+m.value:void 0}function Gs(l){const m=l.dotDotDotToken?32:0,D=Ci(l.parent.parent,m);return D&&y4(l,D,!1)}function y4(l,m,D){if(nt(m))return m;const C=l.parent;fe&&l.flags&33554432&&T2(l)?m=FD(m):fe&&C.parent.initializer&&!pp(Hht(C.parent.initializer),65536)&&(m=gp(m,524288));let A;if(C.kind===206)if(l.dotDotDotToken){if(m=Sg(m),m.flags&2||!Xte(m))return gt(l,F.Rest_types_may_only_be_created_from_object_types),Ot;const w=[];for(const I of C.elements)I.dotDotDotToken||w.push(I.propertyName||I.name);A=en(m,w,l.symbol)}else{const w=l.propertyName||l.name,I=j5(w),U=qf(m,I,32,w);A=Pr(l,U)}else{const w=G5(65|(l.dotDotDotToken?0:128),m,te,C),I=C.elements.indexOf(l);if(l.dotDotDotToken){const U=ml(m,Z=>Z.flags&58982400?xD(Z):Z);A=t4(U,xs)?ml(U,Z=>yz(Z,I)):H1(w)}else if(H5(m)){const U=wg(I),Z=32|(D||Iz(l)?16:0),ce=b6(m,U,Z,l.name)||Ot;A=Pr(l,ce)}else A=w}return l.initializer?m1(S8(l))?fe&&!pp(TW(l,0),16777216)?Wr(A):A:yze(l,tr([Wr(A),TW(l,0)],2)):A}function Zp(l){const m=Cv(l);if(m)return Br(m)}function f6(l){const m=l0(l,!0);return m.kind===106||m.kind===80&&Yp(m)===st}function y3(l){const m=l0(l,!0);return m.kind===209&&m.elements.length===0}function Vd(l,m=!1,D=!0){return fe&&D?S6(l,m):l}function gD(l,m,D){if(ra(l)&&l.parent.parent.kind===249){const I=F_(UMe(Fa(l.parent.parent.expression,D)));return I.flags&4456448?k1t(I):ct}if(ra(l)&&l.parent.parent.kind===250){const I=l.parent.parent;return yie(I)||me}if(So(l.parent))return Gs(l);const C=ko(l)&&!tE(l)||zm(l)||AFe(l),A=m&&MP(l),w=dt(l);if(p0e(l))return w?nt(w)||w===on?w:Ot:He?on:me;if(w)return Vd(w,C,A);if((Ae||Xn(l))&&ra(l)&&!So(l.name)&&!(p_e(l)&32)&&!(l.flags&33554432)){if(!(Jb(l)&6)&&(!l.initializer||f6(l.initializer)))return ni;if(l.initializer&&y3(l.initializer))return Mc}if(io(l)){const I=l.parent;if(I.kind===178&&iT(I)){const ce=Bl(Du(l.parent),177);if(ce){const Fe=fp(ce),Te=uIe(I);return Te&&l===Te?(H.assert(!Te.type),Wn(Fe.thisParameter)):Ys(Fe)}}const U=uei(I,l);if(U)return U;const Z=l.symbol.escapedName==="this"?sft(I):lft(l);if(Z)return Vd(Z,!1,A)}if(Qy(l)&&l.initializer){if(Xn(l)&&!io(l)){const U=Ez(l,Du(l),vj(l));if(U)return U}const I=yze(l,TW(l,D));return Vd(I,C,A)}if(ko(l)&&(Ae||Xn(l)))if(Gc(l)){const I=ti(l.parent.members,zl),U=I.length?Ete(l.symbol,I):Dh(l)&128?nEe(l.symbol):void 0;return U&&Vd(U,!0,A)}else{const I=qp(l.parent),U=I?gz(l.symbol,I):Dh(l)&128?nEe(l.symbol):void 0;return U&&Vd(U,!0,A)}if(sE(l))return du;if(So(l.name))return V9(l.name,!1,!0)}function mz(l){if(l.valueDeclaration&&eu(l.valueDeclaration)){const m=qr(l);return m.isConstructorDeclaredProperty===void 0&&(m.isConstructorDeclaredProperty=!1,m.isConstructorDeclaredProperty=!!Yw(l)&&ye(l.declarations,D=>eu(D)&&AEe(D)&&(D.left.kind!==212||Mm(D.left.argumentExpression))&&!k4(void 0,D,l,D))),m.isConstructorDeclaredProperty}return!1}function Zw(l){const m=l.valueDeclaration;return m&&ko(m)&&!m1(m)&&!m.initializer&&(Ae||Xn(m))}function Yw(l){if(l.declarations)for(const m of l.declarations){const D=tf(m,!1,!1);if(D&&(D.kind===176||SE(D)))return D}}function pz(l){const m=zn(l.declarations[0]),D=Qr(l.escapedName),C=l.declarations.every(w=>Xn(w)&&O0(w)&&Q_(w.expression)),A=C?q.createPropertyAccessExpression(q.createPropertyAccessExpression(q.createIdentifier("module"),q.createIdentifier("exports")),D):q.createPropertyAccessExpression(q.createIdentifier("exports"),D);return C&&ks(A.expression.expression,A.expression),ks(A.expression,A),ks(A,m),A.flowNode=m.endFlowNode,w6(A,ni,te)}function Ete(l,m){const D=Ma(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Qr(l.escapedName);for(const C of m){const A=q.createPropertyAccessExpression(q.createThis(),D);ks(A.expression,A),ks(A,C),A.flowNode=C.returnFlowNode;const w=Qm(A,l);if(Ae&&(w===ni||w===Mc)&>(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Sr(l),gn(w)),!t4(w,nie))return OW(w)}}function gz(l,m){const D=Ma(l.escapedName,"__#")?q.createPrivateIdentifier(l.escapedName.split("@")[1]):Qr(l.escapedName),C=q.createPropertyAccessExpression(q.createThis(),D);ks(C.expression,C),ks(C,m),C.flowNode=m.returnFlowNode;const A=Qm(C,l);return Ae&&(A===ni||A===Mc)&>(l.valueDeclaration,F.Member_0_implicitly_has_an_1_type,Sr(l),gn(A)),t4(A,nie)?void 0:OW(A)}function Qm(l,m){const D=(m==null?void 0:m.valueDeclaration)&&(!Zw(m)||Dh(m.valueDeclaration)&128)&&nEe(m)||te;return w6(l,ni,D)}function ED(l,m){const D=l7(l.valueDeclaration);if(D){const U=Xn(D)?vv(D):void 0;return U&&U.typeExpression?Br(U.typeExpression):l.valueDeclaration&&Ez(l.valueDeclaration,l,D)||Rb(jc(D))}let C,A=!1,w=!1;if(mz(l)&&(C=gz(l,Yw(l))),!C){let U;if(l.declarations){let Z;for(const ce of l.declarations){const Fe=eu(ce)||Mo(ce)?ce:O0(ce)?eu(ce.parent)?ce.parent:ce:void 0;if(!Fe)continue;const Te=O0(Fe)?kj(Fe):ec(Fe);(Te===4||eu(Fe)&&AEe(Fe,Te))&&(Ic(Fe)?A=!0:w=!0),Mo(Fe)||(Z=k4(Z,Fe,l,ce)),Z||(U||(U=[])).push(eu(Fe)||Mo(Fe)?Qw(l,m,Fe,Te):Wu)}C=Z}if(!C){if(!S(U))return Ot;let Z=A&&l.declarations?m6(U,l.declarations):void 0;if(w){const Fe=nEe(l);Fe&&((Z||(Z=[])).push(Fe),A=!0)}const ce=Ge(Z,Fe=>!!(Fe.flags&-98305))?Z:U;C=tr(ce)}}const I=vm(Vd(C,!1,w&&!A));return l.valueDeclaration&&Xn(l.valueDeclaration)&&Oc(I,U=>!!(U.flags&-98305))===Wu?(NC(l.valueDeclaration,me),me):I}function Ez(l,m,D){var C,A;if(!Xn(l)||!D||!ys(D)||D.properties.length)return;const w=Ho();for(;eu(l)||Ru(l);){const Z=Dm(l);(C=Z==null?void 0:Z.exports)!=null&&C.size&&pE(w,Z.exports),l=eu(l)?l.parent:l.parent.parent}const I=Dm(l);(A=I==null?void 0:I.exports)!=null&&A.size&&pE(w,I.exports);const U=Ol(m,w,Dt,Dt,Dt);return U.objectFlags|=4096,U}function k4(l,m,D,C){var A;const w=m1(m.parent);if(w){const I=vm(Br(w));if(l)!Nt(l)&&!Nt(I)&&!CD(l,I)&&d4t(void 0,l,C,I);else return I}if((A=D.parent)!=null&&A.valueDeclaration){const I=m1(D.parent.valueDeclaration);if(I){const U=Zo(Br(I),D.escapedName);if(U)return E6(U)}}return l}function Qw(l,m,D,C){if(Mo(D)){if(m)return Wn(m);const I=jc(D.arguments[2]),U=he(I,"value");if(U)return U;const Z=he(I,"get");if(Z){const Fe=wF(Z);if(Fe)return Ys(Fe)}const ce=he(I,"set");if(ce){const Fe=wF(ce);if(Fe)return pze(Fe)}return me}if(zs(D.left,D.right))return me;const A=C===1&&(Ru(D.left)||q0(D.left))&&(Q_(D.left.expression)||at(D.left.expression)&&uk(D.left.expression)),w=m?Wn(m):A?$h(jc(D.right)):Rb(jc(D.right));if(w.flags&524288&&C===2&&l.escapedName==="export="){const I=Ag(w),U=Ho();YU(I.members,U);const Z=U.size;m&&!m.exports&&(m.exports=Ho()),(m||l).exports.forEach((Fe,Te)=>{var $e;const ut=U.get(Te);if(ut&&ut!==Fe&&!(Fe.flags&2097152))if(Fe.flags&111551&&ut.flags&111551){if(Fe.valueDeclaration&&ut.valueDeclaration&&zn(Fe.valueDeclaration)!==zn(ut.valueDeclaration)){const gi=Qr(Fe.escapedName),Wi=(($e=ar(ut.valueDeclaration,gh))==null?void 0:$e.name)||ut.valueDeclaration;Es(gt(Fe.valueDeclaration,F.Duplicate_identifier_0,gi),Tu(Wi,F._0_was_also_declared_here,gi)),Es(gt(Wi,F.Duplicate_identifier_0,gi),Tu(Fe.valueDeclaration,F._0_was_also_declared_here,gi))}const zt=Ks(Fe.flags|ut.flags,Te);zt.links.type=tr([Wn(Fe),Wn(ut)]),zt.valueDeclaration=ut.valueDeclaration,zt.declarations=mi(ut.declarations,Fe.declarations),U.set(Te,zt)}else U.set(Te,ap(Fe,ut));else U.set(Te,Fe)});const ce=Ol(Z!==U.size?void 0:I.symbol,U,I.callSignatures,I.constructSignatures,I.indexInfos);if(Z===U.size&&(w.aliasSymbol&&(ce.aliasSymbol=w.aliasSymbol,ce.aliasTypeArguments=w.aliasTypeArguments),Ju(w)&4)){ce.aliasSymbol=w.symbol;const Fe=V0(w);ce.aliasTypeArguments=S(Fe)?Fe:void 0}return ce.objectFlags|=Ju(w)&4096,ce.symbol&&ce.symbol.flags&32&&w===F4(ce.symbol)&&(ce.objectFlags|=16777216),ce}return rEe(w)?(NC(D,ql),ql):w}function zs(l,m){return Ru(l)&&l.expression.kind===110&&rM(m,D=>b1(l,D))}function Ic(l){const m=tf(l,!1,!1);return m.kind===176||m.kind===262||m.kind===218&&!Fj(m.parent)}function m6(l,m){return H.assert(l.length===m.length),l.filter((D,C)=>{const A=m[C],w=eu(A)?A:eu(A.parent)?A.parent:void 0;return w&&Ic(w)})}function hF(l,m,D){if(l.initializer){const C=So(l.name)?V9(l.name,!0,!1):on;return Vd(yze(l,TW(l,0,C)))}return So(l.name)?V9(l.name,m,D):(D&&!ke(l)&&NC(l,me),m?$i:me)}function _te(l,m,D){const C=Ho();let A,w=131200;L(l.elements,U=>{const Z=U.propertyName||U.name;if(U.dotDotDotToken){A=k_(ct,me,!1);return}const ce=j5(Z);if(!X4(ce)){w|=512;return}const Fe=ep(ce),Te=4|(U.initializer?16777216:0),$e=Ks(Te,Fe);$e.links.type=hF(U,m,D),$e.links.bindingElement=U,C.set($e.escapedName,$e)});const I=Ol(void 0,C,Dt,Dt,A?[A]:Dt);return I.objectFlags|=w,m&&(I.pattern=l,I.objectFlags|=131072),I}function v_(l,m,D){const C=l.elements,A=Zu(C),w=A&&A.kind===208&&A.dotDotDotToken?A:void 0;if(C.length===0||C.length===1&&w)return Ce>=2?l1t(me):ql;const I=Vt(C,Fe=>Fd(Fe)?me:hF(Fe,m,D)),U=Ze(C,Fe=>!(Fe===w||Fd(Fe)||Iz(Fe)),C.length-1)+1,Z=Vt(C,(Fe,Te)=>Fe===w?4:Te>=U?2:1);let ce=Bg(I,Z);return m&&(ce=Wdt(ce),ce.pattern=l,ce.objectFlags|=131072),ce}function V9(l,m=!1,D=!1){return l.kind===206?_te(l,m,D):v_(l,m,D)}function N(l,m){return ee(gD(l,!0,0),l,m)}function W(l){const m=Dm(l),D=xei(!1);return D&&m&&m===D}function ee(l,m,D){return l?(l.flags&4096&&W(m.parent)&&(l=PPe(m)),D&&mEe(m,l),l.flags&8192&&(Vs(m)||!m.type)&&l.symbol!==Du(m)&&(l=er),vm(l)):(l=io(m)&&m.dotDotDotToken?ql:me,D&&(ke(m)||NC(m,l)),l)}function ke(l){const m=e_(l),D=m.kind===169?m.parent:m;return Die(D)}function dt(l){const m=m1(l);if(m)return Br(m)}function Si(l){let m=l.valueDeclaration;return m?(Vs(m)&&(m=S8(m)),io(m)?Zge(m.parent):!1):!1}function au(l){const m=qr(l);if(!m.type){const D=Ia(l);return!m.type&&!Si(l)&&(m.type=D),D}return m.type}function Ia(l){if(l.flags&4194304)return QK(l);if(l===ei)return me;if(l.flags&134217728&&l.valueDeclaration){const C=Du(zn(l.valueDeclaration)),A=Ks(C.flags,"exports");A.declarations=C.declarations?C.declarations.slice():[],A.parent=l,A.links.target=C,C.valueDeclaration&&(A.valueDeclaration=C.valueDeclaration),C.members&&(A.members=new Map(C.members)),C.exports&&(A.exports=new Map(C.exports));const w=Ho();return w.set("exports",A),Ol(l,w,Dt,Dt,Dt)}H.assertIsDefined(l.valueDeclaration);const m=l.valueDeclaration;if(ca(m)&&J4(m))return m.statements.length?vm(Rb(Fa(m.statements[0].expression))):Wo;if(wx(m))return CC(l);if(!x_(l,0))return l.flags&512&&!(l.flags&67108864)?_z(l):Xw(l);let D;if(m.kind===277)D=ee(dt(m)||jc(m.expression),m);else if(eu(m)||Xn(m)&&(Mo(m)||(Ru(m)||Fq(m))&&eu(m.parent)))D=ED(l);else if(Ru(m)||q0(m)||at(m)||i0(m)||Of(m)||Jc(m)||td(m)||hc(m)&&!Ip(m)||u3(m)||ca(m)){if(l.flags&9136)return _z(l);D=eu(m.parent)?ED(l):dt(m)||me}else if(Uc(m))D=dt(m)||Imt(m);else if(sE(m))D=dt(m)||vft(m);else if(pm(m))D=dt(m)||jz(m.name,0);else if(Ip(m))D=dt(m)||Rmt(m,0);else if(io(m)||ko(m)||zm(m)||ra(m)||Vs(m)||GO(m))D=N(m,!0);else if(Rv(m))D=_z(l);else if($2(m))D=Cge(l);else return H.fail("Unhandled declaration kind! "+H.formatSyntaxKind(m.kind)+" for "+H.formatSymbol(l));return bE()?D:l.flags&512&&!(l.flags&67108864)?_z(l):Xw(l)}function n0(l){if(l)switch(l.kind){case 177:return Z4(l);case 178:return Bye(l);case 172:return H.assert(tE(l)),m1(l)}}function Xm(l){const m=n0(l);return m&&Br(m)}function p6(l){const m=uIe(l);return m&&m.symbol}function g6(l){return FC(fp(l))}function CC(l){const m=qr(l);if(!m.type){if(!x_(l,0))return Ot;const D=Bl(l,177),C=Bl(l,178),A=ar(Bl(l,172),ef);let w=D&&Xn(D)&&Zp(D)||Xm(D)||Xm(C)||Xm(A)||D&&D.body&&WEe(D)||A&&A.initializer&&N(A,!0);w||(C&&!Die(C)?D4(Ae,C,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation,Sr(l)):D&&!Die(D)?D4(Ae,D,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation,Sr(l)):A&&!Die(A)&&D4(Ae,A,F.Member_0_implicitly_has_an_1_type,Sr(l),"any"),w=me),bE()||(n0(D)?gt(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)):n0(C)||n0(A)?gt(C,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)):D&&Ae&>(D,F._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,Sr(l)),w=me),m.type=w}return m.type}function vge(l){const m=qr(l);if(!m.writeType){if(!x_(l,8))return Ot;const D=Bl(l,178)??ar(Bl(l,172),ef);let C=Xm(D);bE()||(n0(D)&>(D,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)),C=me),m.writeType=C||CC(l)}return m.writeType}function fF(l){const m=Yc(F4(l));return m.flags&8650752?m:m.flags&2097152?Le(m.types,D=>!!(D.flags&8650752)):void 0}function _z(l){let m=qr(l);const D=m;if(!m.type){const C=l.valueDeclaration&&HEe(l.valueDeclaration,!1);if(C){const A=lze(l,C);A&&(l=A,m=A.links)}D.type=m.type=MNe(l)}return m.type}function MNe(l){const m=l.valueDeclaration;if(l.flags&1536&&UN(l))return me;if(m&&(m.kind===226||O0(m)&&m.parent.kind===226))return ED(l);if(l.flags&512&&m&&ca(m)&&m.commonJsModuleIndicator){const C=_m(l);if(C!==l){if(!x_(l,0))return Ot;const A=Ws(l.exports.get("export=")),w=ED(A,A===C?void 0:C);return bE()?w:Xw(l)}}const D=C4(16,l);if(l.flags&32){const C=fF(l);return C?Ds([D,C]):D}else return fe&&l.flags&16777216?S6(D,!0):D}function Cge(l){const m=qr(l);return m.type||(m.type=ldt(l))}function Dte(l){const m=qr(l);if(!m.type){if(!x_(l,0))return Ot;const D=md(l),C=l.declarations&&x4(op(l),!0),A=G(C==null?void 0:C.declarations,w=>ic(w)?dt(w):void 0);if(m.type=C!=null&&C.declarations&&a_e(C.declarations)&&l.declarations.length?pz(C):a_e(l.declarations)?ni:A||(j1(D)&111551?Wn(D):Ot),!bE())return Xw(C??l),m.type=Ot}return m.type}function zNe(l){const m=qr(l);return m.type||(m.type=Da(Wn(m.target),m.mapper))}function bge(l){const m=qr(l);return m.writeType||(m.writeType=Da(mF(m.target),m.mapper))}function Xw(l){const m=l.valueDeclaration;if(m){if(m1(m))return gt(l.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation,Sr(l)),Ot;Ae&&(m.kind!==169||m.initializer)&>(l.valueDeclaration,F._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer,Sr(l))}else if(l.flags&2097152){const D=op(l);D&>(D,F.Circular_definition_of_import_alias_0,Sr(l))}return me}function yge(l){const m=qr(l);return m.type||(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.type=m.deferralParent.flags&1048576?tr(m.deferralConstituents):Ds(m.deferralConstituents)),m.type}function INe(l){const m=qr(l);return!m.writeType&&m.deferralWriteConstituents&&(H.assertIsDefined(m.deferralParent),H.assertIsDefined(m.deferralConstituents),m.writeType=m.deferralParent.flags&1048576?tr(m.deferralWriteConstituents):Ds(m.deferralWriteConstituents)),m.writeType}function mF(l){const m=Gl(l);return l.flags&4?m&2?m&65536?INe(l)||yge(l):l.links.writeType||l.links.type:B6(Wn(l),!!(l.flags&16777216)):l.flags&98304?m&1?bge(l):vge(l):Wn(l)}function Wn(l){const m=Gl(l);return m&65536?yge(l):m&1?zNe(l):m&262144?OXt(l):m&8192?Xii(l):l.flags&7?au(l):l.flags&9136?_z(l):l.flags&8?Cge(l):l.flags&98304?CC(l):l.flags&2097152?Dte(l):Ot}function E6(l){return B6(Wn(l),!!(l.flags&16777216))}function bC(l,m){return l!==void 0&&m!==void 0&&(Ju(l)&4)!==0&&l.target===m}function eT(l){return Ju(l)&4?l.target:l}function H9(l,m){return D(l);function D(C){if(Ju(C)&7){const A=eT(C);return A===m||Ge(Qc(A),D)}else if(C.flags&2097152)return Ge(C.types,D);return!1}}function Bb(l,m){for(const D of m)l=t0(l,gF(Du(D)));return l}function Dz(l,m){for(;;){if(l=l.parent,l&&eu(l)){const D=ec(l);if(D===6||D===3){const C=Du(l.left);C&&C.parent&&!Tn(C.parent.valueDeclaration,A=>l===A)&&(l=C.parent.valueDeclaration)}}if(!l)return;switch(l.kind){case 263:case 231:case 264:case 179:case 180:case 173:case 184:case 185:case 324:case 262:case 174:case 218:case 219:case 265:case 352:case 353:case 347:case 345:case 200:case 194:{const C=Dz(l,m);if(l.kind===200)return Di(C,gF(Du(l.typeParameter)));if(l.kind===194)return mi(C,M1t(l));const A=Bb(C,Sx(l)),w=m&&(l.kind===263||l.kind===231||l.kind===264||SE(l))&&F4(Du(l)).thisType;return w?Di(A,w):A}case 348:const D=Lj(l);D&&(l=D.valueDeclaration);break;case 327:{const C=Dz(l,m);return l.tags?Bb(C,Vu(l.tags,A=>_g(A)?A.typeParameters:void 0)):C}}}}function wb(l){var m;const D=l.flags&32||l.flags&16?l.valueDeclaration:(m=l.declarations)==null?void 0:m.find(C=>{if(C.kind===264)return!0;if(C.kind!==260)return!1;const A=C.initializer;return!!A&&(A.kind===218||A.kind===219)});return H.assert(!!D,"Class was missing valueDeclaration -OR- non-class had no interface declarations"),Dz(D)}function sn(l){if(!l.declarations)return;let m;for(const D of l.declarations)(D.kind===264||D.kind===263||D.kind===231||SE(D)||Bj(D))&&(m=Bb(m,Sx(D)));return m}function Xu(l){return mi(wb(l),sn(l))}function Ku(l){const m=Eo(l,1);if(m.length===1){const D=m[0];if(!D.typeParameters&&D.parameters.length===1&&ih(D)){const C=die(D.parameters[0]);return nt(C)||ZPe(C)===me}}return!1}function jr(l){if(Eo(l,1).length>0)return!0;if(l.flags&8650752){const m=Gh(l);return!!m&&Ku(m)}return!1}function Kr(l){const m=tD(l.symbol);return m&&Xg(m)}function Os(l,m,D){const C=S(m),A=Xn(D);return ti(Eo(l,1),w=>(A||C>=y_(w.typeParameters))&&C<=S(w.typeParameters))}function x0(l,m,D){const C=Os(l,m,D),A=Vt(m,Br);return Pu(C,w=>Ge(w.typeParameters)?aW(w,A,Xn(D)):w)}function Yc(l){if(!l.resolvedBaseConstructorType){const m=tD(l.symbol),D=m&&Xg(m),C=Kr(l);if(!C)return l.resolvedBaseConstructorType=te;if(!x_(l,1))return Ot;const A=Fa(C.expression);if(D&&C!==D&&(H.assert(!D.typeArguments),Fa(D.expression)),A.flags&2621440&&Ag(A),!bE())return gt(l.symbol.valueDeclaration,F._0_is_referenced_directly_or_indirectly_in_its_own_base_expression,Sr(l.symbol)),l.resolvedBaseConstructorType=Ot;if(!(A.flags&1)&&A!==Ct&&!jr(A)){const w=gt(C.expression,F.Type_0_is_not_a_constructor_function_type,gn(A));if(A.flags&262144){const I=Cz(A);let U=on;if(I){const Z=Eo(I,1);Z[0]&&(U=Ys(Z[0]))}A.symbol.declarations&&Es(w,Tu(A.symbol.declarations[0],F.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1,Sr(A.symbol),gn(U)))}return l.resolvedBaseConstructorType=Ot}l.resolvedBaseConstructorType=A}return l.resolvedBaseConstructorType}function _D(l){let m=Dt;if(l.symbol.declarations)for(const D of l.symbol.declarations){const C=iB(D);if(C)for(const A of C){const w=Br(A);Nt(w)||(m===Dt?m=[w]:m.push(w))}}return m}function C_(l,m){gt(l,F.Type_0_recursively_references_itself_as_a_base_type,gn(m,void 0,2))}function Qc(l){if(!l.baseTypesResolved){if(x_(l,7)&&(l.objectFlags&8?l.resolvedBaseTypes=[z5(l)]:l.symbol.flags&96?(l.symbol.flags&32&&XK(l),l.symbol.flags&64&&pXt(l)):H.fail("type must be class or interface"),!bE()&&l.symbol.declarations))for(const m of l.symbol.declarations)(m.kind===263||m.kind===264)&&C_(m,l);l.baseTypesResolved=!0}return l.resolvedBaseTypes}function z5(l){const m=Pu(l.typeParameters,(D,C)=>l.elementFlags[C]&8?qf(D,Qt):D);return H1(tr(m||Dt),l.readonly)}function XK(l){l.resolvedBaseTypes=xZ;const m=Jh(Yc(l));if(!(m.flags&2621441))return l.resolvedBaseTypes=Dt;const D=Kr(l);let C;const A=m.symbol?el(m.symbol):void 0;if(m.symbol&&m.symbol.flags&32&&tT(A))C=Gdt(D,m.symbol);else if(m.flags&1)C=m;else{const I=x0(m,D.typeArguments,D);if(!I.length)return gt(D.expression,F.No_base_constructor_has_the_specified_number_of_type_arguments),l.resolvedBaseTypes=Dt;C=Ys(I[0])}if(Nt(C))return l.resolvedBaseTypes=Dt;const w=Sg(C);if(!pF(w)){const I=XNe(void 0,C),U=ro(I,F.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members,gn(w));return Hs.add(Y3(zn(D.expression),D.expression,U)),l.resolvedBaseTypes=Dt}return l===w||H9(w,l)?(gt(l.symbol.valueDeclaration,F.Type_0_recursively_references_itself_as_a_base_type,gn(l,void 0,2)),l.resolvedBaseTypes=Dt):(l.resolvedBaseTypes===xZ&&(l.members=void 0),l.resolvedBaseTypes=[w])}function tT(l){const m=l.outerTypeParameters;if(m){const D=m.length-1,C=V0(l);return m[D].symbol!==C[D].symbol}return!0}function pF(l){if(l.flags&262144){const m=Gh(l);if(m)return pF(m)}return!!(l.flags&67633153&&!e4(l)||l.flags&2097152&&ye(l.types,pF))}function pXt(l){if(l.resolvedBaseTypes=l.resolvedBaseTypes||Dt,l.symbol.declarations){for(const m of l.symbol.declarations)if(m.kind===264&&aP(m))for(const D of aP(m)){const C=Sg(Br(D));Nt(C)||(pF(C)?l!==C&&!H9(C,l)?l.resolvedBaseTypes===Dt?l.resolvedBaseTypes=[C]:l.resolvedBaseTypes.push(C):C_(m,l):gt(D,F.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members))}}}function gXt(l){if(!l.declarations)return!0;for(const m of l.declarations)if(m.kind===264){if(m.flags&256)return!1;const D=aP(m);if(D){for(const C of D)if(tc(C.expression)){const A=j0(C.expression,788968,!0);if(!A||!(A.flags&64)||F4(A).thisType)return!1}}}return!0}function F4(l){let m=qr(l);const D=m;if(!m.declaredType){const C=l.flags&32?1:2,A=lze(l,l.valueDeclaration&&Xri(l.valueDeclaration));A&&(l=A,m=A.links);const w=D.declaredType=m.declaredType=C4(C,l),I=wb(l),U=sn(l);(I||U||C===1||!gXt(l))&&(w.objectFlags|=4,w.typeParameters=mi(I,U),w.outerTypeParameters=I,w.localTypeParameters=U,w.instantiations=new Map,w.instantiations.set(mp(w.typeParameters),w),w.target=w,w.resolvedTypeArguments=w.typeParameters,w.thisType=V1(l),w.thisType.isThisType=!0,w.thisType.constraint=w)}return m.declaredType}function adt(l){var m;const D=qr(l);if(!D.declaredType){if(!x_(l,2))return Ot;const C=H.checkDefined((m=l.declarations)==null?void 0:m.find(Bj),"Type alias symbol with no valid declaration found"),A=$4(C)?C.typeExpression:C.type;let w=A?Br(A):Ot;if(bE()){const I=sn(l);I&&(D.typeParameters=I,D.instantiations=new Map,D.instantiations.set(mp(I),w))}else w=Ot,C.kind===347?gt(C.typeExpression.type,F.Type_alias_0_circularly_references_itself,Sr(l)):gt(gh(C)&&C.name||C,F.Type_alias_0_circularly_references_itself,Sr(l));D.declaredType=w}return D.declaredType}function kge(l){return l.flags&1056&&l.symbol.flags&8?el(cf(l.symbol)):l}function odt(l){const m=qr(l);if(!m.declaredType){const D=[];if(l.declarations){for(const A of l.declarations)if(A.kind===266){for(const w of A.members)if(iT(w)){const I=Du(w),U=VW(w),Z=Z9(U!==void 0?Pti(U,Yo(l),I):sdt(I));qr(I).declaredType=Z,D.push($h(Z))}}}const C=D.length?tr(D,1,l,void 0):sdt(l);C.flags&1048576&&(C.flags|=1024,C.symbol=l),m.declaredType=C}return m.declaredType}function sdt(l){const m=N5(32,l),D=N5(32,l);return m.regularType=m,m.freshType=D,D.regularType=m,D.freshType=D,m}function ldt(l){const m=qr(l);if(!m.declaredType){const D=odt(cf(l));m.declaredType||(m.declaredType=D)}return m.declaredType}function gF(l){const m=qr(l);return m.declaredType||(m.declaredType=V1(l))}function EXt(l){const m=qr(l);return m.declaredType||(m.declaredType=el(md(l)))}function el(l){return cdt(l)||Ot}function cdt(l){if(l.flags&96)return F4(l);if(l.flags&524288)return adt(l);if(l.flags&262144)return gF(l);if(l.flags&384)return odt(l);if(l.flags&8)return ldt(l);if(l.flags&2097152)return EXt(l)}function xte(l){switch(l.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 xte(l.elementType);case 183:return!l.typeArguments||l.typeArguments.every(xte)}return!1}function _Xt(l){const m=w8(l);return!m||xte(m)}function ddt(l){const m=m1(l);return m?xte(m):!Nx(l)}function DXt(l){const m=Z4(l),D=Sx(l);return(l.kind===176||!!m&&xte(m))&&l.parameters.every(ddt)&&D.every(_Xt)}function xXt(l){if(l.declarations&&l.declarations.length===1){const m=l.declarations[0];if(m)switch(m.kind){case 172:case 171:return ddt(m);case 174:case 173:case 176:case 177:case 178:return DXt(m)}}return!1}function hdt(l,m,D){const C=Ho();for(const A of l)C.set(A.escapedName,D&&xXt(A)?A:zPe(A,m));return C}function fdt(l,m){for(const D of m){if(mdt(D))continue;const C=l.get(D.escapedName);(!C||C.valueDeclaration&&eu(C.valueDeclaration)&&!mz(C)&&!uye(C.valueDeclaration))&&(l.set(D.escapedName,D),l.set(D.escapedName,D))}}function mdt(l){return!!l.valueDeclaration&&Eh(l.valueDeclaration)&&No(l.valueDeclaration)}function RNe(l){if(!l.declaredProperties){const m=l.symbol,D=_6(m);l.declaredProperties=Sb(D),l.declaredCallSignatures=Dt,l.declaredConstructSignatures=Dt,l.declaredIndexInfos=Dt,l.declaredCallSignatures=Tb(D.get("__call")),l.declaredConstructSignatures=Tb(D.get("__new")),l.declaredIndexInfos=Vdt(m)}return l}function ONe(l){if(!Ms(l)&&!q0(l))return!1;const m=Ms(l)?l.expression:l.argumentExpression;return tc(m)&&X4(Ms(l)?A3(l):jc(m))}function eW(l){return l.charCodeAt(0)===95&&l.charCodeAt(1)===95&&l.charCodeAt(2)===64}function vte(l){const m=Ya(l);return!!m&&ONe(m)}function iT(l){return!Ix(l)||vte(l)}function vXt(l){return Pq(l)&&!ONe(l)}function CXt(l,m,D){H.assert(!!(Gl(l)&4096),"Expected a late-bound symbol."),l.flags|=D,qr(m.symbol).lateSymbol=l,l.declarations?m.symbol.isReplaceableByMethod||l.declarations.push(m):l.declarations=[m],D&111551&&(!l.valueDeclaration||l.valueDeclaration.kind!==m.kind)&&(l.valueDeclaration=m)}function pdt(l,m,D,C){H.assert(!!C.symbol,"The member is expected to have a symbol.");const A=sr(C);if(!A.resolvedSymbol){A.resolvedSymbol=C.symbol;const w=eu(C)?C.left:C.name,I=q0(w)?jc(w.argumentExpression):A3(w);if(X4(I)){const U=ep(I),Z=C.symbol.flags;let ce=D.get(U);ce||D.set(U,ce=Ks(0,U,4096));const Fe=m&&m.get(U);if(!(l.flags&32)&&(ce.flags&eF(Z)||Fe)){const Te=Fe?mi(Fe.declarations,ce.declarations):ce.declarations,$e=!(I.flags&8192)&&Qr(U)||k0(w);L(Te,ut=>gt(Ya(ut)||ut,F.Property_0_was_also_declared_here,$e)),gt(w||C,F.Duplicate_property_0,$e),ce=Ks(0,U,4096)}return ce.links.nameType=I,CXt(ce,C,Z),ce.parent?H.assert(ce.parent===l,"Existing symbol parent should match new one"):ce.parent=l,A.resolvedSymbol=ce}}return A.resolvedSymbol}function jNe(l,m){var D,C,A;const w=qr(l);if(!w[m]){const I=m==="resolvedExports",U=I?l.flags&1536?R9(l).exports:l.exports:l.members;w[m]=U||se;const Z=Ho();for(const Te of l.declarations||Dt){const $e=Zbe(Te);if($e)for(const ut of $e)I===Gc(ut)&&vte(ut)&&pdt(l,U,Z,ut)}const ce=(((D=l.valueDeclaration)==null?void 0:D.kind)===219||((C=l.valueDeclaration)==null?void 0:C.kind)===218)&&((A=Dm(l.valueDeclaration.parent))==null?void 0:A.assignmentDeclarationMembers)||l.assignmentDeclarationMembers;if(ce){const Te=Ea(ce.values());for(const $e of Te){const ut=ec($e),zt=ut===3||eu($e)&&AEe($e,ut)||ut===9||ut===6;I===!zt&&vte($e)&&pdt(l,U,Z,$e)}}let Fe=tF(U,Z);if(l.flags&33554432&&w.cjsExportMerged&&l.declarations)for(const Te of l.declarations){const $e=qr(Te.symbol)[m];if(!Fe){Fe=$e;continue}$e&&$e.forEach((ut,zt)=>{const gi=Fe.get(zt);if(!gi)Fe.set(zt,ut);else{if(gi===ut)return;Fe.set(zt,ap(gi,ut))}})}w[m]=Fe||se}return w[m]}function _6(l){return l.flags&6256?jNe(l,"resolvedMembers"):l.members||se}function Fge(l){if(l.flags&106500&&l.escapedName==="__computed"){const m=qr(l);if(!m.lateSymbol&&Ge(l.declarations,vte)){const D=Ws(l.parent);Ge(l.declarations,Gc)?$f(D):_6(D)}return m.lateSymbol||(m.lateSymbol=l)}return l}function xm(l,m,D){if(Ju(l)&4){const C=l.target,A=V0(l);return S(C.typeParameters)===S(A)?R5(C,mi(A,[m||C.thisType])):l}else if(l.flags&2097152){const C=Pu(l.types,A=>xm(A,m,D));return C!==l.types?Ds(C):l}return D?Jh(l):l}function gdt(l,m,D,C){let A,w,I,U,Z;zi(D,C,0,D.length)?(w=m.symbol?_6(m.symbol):Ho(m.declaredProperties),I=m.declaredCallSignatures,U=m.declaredConstructSignatures,Z=m.declaredIndexInfos):(A=Sf(D,C),w=hdt(m.declaredProperties,A,D.length===1),I=Gge(m.declaredCallSignatures,A),U=Gge(m.declaredConstructSignatures,A),Z=V1t(m.declaredIndexInfos,A));const ce=Qc(m);if(ce.length){if(m.symbol&&w===_6(m.symbol)){const Te=Ho();for(const $e of w.values())$e.flags&262144||Te.set($e.escapedName,$e);w=Te}b4(l,w,I,U,Z);const Fe=Zu(C);for(const Te of ce){const $e=Fe?xm(Da(Te,A),Fe):Te;fdt(w,u0($e)),I=mi(I,Eo($e,0)),U=mi(U,Eo($e,1));const ut=$e!==me?Ah($e):[k_(ct,me,!1)];Z=mi(Z,ti(ut,zt=>!ePe(Z,zt.keyType)))}}b4(l,w,I,U,Z)}function bXt(l){gdt(l,RNe(l),Dt,Dt)}function yXt(l){const m=RNe(l.target),D=mi(m.typeParameters,[m.thisType]),C=V0(l),A=C.length===D.length?C:mi(C,[l]);gdt(l,m,D,A)}function k3(l,m,D,C,A,w,I,U){const Z=new B(Pi,U);return Z.declaration=l,Z.typeParameters=m,Z.parameters=C,Z.thisParameter=D,Z.resolvedReturnType=A,Z.resolvedTypePredicate=w,Z.minArgumentCount=I,Z.resolvedMinArgumentCount=void 0,Z.target=void 0,Z.mapper=void 0,Z.compositeSignatures=void 0,Z.compositeKind=void 0,Z}function tW(l){const m=k3(l.declaration,l.typeParameters,l.thisParameter,l.parameters,void 0,void 0,l.minArgumentCount,l.flags&167);return m.target=l.target,m.mapper=l.mapper,m.compositeSignatures=l.compositeSignatures,m.compositeKind=l.compositeKind,m}function Edt(l,m){const D=tW(l);return D.compositeSignatures=m,D.compositeKind=1048576,D.target=void 0,D.mapper=void 0,D}function kXt(l,m){if((l.flags&24)===m)return l;l.optionalCallSignatureCache||(l.optionalCallSignatureCache={});const D=m===8?"inner":"outer";return l.optionalCallSignatureCache[D]||(l.optionalCallSignatureCache[D]=FXt(l,m))}function FXt(l,m){H.assert(m===8||m===16,"An optional call signature can either be for an inner call chain or an outer call chain, but not both.");const D=tW(l);return D.flags|=m,D}function _dt(l,m){if(ih(l)){const A=l.parameters.length-1,w=l.parameters[A].escapedName,I=Wn(l.parameters[A]);if(xs(I))return[D(I,A,w)];if(!m&&I.flags&1048576&&ye(I.types,xs))return Vt(I.types,U=>D(U,A,w))}return[l.parameters];function D(A,w,I){const U=V0(A),Z=C(A,I),ce=Vt(U,(Fe,Te)=>{const $e=Z&&Z[Te]?Z[Te]:Rz(l,w+Te,A),ut=A.target.elementFlags[Te],zt=ut&12?32768:ut&2?16384:0,gi=Ks(1,$e,zt);return gi.links.type=ut&4?H1(Fe):Fe,gi});return mi(l.parameters.slice(0,w),ce)}function C(A,w){const I=new Map;return Vt(A.target.labeledElementDeclarations,(U,Z)=>{const ce=mze(U,Z,w),Fe=I.get(ce);return Fe===void 0?(I.set(ce,1),ce):(I.set(ce,Fe+1),`${ce}_${Fe}`)})}}function AXt(l){const m=Yc(l),D=Eo(m,1),C=tD(l.symbol),A=!!C&&Qu(C,64);if(D.length===0)return[k3(void 0,l.localTypeParameters,void 0,Dt,l,void 0,0,A?4:0)];const w=Kr(l),I=Xn(w),U=Ate(w),Z=S(U),ce=[];for(const Fe of D){const Te=y_(Fe.typeParameters),$e=S(Fe.typeParameters);if(I||Z>=Te&&Z<=$e){const ut=$e?Bge(Fe,x6(U,Fe.typeParameters,Te,I)):tW(Fe);ut.typeParameters=l.localTypeParameters,ut.resolvedReturnType=l,ut.flags=A?ut.flags|4:ut.flags&-5,ce.push(ut)}}return ce}function VNe(l,m,D,C,A){for(const w of l)if(jte(w,m,D,C,A,D?Xti:fW))return w}function SXt(l,m,D){if(m.typeParameters){if(D>0)return;for(let A=1;A1&&(D=D===void 0?C:-1);for(const A of l[C])if(!m||!VNe(m,A,!1,!1,!0)){const w=SXt(l,A,C);if(w){let I=A;if(w.length>1){let U=A.thisParameter;const Z=L(w,ce=>ce.thisParameter);if(Z){const ce=Ds(qi(w,Fe=>Fe.thisParameter&&Wn(Fe.thisParameter)));U=CF(Z,ce)}I=Edt(A,w),I.thisParameter=U}(m||(m=[])).push(I)}}}if(!S(m)&&D!==-1){const C=l[D!==void 0?D:0];let A=C.slice();for(const w of l)if(w!==C){const I=w[0];if(H.assert(!!I,"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass"),A=I.typeParameters&&Ge(A,U=>!!U.typeParameters&&!Ddt(I.typeParameters,U.typeParameters))?void 0:Vt(A,U=>TXt(U,I)),!A)break}m=A}return m||Dt}function Ddt(l,m){if(S(l)!==S(m))return!1;if(!l||!m)return!0;const D=Sf(m,l);for(let C=0;C=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=A_(l)||A_(m),ce=Z&&!A_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=BE(w)&&Te>=BE(I),dn=Te>=C?void 0:Rz(l,Te),nu=Te>=A?void 0:Rz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ri=Ks(1|(Wi&&!gi?16777216:0),En||`arg${Te}`,gi?32768:Wi?16384:0);Ri.links.type=gi?H1(zt):zt,Fe[Te]=Ri}if(ce){const Te=Ks(1,"args",32768);Te.links.type=H1(Lg(I,U)),I===m&&(Te.links.type=Da(Te.links.type,D)),Fe[U]=Te}return Fe}function TXt(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=wXt(l,m,C),I=BXt(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=k3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=1048576,Z.compositeSignatures=mi(l.compositeKind!==2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind!==2097152&&l.mapper&&l.compositeSignatures?TC(l.mapper,C):C),Z}function xdt(l){const m=Ah(l[0]);if(m){const D=[];for(const C of m){const A=C.keyType;ye(l,w=>!!F3(w,A))&&D.push(k_(A,tr(Vt(l,w=>kC(w,A))),Ge(l,w=>F3(w,A).isReadonly)))}return D}return Dt}function LXt(l){const m=HNe(Vt(l.types,A=>A===di?[fn]:Eo(A,0))),D=HNe(Vt(l.types,A=>Eo(A,1))),C=xdt(l.types);b4(l,se,m,D,C)}function Cte(l,m){return l?m?Ds([l,m]):l:m}function vdt(l){const m=ui(l,C=>Eo(C,1).length>0),D=Vt(l,Ku);if(m>0&&m===ui(D,C=>C)){const C=D.indexOf(!0);D[C]=!1}return D}function NXt(l,m,D,C){const A=[];for(let w=0;wU);for(let U=0;U0&&(ce=Vt(ce,Fe=>{const Te=tW(Fe);return Te.resolvedReturnType=NXt(Ys(Fe),A,w,U),Te})),D=Cdt(D,ce)}m=Cdt(m,Eo(Z,0)),C=nn(Ah(Z),(ce,Fe)=>bdt(ce,Fe,!1),C)}b4(l,se,m||Dt,D||Dt,C||Dt)}function Cdt(l,m){for(const D of m)(!l||ye(l,C=>!jte(C,D,!1,!1,!1,fW)))&&(l=Di(l,D));return l}function bdt(l,m,D){if(l)for(let C=0;C{var Z;!(U.flags&418)&&!(U.flags&512&&((Z=U.declarations)!=null&&Z.length)&&ye(U.declarations,P1))&&I.set(U.escapedName,U)}),D=I}let A;if(b4(l,D,Dt,Dt,Dt),m.flags&32){const I=F4(m),U=Yc(I);U.flags&11272192?(D=Ho(Jw(D)),fdt(D,u0(U))):U===me&&(A=k_(ct,me,!1))}const w=wge(D);if(w?C=oPe(w):(A&&(C=Di(C,A)),m.flags&384&&(el(m).flags&32||Ge(l.properties,I=>!!(Wn(I).flags&296)))&&(C=Di(C,Nu))),b4(l,D,Dt,Dt,C||Dt),m.flags&8208&&(l.callSignatures=Tb(m)),m.flags&32){const I=F4(m);let U=m.members?Tb(m.members.get("__constructor")):Dt;m.flags&16&&(U=yn(U.slice(),qi(l.callSignatures,Z=>SE(Z.declaration)?k3(Z.declaration,Z.typeParameters,Z.thisParameter,Z.parameters,I,void 0,Z.minArgumentCount,Z.flags&167):void 0))),U.length||(U=AXt(I)),l.constructSignatures=U}}function zXt(l,m,D){return Da(l,Sf([m.indexType,m.objectType],[wg(0),Bg([D])]))}function IXt(l){const m=F3(l.source,ct),D=b_(l.mappedType),C=!(D&1),A=D&4?0:16777216,w=m?[k_(ct,gEe(m.type,l.mappedType,l.constraintType),C&&m.isReadonly)]:Dt,I=Ho();for(const U of u0(l.source)){const Z=8192|(C&&Ng(U)?8:0),ce=Ks(4|U.flags&A,U.escapedName,Z);if(ce.declarations=U.declarations,ce.links.nameType=qr(U).nameType,ce.links.propertyType=Wn(U),l.constraintType.type.flags&8388608&&l.constraintType.type.objectType.flags&262144&&l.constraintType.type.indexType.flags&262144){const Fe=l.constraintType.type.objectType,Te=zXt(l.mappedType,l.constraintType.type,Fe);ce.links.mappedType=Te,ce.links.constraintType=F_(Fe)}else ce.links.mappedType=l.mappedType,ce.links.constraintType=l.constraintType;I.set(U.escapedName,ce)}b4(l,I,Dt,Dt,w)}function bte(l){if(l.flags&4194304){const m=Jh(l.type);return K5(m)?f1t(m):F_(m)}if(l.flags&16777216){if(l.root.isDistributive){const m=l.checkType,D=bte(m);if(D!==m)return OPe(l,Y9(l.root.checkType,D,l.mapper))}return l}if(l.flags&1048576)return ml(l,bte,!0);if(l.flags&2097152){const m=l.types;return m.length===2&&m[0].flags&76&&m[1]===Pc?l:Ds(Pu(l.types,bte))}return l}function KNe(l){return Gl(l)&4096}function WNe(l,m,D,C){for(const A of u0(l))C(kz(A,m));if(l.flags&1)C(ct);else for(const A of Ah(l))(!D||A.keyType.flags&134217732)&&C(A.keyType)}function RXt(l){const m=Ho();let D;b4(l,se,Dt,Dt,Dt);const C=Fg(l),A=hp(l),w=l.target||l,I=I5(w),U=!I||Fdt(w),Z=DD(w),ce=Jh(K9(l)),Fe=b_(l),Te=Je?128:8576;iW(l)?WNe(ce,Te,Je,$e):FF(bte(A),$e),b4(l,m,Dt,Dt,D||Dt);function $e(zt){const gi=I?Da(I,hW(l.mapper,C,zt)):zt;FF(gi,Wi=>ut(zt,Wi))}function ut(zt,gi){if(X4(gi)){const Wi=ep(gi),dn=m.get(Wi);if(dn)dn.links.nameType=tr([dn.links.nameType,gi]),dn.links.keyType=tr([dn.links.keyType,zt]);else{const nu=X4(zt)?Zo(ce,ep(zt)):void 0,En=!!(Fe&4||!(Fe&8)&&nu&&nu.flags&16777216),Ri=!!(Fe&1||!(Fe&2)&&nu&&Ng(nu)),Nn=fe&&!En&&nu&&nu.flags&16777216,vn=nu?KNe(nu):0,An=Ks(4|(En?16777216:0),Wi,vn|262144|(Ri?8:0)|(Nn?524288:0));An.links.mappedType=l,An.links.nameType=gi,An.links.keyType=zt,nu&&(An.links.syntheticOrigin=nu,An.declarations=U?nu.declarations:void 0),m.set(Wi,An)}}else if(Tge(gi)||gi.flags&33){const Wi=gi.flags&5?ct:gi.flags&40?Qt:gi,dn=Da(Z,hW(l.mapper,C,zt)),nu=uW(ce,gi),En=!!(Fe&1||!(Fe&2)&&(nu!=null&&nu.isReadonly)),Ri=k_(Wi,dn,En);D=bdt(D,Ri,!0)}}}function OXt(l){if(!l.links.type){const m=l.links.mappedType;if(!x_(l,0))return m.containsError=!0,Ot;const D=DD(m.target||m),C=hW(m.mapper,Fg(m),l.links.keyType),A=Da(D,C);let w=fe&&l.flags&16777216&&!jl(A,49152)?S6(A,!0):l.links.checkFlags&524288?dEe(A):A;bE()||(gt(K,F.Type_of_property_0_circularly_references_itself_in_mapped_type_1,Sr(l),gn(m)),w=Ot),l.links.type=w}return l.links.type}function Fg(l){return l.typeParameter||(l.typeParameter=gF(Du(l.declaration.typeParameter)))}function hp(l){return l.constraintType||(l.constraintType=ah(Fg(l))||Ot)}function I5(l){return l.declaration.nameType?l.nameType||(l.nameType=Da(Br(l.declaration.nameType),l.mapper)):void 0}function DD(l){return l.templateType||(l.templateType=l.declaration.type?Da(Vd(Br(l.declaration.type),!0,!!(b_(l)&4)),l.mapper):Ot)}function ydt(l){return w8(l.declaration.typeParameter)}function iW(l){const m=ydt(l);return m.kind===198&&m.operator===143}function K9(l){if(!l.modifiersType)if(iW(l))l.modifiersType=Da(Br(ydt(l).type),l.mapper);else{const m=BPe(l.declaration),D=hp(m),C=D&&D.flags&262144?ah(D):D;l.modifiersType=C&&C.flags&4194304?Da(C.type,l.mapper):on}return l.modifiersType}function b_(l){const m=l.declaration;return(m.readonlyToken?m.readonlyToken.kind===41?2:1:0)|(m.questionToken?m.questionToken.kind===41?8:4:0)}function kdt(l){const m=b_(l);return m&8?-1:m&4?1:0}function GNe(l){const m=kdt(l),D=K9(l);return m||(e4(D)?kdt(D):0)}function jXt(l){return!!(Ju(l)&32&&b_(l)&4)}function e4(l){if(Ju(l)&32){const m=hp(l);if(SC(m))return!0;const D=I5(l);if(D&&SC(Da(D,zb(Fg(l),m))))return!0}return!1}function Fdt(l){const m=I5(l);return!!m&&ms(m,Fg(l))}function Ag(l){return l.members||(l.flags&524288?l.objectFlags&4?yXt(l):l.objectFlags&3?bXt(l):l.objectFlags&1024?IXt(l):l.objectFlags&16?MXt(l):l.objectFlags&32?RXt(l):H.fail("Unhandled object type "+H.formatObjectFlags(l.objectFlags)):l.flags&1048576?LXt(l):l.flags&2097152?PXt(l):H.fail("Unhandled type "+H.formatTypeFlags(l.flags))),l}function D6(l){return l.flags&524288?Ag(l).properties:Dt}function yC(l,m){if(l.flags&524288){const C=Ag(l).members.get(m);if(C&&l6(C))return C}}function yte(l){if(!l.resolvedProperties){const m=Ho();for(const D of l.types){for(const C of u0(D))if(!m.has(C.escapedName)){const A=YNe(l,C.escapedName);A&&m.set(C.escapedName,A)}if(l.flags&1048576&&Ah(D).length===0)break}l.resolvedProperties=Sb(m)}return l.resolvedProperties}function u0(l){return l=xz(l),l.flags&3145728?yte(l):D6(l)}function VXt(l,m){l=xz(l),l.flags&3670016&&Ag(l).members.forEach((D,C)=>{sF(D,C)&&m(D,C)})}function HXt(l,m){return m.properties.some(C=>{const A=C.name&&(gg(C.name)?df(lV(C.name)):j5(C.name)),w=A&&X4(A)?ep(A):void 0,I=w===void 0?void 0:he(l,w);return!!I&&gW(I)&&!ms(tS(C),I)})}function KXt(l){const m=tr(l);if(!(m.flags&1048576))return Yze(m);const D=Ho();for(const C of l)for(const{escapedName:A}of Yze(C))if(!D.has(A)){const w=Tdt(m,A);w&&D.set(A,w)}return Ea(D.values())}function EF(l){return l.flags&262144?ah(l):l.flags&8388608?WXt(l):l.flags&16777216?Bdt(l):Gh(l)}function ah(l){return nW(l)?Cz(l):void 0}function W9(l,m=0){var D;return m<5&&!!(l&&(l.flags&262144&&Ge((D=l.symbol)==null?void 0:D.declarations,C=>Qu(C,4096))||l.flags&3145728&&Ge(l.types,C=>W9(C,m))||l.flags&8388608&&W9(l.objectType,m+1)||l.flags&16777216&&W9(Bdt(l),m+1)||l.flags&33554432&&W9(l.baseType,m)||K5(l)&&Ue(AC(l),(C,A)=>!!(l.target.elementFlags[A]&8)&&W9(C,m))>=0))}function WXt(l){return nW(l)?GXt(l):void 0}function JNe(l){const m=vD(l,!1);return m!==l?m:EF(l)}function GXt(l){if(ZNe(l)||e4(l.objectType))return Oge(l.objectType,l.indexType);const m=JNe(l.indexType);if(m&&m!==l.indexType){const C=b6(l.objectType,m,l.accessFlags);if(C)return C}const D=JNe(l.objectType);if(D&&D!==l.objectType)return b6(D,l.indexType,l.accessFlags)}function $Ne(l){if(!l.resolvedDefaultConstraint){const m=Sti(l),D=wC(l);l.resolvedDefaultConstraint=nt(m)?D:nt(D)?m:tr([m,D])}return l.resolvedDefaultConstraint}function Adt(l){if(l.resolvedConstraintOfDistributive!==void 0)return l.resolvedConstraintOfDistributive||void 0;if(l.root.isDistributive&&l.restrictiveInstantiation!==l){const m=vD(l.checkType,!1),D=m===l.checkType?EF(m):m;if(D&&D!==l.checkType){const C=OPe(l,Y9(l.root.checkType,D,l.mapper));if(!(C.flags&131072))return l.resolvedConstraintOfDistributive=C,C}}l.resolvedConstraintOfDistributive=!1}function Sdt(l){return Adt(l)||$Ne(l)}function Bdt(l){return nW(l)?Sdt(l):void 0}function JXt(l,m){let D,C=!1;for(const A of l)if(A.flags&465829888){let w=EF(A);for(;w&&w.flags&21233664;)w=EF(w);w&&(D=Di(D,w),m&&(D=Di(D,A)))}else(A.flags&469892092||yD(A))&&(C=!0);if(D&&(m||C)){if(C)for(const A of l)(A.flags&469892092||yD(A))&&(D=Di(D,A));return Ite(Ds(D),!1)}}function Gh(l){if(l.flags&464781312||K5(l)){const m=UNe(l);return m!==fl&&m!==Zc?m:void 0}return l.flags&4194304?bc:void 0}function xD(l){return Gh(l)||l}function nW(l){return UNe(l)!==Zc}function UNe(l){if(l.resolvedBaseConstraint)return l.resolvedBaseConstraint;const m=[];return l.resolvedBaseConstraint=D(l);function D(w){if(!w.immediateBaseConstraint){if(!x_(w,4))return Zc;let I;const U=uEe(w);if((m.length<10||m.length<50&&!kt(m,U))&&(m.push(U),I=A(vD(w,!1)),m.pop()),!bE()){if(w.flags&262144){const Z=sPe(w);if(Z){const ce=gt(Z,F.Type_parameter_0_has_a_circular_constraint,gn(w));K&&!B2(Z,K)&&!B2(K,Z)&&Es(ce,Tu(K,F.Circularity_originates_in_type_at_this_location))}}I=Zc}w.immediateBaseConstraint=I||fl}return w.immediateBaseConstraint}function C(w){const I=D(w);return I!==fl&&I!==Zc?I:void 0}function A(w){if(w.flags&262144){const I=Cz(w);return w.isThisType||!I?I:C(I)}if(w.flags&3145728){const I=w.types,U=[];let Z=!1;for(const ce of I){const Fe=C(ce);Fe?(Fe!==ce&&(Z=!0),U.push(Fe)):Z=!0}return Z?w.flags&1048576&&U.length===I.length?tr(U):w.flags&2097152&&U.length?Ds(U):void 0:w}if(w.flags&4194304)return bc;if(w.flags&134217728){const I=w.types,U=qi(I,C);return U.length===I.length?xF(w.texts,U):ct}if(w.flags&268435456){const I=C(w.type);return I&&I!==w.type?$9(w.symbol,I):ct}if(w.flags&8388608){if(ZNe(w))return C(Oge(w.objectType,w.indexType));const I=C(w.objectType),U=C(w.indexType),Z=I&&U&&b6(I,U,w.accessFlags);return Z&&C(Z)}if(w.flags&16777216){const I=Sdt(w);return I&&C(I)}if(w.flags&33554432)return C(dPe(w));if(K5(w)){const I=Vt(AC(w),(U,Z)=>{const ce=U.flags&262144&&w.target.elementFlags[Z]&8&&C(U)||U;return ce!==U&&t4(ce,Fe=>Ib(Fe)&&!K5(Fe))?ce:U});return Bg(I,w.target.elementFlags,w.target.readonly,w.target.labeledElementDeclarations)}return w}}function $Xt(l,m){return l.resolvedApparentType||(l.resolvedApparentType=xm(l,m,!0))}function qNe(l){if(l.default)l.default===yh&&(l.default=Zc);else if(l.target){const m=qNe(l.target);l.default=m?Da(m,l.mapper):fl}else{l.default=yh;const m=l.symbol&&L(l.symbol.declarations,C=>wl(C)&&C.default),D=m?Br(m):fl;l.default===yh&&(l.default=D)}return l.default}function _F(l){const m=qNe(l);return m!==fl&&m!==Zc?m:void 0}function UXt(l){return qNe(l)!==Zc}function wdt(l){return!!(l.symbol&&L(l.symbol.declarations,m=>wl(m)&&m.default))}function qXt(l){return l.resolvedApparentType||(l.resolvedApparentType=ZXt(l))}function ZXt(l){const m=Uge(l);if(m&&!l.declaration.nameType){const D=ah(m);if(D&&t4(D,Ib))return Da(l,Y9(m,D,l.mapper))}return l}function ZNe(l){let m;return!!(l.flags&8388608&&Ju(m=l.objectType)&32&&!e4(m)&&SC(l.indexType)&&!(b_(m)&8)&&!m.declaration.nameType)}function Jh(l){const m=l.flags&465829888?Gh(l)||on:l,D=Ju(m);return D&32?qXt(m):D&4&&m!==l?xm(m,l):m.flags&2097152?$Xt(m,l):m.flags&402653316?uc:m.flags&296?mc:m.flags&2112?Nei():m.flags&528?bl:m.flags&12288?u1t():m.flags&67108864?Wo:m.flags&4194304?bc:m.flags&2&&!fe?Wo:m}function xz(l){return Sg(Jh(Sg(l)))}function Tdt(l,m,D){var C,A,w;let I,U,Z;const ce=l.flags&1048576;let Fe,Te=4,$e=ce?0:8,ut=!1;for(const An of l.types){const _n=Jh(An);if(!(Nt(_n)||_n.flags&131072)){const hu=Zo(_n,m,D),oo=hu?h4(hu):0;if(hu){if(hu.flags&106500&&(Fe??(Fe=ce?0:16777216),ce?Fe|=hu.flags&16777216:Fe&=hu.flags),!I)I=hu;else if(hu!==I)if((_T(hu)||hu)===(_T(I)||I)&&qPe(I,hu,(mo,Aa)=>mo===Aa?-1:0)===-1)ut=!!I.parent&&!!S(sn(I.parent));else{U||(U=new Map,U.set(Yo(I),I));const mo=Yo(hu);U.has(mo)||U.set(mo,hu)}ce&&Ng(hu)?$e|=8:!ce&&!Ng(hu)&&($e&=-9),$e|=(oo&6?0:256)|(oo&4?512:0)|(oo&2?1024:0)|(oo&256?2048:0),JMe(hu)||(Te=2)}else if(ce){const _o=!eW(m)&&G9(_n,m);_o?($e|=32|(_o.isReadonly?8:0),Z=Di(Z,xs(_n)?oEe(_n)||te:_o.type)):MC(_n)&&!(Ju(_n)&2097152)?($e|=32,Z=Di(Z,te)):$e|=16}}}if(!I||ce&&(U||$e&48)&&$e&1536&&!(U&&YXt(U.values())))return;if(!U&&!($e&16)&&!Z)if(ut){const An=(C=ar(I,ZE))==null?void 0:C.links,_n=CF(I,An==null?void 0:An.type);return _n.parent=(w=(A=I.valueDeclaration)==null?void 0:A.symbol)==null?void 0:w.parent,_n.links.containingType=l,_n.links.mapper=An==null?void 0:An.mapper,_n}else return I;const zt=U?Ea(U.values()):[I];let gi,Wi,dn;const nu=[];let En,Ri,Nn=!1;for(const An of zt){Ri?An.valueDeclaration&&An.valueDeclaration!==Ri&&(Nn=!0):Ri=An.valueDeclaration,gi=yn(gi,An.declarations);const _n=Wn(An);Wi||(Wi=_n,dn=qr(An).nameType);const hu=mF(An);(En||hu!==_n)&&(En=Di(En||nu.slice(),hu)),_n!==Wi&&($e|=64),(gW(_n)||U9(_n))&&($e|=128),_n.flags&131072&&_n!==Cl&&($e|=131072),nu.push(_n)}yn(nu,Z);const vn=Ks(4|(Fe??0),m,Te|$e);return vn.links.containingType=l,!Nn&&Ri&&(vn.valueDeclaration=Ri,Ri.symbol.parent&&(vn.parent=Ri.symbol.parent)),vn.declarations=gi,vn.links.nameType=dn,nu.length>2?(vn.links.checkFlags|=65536,vn.links.deferralParent=l,vn.links.deferralConstituents=nu,vn.links.deferralWriteConstituents=En):(vn.links.type=ce?tr(nu):Ds(nu),En&&(vn.links.writeType=ce?tr(En):Ds(En))),vn}function Ldt(l,m,D){var C,A;let w=(C=l.propertyCacheWithoutObjectFunctionPropertyAugment)!=null&&C.get(m)||!D?(A=l.propertyCache)==null?void 0:A.get(m):void 0;return w||(w=Tdt(l,m,D),w&&(D?l.propertyCacheWithoutObjectFunctionPropertyAugment||(l.propertyCacheWithoutObjectFunctionPropertyAugment=Ho()):l.propertyCache||(l.propertyCache=Ho())).set(m,w)),w}function YXt(l){let m;for(const D of l){if(!D.declarations)return;if(!m){m=new Set(D.declarations);continue}if(m.forEach(C=>{kt(D.declarations,C)||m.delete(C)}),m.size===0)return}return m}function YNe(l,m,D){const C=Ldt(l,m,D);return C&&!(Gl(C)&16)?C:void 0}function Sg(l){return l.flags&1048576&&l.objectFlags&16777216?l.resolvedReducedType||(l.resolvedReducedType=QXt(l)):l.flags&2097152?(l.objectFlags&16777216||(l.objectFlags|=16777216|(Ge(yte(l),XXt)?33554432:0)),l.objectFlags&33554432?Wu:l):l}function QXt(l){const m=Pu(l.types,Sg);if(m===l.types)return l;const D=tr(m);return D.flags&1048576&&(D.resolvedReducedType=D),D}function XXt(l){return Ndt(l)||Pdt(l)}function Ndt(l){return!(l.flags&16777216)&&(Gl(l)&131264)===192&&!!(Wn(l).flags&131072)}function Pdt(l){return!l.valueDeclaration&&!!(Gl(l)&1024)}function QNe(l){return!!(l.flags&1048576&&l.objectFlags&16777216&&Ge(l.types,QNe)||l.flags&2097152&&eei(l))}function eei(l){const m=l.uniqueLiteralFilledInstantiation||(l.uniqueLiteralFilledInstantiation=Da(l,ho));return Sg(m)!==m}function XNe(l,m){if(m.flags&2097152&&Ju(m)&33554432){const D=Le(yte(m),Ndt);if(D)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents,gn(m,void 0,536870912),Sr(D));const C=Le(yte(m),Pdt);if(C)return ro(l,F.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some,gn(m,void 0,536870912),Sr(C))}return l}function Zo(l,m,D,C){if(l=xz(l),l.flags&524288){const A=Ag(l),w=A.members.get(m);if(w&&l6(w,C))return w;if(D)return;const I=A===Oi?di:A.callSignatures.length?Mn:A.constructSignatures.length?ka:void 0;if(I){const U=yC(I,m);if(U)return U}return yC(Ve,m)}if(l.flags&3145728)return YNe(l,m,D)}function kte(l,m){if(l.flags&3670016){const D=Ag(l);return m===0?D.callSignatures:D.constructSignatures}return Dt}function Eo(l,m){const D=kte(xz(l),m);if(m===0&&!S(D)&&l.flags&1048576){if(l.arrayFallbackSignatures)return l.arrayFallbackSignatures;let C;if(t4(l,A=>{var w;return!!((w=A.symbol)!=null&&w.parent)&&tei(A.symbol.parent)&&(C?C===A.symbol.escapedName:(C=A.symbol.escapedName,!0))})){const A=ml(l,I=>k6((Mdt(I.symbol.parent)?To:Fo).typeParameters[0],I.mapper)),w=H1(A,kE(l,I=>Mdt(I.symbol.parent)));return l.arrayFallbackSignatures=Eo(he(w,C),m)}l.arrayFallbackSignatures=D}return D}function tei(l){return!l||!Fo.symbol||!To.symbol?!1:!!Ym(l,Fo.symbol)||!!Ym(l,To.symbol)}function Mdt(l){return!l||!To.symbol?!1:!!Ym(l,To.symbol)}function ePe(l,m){return Le(l,D=>D.keyType===m)}function tPe(l,m){let D,C,A;for(const w of l)w.keyType===ct?D=w:nT(m,w.keyType)&&(C?(A||(A=[C])).push(w):C=w);return A?k_(on,Ds(Vt(A,w=>w.type)),nn(A,(w,I)=>w&&I.isReadonly,!0)):C||(D&&nT(m,ct)?D:void 0)}function nT(l,m){return ms(l,m)||m===ct&&ms(l,Qt)||m===Qt&&(l===Ul||!!(l.flags&128)&&n3(l.value))}function iPe(l){return l.flags&3670016?Ag(l).indexInfos:Dt}function Ah(l){return iPe(xz(l))}function F3(l,m){return ePe(Ah(l),m)}function kC(l,m){var D;return(D=F3(l,m))==null?void 0:D.type}function nPe(l,m){return Ah(l).filter(D=>nT(m,D.keyType))}function uW(l,m){return tPe(Ah(l),m)}function G9(l,m){return uW(l,eW(m)?er:df(Qr(m)))}function zdt(l){var m;let D;for(const C of Sx(l))D=t0(D,gF(C.symbol));return D!=null&&D.length?D:td(l)?(m=vz(l))==null?void 0:m.typeParameters:void 0}function uPe(l){const m=[];return l.forEach((D,C)=>{_C(C)||m.push(D)}),m}function Age(l,m){if(Id(l))return;const D=kf(Ie,'"'+l+'"',512);return D&&m?Ws(D):D}function rW(l){if(d7(l)||oV(l)||sV(l))return!0;if(l.initializer){const D=fp(l.parent),C=l.parent.parameters.indexOf(l);return H.assert(C>=0),C>=BE(D,3)}const m=nk(l.parent);return m?!l.type&&!l.dotDotDotToken&&l.parent.parameters.indexOf(l)>=jEe(m).length:!1}function iei(l){return ko(l)&&!tE(l)&&l.questionToken}function Fte(l,m,D,C){return{kind:l,parameterName:m,parameterIndex:D,type:C}}function y_(l){let m=0;if(l)for(let D=0;D=D&&w<=A){const I=l?l.slice():[];for(let Z=w;ZU.arguments.length&&!Wi||sV(zt)||(A=D.length)}if((l.kind===177||l.kind===178)&&iT(l)&&(!I||!w)){const ut=l.kind===177?178:177,zt=Bl(Du(l),ut);zt&&(w=p6(zt))}if(Xn(l)){const ut=PU(l);ut&&ut.typeExpression&&(w=CF(Ks(1,"this"),Br(ut.typeExpression)))}const Fe=jv(l)?ok(l):l,Te=Fe&&fc(Fe)?F4(Ws(Fe.parent.symbol)):void 0,$e=Te?Te.localTypeParameters:zdt(l);(a0e(l)||Xn(l)&&nei(l,D))&&(C|=1),(GP(l)&&Qu(l,64)||fc(l)&&Qu(l.parent,64))&&(C|=4),m.resolvedSignature=k3(l,$e,w,D,void 0,void 0,A,C)}return m.resolvedSignature}function nei(l,m){if(jv(l)||!rPe(l))return!1;const D=Zu(l.parameters),C=D?B8(D):bv(l).filter(Eg),A=G(C,I=>I.typeExpression&&EY(I.typeExpression.type)?I.typeExpression.type:void 0),w=Ks(3,"args",32768);return A?w.links.type=H1(Br(A.type)):(w.links.checkFlags|=65536,w.links.deferralParent=Wu,w.links.deferralConstituents=[ql],w.links.deferralWriteConstituents=[ql]),A&&m.pop(),m.push(w),!0}function vz(l){if(!(Xn(l)&&U0(l)))return;const m=vv(l);return(m==null?void 0:m.typeExpression)&&wF(Br(m.typeExpression))}function uei(l,m){const D=vz(l);if(!D)return;const C=l.parameters.indexOf(m);return m.dotDotDotToken?AW(D,C):Lg(D,C)}function rei(l){const m=vz(l);return m&&Ys(m)}function rPe(l){const m=sr(l);return m.containsArgumentsReference===void 0&&(m.flags&512?m.containsArgumentsReference=!0:m.containsArgumentsReference=D(l.body)),m.containsArgumentsReference;function D(C){if(!C)return!1;switch(C.kind){case 80:return C.escapedText===It.escapedName&&HW(C)===It;case 172:case 174:case 177:case 178:return C.name.kind===167&&D(C.name);case 211:case 212:return D(C.expression);case 303:return D(C.initializer);default:return!Z0e(C)&&!Z_(C)&&!!ao(C,D)}}}function Tb(l){if(!l||!l.declarations)return Dt;const m=[];for(let D=0;D0&&C.body){const A=l.declarations[D-1];if(C.parent===A.parent&&C.kind===A.kind&&C.pos===A.end)continue}if(Xn(C)&&C.jsDoc){let A=!1;for(const w of C.jsDoc)if(w.tags){for(const I of w.tags)if(NB(I)){const U=I.typeExpression;U.type===void 0&&!fc(C)&&NC(U,me),m.push(fp(U)),A=!0}}if(A)continue}m.push(!O2(C)&&!Ip(C)&&vz(C)||fp(C))}}return m}function Idt(l){const m=Wh(l,l);if(m){const D=_m(m);if(D)return Wn(D)}return me}function FC(l){if(l.thisParameter)return Wn(l.thisParameter)}function A4(l){if(!l.resolvedTypePredicate){if(l.target){const m=A4(l.target);l.resolvedTypePredicate=m?Kti(m,l.mapper):vt}else if(l.compositeSignatures)l.resolvedTypePredicate=iti(l.compositeSignatures,l.compositeKind)||vt;else{const m=l.declaration&&Z4(l.declaration);let D;if(!m){const C=vz(l.declaration);C&&l!==C&&(D=A4(C))}l.resolvedTypePredicate=m&&sY(m)?aei(m,l):D||vt}H.assert(!!l.resolvedTypePredicate)}return l.resolvedTypePredicate===vt?void 0:l.resolvedTypePredicate}function aei(l,m){const D=l.parameterName,C=l.type&&Br(l.type);return D.kind===197?Fte(l.assertsModifier?2:0,void 0,void 0,C):Fte(l.assertsModifier?3:1,D.escapedText,Ue(m.parameters,A=>A.escapedName===D.escapedText),C)}function Rdt(l,m,D){return m!==2097152?tr(l,D):Ds(l)}function Ys(l){if(!l.resolvedReturnType){if(!x_(l,3))return Ot;let m=l.target?Da(Ys(l.target),l.mapper):l.compositeSignatures?Da(Rdt(Vt(l.compositeSignatures,Ys),l.compositeKind,2),l.mapper):uT(l.declaration)||(Xl(l.declaration.body)?me:WEe(l.declaration));if(l.flags&8?m=Dht(m):l.flags&16&&(m=S6(m)),!bE()){if(l.declaration){const D=Z4(l.declaration);if(D)gt(D,F.Return_type_annotation_circularly_references_itself);else if(Ae){const C=l.declaration,A=Ya(C);A?gt(A,F._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,k0(A)):gt(C,F.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)}}m=me}l.resolvedReturnType=m}return l.resolvedReturnType}function uT(l){if(l.kind===176)return F4(Ws(l.parent.symbol));const m=Z4(l);if(jv(l)){const D=nP(l);if(D&&fc(D.parent)&&!m)return F4(Ws(D.parent.parent.symbol))}if(X8(l))return Br(l.parameters[0].type);if(m)return Br(m);if(l.kind===177&&iT(l)){const D=Xn(l)&&Zp(l);if(D)return D;const C=Bl(Du(l),178),A=Xm(C);if(A)return A}return rei(l)}function Sge(l){return l.compositeSignatures&&Ge(l.compositeSignatures,Sge)||!l.resolvedReturnType&&vC(l,3)>=0}function oei(l){return Odt(l)||me}function Odt(l){if(ih(l)){const m=Wn(l.parameters[l.parameters.length-1]),D=xs(m)?oEe(m):m;return D&&kC(D,Qt)}}function aW(l,m,D,C){const A=aPe(l,x6(m,l.typeParameters,y_(l.typeParameters),D));if(C){const w=Uft(Ys(A));if(w){const I=tW(w);I.typeParameters=C;const U=tW(A);return U.resolvedReturnType=DF(I),U}}return A}function aPe(l,m){const D=l.instantiations||(l.instantiations=new Map),C=mp(m);let A=D.get(C);return A||D.set(C,A=Bge(l,m)),A}function Bge(l,m){return lT(l,sei(l,m),!0)}function sei(l,m){return Sf(l.typeParameters,m)}function oW(l){return l.typeParameters?l.erasedSignatureCache||(l.erasedSignatureCache=lei(l)):l}function lei(l){return lT(l,H1t(l.typeParameters),!0)}function cei(l){return l.typeParameters?l.canonicalSignatureCache||(l.canonicalSignatureCache=dei(l)):l}function dei(l){return aW(l,Vt(l.typeParameters,m=>m.target&&!ah(m.target)?m.target:m),Xn(l.declaration))}function hei(l){const m=l.typeParameters;if(m){if(l.baseSignatureCache)return l.baseSignatureCache;const D=H1t(m),C=Sf(m,Vt(m,w=>ah(w)||on));let A=Vt(m,w=>Da(w,C)||on);for(let w=0;w{Tge(A)&&!ePe(m,A)&&m.push(k_(A,D.type?Br(D.type):me,Rf(D,8),D))})}return m}return Dt}function Tge(l){return!!(l.flags&4108)||U9(l)||!!(l.flags&2097152)&&!Fz(l)&&Ge(l.types,Tge)}function sPe(l){return qi(ti(l.symbol&&l.symbol.declarations,wl),w8)[0]}function Hdt(l,m){var D;let C;if((D=l.symbol)!=null&&D.declarations){for(const A of l.symbol.declarations)if(A.parent.kind===195){const[w=A.parent,I]=Eye(A.parent.parent);if(I.kind===183&&!m){const U=I,Z=wze(U);if(Z){const ce=U.typeArguments.indexOf(w);if(ce()=>boi(U,Z,zt))),$e=Da(Fe,Te);$e!==l&&(C=Di(C,$e))}}}}else if(I.kind===169&&I.dotDotDotToken||I.kind===191||I.kind===202&&I.dotDotDotToken)C=Di(C,H1(on));else if(I.kind===204)C=Di(C,ct);else if(I.kind===168&&I.parent.kind===200)C=Di(C,bc);else if(I.kind===200&&I.type&&l0(I.type)===A.parent&&I.parent.kind===194&&I.parent.extendsType===I&&I.parent.checkType.kind===200&&I.parent.checkType.type){const U=I.parent.checkType,Z=Br(U.type);C=Di(C,Da(Z,zb(gF(Du(U.typeParameter)),U.typeParameter.constraint?Br(U.typeParameter.constraint):bc)))}}}return C&&Ds(C)}function Cz(l){if(!l.constraint)if(l.target){const m=ah(l.target);l.constraint=m?Da(m,l.mapper):fl}else{const m=sPe(l);if(!m)l.constraint=Hdt(l)||fl;else{let D=Br(m);D.flags&1&&!Nt(D)&&(D=m.parent.parent.kind===200?bc:on),l.constraint=D}}return l.constraint===fl?void 0:l.constraint}function Kdt(l){const m=Bl(l.symbol,168),D=_g(m.parent)?Bq(m.parent):m.parent;return D&&Dm(D)}function mp(l){let m="";if(l){const D=l.length;let C=0;for(;C1&&(m+=":"+w),C+=w}}return m}function J9(l,m){return l?`@${Yo(l)}`+(m?`:${mp(m)}`:""):""}function Lge(l,m){let D=0;for(const C of l)(m===void 0||!(C.flags&m))&&(D|=Ju(C));return D&458752}function rT(l,m){return Ge(m)&&l===Ga?on:R5(l,m)}function R5(l,m){const D=mp(m);let C=l.instantiations.get(D);return C||(C=C4(4,l.symbol),l.instantiations.set(D,C),C.objectFlags|=m?Lge(m):0,C.target=l,C.resolvedTypeArguments=m),C}function Wdt(l){const m=N5(l.flags,l.symbol);return m.objectFlags=l.objectFlags,m.target=l.target,m.resolvedTypeArguments=l.resolvedTypeArguments,m}function lPe(l,m,D,C,A){if(!C){C=q9(m);const I=sT(C);A=D?V5(I,D):I}const w=C4(4,l.symbol);return w.target=l,w.node=m,w.mapper=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function V0(l){var m,D;if(!l.resolvedTypeArguments){if(!x_(l,6))return((m=l.target.localTypeParameters)==null?void 0:m.map(()=>Ot))||Dt;const C=l.node,A=C?C.kind===183?mi(l.target.outerTypeParameters,UEe(C,l.target.localTypeParameters)):C.kind===188?[Br(C.elementType)]:Vt(C.elements,Br):Dt;bE()?l.resolvedTypeArguments=l.mapper?V5(A,l.mapper):A:(l.resolvedTypeArguments=((D=l.target.localTypeParameters)==null?void 0:D.map(()=>Ot))||Dt,gt(l.node||K,l.target.symbol?F.Type_arguments_for_0_circularly_reference_themselves:F.Tuple_type_arguments_circularly_reference_themselves,l.target.symbol&&Sr(l.target.symbol)))}return l.resolvedTypeArguments}function O5(l){return S(l.target.typeParameters)}function Gdt(l,m){const D=el(Ws(m)),C=D.localTypeParameters;if(C){const A=S(l.typeArguments),w=y_(C),I=Xn(l);if(!(!Ae&&I)&&(AC.length)){const ce=I&&c5(l)&&!LB(l.parent),Fe=w===C.length?ce?F.Expected_0_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_1_type_argument_s:ce?F.Expected_0_1_type_arguments_provide_these_with_an_extends_tag:F.Generic_type_0_requires_between_1_and_2_type_arguments,Te=gn(D,void 0,2);if(gt(l,Fe,Te,w,C.length),!I)return Ot}if(l.kind===183&&d1t(l,S(l.typeArguments)!==C.length))return lPe(D,l,void 0);const Z=mi(D.outerTypeParameters,x6(Ate(l),C,w,I));return R5(D,Z)}return Lb(l,m)?D:Ot}function aT(l,m,D,C){const A=el(l);if(A===Qi&&nQ.has(l.escapedName)&&m&&m.length===1)return $9(l,m[0]);const w=qr(l),I=w.typeParameters,U=mp(m)+J9(D,C);let Z=w.instantiations.get(U);return Z||w.instantiations.set(U,Z=G1t(A,Sf(I,x6(m,I,y_(I),Xn(l.valueDeclaration))),D,C)),Z}function fei(l,m){if(Gl(m)&1048576){const A=Ate(l),w=J9(m,A);let I=Et.get(w);return I||(I=zc(1,"error",void 0,`alias ${w}`),I.aliasSymbol=m,I.aliasTypeArguments=A,Et.set(w,I)),I}const D=el(m),C=qr(m).typeParameters;if(C){const A=S(l.typeArguments),w=y_(C);if(AC.length)return gt(l,w===C.length?F.Generic_type_0_requires_1_type_argument_s:F.Generic_type_0_requires_between_1_and_2_type_arguments,Sr(m),w,C.length),Ot;const I=q9(l);let U=I&&(Jdt(m)||!Jdt(I))?I:void 0,Z;if(U)Z=sT(U);else if(qU(l)){const ce=oT(l,2097152,!0);if(ce&&ce!==Xt){const Fe=md(ce);Fe&&Fe.flags&524288&&(U=Fe,Z=Ate(l)||(C?[]:void 0))}}return aT(m,Ate(l),U,Z)}return Lb(l,m)?D:Ot}function Jdt(l){var m;const D=(m=l.declarations)==null?void 0:m.find(Bj);return!!(D&&Pm(D))}function mei(l){switch(l.kind){case 183:return l.typeName;case 233:const m=l.expression;if(tc(m))return m}}function $dt(l){return l.parent?`${$dt(l.parent)}.${l.escapedName}`:l.escapedName}function Nge(l){const D=(l.kind===166?l.right:l.kind===211?l.name:l).escapedText;if(D){const C=l.kind===166?Nge(l.left):l.kind===211?Nge(l.expression):void 0,A=C?`${$dt(C)}.${D}`:D;let w=et.get(A);return w||(et.set(A,w=Ks(524288,D,1048576)),w.parent=C,w.links.declaredType=Ei),w}return Xt}function oT(l,m,D){const C=mei(l);if(!C)return Xt;const A=j0(C,m,D);return A&&A!==Xt?A:D?Xt:Nge(C)}function Pge(l,m){if(m===Xt)return Ot;if(m=L9(m)||m,m.flags&96)return Gdt(l,m);if(m.flags&524288)return fei(l,m);const D=cdt(m);if(D)return Lb(l,m)?$h(D):Ot;if(m.flags&111551&&Mge(l)){const C=pei(l,m);return C||(oT(l,788968),Wn(m))}return Ot}function pei(l,m){const D=sr(l);if(!D.resolvedJSDocType){const C=Wn(m);let A=C;if(m.valueDeclaration){const w=l.kind===205&&l.qualifier;C.symbol&&C.symbol!==m&&w&&(A=Pge(l,C.symbol))}D.resolvedJSDocType=A}return D.resolvedJSDocType}function cPe(l,m){if(m.flags&3||m===l||l.flags&1)return l;const D=`${Sh(l)}>${Sh(m)}`,C=Ta.get(D);if(C)return C;const A=dp(33554432);return A.baseType=l,A.constraint=m,Ta.set(D,A),A}function dPe(l){return Ds([l.constraint,l.baseType])}function Udt(l){return l.kind===189&&l.elements.length===1}function qdt(l,m,D){return Udt(m)&&Udt(D)?qdt(l,m.elements[0],D.elements[0]):y6(Br(m))===y6(l)?Br(D):void 0}function gei(l,m){let D,C=!0;for(;m&&!ua(m)&&m.kind!==327;){const A=m.parent;if(A.kind===169&&(C=!C),(C||l.flags&8650752)&&A.kind===194&&m===A.trueType){const w=qdt(l,A.checkType,A.extendsType);w&&(D=Di(D,w))}else if(l.flags&262144&&A.kind===200&&m===A.type){const w=Br(A);if(Fg(w)===y6(l)){const I=Uge(w);if(I){const U=ah(I);U&&t4(U,Ib)&&(D=Di(D,tr([Qt,Ul])))}}}m=A}return D?cPe(l,Ds(D)):l}function Mge(l){return!!(l.flags&16777216)&&(l.kind===183||l.kind===205)}function Lb(l,m){return l.typeArguments?(gt(l,F.Type_0_is_not_generic,m?Sr(m):l.typeName?k0(l.typeName):XY),!1):!0}function Zdt(l){if(at(l.typeName)){const m=l.typeArguments;switch(l.typeName.escapedText){case"String":return Lb(l),ct;case"Number":return Lb(l),Qt;case"Boolean":return Lb(l),Er;case"Void":return Lb(l),da;case"Undefined":return Lb(l),te;case"Null":return Lb(l),it;case"Function":case"function":return Lb(l),di;case"array":return(!m||!m.length)&&!Ae?ql:void 0;case"promise":return(!m||!m.length)&&!Ae?fie(me):void 0;case"Object":if(m&&m.length===2){if(Cq(l)){const D=Br(m[0]),C=Br(m[1]),A=D===ct||D===Qt?[k_(D,C,!1)]:Dt;return Ol(void 0,se,Dt,Dt,A)}return me}return Lb(l),Ae?void 0:me}}}function Eei(l){const m=Br(l.type);return fe?sEe(m,65536):m}function hPe(l){const m=sr(l);if(!m.resolvedType){if(q3(l)&&Yy(l.parent))return m.resolvedSymbol=Xt,m.resolvedType=jc(l.parent.expression);let D,C;const A=788968;Mge(l)&&(C=Zdt(l),C||(D=oT(l,A,!0),D===Xt?D=oT(l,A|111551):oT(l,A),C=Pge(l,D))),C||(D=oT(l,A),C=Pge(l,D)),m.resolvedSymbol=D,m.resolvedType=C}return m.resolvedType}function Ate(l){return Vt(l.typeArguments,Br)}function Ydt(l){const m=sr(l);if(!m.resolvedType){const D=mmt(l);m.resolvedType=$h(vm(D))}return m.resolvedType}function Qdt(l,m){function D(A){const w=A.declarations;if(w)for(const I of w)switch(I.kind){case 263:case 264:case 266:return I}}if(!l)return m?Ga:Wo;const C=el(l);return C.flags&524288?S(C.typeParameters)!==m?(gt(D(l),F.Global_type_0_must_have_1_type_parameter_s,cc(l),m),m?Ga:Wo):C:(gt(D(l),F.Global_type_0_must_be_a_class_or_interface_type,cc(l)),m?Ga:Wo)}function fPe(l,m){return bz(l,111551,m?F.Cannot_find_global_value_0:void 0)}function Xdt(l,m){return bz(l,788968,m?F.Cannot_find_global_type_0:void 0)}function zge(l,m,D){const C=bz(l,788968,D?F.Cannot_find_global_type_0:void 0);if(C&&(el(C),S(qr(C).typeParameters)!==m)){const A=C.declarations&&Le(C.declarations,Vp);gt(A,F.Global_type_0_must_have_1_type_parameter_s,cc(C),m);return}return C}function bz(l,m,D){return rc(void 0,l,m,D,l,!1,!1,!1)}function Rc(l,m,D){const C=Xdt(l,D);return C||D?Qdt(C,m):void 0}function _ei(){return d_||(d_=Rc("TypedPropertyDescriptor",1,!0)||Ga)}function Dei(){return In||(In=Rc("TemplateStringsArray",0,!0)||Wo)}function e1t(){return nr||(nr=Rc("ImportMeta",0,!0)||Wo)}function t1t(){if(!ur){const l=Ks(0,"ImportMetaExpression"),m=e1t(),D=Ks(4,"meta",8);D.parent=l,D.links.type=m;const C=Ho([D]);l.members=C,ur=Ol(l,C,Dt,Dt,Dt)}return ur}function i1t(l){return fa||(fa=Rc("ImportCallOptions",0,l))||Wo}function n1t(l){return Vh||(Vh=fPe("Symbol",l))}function xei(l){return g4||(g4=Xdt("SymbolConstructor",l))}function u1t(){return d3||(d3=Rc("Symbol",0,!1))||Wo}function Ste(l){return C5||(C5=Rc("Promise",1,l))||Ga}function r1t(l){return O1||(O1=Rc("PromiseLike",1,l))||Ga}function mPe(l){return h3||(h3=fPe("Promise",l))}function vei(l){return Wf||(Wf=Rc("PromiseConstructorLike",0,l))||Wo}function Ige(l){return Q||(Q=Rc("AsyncIterable",1,l))||Ga}function Cei(l){return Me||(Me=Rc("AsyncIterator",3,l))||Ga}function bei(l){return Tt||(Tt=Rc("AsyncIterableIterator",1,l))||Ga}function yei(l){return yi||(yi=Rc("AsyncGenerator",3,l))||Ga}function pPe(l){return E4||(E4=Rc("Iterable",1,l))||Ga}function kei(l){return Hh||(Hh=Rc("Iterator",3,l))||Ga}function Fei(l){return Ee||(Ee=Rc("IterableIterator",1,l))||Ga}function Aei(l){return wt||(wt=Rc("Generator",3,l))||Ga}function Sei(l){return _i||(_i=Rc("IteratorYieldResult",1,l))||Ga}function Bei(l){return vi||(vi=Rc("IteratorReturnResult",1,l))||Ga}function a1t(l){return ss||(ss=Rc("Disposable",0,l))||Wo}function wei(l){return ls||(ls=Rc("AsyncDisposable",0,l))||Wo}function o1t(l,m=0){const D=bz(l,788968,void 0);return D&&Qdt(D,m)}function Tei(){return Rl||(Rl=zge("Extract",2,!0)||Xt),Rl===Xt?void 0:Rl}function Lei(){return v1||(v1=zge("Omit",2,!0)||Xt),v1===Xt?void 0:v1}function gPe(l){return fd||(fd=zge("Awaited",1,l)||(l?Xt:void 0)),fd===Xt?void 0:fd}function Nei(){return Um||(Um=Rc("BigInt",0,!1))||Wo}function Pei(l){return qm??(qm=Rc("ClassDecoratorContext",1,l))??Ga}function Mei(l){return f3??(f3=Rc("ClassMethodDecoratorContext",2,l))??Ga}function zei(l){return h_??(h_=Rc("ClassGetterDecoratorContext",2,l))??Ga}function Iei(l){return ia??(ia=Rc("ClassSetterDecoratorContext",2,l))??Ga}function Rei(l){return Xx??(Xx=Rc("ClassAccessorDecoratorContext",2,l))??Ga}function Oei(l){return e6??(e6=Rc("ClassAccessorDecoratorTarget",2,l))??Ga}function jei(l){return bg??(bg=Rc("ClassAccessorDecoratorResult",2,l))??Ga}function Vei(l){return lb??(lb=Rc("ClassFieldDecoratorContext",2,l))??Ga}function Hei(){return _s||(_s=fPe("NaN",!1))}function Kei(){return rp||(rp=zge("Record",2,!0)||Xt),rp===Xt?void 0:rp}function sW(l,m){return l!==Ga?R5(l,m):Wo}function s1t(l){return sW(_ei(),[l])}function l1t(l){return sW(pPe(!0),[l])}function H1(l,m){return sW(m?To:Fo,[l])}function EPe(l){switch(l.kind){case 190:return 2;case 191:return c1t(l);case 202:return l.questionToken?2:l.dotDotDotToken?c1t(l):1;default:return 1}}function c1t(l){return Lte(l.type)?4:8}function Wei(l){const m=$ei(l.parent);if(Lte(l))return m?To:Fo;const C=Vt(l.elements,EPe);return _Pe(C,m,Vt(l.elements,Gei))}function Gei(l){return JP(l)||io(l)?l:void 0}function d1t(l,m){return!!q9(l)||h1t(l)&&(l.kind===188?v6(l.elementType):l.kind===189?Ge(l.elements,v6):m||Ge(l.typeArguments,v6))}function h1t(l){const m=l.parent;switch(m.kind){case 196:case 202:case 183:case 192:case 193:case 199:case 194:case 198:case 188:case 189:return h1t(m);case 265:return!0}return!1}function v6(l){switch(l.kind){case 183:return Mge(l)||!!(oT(l,788968).flags&524288);case 186:return!0;case 198:return l.operator!==158&&v6(l.type);case 196:case 190:case 202:case 323:case 321:case 322:case 316:return v6(l.type);case 191:return l.type.kind!==188||v6(l.type.elementType);case 192:case 193:return Ge(l.types,v6);case 199:return v6(l.objectType)||v6(l.indexType);case 194:return v6(l.checkType)||v6(l.extendsType)||v6(l.trueType)||v6(l.falseType)}return!1}function Jei(l){const m=sr(l);if(!m.resolvedType){const D=Wei(l);if(D===Ga)m.resolvedType=Wo;else if(!(l.kind===189&&Ge(l.elements,C=>!!(EPe(C)&8)))&&d1t(l))m.resolvedType=l.kind===189&&l.elements.length===0?D:lPe(D,l,void 0);else{const C=l.kind===188?[Br(l.elementType)]:Vt(l.elements,Br);m.resolvedType=DPe(D,C)}}return m.resolvedType}function $ei(l){return z7(l)&&l.operator===148}function Bg(l,m,D=!1,C=[]){const A=_Pe(m||Vt(l,w=>1),D,C);return A===Ga?Wo:l.length?DPe(A,l):A}function _Pe(l,m,D){if(l.length===1&&l[0]&4)return m?To:Fo;const C=Vt(l,w=>w&1?"#":w&2?"?":w&4?".":"*").join()+(m?"R":"")+(Ge(D,w=>!!w)?","+Vt(D,w=>w?Us(w):"_").join(","):"");let A=wa.get(C);return A||wa.set(C,A=Uei(l,m,D)),A}function Uei(l,m,D){const C=l.length,A=ui(l,Te=>!!(Te&9));let w;const I=[];let U=0;if(C){w=new Array(C);for(let Te=0;Te!!(l.elementFlags[gi]&8&&zt.flags&1179648));if(ut>=0)return Bte(Vt(m,(zt,gi)=>l.elementFlags[gi]&8?zt:on))?ml(m[ut],zt=>xPe(l,Zd(m,ut,zt))):Ot}const w=[],I=[],U=[];let Z=-1,ce=-1,Fe=-1;for(let ut=0;ut=1e4)return gt(K,Z_(K)?F.Type_produces_a_tuple_type_that_is_too_large_to_represent:F.Expression_produces_a_tuple_type_that_is_too_large_to_represent),Ot;L(Wi,(dn,nu)=>{var En;return $e(dn,zt.target.elementFlags[nu],(En=zt.target.labeledElementDeclarations)==null?void 0:En[nu])})}else $e(H5(zt)&&kC(zt,Qt)||Ot,4,(C=l.labeledElementDeclarations)==null?void 0:C[ut]);else $e(zt,gi,(A=l.labeledElementDeclarations)==null?void 0:A[ut])}for(let ut=0;ut=0&&ceI[ce+zt]&8?qf(ut,Qt):ut)),w.splice(ce+1,Fe-ce),I.splice(ce+1,Fe-ce),U.splice(ce+1,Fe-ce));const Te=_Pe(I,l.readonly,U);return Te===Ga?Wo:I.length?R5(Te,w):Te;function $e(ut,zt,gi){zt&1&&(Z=I.length),zt&4&&ce<0&&(ce=I.length),zt&6&&(Fe=I.length),w.push(zt&2?Vd(ut,!0):ut),I.push(zt),U.push(gi)}}function yz(l,m,D=0){const C=l.target,A=O5(l)-D;return m>C.fixedLength?Pii(l)||Bg(Dt):Bg(V0(l).slice(m,A),C.elementFlags.slice(m,A),!1,C.labeledElementDeclarations&&C.labeledElementDeclarations.slice(m,A))}function f1t(l){return tr(Di(am(l.target.fixedLength,m=>df(""+m)),F_(l.target.readonly?To:Fo)))}function qei(l,m){const D=Ue(l.elementFlags,C=>!(C&m));return D>=0?D:l.elementFlags.length}function lW(l,m){return l.elementFlags.length-Ze(l.elementFlags,D=>!(D&m))-1}function vPe(l){return l.fixedLength+lW(l,3)}function AC(l){const m=V0(l),D=O5(l);return m.length===D?m:m.slice(0,D)}function Zei(l){return Vd(Br(l.type),!0)}function Sh(l){return l.id}function C6(l,m){return Kl(l,m,Sh,rl)>=0}function CPe(l,m){const D=Kl(l,m,Sh,rl);return D<0?(l.splice(~D,0,m),!0):!1}function Yei(l,m,D){const C=D.flags;if(!(C&131072))if(m|=C&473694207,C&465829888&&(m|=33554432),D===xi&&(m|=8388608),!fe&&C&98304)Ju(D)&65536||(m|=4194304);else{const A=l.length,w=A&&D.id>l[A-1].id?~A:Kl(l,D,Sh,rl);w<0&&l.splice(~w,0,D)}return m}function m1t(l,m,D){let C;for(const A of D)A!==C&&(m=A.flags&1048576?m1t(l,m|(tti(A)?1048576:0),A.types):Yei(l,m,A),C=A);return m}function Qei(l,m){var D;if(l.length<2)return l;const C=mp(l),A=Qo.get(C);if(A)return A;const w=m&&Ge(l,ce=>!!(ce.flags&524288)&&!e4(ce)&&KPe(Ag(ce))),I=l.length;let U=I,Z=0;for(;U>0;){U--;const ce=l[U];if(w||ce.flags&469499904){if(ce.flags&262144&&xD(ce).flags&1048576){yE(ce,tr(Vt(l,$e=>$e===ce?Wu:$e)),_4)&&mv(l,U);continue}const Fe=ce.flags&61603840?Le(u0(ce),$e=>Tg(Wn($e))):void 0,Te=Fe&&$h(Wn(Fe));for(const $e of l)if(ce!==$e){if(Z===1e5&&Z/(I-U)*I>1e6){(D=Gn)==null||D.instant(Gn.Phase.CheckTypes,"removeSubtypes_DepthLimit",{typeIds:l.map(zt=>zt.id)}),gt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent);return}if(Z++,Fe&&$e.flags&61603840){const ut=he($e,Fe.escapedName);if(ut&&Tg(ut)&&$h(ut)!==Te)continue}if(yE(ce,$e,_4)&&(!(Ju(eT(ce))&1)||!(Ju(eT($e))&1)||LC(ce,$e))){mv(l,U);break}}}}return Qo.set(C,l),l}function Xei(l,m,D){let C=l.length;for(;C>0;){C--;const A=l[C],w=A.flags;(w&402653312&&m&4||w&256&&m&8||w&2048&&m&64||w&8192&&m&4096||D&&w&32768&&m&16384||Mb(A)&&C6(l,A.regularType))&&mv(l,C)}}function eti(l){const m=ti(l,D=>!!(D.flags&134217728)&&U9(D));if(m.length){let D=l.length;for(;D>0;){D--;const C=l[D];C.flags&128&&Ge(m,A=>EEe(C,A))&&mv(l,D)}}}function tti(l){return!!(l.flags&1048576&&(l.aliasSymbol||l.origin))}function p1t(l,m){for(const D of m)if(D.flags&1048576){const C=D.origin;D.aliasSymbol||C&&!(C.flags&1048576)?Ca(l,D):C&&C.flags&1048576&&p1t(l,C.types)}}function bPe(l,m){const D=Ab(l);return D.types=m,D}function tr(l,m=1,D,C,A){if(l.length===0)return Wu;if(l.length===1)return l[0];if(l.length===2&&!A&&(l[0].flags&1048576||l[1].flags&1048576)){const w=m===0?"N":m===2?"S":"L",I=l[0].id=2&&w[0]===te&&w[1]===de&&mv(w,1),(I&402664352||I&16384&&I&32768)&&Xei(w,I,!!(m&2)),I&128&&I&134217728&&eti(w),m===2&&(w=Qei(w,!!(I&524288)),!w))return Ot;if(w.length===0)return I&65536?I&4194304?it:Ct:I&32768?I&4194304?te:we:Wu}if(!A&&I&1048576){const Z=[];p1t(Z,l);const ce=[];for(const Te of w)Ge(Z,$e=>C6($e.types,Te))||ce.push(Te);if(!D&&Z.length===1&&ce.length===0)return Z[0];if(nn(Z,(Te,$e)=>Te+$e.types.length,0)+ce.length===w.length){for(const Te of Z)CPe(ce,Te);A=bPe(1048576,ce)}}const U=(I&36323331?0:32768)|(I&2097152?16777216:0);return kPe(w,U,D,C,A)}function iti(l,m){let D;const C=[];for(const w of l){const I=A4(w);if(I){if(I.kind!==0&&I.kind!==1||D&&!yPe(D,I))return;D=I,C.push(I.type)}else{const U=m!==2097152?Ys(w):void 0;if(U!==Ui&&U!==Sn)return}}if(!D)return;const A=Rdt(C,m);return Fte(D.kind,D.parameterName,D.parameterIndex,A)}function yPe(l,m){return l.kind===m.kind&&l.parameterIndex===m.parameterIndex}function kPe(l,m,D,C,A){if(l.length===0)return Wu;if(l.length===1)return l[0];const I=(A?A.flags&1048576?`|${mp(A.types)}`:A.flags&2097152?`&${mp(A.types)}`:`#${A.type.id}|${mp(l)}`:mp(l))+J9(D,C);let U=bt.get(I);return U||(U=dp(1048576),U.objectFlags=m|Lge(l,98304),U.types=l,U.origin=A,U.aliasSymbol=D,U.aliasTypeArguments=C,l.length===2&&l[0].flags&512&&l[1].flags&512&&(U.flags|=16,U.intrinsicName="boolean"),bt.set(I,U)),U}function nti(l){const m=sr(l);if(!m.resolvedType){const D=q9(l);m.resolvedType=tr(Vt(l.types,Br),1,D,sT(D))}return m.resolvedType}function uti(l,m,D){const C=D.flags;return C&2097152?E1t(l,m,D.types):(yD(D)?m&16777216||(m|=16777216,l.set(D.id.toString(),D)):(C&3?D===xi&&(m|=8388608):(fe||!(C&98304))&&(D===de&&(m|=262144,D=te),l.has(D.id.toString())||(D.flags&109472&&m&109472&&(m|=67108864),l.set(D.id.toString(),D))),m|=C&473694207),m)}function E1t(l,m,D){for(const C of D)m=uti(l,m,$h(C));return m}function rti(l,m){let D=l.length;for(;D>0;){D--;const C=l[D];(C.flags&4&&m&402653312||C.flags&8&&m&256||C.flags&64&&m&2048||C.flags&4096&&m&8192||C.flags&16384&&m&32768||yD(C)&&m&470302716)&&mv(l,D)}}function ati(l,m){for(const D of l)if(!C6(D.types,m)){const C=m.flags&128?ct:m.flags&288?Qt:m.flags&2048?Ti:m.flags&8192?er:void 0;if(!C||!C6(D.types,C))return!1}return!0}function oti(l){let m=l.length;const D=ti(l,C=>!!(C.flags&128));for(;m>0;){m--;const C=l[m];if(C.flags&134217728){for(const A of D)if(F6(A,C)){mv(l,m);break}else if(U9(C))return!0}}return!1}function _1t(l,m){for(let D=0;D!(C.flags&m))}function sti(l){let m;const D=Ue(l,I=>!!(Ju(I)&32768));if(D<0)return!1;let C=D+1;for(;C!!(ce.flags&1048576&&ce.types[0].flags&32768))){const ce=Ge(I,_W)?de:te;_1t(I,32768),Z=tr([Ds(I),ce],1,m,D)}else if(ye(I,ce=>!!(ce.flags&1048576&&(ce.types[0].flags&65536||ce.types[1].flags&65536))))_1t(I,65536),Z=tr([Ds(I),it],1,m,D);else{if(!Bte(I))return Ot;const ce=cti(I),Fe=Ge(ce,Te=>!!(Te.flags&2097152))&&FPe(ce)>FPe(I)?bPe(2097152,I):void 0;Z=tr(ce,1,m,D,Fe)}else Z=lti(I,m,D);Ln.set(U,Z)}return Z}function D1t(l){return nn(l,(m,D)=>D.flags&1048576?m*D.types.length:D.flags&131072?0:m,1)}function Bte(l){var m;const D=D1t(l);return D>=1e5?((m=Gn)==null||m.instant(Gn.Phase.CheckTypes,"checkCrossProductUnion_DepthLimit",{typeIds:l.map(C=>C.id),size:D}),gt(K,F.Expression_produces_a_union_type_that_is_too_complex_to_represent),!1):!0}function cti(l){const m=D1t(l),D=[];for(let C=0;C=0;U--)if(l[U].flags&1048576){const Z=l[U].types,ce=Z.length;A[U]=Z[w%ce],w=Math.floor(w/ce)}const I=Ds(A);I.flags&131072||D.push(I)}return D}function x1t(l){return!(l.flags&3145728)||l.aliasSymbol?1:l.flags&1048576&&l.origin?x1t(l.origin):FPe(l.types)}function FPe(l){return nn(l,(m,D)=>m+x1t(D),0)}function dti(l){const m=sr(l);if(!m.resolvedType){const D=q9(l),C=Vt(l.types,Br),A=C.length===2?C.indexOf(Pc):-1,w=A>=0?C[1-A]:on,I=!!(w.flags&76||w.flags&134217728&&U9(w));m.resolvedType=Ds(C,D,sT(D),I)}return m.resolvedType}function v1t(l,m){const D=dp(4194304);return D.type=l,D.indexFlags=m,D}function hti(l){const m=Ab(4194304);return m.type=l,m}function C1t(l,m){return m&1?l.resolvedStringIndexType||(l.resolvedStringIndexType=v1t(l,1)):l.resolvedIndexType||(l.resolvedIndexType=v1t(l,0))}function fti(l,m){const D=Fg(l),C=hp(l),A=I5(l.target||l);if(!A&&!(m&2))return C;const w=[];if(iW(l)){if(SC(C))return C1t(l,m);{const Z=Jh(K9(l));WNe(Z,8576,!!(m&1),U)}}else FF(bte(C),U);SC(C)&&FF(C,U);const I=m&2?Oc(tr(w),Z=>!(Z.flags&5)):tr(w);if(I.flags&1048576&&C.flags&1048576&&mp(I.types)===mp(C.types))return C;return I;function U(Z){const ce=A?Da(A,hW(l.mapper,D,Z)):Z;w.push(ce===ct?wo:ce)}}function mti(l){const m=Fg(l);return D(I5(l)||m);function D(C){return C.flags&470810623?!0:C.flags&16777216?C.root.isDistributive&&C.checkType===m:C.flags&137363456?ye(C.types,D):C.flags&8388608?D(C.objectType)&&D(C.indexType):C.flags&33554432?D(C.baseType)&&D(C.constraint):C.flags&268435456?D(C.type):!1}}function j5(l){if(ea(l))return Wu;if(Of(l))return $h(Fa(l));if(Ms(l))return $h(A3(l));const m=sk(l);return m!==void 0?df(Qr(m)):Wt(l)?$h(Fa(l)):Wu}function kz(l,m,D){if(D||!(h4(l)&6)){let C=qr(Fge(l)).nameType;if(!C){const A=Ya(l.valueDeclaration);C=l.escapedName==="default"?df("default"):A&&j5(A)||(Rj(l)?void 0:df(cc(l)))}if(C&&C.flags&m)return C}return Wu}function b1t(l,m){return!!(l.flags&m||l.flags&2097152&&Ge(l.types,D=>b1t(D,m)))}function pti(l,m,D){const C=D&&(Ju(l)&7||l.aliasSymbol)?hti(l):void 0,A=Vt(u0(l),I=>kz(I,m)),w=Vt(Ah(l),I=>I!==Nu&&b1t(I.keyType,m)?I.keyType===ct&&m&8?wo:I.keyType:Wu);return tr(mi(A,w),1,void 0,void 0,C)}function y1t(l,m=0){return!!(l.flags&58982400||K5(l)||e4(l)&&!mti(l)||l.flags&1048576&&!(m&4)&&QNe(l)||l.flags&2097152&&jl(l,465829888)&&Ge(l.types,yD))}function F_(l,m=mt){return l=Sg(l),y1t(l,m)?C1t(l,m):l.flags&1048576?Ds(Vt(l.types,D=>F_(D,m))):l.flags&2097152?tr(Vt(l.types,D=>F_(D,m))):Ju(l)&32?fti(l,m):l===xi?xi:l.flags&2?Wu:l.flags&131073?bc:pti(l,(m&2?128:402653316)|(m&1?0:12584),m===mt)}function k1t(l){if(Je)return l;const m=Tei();return m?aT(m,[l,ct]):ct}function gti(l){const m=k1t(F_(l));return m.flags&131072?ct:m}function Eti(l){const m=sr(l);if(!m.resolvedType)switch(l.operator){case 143:m.resolvedType=F_(Br(l.type));break;case 158:m.resolvedType=l.type.kind===155?PPe(Nj(l.parent)):Ot;break;case 148:m.resolvedType=Br(l.type);break;default:H.assertNever(l.operator)}return m.resolvedType}function _ti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=xF([l.head.text,...Vt(l.templateSpans,D=>D.literal.text)],Vt(l.templateSpans,D=>Br(D.type)))),m.resolvedType}function xF(l,m){const D=Ue(m,ce=>!!(ce.flags&1179648));if(D>=0)return Bte(m)?ml(m[D],ce=>xF(l,Zd(m,D,ce))):Ot;if(kt(m,xi))return xi;const C=[],A=[];let w=l[0];if(!Z(l,m))return ct;if(C.length===0)return df(w);if(A.push(w),ye(A,ce=>ce==="")){if(ye(C,ce=>!!(ce.flags&4)))return ct;if(C.length===1&&U9(C[0]))return C[0]}const I=`${mp(C)}|${Vt(A,ce=>ce.length).join(",")}|${A.join("")}`;let U=xa.get(I);return U||xa.set(I,U=xti(A,C)),U;function Z(ce,Fe){for(let Te=0;Te$9(l,D)):m.flags&128?df(F1t(l,m.value)):m.flags&134217728?xF(...vti(l,m.texts,m.types)):m.flags&268435456&&l===m.symbol?m:m.flags&268435461||SC(m)?A1t(l,m):wte(m)?A1t(l,xF(["",""],[m])):m}function F1t(l,m){switch(nQ.get(l.escapedName)){case 0:return m.toUpperCase();case 1:return m.toLowerCase();case 2:return m.charAt(0).toUpperCase()+m.slice(1);case 3:return m.charAt(0).toLowerCase()+m.slice(1)}return m}function vti(l,m,D){switch(nQ.get(l.escapedName)){case 0:return[m.map(C=>C.toUpperCase()),D.map(C=>$9(l,C))];case 1:return[m.map(C=>C.toLowerCase()),D.map(C=>$9(l,C))];case 2:return[m[0]===""?m:[m[0].charAt(0).toUpperCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D];case 3:return[m[0]===""?m:[m[0].charAt(0).toLowerCase()+m[0].slice(1),...m.slice(1)],m[0]===""?[$9(l,D[0]),...D.slice(1)]:D]}return[m,D]}function A1t(l,m){const D=`${Yo(l)},${Sh(m)}`;let C=aa.get(D);return C||aa.set(D,C=Cti(l,m)),C}function Cti(l,m){const D=N5(268435456,l);return D.type=m,D}function bti(l,m,D,C,A){const w=dp(8388608);return w.objectType=l,w.indexType=m,w.accessFlags=D,w.aliasSymbol=C,w.aliasTypeArguments=A,w}function cW(l){if(Ae)return!1;if(Ju(l)&4096)return!0;if(l.flags&1048576)return ye(l.types,cW);if(l.flags&2097152)return Ge(l.types,cW);if(l.flags&465829888){const m=UNe(l);return m!==l&&cW(m)}return!1}function Rge(l,m){return X4(l)?ep(l):m&&wc(m)?sk(m):void 0}function APe(l,m){if(m.flags&8208){const D=Tn(l.parent,C=>!O0(C))||l.parent;return x2(D)?UE(D)&&at(l)&&zht(D,l):ye(m.declarations,C=>!Co(C)||oC(C))}return!0}function S1t(l,m,D,C,A,w){const I=A&&A.kind===212?A:void 0,U=A&&ea(A)?void 0:Rge(D,A);if(U!==void 0){if(w&256)return jb(m,U)||me;const ce=Zo(m,U);if(ce){if(w&64&&A&&ce.declarations&&S5(ce)&&APe(A,ce)){const Te=(I==null?void 0:I.argumentExpression)??(I7(A)?A.indexType:A);p3(Te,ce.declarations,U)}if(I){if(rie(ce,I,Kft(I.expression,m.symbol)),wmt(I,ce,f7(I))){gt(I.argumentExpression,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(ce));return}if(w&8&&(sr(A).resolvedSymbol=ce),zft(I,ce))return ni}const Fe=w&4?mF(ce):Wn(ce);return I&&f7(I)!==1?w6(I,Fe):A&&I7(A)&&_W(Fe)?tr([Fe,te]):Fe}if(t4(m,xs)&&n3(U)){const Fe=+U;if(A&&t4(m,Te=>!Te.target.hasRestElement)&&!(w&16)){const Te=SPe(A);if(xs(m)){if(Fe<0)return gt(Te,F.A_tuple_type_cannot_be_indexed_with_a_negative_value),te;gt(Te,F.Tuple_type_0_of_length_1_has_no_element_at_index_2,gn(m),O5(m),Qr(U))}else gt(Te,F.Property_0_does_not_exist_on_type_1,Qr(U),gn(m))}if(Fe>=0)return Z(F3(m,Qt)),ght(m,Fe,w&1?de:void 0)}}if(!(D.flags&98304)&&r1(D,402665900)){if(m.flags&131073)return m;const ce=uW(m,D)||F3(m,ct);if(ce){if(w&2&&ce.keyType!==Qt){I&&(w&4?gt(I,F.Type_0_is_generic_and_can_only_be_indexed_for_reading,gn(l)):gt(I,F.Type_0_cannot_be_used_to_index_type_1,gn(D),gn(l)));return}if(A&&ce.keyType===ct&&!r1(D,12)){const Fe=SPe(A);return gt(Fe,F.Type_0_cannot_be_used_as_an_index_type,gn(D)),w&1?tr([ce.type,de]):ce.type}return Z(ce),w&1&&!(m.symbol&&m.symbol.flags&384&&D.symbol&&D.flags&1024&&cf(D.symbol)===m.symbol)?tr([ce.type,de]):ce.type}if(D.flags&131072)return Wu;if(cW(m))return me;if(I&&!JEe(m)){if(MC(m)){if(Ae&&D.flags&384)return Hs.add(Tu(I,F.Property_0_does_not_exist_on_type_1,D.value,gn(m))),te;if(D.flags&12){const Fe=Vt(m.properties,Te=>Wn(Te));return tr(Di(Fe,te))}}if(m.symbol===Bt&&U!==void 0&&Bt.exports.has(U)&&Bt.exports.get(U).flags&418)gt(I,F.Property_0_does_not_exist_on_type_1,Qr(U),gn(m));else if(Ae&&!ae.suppressImplicitAnyIndexErrors&&!(w&128))if(U!==void 0&&jft(U,m)){const Fe=gn(m);gt(I,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,U,Fe,Fe+"["+Wc(I.argumentExpression)+"]")}else if(kC(m,Qt))gt(I.argumentExpression,F.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);else{let Fe;if(U!==void 0&&(Fe=XMe(U,m)))Fe!==void 0&>(I.argumentExpression,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,U,gn(m),Fe);else{const Te=Dri(m,I,D);if(Te!==void 0)gt(I,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1,gn(m),Te);else{let $e;if(D.flags&1024)$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+gn(D)+"]",gn(m));else if(D.flags&8192){const ut=lp(D.symbol,I);$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,"["+ut+"]",gn(m))}else D.flags&128||D.flags&256?$e=ro(void 0,F.Property_0_does_not_exist_on_type_1,D.value,gn(m)):D.flags&12&&($e=ro(void 0,F.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1,gn(D),gn(m)));$e=ro($e,F.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1,gn(C),gn(m)),Hs.add(Y3(zn(I),I,$e))}}}return}}if(cW(m))return me;if(A){const ce=SPe(A);D.flags&384?gt(ce,F.Property_0_does_not_exist_on_type_1,""+D.value,gn(m)):D.flags&12?gt(ce,F.Type_0_has_no_matching_index_signature_for_type_1,gn(m),gn(D)):gt(ce,F.Type_0_cannot_be_used_as_an_index_type,gn(D))}if(nt(D))return D;return;function Z(ce){ce&&ce.isReadonly&&I&&(X_(I)||K0e(I))&>(I,F.Index_signature_in_type_0_only_permits_reading,gn(m))}}function SPe(l){return l.kind===212?l.argumentExpression:l.kind===199?l.indexType:l.kind===167?l.expression:l}function wte(l){if(l.flags&2097152){let m=!1;for(const D of l.types)if(D.flags&101248||wte(D))m=!0;else if(!(D.flags&524288))return!1;return m}return!!(l.flags&77)||U9(l)}function U9(l){return!!(l.flags&134217728)&&ye(l.types,wte)||!!(l.flags&268435456)&&wte(l.type)}function Fz(l){return!!dW(l)}function Nb(l){return!!(dW(l)&4194304)}function SC(l){return!!(dW(l)&8388608)}function dW(l){return l.flags&3145728?(l.objectFlags&2097152||(l.objectFlags|=2097152|nn(l.types,(m,D)=>m|dW(D),0)),l.objectFlags&12582912):l.flags&33554432?(l.objectFlags&2097152||(l.objectFlags|=2097152|dW(l.baseType)|dW(l.constraint)),l.objectFlags&12582912):(l.flags&58982400||e4(l)||K5(l)?4194304:0)|(l.flags&465829888&&!U9(l)?8388608:0)}function vD(l,m){return l.flags&8388608?kti(l,m):l.flags&16777216?Fti(l,m):l}function B1t(l,m,D){if(l.flags&1048576||l.flags&2097152&&!y1t(l)){const C=Vt(l.types,A=>vD(qf(A,m),D));return l.flags&2097152||D?Ds(C):tr(C)}}function yti(l,m,D){if(m.flags&1048576){const C=Vt(m.types,A=>vD(qf(l,A),D));return D?Ds(C):tr(C)}}function kti(l,m){const D=m?"simplifiedForWriting":"simplifiedForReading";if(l[D])return l[D]===Zc?l:l[D];l[D]=Zc;const C=vD(l.objectType,m),A=vD(l.indexType,m),w=yti(C,A,m);if(w)return l[D]=w;if(!(A.flags&465829888)){const I=B1t(C,A,m);if(I)return l[D]=I}if(K5(C)&&A.flags&296){const I=Tz(C,A.flags&8?0:C.target.fixedLength,0,m);if(I)return l[D]=I}return e4(C)&&(!I5(C)||Fdt(C))?l[D]=ml(Oge(C,l.indexType),I=>vD(I,m)):l[D]=l}function Fti(l,m){const D=l.checkType,C=l.extendsType,A=BC(l),w=wC(l);if(w.flags&131072&&y6(A)===y6(D)){if(D.flags&1||ms(vF(D),vF(C)))return vD(A,m);if(w1t(D,C))return Wu}else if(A.flags&131072&&y6(w)===y6(D)){if(!(D.flags&1)&&ms(vF(D),vF(C)))return Wu;if(D.flags&1||w1t(D,C))return vD(w,m)}return l}function w1t(l,m){return!!(tr([Cte(l,m),Wu]).flags&131072)}function Oge(l,m){const D=Sf([Fg(l)],[m]),C=TC(l.mapper,D);return Da(DD(l.target||l),C)}function qf(l,m,D=0,C,A,w){return b6(l,m,D,C,A,w)||(C?Ot:on)}function T1t(l,m){return t4(l,D=>{if(D.flags&384){const C=ep(D);if(n3(C)){const A=+C;return A>=0&&A0&&!Ge(l.elements,m=>vce(m)||Cce(m)||JP(m)&&!!(m.questionToken||m.dotDotDotToken))}function P1t(l,m){return Fz(l)||m&&xs(l)&&Ge(AC(l),Fz)}function wPe(l,m,D,C){let A,w,I=0;for(;;){if(I===1e3)return gt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;const Z=Da(y6(l.checkType),m),ce=Da(l.extendsType,m);if(Z===Ot||ce===Ot)return Ot;if(Z===xi||ce===xi)return xi;const Fe=N1t(l.node.checkType)&&N1t(l.node.extendsType)&&S(l.node.checkType.elements)===S(l.node.extendsType.elements),Te=P1t(Z,Fe);let $e;if(l.inferTypeParameters){const zt=Pu(l.inferTypeParameters,Ati),gi=zt!==l.inferTypeParameters?Sf(l.inferTypeParameters,zt):void 0,Wi=xW(zt,void 0,0);if(gi){const nu=TC(m,gi);for(let En=0;Enk6(gi,Te)),ut=Sf(Fe.outerTypeParameters,$e),zt=Fe.isDistributive?k6(Fe.checkType,ut):void 0;if(!zt||zt===Fe.checkType||!(zt.flags&1179648))return l=Fe,m=ut,D=void 0,C=void 0,Fe.aliasSymbol&&I++,!0}}return!1}}function BC(l){return l.resolvedTrueType||(l.resolvedTrueType=Da(Br(l.root.node.trueType),l.mapper))}function wC(l){return l.resolvedFalseType||(l.resolvedFalseType=Da(Br(l.root.node.falseType),l.mapper))}function Sti(l){return l.resolvedInferredTrueType||(l.resolvedInferredTrueType=l.combinedMapper?Da(Br(l.root.node.trueType),l.combinedMapper):BC(l))}function M1t(l){let m;return l.locals&&l.locals.forEach(D=>{D.flags&262144&&(m=Di(m,el(D)))}),m}function Bti(l){return l.isDistributive&&(Pte(l.checkType,l.node.trueType)||Pte(l.checkType,l.node.falseType))}function wti(l){const m=sr(l);if(!m.resolvedType){const D=Br(l.checkType),C=q9(l),A=sT(C),w=Dz(l,!0),I=A?w:ti(w,Z=>Pte(Z,l)),U={node:l,checkType:D,extendsType:Br(l.extendsType),isDistributive:!!(D.flags&262144),inferTypeParameters:M1t(l),outerTypeParameters:I,instantiations:void 0,aliasSymbol:C,aliasTypeArguments:A};m.resolvedType=wPe(U,void 0),I&&(U.instantiations=new Map,U.instantiations.set(mp(I),m.resolvedType))}return m.resolvedType}function Tti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=gF(Du(l.typeParameter))),m.resolvedType}function z1t(l){return at(l)?[l]:Di(z1t(l.left),l.right)}function Lti(l){var m;const D=sr(l);if(!D.resolvedType){if(!zx(l))return gt(l.argument,F.String_literal_expected),D.resolvedSymbol=Xt,D.resolvedType=Ot;const C=l.isTypeOf?111551:l.flags&16777216?900095:788968,A=Wh(l,l.argument.literal);if(!A)return D.resolvedSymbol=Xt,D.resolvedType=Ot;const w=!!((m=A.exports)!=null&&m.get("export=")),I=_m(A,!1);if(Xl(l.qualifier))if(I.flags&C)D.resolvedType=I1t(l,D,I,C);else{const U=C===111551?F.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here:F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;gt(l,U,l.argument.literal.text),D.resolvedSymbol=Xt,D.resolvedType=Ot}else{const U=z1t(l.qualifier);let Z=I,ce;for(;ce=U.shift();){const Fe=U.length?1920:C,Te=Ws(Fc(Z)),$e=l.isTypeOf||Xn(l)&&w?Zo(Wn(Te),ce.escapedText,!1,!0):void 0,zt=(l.isTypeOf?void 0:kf($f(Te),ce.escapedText,Fe))??$e;if(!zt)return gt(ce,F.Namespace_0_has_no_exported_member_1,lp(Z),k0(ce)),D.resolvedType=Ot;sr(ce).resolvedSymbol=zt,sr(ce.parent).resolvedSymbol=zt,Z=zt}D.resolvedType=I1t(l,D,Z,C)}}return D.resolvedType}function I1t(l,m,D,C){const A=Fc(D);return m.resolvedSymbol=A,C===111551?pmt(Wn(D),l):Pge(l,A)}function R1t(l){const m=sr(l);if(!m.resolvedType){const D=q9(l);if(_6(l.symbol).size===0&&!D)m.resolvedType=Pc;else{let C=C4(16,l.symbol);C.aliasSymbol=D,C.aliasTypeArguments=sT(D),K7(l)&&l.isArrayType&&(C=H1(C)),m.resolvedType=C}}return m.resolvedType}function q9(l){let m=l.parent;for(;M7(m)||kk(m)||z7(m)&&m.operator===148;)m=m.parent;return Bj(m)?Du(m):void 0}function sT(l){return l?sn(l):void 0}function jge(l){return!!(l.flags&524288)&&!e4(l)}function TPe(l){return bD(l)||!!(l.flags&474058748)}function LPe(l,m){if(!(l.flags&1048576))return l;if(ye(l.types,TPe))return Le(l.types,bD)||Wo;const D=Le(l.types,w=>!TPe(w));if(!D||Le(l.types,w=>w!==D&&!TPe(w)))return l;return A(D);function A(w){const I=Ho();for(const Z of u0(w))if(!(h4(Z)&6)){if(Vge(Z)){const ce=Z.flags&65536&&!(Z.flags&32768),Te=Ks(16777220,Z.escapedName,KNe(Z)|(m?8:0));Te.links.type=ce?te:Vd(Wn(Z),!0),Te.declarations=Z.declarations,Te.links.nameType=qr(Z).nameType,Te.links.syntheticOrigin=Z,I.set(Z.escapedName,Te)}}const U=Ol(w.symbol,I,Dt,Dt,Ah(w));return U.objectFlags|=131200,U}}function Pb(l,m,D,C,A){if(l.flags&1||m.flags&1)return me;if(l.flags&2||m.flags&2)return on;if(l.flags&131072)return m;if(m.flags&131072)return l;if(l=LPe(l,A),l.flags&1048576)return Bte([l,m])?ml(l,ce=>Pb(ce,m,D,C,A)):Ot;if(m=LPe(m,A),m.flags&1048576)return Bte([l,m])?ml(m,ce=>Pb(l,ce,D,C,A)):Ot;if(m.flags&473960444)return l;if(Nb(l)||Nb(m)){if(bD(l))return m;if(l.flags&2097152){const ce=l.types,Fe=ce[ce.length-1];if(jge(Fe)&&jge(m))return Ds(mi(ce.slice(0,ce.length-1),[Pb(Fe,m,D,C,A)]))}return Ds([l,m])}const w=Ho(),I=new Set,U=l===Wo?Ah(m):xdt([l,m]);for(const ce of u0(m))h4(ce)&6?I.add(ce.escapedName):Vge(ce)&&w.set(ce.escapedName,NPe(ce,A));for(const ce of u0(l))if(!(I.has(ce.escapedName)||!Vge(ce)))if(w.has(ce.escapedName)){const Fe=w.get(ce.escapedName),Te=Wn(Fe);if(Fe.flags&16777216){const $e=mi(ce.declarations,Fe.declarations),ut=4|ce.flags&16777216,zt=Ks(ut,ce.escapedName),gi=Wn(ce),Wi=dEe(gi),dn=dEe(Te);zt.links.type=Wi===dn?gi:tr([gi,dn],2),zt.links.leftSpread=ce,zt.links.rightSpread=Fe,zt.declarations=$e,zt.links.nameType=qr(ce).nameType,w.set(ce.escapedName,zt)}}else w.set(ce.escapedName,NPe(ce,A));const Z=Ol(D,w,Dt,Dt,Pu(U,ce=>Nti(ce,A)));return Z.objectFlags|=2228352|C,Z}function Vge(l){var m;return!Ge(l.declarations,Eh)&&(!(l.flags&106496)||!((m=l.declarations)!=null&&m.some(D=>gr(D.parent))))}function NPe(l,m){const D=l.flags&65536&&!(l.flags&32768);if(!D&&m===Ng(l))return l;const C=4|l.flags&16777216,A=Ks(C,l.escapedName,KNe(l)|(m?8:0));return A.links.type=D?te:Wn(l),A.declarations=l.declarations,A.links.nameType=qr(l).nameType,A.links.syntheticOrigin=l,A}function Nti(l,m){return l.isReadonly!==m?k_(l.keyType,l.type,m,l.declaration):l}function Tte(l,m,D,C){const A=N5(l,D);return A.value=m,A.regularType=C||A,A}function Z9(l){if(l.flags&2976){if(!l.freshType){const m=Tte(l.flags,l.value,l.symbol,l);m.freshType=m,l.freshType=m}return l.freshType}return l}function $h(l){return l.flags&2976?l.regularType:l.flags&1048576?l.regularType||(l.regularType=ml(l,$h)):l}function Mb(l){return!!(l.flags&2976)&&l.freshType===l}function df(l){let m;return Ai.get(l)||(Ai.set(l,m=Tte(128,l)),m)}function wg(l){let m;return Dn.get(l)||(Dn.set(l,m=Tte(256,l)),m)}function Hge(l){let m;const D=R2(l);return Cn.get(D)||(Cn.set(D,m=Tte(2048,l)),m)}function Pti(l,m,D){let C;const A=`${m}${typeof l=="string"?"@":"#"}${l}`,w=1024|(typeof l=="string"?128:256);return tu.get(A)||(tu.set(A,C=Tte(w,l,D)),C)}function Mti(l){if(l.literal.kind===106)return it;const m=sr(l);return m.resolvedType||(m.resolvedType=$h(Fa(l.literal))),m.resolvedType}function zti(l){const m=N5(8192,l);return m.escapedName=`__@${m.symbol.escapedName}@${Yo(m.symbol)}`,m}function PPe(l){if(Xbe(l)){const m=cq(l)?Dm(l.left):Dm(l);if(m){const D=qr(m);return D.uniqueESSymbolType||(D.uniqueESSymbolType=zti(m))}}return er}function Iti(l){const m=tf(l,!1,!1),D=m&&m.parent;if(D&&(gr(D)||D.kind===264)&&!No(m)&&(!fc(m)||B2(l,m.body)))return F4(Du(D)).thisType;if(D&&ys(D)&&eu(D.parent)&&ec(D.parent)===6)return F4(Dm(D.parent.left).parent).thisType;const C=l.flags&16777216?Fv(l):void 0;return C&&w0(C)&&eu(C.parent)&&ec(C.parent)===3?F4(Dm(C.parent.left).parent).thisType:SE(m)&&B2(l,m.body)?F4(Du(m)).thisType:(gt(l,F.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface),Ot)}function Kge(l){const m=sr(l);return m.resolvedType||(m.resolvedType=Iti(l)),m.resolvedType}function O1t(l){return Br(Lte(l.type)||l.type)}function Lte(l){switch(l.kind){case 196:return Lte(l.type);case 189:if(l.elements.length===1&&(l=l.elements[0],l.kind===191||l.kind===202&&l.dotDotDotToken))return Lte(l.type);break;case 188:return l.elementType}}function Rti(l){const m=sr(l);return m.resolvedType||(m.resolvedType=l.dotDotDotToken?O1t(l):Vd(Br(l.type),!0,!!l.questionToken))}function Br(l){return gei(j1t(l),l)}function j1t(l){switch(l.kind){case 133:case 319:case 320:return me;case 159:return on;case 154:return ct;case 150:return Qt;case 163:return Ti;case 136:return Er;case 155:return er;case 116:return da;case 157:return te;case 106:return it;case 146:return Wu;case 151:return l.flags&524288&&!Ae?me:os;case 141:return Qi;case 197:case 110:return Kge(l);case 201:return Mti(l);case 183:return hPe(l);case 182:return l.assertsModifier?da:Er;case 233:return hPe(l);case 186:return Ydt(l);case 188:case 189:return Jei(l);case 190:return Zei(l);case 192:return nti(l);case 193:return dti(l);case 321:return Eei(l);case 323:return Vd(Br(l.type));case 202:return Rti(l);case 196:case 322:case 316:return Br(l.type);case 191:return O1t(l);case 325:return M0i(l);case 184:case 185:case 187:case 329:case 324:case 330:return R1t(l);case 198:return Eti(l);case 199:return L1t(l);case 200:return BPe(l);case 194:return wti(l);case 195:return Tti(l);case 203:return _ti(l);case 205:return Lti(l);case 80:case 166:case 211:const m=Qp(l);return m?el(m):Ot;default:return Ot}}function Wge(l,m,D){if(l&&l.length)for(let C=0;CC.typeParameter),Vt(D,()=>on))}function TC(l,m){return l?Jge(4,l,m):m}function Vti(l,m){return l?Jge(5,l,m):m}function Y9(l,m,D){return D?Jge(5,zb(l,m),D):zb(l,m)}function hW(l,m,D){return l?Jge(5,l,zb(m,D)):zb(m,D)}function Hti(l){return!l.constraint&&!sPe(l)||l.constraint===fl?l:l.restrictiveInstantiation||(l.restrictiveInstantiation=V1(l.symbol),l.restrictiveInstantiation.constraint=fl,l.restrictiveInstantiation)}function $ge(l){const m=V1(l.symbol);return m.target=l,m}function Kti(l,m){return Fte(l.kind,l.parameterName,l.parameterIndex,Da(l.type,m))}function lT(l,m,D){let C;if(l.typeParameters&&!D){C=Vt(l.typeParameters,$ge),m=TC(Sf(l.typeParameters,C),m);for(const w of C)w.mapper=m}const A=k3(l.declaration,C,l.thisParameter&&zPe(l.thisParameter,m),Wge(l.parameters,m,zPe),void 0,void 0,l.minArgumentCount,l.flags&167);return A.target=l,A.mapper=m,A}function zPe(l,m){const D=qr(l);if(D.type&&!PC(D.type)&&(!(l.flags&65536)||D.writeType&&!PC(D.writeType)))return l;Gl(l)&1&&(l=D.target,m=TC(D.mapper,m));const C=Ks(l.flags,l.escapedName,1|Gl(l)&53256);return C.declarations=l.declarations,C.parent=l.parent,C.links.target=l,C.links.mapper=m,l.valueDeclaration&&(C.valueDeclaration=l.valueDeclaration),D.nameType&&(C.links.nameType=D.nameType),C}function Wti(l,m,D,C){const A=l.objectFlags&4||l.objectFlags&8388608?l.node:l.symbol.declarations[0],w=sr(A),I=l.objectFlags&4?w.resolvedType:l.objectFlags&64?l.target:l;let U=w.outerTypeParameters;if(!U){let Z=Dz(A,!0);if(SE(A)){const Fe=zdt(A);Z=yn(Z,Fe)}U=Z||Dt;const ce=l.objectFlags&8388612?[A]:l.symbol.declarations;U=(I.objectFlags&8388612||I.symbol.flags&8192||I.symbol.flags&2048)&&!I.aliasTypeArguments?ti(U,Fe=>Ge(ce,Te=>Pte(Fe,Te))):U,w.outerTypeParameters=U}if(U.length){const Z=TC(l.mapper,m),ce=Vt(U,zt=>k6(zt,Z)),Fe=D||l.aliasSymbol,Te=D?C:V5(l.aliasTypeArguments,m),$e=mp(ce)+J9(Fe,Te);I.instantiations||(I.instantiations=new Map,I.instantiations.set(mp(U)+J9(I.aliasSymbol,I.aliasTypeArguments),I));let ut=I.instantiations.get($e);if(!ut){const zt=Sf(U,ce);ut=I.objectFlags&4?lPe(l.target,l.node,zt,Fe,Te):I.objectFlags&32?K1t(I,zt,Fe,Te):RPe(I,zt,Fe,Te),I.instantiations.set($e,ut);const gi=Ju(ut);if(ut.flags&3899393&&!(gi&524288)){const Wi=Ge(ce,PC);Ju(ut)&524288||(gi&52?ut.objectFlags|=524288|(Wi?1048576:0):ut.objectFlags|=Wi?0:524288)}}return ut}return l}function Gti(l){return!(l.parent.kind===183&&l.parent.typeArguments&&l===l.parent.typeName||l.parent.kind===205&&l.parent.typeArguments&&l===l.parent.qualifier)}function Pte(l,m){if(l.symbol&&l.symbol.declarations&&l.symbol.declarations.length===1){const C=l.symbol.declarations[0].parent;for(let A=m;A!==C;A=A.parent)if(!A||A.kind===241||A.kind===194&&ao(A.extendsType,D))return!0;return D(m)}return!0;function D(C){switch(C.kind){case 197:return!!l.isThisType;case 80:return!l.isThisType&&Z_(C)&&Gti(C)&&j1t(C)===l;case 186:const A=C.exprName,w=hm(A);if(!P2(w)){const I=Yp(w),U=l.symbol.declarations[0],Z=U.kind===168?U.parent:l.isThisType?U:void 0;if(I.declarations&&Z)return Ge(I.declarations,ce=>B2(ce,Z))||Ge(C.typeArguments,D)}return!0;case 174:case 173:return!C.type&&!!C.body||Ge(C.typeParameters,D)||Ge(C.parameters,D)||!!C.type&&D(C.type)}return!!ao(C,D)}}function Uge(l){const m=hp(l);if(m.flags&4194304){const D=y6(m.type);if(D.flags&262144)return D}}function K1t(l,m,D,C){const A=Uge(l);if(A){const w=Da(A,m);if(A!==w)return Jht(Sg(w),I=>{if(I.flags&61603843&&I!==xi&&!Nt(I)){if(!l.declaration.nameType){let U;if(w4(I)||I.flags&1&&vC(A,4)<0&&(U=ah(A))&&t4(U,Ib))return $ti(I,l,Y9(A,I,m));if(K5(I))return Jti(I,l,A,m);if(xs(I))return Uti(I,l,Y9(A,I,m))}return RPe(l,Y9(A,I,m))}return I},D,C)}return Da(hp(l),m)===xi?xi:RPe(l,m,D,C)}function IPe(l,m){return m&1?!0:m&2?!1:l}function Jti(l,m,D,C){const A=l.target.elementFlags,w=Vt(AC(l),(U,Z)=>{const ce=A[Z]&8?U:A[Z]&4?H1(U):Bg([U],[A[Z]]);return ce===D?m:K1t(m,Y9(D,ce,C))}),I=IPe(l.target.readonly,b_(m));return Bg(w,Vt(w,U=>8),I)}function $ti(l,m,D){const C=W1t(m,Qt,!0,D);return Nt(C)?Ot:H1(C,IPe(Bz(l),b_(m)))}function Uti(l,m,D){const C=l.target.elementFlags,A=Vt(AC(l),(Z,ce)=>W1t(m,df(""+ce),!!(C[ce]&2),D)),w=b_(m),I=w&4?Vt(C,Z=>Z&1?2:Z):w&8?Vt(C,Z=>Z&2?1:Z):C,U=IPe(l.target.readonly,w);return kt(A,Ot)?Ot:Bg(A,I,U,l.target.labeledElementDeclarations)}function W1t(l,m,D,C){const A=hW(C,Fg(l),m),w=Da(DD(l.target||l),A),I=b_(l);return fe&&I&4&&!jl(w,49152)?S6(w,!0):fe&&I&8&&D?gp(w,524288):w}function RPe(l,m,D,C){const A=C4(l.objectFlags&-1572865|64,l.symbol);if(l.objectFlags&32){A.declaration=l.declaration;const w=Fg(l),I=$ge(w);A.typeParameter=I,m=TC(zb(w,I),m),I.mapper=m}return l.objectFlags&8388608&&(A.node=l.node),A.target=l,A.mapper=m,A.aliasSymbol=D||l.aliasSymbol,A.aliasTypeArguments=D?C:V5(l.aliasTypeArguments,m),A.objectFlags|=A.aliasTypeArguments?Lge(A.aliasTypeArguments):0,A}function OPe(l,m,D,C){const A=l.root;if(A.outerTypeParameters){const w=Vt(A.outerTypeParameters,Z=>k6(Z,m)),I=mp(w)+J9(D,C);let U=A.instantiations.get(I);if(!U){const Z=Sf(A.outerTypeParameters,w),ce=A.checkType,Fe=A.isDistributive?k6(ce,Z):void 0;U=Fe&&ce!==Fe&&Fe.flags&1179648?Jht(Sg(Fe),Te=>wPe(A,Y9(ce,Te,Z)),D,C):wPe(A,Z,D,C),A.instantiations.set(I,U)}return U}return l}function Da(l,m){return l&&m?G1t(l,m,void 0,void 0):l}function G1t(l,m,D,C){var A;if(!PC(l))return l;if(j===100||z>=5e6)return(A=Gn)==null||A.instant(Gn.Phase.CheckTypes,"instantiateType_DepthLimit",{typeId:l.id,instantiationDepth:j,instantiationCount:z}),gt(K,F.Type_instantiation_is_excessively_deep_and_possibly_infinite),Ot;M++,z++,j++;const w=qti(l,m,D,C);return j--,w}function qti(l,m,D,C){const A=l.flags;if(A&262144)return k6(l,m);if(A&524288){const w=l.objectFlags;if(w&52){if(w&4&&!l.node){const I=l.resolvedTypeArguments,U=V5(I,m);return U!==I?DPe(l.target,U):l}return w&1024?Zti(l,m):Wti(l,m,D,C)}return l}if(A&3145728){const w=l.flags&1048576?l.origin:void 0,I=w&&w.flags&3145728?w.types:l.types,U=V5(I,m);if(U===I&&D===l.aliasSymbol)return l;const Z=D||l.aliasSymbol,ce=D?C:V5(l.aliasTypeArguments,m);return A&2097152||w&&w.flags&2097152?Ds(U,Z,ce):tr(U,1,Z,ce)}if(A&4194304)return F_(Da(l.type,m));if(A&134217728)return xF(l.texts,V5(l.types,m));if(A&268435456)return $9(l.symbol,Da(l.type,m));if(A&8388608){const w=D||l.aliasSymbol,I=D?C:V5(l.aliasTypeArguments,m);return qf(Da(l.objectType,m),Da(l.indexType,m),l.accessFlags,void 0,w,I)}if(A&16777216)return OPe(l,TC(l.mapper,m),D,C);if(A&33554432){const w=Da(l.baseType,m),I=Da(l.constraint,m);return w.flags&8650752&&Fz(I)?cPe(w,I):I.flags&3||ms(vF(w),vF(I))?w:w.flags&8650752?cPe(w,I):Ds([I,w])}return l}function Zti(l,m){const D=Da(l.mappedType,m);if(!(Ju(D)&32))return l;const C=Da(l.constraintType,m);if(!(C.flags&4194304))return l;const A=yht(Da(l.source,m),D,C);return A||l}function qge(l){return l.flags&402915327?l:l.permissiveInstantiation||(l.permissiveInstantiation=Da(l,hd))}function vF(l){return l.flags&402915327?l:(l.restrictiveInstantiation||(l.restrictiveInstantiation=Da(l,Tl),l.restrictiveInstantiation.restrictiveInstantiation=l.restrictiveInstantiation),l.restrictiveInstantiation)}function Yti(l,m){return k_(l.keyType,Da(l.type,m),l.isReadonly,l.declaration)}function S4(l){switch(H.assert(l.kind!==174||Ip(l)),l.kind){case 218:case 219:case 174:case 262:return J1t(l);case 210:return Ge(l.properties,S4);case 209:return Ge(l.elements,S4);case 227:return S4(l.whenTrue)||S4(l.whenFalse);case 226:return(l.operatorToken.kind===57||l.operatorToken.kind===61)&&(S4(l.left)||S4(l.right));case 303:return S4(l.initializer);case 217:return S4(l.expression);case 292:return Ge(l.properties,S4)||oE(l.parent)&&Ge(l.parent.parent.children,S4);case 291:{const{initializer:m}=l;return!!m&&S4(m)}case 294:{const{expression:m}=l;return!!m&&S4(m)}}return!1}function J1t(l){return pZ(l)||Qti(l)}function Qti(l){return l.typeParameters||Z4(l)||!l.body?!1:l.body.kind!==241?S4(l.body):!!k2(l.body,m=>!!m.expression&&S4(m.expression))}function Zge(l){return(O2(l)||Ip(l))&&J1t(l)}function $1t(l){if(l.flags&524288){const m=Ag(l);if(m.constructSignatures.length||m.callSignatures.length){const D=C4(16,l.symbol);return D.members=m.members,D.properties=m.properties,D.callSignatures=Dt,D.constructSignatures=Dt,D.indexInfos=Dt,D}}else if(l.flags&2097152)return Ds(Vt(l.types,$1t));return l}function CD(l,m){return yE(l,m,Em)}function fW(l,m){return yE(l,m,Em)?-1:0}function jPe(l,m){return yE(l,m,Jf)?-1:0}function Xti(l,m){return yE(l,m,f_)?-1:0}function F6(l,m){return yE(l,m,f_)}function U1t(l,m){return yE(l,m,_4)}function ms(l,m){return yE(l,m,Jf)}function LC(l,m){return l.flags&1048576?ye(l.types,D=>LC(D,m)):m.flags&1048576?Ge(m.types,D=>LC(l,D)):l.flags&2097152?Ge(l.types,D=>LC(D,m)):l.flags&58982400?LC(Gh(l)||on,m):yD(m)?!!(l.flags&67633152):m===Ve?!!(l.flags&67633152)&&!yD(l):m===di?!!(l.flags&524288)&&vMe(l):H9(l,eT(m))||w4(m)&&!Bz(m)&&LC(l,To)}function Yge(l,m){return yE(l,m,Kh)}function Mte(l,m){return Yge(l,m)||Yge(m,l)}function Bh(l,m,D,C,A,w){return B4(l,m,Jf,D,C,A,w)}function A6(l,m,D,C,A,w){return VPe(l,m,Jf,D,C,A,w,void 0)}function VPe(l,m,D,C,A,w,I,U){return yE(l,m,D)?!0:!C||!mW(A,l,m,D,w,I,U)?B4(l,m,D,C,w,I,U):!1}function q1t(l){return!!(l.flags&16777216||l.flags&2097152&&Ge(l.types,q1t))}function mW(l,m,D,C,A,w,I){if(!l||q1t(D))return!1;if(!B4(m,D,C,void 0)&&eii(l,m,D,C,A,w,I))return!0;switch(l.kind){case 234:if(!Eb(l))break;case 294:case 217:return mW(l.expression,m,D,C,A,w,I);case 226:switch(l.operatorToken.kind){case 64:case 28:return mW(l.right,m,D,C,A,w,I)}break;case 210:return sii(l,m,D,C,w,I);case 209:return aii(l,m,D,C,w,I);case 292:return rii(l,m,D,C,w,I);case 219:return tii(l,m,D,C,w,I)}return!1}function eii(l,m,D,C,A,w,I){const U=Eo(m,0),Z=Eo(m,1);for(const ce of[Z,U])if(Ge(ce,Fe=>{const Te=Ys(Fe);return!(Te.flags&131073)&&B4(Te,D,C,void 0)})){const Fe=I||{};Bh(m,D,l,A,w,Fe);const Te=Fe.errors[Fe.errors.length-1];return Es(Te,Tu(l,ce===Z?F.Did_you_mean_to_use_new_with_this_expression:F.Did_you_mean_to_call_this_expression)),!0}return!1}function tii(l,m,D,C,A,w){if(go(l.body)||Ge(l.parameters,UU))return!1;const I=wF(m);if(!I)return!1;const U=Eo(D,0);if(!S(U))return!1;const Z=l.body,ce=Ys(I),Fe=tr(Vt(U,Ys));if(!B4(ce,Fe,C,void 0)){const Te=Z&&mW(Z,ce,Fe,C,void 0,A,w);if(Te)return Te;const $e=w||{};if(B4(ce,Fe,C,Z,void 0,A,$e),$e.errors)return D.symbol&&S(D.symbol.declarations)&&Es($e.errors[$e.errors.length-1],Tu(D.symbol.declarations[0],F.The_expected_type_comes_from_the_return_type_of_this_signature)),!(kd(l)&2)&&!he(ce,"then")&&B4(fie(ce),Fe,C,void 0)&&Es($e.errors[$e.errors.length-1],Tu(l,F.Did_you_mean_to_mark_this_function_as_async)),!0}return!1}function Z1t(l,m,D){const C=b6(m,D);if(C)return C;if(m.flags&1048576){const A=uht(l,m);if(A)return b6(A,D)}}function Y1t(l,m){Qte(l,m,!1);const D=jz(l,1);return yW(),D}function zte(l,m,D,C,A,w){let I=!1;for(const U of l){const{errorNode:Z,innerExpression:ce,nameType:Fe,errorMessage:Te}=U;let $e=Z1t(m,D,Fe);if(!$e||$e.flags&8388608)continue;let ut=b6(m,Fe);if(!ut)continue;const zt=Rge(Fe,void 0);if(!B4(ut,$e,C,void 0)){const gi=ce&&mW(ce,ut,$e,C,void 0,A,w);if(I=!0,!gi){const Wi=w||{},dn=ce?Y1t(ce,ut):ut;if(je&&Xge(dn,$e)){const nu=Tu(Z,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(dn),gn($e));Hs.add(nu),Wi.errors=[nu]}else{const nu=!!(zt&&(Zo(D,zt)||Xt).flags&16777216),En=!!(zt&&(Zo(m,zt)||Xt).flags&16777216);$e=B6($e,nu),ut=B6(ut,nu&&En),B4(dn,$e,C,Z,Te,A,Wi)&&dn!==ut&&B4(ut,$e,C,Z,Te,A,Wi)}if(Wi.errors){const nu=Wi.errors[Wi.errors.length-1],En=X4(Fe)?ep(Fe):void 0,Ri=En!==void 0?Zo(D,En):void 0;let Nn=!1;if(!Ri){const vn=uW(D,Fe);vn&&vn.declaration&&!zn(vn.declaration).hasNoDefaultLib&&(Nn=!0,Es(nu,Tu(vn.declaration,F.The_expected_type_comes_from_this_index_signature)))}if(!Nn&&(Ri&&S(Ri.declarations)||D.symbol&&S(D.symbol.declarations))){const vn=Ri&&S(Ri.declarations)?Ri.declarations[0]:D.symbol.declarations[0];zn(vn).hasNoDefaultLib||Es(nu,Tu(vn,F.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1,En&&!(Fe.flags&8192)?Qr(En):gn(Fe),gn(D)))}}}}}return I}function iii(l,m,D,C,A,w){const I=Oc(D,aEe),U=Oc(D,Fe=>!aEe(Fe)),Z=U!==Wu?Oze(13,0,U,void 0):void 0;let ce=!1;for(let Fe=l.next();!Fe.done;Fe=l.next()){const{errorNode:Te,innerExpression:$e,nameType:ut,errorMessage:zt}=Fe.value;let gi=Z;const Wi=I!==Wu?Z1t(m,I,ut):void 0;if(Wi&&!(Wi.flags&8388608)&&(gi=Z?tr([Z,Wi]):Wi),!gi)continue;let dn=b6(m,ut);if(!dn)continue;const nu=Rge(ut,void 0);if(!B4(dn,gi,C,void 0)){const En=$e&&mW($e,dn,gi,C,void 0,A,w);if(ce=!0,!En){const Ri=w||{},Nn=$e?Y1t($e,dn):dn;if(je&&Xge(Nn,gi)){const vn=Tu(Te,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target,gn(Nn),gn(gi));Hs.add(vn),Ri.errors=[vn]}else{const vn=!!(nu&&(Zo(I,nu)||Xt).flags&16777216),An=!!(nu&&(Zo(m,nu)||Xt).flags&16777216);gi=B6(gi,vn),dn=B6(dn,vn&&An),B4(Nn,gi,C,Te,zt,A,Ri)&&Nn!==dn&&B4(dn,gi,C,Te,zt,A,Ri)}}}}return ce}function*nii(l){if(S(l.properties))for(const m of l.properties)H7(m)||VMe(lV(m.name))||(yield{errorNode:m.name,innerExpression:m.initializer,nameType:df(lV(m.name))})}function*uii(l,m){if(!S(l.children))return;let D=0;for(let C=0;C1;let Wi,dn;if(pPe(!1)!==Ga){const En=l1t(me);Wi=Oc(ut,Ri=>ms(Ri,En)),dn=Oc(ut,Ri=>!ms(Ri,En))}else Wi=Oc(ut,aEe),dn=Oc(ut,En=>!aEe(En));if(gi){if(Wi!==Wu){const En=Bg(TEe(ce,0)),Ri=uii(ce,Z);I=iii(Ri,En,Wi,C,A,w)||I}else if(!yE(qf(m,$e),ut,C)){I=!0;const En=gt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}else if(dn!==Wu){const En=zt[0],Ri=Q1t(En,$e,Z);Ri&&(I=zte(function*(){yield Ri}(),m,D,C,A,w)||I)}else if(!yE(qf(m,$e),ut,C)){I=!0;const En=gt(ce.openingElement.tagName,F.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided,Te,gn(ut));w&&w.skipLogging&&(w.errors||(w.errors=[])).push(En)}}return I;function Z(){if(!U){const ce=Wc(l.parent.tagName),Fe=eie(SF(l)),Te=Fe===void 0?"children":Qr(Fe),$e=qf(D,df(Te)),ut=F._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;U={...ut,key:"!!ALREADY FORMATTED!!",message:vle(ut,ce,Te,gn($e))}}return U}}function*X1t(l,m){const D=S(l.elements);if(D)for(let C=0;CZ:BE(l)>Z))return C&&!(D&8)&&A(F.Target_signature_provides_too_few_arguments_Expected_0_or_more_but_got_1,BE(l),Z),0;l.typeParameters&&l.typeParameters!==m.typeParameters&&(m=cei(m),l=qft(l,m,void 0,I));const Fe=Cm(l),Te=BW(l),$e=BW(m);(Te||$e)&&Da(Te||$e,U);const ut=m.declaration?m.declaration.kind:0,zt=!(D&3)&&xe&&ut!==174&&ut!==173&&ut!==176;let gi=-1;const Wi=FC(l);if(Wi&&Wi!==da){const En=FC(m);if(En){const Ri=!zt&&I(Wi,En,!1)||I(En,Wi,C);if(!Ri)return C&&A(F.The_this_types_of_each_signature_are_incompatible),0;gi&=Ri}}const dn=Te||$e?Math.min(Fe,Z):Math.max(Fe,Z),nu=Te||$e?dn-1:-1;for(let En=0;En=BE(l)&&En=3&&m[0].flags&32768&&m[1].flags&65536&&Ge(m,yD)?67108864:0)}return!!(l.objectFlags&67108864)}return!1}function Az(l){return!!((l.flags&1048576?l.types[0]:l).flags&32768)}function tht(l){return l.flags&524288&&!e4(l)&&u0(l).length===0&&Ah(l).length===1&&!!F3(l,ct)||l.flags&3145728&&ye(l.types,tht)||!1}function WPe(l,m,D){const C=l.flags&8?cf(l):l,A=m.flags&8?cf(m):m;if(C===A)return!0;if(C.escapedName!==A.escapedName||!(C.flags&256)||!(A.flags&256))return!1;const w=Yo(C)+","+Yo(A),I=uC.get(w);if(I!==void 0&&!(!(I&4)&&I&2&&D))return!!(I&1);const U=Wn(A);for(const Z of u0(Wn(C)))if(Z.flags&8){const ce=Zo(U,Z.escapedName);if(!ce||!(ce.flags&8))return D?(D(F.Property_0_is_missing_in_type_1,cc(Z),gn(el(A),void 0,64)),uC.set(w,6)):uC.set(w,2),!1}return uC.set(w,1),!0}function pW(l,m,D,C){const A=l.flags,w=m.flags;return w&1||A&131072||l===xi||w&2&&!(D===_4&&A&1)?!0:w&131072?!1:!!(A&402653316&&w&4||A&128&&A&1024&&w&128&&!(w&1024)&&l.value===m.value||A&296&&w&8||A&256&&A&1024&&w&256&&!(w&1024)&&l.value===m.value||A&2112&&w&64||A&528&&w&16||A&12288&&w&4096||A&32&&w&32&&l.symbol.escapedName===m.symbol.escapedName&&WPe(l.symbol,m.symbol,C)||A&1024&&w&1024&&(A&1048576&&w&1048576&&WPe(l.symbol,m.symbol,C)||A&2944&&w&2944&&l.value===m.value&&WPe(l.symbol,m.symbol,C))||A&32768&&(!fe&&!(w&3145728)||w&49152)||A&65536&&(!fe&&!(w&3145728)||w&65536)||A&524288&&w&67108864&&!(D===_4&&yD(l)&&!(Ju(l)&8192))||(D===Jf||D===Kh)&&(A&1||A&8&&(w&32||w&256&&w&1024)||A&256&&!(A&1024)&&(w&32||w&256&&w&1024&&l.value===m.value)||hii(m)))}function yE(l,m,D){if(Mb(l)&&(l=l.regularType),Mb(m)&&(m=m.regularType),l===m)return!0;if(D!==Em){if(D===Kh&&!(m.flags&131072)&&pW(m,l,D)||pW(l,m,D))return!0}else if(!((l.flags|m.flags)&61865984)){if(l.flags!==m.flags)return!1;if(l.flags&67358815)return!0}if(l.flags&524288&&m.flags&524288){const C=D.get(iEe(l,m,0,D,!1));if(C!==void 0)return!!(C&1)}return l.flags&469499904||m.flags&469499904?B4(l,m,D,void 0):!1}function iht(l,m){return Ju(l)&2048&&VMe(m.escapedName)}function Ite(l,m){for(;;){const D=Mb(l)?l.regularType:K5(l)?mii(l,m):Ju(l)&4?l.node?R5(l.target,V0(l)):QPe(l)||l:l.flags&3145728?fii(l,m):l.flags&33554432?m?l.baseType:dPe(l):l.flags&25165824?vD(l,m):l;if(D===l)return D;l=D}}function fii(l,m){const D=Sg(l);if(D!==l)return D;if(l.flags&2097152&&Ge(l.types,yD)){const C=Pu(l.types,A=>Ite(A,m));if(C!==l.types)return Ds(C)}return l}function mii(l,m){const D=AC(l),C=Pu(D,A=>A.flags&25165824?vD(A,m):A);return D!==C?xPe(l.target,C):l}function B4(l,m,D,C,A,w,I){var U;let Z,ce,Fe,Te,$e,ut,zt=0,gi=0,Wi=0,dn=0,nu=!1,En=0,Ri=0,Nn,vn,An=16e6-D.size>>3;H.assert(D!==Em||!C,"no error reporting in identity checking");const _n=$n(l,m,3,!!C,A);if(vn&&mo(),nu){const Ft=iEe(l,m,0,D,!1);D.set(Ft,6),(U=Gn)==null||U.instant(Gn.Phase.CheckTypes,"checkTypeRelatedTo_DepthLimit",{sourceId:l.id,targetId:m.id,depth:gi,targetDepth:Wi});const $t=An<=0?F.Excessive_complexity_comparing_types_0_and_1:F.Excessive_stack_depth_comparing_types_0_and_1,Mi=gt(C||K,$t,gn(l),gn(m));I&&(I.errors||(I.errors=[])).push(Mi)}else if(Z){if(w){const Mi=w();Mi&&(ske(Mi,Z),Z=Mi)}let Ft;if(A&&C&&!_n&&l.symbol){const Mi=qr(l.symbol);if(Mi.originatingImport&&!dm(Mi.originatingImport)&&B4(Wn(Mi.target),m,D,void 0)){const xu=Tu(Mi.originatingImport,F.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);Ft=Di(Ft,xu)}}const $t=Y3(zn(C),C,Z,Ft);ce&&Es($t,...ce),I&&(I.errors||(I.errors=[])).push($t),(!I||!I.skipLogging)&&Hs.add($t)}return C&&I&&I.skipLogging&&_n===0&&H.assert(!!I.errors,"missed opportunity to interact with error."),_n!==0;function hu(Ft){Z=Ft.errorInfo,Nn=Ft.lastSkippedInfo,vn=Ft.incompatibleStack,En=Ft.overrideNextErrorInfo,Ri=Ft.skipParentCounter,ce=Ft.relatedInfo}function oo(){return{errorInfo:Z,lastSkippedInfo:Nn,incompatibleStack:vn==null?void 0:vn.slice(),overrideNextErrorInfo:En,skipParentCounter:Ri,relatedInfo:ce==null?void 0:ce.slice()}}function _o(Ft,...$t){En++,Nn=void 0,(vn||(vn=[])).push([Ft,...$t])}function mo(){const Ft=vn||[];vn=void 0;const $t=Nn;if(Nn=void 0,Ft.length===1){Aa(...Ft[0]),$t&&hn(void 0,...$t);return}let Mi="";const Bn=[];for(;Ft.length;){const[xu,...un]=Ft.pop();switch(xu.code){case F.Types_of_property_0_are_incompatible.code:{Mi.indexOf("new ")===0&&(Mi=`(${Mi})`);const lu=""+un[0];Mi.length===0?Mi=`${lu}`:Nm(lu,js(ae))?Mi=`${Mi}.${lu}`:lu[0]==="["&&lu[lu.length-1]==="]"?Mi=`${Mi}${lu}`:Mi=`${Mi}[${lu}]`;break}case F.Call_signature_return_types_0_and_1_are_incompatible.code:case F.Construct_signature_return_types_0_and_1_are_incompatible.code:case F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:case F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:{if(Mi.length===0){let lu=xu;xu.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?lu=F.Call_signature_return_types_0_and_1_are_incompatible:xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code&&(lu=F.Construct_signature_return_types_0_and_1_are_incompatible),Bn.unshift([lu,un[0],un[1]])}else{const lu=xu.code===F.Construct_signature_return_types_0_and_1_are_incompatible.code||xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"new ":"",xr=xu.code===F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code||xu.code===F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code?"":"...";Mi=`${lu}${Mi}(${xr})`}break}case F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code:{Bn.unshift([F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,un[0],un[1]]);break}case F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code:{Bn.unshift([F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,un[0],un[1],un[2]]);break}default:return H.fail(`Unhandled Diagnostic: ${xu.code}`)}}Mi?Aa(Mi[Mi.length-1]===")"?F.The_types_returned_by_0_are_incompatible_between_these_types:F.The_types_of_0_are_incompatible_between_these_types,Mi):Bn.shift();for(const[xu,...un]of Bn){const lu=xu.elidedInCompatabilityPyramid;xu.elidedInCompatabilityPyramid=!1,Aa(xu,...un),xu.elidedInCompatabilityPyramid=lu}$t&&hn(void 0,...$t)}function Aa(Ft,...$t){H.assert(!!C),vn&&mo(),!Ft.elidedInCompatabilityPyramid&&(Ri===0?Z=ro(Z,Ft,...$t):Ri--)}function oh(Ft,...$t){Aa(Ft,...$t),Ri++}function i4(Ft){H.assert(!!Z),ce?ce.push(Ft):ce=[Ft]}function hn(Ft,$t,Mi){vn&&mo();const[Bn,xu]=h6($t,Mi);let un=$t,lu=Bn;if(gW($t)&&!GPe(Mi)&&(un=kD($t),H.assert(!ms(un,Mi),"generalized source shouldn't be assignable"),lu=P5(un)),(Mi.flags&8388608&&!($t.flags&8388608)?Mi.objectType.flags:Mi.flags)&262144&&Mi!==$&&Mi!==tt){const Tr=Gh(Mi);let Xa;Tr&&(ms(un,Tr)||(Xa=ms($t,Tr)))?Aa(F._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2,Xa?Bn:lu,xu,gn(Tr)):(Z=void 0,Aa(F._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1,xu,lu))}if(Ft)Ft===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1&&je&&nht($t,Mi).length&&(Ft=F.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(D===Kh)Ft=F.Type_0_is_not_comparable_to_type_1;else if(Bn===xu)Ft=F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;else if(je&&nht($t,Mi).length)Ft=F.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($t.flags&128&&Mi.flags&1048576){const Tr=xri($t,Mi);if(Tr){Aa(F.Type_0_is_not_assignable_to_type_1_Did_you_mean_2,lu,xu,gn(Tr));return}}Ft=F.Type_0_is_not_assignable_to_type_1}Aa(Ft,lu,xu)}function Kn(Ft,$t){const Mi=lF(Ft.symbol)?gn(Ft,Ft.symbol.valueDeclaration):gn(Ft),Bn=lF($t.symbol)?gn($t,$t.symbol.valueDeclaration):gn($t);(uc===Ft&&ct===$t||mc===Ft&&Qt===$t||bl===Ft&&Er===$t||u1t()===Ft&&er===$t)&&Aa(F._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible,Bn,Mi)}function Yr(Ft,$t,Mi){return xs(Ft)?Ft.target.readonly&&Vte($t)?(Mi&&Aa(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):Ib($t):Bz(Ft)&&Vte($t)?(Mi&&Aa(F.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1,gn(Ft),gn($t)),!1):xs($t)?w4(Ft):!0}function yo(Ft,$t,Mi){return $n(Ft,$t,3,Mi)}function $n(Ft,$t,Mi=3,Bn=!1,xu,un=0){if(Ft===$t)return-1;if(Ft.flags&524288&&$t.flags&402784252)return D===Kh&&!($t.flags&131072)&&pW($t,Ft,D)||pW(Ft,$t,D,Bn?Aa:void 0)?-1:(Bn&&ws(Ft,$t,Ft,$t,xu),0);const lu=Ite(Ft,!1);let xr=Ite($t,!0);if(lu===xr)return-1;if(D===Em)return lu.flags!==xr.flags?0:lu.flags&67358815?-1:(N0(lu,xr),pr(lu,xr,!1,0,Mi));if(lu.flags&262144&&EF(lu)===xr)return-1;if(lu.flags&470302716&&xr.flags&1048576){const Tr=xr.types,Xa=Tr.length===2&&Tr[0].flags&98304?Tr[1]:Tr.length===3&&Tr[0].flags&98304&&Tr[1].flags&98304?Tr[2]:void 0;if(Xa&&!(Xa.flags&98304)&&(xr=Ite(Xa,!0),lu===xr))return-1}if(D===Kh&&!(xr.flags&131072)&&pW(xr,lu,D)||pW(lu,xr,D,Bn?Aa:void 0))return-1;if(lu.flags&469499904||xr.flags&469499904){if(!(un&2)&&MC(lu)&&Ju(lu)&8192&&Qs(lu,xr,Bn))return Bn&&hn(xu,lu,$t.aliasSymbol?$t:xr),0;const Xa=(D!==Kh||Tg(lu))&&!(un&2)&&lu.flags&405405692&&lu!==Ve&&xr.flags&2621440&&rht(xr)&&(u0(lu).length>0||l_e(lu)),jo=!!(Ju(lu)&2048);if(Xa&&!gii(lu,xr,jo)){if(Bn){const po=gn(Ft.aliasSymbol?Ft:lu),ts=gn($t.aliasSymbol?$t:xr),P0=Eo(lu,0),Js=Eo(lu,1);P0.length>0&&$n(Ys(P0[0]),xr,1,!1)||Js.length>0&&$n(Ys(Js[0]),xr,1,!1)?Aa(F.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it,po,ts):Aa(F.Type_0_has_no_properties_in_common_with_type_1,po,ts)}return 0}N0(lu,xr);const br=lu.flags&1048576&&lu.types.length<4&&!(xr.flags&1048576)||xr.flags&1048576&&xr.types.length<4&&!(lu.flags&469499904)?Ac(lu,xr,Bn,un):pr(lu,xr,Bn,un,Mi);if(br)return br}return Bn&&ws(Ft,$t,lu,xr,xu),0}function ws(Ft,$t,Mi,Bn,xu){var un,lu;const xr=!!QPe(Ft),Tr=!!QPe($t);Mi=Ft.aliasSymbol||xr?Ft:Mi,Bn=$t.aliasSymbol||Tr?$t:Bn;let Xa=En>0;if(Xa&&En--,Mi.flags&524288&&Bn.flags&524288){const jo=Z;Yr(Mi,Bn,!0),Z!==jo&&(Xa=!!Z)}if(Mi.flags&524288&&Bn.flags&402784252)Kn(Mi,Bn);else if(Mi.symbol&&Mi.flags&524288&&Ve===Mi)Aa(F.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);else if(Ju(Mi)&2048&&Bn.flags&2097152){const jo=Bn.types,Jo=Hb(Om.IntrinsicAttributes,C),br=Hb(Om.IntrinsicClassAttributes,C);if(!Nt(Jo)&&!Nt(br)&&(kt(jo,Jo)||kt(jo,br)))return}else Z=XNe(Z,$t);if(!xu&&Xa){Nn=[Mi,Bn];return}if(hn(xu,Mi,Bn),Mi.flags&262144&&((lu=(un=Mi.symbol)==null?void 0:un.declarations)!=null&&lu[0])&&!EF(Mi)){const jo=$ge(Mi);if(jo.constraint=Da(Bn,zb(Mi,jo)),nW(jo)){const Jo=gn(Bn,Mi.symbol.declarations[0]);i4(Tu(Mi.symbol.declarations[0],F.This_type_parameter_might_need_an_extends_0_constraint,Jo))}}}function N0(Ft,$t){if(Gn&&Ft.flags&3145728&&$t.flags&3145728){const Mi=Ft,Bn=$t;if(Mi.objectFlags&Bn.objectFlags&32768)return;const xu=Mi.types.length,un=Bn.types.length;xu*un>1e6&&Gn.instant(Gn.Phase.CheckTypes,"traceUnionsOrIntersectionsTooLarge_DepthLimit",{sourceId:Ft.id,sourceSize:xu,targetId:$t.id,targetSize:un,pos:C==null?void 0:C.pos,end:C==null?void 0:C.end})}}function od(Ft,$t){return tr(nn(Ft,(Bn,xu)=>{var un;xu=Jh(xu);const lu=xu.flags&3145728?YNe(xu,$t):yC(xu,$t),xr=lu&&Wn(lu)||((un=G9(xu,$t))==null?void 0:un.type)||te;return Di(Bn,xr)},void 0)||Dt)}function Qs(Ft,$t,Mi){var Bn;if(!iie($t)||!Ae&&Ju($t)&4096)return!1;const xu=!!(Ju(Ft)&2048);if((D===Jf||D===Kh)&&(Pz(Ve,$t)||!xu&&bD($t)))return!1;let un=$t,lu;$t.flags&1048576&&(un=Ept(Ft,$t,$n)||vci($t),lu=un.flags&1048576?un.types:[un]);for(const xr of u0(Ft))if(Td(xr,Ft.symbol)&&!iht(Ft,xr)){if(!WMe(un,xr.escapedName,xu)){if(Mi){const Tr=Oc(un,iie);if(!C)return H.fail();if(G2(C)||Ih(C)||Ih(C.parent)){xr.valueDeclaration&&sE(xr.valueDeclaration)&&zn(C)===zn(xr.valueDeclaration.name)&&(C=xr.valueDeclaration.name);const Xa=Sr(xr),jo=Hft(Xa,Tr),Jo=jo?Sr(jo):void 0;Jo?Aa(F.Property_0_does_not_exist_on_type_1_Did_you_mean_2,Xa,gn(Tr),Jo):Aa(F.Property_0_does_not_exist_on_type_1,Xa,gn(Tr))}else{const Xa=((Bn=Ft.symbol)==null?void 0:Bn.declarations)&&Ki(Ft.symbol.declarations);let jo;if(xr.valueDeclaration&&Tn(xr.valueDeclaration,Jo=>Jo===Xa)&&zn(Xa)===zn(C)){const Jo=xr.valueDeclaration;H.assertNode(Jo,Z3);const br=Jo.name;C=br,at(br)&&(jo=XMe(br,Tr))}jo!==void 0?oh(F.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2,Sr(xr),gn(Tr),jo):oh(F.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1,Sr(xr),gn(Tr))}}return!0}if(lu&&!$n(Wn(xr),od(lu,xr.escapedName),3,Mi))return Mi&&_o(F.Types_of_property_0_are_incompatible,Sr(xr)),!0}return!1}function Td(Ft,$t){return Ft.valueDeclaration&&$t.valueDeclaration&&Ft.valueDeclaration.parent===$t.valueDeclaration}function Ac(Ft,$t,Mi,Bn){if(Ft.flags&1048576){if($t.flags&1048576){const xu=Ft.origin;if(xu&&xu.flags&2097152&&$t.aliasSymbol&&kt(xu.types,$t))return-1;const un=$t.origin;if(un&&un.flags&1048576&&Ft.aliasSymbol&&kt(un.types,Ft))return-1}return D===Kh?ze(Ft,$t,Mi&&!(Ft.flags&402784252),Bn):Bu(Ft,$t,Mi&&!(Ft.flags&402784252),Bn)}if($t.flags&1048576)return bm(DW(Ft),$t,Mi&&!(Ft.flags&402784252)&&!($t.flags&402784252));if($t.flags&2097152)return St(Ft,$t,Mi,2);if(D===Kh&&$t.flags&402784252){const xu=Pu(Ft.types,un=>un.flags&465829888?Gh(un)||on:un);if(xu!==Ft.types){if(Ft=Ds(xu),Ft.flags&131072)return 0;if(!(Ft.flags&2097152))return $n(Ft,$t,1,!1)||$n($t,Ft,1,!1)}}return ze(Ft,$t,!1,1)}function tl(Ft,$t){let Mi=-1;const Bn=Ft.types;for(const xu of Bn){const un=bm(xu,$t,!1);if(!un)return 0;Mi&=un}return Mi}function bm(Ft,$t,Mi){const Bn=$t.types;if($t.flags&1048576){if(C6(Bn,Ft))return-1;if(D!==Kh&&Ju($t)&32768&&!(Ft.flags&1024)&&(Ft.flags&2688||(D===f_||D===_4)&&Ft.flags&256)){const un=Ft===Ft.regularType?Ft.freshType:Ft.regularType,lu=Ft.flags&128?ct:Ft.flags&256?Qt:Ft.flags&2048?Ti:void 0;return lu&&C6(Bn,lu)||un&&C6(Bn,un)?-1:0}const xu=Pht($t,Ft);if(xu){const un=$n(Ft,xu,2,!1);if(un)return un}}for(const xu of Bn){const un=$n(Ft,xu,2,!1);if(un)return un}if(Mi){const xu=uht(Ft,$t,$n);xu&&$n(Ft,xu,2,!0)}return 0}function St(Ft,$t,Mi,Bn){let xu=-1;const un=$t.types;for(const lu of un){const xr=$n(Ft,lu,2,Mi,void 0,Bn);if(!xr)return 0;xu&=xr}return xu}function ze(Ft,$t,Mi,Bn){const xu=Ft.types;if(Ft.flags&1048576&&C6(xu,$t))return-1;const un=xu.length;for(let lu=0;lu=lu.types.length&&un.length%lu.types.length===0){const jo=$n(Tr,lu.types[xr%lu.types.length],3,!1,void 0,Bn);if(jo){xu&=jo;continue}}const Xa=$n(Tr,$t,1,Mi,void 0,Bn);if(!Xa)return 0;xu&=Xa}return xu}function Dr(Ft=Dt,$t=Dt,Mi=Dt,Bn,xu){if(Ft.length!==$t.length&&D===Em)return 0;const un=Ft.length<=$t.length?Ft.length:$t.length;let lu=-1;for(let xr=0;xr(po|=Js?16:8,br(Js)));let ts;return dn===3?((un=Gn)==null||un.instant(Gn.Phase.CheckTypes,"recursiveTypeRelatedTo_DepthLimit",{sourceId:Ft.id,sourceIdStack:$e.map(Js=>Js.id),targetId:$t.id,targetIdStack:ut.map(Js=>Js.id),depth:gi,targetDepth:Wi}),ts=3):((lu=Gn)==null||lu.push(Gn.Phase.CheckTypes,"structuredTypeRelatedTo",{sourceId:Ft.id,targetId:$t.id}),ts=zr(Ft,$t,Mi,Bn),(xr=Gn)==null||xr.pop()),Ko&&(Ko=br),xu&1&&gi--,xu&2&&Wi--,dn=Jo,ts?(ts===-1||gi===0&&Wi===0)&&P0(ts===-1||ts===3):(D.set(Tr,(Mi?4:0)|2|po),An--,P0(!1)),ts;function P0(Js){for(let Hd=jo;Hdxr!==Ft)&&(un=$n(lu,$t,1,!1,void 0,Bn))}un&&!(Bn&2)&&$t.flags&2097152&&!Nb($t)&&Ft.flags&2621440?(un&=mn(Ft,$t,Mi,void 0,!1,0),un&&MC(Ft)&&Ju(Ft)&8192&&(un&=yl(Ft,$t,!1,Mi,0))):un&&jge($t)&&!Ib($t)&&Ft.flags&2097152&&Jh(Ft).flags&3670016&&!Ge(Ft.types,lu=>lu===$t||!!(Ju(lu)&262144))&&(un&=mn(Ft,$t,Mi,void 0,!0,Bn))}return un&&hu(xu),un}function ju(Ft,$t,Mi,Bn,xu){let un,lu,xr=!1,Tr=Ft.flags;const Xa=$t.flags;if(D===Em){if(Tr&3145728){let br=tl(Ft,$t);return br&&(br&=tl($t,Ft)),br}if(Tr&4194304)return $n(Ft.type,$t.type,3,!1);if(Tr&8388608&&(un=$n(Ft.objectType,$t.objectType,3,!1))&&(un&=$n(Ft.indexType,$t.indexType,3,!1))||Tr&16777216&&Ft.root.isDistributive===$t.root.isDistributive&&(un=$n(Ft.checkType,$t.checkType,3,!1))&&(un&=$n(Ft.extendsType,$t.extendsType,3,!1))&&(un&=$n(BC(Ft),BC($t),3,!1))&&(un&=$n(wC(Ft),wC($t),3,!1))||Tr&33554432&&(un=$n(Ft.baseType,$t.baseType,3,!1))&&(un&=$n(Ft.constraint,$t.constraint,3,!1)))return un;if(!(Tr&524288))return 0}else if(Tr&3145728||Xa&3145728){if(un=Ac(Ft,$t,Mi,Bn))return un;if(!(Tr&465829888||Tr&524288&&Xa&1048576||Tr&2097152&&Xa&467402752))return 0}if(Tr&17301504&&Ft.aliasSymbol&&Ft.aliasTypeArguments&&Ft.aliasSymbol===$t.aliasSymbol&&!(eEe(Ft)||eEe($t))){const br=aht(Ft.aliasSymbol);if(br===Dt)return 1;const po=qr(Ft.aliasSymbol).typeParameters,ts=y_(po),P0=x6(Ft.aliasTypeArguments,po,ts,Xn(Ft.aliasSymbol.valueDeclaration)),Js=x6($t.aliasTypeArguments,po,ts,Xn(Ft.aliasSymbol.valueDeclaration)),Hd=Jo(P0,Js,br,Bn);if(Hd!==void 0)return Hd}if(pht(Ft)&&!Ft.target.readonly&&(un=$n(V0(Ft)[0],$t,1))||pht($t)&&($t.target.readonly||Vte(Gh(Ft)||Ft))&&(un=$n(Ft,V0($t)[0],2)))return un;if(Xa&262144){if(Ju(Ft)&32&&!Ft.declaration.nameType&&$n(F_($t),hp(Ft),3)&&!(b_(Ft)&4)){const br=DD(Ft),po=qf($t,Fg(Ft));if(un=$n(br,po,3,Mi))return un}if(D===Kh&&Tr&262144){let br=ah(Ft);if(br&&nW(Ft))for(;br&&kE(br,po=>!!(po.flags&262144));){if(un=$n(br,$t,1,!1))return un;br=ah(br)}return 0}}else if(Xa&4194304){const br=$t.type;if(Tr&4194304&&(un=$n(br,Ft.type,3,!1)))return un;if(xs(br)){if(un=$n(Ft,f1t(br),2,Mi))return un}else{const po=JNe(br);if(po){if($n(Ft,F_(po,$t.indexFlags|4),2,Mi)===-1)return-1}else if(e4(br)){const ts=I5(br),P0=hp(br);let Js;if(ts&&iW(br)){const Hd=Jh(K9(br)),wE=[];WNe(Hd,8576,!1,TE=>void wE.push(Da(ts,hW(br.mapper,Fg(br),TE)))),Js=tr([...wE,ts])}else Js=ts||P0;if($n(Ft,Js,2,Mi)===-1)return-1}}}else if(Xa&8388608){if(Tr&8388608){if((un=$n(Ft.objectType,$t.objectType,3,Mi))&&(un&=$n(Ft.indexType,$t.indexType,3,Mi)),un)return un;Mi&&(lu=Z)}if(D===Jf||D===Kh){const br=$t.objectType,po=$t.indexType,ts=Gh(br)||br,P0=Gh(po)||po;if(!Nb(ts)&&!SC(P0)){const Js=4|(ts!==br?2:0),Hd=b6(ts,P0,Js);if(Hd){if(Mi&&lu&&hu(xu),un=$n(Ft,Hd,2,Mi,void 0,Bn))return un;Mi&&lu&&Z&&(Z=jo([lu])<=jo([Z])?lu:Z)}}}Mi&&(lu=void 0)}else if(e4($t)&&D!==Em){const br=!!$t.declaration.nameType,po=DD($t),ts=b_($t);if(!(ts&8)){if(!br&&po.flags&8388608&&po.objectType===Ft&&po.indexType===Fg($t))return-1;if(!e4(Ft)){const P0=br?I5($t):hp($t),Js=F_(Ft,2),Hd=ts&4,wE=Hd?Cte(P0,Js):void 0;if(Hd?!(wE.flags&131072):$n(P0,Js,3)){const TE=DD($t),$b=Fg($t),xT=Mz(TE,-98305);if(!br&&xT.flags&8388608&&xT.indexType===$b){if(un=$n(Ft,xT.objectType,2,Mi))return un}else{const nS=br?wE||P0:wE?Ds([wE,$b]):$b,BD=qf(Ft,nS);if(un=$n(BD,TE,3,Mi))return un}}lu=Z,hu(xu)}}}else if(Xa&16777216){if(Sz($t,ut,Wi,10))return 3;const br=$t;if(!br.root.inferTypeParameters&&!Bti(br.root)&&!(Ft.flags&16777216&&Ft.root===br.root)){const po=!ms(qge(br.checkType),qge(br.extendsType)),ts=!po&&ms(vF(br.checkType),vF(br.extendsType));if((un=po?-1:$n(Ft,BC(br),2,!1,void 0,Bn))&&(un&=ts?-1:$n(Ft,wC(br),2,!1,void 0,Bn),un))return un}}else if(Xa&134217728){if(Tr&134217728){if(D===Kh)return ini(Ft,$t)?0:-1;Da(Ft,nd)}if(EEe(Ft,$t))return-1}else if($t.flags&268435456&&!(Ft.flags&268435456)&&fMe(Ft,$t))return-1;if(Tr&8650752){if(!(Tr&8388608&&Xa&8388608)){const br=EF(Ft)||on;if(un=$n(br,$t,1,!1,void 0,Bn))return un;if(un=$n(xm(br,Ft),$t,1,Mi&&br!==on&&!(Xa&Tr&262144),void 0,Bn))return un;if(ZNe(Ft)){const po=EF(Ft.indexType);if(po&&(un=$n(qf(Ft.objectType,po),$t,1,Mi)))return un}}}else if(Tr&4194304){if(un=$n(bc,$t,1,Mi))return un}else if(Tr&134217728&&!(Xa&524288)){if(!(Xa&134217728)){const br=Gh(Ft);if(br&&br!==Ft&&(un=$n(br,$t,1,Mi)))return un}}else if(Tr&268435456)if(Xa&268435456){if(Ft.symbol!==$t.symbol)return 0;if(un=$n(Ft.type,$t.type,3,Mi))return un}else{const br=Gh(Ft);if(br&&(un=$n(br,$t,1,Mi)))return un}else if(Tr&16777216){if(Sz(Ft,$e,gi,10))return 3;if(Xa&16777216){const po=Ft.root.inferTypeParameters;let ts=Ft.extendsType,P0;if(po){const Js=xW(po,void 0,0,yo);AD(Js.inferences,$t.extendsType,ts,1536),ts=Da(ts,Js.mapper),P0=Js.mapper}if(CD(ts,$t.extendsType)&&($n(Ft.checkType,$t.checkType,3)||$n($t.checkType,Ft.checkType,3))&&((un=$n(Da(BC(Ft),P0),BC($t),3,Mi))&&(un&=$n(wC(Ft),wC($t),3,Mi)),un))return un}else{const po=nW(Ft)?Adt(Ft):void 0;if(po&&(un=$n(po,$t,1,Mi)))return un}const br=$Ne(Ft);if(br&&(un=$n(br,$t,1,Mi)))return un}else{if(D!==f_&&D!==_4&&jXt($t)&&bD(Ft))return-1;if(e4($t))return e4(Ft)&&(un=vu(Ft,$t,Mi))?un:0;const br=!!(Tr&402784252);if(D!==Em)Ft=Jh(Ft),Tr=Ft.flags;else if(e4(Ft))return 0;if(Ju(Ft)&4&&Ju($t)&4&&Ft.target===$t.target&&!xs(Ft)&&!(eEe(Ft)||eEe($t))){if(rEe(Ft))return-1;const po=$Pe(Ft.target);if(po===Dt)return 1;const ts=Jo(V0(Ft),V0($t),po,Bn);if(ts!==void 0)return ts}else{if(Bz($t)?t4(Ft,Ib):w4($t)&&t4(Ft,po=>xs(po)&&!po.target.readonly))return D!==Em?$n(kC(Ft,Qt)||me,kC($t,Qt)||me,3,Mi):0;if(K5(Ft)&&xs($t)&&!K5($t)){const po=xD(Ft);if(po!==Ft)return $n(po,$t,1,Mi)}else if((D===f_||D===_4)&&bD($t)&&Ju($t)&8192&&!bD(Ft))return 0}if(Tr&2621440&&Xa&524288){const po=Mi&&Z===xu.errorInfo&&!br;if(un=mn(Ft,$t,po,void 0,!1,Bn),un&&(un&=Au(Ft,$t,0,po,Bn),un&&(un&=Au(Ft,$t,1,po,Bn),un&&(un&=yl(Ft,$t,br,po,Bn)))),xr&&un)Z=lu||Z||xu.errorInfo;else if(un)return un}if(Tr&2621440&&Xa&1048576){const po=Mz($t,36175872);if(po.flags&1048576){const ts=Lt(Ft,po);if(ts)return ts}}}return 0;function jo(br){return br?nn(br,(po,ts)=>po+1+jo(ts.next),0):0}function Jo(br,po,ts,P0){if(un=Dr(br,po,ts,Mi,P0))return un;if(Ge(ts,Hd=>!!(Hd&24))){lu=void 0,hu(xu);return}const Js=po&&Eii(po,ts);if(xr=!Js,ts!==Dt&&!Js){if(xr&&!(Mi&&Ge(ts,Hd=>(Hd&7)===0)))return 0;lu=Z,hu(xu)}}}function vu(Ft,$t,Mi){if(D===Kh||(D===Em?b_(Ft)===b_($t):GNe(Ft)<=GNe($t))){let xu;const un=hp($t),lu=Da(hp(Ft),GNe(Ft)<0?Q0:nd);if(xu=$n(un,lu,3,Mi)){const xr=Sf([Fg(Ft)],[Fg($t)]);if(Da(I5(Ft),xr)===Da(I5($t),xr))return xu&$n(Da(DD(Ft),xr),DD($t),3,Mi)}}return 0}function Lt(Ft,$t){var Mi;const Bn=u0(Ft),xu=Nht(Bn,$t);if(!xu)return 0;let un=1;for(const Jo of xu)if(un*=wni(E6(Jo)),un>25)return(Mi=Gn)==null||Mi.instant(Gn.Phase.CheckTypes,"typeRelatedToDiscriminatedType_DepthLimit",{sourceId:Ft.id,targetId:$t.id,numCombinations:un}),0;const lu=new Array(xu.length),xr=new Set;for(let Jo=0;JoJo[ts],!1,0,fe||D===Kh))continue e}Ca(Xa,po,Cx),br=!0}if(!br)return 0}let jo=-1;for(const Jo of Xa)if(jo&=mn(Ft,Jo,!1,xr,!1,0),jo&&(jo&=Au(Ft,Jo,0,!1,0),jo&&(jo&=Au(Ft,Jo,1,!1,0),jo&&!(xs(Ft)&&xs(Jo))&&(jo&=yl(Ft,Jo,!1,!1,0)))),!jo)return jo;return jo}function si(Ft,$t){if(!$t||Ft.length===0)return Ft;let Mi;for(let Bn=0;Bn5?Aa(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more,gn(Ft),gn($t),Vt(un.slice(0,4),lu=>Sr(lu)).join(", "),un.length-4):Aa(F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2,gn(Ft),gn($t),Vt(un,lu=>Sr(lu)).join(", ")),xu&&Z&&En++)}function mn(Ft,$t,Mi,Bn,xu,un){if(D===Em)return Gr(Ft,$t,Bn);let lu=-1;if(xs($t)){if(Ib(Ft)){if(!$t.target.readonly&&(Bz(Ft)||xs(Ft)&&Ft.target.readonly))return 0;const Jo=O5(Ft),br=O5($t),po=xs(Ft)?Ft.target.combinedFlags&4:4,ts=$t.target.combinedFlags&4,P0=xs(Ft)?Ft.target.minLength:0,Js=$t.target.minLength;if(!po&&Jo=TE?br-1-Math.min(wie,$b):BD,ai=$t.target.elementFlags[Zf];if(ai&8&&!(IC&8))return Mi&&Aa(F.Source_provides_no_match_for_variadic_element_at_position_0_in_target,Zf),0;if(IC&8&&!(ai&12))return Mi&&Aa(F.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target,BD,Zf),0;if(ai&1&&!(IC&1))return Mi&&Aa(F.Source_provides_no_match_for_required_element_at_position_0_in_target,Zf),0;if(nS&&((IC&12||ai&12)&&(nS=!1),nS&&(Bn!=null&&Bn.has(""+BD))))continue;const Lu=B6(Hd[BD],!!(IC&ai&2)),fr=wE[Zf],rr=IC&8&&ai&4?H1(fr):B6(fr,!!(ai&2)),mr=$n(Lu,rr,3,Mi,void 0,un);if(!mr)return Mi&&(br>1||Jo>1)&&(xT&&BD>=TE&&wie>=$b&&TE!==Jo-$b-1?_o(F.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target,TE,Jo-$b-1,Zf):_o(F.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target,BD,Zf)),0;lu&=mr}return lu}if($t.target.combinedFlags&12)return 0}const xr=(D===f_||D===_4)&&!MC(Ft)&&!rEe(Ft)&&!xs(Ft),Tr=dMe(Ft,$t,xr,!1);if(Tr)return Mi&&Do(Ft,$t)&&Ji(Ft,$t,Tr,xr),0;if(MC($t)){for(const Jo of si(u0(Ft),Bn))if(!yC($t,Jo.escapedName)&&!(Wn(Jo).flags&32768))return Mi&&Aa(F.Property_0_does_not_exist_on_type_1,Sr(Jo),gn($t)),0}const Xa=u0($t),jo=xs(Ft)&&xs($t);for(const Jo of si(Xa,Bn)){const br=Jo.escapedName;if(!(Jo.flags&4194304)&&(!jo||n3(br)||br==="length")&&(!xu||Jo.flags&16777216)){const po=Zo(Ft,br);if(po&&po!==Jo){const ts=bi(Ft,$t,po,Jo,E6,Mi,un,D===Kh);if(!ts)return 0;lu&=ts}}}return lu}function Gr(Ft,$t,Mi){if(!(Ft.flags&524288&&$t.flags&524288))return 0;const Bn=si(D6(Ft),Mi),xu=si(D6($t),Mi);if(Bn.length!==xu.length)return 0;let un=-1;for(const lu of Bn){const xr=yC($t,lu.escapedName);if(!xr)return 0;const Tr=qPe(lu,xr,$n);if(!Tr)return 0;un&=Tr}return un}function Au(Ft,$t,Mi,Bn,xu){var un,lu;if(D===Em)return La(Ft,$t,Mi);if($t===Oi||Ft===Oi)return-1;const xr=Ft.symbol&&SE(Ft.symbol.valueDeclaration),Tr=$t.symbol&&SE($t.symbol.valueDeclaration),Xa=Eo(Ft,xr&&Mi===1?0:Mi),jo=Eo($t,Tr&&Mi===1?0:Mi);if(Mi===1&&Xa.length&&jo.length){const P0=!!(Xa[0].flags&4),Js=!!(jo[0].flags&4);if(P0&&!Js)return Bn&&Aa(F.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type),0;if(!kl(Xa[0],jo[0],Bn))return 0}let Jo=-1;const br=Mi===1?lr:pn,po=Ju(Ft),ts=Ju($t);if(po&64&&ts&64&&Ft.symbol===$t.symbol||po&4&&ts&4&&Ft.target===$t.target)for(let P0=0;P0CE(TE,void 0,262144,Mi);return Aa(F.Type_0_is_not_assignable_to_type_1,wE(Js),wE(Hd)),Aa(F.Types_of_construct_signatures_are_incompatible),Jo}}else e:for(const P0 of jo){const Js=oo();let Hd=Bn;for(const wE of Xa){const TE=Zr(wE,P0,!0,Hd,xu,br(wE,P0));if(TE){Jo&=TE,hu(Js);continue e}Hd=!1}return Hd&&Aa(F.Type_0_provides_no_match_for_the_signature_1,gn(Ft),CE(P0,void 0,void 0,Mi)),0}return Jo}function Do(Ft,$t){const Mi=kte(Ft,0),Bn=kte(Ft,1),xu=D6(Ft);return(Mi.length||Bn.length)&&!xu.length?!!(Eo($t,0).length&&Mi.length||Eo($t,1).length&&Bn.length):!0}function pn(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>_o(F.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>_o(F.Call_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function lr(Ft,$t){return Ft.parameters.length===0&&$t.parameters.length===0?(Mi,Bn)=>_o(F.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1,gn(Mi),gn(Bn)):(Mi,Bn)=>_o(F.Construct_signature_return_types_0_and_1_are_incompatible,gn(Mi),gn(Bn))}function Zr(Ft,$t,Mi,Bn,xu,un){const lu=D===f_?16:D===_4?24:0;return HPe(Mi?oW(Ft):Ft,Mi?oW($t):$t,lu,Bn,Aa,un,xr,nd);function xr(Tr,Xa,jo){return $n(Tr,Xa,3,jo,void 0,xu)}}function La(Ft,$t,Mi){const Bn=Eo(Ft,Mi),xu=Eo($t,Mi);if(Bn.length!==xu.length)return 0;let un=-1;for(let lu=0;luTr.keyType===ct);let xr=-1;for(const Tr of un){const Xa=D!==_4&&!Mi&&lu&&Tr.type.flags&1?-1:e4(Ft)&&lu?$n(DD(Ft),Tr.type,3,Bn):pl(Ft,Tr,Bn,xu);if(!Xa)return 0;xr&=Xa}return xr}function pl(Ft,$t,Mi,Bn){const xu=uW(Ft,$t.keyType);return xu?pd(xu,$t,Mi,Bn):!(Bn&1)&&(D!==_4||Ju(Ft)&8192)&&hEe(Ft)?ds(Ft,$t,Mi,Bn):(Mi&&Aa(F.Index_signature_for_type_0_is_missing_in_type_1,gn($t.keyType),gn(Ft)),0)}function K1(Ft,$t){const Mi=Ah(Ft),Bn=Ah($t);if(Mi.length!==Bn.length)return 0;for(const xu of Bn){const un=F3(Ft,xu.keyType);if(!(un&&$n(un.type,xu.type,3)&&un.isReadonly===xu.isReadonly))return 0}return-1}function kl(Ft,$t,Mi){if(!Ft.declaration||!$t.declaration)return!0;const Bn=E7(Ft.declaration,6),xu=E7($t.declaration,6);return xu===2||xu===4&&Bn!==2||xu!==4&&!Bn?!0:(Mi&&Aa(F.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type,b3(Bn),b3(xu)),!1)}}function GPe(l){if(l.flags&16)return!1;if(l.flags&3145728)return!!L(l.types,GPe);if(l.flags&465829888){const m=EF(l);if(m&&m!==l)return GPe(m)}return Tg(l)||!!(l.flags&134217728)||!!(l.flags&268435456)}function nht(l,m){return xs(l)&&xs(m)?Dt:u0(m).filter(D=>Xge(he(l,D.escapedName),Wn(D)))}function Xge(l,m){return!!l&&!!m&&jl(l,32768)&&!!_W(m)}function pii(l){return u0(l).filter(m=>_W(Wn(m)))}function uht(l,m,D=jPe){return Ept(l,m,D)||Eci(l,m)||_ci(l,m)||Dci(l,m)||xci(l,m)}function JPe(l,m,D){const C=l.types,A=C.map(I=>I.flags&402784252?0:-1);for(const[I,U]of m){let Z=!1;for(let ce=0;ceA[U]),0):l;return w.flags&131072?l:w}function rht(l){if(l.flags&524288){const m=Ag(l);return m.callSignatures.length===0&&m.constructSignatures.length===0&&m.indexInfos.length===0&&m.properties.length>0&&ye(m.properties,D=>!!(D.flags&16777216))}return l.flags&2097152?ye(l.types,rht):!1}function gii(l,m,D){for(const C of u0(l))if(WMe(m,C.escapedName,D))return!0;return!1}function $Pe(l){return l===Fo||l===To||l.objectFlags&8?ge:oht(l.symbol,l.typeParameters)}function aht(l){return oht(l,qr(l).typeParameters)}function oht(l,m=Dt){var D,C;const A=qr(l);if(!A.variances){(D=Gn)==null||D.push(Gn.Phase.CheckTypes,"getVariancesWorker",{arity:m.length,id:Sh(el(l))});const w=Jk;Jk||(Jk=!0,cb=cD.length),A.variances=Dt;const I=[];for(const U of m){const Z=UPe(U);let ce=Z&16384?Z&8192?0:1:Z&8192?2:void 0;if(ce===void 0){let Fe=!1,Te=!1;const $e=Ko;Ko=gi=>gi?Te=!0:Fe=!0;const ut=Rte(l,U,sf),zt=Rte(l,U,X0);ce=(ms(zt,ut)?1:0)|(ms(ut,zt)?2:0),ce===3&&ms(Rte(l,U,yc),ut)&&(ce=4),Ko=$e,(Fe||Te)&&(Fe&&(ce|=8),Te&&(ce|=16))}I.push(ce)}w||(Jk=!1,cb=0),A.variances=I,(C=Gn)==null||C.pop({variances:I.map(H.formatVariance)})}return A.variances}function Rte(l,m,D){const C=zb(m,D),A=el(l);if(Nt(A))return A;const w=l.flags&524288?aT(l,V5(qr(l).typeParameters,C)):R5(A,V5(A.typeParameters,C));return qt.add(Sh(w)),w}function eEe(l){return qt.has(Sh(l))}function UPe(l){var m;return nn((m=l.symbol)==null?void 0:m.declarations,(D,C)=>D|Dh(C),0)&28672}function Eii(l,m){for(let D=0;D!!(m.flags&262144)||tEe(m))}function xii(l,m,D,C){const A=[];let w="";const I=Z(l,0),U=Z(m,0);return`${w}${I},${U}${D}`;function Z(ce,Fe=0){let Te=""+ce.target.id;for(const $e of V0(ce)){if($e.flags&262144){if(C||_ii($e)){let ut=A.indexOf($e);ut<0&&(ut=A.length,A.push($e)),Te+="="+ut;continue}w="*"}else if(Fe<4&&tEe($e)){Te+="<"+Z($e,Fe+1)+">";continue}Te+="-"+$e.id}return Te}}function iEe(l,m,D,C,A){if(C===Em&&l.id>m.id){const I=l;l=m,m=I}const w=D?":"+D:"";return tEe(l)&&tEe(m)?xii(l,m,w,A):`${l.id},${m.id}${w}`}function Ote(l,m){if(Gl(l)&6){for(const D of l.links.containingType.types){const C=Zo(D,l.escapedName),A=C&&Ote(C,m);if(A)return A}return}return m(l)}function Q9(l){return l.parent&&l.parent.flags&32?el(cf(l)):void 0}function nEe(l){const m=Q9(l),D=m&&Qc(m)[0];return D&&he(D,l.escapedName)}function vii(l,m){return Ote(l,D=>{const C=Q9(D);return C?H9(C,m):!1})}function Cii(l,m){return!Ote(m,D=>h4(D)&4?!vii(l,Q9(D)):!1)}function sht(l,m,D){return Ote(m,C=>h4(C,D)&4?!H9(l,Q9(C)):!1)?void 0:l}function Sz(l,m,D,C=3){if(D>=C){if((Ju(l)&96)===96&&(l=lht(l)),l.flags&2097152)return Ge(l.types,U=>Sz(U,m,D,C));const A=uEe(l);let w=0,I=0;for(let U=0;U=I&&(w++,w>=C))return!0;I=Z.id}}}return!1}function lht(l){let m;for(;(Ju(l)&96)===96&&(m=K9(l))&&(m.symbol||m.flags&2097152&&Ge(m.types,D=>!!D.symbol));)l=m;return l}function cht(l,m){return(Ju(l)&96)===96&&(l=lht(l)),l.flags&2097152?Ge(l.types,D=>cht(D,m)):uEe(l)===m}function uEe(l){if(l.flags&524288&&!mMe(l)){if(Ju(l)&4&&l.node)return l.node;if(l.symbol&&!(Ju(l)&16&&l.symbol.flags&32))return l.symbol;if(xs(l))return l.target}if(l.flags&262144)return l.symbol;if(l.flags&8388608){do l=l.objectType;while(l.flags&8388608);return l}return l.flags&16777216?l.root:l}function bii(l,m){return qPe(l,m,fW)!==0}function qPe(l,m,D){if(l===m)return-1;const C=h4(l)&6,A=h4(m)&6;if(C!==A)return 0;if(C){if(_T(l)!==_T(m))return 0}else if((l.flags&16777216)!==(m.flags&16777216))return 0;return Ng(l)!==Ng(m)?0:D(Wn(l),Wn(m))}function yii(l,m,D){const C=Cm(l),A=Cm(m),w=BE(l),I=BE(m),U=A_(l),Z=A_(m);return!!(C===A&&w===I&&U===Z||D&&w<=I)}function jte(l,m,D,C,A,w){if(l===m)return-1;if(!yii(l,m,D)||S(l.typeParameters)!==S(m.typeParameters))return 0;if(m.typeParameters){const Z=Sf(l.typeParameters,m.typeParameters);for(let ce=0;cem|(D.flags&1048576?dht(D.types):D.flags),0)}function Aii(l){if(l.length===1)return l[0];const m=fe?Pu(l,C=>Oc(C,A=>!(A.flags&98304))):l,D=Fii(m)?tr(m):nn(m,(C,A)=>F6(C,A)?A:C);return m===l?D:sEe(D,dht(l)&98304)}function Sii(l){return nn(l,(m,D)=>F6(D,m)?D:m)}function w4(l){return!!(Ju(l)&4)&&(l.target===Fo||l.target===To)}function Bz(l){return!!(Ju(l)&4)&&l.target===To}function Ib(l){return w4(l)||xs(l)}function Vte(l){return w4(l)&&!Bz(l)||xs(l)&&!l.target.readonly}function ZPe(l){return w4(l)?V0(l)[0]:void 0}function H5(l){return w4(l)||!(l.flags&98304)&&ms(l,up)}function YPe(l){return Vte(l)||!(l.flags&98305)&&ms(l,ql)}function QPe(l){if(!(Ju(l)&4)||!(Ju(l.target)&3))return;if(Ju(l)&33554432)return Ju(l)&67108864?l.cachedEquivalentBaseType:void 0;l.objectFlags|=33554432;const m=l.target;if(Ju(m)&1){const A=Kr(m);if(A&&A.expression.kind!==80&&A.expression.kind!==211)return}const D=Qc(m);if(D.length!==1||_6(l.symbol).size)return;let C=S(m.typeParameters)?Da(D[0],Sf(m.typeParameters,V0(l).slice(0,m.typeParameters.length))):D[0];return S(V0(l))>S(m.typeParameters)&&(C=xm(C,yr(V0(l)))),l.objectFlags|=67108864,l.cachedEquivalentBaseType=C}function hht(l){return fe?l===wn:l===we}function rEe(l){const m=ZPe(l);return!!m&&hht(m)}function wz(l){let m;return xs(l)||!!Zo(l,"0")||H5(l)&&!!(m=he(l,"length"))&&t4(m,D=>!!(D.flags&256))}function aEe(l){return H5(l)||wz(l)}function Bii(l,m){const D=he(l,""+m);if(D)return D;if(t4(l,xs))return ght(l,m,ae.noUncheckedIndexedAccess?te:void 0)}function wii(l){return!(l.flags&240544)}function Tg(l){return!!(l.flags&109472)}function fht(l){const m=xD(l);return m.flags&2097152?Ge(m.types,Tg):Tg(m)}function Tii(l){return l.flags&2097152&&Le(l.types,Tg)||l}function gW(l){return l.flags&16?!0:l.flags&1048576?l.flags&1024?!0:ye(l.types,Tg):Tg(l)}function kD(l){return l.flags&1056?kge(l):l.flags&402653312?ct:l.flags&256?Qt:l.flags&2048?Ti:l.flags&512?Er:l.flags&1048576?Lii(l):l}function Lii(l){const m=`B${Sh(l)}`;return Yk(m)??mb(m,ml(l,kD))}function XPe(l){return l.flags&402653312?ct:l.flags&288?Qt:l.flags&2048?Ti:l.flags&512?Er:l.flags&1048576?ml(l,XPe):l}function Rb(l){return l.flags&1056&&Mb(l)?kge(l):l.flags&128&&Mb(l)?ct:l.flags&256&&Mb(l)?Qt:l.flags&2048&&Mb(l)?Ti:l.flags&512&&Mb(l)?Er:l.flags&1048576?ml(l,Rb):l}function mht(l){return l.flags&8192?er:l.flags&1048576?ml(l,mht):l}function eMe(l,m){return $Ee(l,m)||(l=mht(Rb(l))),$h(l)}function Nii(l,m,D){if(l&&Tg(l)){const C=m?D?PW(m):m:void 0;l=eMe(l,C)}return l}function tMe(l,m,D,C){if(l&&Tg(l)){const A=m?Kb(D,m,C):void 0;l=eMe(l,A)}return l}function xs(l){return!!(Ju(l)&4&&l.target.objectFlags&8)}function K5(l){return xs(l)&&!!(l.target.combinedFlags&8)}function pht(l){return K5(l)&&l.target.elementFlags.length===1}function oEe(l){return Tz(l,l.target.fixedLength)}function ght(l,m,D){return ml(l,C=>{const A=C,w=oEe(A);return w?D&&m>=vPe(A.target)?tr([w,D]):w:te})}function Pii(l){const m=oEe(l);return m&&H1(m)}function Tz(l,m,D=0,C=!1,A=!1){const w=O5(l)-D;if(m(D&12)===(m.target.elementFlags[C]&12))}function Eht({value:l}){return l.base10Value==="0"}function _ht(l){return Oc(l,m=>pp(m,4194304))}function zii(l){return ml(l,Iii)}function Iii(l){return l.flags&4?Gf:l.flags&8?tC:l.flags&64?t6:l===Sn||l===Ui||l.flags&114691||l.flags&128&&l.value===""||l.flags&256&&l.value===0||l.flags&2048&&Eht(l)?l:Wu}function sEe(l,m){const D=m&~l.flags&98304;return D===0?l:tr(D===32768?[l,te]:D===65536?[l,it]:[l,te,it])}function S6(l,m=!1){H.assert(fe);const D=m?Oe:te;return l===D||l.flags&1048576&&l.types[0]===D?l:tr([l,D])}function Rii(l){return $m||($m=bz("NonNullable",524288,void 0)||Xt),$m!==Xt?aT($m,[l]):Ds([l,Wo])}function FD(l){return fe?kF(l,2097152):l}function Dht(l){return fe?tr([l,X]):l}function lEe(l){return fe?xEe(l,X):l}function cEe(l,m,D){return D?ON(m)?S6(l):Dht(l):l}function EW(l,m){return IU(m)?FD(l):Q1(m)?lEe(l):l}function B6(l,m){return je&&m?xEe(l,de):l}function _W(l){return l===de||!!(l.flags&1048576)&&l.types[0]===de}function dEe(l){return je?xEe(l,de):gp(l,524288)}function Oii(l,m){return(l.flags&524)!==0&&(m.flags&28)!==0}function hEe(l){const m=Ju(l);return l.flags&2097152?ye(l.types,hEe):!!(l.symbol&&l.symbol.flags&7040&&!(l.symbol.flags&32)&&!l_e(l))||!!(m&4194304)||!!(m&1024&&hEe(l.source))}function CF(l,m){const D=Ks(l.flags,l.escapedName,Gl(l)&8);D.declarations=l.declarations,D.parent=l.parent,D.links.type=m,D.links.target=l,l.valueDeclaration&&(D.valueDeclaration=l.valueDeclaration);const C=qr(l).nameType;return C&&(D.links.nameType=C),D}function jii(l,m){const D=Ho();for(const C of D6(l)){const A=Wn(C),w=m(A);D.set(C.escapedName,w===A?C:CF(C,w))}return D}function DW(l){if(!(MC(l)&&Ju(l)&8192))return l;const m=l.regularType;if(m)return m;const D=l,C=jii(l,DW),A=Ol(D.symbol,C,D.callSignatures,D.constructSignatures,D.indexInfos);return A.flags=D.flags,A.objectFlags|=D.objectFlags&-8193,l.regularType=A,A}function xht(l,m,D){return{parent:l,propertyName:m,siblings:D,resolvedProperties:void 0}}function vht(l){if(!l.siblings){const m=[];for(const D of vht(l.parent))if(MC(D)){const C=yC(D,l.propertyName);C&&FF(Wn(C),A=>{m.push(A)})}l.siblings=m}return l.siblings}function Vii(l){if(!l.resolvedProperties){const m=new Map;for(const D of vht(l))if(MC(D)&&!(Ju(D)&2097152))for(const C of u0(D))m.set(C.escapedName,C);l.resolvedProperties=Ea(m.values())}return l.resolvedProperties}function Hii(l,m){if(!(l.flags&4))return l;const D=Wn(l),C=m&&xht(m,l.escapedName,void 0),A=iMe(D,C);return A===D?l:CF(l,A)}function Kii(l){const m=Mt.get(l.escapedName);if(m)return m;const D=CF(l,Oe);return D.flags|=16777216,Mt.set(l.escapedName,D),D}function Wii(l,m){const D=Ho();for(const A of D6(l))D.set(A.escapedName,Hii(A,m));if(m)for(const A of Vii(m))D.has(A.escapedName)||D.set(A.escapedName,Kii(A));const C=Ol(l.symbol,D,Dt,Dt,Pu(Ah(l),A=>k_(A.keyType,vm(A.type),A.isReadonly)));return C.objectFlags|=Ju(l)&266240,C}function vm(l){return iMe(l,void 0)}function iMe(l,m){if(Ju(l)&196608){if(m===void 0&&l.widened)return l.widened;let D;if(l.flags&98305)D=me;else if(MC(l))D=Wii(l,m);else if(l.flags&1048576){const C=m||xht(void 0,void 0,l.types),A=Pu(l.types,w=>w.flags&98304?w:iMe(w,C));D=tr(A,Ge(A,bD)?2:1)}else l.flags&2097152?D=Ds(Pu(l.types,vm)):Ib(l)&&(D=R5(l.target,Pu(V0(l),vm)));return D&&m===void 0&&(l.widened=D),D||l}return l}function fEe(l){let m=!1;if(Ju(l)&65536){if(l.flags&1048576)if(Ge(l.types,bD))m=!0;else for(const D of l.types)fEe(D)&&(m=!0);if(Ib(l))for(const D of V0(l))fEe(D)&&(m=!0);if(MC(l))for(const D of D6(l)){const C=Wn(D);Ju(C)&65536&&(fEe(C)||gt(D.valueDeclaration,F.Object_literal_s_property_0_implicitly_has_an_1_type,Sr(D),gn(vm(C))),m=!0)}}return m}function NC(l,m,D){const C=gn(vm(m));if(Xn(l)&&!rV(zn(l),ae))return;let A;switch(l.kind){case 226:case 172:case 171:A=Ae?F.Member_0_implicitly_has_an_1_type:F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 169:const w=l;if(at(w.name)){const I=xv(w.name);if((CB(w.parent)||u3(w.parent)||r3(w.parent))&&w.parent.parameters.includes(w)&&(rc(w,w.name.escapedText,788968,void 0,w.name.escapedText,!0)||I&&xle(I))){const U="arg"+w.parent.parameters.indexOf(w),Z=k0(w.name)+(w.dotDotDotToken?"[]":"");D4(Ae,l,F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1,U,Z);return}}A=l.dotDotDotToken?Ae?F.Rest_parameter_0_implicitly_has_an_any_type:F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage:Ae?F.Parameter_0_implicitly_has_an_1_type:F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;break;case 208:if(A=F.Binding_element_0_implicitly_has_an_1_type,!Ae)return;break;case 324:gt(l,F.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return;case 330:Ae&&NB(l.parent)&>(l.parent.tagName,F.This_overload_implicitly_returns_the_type_0_because_it_lacks_a_return_type_annotation,C);return;case 262:case 174:case 173:case 177:case 178:case 218:case 219:if(Ae&&!l.name){D===3?gt(l,F.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation,C):gt(l,F.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type,C);return}A=Ae?D===3?F._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type:F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type:F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage;break;case 200:Ae&>(l,F.Mapped_object_type_implicitly_has_an_any_template_type);return;default:A=Ae?F.Variable_0_implicitly_has_an_1_type:F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage}D4(Ae,l,A,k0(Ya(l)),C)}function mEe(l,m,D){s(()=>{Ae&&Ju(m)&65536&&(!D||!RMe(l))&&(fEe(m)||NC(l,m,D))})}function nMe(l,m,D){const C=Cm(l),A=Cm(m),w=SW(l),I=SW(m),U=I?A-1:A,Z=w?U:Math.min(C,U),ce=FC(l);if(ce){const Fe=FC(m);Fe&&D(ce,Fe)}for(let Fe=0;Fem.typeParameter),Vt(l.inferences,(m,D)=>()=>(m.isFixed||(Uii(l),pEe(l.inferences),m.isFixed=!0),pMe(l,D))))}function $ii(l){return MPe(Vt(l.inferences,m=>m.typeParameter),Vt(l.inferences,(m,D)=>()=>pMe(l,D)))}function pEe(l){for(const m of l)m.isFixed||(m.inferredType=void 0)}function aMe(l,m,D){(l.intraExpressionInferenceSites??(l.intraExpressionInferenceSites=[])).push({node:m,type:D})}function Uii(l){if(l.intraExpressionInferenceSites){for(const{node:m,type:D}of l.intraExpressionInferenceSites){const C=m.kind===174?fft(m,2):hf(m,2);C&&AD(l.inferences,D,C)}l.intraExpressionInferenceSites=void 0}}function oMe(l){return{typeParameter:l,candidates:void 0,contraCandidates:void 0,inferredType:void 0,priority:void 0,topLevel:!0,isFixed:!1,impliedArity:void 0}}function Cht(l){return{typeParameter:l.typeParameter,candidates:l.candidates&&l.candidates.slice(),contraCandidates:l.contraCandidates&&l.contraCandidates.slice(),inferredType:l.inferredType,priority:l.priority,topLevel:l.topLevel,isFixed:l.isFixed,impliedArity:l.impliedArity}}function qii(l){const m=ti(l.inferences,gT);return m.length?rMe(Vt(m,Cht),l.signature,l.flags,l.compareTypes):void 0}function sMe(l){return l&&l.mapper}function PC(l){const m=Ju(l);if(m&524288)return!!(m&1048576);const D=!!(l.flags&465829888||l.flags&524288&&!bht(l)&&(m&4&&(l.node||Ge(V0(l),PC))||m&16&&l.symbol&&l.symbol.flags&14384&&l.symbol.declarations||m&12583968)||l.flags&3145728&&!(l.flags&1024)&&!bht(l)&&Ge(l.types,PC));return l.flags&3899393&&(l.objectFlags|=524288|(D?1048576:0)),D}function bht(l){if(l.aliasSymbol&&!l.aliasTypeArguments){const m=Bl(l.aliasSymbol,265);return!!(m&&Tn(m.parent,D=>D.kind===312?!0:D.kind===267?!1:"quit"))}return!1}function vW(l,m,D=0){return!!(l===m||l.flags&3145728&&Ge(l.types,C=>vW(C,m,D))||D<3&&l.flags&16777216&&(vW(BC(l),m,D+1)||vW(wC(l),m,D+1)))}function Zii(l,m){const D=A4(l);return D?!!D.type&&vW(D.type,m):vW(Ys(l),m)}function Yii(l){const m=Ho();FF(l,C=>{if(!(C.flags&128))return;const A=Sl(C.value),w=Ks(4,A);w.links.type=me,C.symbol&&(w.declarations=C.symbol.declarations,w.valueDeclaration=C.symbol.valueDeclaration),m.set(A,w)});const D=l.flags&4?[k_(ct,Wo,!1)]:Dt;return Ol(void 0,m,Dt,Dt,D)}function yht(l,m,D){const C=l.id+","+m.id+","+D.id;if(Bd.has(C))return Bd.get(C);const A=l.id+","+(m.target||m).id;if(kt(jh,A))return;jh.push(A);const w=Qii(l,m,D);return jh.pop(),Bd.set(C,w),w}function lMe(l){return!(Ju(l)&262144)||MC(l)&&Ge(u0(l),m=>lMe(Wn(m)))||xs(l)&&Ge(AC(l),lMe)}function Qii(l,m,D){if(!(F3(l,ct)||u0(l).length!==0&&lMe(l)))return;if(w4(l))return H1(gEe(V0(l)[0],m,D),Bz(l));if(xs(l)){const A=Vt(AC(l),I=>gEe(I,m,D)),w=b_(m)&4?Pu(l.target.elementFlags,I=>I&2?1:I):l.target.elementFlags;return Bg(A,w,l.target.readonly,l.target.labeledElementDeclarations)}const C=C4(1040,void 0);return C.source=l,C.mappedType=m,C.constraintType=D,C}function Xii(l){const m=qr(l);return m.type||(m.type=gEe(l.links.propertyType,l.links.mappedType,l.links.constraintType)),m.type}function gEe(l,m,D){const C=qf(D.type,Fg(m)),A=DD(m),w=oMe(C);return AD([w],l,A),kht(w)||on}function*cMe(l,m,D,C){const A=u0(m);for(const w of A)if(!mdt(w)&&(D||!(w.flags&16777216||Gl(w)&48))){const I=Zo(l,w.escapedName);if(!I)yield w;else if(C){const U=Wn(w);if(U.flags&109472){const Z=Wn(I);Z.flags&1||$h(Z)===$h(U)||(yield w)}}}}function dMe(l,m,D,C){return Hn(cMe(l,m,D,C))}function eni(l,m){return!(m.target.combinedFlags&8)&&m.target.minLength>l.target.minLength||!m.target.hasRestElement&&(l.target.hasRestElement||m.target.fixedLength$9(w,A),l)===l&&fMe(l,m)}return!1}function Sht(l,m){if(l===m||m.flags&5)return!0;if(m.flags&2097152)return ye(m.types,D=>D===Pc||Sht(l,D));if(l.flags&128){const D=l.value;return!!(m.flags&8&&Aht(D,!1)||m.flags&64&&mZ(D,!1)||m.flags&98816&&D===m.intrinsicName||m.flags&268435456&&fMe(df(D),m)||m.flags&134217728&&EEe(l,m))}if(l.flags&134217728){const D=l.texts;return D.length===2&&D[0]===""&&D[1]===""&&ms(l.types[0],m)}return ms(l,m)}function Bht(l,m){return l.flags&128?wht([l.value],Dt,m):l.flags&134217728?Zt(l.texts,m.texts)?Vt(l.types,uni):wht(l.texts,l.types,m):void 0}function EEe(l,m){const D=Bht(l,m);return!!D&&ye(D,(C,A)=>Sht(C,m.types[A]))}function uni(l){return l.flags&402653317?l:xF(["",""],[l])}function wht(l,m,D){const C=l.length-1,A=l[0],w=l[C],I=D.texts,U=I.length-1,Z=I[0],ce=I[U];if(C===0&&A.length0){let nu=$e,En=ut;for(;En=zt(nu).indexOf(dn,En),!(En>=0);){if(nu++,nu===l.length)return;En=0}gi(nu,En),ut+=dn.length}else if(ut!kt(yo,ws)):hn,$n?ti(Kn,ws=>!kt($n,ws)):Kn]}function nu(hn,Kn,Yr){const yo=hn.length!!Nn($n));if(!yo||Kn&&yo!==Kn)return;Kn=yo}return Kn}function An(hn,Kn,Yr){let yo=0;if(Yr&1048576){let $n;const ws=hn.flags&1048576?hn.types:[hn],N0=new Array(ws.length);let od=!1;for(const Qs of Kn)if(Nn(Qs))$n=Qs,yo++;else for(let Td=0;TdN0[Ac]?void 0:Td);if(Qs.length){$e(tr(Qs),$n);return}}}else for(const $n of Kn)Nn($n)?yo++:$e(hn,$n);if(Yr&2097152?yo===1:yo>0)for(const $n of Kn)Nn($n)&&ut(hn,$n,1)}function _n(hn,Kn,Yr){if(Yr.flags&1048576){let yo=!1;for(const $n of Yr.types)yo=_n(hn,Kn,$n)||yo;return yo}if(Yr.flags&4194304){const yo=Nn(Yr.type);if(yo&&!yo.isFixed&&!Fht(hn)){const $n=yht(hn,Kn,Yr);$n&&ut($n,yo.typeParameter,Ju(hn)&262144?16:8)}return!0}if(Yr.flags&262144){ut(F_(hn,hn.pattern?2:0),Yr,32);const yo=EF(Yr);if(yo&&_n(hn,Kn,yo))return!0;const $n=Vt(u0(hn),Wn),ws=Vt(Ah(hn),N0=>N0!==Nu?N0.type:Wu);return $e(tr(mi($n,ws)),DD(Kn)),!0}return!1}function hu(hn,Kn){if(hn.flags&16777216)$e(hn.checkType,Kn.checkType),$e(hn.extendsType,Kn.extendsType),$e(BC(hn),BC(Kn)),$e(wC(hn),wC(Kn));else{const Yr=[BC(Kn),wC(Kn)];gi(hn,Yr,Kn.flags,A?64:0)}}function oo(hn,Kn){const Yr=Bht(hn,Kn),yo=Kn.types;if(Yr||ye(Kn.texts,$n=>$n.length===0))for(let $n=0;$ntl|bm.flags,0);if(!(Ac&4)){const tl=ws.value;Ac&296&&!Aht(tl,!0)&&(Ac&=-297),Ac&2112&&!mZ(tl,!0)&&(Ac&=-2113);const bm=nn(Td,(St,ze)=>ze.flags&Ac?St.flags&4?St:ze.flags&4?ws:St.flags&134217728?St:ze.flags&134217728&&EEe(ws,ze)?ws:St.flags&268435456?St:ze.flags&268435456&&tl===F1t(ze.symbol,tl)?ws:St.flags&128?St:ze.flags&128&&ze.value===tl?ze:St.flags&8?St:ze.flags&8?wg(+tl):St.flags&32?St:ze.flags&32?wg(+tl):St.flags&256?St:ze.flags&256&&ze.value===+tl?ze:St.flags&64?St:ze.flags&64?nni(tl):St.flags&2048?St:ze.flags&2048&&R2(ze.value)===tl?ze:St.flags&16?St:ze.flags&16?tl==="true"?du:tl==="false"?Ui:Er:St.flags&512?St:ze.flags&512&&ze.intrinsicName===tl?ze:St.flags&32768?St:ze.flags&32768&&ze.intrinsicName===tl?ze:St.flags&65536?St:ze.flags&65536&&ze.intrinsicName===tl?ze:St:St,Wu);if(!(bm.flags&131072)){$e(bm,N0);continue}}}}$e(ws,N0)}}function _o(hn,Kn){var Yr,yo;if(Ju(hn)&4&&Ju(Kn)&4&&(hn.target===Kn.target||w4(hn)&&w4(Kn))){nu(V0(hn),V0(Kn),$Pe(hn.target));return}if(e4(hn)&&e4(Kn)){$e(hp(hn),hp(Kn)),$e(DD(hn),DD(Kn));const $n=I5(hn),ws=I5(Kn);$n&&ws&&$e($n,ws)}if(Ju(Kn)&32&&!Kn.declaration.nameType){const $n=hp(Kn);if(_n(hn,Kn,$n))return}if(!tni(hn,Kn)){if(Ib(hn)){if(xs(Kn)){const $n=O5(hn),ws=O5(Kn),N0=V0(Kn),od=Kn.target.elementFlags;if(xs(hn)&&Mii(hn,Kn)){for(let Ac=0;Ac0){const ws=Eo(Kn,Yr),N0=ws.length;for(let od=0;od1){const m=ti(l,mMe);if(m.length){const D=tr(m,2);return mi(ti(l,C=>!mMe(C)),[D])}}return l}function lni(l){return l.priority&416?Ds(l.contraCandidates):Sii(l.contraCandidates)}function cni(l,m){const D=sni(l.candidates),C=oni(l.typeParameter)||W9(l.typeParameter),A=!C&&l.topLevel&&(l.isFixed||!Zii(m,l.typeParameter)),w=C?Pu(D,$h):A?Pu(D,Rb):D,I=l.priority&416?tr(w,2):Aii(w);return vm(I)}function pMe(l,m){const D=l.inferences[m];if(!D.inferredType){let C,A;if(l.signature){const I=D.candidates?cni(D,l.signature):void 0,U=D.contraCandidates?lni(D):void 0;if(I||U){const Z=I&&(!U||!(I.flags&131072)&&Ge(D.contraCandidates,ce=>F6(I,ce))&&ye(l.inferences,ce=>ce!==D&&ah(ce.typeParameter)!==D.typeParameter||ye(ce.candidates,Fe=>F6(Fe,I))));C=Z?I:U,A=Z?U:I}else if(l.flags&1)C=Va;else{const Z=_F(D.typeParameter);Z&&(C=Da(Z,Vti(jti(l,m),l.nonFixingMapper)))}}else C=kht(D);D.inferredType=C||gMe(!!(l.flags&2));const w=ah(D.typeParameter);if(w){const I=Da(w,l.nonFixingMapper);(!C||!l.compareTypes(C,xm(I,C)))&&(D.inferredType=A&&l.compareTypes(A,xm(I,A))?A:I)}}return D.inferredType}function gMe(l){return l?me:on}function EMe(l){const m=[];for(let D=0;DCh(m)||Vp(m)||fm(m)))}function _Ee(l,m,D,C){switch(l.kind){case 80:if(!g7(l)){const I=Yp(l);return I!==Xt?`${C?Us(C):"-1"}|${Sh(m)}|${Sh(D)}|${Yo(I)}`:void 0}case 110:return`0|${C?Us(C):"-1"}|${Sh(m)}|${Sh(D)}`;case 235:case 217:return _Ee(l.expression,m,D,C);case 166:const A=_Ee(l.left,m,D,C);return A&&A+"."+l.right.escapedText;case 211:case 212:const w=bF(l);if(w!==void 0){const I=_Ee(l.expression,m,D,C);return I&&I+"."+w}break;case 206:case 207:case 262:case 218:case 219:case 174:return`${Us(l)}#${Sh(m)}`}}function b1(l,m){switch(m.kind){case 217:case 235:return b1(l,m.expression);case 226:return ld(m)&&b1(l,m.left)||eu(m)&&m.operatorToken.kind===28&&b1(l,m.right)}switch(l.kind){case 236:return m.kind===236&&l.keywordToken===m.keywordToken&&l.name.escapedText===m.name.escapedText;case 80:case 81:return g7(l)?m.kind===110:m.kind===80&&Yp(l)===Yp(m)||(ra(m)||Vs(m))&&cp(Yp(l))===Du(m);case 110:return m.kind===110;case 108:return m.kind===108;case 235:case 217:return b1(l.expression,m);case 211:case 212:const D=bF(l),C=O0(m)?bF(m):void 0;return D!==void 0&&C!==void 0&&C===D&&b1(l.expression,m.expression);case 166:return O0(m)&&l.right.escapedText===bF(m)&&b1(l.left,m.expression);case 226:return eu(l)&&l.operatorToken.kind===28&&b1(l.right,m)}return!1}function bF(l){if(Ru(l))return l.name.escapedText;if(q0(l))return dni(l);if(Vs(l)){const m=D0(l);return m?Sl(m):void 0}if(io(l))return""+l.parent.parameters.indexOf(l)}function DMe(l){return l.flags&8192?l.escapedName:l.flags&384?Sl(""+l.value):void 0}function dni(l){return Mm(l.argumentExpression)?Sl(l.argumentExpression.text):tc(l.argumentExpression)?hni(l.argumentExpression):void 0}function hni(l){const m=j0(l,111551,!0);if(!m||!(zz(m)||m.flags&8))return;const D=m.valueDeclaration;if(D===void 0)return;const C=dt(D);if(C){const A=DMe(C);if(A!==void 0)return A}if(Qy(D)&&B5(D,l)){const A=xj(D);if(A)return DMe(y1(A));if($2(D))return V8(D.name)}}function Lht(l,m){for(;O0(l);)if(l=l.expression,b1(l,m))return!0;return!1}function yF(l,m){for(;Q1(l);)if(l=l.expression,b1(l,m))return!0;return!1}function Lz(l,m){if(l&&l.flags&1048576){const D=Ldt(l,m);if(D&&Gl(D)&2)return D.links.isDiscriminantProperty===void 0&&(D.links.isDiscriminantProperty=(D.links.checkFlags&192)===192&&!Fz(Wn(D))),!!D.links.isDiscriminantProperty}return!1}function Nht(l,m){let D;for(const C of l)if(Lz(m,C.escapedName)){if(D){D.push(C);continue}D=[C]}return D}function fni(l,m){const D=new Map;let C=0;for(const A of l)if(A.flags&61603840){const w=he(A,m);if(w){if(!gW(w))return;let I=!1;FF(w,U=>{const Z=Sh($h(U)),ce=D.get(Z);ce?ce!==on&&(D.set(Z,on),I=!0):D.set(Z,A)}),I||C++}}return C>=10&&C*2>=l.length?D:void 0}function Hte(l){const m=l.types;if(!(m.length<10||Ju(l)&32768||ui(m,D=>!!(D.flags&59506688))<10)){if(l.keyPropertyName===void 0){const D=L(m,A=>A.flags&59506688?L(u0(A),w=>Tg(Wn(w))?w.escapedName:void 0):void 0),C=D&&fni(m,D);l.keyPropertyName=C?D:"",l.constituentMap=C}return l.keyPropertyName.length?l.keyPropertyName:void 0}}function Kte(l,m){var D;const C=(D=l.constituentMap)==null?void 0:D.get(Sh($h(m)));return C!==on?C:void 0}function Pht(l,m){const D=Hte(l),C=D&&he(m,D);return C&&Kte(l,C)}function mni(l,m){const D=Hte(l),C=D&&Le(m.properties,w=>w.symbol&&w.kind===303&&w.symbol.escapedName===D&&Yte(w.initializer)),A=C&&_ie(C.initializer);return A&&Kte(l,A)}function Mht(l,m){return b1(l,m)||Lht(l,m)}function zht(l,m){if(l.arguments){for(const D of l.arguments)if(Mht(m,D)||yF(D,m))return!0}return!!(l.expression.kind===211&&Mht(m,l.expression.expression))}function xMe(l){return(!l.id||l.id<0)&&(l.id=WAe,WAe++),l.id}function pni(l,m){if(!(l.flags&1048576))return ms(l,m);for(const D of l.types)if(ms(D,m))return!0;return!1}function gni(l,m){if(l===m)return l;if(m.flags&131072)return m;const D=`A${Sh(l)},${Sh(m)}`;return Yk(D)??mb(D,Eni(l,m))}function Eni(l,m){const D=Oc(l,A=>pni(m,A)),C=m.flags&512&&Mb(m)?ml(D,Z9):D;return ms(m,C)?C:l}function vMe(l){const m=Ag(l);return!!(m.callSignatures.length||m.constructSignatures.length||m.members.get("bind")&&F6(l,di))}function Nz(l,m){return CMe(l,m)&m}function pp(l,m){return Nz(l,m)!==0}function CMe(l,m){l.flags&467927040&&(l=Gh(l)||on);const D=l.flags;if(D&268435460)return fe?16317953:16776705;if(D&134217856){const C=D&128&&l.value==="";return fe?C?12123649:7929345:C?12582401:16776705}if(D&40)return fe?16317698:16776450;if(D&256){const C=l.value===0;return fe?C?12123394:7929090:C?12582146:16776450}if(D&64)return fe?16317188:16775940;if(D&2048){const C=Eht(l);return fe?C?12122884:7928580:C?12581636:16775940}return D&16?fe?16316168:16774920:D&528?fe?l===Ui||l===Sn?12121864:7927560:l===Ui||l===Sn?12580616:16774920:D&524288?m&(fe?83427327:83886079)?Ju(l)&16&&bD(l)?fe?83427327:83886079:vMe(l)?fe?7880640:16728e3:fe?7888800:16736160:0:D&16384?9830144:D&32768?26607360:D&65536?42917664:D&12288?fe?7925520:16772880:D&67108864?fe?7888800:16736160:D&131072?0:D&1048576?nn(l.types,(C,A)=>C|CMe(A,m),0):D&2097152?_ni(l,m):83886079}function _ni(l,m){const D=jl(l,402784252);let C=0,A=134217727;for(const w of l.types)if(!(D&&w.flags&524288)){const I=CMe(w,m);C|=I,A&=I}return C&8256|A&134209471}function gp(l,m){return Oc(l,D=>pp(D,m))}function kF(l,m){const D=Iht(gp(fe&&l.flags&2?hl:l,m));if(fe)switch(m){case 524288:return ml(D,C=>pp(C,65536)?Ds([C,pp(C,131072)&&!jl(D,65536)?tr([Wo,it]):Wo]):C);case 1048576:return ml(D,C=>pp(C,131072)?Ds([C,pp(C,65536)&&!jl(D,32768)?tr([Wo,te]):Wo]):C);case 2097152:case 4194304:return ml(D,C=>pp(C,262144)?Rii(C):C)}return D}function Iht(l){return l===hl?on:l}function bMe(l,m){return m?tr([Wr(l),y1(m)]):l}function Rht(l,m){var D;const C=j5(m);if(!X4(C))return Ot;const A=ep(C);return he(l,A)||CW((D=G9(l,A))==null?void 0:D.type)||Ot}function Oht(l,m){return t4(l,wz)&&Bii(l,m)||CW(G5(65,l,te,void 0))||Ot}function CW(l){return l&&(ae.noUncheckedIndexedAccess?tr([l,de]):l)}function jht(l){return H1(G5(65,l,te,void 0)||Ot)}function Dni(l){return l.parent.kind===209&&yMe(l.parent)||l.parent.kind===303&&yMe(l.parent.parent)?bMe(Wte(l),l.right):y1(l.right)}function yMe(l){return l.parent.kind===226&&l.parent.left===l||l.parent.kind===250&&l.parent.initializer===l}function xni(l,m){return Oht(Wte(l),l.elements.indexOf(m))}function vni(l){return jht(Wte(l.parent))}function Vht(l){return Rht(Wte(l.parent),l.name)}function Cni(l){return bMe(Vht(l),l.objectAssignmentInitializer)}function Wte(l){const{parent:m}=l;switch(m.kind){case 249:return ct;case 250:return yie(m)||Ot;case 226:return Dni(m);case 220:return te;case 209:return xni(m,l);case 230:return vni(m);case 303:return Vht(m);case 304:return Cni(m)}return Ot}function bni(l){const m=l.parent,D=Kht(m.parent),C=m.kind===206?Rht(D,l.propertyName||l.name):l.dotDotDotToken?jht(D):Oht(D,m.elements.indexOf(l));return bMe(C,l.initializer)}function Hht(l){return sr(l).resolvedType||y1(l)}function yni(l){return l.initializer?Hht(l.initializer):l.parent.parent.kind===249?ct:l.parent.parent.kind===250&&yie(l.parent.parent)||Ot}function Kht(l){return l.kind===260?yni(l):bni(l)}function kni(l){return l.kind===260&&l.initializer&&y3(l.initializer)||l.kind!==208&&l.parent.kind===226&&y3(l.parent.right)}function Ob(l){switch(l.kind){case 217:return Ob(l.expression);case 226:switch(l.operatorToken.kind){case 64:case 76:case 77:case 78:return Ob(l.left);case 28:return Ob(l.right)}}return l}function Wht(l){const{parent:m}=l;return m.kind===217||m.kind===226&&m.operatorToken.kind===64&&m.left===l||m.kind===226&&m.operatorToken.kind===28&&m.right===l?Wht(m):l}function Fni(l){return l.kind===296?$h(y1(l.expression)):Wu}function DEe(l){const m=sr(l);if(!m.switchTypes){m.switchTypes=[];for(const D of l.caseBlock.clauses)m.switchTypes.push(Fni(D))}return m.switchTypes}function Ght(l){if(Ge(l.caseBlock.clauses,D=>D.kind===296&&!i0(D.expression)))return;const m=[];for(const D of l.caseBlock.clauses){const C=D.kind===296?D.expression.text:void 0;m.push(C&&!kt(m,C)?C:void 0)}return m}function Ani(l,m){return l.flags&1048576?!L(l.types,D=>!kt(m,D)):kt(m,l)}function Pz(l,m){return!!(l===m||l.flags&131072||m.flags&1048576&&Sni(l,m))}function Sni(l,m){if(l.flags&1048576){for(const D of l.types)if(!C6(m.types,D))return!1;return!0}return l.flags&1056&&kge(l)===m?!0:C6(m.types,l)}function FF(l,m){return l.flags&1048576?L(l.types,m):m(l)}function kE(l,m){return l.flags&1048576?Ge(l.types,m):m(l)}function t4(l,m){return l.flags&1048576?ye(l.types,m):m(l)}function Bni(l,m){return l.flags&3145728?ye(l.types,m):m(l)}function Oc(l,m){if(l.flags&1048576){const D=l.types,C=ti(D,m);if(C===D)return l;const A=l.origin;let w;if(A&&A.flags&1048576){const I=A.types,U=ti(I,Z=>!!(Z.flags&1048576)||m(Z));if(I.length-U.length===D.length-C.length){if(U.length===1)return U[0];w=bPe(1048576,U)}}return kPe(C,l.objectFlags&16809984,void 0,void 0,w)}return l.flags&131072||m(l)?l:Wu}function xEe(l,m){return Oc(l,D=>D!==m)}function wni(l){return l.flags&1048576?l.types.length:1}function ml(l,m,D){if(l.flags&131072)return l;if(!(l.flags&1048576))return m(l);const C=l.origin,A=C&&C.flags&1048576?C.types:l.types;let w,I=!1;for(const U of A){const Z=U.flags&1048576?ml(U,m,D):m(U);I||(I=U!==Z),Z&&(w?w.push(Z):w=[Z])}return I?w&&tr(w,D?0:1):l}function Jht(l,m,D,C){return l.flags&1048576&&D?tr(Vt(l.types,m),1,D,C):ml(l,m)}function Mz(l,m){return Oc(l,D=>(D.flags&m)!==0)}function $ht(l,m){return jl(l,134217804)&&jl(m,402655616)?ml(l,D=>D.flags&4?Mz(m,402653316):U9(D)&&!jl(m,402653188)?Mz(m,128):D.flags&8?Mz(m,264):D.flags&64?Mz(m,2112):D):l}function cT(l){return l.flags===0}function AF(l){return l.flags===0?l.type:l}function dT(l,m){return m?{flags:0,type:l.flags&131072?Va:l}:l}function Tni(l){const m=C4(256);return m.elementType=l,m}function kMe(l){return _t[l.id]||(_t[l.id]=Tni(l))}function Uht(l,m){const D=DW(kD(_ie(m)));return Pz(D,l.elementType)?l:kMe(tr([l.elementType,D]))}function Lni(l){return l.flags&131072?Mc:H1(l.flags&1048576?tr(l.types,2):l)}function Nni(l){return l.finalArrayType||(l.finalArrayType=Lni(l.elementType))}function Gte(l){return Ju(l)&256?Nni(l):l}function Pni(l){return Ju(l)&256?l.elementType:Wu}function Mni(l){let m=!1;for(const D of l)if(!(D.flags&131072)){if(!(Ju(D)&256))return!1;m=!0}return m}function qht(l){const m=Wht(l),D=m.parent,C=Ru(D)&&(D.name.escapedText==="length"||D.parent.kind===213&&at(D.name)&&q0e(D.name)),A=D.kind===212&&D.expression===m&&D.parent.kind===226&&D.parent.operatorToken.kind===64&&D.parent.left===D&&!X_(D.parent)&&r1(y1(D.argumentExpression),296);return C||A}function zni(l){return(ra(l)||ko(l)||zm(l)||io(l))&&!!(m1(l)||Xn(l)&&Nx(l)&&l.initializer&&O2(l.initializer)&&Z4(l.initializer))}function vEe(l,m){if(l=Fc(l),l.flags&8752)return Wn(l);if(l.flags&7){if(Gl(l)&262144){const C=l.links.syntheticOrigin;if(C&&vEe(C))return Wn(l)}const D=l.valueDeclaration;if(D){if(zni(D))return Wn(l);if(ra(D)&&D.parent.parent.kind===250){const C=D.parent.parent,A=Jte(C.expression,void 0);if(A){const w=C.awaitModifier?15:13;return G5(w,A,te,void 0)}}m&&Es(m,Tu(D,F._0_needs_an_explicit_type_annotation,Sr(l)))}}}function Jte(l,m){if(!(l.flags&67108864))switch(l.kind){case 80:const D=cp(Yp(l));return vEe(D,m);case 110:return tui(l);case 108:return TMe(l);case 211:{const C=Jte(l.expression,m);if(C){const A=l.name;let w;if(ea(A)){if(!C.symbol)return;w=Zo(C,Ij(C.symbol,A.escapedText))}else w=Zo(C,A.escapedText);return w&&vEe(w,m)}return}case 217:return Jte(l.expression,m)}}function $te(l){const m=sr(l);let D=m.effectsSignature;if(D===void 0){let C;if(eu(l)){const I=hT(l.right);C=Cze(I)}else l.parent.kind===244?C=Jte(l.expression,void 0):l.expression.kind!==108&&(Q1(l)?C=FE(EW(Fa(l.expression),l.expression),l.expression):C=hT(l.expression));const A=Eo(C&&Jh(C)||on,0),w=A.length===1&&!A[0].typeParameters?A[0]:Ge(A,Zht)?mT(l):void 0;D=m.effectsSignature=w&&Zht(w)?w:fn}return D===fn?void 0:D}function Zht(l){return!!(A4(l)||l.declaration&&(uT(l.declaration)||on).flags&131072)}function Ini(l,m){if(l.kind===1||l.kind===3)return m.arguments[l.parameterIndex];const D=l0(m.expression);return O0(D)?l0(D.expression):void 0}function Rni(l){const m=Tn(l,Qse),D=zn(l),C=XE(D,m.statements.pos);Hs.add(Rd(D,C.start,C.length,F.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis))}function Ute(l){const m=CEe(l,!1);return Rn=l,tn=m,m}function qte(l){const m=l0(l,!0);return m.kind===97||m.kind===226&&(m.operatorToken.kind===56&&(qte(m.left)||qte(m.right))||m.operatorToken.kind===57&&qte(m.left)&&qte(m.right))}function CEe(l,m){for(;;){if(l===Rn)return tn;const D=l.flags;if(D&4096){if(!m){const C=xMe(l),A=b9[C];return A!==void 0?A:b9[C]=CEe(l,!0)}m=!1}if(D&368)l=l.antecedent;else if(D&512){const C=$te(l.node);if(C){const A=A4(C);if(A&&A.kind===3&&!A.type){const w=l.node.arguments[A.parameterIndex];if(w&&qte(w))return!1}if(Ys(C).flags&131072)return!1}l=l.antecedent}else{if(D&4)return Ge(l.antecedents,C=>CEe(C,!1));if(D&8){const C=l.antecedents;if(C===void 0||C.length===0)return!1;l=C[0]}else if(D&128){if(l.clauseStart===l.clauseEnd&&Fmt(l.switchStatement))return!1;l=l.antecedent}else if(D&1024){Rn=void 0;const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=CEe(l.antecedent,!1);return C.antecedents=A,w}else return!(D&1)}}}function bEe(l,m){for(;;){const D=l.flags;if(D&4096){if(!m){const C=xMe(l),A=qk[C];return A!==void 0?A:qk[C]=bEe(l,!0)}m=!1}if(D&496)l=l.antecedent;else if(D&512){if(l.node.expression.kind===108)return!0;l=l.antecedent}else{if(D&4)return ye(l.antecedents,C=>bEe(C,!1));if(D&8)l=l.antecedents[0];else if(D&1024){const C=l.target,A=C.antecedents;C.antecedents=l.antecedents;const w=bEe(l.antecedent,!1);return C.antecedents=A,w}else return!!(D&1)}}}function Yht(l){switch(l.kind){case 110:return!0;case 80:if(!g7(l)){const m=Yp(l);return zz(m)||Ile(m)&&!yEe(m)}break;case 211:case 212:return Yht(l.expression)&&Ng(sr(l).resolvedSymbol||Xt)}return!1}function w6(l,m,D=m,C,A=(w=>(w=ar(l,wj))==null?void 0:w.flowNode)()){let w,I=!1,U=0;if(wi)return Ot;if(!A)return m;Xi++;const Z=oi,ce=AF($e(A));oi=Z;const Fe=Ju(ce)&256&&qht(l)?Mc:Gte(ce);if(Fe===Rr||l.parent&&l.parent.kind===235&&!(Fe.flags&131072)&&gp(Fe,2097152).flags&131072)return m;return Fe===le?on:Fe;function Te(){return I?w:(I=!0,w=_Ee(l,m,D,C))}function $e(Lt){var si;if(U===2e3)return(si=Gn)==null||si.instant(Gn.Phase.CheckTypes,"getTypeAtFlowNode_DepthLimit",{flowId:Lt.id}),wi=!0,Rni(l),Ot;U++;let Gi;for(;;){const bi=Lt.flags;if(bi&4096){for(let mn=Z;mn=0&&Gi.parameterIndex!(mn.flags&163840)):si.kind===221&&yF(si.expression,l)&&(bi=N0(bi,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd,mn=>!(mn.flags&131072||mn.flags&128&&mn.value==="undefined"))));const Ji=_n(si,bi);Ji&&(bi=_o(bi,Ji,Lt.switchStatement,Lt.clauseStart,Lt.clauseEnd))}return dT(bi,cT(Gi))}function Ri(Lt){const si=[];let Gi=!1,bi=!1,Ji;for(const mn of Lt.antecedents){if(!Ji&&mn.flags&128&&mn.clauseStart===mn.clauseEnd){Ji=mn;continue}const Gr=$e(mn),Au=AF(Gr);if(Au===m&&m===D)return Au;Ca(si,Au),Pz(Au,D)||(Gi=!0),cT(Gr)&&(bi=!0)}if(Ji){const mn=$e(Ji),Gr=AF(mn);if(!(Gr.flags&131072)&&!kt(si,Gr)&&!Fmt(Ji.switchStatement)){if(Gr===m&&m===D)return Gr;si.push(Gr),Pz(Gr,D)||(Gi=!0),cT(mn)&&(bi=!0)}}return dT(vn(si,Gi?2:1),bi)}function Nn(Lt){const si=xMe(Lt),Gi=x9[si]||(x9[si]=new Map),bi=Te();if(!bi)return m;const Ji=Gi.get(bi);if(Ji)return Ji;for(let pn=Xe;pn{const pn=Re(Do,bi)||on;return!(pn.flags&131072)&&!(Au.flags&131072)&&Mte(Au,pn)})}function oo(Lt,si,Gi,bi,Ji){if((Gi===37||Gi===38)&&Lt.flags&1048576){const mn=Hte(Lt);if(mn&&mn===bF(si)){const Gr=Kte(Lt,y1(bi));if(Gr)return Gi===(Ji?37:38)?Gr:Tg(he(Gr,mn)||on)?xEe(Lt,Gr):Lt}}return hu(Lt,si,mn=>yo(mn,Gi,bi,Ji))}function _o(Lt,si,Gi,bi,Ji){if(biKte(Lt,Au)||on));if(Gr!==on)return Gr}return hu(Lt,si,mn=>od(mn,Gi,bi,Ji))}function mo(Lt,si,Gi){if(b1(l,si))return kF(Lt,Gi?4194304:8388608);fe&&Gi&&yF(si,l)&&(Lt=kF(Lt,2097152));const bi=_n(si,Lt);return bi?hu(Lt,bi,Ji=>gp(Ji,Gi?4194304:8388608)):Lt}function Aa(Lt,si,Gi){const bi=Zo(Lt,si);return bi?!!(bi.flags&16777216||Gl(bi)&48)||Gi:!!G9(Lt,si)||!Gi}function oh(Lt,si,Gi){const bi=ep(si);if(kE(Lt,mn=>Aa(mn,bi,!0)))return Oc(Lt,mn=>Aa(mn,bi,Gi));if(Gi){const mn=Kei();if(mn)return Ds([Lt,aT(mn,[si,on])])}return Lt}function i4(Lt,si,Gi,bi,Ji){return Ji=Ji!==(Gi.kind===112)!=(bi!==38&&bi!==36),ju(Lt,si,Ji)}function hn(Lt,si,Gi){switch(si.operatorToken.kind){case 64:case 76:case 77:case 78:return mo(ju(Lt,si.right,Gi),si.left,Gi);case 35:case 36:case 37:case 38:const bi=si.operatorToken.kind,Ji=Ob(si.left),mn=Ob(si.right);if(Ji.kind===221&&i0(mn))return $n(Lt,Ji,bi,mn,Gi);if(mn.kind===221&&i0(Ji))return $n(Lt,mn,bi,Ji,Gi);if(b1(l,Ji))return yo(Lt,bi,mn,Gi);if(b1(l,mn))return yo(Lt,bi,Ji,Gi);fe&&(yF(Ji,l)?Lt=Yr(Lt,bi,mn,Gi):yF(mn,l)&&(Lt=Yr(Lt,bi,Ji,Gi)));const Gr=_n(Ji,Lt);if(Gr)return oo(Lt,Gr,bi,mn,Gi);const Au=_n(mn,Lt);if(Au)return oo(Lt,Au,bi,Ji,Gi);if(bm(Ji))return St(Lt,bi,mn,Gi);if(bm(mn))return St(Lt,bi,Ji,Gi);if(KN(mn)&&!O0(Ji))return i4(Lt,Ji,mn,bi,Gi);if(KN(Ji)&&!O0(mn))return i4(Lt,mn,Ji,bi,Gi);break;case 104:return ze(Lt,si,Gi);case 103:if(ea(si.left))return Kn(Lt,si,Gi);const Do=Ob(si.right);if(_W(Lt)&&O0(l)&&b1(l.expression,Do)){const pn=y1(si.left);if(X4(pn)&&bF(l)===ep(pn))return gp(Lt,Gi?524288:65536)}if(b1(l,Do)){const pn=y1(si.left);if(X4(pn))return oh(Lt,pn,Gi)}break;case 28:return ju(Lt,si.right,Gi);case 56:return Gi?ju(ju(Lt,si.left,!0),si.right,!0):tr([ju(Lt,si.left,!1),ju(Lt,si.right,!1)]);case 57:return Gi?tr([ju(Lt,si.left,!0),ju(Lt,si.right,!0)]):ju(ju(Lt,si.left,!1),si.right,!1)}return Lt}function Kn(Lt,si,Gi){const bi=Ob(si.right);if(!b1(l,bi))return Lt;H.assertNode(si.left,ea);const Ji=MEe(si.left);if(Ji===void 0)return Lt;const mn=Ji.parent,Gr=Gc(H.checkDefined(Ji.valueDeclaration,"should always have a declaration"))?Wn(mn):el(mn);return Bu(Lt,Gr,Gi,!0)}function Yr(Lt,si,Gi,bi){const Ji=si===35||si===37,mn=si===35||si===36?98304:32768,Gr=y1(Gi);return Ji!==bi&&t4(Gr,Do=>!!(Do.flags&mn))||Ji===bi&&t4(Gr,Do=>!(Do.flags&(3|mn)))?kF(Lt,2097152):Lt}function yo(Lt,si,Gi,bi){if(Lt.flags&1)return Lt;(si===36||si===38)&&(bi=!bi);const Ji=y1(Gi),mn=si===35||si===36;if(Ji.flags&98304){if(!fe)return Lt;const Gr=mn?bi?262144:2097152:Ji.flags&65536?bi?131072:1048576:bi?65536:524288;return kF(Lt,Gr)}if(bi){if(!mn&&(Lt.flags&2||kE(Lt,yD))){if(Ji.flags&469893116||yD(Ji))return Ji;if(Ji.flags&524288)return os}const Gr=Oc(Lt,Au=>Mte(Au,Ji)||mn&&Oii(Au,Ji));return $ht(Gr,Ji)}return Tg(Ji)?Oc(Lt,Gr=>!(fht(Gr)&&Mte(Gr,Ji))):Lt}function $n(Lt,si,Gi,bi,Ji){(Gi===36||Gi===38)&&(Ji=!Ji);const mn=Ob(si.expression);if(!b1(l,mn)){fe&&yF(mn,l)&&Ji===(bi.text!=="undefined")&&(Lt=kF(Lt,2097152));const Gr=_n(mn,Lt);return Gr?hu(Lt,Gr,Au=>ws(Au,bi,Ji)):Lt}return ws(Lt,bi,Ji)}function ws(Lt,si,Gi){return Gi?Qs(Lt,si.text):kF(Lt,Kde.get(si.text)||32768)}function N0(Lt,si,Gi,bi,Ji){return Gi!==bi&&ye(DEe(si).slice(Gi,bi),Ji)?gp(Lt,2097152):Lt}function od(Lt,si,Gi,bi){const Ji=DEe(si);if(!Ji.length)return Lt;const mn=Ji.slice(Gi,bi),Gr=Gi===bi||kt(mn,Wu);if(Lt.flags&2&&!Gr){let lr;for(let Zr=0;ZrMte(Au,lr)),Au);if(!Gr)return Do;const pn=Oc(Lt,lr=>!(fht(lr)&&kt(Ji,$h(Tii(lr)))));return Do.flags&131072?pn:tr([Do,pn])}function Qs(Lt,si){switch(si){case"string":return Td(Lt,ct,1);case"number":return Td(Lt,Qt,2);case"bigint":return Td(Lt,Ti,4);case"boolean":return Td(Lt,Er,8);case"symbol":return Td(Lt,er,16);case"object":return Lt.flags&1?Lt:tr([Td(Lt,os,32),Td(Lt,it,131072)]);case"function":return Lt.flags&1?Lt:Td(Lt,di,64);case"undefined":return Td(Lt,te,65536)}return Td(Lt,os,128)}function Td(Lt,si,Gi){return ml(Lt,bi=>yE(bi,si,_4)?pp(bi,Gi)?bi:Wu:F6(si,bi)?si:pp(bi,Gi)?Ds([bi,si]):Wu)}function Ac(Lt,si,Gi,bi){const Ji=Ght(si);if(!Ji)return Lt;const mn=Ue(si.caseBlock.clauses,Do=>Do.kind===297);if(Gi===bi||mn>=Gi&&mnNz(pn,Do)===Do)}const Au=Ji.slice(Gi,bi);return tr(Vt(Au,Do=>Do?Qs(Lt,Do):Wu))}function tl(Lt,si,Gi,bi){const Ji=Ue(si.caseBlock.clauses,Au=>Au.kind===297),mn=Gi===bi||Ji>=Gi&&JiAu.kind===296?ju(Lt,Au.expression,!0):Wu))}function bm(Lt){return(Ru(Lt)&&fu(Lt.name)==="constructor"||q0(Lt)&&i0(Lt.argumentExpression)&&Lt.argumentExpression.text==="constructor")&&b1(l,Lt.expression)}function St(Lt,si,Gi,bi){if(bi?si!==35&&si!==37:si!==36&&si!==38)return Lt;const Ji=y1(Gi);if(!Xze(Ji)&&!jr(Ji))return Lt;const mn=Zo(Ji,"prototype");if(!mn)return Lt;const Gr=Wn(mn),Au=nt(Gr)?void 0:Gr;if(!Au||Au===Ve||Au===di)return Lt;if(nt(Lt))return Au;return Oc(Lt,pn=>Do(pn,Au));function Do(pn,lr){return pn.flags&524288&&Ju(pn)&1||lr.flags&524288&&Ju(lr)&1?pn.symbol===lr.symbol:F6(pn,lr)}}function ze(Lt,si,Gi){const bi=Ob(si.left);if(!b1(l,bi))return Gi&&fe&&yF(bi,l)?kF(Lt,2097152):Lt;const Ji=si.right,mn=y1(Ji);if(!LC(mn,Ve))return Lt;const Gr=$te(si),Au=Gr&&A4(Gr);if(Au&&Au.kind===1&&Au.parameterIndex===0)return Bu(Lt,Au.type,Gi,!0);if(!LC(mn,di))return Lt;const Do=ml(mn,Qn);return nt(Lt)&&(Do===Ve||Do===di)||!Gi&&!(Do.flags&524288&&!yD(Do))?Lt:Bu(Lt,Do,Gi,!0)}function Qn(Lt){const si=he(Lt,"prototype");if(si&&!nt(si))return si;const Gi=Eo(Lt,1);return Gi.length?tr(Vt(Gi,bi=>Ys(oW(bi)))):Wo}function Bu(Lt,si,Gi,bi){const Ji=Lt.flags&1048576?`N${Sh(Lt)},${Sh(si)},${(Gi?1:0)|(bi?2:0)}`:void 0;return Yk(Ji)??mb(Ji,Dr(Lt,si,Gi,bi))}function Dr(Lt,si,Gi,bi){if(!Gi){if(bi)return Oc(Lt,Do=>!LC(Do,si));const Au=Bu(Lt,si,!0,!1);return Oc(Lt,Do=>!Pz(Do,Au))}if(Lt.flags&3)return si;const Ji=bi?LC:F6,mn=Lt.flags&1048576?Hte(Lt):void 0,Gr=ml(si,Au=>{const Do=mn&&he(Au,mn),pn=Do&&Kte(Lt,Do),lr=ml(pn||Lt,bi?Zr=>LC(Zr,Au)?Zr:LC(Au,Zr)?Au:Wu:Zr=>U1t(Zr,Au)?Zr:U1t(Au,Zr)?Au:F6(Zr,Au)?Zr:F6(Au,Zr)?Au:Wu);return lr.flags&131072?ml(Lt,Zr=>jl(Zr,465829888)&&Ji(Au,Gh(Zr)||on)?Ds([Zr,Au]):Wu):lr});return Gr.flags&131072?F6(si,Lt)?si:ms(Lt,si)?Lt:ms(si,Lt)?si:Ds([Lt,si]):Gr}function pr(Lt,si,Gi){if(zht(si,l)){const bi=Gi||!$y(si)?$te(si):void 0,Ji=bi&&A4(bi);if(Ji&&(Ji.kind===0||Ji.kind===1))return zr(Lt,Ji,si,Gi)}if(_W(Lt)&&O0(l)&&Ru(si.expression)){const bi=si.expression;if(b1(l.expression,Ob(bi.expression))&&at(bi.name)&&bi.name.escapedText==="hasOwnProperty"&&si.arguments.length===1){const Ji=si.arguments[0];if(i0(Ji)&&bF(l)===Sl(Ji.text))return gp(Lt,Gi?524288:65536)}}return Lt}function zr(Lt,si,Gi,bi){if(si.type&&!(nt(Lt)&&(si.type===Ve||si.type===di))){const Ji=Ini(si,Gi);if(Ji){if(b1(l,Ji))return Bu(Lt,si.type,bi,!1);fe&&yF(Ji,l)&&(bi&&!pp(si.type,65536)||!bi&&t4(si.type,nie))&&(Lt=kF(Lt,2097152));const mn=_n(Ji,Lt);if(mn)return hu(Lt,mn,Gr=>Bu(Gr,si.type,bi,!1))}}return Lt}function ju(Lt,si,Gi){if(IU(si)||eu(si.parent)&&(si.parent.operatorToken.kind===61||si.parent.operatorToken.kind===78)&&si.parent.left===si)return vu(Lt,si,Gi);switch(si.kind){case 80:if(!b1(l,si)&&J<5){const bi=Yp(si);if(zz(bi)){const Ji=bi.valueDeclaration;if(Ji&&ra(Ji)&&!Ji.type&&Ji.initializer&&Yht(l)){J++;const mn=ju(Lt,Ji.initializer,Gi);return J--,mn}}}case 110:case 108:case 211:case 212:return mo(Lt,si,Gi);case 213:return pr(Lt,si,Gi);case 217:case 235:return ju(Lt,si.expression,Gi);case 226:return hn(Lt,si,Gi);case 224:if(si.operator===54)return ju(Lt,si.operand,!Gi);break}return Lt}function vu(Lt,si,Gi){if(b1(l,si))return kF(Lt,Gi?2097152:262144);const bi=_n(si,Lt);return bi?hu(Lt,bi,Ji=>gp(Ji,Gi?2097152:262144)):Lt}}function Oni(l,m){if(l=cp(l),(m.kind===80||m.kind===81)&&(EP(m)&&(m=m.parent),Y_(m)&&(!X_(m)||D7(m)))){const D=lEe(D7(m)&&m.kind===211?NEe(m,void 0,!0):y1(m));if(cp(sr(m).resolvedSymbol)===l)return D}return X3(m)&&e5(m.parent)&&n0(m.parent)?vge(m.parent.symbol):hle(m)&&D7(m.parent)?mF(l):E6(l)}function bW(l){return Tn(l.parent,m=>Co(m)&&!nk(m)||m.kind===268||m.kind===312||m.kind===172)}function yEe(l){if(!l.valueDeclaration)return!1;const m=e_(l.valueDeclaration).parent,D=sr(m);return D.flags&131072||(D.flags|=131072,jni(m)||Qht(m)),l.isAssigned||!1}function jni(l){return!!Tn(l.parent,m=>(Co(m)||J2(m))&&!!(sr(m).flags&131072))}function Qht(l){if(l.kind===80){if(X_(l)){const m=Yp(l);Ile(m)&&(m.isAssigned=!0)}}else ao(l,Qht)}function zz(l){return l.flags&3&&(GMe(l)&6)!==0}function Vni(l){const m=sr(l);if(m.parameterInitializerContainsUndefined===void 0){if(!x_(l,9))return Xw(l.symbol),!0;const D=!!pp(TW(l,0),16777216);if(!bE())return Xw(l.symbol),!0;m.parameterInitializerContainsUndefined=D}return m.parameterInitializerContainsUndefined}function Hni(l,m){return fe&&m.kind===169&&m.initializer&&pp(l,16777216)&&!Vni(m)?gp(l,524288):l}function Kni(l,m){const D=m.parent;return D.kind===211||D.kind===166||D.kind===213&&D.expression===m||D.kind===212&&D.expression===m&&!(kE(l,eft)&&SC(y1(D.argumentExpression)))}function Xht(l){return l.flags&2097152?Ge(l.types,Xht):!!(l.flags&465829888&&xD(l).flags&1146880)}function eft(l){return l.flags&2097152?Ge(l.types,eft):!!(l.flags&465829888&&!jl(xD(l),98304))}function Wni(l,m){const D=(at(l)||Ru(l)||q0(l))&&!((oE(l.parent)||bk(l.parent))&&l.parent.tagName===l)&&(m&&m&32?hf(l,8):hf(l,void 0));return D&&!Fz(D)}function FMe(l,m,D){return!(D&&D&2)&&kE(l,Xht)&&(Kni(l,m)||Wni(m,D))?ml(l,xD):l}function tft(l){return!!Tn(l,m=>{const D=m.parent;return D===void 0?"quit":ic(D)?D.expression===m&&tc(m):th(D)?D.name===m||D.propertyName===m:!1})}function kEe(l,m){if(Ut&&fC(l,111551)&&!ck(m)){const D=md(l);j1(l,!0)&1160127&&(mg(ae)||fk(ae)&&tft(m)||!jW(cp(D))?T5(l):u1(l))}}function Gni(l,m){var D;const C=Wn(l),A=l.valueDeclaration;if(A){if(Vs(A)&&!A.initializer&&!A.dotDotDotToken&&A.parent.elements.length>=2){const w=A.parent.parent;if(w.kind===260&&Jb(A)&6||w.kind===169){const I=sr(w);if(!(I.flags&4194304)){I.flags|=4194304;const U=Ci(w,0),Z=U&&ml(U,xD);if(I.flags&=-4194305,Z&&Z.flags&1048576&&!(w.kind===169&&yEe(l))){const ce=A.parent,Fe=w6(ce,Z,Z,void 0,m.flowNode);return Fe.flags&131072?Wu:y4(A,Fe,!0)}}}}if(io(A)&&!A.type&&!A.initializer&&!A.dotDotDotToken){const w=A.parent;if(w.parameters.length>=2&&Zge(w)){const I=kW(w);if(I&&I.parameters.length===1&&ih(I)){const U=xz(Da(Wn(I.parameters[0]),(D=Vb(w))==null?void 0:D.nonFixingMapper));if(U.flags&1048576&&t4(U,xs)&&!yEe(l)){const Z=w6(w,U,U,void 0,m.flowNode),ce=w.parameters.indexOf(A)-(L2(w)?1:0);return qf(Z,wg(ce))}}}}}return C}function Jni(l,m){if(g7(l))return Zte(l);const D=Yp(l);if(D===Xt)return Ot;if(D===It){if(Rft(l))return gt(l,F.arguments_cannot_be_referenced_in_property_initializers),Ot;const Ri=Pm(l);return Ce<2&&(Ri.kind===219?gt(l,F.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression):Qu(Ri,1024)&>(l,F.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method)),sr(Ri).flags|=512,Wn(D)}Uni(l)&&kEe(D,l);const C=cp(D),A=$ze(C,l);S5(A)&&APe(l,A)&&A.declarations&&p3(l,A.declarations,l.escapedText);let w=C.valueDeclaration;if(w&&C.flags&32&&gr(w)&&w.name!==l){let Ri=tf(l,!1,!1);for(;Ri.kind!==312&&Ri.parent!==w;)Ri=tf(Ri,!1,!1);Ri.kind!==312&&(sr(w).flags|=262144,sr(Ri).flags|=262144,sr(l).flags|=536870912)}Yni(l,D);let I=Gni(C,l);const U=f7(l);if(U){if(!(C.flags&3)&&!(Xn(l)&&C.flags&512)){const Ri=C.flags&384?F.Cannot_assign_to_0_because_it_is_an_enum:C.flags&32?F.Cannot_assign_to_0_because_it_is_a_class:C.flags&1536?F.Cannot_assign_to_0_because_it_is_a_namespace:C.flags&16?F.Cannot_assign_to_0_because_it_is_a_function:C.flags&2097152?F.Cannot_assign_to_0_because_it_is_an_import:F.Cannot_assign_to_0_because_it_is_not_a_variable;return gt(l,Ri,Sr(D)),Ot}if(Ng(C))return C.flags&3?gt(l,F.Cannot_assign_to_0_because_it_is_a_constant,Sr(D)):gt(l,F.Cannot_assign_to_0_because_it_is_a_read_only_property,Sr(D)),Ot}const Z=C.flags&2097152;if(C.flags&3){if(U===1)return V0e(l)?kD(I):I}else if(Z)w=op(D);else return I;if(!w)return I;I=FMe(I,l,m);const ce=e_(w).kind===169,Fe=bW(w);let Te=bW(l);const $e=Te!==Fe,ut=l.parent&&l.parent.parent&&d5(l.parent)&&yMe(l.parent.parent),zt=D.flags&134217728,gi=I===ni||I===Mc,Wi=gi&&l.parent.kind===235;for(;Te!==Fe&&(Te.kind===218||Te.kind===219||dq(Te))&&(zz(C)&&I!==Mc||ce&&!yEe(C));)Te=bW(Te);const dn=ce||Z||$e||ut||zt||$ni(l,w)||I!==ni&&I!==Mc&&(!fe||(I.flags&16387)!==0||ck(l)||_Me(l)||l.parent.kind===281)||l.parent.kind===235||w.kind===260&&w.exclamationToken||w.flags&33554432,nu=Wi?te:dn?ce?Hni(I,w):I:gi?te:S6(I),En=Wi?FD(w6(l,I,nu,Te)):w6(l,I,nu,Te);if(!qht(l)&&(I===ni||I===Mc)){if(En===ni||En===Mc)return Ae&&(gt(Ya(w),F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined,Sr(D),gn(En)),gt(l,F.Variable_0_implicitly_has_an_1_type,Sr(D),gn(En))),OW(En)}else if(!dn&&!Az(I)&&Az(En))return gt(l,F.Variable_0_is_used_before_being_assigned,Sr(D)),I;return U?kD(En):En}function $ni(l,m){if(Vs(m)){const D=Tn(l,Vs);return D&&e_(D)===e_(m)}}function Uni(l){var m;const D=l.parent;if(D){if(Ru(D)&&D.expression===l||th(D)&&D.isTypeOnly)return!1;const C=(m=D.parent)==null?void 0:m.parent;if(C&&$c(C)&&C.isTypeOnly)return!1}return!0}function qni(l,m){return!!Tn(l,D=>D===m?"quit":Co(D)||D.parent&&ko(D.parent)&&!Gc(D.parent)&&D.parent.initializer===D)}function Zni(l,m){return Tn(l,D=>D===m?"quit":D===m.initializer||D===m.condition||D===m.incrementor||D===m.statement)}function AMe(l){return Tn(l,m=>!m||Z0e(m)?"quit":Tx(m,!1))}function Yni(l,m){if(Ce>=2||!(m.flags&34)||!m.valueDeclaration||ca(m.valueDeclaration)||m.valueDeclaration.parent.kind===299)return;const D=QE(m.valueDeclaration),C=qni(l,D),A=AMe(D);if(A){if(C){let w=!0;if(vk(D)){const I=Av(m.valueDeclaration,261);if(I&&I.parent===D){const U=Zni(l.parent,D);if(U){const Z=sr(U);Z.flags|=8192;const ce=Z.capturedBlockScopeBindings||(Z.capturedBlockScopeBindings=[]);Ca(ce,m),U===D.initializer&&(w=!1)}}}w&&(sr(A).flags|=4096)}if(vk(D)){const w=Av(m.valueDeclaration,261);w&&w.parent===D&&Xni(l,D)&&(sr(m.valueDeclaration).flags|=65536)}sr(m.valueDeclaration).flags|=32768}C&&(sr(m.valueDeclaration).flags|=16384)}function Qni(l,m){const D=sr(l);return!!D&&kt(D.capturedBlockScopeBindings,Du(m))}function Xni(l,m){let D=l;for(;D.parent.kind===217;)D=D.parent;let C=!1;if(X_(D))C=!0;else if(D.parent.kind===224||D.parent.kind===225){const A=D.parent;C=A.operator===46||A.operator===47}return C?!!Tn(D,A=>A===m?"quit":A===m.statement):!1}function SMe(l,m){if(sr(l).flags|=2,m.kind===172||m.kind===176){const D=m.parent;sr(D).flags|=4}else sr(m).flags|=4}function ift(l){return ik(l)?l:Co(l)?void 0:ao(l,ift)}function BMe(l){const m=Du(l),D=el(m);return Yc(D)===Ct}function nft(l,m,D){const C=m.parent;w2(C)&&!BMe(C)&&wj(l)&&l.flowNode&&!bEe(l.flowNode,!1)&>(l,D)}function eui(l,m){ko(m)&&Gc(m)&&ve&&m.initializer&&RO(m.initializer,l.pos)&&c4(m.parent)&>(l,F.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class)}function Zte(l){const m=ck(l);let D=tf(l,!0,!0),C=!1,A=!1;for(D.kind===176&&nft(l,D,F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);;){if(D.kind===219&&(D=tf(D,!1,!A),C=!0),D.kind===167){D=tf(D,!C,!1),A=!0;continue}break}if(eui(l,D),A)gt(l,F.this_cannot_be_referenced_in_a_computed_property_name);else switch(D.kind){case 267:gt(l,F.this_cannot_be_referenced_in_a_module_or_namespace_body);break;case 266:gt(l,F.this_cannot_be_referenced_in_current_location);break;case 176:uft(l,D)&>(l,F.this_cannot_be_referenced_in_constructor_arguments);break}!m&&C&&Ce<2&&SMe(l,D);const w=wMe(l,!0,D);if(De){const I=Wn(Bt);if(w===I&&C)gt(l,F.The_containing_arrow_function_captures_the_global_value_of_this);else if(!w){const U=gt(l,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);if(!ca(D)){const Z=wMe(D);Z&&Z!==I&&Es(U,Tu(D,F.An_outer_value_of_this_is_shadowed_by_this_container))}}}return w||me}function wMe(l,m=!0,D=tf(l,!1,!1)){const C=Xn(l);if(Co(D)&&(!NMe(l)||L2(D))){let A=g6(D)||C&&nui(D);if(!A){const w=iui(D);if(C&&w){const I=Fa(w).symbol;I&&I.members&&I.flags&16&&(A=el(I).thisType)}else SE(D)&&(A=el(Ws(D.symbol)).thisType);A||(A=sft(D))}if(A)return w6(l,A)}if(gr(D.parent)){const A=Du(D.parent),w=No(D)?Wn(A):el(A).thisType;return w6(l,w)}if(ca(D))if(D.commonJsModuleIndicator){const A=Du(D);return A&&Wn(A)}else{if(D.externalModuleIndicator)return te;if(m)return Wn(Bt)}}function tui(l){const m=tf(l,!1,!1);if(Co(m)){const D=fp(m);if(D.thisParameter)return vEe(D.thisParameter)}if(gr(m.parent)){const D=Du(m.parent);return No(m)?Wn(D):el(D).thisType}}function iui(l){if(l.kind===218&&eu(l.parent)&&ec(l.parent)===3)return l.parent.left.expression.expression;if(l.kind===174&&l.parent.kind===210&&eu(l.parent.parent)&&ec(l.parent.parent)===6)return l.parent.parent.left.expression;if(l.kind===218&&l.parent.kind===303&&l.parent.parent.kind===210&&eu(l.parent.parent.parent)&&ec(l.parent.parent.parent)===6)return l.parent.parent.parent.left.expression;if(l.kind===218&&Uc(l.parent)&&at(l.parent.name)&&(l.parent.name.escapedText==="value"||l.parent.name.escapedText==="get"||l.parent.name.escapedText==="set")&&ys(l.parent.parent)&&Mo(l.parent.parent.parent)&&l.parent.parent.parent.arguments[2]===l.parent.parent&&ec(l.parent.parent.parent)===9)return l.parent.parent.parent.arguments[0].expression;if(hc(l)&&at(l.name)&&(l.name.escapedText==="value"||l.name.escapedText==="get"||l.name.escapedText==="set")&&ys(l.parent)&&Mo(l.parent.parent)&&l.parent.parent.arguments[2]===l.parent&&ec(l.parent.parent)===9)return l.parent.parent.arguments[0].expression}function nui(l){const m=PU(l);if(m&&m.typeExpression)return Br(m.typeExpression);const D=vz(l);if(D)return FC(D)}function uft(l,m){return!!Tn(l,D=>U0(D)?"quit":D.kind===169&&D.parent===m)}function TMe(l){const m=l.parent.kind===213&&l.parent.expression===l,D=mj(l,!0);let C=D,A=!1,w=!1;if(!m){for(;C&&C.kind===219;)Qu(C,1024)&&(w=!0),C=mj(C,!0),A=Ce<2;C&&Qu(C,1024)&&(w=!0)}let I=0;if(!C||!Fe(C)){const Te=Tn(l,$e=>$e===C?"quit":$e.kind===167);return Te&&Te.kind===167?gt(l,F.super_cannot_be_referenced_in_a_computed_property_name):m?gt(l,F.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors):!C||!C.parent||!(gr(C.parent)||C.parent.kind===210)?gt(l,F.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions):gt(l,F.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class),Ot}if(!m&&D.kind===176&&nft(l,C,F.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class),No(C)||m?(I=32,!m&&Ce>=2&&Ce<=8&&(ko(C)||zl(C))&&Kbe(l.parent,Te=>{(!ca(Te)||cm(Te))&&(sr(Te).flags|=2097152)})):I=16,sr(l).flags|=I,C.kind===174&&w&&(nf(l.parent)&&X_(l.parent)?sr(C).flags|=256:sr(C).flags|=128),A&&SMe(l.parent,C),C.parent.kind===210)return Ce<2?(gt(l,F.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher),Ot):me;const U=C.parent;if(!w2(U))return gt(l,F.super_can_only_be_referenced_in_a_derived_class),Ot;if(BMe(U))return m?Ot:Ct;const Z=el(Du(U)),ce=Z&&Qc(Z)[0];if(!ce)return Ot;if(C.kind===176&&uft(l,C))return gt(l,F.super_cannot_be_referenced_in_constructor_arguments),Ot;return I===32?Yc(Z):xm(ce,Z.thisType);function Fe(Te){return m?Te.kind===176:gr(Te.parent)||Te.parent.kind===210?No(Te)?Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===175:Te.kind===174||Te.kind===173||Te.kind===177||Te.kind===178||Te.kind===172||Te.kind===171||Te.kind===176:!1}}function rft(l){return(l.kind===174||l.kind===177||l.kind===178)&&l.parent.kind===210?l.parent:l.kind===218&&l.parent.kind===303?l.parent.parent:void 0}function aft(l){return Ju(l)&4&&l.target===kc?V0(l)[0]:void 0}function uui(l){return ml(l,m=>m.flags&2097152?L(m.types,aft):aft(m))}function oft(l,m){let D=l,C=m;for(;C;){const A=uui(C);if(A)return A;if(D.parent.kind!==303)break;D=D.parent.parent,C=zC(D,void 0)}}function sft(l){if(l.kind===219)return;if(Zge(l)){const D=kW(l);if(D){const C=D.thisParameter;if(C)return Wn(C)}}const m=Xn(l);if(De||m){const D=rft(l);if(D){const A=zC(D,void 0),w=oft(D,A);return w?Da(w,sMe(Vb(D))):vm(A?FD(A):jc(D))}const C=i5(l.parent);if(ld(C)){const A=C.left;if(O0(A)){const{expression:w}=A;if(m&&at(w)){const I=zn(C);if(I.commonJsModuleIndicator&&Yp(w)===I.symbol)return}return vm(jc(w))}}}}function lft(l){const m=l.parent;if(!Zge(m))return;const D=nk(m);if(D&&D.arguments){const A=jEe(D),w=m.parameters.indexOf(l);if(l.dotDotDotToken)return rze(A,w,A.length,me,void 0,0);const I=sr(D),U=I.resolvedSignature;I.resolvedSignature=fi;const Z=w0)return V9(D.name,!0,!1)}}function sui(l,m){const D=Pm(l);if(D){let C=FEe(D,m);if(C){const A=kd(D);if(A&1){const w=(A&2)!==0;C.flags&1048576&&(C=Oc(C,U=>!!Kb(1,U,w)));const I=Kb(1,C,(A&2)!==0);if(!I)return;C=I}if(A&2){const w=ml(C,W5);return w&&tr([w,Cmt(w)])}return C}}}function lui(l,m){const D=hf(l,m);if(D){const C=W5(D);return C&&tr([C,Cmt(C)])}}function cui(l,m){const D=Pm(l);if(D){const C=kd(D);let A=FEe(D,m);if(A){const w=(C&2)!==0;return!l.asteriskToken&&A.flags&1048576&&(A=Oc(A,I=>!!Kb(1,I,w))),l.asteriskToken?A:Kb(0,A,w)}}}function NMe(l){let m=!1;for(;l.parent&&!Co(l.parent);){if(io(l.parent)&&(m||l.parent.initializer===l))return!0;Vs(l.parent)&&l.parent.initializer===l&&(m=!0),l=l.parent}return!1}function cft(l,m){const D=!!(kd(m)&2),C=FEe(m,void 0);if(C)return Kb(l,C,D)||void 0}function FEe(l,m){const D=uT(l);if(D)return D;const C=RMe(l);if(C&&!Sge(C)){const w=Ys(C),I=kd(l);return I&1?Oc(w,U=>!!(U.flags&58998787)||Aze(U,I,void 0)):I&2?Oc(w,U=>!!(U.flags&58998787)||!!Vz(U)):w}const A=nk(l);if(A)return hf(A,m)}function dft(l,m){const C=jEe(l).indexOf(m);return C===-1?void 0:PMe(l,C)}function PMe(l,m){if(dm(l))return m===0?ct:m===1?i1t(!1):me;const D=sr(l).resolvedSignature===Gu?Gu:mT(l);if(Ih(l)&&m===0)return wEe(D,l);const C=D.parameters.length-1;return ih(D)&&m>=C?qf(Wn(D.parameters[C]),wg(m-C),256):Lg(D,m)}function dui(l){const m=_ze(l);return m?DF(m):void 0}function hui(l,m){if(l.parent.kind===215)return dft(l.parent,m)}function fui(l,m){const D=l.parent,{left:C,operatorToken:A,right:w}=D;switch(A.kind){case 64:case 77:case 76:case 78:return l===w?pui(D):void 0;case 57:case 61:const I=hf(D,m);return l===w&&(I&&I.pattern||!I&&!cye(D))?y1(C):I;case 56:case 28:return l===w?hf(D,m):void 0;default:return}}function mui(l){if(Yg(l)&&l.symbol)return l.symbol;if(at(l))return Yp(l);if(Ru(l)){const D=y1(l.expression);return ea(l.name)?m(D,l.name):Zo(D,l.name.escapedText)}if(q0(l)){const D=jc(l.argumentExpression);if(!X4(D))return;const C=y1(l.expression);return Zo(C,ep(D))}return;function m(D,C){const A=PEe(C.escapedText,C);return A&&qMe(D,A)}}function pui(l){var m,D;const C=ec(l);switch(C){case 0:case 4:const A=mui(l.left),w=A&&A.valueDeclaration;if(w&&(ko(w)||zm(w))){const Z=m1(w);return Z&&Da(Br(Z),qr(A).mapper)||(ko(w)?w.initializer&&y1(l.left):void 0)}return C===0?y1(l.left):hft(l);case 5:if(AEe(l,C))return hft(l);if(!Yg(l.left)||!l.left.symbol)return y1(l.left);{const Z=l.left.symbol.valueDeclaration;if(!Z)return;const ce=Po(l.left,O0),Fe=m1(Z);if(Fe)return Br(Fe);if(at(ce.expression)){const Te=ce.expression,$e=rc(Te,Te.escapedText,111551,void 0,Te.escapedText,!0);if($e){const ut=$e.valueDeclaration&&m1($e.valueDeclaration);if(ut){const zt=Q3(ce);if(zt!==void 0)return jb(Br(ut),zt)}return}}return Xn(Z)||Z===l.left?void 0:y1(l.left)}case 1:case 6:case 3:case 2:let I;C!==2&&(I=Yg(l.left)?(m=l.left.symbol)==null?void 0:m.valueDeclaration:void 0),I||(I=(D=l.symbol)==null?void 0:D.valueDeclaration);const U=I&&m1(I);return U?Br(U):void 0;case 7:case 8:case 9:return H.fail("Does not apply");default:return H.assertNever(C)}}function AEe(l,m=ec(l)){if(m===4)return!0;if(!Xn(l)||m!==5||!at(l.left.expression))return!1;const D=l.left.expression.escapedText,C=rc(l.left,D,111551,void 0,void 0,!0,!0);return gq(C==null?void 0:C.valueDeclaration)}function hft(l){if(!l.symbol)return y1(l.left);if(l.symbol.valueDeclaration){const A=m1(l.symbol.valueDeclaration);if(A){const w=Br(A);if(w)return w}}const m=Po(l.left,O0);if(!Ip(tf(m.expression,!1,!1)))return;const D=Zte(m.expression),C=Q3(m);return C!==void 0&&jb(D,C)||void 0}function gui(l){return!!(Gl(l)&262144&&!l.links.type&&vC(l,0)>=0)}function jb(l,m,D){return ml(l,C=>{var A;if(e4(C)&&!C.declaration.nameType){const w=hp(C),I=Gh(w)||w,U=D||df(Qr(m));if(ms(U,I))return Oge(C,U)}else if(C.flags&3670016){const w=Zo(C,m);if(w)return gui(w)?void 0:B6(Wn(w),!!(w&&w.flags&16777216));if(xs(C)&&n3(m)&&+m>=0){const I=Tz(C,C.target.fixedLength,0,!1,!0);if(I)return I}return(A=tPe(iPe(C),D||df(Qr(m))))==null?void 0:A.type}},!0)}function fft(l,m){if(H.assert(Ip(l)),!(l.flags&67108864))return MMe(l,m)}function MMe(l,m){const D=l.parent,C=Uc(l)&&LMe(l,m);if(C)return C;const A=zC(D,m);if(A){if(iT(l)){const w=Du(l);return jb(A,w.escapedName,qr(w).nameType)}if(Ix(l)){const w=Ya(l);if(w&&Ms(w)){const I=Fa(w.expression),U=X4(I)&&jb(A,ep(I));if(U)return U}}if(l.name){const w=j5(l.name);return ml(A,I=>{var U;return(U=tPe(iPe(I),w))==null?void 0:U.type},!0)}}}function Eui(l){let m,D;for(let C=0;C{if(xs(w)){if((C===void 0||mA)?D-m:0,U=I>0&&w.target.hasRestElement?lW(w.target,3):0;return I>0&&I<=U?V0(w)[O5(w)-I]:Tz(w,C===void 0?w.target.fixedLength:Math.min(w.target.fixedLength,C),D===void 0||A===void 0?U:Math.min(U,D-A),!1,!0)}return(!C||mH5(Z)?qf(Z,wg(I)):Z,!0))}function xui(l,m){const D=l.parent;return GU(D)?hf(l,m):a3(D)?Dui(D,l,m):void 0}function mft(l,m){if(sE(l)){const D=zC(l.parent,m);return!D||nt(D)?void 0:jb(D,zP(l.name))}else return hf(l.parent,m)}function Yte(l){switch(l.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 Yte(l.expression);case 294:return!l.expression||Yte(l.expression)}return!1}function vui(l,m){return mni(m,l)||JPe(m,mi(Vt(ti(l.properties,D=>D.symbol?D.kind===303?Yte(D.initializer)&&Lz(m,D.symbol.escapedName):D.kind===304?Lz(m,D.symbol.escapedName):!1:!1),D=>[()=>_ie(D.kind===303?D.initializer:D.name),D.symbol.escapedName]),Vt(ti(u0(m),D=>{var C;return!!(D.flags&16777216)&&!!((C=l==null?void 0:l.symbol)!=null&&C.members)&&!l.symbol.members.has(D.escapedName)&&Lz(m,D.escapedName)}),D=>[()=>te,D.escapedName])),ms)}function Cui(l,m){const D=eie(SF(l));return JPe(m,mi(Vt(ti(l.properties,C=>!!C.symbol&&C.kind===291&&Lz(m,C.symbol.escapedName)&&(!C.initializer||Yte(C.initializer))),C=>[C.initializer?()=>_ie(C.initializer):()=>du,C.symbol.escapedName]),Vt(ti(u0(m),C=>{var A;if(!(C.flags&16777216)||!((A=l==null?void 0:l.symbol)!=null&&A.members))return!1;const w=l.parent.parent;return C.escapedName===D&&a3(w)&&uB(w.children).length?!1:!l.symbol.members.has(C.escapedName)&&Lz(m,C.escapedName)}),C=>[()=>te,C.escapedName])),ms)}function zC(l,m){const D=Ip(l)?fft(l,m):hf(l,m),C=SEe(D,l,m);if(C&&!(m&&m&2&&C.flags&8650752)){const A=ml(C,w=>Ju(w)&32?w:Jh(w),!0);return A.flags&1048576&&ys(l)?vui(l,A):A.flags&1048576&&G2(l)?Cui(l,A):A}}function SEe(l,m,D){if(l&&jl(l,465829888)){const C=Vb(m);if(C&&D&1&&Ge(C.inferences,noi))return BEe(l,C.nonFixingMapper);if(C!=null&&C.returnMapper){const A=BEe(l,C.returnMapper);return A.flags&1048576&&C6(A.types,Sn)&&C6(A.types,Ou)?Oc(A,w=>w!==Sn&&w!==Ou):A}}return l}function BEe(l,m){return l.flags&465829888?Da(l,m):l.flags&1048576?tr(Vt(l.types,D=>BEe(D,m)),0):l.flags&2097152?Ds(Vt(l.types,D=>BEe(D,m))):l}function hf(l,m){var D;if(l.flags&67108864)return;const C=gft(l,!m);if(C>=0)return bu[C];const{parent:A}=l;switch(A.kind){case 260:case 169:case 172:case 171:case 208:return oui(l,m);case 219:case 253:return sui(l,m);case 229:return cui(A,m);case 223:return lui(A,m);case 213:case 214:return dft(A,l);case 170:return dui(A);case 216:case 234:return q3(A.type)?hf(A,m):Br(A.type);case 226:return fui(l,m);case 303:case 304:return MMe(A,m);case 305:return hf(A.parent,m);case 209:{const w=A,I=zC(w,m),U=j8(w.elements,l),Z=(D=sr(w)).spreadIndices??(D.spreadIndices=Eui(w.elements));return zMe(I,U,w.elements.length,Z.first,Z.last)}case 227:return _ui(l,m);case 239:return H.assert(A.parent.kind===228),hui(A.parent,l);case 217:{if(Xn(A)){if(Ole(A))return Br(jle(A));const w=vv(A);if(w&&!q3(w.typeExpression.type))return Br(w.typeExpression.type)}return hf(A,m)}case 235:return hf(A,m);case 238:return Br(A.type);case 277:return dt(A);case 294:return xui(A,m);case 291:case 293:return mft(A,m);case 286:case 285:return kui(A,m)}}function pft(l){Qte(l,hf(l,void 0),!0)}function Qte(l,m,D){Ar[_u]=l,bu[_u]=m,yu[_u]=D,_u++}function yW(){_u--}function gft(l,m){for(let D=_u-1;D>=0;D--)if(l===Ar[D]&&(m||!yu[D]))return D;return-1}function bui(l,m){la[o0]=l,p0[o0]=m,o0++}function yui(){o0--}function Vb(l){for(let m=o0-1;m>=0;m--)if(B2(l,la[m]))return p0[m]}function kui(l,m){if(oE(l)&&m!==4){const D=gft(l.parent,!m);if(D>=0)return bu[D]}return PMe(l,0)}function wEe(l,m){return Qft(m)!==0?Fui(l,m):Bui(l,m)}function Fui(l,m){let D=gze(l,on);D=Eft(m,SF(m),D);const C=Hb(Om.IntrinsicAttributes,m);return Nt(C)||(D=Cte(C,D)),D}function Aui(l,m){if(l.compositeSignatures){const C=[];for(const A of l.compositeSignatures){const w=Ys(A);if(nt(w))return w;const I=he(w,m);if(!I)return;C.push(I)}return Ds(C)}const D=Ys(l);return nt(D)?D:he(D,m)}function Sui(l){if(X9(l.tagName)){const D=Fft(l),C=VEe(l,D);return DF(C)}const m=jc(l.tagName);if(m.flags&128){const D=kft(m,l);if(!D)return Ot;const C=VEe(l,D);return DF(C)}return m}function Eft(l,m,D){const C=qui(m);if(C){const A=Sui(l),w=Bft(C,Xn(l),A,D);if(w)return w}return D}function Bui(l,m){const D=SF(m),C=Yui(D);let A=C===void 0?gze(l,on):C===""?Ys(l):Aui(l,C);if(!A)return C&&S(m.attributes.properties)&>(m,F.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property,Qr(C)),on;if(A=Eft(m,D,A),nt(A))return A;{let w=A;const I=Hb(Om.IntrinsicClassAttributes,m);if(!Nt(I)){const Z=sn(I.symbol),ce=Ys(l);let Fe;if(Z){const Te=x6([ce],Z,y_(Z),Xn(m));Fe=Da(I,Sf(Z,Te))}else Fe=I;w=Cte(Fe,w)}const U=Hb(Om.IntrinsicAttributes,m);return Nt(U)||(w=Cte(U,w)),w}}function wui(l){return Q4(ae,"noImplicitAny")?nn(l,(m,D)=>m===D||!m?m:Ddt(m.typeParameters,D.typeParameters)?Nui(m,D):void 0):void 0}function Tui(l,m,D){if(!l||!m)return l||m;const C=tr([Wn(l),Da(Wn(m),D)]);return CF(l,C)}function Lui(l,m,D){const C=Cm(l),A=Cm(m),w=C>=A?l:m,I=w===l?m:l,U=w===l?C:A,Z=A_(l)||A_(m),ce=Z&&!A_(w),Fe=new Array(U+(ce?1:0));for(let Te=0;Te=BE(w)&&Te>=BE(I),dn=Te>=C?void 0:Rz(l,Te),nu=Te>=A?void 0:Rz(m,Te),En=dn===nu?dn:dn?nu?void 0:dn:nu,Ri=Ks(1|(Wi&&!gi?16777216:0),En||`arg${Te}`);Ri.links.type=gi?H1(zt):zt,Fe[Te]=Ri}if(ce){const Te=Ks(1,"args");Te.links.type=H1(Lg(I,U)),I===m&&(Te.links.type=Da(Te.links.type,D)),Fe[U]=Te}return Fe}function Nui(l,m){const D=l.typeParameters||m.typeParameters;let C;l.typeParameters&&m.typeParameters&&(C=Sf(m.typeParameters,l.typeParameters));const A=l.declaration,w=Lui(l,m,C),I=Tui(l.thisParameter,m.thisParameter,C),U=Math.max(l.minArgumentCount,m.minArgumentCount),Z=k3(A,D,I,w,void 0,void 0,U,(l.flags|m.flags)&167);return Z.compositeKind=2097152,Z.compositeSignatures=mi(l.compositeKind===2097152&&l.compositeSignatures||[l],[m]),C&&(Z.mapper=l.compositeKind===2097152&&l.mapper&&l.compositeSignatures?TC(l.mapper,C):C),Z}function IMe(l,m){const D=Eo(l,0),C=ti(D,A=>!Pui(A,m));return C.length===1?C[0]:wui(C)}function Pui(l,m){let D=0;for(;DI[ut]&8?b6($e,Qt)||me:$e),2):fe?wn:we,Z))}function Dft(l){if(!(Ju(l)&4))return l;let m=l.literalType;return m||(m=l.literalType=Wdt(l),m.objectFlags|=147456),m}function Rui(l){switch(l.kind){case 167:return Oui(l);case 80:return n3(l.escapedText);case 9:case 11:return n3(l.text);default:return!1}}function Oui(l){return r1(A3(l),296)}function A3(l){const m=sr(l.expression);if(!m.resolvedType){if((fm(l.parent.parent)||gr(l.parent.parent)||Ch(l.parent.parent))&&eu(l.expression)&&l.expression.operatorToken.kind===103&&l.parent.kind!==177&&l.parent.kind!==178)return m.resolvedType=Ot;if(m.resolvedType=Fa(l.expression),ko(l.parent)&&!Gc(l.parent)&&e1(l.parent.parent)){const D=QE(l.parent.parent),C=AMe(D);C&&(sr(C).flags|=4096,sr(l).flags|=32768,sr(l.parent.parent).flags|=32768)}(m.resolvedType.flags&98304||!r1(m.resolvedType,402665900)&&!ms(m.resolvedType,Fn))&>(l,F.A_computed_property_name_must_be_of_type_string_number_symbol_or_any)}return m.resolvedType}function jui(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return n3(l.escapedName)||D&&gh(D)&&Rui(D.name)}function xft(l){var m;const D=(m=l.declarations)==null?void 0:m[0];return Rj(l)||D&&gh(D)&&Ms(D.name)&&r1(A3(D.name),4096)}function OMe(l,m,D,C){const A=[];for(let I=m;I0&&(U=Pb(U,Nn(),l.symbol,gi,Fe),I=[],w=Ho(),dn=!1,nu=!1,En=!1);const hu=Sg(Fa(vn.expression,m&2));if(Xte(hu)){const oo=LPe(hu,Fe);if(A&&Cft(oo,A,vn),Ri=I.length,Nt(U))continue;U=Pb(U,oo,l.symbol,gi,Fe)}else gt(vn,F.Spread_types_may_only_be_created_from_object_types),U=Ot;continue}else H.assert(vn.kind===177||vn.kind===178),eS(vn);_n&&!(_n.flags&8576)?ms(_n,Fn)&&(ms(_n,Qt)?nu=!0:ms(_n,er)?En=!0:dn=!0,C&&(Wi=!0)):w.set(An.escapedName,An),I.push(An)}if(yW(),ce){const vn=Tn(Z.pattern.parent,_n=>_n.kind===260||_n.kind===226||_n.kind===169);if(Tn(l,_n=>_n===vn||_n.kind===305).kind!==305)for(const _n of u0(Z))!w.get(_n.escapedName)&&!Zo(U,_n.escapedName)&&(_n.flags&16777216||gt(_n.valueDeclaration||((D=ar(_n,ZE))==null?void 0:D.links.bindingElement),F.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value),w.set(_n.escapedName,_n),I.push(_n))}if(Nt(U))return Ot;if(U!==Wo)return I.length>0&&(U=Pb(U,Nn(),l.symbol,gi,Fe),I=[],w=Ho(),dn=!1,nu=!1),ml(U,vn=>vn===Wo?Nn():vn);return Nn();function Nn(){const vn=[];dn&&vn.push(OMe(l,Ri,I,ct)),nu&&vn.push(OMe(l,Ri,I,Qt)),En&&vn.push(OMe(l,Ri,I,er));const An=Ol(l.symbol,w,Dt,Dt,vn);return An.objectFlags|=gi|128|131072,zt&&(An.objectFlags|=4096),Wi&&(An.objectFlags|=512),C&&(An.pattern=l),An}}function Xte(l){const m=_ht(ml(l,xD));return!!(m.flags&126615553||m.flags&3145728&&ye(m.types,Xte))}function Hui(l){KMe(l)}function Kui(l,m){return eS(l),tie(l)||me}function Wui(l){KMe(l.openingElement),X9(l.closingElement.tagName)?LEe(l.closingElement):Fa(l.closingElement.tagName),TEe(l)}function Gui(l,m){return eS(l),tie(l)||me}function Jui(l){KMe(l.openingFragment);const m=zn(l);return uZ(ae)&&(ae.jsxFactory||m.pragmas.has("jsx"))&&!ae.jsxFragmentFactory&&!m.pragmas.has("jsxfrag")&>(l,ae.jsxFactory?F.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option:F.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments),TEe(l),tie(l)||me}function VMe(l){return l.includes("-")}function X9(l){return at(l)&&aB(l.escapedText)||gg(l)}function vft(l,m){return l.initializer?jz(l.initializer,m):du}function $ui(l,m=0){const D=l.attributes,C=hf(D,0),A=fe?Ho():void 0;let w=Ho(),I=Nc,U=!1,Z,ce=!1,Fe=2048;const Te=eie(SF(l));for(const zt of D.properties){const gi=zt.symbol;if(sE(zt)){const Wi=vft(zt,m);Fe|=Ju(Wi)&458752;const dn=Ks(4|gi.flags,gi.escapedName);if(dn.declarations=gi.declarations,dn.parent=gi.parent,gi.valueDeclaration&&(dn.valueDeclaration=gi.valueDeclaration),dn.links.type=Wi,dn.links.target=gi,w.set(dn.escapedName,dn),A==null||A.set(dn.escapedName,dn),zP(zt.name)===Te&&(ce=!0),C){const nu=Zo(C,gi.escapedName);nu&&nu.declarations&&S5(nu)&&at(zt.name)&&p3(zt.name,nu.declarations,zt.name.escapedText)}if(C&&m&2&&!(m&4)&&S4(zt)){const nu=Vb(D);H.assert(nu);const En=zt.initializer.expression;aMe(nu,En,Wi)}}else{H.assert(zt.kind===293),w.size>0&&(I=Pb(I,ut(),D.symbol,Fe,!1),w=Ho());const Wi=Sg(Fa(zt.expression,m&2));nt(Wi)&&(U=!0),Xte(Wi)?(I=Pb(I,Wi,D.symbol,Fe,!1),A&&Cft(Wi,A,zt)):(gt(zt.expression,F.Spread_types_may_only_be_created_from_object_types),Z=Z?Ds([Z,Wi]):Wi)}}U||w.size>0&&(I=Pb(I,ut(),D.symbol,Fe,!1));const $e=l.parent.kind===284?l.parent:void 0;if($e&&$e.openingElement===l&&uB($e.children).length>0){const zt=TEe($e,m);if(!U&&Te&&Te!==""){ce&>(D,F._0_are_specified_twice_The_attribute_named_0_will_be_overwritten,Qr(Te));const gi=zC(l.attributes,void 0),Wi=gi&&jb(gi,Te),dn=Ks(4,Te);dn.links.type=zt.length===1?zt[0]:Wi&&kE(Wi,wz)?Bg(zt):H1(tr(zt)),dn.valueDeclaration=q.createPropertySignature(void 0,Qr(Te),void 0,void 0),ks(dn.valueDeclaration,D),dn.valueDeclaration.symbol=dn;const nu=Ho();nu.set(Te,dn),I=Pb(I,Ol(D.symbol,nu,Dt,Dt,Dt),D.symbol,Fe,!1)}}if(U)return me;if(Z&&I!==Nc)return Ds([Z,I]);return Z||(I===Nc?ut():I);function ut(){Fe|=Ye;const zt=Ol(D.symbol,w,Dt,Dt,Dt);return zt.objectFlags|=Fe|128|131072,zt}}function TEe(l,m){const D=[];for(const C of l.children)if(C.kind===12)C.containsOnlyTriviaWhiteSpaces||D.push(ct);else{if(C.kind===294&&!C.expression)continue;D.push(jz(C,m))}return D}function Cft(l,m,D){for(const C of u0(l))if(!(C.flags&16777216)){const A=m.get(C.escapedName);if(A){const w=gt(A.valueDeclaration,F._0_is_specified_more_than_once_so_this_usage_will_be_overwritten,Qr(A.escapedName));Es(w,Tu(D,F.This_spread_always_overwrites_this_property))}}}function Uui(l,m){return $ui(l.parent,m)}function Hb(l,m){const D=SF(m),C=D&&$f(D),A=C&&kf(C,l,788968);return A?el(A):Ot}function LEe(l){const m=sr(l);if(!m.resolvedSymbol){const D=Hb(Om.IntrinsicElements,l);if(Nt(D))return Ae&>(l,F.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists,Qr(Om.IntrinsicElements)),m.resolvedSymbol=Xt;{if(!at(l.tagName)&&!gg(l.tagName))return H.fail();const C=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText,A=Zo(D,C);if(A)return m.jsxFlags|=1,m.resolvedSymbol=A;const w=U4t(D,df(Qr(C)));return w?(m.jsxFlags|=2,m.resolvedSymbol=w):Re(D,C)?(m.jsxFlags|=2,m.resolvedSymbol=D.symbol):(gt(l,F.Property_0_does_not_exist_on_type_1,Vle(l.tagName),"JSX."+Om.IntrinsicElements),m.resolvedSymbol=Xt)}}return m.resolvedSymbol}function HMe(l){const m=l&&zn(l),D=m&&sr(m);if(D&&D.jsxImplicitImportContainer===!1)return;if(D&&D.jsxImplicitImportContainer)return D.jsxImplicitImportContainer;const C=aZ(rZ(ae,m),ae);if(!C)return;const w=g1(ae)===1?F.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_nodenext_or_to_add_aliases_to_the_paths_option:F.Cannot_find_module_0_or_its_corresponding_type_declarations,I=mD(l,C,w,l),U=I&&I!==Xt?Ws(Fc(I)):void 0;return D&&(D.jsxImplicitImportContainer=U||!1),U}function SF(l){const m=l&&sr(l);if(m&&m.jsxNamespace)return m.jsxNamespace;if(!m||m.jsxNamespace!==!1){let C=HMe(l);if(!C||C===Xt){const A=rC(l);C=rc(l,A,1920,void 0,A,!1)}if(C){const A=Fc(kf($f(Fc(C)),Om.JSX,1920));if(A&&A!==Xt)return m&&(m.jsxNamespace=A),A}m&&(m.jsxNamespace=!1)}const D=Fc(bz(Om.JSX,1920,void 0));if(D!==Xt)return D}function bft(l,m){const D=m&&kf(m.exports,l,788968),C=D&&el(D),A=C&&u0(C);if(A){if(A.length===0)return"";if(A.length===1)return A[0].escapedName;A.length>1&&D.declarations&>(D.declarations[0],F.The_global_type_JSX_0_may_not_have_more_than_one_property,Qr(l))}}function qui(l){return l&&kf(l.exports,Om.LibraryManagedAttributes,788968)}function Zui(l){return l&&kf(l.exports,Om.ElementType,788968)}function Yui(l){return bft(Om.ElementAttributesPropertyNameContainer,l)}function eie(l){return bft(Om.ElementChildrenAttributeNameContainer,l)}function yft(l,m){if(l.flags&4)return[fi];if(l.flags&128){const A=kft(l,m);return A?[VEe(m,A)]:(gt(m,F.Property_0_does_not_exist_on_type_1,l.value,"JSX."+Om.IntrinsicElements),Dt)}const D=Jh(l);let C=Eo(D,1);return C.length===0&&(C=Eo(D,0)),C.length===0&&D.flags&1048576&&(C=HNe(Vt(D.types,A=>yft(A,m)))),C}function kft(l,m){const D=Hb(Om.IntrinsicElements,m);if(!Nt(D)){const C=l.value,A=Zo(D,Sl(C));if(A)return Wn(A);const w=kC(D,ct);return w||void 0}return me}function Qui(l,m,D){if(l===1){const A=Sft(D);A&&B4(m,A,Jf,D.tagName,F.Its_return_type_0_is_not_a_valid_JSX_element,C)}else if(l===0){const A=Aft(D);A&&B4(m,A,Jf,D.tagName,F.Its_instance_type_0_is_not_a_valid_JSX_element,C)}else{const A=Sft(D),w=Aft(D);if(!A||!w)return;const I=tr([A,w]);B4(m,I,Jf,D.tagName,F.Its_element_type_0_is_not_a_valid_JSX_element,C)}function C(){const A=Wc(D.tagName);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,A)}}function Fft(l){var m;H.assert(X9(l.tagName));const D=sr(l);if(!D.resolvedJsxElementAttributesType){const C=LEe(l);if(D.jsxFlags&1)return D.resolvedJsxElementAttributesType=Wn(C)||Ot;if(D.jsxFlags&2){const A=gg(l.tagName)?k7(l.tagName):l.tagName.escapedText;return D.resolvedJsxElementAttributesType=((m=G9(Hb(Om.IntrinsicElements,l),A))==null?void 0:m.type)||Ot}else return D.resolvedJsxElementAttributesType=Ot}return D.resolvedJsxElementAttributesType}function Aft(l){const m=Hb(Om.ElementClass,l);if(!Nt(m))return m}function tie(l){return Hb(Om.Element,l)}function Sft(l){const m=tie(l);if(m)return tr([m,it])}function Xui(l){const m=SF(l);if(!m)return;const D=Zui(m);if(!D)return;const C=Bft(D,Xn(l));if(!(!C||Nt(C)))return C}function Bft(l,m,...D){const C=el(l);if(l.flags&524288){const A=qr(l).typeParameters;if(S(A)>=D.length){const w=x6(D,A,D.length,m);return S(w)===0?C:aT(l,w)}}if(S(C.typeParameters)>=D.length){const A=x6(D,C.typeParameters,D.length,m);return R5(C,A)}}function eri(l){const m=Hb(Om.IntrinsicElements,l);return m?u0(m):Dt}function tri(l){(ae.jsx||0)===0&>(l,F.Cannot_use_JSX_unless_the_jsx_flag_is_provided),tie(l)===void 0&&Ae&>(l,F.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist)}function KMe(l){const m=Ih(l);if(m&&Jli(l),tri(l),!HMe(l)){const D=Hs&&ae.jsx===2?F.Cannot_find_name_0:void 0,C=rC(l),A=m?l.tagName:l;let w;if(V7(l)&&C==="null"||(w=rc(A,C,111551,D,C,!0)),w&&(w.isReferenced=67108863,Ut&&w.flags&2097152&&!v4(w)&&T5(w)),V7(l)){const I=zn(l),U=Qk(I);U&&rc(A,U,111551,D,U,!0)}}if(m){const D=l,C=mT(D);KEe(C,l);const A=Xui(D);if(A!==void 0){const w=D.tagName,I=X9(w)?df(Vle(w)):Fa(w);B4(I,A,Jf,w,F.Its_type_0_is_not_a_valid_JSX_element_type,()=>{const U=Wc(w);return ro(void 0,F._0_cannot_be_used_as_a_JSX_component,U)})}else Qui(Qft(D),Ys(C),D)}}function WMe(l,m,D){if(l.flags&524288){if(yC(l,m)||G9(l,m)||eW(m)&&F3(l,ct)||D&&VMe(m))return!0}else if(l.flags&3145728&&iie(l)){for(const C of l.types)if(WMe(C,m,D))return!0}return!1}function iie(l){return!!(l.flags&524288&&!(Ju(l)&512)||l.flags&67108864||l.flags&1048576&&Ge(l.types,iie)||l.flags&2097152&&ye(l.types,iie))}function iri(l,m){if(Uli(l),l.expression){const D=Fa(l.expression,m);return l.dotDotDotToken&&D!==me&&!w4(D)&>(l,F.JSX_spread_child_must_be_an_array_type),D}else return Ot}function GMe(l){return l.valueDeclaration?Jb(l.valueDeclaration):0}function JMe(l){if(l.flags&8192||Gl(l)&4)return!0;if(Xn(l.valueDeclaration)){const m=l.valueDeclaration.parent;return m&&eu(m)&&ec(m)===3}}function $Me(l,m,D,C,A,w=!0){const I=w?l.kind===166?l.right:l.kind===205?l:l.kind===208&&l.propertyName?l.propertyName:l.name:void 0;return wft(l,m,D,C,A,I)}function wft(l,m,D,C,A,w){var I;const U=h4(A,D);if(m){if(Ce<2&&Tft(A))return w&>(w,F.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword),!1;if(U&64)return w&>(w,F.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression,Sr(A),gn(Q9(A))),!1;if(!(U&256)&&((I=A.declarations)!=null&&I.some(sbe)))return w&>(w,F.Class_field_0_defined_by_the_parent_class_is_not_accessible_in_the_child_class_via_super,Sr(A)),!1}if(U&64&&Tft(A)&&(pj(l)||oye(l)||Op(l.parent)&&gq(l.parent.parent))){const ce=tD(cf(A));if(ce&&G0i(l))return w&>(w,F.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor,Sr(A),U4(ce.name)),!1}if(!(U&6))return!0;if(U&2){const ce=tD(cf(A));return Zze(l,ce)?!0:(w&>(w,F.Property_0_is_private_and_only_accessible_within_class_1,Sr(A),gn(Q9(A))),!1)}if(m)return!0;let Z=J4t(l,ce=>{const Fe=el(Du(ce));return sht(Fe,A,D)});return!Z&&(Z=nri(l),Z=Z&&sht(Z,A,D),U&256||!Z)?(w&>(w,F.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses,Sr(A),gn(Q9(A)||C)),!1):U&256?!0:(C.flags&262144&&(C=C.isThisType?ah(C):Gh(C)),!C||!H9(C,Z)?(w&>(w,F.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2,Sr(A),gn(Z),gn(C)),!1):!0)}function nri(l){const m=uri(l);let D=(m==null?void 0:m.type)&&Br(m.type);if(D&&D.flags&262144&&(D=ah(D)),D&&Ju(D)&7)return eT(D)}function uri(l){const m=tf(l,!1,!1);return m&&Co(m)?L2(m):void 0}function Tft(l){return!!Ote(l,m=>!(m.flags&8192))}function hT(l){return FE(Fa(l),l)}function nie(l){return pp(l,50331648)}function UMe(l){return nie(l)?FD(l):l}function rri(l,m){const D=tc(l)?zf(l):void 0;if(l.kind===106){gt(l,F.The_value_0_cannot_be_used_here,"null");return}if(D!==void 0&&D.length<100){if(at(l)&&D==="undefined"){gt(l,F.The_value_0_cannot_be_used_here,"undefined");return}gt(l,m&16777216?m&33554432?F._0_is_possibly_null_or_undefined:F._0_is_possibly_undefined:F._0_is_possibly_null,D)}else gt(l,m&16777216?m&33554432?F.Object_is_possibly_null_or_undefined:F.Object_is_possibly_undefined:F.Object_is_possibly_null)}function ari(l,m){gt(l,m&16777216?m&33554432?F.Cannot_invoke_an_object_which_is_possibly_null_or_undefined:F.Cannot_invoke_an_object_which_is_possibly_undefined:F.Cannot_invoke_an_object_which_is_possibly_null)}function Lft(l,m,D){if(fe&&l.flags&2){if(tc(m)){const A=zf(m);if(A.length<100)return gt(m,F._0_is_of_type_unknown,A),Ot}return gt(m,F.Object_is_of_type_unknown),Ot}const C=Nz(l,50331648);if(C&50331648){D(m,C);const A=FD(l);return A.flags&229376?Ot:A}return l}function FE(l,m){return Lft(l,m,rri)}function Nft(l,m){const D=FE(l,m);if(D.flags&16384){if(tc(m)){const C=zf(m);if(at(m)&&C==="undefined")return gt(m,F.The_value_0_cannot_be_used_here,C),D;if(C.length<100)return gt(m,F._0_is_possibly_undefined,C),D}gt(m,F.Object_is_possibly_undefined)}return D}function NEe(l,m,D){return l.flags&64?ori(l,m):ZMe(l,l.expression,hT(l.expression),l.name,m,D)}function ori(l,m){const D=Fa(l.expression),C=EW(D,l.expression);return cEe(ZMe(l,l.expression,FE(C,l.expression),l.name,m),l,C!==D)}function Pft(l,m){const D=xq(l)&&P2(l.left)?FE(Zte(l.left),l.left):hT(l.left);return ZMe(l,l.left,D,l.right,m)}function Mft(l){for(;l.parent.kind===217;)l=l.parent;return UE(l.parent)&&l.parent.expression===l}function PEe(l,m){for(let D=mq(m);D;D=Qd(D)){const{symbol:C}=D,A=Ij(C,l),w=C.members&&C.members.get(A)||C.exports&&C.exports.get(A);if(w)return w}}function sri(l){if(!Qd(l))return Zi(l,F.Private_identifiers_are_not_allowed_outside_class_bodies);if(!mY(l.parent)){if(!Y_(l))return Zi(l,F.Private_identifiers_are_only_allowed_in_class_bodies_and_may_only_be_used_as_part_of_a_class_member_declaration_property_access_or_on_the_left_hand_side_of_an_in_expression);const m=eu(l.parent)&&l.parent.operatorToken.kind===103;if(!MEe(l)&&!m)return Zi(l,F.Cannot_find_name_0,fu(l))}return!1}function lri(l){sri(l);const m=MEe(l);return m&&rie(m,void 0,!1),me}function MEe(l){if(!Y_(l))return;const m=sr(l);return m.resolvedSymbol===void 0&&(m.resolvedSymbol=PEe(l.escapedText,l)),m.resolvedSymbol}function qMe(l,m){return Zo(l,m.escapedName)}function cri(l,m,D){let C;const A=u0(l);A&&L(A,I=>{const U=I.valueDeclaration;if(U&&gh(U)&&ea(U.name)&&U.name.escapedText===m.escapedText)return C=I,!0});const w=Up(m);if(C){const I=H.checkDefined(C.valueDeclaration),U=H.checkDefined(Qd(I));if(D!=null&&D.valueDeclaration){const Z=D.valueDeclaration,ce=Qd(Z);if(H.assert(!!ce),Tn(ce,Fe=>U===Fe)){const Fe=gt(m,F.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling,w,gn(l));return Es(Fe,Tu(Z,F.The_shadowing_declaration_of_0_is_defined_here,w),Tu(I,F.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here,w)),!0}}return gt(m,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier,w,Up(U.name||XY)),!0}return!1}function zft(l,m){return(mz(m)||pj(l)&&Zw(m))&&tf(l,!0,!1)===Yw(m)}function ZMe(l,m,D,C,A,w){const I=sr(m).resolvedSymbol,U=f7(l),Z=Jh(U!==0||Mft(l)?vm(D):D),ce=nt(Z)||Z===Va;let Fe;if(ea(C)){Ce<99&&(U!==0&&ad(l,1048576),U!==1&&ad(l,524288));const $e=PEe(C.escapedText,C);if(U&&$e&&$e.valueDeclaration&&hc($e.valueDeclaration)&&Zi(C,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable,fu(C)),ce){if($e)return Nt(Z)?Ot:Z;if(mq(C)===void 0)return Zi(C,F.Private_identifiers_are_not_allowed_outside_class_bodies),me}if(Fe=$e&&qMe(D,$e),Fe===void 0){if(cri(D,C,$e))return Ot;const ut=mq(C);ut&&uj(zn(ut),ae.checkJs)&&Zi(C,F.Private_field_0_must_be_declared_in_an_enclosing_class,fu(C))}else Fe.flags&65536&&!(Fe.flags&32768)&&U!==1&>(l,F.Private_accessor_was_defined_without_a_getter)}else{if(ce)return at(m)&&I&&kEe(I,l),Nt(Z)?Ot:Z;Fe=Zo(Z,C.escapedText,JEe(Z),l.kind===166)}at(m)&&I&&(mg(ae)||!(Fe&&(jW(Fe)||Fe.flags&8&&l.parent.kind===306))||fk(ae)&&tft(l))&&kEe(I,l);let Te;if(Fe){const $e=$ze(Fe,C);if(S5($e)&&APe(l,$e)&&$e.declarations&&p3(C,$e.declarations,C.escapedText),dri(Fe,l,C),rie(Fe,l,Kft(m,I)),sr(l).resolvedSymbol=Fe,$Me(l,m.kind===108,D7(l),Z,Fe),wmt(l,Fe,U))return gt(C,F.Cannot_assign_to_0_because_it_is_a_read_only_property,fu(C)),Ot;Te=zft(l,Fe)?ni:w||Uq(l)?mF(Fe):Wn(Fe)}else{const $e=!ea(C)&&(U===0||!Nb(D)||PP(D))?G9(Z,C.escapedText):void 0;if(!($e&&$e.type)){const ut=YMe(l,D.symbol,!0);return!ut&&cW(D)?me:D.symbol===Bt?(Bt.exports.has(C.escapedText)&&Bt.exports.get(C.escapedText).flags&418?gt(C,F.Property_0_does_not_exist_on_type_1,Qr(C.escapedText),gn(D)):Ae&>(C,F.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature,gn(D)),me):(C.escapedText&&!Ow(l)&&Oft(C,PP(D)?Z:D,ut),Ot)}$e.isReadonly&&(X_(l)||K0e(l))&>(l,F.Index_signature_in_type_0_only_permits_reading,gn(Z)),Te=ae.noUncheckedIndexedAccess&&!X_(l)?tr([$e.type,de]):$e.type,ae.noPropertyAccessFromIndexSignature&&Ru(l)&>(C,F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0,Qr(C.escapedText)),$e.declaration&&oC($e.declaration)&&p3(C,[$e.declaration],C.escapedText)}return Ift(l,Fe,Te,C,A)}function YMe(l,m,D){var C;const A=zn(l);if(A&&ae.checkJs===void 0&&A.checkJsDirective===void 0&&(A.scriptKind===1||A.scriptKind===2)){const w=L(m==null?void 0:m.declarations,zn),I=!(m!=null&&m.valueDeclaration)||!gr(m.valueDeclaration)||((C=m.valueDeclaration.heritageClauses)==null?void 0:C.length)||t5(!1,m.valueDeclaration);return!(A!==w&&w&&gE(w))&&!(D&&m&&m.flags&32&&I)&&!(l&&D&&Ru(l)&&l.expression.kind===110&&I)}return!1}function Ift(l,m,D,C,A){const w=f7(l);if(w===1)return B6(D,!!(m&&m.flags&16777216));if(m&&!(m.flags&98311)&&!(m.flags&8192&&D.flags&1048576)&&!a_e(m.declarations))return D;if(D===ni)return Qm(l,m);D=FMe(D,l,A);let I=!1;if(fe&&We&&O0(l)&&l.expression.kind===110){const Z=m&&m.valueDeclaration;if(Z&&N4t(Z)&&!No(Z)){const ce=bW(l);ce.kind===176&&ce.parent===Z.parent&&!(Z.flags&33554432)&&(I=!0)}}else fe&&m&&m.valueDeclaration&&Ru(m.valueDeclaration)&&kj(m.valueDeclaration)&&bW(l)===bW(m.valueDeclaration)&&(I=!0);const U=w6(l,D,I?S6(D):D);return I&&!Az(D)&&Az(U)?(gt(C,F.Property_0_is_used_before_being_assigned,Sr(m)),D):w?kD(U):U}function dri(l,m,D){const{valueDeclaration:C}=l;if(!C||zn(m).isDeclarationFile)return;let A;const w=fu(D);Rft(m)&&!iei(C)&&!(O0(m)&&O0(m.expression))&&!B5(C,D)&&!(hc(C)&&p_e(C)&256)&&(Se||!hri(l))?A=gt(D,F.Property_0_is_used_before_its_initialization,w):C.kind===263&&m.parent.kind!==183&&!(C.flags&33554432)&&!B5(C,D)&&(A=gt(D,F.Class_0_used_before_its_declaration,w)),A&&Es(A,Tu(C,F._0_is_declared_here,w))}function Rft(l){return!!Tn(l,m=>{switch(m.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 go(m.parent)&&zl(m.parent.parent)?!0:"quit";default:return Y_(m)?!1:"quit"}})}function hri(l){if(!(l.parent.flags&32))return!1;let m=Wn(l.parent);for(;;){if(m=m.symbol&&fri(m),!m)return!1;const D=Zo(m,l.escapedName);if(D&&D.valueDeclaration)return!0}}function fri(l){const m=Qc(l);if(m.length!==0)return Ds(m)}function Oft(l,m,D){let C,A;if(!ea(l)&&m.flags&1048576&&!(m.flags&402784252)){for(const I of m.types)if(!Zo(I,l.escapedText)&&!G9(I,l.escapedText)){C=ro(C,F.Property_0_does_not_exist_on_type_1,k0(l),gn(I));break}}if(jft(l.escapedText,m)){const I=k0(l),U=gn(m);C=ro(C,F.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead,I,U,U+"."+I)}else{const I=PW(m);if(I&&Zo(I,l.escapedText))C=ro(C,F.Property_0_does_not_exist_on_type_1,k0(l),gn(m)),A=Tu(l,F.Did_you_forget_to_use_await);else{const U=k0(l),Z=gn(m),ce=gri(U,m);if(ce!==void 0)C=ro(C,F.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,U,Z,ce);else{const Fe=QMe(l,m);if(Fe!==void 0){const Te=cc(Fe),$e=D?F.Property_0_may_not_exist_on_type_1_Did_you_mean_2:F.Property_0_does_not_exist_on_type_1_Did_you_mean_2;C=ro(C,$e,U,Z,Te),A=Fe.valueDeclaration&&Tu(Fe.valueDeclaration,F._0_is_declared_here,Te)}else{const Te=mri(m)?F.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom:F.Property_0_does_not_exist_on_type_1;C=ro(XNe(C,m),Te,U,Z)}}}}const w=Y3(zn(l),l,C);A&&Es(w,A),n1(!D||C.code!==F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,w)}function mri(l){return ae.lib&&!ae.lib.includes("dom")&&Bni(l,m=>m.symbol&&/^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(Qr(m.symbol.escapedName)))&&bD(l)}function jft(l,m){const D=m.symbol&&Zo(Wn(m.symbol),l);return D!==void 0&&!!D.valueDeclaration&&No(D.valueDeclaration)}function pri(l){const m=Up(l),C=CZ().get(m);return C&&ja(C.keys())}function gri(l,m){const D=Jh(m).symbol;if(!D)return;const C=cc(D),w=CZ().get(C);if(w){for(const[I,U]of w)if(kt(U,l))return I}}function Vft(l,m){return uie(l,u0(m),106500)}function QMe(l,m){let D=u0(m);if(typeof l!="string"){const C=l.parent;Ru(C)&&(D=ti(D,A=>Wft(C,m,A))),l=fu(l)}return uie(l,D,111551)}function Hft(l,m){const D=Ua(l)?l:fu(l),C=u0(m);return(D==="for"?Le(C,w=>cc(w)==="htmlFor"):D==="class"?Le(C,w=>cc(w)==="className"):void 0)??uie(D,C,111551)}function XMe(l,m){const D=QMe(l,m);return D&&cc(D)}function eze(l,m,D){return H.assert(m!==void 0,"outername should always be defined"),Fh(l,m,D,void 0,m,!1,!1,!0,(A,w,I)=>{H.assertEqual(m,w,"name should equal outerName");const U=kf(A,w,I);if(U)return U;let Z;return A===Ie?Z=qi(["string","number","boolean","object","bigint","symbol"],Fe=>A.has(Fe.charAt(0).toUpperCase()+Fe.slice(1))?Ks(524288,Fe):void 0).concat(Ea(A.values())):Z=Ea(A.values()),uie(Qr(w),Z,I)})}function Eri(l,m,D){const C=eze(l,m,D);return C&&cc(C)}function zEe(l,m){return m.exports&&uie(fu(l),L5(m),2623475)}function _ri(l,m){const D=zEe(l,m);return D&&cc(D)}function Dri(l,m,D){function C(I){const U=yC(l,I);if(U){const Z=wF(Wn(U));return!!Z&&BE(Z)>=1&&ms(D,Lg(Z,0))}return!1}const A=X_(m)?"set":"get";if(!C(A))return;let w=qj(m.expression);return w===void 0?w=A:w+="."+A,w}function xri(l,m){const D=m.types.filter(C=>!!(C.flags&128));return yN(l.value,D,C=>C.value)}function uie(l,m,D){return yN(l,m,C);function C(A){const w=cc(A);if(!Ma(w,'"')){if(A.flags&D)return w;if(A.flags&2097152){const I=T9(A);if(I&&I.flags&D)return w}}}}function rie(l,m,D){const C=l&&l.flags&106500&&l.valueDeclaration;if(!C)return;const A=Rf(C,2),w=l.valueDeclaration&&gh(l.valueDeclaration)&&ea(l.valueDeclaration.name);if(!(!A&&!w)&&!(m&&Uq(m)&&!(l.flags&65536))){if(D){const I=Tn(m,U0);if(I&&I.symbol===l)return}(Gl(l)&1?qr(l).target:l).isReferenced=67108863}}function Kft(l,m){return l.kind===110||!!m&&tc(l)&&m===Yp(hm(l))}function vri(l,m){switch(l.kind){case 211:return tze(l,l.expression.kind===108,m,vm(Fa(l.expression)));case 166:return tze(l,!1,m,vm(Fa(l.left)));case 205:return tze(l,!1,m,Br(l))}}function Wft(l,m,D){return ize(l,l.kind===211&&l.expression.kind===108,!1,m,D)}function tze(l,m,D,C){if(nt(C))return!0;const A=Zo(C,D);return!!A&&ize(l,m,!1,C,A)}function ize(l,m,D,C,A){if(nt(C))return!0;if(A.valueDeclaration&&Eh(A.valueDeclaration)){const w=Qd(A.valueDeclaration);return!Q1(l)&&!!Tn(l,I=>I===w)}return wft(l,m,D,C,A)}function Cri(l){const m=l.initializer;if(m.kind===261){const D=m.declarations[0];if(D&&!So(D.name))return Du(D)}else if(m.kind===80)return Yp(m)}function bri(l){return Ah(l).length===1&&!!F3(l,Qt)}function yri(l){const m=l0(l);if(m.kind===80){const D=Yp(m);if(D.flags&3){let C=l,A=l.parent;for(;A;){if(A.kind===249&&C===A.statement&&Cri(A)===D&&bri(y1(A.expression)))return!0;C=A,A=A.parent}}}return!1}function kri(l,m){return l.flags&64?Fri(l,m):Gft(l,hT(l.expression),m)}function Fri(l,m){const D=Fa(l.expression),C=EW(D,l.expression);return cEe(Gft(l,FE(C,l.expression),m),l,C!==D)}function Gft(l,m,D){const C=f7(l)!==0||Mft(l)?vm(m):m,A=l.argumentExpression,w=Fa(A);if(Nt(C)||C===Va)return C;if(JEe(C)&&!i0(A))return gt(A,F.A_const_enum_member_can_only_be_accessed_using_a_string_literal),Ot;const I=yri(A)?Qt:w,U=X_(l)?4|(Nb(C)&&!PP(C)?2:0):32,Z=b6(C,I,U,l)||Ot;return Ymt(Ift(l,sr(l).resolvedSymbol,Z,A,D),l)}function Jft(l){return UE(l)||Dk(l)||Ih(l)}function BF(l){return Jft(l)&&L(l.typeArguments,cs),l.kind===215?Fa(l.template):Ih(l)?Fa(l.attributes):eu(l)?Fa(l.left):UE(l)&&L(l.arguments,m=>{Fa(m)}),fi}function AE(l){return BF(l),fn}function Ari(l,m,D){let C,A,w=0,I,U=-1,Z;H.assert(!m.length);for(const ce of l){const Fe=ce.declaration&&Du(ce.declaration),Te=ce.declaration&&ce.declaration.parent;!A||Fe===A?C&&Te===C?I=I+1:(C=Te,I=w):(I=w=m.length,C=Te),A=Fe,Vde(ce)?(U++,Z=U,w++):Z=I,m.splice(Z,0,D?kXt(ce,D):ce)}}function IEe(l){return!!l&&(l.kind===230||l.kind===237&&l.isSpread)}function REe(l){return Ue(l,IEe)}function $ft(l){return!!(l.flags&16384)}function Sri(l){return!!(l.flags&49155)}function OEe(l,m,D,C=!1){let A,w=!1,I=Cm(D),U=BE(D);if(l.kind===215)if(A=m.length,l.template.kind===228){const Z=yr(l.template.templateSpans);w=Xl(Z.literal)||!!Z.literal.isUnterminated}else{const Z=l.template;H.assert(Z.kind===15),w=!!Z.isUnterminated}else if(l.kind===170)A=emt(l,D);else if(l.kind===226)A=1;else if(Ih(l)){if(w=l.attributes.end===l.end,w)return!0;A=U===0?m.length:1,I=m.length===0?I:1,U=Math.min(U,1)}else if(l.arguments){A=C?m.length+1:m.length,w=l.arguments.end===l.end;const Z=REe(m);if(Z>=0)return Z>=BE(D)&&(A_(D)||ZI)return!1;if(w||A>=U)return!0;for(let Z=A;Z=C&&m.length<=D}function wF(l){return FW(l,0,!1)}function Uft(l){return FW(l,0,!1)||FW(l,1,!1)}function FW(l,m,D){if(l.flags&524288){const C=Ag(l);if(D||C.properties.length===0&&C.indexInfos.length===0){if(m===0&&C.callSignatures.length===1&&C.constructSignatures.length===0)return C.callSignatures[0];if(m===1&&C.constructSignatures.length===1&&C.callSignatures.length===0)return C.constructSignatures[0]}}}function qft(l,m,D,C){const A=xW(l.typeParameters,l,0,C),w=SW(m),I=D&&(w&&w.flags&262144?D.nonFixingMapper:D.mapper),U=I?lT(m,I):m;return nMe(U,l,(Z,ce)=>{AD(A.inferences,Z,ce)}),D||uMe(m,l,(Z,ce)=>{AD(A.inferences,Z,ce,128)}),aW(l,EMe(A),Xn(m.declaration))}function Bri(l,m,D,C){const A=wEe(m,l),w=pT(l.attributes,A,C,D);return AD(C.inferences,w,A),EMe(C)}function Zft(l){if(!l)return da;const m=Fa(l);return Hye(l)?m:RN(l.parent)?FD(m):Q1(l.parent)?lEe(m):m}function uze(l,m,D,C,A){if(Ih(l))return Bri(l,m,C,A);if(l.kind!==170&&l.kind!==226){const Z=ye(m.typeParameters,Fe=>!!_F(Fe)),ce=hf(l,Z?8:0);if(ce){const Fe=Ys(m);if(PC(Fe)){const Te=Vb(l);if(!(!Z&&hf(l,8)!==ce)){const gi=sMe(Gii(Te,1)),Wi=Da(ce,gi),dn=wF(Wi),nu=dn&&dn.typeParameters?DF(aPe(dn,dn.typeParameters)):Wi;AD(A.inferences,nu,Fe,128)}const ut=xW(m.typeParameters,m,A.flags),zt=Da(ce,Te&&Te.returnMapper);AD(ut.inferences,zt,Fe),A.returnMapper=Ge(ut.inferences,gT)?sMe(qii(ut)):void 0}}}const w=BW(m),I=w?Math.min(Cm(m)-1,D.length):D.length;if(w&&w.flags&262144){const Z=Le(A.inferences,ce=>ce.typeParameter===w);Z&&(Z.impliedArity=Ue(D,IEe,I)<0?D.length-I:void 0)}const U=FC(m);if(U&&PC(U)){const Z=Xft(l);AD(A.inferences,Zft(Z),U)}for(let Z=0;Z=D-1){const Fe=l[D-1];if(IEe(Fe)){const Te=Fe.kind===237?Fe.type:pT(Fe.expression,C,A,w);return H5(Te)?Yft(Te):H1(G5(33,Te,te,Fe.kind===230?Fe.expression:Fe),I)}}const U=[],Z=[],ce=[];for(let Fe=m;Fero(void 0,F.Type_0_does_not_satisfy_the_constraint_1):void 0,Te=C||F.Type_0_does_not_satisfy_the_constraint_1;U||(U=Sf(w,I));const $e=I[Z];if(!Bh($e,xm(Da(ce,U),$e),D?m[Z]:void 0,Te,Fe))return}}return I}function Qft(l){if(X9(l.tagName))return 2;const m=Jh(Fa(l.tagName));return S(Eo(m,1))?0:S(Eo(m,0))?1:2}function wri(l,m,D,C,A,w,I){const U=wEe(m,l),Z=pT(l.attributes,U,void 0,C),ce=C&4?DW(Z):Z;return Fe()&&VPe(ce,U,D,A?l.tagName:void 0,l.attributes,void 0,w,I);function Fe(){var Te;if(HMe(l))return!0;const $e=(oE(l)||bk(l))&&!(X9(l.tagName)||gg(l.tagName))?Fa(l.tagName):void 0;if(!$e)return!0;const ut=Eo($e,0);if(!S(ut))return!0;const zt=upt(l);if(!zt)return!0;const gi=j0(zt,111551,!0,!1,l);if(!gi)return!0;const Wi=Wn(gi),dn=Eo(Wi,0);if(!S(dn))return!0;let nu=!1,En=0;for(const Nn of dn){const vn=Lg(Nn,0),An=Eo(vn,0);if(S(An))for(const _n of An){if(nu=!0,A_(_n))return!0;const hu=Cm(_n);hu>En&&(En=hu)}}if(!nu)return!0;let Ri=1/0;for(const Nn of ut){const vn=BE(Nn);vn{A.push(w.expression)}),A}if(l.kind===170)return Tri(l);if(l.kind===226)return[l.left];if(Ih(l))return l.attributes.properties.length>0||oE(l)&&l.parent.children.length>0?[l.attributes]:Dt;const m=l.arguments||Dt,D=REe(m);if(D>=0){const C=m.slice(0,D);for(let A=D;A{var ce;const Fe=I.target.elementFlags[Z],Te=oie(w,Fe&4?H1(U):U,!!(Fe&12),(ce=I.target.labeledElementDeclarations)==null?void 0:ce[Z]);C.push(Te)}):C.push(w)}return C}return m}function Tri(l){const m=l.expression,D=_ze(l);if(D){const C=[];for(const A of D.parameters){const w=Wn(A);C.push(oie(m,w))}return C}return H.fail()}function emt(l,m){return ae.experimentalDecorators?Lri(l,m):2}function Lri(l,m){switch(l.parent.kind){case 263:case 231:return 1;case 172:return tE(l.parent)?3:2;case 174:case 177:case 178:return Ce===0||m.parameters.length<=2?2:3;case 169:return 3;default:return H.fail()}}function tmt(l,m){let D,C;const A=zn(l);if(Ru(l.expression)){const w=b2(A,l.expression.name);D=w.start,C=m?w.length:l.end-D}else{const w=b2(A,l.expression);D=w.start,C=m?w.length:l.end-D}return{start:D,length:C,sourceFile:A}}function sie(l,m,...D){if(Mo(l)){const{sourceFile:C,start:A,length:w}=tmt(l);return"message"in m?Rd(C,A,w,m,...D):k0e(C,m)}else return"message"in m?Tu(l,m,...D):Y3(zn(l),l,m)}function Nri(l){if(!Mo(l)||!at(l.expression))return!1;const m=rc(l.expression,l.expression.escapedText,111551,void 0,void 0,!1),D=m==null?void 0:m.valueDeclaration;if(!D||!io(D)||!O2(D.parent)||!V2(D.parent.parent)||!at(D.parent.parent.expression))return!1;const C=mPe(!1);return C?Qp(D.parent.parent.expression,!0)===C:!1}function imt(l,m,D,C){var A;const w=REe(D);if(w>-1)return Tu(D[w],F.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);let I=Number.POSITIVE_INFINITY,U=Number.NEGATIVE_INFINITY,Z=Number.NEGATIVE_INFINITY,ce=Number.POSITIVE_INFINITY,Fe;for(const gi of m){const Wi=BE(gi),dn=Cm(gi);WiZ&&(Z=Wi),D.lengthA?I=Math.min(I,Z):ce1&&(En=vn($e,f_,zt,Ri)),En||(En=vn($e,Jf,zt,Ri)),En)return En;if(En=Mri(l,$e,ut,!!D,C),sr(l).resolvedSignature=En,Fe)if(!w&&ce&&(w=F.The_left_hand_side_of_an_instanceof_expression_must_be_assignable_to_the_first_argument_of_the_right_hand_side_s_Symbol_hasInstance_method),Wi)if(Wi.length===1||Wi.length>3){const An=Wi[Wi.length-1];let _n;Wi.length>3&&(_n=ro(_n,F.The_last_overload_gave_the_following_error),_n=ro(_n,F.No_overload_matches_this_call)),w&&(_n=ro(_n,w));const hu=aie(l,ut,An,Jf,0,!0,()=>_n);if(hu)for(const oo of hu)An.declaration&&Wi.length>3&&Es(oo,Tu(An.declaration,F.The_last_overload_is_declared_here)),Nn(An,oo),Hs.add(oo);else H.fail("No error for last overload signature")}else{const An=[];let _n=0,hu=Number.MAX_VALUE,oo=0,_o=0;for(const hn of Wi){const Yr=aie(l,ut,hn,Jf,0,!0,()=>ro(void 0,F.Overload_0_of_1_2_gave_the_following_error,_o+1,$e.length,CE(hn)));Yr?(Yr.length<=hu&&(hu=Yr.length,oo=_o),_n=Math.max(_n,Yr.length),An.push(Yr)):H.fail("No error for 3 or fewer overload signatures"),_o++}const mo=_n>1?An[oo]:Ha(An);H.assert(mo.length>0,"No errors reported for 3 or fewer overload signatures");let Aa=ro(Vt(mo,Jbe),F.No_overload_matches_this_call);w&&(Aa=ro(Aa,w));const oh=[...Vu(mo,hn=>hn.relatedInformation)];let i4;if(ye(mo,hn=>hn.start===mo[0].start&&hn.length===mo[0].length&&hn.file===mo[0].file)){const{file:hn,start:Kn,length:Yr}=mo[0];i4={file:hn,start:Kn,length:Yr,code:Aa.code,category:Aa.category,messageText:Aa,relatedInformation:oh}}else i4=Y3(zn(l),l,Aa,oh);Nn(Wi[0],i4),Hs.add(i4)}else if(dn)Hs.add(imt(l,[dn],ut,w));else if(nu)aze(nu,l.typeArguments,!0,w);else{const An=ti(m,_n=>nze(_n,Te));An.length===0?Hs.add(Pri(l,m,Te,w)):Hs.add(imt(l,An,ut,w))}return En;function Nn(An,_n){var hu,oo;const _o=Wi,mo=dn,Aa=nu,oh=((oo=(hu=An.declaration)==null?void 0:hu.symbol)==null?void 0:oo.declarations)||Dt,hn=oh.length>1?Le(oh,Kn=>U0(Kn)&&W4(Kn.body)):void 0;if(hn){const Kn=fp(hn),Yr=!Kn.typeParameters;vn([Kn],Jf,Yr)&&Es(_n,Tu(hn,F.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible))}Wi=_o,dn=mo,nu=Aa}function vn(An,_n,hu,oo=!1){if(Wi=void 0,dn=void 0,nu=void 0,hu){const _o=An[0];if(Ge(Te)||!OEe(l,ut,_o,oo))return;if(aie(l,ut,_o,_n,0,!1,void 0)){Wi=[_o];return}return _o}for(let _o=0;_o0),eS(l),C||m.length===1||m.some(w=>!!w.typeParameters)?Rri(l,m,D,A):zri(m)}function zri(l){const m=qi(l,Z=>Z.thisParameter);let D;m.length&&(D=nmt(m,m.map(die)));const{min:C,max:A}=xke(l,Iri),w=[];for(let Z=0;Zih(Fe)?ZTF(Fe,Z))))}const I=qi(l,Z=>ih(Z)?yr(Z.parameters):void 0);let U=128;if(I.length!==0){const Z=H1(tr(qi(l,Odt),2));w.push(umt(I,Z)),U|=1}return l.some(Vde)&&(U|=2),k3(l[0].declaration,void 0,D,w,Ds(l.map(Ys)),void 0,C,U)}function Iri(l){const m=l.parameters.length;return ih(l)?m-1:m}function nmt(l,m){return umt(l,tr(m,2))}function umt(l,m){return CF(Pn(l),m)}function Rri(l,m,D,C){const A=Vri(m,Ni===void 0?D.length:Ni),w=m[A],{typeParameters:I}=w;if(!I)return w;const U=Jft(l)?l.typeArguments:void 0,Z=U?Bge(w,Ori(U,I,Xn(l))):jri(l,I,w,D,C);return m[A]=Z,Z}function Ori(l,m,D){const C=l.map(tS);for(;C.length>m.length;)C.pop();for(;C.length=m)return A;I>C&&(C=I,D=A)}return D}function Hri(l,m,D){if(l.expression.kind===108){const Z=TMe(l.expression);if(nt(Z)){for(const ce of l.arguments)Fa(ce);return fi}if(!Nt(Z)){const ce=Xg(Qd(l));if(ce){const Fe=x0(Z,ce.typeArguments,ce);return fT(l,Fe,m,D,0)}}return BF(l)}let C,A=Fa(l.expression);if($y(l)){const Z=EW(A,l.expression);C=Z===A?0:ON(l)?16:8,A=Z}else C=0;if(A=Lft(A,l.expression,ari),A===Va)return uu;const w=Jh(A);if(Nt(w))return AE(l);const I=Eo(w,0),U=Eo(w,1).length;if(lie(A,w,I.length,U))return!Nt(A)&&l.typeArguments&>(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);if(!I.length){if(U)gt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A));else{let Z;if(l.arguments.length===1){const ce=zn(l).text;Y1(ce.charCodeAt(gs(ce,l.expression.end,!0)-1))&&(Z=Tu(l.expression,F.Are_you_missing_a_semicolon))}sze(l.expression,w,0,Z)}return AE(l)}return D&8&&!l.typeArguments&&I.some(Kri)?(jmt(l,D),Gu):I.some(Z=>Xn(Z.declaration)&&!!Ose(Z.declaration))?(gt(l,F.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new,gn(A)),AE(l)):fT(l,I,m,D,C)}function Kri(l){return!!(l.typeParameters&&Xze(Ys(l)))}function lie(l,m,D,C){return nt(l)||nt(m)&&!!(l.flags&262144)||!D&&!C&&!(m.flags&1048576)&&!(Sg(m).flags&131072)&&ms(l,di)}function Wri(l,m,D){if(l.arguments&&Ce<1){const I=REe(l.arguments);I>=0&>(l.arguments[I],F.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher)}let C=hT(l.expression);if(C===Va)return uu;if(C=Jh(C),Nt(C))return AE(l);if(nt(C))return l.typeArguments&>(l,F.Untyped_function_calls_may_not_accept_type_arguments),BF(l);const A=Eo(C,1);if(A.length){if(!Gri(l,A[0]))return AE(l);if(rmt(A,U=>!!(U.flags&4)))return gt(l,F.Cannot_create_an_instance_of_an_abstract_class),AE(l);const I=C.symbol&&tD(C.symbol);return I&&Qu(I,64)?(gt(l,F.Cannot_create_an_instance_of_an_abstract_class),AE(l)):fT(l,A,m,D,0)}const w=Eo(C,0);if(w.length){const I=fT(l,w,m,D,0);return Ae||(I.declaration&&!SE(I.declaration)&&Ys(I)!==da&>(l,F.Only_a_void_function_can_be_called_with_the_new_keyword),FC(I)===da&>(l,F.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void)),I}return sze(l.expression,C,1),AE(l)}function rmt(l,m){return Wa(l)?Ge(l,D=>rmt(D,m)):l.compositeKind===1048576?Ge(l.compositeSignatures,m):m(l)}function oze(l,m){const D=Qc(m);if(!S(D))return!1;const C=D[0];if(C.flags&2097152){const A=C.types,w=vdt(A);let I=0;for(const U of C.types){if(!w[I]&&Ju(U)&3&&(U.symbol===l||oze(l,U)))return!0;I++}return!1}return C.symbol===l?!0:oze(l,C)}function Gri(l,m){if(!m||!m.declaration)return!0;const D=m.declaration,C=E7(D,6);if(!C||D.kind!==176)return!0;const A=tD(D.parent.symbol),w=el(D.parent.symbol);if(!Zze(l,A)){const I=Qd(l);if(I&&C&4){const U=tS(I);if(oze(D.parent.symbol,U))return!0}return C&2&>(l,F.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration,gn(w)),C&4&>(l,F.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration,gn(w)),!1}return!0}function amt(l,m,D){let C;const A=D===0,w=NF(m),I=w&&Eo(w,D).length>0;if(m.flags&1048576){const Z=m.types;let ce=!1;for(const Fe of Z)if(Eo(Fe,D).length!==0){if(ce=!0,C)break}else if(C||(C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(Fe)),C=ro(C,A?F.Not_all_constituents_of_type_0_are_callable:F.Not_all_constituents_of_type_0_are_constructable,gn(m))),ce)break;ce||(C=ro(void 0,A?F.No_constituent_of_type_0_is_callable:F.No_constituent_of_type_0_is_constructable,gn(m))),C||(C=ro(C,A?F.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other:F.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other,gn(m)))}else C=ro(C,A?F.Type_0_has_no_call_signatures:F.Type_0_has_no_construct_signatures,gn(m));let U=A?F.This_expression_is_not_callable:F.This_expression_is_not_constructable;if(Mo(l.parent)&&l.parent.arguments.length===0){const{resolvedSymbol:Z}=sr(l);Z&&Z.flags&32768&&(U=F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without)}return{messageChain:ro(C,U),relatedMessage:I?F.Did_you_forget_to_use_await:void 0}}function sze(l,m,D,C){const{messageChain:A,relatedMessage:w}=amt(l,m,D),I=Y3(zn(l),l,A);if(w&&Es(I,Tu(l,w)),Mo(l.parent)){const{start:U,length:Z}=tmt(l.parent,!0);I.start=U,I.length=Z}Hs.add(I),omt(m,D,C?Es(I,C):I)}function omt(l,m,D){if(!l.symbol)return;const C=qr(l.symbol).originatingImport;if(C&&!dm(C)){const A=Eo(Wn(qr(l.symbol).target),m);if(!A||!A.length)return;Es(D,Tu(C,F.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead))}}function Jri(l,m,D){const C=Fa(l.tag),A=Jh(C);if(Nt(A))return AE(l);const w=Eo(A,0),I=Eo(A,1).length;if(lie(C,A,w.length,I))return BF(l);if(!w.length){if(vh(l.parent)){const U=Tu(l.tag,F.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);return Hs.add(U),AE(l)}return sze(l.tag,A,0),AE(l)}return fT(l,w,m,D,0)}function $ri(l){switch(l.parent.kind){case 263:case 231:return F.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;case 169:return F.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;case 172:return F.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;case 174:case 177:case 178:return F.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;default:return H.fail()}}function Uri(l,m,D){const C=Fa(l.expression),A=Jh(C);if(Nt(A))return AE(l);const w=Eo(A,0),I=Eo(A,1).length;if(lie(C,A,w.length,I))return BF(l);if(Yri(l,w)&&!Cf(l.expression)){const Z=Wc(l.expression,!1);return gt(l,F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0,Z),AE(l)}const U=$ri(l);if(!w.length){const Z=amt(l.expression,A,0),ce=ro(Z.messageChain,U),Fe=Y3(zn(l.expression),l.expression,ce);return Z.relatedMessage&&Es(Fe,Tu(l.expression,Z.relatedMessage)),Hs.add(Fe),omt(A,0,Fe),AE(l)}return fT(l,w,m,D,0,U)}function VEe(l,m){const D=SF(l),C=D&&$f(D),A=C&&kf(C,Om.Element,788968),w=A&&Yt.symbolToEntityName(A,788968,l),I=q.createFunctionTypeNode(void 0,[q.createParameterDeclaration(void 0,void 0,"props",void 0,Yt.typeToTypeNode(m,l))],w?q.createTypeReferenceNode(w,void 0):q.createKeywordTypeNode(133)),U=Ks(1,"props");return U.links.type=m,k3(I,void 0,void 0,[U],A?el(A):Ot,void 0,1,0)}function qri(l,m,D){if(X9(l.tagName)){const I=Fft(l),U=VEe(l,I);return A6(pT(l.attributes,wEe(U,l),void 0,0),I,l.tagName,l.attributes),S(l.typeArguments)&&(L(l.typeArguments,cs),Hs.add(H8(zn(l),l.typeArguments,F.Expected_0_type_arguments_but_got_1,0,S(l.typeArguments)))),U}const C=Fa(l.tagName),A=Jh(C);if(Nt(A))return AE(l);const w=yft(C,l);return lie(C,A,w.length,0)?BF(l):w.length===0?(gt(l.tagName,F.JSX_element_type_0_does_not_have_any_construct_or_call_signatures,Wc(l.tagName)),AE(l)):fT(l,w,m,D,0)}function Zri(l,m,D){const C=Fa(l.right);if(!nt(C)){const A=Cze(C);if(A){const w=Jh(A);if(Nt(w))return AE(l);const I=Eo(w,0),U=Eo(w,1);if(lie(A,w,I.length,U.length))return BF(l);if(I.length)return fT(l,I,m,D,0)}else if(!(l_e(C)||F6(C,di)))return gt(l.right,F.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),AE(l)}return fi}function Yri(l,m){return m.length&&ye(m,D=>D.minArgumentCount===0&&!ih(D)&&D.parameters.length1?jc(l.arguments[1]):void 0;for(let w=2;w{const I=vm(A);Yge(w,I)||eht(A,w,D,F.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)})}function aai(l){const m=Fa(l.expression),D=EW(m,l.expression);return cEe(FD(D),l,D!==m)}function oai(l){return l.flags&64?aai(l):FD(Fa(l.expression))}function mmt(l){if(opt(l),L(l.typeArguments,cs),l.kind===233){const D=i5(l.parent);D.kind===226&&D.operatorToken.kind===104&&B2(l,D.right)&>(l,F.The_right_hand_side_of_an_instanceof_expression_must_not_be_an_instantiation_expression)}const m=l.kind===233?Fa(l.expression):P2(l.exprName)?Zte(l.exprName):Fa(l.exprName);return pmt(m,l)}function pmt(l,m){const D=m.typeArguments;if(l===Va||Nt(l)||!Ge(D))return l;let C=!1,A;const w=U(l),I=C?A:l;return I&&Hs.add(H8(zn(m),D,F.Type_0_has_no_signatures_for_which_the_type_argument_list_is_applicable,gn(I))),w;function U(ce){let Fe=!1,Te=!1;const $e=ut(ce);return C||(C=Te),Fe&&!Te&&(A??(A=ce)),$e;function ut(zt){if(zt.flags&524288){const gi=Ag(zt),Wi=Z(gi.callSignatures),dn=Z(gi.constructSignatures);if(Fe||(Fe=gi.callSignatures.length!==0||gi.constructSignatures.length!==0),Te||(Te=Wi.length!==0||dn.length!==0),Wi!==gi.callSignatures||dn!==gi.constructSignatures){const nu=Ol(void 0,gi.members,Wi,dn,gi.indexInfos);return nu.objectFlags|=8388608,nu.node=m,nu}}else if(zt.flags&58982400){const gi=Gh(zt);if(gi){const Wi=ut(gi);if(Wi!==gi)return Wi}}else{if(zt.flags&1048576)return ml(zt,U);if(zt.flags&2097152)return Ds(Pu(zt.types,ut))}return zt}}function Z(ce){const Fe=ti(ce,Te=>!!Te.typeParameters&&nze(Te,D));return Pu(Fe,Te=>{const $e=aze(Te,D,!0);return $e?aW(Te,$e,Xn(Te.declaration)):Te})}}function sai(l){return cs(l.type),hze(l.expression,l.type)}function hze(l,m,D){const C=Fa(l,D),A=Br(m);if(Nt(A))return A;const w=Tn(m.parent,I=>I.kind===238||I.kind===357);return A6(C,A,w,l,F.Type_0_does_not_satisfy_the_expected_type_1),C}function lai(l){return uci(l),l.keywordToken===105?fze(l):l.keywordToken===102?cai(l):H.assertNever(l.keywordToken)}function gmt(l){switch(l.keywordToken){case 102:return t1t();case 105:const m=fze(l);return Nt(m)?Ot:Aai(m);default:H.assertNever(l.keywordToken)}}function fze(l){const m=aye(l);if(m)if(m.kind===176){const D=Du(m.parent);return Wn(D)}else{const D=Du(m);return Wn(D)}else return gt(l,F.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor,"new.target"),Ot}function cai(l){ne===100||ne===199?zn(l).impliedNodeFormat!==99&>(l,F.The_import_meta_meta_property_is_not_allowed_in_files_which_will_build_into_CommonJS_output):ne<6&&ne!==4&>(l,F.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_es2022_esnext_system_node16_or_nodenext);const m=zn(l);return H.assert(!!(m.flags&8388608),"Containing file is missing import meta node flag."),l.name.escapedText==="meta"?e1t():Ot}function die(l){const m=l.valueDeclaration;return Vd(Wn(l),!1,!!m&&(Nx(m)||MP(m)))}function mze(l,m,D="arg"){return l?(H.assert(at(l.name)),l.name.escapedText):`${D}_${m}`}function Rz(l,m,D){const C=l.parameters.length-(ih(l)?1:0);if(m=C-1)return m===C-1?w:H1(qf(w,Qt));const I=[],U=[],Z=[];for(let ce=m;ce!(Z&1)),U=I<0?w.target.fixedLength:I;U>0&&(A=l.parameters.length-1+U)}}if(A===void 0){if(!D&&l.flags&32)return 0;A=l.minArgumentCount}if(C)return A;for(let w=A-1;w>=0;w--){const I=Lg(l,w);if(Oc(I,$ft).flags&131072)break;A=w}l.resolvedMinArgumentCount=A}return l.resolvedMinArgumentCount}function A_(l){if(ih(l)){const m=Wn(l.parameters[l.parameters.length-1]);return!xs(m)||m.target.hasRestElement}return!1}function SW(l){if(ih(l)){const m=Wn(l.parameters[l.parameters.length-1]);if(!xs(m))return m;if(m.target.hasRestElement)return yz(m,m.target.fixedLength)}}function BW(l){const m=SW(l);return m&&!w4(m)&&!nt(m)?m:void 0}function pze(l){return gze(l,Wu)}function gze(l,m){return l.parameters.length>0?Lg(l,0):m}function Dmt(l,m,D){const C=l.parameters.length-(ih(l)?1:0);for(let A=0;A=0);const w=fc(C.parent)?Wn(Du(C.parent.parent)):Z4t(C.parent),I=fc(C.parent)?te:Y4t(C.parent),U=wg(A),Z=yg("target",w),ce=yg("propertyKey",I),Fe=yg("parameterIndex",U);D.decoratorSignature=zW(void 0,void 0,[Z,ce,Fe],da);break}case 174:case 177:case 178:case 172:{const C=m;if(!gr(C.parent))break;const A=Z4t(C),w=yg("target",A),I=Y4t(C),U=yg("propertyKey",I),Z=ko(C)?da:s1t(tS(C));if(Ce!==0&&(!ko(m)||tE(m))){const Fe=s1t(tS(C)),Te=yg("descriptor",Fe);D.decoratorSignature=zW(void 0,void 0,[w,U,Te],tr([Z,da]))}else D.decoratorSignature=zW(void 0,void 0,[w,U],tr([Z,da]));break}}return D.decoratorSignature===fi?void 0:D.decoratorSignature}function _ze(l){return ve?Fai(l):kai(l)}function fie(l){const m=Ste(!0);return m!==Ga?(l=W5(Hz(l))||on,R5(m,[l])):on}function Cmt(l){const m=r1t(!0);return m!==Ga?(l=W5(Hz(l))||on,R5(m,[l])):on}function mie(l,m){const D=fie(m);return D===on?(gt(l,dm(l)?F.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option),Ot):(mPe(!0)||gt(l,dm(l)?F.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option:F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option),D)}function Aai(l){const m=Ks(0,"NewTargetExpression"),D=Ks(4,"target",8);D.parent=m,D.links.type=l;const C=Ho([D]);return m.members=C,Ol(m,C,Dt,Dt,Dt)}function WEe(l,m){if(!l.body)return Ot;const D=kd(l),C=(D&2)!==0,A=(D&1)!==0;let w,I,U,Z=da;if(l.body.kind!==241)w=jc(l.body,m&&m&-9),C&&(w=Hz(MW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)));else if(A){const ce=Smt(l,m);ce?ce.length>0&&(w=tr(ce,2)):Z=Wu;const{yieldTypes:Fe,nextTypes:Te}=Sai(l,m);I=Ge(Fe)?tr(Fe,2):void 0,U=Ge(Te)?Ds(Te):void 0}else{const ce=Smt(l,m);if(!ce)return D&2?mie(l,Wu):Wu;if(ce.length===0){const Fe=FEe(l,void 0),Te=Fe&&(kie(Fe,D)||da).flags&32768?te:da;return D&2?mie(l,Te):Te}w=tr(ce,2)}if(w||I||U){if(I&&mEe(l,I,3),w&&mEe(l,w,1),U&&mEe(l,U,2),w&&Tg(w)||I&&Tg(I)||U&&Tg(U)){const ce=RMe(l),Fe=ce?ce===fp(l)?A?void 0:w:SEe(Ys(ce),l,void 0):void 0;A?(I=tMe(I,Fe,0,C),w=tMe(w,Fe,1,C),U=tMe(U,Fe,2,C)):w=Nii(w,Fe,C)}I&&(I=vm(I)),w&&(w=vm(w)),U&&(U=vm(U))}return A?bmt(I||Wu,w||Z,U||cft(2,l)||on,C):C?fie(w||Z):w||Z}function bmt(l,m,D,C){const A=C?T0:rd,w=A.getGlobalGeneratorType(!1);if(l=A.resolveIterationType(l,void 0)||on,m=A.resolveIterationType(m,void 0)||on,D=A.resolveIterationType(D,void 0)||on,w===Ga){const I=A.getGlobalIterableIteratorType(!1),U=I!==Ga?p4t(I,A):void 0,Z=U?U.returnType:me,ce=U?U.nextType:te;return ms(m,Z)&&ms(ce,D)?I!==Ga?sW(I,[l]):(A.getGlobalIterableIteratorType(!0),Wo):(A.getGlobalGeneratorType(!0),Wo)}return sW(w,[l,m,D])}function Sai(l,m){const D=[],C=[],A=(kd(l)&2)!==0;return qbe(l.body,w=>{const I=w.expression?Fa(w.expression,m):we;Ca(D,ymt(w,I,me,A));let U;if(w.asteriskToken){const Z=i_e(I,A?19:17,w.expression);U=Z&&Z.nextType}else U=hf(w,void 0);U&&Ca(C,U)}),{yieldTypes:D,nextTypes:C}}function ymt(l,m,D,C){const A=l.expression||l,w=l.asteriskToken?G5(C?19:17,m,D,A):m;return C?NF(w,A,l.asteriskToken?F.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member:F.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w}function kmt(l,m,D){let C=0;for(let A=0;A=m?D[A]:void 0;C|=w!==void 0?Kde.get(w)||32768:0}return C}function Fmt(l){const m=sr(l);if(m.isExhaustive===void 0){m.isExhaustive=0;const D=Bai(l);m.isExhaustive===0&&(m.isExhaustive=D)}else m.isExhaustive===0&&(m.isExhaustive=!1);return m.isExhaustive}function Bai(l){if(l.expression.kind===221){const C=Ght(l);if(!C)return!1;const A=xD(jc(l.expression.expression)),w=kmt(0,0,C);return A.flags&3?(556800&w)===556800:!kE(A,I=>Nz(I,w)===w)}const m=jc(l.expression);if(!gW(m))return!1;const D=DEe(l);return!D.length||Ge(D,wii)?!1:Ani(ml(m,$h),D)}function Amt(l){return l.endFlowNode&&Ute(l.endFlowNode)}function Smt(l,m){const D=kd(l),C=[];let A=Amt(l),w=!1;if(k2(l.body,I=>{let U=I.expression;if(U){if(U=l0(U,!0),D&2&&U.kind===223&&(U=l0(U.expression,!0)),U.kind===213&&U.expression.kind===80&&jc(U.expression).symbol===l.symbol){w=!0;return}let Z=jc(U,m&&m&-9);D&2&&(Z=Hz(MW(Z,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member))),Z.flags&131072&&(w=!0),Ca(C,Z)}else A=!0}),!(C.length===0&&!A&&(w||wai(l))))return fe&&C.length&&A&&!(SE(l)&&C.some(I=>I.symbol===l.symbol))&&Ca(C,te),C}function wai(l){switch(l.kind){case 218:case 219:return!0;case 174:return l.parent.kind===210;default:return!1}}function Dze(l,m){s(D);return;function D(){const C=kd(l),A=m&&kie(m,C);if(A&&(jl(A,16384)||A.flags&32769)||l.kind===173||Xl(l.body)||l.body.kind!==241||!Amt(l))return;const w=l.flags&1024,I=Z4(l)||l;if(A&&A.flags&131072)gt(I,F.A_function_returning_never_cannot_have_a_reachable_end_point);else if(A&&!w)gt(I,F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value);else if(A&&fe&&!ms(te,A))gt(I,F.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);else if(ae.noImplicitReturns){if(!A){if(!w)return;const U=Ys(fp(l));if(b4t(l,U))return}gt(I,F.Not_all_code_paths_return_a_value)}}}function Bmt(l,m){if(H.assert(l.kind!==174||Ip(l)),eS(l),w0(l)&&Kz(l,l.name),m&&m&4&&S4(l)){if(!Z4(l)&&!pZ(l)){const C=kW(l);if(C&&PC(Ys(C))){const A=sr(l);if(A.contextFreeType)return A.contextFreeType;const w=WEe(l,m),I=k3(void 0,void 0,void 0,Dt,w,void 0,0,64),U=Ol(l.symbol,se,[I],Dt,Dt);return U.objectFlags|=262144,A.contextFreeType=U}}return Oi}return!f_e(l)&&l.kind===218&&iIe(l),Tai(l,m),Wn(Du(l))}function Tai(l,m){const D=sr(l);if(!(D.flags&64)){const C=kW(l);if(!(D.flags&64)){D.flags|=64;const A=Ki(Eo(Wn(Du(l)),0));if(!A)return;if(S4(l))if(C){const w=Vb(l);let I;if(m&&m&2){Dmt(A,C,w);const U=SW(C);U&&U.flags&262144&&(I=lT(C,w.nonFixingMapper))}I||(I=w?lT(C,w.mapper):C),fai(A,I)}else mai(A);else if(C&&!l.typeParameters&&C.parameters.length>l.parameters.length){const w=Vb(l);m&&m&2&&Dmt(A,C,w)}if(C&&!uT(l)&&!A.resolvedReturnType){const w=WEe(l,m);A.resolvedReturnType||(A.resolvedReturnType=w)}LW(l)}}}function Lai(l){H.assert(l.kind!==174||Ip(l));const m=kd(l),D=uT(l);if(Dze(l,D),l.body)if(Z4(l)||Ys(fp(l)),l.body.kind===241)cs(l.body);else{const C=Fa(l.body),A=D&&kie(D,m);if(A)if((m&3)===2){const w=MW(C,!1,l.body,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);A6(w,A,l.body,l.body)}else A6(C,A,l.body,l.body)}}function GEe(l,m,D,C=!1){if(!ms(m,Qa)){const A=C&&Vz(m);return kh(l,!!A&&ms(A,Qa),D),!1}return!0}function Nai(l){if(!Mo(l)||!rk(l))return!1;const m=jc(l.arguments[2]);if(he(m,"value")){const A=Zo(m,"writable"),w=A&&Wn(A);if(!w||w===Ui||w===Sn)return!0;if(A&&A.valueDeclaration&&Uc(A.valueDeclaration)){const I=A.valueDeclaration.initializer,U=Fa(I);if(U===Ui||U===Sn)return!0}return!1}return!Zo(m,"set")}function Ng(l){return!!(Gl(l)&8||l.flags&4&&h4(l)&8||l.flags&3&&GMe(l)&6||l.flags&98304&&!(l.flags&65536)||l.flags&8||Ge(l.declarations,Nai))}function wmt(l,m,D){var C,A;if(D===0)return!1;if(Ng(m)){if(m.flags&4&&O0(l)&&l.expression.kind===110){const w=Pm(l);if(!(w&&(w.kind===176||SE(w))))return!0;if(m.valueDeclaration){const I=eu(m.valueDeclaration),U=w.parent===m.valueDeclaration.parent,Z=w===m.valueDeclaration.parent,ce=I&&((C=m.parent)==null?void 0:C.valueDeclaration)===w.parent,Fe=I&&((A=m.parent)==null?void 0:A.valueDeclaration)===w;return!(U||Z||ce||Fe)}}return!0}if(O0(l)){const w=l0(l.expression);if(w.kind===80){const I=sr(w).resolvedSymbol;if(I.flags&2097152){const U=op(I);return!!U&&U.kind===274}}}return!1}function wW(l,m,D){const C=vc(l,7);return C.kind!==80&&!O0(C)?(gt(l,m),!1):C.flags&64?(gt(l,D),!1):!0}function Pai(l){Fa(l.expression);const m=l0(l.expression);if(!O0(m))return gt(m,F.The_operand_of_a_delete_operator_must_be_a_property_reference),Er;Ru(m)&&ea(m.name)&>(m,F.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);const D=sr(m),C=cp(D.resolvedSymbol);return C&&(Ng(C)?gt(m,F.The_operand_of_a_delete_operator_cannot_be_a_read_only_property):Mai(m,C)),Er}function Mai(l,m){const D=Wn(m);fe&&!(D.flags&131075)&&!(je?m.flags&16777216:pp(D,16777216))&>(l,F.The_operand_of_a_delete_operator_must_be_optional)}function zai(l){return Fa(l.expression),Nw}function Iai(l){return eS(l),we}function Tmt(l){let m=!1;const D=fq(l);if(D&&zl(D)){const C=Gx(l)?F.await_expression_cannot_be_used_inside_a_class_static_block:F.await_using_statements_cannot_be_used_inside_a_class_static_block;gt(l,C),m=!0}else if(!(l.flags&65536))if(pq(l)){const C=zn(l);if(!Wb(C)){let A;if(!s7(C,ae)){A??(A=XE(C,l.pos));const w=Gx(l)?F.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:F.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,I=Rd(C,A.start,A.length,w);Hs.add(I),m=!0}switch(ne){case 100:case 199:if(C.impliedNodeFormat===1){A??(A=XE(C,l.pos)),Hs.add(Rd(C,A.start,A.length,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level)),m=!0;break}case 7:case 99:case 4:if(Ce>=4)break;default:A??(A=XE(C,l.pos));const w=Gx(l)?F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher:F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher;Hs.add(Rd(C,A.start,A.length,w)),m=!0;break}}}else{const C=zn(l);if(!Wb(C)){const A=XE(C,l.pos),w=Gx(l)?F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules:F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules,I=Rd(C,A.start,A.length,w);if(D&&D.kind!==176&&!(kd(D)&2)){const U=Tu(D,F.Did_you_mean_to_mark_this_function_as_async);Es(I,U)}Hs.add(I),m=!0}}return Gx(l)&&NMe(l)&&(gt(l,F.await_expressions_cannot_be_used_in_a_parameter_initializer),m=!0),m}function Rai(l){s(()=>Tmt(l));const m=Fa(l.expression),D=MW(m,!0,l,F.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);return D===m&&!Nt(D)&&!(m.flags&3)&&n1(!1,Tu(l,F.await_has_no_effect_on_the_type_of_this_expression)),D}function Oai(l){const m=Fa(l.operand);if(m===Va)return Va;switch(l.operand.kind){case 9:switch(l.operator){case 41:return Z9(wg(-l.operand.text));case 40:return Z9(wg(+l.operand.text))}break;case 10:if(l.operator===41)return Z9(Hge({negative:!0,base10Value:BP(l.operand.text)}))}switch(l.operator){case 40:case 41:case 55:return FE(m,l.operand),pie(m,12288)&>(l.operand,F.The_0_operator_cannot_be_applied_to_type_symbol,qo(l.operator)),l.operator===40?(pie(m,2112)&>(l.operand,F.Operator_0_cannot_be_applied_to_type_1,qo(l.operator),gn(kD(m))),Qt):xze(m);case 54:Ize(m,l.operand);const D=Nz(m,12582912);return D===4194304?Ui:D===8388608?du:Er;case 46:case 47:return GEe(l.operand,FE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&wW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xze(m)}return Ot}function jai(l){const m=Fa(l.operand);return m===Va?Va:(GEe(l.operand,FE(m,l.operand),F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type)&&wW(l.operand,F.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access,F.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access),xze(m))}function xze(l){return jl(l,2112)?r1(l,3)||jl(l,296)?Qa:Ti:Qt}function pie(l,m){if(jl(l,m))return!0;const D=xD(l);return!!D&&jl(D,m)}function jl(l,m){if(l.flags&m)return!0;if(l.flags&3145728){const D=l.types;for(const C of D)if(jl(C,m))return!0}return!1}function r1(l,m,D){return l.flags&m?!0:D&&l.flags&114691?!1:!!(m&296)&&ms(l,Qt)||!!(m&2112)&&ms(l,Ti)||!!(m&402653316)&&ms(l,ct)||!!(m&528)&&ms(l,Er)||!!(m&16384)&&ms(l,da)||!!(m&131072)&&ms(l,Wu)||!!(m&65536)&&ms(l,it)||!!(m&32768)&&ms(l,te)||!!(m&4096)&&ms(l,er)||!!(m&67108864)&&ms(l,os)}function gie(l,m,D){return l.flags&1048576?ye(l.types,C=>gie(C,m,D)):r1(l,m,D)}function JEe(l){return!!(Ju(l)&16)&&!!l.symbol&&vze(l.symbol)}function vze(l){return(l.flags&128)!==0}function Cze(l){const m=E4t("hasInstance"),D=yC(l,m);if(D){const C=Wn(D);if(C&&Eo(C,0).length!==0)return C}}function Vai(l,m,D,C,A){if(D===Va||C===Va)return Va;!nt(D)&&gie(D,402784252)&>(l,F.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter),H.assert(Wq(l.parent));const w=mT(l.parent,void 0,A);if(w===Gu)return Va;const I=Ys(w);return Bh(I,Er,m,F.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),Er}function Hai(l){return kE(l,m=>m===Il||!!(m.flags&2097152)&&yD(xD(m)))}function Kai(l,m,D,C){if(D===Va||C===Va)return Va;if(ea(l)){if(Ce<99&&ad(l,2097152),!sr(l).resolvedSymbol&&Qd(l)){const A=YMe(l,C.symbol,!0);Oft(l,C,A)}}else Bh(FE(D,l),Fn,l);return Bh(FE(C,m),os,m)&&Hai(C)&>(m,F.Type_0_may_represent_a_primitive_value_which_is_not_permitted_as_the_right_operand_of_the_in_operator,gn(C)),Er}function Wai(l,m,D){const C=l.properties;if(fe&&C.length===0)return FE(m,l);for(let A=0;Ayz(ce,D)):H1(C);return LF(U,Z,A)}}}}function LF(l,m,D,C){let A;if(l.kind===304){const w=l;w.objectAssignmentInitializer&&(fe&&!pp(Fa(w.objectAssignmentInitializer),16777216)&&(m=gp(m,524288)),qai(w.name,w.equalsToken,w.objectAssignmentInitializer,D)),A=l.name}else A=l;return A.kind===226&&A.operatorToken.kind===64&&(Ke(A,D),A=A.left,fe&&(m=gp(m,524288))),A.kind===210?Wai(A,m,C):A.kind===209?Gai(A,m,D):Jai(A,m,D)}function Jai(l,m,D){const C=Fa(l,D),A=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access:F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,w=l.parent.kind===305?F.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access:F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;return wW(l,A,w)&&A6(m,C,l,l),T8(l)&&ad(l.parent,1048576),m}function Eie(l){switch(l=l0(l),l.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 Eie(l.whenTrue)&&Eie(l.whenFalse);case 226:return u5(l.operatorToken.kind)?!1:Eie(l.left)&&Eie(l.right);case 224:case 225:switch(l.operator){case 54:case 40:case 41:case 55:return!0}return!1;case 222:case 216:case 234:default:return!1}}function bze(l,m){return(m.flags&98304)!==0||Yge(l,m)}function $ai(){const l=AY(m,D,C,A,w,I);return($e,ut)=>{const zt=l($e,ut);return H.assertIsDefined(zt),zt};function m($e,ut,zt){return ut?(ut.stackIndex++,ut.skip=!1,ce(ut,void 0),Te(ut,void 0)):ut={checkMode:zt,skip:!1,stackIndex:0,typeStack:[void 0,void 0]},Xn($e)&&l7($e)?(ut.skip=!0,Te(ut,Fa($e.right,zt)),ut):(Uai($e),$e.operatorToken.kind===64&&($e.left.kind===210||$e.left.kind===209)&&(ut.skip=!0,Te(ut,LF($e.left,Fa($e.right,zt),zt,$e.right.kind===110))),ut)}function D($e,ut,zt){if(!ut.skip)return U(ut,$e)}function C($e,ut,zt){if(!ut.skip){const gi=Fe(ut);H.assertIsDefined(gi),ce(ut,gi),Te(ut,void 0);const Wi=$e.kind;if(Gj(Wi)){let dn=zt.parent;for(;dn.kind===217||Jj(dn);)dn=dn.parent;(Wi===56||xk(dn))&&zze(zt.left,gi,xk(dn)?dn.thenStatement:void 0),Ize(gi,zt.left)}}}function A($e,ut,zt){if(!ut.skip)return U(ut,$e)}function w($e,ut){let zt;if(ut.skip)zt=Fe(ut);else{const gi=Z(ut);H.assertIsDefined(gi);const Wi=Fe(ut);H.assertIsDefined(Wi),zt=Pmt($e.left,$e.operatorToken,$e.right,gi,Wi,ut.checkMode,$e)}return ut.skip=!1,ce(ut,void 0),Te(ut,void 0),ut.stackIndex--,zt}function I($e,ut,zt){return Te($e,ut),$e}function U($e,ut){if(eu(ut))return ut;Te($e,Fa(ut,$e.checkMode))}function Z($e){return $e.typeStack[$e.stackIndex]}function ce($e,ut){$e.typeStack[$e.stackIndex]=ut}function Fe($e){return $e.typeStack[$e.stackIndex+1]}function Te($e,ut){$e.typeStack[$e.stackIndex+1]=ut}}function Uai(l){const{left:m,operatorToken:D,right:C}=l;D.kind===61&&(eu(m)&&(m.operatorToken.kind===57||m.operatorToken.kind===56)&&Zi(m,F._0_and_1_operations_cannot_be_mixed_without_parentheses,qo(m.operatorToken.kind),qo(D.kind)),eu(C)&&(C.operatorToken.kind===57||C.operatorToken.kind===56)&&Zi(C,F._0_and_1_operations_cannot_be_mixed_without_parentheses,qo(C.operatorToken.kind),qo(D.kind)))}function qai(l,m,D,C,A){const w=m.kind;if(w===64&&(l.kind===210||l.kind===209))return LF(l,Fa(D,C),C,D.kind===110);let I;Gj(w)?I=Wz(l,C):I=Fa(l,C);const U=Fa(D,C);return Pmt(l,m,D,I,U,C,A)}function Pmt(l,m,D,C,A,w,I){const U=m.kind;switch(U){case 42:case 43:case 67:case 68:case 44:case 69:case 45:case 70:case 41:case 66:case 48:case 71:case 49:case 72:case 50:case 73:case 52:case 75:case 53:case 79:case 51:case 74:if(C===Va||A===Va)return Va;C=FE(C,l),A=FE(A,D);let Ri;if(C.flags&528&&A.flags&528&&(Ri=$e(m.kind))!==void 0)return gt(I||m,F.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead,qo(m.kind),qo(Ri)),Qt;{const An=GEe(l,C,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0),_n=GEe(D,A,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type,!0);let hu;if(r1(C,3)&&r1(A,3)||!(jl(C,2112)||jl(A,2112)))hu=Qt;else if(Z(C,A)){switch(U){case 50:case 73:Wi();break;case 43:case 68:Ce<3&>(I,F.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later)}hu=Ti}else Wi(Z),hu=Ot;return An&&_n&&ut(hu),hu}case 40:case 65:if(C===Va||A===Va)return Va;!r1(C,402653316)&&!r1(A,402653316)&&(C=FE(C,l),A=FE(A,D));let Nn;return r1(C,296,!0)&&r1(A,296,!0)?Nn=Qt:r1(C,2112,!0)&&r1(A,2112,!0)?Nn=Ti:r1(C,402653316,!0)||r1(A,402653316,!0)?Nn=ct:(nt(C)||nt(A))&&(Nn=Nt(C)||Nt(A)?Ot:me),Nn&&!Te(U)?Nn:Nn?(U===65&&ut(Nn),Nn):(Wi((_n,hu)=>r1(_n,402655727)&&r1(hu,402655727)),me);case 30:case 32:case 33:case 34:return Te(U)&&(C=XPe(FE(C,l)),A=XPe(FE(A,D)),gi((An,_n)=>{if(nt(An)||nt(_n))return!0;const hu=ms(An,Qa),oo=ms(_n,Qa);return hu&&oo||!hu&&!oo&&Mte(An,_n)})),Er;case 35:case 36:case 37:case 38:if(!(w&&w&64)){if((qse(l)||qse(D))&&(!Xn(l)||U===37||U===38)){const An=U===35||U===37;gt(I,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value,An?"false":"true")}nu(I,U,l,D),gi((An,_n)=>bze(An,_n)||bze(_n,An))}return Er;case 104:return Vai(l,D,C,A,w);case 103:return Kai(l,D,C,A);case 56:case 77:{const An=pp(C,4194304)?tr([zii(fe?C:kD(A)),A]):C;return U===77&&ut(A),An}case 57:case 76:{const An=pp(C,8388608)?tr([FD(_ht(C)),A],2):C;return U===76&&ut(A),An}case 61:case 78:{const An=pp(C,262144)?tr([FD(C),A],2):C;return U===78&&ut(A),An}case 64:const vn=eu(l.parent)?ec(l.parent):0;return ce(vn,A),zt(vn)?((!(A.flags&524288)||vn!==2&&vn!==6&&!bD(A)&&!vMe(A)&&!(Ju(A)&1))&&ut(A),C):(ut(A),A);case 28:if(!ae.allowUnreachableCode&&Eie(l)&&!Fe(l.parent)){const An=zn(l),_n=An.text,hu=gs(_n,l.pos);An.parseDiagnostics.some(_o=>_o.code!==F.JSX_expressions_must_have_one_parent_element.code?!1:Mse(_o,hu))||gt(l,F.Left_side_of_comma_operator_is_unused_and_has_no_side_effects)}return A;default:return H.fail()}function Z(Ri,Nn){return r1(Ri,2112)&&r1(Nn,2112)}function ce(Ri,Nn){if(Ri===2)for(const vn of D6(Nn)){const An=Wn(vn);if(An.symbol&&An.symbol.flags&32){const _n=vn.escapedName,hu=rc(vn.valueDeclaration,_n,788968,void 0,_n,!1);hu!=null&&hu.declarations&&hu.declarations.some(PB)&&(kg(hu,F.Duplicate_identifier_0,Qr(_n),vn),kg(vn,F.Duplicate_identifier_0,Qr(_n),hu))}}}function Fe(Ri){return Ri.parent.kind===217&&Of(Ri.left)&&Ri.left.text==="0"&&(Mo(Ri.parent.parent)&&Ri.parent.parent.expression===Ri.parent||Ri.parent.parent.kind===215)&&(O0(Ri.right)||at(Ri.right)&&Ri.right.escapedText==="eval")}function Te(Ri){const Nn=pie(C,12288)?l:pie(A,12288)?D:void 0;return Nn?(gt(Nn,F.The_0_operator_cannot_be_applied_to_type_symbol,qo(Ri)),!1):!0}function $e(Ri){switch(Ri){case 52:case 75:return 57;case 53:case 79:return 38;case 51:case 74:return 56;default:return}}function ut(Ri){u5(U)&&s(Nn);function Nn(){let vn=C;if(pM(m.kind)&&l.kind===211&&(vn=NEe(l,void 0,!0)),wW(l,F.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)){let An;if(je&&Ru(l)&&jl(Ri,32768)){const _n=he(y1(l.expression),l.name.escapedText);Xge(Ri,_n)&&(An=F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target)}A6(Ri,vn,l,D,An)}}}function zt(Ri){var Nn;switch(Ri){case 2:return!0;case 1:case 5:case 6:case 3:case 4:const vn=Dm(l),An=l7(D);return!!An&&ys(An)&&!!((Nn=vn==null?void 0:vn.exports)!=null&&Nn.size);default:return!1}}function gi(Ri){return Ri(C,A)?!1:(Wi(Ri),!0)}function Wi(Ri){let Nn=!1;const vn=I||m;if(Ri){const _o=W5(C),mo=W5(A);Nn=!(_o===C&&mo===A)&&!!(_o&&mo)&&Ri(_o,mo)}let An=C,_n=A;!Nn&&Ri&&([An,_n]=Zai(C,A,Ri));const[hu,oo]=h6(An,_n);dn(vn,Nn,hu,oo)||kh(vn,Nn,F.Operator_0_cannot_be_applied_to_types_1_and_2,qo(m.kind),hu,oo)}function dn(Ri,Nn,vn,An){switch(m.kind){case 37:case 35:case 38:case 36:return kh(Ri,Nn,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap,vn,An);default:return}}function nu(Ri,Nn,vn,An){const _n=En(l0(vn)),hu=En(l0(An));if(_n||hu){const oo=gt(Ri,F.This_condition_will_always_return_0,qo(Nn===37||Nn===35?97:112));if(_n&&hu)return;const _o=Nn===38||Nn===36?qo(54):"",mo=_n?An:vn,Aa=l0(mo);Es(oo,Tu(mo,F.Did_you_mean_0,`${_o}Number.isNaN(${tc(Aa)?zf(Aa):"..."})`))}}function En(Ri){if(at(Ri)&&Ri.escapedText==="NaN"){const Nn=Hei();return!!Nn&&Nn===Yp(Ri)}return!1}}function Zai(l,m,D){let C=l,A=m;const w=kD(l),I=kD(m);return D(w,I)||(C=w,A=I),[C,A]}function Yai(l){s($e);const m=Pm(l);if(!m)return me;const D=kd(m);if(!(D&1))return me;const C=(D&2)!==0;l.asteriskToken&&(C&&Ce<99&&ad(l,26624),!C&&Ce<2&&ae.downlevelIteration&&ad(l,256));let A=uT(m);A&&A.flags&1048576&&(A=Oc(A,ut=>Aze(ut,D,void 0)));const w=A&&C4t(A,C),I=w&&w.yieldType||me,U=w&&w.nextType||me,Z=C?NF(U)||me:U,ce=l.expression?Fa(l.expression):we,Fe=ymt(l,ce,Z,C);if(A&&Fe&&A6(Fe,I,l.expression||l,l.expression),l.asteriskToken)return Oze(C?19:17,1,ce,l.expression)||me;if(A)return Kb(2,A,C)||me;let Te=cft(2,m);return Te||(Te=me,s(()=>{if(Ae&&!kke(l)){const ut=hf(l,void 0);(!ut||nt(ut))&>(l,F.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation)}})),Te;function $e(){l.flags&16384||a1(l,F.A_yield_expression_is_only_allowed_in_a_generator_body),NMe(l)&>(l,F.yield_expressions_cannot_be_used_in_a_parameter_initializer)}}function Qai(l,m){const D=Wz(l.condition,m);zze(l.condition,D,l.whenTrue);const C=Fa(l.whenTrue,m),A=Fa(l.whenFalse,m);return tr([C,A],2)}function Mmt(l){const m=l.parent;return Cf(m)&&Mmt(m)||q0(m)&&m.argumentExpression===l}function Xai(l){const m=[l.head.text],D=[];for(const A of l.templateSpans){const w=Fa(A.expression);pie(w,12288)&>(A.expression,F.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String),m.push(A.literal.text),D.push(ms(w,c0)?w:ct)}if(Oz(l)||Mmt(l)||kE(hf(l,void 0)||on,eoi))return xF(m,D);const C=l.parent.kind!==215&&I4t(l);return C?Z9(df(C)):ct}function eoi(l){return!!(l.flags&134217856||l.flags&58982400&&jl(Gh(l)||on,402653316))}function toi(l){return G2(l)&&!bk(l.parent)?l.parent.parent:l}function pT(l,m,D,C){const A=toi(l);Qte(A,m,!1),bui(A,D);const w=Fa(l,C|1|(D?2:0));D&&D.intraExpressionInferenceSites&&(D.intraExpressionInferenceSites=void 0);const I=jl(w,2944)&&$Ee(w,SEe(m,l,void 0))?$h(w):w;return yui(),yW(),I}function jc(l,m){if(m)return Fa(l,m);const D=sr(l);if(!D.resolvedType){const C=Xe,A=bn;Xe=xt,bn=void 0,D.resolvedType=Fa(l,m),bn=A,Xe=C}return D.resolvedType}function zmt(l){return l=l0(l,!0),l.kind===216||l.kind===234||iM(l)}function TW(l,m,D){const C=xj(l);if(Xn(l)){const w=_Z(l);if(w)return hze(C,w,m)}const A=Fze(C)||(D?pT(C,D,void 0,m||0):jc(C,m));return io(l)&&l.name.kind===207&&xs(A)&&!A.target.hasRestElement&&O5(A)$Ee(l,C))}if(m.flags&58982400){const D=Gh(m)||on;return jl(D,4)&&jl(l,128)||jl(D,8)&&jl(l,256)||jl(D,64)&&jl(l,2048)||jl(D,4096)&&jl(l,8192)||$Ee(l,D)}return!!(m.flags&406847616&&jl(l,128)||m.flags&256&&jl(l,256)||m.flags&2048&&jl(l,2048)||m.flags&512&&jl(l,512)||m.flags&8192&&jl(l,8192))}return!1}function Oz(l){const m=l.parent;return Yy(m)&&q3(m.type)||iM(m)&&q3(bY(m))||dze(l)&&W9(hf(l,0))||(Cf(m)||vh(m)||rE(m))&&Oz(m)||(Uc(m)||pm(m)||ZP(m))&&Oz(m.parent)}function jz(l,m,D){const C=Fa(l,m,D);return Oz(l)||Qbe(l)?$h(C):zmt(l)?C:eMe(C,SEe(hf(l,void 0),l,void 0))}function Imt(l,m){return l.name.kind===167&&A3(l.name),jz(l.initializer,m)}function Rmt(l,m){cpt(l),l.name.kind===167&&A3(l.name);const D=Bmt(l,m);return Omt(l,D,m)}function Omt(l,m,D){if(D&&D&10){const C=FW(m,0,!0),A=FW(m,1,!0),w=C||A;if(w&&w.typeParameters){const I=zC(l,2);if(I){const U=FW(FD(I),C?0:1,!1);if(U&&!U.typeParameters){if(D&8)return jmt(l,D),Oi;const Z=Vb(l),ce=Z.signature&&Ys(Z.signature),Fe=ce&&Uft(ce);if(Fe&&!Fe.typeParameters&&!ye(Z.inferences,gT)){const Te=aoi(Z,w.typeParameters),$e=aPe(w,Te),ut=Vt(Z.inferences,zt=>oMe(zt.typeParameter));if(nMe($e,U,(zt,gi)=>{AD(ut,zt,gi,0,!0)}),Ge(ut,gT)&&(uMe($e,U,(zt,gi)=>{AD(ut,zt,gi)}),!uoi(Z.inferences,ut)))return roi(Z.inferences,ut),Z.inferredTypeParameters=mi(Z.inferredTypeParameters,Te),DF($e)}return DF(qft(w,U,Z))}}}}return m}function jmt(l,m){if(m&2){const D=Vb(l);D.flags|=4}}function gT(l){return!!(l.candidates||l.contraCandidates)}function noi(l){return!!(l.candidates||l.contraCandidates||wdt(l.typeParameter))}function uoi(l,m){for(let D=0;DD.symbol.escapedName===m)}function ooi(l,m){let D=m.length;for(;D>1&&m.charCodeAt(D-1)>=48&&m.charCodeAt(D-1)<=57;)D--;const C=m.slice(0,D);for(let A=1;;A++){const w=C+A;if(!kze(l,w))return w}}function Vmt(l){const m=wF(l);if(m&&!m.typeParameters)return Ys(m)}function soi(l){const m=Fa(l.expression),D=EW(m,l.expression),C=Vmt(m);return C&&cEe(C,l,D!==m)}function y1(l){const m=Fze(l);if(m)return m;if(l.flags&268435456&&bn){const A=bn[Us(l)];if(A)return A}const D=Xi,C=Fa(l,64);if(Xi!==D){const A=bn||(bn=[]);A[Us(l)]=C,yke(l,l.flags|268435456)}return C}function Fze(l){let m=l0(l,!0);if(iM(m)){const D=bY(m);if(!q3(D))return Br(D)}if(m=l0(l),Gx(m)){const D=Fze(m.expression);return D?NF(D):void 0}if(Mo(m)&&m.expression.kind!==108&&!xf(m,!0)&&!smt(m))return $y(m)?soi(m):Vmt(hT(m.expression));if(Yy(m)&&!q3(m.type))return Br(m.type);if(_2(l)||KN(l))return Fa(l)}function _ie(l){const m=sr(l);if(m.contextFreeType)return m.contextFreeType;Qte(l,me,!1);const D=m.contextFreeType=Fa(l,4);return yW(),D}function Fa(l,m,D){var C,A;(C=Gn)==null||C.push(Gn.Phase.Check,"checkExpression",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const w=K;K=l,z=0;const I=doi(l,m,D),U=Omt(l,I,m);return JEe(U)&&loi(l,U),K=w,(A=Gn)==null||A.pop(),U}function loi(l,m){l.parent.kind===211&&l.parent.expression===l||l.parent.kind===212&&l.parent.expression===l||(l.kind===80||l.kind===166)&&o_e(l)||l.parent.kind===186&&l.parent.exprName===l||l.parent.kind===281||gt(l,F.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),mg(ae)&&(H.assert(!!(m.symbol.flags&128)),m.symbol.valueDeclaration.flags&33554432&&!Lv(l)&>(l,F.Cannot_access_ambient_const_enums_when_0_is_enabled,ft))}function coi(l,m){if(lm(l)){if(Ole(l))return hze(l.expression,jle(l),m);if(iM(l))return hmt(l,m)}return Fa(l.expression,m)}function doi(l,m,D){const C=l.kind;if(d)switch(C){case 231:case 218:case 219:d.throwIfCancellationRequested()}switch(C){case 80:return Jni(l,m);case 81:return lri(l);case 110:return Zte(l);case 108:return TMe(l);case 106:return Ct;case 15:case 11:return hMe(l)?pt:Z9(df(l.text));case 9:return aIe(l),Z9(wg(+l.text));case 10:return hci(l),Z9(Hge({negative:!1,base10Value:BP(l.text)}));case 112:return du;case 97:return Ui;case 228:return Xai(l);case 14:return Ll;case 209:return _ft(l,m,D);case 210:return Vui(l,m);case 211:return NEe(l,m);case 166:return Pft(l,m);case 212:return kri(l,m);case 213:if(l.expression.kind===102)return iai(l);case 214:return tai(l,m);case 215:return nai(l);case 217:return coi(l,m);case 231:return Qsi(l);case 218:case 219:return Bmt(l,m);case 221:return zai(l);case 216:case 234:return uai(l,m);case 235:return oai(l);case 233:return mmt(l);case 238:return sai(l);case 236:return lai(l);case 220:return Pai(l);case 222:return Iai(l);case 223:return Rai(l);case 224:return Oai(l);case 225:return jai(l);case 226:return Ke(l,m);case 227:return Qai(l,m);case 230:return Mui(l,m);case 232:return we;case 229:return Yai(l);case 237:return zui(l);case 294:return iri(l,m);case 284:return Gui(l);case 285:return Kui(l);case 288:return Jui(l);case 292:return Uui(l,m);case 286:H.fail("Shouldn't ever directly check a JsxOpeningElement")}return Ot}function Hmt(l){B3(l),l.expression&&a1(l.expression,F.Type_expected),cs(l.constraint),cs(l.default);const m=gF(Du(l));Gh(m),UXt(m)||gt(l.default,F.Type_parameter_0_has_a_circular_default,gn(m));const D=ah(m),C=_F(m);D&&C&&Bh(C,xm(Da(D,zb(m,C)),C),l.default,F.Type_0_does_not_satisfy_the_constraint_1),eS(l),s(()=>Gz(l.name,F.Type_parameter_name_cannot_be_0))}function hoi(l){var m,D;if(Ch(l.parent)||gr(l.parent)||Vp(l.parent)){const C=gF(Du(l)),A=UPe(C)&24576;if(A){const w=Du(l.parent);if(Vp(l.parent)&&!(Ju(el(w))&48))gt(l,F.Variance_annotations_are_only_supported_in_type_aliases_for_object_function_constructor_and_mapped_types);else if(A===8192||A===16384){(m=Gn)==null||m.push(Gn.Phase.CheckTypes,"checkTypeParameterDeferred",{parent:Sh(el(w)),id:Sh(C)});const I=Rte(w,C,A===16384?tt:$),U=Rte(w,C,A===16384?$:tt),Z=C;Y=C,Bh(I,U,l,F.Type_0_is_not_assignable_to_type_1_as_implied_by_variance_annotation),Y=Z,(D=Gn)==null||D.pop()}}}}function Kmt(l){B3(l),bie(l);const m=Pm(l);Qu(l,31)&&(m.kind===176&&W4(m.body)||gt(l,F.A_parameter_property_is_only_allowed_in_a_constructor_implementation),m.kind===176&&at(l.name)&&l.name.escapedText==="constructor"&>(l.name,F.constructor_cannot_be_used_as_a_parameter_property_name)),!l.initializer&&MP(l)&&So(l.name)&&m.body&>(l,F.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature),l.name&&at(l.name)&&(l.name.escapedText==="this"||l.name.escapedText==="new")&&(m.parameters.indexOf(l)!==0&>(l,F.A_0_parameter_must_be_the_first_parameter,l.name.escapedText),(m.kind===176||m.kind===180||m.kind===185)&>(l,F.A_constructor_cannot_have_a_this_parameter),m.kind===219&>(l,F.An_arrow_function_cannot_have_a_this_parameter),(m.kind===177||m.kind===178)&>(l,F.get_and_set_accessors_cannot_declare_this_parameters)),l.dotDotDotToken&&!So(l.name)&&!ms(Sg(Wn(l.symbol)),up)&>(l,F.A_rest_parameter_must_be_of_an_array_type)}function foi(l){const m=moi(l);if(!m){gt(l,F.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return}const D=fp(m),C=A4(D);if(!C)return;cs(l.type);const{parameterName:A}=l;if(C.kind===0||C.kind===2)Kge(A);else if(C.parameterIndex>=0){if(ih(D)&&C.parameterIndex===D.parameters.length-1)gt(A,F.A_type_predicate_cannot_reference_a_rest_parameter);else if(C.type){const w=()=>ro(void 0,F.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);Bh(C.type,Wn(D.parameters[C.parameterIndex]),l.type,void 0,w)}}else if(A){let w=!1;for(const{name:I}of m.parameters)if(So(I)&&Wmt(I,A,C.parameterName)){w=!0;break}w||gt(l.parameterName,F.Cannot_find_parameter_0,C.parameterName)}}function moi(l){switch(l.parent.kind){case 219:case 179:case 262:case 218:case 184:case 174:case 173:const m=l.parent;if(l===m.type)return m}}function Wmt(l,m,D){for(const C of l.elements){if(Fd(C))continue;const A=C.name;if(A.kind===80&&A.escapedText===D)return gt(m,F.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern,D),!0;if((A.kind===207||A.kind===206)&&Wmt(A,m,D))return!0}}function LW(l){l.kind===181?jli(l):(l.kind===184||l.kind===262||l.kind===185||l.kind===179||l.kind===176||l.kind===180)&&f_e(l);const m=kd(l);m&4||((m&3)===3&&Ce<99&&ad(l,6144),(m&3)===2&&Ce<4&&ad(l,64),m&3&&Ce<2&&ad(l,128)),Fie(Sx(l)),qsi(l),L(l.parameters,Kmt),l.type&&cs(l.type),s(D);function D(){hsi(l);let C=Z4(l),A=C;if(Xn(l)){const w=vv(l);if(w&&w.typeExpression&&tp(w.typeExpression.type)){const I=wF(Br(w.typeExpression));I&&I.declaration&&(C=Z4(I.declaration),A=w.typeExpression.type)}}if(Ae&&!C)switch(l.kind){case 180:gt(l,F.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break;case 179:gt(l,F.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);break}if(C&&A){const w=kd(l);if((w&5)===1){const I=Br(C);I===da?gt(A,F.A_generator_cannot_have_a_void_type_annotation):Aze(I,w,A)}else(w&3)===2&&Goi(l,C,A)}l.kind!==181&&l.kind!==324&&T6(l)}}function Aze(l,m,D){const C=Kb(0,l,(m&2)!==0)||me,A=Kb(1,l,(m&2)!==0)||C,w=Kb(2,l,(m&2)!==0)||on,I=bmt(C,A,w,!!(m&2));return Bh(I,l,D)}function poi(l){const m=new Map,D=new Map,C=new Map;for(const w of l.members)if(w.kind===176)for(const I of w.parameters)Mf(I,w)&&!So(I.name)&&A(m,I.name,I.name.escapedText,3);else{const I=No(w),U=w.name;if(!U)continue;const Z=ea(U),ce=Z&&I?16:0,Fe=Z?C:I?D:m,Te=U&&oIe(U);if(Te)switch(w.kind){case 177:A(Fe,U,Te,1|ce);break;case 178:A(Fe,U,Te,2|ce);break;case 172:A(Fe,U,Te,3|ce);break;case 174:A(Fe,U,Te,8|ce);break}}function A(w,I,U,Z){const ce=w.get(U);if(ce)if((ce&16)!==(Z&16))gt(I,F.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name,Wc(I));else{const Fe=!!(ce&8),Te=!!(Z&8);Fe||Te?Fe!==Te&>(I,F.Duplicate_identifier_0,Wc(I)):ce&Z&-17?gt(I,F.Duplicate_identifier_0,Wc(I)):w.set(U,ce|Z)}else w.set(U,Z)}}function goi(l){for(const m of l.members){const D=m.name;if(No(m)&&D){const A=oIe(D);switch(A){case"name":case"length":case"caller":case"arguments":if(Se)break;case"prototype":const w=F.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1,I=D_(Du(l));gt(D,w,A,I);break}}}}function Gmt(l){const m=new Map;for(const D of l.members)if(D.kind===171){let C;const A=D.name;switch(A.kind){case 11:case 9:C=A.text;break;case 80:C=fu(A);break;default:continue}m.get(C)?(gt(Ya(D.symbol.valueDeclaration),F.Duplicate_identifier_0,C),gt(D.name,F.Duplicate_identifier_0,C)):m.set(C,!0)}}function Sze(l){if(l.kind===264){const D=Du(l);if(D.declarations&&D.declarations.length>0&&D.declarations[0]!==l)return}const m=jdt(Du(l));if(m!=null&&m.declarations){const D=new Map;for(const C of m.declarations)C.parameters.length===1&&C.parameters[0].type&&FF(Br(C.parameters[0].type),A=>{const w=D.get(Sh(A));w?w.declarations.push(C):D.set(Sh(A),{type:A,declarations:[C]})});D.forEach(C=>{if(C.declarations.length>1)for(const A of C.declarations)gt(A,F.Duplicate_index_signature_for_type_0,gn(C.type))})}}function Jmt(l){!B3(l)&&!sci(l)&&m_e(l.name),bie(l),Bze(l),Qu(l,64)&&l.kind===172&&l.initializer&>(l,F.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract,k0(l.name))}function Eoi(l){return ea(l.name)&>(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),Jmt(l)}function _oi(l){cpt(l)||m_e(l.name),hc(l)&&l.asteriskToken&&at(l.name)&&fu(l.name)==="constructor"&>(l.name,F.Class_constructor_may_not_be_a_generator),r4t(l),Qu(l,64)&&l.kind===174&&l.body&>(l,F.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract,k0(l.name)),ea(l.name)&&!Qd(l)&>(l,F.Private_identifiers_are_not_allowed_outside_class_bodies),Bze(l)}function Bze(l){if(ea(l.name)&&Ce<99){for(let m=QE(l);m;m=QE(m))sr(m).flags|=1048576;if(e1(l.parent)){const m=AMe(l.parent);m&&(sr(l.name).flags|=32768,sr(m).flags|=4096)}}}function Doi(l){B3(l),ao(l,cs)}function xoi(l){LW(l),aci(l)||oci(l),cs(l.body);const m=Du(l),D=Bl(m,l.kind);if(l===D&&ZEe(m),Xl(l.body))return;s(A);return;function C(w){return Eh(w)?!0:w.kind===172&&!No(w)&&!!w.initializer}function A(){const w=l.parent;if(w2(w)){SMe(l.parent,w);const I=BMe(w),U=ift(l.body);if(U){if(I&>(U,F.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null),!Ne&&(Ge(l.parent.members,C)||Ge(l.parameters,ce=>Qu(ce,31))))if(!voi(U,l.body))gt(U,F.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{let ce;for(const Fe of l.body.statements){if(Od(Fe)&&ik(vc(Fe.expression))){ce=Fe;break}if($mt(Fe))break}ce===void 0&>(l,F.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 I||gt(l,F.Constructors_for_derived_classes_must_contain_a_super_call)}}}function voi(l,m){const D=i5(l.parent);return Od(D)&&D.parent===m}function $mt(l){return l.kind===108||l.kind===110?!0:rye(l)?!1:!!ao(l,$mt)}function Umt(l){at(l.name)&&fu(l.name)==="constructor"&&gr(l.parent)&>(l.name,F.Class_constructor_may_not_be_an_accessor),s(m),cs(l.body),Bze(l);function m(){if(!f_e(l)&&!qli(l)&&m_e(l.name),xie(l),LW(l),l.kind===177&&!(l.flags&33554432)&&W4(l.body)&&l.flags&512&&(l.flags&1024||gt(l.name,F.A_get_accessor_must_return_a_value)),l.name.kind===167&&A3(l.name),iT(l)){const C=Du(l),A=Bl(C,177),w=Bl(C,178);if(A&&w&&!(DT(A)&1)){sr(A).flags|=1;const I=Dh(A),U=Dh(w);(I&64)!==(U&64)&&(gt(A.name,F.Accessors_must_both_be_abstract_or_non_abstract),gt(w.name,F.Accessors_must_both_be_abstract_or_non_abstract)),(I&4&&!(U&6)||I&2&&!(U&2))&&(gt(A.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter),gt(w.name,F.A_get_accessor_must_be_at_least_as_accessible_as_the_setter))}}const D=CC(Du(l));l.kind===177&&Dze(l,D)}}function Coi(l){xie(l)}function boi(l,m,D){return l.typeArguments&&D{const C=wze(l);C&&qmt(l,C)});const D=sr(l).resolvedSymbol;D&&Ge(D.declarations,C=>gB(C)&&!!(C.flags&536870912))&&p3(cie(l),D.declarations,D.escapedName)}}function koi(l){const m=ar(l.parent,qU);if(!m)return;const D=wze(m);if(!D)return;const C=ah(D[m.typeArguments.indexOf(l)]);return C&&Da(C,Sf(D,UEe(m,D)))}function Foi(l){Ydt(l)}function Aoi(l){L(l.members,cs),s(m);function m(){const D=R1t(l);n_e(D,D.symbol),Sze(l),Gmt(l)}}function Soi(l){cs(l.elementType)}function Boi(l){const m=l.elements;let D=!1,C=!1;for(const A of m){const w=EPe(A);if(w&8){const I=Br(A.type);if(!H5(I)){gt(A,F.A_rest_element_type_must_be_an_array_type);break}(w4(I)||xs(I)&&I.target.combinedFlags&4)&&(C=!0)}else if(w&4){if(C){Zi(A,F.A_rest_element_cannot_follow_another_rest_element);break}C=!0}else if(w&2){if(C){Zi(A,F.An_optional_element_cannot_follow_a_rest_element);break}D=!0}else if(D){Zi(A,F.A_required_element_cannot_follow_an_optional_element);break}}L(l.elements,cs),Br(l)}function woi(l){L(l.types,cs),Br(l)}function Ymt(l,m){if(!(l.flags&8388608))return l;const D=l.objectType,C=l.indexType;if(ms(C,F_(D,0)))return m.kind===212&&X_(m)&&Ju(D)&32&&b_(D)&1&>(m,F.Index_signature_in_type_0_only_permits_reading,gn(D)),l;const A=Jh(D);if(F3(A,Qt)&&r1(C,296))return l;if(Nb(D)){const w=Rge(C,m);if(w){const I=FF(A,U=>Zo(U,w));if(I&&h4(I)&6)return gt(m,F.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter,Qr(w)),Ot}}return gt(m,F.Type_0_cannot_be_used_to_index_type_1,gn(C),gn(D)),Ot}function Toi(l){cs(l.objectType),cs(l.indexType),Ymt(L1t(l),l)}function Loi(l){Noi(l),cs(l.typeParameter),cs(l.nameType),cs(l.type),l.type||NC(l,me);const m=BPe(l),D=I5(m);if(D)Bh(D,bc,l.nameType);else{const C=hp(m);Bh(C,bc,w8(l.typeParameter))}}function Noi(l){var m;if((m=l.members)!=null&&m.length)return Zi(l.members[0],F.A_mapped_type_may_not_declare_properties_or_methods)}function Poi(l){Kge(l)}function Moi(l){Yli(l),cs(l.type)}function zoi(l){ao(l,cs)}function Ioi(l){Tn(l,D=>D.parent&&D.parent.kind===194&&D.parent.extendsType===D)||Zi(l,F.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type),cs(l.typeParameter);const m=Du(l.typeParameter);if(m.declarations&&m.declarations.length>1){const D=qr(m);if(!D.typeParametersChecked){D.typeParametersChecked=!0;const C=gF(m),A=Abe(m,168);if(!F4t(A,[C],w=>[w])){const w=Sr(m);for(const I of A)gt(I.name,F.All_declarations_of_0_must_have_identical_constraints,w)}}}T6(l)}function Roi(l){for(const m of l.templateSpans){cs(m.type);const D=Br(m.type);Bh(D,c0,m.type)}Br(l)}function Ooi(l){cs(l.argument),l.attributes&&qB(l.attributes,Zi),Zmt(l)}function joi(l){l.dotDotDotToken&&l.questionToken&&Zi(l,F.A_tuple_member_cannot_be_both_optional_and_rest),l.type.kind===190&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type),l.type.kind===191&&Zi(l.type,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type),cs(l.type),Br(l)}function Die(l){return(Rf(l,2)||Eh(l))&&!!(l.flags&33554432)}function qEe(l,m){let D=p_e(l);if(l.parent.kind!==264&&l.parent.kind!==263&&l.parent.kind!==231&&l.flags&33554432){const C=y0e(l);C&&C.flags&128&&!(D&128)&&!(aE(l.parent)&&xc(l.parent.parent)&&Qg(l.parent.parent))&&(D|=32),D|=128}return D&m}function ZEe(l){s(()=>Voi(l))}function Voi(l){function m(Ri,Nn){return Nn!==void 0&&Nn.parent===Ri[0].parent?Nn:Ri[0]}function D(Ri,Nn,vn,An,_n){if((An^_n)!==0){const oo=qEe(m(Ri,Nn),vn);L(Ri,_o=>{const mo=qEe(_o,vn)^oo;mo&32?gt(Ya(_o),F.Overload_signatures_must_all_be_exported_or_non_exported):mo&128?gt(Ya(_o),F.Overload_signatures_must_all_be_ambient_or_non_ambient):mo&6?gt(Ya(_o)||_o,F.Overload_signatures_must_all_be_public_private_or_protected):mo&64&>(Ya(_o),F.Overload_signatures_must_all_be_abstract_or_non_abstract)})}}function C(Ri,Nn,vn,An){if(vn!==An){const _n=d7(m(Ri,Nn));L(Ri,hu=>{d7(hu)!==_n&>(Ya(hu),F.Overload_signatures_must_all_be_optional_or_required)})}}const A=230;let w=0,I=A,U=!1,Z=!0,ce=!1,Fe,Te,$e;const ut=l.declarations,zt=(l.flags&16384)!==0;function gi(Ri){if(Ri.name&&Xl(Ri.name))return;let Nn=!1;const vn=ao(Ri.parent,_n=>{if(Nn)return _n;Nn=_n===Ri});if(vn&&vn.pos===Ri.end&&vn.kind===Ri.kind){const _n=vn.name||vn,hu=vn.name;if(Ri.name&&hu&&(ea(Ri.name)&&ea(hu)&&Ri.name.escapedText===hu.escapedText||Ms(Ri.name)&&Ms(hu)&&CD(A3(Ri.name),A3(hu))||eE(Ri.name)&&eE(hu)&&sP(Ri.name)===sP(hu))){if((Ri.kind===174||Ri.kind===173)&&No(Ri)!==No(vn)){const _o=No(Ri)?F.Function_overload_must_be_static:F.Function_overload_must_not_be_static;gt(_n,_o)}return}if(W4(vn.body)){gt(_n,F.Function_implementation_name_must_be_0,k0(Ri.name));return}}const An=Ri.name||Ri;zt?gt(An,F.Constructor_implementation_is_missing):Qu(Ri,64)?gt(An,F.All_declarations_of_an_abstract_method_must_be_consecutive):gt(An,F.Function_implementation_is_missing_or_not_immediately_following_the_declaration)}let Wi=!1,dn=!1,nu=!1;const En=[];if(ut)for(const Ri of ut){const Nn=Ri,vn=Nn.flags&33554432,An=Nn.parent&&(Nn.parent.kind===264||Nn.parent.kind===187)||vn;if(An&&($e=void 0),(Nn.kind===263||Nn.kind===231)&&!vn&&(nu=!0),Nn.kind===262||Nn.kind===174||Nn.kind===173||Nn.kind===176){En.push(Nn);const _n=qEe(Nn,A);w|=_n,I&=_n,U=U||d7(Nn),Z=Z&&d7(Nn);const hu=W4(Nn.body);hu&&Fe?zt?dn=!0:Wi=!0:($e==null?void 0:$e.parent)===Nn.parent&&$e.end!==Nn.pos&&gi($e),hu?Fe||(Fe=Nn):ce=!0,$e=Nn,An||(Te=Nn)}if(Xn(Ri)&&Co(Ri)&&Ri.jsDoc){for(const _n of Ri.jsDoc)if(_n.tags)for(const hu of _n.tags)NB(hu)&&(ce=!0)}}if(dn&&L(En,Ri=>{gt(Ri,F.Multiple_constructor_implementations_are_not_allowed)}),Wi&&L(En,Ri=>{gt(Ya(Ri)||Ri,F.Duplicate_function_implementation)}),nu&&!zt&&l.flags&16&&ut){const Ri=ti(ut,Nn=>Nn.kind===263).map(Nn=>Tu(Nn,F.Consider_adding_a_declare_modifier_to_this_class));L(ut,Nn=>{const vn=Nn.kind===263?F.Class_declaration_cannot_implement_overload_list_for_0:Nn.kind===262?F.Function_with_bodies_can_only_merge_with_classes_that_are_ambient:void 0;vn&&Es(gt(Ya(Nn)||Nn,vn,cc(l)),...Ri)})}if(Te&&!Te.body&&!Qu(Te,64)&&!Te.questionToken&&gi(Te),ce&&(ut&&(D(ut,Fe,A,w,I),C(ut,Fe,U,Z)),Fe)){const Ri=Tb(l),Nn=fp(Fe);for(const vn of Ri)if(!dii(Nn,vn)){const An=vn.declaration&&jv(vn.declaration)?vn.declaration.parent.tagName:vn.declaration;Es(gt(An,F.This_overload_signature_is_not_compatible_with_its_implementation_signature),Tu(Fe,F.The_implementation_signature_is_declared_here));break}}}function NW(l){s(()=>Hoi(l))}function Hoi(l){let m=l.localSymbol;if(!m&&(m=Du(l),!m.exportSymbol)||Bl(m,l.kind)!==l)return;let D=0,C=0,A=0;for(const ce of m.declarations){const Fe=Z(ce),Te=qEe(ce,2080);Te&32?Te&2048?A|=Fe:D|=Fe:C|=Fe}const w=D|C,I=D&C,U=A&w;if(I||U)for(const ce of m.declarations){const Fe=Z(ce),Te=Ya(ce);Fe&U?gt(Te,F.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead,k0(Te)):Fe&I&>(Te,F.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local,k0(Te))}function Z(ce){let Fe=ce;switch(Fe.kind){case 264:case 265:case 353:case 345:case 347:return 2;case 267:return P1(Fe)||oD(Fe)!==0?5:4;case 263:case 266:case 306:return 3;case 312:return 7;case 277:case 226:const Te=Fe,$e=ic(Te)?Te.expression:Te.right;if(!tc($e))return 1;Fe=$e;case 271:case 274:case 273:let ut=0;const zt=md(Du(Fe));return L(zt.declarations,gi=>{ut|=Z(gi)}),ut;case 260:case 208:case 262:case 276:case 80:return 1;case 173:case 171:return 2;default:return H.failBadSyntaxKind(Fe)}}}function Vz(l,m,D,...C){const A=PW(l,m);return A&&NF(A,m,D,...C)}function PW(l,m,D){if(nt(l))return;const C=l;if(C.promisedTypeOfPromise)return C.promisedTypeOfPromise;if(bC(l,Ste(!1)))return C.promisedTypeOfPromise=V0(l)[0];if(gie(xD(l),402915324))return;const A=he(l,"then");if(nt(A))return;const w=A?Eo(A,0):Dt;if(w.length===0){m&>(m,F.A_promise_must_have_a_then_method);return}let I,U;for(const Fe of w){const Te=FC(Fe);Te&&Te!==da&&!yE(l,Te,f_)?I=Te:U=Di(U,Fe)}if(!U){H.assertIsDefined(I),D&&(D.value=I),m&>(m,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(I));return}const Z=gp(tr(Vt(U,pze)),2097152);if(nt(Z))return;const ce=Eo(Z,0);if(ce.length===0){m&>(m,F.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);return}return C.promisedTypeOfPromise=tr(Vt(ce,pze),2)}function MW(l,m,D,C,...A){return(m?NF(l,D,C,...A):W5(l,D,C,...A))||Ot}function Qmt(l){if(gie(xD(l),402915324))return!1;const m=he(l,"then");return!!m&&Eo(gp(m,2097152),0).length>0}function YEe(l){var m;if(l.flags&16777216){const D=gPe(!1);return!!D&&l.aliasSymbol===D&&((m=l.aliasTypeArguments)==null?void 0:m.length)===1}return!1}function Hz(l){return l.flags&1048576?ml(l,Hz):YEe(l)?l.aliasTypeArguments[0]:l}function Xmt(l){if(nt(l)||YEe(l))return!1;if(Nb(l)){const m=Gh(l);if(m?m.flags&3||bD(m)||kE(m,Qmt):jl(l,8650752))return!0}return!1}function Koi(l){const m=gPe(!0);if(m)return aT(m,[Hz(l)])}function Woi(l){if(Xmt(l)){const m=Koi(l);if(m)return m}return H.assert(YEe(l)||PW(l)===void 0,"type provided should not be a non-generic 'promise'-like."),l}function NF(l,m,D,...C){const A=W5(l,m,D,...C);return A&&Woi(A)}function W5(l,m,D,...C){if(nt(l)||YEe(l))return l;const A=l;if(A.awaitedTypeOfType)return A.awaitedTypeOfType;if(l.flags&1048576){if(mE.lastIndexOf(l.id)>=0){m&>(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}const U=m?ce=>W5(ce,m,D,...C):W5;mE.push(l.id);const Z=ml(l,U);return mE.pop(),A.awaitedTypeOfType=Z}if(Xmt(l))return A.awaitedTypeOfType=l;const w={value:void 0},I=PW(l,void 0,w);if(I){if(l.id===I.id||mE.lastIndexOf(I.id)>=0){m&>(m,F.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);return}mE.push(l.id);const U=W5(I,m,D,...C);return mE.pop(),U?A.awaitedTypeOfType=U:void 0}if(Qmt(l)){if(m){H.assertIsDefined(D);let U;w.value&&(U=ro(U,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1,gn(l),gn(w.value))),U=ro(U,D,...C),Hs.add(Y3(zn(m),m,U))}return}return A.awaitedTypeOfType=l}function Goi(l,m,D){const C=Br(m);if(Ce>=2){if(Nt(C))return;const w=Ste(!0);if(w!==Ga&&!bC(C,w)){A(F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0,m,D,gn(W5(C)||da));return}}else{if($oi(m),Nt(C))return;const w=gj(m);if(w===void 0){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,gn(C));return}const I=j0(w,111551,!0),U=I?Wn(I):Ot;if(Nt(U)){w.kind===80&&w.escapedText==="Promise"&&eT(C)===Ste(!1)?gt(D,F.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option):A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const Z=vei(!0);if(Z===Wo){A(F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value,m,D,zf(w));return}const ce=F.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value;if(!Bh(U,Z,D,ce,()=>m===D?void 0:ro(void 0,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type)))return;const Te=w&&hm(w),$e=kf(l.locals,Te.escapedText,111551);if($e){gt($e.valueDeclaration,F.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions,fu(Te),zf(w));return}}MW(C,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);function A(w,I,U,Z){if(I===U)gt(U,w,Z);else{const ce=gt(U,F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type);Es(ce,Tu(I,w,Z))}}}function Joi(l){const m=mT(l);KEe(m,l);const D=Ys(m);if(D.flags&1)return;const C=_ze(l);if(!(C!=null&&C.resolvedReturnType))return;let A;const w=C.resolvedReturnType;switch(l.parent.kind){case 263:case 231:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;case 172:if(!ve){A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break}case 169:A=F.Decorator_function_return_type_is_0_but_is_expected_to_be_void_or_any;break;case 174:case 177:case 178:A=F.Decorator_function_return_type_0_is_not_assignable_to_type_1;break;default:return H.failBadSyntaxKind(l.parent)}Bh(D,w,l.expression,A)}function zW(l,m,D,C,A,w=D.length,I=0){const U=q.createFunctionTypeNode(void 0,Dt,q.createKeywordTypeNode(133));return k3(U,l,m,D,C,A,w,I)}function Lze(l,m,D,C,A,w,I){const U=zW(l,m,D,C,A,w,I);return DF(U)}function e4t(l){return Lze(void 0,void 0,Dt,l)}function t4t(l){const m=yg("value",l);return Lze(void 0,void 0,[m],da)}function $oi(l){i4t(l&&gj(l),!1)}function i4t(l,m){if(!l)return;const D=hm(l),C=(l.kind===80?788968:1920)|2097152,A=rc(D,D.escapedText,C,void 0,void 0,!0);if(A&&A.flags&2097152){if(Ut&&l6(A)&&!jW(md(A))&&!v4(A))T5(A);else if(m&&mg(ae)&&p1(ae)>=5&&!l6(A)&&!Ge(A.declarations,D2)){const w=gt(l,F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled),I=Le(A.declarations||Dt,lC);I&&Es(w,Tu(I,F._0_was_imported_here,fu(D)))}}}function ET(l){const m=Nze(l);m&&sm(m)&&i4t(m,!0)}function Nze(l){if(l)switch(l.kind){case 193:case 192:return n4t(l.types);case 194:return n4t([l.trueType,l.falseType]);case 196:case 202:return Nze(l.type);case 183:return l.typeName}}function n4t(l){let m;for(let D of l){for(;D.kind===196||D.kind===202;)D=D.type;if(D.kind===146||!fe&&(D.kind===201&&D.literal.kind===106||D.kind===157))continue;const C=Nze(D);if(!C)return;if(m){if(!at(m)||!at(C)||m.escapedText!==C.escapedText)return}else m=C}return m}function QEe(l){const m=m1(l);return U_(l)?S0e(m):m}function xie(l){if(!Ak(l)||!c4(l)||!l.modifiers||!_q(ve,l,l.parent,l.parent.parent))return;const m=Le(l.modifiers,E1);if(m){if(ve?(ad(m,8),l.kind===169&&ad(m,32)):Ce<99&&(ad(m,8),Jc(l)?l.name?A4t(l)&&ad(m,8388608):ad(m,8388608):e1(l)||(ea(l.name)&&(hc(l)||wx(l)||ef(l))&&ad(m,8388608),Ms(l.name)&&ad(m,16777216))),ae.emitDecoratorMetadata)switch(ad(m,16),l.kind){case 263:const D=e3(l);if(D)for(const I of D.parameters)ET(QEe(I));break;case 177:case 178:const C=l.kind===177?178:177,A=Bl(Du(l),C);ET(n0(l)||A&&n0(A));break;case 174:for(const I of l.parameters)ET(QEe(I));ET(Z4(l));break;case 172:ET(m1(l));break;case 169:ET(QEe(l));const w=l.parent;for(const I of w.parameters)ET(QEe(I));ET(Z4(w));break}for(const D of l.modifiers)E1(D)&&Joi(D)}}function Uoi(l){s(m);function m(){r4t(l),iIe(l),Kz(l,l.name)}}function qoi(l){l.typeExpression||gt(l.name,F.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags),l.name&&Gz(l.name,F.Type_alias_name_cannot_be_0),cs(l.typeExpression),Fie(Sx(l))}function Zoi(l){cs(l.constraint);for(const m of l.typeParameters)cs(m)}function Yoi(l){cs(l.typeExpression)}function Qoi(l){cs(l.typeExpression);const m=ok(l);if(m){const D=Kse(m,xY);if(S(D)>1)for(let C=1;C0),D.length>1&>(D[1],F.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);const C=u4t(l.class.expression),A=w2(m);if(A){const w=u4t(A.expression);w&&C.escapedText!==w.escapedText&>(C,F.JSDoc_0_1_does_not_match_the_extends_2_clause,fu(l.tagName),fu(C),fu(w))}}function asi(l){const m=h7(l);m&&Eh(m)&>(l,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier)}function u4t(l){switch(l.kind){case 80:return l;case 211:return l.name;default:return}}function r4t(l){var m;xie(l),LW(l);const D=kd(l);if(l.name&&l.name.kind===167&&A3(l.name),iT(l)){const w=Du(l),I=l.localSymbol||w,U=(m=I.declarations)==null?void 0:m.find(Z=>Z.kind===l.kind&&!(Z.flags&524288));l===U&&ZEe(I),w.parent&&ZEe(w)}const C=l.kind===173?void 0:l.body;if(cs(C),Dze(l,uT(l)),s(A),Xn(l)){const w=vv(l);w&&w.typeExpression&&!IMe(Br(w.typeExpression),l)&>(w.typeExpression.type,F.The_type_of_a_function_declaration_must_match_the_function_s_signature)}function A(){Z4(l)||(Xl(C)&&!Die(l)&&NC(l,me),D&1&&W4(C)&&Ys(fp(l)))}}function T6(l){s(m);function m(){const D=zn(l);let C=b5.get(D.path);C||(C=[],b5.set(D.path,C)),C.push(l)}}function a4t(l,m){for(const D of l)switch(D.kind){case 263:case 231:osi(D,m),Pze(D,m);break;case 312:case 267:case 241:case 269:case 248:case 249:case 250:l4t(D,m);break;case 176:case 218:case 262:case 219:case 174:case 177:case 178:D.body&&l4t(D,m),Pze(D,m);break;case 173:case 179:case 180:case 184:case 185:case 265:case 264:Pze(D,m);break;case 195:ssi(D,m);break;default:H.assertNever(D,"Node should not have been registered for unused identifiers check")}}function o4t(l,m,D){const C=Ya(l)||l,A=gB(l)?F._0_is_declared_but_never_used:F._0_is_declared_but_its_value_is_never_read;D(l,0,Tu(C,A,m))}function IW(l){return at(l)&&fu(l).charCodeAt(0)===95}function osi(l,m){for(const D of l.members)switch(D.kind){case 174:case 172:case 177:case 178:if(D.kind===178&&D.symbol.flags&32768)break;const C=Du(D);!C.isReferenced&&(Rf(D,2)||gh(D)&&ea(D.name))&&!(D.flags&33554432)&&m(D,0,Tu(D.name,F._0_is_declared_but_its_value_is_never_read,Sr(C)));break;case 176:for(const A of D.parameters)!A.symbol.isReferenced&&Qu(A,2)&&m(A,0,Tu(A.name,F.Property_0_is_declared_but_its_value_is_never_read,cc(A.symbol)));break;case 181:case 240:case 175:break;default:H.fail("Unexpected class member")}}function ssi(l,m){const{typeParameter:D}=l;Mze(D)&&m(l,1,Tu(l,F._0_is_declared_but_its_value_is_never_read,fu(D.name)))}function Pze(l,m){const D=Du(l).declarations;if(!D||yr(D)!==l)return;const C=Sx(l),A=new Set;for(const w of C){if(!Mze(w))continue;const I=fu(w.name),{parent:U}=w;if(U.kind!==195&&U.typeParameters.every(Mze)){if(Bs(A,U)){const Z=zn(U),ce=_g(U)?Nle(U):Ple(Z,U.typeParameters),Te=U.typeParameters.length===1?[F._0_is_declared_but_its_value_is_never_read,I]:[F.All_type_parameters_are_unused];m(w,1,Rd(Z,ce.pos,ce.end-ce.pos,...Te))}}else m(w,1,Tu(w,F._0_is_declared_but_its_value_is_never_read,I))}}function Mze(l){return!(Ws(l.symbol).isReferenced&262144)&&!IW(l.name)}function vie(l,m,D,C){const A=String(C(m)),w=l.get(A);w?w[1].push(D):l.set(A,[m,[D]])}function s4t(l){return ar(e_(l),io)}function lsi(l){return Vs(l)?Op(l.parent)?!!(l.propertyName&&IW(l.name)):IW(l.name):P1(l)||(ra(l)&&M8(l.parent.parent)||c4t(l))&&IW(l.name)}function l4t(l,m){const D=new Map,C=new Map,A=new Map;l.locals.forEach(w=>{if(!(w.flags&262144?!(w.flags&3&&!(w.isReferenced&3)):w.isReferenced||w.exportSymbol)&&w.declarations){for(const I of w.declarations)if(!lsi(I))if(c4t(I))vie(D,dsi(I),I,Us);else if(Vs(I)&&Op(I.parent)){const U=yr(I.parent.elements);(I===U||!yr(I.parent.elements).dotDotDotToken)&&vie(C,I.parent,I,Us)}else if(ra(I)){const U=Jb(I)&7,Z=Ya(I);(U!==4&&U!==6||!Z||!IW(Z))&&vie(A,I.parent,I,Us)}else{const U=w.valueDeclaration&&s4t(w.valueDeclaration),Z=w.valueDeclaration&&Ya(w.valueDeclaration);U&&Z?!Mf(U,U.parent)&&!N2(U)&&!IW(Z)&&(Vs(I)&&_k(I.parent)?vie(C,I.parent,I,Us):m(U,1,Tu(Z,F._0_is_declared_but_its_value_is_never_read,cc(w)))):o4t(I,cc(w),m)}}}),D.forEach(([w,I])=>{const U=w.parent;if((w.name?1:0)+(w.namedBindings?w.namedBindings.kind===274?1:w.namedBindings.elements.length:0)===I.length)m(U,0,I.length===1?Tu(U,F._0_is_declared_but_its_value_is_never_read,fu(Pn(I).name)):Tu(U,F.All_imports_in_import_declaration_are_unused));else for(const ce of I)o4t(ce,fu(ce.name),m)}),C.forEach(([w,I])=>{const U=s4t(w.parent)?1:0;if(w.elements.length===I.length)I.length===1&&w.parent.kind===260&&w.parent.parent.kind===261?vie(A,w.parent.parent,w.parent,Us):m(w,U,I.length===1?Tu(w,F._0_is_declared_but_its_value_is_never_read,Cie(Pn(I).name)):Tu(w,F.All_destructured_elements_are_unused));else for(const Z of I)m(Z,U,Tu(Z,F._0_is_declared_but_its_value_is_never_read,Cie(Z.name)))}),A.forEach(([w,I])=>{if(w.declarations.length===I.length)m(w,0,I.length===1?Tu(Pn(I).name,F._0_is_declared_but_its_value_is_never_read,Cie(Pn(I).name)):Tu(w.parent.kind===243?w.parent:w,F.All_variables_are_unused));else for(const U of I)m(U,0,Tu(U,F._0_is_declared_but_its_value_is_never_read,Cie(U.name)))})}function csi(){var l;for(const m of fb)if(!((l=Du(m))!=null&&l.isReferenced)){const D=S8(m);H.assert(T2(D),"Only parameter declaration should be checked here");const C=Tu(m.name,F._0_is_an_unused_renaming_of_1_Did_you_intend_to_use_it_as_a_type_annotation,k0(m.name),k0(m.propertyName));D.type||Es(C,Rd(zn(D),D.end,1,F.We_can_only_write_a_type_for_0_by_adding_a_type_for_the_entire_parameter_here,k0(m.propertyName))),Hs.add(C)}}function Cie(l){switch(l.kind){case 80:return fu(l);case 207:case 206:return Cie(Po(Pn(l.elements),Vs).name);default:return H.assertNever(l)}}function c4t(l){return l.kind===273||l.kind===276||l.kind===274}function dsi(l){return l.kind===273?l:l.kind===274?l.parent:l.parent.parent}function XEe(l){if(l.kind===241&&SD(l),Qse(l)){const m=wi;L(l.statements,cs),wi=m}else L(l.statements,cs);l.locals&&T6(l)}function hsi(l){Ce>=2||!a0e(l)||l.flags&33554432||Xl(l.body)||L(l.parameters,m=>{m.name&&!So(m.name)&&m.name.escapedText===It.escapedName&&A5("noEmit",m,F.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters)})}function RW(l,m,D){if((m==null?void 0:m.escapedText)!==D||l.kind===172||l.kind===171||l.kind===174||l.kind===173||l.kind===177||l.kind===178||l.kind===303||l.flags&33554432||(u_(l)||_1(l)||bf(l))&&D2(l))return!1;const C=e_(l);return!(io(C)&&Xl(C.parent.body))}function fsi(l){Tn(l,m=>DT(m)&4?(l.kind!==80?gt(Ya(l),F.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference):gt(l,F.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference),!0):!1)}function msi(l){Tn(l,m=>DT(m)&8?(l.kind!==80?gt(Ya(l),F.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference):gt(l,F.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference),!0):!1)}function psi(l,m){if(ne>=5&&!(ne>=100&&zn(l).impliedNodeFormat===1)||!m||!RW(l,m,"require")&&!RW(l,m,"exports")||xc(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module,k0(m),k0(m))}function gsi(l,m){if(!m||Ce>=4||!RW(l,m,"Promise")||xc(l)&&oD(l)!==1)return;const D=dF(l);D.kind===312&&cm(D)&&D.flags&4096&&A5("noEmit",m,F.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions,k0(m),k0(m))}function Esi(l,m){Ce<=8&&(RW(l,m,"WeakMap")||RW(l,m,"WeakSet"))&&nC.push(l)}function _si(l){const m=QE(l);DT(m)&1048576&&(H.assert(gh(l)&&at(l.name)&&typeof l.name.escapedText=="string","The target of a WeakMap/WeakSet collision check should be an identifier"),A5("noEmit",l,F.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel,l.name.escapedText))}function Dsi(l,m){m&&Ce>=2&&Ce<=8&&RW(l,m,"Reflect")&&y5.push(l)}function xsi(l){let m=!1;if(e1(l)){for(const D of l.members)if(DT(D)&2097152){m=!0;break}}else if(w0(l))DT(l)&2097152&&(m=!0);else{const D=QE(l);D&&DT(D)&2097152&&(m=!0)}m&&(H.assert(gh(l)&&at(l.name),"The target of a Reflect collision check should be an identifier"),A5("noEmit",l,F.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers,k0(l.name),"Reflect"))}function Kz(l,m){m&&(psi(l,m),gsi(l,m),Esi(l,m),Dsi(l,m),gr(l)?(Gz(m,F.Class_name_cannot_be_0),l.flags&33554432||Usi(m)):Rv(l)&&Gz(m,F.Enum_name_cannot_be_0))}function vsi(l){if(Jb(l)&7||T2(l))return;const m=Du(l);if(m.flags&1){if(!at(l.name))return H.fail();const D=rc(l,l.name.escapedText,3,void 0,void 0,!1);if(D&&D!==m&&D.flags&2&&GMe(D)&7){const C=Av(D.valueDeclaration,261),A=C.parent.kind===243&&C.parent.parent?C.parent.parent:void 0;if(!(A&&(A.kind===241&&Co(A.parent)||A.kind===268||A.kind===267||A.kind===312))){const I=Sr(D);gt(l,F.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1,I,I)}}}}function OW(l){return l===ni?me:l===Mc?ql:l}function bie(l){var m;if(xie(l),Vs(l)||cs(l.type),!l.name)return;if(l.name.kind===167&&(A3(l.name),Qy(l)&&l.initializer&&jc(l.initializer)),Vs(l)){if(l.propertyName&&at(l.name)&&T2(l)&&Xl(Pm(l).body)){fb.push(l);return}Op(l.parent)&&l.dotDotDotToken&&Ce<5&&ad(l,4),l.propertyName&&l.propertyName.kind===167&&A3(l.propertyName);const A=l.parent.parent,w=l.dotDotDotToken?32:0,I=Ci(A,w),U=l.propertyName||l.name;if(I&&!So(U)){const Z=j5(U);if(X4(Z)){const ce=ep(Z),Fe=Zo(I,ce);Fe&&(rie(Fe,void 0,!1),$Me(l,!!A.initializer&&A.initializer.kind===108,!1,I,Fe))}}}if(So(l.name)&&(l.name.kind===207&&Ce<2&&ae.downlevelIteration&&ad(l,512),L(l.name.elements,cs)),l.initializer&&T2(l)&&Xl(Pm(l).body)){gt(l,F.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);return}if(So(l.name)){if(_Me(l))return;const A=Qy(l)&&l.initializer&&l.parent.parent.kind!==249,w=!Ge(l.name.elements,tU(Fd));if(A||w){const I=N(l);if(A){const U=jc(l.initializer);fe&&w?Nft(U,l):A6(U,N(l),l,l.initializer)}w&&(_k(l.name)?G5(65,I,te,l):fe&&Nft(I,l))}return}const D=Du(l);if(D.flags&2097152&&(A2(l)||lye(l))){u_e(l);return}const C=OW(Wn(D));if(l===D.valueDeclaration){const A=Qy(l)&&xj(l);if(A&&!(Xn(l)&&ys(A)&&(A.properties.length===0||Ox(l.name))&&!!((m=D.exports)!=null&&m.size))&&l.parent.parent.kind!==249){const I=jc(A);A6(I,C,l,A,void 0);const U=Jb(l)&7;if(U===6){const Z=wei(!0),ce=a1t(!0);if(Z!==Wo&&ce!==Wo){const Fe=tr([Z,ce,it,te]);Bh(I,Fe,A,F.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)}}else if(U===4){const Z=a1t(!0);if(Z!==Wo){const ce=tr([Z,it,te]);Bh(I,ce,A,F.The_initializer_of_a_using_declaration_must_be_either_an_object_with_a_Symbol_dispose_method_or_be_null_or_undefined)}}}D.declarations&&D.declarations.length>1&&Ge(D.declarations,w=>w!==l&&G8(w)&&!h4t(w,l))&>(l.name,F.All_declarations_of_0_must_have_identical_modifiers,k0(l.name))}else{const A=OW(N(l));!Nt(C)&&!Nt(A)&&!CD(C,A)&&!(D.flags&67108864)&&d4t(D.valueDeclaration,C,l,A),Qy(l)&&l.initializer&&A6(jc(l.initializer),A,l,l.initializer,void 0),D.valueDeclaration&&!h4t(l,D.valueDeclaration)&>(l.name,F.All_declarations_of_0_must_have_identical_modifiers,k0(l.name))}l.kind!==172&&l.kind!==171&&(NW(l),(l.kind===260||l.kind===208)&&vsi(l),Kz(l,l.name))}function d4t(l,m,D,C){const A=Ya(D),w=D.kind===172||D.kind===171?F.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2:F.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2,I=k0(A),U=gt(A,w,I,gn(m),gn(C));l&&Es(U,Tu(l,F._0_was_also_declared_here,I))}function h4t(l,m){if(l.kind===169&&m.kind===260||l.kind===260&&m.kind===169)return!0;if(d7(l)!==d7(m))return!1;const D=1358;return E7(l,D)===E7(m,D)}function Csi(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkVariableDeclaration",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath}),ici(l),bie(l),(D=Gn)==null||D.pop()}function bsi(l){return Xli(l),bie(l)}function e_e(l){const m=QD(l)&7;(m===4||m===6)&&ad(l,33554432),L(l.declarations,cs)}function ysi(l){!B3(l)&&!rIe(l.declarationList)&&nci(l),e_e(l.declarationList)}function ksi(l){SD(l),Fa(l.expression)}function Fsi(l){SD(l);const m=Wz(l.expression);zze(l.expression,m,l.thenStatement),cs(l.thenStatement),l.thenStatement.kind===242&>(l.thenStatement,F.The_body_of_an_if_statement_cannot_be_the_empty_statement),cs(l.elseStatement)}function zze(l,m,D){if(!fe)return;C(l,D);function C(w,I){for(w=l0(w),A(w,I);eu(w)&&(w.operatorToken.kind===57||w.operatorToken.kind===61);)w=l0(w.left),A(w,I)}function A(w,I){const U=Jj(w)?l0(w.right):w;if(Q_(U))return;if(Jj(U)){C(U,I);return}const Z=U===w?m:Wz(U),ce=Ru(U)&&zmt(U.expression);if(!pp(Z,4194304)||ce)return;const Fe=Eo(Z,0),Te=!!Vz(Z);if(Fe.length===0&&!Te)return;const $e=at(U)?U:Ru(U)?U.name:void 0,ut=$e&&Qp($e);if(!ut&&!Te)return;ut&&eu(w.parent)&&Ssi(w.parent,ut)||ut&&I&&Asi(w,I,$e,ut)||(Te?kh(U,!0,F.This_condition_will_always_return_true_since_this_0_is_always_defined,P5(Z)):gt(U,F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead))}}function Asi(l,m,D,C){return!!ao(m,function A(w){if(at(w)){const I=Qp(w);if(I&&I===C){if(at(l)||at(D)&&eu(D.parent))return!0;let U=D.parent,Z=w.parent;for(;U&&Z;){if(at(U)&&at(Z)||U.kind===110&&Z.kind===110)return Qp(U)===Qp(Z);if(Ru(U)&&Ru(Z)){if(Qp(U.name)!==Qp(Z.name))return!1;Z=Z.expression,U=U.expression}else if(Mo(U)&&Mo(Z))Z=Z.expression,U=U.expression;else return!1}}}return ao(w,A)})}function Ssi(l,m){for(;eu(l)&&l.operatorToken.kind===56;){if(ao(l.right,function C(A){if(at(A)){const w=Qp(A);if(w&&w===m)return!0}return ao(A,C)}))return!0;l=l.parent}return!1}function Bsi(l){SD(l),cs(l.statement),Wz(l.expression)}function wsi(l){SD(l),Wz(l.expression),cs(l.statement)}function Ize(l,m){return l.flags&16384&>(m,F.An_expression_of_type_void_cannot_be_tested_for_truthiness),l}function Wz(l,m){return Ize(Fa(l,m),l)}function Tsi(l){SD(l)||l.initializer&&l.initializer.kind===261&&rIe(l.initializer),l.initializer&&(l.initializer.kind===261?e_e(l.initializer):Fa(l.initializer)),l.condition&&Wz(l.condition),l.incrementor&&Fa(l.incrementor),cs(l.statement),l.locals&&T6(l)}function Lsi(l){lpt(l);const m=fq(l);if(l.awaitModifier?m&&zl(m)?Zi(l.awaitModifier,F.for_await_loops_cannot_be_used_inside_a_class_static_block):(kd(m)&6)===2&&Ce<99&&ad(l,16384):ae.downlevelIteration&&Ce<2&&ad(l,256),l.initializer.kind===261)e_e(l.initializer);else{const D=l.initializer,C=yie(l);if(D.kind===209||D.kind===210)LF(D,C||Ot);else{const A=Fa(D);wW(D,F.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access),C&&A6(C,A,D,l.expression)}}cs(l.statement),l.locals&&T6(l)}function Nsi(l){lpt(l);const m=UMe(Fa(l.expression));if(l.initializer.kind===261){const D=l.initializer.declarations[0];D&&So(D.name)&>(D.name,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern),e_e(l.initializer)}else{const D=l.initializer,C=Fa(D);D.kind===209||D.kind===210?gt(D,F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern):ms(gti(m),C)?wW(D,F.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access,F.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access):gt(D,F.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any)}(m===Wu||!r1(m,126091264))&>(l.expression,F.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,gn(m)),cs(l.statement),l.locals&&T6(l)}function yie(l){const m=l.awaitModifier?15:13;return G5(m,hT(l.expression),te,l.expression)}function G5(l,m,D,C){return nt(m)?m:Rze(l,m,D,C,!0)||me}function Rze(l,m,D,C,A){const w=(l&2)!==0;if(m===Wu){Kze(C,m,w);return}const I=Ce>=2,U=!I&&ae.downlevelIteration,Z=ae.noUncheckedIndexedAccess&&!!(l&128);if(I||U||w){const zt=i_e(m,l,I?C:void 0);if(A&&zt){const gi=l&8?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0:l&32?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0:l&64?F.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0:l&16?F.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;gi&&Bh(D,zt.nextType,C,gi)}if(zt||I)return Z?CW(zt&&zt.yieldType):zt&&zt.yieldType}let ce=m,Fe=!1,Te=!1;if(l&4){if(ce.flags&1048576){const zt=m.types,gi=ti(zt,Wi=>!(Wi.flags&402653316));gi!==zt&&(ce=tr(gi,2))}else ce.flags&402653316&&(ce=Wu);if(Te=ce!==m,Te&&(Ce<1&&C&&(gt(C,F.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher),Fe=!0),ce.flags&131072))return Z?CW(ct):ct}if(!H5(ce)){if(C&&!Fe){const zt=!!(l&4)&&!Te,[gi,Wi]=ut(zt,U);kh(C,Wi&&!!Vz(ce),gi,gn(ce))}return Te?Z?CW(ct):ct:void 0}const $e=kC(ce,Qt);if(Te&&$e)return $e.flags&402653316&&!ae.noUncheckedIndexedAccess?ct:tr(Z?[$e,ct,te]:[$e,ct],2);return l&128?CW($e):$e;function ut(zt,gi){var Wi;return gi?zt?[F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:[F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator,!0]:Oze(l,0,m,void 0)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!1]:Psi((Wi=m.symbol)==null?void 0:Wi.escapedName)?[F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher,!0]:zt?[F.Type_0_is_not_an_array_type_or_a_string_type,!0]:[F.Type_0_is_not_an_array_type,!0]}}function Psi(l){switch(l){case"Float32Array":case"Float64Array":case"Int16Array":case"Int32Array":case"Int8Array":case"NodeList":case"Uint16Array":case"Uint32Array":case"Uint8Array":case"Uint8ClampedArray":return!0}return!1}function Oze(l,m,D,C){if(nt(D))return;const A=i_e(D,l,C);return A&&A[Pet(m)]}function J5(l=Wu,m=Wu,D=on){if(l.flags&67359327&&m.flags&180227&&D.flags&180227){const C=mp([l,m,D]);let A=Mr.get(C);return A||(A={yieldType:l,returnType:m,nextType:D},Mr.set(C,A)),A}return{yieldType:l,returnType:m,nextType:D}}function f4t(l){let m,D,C;for(const A of l)if(!(A===void 0||A===Hu)){if(A===Ss)return Ss;m=Di(m,A.yieldType),D=Di(D,A.returnType),C=Di(C,A.nextType)}return m||D||C?J5(m&&tr(m),D&&tr(D),C&&Ds(C)):Hu}function t_e(l,m){return l[m]}function S3(l,m,D){return l[m]=D}function i_e(l,m,D){var C,A;if(nt(l))return Ss;if(!(l.flags&1048576)){const ce=D?{errors:void 0}:void 0,Fe=m4t(l,m,D,ce);if(Fe===Hu){if(D){const Te=Kze(D,l,!!(m&2));ce!=null&&ce.errors&&Es(Te,...ce.errors)}return}else if((C=ce==null?void 0:ce.errors)!=null&&C.length)for(const Te of ce.errors)Hs.add(Te);return Fe}const w=m&2?"iterationTypesOfAsyncIterable":"iterationTypesOfIterable",I=t_e(l,w);if(I)return I===Hu?void 0:I;let U;for(const ce of l.types){const Fe=D?{errors:void 0}:void 0,Te=m4t(ce,m,D,Fe);if(Te===Hu){if(D){const $e=Kze(D,l,!!(m&2));Fe!=null&&Fe.errors&&Es($e,...Fe.errors)}S3(l,w,Hu);return}else if((A=Fe==null?void 0:Fe.errors)!=null&&A.length)for(const $e of Fe.errors)Hs.add($e);U=Di(U,Te)}const Z=U?f4t(U):Hu;return S3(l,w,Z),Z===Hu?void 0:Z}function jze(l,m){if(l===Hu)return Hu;if(l===Ss)return Ss;const{yieldType:D,returnType:C,nextType:A}=l;return m&&gPe(!0),J5(NF(D,m)||me,NF(C,m)||me,A)}function m4t(l,m,D,C){if(nt(l))return Ss;let A=!1;if(m&2){const w=Vze(l,T0)||g4t(l,T0);if(w)if(w===Hu&&D)A=!0;else return m&8?jze(w,D):w}if(m&1){let w=Vze(l,rd)||g4t(l,rd);if(w)if(w===Hu&&D)A=!0;else if(m&2){if(w!==Hu)return w=jze(w,D),A?w:S3(l,"iterationTypesOfAsyncIterable",w)}else return w}if(m&2){const w=Hze(l,T0,D,C,A);if(w!==Hu)return w}if(m&1){let w=Hze(l,rd,D,C,A);if(w!==Hu)return m&2?(w=jze(w,D),A?w:S3(l,"iterationTypesOfAsyncIterable",w)):w}return Hu}function Vze(l,m){return t_e(l,m.iterableCacheKey)}function p4t(l,m){const D=Vze(l,m)||Hze(l,m,void 0,void 0,!1);return D===Hu?ud:D}function g4t(l,m){let D;if(bC(l,D=m.getGlobalIterableType(!1))||bC(l,D=m.getGlobalIterableIteratorType(!1))){const[C]=V0(l),{returnType:A,nextType:w}=p4t(D,m);return S3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}if(bC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=V0(l);return S3(l,m.iterableCacheKey,J5(m.resolveIterationType(C,void 0)||C,m.resolveIterationType(A,void 0)||A,w))}}function E4t(l){const m=n1t(!1),D=m&&he(Wn(m),Sl(l));return D&&X4(D)?ep(D):`__@${l}`}function Hze(l,m,D,C,A){const w=Zo(l,E4t(m.iteratorSymbolName)),I=w&&!(w.flags&16777216)?Wn(w):void 0;if(nt(I))return A?Ss:S3(l,m.iterableCacheKey,Ss);const U=I?Eo(I,0):void 0;if(!Ge(U))return A?Hu:S3(l,m.iterableCacheKey,Hu);const Z=Ds(Vt(U,Ys)),ce=_4t(Z,m,D,C,A)??Hu;return A?ce:S3(l,m.iterableCacheKey,ce)}function Kze(l,m,D){const C=D?F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator:F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator,A=!!Vz(m)||!D&&BV(l.parent)&&l.parent.expression===l&&Ige(!1)!==Ga&&ms(m,Ige(!1));return kh(l,A,C,gn(m))}function Msi(l,m,D,C){return _4t(l,m,D,C,!1)}function _4t(l,m,D,C,A){if(nt(l))return Ss;let w=D4t(l,m)||zsi(l,m);return w===Hu&&D&&(w=void 0,A=!0),w??(w=v4t(l,m,D,C,A)),w===Hu?void 0:w}function D4t(l,m){return t_e(l,m.iteratorCacheKey)}function zsi(l,m){const D=m.getGlobalIterableIteratorType(!1);if(bC(l,D)){const[C]=V0(l),A=D4t(D,m)||v4t(D,m,void 0,void 0,!1),{returnType:w,nextType:I}=A===Hu?ud:A;return S3(l,m.iteratorCacheKey,J5(C,w,I))}if(bC(l,m.getGlobalIteratorType(!1))||bC(l,m.getGlobalGeneratorType(!1))){const[C,A,w]=V0(l);return S3(l,m.iteratorCacheKey,J5(C,A,w))}}function x4t(l,m){const D=he(l,"done")||Ui;return ms(m===0?Ui:du,D)}function Isi(l){return x4t(l,0)}function Rsi(l){return x4t(l,1)}function Osi(l){if(nt(l))return Ss;const m=t_e(l,"iterationTypesOfIteratorResult");if(m)return m;if(bC(l,Sei(!1))){const I=V0(l)[0];return S3(l,"iterationTypesOfIteratorResult",J5(I,void 0,void 0))}if(bC(l,Bei(!1))){const I=V0(l)[0];return S3(l,"iterationTypesOfIteratorResult",J5(void 0,I,void 0))}const D=Oc(l,Isi),C=D!==Wu?he(D,"value"):void 0,A=Oc(l,Rsi),w=A!==Wu?he(A,"value"):void 0;return!C&&!w?S3(l,"iterationTypesOfIteratorResult",Hu):S3(l,"iterationTypesOfIteratorResult",J5(C,w||da,void 0))}function Wze(l,m,D,C,A){var w,I,U,Z;const ce=Zo(l,D);if(!ce&&D!=="next")return;const Fe=ce&&!(D==="next"&&ce.flags&16777216)?D==="next"?Wn(ce):gp(Wn(ce),2097152):void 0;if(nt(Fe))return D==="next"?Ss:nc;const Te=Fe?Eo(Fe,0):Dt;if(Te.length===0){if(C){const Ri=D==="next"?m.mustHaveANextMethodDiagnostic:m.mustBeAMethodDiagnostic;A?(A.errors??(A.errors=[]),A.errors.push(Tu(C,Ri,D))):gt(C,Ri,D)}return D==="next"?Hu:void 0}if(Fe!=null&&Fe.symbol&&Te.length===1){const Ri=m.getGlobalGeneratorType(!1),Nn=m.getGlobalIteratorType(!1),vn=((I=(w=Ri.symbol)==null?void 0:w.members)==null?void 0:I.get(D))===Fe.symbol,An=!vn&&((Z=(U=Nn.symbol)==null?void 0:U.members)==null?void 0:Z.get(D))===Fe.symbol;if(vn||An){const _n=vn?Ri:Nn,{mapper:hu}=Fe;return J5(k6(_n.typeParameters[0],hu),k6(_n.typeParameters[1],hu),D==="next"?k6(_n.typeParameters[2],hu):void 0)}}let $e,ut;for(const Ri of Te)D!=="throw"&&Ge(Ri.parameters)&&($e=Di($e,Lg(Ri,0))),ut=Di(ut,Ys(Ri));let zt,gi;if(D!=="throw"){const Ri=$e?tr($e):on;if(D==="next")gi=Ri;else if(D==="return"){const Nn=m.resolveIterationType(Ri,C)||me;zt=Di(zt,Nn)}}let Wi;const dn=ut?Ds(ut):Wu,nu=m.resolveIterationType(dn,C)||me,En=Osi(nu);return En===Hu?(C&&(A?(A.errors??(A.errors=[]),A.errors.push(Tu(C,m.mustHaveAValueDiagnostic,D))):gt(C,m.mustHaveAValueDiagnostic,D)),Wi=me,zt=Di(zt,me)):(Wi=En.yieldType,zt=Di(zt,En.returnType)),J5(Wi,tr(zt),gi)}function v4t(l,m,D,C,A){const w=f4t([Wze(l,m,"next",D,C),Wze(l,m,"return",D,C),Wze(l,m,"throw",D,C)]);return A?w:S3(l,m.iteratorCacheKey,w)}function Kb(l,m,D){if(nt(m))return;const C=C4t(m,D);return C&&C[Pet(l)]}function C4t(l,m){if(nt(l))return Ss;const D=m?2:1,C=m?T0:rd;return i_e(l,D,void 0)||Msi(l,C,void 0,void 0)}function jsi(l){SD(l)||Qli(l)}function kie(l,m){const D=!!(m&1),C=!!(m&2);if(D){const A=Kb(1,l,C);return A?C?W5(Hz(A)):A:Ot}return C?W5(l)||Ot:l}function b4t(l,m){const D=kie(m,kd(l));return!!(D&&(jl(D,16384)||D.flags&32769))}function Vsi(l){if(SD(l))return;const m=fq(l);if(m&&zl(m)){a1(l,F.A_return_statement_cannot_be_used_inside_a_class_static_block);return}if(!m){a1(l,F.A_return_statement_can_only_be_used_within_a_function_body);return}const D=fp(m),C=Ys(D),A=kd(m);if(fe||l.expression||C.flags&131072){const w=l.expression?jc(l.expression):te;if(m.kind===178)l.expression&>(l,F.Setters_cannot_return_a_value);else if(m.kind===176)l.expression&&!A6(w,C,l,l.expression)&>(l,F.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);else if(uT(m)){const I=kie(C,A)??C,U=A&2?MW(w,!1,l,F.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member):w;I&&A6(U,I,l,l.expression)}}else m.kind!==176&&ae.noImplicitReturns&&!b4t(m,C)&>(l,F.Not_all_code_paths_return_a_value)}function Hsi(l){SD(l)||l.flags&65536&&a1(l,F.with_statements_are_not_allowed_in_an_async_function_block),Fa(l.expression);const m=zn(l);if(!Wb(m)){const D=XE(m,l.pos).start,C=l.statement.pos;Gb(m,D,C-D,F.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any)}}function Ksi(l){SD(l);let m,D=!1;const C=Fa(l.expression);L(l.caseBlock.clauses,A=>{A.kind===297&&!D&&(m===void 0?m=A:(Zi(A,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement),D=!0)),A.kind===296&&s(w(A)),L(A.statements,cs),ae.noFallthroughCasesInSwitch&&A.fallthroughFlowNode&&Ute(A.fallthroughFlowNode)&>(A,F.Fallthrough_case_in_switch);function w(I){return()=>{const U=Fa(I.expression);bze(C,U)||eht(U,C,I.expression,void 0)}}}),l.caseBlock.locals&&T6(l.caseBlock)}function Wsi(l){SD(l)||Tn(l.parent,m=>Co(m)?"quit":m.kind===256&&m.label.escapedText===l.label.escapedText?(Zi(l.label,F.Duplicate_label_0,Wc(l.label)),!0):!1),cs(l.statement)}function Gsi(l){SD(l)||at(l.expression)&&!l.expression.escapedText&&fci(l,F.Line_break_not_permitted_here),l.expression&&Fa(l.expression)}function Jsi(l){SD(l),XEe(l.tryBlock);const m=l.catchClause;if(m){if(m.variableDeclaration){const D=m.variableDeclaration;bie(D);const C=m1(D);if(C){const A=Br(C);A&&!(A.flags&3)&&a1(C,F.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified)}else if(D.initializer)a1(D.initializer,F.Catch_clause_variable_cannot_have_an_initializer);else{const A=m.block.locals;A&&q_(m.locals,w=>{const I=A.get(w);I!=null&&I.valueDeclaration&&I.flags&2&&Zi(I.valueDeclaration,F.Cannot_redeclare_identifier_0_in_catch_clause,Qr(w))})}}XEe(m.block)}l.finallyBlock&&XEe(l.finallyBlock)}function n_e(l,m,D){const C=Ah(l);if(C.length===0)return;for(const w of D6(l))D&&w.flags&4194304||y4t(l,w,kz(w,8576,!0),E6(w));const A=m.valueDeclaration;if(A&&gr(A)){for(const w of A.members)if(!No(w)&&!iT(w)){const I=Du(w);y4t(l,I,y1(w.name.expression),E6(I))}}if(C.length>1)for(const w of C)$si(l,w)}function y4t(l,m,D,C){const A=m.valueDeclaration,w=Ya(A);if(w&&ea(w))return;const I=nPe(l,D),U=Ju(l)&2?Bl(l.symbol,264):void 0,Z=A&&A.kind===226||w&&w.kind===167?A:void 0,ce=cf(m)===l.symbol?A:void 0;for(const Fe of I){const Te=Fe.declaration&&cf(Du(Fe.declaration))===l.symbol?Fe.declaration:void 0,$e=ce||Te||(U&&!Ge(Qc(l),ut=>!!yC(ut,m.escapedName)&&!!kC(ut,Fe.keyType))?U:void 0);if($e&&!ms(C,Fe.type)){const ut=m3($e,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3,Sr(m),gn(C),gn(Fe.keyType),gn(Fe.type));Z&&$e!==Z&&Es(ut,Tu(Z,F._0_is_declared_here,Sr(m))),Hs.add(ut)}}}function $si(l,m){const D=m.declaration,C=nPe(l,m.keyType),A=Ju(l)&2?Bl(l.symbol,264):void 0,w=D&&cf(Du(D))===l.symbol?D:void 0;for(const I of C){if(I===m)continue;const U=I.declaration&&cf(Du(I.declaration))===l.symbol?I.declaration:void 0,Z=w||U||(A&&!Ge(Qc(l),ce=>!!F3(ce,m.keyType)&&!!kC(ce,I.keyType))?A:void 0);Z&&!ms(m.type,I.type)&>(Z,F._0_index_type_1_is_not_assignable_to_2_index_type_3,gn(m.keyType),gn(m.type),gn(I.keyType),gn(I.type))}}function Gz(l,m){switch(l.escapedText){case"any":case"unknown":case"never":case"number":case"bigint":case"boolean":case"string":case"symbol":case"void":case"object":gt(l,m,l.escapedText)}}function Usi(l){Ce>=1&&l.escapedText==="Object"&&(ne<5||zn(l).impliedNodeFormat===1)&>(l,F.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0,AN[ne])}function qsi(l){const m=ti(bv(l),Eg);if(!S(m))return;const D=Xn(l),C=new Set,A=new Set;if(L(l.parameters,({name:I},U)=>{at(I)&&C.add(I.escapedText),So(I)&&A.add(U)}),rPe(l)){const I=m.length-1,U=m[I];D&&U&&at(U.name)&&U.typeExpression&&U.typeExpression.type&&!C.has(U.name.escapedText)&&!A.has(I)&&!w4(Br(U.typeExpression.type))&>(U.name,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type,fu(U.name))}else L(m,({name:I,isNameFirst:U},Z)=>{A.has(Z)||at(I)&&C.has(I.escapedText)||(vf(I)?D&>(I,F.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1,zf(I),zf(I.left)):U||D4(D,I,F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name,fu(I)))})}function Fie(l){let m=!1;if(l)for(let C=0;C{C.default?(m=!0,Zsi(C.default,l,A)):m&>(C,F.Required_type_parameters_may_not_follow_optional_type_parameters);for(let w=0;wC)return!1;for(let Z=0;ZGc(D)&&Eh(D))&&Zi(m,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator),!l.name&&!Qu(l,2048)&&a1(l,F.A_class_declaration_without_the_default_modifier_must_have_a_name),S4t(l),L(l.members,cs),T6(l)}function S4t(l){Ili(l),xie(l),Kz(l,l.name),Fie(Sx(l)),NW(l);const m=Du(l),D=el(m),C=xm(D),A=Wn(m);k4t(m),ZEe(m),poi(l),!!(l.flags&33554432)||goi(l);const I=Xg(l);if(I){L(I.typeArguments,cs),Ce<2&&ad(I.parent,1);const ce=w2(l);ce&&ce!==I&&Fa(ce.expression);const Fe=Qc(D);Fe.length&&s(()=>{const Te=Fe[0],$e=Yc(D),ut=Jh($e);if(i0i(ut,I),cs(I.expression),Ge(I.typeArguments)){L(I.typeArguments,cs);for(const gi of Os(ut,I.typeArguments,I))if(!qmt(I,gi.typeParameters))break}const zt=xm(Te,D.thisType);if(Bh(C,zt,void 0)?Bh(A,$1t(ut),l.name||l,F.Class_static_side_0_incorrectly_extends_base_class_static_side_1):T4t(l,C,zt,F.Class_0_incorrectly_extends_base_class_1),$e.flags&8650752&&(Ku(A)?Eo($e,1).some(Wi=>Wi.flags&4)&&!Qu(l,64)&>(l.name||l,F.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract):gt(l.name||l,F.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any)),!(ut.symbol&&ut.symbol.flags&32)&&!($e.flags&8650752)){const gi=x0(ut,I.typeArguments,I);L(gi,Wi=>!SE(Wi.declaration)&&!CD(Ys(Wi),Te))&>(I.expression,F.Base_constructors_must_all_have_the_same_return_type)}r0i(D,Te)})}t0i(l,D,C,A);const U=iB(l);if(U)for(const ce of U)(!tc(ce.expression)||Q1(ce.expression))&>(ce.expression,F.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments),Tze(ce),s(Z(ce));s(()=>{n_e(D,m),n_e(A,m,!0),Sze(l),s0i(l)});function Z(ce){return()=>{const Fe=Sg(Br(ce));if(!Nt(Fe))if(pF(Fe)){const Te=Fe.symbol&&Fe.symbol.flags&32?F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass:F.Class_0_incorrectly_implements_interface_1,$e=xm(Fe,D.thisType);Bh(C,$e,void 0)||T4t(l,C,$e,Te)}else gt(ce,F.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members)}}}function t0i(l,m,D,C){const w=Xg(l)&&Qc(m),I=w!=null&&w.length?xm(Pn(w),m.thisType):void 0,U=Yc(m);for(const Z of l.members)ole(Z)||(fc(Z)&&L(Z.parameters,ce=>{Mf(ce,Z)&&B4t(l,C,U,I,m,D,ce,!0)}),B4t(l,C,U,I,m,D,Z,!1))}function B4t(l,m,D,C,A,w,I,U,Z=!0){const ce=I.name&&Qp(I.name)||Qp(I);return ce?w4t(l,m,D,C,A,w,Kq(I),M2(I),No(I),U,cc(ce),Z?I:void 0):0}function w4t(l,m,D,C,A,w,I,U,Z,ce,Fe,Te){const $e=Xn(l),ut=!!(l.flags&33554432);if(C&&(I||ae.noImplicitOverride)){const zt=Sl(Fe),gi=Z?m:w,Wi=Z?D:C,dn=Zo(gi,zt),nu=Zo(Wi,zt),En=gn(C);if(dn&&!nu&&I){if(Te){const Ri=Vft(Fe,Wi);Ri?gt(Te,$e?F.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:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1,En,Sr(Ri)):gt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0:F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0,En)}return 2}else if(dn&&(nu!=null&&nu.declarations)&&ae.noImplicitOverride&&!ut){const Ri=Ge(nu.declarations,M2);if(I)return 0;if(Ri){if(U&&Ri)return Te&>(Te,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0,En),1}else{if(Te){const Nn=ce?$e?F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0:$e?F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0:F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;gt(Te,Nn,En)}return 1}}}else if(I){if(Te){const zt=gn(A);gt(Te,$e?F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class:F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class,zt)}return 2}return 0}function T4t(l,m,D,C){let A=!1;for(const w of l.members){if(No(w))continue;const I=w.name&&Qp(w.name)||Qp(w);if(I){const U=Zo(m,I.escapedName),Z=Zo(D,I.escapedName);if(U&&Z){const ce=()=>ro(void 0,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2,Sr(I),gn(m),gn(D));Bh(Wn(U),Wn(Z),w.name||w,void 0,ce)||(A=!0)}}}A||Bh(m,D,l.name||l,C)}function i0i(l,m){const D=Eo(l,1);if(D.length){const C=D[0].declaration;if(C&&Rf(C,2)){const A=tD(l.symbol);Zze(m,A)||gt(m,F.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private,lp(l.symbol))}}}function n0i(l,m,D){if(!m.name)return 0;const C=Du(l),A=el(C),w=xm(A),I=Wn(C),Z=Xg(l)&&Qc(A),ce=Z!=null&&Z.length?xm(Pn(Z),A.thisType):void 0,Fe=Yc(A),Te=m.parent?Kq(m):Qu(m,16);return w4t(l,I,Fe,ce,A,w,Te,M2(m),No(m),!1,cc(D))}function _T(l){return Gl(l)&1?l.links.target:l}function u0i(l){return ti(l.declarations,m=>m.kind===263||m.kind===264)}function r0i(l,m){var D,C,A,w;const I=u0(m);let U;e:for(const Z of I){const ce=_T(Z);if(ce.flags&4194304)continue;const Fe=yC(l,ce.escapedName);if(!Fe)continue;const Te=_T(Fe),$e=h4(ce);if(H.assert(!!Te,"derived should point to something, even if it is the base class' declaration."),Te===ce){const ut=tD(l.symbol);if($e&64&&(!ut||!Qu(ut,64))){for(const zt of Qc(l)){if(zt===m)continue;const gi=yC(zt,ce.escapedName),Wi=gi&&_T(gi);if(Wi&&Wi!==ce)continue e}U||(U=gt(ut,F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1,gn(l),gn(m))),ut.kind===231?Es(U,Tu(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1,Sr(Z),gn(m))):Es(U,Tu(Z.valueDeclaration??(Z.declarations&&Pn(Z.declarations))??ut,F.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2,gn(l),Sr(Z),gn(m)))}}else{const ut=h4(Te);if($e&2||ut&2)continue;let zt;const gi=ce.flags&98308,Wi=Te.flags&98308;if(gi&&Wi){if((Gl(ce)&6?(D=ce.declarations)!=null&&D.some(En=>L4t(En,$e)):(C=ce.declarations)!=null&&C.every(En=>L4t(En,$e)))||Gl(ce)&262144||Te.valueDeclaration&&eu(Te.valueDeclaration))continue;const dn=gi!==4&&Wi===4;if(dn||gi===4&&Wi!==4){const En=dn?F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property:F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;gt(Ya(Te.valueDeclaration)||Te.valueDeclaration,En,Sr(ce),gn(m),gn(l))}else if(Se){const En=(A=Te.declarations)==null?void 0:A.find(Ri=>Ri.kind===172&&!Ri.initializer);if(En&&!(Te.flags&33554432)&&!($e&64)&&!(ut&64)&&!((w=Te.declarations)!=null&&w.some(Ri=>!!(Ri.flags&33554432)))){const Ri=qp(tD(l.symbol)),Nn=En.name;if(En.exclamationToken||!Ri||!at(Nn)||!fe||!P4t(Nn,l,Ri)){const vn=F.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;gt(Ya(Te.valueDeclaration)||Te.valueDeclaration,vn,Sr(ce),gn(m))}}}continue}else if(JMe(ce)){if(JMe(Te)||Te.flags&4)continue;H.assert(!!(Te.flags&98304)),zt=F.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor}else ce.flags&98304?zt=F.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function:zt=F.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;gt(Ya(Te.valueDeclaration)||Te.valueDeclaration,zt,gn(m),Sr(ce),gn(l))}}}function L4t(l,m){return m&64&&(!ko(l)||!l.initializer)||Ch(l.parent)}function a0i(l,m,D){if(!S(m))return D;const C=new Map;L(D,A=>{C.set(A.escapedName,A)});for(const A of m){const w=u0(xm(A,l.thisType));for(const I of w){const U=C.get(I.escapedName);U&&I.parent===U.parent&&C.delete(I.escapedName)}}return Ea(C.values())}function o0i(l,m){const D=Qc(l);if(D.length<2)return!0;const C=new Map;L(RNe(l).declaredProperties,w=>{C.set(w.escapedName,{prop:w,containingType:l})});let A=!0;for(const w of D){const I=u0(xm(w,l.thisType));for(const U of I){const Z=C.get(U.escapedName);if(!Z)C.set(U.escapedName,{prop:U,containingType:w});else if(Z.containingType!==l&&!bii(Z.prop,U)){A=!1;const Fe=gn(Z.containingType),Te=gn(w);let $e=ro(void 0,F.Named_property_0_of_types_1_and_2_are_not_identical,Sr(U),Fe,Te);$e=ro($e,F.Interface_0_cannot_simultaneously_extend_types_1_and_2,gn(l),Fe,Te),Hs.add(Y3(zn(m),m,$e))}}}return A}function s0i(l){if(!fe||!We||l.flags&33554432)return;const m=qp(l);for(const D of l.members)if(!(Dh(D)&128)&&!No(D)&&N4t(D)){const C=D.name;if(at(C)||ea(C)||Ms(C)){const A=Wn(Du(D));A.flags&3||Az(A)||(!m||!P4t(C,A,m))&>(D.name,F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor,k0(C))}}}function N4t(l){return l.kind===172&&!M2(l)&&!l.exclamationToken&&!l.initializer}function l0i(l,m,D,C,A){for(const w of D)if(w.pos>=C&&w.pos<=A){const I=q.createPropertyAccessExpression(q.createThis(),l);ks(I.expression,I),ks(I,w),I.flowNode=w.returnFlowNode;const U=w6(I,m,S6(m));if(!Az(U))return!0}return!1}function P4t(l,m,D){const C=Ms(l)?q.createElementAccessExpression(q.createThis(),l.expression):q.createPropertyAccessExpression(q.createThis(),l);ks(C.expression,C),ks(C,D),C.flowNode=D.returnFlowNode;const A=w6(C,m,S6(m));return!Az(A)}function c0i(l){B3(l)||Wli(l),Fie(l.typeParameters),s(()=>{Gz(l.name,F.Interface_name_cannot_be_0),NW(l);const m=Du(l);k4t(m);const D=Bl(m,264);if(l===D){const C=el(m),A=xm(C);if(o0i(C,l.name)){for(const w of Qc(C))Bh(A,xm(w,C.thisType),l.name,F.Interface_0_incorrectly_extends_interface_1);n_e(C,m)}}Gmt(l)}),L(aP(l),m=>{(!tc(m.expression)||Q1(m.expression))&>(m.expression,F.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments),Tze(m)}),L(l.members,cs),s(()=>{Sze(l),T6(l)})}function d0i(l){B3(l),Gz(l.name,F.Type_alias_name_cannot_be_0),NW(l),Fie(l.typeParameters),l.type.kind===141?(!nQ.has(l.name.escapedText)||S(l.typeParameters)!==1)&>(l.type,F.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types):(cs(l.type),T6(l))}function M4t(l){const m=sr(l);if(!(m.flags&1024)){m.flags|=1024;let D=0;for(const C of l.members){const A=h0i(C,D);sr(C).enumMemberValue=A,D=typeof A=="number"?A+1:void 0}}}function h0i(l,m){if(sj(l.name))gt(l.name,F.Computed_property_names_are_not_allowed_in_enums);else{const D=V8(l.name);n3(D)&&!NP(D)&>(l.name,F.An_enum_member_cannot_have_a_numeric_name)}if(l.initializer)return f0i(l);if(!(l.parent.flags&33554432&&!y2(l.parent))){if(m!==void 0)return m;gt(l.name,F.Enum_member_must_have_initializer)}}function f0i(l){const m=y2(l.parent),D=l.initializer,C=Jz(D,l);return C!==void 0?m&&typeof C=="number"&&!isFinite(C)&>(D,isNaN(C)?F.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN:F.const_enum_member_initializer_was_evaluated_to_a_non_finite_value):m?gt(D,F.const_enum_member_initializers_must_be_constant_expressions):l.parent.flags&33554432?gt(D,F.In_ambient_enum_declarations_member_initializer_must_be_constant_expression):Bh(Fa(D),Qt,D,F.Type_0_is_not_assignable_to_type_1_as_required_for_computed_enum_member_values),C}function Jz(l,m){switch(l.kind){case 224:const D=Jz(l.operand,m);if(typeof D=="number")switch(l.operator){case 40:return D;case 41:return-D;case 55:return~D}break;case 226:const C=Jz(l.left,m),A=Jz(l.right,m);if(typeof C=="number"&&typeof A=="number")switch(l.operatorToken.kind){case 52:return C|A;case 51:return C&A;case 49:return C>>A;case 50:return C>>>A;case 48:return C<p0i(l))}function p0i(l){B3(l),Kz(l,l.name),NW(l),l.members.forEach(g0i),M4t(l);const m=Du(l),D=Bl(m,l.kind);if(l===D){if(m.declarations&&m.declarations.length>1){const A=y2(l);L(m.declarations,w=>{Rv(w)&&y2(w)!==A&>(Ya(w),F.Enum_declarations_must_all_be_const_or_non_const)})}let C=!1;L(m.declarations,A=>{if(A.kind!==266)return!1;const w=A;if(!w.members.length)return!1;const I=w.members[0];I.initializer||(C?gt(I.name,F.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element):C=!0)})}}function g0i(l){ea(l.name)&>(l,F.An_enum_member_cannot_be_named_with_a_private_identifier),l.initializer&&Fa(l.initializer)}function E0i(l){const m=l.declarations;if(m){for(const D of m)if((D.kind===263||D.kind===262&&W4(D.body))&&!(D.flags&33554432))return D}}function _0i(l,m){const D=QE(l),C=QE(m);return gE(D)?gE(C):gE(C)?!1:D===C}function D0i(l){l.body&&(cs(l.body),Qg(l)||T6(l)),s(m);function m(){var D,C;const A=Qg(l),w=l.flags&33554432;A&&!w&>(l.name,F.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);const I=P1(l),U=I?F.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file:F.A_namespace_declaration_is_only_allowed_at_the_top_level_of_a_namespace_or_module;if(Aie(l,U))return;B3(l)||!w&&l.name.kind===11&&Zi(l.name,F.Only_ambient_modules_can_use_quoted_names),at(l.name)&&Kz(l,l.name),NW(l);const Z=Du(l);if(Z.flags&512&&!w&&jde(l,fk(ae))){if(mg(ae)&&!zn(l).externalModuleIndicator&>(l.name,F.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,ft),((D=Z.declarations)==null?void 0:D.length)>1){const ce=E0i(Z);ce&&(zn(l)!==zn(ce)?gt(l.name,F.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged):l.posFe.kind===95);ce&>(ce,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}}if(I)if(C2(l)){if((A||Du(l).flags&33554432)&&l.body)for(const Fe of l.body.statements)Gze(Fe,A)}else gE(l.parent)?A?gt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):Id(U4(l.name))&>(l.name,F.Ambient_module_declaration_cannot_specify_relative_module_name):A?gt(l.name,F.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations):gt(l.name,F.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces)}}function Gze(l,m){switch(l.kind){case 243:for(const C of l.declarationList.declarations)Gze(C,m);break;case 277:case 278:a1(l,F.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);break;case 271:case 272:a1(l,F.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);break;case 208:case 260:const D=l.name;if(So(D)){for(const C of D.elements)Gze(C,m);break}case 263:case 266:case 262:case 264:case 267:case 265:if(m)return;break}}function x0i(l){switch(l.kind){case 80:return l;case 166:do l=l.left;while(l.kind!==80);return l;case 211:do{if(Q_(l.expression)&&!ea(l.name))return l.name;l=l.expression}while(l.kind!==80);return l}}function Jze(l){const m=Y8(l);if(!m||Xl(m))return!1;if(!rs(m))return gt(m,F.String_literal_expected),!1;const D=l.parent.kind===268&&P1(l.parent.parent);if(l.parent.kind!==312&&!D)return gt(m,l.kind===278?F.Export_declarations_are_not_permitted_in_a_namespace:F.Import_declarations_in_a_namespace_cannot_reference_a_module),!1;if(D&&Id(m.text)&&!j9(l))return gt(l,F.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name),!1;if(!_1(l)&&l.attributes){const C=l.attributes.token===118?F.Import_attribute_values_must_be_string_literal_expressions:F.Import_assertion_values_must_be_string_literal_expressions;let A=!1;for(const w of l.attributes.elements)rs(w.value)||(A=!0,gt(w.value,C));return!A}return!0}function u_e(l){var m,D,C,A;let w=Du(l);const I=md(w);if(I!==Xt){if(w=Ws(w.exportSymbol||w),Xn(l)&&!(I.flags&111551)&&!D2(l)){const ce=r7(l)?l.propertyName||l.name:gh(l)?l.name:l;if(H.assert(l.kind!==280),l.kind===281){const Fe=gt(ce,F.Types_cannot_appear_in_export_declarations_in_JavaScript_files),Te=(D=(m=zn(l).symbol)==null?void 0:m.exports)==null?void 0:D.get((l.propertyName||l.name).escapedText);if(Te===I){const $e=(C=Te.declarations)==null?void 0:C.find(z8);$e&&Es(Fe,Tu($e,F._0_is_automatically_exported_here,Qr(Te.escapedName)))}}else{H.assert(l.kind!==260);const Fe=Tn(l,dg(Sd,_1)),Te=(Fe&&((A=Z8(Fe))==null?void 0:A.text))??"...",$e=Qr(at(ce)?ce.escapedText:w.escapedName);gt(ce,F._0_is_a_type_and_cannot_be_imported_in_JavaScript_files_Use_1_in_a_JSDoc_type_annotation,$e,`import("${Te}").${$e}`)}return}const U=j1(I),Z=(w.flags&1160127?111551:0)|(w.flags&788968?788968:0)|(w.flags&1920?1920:0);if(U&Z){const ce=l.kind===281?F.Export_declaration_conflicts_with_exported_declaration_of_0:F.Import_declaration_conflicts_with_local_declaration_of_0;gt(l,ce,Sr(w))}if(mg(ae)&&!D2(l)&&!(l.flags&33554432)){const ce=v4(w),Fe=!(U&111551);if(Fe||ce)switch(l.kind){case 273:case 276:case 271:{if(ae.preserveValueImports||ae.verbatimModuleSyntax){H.assertIsDefined(l.name,"An ImportClause with a symbol should have a name");const Te=ae.verbatimModuleSyntax&&U8(l)?F.An_import_alias_cannot_resolve_to_a_type_or_type_only_declaration_when_verbatimModuleSyntax_is_enabled:Fe?ae.verbatimModuleSyntax?F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled:ae.verbatimModuleSyntax?F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled:F._0_resolves_to_a_type_only_declaration_and_must_be_imported_using_a_type_only_import_when_preserveValueImports_and_isolatedModules_are_both_enabled,$e=fu(l.kind===276&&l.propertyName||l.name);dD(gt(l,Te,$e),Fe?void 0:ce,$e)}Fe&&l.kind===271&&Rf(l,32)&>(l,F.Cannot_use_export_import_on_a_type_or_type_only_namespace_when_0_is_enabled,ft);break}case 281:if(ae.verbatimModuleSyntax||zn(ce)!==zn(l)){const Te=fu(l.propertyName||l.name),$e=Fe?gt(l,F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type,ft):gt(l,F._0_resolves_to_a_type_only_declaration_and_must_be_re_exported_using_a_type_only_re_export_when_1_is_enabled,Te,ft);dD($e,Fe?void 0:ce,Te);break}}ae.verbatimModuleSyntax&&l.kind!==271&&!Xn(l)&&(ne===1||zn(l).impliedNodeFormat===1)&>(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled)}if(bf(l)){const ce=$ze(w,l);S5(ce)&&ce.declarations&&p3(l,ce.declarations,ce.escapedName)}}}function $ze(l,m){if(!(l.flags&2097152)||S5(l)||!op(l))return l;const D=md(l);if(D===Xt)return D;for(;l.flags&2097152;){const C=jMe(l);if(C){if(C===D)break;if(C.declarations&&S(C.declarations))if(S5(C)){p3(m,C.declarations,C.escapedName);break}else{if(l===D)break;l=C}}else break}return D}function r_e(l){Kz(l,l.name),u_e(l),l.kind===276&&fu(l.propertyName||l.name)==="default"&&t_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&ad(l,131072)}function R4t(l){var m;const D=l.attributes;if(D){const C=S1e(l),A=qB(D,C?Zi:void 0),w=l.attributes.token===118;if(C&&A)return;if((ne===199&&l.moduleSpecifier&&za(l.moduleSpecifier))!==99&&ne!==99){const U=w?ne===199?F.Import_attributes_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_attributes_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext:ne===199?F.Import_assertions_are_not_allowed_on_statements_that_compile_to_CommonJS_require_calls:F.Import_assertions_are_only_supported_when_the_module_option_is_set_to_esnext_or_nodenext;return Zi(D,U)}if(Sd(l)?(m=l.importClause)!=null&&m.isTypeOnly:l.isTypeOnly)return Zi(D,w?F.Import_attributes_cannot_be_used_with_type_only_imports_or_exports:F.Import_assertions_cannot_be_used_with_type_only_imports_or_exports);if(A)return Zi(D,F.resolution_mode_can_only_be_set_for_type_only_imports)}}function v0i(l){if(!Aie(l,Xn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!B3(l)&&Hq(l)&&a1(l,F.An_import_declaration_cannot_have_modifiers),Jze(l)){const m=l.importClause;m&&!pci(m)&&(m.name&&r_e(m),m.namedBindings&&(m.namedBindings.kind===274?(r_e(m.namedBindings),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&t_(ae)&&ad(l,65536)):Wh(l,l.moduleSpecifier)&&L(m.namedBindings.elements,r_e)))}R4t(l)}}function C0i(l){if(!Aie(l,Xn(l)?F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)&&(B3(l),U8(l)||Jze(l)))if(r_e(l),Qu(l,32)&&mC(l),l.moduleReference.kind!==283){const m=md(Du(l));if(m!==Xt){const D=j1(m);if(D&111551){const C=hm(l.moduleReference);j0(C,112575).flags&1920||gt(C,F.Module_0_is_hidden_by_a_local_declaration_with_the_same_name,k0(C))}D&788968&&Gz(l.name,F.Import_name_cannot_be_0)}l.isTypeOnly&&Zi(l,F.An_import_alias_cannot_use_import_type)}else ne>=5&&zn(l).impliedNodeFormat===void 0&&!l.isTypeOnly&&!(l.flags&33554432)&&Zi(l,F.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)}function b0i(l){if(!Aie(l,Xn(l)?F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module:F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_namespace_or_module)){if(!B3(l)&&Mye(l)&&a1(l,F.An_export_declaration_cannot_have_modifiers),l.moduleSpecifier&&l.exportClause&&ip(l.exportClause)&&S(l.exportClause.elements)&&Ce===0&&ad(l,4194304),y0i(l),!l.moduleSpecifier||Jze(l))if(l.exportClause&&!r_(l.exportClause)){L(l.exportClause.elements,w0i);const m=l.parent.kind===268&&P1(l.parent.parent),D=!m&&l.parent.kind===268&&!l.moduleSpecifier&&l.flags&33554432;l.parent.kind!==312&&!m&&!D&>(l,F.Export_declarations_are_not_permitted_in_a_namespace)}else{const m=Wh(l,l.moduleSpecifier);m&&yb(m)?gt(l.moduleSpecifier,F.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk,Sr(m)):l.exportClause&&u_e(l.exportClause),ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&(l.exportClause?t_(ae)&&ad(l,65536):ad(l,32768))}R4t(l)}}function y0i(l){var m;return l.isTypeOnly&&((m=l.exportClause)==null?void 0:m.kind)===279?gpt(l.exportClause):!1}function Aie(l,m){const D=l.parent.kind===312||l.parent.kind===268||l.parent.kind===267;return D||a1(l,m),!D}function k0i(l){return Sq(l,m=>!!Du(m).isReferenced)}function F0i(l){return Sq(l,m=>!!qr(Du(m)).constEnumReferenced)}function A0i(l){return Sd(l)&&l.importClause&&!l.importClause.isTypeOnly&&k0i(l.importClause)&&!d_e(l.importClause,!0)&&!F0i(l.importClause)}function S0i(l){return _1(l)&&a_(l.moduleReference)&&!l.isTypeOnly&&Du(l).isReferenced&&!d_e(l,!1)&&!qr(Du(l)).constEnumReferenced}function B0i(l){if(Ut)for(const m of l.statements)(A0i(m)||S0i(m))&>(m,F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error)}function w0i(l){if(u_e(l),f4(ae)&&qw(l.propertyName||l.name,!0),l.parent.parent.moduleSpecifier)t_(ae)&&ne!==4&&(ne<5||zn(l).impliedNodeFormat===1)&&fu(l.propertyName||l.name)==="default"&&ad(l,131072);else{const m=l.propertyName||l.name,D=rc(m,m.escapedText,2998271,void 0,void 0,!0);if(D&&(D===st||D===Bt||D.declarations&&gE(dF(D.declarations[0]))))gt(m,F.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module,fu(m));else{!l.isTypeOnly&&!l.parent.parent.isTypeOnly&&mC(l);const C=D&&(D.flags&2097152?md(D):D);(!C||j1(C)&111551)&&jc(l.propertyName||l.name)}}}function T0i(l){const m=l.isExportEquals?F.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration:F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;if(Aie(l,m))return;const D=l.parent.kind===312?l.parent:l.parent.parent;if(D.kind===267&&!P1(D)){l.isExportEquals?gt(l,F.An_export_assignment_cannot_be_used_in_a_namespace):gt(l,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);return}!B3(l)&&Hq(l)&&a1(l,F.An_export_assignment_cannot_have_modifiers);const C=m1(l);C&&Bh(jc(l.expression),Br(C),l.expression);const A=!l.isExportEquals&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&(ne===1||zn(l).impliedNodeFormat===1);if(l.expression.kind===80){const w=l.expression,I=cp(j0(w,67108863,!0,!0,l));I?(kEe(I,w),j1(I)&111551?(jc(w),!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&&v4(I,111551)&>(w,l.isExportEquals?F.An_export_declaration_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration:F.An_export_default_must_reference_a_real_value_when_verbatimModuleSyntax_is_enabled_but_0_resolves_to_a_type_only_declaration,fu(w))):!A&&!(l.flags&33554432)&&ae.verbatimModuleSyntax&>(w,l.isExportEquals?F.An_export_declaration_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type:F.An_export_default_must_reference_a_value_when_verbatimModuleSyntax_is_enabled_but_0_only_refers_to_a_type,fu(w))):jc(w),f4(ae)&&qw(w,!0)}else jc(l.expression);A&>(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled),O4t(D),l.flags&33554432&&!tc(l.expression)&&Zi(l.expression,F.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context),l.isExportEquals&&(ne>=5&&(l.flags&33554432&&zn(l).impliedNodeFormat===99||!(l.flags&33554432)&&zn(l).impliedNodeFormat!==1)?Zi(l,F.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead):ne===4&&!(l.flags&33554432)&&Zi(l,F.Export_assignment_is_not_supported_when_module_flag_is_system))}function L0i(l){return f1(l.exports,(m,D)=>D!=="export=")}function O4t(l){const m=Du(l),D=qr(m);if(!D.exportsChecked){const C=m.exports.get("export=");if(C&&L0i(m)){const w=op(C)||C.valueDeclaration;w&&!j9(w)&&!Xn(w)&>(w,F.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements)}const A=v3(m);A&&A.forEach(({declarations:w,flags:I},U)=>{if(U==="__export"||I&1920)return;const Z=ui(w,eU(Met,tU(Ch)));if(!(I&524288&&Z<=2)&&Z>1&&!a_e(w))for(const ce of w)Let(ce)&&Hs.add(Tu(ce,F.Cannot_redeclare_exported_variable_0,Qr(U)))}),D.exportsChecked=!0}}function a_e(l){return l&&l.length>1&&l.every(m=>Xn(m)&&O0(m)&&(uk(m.expression)||Q_(m.expression)))}function cs(l){if(l){const m=K;K=l,z=0,N0i(l),K=m}}function N0i(l){Tj(l)&&L(l.jsDoc,({comment:D,tags:C})=>{j4t(D),L(C,A=>{j4t(A.comment),Xn(l)&&cs(A)})});const m=l.kind;if(d)switch(m){case 267:case 263:case 264:case 262:d.throwIfCancellationRequested()}switch(m>=243&&m<=259&&wj(l)&&l.flowNode&&!Ute(l.flowNode)&&D4(ae.allowUnreachableCode===!1,l,F.Unreachable_code_detected),m){case 168:return Hmt(l);case 169:return Kmt(l);case 172:return Jmt(l);case 171:return Eoi(l);case 185:case 184:case 179:case 180:case 181:return LW(l);case 174:case 173:return _oi(l);case 175:return Doi(l);case 176:return xoi(l);case 177:case 178:return Umt(l);case 183:return Tze(l);case 182:return foi(l);case 186:return Foi(l);case 187:return Aoi(l);case 188:return Soi(l);case 189:return Boi(l);case 192:case 193:return woi(l);case 196:case 190:case 191:return cs(l.type);case 197:return Poi(l);case 198:return Moi(l);case 194:return zoi(l);case 195:return Ioi(l);case 203:return Roi(l);case 205:return Ooi(l);case 202:return joi(l);case 335:return rsi(l);case 336:return usi(l);case 353:case 345:case 347:return qoi(l);case 352:return Zoi(l);case 351:return Yoi(l);case 331:case 332:case 333:return Xoi(l);case 348:return esi(l);case 355:return tsi(l);case 324:isi(l);case 322:case 321:case 319:case 320:case 329:V4t(l),ao(l,cs);return;case 325:P0i(l);return;case 316:return cs(l.type);case 340:case 342:case 341:return asi(l);case 357:return Qoi(l);case 350:return nsi(l);case 199:return Toi(l);case 200:return Loi(l);case 262:return Uoi(l);case 241:case 268:return XEe(l);case 243:return ysi(l);case 244:return ksi(l);case 245:return Fsi(l);case 246:return Bsi(l);case 247:return wsi(l);case 248:return Tsi(l);case 249:return Nsi(l);case 250:return Lsi(l);case 251:case 252:return jsi(l);case 253:return Vsi(l);case 254:return Hsi(l);case 255:return Ksi(l);case 256:return Wsi(l);case 257:return Gsi(l);case 258:return Jsi(l);case 260:return Csi(l);case 208:return bsi(l);case 263:return e0i(l);case 264:return c0i(l);case 265:return d0i(l);case 266:return m0i(l);case 267:return D0i(l);case 272:return v0i(l);case 271:return C0i(l);case 278:return b0i(l);case 277:return T0i(l);case 242:case 259:SD(l);return;case 282:return Coi(l)}}function j4t(l){Wa(l)&&L(l,m=>{o7(m)&&cs(m)})}function V4t(l){if(!Xn(l))if(gY(l)||wB(l)){const m=qo(gY(l)?54:58),D=l.postfix?F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1:F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1,C=l.type,A=Br(C);Zi(l,D,m,gn(wB(l)&&!(A===Wu||A===da)?tr(Di([A,te],l.postfix?void 0:it)):A))}else Zi(l,F.JSDoc_types_can_only_be_used_inside_documentation_comments)}function P0i(l){V4t(l),cs(l.type);const{parent:m}=l;if(io(m)&&TB(m.parent)){yr(m.parent.parameters)!==m&>(l,F.A_rest_parameter_must_be_last_in_a_parameter_list);return}kk(m)||gt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);const D=l.parent.parent;if(!Eg(D)){gt(l,F.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);return}const C=Lj(D);if(!C)return;const A=Fv(D);(!A||yr(A.parameters).symbol!==C)&>(l,F.A_rest_parameter_must_be_last_in_a_parameter_list)}function M0i(l){const m=Br(l.type),{parent:D}=l,C=l.parent.parent;if(kk(l.parent)&&Eg(C)){const A=Fv(C),w=Bce(C.parent.parent);if(A||w){const I=Zu(w?C.parent.parent.typeExpression.parameters:A.parameters),U=Lj(C);if(!I||U&&I.symbol===U&&U_(I))return H1(m)}}return io(D)&&TB(D.parent)?H1(m):Vd(m)}function eS(l){const m=zn(l),D=sr(m);D.flags&1?H.assert(!D.deferredNodes,"A type-checked file should have no deferred nodes."):(D.deferredNodes||(D.deferredNodes=new Set),D.deferredNodes.add(l))}function z0i(l){const m=sr(l);m.deferredNodes&&m.deferredNodes.forEach(I0i),m.deferredNodes=void 0}function I0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkDeferredNode",{kind:l.kind,pos:l.pos,end:l.end,path:l.tracingPath});const C=K;switch(K=l,z=0,l.kind){case 213:case 214:case 215:case 170:case 286:BF(l);break;case 218:case 219:case 174:case 173:Lai(l);break;case 177:case 178:Umt(l);break;case 231:Xsi(l);break;case 168:hoi(l);break;case 285:Hui(l);break;case 284:Wui(l);break;case 216:case 234:case 217:rai(l);break;case 222:Fa(l.expression);break;case 226:Wq(l)&&BF(l);break}K=C,(D=Gn)==null||D.pop()}function R0i(l){var m,D;(m=Gn)==null||m.push(Gn.Phase.Check,"checkSourceFile",{path:l.path},!0),al("beforeCheck"),O0i(l),al("afterCheck"),Lm("Check","beforeCheck","afterCheck"),(D=Gn)==null||D.pop()}function H4t(l,m){if(m)return!1;switch(l){case 0:return!!ae.noUnusedLocals;case 1:return!!ae.noUnusedParameters;default:return H.assertNever(l)}}function K4t(l){return b5.get(l.path)||Dt}function O0i(l){const m=sr(l);if(!(m.flags&1)){if(SP(l,ae,t))return;dci(l),gu(db),gu(hb),gu(nC),gu(y5),gu(fb),L(l.statements,cs),cs(l.endOfFileToken),z0i(l),cm(l)&&T6(l),s(()=>{!l.isDeclarationFile&&(ae.noUnusedLocals||ae.noUnusedParameters)&&a4t(K4t(l),(D,C,A)=>{!O8(D)&&H4t(C,!!(D.flags&33554432))&&Hs.add(A)}),l.isDeclarationFile||csi()}),ae.importsNotUsedAsValues===2&&!l.isDeclarationFile&&Lc(l)&&B0i(l),cm(l)&&O4t(l),db.length&&(L(db,fsi),gu(db)),hb.length&&(L(hb,msi),gu(hb)),nC.length&&(L(nC,_si),gu(nC)),y5.length&&(L(y5,xsi),gu(y5)),m.flags|=1}}function W4t(l,m){try{return d=m,j0i(l)}finally{d=void 0}}function Uze(){for(const l of u)l();u=[]}function qze(l){Uze();const m=s;s=D=>D(),R0i(l),s=m}function j0i(l){if(l){Uze();const m=Hs.getGlobalDiagnostics(),D=m.length;qze(l);const C=Hs.getDiagnostics(l.fileName),A=Hs.getGlobalDiagnostics();if(A!==m){const w=Ur(m,A,yP);return mi(w,C)}else if(D===0&&A.length>0)return mi(A,C);return C}return L(t.getSourceFiles(),qze),Hs.getDiagnostics()}function V0i(){return Uze(),Hs.getGlobalDiagnostics()}function H0i(l,m){if(l.flags&67108864)return[];const D=Ho();let C=!1;return A(),D.delete("this"),uPe(D);function A(){for(;l;){switch(qE(l)&&l.locals&&!gE(l)&&I(l.locals,m),l.kind){case 312:if(!Lc(l))break;case 267:U(Du(l).exports,m&2623475);break;case 266:I(Du(l).exports,m&8);break;case 231:l.name&&w(l.symbol,m);case 263:case 264:C||I(_6(Du(l)),m&788968);break;case 218:l.name&&w(l.symbol,m);break}eye(l)&&w(It,m),C=No(l),l=l.parent}I(Ie,m)}function w(Z,ce){if(vP(Z)&ce){const Fe=Z.escapedName;D.has(Fe)||D.set(Fe,Z)}}function I(Z,ce){ce&&Z.forEach(Fe=>{w(Fe,ce)})}function U(Z,ce){ce&&Z.forEach(Fe=>{!Bl(Fe,281)&&!Bl(Fe,280)&&Fe.escapedName!=="default"&&w(Fe,ce)})}}function K0i(l){return l.kind===80&&gB(l.parent)&&Ya(l.parent)===l}function G4t(l){for(;l.parent.kind===166;)l=l.parent;return l.parent.kind===183}function W0i(l){for(;l.parent.kind===211;)l=l.parent;return l.parent.kind===233}function J4t(l,m){let D,C=Qd(l);for(;C&&!(D=m(C));)C=Qd(C);return D}function G0i(l){return!!Tn(l,m=>fc(m)&&W4(m.body)||ko(m)?!0:gr(m)||U0(m)?"quit":!1)}function Zze(l,m){return!!J4t(l,D=>D===m)}function J0i(l){for(;l.parent.kind===166;)l=l.parent;if(l.parent.kind===271)return l.parent.moduleReference===l?l.parent:void 0;if(l.parent.kind===277)return l.parent.expression===l?l.parent:void 0}function o_e(l){return J0i(l)!==void 0}function $0i(l){switch(ec(l.parent.parent)){case 1:case 3:return Dm(l.parent);case 4:case 2:case 5:return Du(l.parent.parent)}}function U0i(l){let m=l.parent;for(;vf(m);)l=m,m=m.parent;if(m&&m.kind===205&&m.qualifier===l)return m}function q0i(l){if(l.expression.kind===110){const m=tf(l,!1,!1);if(Co(m)){const D=rft(m);if(D){const C=zC(D,void 0),A=oft(D,C);return A&&!nt(A)}}}}function $4t(l){if(X3(l))return Dm(l.parent);if(Xn(l)&&l.parent.kind===211&&l.parent===l.parent.parent.left&&!ea(l)&&!Ov(l)&&!q0i(l.parent)){const m=$0i(l);if(m)return m}if(l.parent.kind===277&&tc(l)){const m=j0(l,2998271,!0);if(m&&m!==Xt)return m}else if(sm(l)&&o_e(l)){const m=Av(l,271);return H.assert(m!==void 0),aF(l,!0)}if(sm(l)){const m=U0i(l);if(m){Br(m);const D=sr(l).resolvedSymbol;return D===Xt?void 0:D}}for(;Vye(l);)l=l.parent;if(W0i(l)){let m=0;l.parent.kind===233?(m=Z_(l)?788968:111551,$j(l.parent)&&(m|=111551)):m=1920,m|=2097152;const D=tc(l)?j0(l,m,!0):void 0;if(D)return D}if(l.parent.kind===348)return Lj(l.parent);if(l.parent.kind===168&&l.parent.parent.kind===352){H.assert(!Xn(l));const m=fye(l.parent);return m&&m.symbol}if(Y_(l)){if(Xl(l))return;const m=Tn(l,dg(o7,XP,Ov)),D=m?901119:111551;if(l.kind===80){if($8(l)&&X9(l)){const A=LEe(l.parent);return A===Xt?void 0:A}const C=j0(l,D,!0,!0,Fv(l));if(!C&&m){const A=Tn(l,dg(gr,Ch));if(A)return Sie(l,!0,Du(A))}if(C&&m){const A=h7(l);if(A&&$2(A)&&A===C.valueDeclaration)return j0(l,D,!0,!0,zn(A))||C}return C}else{if(ea(l))return MEe(l);if(l.kind===211||l.kind===166){const C=sr(l);return C.resolvedSymbol?C.resolvedSymbol:(l.kind===211?(NEe(l,0),C.resolvedSymbol||(C.resolvedSymbol=U4t(jc(l.expression),j5(l.name)))):Pft(l,0),!C.resolvedSymbol&&m&&vf(l)?Sie(l):C.resolvedSymbol)}else if(Ov(l))return Sie(l)}}else if(G4t(l)){const m=l.parent.kind===183?788968:1920,D=j0(l,m,!1,!0);return D&&D!==Xt?D:Nge(l)}if(l.parent.kind===182)return j0(l,1)}function U4t(l,m){const D=nPe(l,m);if(D.length&&l.members){const C=wge(Ag(l).members);if(D===Ah(l))return C;if(C){const A=qr(C),w=qi(D,U=>U.declaration),I=Vt(w,Us).join(",");if(A.filteredIndexSymbolCache||(A.filteredIndexSymbolCache=new Map),A.filteredIndexSymbolCache.has(I))return A.filteredIndexSymbolCache.get(I);{const U=Ks(131072,"__index");return U.declarations=qi(D,Z=>Z.declaration),U.parent=l.aliasSymbol?l.aliasSymbol:l.symbol?l.symbol:Qp(U.declarations[0].parent),A.filteredIndexSymbolCache.set(I,U),U}}}}function Sie(l,m,D){if(sm(l)){let I=j0(l,901119,m,!0,Fv(l));if(!I&&at(l)&&D&&(I=Ws(kf($f(D),l.escapedText,901119))),I)return I}const C=at(l)?D:Sie(l.left,m,D),A=at(l)?l.escapedText:l.right.escapedText;if(C){const w=C.flags&111551&&Zo(Wn(C),"prototype"),I=w?Wn(w):el(C);return Zo(I,A)}}function Qp(l,m){if(ca(l))return Lc(l)?Ws(l.symbol):void 0;const{parent:D}=l,C=D.parent;if(!(l.flags&67108864)){if(Net(l)){const A=Du(D);return r7(l.parent)&&l.parent.propertyName===l?jMe(A):A}else if(Pj(l))return Du(D.parent);if(l.kind===80){if(o_e(l))return $4t(l);if(D.kind===208&&C.kind===206&&l===D.propertyName){const A=tS(C),w=Zo(A,l.escapedText);if(w)return w}else if(UP(D)&&D.name===l)return D.keywordToken===105&&fu(l)==="target"?fze(D).symbol:D.keywordToken===102&&fu(l)==="meta"?t1t().members.get("meta"):void 0}switch(l.kind){case 80:case 81:case 211:case 166:if(!g7(l))return $4t(l);case 110:const A=tf(l,!1,!1);if(Co(A)){const U=fp(A);if(U.thisParameter)return U.thisParameter}if(Dq(l))return Fa(l).symbol;case 197:return Kge(l).symbol;case 108:return Fa(l).symbol;case 137:const w=l.parent;return w&&w.kind===176?w.parent.symbol:void 0;case 11:case 15:if(yv(l.parent.parent)&&eP(l.parent.parent)===l||(l.parent.kind===272||l.parent.kind===278)&&l.parent.moduleSpecifier===l||Xn(l)&&g1(ae)!==100&&xf(l.parent,!1)||dm(l.parent)||zv(l.parent)&&zx(l.parent.parent)&&l.parent.parent.argument===l.parent)return Wh(l,l,m);if(Mo(D)&&rk(D)&&D.arguments[1]===l)return Du(D);case 9:const I=q0(D)?D.argumentExpression===l?y1(D.expression):void 0:zv(D)&&I7(C)?Br(C.objectType):void 0;return I&&Zo(I,Sl(l.text));case 90:case 100:case 39:case 86:return Dm(l.parent);case 205:return zx(l)?Qp(l.argument.literal,m):void 0;case 95:return ic(l.parent)?H.checkDefined(l.parent.symbol):void 0;case 102:case 105:return UP(l.parent)?gmt(l.parent).symbol:void 0;case 104:if(eu(l.parent)){const U=y1(l.parent.right),Z=Cze(U);return(Z==null?void 0:Z.symbol)??U.symbol}return;case 236:return Fa(l).symbol;case 295:if($8(l)&&X9(l)){const U=LEe(l.parent);return U===Xt?void 0:U}default:return}}}function Z0i(l){if(at(l)&&Ru(l.parent)&&l.parent.name===l){const m=j5(l),D=y1(l.parent.expression),C=D.flags&1048576?D.types:[D];return Vu(C,A=>ti(Ah(A),w=>nT(m,w.keyType)))}}function Y0i(l){if(l&&l.kind===304)return j0(l.name,2208703)}function Q0i(l){return th(l)?l.parent.parent.moduleSpecifier?dC(l.parent.parent,l):j0(l.propertyName||l.name,2998271):j0(l,2998271)}function tS(l){if(ca(l)&&!Lc(l)||l.flags&67108864)return Ot;const m=dle(l),D=m&&F4(Du(m.class));if(Z_(l)){const C=Br(l);return D?xm(C,D.thisType):C}if(Y_(l))return q4t(l);if(D&&!m.isImplements){const C=Ki(Qc(D));return C?xm(C,D.thisType):Ot}if(gB(l)){const C=Du(l);return el(C)}if(K0i(l)){const C=Qp(l);return C?el(C):Ot}if(Vs(l))return gD(l,!0,0)||Ot;if(X1(l)){const C=Du(l);return C?Wn(C):Ot}if(Net(l)){const C=Qp(l);return C?Wn(C):Ot}if(So(l))return gD(l.parent,!0,0)||Ot;if(o_e(l)){const C=Qp(l);if(C){const A=el(C);return Nt(A)?Wn(C):A}}return UP(l.parent)&&l.parent.keywordToken===l.kind?gmt(l.parent):Ot}function s_e(l){if(H.assert(l.kind===210||l.kind===209),l.parent.kind===250){const A=yie(l.parent);return LF(l,A||Ot)}if(l.parent.kind===226){const A=y1(l.parent.right);return LF(l,A||Ot)}if(l.parent.kind===303){const A=Po(l.parent.parent,ys),w=s_e(A)||Ot,I=j8(A.properties,l.parent);return Lmt(A,w,I)}const m=Po(l.parent,vh),D=s_e(m)||Ot,C=G5(65,D,te,l.parent)||Ot;return Nmt(m,D,m.elements.indexOf(l),C)}function X0i(l){const m=s_e(Po(l.parent.parent,WN));return m&&Zo(m,l.escapedText)}function q4t(l){return EP(l)&&(l=l.parent),$h(y1(l))}function Z4t(l){const m=Dm(l.parent);return No(l)?Wn(m):el(m)}function Y4t(l){const m=l.name;switch(m.kind){case 80:return df(fu(m));case 9:case 11:return df(m.text);case 167:const D=A3(m);return r1(D,12288)?D:ct;default:return H.fail("Unsupported property name.")}}function Yze(l){l=Jh(l);const m=Ho(u0(l)),D=Eo(l,0).length?Mn:Eo(l,1).length?ka:void 0;return D&&L(u0(D),C=>{m.has(C.escapedName)||m.set(C.escapedName,C)}),Sb(m)}function l_e(l){return Eo(l,0).length!==0||Eo(l,1).length!==0}function Q4t(l){const m=eli(l);return m?Vu(m,Q4t):[l]}function eli(l){if(Gl(l)&6)return qi(qr(l).containingType.types,m=>Zo(m,l.escapedName));if(l.flags&33554432){const{links:{leftSpread:m,rightSpread:D,syntheticOrigin:C}}=l;return m?[m,D]:C?[C]:Hy(tli(l))}}function tli(l){let m,D=l;for(;D=qr(D).target;)m=D;return m}function ili(l){if(sl(l))return!1;const m=Za(l,at);if(!m)return!1;const D=m.parent;return D?!((Ru(D)||Uc(D))&&D.name===m)&&HW(m)===It:!1}function nli(l){let m=Wh(l.parent,l);if(!m||UN(m))return!0;const D=yb(m);m=_m(m);const C=qr(m);return C.exportsSomeValue===void 0&&(C.exportsSomeValue=D?!!(m.flags&111551):f1(v3(m),A)),C.exportsSomeValue;function A(w){return w=Fc(w),w&&!!(j1(w)&111551)}}function uli(l){return XO(l.parent)&&l===l.parent.name}function rli(l,m){var D;const C=Za(l,at);if(C){let A=HW(C,uli(C));if(A){if(A.flags&1048576){const I=Ws(A.exportSymbol);if(!m&&I.flags&944&&!(I.flags&3))return;A=I}const w=cf(A);if(w){if(w.flags&512&&((D=w.valueDeclaration)==null?void 0:D.kind)===312){const I=w.valueDeclaration,U=zn(C);return I!==U?void 0:I}return Tn(C.parent,I=>XO(I)&&Du(I)===w)}}}}function ali(l){const m=Qke(l);if(m)return m;const D=Za(l,at);if(D){const C=Dli(D);if(fC(C,111551)&&!v4(C,111551))return op(C)}}function oli(l){return l.valueDeclaration&&Vs(l.valueDeclaration)&&S8(l.valueDeclaration).parent.kind===299}function X4t(l){if(l.flags&418&&l.valueDeclaration&&!ca(l.valueDeclaration)){const m=qr(l);if(m.isDeclarationWithCollidingName===void 0){const D=QE(l.valueDeclaration);if(Nbe(D)||oli(l)){const C=sr(l.valueDeclaration);if(rc(D.parent,l.escapedName,111551,void 0,void 0,!1))m.isDeclarationWithCollidingName=!0;else if(C.flags&16384){const A=C.flags&32768,w=Tx(D,!1),I=D.kind===241&&Tx(D.parent,!1);m.isDeclarationWithCollidingName=!jbe(D)&&(!A||!w&&!I)}else m.isDeclarationWithCollidingName=!1}}return m.isDeclarationWithCollidingName}return!1}function sli(l){if(!sl(l)){const m=Za(l,at);if(m){const D=HW(m);if(D&&X4t(D))return D.valueDeclaration}}}function lli(l){const m=Za(l,X1);if(m){const D=Du(m);if(D)return X4t(D)}return!1}function ept(l){switch(H.assert(Ut),l.kind){case 271:return c_e(Du(l));case 273:case 274:case 276:case 281:const m=Du(l);return!!m&&c_e(m,!0);case 278:const D=l.exportClause;return!!D&&(r_(D)||Ge(D.elements,ept));case 277:return l.expression&&l.expression.kind===80?c_e(Du(l)):!0}return!1}function cli(l){const m=Za(l,_1);return m===void 0||m.parent.kind!==312||!U8(m)?!1:c_e(Du(m))&&m.moduleReference&&!Xl(m.moduleReference)}function c_e(l,m){if(!l)return!1;const D=cp(md(l));return D===Xt?!m||!v4(l):!!(j1(l,m,!0)&111551)&&(fk(ae)||!jW(D))}function jW(l){return vze(l)||!!l.constEnumOnlyModule}function d_e(l,m){if(H.assert(Ut),lC(l)){const D=Du(l),C=D&&qr(D);if(C!=null&&C.referenced)return!0;const A=qr(D).aliasTarget;if(A&&Dh(l)&32&&j1(A)&111551&&(fk(ae)||!jW(A)))return!0}return m?!!ao(l,D=>d_e(D,m)):!1}function tpt(l){if(W4(l.body)){if(Lx(l)||e5(l))return!1;const m=Du(l),D=Tb(m);return D.length>1||D.length===1&&D[0].declaration!==l}return!1}function ipt(l){return!!fe&&!rW(l)&&!Eg(l)&&!!l.initializer&&!Qu(l,31)}function dli(l){return fe&&rW(l)&&!l.initializer&&Qu(l,31)}function hli(l){const m=Za(l,td);if(!m)return!1;const D=Du(m);return!D||!(D.flags&16)?!1:!!f1($f(D),C=>C.flags&111551&&DZ(C.valueDeclaration))}function fli(l){const m=Za(l,td);if(!m)return Dt;const D=Du(m);return D&&u0(Wn(D))||Dt}function DT(l){var m;const D=l.id||0;return D<0||D>=iC.length?0:((m=iC[D])==null?void 0:m.flags)||0}function VW(l){return M4t(l.parent),sr(l).enumMemberValue}function npt(l){switch(l.kind){case 306:case 211:case 212:return!0}return!1}function Qze(l){if(l.kind===306)return VW(l);const m=sr(l).resolvedSymbol;if(m&&m.flags&8){const D=m.valueDeclaration;if(y2(D.parent))return VW(D)}}function Xze(l){return!!(l.flags&524288)&&Eo(l,0).length>0}function mli(l,m){var D;const C=Za(l,sm);if(!C||m&&(m=Za(m),!m))return 0;let A=!1;if(vf(C)){const ce=j0(hm(C),111551,!0,!0,m);A=!!((D=ce==null?void 0:ce.declarations)!=null&&D.every(D2))}const w=j0(C,111551,!0,!0,m),I=w&&w.flags&2097152?md(w):w;A||(A=!!(w&&v4(w,111551)));const U=j0(C,788968,!0,!1,m);if(I&&I===U){const ce=mPe(!1);if(ce&&I===ce)return 9;const Fe=Wn(I);if(Fe&&jr(Fe))return A?10:1}if(!U)return A?11:0;const Z=el(U);return Nt(Z)?A?11:0:Z.flags&3?11:r1(Z,245760)?2:r1(Z,528)?6:r1(Z,296)?3:r1(Z,2112)?4:r1(Z,402653316)?5:xs(Z)?7:r1(Z,12288)?8:Xze(Z)?10:w4(Z)?7:11}function pli(l,m,D,C,A){const w=Za(l,Ybe);if(!w)return q.createToken(133);const I=Du(w);let U=I&&!(I.flags&133120)?Rb(Wn(I)):Ot;return U.flags&8192&&U.symbol===I&&(D|=1048576),A&&(U=S6(U)),Yt.typeToTypeNode(U,m,D|1024,C)}function gli(l,m,D,C){const A=Za(l,Co);if(!A)return q.createToken(133);const w=fp(A);return Yt.typeToTypeNode(Ys(w),m,D|1024,C)}function Eli(l,m,D,C){const A=Za(l,Wt);if(!A)return q.createToken(133);const w=vm(q4t(A));return Yt.typeToTypeNode(w,m,D|1024,C)}function _li(l){return Ie.has(Sl(l))}function HW(l,m){const D=sr(l).resolvedSymbol;if(D)return D;let C=l;if(m){const A=l.parent;X1(A)&&l===A.name&&(C=dF(A))}return rc(C,l.escapedText,3257279,void 0,void 0,!0)}function Dli(l){const m=sr(l).resolvedSymbol;return m&&m!==Xt?m:rc(l,l.escapedText,3257279,void 0,void 0,!0,void 0,void 0)}function xli(l){if(!sl(l)){const m=Za(l,at);if(m){const D=HW(m);if(D)return cp(D).valueDeclaration}}}function vli(l){if(!sl(l)){const m=Za(l,at);if(m){const D=HW(m);if(D)return ti(cp(D).declarations,C=>{switch(C.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 Cli(l){return aq(l)||ra(l)&&g_e(l)?Mb(Wn(Du(l))):!1}function bli(l,m,D){const C=l.flags&1056?Yt.symbolToExpression(l.symbol,111551,m,void 0,D):l===du?q.createTrue():l===Ui&&q.createFalse();if(C)return C;const A=l.value;return typeof A=="object"?q.createBigIntLiteral(A):typeof A=="number"?q.createNumericLiteral(A):q.createStringLiteral(A)}function yli(l,m){const D=Wn(Du(l));return bli(D,l,m)}function upt(l){return l?(rC(l),zn(l).localJsxFactory||k5):k5}function eIe(l){if(l){const m=zn(l);if(m){if(m.localJsxFragmentFactory)return m.localJsxFragmentFactory;const D=m.pragmas.get("jsxfrag"),C=Wa(D)?D[0]:D;if(C)return m.localJsxFragmentFactory=G7(C.arguments.factory,Ce),m.localJsxFragmentFactory}}if(ae.jsxFragmentFactory)return G7(ae.jsxFragmentFactory,Ce)}function kli(){const l=t.getResolvedTypeReferenceDirectives();let m;return l&&(m=new Map,l.forEach(({resolvedTypeReferenceDirective:Z},ce,Fe)=>{if(!(Z!=null&&Z.resolvedFileName))return;const Te=t.getSourceFile(Z.resolvedFileName);Te&&U(Te,ce,Fe)})),{getReferencedExportContainer:rli,getReferencedImportDeclaration:ali,getReferencedDeclarationWithCollidingName:sli,isDeclarationWithCollidingName:lli,isValueAliasDeclaration:Z=>{const ce=Za(Z);return ce&&Ut?ept(ce):!0},hasGlobalName:_li,isReferencedAliasDeclaration:(Z,ce)=>{const Fe=Za(Z);return Fe&&Ut?d_e(Fe,ce):!0},getNodeCheckFlags:Z=>{const ce=Za(Z);return ce?DT(ce):0},isTopLevelValueImportEqualsWithEntityName:cli,isDeclarationVisible:pD,isImplementationOfOverload:tpt,isRequiredInitializedParameter:ipt,isOptionalUninitializedParameterProperty:dli,isExpandoFunctionDeclaration:hli,getPropertiesOfContainerFunction:fli,createTypeOfDeclaration:pli,createReturnTypeOfSignatureDeclaration:gli,createTypeOfExpression:Eli,createLiteralConstValue:yli,isSymbolAccessible:Fu,isEntityNameVisible:Uf,getConstantValue:Z=>{const ce=Za(Z,npt);return ce?Qze(ce):void 0},collectLinkedAliases:qw,getReferencedValueDeclaration:xli,getReferencedValueDeclarations:vli,getTypeReferenceSerializationKind:mli,isOptionalParameter:rW,moduleExportsSomeValue:nli,isArgumentsLocalBinding:ili,getExternalModuleFileFromDeclaration:Z=>{const ce=Za(Z,Hbe);return ce&&tIe(ce)},getTypeReferenceDirectivesForEntityName:A,getTypeReferenceDirectivesForSymbol:w,isLiteralConstDeclaration:Cli,isLateBound:Z=>{const ce=Za(Z,X1),Fe=ce&&Du(ce);return!!(Fe&&Gl(Fe)&4096)},getJsxFactoryEntity:upt,getJsxFragmentFactoryEntity:eIe,getAllAccessorDeclarations(Z){Z=Za(Z,MU);const ce=Z.kind===178?177:178,Fe=Bl(Du(Z),ce),Te=Fe&&Fe.posx3(Z,Z,void 0),isBindingCapturedByNode:(Z,ce)=>{const Fe=Za(Z),Te=Za(ce);return!!Fe&&!!Te&&(ra(Te)||Vs(Te))&&Qni(Fe,Te)},getDeclarationStatementsForSourceFile:(Z,ce,Fe,Te)=>{const $e=Za(Z);H.assert($e&&$e.kind===312,"Non-sourcefile node passed into getDeclarationsForSourceFile");const ut=Du(Z);return ut?ut.exports?Yt.symbolTableToDeclarationStatements(ut.exports,Z,ce,Fe,Te):[]:Z.locals?Yt.symbolTableToDeclarationStatements(Z.locals,Z,ce,Fe,Te):[]},isImportRequiredByAugmentation:D,tryFindAmbientModule:Z=>{const ce=Za(Z),Fe=ce&&i0(ce)?ce.text:void 0;return Fe!==void 0?Age(Fe,!0):void 0}};function D(Z){const ce=zn(Z);if(!ce.symbol)return!1;const Fe=tIe(Z);if(!Fe||Fe===ce)return!1;const Te=v3(ce.symbol);for(const $e of Ea(Te.values()))if($e.mergeId){const ut=Ws($e);if(ut.declarations){for(const zt of ut.declarations)if(zn(zt)===Fe)return!0}}return!1}function C(Z){return Z.parent&&Z.parent.kind===233&&Z.parent.parent&&Z.parent.parent.kind===298}function A(Z){if(!m)return;let ce;Z.parent.kind===167?ce=1160127:(ce=790504,(Z.kind===80&&ck(Z)||Z.kind===211&&!C(Z))&&(ce=1160127));const Fe=j0(Z,ce,!0);return Fe&&Fe!==Xt?w(Fe,ce):void 0}function w(Z,ce){if(!m||!I(Z))return;let Fe;for(const Te of Z.declarations)if(Te.symbol&&Te.symbol.flags&ce){const $e=zn(Te),ut=m.get($e.path);if(ut)(Fe||(Fe=[])).push(ut);else return}return Fe}function I(Z){if(!Z.declarations)return!1;let ce=Z;for(;;){const Fe=cf(ce);if(Fe)ce=Fe;else break}if(ce.valueDeclaration&&ce.valueDeclaration.kind===312&&ce.flags&512)return!1;for(const Fe of Z.declarations){const Te=zn(Fe);if(m.has(Te.path))return!0}return!1}function U(Z,ce,Fe){if(!m.has(Z.path)){m.set(Z.path,[ce,Fe]);for(const{fileName:Te}of Z.referencedFiles){const $e=kQ(Te,Z.fileName),ut=t.getSourceFile($e);ut&&U(ut,ce,Fe||Z.impliedNodeFormat)}}}}function tIe(l){const m=l.kind===267?ar(l.name,rs):Y8(l),D=x3(m,m,void 0);if(D)return Bl(D,312)}function Fli(){for(const m of t.getSourceFiles())PAe(m,ae);m0=new Map;let l;for(const m of t.getSourceFiles())if(!m.redirectInfo){if(!cm(m)){const D=m.locals.get("globalThis");if(D!=null&&D.declarations)for(const C of D.declarations)Hs.add(Tu(C,F.Declaration_name_conflicts_with_built_in_global_identifier_0,"globalThis"));pE(Ie,m.locals)}m.jsGlobalAugmentations&&pE(Ie,m.jsGlobalAugmentations),m.patternAmbientModules&&m.patternAmbientModules.length&&(p4=mi(p4,m.patternAmbientModules)),m.moduleAugmentations.length&&(l||(l=[])).push(m.moduleAugmentations),m.symbol&&m.symbol.globalExports&&m.symbol.globalExports.forEach((C,A)=>{Ie.has(A)||Ie.set(A,C)})}if(l)for(const m of l)for(const D of m)Qg(D.parent)&&iF(D);if(zw(Ie,Pw,F.Declaration_name_conflicts_with_built_in_global_identifier_0),qr(st).type=we,qr(It).type=Rc("IArguments",0,!0),qr(Xt).type=Ot,qr(Bt).type=C4(16,Bt),Fo=Rc("Array",1,!0),Ve=Rc("Object",0,!0),di=Rc("Function",0,!0),Mn=Be&&Rc("CallableFunction",0,!0)||di,ka=Be&&Rc("NewableFunction",0,!0)||di,uc=Rc("String",0,!0),mc=Rc("Number",0,!0),bl=Rc("Boolean",0,!0),Ll=Rc("RegExp",0,!0),ql=H1(me),Mc=H1(ni),Mc===Wo&&(Mc=Ol(void 0,se,Dt,Dt,Dt)),To=o1t("ReadonlyArray",1)||Fo,up=To?sW(To,[me]):ql,kc=o1t("ThisType",1),l)for(const m of l)for(const D of m)Qg(D.parent)||iF(D);m0.forEach(({firstFile:m,secondFile:D,conflictingSymbols:C})=>{if(C.size<8)C.forEach(({isBlockScoped:A,firstFileLocations:w,secondFileLocations:I},U)=>{const Z=A?F.Cannot_redeclare_block_scoped_variable_0:F.Duplicate_identifier_0;for(const ce of w)g3(ce,Z,U,I);for(const ce of I)g3(ce,Z,U,w)});else{const A=Ea(C.keys()).join(", ");Hs.add(Es(Tu(m,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Tu(D,F.Conflicts_are_in_this_file))),Hs.add(Es(Tu(D,F.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0,A),Tu(m,F.Conflicts_are_in_this_file)))}}),m0=void 0}function ad(l,m){if((p&m)!==m&&ae.importHelpers){const D=zn(l);if(s7(D,ae)&&!(l.flags&33554432)){const C=Sli(D,l);if(C!==Xt){const A=m&~p;for(let w=1;w<=33554432;w<<=1)if(A&w)for(const I of Ali(w)){if(f.has(I))continue;f.add(I);const U=Fc(kf(v3(C),Sl(I),111551));U?w&524288?Ge(Tb(U),Z=>Cm(Z)>3)||gt(l,F.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,Hx,I,4):w&1048576?Ge(Tb(U),Z=>Cm(Z)>4)||gt(l,F.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,Hx,I,5):w&1024&&(Ge(Tb(U),Z=>Cm(Z)>2)||gt(l,F.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,Hx,I,3)):gt(l,F.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0,Hx,I)}}p|=m}}}function Ali(l){switch(l){case 1:return["__extends"];case 2:return["__assign"];case 4:return["__rest"];case 8:return ve?["__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["__createBinding"];case 8388608:return["__setFunctionName"];case 16777216:return["__propKey"];case 33554432:return["__addDisposableResource","__disposeResources"];default:return H.fail("Unrecognized helper")}}function Sli(l,m){return E||(E=mD(l,Hx,F.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found,m)||Xt),E}function B3(l){const m=Tli(l)||Bli(l);if(m!==void 0)return m;if(io(l)&&N2(l))return a1(l,F.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters);const D=Jl(l)?l.declarationList.flags&7:0;let C,A,w,I,U,Z=0,ce=!1,Fe=!1;for(const Te of l.modifiers)if(E1(Te)){if(_q(ve,l,l.parent,l.parent.parent)){if(ve&&(l.kind===177||l.kind===178)){const $e=dk(l.parent.members,l);if(c4($e.firstAccessor)&&l===$e.secondAccessor)return a1(l,F.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name)}}else return l.kind===174&&!W4(l.body)?a1(l,F.A_decorator_can_only_decorate_a_method_implementation_not_an_overload):a1(l,F.Decorators_are_not_valid_here);if(Z&-34849)return Zi(Te,F.Decorators_are_not_valid_here);if(Fe&&Z&98303){H.assertIsDefined(U);const $e=zn(Te);return Wb($e)?!1:(Es(gt(Te,F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),Tu(U,F.Decorator_used_before_export_here)),!0)}Z|=32768,Z&98303?Z&32&&(ce=!0):Fe=!0,U??(U=Te)}else{if(Te.kind!==148){if(l.kind===171||l.kind===173)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_member,qo(Te.kind));if(l.kind===181&&(Te.kind!==126||!gr(l.parent)))return Zi(Te,F._0_modifier_cannot_appear_on_an_index_signature,qo(Te.kind))}if(Te.kind!==103&&Te.kind!==147&&Te.kind!==87&&l.kind===168)return Zi(Te,F._0_modifier_cannot_appear_on_a_type_parameter,qo(Te.kind));switch(Te.kind){case 87:if(l.kind!==266&&l.kind!==168)return Zi(l,F.A_class_member_cannot_have_the_0_keyword,qo(87));const $e=l.parent;if(l.kind===168&&!(U0($e)||gr($e)||r3($e)||GP($e)||CB($e)||AV($e)||u3($e)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_function_method_or_class,qo(Te.kind));break;case 164:if(Z&16)return Zi(Te,F._0_modifier_already_seen,"override");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"override","declare");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","readonly");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","accessor");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"override","async");Z|=16,I=Te;break;case 125:case 124:case 123:const ut=b3(_7(Te.kind));if(Z&7)return Zi(Te,F.Accessibility_modifier_already_seen);if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"override");if(Z&256)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"static");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"accessor");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"async");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,ut);if(Z&64)return Te.kind===123?Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,ut,"abstract"):Zi(Te,F._0_modifier_must_precede_1_modifier,ut,"abstract");if(Eh(l))return Zi(Te,F.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);Z|=_7(Te.kind);break;case 126:if(Z&256)return Zi(Te,F._0_modifier_already_seen,"static");if(Z&8)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","readonly");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","async");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","accessor");if(l.parent.kind===268||l.parent.kind===312)return Zi(Te,F._0_modifier_cannot_appear_on_a_module_or_namespace_element,"static");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"static");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"static","override");Z|=256,C=Te;break;case 129:if(Z&512)return Zi(Te,F._0_modifier_already_seen,"accessor");if(Z&8)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","readonly");if(Z&128)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"accessor","declare");if(l.kind!==172)return Zi(Te,F.accessor_modifier_can_only_appear_on_a_property_declaration);Z|=512;break;case 148:if(Z&8)return Zi(Te,F._0_modifier_already_seen,"readonly");if(l.kind!==172&&l.kind!==171&&l.kind!==181&&l.kind!==169)return Zi(Te,F.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"readonly","accessor");Z|=8;break;case 95:if(ae.verbatimModuleSyntax&&!(l.flags&33554432)&&l.kind!==265&&l.kind!==264&&l.kind!==267&&l.parent.kind===312&&(ne===1||zn(l).impliedNodeFormat===1))return Zi(Te,F.A_top_level_export_modifier_cannot_be_used_on_value_declarations_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(Z&32)return Zi(Te,F._0_modifier_already_seen,"export");if(Z&128)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","declare");if(Z&64)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","abstract");if(Z&1024)return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","async");if(gr(l.parent))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"export");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"export");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"export");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"export");Z|=32;break;case 90:const zt=l.parent.kind===312?l.parent:l.parent.parent;if(zt.kind===267&&!P1(zt))return Zi(Te,F.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"default");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"default");if(Z&32){if(ce)return Zi(U,F.Decorators_are_not_valid_here)}else return Zi(Te,F._0_modifier_must_precede_1_modifier,"export","default");Z|=2048;break;case 138:if(Z&128)return Zi(Te,F._0_modifier_already_seen,"declare");if(Z&1024)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(Z&16)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"override");if(gr(l.parent)&&!ko(l))return Zi(Te,F._0_modifier_cannot_appear_on_class_elements_of_this_kind,"declare");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"declare");if(D===4)return Zi(Te,F._0_modifier_cannot_appear_on_a_using_declaration,"declare");if(D===6)return Zi(Te,F._0_modifier_cannot_appear_on_an_await_using_declaration,"declare");if(l.parent.flags&33554432&&l.parent.kind===268)return Zi(Te,F.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);if(Eh(l))return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"declare");if(Z&512)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"declare","accessor");Z|=128,A=Te;break;case 128:if(Z&64)return Zi(Te,F._0_modifier_already_seen,"abstract");if(l.kind!==263&&l.kind!==185){if(l.kind!==174&&l.kind!==172&&l.kind!==177&&l.kind!==178)return Zi(Te,F.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);if(!(l.parent.kind===263&&Qu(l.parent,64))){const dn=l.kind===172?F.Abstract_properties_can_only_appear_within_an_abstract_class:F.Abstract_methods_can_only_appear_within_an_abstract_class;return Zi(Te,dn)}if(Z&256)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"static","abstract");if(Z&2)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"private","abstract");if(Z&1024&&w)return Zi(w,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");if(Z&16)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","override");if(Z&512)return Zi(Te,F._0_modifier_must_precede_1_modifier,"abstract","accessor")}if(gh(l)&&l.name.kind===81)return Zi(Te,F._0_modifier_cannot_be_used_with_a_private_identifier,"abstract");Z|=64;break;case 134:if(Z&1024)return Zi(Te,F._0_modifier_already_seen,"async");if(Z&128||l.parent.flags&33554432)return Zi(Te,F._0_modifier_cannot_be_used_in_an_ambient_context,"async");if(l.kind===169)return Zi(Te,F._0_modifier_cannot_appear_on_a_parameter,"async");if(Z&64)return Zi(Te,F._0_modifier_cannot_be_used_with_1_modifier,"async","abstract");Z|=1024,w=Te;break;case 103:case 147:const gi=Te.kind===103?8192:16384,Wi=Te.kind===103?"in":"out";if(l.kind!==168||!(Ch(l.parent)||gr(l.parent)||Vp(l.parent)))return Zi(Te,F._0_modifier_can_only_appear_on_a_type_parameter_of_a_class_interface_or_type_alias,Wi);if(Z&gi)return Zi(Te,F._0_modifier_already_seen,Wi);if(gi&8192&&Z&16384)return Zi(Te,F._0_modifier_must_precede_1_modifier,"in","out");Z|=gi;break}}return l.kind===176?Z&256?Zi(C,F._0_modifier_cannot_appear_on_a_constructor_declaration,"static"):Z&16?Zi(I,F._0_modifier_cannot_appear_on_a_constructor_declaration,"override"):Z&1024?Zi(w,F._0_modifier_cannot_appear_on_a_constructor_declaration,"async"):!1:(l.kind===272||l.kind===271)&&Z&128?Zi(A,F.A_0_modifier_cannot_be_used_with_an_import_declaration,"declare"):l.kind===169&&Z&31&&So(l.name)?Zi(l,F.A_parameter_property_may_not_be_declared_using_a_binding_pattern):l.kind===169&&Z&31&&l.dotDotDotToken?Zi(l,F.A_parameter_property_cannot_be_declared_using_a_rest_parameter):Z&1024?Nli(l,w):!1}function Bli(l){if(!l.modifiers)return!1;const m=wli(l);return m&&a1(m,F.Modifiers_cannot_appear_here)}function h_e(l,m){const D=Le(l.modifiers,Xo);return D&&D.kind!==m?D:void 0}function wli(l){switch(l.kind){case 177:case 178:case 176:case 172:case 171:case 174:case 173:case 181:case 267:case 272:case 271:case 278:case 277:case 218:case 219:case 169:case 168:return;case 175:case 303:case 304:case 270:case 282:return Le(l.modifiers,Xo);default:if(l.parent.kind===268||l.parent.kind===312)return;switch(l.kind){case 262:return h_e(l,134);case 263:case 185:return h_e(l,128);case 231:case 264:case 265:return Le(l.modifiers,Xo);case 243:return l.declarationList.flags&4?h_e(l,135):Le(l.modifiers,Xo);case 266:return h_e(l,87);default:H.assertNever(l)}}}function Tli(l){const m=Lli(l);return m&&a1(m,F.Decorators_are_not_valid_here)}function Lli(l){return Wce(l)?Le(l.modifiers,E1):void 0}function Nli(l,m){switch(l.kind){case 174:case 262:case 218:case 219:return!1}return Zi(m,F._0_modifier_cannot_be_used_here,"async")}function iS(l,m=F.Trailing_comma_not_allowed){return l&&l.hasTrailingComma?Gb(l[0],l.end-1,1,m):!1}function rpt(l,m){if(l&&l.length===0){const D=l.pos-1,C=gs(m.text,l.end)+1;return Gb(m,D,C-D,F.Type_parameter_list_cannot_be_empty)}return!1}function Pli(l){let m=!1;const D=l.length;for(let C=0;C!!m.initializer||So(m.name)||U_(m))}function zli(l){if(Ce>=3){const m=l.body&&go(l.body)&&jce(l.body.statements);if(m){const D=Mli(l.parameters);if(S(D)){L(D,A=>{Es(gt(A,F.This_parameter_is_not_allowed_with_use_strict_directive),Tu(m,F.use_strict_directive_used_here))});const C=D.map((A,w)=>w===0?Tu(A,F.Non_simple_parameter_declared_here):Tu(A,F.and_here));return Es(gt(m,F.use_strict_directive_cannot_be_used_with_non_simple_parameter_list),...C),!0}}}return!1}function f_e(l){const m=zn(l);return B3(l)||rpt(l.typeParameters,m)||Pli(l.parameters)||Rli(l,m)||U0(l)&&zli(l)}function Ili(l){const m=zn(l);return Kli(l)||rpt(l.typeParameters,m)}function Rli(l,m){if(!Z0(l))return!1;l.typeParameters&&!(S(l.typeParameters)>1||l.typeParameters.hasTrailingComma||l.typeParameters[0].constraint)&&m&&Hc(m.fileName,[".mts",".cts"])&&Zi(l.typeParameters[0],F.This_syntax_is_reserved_in_files_with_the_mts_or_cts_extension_Add_a_trailing_comma_or_explicit_constraint);const{equalsGreaterThanToken:D}=l,C=s0(m,D.pos).line,A=s0(m,D.end).line;return C!==A&&Zi(D,F.Line_terminator_not_permitted_before_arrow)}function Oli(l){const m=l.parameters[0];if(l.parameters.length!==1)return Zi(m?m.name:l,F.An_index_signature_must_have_exactly_one_parameter);if(iS(l.parameters,F.An_index_signature_cannot_have_a_trailing_comma),m.dotDotDotToken)return Zi(m.dotDotDotToken,F.An_index_signature_cannot_have_a_rest_parameter);if(Hq(m))return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_accessibility_modifier);if(m.questionToken)return Zi(m.questionToken,F.An_index_signature_parameter_cannot_have_a_question_mark);if(m.initializer)return Zi(m.name,F.An_index_signature_parameter_cannot_have_an_initializer);if(!m.type)return Zi(m.name,F.An_index_signature_parameter_must_have_a_type_annotation);const D=Br(m.type);return kE(D,C=>!!(C.flags&8576))||Fz(D)?Zi(m.name,F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead):t4(D,Tge)?l.type?!1:Zi(l,F.An_index_signature_must_have_a_type_annotation):Zi(m.name,F.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type)}function jli(l){return B3(l)||Oli(l)}function Vli(l,m){if(m&&m.length===0){const D=zn(l),C=m.pos-1,A=gs(D.text,m.end)+1;return Gb(D,C,A-C,F.Type_argument_list_cannot_be_empty)}return!1}function Bie(l,m){return iS(m)||Vli(l,m)}function Hli(l){return l.questionDotToken||l.flags&64?Zi(l.template,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain):!1}function apt(l){const m=l.types;if(iS(m))return!0;if(m&&m.length===0){const D=qo(l.token);return Gb(l,m.pos,0,F._0_list_cannot_be_empty,D)}return Ge(m,opt)}function opt(l){return c5(l)&&WP(l.expression)&&l.typeArguments?Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments):Bie(l,l.typeArguments)}function Kli(l){let m=!1,D=!1;if(!B3(l)&&l.heritageClauses)for(const C of l.heritageClauses){if(C.token===96){if(m)return a1(C,F.extends_clause_already_seen);if(D)return a1(C,F.extends_clause_must_precede_implements_clause);if(C.types.length>1)return a1(C.types[1],F.Classes_can_only_extend_a_single_class);m=!0}else{if(H.assert(C.token===119),D)return a1(C,F.implements_clause_already_seen);D=!0}apt(C)}}function Wli(l){let m=!1;if(l.heritageClauses)for(const D of l.heritageClauses){if(D.token===96){if(m)return a1(D,F.extends_clause_already_seen);m=!0}else return H.assert(D.token===119),a1(D,F.Interface_declaration_cannot_have_implements_clause);apt(D)}return!1}function m_e(l){if(l.kind!==167)return!1;const m=l;return m.expression.kind===226&&m.expression.operatorToken.kind===28?Zi(m.expression,F.A_comma_expression_is_not_allowed_in_a_computed_property_name):!1}function iIe(l){if(l.asteriskToken){if(H.assert(l.kind===262||l.kind===218||l.kind===174),l.flags&33554432)return Zi(l.asteriskToken,F.Generators_are_not_allowed_in_an_ambient_context);if(!l.body)return Zi(l.asteriskToken,F.An_overload_signature_cannot_be_declared_as_a_generator)}}function nIe(l,m){return!!l&&Zi(l,m)}function spt(l,m){return!!l&&Zi(l,m)}function Gli(l,m){const D=new Map;for(const C of l.properties){if(C.kind===305){if(m){const I=l0(C.expression);if(vh(I)||ys(I))return Zi(C.expression,F.A_rest_element_cannot_contain_a_binding_pattern)}continue}const A=C.name;if(A.kind===167&&m_e(A),C.kind===304&&!m&&C.objectAssignmentInitializer&&Zi(C.equalsToken,F.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),A.kind===81&&Zi(A,F.Private_identifiers_are_not_allowed_outside_class_bodies),Kp(C)&&C.modifiers)for(const I of C.modifiers)Xo(I)&&(I.kind!==134||C.kind!==174)&&Zi(I,F._0_modifier_cannot_be_used_here,Wc(I));else if(RFe(C)&&C.modifiers)for(const I of C.modifiers)Xo(I)&&Zi(I,F._0_modifier_cannot_be_used_here,Wc(I));let w;switch(C.kind){case 304:case 303:spt(C.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context),nIe(C.questionToken,F.An_object_member_cannot_be_declared_optional),A.kind===9&&aIe(A),w=4;break;case 174:w=8;break;case 177:w=1;break;case 178:w=2;break;default:H.assertNever(C,"Unexpected syntax kind:"+C.kind)}if(!m){const I=oIe(A);if(I===void 0)continue;const U=D.get(I);if(!U)D.set(I,w);else if(w&8&&U&8)Zi(A,F.Duplicate_identifier_0,Wc(A));else if(w&4&&U&4)Zi(A,F.An_object_literal_cannot_have_multiple_properties_with_the_same_name,Wc(A));else if(w&3&&U&3)if(U!==3&&w!==U)D.set(I,w|U);else return Zi(A,F.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);else return Zi(A,F.An_object_literal_cannot_have_property_and_accessor_with_the_same_name)}}}function Jli(l){$li(l.tagName),Bie(l,l.typeArguments);const m=new Map;for(const D of l.attributes.properties){if(D.kind===293)continue;const{name:C,initializer:A}=D,w=zP(C);if(!m.get(w))m.set(w,!0);else return Zi(C,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);if(A&&A.kind===294&&!A.expression)return Zi(A,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression)}}function $li(l){if(Ru(l)&&gg(l.expression))return Zi(l.expression,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names);if(gg(l)&&uZ(ae)&&!aB(l.namespace.escapedText))return Zi(l,F.React_components_cannot_include_JSX_namespace_names)}function Uli(l){if(l.expression&&tM(l.expression))return Zi(l.expression,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array)}function lpt(l){if(SD(l))return!0;if(l.kind===250&&l.awaitModifier&&!(l.flags&65536)){const m=zn(l);if(pq(l)){if(!Wb(m))switch(s7(m,ae)||Hs.add(Tu(l.awaitModifier,F.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)),ne){case 100:case 199:if(m.impliedNodeFormat===1){Hs.add(Tu(l.awaitModifier,F.The_current_file_is_a_CommonJS_module_and_cannot_use_await_at_the_top_level));break}case 7:case 99:case 4:if(Ce>=4)break;default:Hs.add(Tu(l.awaitModifier,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher));break}}else if(!Wb(m)){const D=Tu(l.awaitModifier,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules),C=Pm(l);if(C&&C.kind!==176){H.assert((kd(C)&2)===0,"Enclosing function should never be an async function.");const A=Tu(C,F.Did_you_mean_to_mark_this_function_as_async);Es(D,A)}return Hs.add(D),!0}return!1}if(BV(l)&&!(l.flags&65536)&&at(l.initializer)&&l.initializer.escapedText==="async")return Zi(l.initializer,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async),!1;if(l.initializer.kind===261){const m=l.initializer;if(!rIe(m)){const D=m.declarations;if(!D.length)return!1;if(D.length>1){const A=l.kind===249?F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement:F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;return a1(m.declarations[1],A)}const C=D[0];if(C.initializer){const A=l.kind===249?F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer:F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;return Zi(C.name,A)}if(C.type){const A=l.kind===249?F.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation:F.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;return Zi(C,A)}}}return!1}function qli(l){if(!(l.flags&33554432)&&l.parent.kind!==187&&l.parent.kind!==264){if(Ce<1)return Zi(l.name,F.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.body===void 0&&!Qu(l,64))return Gb(l,l.end-1,1,F._0_expected,"{")}if(l.body){if(Qu(l,64))return Zi(l,F.An_abstract_accessor_cannot_have_an_implementation);if(l.parent.kind===187||l.parent.kind===264)return Zi(l.body,F.An_implementation_cannot_be_declared_in_ambient_contexts)}if(l.typeParameters)return Zi(l.name,F.An_accessor_cannot_have_type_parameters);if(!Zli(l))return Zi(l.name,l.kind===177?F.A_get_accessor_cannot_have_parameters:F.A_set_accessor_must_have_exactly_one_parameter);if(l.kind===178){if(l.type)return Zi(l.name,F.A_set_accessor_cannot_have_a_return_type_annotation);const m=H.checkDefined(fP(l),"Return value does not match parameter count assertion.");if(m.dotDotDotToken)return Zi(m.dotDotDotToken,F.A_set_accessor_cannot_have_rest_parameter);if(m.questionToken)return Zi(m.questionToken,F.A_set_accessor_cannot_have_an_optional_parameter);if(m.initializer)return Zi(l.name,F.A_set_accessor_parameter_cannot_have_an_initializer)}return!1}function Zli(l){return uIe(l)||l.parameters.length===(l.kind===177?0:1)}function uIe(l){if(l.parameters.length===(l.kind===177?1:2))return L2(l)}function Yli(l){if(l.operator===158){if(l.type.kind!==155)return Zi(l.type,F._0_expected,qo(155));let m=Nj(l.parent);if(Xn(m)&&kk(m)){const D=h7(m);D&&(m=eB(D)||D)}switch(m.kind){case 260:const D=m;if(D.name.kind!==80)return Zi(l,F.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);if(!ZN(D))return Zi(l,F.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);if(!(D.parent.flags&2))return Zi(m.name,F.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);break;case 172:if(!No(m)||!mP(m))return Zi(m.name,F.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);break;case 171:if(!Qu(m,8))return Zi(m.name,F.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);break;default:return Zi(l,F.unique_symbol_types_are_not_allowed_here)}}else if(l.operator===148&&l.type.kind!==188&&l.type.kind!==189)return a1(l,F.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types,qo(155))}function $z(l,m){if(vXt(l))return Zi(l,m)}function cpt(l){if(f_e(l))return!0;if(l.kind===174){if(l.parent.kind===210){if(l.modifiers&&!(l.modifiers.length===1&&Pn(l.modifiers).kind===134))return a1(l,F.Modifiers_cannot_appear_here);if(nIe(l.questionToken,F.An_object_member_cannot_be_declared_optional))return!0;if(spt(l.exclamationToken,F.A_definite_assignment_assertion_is_not_permitted_in_this_context))return!0;if(l.body===void 0)return Gb(l,l.end-1,1,F._0_expected,"{")}if(iIe(l))return!0}if(gr(l.parent)){if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(l.flags&33554432)return $z(l.name,F.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.kind===174&&!l.body)return $z(l.name,F.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}else{if(l.parent.kind===264)return $z(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);if(l.parent.kind===187)return $z(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)}}function Qli(l){let m=l;for(;m;){if(L8(m))return Zi(l,F.Jump_target_cannot_cross_function_boundary);switch(m.kind){case 256:if(l.label&&m.label.escapedText===l.label.escapedText)return l.kind===251&&!Tx(m.statement,!0)?Zi(l,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement):!1;break;case 255:if(l.kind===252&&!l.label)return!1;break;default:if(Tx(m,!1)&&!l.label)return!1;break}m=m.parent}if(l.label){const D=l.kind===252?F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement:F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;return Zi(l,D)}else{const D=l.kind===252?F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement:F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;return Zi(l,D)}}function Xli(l){if(l.dotDotDotToken){const m=l.parent.elements;if(l!==yr(m))return Zi(l,F.A_rest_element_must_be_last_in_a_destructuring_pattern);if(iS(m,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma),l.propertyName)return Zi(l.name,F.A_rest_element_cannot_have_a_property_name)}if(l.dotDotDotToken&&l.initializer)return Gb(l,l.initializer.pos-1,1,F.A_rest_element_cannot_have_an_initializer)}function dpt(l){return Mm(l)||l.kind===224&&l.operator===41&&l.operand.kind===9}function eci(l){return l.kind===10||l.kind===224&&l.operator===41&&l.operand.kind===10}function tci(l){if((Ru(l)||q0(l)&&dpt(l.argumentExpression))&&tc(l.expression))return!!(jc(l).flags&1056)}function hpt(l){const m=l.initializer;if(m){const D=!(dpt(m)||tci(m)||m.kind===112||m.kind===97||eci(m));if((aq(l)||ra(l)&&g_e(l))&&!l.type){if(D)return Zi(m,F.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference)}else return Zi(m,F.Initializers_are_not_allowed_in_ambient_contexts)}}function ici(l){const m=Jb(l),D=m&7;if(So(l.name))switch(D){case 6:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"await using");case 4:return Zi(l,F._0_declarations_may_not_have_binding_patterns,"using")}if(l.parent.parent.kind!==249&&l.parent.parent.kind!==250){if(m&33554432)hpt(l);else if(!l.initializer){if(So(l.name)&&!So(l.parent))return Zi(l,F.A_destructuring_declaration_must_have_an_initializer);switch(D){case 6:return Zi(l,F._0_declarations_must_be_initialized,"await using");case 4:return Zi(l,F._0_declarations_must_be_initialized,"using");case 2:return Zi(l,F._0_declarations_must_be_initialized,"const")}}}if(l.exclamationToken&&(l.parent.parent.kind!==243||!l.type||l.initializer||m&33554432)){const C=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,C)}return(ne<5||zn(l).impliedNodeFormat===1)&&ne!==4&&!(l.parent.parent.flags&33554432)&&Qu(l.parent.parent,32)&&fpt(l.name),!!D&&mpt(l.name)}function fpt(l){if(l.kind===80){if(fu(l)==="__esModule")return rci("noEmit",l,F.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules)}else{const m=l.elements;for(const D of m)if(!Fd(D))return fpt(D.name)}return!1}function mpt(l){if(l.kind===80){if(l.escapedText==="let")return Zi(l,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations)}else{const m=l.elements;for(const D of m)Fd(D)||mpt(D.name)}return!1}function rIe(l){const m=l.declarations;if(iS(l.declarations))return!0;if(!l.declarations.length)return Gb(l,m.pos,m.end-m.pos,F.Variable_declaration_list_cannot_be_empty);const D=l.flags&7;return(D===4||D===6)&&mY(l.parent)?Zi(l,D===4?F.The_left_hand_side_of_a_for_in_statement_cannot_be_a_using_declaration:F.The_left_hand_side_of_a_for_in_statement_cannot_be_an_await_using_declaration):D===6?Tmt(l):!1}function ppt(l){switch(l.kind){case 245:case 246:case 247:case 254:case 248:case 249:case 250:return!1;case 256:return ppt(l.parent)}return!0}function nci(l){if(!ppt(l.parent)){const m=Jb(l.declarationList)&7;if(m){const D=m===1?"let":m===2?"const":m===4?"using":m===6?"await using":H.fail("Unknown BlockScope flag");return Zi(l,F._0_declarations_can_only_be_declared_inside_a_block,D)}}}function uci(l){const m=l.name.escapedText;switch(l.keywordToken){case 105:if(m!=="target")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Qr(l.name.escapedText),qo(l.keywordToken),"target");break;case 102:if(m!=="meta")return Zi(l.name,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2,Qr(l.name.escapedText),qo(l.keywordToken),"meta");break}}function Wb(l){return l.parseDiagnostics.length>0}function a1(l,m,...D){const C=zn(l);if(!Wb(C)){const A=XE(C,l.pos);return Hs.add(Rd(C,A.start,A.length,m,...D)),!0}return!1}function Gb(l,m,D,C,...A){const w=zn(l);return Wb(w)?!1:(Hs.add(Rd(w,m,D,C,...A)),!0)}function rci(l,m,D,...C){const A=zn(m);return Wb(A)?!1:(A5(l,m,D,...C),!0)}function Zi(l,m,...D){const C=zn(l);return Wb(C)?!1:(Hs.add(Tu(l,m,...D)),!0)}function aci(l){const m=Xn(l)?Vq(l):void 0,D=l.typeParameters||m&&Ki(m);if(D){const C=D.pos===D.end?D.pos:gs(zn(l).text,D.pos);return Gb(l,C,D.end-C,F.Type_parameters_cannot_appear_on_a_constructor_declaration)}}function oci(l){const m=l.type||Z4(l);if(m)return Zi(m,F.Type_annotation_cannot_appear_on_a_constructor_declaration)}function sci(l){if(Ms(l.name)&&eu(l.name.expression)&&l.name.expression.operatorToken.kind===103)return Zi(l.parent.members[0],F.A_mapped_type_may_not_declare_properties_or_methods);if(gr(l.parent)){if(rs(l.name)&&l.name.text==="constructor")return Zi(l.name,F.Classes_may_not_have_a_field_named_constructor);if($z(l.name,F.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type))return!0;if(Ce<2&&ea(l.name))return Zi(l.name,F.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(Ce<2&&ef(l))return Zi(l.name,F.Properties_with_the_accessor_modifier_are_only_available_when_targeting_ECMAScript_2015_and_higher);if(ef(l)&&nIe(l.questionToken,F.An_accessor_property_cannot_be_declared_optional))return!0}else if(l.parent.kind===264){if($z(l.name,F.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,zm),l.initializer)return Zi(l.initializer,F.An_interface_property_cannot_have_an_initializer)}else if(fm(l.parent)){if($z(l.name,F.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type))return!0;if(H.assertNode(l,zm),l.initializer)return Zi(l.initializer,F.A_type_literal_property_cannot_have_an_initializer)}if(l.flags&33554432&&hpt(l),ko(l)&&l.exclamationToken&&(!gr(l.parent)||!l.type||l.initializer||l.flags&33554432||No(l)||M2(l))){const m=l.initializer?F.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions:l.type?F.A_definite_assignment_assertion_is_not_permitted_in_this_context:F.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations;return Zi(l.exclamationToken,m)}}function lci(l){return l.kind===264||l.kind===265||l.kind===272||l.kind===271||l.kind===278||l.kind===277||l.kind===270||Qu(l,2208)?!1:a1(l,F.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier)}function cci(l){for(const m of l.statements)if((X1(m)||m.kind===243)&&lci(m))return!0;return!1}function dci(l){return!!(l.flags&33554432)&&cci(l)}function SD(l){if(l.flags&33554432){if(!sr(l).hasReportedStatementInAmbientContext&&(Co(l.parent)||wx(l.parent)))return sr(l).hasReportedStatementInAmbientContext=a1(l,F.An_implementation_cannot_be_declared_in_ambient_contexts);if(l.parent.kind===241||l.parent.kind===268||l.parent.kind===312){const D=sr(l.parent);if(!D.hasReportedStatementInAmbientContext)return D.hasReportedStatementInAmbientContext=a1(l,F.Statements_are_not_allowed_in_ambient_contexts)}}return!1}function aIe(l){const m=Wc(l).includes("."),D=l.numericLiteralFlags&16;m||D||+l.text<=9007199254740991||n1(!1,Tu(l,F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers))}function hci(l){return!!(!(zv(l.parent)||Iv(l.parent)&&zv(l.parent.parent))&&Ce<7&&Zi(l,F.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020))}function fci(l,m,...D){const C=zn(l);if(!Wb(C)){const A=XE(C,l.pos);return Hs.add(Rd(C,Dc(A),0,m,...D)),!0}return!1}function mci(){return rh||(rh=[],Ie.forEach((l,m)=>{Hde.test(m)&&rh.push(l)})),rh}function pci(l){var m;return l.isTypeOnly&&l.name&&l.namedBindings?Zi(l,F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both):l.isTypeOnly&&((m=l.namedBindings)==null?void 0:m.kind)===275?gpt(l.namedBindings):!1}function gpt(l){return!!L(l.elements,m=>{if(m.isTypeOnly)return a1(m,m.kind===276?F.The_type_modifier_cannot_be_used_on_a_named_import_when_import_type_is_used_on_its_import_statement:F.The_type_modifier_cannot_be_used_on_a_named_export_when_export_type_is_used_on_its_export_statement)})}function gci(l){if(ae.verbatimModuleSyntax&&ne===1)return Zi(l,F.ESM_syntax_is_not_allowed_in_a_CommonJS_module_when_verbatimModuleSyntax_is_enabled);if(ne===5)return Zi(l,F.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_es2022_esnext_commonjs_amd_system_umd_node16_or_nodenext);if(l.typeArguments)return Zi(l,F.This_use_of_import_is_invalid_import_calls_can_be_written_but_they_must_have_parentheses_and_cannot_have_type_arguments);const m=l.arguments;if(ne!==99&&ne!==199&&ne!==100&&(iS(m),m.length>1)){const C=m[1];return Zi(C,F.Dynamic_imports_only_support_a_second_argument_when_the_module_option_is_set_to_esnext_node16_or_nodenext)}if(m.length===0||m.length>2)return Zi(l,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments);const D=Le(m,rE);return D?Zi(D,F.Argument_of_dynamic_import_cannot_be_spread_element):!1}function Eci(l,m){const D=Ju(l);if(D&20&&m.flags&1048576)return Le(m.types,C=>{if(C.flags&524288){const A=D&Ju(C);if(A&4)return l.target===C.target;if(A&16)return!!l.aliasSymbol&&l.aliasSymbol===C.aliasSymbol}return!1})}function _ci(l,m){if(Ju(l)&128&&kE(m,H5))return Le(m.types,D=>!H5(D))}function Dci(l,m){let D=0;if(Eo(l,D).length>0||(D=1,Eo(l,D).length>0))return Le(m.types,A=>Eo(A,D).length>0)}function xci(l,m){let D;if(!(l.flags&406978556)){let C=0;for(const A of m.types)if(!(A.flags&406978556)){const w=Ds([F_(l),F_(A)]);if(w.flags&4194304)return A;if(Tg(w)||w.flags&1048576){const I=w.flags&1048576?ui(w.types,Tg):1;I>=C&&(D=A,C=I)}}}return D}function vci(l){if(jl(l,67108864)){const m=Oc(l,D=>!(D.flags&402784252));if(!(m.flags&131072))return m}return l}function Ept(l,m,D){if(m.flags&1048576&&l.flags&2621440){const C=Pht(m,l);if(C)return C;const A=u0(l);if(A){const w=Nht(A,m);if(w){const I=JPe(m,Vt(w,U=>[()=>Wn(U),U.escapedName]),D);if(I!==m)return I}}}}function oIe(l){const m=sk(l);return m||(Ms(l)?DMe(y1(l.expression)):void 0)}function p_e(l){return Jn===l||(Jn=l,an=p2(l)),an}function Jb(l){return Vi===l||(Vi=l,xn=QD(l)),xn}function g_e(l){const m=Jb(l)&7;return m===2||m===4||m===6}}function BPt(t){return!wx(t)}function Let(t){return t.kind!==262&&t.kind!==174||!!t.body}function Net(t){switch(t.parent.kind){case 276:case 281:return at(t);default:return X3(t)}}function Pet(t){switch(t){case 0:return"yieldType";case 1:return"returnType";case 2:return"nextType"}}function ih(t){return!!(t.flags&1)}function Vde(t){return!!(t.flags&2)}function wPt(t){return{getCommonSourceDirectory:t.getCommonSourceDirectory?()=>t.getCommonSourceDirectory():()=>"",getCurrentDirectory:()=>t.getCurrentDirectory(),getSymlinkCache:Lo(t,t.getSymlinkCache),getPackageJsonInfoCache:()=>{var u;return(u=t.getPackageJsonInfoCache)==null?void 0:u.call(t)},useCaseSensitiveFileNames:Lo(t,t.useCaseSensitiveFileNames),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:u=>t.getProjectReferenceRedirect(u),isSourceOfProjectReferenceRedirect:u=>t.isSourceOfProjectReferenceRedirect(u),fileExists:u=>t.fileExists(u),getFileIncludeReasons:()=>t.getFileIncludeReasons(),readFile:t.readFile?u=>t.readFile(u):void 0}}var Hde,XY,VAe,HAe,KAe,WAe,eQ,Kde,tQ,iQ,Met,nQ,GAe,Om,Wde,TPt=o({"src/compiler/checker.ts"(){Bo(),OAe(),Wy(),Hde=/^".+"$/,XY="(anonymous)",VAe=1,HAe=1,KAe=1,WAe=1,eQ=(t=>(t[t.None=0]="None",t[t.TypeofEQString=1]="TypeofEQString",t[t.TypeofEQNumber=2]="TypeofEQNumber",t[t.TypeofEQBigInt=4]="TypeofEQBigInt",t[t.TypeofEQBoolean=8]="TypeofEQBoolean",t[t.TypeofEQSymbol=16]="TypeofEQSymbol",t[t.TypeofEQObject=32]="TypeofEQObject",t[t.TypeofEQFunction=64]="TypeofEQFunction",t[t.TypeofEQHostObject=128]="TypeofEQHostObject",t[t.TypeofNEString=256]="TypeofNEString",t[t.TypeofNENumber=512]="TypeofNENumber",t[t.TypeofNEBigInt=1024]="TypeofNEBigInt",t[t.TypeofNEBoolean=2048]="TypeofNEBoolean",t[t.TypeofNESymbol=4096]="TypeofNESymbol",t[t.TypeofNEObject=8192]="TypeofNEObject",t[t.TypeofNEFunction=16384]="TypeofNEFunction",t[t.TypeofNEHostObject=32768]="TypeofNEHostObject",t[t.EQUndefined=65536]="EQUndefined",t[t.EQNull=131072]="EQNull",t[t.EQUndefinedOrNull=262144]="EQUndefinedOrNull",t[t.NEUndefined=524288]="NEUndefined",t[t.NENull=1048576]="NENull",t[t.NEUndefinedOrNull=2097152]="NEUndefinedOrNull",t[t.Truthy=4194304]="Truthy",t[t.Falsy=8388608]="Falsy",t[t.IsUndefined=16777216]="IsUndefined",t[t.IsNull=33554432]="IsNull",t[t.IsUndefinedOrNull=50331648]="IsUndefinedOrNull",t[t.All=134217727]="All",t[t.BaseStringStrictFacts=3735041]="BaseStringStrictFacts",t[t.BaseStringFacts=12582401]="BaseStringFacts",t[t.StringStrictFacts=16317953]="StringStrictFacts",t[t.StringFacts=16776705]="StringFacts",t[t.EmptyStringStrictFacts=12123649]="EmptyStringStrictFacts",t[t.EmptyStringFacts=12582401]="EmptyStringFacts",t[t.NonEmptyStringStrictFacts=7929345]="NonEmptyStringStrictFacts",t[t.NonEmptyStringFacts=16776705]="NonEmptyStringFacts",t[t.BaseNumberStrictFacts=3734786]="BaseNumberStrictFacts",t[t.BaseNumberFacts=12582146]="BaseNumberFacts",t[t.NumberStrictFacts=16317698]="NumberStrictFacts",t[t.NumberFacts=16776450]="NumberFacts",t[t.ZeroNumberStrictFacts=12123394]="ZeroNumberStrictFacts",t[t.ZeroNumberFacts=12582146]="ZeroNumberFacts",t[t.NonZeroNumberStrictFacts=7929090]="NonZeroNumberStrictFacts",t[t.NonZeroNumberFacts=16776450]="NonZeroNumberFacts",t[t.BaseBigIntStrictFacts=3734276]="BaseBigIntStrictFacts",t[t.BaseBigIntFacts=12581636]="BaseBigIntFacts",t[t.BigIntStrictFacts=16317188]="BigIntStrictFacts",t[t.BigIntFacts=16775940]="BigIntFacts",t[t.ZeroBigIntStrictFacts=12122884]="ZeroBigIntStrictFacts",t[t.ZeroBigIntFacts=12581636]="ZeroBigIntFacts",t[t.NonZeroBigIntStrictFacts=7928580]="NonZeroBigIntStrictFacts",t[t.NonZeroBigIntFacts=16775940]="NonZeroBigIntFacts",t[t.BaseBooleanStrictFacts=3733256]="BaseBooleanStrictFacts",t[t.BaseBooleanFacts=12580616]="BaseBooleanFacts",t[t.BooleanStrictFacts=16316168]="BooleanStrictFacts",t[t.BooleanFacts=16774920]="BooleanFacts",t[t.FalseStrictFacts=12121864]="FalseStrictFacts",t[t.FalseFacts=12580616]="FalseFacts",t[t.TrueStrictFacts=7927560]="TrueStrictFacts",t[t.TrueFacts=16774920]="TrueFacts",t[t.SymbolStrictFacts=7925520]="SymbolStrictFacts",t[t.SymbolFacts=16772880]="SymbolFacts",t[t.ObjectStrictFacts=7888800]="ObjectStrictFacts",t[t.ObjectFacts=16736160]="ObjectFacts",t[t.FunctionStrictFacts=7880640]="FunctionStrictFacts",t[t.FunctionFacts=16728e3]="FunctionFacts",t[t.VoidFacts=9830144]="VoidFacts",t[t.UndefinedFacts=26607360]="UndefinedFacts",t[t.NullFacts=42917664]="NullFacts",t[t.EmptyObjectStrictFacts=83427327]="EmptyObjectStrictFacts",t[t.EmptyObjectFacts=83886079]="EmptyObjectFacts",t[t.UnknownFacts=83886079]="UnknownFacts",t[t.AllTypeofNE=556800]="AllTypeofNE",t[t.OrFactsMask=8256]="OrFactsMask",t[t.AndFactsMask=134209471]="AndFactsMask",t))(eQ||{}),Kde=new Map(Object.entries({string:256,number:512,bigint:1024,boolean:2048,symbol:4096,undefined:524288,object:8192,function:16384})),tQ=(t=>(t[t.Normal=0]="Normal",t[t.Contextual=1]="Contextual",t[t.Inferential=2]="Inferential",t[t.SkipContextSensitive=4]="SkipContextSensitive",t[t.SkipGenericFunctions=8]="SkipGenericFunctions",t[t.IsForSignatureHelp=16]="IsForSignatureHelp",t[t.RestBindingElement=32]="RestBindingElement",t[t.TypeOnly=64]="TypeOnly",t))(tQ||{}),iQ=(t=>(t[t.None=0]="None",t[t.BivariantCallback=1]="BivariantCallback",t[t.StrictCallback=2]="StrictCallback",t[t.IgnoreReturnTypes=4]="IgnoreReturnTypes",t[t.StrictArity=8]="StrictArity",t[t.StrictTopSignature=16]="StrictTopSignature",t[t.Callback=3]="Callback",t))(iQ||{}),Met=eU(Let,BPt),nQ=new Map(Object.entries({Uppercase:0,Lowercase:1,Capitalize:2,Uncapitalize:3})),GAe=class{},(t=>{t.JSX="JSX",t.IntrinsicElements="IntrinsicElements",t.ElementClass="ElementClass",t.ElementAttributesPropertyNameContainer="ElementAttributesProperty",t.ElementChildrenAttributeNameContainer="ElementChildrenAttribute",t.Element="Element",t.ElementType="ElementType",t.IntrinsicAttributes="IntrinsicAttributes",t.IntrinsicClassAttributes="IntrinsicClassAttributes",t.LibraryManagedAttributes="LibraryManagedAttributes"})(Om||(Om={})),Wde=class G6t{constructor(u,s,d){this.moduleResolverHost=void 0,this.inner=void 0,this.disableTrackSymbol=!1;for(var f;s instanceof G6t;)s=s.inner;this.inner=s,this.moduleResolverHost=d,this.context=u,this.canTrackSymbol=!!((f=this.inner)!=null&&f.trackSymbol)}trackSymbol(u,s,d){var f,p;if((f=this.inner)!=null&&f.trackSymbol&&!this.disableTrackSymbol){if(this.inner.trackSymbol(u,s,d))return this.onDiagnosticReported(),!0;u.flags&262144||((p=this.context).trackedSymbols??(p.trackedSymbols=[])).push([u,s,d])}return!1}reportInaccessibleThisError(){var u;(u=this.inner)!=null&&u.reportInaccessibleThisError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleThisError())}reportPrivateInBaseOfClassExpression(u){var s;(s=this.inner)!=null&&s.reportPrivateInBaseOfClassExpression&&(this.onDiagnosticReported(),this.inner.reportPrivateInBaseOfClassExpression(u))}reportInaccessibleUniqueSymbolError(){var u;(u=this.inner)!=null&&u.reportInaccessibleUniqueSymbolError&&(this.onDiagnosticReported(),this.inner.reportInaccessibleUniqueSymbolError())}reportCyclicStructureError(){var u;(u=this.inner)!=null&&u.reportCyclicStructureError&&(this.onDiagnosticReported(),this.inner.reportCyclicStructureError())}reportLikelyUnsafeImportRequiredError(u){var s;(s=this.inner)!=null&&s.reportLikelyUnsafeImportRequiredError&&(this.onDiagnosticReported(),this.inner.reportLikelyUnsafeImportRequiredError(u))}reportTruncationError(){var u;(u=this.inner)!=null&&u.reportTruncationError&&(this.onDiagnosticReported(),this.inner.reportTruncationError())}trackReferencedAmbientModule(u,s){var d;(d=this.inner)!=null&&d.trackReferencedAmbientModule&&(this.onDiagnosticReported(),this.inner.trackReferencedAmbientModule(u,s))}trackExternalModuleSymbolOfImportTypeNode(u){var s;(s=this.inner)!=null&&s.trackExternalModuleSymbolOfImportTypeNode&&(this.onDiagnosticReported(),this.inner.trackExternalModuleSymbolOfImportTypeNode(u))}reportNonlocalAugmentation(u,s,d){var f;(f=this.inner)!=null&&f.reportNonlocalAugmentation&&(this.onDiagnosticReported(),this.inner.reportNonlocalAugmentation(u,s,d))}reportNonSerializableProperty(u){var s;(s=this.inner)!=null&&s.reportNonSerializableProperty&&(this.onDiagnosticReported(),this.inner.reportNonSerializableProperty(u))}onDiagnosticReported(){this.context.reportedDiagnostic=!0}}}});function yt(t,u,s,d){if(t===void 0)return t;const f=u(t);let p;if(f!==void 0)return Wa(f)?p=(d||zPt)(f):p=f,H.assertNode(p,s),p}function kn(t,u,s,d,f){if(t===void 0)return t;const p=t.length;(d===void 0||d<0)&&(d=0),(f===void 0||f>p-d)&&(f=p-d);let E,v=-1,b=-1;d>0||fp-d)&&(f=p-d),zet(t,u,s,d,f)}function zet(t,u,s,d,f){let p;const E=t.length;(d>0||f=2&&(f=LPt(f,s)),s.setLexicalEnvironmentFlags(1,!1)),s.suspendLexicalEnvironment(),f}function LPt(t,u){let s;for(let d=0;d{const E=dv,addSource:We,setSourceContent:Ae,addName:De,addMapping:mt,appendSourceMap:Ye,toJSON:Ie,toString:()=>JSON.stringify(Ie())};function We(Bt){p();const It=i7(d,Bt,t.getCurrentDirectory(),t.getCanonicalFileName,!0);let ei=B.get(It);return ei===void 0&&(ei=b.length,b.push(It),v.push(Bt),B.set(It,ei)),E(),ei}function Ae(Bt,It){if(p(),It!==null){for(k||(k=[]);k.lengthIt||Se===It&&Ne>ei)}function mt(Bt,It,ei,ft,Ut,Ni){H.assert(Bt>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),H.assert(ei===void 0||ei>=0,"sourceIndex cannot be negative"),H.assert(ft===void 0||ft>=0,"sourceLine cannot be negative"),H.assert(Ut===void 0||Ut>=0,"sourceCharacter cannot be negative"),p(),(He(Bt,It)||Je(ei,ft,Ut))&&(Gt(),Ce=Bt,ne=It,xe=!1,Be=!1,fe=!0),ei!==void 0&&ft!==void 0&&Ut!==void 0&&(ve=ei,Se=ft,Ne=Ut,xe=!0,Ni!==void 0&&(pe=Ni,Be=!0)),E()}function Ye(Bt,It,ei,ft,Ut,Ni){H.assert(Bt>=Ce,"generatedLine cannot backtrack"),H.assert(It>=0,"generatedCharacter cannot be negative"),p();const Vi=[];let xn;const Jn=$de(ei.mappings);for(const an of Jn){if(Ni&&(an.generatedLine>Ni.line||an.generatedLine===Ni.line&&an.generatedCharacter>Ni.character))break;if(Ut&&(an.generatedLine=1024&&Yt()}function Gt(){if(!(!fe||!je())){if(p(),J0&&(j+=String.fromCharCode.apply(void 0,z),z.length=0)}function Ie(){return Gt(),Yt(),{version:3,file:u,sourceRoot:s,sources:b,names:T,mappings:j,sourcesContent:k}}function st(Bt){Bt<0?Bt=(-Bt<<1)+1:Bt=Bt<<1;do{let It=Bt&31;Bt=Bt>>5,Bt>0&&(It=It|32),Ke(OPt(It))}while(Bt>0)}}function Gde(t,u){return{getLineCount:()=>u.length,getLineText:s=>t.substring(u[s],u[s+1])}}function $Ae(t){for(let u=t.getLineCount()-1;u>=0;u--){const s=t.getLineText(u),d=rQ.exec(s);if(d)return d[1].trimEnd();if(!s.match(aQ))break}}function RPt(t){return typeof t=="string"||t===null}function UAe(t){return t!==null&&typeof t=="object"&&t.version===3&&typeof t.file=="string"&&typeof t.mappings=="string"&&Wa(t.sources)&&ye(t.sources,Ua)&&(t.sourceRoot===void 0||t.sourceRoot===null||typeof t.sourceRoot=="string")&&(t.sourcesContent===void 0||t.sourcesContent===null||Wa(t.sourcesContent)&&ye(t.sourcesContent,RPt))&&(t.names===void 0||t.names===null||Wa(t.names)&&ye(t.names,Ua))}function Jde(t){try{const u=JSON.parse(t);if(UAe(u))return u}catch{}}function $de(t){let u=!1,s=0,d=0,f=0,p=0,E=0,v=0,b=0,B;return{get pos(){return s},get error(){return B},get state(){return k(!0,!0)},next(){for(;!u&&s=t.length)return M("Error in decoding base64VLQFormatDecode, past the mapping string"),-1;const ge=jPt(t.charCodeAt(s));if(ge===-1)return M("Invalid character in VLQ"),-1;Y=(ge&32)!==0,se=se|(ge&31)<>1,se=-se):se=se>>1,se}}function Ret(t,u){return t===u||t.generatedLine===u.generatedLine&&t.generatedCharacter===u.generatedCharacter&&t.sourceIndex===u.sourceIndex&&t.sourceLine===u.sourceLine&&t.sourceCharacter===u.sourceCharacter&&t.nameIndex===u.nameIndex}function qAe(t){return t.sourceIndex!==void 0&&t.sourceLine!==void 0&&t.sourceCharacter!==void 0}function OPt(t){return t>=0&&t<26?65+t:t>=26&&t<52?97+t-26:t>=52&&t<62?48+t-52:t===62?43:t===63?47:H.fail(`${t}: not a base64 value`)}function jPt(t){return t>=65&&t<=90?t-65:t>=97&&t<=122?t-97+26:t>=48&&t<=57?t-48+52:t===43?62:t===47?63:-1}function Oet(t){return t.sourceIndex!==void 0&&t.sourcePosition!==void 0}function jet(t,u){return t.generatedPosition===u.generatedPosition&&t.sourceIndex===u.sourceIndex&&t.sourcePosition===u.sourcePosition}function VPt(t,u){return H.assert(t.sourceIndex===u.sourceIndex),rl(t.sourcePosition,u.sourcePosition)}function HPt(t,u){return rl(t.generatedPosition,u.generatedPosition)}function KPt(t){return t.sourcePosition}function WPt(t){return t.generatedPosition}function ZAe(t,u,s){const d=dr(s),f=u.sourceRoot?qa(u.sourceRoot,d):d,p=qa(u.file,d),E=t.getSourceFileLike(p),v=u.sources.map(oe=>qa(oe,f)),b=new Map(v.map((oe,se)=>[t.getCanonicalFileName(oe),se]));let B,k,T;return{getSourcePosition:Y,getGeneratedPosition:K};function M(oe){const se=E!==void 0?LO(E,oe.generatedLine,oe.generatedCharacter,!0):-1;let ge,ae;if(qAe(oe)){const Ce=t.getSourceFileLike(v[oe.sourceIndex]);ge=u.sources[oe.sourceIndex],ae=Ce!==void 0?LO(Ce,oe.sourceLine,oe.sourceCharacter,!0):-1}return{generatedPosition:se,source:ge,sourceIndex:oe.sourceIndex,sourcePosition:ae,nameIndex:oe.nameIndex}}function z(){if(B===void 0){const oe=$de(u.mappings),se=Ea(oe,M);oe.error!==void 0?(t.log&&t.log(`Encountered error while decoding sourcemap: ${oe.error}`),B=Dt):B=se}return B}function j(oe){if(T===void 0){const se=[];for(const ge of z()){if(!Oet(ge))continue;let ae=se[ge.sourceIndex];ae||(se[ge.sourceIndex]=ae=[]),ae.push(ge)}T=se.map(ge=>pi(ge,VPt,jet))}return T[oe]}function J(){if(k===void 0){const oe=[];for(const se of z())oe.push(se);k=pi(oe,HPt,jet)}return k}function K(oe){const se=b.get(t.getCanonicalFileName(oe.fileName));if(se===void 0)return oe;const ge=j(se);if(!Ge(ge))return oe;let ae=ba(ge,oe.pos,KPt,rl);ae<0&&(ae=~ae);const Ce=ge[ae];return Ce===void 0||Ce.sourceIndex!==se?oe:{fileName:p,pos:Ce.generatedPosition}}function Y(oe){const se=J();if(!Ge(se))return oe;let ge=ba(se,oe.pos,WPt,rl);ge<0&&(ge=~ge);const ae=se[ge];return ae===void 0||!Oet(ae)?oe:{fileName:v[ae.sourceIndex],pos:ae.sourcePosition}}}var Ude,rQ,aQ,oQ,GPt=o({"src/compiler/sourcemap.ts"(){Bo(),Wy(),Ude=/\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,rQ=/^\/\/[@#] source[M]appingURL=(.+)\r?\n?$/,aQ=/^\s*(\/\/[@#] .*)?$/,oQ={getSourcePosition:ul,getGeneratedPosition:ul}}});function z1(t){return t=Wl(t),t?Us(t):0}function JPt(t){return!t||!uD(t)?!1:Ge(t.elements,Vet)}function Vet(t){return t.propertyName!==void 0&&t.propertyName.escapedText==="default"}function Wp(t,u){return s;function s(f){return f.kind===312?u(f):d(f)}function d(f){return t.factory.createBundle(Vt(f.sourceFiles,u),f.prepends)}}function YAe(t){return!!Q8(t)}function sQ(t){if(Q8(t))return!0;const u=t.importClause&&t.importClause.namedBindings;if(!u||!uD(u))return!1;let s=0;for(const d of u.elements)Vet(d)&&s++;return s>0&&s!==u.elements.length||!!(u.elements.length-s)&&c7(t)}function qde(t){return!sQ(t)&&(c7(t)||!!t.importClause&&uD(t.importClause.namedBindings)&&JPt(t.importClause.namedBindings))}function Zde(t,u){const s=t.getEmitResolver(),d=t.getCompilerOptions(),f=[],p=new e1e,E=[],v=new Map;let b,B=!1,k,T=!1,M=!1,z=!1;for(const K of u.statements)switch(K.kind){case 272:f.push(K),!M&&sQ(K)&&(M=!0),!z&&qde(K)&&(z=!0);break;case 271:K.moduleReference.kind===283&&f.push(K);break;case 278:if(K.moduleSpecifier)if(!K.exportClause)f.push(K),T=!0;else if(f.push(K),ip(K.exportClause))J(K);else{const Y=K.exportClause.name;v.get(fu(Y))||(mM(E,z1(K),Y),v.set(fu(Y),!0),b=Di(b,Y)),M=!0}else J(K);break;case 277:K.isExportEquals&&!k&&(k=K);break;case 243:if(Qu(K,32))for(const Y of K.declarationList.declarations)b=Het(Y,v,b,E);break;case 262:if(Qu(K,32))if(Qu(K,2048))B||(mM(E,z1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;v.get(fu(Y))||(mM(E,z1(K),Y),v.set(fu(Y),!0),b=Di(b,Y))}break;case 263:if(Qu(K,32))if(Qu(K,2048))B||(mM(E,z1(K),t.factory.getDeclarationName(K)),B=!0);else{const Y=K.name;Y&&!v.get(fu(Y))&&(mM(E,z1(K),Y),v.set(fu(Y),!0),b=Di(b,Y))}break}const j=Vce(t.factory,t.getEmitHelperFactory(),u,d,T,M,z);return j&&f.unshift(j),{externalImports:f,exportSpecifiers:p,exportEquals:k,hasExportStarsToExportValues:T,exportedBindings:E,exportedNames:b,externalHelpersImportDeclaration:j};function J(K){for(const Y of Po(K.exportClause,ip).elements)if(!v.get(fu(Y.name))){const oe=Y.propertyName||Y.name;K.moduleSpecifier||p.add(oe,Y);const se=s.getReferencedImportDeclaration(oe)||s.getReferencedValueDeclaration(oe);se&&mM(E,z1(se),Y.name),v.set(fu(Y.name),!0),b=Di(b,Y.name)}}}function Het(t,u,s,d){if(So(t.name))for(const f of t.name.elements)Fd(f)||(s=Het(f,u,s,d));else if(!sl(t.name)){const f=fu(t.name);u.get(f)||(u.set(f,!0),s=Di(s,t.name),rD(t.name)&&mM(d,z1(t),t.name))}return s}function mM(t,u,s){let d=t[u];return d?d.push(s):t[u]=d=[s],d}function Q2(t){return i0(t)||t.kind===9||uf(t.kind)||at(t)}function lE(t){return!at(t)&&Q2(t)}function pM(t){return t>=65&&t<=79}function gM(t){switch(t){case 65:return 40;case 66:return 41;case 67:return 42;case 68:return 43;case 69:return 44;case 70:return 45;case 71:return 48;case 72:return 49;case 73:return 50;case 74:return 51;case 75:return 52;case 79:return 53;case 76:return 57;case 77:return 56;case 78:return 61}}function lQ(t){if(!Od(t))return;const u=l0(t.expression);return ik(u)?u:void 0}function Ket(t,u,s){for(let d=u;dUPt(d,u,s))}function $Pt(t){return qPt(t)||zl(t)}function dQ(t){return ti(t.members,$Pt)}function UPt(t,u,s){return ko(t)&&(!!t.initializer||!u)&&Gc(t)===s}function qPt(t){return ko(t)&&Gc(t)}function mH(t){return t.kind===172&&t.initializer!==void 0}function QAe(t){return!No(t)&&(N8(t)||ef(t))&&ea(t.name)}function XAe(t){let u;if(t){const s=t.parameters,d=s.length>0&&N2(s[0]),f=d?1:0,p=d?s.length-1:s.length;for(let E=0;EXde(s.privateEnv,u))}var Y7,e1e,QPt=o({"src/compiler/transformers/utilities.ts"(){Bo(),Y7=class LT{constructor(){this._map=new Map}get size(){return this._map.size}has(u){return this._map.has(LT.toKey(u))}get(u){return this._map.get(LT.toKey(u))}set(u,s){return this._map.set(LT.toKey(u),s),this}delete(u){var s;return((s=this._map)==null?void 0:s.delete(LT.toKey(u)))??!1}clear(){this._map.clear()}values(){return this._map.values()}static toKey(u){if(Uy(u)||sl(u)){const s=u.emitNode.autoGenerate;if((s.flags&7)===4){const d=VV(u),f=$_(d)&&d!==u?LT.toKey(d):`(generated@${Us(d)})`;return Vv(!1,s.prefix,f,s.suffix,LT.toKey)}else{const d=`(auto@${s.id})`;return Vv(!1,s.prefix,d,s.suffix,LT.toKey)}}return ea(u)?fu(u).slice(1):fu(u)}},e1e=class extends Y7{add(t,u){let s=this.get(t);return s?s.push(u):this.set(t,s=[u]),s}remove(t,u){const s=this.get(t);s&&(Vy(s,u),s.length||this.delete(t))}}}});function wk(t,u,s,d,f,p){let E=t,v;if(r5(t))for(v=t.right;Kye(t.left)||fle(t.left);)if(r5(v))E=t=v,v=t.right;else return H.checkDefined(yt(v,u,Wt));let b;const B={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:!0,emitExpression:k,emitBindingOrAssignment:T,createArrayBindingOrAssignmentPattern:M=>aMt(s.factory,M),createObjectBindingOrAssignmentPattern:M=>sMt(s.factory,M),createArrayBindingOrAssignmentElement:cMt,visitor:u};if(v&&(v=yt(v,u,Wt),H.assert(v),at(v)&&n7e(t,v.escapedText)||u7e(t)?v=Q7(B,v,!1,E):f?v=Q7(B,v,!0,E):cl(t)&&(E=v)),EM(B,t,v,E,r5(t)),v&&f){if(!Ge(b))return v;b.push(v)}return s.factory.inlineExpressions(b)||s.factory.createOmittedExpression();function k(M){b=Di(b,M)}function T(M,z,j,J){H.assertNode(M,p?at:Wt);const K=p?p(M,z,j):Pt(s.factory.createAssignment(H.checkDefined(yt(M,u,Wt)),z),j);K.original=J,k(K)}}function n7e(t,u){const s=$x(t);return qO(s)?XPt(s,u):at(s)?s.escapedText===u:!1}function XPt(t,u){const s=IB(t);for(const d of s)if(n7e(d,u))return!0;return!1}function u7e(t){const u=FY(t);if(u&&Ms(u)&&!_2(u.expression))return!0;const s=$x(t);return!!s&&qO(s)&&eMt(s)}function eMt(t){return!!L(IB(t),u7e)}function X2(t,u,s,d,f,p=!1,E){let v;const b=[],B=[],k={context:s,level:d,downlevelIteration:!!s.getCompilerOptions().downlevelIteration,hoistTempVariables:p,emitExpression:T,emitBindingOrAssignment:M,createArrayBindingOrAssignmentPattern:z=>rMt(s.factory,z),createObjectBindingOrAssignmentPattern:z=>oMt(s.factory,z),createArrayBindingOrAssignmentElement:z=>lMt(s.factory,z),visitor:u};if(ra(t)){let z=OV(t);z&&(at(z)&&n7e(t,z.escapedText)||u7e(t))&&(z=Q7(k,H.checkDefined(yt(z,k.visitor,Wt)),!1,z),t=s.factory.updateVariableDeclaration(t,t.name,void 0,void 0,z))}if(EM(k,t,f,t,E),v){const z=s.factory.createTempVariable(void 0);if(p){const j=s.factory.inlineExpressions(v);v=void 0,M(z,j,void 0,void 0)}else{s.hoistVariableDeclaration(z);const j=yr(b);j.pendingExpressions=Di(j.pendingExpressions,s.factory.createAssignment(z,j.value)),yn(j.pendingExpressions,v),j.value=z}}for(const{pendingExpressions:z,name:j,value:J,location:K,original:Y}of b){const oe=s.factory.createVariableDeclaration(j,void 0,void 0,z?s.factory.inlineExpressions(Di(z,J)):J);oe.original=Y,Pt(oe,K),B.push(oe)}return B;function T(z){v=Di(v,z)}function M(z,j,J,K){H.assertNode(z,qy),v&&(j=s.factory.inlineExpressions(Di(v,j)),v=void 0),b.push({pendingExpressions:v,name:z,value:j,location:J,original:K})}}function EM(t,u,s,d,f){const p=$x(u);if(!f){const E=yt(OV(u),t.visitor,Wt);E?s?(s=nMt(t,s,E,d),!lE(E)&&qO(p)&&(s=Q7(t,s,!0,d))):s=E:s||(s=t.context.factory.createVoidZero())}Xse(p)?tMt(t,u,p,s,d):e0e(p)?iMt(t,u,p,s,d):t.emitBindingOrAssignment(p,s,d,u)}function tMt(t,u,s,d,f){const p=IB(s),E=p.length;if(E!==1){const B=!UO(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1&&!(k.transformFlags&98304)&&!($x(k).transformFlags&98304)&&!Ms(T))v=Di(v,yt(k,t.visitor,dbe));else{v&&(t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s),v=void 0);const M=uMt(t,d,T);Ms(T)&&(b=Di(b,M.argumentExpression)),EM(t,k,M,k)}}}v&&t.emitBindingOrAssignment(t.createObjectBindingOrAssignmentPattern(v),d,f,s)}function iMt(t,u,s,d,f){const p=IB(s),E=p.length;if(t.level<1&&t.downlevelIteration)d=Q7(t,Pt(t.context.getEmitHelperFactory().createReadHelper(d,E>0&&kY(p[E-1])?void 0:E),f),!1,f);else if(E!==1&&(t.level<1||E===0)||ye(p,Fd)){const B=!UO(u)||E!==0;d=Q7(t,d,B,f)}let v,b;for(let B=0;B=1)if(k.transformFlags&65536||t.hasTransformedPriorElement&&!Get(k)){t.hasTransformedPriorElement=!0;const T=t.context.factory.createTempVariable(void 0);t.hoistTempVariables&&t.context.hoistVariableDeclaration(T),b=Di(b,[T,k]),v=Di(v,t.createArrayBindingOrAssignmentElement(T))}else v=Di(v,k);else{if(Fd(k))continue;if(kY(k)){if(B===E-1){const T=t.context.factory.createArraySliceCall(d,B);EM(t,k,T,k)}}else{const T=t.context.factory.createElementAccessExpression(d,B);EM(t,k,T,k)}}}if(v&&t.emitBindingOrAssignment(t.createArrayBindingOrAssignmentPattern(v),d,f,s),b)for(const[B,k]of b)EM(t,k,B,k)}function Get(t){const u=$x(t);if(!u||Fd(u))return!0;const s=FY(t);if(s&&!eE(s))return!1;const d=OV(t);return d&&!lE(d)?!1:qO(u)?ye(IB(u),Get):at(u)}function nMt(t,u,s,d){return u=Q7(t,u,!0,d),t.context.factory.createConditionalExpression(t.context.factory.createTypeCheck(u,"undefined"),void 0,s,void 0,u)}function uMt(t,u,s){const{factory:d}=t.context;if(Ms(s)){const f=Q7(t,H.checkDefined(yt(s.expression,t.visitor,Wt)),!1,s);return t.context.factory.createElementAccessExpression(u,f)}else if(Mm(s)){const f=d.cloneNode(s);return t.context.factory.createElementAccessExpression(u,f)}else{const f=t.context.factory.createIdentifier(fu(s));return t.context.factory.createPropertyAccessExpression(u,f)}}function Q7(t,u,s,d){if(at(u)&&s)return u;{const f=t.context.factory.createTempVariable(void 0);return t.hoistTempVariables?(t.context.hoistVariableDeclaration(f),t.emitExpression(Pt(t.context.factory.createAssignment(f,u),d))):t.emitBindingOrAssignment(f,u,d,void 0),f}}function rMt(t,u){return H.assertEachNode(u,HU),t.createArrayBindingPattern(u)}function aMt(t,u){return H.assertEachNode(u,YO),t.createArrayLiteralExpression(Vt(u,t.converters.convertToArrayAssignmentElement))}function oMt(t,u){return H.assertEachNode(u,Vs),t.createObjectBindingPattern(u)}function sMt(t,u){return H.assertEachNode(u,ZO),t.createObjectLiteralExpression(Vt(u,t.converters.convertToObjectAssignmentElement))}function lMt(t,u){return t.createBindingElement(void 0,void 0,u)}function cMt(t){return t}var t1e,dMt=o({"src/compiler/transformers/destructuring.ts"(){Bo(),t1e=(t=>(t[t.All=0]="All",t[t.ObjectRest=1]="ObjectRest",t))(t1e||{})}});function r7e(t,u,s=t.createThis()){const d=t.createAssignment(u,s),f=t.createExpressionStatement(d),p=t.createBlock([f],!1),E=t.createClassStaticBlockDeclaration(p);return M1(E).classThis=u,E}function _M(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&ld(s.expression,!0)&&at(s.expression.left)&&((u=t.emitNode)==null?void 0:u.classThis)===s.expression.left&&s.expression.right.kind===110}function i1e(t){var u;return!!((u=t.emitNode)!=null&&u.classThis)&&Ge(t.members,_M)}function a7e(t,u,s,d){if(i1e(u))return u;const f=r7e(t,s,d);u.name&&As(f.body.statements[0],u.name);const p=t.createNodeArray([f,...u.members]);Pt(p,u.members);const E=Jc(u)?t.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p):t.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,p);return M1(E).classThis=s,E}var hMt=o({"src/compiler/transformers/classThis.ts"(){Bo()}});function DM(t,u,s){const d=Wl(vc(s));return(Jc(d)||td(d))&&!d.name&&Qu(d,2048)?t.createStringLiteral("default"):t.createStringLiteralFromNode(u)}function Jet(t,u,s){const{factory:d}=t;if(s!==void 0)return{assignedName:d.createStringLiteral(s),name:u};if(eE(u)||ea(u))return{assignedName:d.createStringLiteralFromNode(u),name:u};if(eE(u.expression)&&!at(u.expression))return{assignedName:d.createStringLiteralFromNode(u.expression),name:u};const f=d.getGeneratedNameForNode(u);t.hoistVariableDeclaration(f);const p=t.getEmitHelperFactory().createPropKeyHelper(u.expression),E=d.createAssignment(f,p),v=d.updateComputedPropertyName(u,E);return{assignedName:f,name:v}}function o7e(t,u,s=t.factory.createThis()){const{factory:d}=t,f=t.getEmitHelperFactory().createSetFunctionNameHelper(s,u),p=d.createExpressionStatement(f),E=d.createBlock([p],!1),v=d.createClassStaticBlockDeclaration(E);return M1(v).assignedName=u,v}function X7(t){var u;if(!zl(t)||t.body.statements.length!==1)return!1;const s=t.body.statements[0];return Od(s)&&VP(s.expression,"___setFunctionName")&&s.expression.arguments.length>=2&&s.expression.arguments[1]===((u=t.emitNode)==null?void 0:u.assignedName)}function fQ(t){var u;return!!((u=t.emitNode)!=null&&u.assignedName)&&Ge(t.members,X7)}function n1e(t){return!!t.name||fQ(t)}function mQ(t,u,s,d){if(fQ(u))return u;const{factory:f}=t,p=o7e(t,s,d);u.name&&As(p.body.statements[0],u.name);const E=Ue(u.members,_M)+1,v=u.members.slice(0,E),b=u.members.slice(E),B=f.createNodeArray([...v,p,...b]);return Pt(B,u.members),u=Jc(u)?f.updateClassDeclaration(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B):f.updateClassExpression(u,u.modifiers,u.name,u.typeParameters,u.heritageClauses,B),M1(u).assignedName=s,u}function UB(t,u,s,d){if(d&&rs(s)&&T0e(s))return u;const{factory:f}=t,p=vc(u),E=e1(p)?Po(mQ(t,p,s),e1):t.getEmitHelperFactory().createSetFunctionNameHelper(p,s);return f.restoreOuterExpressions(u,E)}function fMt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Jet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyAssignment(u,E,v)}function mMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):DM(f,u.name,u.objectAssignmentInitializer),E=UB(t,u.objectAssignmentInitializer,p,s);return f.updateShorthandPropertyAssignment(u,u.name,E)}function pMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):DM(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateVariableDeclaration(u,u.name,u.exclamationToken,u.type,E)}function gMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):DM(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateParameterDeclaration(u,u.modifiers,u.dotDotDotToken,u.name,u.questionToken,u.type,E)}function EMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):DM(f,u.name,u.initializer),E=UB(t,u.initializer,p,s);return f.updateBindingElement(u,u.dotDotDotToken,u.propertyName,u.name,E)}function _Mt(t,u,s,d){const{factory:f}=t,{assignedName:p,name:E}=Jet(t,u.name,d),v=UB(t,u.initializer,p,s);return f.updatePropertyDeclaration(u,u.modifiers,E,u.questionToken??u.exclamationToken,u.type,v)}function DMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):DM(f,u.left,u.right),E=UB(t,u.right,p,s);return f.updateBinaryExpression(u,u.left,u.operatorToken,E)}function xMt(t,u,s,d){const{factory:f}=t,p=d!==void 0?f.createStringLiteral(d):f.createStringLiteral(u.isExportEquals?"":"default"),E=UB(t,u.expression,p,s);return f.updateExportAssignment(u,u.modifiers,E)}function Vf(t,u,s,d){switch(u.kind){case 303:return fMt(t,u,s,d);case 304:return mMt(t,u,s,d);case 260:return pMt(t,u,s,d);case 169:return gMt(t,u,s,d);case 208:return EMt(t,u,s,d);case 172:return _Mt(t,u,s,d);case 226:return DMt(t,u,s,d);case 277:return xMt(t,u,s,d)}}var vMt=o({"src/compiler/transformers/namedEvaluation.ts"(){Bo()}});function u1e(t,u,s,d,f,p){const E=yt(u.tag,s,Wt);H.assert(E);const v=[void 0],b=[],B=[],k=u.template;if(p===0&&!ele(k))return rn(u,s,t);const{factory:T}=t;if(T7(k))b.push(s7e(T,k)),B.push(l7e(T,k,d));else{b.push(s7e(T,k.head)),B.push(l7e(T,k.head,d));for(const z of k.templateSpans)b.push(s7e(T,z.literal)),B.push(l7e(T,z.literal,d)),v.push(H.checkDefined(yt(z.expression,s,Wt)))}const M=t.getEmitHelperFactory().createTemplateObjectHelper(T.createArrayLiteralExpression(b),T.createArrayLiteralExpression(B));if(Lc(d)){const z=T.createUniqueName("templateObject");f(z),v[0]=T.createLogicalOr(z,T.createAssignment(z,M))}else v[0]=M;return T.createCallExpression(E,void 0,v)}function s7e(t,u){return u.templateFlags&26656?t.createVoidZero():t.createStringLiteral(u.text)}function l7e(t,u,s){let d=u.rawText;if(d===void 0){H.assertIsDefined(s,"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform."),d=v2(s,u);const f=u.kind===15||u.kind===18;d=d.substring(1,d.length-(f?1:2))}return d=d.replace(/\r\n?/g,` +`),Pt(t.createStringLiteral(d),u)}var r1e,CMt=o({"src/compiler/transformers/taggedTemplate.ts"(){Bo(),r1e=(t=>(t[t.LiftRestriction=0]="LiftRestriction",t[t.All=1]="All",t))(r1e||{})}});function c7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getEmitResolver(),b=t.getCompilerOptions(),B=js(b),k=p1(b),T=!!b.experimentalDecorators,M=b.emitDecoratorMetadata?h7e(t):void 0,z=t.onEmitNode,j=t.onSubstituteNode;t.onEmitNode=$p,t.onSubstituteNode=Pc,t.enableSubstitution(211),t.enableSubstitution(212);let J,K,Y,oe,se,ge,ae,Ce;return ne;function ne($){return $.kind===313?ve($):Se($)}function ve($){return u.createBundle($.sourceFiles.map(Se),qi($.prepends,tt=>tt.kind===315?rce(tt,"js"):tt))}function Se($){if($.isDeclarationFile)return $;J=$;const tt=Ne($,st);return iD(tt,t.readEmitHelpers()),J=void 0,tt}function Ne($,tt){const vt=oe,fi=se,fn=ge;pe($);const Gu=tt($);return oe!==vt&&(se=fi),oe=vt,ge=fn,Gu}function pe($){switch($.kind){case 312:case 269:case 268:case 241:oe=$,se=void 0;break;case 263:case 262:if(Qu($,128))break;$.name?Oe($):H.assert($.kind===263||Qu($,2048));break}}function fe($){return Ne($,xe)}function xe($){return $.transformFlags&1?Ie($):$}function Be($){return Ne($,We)}function We($){switch($.kind){case 272:case 271:case 277:case 278:return Ae($);default:return xe($)}}function Ae($){if(Za($)!==$)return $.transformFlags&1?rn($,fe,t):$;switch($.kind){case 272:return Ui($);case 271:return os($);case 277:return Er($);case 278:return er($);default:H.fail("Unhandled ellided statement")}}function De($){return Ne($,He)}function He($){if(!($.kind===278||$.kind===272||$.kind===273||$.kind===271&&$.moduleReference.kind===283))return $.transformFlags&1||Qu($,32)?Ie($):$}function Je($){return tt=>Ne(tt,vt=>mt(vt,$))}function mt($,tt){switch($.kind){case 176:return Cn($);case 172:return Dn($,tt);case 177:return Qo($,tt);case 178:return bo($,tt);case 174:return aa($,tt);case 175:return rn($,fe,t);case 240:return $;case 181:return;default:return H.failBadSyntaxKind($)}}function Ye($){return tt=>Ne(tt,vt=>je(vt,$))}function je($,tt){switch($.kind){case 303:case 304:case 305:return fe($);case 177:return Qo($,tt);case 178:return bo($,tt);case 174:return aa($,tt);default:return H.failBadSyntaxKind($)}}function Ke($){return E1($)?void 0:fe($)}function Gt($){return Xo($)?void 0:fe($)}function Yt($){if(!E1($)&&!(_7($.kind)&28895)&&!(K&&$.kind===95))return $}function Ie($){if(ua($)&&Qu($,128))return u.createNotEmittedStatement($);switch($.kind){case 95:case 90:return K?void 0:$;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 u.createNotEmittedStatement($);case 270:return;case 264:return u.createNotEmittedStatement($);case 263:return Ut($);case 231:return Ni($);case 298:return jn($);case 233:return Ln($);case 210:return Bt($);case 176:case 172:case 174:case 177:case 178:case 175:return H.fail("Class and object literal elements must be visited with their respective visitors");case 262:return Qe($);case 218:return _t($);case 219:return Mt($);case 169:return qt($);case 217:return Et($);case 216:case 234:return ii($);case 238:return ni($);case 213:return xi($);case 214:return pt($);case 215:return Ot($);case 235:return me($);case 266:return on($);case 243:return Xt($);case 260:return et($);case 267:return ct($);case 271:return os($);case 285:return Ei($);case 286:return $i($);default:return rn($,fe,t)}}function st($){const tt=Q4(b,"alwaysStrict")&&!(Lc($)&&k>=5)&&!J4($);return u.updateSourceFile($,uQ($.statements,Be,t,0,tt))}function Bt($){return u.updateObjectLiteralExpression($,kn($.properties,Ye($),Z3))}function It($){let tt=0;Ge(Yde($,!0,!0))&&(tt|=1);const vt=Xg($);return vt&&vc(vt.expression).kind!==106&&(tt|=64),t5(T,$)&&(tt|=2),XN(T,$)&&(tt|=4),wo($)?tt|=8:Qa($)?tt|=32:bc($)&&(tt|=16),tt}function ei($){return!!($.transformFlags&8192)}function ft($){return c4($)||Ge($.typeParameters)||Ge($.heritageClauses,ei)||Ge($.members,ei)}function Ut($){const tt=It($),vt=B<=1&&!!(tt&7);if(!ft($)&&!t5(T,$)&&!wo($))return u.updateClassDeclaration($,kn($.modifiers,Yt,Xo),$.name,void 0,kn($.heritageClauses,fe,mm),kn($.members,Je($),Yd));vt&&t.startLexicalEnvironment();const fi=vt||tt&8;let fn=fi?kn($.modifiers,Gt,ll):kn($.modifiers,fe,ll);tt&2&&(fn=xn(fn,$));const uu=fi&&!$.name||tt&4||tt&1?$.name??u.getGeneratedNameForNode($):$.name,Nu=u.updateClassDeclaration($,fn,uu,void 0,kn($.heritageClauses,fe,mm),Vi($));let Mr=bs($);tt&1&&(Mr|=64),Yn(Nu,Mr);let Hu;if(vt){const Ss=[Nu],nc=ple(gs(J.text,$.members.end),20),ud=u.getInternalName($),T0=u.createPartiallyEmittedExpression(ud);mB(T0,nc.end),Yn(T0,3072);const rd=u.createReturnStatement(T0);wP(rd,nc.pos),Yn(rd,3840),Ss.push(rd),YE(Ss,t.endLexicalEnvironment());const m0=u.createImmediatelyInvokedArrowFunction(Ss);DV(m0,1);const Bd=u.createVariableDeclaration(u.getLocalName($,!1,!1),void 0,void 0,m0);su(Bd,$);const jh=u.createVariableStatement(void 0,u.createVariableDeclarationList([Bd],1));su(jh,$),Tc(jh,$),As(jh,o5($)),bh(jh),Hu=jh}else Hu=Nu;if(fi){if(tt&8)return[Hu,c0($)];if(tt&32)return[Hu,u.createExportDefault(u.getLocalName($,!1,!0))];if(tt&16)return[Hu,u.createExternalModuleExport(u.getDeclarationName($,!1,!0))]}return Hu}function Ni($){let tt=kn($.modifiers,Gt,ll);return t5(T,$)&&(tt=xn(tt,$)),u.updateClassExpression($,tt,$.name,void 0,kn($.heritageClauses,fe,mm),Vi($))}function Vi($){const tt=kn($.members,Je($),Yd);let vt;const fi=e3($),fn=fi&&ti(fi.parameters,Gu=>Mf(Gu,fi));if(fn)for(const Gu of fn){const uu=u.createPropertyDeclaration(void 0,Gu.name,void 0,void 0,void 0);su(uu,Gu),vt=Di(vt,uu)}return vt?(vt=yn(vt,tt),Pt(u.createNodeArray(vt),$.members)):tt}function xn($,tt){const vt=an(tt,tt);if(Ge(vt)){const fi=[];yn(fi,nU($,jV)),yn(fi,ti($,E1)),yn(fi,vt),yn(fi,ti(l2e($,jV),Xo)),$=Pt(u.createNodeArray(fi),$)}return $}function Jn($,tt,vt){if(gr(vt)&&w0e(T,tt,vt)){const fi=an(tt,vt);if(Ge(fi)){const fn=[];yn(fn,ti($,E1)),yn(fn,fi),yn(fn,ti($,Xo)),$=Pt(u.createNodeArray(fn),$)}}return $}function an($,tt){if(T)return $et?Fi($,tt):Pi($,tt)}function Pi($,tt){if(M){let vt;if(Yu($)){const fi=s().createMetadataHelper("design:type",M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=Di(vt,u.createDecorator(fi))}if(Fr($)){const fi=s().createMetadataHelper("design:paramtypes",M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt));vt=Di(vt,u.createDecorator(fi))}if(oa($)){const fi=s().createMetadataHelper("design:returntype",M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$));vt=Di(vt,u.createDecorator(fi))}return vt}}function Fi($,tt){if(M){let vt;if(Yu($)){const fi=u.createPropertyAssignment("type",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=Di(vt,fi)}if(Fr($)){const fi=u.createPropertyAssignment("paramTypes",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeParameterTypesOfNode({currentLexicalScope:oe,currentNameScope:tt},$,tt)));vt=Di(vt,fi)}if(oa($)){const fi=u.createPropertyAssignment("returnType",u.createArrowFunction(void 0,void 0,[],void 0,u.createToken(39),M.serializeReturnTypeOfNode({currentLexicalScope:oe,currentNameScope:tt},$)));vt=Di(vt,fi)}if(vt){const fi=s().createMetadataHelper("design:typeinfo",u.createObjectLiteralExpression(vt,!0));return[u.createDecorator(fi)]}}}function Yu($){const tt=$.kind;return tt===174||tt===177||tt===178||tt===172}function oa($){return $.kind===174}function Fr($){switch($.kind){case 263:case 231:return e3($)!==void 0;case 174:case 177:case 178:return!0}return!1}function wa($,tt){const vt=$.name;return ea(vt)?u.createIdentifier(""):Ms(vt)?tt&&!lE(vt.expression)?u.getGeneratedNameForNode(vt):vt.expression:at(vt)?u.createStringLiteral(fu(vt)):u.cloneNode(vt)}function bt($){const tt=$.name;if(Ms(tt)&&(!Gc($)&&ge||c4($)&&T)){const vt=yt(tt.expression,fe,Wt);H.assert(vt);const fi=Pp(vt);if(!lE(fi)){const fn=u.getGeneratedNameForNode(tt);return E(fn),u.updateComputedPropertyName(tt,u.createAssignment(fn,vt))}}return H.checkDefined(yt(tt,fe,wc))}function jn($){if($.token!==119)return rn($,fe,t)}function Ln($){return u.updateExpressionWithTypeArguments($,H.checkDefined(yt($.expression,fe,Df)),void 0)}function Ai($){return!Xl($.body)}function Dn($,tt){const vt=$.flags&33554432||Qu($,64);if(vt&&!(T&&c4($)))return;let fi=gr(tt)?vt?kn($.modifiers,Gt,ll):kn($.modifiers,fe,ll):kn($.modifiers,Ke,ll);return fi=Jn(fi,$,tt),vt?u.updatePropertyDeclaration($,mi(fi,u.createModifiersFromModifierFlags(128)),H.checkDefined(yt($.name,fe,wc)),void 0,void 0,void 0):u.updatePropertyDeclaration($,fi,bt($),void 0,void 0,yt($.initializer,fe,Wt))}function Cn($){if(Ai($))return u.updateConstructorDeclaration($,void 0,Cc($.parameters,fe,t),sa($.body,$))}function tu($,tt,vt,fi,fn,Gu){const uu=fi[fn],Nu=tt[uu];if(yn($,kn(tt,fe,ua,vt,uu-vt)),Ck(Nu)){const Mr=[];tu(Mr,Nu.tryBlock.statements,0,fi,fn+1,Gu);const Hu=u.createNodeArray(Mr);Pt(Hu,Nu.tryBlock.statements),$.push(u.updateTryStatement(Nu,u.updateBlock(Nu.tryBlock,Mr),yt(Nu.catchClause,fe,J2),yt(Nu.finallyBlock,fe,go)))}else yn($,kn(tt,fe,ua,uu,1)),yn($,Gu);yn($,kn(tt,fe,ua,uu+1))}function sa($,tt){const vt=tt&&ti(tt.parameters,Mr=>Mf(Mr,tt));if(!Ge(vt))return jm($,fe,t);let fi=[];f();const fn=u.copyPrologue($.statements,fi,!1,fe),Gu=cQ($.statements,fn),uu=qi(vt,xa);Gu.length?tu(fi,$.statements,fn,Gu,0,uu):(yn(fi,uu),yn(fi,kn($.statements,fe,ua,fn))),fi=u.mergeLexicalEnvironment(fi,p());const Nu=u.createBlock(Pt(u.createNodeArray(fi),$.statements),!0);return Pt(Nu,$),su(Nu,$),Nu}function xa($){const tt=$.name;if(!at(tt))return;const vt=ks(Pt(u.cloneNode(tt),tt),tt.parent);Yn(vt,3168);const fi=ks(Pt(u.cloneNode(tt),tt),tt.parent);return Yn(fi,3072),bh(_V(Pt(su(u.createExpressionStatement(u.createAssignment(Pt(u.createPropertyAccessExpression(u.createThis(),vt),$.name),fi)),$),Bv($,-1))))}function aa($,tt){if(!($.transformFlags&1))return $;if(!Ai($))return;let vt=gr(tt)?kn($.modifiers,fe,ll):kn($.modifiers,Ke,ll);return vt=Jn(vt,$,tt),u.updateMethodDeclaration($,vt,$.asteriskToken,bt($),void 0,void 0,Cc($.parameters,fe,t),void 0,jm($.body,fe,t))}function Ta($){return!(Xl($.body)&&Qu($,64))}function Qo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=gr(tt)?kn($.modifiers,fe,ll):kn($.modifiers,Ke,ll);return vt=Jn(vt,$,tt),u.updateGetAccessorDeclaration($,vt,bt($),Cc($.parameters,fe,t),void 0,jm($.body,fe,t)||u.createBlock([]))}function bo($,tt){if(!($.transformFlags&1))return $;if(!Ta($))return;let vt=gr(tt)?kn($.modifiers,fe,ll):kn($.modifiers,Ke,ll);return vt=Jn(vt,$,tt),u.updateSetAccessorDeclaration($,vt,bt($),Cc($.parameters,fe,t),jm($.body,fe,t)||u.createBlock([]))}function Qe($){if(!Ai($))return u.createNotEmittedStatement($);const tt=u.updateFunctionDeclaration($,kn($.modifiers,Yt,Xo),$.asteriskToken,$.name,void 0,Cc($.parameters,fe,t),void 0,jm($.body,fe,t)||u.createBlock([]));if(wo($)){const vt=[tt];return Ul(vt,$),vt}return tt}function _t($){return Ai($)?u.updateFunctionExpression($,kn($.modifiers,Yt,Xo),$.asteriskToken,$.name,void 0,Cc($.parameters,fe,t),void 0,jm($.body,fe,t)||u.createBlock([])):u.createOmittedExpression()}function Mt($){return u.updateArrowFunction($,kn($.modifiers,Yt,Xo),void 0,Cc($.parameters,fe,t),void 0,$.equalsGreaterThanToken,jm($.body,fe,t))}function qt($){if(N2($))return;const tt=u.updateParameterDeclaration($,kn($.modifiers,vt=>E1(vt)?fe(vt):void 0,ll),$.dotDotDotToken,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return tt!==$&&(Tc(tt,$),Pt(tt,nE($)),As(tt,nE($)),Yn(tt.name,64)),tt}function Xt($){if(wo($)){const tt=xP($.declarationList);return tt.length===0?void 0:Pt(u.createExpressionStatement(u.inlineExpressions(Vt(tt,Pe))),$)}else return rn($,fe,t)}function Pe($){const tt=$.name;return So(tt)?wk($,fe,t,0,!1,hd):Pt(u.createAssignment(Cl(tt),H.checkDefined(yt($.initializer,fe,Wt))),$)}function et($){const tt=u.updateVariableDeclaration($,H.checkDefined(yt($.name,fe,qy)),void 0,void 0,yt($.initializer,fe,Wt));return $.type&&qke(tt.name,$.type),tt}function Et($){const tt=vc($.expression,-7);if(Yy(tt)){const vt=yt($.expression,fe,Wt);return H.assert(vt),u.createPartiallyEmittedExpression(vt,$)}return rn($,fe,t)}function ii($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function me($){const tt=yt($.expression,fe,Df);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function ni($){const tt=yt($.expression,fe,Wt);return H.assert(tt),u.createPartiallyEmittedExpression(tt,$)}function xi($){return u.updateCallExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function pt($){return u.updateNewExpression($,H.checkDefined(yt($.expression,fe,Wt)),void 0,kn($.arguments,fe,Wt))}function Ot($){return u.updateTaggedTemplateExpression($,H.checkDefined(yt($.tag,fe,Wt)),void 0,H.checkDefined(yt($.template,fe,P8)))}function Ei($){return u.updateJsxSelfClosingElement($,H.checkDefined(yt($.tagName,fe,GN)),void 0,H.checkDefined(yt($.attributes,fe,G2)))}function $i($){return u.updateJsxOpeningElement($,H.checkDefined(yt($.tagName,fe,GN)),void 0,H.checkDefined(yt($.attributes,fe,G2)))}function Qi($){return!y2($)||fk(b)}function on($){if(!Qi($))return u.createNotEmittedStatement($);const tt=[];let vt=4;const fi=Ct(tt,$);fi&&(k!==4||oe!==J)&&(vt|=1024);const fn=ho($),Gu=Ko($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Nu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Hu=u.getLocalName($,!1,!0);Nu=u.createAssignment(Hu,Nu)}const Mr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,le($,Gu)),void 0,[Nu]));return su(Mr,$),fi&&(Pv(Mr,void 0),A7(Mr,void 0)),Pt(Mr,$),n_(Mr,vt),tt.push(Mr),tt}function le($,tt){const vt=Y;Y=tt;const fi=[];d();const fn=Vt($.members,te);return YE(fi,p()),yn(fi,fn),Y=vt,u.createBlock(Pt(u.createNodeArray(fi),$.members),!0)}function te($){const tt=wa($,!1),vt=we($),fi=u.createAssignment(u.createElementAccessExpression(Y,tt),vt),fn=vt.kind===11?fi:u.createAssignment(u.createElementAccessExpression(Y,fi),tt);return Pt(u.createExpressionStatement(Pt(fn,$)),$)}function we($){const tt=v.getConstantValue($);return tt!==void 0?typeof tt=="string"?u.createStringLiteral(tt):u.createNumericLiteral(tt):(nd(),$.initializer?H.checkDefined(yt($.initializer,fe,Wt)):u.createVoidZero())}function de($){const tt=Za($,xc);return tt?jde(tt,fk(b)):!0}function Oe($){se||(se=new Map);const tt=it($);se.has(tt)||se.set(tt,$)}function X($){if(se){const tt=it($);return se.get(tt)===$}return!0}function it($){return H.assertNode($.name,at),$.name.escapedText}function Ct($,tt){const vt=u.createVariableDeclaration(u.getLocalName(tt,!1,!0)),fi=oe.kind===312?0:1,fn=u.createVariableStatement(kn(tt.modifiers,Yt,Xo),u.createVariableDeclarationList([vt],fi));return su(vt,tt),Pv(vt,void 0),A7(vt,void 0),su(fn,tt),Oe(tt),X(tt)?(tt.kind===266?As(fn.declarationList,tt):As(fn,tt),Tc(fn,tt),n_(fn,2048),$.push(fn),!0):!1}function ct($){if(!de($))return u.createNotEmittedStatement($);H.assertNode($.name,at,"A TypeScript namespace should have an Identifier name."),Q0();const tt=[];let vt=4;const fi=Ct(tt,$);fi&&(k!==4||oe!==J)&&(vt|=1024);const fn=ho($),Gu=Ko($),uu=wo($)?u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0):u.getDeclarationName($,!1,!0);let Nu=u.createLogicalOr(uu,u.createAssignment(uu,u.createObjectLiteralExpression()));if(wo($)){const Hu=u.getLocalName($,!1,!0);Nu=u.createAssignment(Hu,Nu)}const Mr=u.createExpressionStatement(u.createCallExpression(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,fn)],void 0,Qt($,Gu)),void 0,[Nu]));return su(Mr,$),fi&&(Pv(Mr,void 0),A7(Mr,void 0)),Pt(Mr,$),n_(Mr,vt),tt.push(Mr),tt}function Qt($,tt){const vt=Y,fi=K,fn=se;Y=tt,K=$,se=void 0;const Gu=[];d();let uu,Nu;if($.body)if($.body.kind===268)Ne($.body,Hu=>yn(Gu,kn(Hu.statements,De,ua))),uu=$.body.statements,Nu=$.body;else{const Hu=ct($.body);Hu&&(Wa(Hu)?yn(Gu,Hu):Gu.push(Hu));const Ss=Ti($).body;uu=Bv(Ss.statements,-1)}YE(Gu,p()),Y=vt,K=fi,se=fn;const Mr=u.createBlock(Pt(u.createNodeArray(Gu),uu),!0);return Pt(Mr,Nu),(!$.body||$.body.kind!==268)&&Yn(Mr,bs(Mr)|3072),Mr}function Ti($){if($.body.kind===267)return Ti($.body)||$.body}function Ui($){if(!$.importClause)return $;if($.importClause.isTypeOnly)return;const tt=yt($.importClause,Sn,u_);return tt||b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2?u.updateImportDeclaration($,void 0,tt,$.moduleSpecifier,$.attributes):void 0}function Sn($){H.assert(!$.isTypeOnly);const tt=yc($)?$.name:void 0,vt=yt($.namedBindings,du,u0e);return tt||vt?u.updateImportClause($,!1,tt,vt):void 0}function du($){if($.kind===274)return yc($)?$:void 0;{const tt=b.verbatimModuleSyntax||b.preserveValueImports&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=kn($.elements,Ou,bf);return tt||Ge(vt)?u.updateNamedImports($,vt):void 0}}function Ou($){return!$.isTypeOnly&&yc($)?$:void 0}function Er($){return b.verbatimModuleSyntax||v.isValueAliasDeclaration($)?rn($,fe,t):void 0}function er($){if($.isTypeOnly)return;if(!$.exportClause||r_($.exportClause))return $;const tt=b.verbatimModuleSyntax||!!$.moduleSpecifier&&(b.importsNotUsedAsValues===1||b.importsNotUsedAsValues===2),vt=yt($.exportClause,fi=>Va(fi,tt),Jse);return vt?u.updateExportDeclaration($,void 0,$.isTypeOnly,vt,$.moduleSpecifier,$.attributes):void 0}function da($,tt){const vt=kn($.elements,wn,th);return tt||Ge(vt)?u.updateNamedExports($,vt):void 0}function Wu($){return u.updateNamespaceExport($,H.checkDefined(yt($.name,fe,at)))}function Va($,tt){return r_($)?Wu($):da($,tt)}function wn($){return!$.isTypeOnly&&(b.verbatimModuleSyntax||v.isValueAliasDeclaration($))?$:void 0}function Rr($){return yc($)||!Lc(J)&&v.isTopLevelValueImportEqualsWithEntityName($)}function os($){if($.isTypeOnly)return;if(yv($)){const vt=yc($);return!vt&&b.importsNotUsedAsValues===1?su(Pt(u.createImportDeclaration(void 0,void 0,$.moduleReference.expression,void 0),$),$):vt?rn($,fe,t):void 0}if(!Rr($))return;const tt=MV(u,$.moduleReference);return Yn(tt,7168),bc($)||!wo($)?su(Pt(u.createVariableStatement(kn($.modifiers,Yt,Xo),u.createVariableDeclarationList([su(u.createVariableDeclaration($.name,void 0,void 0,tt),$)])),$),$):su(Tl($.name,tt,$),$)}function wo($){return K!==void 0&&Qu($,32)}function Fn($){return K===void 0&&Qu($,32)}function bc($){return Fn($)&&!Qu($,2048)}function Qa($){return Fn($)&&Qu($,2048)}function c0($){const tt=u.createAssignment(u.getExternalModuleOrNamespaceExportName(Y,$,!1,!0),u.getLocalName($));As(tt,d4($.name?$.name.pos:$.pos,$.end));const vt=u.createExpressionStatement(tt);return As(vt,d4(-1,$.end)),vt}function Ul($,tt){$.push(c0(tt))}function Tl($,tt,vt){return Pt(u.createExpressionStatement(u.createAssignment(u.getNamespaceMemberName(Y,$,!1,!0),tt)),vt)}function hd($,tt,vt){return Pt(u.createAssignment(Cl($),tt),vt)}function Cl($){return u.getNamespaceMemberName(Y,$,!1,!0)}function ho($){const tt=u.getGeneratedNameForNode($);return As(tt,$.name),tt}function Ko($){return u.getGeneratedNameForNode($)}function nd(){ae&8||(ae|=8,t.enableSubstitution(80))}function Q0(){ae&2||(ae|=2,t.enableSubstitution(80),t.enableSubstitution(304),t.enableEmitNotification(267))}function Wo($){return Wl($).kind===267}function Nc($){return Wl($).kind===266}function $p($,tt,vt){const fi=Ce,fn=J;ca(tt)&&(J=tt),ae&2&&Wo(tt)&&(Ce|=2),ae&8&&Nc(tt)&&(Ce|=8),z($,tt,vt),Ce=fi,J=fn}function Pc($,tt){return tt=j($,tt),$===1?hl(tt):pm(tt)?Il(tt):tt}function Il($){if(ae&2){const tt=$.name,vt=Oi(tt);if(vt){if($.objectAssignmentInitializer){const fi=u.createAssignment(vt,$.objectAssignmentInitializer);return Pt(u.createPropertyAssignment(tt,fi),$)}return Pt(u.createPropertyAssignment(tt,vt),$)}}return $}function hl($){switch($.kind){case 80:return Ga($);case 211:return fl($);case 212:return Zc($)}return $}function Ga($){return Oi($)||$}function Oi($){if(ae&Ce&&!sl($)&&!rD($)){const tt=v.getReferencedExportContainer($,!1);if(tt&&tt.kind!==312&&(Ce&2&&tt.kind===267||Ce&8&&tt.kind===266))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(tt),$),$)}}function fl($){return sf($)}function Zc($){return sf($)}function yh($){return $.replace(/\*\//g,"*_/")}function sf($){const tt=X0($);if(tt!==void 0){$ke($,tt);const vt=typeof tt=="string"?u.createStringLiteral(tt):tt<0?u.createPrefixUnaryExpression(41,u.createNumericLiteral(Math.abs(tt))):u.createNumericLiteral(tt);if(!b.removeComments){const fi=Wl($,O0);BZ(vt,3,` ${yh(Wc(fi))} `)}return vt}return $}function X0($){if(!mg(b))return Ru($)||q0($)?v.getConstantValue($):void 0}function yc($){return b.verbatimModuleSyntax||Xn($)||(b.preserveValueImports?v.isValueAliasDeclaration($):v.isReferencedAliasDeclaration($))}}var $et,bMt=o({"src/compiler/transformers/ts.ts"(){Bo(),$et=!1}});function d7e(t){const{factory:u,getEmitHelperFactory:s,hoistVariableDeclaration:d,endLexicalEnvironment:f,startLexicalEnvironment:p,resumeLexicalEnvironment:E,addBlockScopedVariable:v}=t,b=t.getEmitResolver(),B=t.getCompilerOptions(),k=js(B),T=tV(B),M=!!B.experimentalDecorators,z=!T,j=T&&k<9,J=z||j,K=k<9,Y=k<99?-1:T?0:3,oe=k<9,se=oe&&k>=2,ge=J||K||Y===-1,ae=t.onSubstituteNode;t.onSubstituteNode=Zc;const Ce=t.onEmitNode;t.onEmitNode=fl;let ne=!1,ve,Se,Ne,pe,fe;const xe=new Map,Be=new Set;let We,Ae,De=!1,He=!1;return Wp(t,Je);function Je($){if($.isDeclarationFile||(fe=void 0,ne=!!(Mp($)&32),!ge&&!ne))return $;const tt=rn($,Ye,t);return iD(tt,t.readEmitHelpers()),tt}function mt($){switch($.kind){case 129:return Cn()?void 0:$;default:return ar($,Xo)}}function Ye($){if(!($.transformFlags&16777216)&&!($.transformFlags&134234112))return $;switch($.kind){case 129:return H.fail("Use `modifierVisitor` instead.");case 263:return Qi($);case 231:return le($);case 175:case 172:return H.fail("Use `classElementVisitor` instead.");case 303:return ft($);case 243:return Ut($);case 260:return Ni($);case 169:return Vi($);case 208:return xn($);case 277:return Jn($);case 81:return It($);case 211:return Qo($);case 212:return bo($);case 224:case 225:return Qe($,!1);case 226:return ii($,!1);case 217:return ni($,!1);case 213:return Xt($);case 244:return Mt($);case 215:return Pe($);case 248:return _t($);case 110:return de($);case 262:case 218:return Fr(void 0,je,$);case 176:case 174:case 177:case 178:return Fr($,je,$);default:return je($)}}function je($){return rn($,Ye,t)}function Ke($){switch($.kind){case 224:case 225:return Qe($,!0);case 226:return ii($,!0);case 361:return me($,!0);case 217:return ni($,!0);default:return Ye($)}}function Gt($){switch($.kind){case 298:return rn($,Gt,t);case 233:return Ei($);default:return Ye($)}}function Yt($){switch($.kind){case 210:case 209:return Oi($);default:return Ye($)}}function Ie($){switch($.kind){case 176:return Fr($,Fi,$);case 177:case 178:case 174:return Fr($,oa,$);case 172:return Fr($,tu,$);case 175:return Fr($,we,$);case 167:return Pi($);case 240:return $;default:return ll($)?mt($):Ye($)}}function st($){switch($.kind){case 167:return Pi($);default:return Ye($)}}function Bt($){switch($.kind){case 172:return Dn($);case 177:case 178:return Ie($);default:H.assertMissingNode($,"Expected node to either be a PropertyDeclaration, GetAccessorDeclaration, or SetAccessorDeclaration");break}}function It($){return!K||ua($.parent)?$:su(u.createIdentifier(""),$)}function ei($){const tt=Ko($.left);if(tt){const vt=yt($.right,Ye,Wt);return su(s().createClassPrivateFieldInHelper(tt.brandCheckIdentifier,vt),$)}return rn($,Ye,t)}function ft($){return If($,Et)&&($=Vf(t,$)),rn($,Ye,t)}function Ut($){const tt=pe;pe=[];const vt=rn($,Ye,t),fi=Ge(pe)?[vt,...pe]:vt;return pe=tt,fi}function Ni($){return If($,Et)&&($=Vf(t,$)),rn($,Ye,t)}function Vi($){return If($,Et)&&($=Vf(t,$)),rn($,Ye,t)}function xn($){return If($,Et)&&($=Vf(t,$)),rn($,Ye,t)}function Jn($){return If($,Et)&&($=Vf(t,$,!0,$.isExportEquals?"":"default")),rn($,Ye,t)}function an($){return Ge(Ne)&&(Cf($)?(Ne.push($.expression),$=u.updateParenthesizedExpression($,u.inlineExpressions(Ne))):(Ne.push($),$=u.inlineExpressions(Ne)),Ne=void 0),$}function Pi($){const tt=yt($.expression,Ye,Wt);return u.updateComputedPropertyName($,an(tt))}function Fi($){return We?it($,We):je($)}function Yu($){return!!(K||Gc($)&&Mp($)&32)}function oa($){if(H.assert(!c4($)),!Eh($)||!Yu($))return rn($,Ie,t);const tt=Ko($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;const vt=wa($);vt&&wo().push(u.createAssignment(vt,u.createFunctionExpression(ti($.modifiers,fi=>Xo(fi)&&!N7(fi)&&!lFe(fi)),$.asteriskToken,vt,void 0,Cc($.parameters,Ye,t),void 0,jm($.body,Ye,t))))}function Fr($,tt,vt){if($!==Ae){const fi=Ae;Ae=$;const fn=tt(vt);return Ae=fi,fn}return tt(vt)}function wa($){H.assert(ea($.name));const tt=Ko($.name);if(H.assert(tt,"Undeclared private name for property declaration."),tt.kind==="m")return tt.methodName;if(tt.kind==="a"){if(Lx($))return tt.getterName;if(e5($))return tt.setterName}}function bt(){const $=Rr(),tt=$.classThis??$.classConstructor??(We==null?void 0:We.name);return H.checkDefined(tt)}function jn($){const tt=uE($),vt=Nv($),fi=$.name;let fn=fi,Gu=fi;if(Ms(fi)&&!lE(fi.expression)){const ud=SY(fi);if(ud)fn=u.updateComputedPropertyName(fi,yt(fi.expression,Ye,Wt)),Gu=u.updateComputedPropertyName(fi,ud.left);else{const T0=u.createTempVariable(d);As(T0,fi.expression);const rd=yt(fi.expression,Ye,Wt),m0=u.createAssignment(T0,rd);As(m0,fi.expression),fn=u.updateComputedPropertyName(fi,m0),Gu=u.updateComputedPropertyName(fi,T0)}}const uu=kn($.modifiers,mt,Xo),Nu=Jce(u,$,uu,$.initializer);su(Nu,$),Yn(Nu,3072),As(Nu,vt);const Mr=No($)?bt():u.createThis(),Hu=JFe(u,$,uu,fn,Mr);su(Hu,$),Tc(Hu,tt),As(Hu,vt);const Ss=u.createModifiersFromModifierFlags(iE(uu)),nc=$Fe(u,$,Ss,Gu,Mr);return su(nc,$),Yn(nc,3072),As(nc,vt),hH([Nu,Hu,nc],Bt,Yd)}function Ln($){if(Yu($)){const tt=Ko($.name);if(H.assert(tt,"Undeclared private name for property declaration."),!tt.isValid)return $;if(tt.isStatic&&!K){const vt=Ti($,u.createThis());if(vt)return u.createClassStaticBlockDeclaration(u.createBlock([vt],!0))}return}return z&&!No($)&&(fe!=null&&fe.data)&&fe.data.facts&16?u.updatePropertyDeclaration($,kn($.modifiers,Ye,ll),$.name,void 0,void 0,void 0):(If($,Et)&&($=Vf(t,$)),u.updatePropertyDeclaration($,kn($.modifiers,mt,Xo),yt($.name,st,wc),void 0,void 0,yt($.initializer,Ye,Wt)))}function Ai($){if(J&&!ef($)){const tt=Wu($.name,!!$.initializer||T);if(tt&&wo().push(...UFe(tt)),No($)&&!K){const vt=Ti($,u.createThis());if(vt){const fi=u.createClassStaticBlockDeclaration(u.createBlock([vt]));return su(fi,$),Tc(fi,$),Tc(vt,{pos:-1,end:-1}),Pv(vt,void 0),A7(vt,void 0),fi}}return}return u.updatePropertyDeclaration($,kn($.modifiers,mt,Xo),yt($.name,st,wc),void 0,void 0,yt($.initializer,Ye,Wt))}function Dn($){return H.assert(!c4($),"Decorators should already have been transformed and elided."),Eh($)?Ln($):Ai($)}function Cn(){return Y===-1||Y===3&&!!(fe!=null&&fe.data)&&!!(fe.data.facts&16)}function tu($){return ef($)&&(Cn()||Gc($)&&Mp($)&32)?jn($):Dn($)}function sa(){return!!Ae&&Gc(Ae)&&wx(Ae)&&ef(Wl(Ae))}function xa($){if(sa()){const tt=vc($);tt.kind===110&&Be.add(tt)}}function aa($,tt){return tt=yt(tt,Ye,Wt),xa(tt),Ta($,tt)}function Ta($,tt){switch(Tc(tt,Bv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.getterName);case"m":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.methodName);case"f":return s().createClassPrivateFieldGetHelper(tt,$.brandCheckIdentifier,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function Qo($){if(ea($.name)){const tt=Ko($.name);if(tt)return Pt(su(aa(tt,$.expression),$),$)}if(se&&Ae&&nf($)&&at($.name)&&xM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:fi}=fe.data;if(fi&1)return da($);if(tt&&vt){const fn=u.createReflectGetCall(vt,u.createStringLiteralFromNode($.name),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function bo($){if(se&&Ae&&nf($)&&xM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:fi}=fe.data;if(fi&1)return da($);if(tt&&vt){const fn=u.createReflectGetCall(vt,yt($.argumentExpression,Ye,Wt),tt);return su(fn,$.expression),Pt(fn,$.expression),fn}}return rn($,Ye,t)}function Qe($,tt){if($.operator===46||$.operator===47){const vt=l0($.operand);if(T8(vt)){let fi;if(fi=Ko(vt.name)){const fn=yt(vt.expression,Ye,Wt);xa(fn);const{readExpression:Gu,initializeExpression:uu}=qt(fn);let Nu=aa(fi,Gu);const Mr=Iv($)||tt?void 0:u.createTempVariable(d);return Nu=vY(u,$,Nu,d,Mr),Nu=xi(fi,uu||Gu,Nu,64),su(Nu,$),Pt(Nu,$),Mr&&(Nu=u.createComma(Nu,Mr),Pt(Nu,$)),Nu}}else if(se&&Ae&&nf(vt)&&xM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:fi,superClassReference:fn,facts:Gu}=fe.data;if(Gu&1){const uu=da(vt);return Iv($)?u.updatePrefixUnaryExpression($,uu):u.updatePostfixUnaryExpression($,uu)}if(fi&&fn){let uu,Nu;if(Ru(vt)?at(vt.name)&&(Nu=uu=u.createStringLiteralFromNode(vt.name)):lE(vt.argumentExpression)?Nu=uu=vt.argumentExpression:(Nu=u.createTempVariable(d),uu=u.createAssignment(Nu,yt(vt.argumentExpression,Ye,Wt))),uu&&Nu){let Mr=u.createReflectGetCall(fn,Nu,fi);Pt(Mr,vt);const Hu=tt?void 0:u.createTempVariable(d);return Mr=vY(u,$,Mr,d,Hu),Mr=u.createReflectSetCall(fn,uu,Mr,fi),su(Mr,$),Pt(Mr,$),Hu&&(Mr=u.createComma(Mr,Hu),Pt(Mr,$)),Mr}}}}return rn($,Ye,t)}function _t($){return u.updateForStatement($,yt($.initializer,Ke,l4),yt($.condition,Ye,Wt),yt($.incrementor,Ke,Wt),Rh($.statement,Ye,t))}function Mt($){return u.updateExpressionStatement($,yt($.expression,Ke,Wt))}function qt($){const tt=cl($)?$:u.cloneNode($);if($.kind===110&&Be.has($)&&Be.add(tt),lE($))return{readExpression:tt,initializeExpression:void 0};const vt=u.createTempVariable(d),fi=u.createAssignment(vt,tt);return{readExpression:vt,initializeExpression:fi}}function Xt($){var tt;if(T8($.expression)&&Ko($.expression.name)){const{thisArg:vt,target:fi}=u.createCallBinding($.expression,d,k);return $y($)?u.updateCallChain($,u.createPropertyAccessChain(yt(fi,Ye,Wt),$.questionDotToken,"call"),void 0,void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)]):u.updateCallExpression($,u.createPropertyAccessExpression(yt(fi,Ye,Wt),"call"),void 0,[yt(vt,Ye,Wt),...kn($.arguments,Ye,Wt)])}if(se&&Ae&&nf($.expression)&&xM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionCallCall(yt($.expression,Ye,Wt),fe.data.classConstructor,kn($.arguments,Ye,Wt));return su(vt,$),Pt(vt,$),vt}return rn($,Ye,t)}function Pe($){var tt;if(T8($.tag)&&Ko($.tag.name)){const{thisArg:vt,target:fi}=u.createCallBinding($.tag,d,k);return u.updateTaggedTemplateExpression($,u.createCallExpression(u.createPropertyAccessExpression(yt(fi,Ye,Wt),"bind"),void 0,[yt(vt,Ye,Wt)]),void 0,yt($.template,Ye,P8))}if(se&&Ae&&nf($.tag)&&xM(Ae)&&((tt=fe==null?void 0:fe.data)!=null&&tt.classConstructor)){const vt=u.createFunctionBindCall(yt($.tag,Ye,Wt),fe.data.classConstructor,[]);return su(vt,$),Pt(vt,$),u.updateTaggedTemplateExpression($,vt,void 0,yt($.template,Ye,P8))}return rn($,Ye,t)}function et($){if(fe&&xe.set(Wl($),fe),K){if(_M($)){const fi=yt($.body.statements[0].expression,Ye,Wt);return ld(fi,!0)&&fi.left===fi.right?void 0:fi}if(X7($))return yt($.body.statements[0].expression,Ye,Wt);p();let tt=Fr($,fi=>kn(fi,Ye,ua),$.body.statements);tt=u.mergeLexicalEnvironment(tt,f());const vt=u.createImmediatelyInvokedArrowFunction(tt);return su(l0(vt.expression),$),n_(l0(vt.expression),4),su(vt,$),Pt(vt,$),vt}}function Et($){if(e1($)&&!$.name){const tt=dQ($);return Ge(tt,X7)?!1:(K||!!Mp($))&&Ge(tt,fi=>zl(fi)||Eh(fi)||J&&mH(fi))}return!1}function ii($,tt){if(r5($)){const vt=Ne;Ne=void 0,$=u.updateBinaryExpression($,yt($.left,Yt,Wt),$.operatorToken,yt($.right,Ye,Wt));const fi=Ge(Ne)?u.inlineExpressions(vr([...Ne,$])):$;return Ne=vt,fi}if(ld($)){If($,Et)&&($=Vf(t,$),H.assertNode($,ld));const vt=vc($.left,9);if(T8(vt)){const fi=Ko(vt.name);if(fi)return Pt(su(xi(fi,vt.expression,$.right,$.operatorToken.kind),$),$)}else if(se&&Ae&&nf($.left)&&xM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:fi,superClassReference:fn,facts:Gu}=fe.data;if(Gu&1)return u.updateBinaryExpression($,da($.left),$.operatorToken,yt($.right,Ye,Wt));if(fi&&fn){let uu=q0($.left)?yt($.left.argumentExpression,Ye,Wt):at($.left.name)?u.createStringLiteralFromNode($.left.name):void 0;if(uu){let Nu=yt($.right,Ye,Wt);if(pM($.operatorToken.kind)){let Hu=uu;lE(uu)||(Hu=u.createTempVariable(d),uu=u.createAssignment(Hu,uu));const Ss=u.createReflectGetCall(fn,Hu,fi);su(Ss,$.left),Pt(Ss,$.left),Nu=u.createBinaryExpression(Ss,gM($.operatorToken.kind),Nu),Pt(Nu,$)}const Mr=tt?void 0:u.createTempVariable(d);return Mr&&(Nu=u.createAssignment(Mr,Nu),Pt(Mr,$)),Nu=u.createReflectSetCall(fn,uu,Nu,fi),su(Nu,$),Pt(Nu,$),Mr&&(Nu=u.createComma(Nu,Mr),Pt(Nu,$)),Nu}}}}return SMt($)?ei($):rn($,Ye,t)}function me($,tt){const vt=tt?fH($.elements,Ke):fH($.elements,Ye,Ke);return u.updateCommaListExpression($,vt)}function ni($,tt){const vt=tt?Ke:Ye,fi=yt($.expression,vt,Wt);return u.updateParenthesizedExpression($,fi)}function xi($,tt,vt,fi){if(tt=yt(tt,Ye,Wt),vt=yt(vt,Ye,Wt),xa(tt),pM(fi)){const{readExpression:fn,initializeExpression:Gu}=qt(tt);tt=Gu||fn,vt=u.createBinaryExpression(Ta($,fn),gM(fi),vt)}switch(Tc(tt,Bv(tt,-1)),$.kind){case"a":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.setterName);case"m":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,void 0);case"f":return s().createClassPrivateFieldSetHelper(tt,$.brandCheckIdentifier,vt,$.kind,$.isStatic?$.variableName:void 0);case"untransformed":return H.fail("Access helpers should not be created for untransformed private elements");default:H.assertNever($,"Unknown private element type")}}function pt($){return ti($.members,QAe)}function Ot($){var tt;let vt=0;const fi=Wl($);Jc(fi)&&t5(M,fi)&&(vt|=1),K&&(i1e($)||fQ($))&&(vt|=2);let fn=!1,Gu=!1,uu=!1,Nu=!1;for(const Hu of $.members)No(Hu)?((Hu.name&&(ea(Hu.name)||ef(Hu))&&K||ef(Hu)&&Y===-1&&!$.name&&!((tt=$.emitNode)!=null&&tt.classThis))&&(vt|=2),(ko(Hu)||zl(Hu))&&(oe&&Hu.transformFlags&16384&&(vt|=8,vt&1||(vt|=2)),se&&Hu.transformFlags&134217728&&(vt&1||(vt|=6)))):M2(Wl(Hu))||(ef(Hu)?(Nu=!0,uu||(uu=Eh(Hu))):Eh(Hu)?(uu=!0,b.getNodeCheckFlags(Hu)&262144&&(vt|=2)):ko(Hu)&&(fn=!0,Gu||(Gu=!!Hu.initializer)));return(j&&fn||z&&Gu||K&&uu||K&&Nu&&Y===-1)&&(vt|=16),vt}function Ei($){var tt;if((((tt=fe==null?void 0:fe.data)==null?void 0:tt.facts)||0)&4){const fi=u.createTempVariable(d,!0);return Rr().superClassReference=fi,u.updateExpressionWithTypeArguments($,u.createAssignment(fi,yt($.expression,Ye,Wt)),void 0)}return rn($,Ye,t)}function $i($,tt){var vt;const fi=We,fn=Ne,Gu=fe;We=$,Ne=void 0,Va();const uu=Mp($)&32;if(K||uu){const Hu=Ya($);if(Hu&&at(Hu))os().data.className=Hu;else if((vt=$.emitNode)!=null&&vt.assignedName&&rs($.emitNode.assignedName)){if($.emitNode.assignedName.textSourceNode&&at($.emitNode.assignedName.textSourceNode))os().data.className=$.emitNode.assignedName.textSourceNode;else if(Nm($.emitNode.assignedName.text,k)){const Ss=u.createIdentifier($.emitNode.assignedName.text);os().data.className=Ss}}}if(K){const Hu=pt($);Ge(Hu)&&(os().data.weakSetName=Cl("instances",Hu[0].name))}const Nu=Ot($);Nu&&(Rr().facts=Nu),Nu&8&&Er();const Mr=tt($,Nu);return wn(),H.assert(fe===Gu),We=fi,Ne=fn,Mr}function Qi($){return $i($,on)}function on($,tt){var vt,fi;let fn;if(tt&2)if(K&&((vt=$.emitNode)!=null&&vt.classThis))Rr().classConstructor=$.emitNode.classThis,fn=u.createAssignment($.emitNode.classThis,u.getInternalName($));else{const m0=u.createTempVariable(d,!0);Rr().classConstructor=u.cloneNode(m0),fn=u.createAssignment(m0,u.getInternalName($))}(fi=$.emitNode)!=null&&fi.classThis&&(Rr().classThis=$.emitNode.classThis);const Gu=b.getNodeCheckFlags($)&262144,uu=Qu($,32),Nu=Qu($,2048);let Mr=kn($.modifiers,mt,Xo);const Hu=kn($.heritageClauses,Gt,mm),{members:Ss,prologue:nc}=Oe($),ud=[];if(fn&&wo().unshift(fn),Ge(Ne)&&ud.push(u.createExpressionStatement(u.inlineExpressions(Ne))),z||K||Mp($)&32){const m0=dQ($);Ge(m0)&&Qt(ud,m0,u.getInternalName($))}ud.length>0&&uu&&Nu&&(Mr=kn(Mr,m0=>jV(m0)?void 0:m0,Xo),ud.push(u.createExportAssignment(void 0,!1,u.getLocalName($,!1,!0))));const T0=Rr().classConstructor;Gu&&T0&&(Ou(),Se[z1($)]=T0);const rd=u.updateClassDeclaration($,Mr,$.name,void 0,Hu,Ss);return ud.unshift(rd),nc&&ud.unshift(u.createExpressionStatement(nc)),ud}function le($){return $i($,te)}function te($,tt){var vt,fi,fn;const Gu=!!(tt&1),uu=dQ($),Nu=b.getNodeCheckFlags($),Mr=Nu&262144;let Hu;function Ss(){var rh;if(K&&((rh=$.emitNode)!=null&&rh.classThis))return Rr().classConstructor=$.emitNode.classThis;const p4=Nu&32768,x1=u.createTempVariable(p4?v:d,!0);return Rr().classConstructor=u.cloneNode(x1),x1}(vt=$.emitNode)!=null&&vt.classThis&&(Rr().classThis=$.emitNode.classThis),tt&2&&(Hu??(Hu=Ss()));const nc=kn($.modifiers,mt,Xo),ud=kn($.heritageClauses,Gt,mm),{members:T0,prologue:rd}=Oe($),m0=u.updateClassExpression($,nc,$.name,void 0,ud,T0),Bd=[];if(rd&&Bd.push(rd),(K||Mp($)&32)&&Ge(uu,rh=>zl(rh)||Eh(rh)||J&&mH(rh))||Ge(Ne))if(Gu)H.assertIsDefined(pe,"Decorated classes transformed by TypeScript are expected to be within a variable declaration."),Ge(Ne)&&yn(pe,Vt(Ne,u.createExpressionStatement)),Ge(uu)&&Qt(pe,uu,((fi=$.emitNode)==null?void 0:fi.classThis)??u.getInternalName($)),Hu?Bd.push(u.createAssignment(Hu,m0)):K&&((fn=$.emitNode)!=null&&fn.classThis)?Bd.push(u.createAssignment($.emitNode.classThis,m0)):Bd.push(m0);else{if(Hu??(Hu=Ss()),Mr){Ou();const rh=u.cloneNode(Hu);rh.emitNode.autoGenerate.flags&=-9,Se[z1($)]=rh}Bd.push(u.createAssignment(Hu,m0)),yn(Bd,Ne),yn(Bd,Ui(uu,Hu)),Bd.push(u.cloneNode(Hu))}else Bd.push(m0);return Bd.length>1&&(n_(m0,131072),Bd.forEach(bh)),u.inlineExpressions(Bd)}function we($){if(!K)return rn($,Ye,t)}function de($){if(oe&&Ae&&zl(Ae)&&(fe!=null&&fe.data)){const{classThis:tt,classConstructor:vt}=fe.data;return tt??vt??$}return $}function Oe($){const tt=!!(Mp($)&32);if(K||ne){for(const uu of $.members)if(Eh(uu))if(Yu(uu))hd(uu,uu.name,Fn);else{const Nu=os();Bk(Nu,uu.name,{kind:"untransformed"})}if(K&&Ge(pt($))&&X(),Cn()){for(const uu of $.members)if(ef(uu)){const Nu=u.getGeneratedPrivateNameForNode(uu.name,void 0,"_accessor_storage");if(K||tt&&Gc(uu))hd(uu,Nu,bc);else{const Mr=os();Bk(Mr,Nu,{kind:"untransformed"})}}}}let vt=kn($.members,Ie,Yd),fi;Ge(vt,fc)||(fi=it(void 0,$));let fn,Gu;if(!K&&Ge(Ne)){let uu=u.createExpressionStatement(u.inlineExpressions(Ne));if(uu.transformFlags&134234112){const Mr=u.createTempVariable(d),Hu=u.createArrowFunction(void 0,void 0,[],void 0,void 0,u.createBlock([uu]));fn=u.createAssignment(Mr,Hu),uu=u.createExpressionStatement(u.createCallExpression(Mr,void 0,[]))}const Nu=u.createBlock([uu]);Gu=u.createClassStaticBlockDeclaration(Nu),Ne=void 0}if(fi||Gu){let uu;const Nu=Le(vt,_M),Mr=Le(vt,X7);uu=Di(uu,Nu),uu=Di(uu,Mr),uu=Di(uu,fi),uu=Di(uu,Gu);const Hu=Nu||Mr?ti(vt,Ss=>Ss!==Nu&&Ss!==Mr):vt;uu=yn(uu,Hu),vt=Pt(u.createNodeArray(uu),$.members)}return{members:vt,prologue:fn}}function X(){const{weakSetName:$}=os().data;H.assert($,"weakSetName should be set in private identifier environment"),wo().push(u.createAssignment($,u.createNewExpression(u.createIdentifier("WeakSet"),void 0,[])))}function it($,tt){if($=yt($,Ye,fc),!(fe!=null&&fe.data)||!(fe.data.facts&16))return $;const vt=Xg(tt),fi=!!(vt&&vc(vt.expression).kind!==106),fn=Cc($?$.parameters:void 0,Ye,t),Gu=ct(tt,$,fi);return Gu?$?(H.assert(fn),u.updateConstructorDeclaration($,void 0,fn,Gu)):bh(su(Pt(u.createConstructorDeclaration(void 0,fn??[],Gu),$||tt),$)):$}function Ct($,tt,vt,fi,fn,Gu,uu){const Nu=fi[fn],Mr=tt[Nu];if(yn($,kn(tt,Ye,ua,vt,Nu-vt)),vt=Nu+1,Ck(Mr)){const Hu=[];Ct(Hu,Mr.tryBlock.statements,0,fi,fn+1,Gu,uu);const Ss=u.createNodeArray(Hu);Pt(Ss,Mr.tryBlock.statements),$.push(u.updateTryStatement(Mr,u.updateBlock(Mr.tryBlock,Hu),yt(Mr.catchClause,Ye,J2),yt(Mr.finallyBlock,Ye,go)))}else{for(yn($,kn(tt,Ye,ua,Nu,1));vt!!T0.initializer||ea(T0.name)||tE(T0)));const Gu=pt($),uu=Ge(fn)||Ge(Gu);if(!tt&&!uu)return jm(void 0,Ye,t);E();const Nu=!tt&&vt;let Mr=0,Hu=[];const Ss=[],nc=u.createThis();if(er(Ss,Gu,nc),tt){const T0=ti(fi,m0=>Mf(Wl(m0),tt)),rd=ti(fn,m0=>!Mf(Wl(m0),tt));Qt(Ss,T0,nc),Qt(Ss,rd,nc)}else Qt(Ss,fn,nc);if(tt!=null&&tt.body){Mr=u.copyPrologue(tt.body.statements,Hu,!1,Ye);const T0=cQ(tt.body.statements,Mr);if(T0.length)Ct(Hu,tt.body.statements,Mr,T0,0,Ss,tt);else{for(;Mr=Hu.length?tt.body.multiLine??Hu.length>0:Hu.length>0;return Pt(u.createBlock(Pt(u.createNodeArray(Hu),tt?tt.body.statements:$.members),ud),tt?tt.body:void 0)}function Qt($,tt,vt){for(const fi of tt){if(No(fi)&&!K)continue;const fn=Ti(fi,vt);fn&&$.push(fn)}}function Ti($,tt){const vt=zl($)?Fr($,et,$):Sn($,tt);if(!vt)return;const fi=u.createExpressionStatement(vt);su(fi,$),n_(fi,bs($)&3072),Tc(fi,$);const fn=Wl($);return io(fn)?(As(fi,fn),_V(fi)):As(fi,nE($)),Pv(vt,void 0),A7(vt,void 0),tE(fn)&&n_(fi,3072),fi}function Ui($,tt){const vt=[];for(const fi of $){const fn=zl(fi)?Fr(fi,et,fi):Fr(fi,()=>Sn(fi,tt),void 0);fn&&(bh(fn),su(fn,fi),n_(fn,bs(fi)&3072),As(fn,nE(fi)),Tc(fn,fi),vt.push(fn))}return vt}function Sn($,tt){var vt;const fi=Ae,fn=du($,tt);return fn&&Gc($)&&((vt=fe==null?void 0:fe.data)!=null&&vt.facts)&&(su(fn,$),n_(fn,4),As(fn,Nv($.name)),xe.set(Wl($),fe)),Ae=fi,fn}function du($,tt){const vt=!T;If($,Et)&&($=Vf(t,$));const fi=tE($)?u.getGeneratedPrivateNameForNode($.name):Ms($.name)&&!lE($.name.expression)?u.updateComputedPropertyName($.name,u.getGeneratedNameForNode($.name)):$.name;if(Gc($)&&(Ae=$),ea(fi)&&Yu($)){const uu=Ko(fi);if(uu)return uu.kind==="f"?uu.isStatic?yMt(u,uu.variableName,yt($.initializer,Ye,Wt)):kMt(u,tt,yt($.initializer,Ye,Wt),uu.brandCheckIdentifier):void 0;H.fail("Undeclared private name for property declaration.")}if((ea(fi)||Gc($))&&!$.initializer)return;const fn=Wl($);if(Qu(fn,64))return;let Gu=yt($.initializer,Ye,Wt);if(Mf(fn,fn.parent)&&at(fi)){const uu=u.cloneNode(fi);Gu?(Cf(Gu)&&zV(Gu.expression)&&VP(Gu.expression.left,"___runInitializers")&&R7(Gu.expression.right)&&Of(Gu.expression.right.expression)&&(Gu=Gu.expression.left),Gu=u.inlineExpressions([Gu,uu])):Gu=uu,Yn(fi,3168),As(uu,fn.name),Yn(uu,3072)}else Gu??(Gu=u.createVoidZero());if(vt||ea(fi)){const uu=Fk(u,tt,fi,fi);return n_(uu,1024),u.createAssignment(uu,Gu)}else{const uu=Ms(fi)?fi.expression:at(fi)?u.createStringLiteral(Qr(fi.escapedText)):fi,Nu=u.createPropertyDescriptor({value:Gu,configurable:!0,writable:!0,enumerable:!0});return u.createObjectDefinePropertyCall(tt,uu,Nu)}}function Ou(){ve&1||(ve|=1,t.enableSubstitution(80),Se=[])}function Er(){ve&2||(ve|=2,t.enableSubstitution(110),t.enableEmitNotification(262),t.enableEmitNotification(218),t.enableEmitNotification(176),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(174),t.enableEmitNotification(172),t.enableEmitNotification(167))}function er($,tt,vt){if(!K||!Ge(tt))return;const{weakSetName:fi}=os().data;H.assert(fi,"weakSetName should be set in private identifier environment"),$.push(u.createExpressionStatement(FMt(u,vt,fi)))}function da($){return Ru($)?u.updatePropertyAccessExpression($,u.createVoidZero(),$.name):u.updateElementAccessExpression($,u.createVoidZero(),yt($.argumentExpression,Ye,Wt))}function Wu($,tt){if(Ms($)){const vt=SY($),fi=yt($.expression,Ye,Wt),fn=Pp(fi),Gu=lE(fn);if(!(!!vt||ld(fn)&&sl(fn.left))&&!Gu&&tt){const Nu=u.getGeneratedNameForNode($);return b.getNodeCheckFlags($)&32768?v(Nu):d(Nu),u.createAssignment(Nu,fi)}return Gu||at(fn)?void 0:fi}}function Va(){fe={previous:fe,data:void 0}}function wn(){fe=fe==null?void 0:fe.previous}function Rr(){return H.assert(fe),fe.data??(fe.data={facts:0,classConstructor:void 0,classThis:void 0,superClassReference:void 0})}function os(){return H.assert(fe),fe.privateEnv??(fe.privateEnv=t7e({className:void 0,weakSetName:void 0}))}function wo(){return Ne??(Ne=[])}function Fn($,tt,vt,fi,fn,Gu,uu){ef($)?Tl($,tt,vt,fi,fn,Gu):ko($)?bc($,tt,vt,fi,fn,Gu):hc($)?Qa($,tt,vt,fi,fn,Gu):Im($)?c0($,tt,vt,fi,fn,Gu,uu):jf($)&&Ul($,tt,vt,fi,fn,Gu,uu)}function bc($,tt,vt,fi,fn,Gu,uu){if(fn){const Nu=H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"),Mr=ho(tt);Bk(fi,tt,{kind:"f",isStatic:!0,brandCheckIdentifier:Nu,variableName:Mr,isValid:Gu})}else{const Nu=ho(tt);Bk(fi,tt,{kind:"f",isStatic:!1,brandCheckIdentifier:Nu,isValid:Gu}),wo().push(u.createAssignment(Nu,u.createNewExpression(u.createIdentifier("WeakMap"),void 0,[])))}}function Qa($,tt,vt,fi,fn,Gu,uu){const Nu=ho(tt),Mr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(fi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(fi,tt,{kind:"m",methodName:Nu,brandCheckIdentifier:Mr,isStatic:fn,isValid:Gu})}function c0($,tt,vt,fi,fn,Gu,uu){const Nu=ho(tt,"_get"),Mr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(fi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.getterName?uu.getterName=Nu:Bk(fi,tt,{kind:"a",getterName:Nu,setterName:void 0,brandCheckIdentifier:Mr,isStatic:fn,isValid:Gu})}function Ul($,tt,vt,fi,fn,Gu,uu){const Nu=ho(tt,"_set"),Mr=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(fi.data.weakSetName,"weakSetName should be set in private identifier environment");(uu==null?void 0:uu.kind)==="a"&&uu.isStatic===fn&&!uu.setterName?uu.setterName=Nu:Bk(fi,tt,{kind:"a",getterName:void 0,setterName:Nu,brandCheckIdentifier:Mr,isStatic:fn,isValid:Gu})}function Tl($,tt,vt,fi,fn,Gu,uu){const Nu=ho(tt,"_get"),Mr=ho(tt,"_set"),Hu=fn?H.checkDefined(vt.classThis??vt.classConstructor,"classConstructor should be set in private identifier environment"):H.checkDefined(fi.data.weakSetName,"weakSetName should be set in private identifier environment");Bk(fi,tt,{kind:"a",getterName:Nu,setterName:Mr,brandCheckIdentifier:Hu,isStatic:fn,isValid:Gu})}function hd($,tt,vt){const fi=Rr(),fn=os(),Gu=Xde(fn,tt),uu=Gc($),Nu=!AMt(tt)&&Gu===void 0;vt($,tt,fi,fn,uu,Nu,Gu)}function Cl($,tt,vt){const{className:fi}=os().data,fn=fi?{prefix:"_",node:fi,suffix:"_"}:"_",Gu=typeof $=="object"?u.getGeneratedNameForNode($,24,fn,vt):typeof $=="string"?u.createUniqueName($,16,fn,vt):u.createTempVariable(void 0,!0,fn,vt);return b.getNodeCheckFlags(tt)&32768?v(Gu):d(Gu),Gu}function ho($,tt){const vt=qN($);return Cl((vt==null?void 0:vt.substring(1))??$,$,tt)}function Ko($){const tt=i7e(fe,$);return(tt==null?void 0:tt.kind)==="untransformed"?void 0:tt}function nd($){const tt=u.getGeneratedNameForNode($),vt=Ko($.name);if(!vt)return rn($,Ye,t);let fi=$.expression;return(pj($)||nf($)||!Q2($.expression))&&(fi=u.createTempVariable(d,!0),wo().push(u.createBinaryExpression(fi,64,yt($.expression,Ye,Wt)))),u.createAssignmentTargetWrapper(tt,xi(vt,fi,tt,64))}function Q0($){if(ys($)||vh($))return Oi($);if(T8($))return nd($);if(se&&Ae&&nf($)&&xM(Ae)&&(fe!=null&&fe.data)){const{classConstructor:tt,superClassReference:vt,facts:fi}=fe.data;if(fi&1)return da($);if(tt&&vt){const fn=q0($)?yt($.argumentExpression,Ye,Wt):at($.name)?u.createStringLiteralFromNode($.name):void 0;if(fn){const Gu=u.createTempVariable(void 0);return u.createAssignmentTargetWrapper(Gu,u.createReflectSetCall(vt,fn,Gu,tt))}}}return rn($,Ye,t)}function Wo($){if(If($,Et)&&($=Vf(t,$)),ld($,!0)){const tt=Q0($.left),vt=yt($.right,Ye,Wt);return u.updateBinaryExpression($,tt,$.operatorToken,vt)}return Q0($)}function Nc($){if(Df($.expression)){const tt=Q0($.expression);return u.updateSpreadElement($,tt)}return rn($,Ye,t)}function $p($){if(YO($)){if(rE($))return Nc($);if(!Fd($))return Wo($)}return rn($,Ye,t)}function Pc($){const tt=yt($.name,Ye,wc);if(ld($.initializer,!0)){const vt=Wo($.initializer);return u.updatePropertyAssignment($,tt,vt)}if(Df($.initializer)){const vt=Q0($.initializer);return u.updatePropertyAssignment($,tt,vt)}return rn($,Ye,t)}function Il($){return If($,Et)&&($=Vf(t,$)),rn($,Ye,t)}function hl($){if(Df($.expression)){const tt=Q0($.expression);return u.updateSpreadAssignment($,tt)}return rn($,Ye,t)}function Ga($){return H.assertNode($,ZO),d5($)?hl($):pm($)?Il($):Uc($)?Pc($):rn($,Ye,t)}function Oi($){return vh($)?u.updateArrayLiteralExpression($,kn($.elements,$p,Wt)):u.updateObjectLiteralExpression($,kn($.properties,Ga,Z3))}function fl($,tt,vt){const fi=Wl(tt),fn=xe.get(fi);if(fn){const Gu=fe,uu=He;fe=fn,He=De,De=!zl(fi)||!(Mp(fi)&32),Ce($,tt,vt),De=He,He=uu,fe=Gu;return}switch(tt.kind){case 218:if(Z0(fi)||bs(tt)&524288)break;case 262:case 176:case 177:case 178:case 174:case 172:{const Gu=fe,uu=He;fe=void 0,He=De,De=!1,Ce($,tt,vt),De=He,He=uu,fe=Gu;return}case 167:{const Gu=fe,uu=De;fe=fe==null?void 0:fe.previous,De=He,Ce($,tt,vt),De=uu,fe=Gu;return}}Ce($,tt,vt)}function Zc($,tt){return tt=ae($,tt),$===1?yh(tt):tt}function yh($){switch($.kind){case 80:return X0($);case 110:return sf($)}return $}function sf($){if(ve&2&&(fe!=null&&fe.data)&&!Be.has($)){const{facts:tt,classConstructor:vt,classThis:fi}=fe.data,fn=De?fi??vt:vt;if(fn)return Pt(su(u.cloneNode(fn),$),$);if(tt&1&&M)return u.createParenthesizedExpression(u.createVoidZero())}return $}function X0($){return yc($)||$}function yc($){if(ve&1&&b.getNodeCheckFlags($)&536870912){const tt=b.getReferencedValueDeclaration($);if(tt){const vt=Se[tt.id];if(vt){const fi=u.cloneNode(vt);return As(fi,$),Tc(fi,$),fi}}}}}function yMt(t,u,s){return t.createAssignment(u,t.createObjectLiteralExpression([t.createPropertyAssignment("value",s||t.createVoidZero())]))}function kMt(t,u,s,d){return t.createCallExpression(t.createPropertyAccessExpression(d,"set"),void 0,[u,s||t.createVoidZero()])}function FMt(t,u,s){return t.createCallExpression(t.createPropertyAccessExpression(s,"add"),void 0,[u])}function AMt(t){return!Uy(t)&&t.escapedText==="#constructor"}function SMt(t){return ea(t.left)&&t.operatorToken.kind===103}function BMt(t){return ko(t)&&Gc(t)}function xM(t){return zl(t)||BMt(t)}var wMt=o({"src/compiler/transformers/classFields.ts"(){Bo()}});function h7e(t){const{factory:u,hoistVariableDeclaration:s}=t,d=t.getEmitResolver(),f=t.getCompilerOptions(),p=js(f),E=Q4(f,"strictNullChecks");let v,b;return{serializeTypeNode:(Ne,pe)=>B(Ne,J,pe),serializeTypeOfNode:(Ne,pe)=>B(Ne,T,pe),serializeParameterTypesOfNode:(Ne,pe,fe)=>B(Ne,M,pe,fe),serializeReturnTypeOfNode:(Ne,pe)=>B(Ne,j,pe)};function B(Ne,pe,fe,xe){const Be=v,We=b;v=Ne.currentLexicalScope,b=Ne.currentNameScope;const Ae=xe===void 0?pe(fe):pe(fe,xe);return v=Be,b=We,Ae}function k(Ne){const pe=d.getAllAccessorDeclarations(Ne);return pe.setAccessor&&Aye(pe.setAccessor)||pe.getAccessor&&Z4(pe.getAccessor)}function T(Ne){switch(Ne.kind){case 172:case 169:return J(Ne.type);case 178:case 177:return J(k(Ne));case 263:case 231:case 174:return u.createIdentifier("Function");default:return u.createVoidZero()}}function M(Ne,pe){const fe=gr(Ne)?e3(Ne):Co(Ne)&&W4(Ne.body)?Ne:void 0,xe=[];if(fe){const Be=z(fe,pe),We=Be.length;for(let Ae=0;AeBe.parent&&FB(Be.parent)&&(Be.parent.trueType===Be||Be.parent.falseType===Be)))return u.createIdentifier("Object");const fe=ae(Ne.typeName),xe=u.createTempVariable(s);return u.createConditionalExpression(u.createTypeCheck(u.createAssignment(xe,fe),"function"),void 0,xe,void 0,u.createIdentifier("Object"));case 1:return Ce(Ne.typeName);case 2:return u.createVoidZero();case 4:return Se("BigInt",7);case 6:return u.createIdentifier("Boolean");case 3:return u.createIdentifier("Number");case 5:return u.createIdentifier("String");case 7:return u.createIdentifier("Array");case 8:return Se("Symbol",2);case 10:return u.createIdentifier("Function");case 9:return u.createIdentifier("Promise");case 11:return u.createIdentifier("Object");default:return H.assertNever(pe)}}function ge(Ne,pe){return u.createLogicalAnd(u.createStrictInequality(u.createTypeOfExpression(Ne),u.createStringLiteral("undefined")),pe)}function ae(Ne){if(Ne.kind===80){const xe=Ce(Ne);return ge(xe,xe)}if(Ne.left.kind===80)return ge(Ce(Ne.left),Ce(Ne));const pe=ae(Ne.left),fe=u.createTempVariable(s);return u.createLogicalAnd(u.createLogicalAnd(pe.left,u.createStrictInequality(u.createAssignment(fe,pe.right),u.createVoidZero())),u.createPropertyAccessExpression(fe,Ne.right))}function Ce(Ne){switch(Ne.kind){case 80:const pe=ks(Pt(o_.cloneNode(Ne),Ne),Ne.parent);return pe.original=void 0,ks(pe,Za(v)),pe;case 166:return ne(Ne)}}function ne(Ne){return u.createPropertyAccessExpression(Ce(Ne.left),Ne.right)}function ve(Ne){return u.createConditionalExpression(u.createTypeCheck(u.createIdentifier(Ne),"function"),void 0,u.createIdentifier(Ne),void 0,u.createIdentifier("Object"))}function Se(Ne,pe){return pjV(Cn)||E1(Cn)?void 0:Cn,ll),Jn=nE(ft),an=Gt(ft),Pi=E<2?u.getInternalName(ft,!1,!0):u.getLocalName(ft,!1,!0),Fi=kn(ft.heritageClauses,T,mm);let Yu=kn(ft.members,T,Yd),oa=[];({members:Yu,decorationStatements:oa}=K(ft,Yu));const Fr=E>=9&&!!an&&Ge(Yu,Cn=>ko(Cn)&&Qu(Cn,256)||zl(Cn));Fr&&(Yu=Pt(u.createNodeArray([u.createClassStaticBlockDeclaration(u.createBlock([u.createExpressionStatement(u.createAssignment(an,u.createThis()))])),...Yu]),Yu));const wa=u.createClassExpression(xn,Ut&&sl(Ut)?void 0:Ut,void 0,Fi,Yu);su(wa,ft),Pt(wa,Jn);const bt=an&&!Fr?u.createAssignment(an,wa):wa,jn=u.createVariableDeclaration(Pi,void 0,void 0,bt);su(jn,ft);const Ln=u.createVariableDeclarationList([jn],1),Ai=u.createVariableStatement(void 0,Ln);su(Ai,ft),Pt(Ai,Jn),Tc(Ai,ft);const Dn=[Ai];if(yn(Dn,oa),He(Dn,ft),Ni)if(Vi){const Cn=u.createExportDefault(Pi);Dn.push(Cn)}else{const Cn=u.createExternalModuleExport(u.getDeclarationName(ft));Dn.push(Cn)}return Dn}function se(ft){return u.updateClassExpression(ft,kn(ft.modifiers,k,Xo),ft.name,void 0,kn(ft.heritageClauses,T,mm),kn(ft.members,T,Yd))}function ge(ft){return u.updateConstructorDeclaration(ft,kn(ft.modifiers,k,Xo),kn(ft.parameters,T,io),yt(ft.body,T,go))}function ae(ft,Ut){return ft!==Ut&&(Tc(ft,Ut),As(ft,nE(Ut))),ft}function Ce(ft){return ae(u.updateMethodDeclaration(ft,kn(ft.modifiers,k,Xo),ft.asteriskToken,H.checkDefined(yt(ft.name,T,wc)),void 0,void 0,kn(ft.parameters,T,io),void 0,yt(ft.body,T,go)),ft)}function ne(ft){return ae(u.updateGetAccessorDeclaration(ft,kn(ft.modifiers,k,Xo),H.checkDefined(yt(ft.name,T,wc)),kn(ft.parameters,T,io),void 0,yt(ft.body,T,go)),ft)}function ve(ft){return ae(u.updateSetAccessorDeclaration(ft,kn(ft.modifiers,k,Xo),H.checkDefined(yt(ft.name,T,wc)),kn(ft.parameters,T,io),yt(ft.body,T,go)),ft)}function Se(ft){if(!(ft.flags&33554432||Qu(ft,128)))return ae(u.updatePropertyDeclaration(ft,kn(ft.modifiers,k,Xo),H.checkDefined(yt(ft.name,T,wc)),void 0,void 0,yt(ft.initializer,T,Wt)),ft)}function Ne(ft){const Ut=u.updateParameterDeclaration(ft,GFe(u,ft.modifiers),ft.dotDotDotToken,H.checkDefined(yt(ft.name,T,qy)),void 0,void 0,yt(ft.initializer,T,Wt));return Ut!==ft&&(Tc(Ut,ft),Pt(Ut,nE(ft)),As(Ut,nE(ft)),Yn(Ut.name,64)),Ut}function pe(ft){return VP(ft.expression,"___metadata")}function fe(ft){if(!ft)return;const{false:Ut,true:Ni}=QCe(ft.decorators,pe),Vi=[];return yn(Vi,Vt(Ut,mt)),yn(Vi,Vu(ft.parameters,Ye)),yn(Vi,Vt(Ni,mt)),Vi}function xe(ft,Ut,Ni){yn(ft,Vt(Ae(Ut,Ni),Vi=>u.createExpressionStatement(Vi)))}function Be(ft,Ut,Ni){return Ej(!0,ft,Ni)&&Ut===No(ft)}function We(ft,Ut){return ti(ft.members,Ni=>Be(Ni,Ut,ft))}function Ae(ft,Ut){const Ni=We(ft,Ut);let Vi;for(const xn of Ni)Vi=Di(Vi,De(ft,xn));return Vi}function De(ft,Ut){const Ni=hQ(Ut,ft,!0),Vi=fe(Ni);if(!Vi)return;const xn=Ie(ft,Ut),Jn=je(Ut,!Qu(Ut,128)),an=E>0?ko(Ut)&&!tE(Ut)?u.createVoidZero():u.createNull():void 0,Pi=s().createDecorateHelper(Vi,xn,Jn,an);return Yn(Pi,3072),As(Pi,nE(Ut)),Pi}function He(ft,Ut){const Ni=Je(Ut);Ni&&ft.push(su(u.createExpressionStatement(Ni),Ut))}function Je(ft){const Ut=Qde(ft),Ni=fe(Ut);if(!Ni)return;const Vi=b&&b[z1(ft)],xn=E<2?u.getInternalName(ft,!1,!0):u.getDeclarationName(ft,!1,!0),Jn=s().createDecorateHelper(Ni,xn),an=u.createAssignment(xn,Vi?u.createAssignment(Vi,Jn):Jn);return Yn(an,3072),As(an,nE(ft)),an}function mt(ft){return H.checkDefined(yt(ft.expression,T,Wt))}function Ye(ft,Ut){let Ni;if(ft){Ni=[];for(const Vi of ft){const xn=s().createParamHelper(mt(Vi),Ut);Pt(xn,Vi.expression),Yn(xn,3072),Ni.push(xn)}}return Ni}function je(ft,Ut){const Ni=ft.name;return ea(Ni)?u.createIdentifier(""):Ms(Ni)?Ut&&!lE(Ni.expression)?u.getGeneratedNameForNode(Ni):Ni.expression:at(Ni)?u.createStringLiteral(fu(Ni)):u.cloneNode(Ni)}function Ke(){b||(t.enableSubstitution(80),b=[])}function Gt(ft){if(f.getNodeCheckFlags(ft)&262144){Ke();const Ut=u.createUniqueName(ft.name&&!sl(ft.name)?fu(ft.name):"default");return b[z1(ft)]=Ut,d(Ut),Ut}}function Yt(ft){return u.createPropertyAccessExpression(u.getDeclarationName(ft),"prototype")}function Ie(ft,Ut){return No(Ut)?u.getDeclarationName(ft):Yt(ft)}function st(ft,Ut){return Ut=v(ft,Ut),ft===1?Bt(Ut):Ut}function Bt(ft){switch(ft.kind){case 80:return It(ft)}return ft}function It(ft){return ei(ft)??ft}function ei(ft){if(b&&f.getNodeCheckFlags(ft)&536870912){const Ut=f.getReferencedValueDeclaration(ft);if(Ut){const Ni=b[Ut.id];if(Ni){const Vi=u.cloneNode(Ni);return As(Vi,ft),Tc(Vi,ft),Vi}}}}}var LMt=o({"src/compiler/transformers/legacyDecorators.ts"(){Bo()}});function m7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=js(t.getCompilerOptions());let v,b,B,k,T,M;return Wp(t,z);function z(te){v=void 0,M=!1;const we=rn(te,ve,t);return iD(we,t.readEmitHelpers()),M&&(F7(we,32),M=!1),we}function j(){switch(b=void 0,B=void 0,k=void 0,v==null?void 0:v.kind){case"class":b=v.classInfo;break;case"class-element":b=v.next.classInfo,B=v.classThis,k=v.classSuper;break;case"name":const te=v.next.next.next;(te==null?void 0:te.kind)==="class-element"&&(b=te.next.classInfo,B=te.classThis,k=te.classSuper);break}}function J(te){v={kind:"class",next:v,classInfo:te,savedPendingExpressions:T},T=void 0,j()}function K(){H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),T=v.savedPendingExpressions,v=v.next,j()}function Y(te){var we,de;H.assert((v==null?void 0:v.kind)==="class","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"class-element",next:v},(zl(te)||ko(te)&&Gc(te))&&(v.classThis=(we=v.next.classInfo)==null?void 0:we.classThis,v.classSuper=(de=v.next.classInfo)==null?void 0:de.classSuper),j()}function oe(){var te;H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),H.assert(((te=v.next)==null?void 0:te.kind)==="class","Incorrect value for top.next.kind.",()=>{var we;return`Expected top.next.kind to be 'class' but got '${(we=v.next)==null?void 0:we.kind}' instead.`}),v=v.next,j()}function se(){H.assert((v==null?void 0:v.kind)==="class-element","Incorrect value for top.kind.",()=>`Expected top.kind to be 'class-element' but got '${v==null?void 0:v.kind}' instead.`),v={kind:"name",next:v},j()}function ge(){H.assert((v==null?void 0:v.kind)==="name","Incorrect value for top.kind.",()=>`Expected top.kind to be 'name' but got '${v==null?void 0:v.kind}' instead.`),v=v.next,j()}function ae(){(v==null?void 0:v.kind)==="other"?(H.assert(!T),v.depth++):(v={kind:"other",next:v,depth:0,savedPendingExpressions:T},T=void 0,j())}function Ce(){H.assert((v==null?void 0:v.kind)==="other","Incorrect value for top.kind.",()=>`Expected top.kind to be 'other' but got '${v==null?void 0:v.kind}' instead.`),v.depth>0?(H.assert(!T),v.depth--):(T=v.savedPendingExpressions,v=v.next,j())}function ne(te){return!!(te.transformFlags&33554432)||!!B&&!!(te.transformFlags&16384)||!!B&&!!k&&!!(te.transformFlags&134217728)}function ve(te){if(!ne(te))return te;switch(te.kind){case 170:return H.fail("Use `modifierVisitor` instead.");case 263:return Je(te);case 231:return mt(te);case 176:case 172:case 175:return H.fail("Not supported outside of a class. Use 'classElementVisitor' instead.");case 169:return Jn(te);case 226:return oa(te,!1);case 303:return Ai(te);case 260:return Dn(te);case 208:return Cn(te);case 277:return Mt(te);case 110:return ft(te);case 248:return Fi(te);case 244:return Yu(te);case 361:return wa(te,!1);case 217:return qt(te,!1);case 360:return Xt(te,!1);case 213:return Ut(te);case 215:return Ni(te);case 224:case 225:return Fr(te,!1);case 211:return Vi(te);case 212:return xn(te);case 167:return Ln(te);case 174:case 178:case 177:case 218:case 262:{ae();const we=rn(te,Se,t);return Ce(),we}default:return rn(te,Se,t)}}function Se(te){switch(te.kind){case 170:return;default:return ve(te)}}function Ne(te){switch(te.kind){case 170:return;default:return te}}function pe(te){switch(te.kind){case 176:return Ke(te);case 174:return Ie(te);case 177:return st(te);case 178:return Bt(te);case 172:return ei(te);case 175:return It(te);default:return ve(te)}}function fe(te){switch(te.kind){case 224:case 225:return Fr(te,!0);case 226:return oa(te,!0);case 361:return wa(te,!0);case 217:return qt(te,!0);default:return ve(te)}}function xe(te){let we=te.name&&at(te.name)&&!sl(te.name)?fu(te.name):te.name&&ea(te.name)&&!sl(te.name)?fu(te.name).slice(1):te.name&&rs(te.name)&&Nm(te.name.text,99)?te.name.text:gr(te)?"class":"member";return Lx(te)&&(we=`get_${we}`),e5(te)&&(we=`set_${we}`),te.name&&ea(te.name)&&(we=`private_${we}`),No(te)&&(we=`static_${we}`),"_"+we}function Be(te,we){return u.createUniqueName(`${xe(te)}_${we}`,24)}function We(te,we){return u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(te,void 0,void 0,we)],1))}function Ae(te){const we=u.createUniqueName("_metadata",48);let de,Oe,X=!1,it=!1,Ct=!1;for(const ct of te.members)if(lbe(ct)&&Ej(!1,ct,te)&&(Gc(ct)?Oe??(Oe=u.createUniqueName("_staticExtraInitializers",48)):de??(de=u.createUniqueName("_instanceExtraInitializers",48))),zl(ct)?X7(ct)||(X=!0):ko(ct)&&(Gc(ct)?X||(X=!!ct.initializer||c4(ct)):it||(it=!x0e(ct))),(Eh(ct)||ef(ct))&&Gc(ct)&&(Ct=!0),Oe&&de&&X&&it&&Ct)break;return{class:te,metadataReference:we,instanceExtraInitializersName:de,staticExtraInitializersName:Oe,hasStaticInitializers:X,hasNonAmbientInstanceFields:it,hasStaticPrivateClassElements:Ct}}function De(te){d(),!n1e(te)&&t5(!1,te)&&(te=mQ(t,te,u.createStringLiteral("")));const we=u.getLocalName(te,!1,!1,!0),de=Ae(te),Oe=[];let X,it,Ct,ct,Qt=!1;const Ti=et(Qde(te));if(Ti){de.classDecoratorsName=u.createUniqueName("_classDecorators",48),de.classDescriptorName=u.createUniqueName("_classDescriptor",48),de.classExtraInitializersName=u.createUniqueName("_classExtraInitializers",48);const wn=Ge(te.members,Rr=>(Eh(Rr)||ef(Rr))&&Gc(Rr));de.classThis=u.createUniqueName("_classThis",wn?24:48),Oe.push(We(de.classDecoratorsName,u.createArrayLiteralExpression(Ti)),We(de.classDescriptorName),We(de.classExtraInitializersName,u.createArrayLiteralExpression()),We(de.classThis)),de.hasStaticPrivateClassElements&&(Qt=!0,M=!0)}const Ui=zj(te.heritageClauses,96),Sn=Ui&&Ki(Ui.types),du=Sn&&yt(Sn.expression,ve,Wt);if(du){de.classSuper=u.createUniqueName("_classSuper",48);const wn=vc(du),Rr=e1(wn)&&!wn.name||w0(wn)&&!wn.name||Z0(wn)?u.createComma(u.createNumericLiteral(0),du):du;Oe.push(We(de.classSuper,Rr));const os=u.updateExpressionWithTypeArguments(Sn,de.classSuper,void 0),wo=u.updateHeritageClause(Ui,[os]);ct=u.createNodeArray([wo])}const Ou=de.classThis??u.createThis();J(de),X=Di(X,Qi(de.metadataReference,de.classSuper));let Er=kn(te.members,pe,Yd);if(T){let wn;for(let Rr of T){Rr=yt(Rr,function wo(Fn){if(!(Fn.transformFlags&16384))return Fn;switch(Fn.kind){case 110:return wn||(wn=u.createUniqueName("_outerThis",16),Oe.unshift(We(wn,u.createThis()))),wn;default:return rn(Fn,wo,t)}},Wt);const os=u.createExpressionStatement(Rr);X=Di(X,os)}T=void 0}if(K(),de.instanceExtraInitializersName&&!e3(te)){const wn=Ye(te,de);if(wn){const Rr=Xg(te),os=!!(Rr&&vc(Rr.expression).kind!==106),wo=[];if(os){const bc=u.createSpreadElement(u.createIdentifier("arguments")),Qa=u.createCallExpression(u.createSuper(),void 0,[bc]);wo.push(u.createExpressionStatement(Qa))}yn(wo,wn);const Fn=u.createBlock(wo,!0);Ct=u.createConstructorDeclaration(void 0,[],Fn)}}if(de.staticExtraInitializersName&&Oe.push(We(de.staticExtraInitializersName,u.createArrayLiteralExpression())),de.instanceExtraInitializersName&&Oe.push(We(de.instanceExtraInitializersName,u.createArrayLiteralExpression())),de.memberInfos&&f1(de.memberInfos,(wn,Rr)=>{No(Rr)&&(Oe.push(We(wn.memberDecoratorsName)),wn.memberInitializersName&&Oe.push(We(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&Oe.push(We(wn.memberDescriptorName)))}),de.memberInfos&&f1(de.memberInfos,(wn,Rr)=>{No(Rr)||(Oe.push(We(wn.memberDecoratorsName)),wn.memberInitializersName&&Oe.push(We(wn.memberInitializersName,u.createArrayLiteralExpression())),wn.memberDescriptorName&&Oe.push(We(wn.memberDescriptorName)))}),X=yn(X,de.staticNonFieldDecorationStatements),X=yn(X,de.nonStaticNonFieldDecorationStatements),X=yn(X,de.staticFieldDecorationStatements),X=yn(X,de.nonStaticFieldDecorationStatements),de.classDescriptorName&&de.classDecoratorsName&&de.classExtraInitializersName&&de.classThis){X??(X=[]);const wn=u.createPropertyAssignment("value",Ou),Rr=u.createObjectLiteralExpression([wn]),os=u.createAssignment(de.classDescriptorName,Rr),wo=u.createPropertyAccessExpression(Ou,"name"),Fn=s().createESDecorateHelper(u.createNull(),os,de.classDecoratorsName,{kind:"class",name:wo,metadata:de.metadataReference},u.createNull(),de.classExtraInitializersName),bc=u.createExpressionStatement(Fn);As(bc,o5(te)),X.push(bc);const Qa=u.createPropertyAccessExpression(de.classDescriptorName,"value"),c0=u.createAssignment(de.classThis,Qa),Ul=u.createAssignment(we,c0);X.push(u.createExpressionStatement(Ul))}if(X.push(on(Ou,de.metadataReference)),de.staticExtraInitializersName){const wn=s().createRunInitializersHelper(Ou,de.staticExtraInitializersName),Rr=u.createExpressionStatement(wn);As(Rr,te.name??o5(te)),X=Di(X,Rr)}if(de.classExtraInitializersName){const wn=s().createRunInitializersHelper(Ou,de.classExtraInitializersName),Rr=u.createExpressionStatement(wn);As(Rr,te.name??o5(te)),it=Di(it,Rr)}X&&it&&!de.hasStaticInitializers&&(yn(X,it),it=void 0);const er=X&&u.createClassStaticBlockDeclaration(u.createBlock(X,!0));er&&Qt&&DV(er,32);const da=it&&u.createClassStaticBlockDeclaration(u.createBlock(it,!0));if(er||Ct||da){const wn=[],Rr=Er.findIndex(X7);er?(yn(wn,Er,0,Rr+1),wn.push(er),yn(wn,Er,Rr+1)):yn(wn,Er),Ct&&wn.push(Ct),da&&wn.push(da),Er=Pt(u.createNodeArray(wn),Er)}const Wu=f();let Va;if(Ti){Va=u.createClassExpression(void 0,void 0,void 0,ct,Er),de.classThis&&(Va=a7e(u,Va,de.classThis));const wn=u.createVariableDeclaration(we,void 0,void 0,Va),Rr=u.createVariableDeclarationList([wn]),os=de.classThis?u.createAssignment(we,de.classThis):we;Oe.push(u.createVariableStatement(void 0,Rr),u.createReturnStatement(os))}else Va=u.createClassExpression(void 0,te.name,void 0,ct,Er),Oe.push(u.createReturnStatement(Va));if(Qt){F7(Va,32);for(const wn of Va.members)(Eh(wn)||ef(wn))&&Gc(wn)&&F7(wn,32)}return su(Va,te),u.createImmediatelyInvokedArrowFunction(u.mergeLexicalEnvironment(Oe,Wu))}function He(te){return t5(!1,te)||XN(!1,te)}function Je(te){if(He(te)){const we=[],de=Wl(te,gr)??te,Oe=de.name?u.createStringLiteralFromNode(de.name):u.createStringLiteral("default"),X=Qu(te,32),it=Qu(te,2048);if(te.name||(te=mQ(t,te,Oe)),X&&it){const Ct=De(te);if(te.name){const ct=u.createVariableDeclaration(u.getLocalName(te),void 0,void 0,Ct);su(ct,te);const Qt=u.createVariableDeclarationList([ct],1),Ti=u.createVariableStatement(void 0,Qt);we.push(Ti);const Ui=u.createExportDefault(u.getDeclarationName(te));su(Ui,te),Tc(Ui,uE(te)),As(Ui,o5(te)),we.push(Ui)}else{const ct=u.createExportDefault(Ct);su(ct,te),Tc(ct,uE(te)),As(ct,o5(te)),we.push(ct)}}else{H.assertIsDefined(te.name,"A class declaration that is not a default export must have a name.");const Ct=De(te),ct=X?Ou=>L7(Ou)?void 0:Ne(Ou):Ne,Qt=kn(te.modifiers,ct,Xo),Ti=u.getLocalName(te,!1,!0),Ui=u.createVariableDeclaration(Ti,void 0,void 0,Ct);su(Ui,te);const Sn=u.createVariableDeclarationList([Ui],1),du=u.createVariableStatement(Qt,Sn);if(su(du,te),Tc(du,uE(te)),we.push(du),X){const Ou=u.createExternalModuleExport(Ti);su(Ou,te),we.push(Ou)}}return B0(we)}else{const we=kn(te.modifiers,Ne,Xo),de=kn(te.heritageClauses,ve,mm);J(void 0);const Oe=kn(te.members,pe,Yd);return K(),u.updateClassDeclaration(te,we,te.name,void 0,de,Oe)}}function mt(te){if(He(te)){const we=De(te);return su(we,te),we}else{const we=kn(te.modifiers,Ne,Xo),de=kn(te.heritageClauses,ve,mm);J(void 0);const Oe=kn(te.members,pe,Yd);return K(),u.updateClassExpression(te,we,te.name,void 0,de,Oe)}}function Ye(te,we){if(we.instanceExtraInitializersName&&!we.hasNonAmbientInstanceFields){const de=[];return de.push(u.createExpressionStatement(s().createRunInitializersHelper(u.createThis(),we.instanceExtraInitializersName))),de}}function je(te,we,de,Oe,X,it){const Ct=Oe[X],ct=we[Ct];if(yn(te,kn(we,ve,ua,de,Ct-de)),Ck(ct)){const Qt=[];je(Qt,ct.tryBlock.statements,0,Oe,X+1,it);const Ti=u.createNodeArray(Qt);Pt(Ti,ct.tryBlock.statements),te.push(u.updateTryStatement(ct,u.updateBlock(ct.tryBlock,Qt),yt(ct.catchClause,ve,J2),yt(ct.finallyBlock,ve,go)))}else yn(te,kn(we,ve,ua,Ct,1)),yn(te,it);yn(te,kn(we,ve,ua,Ct+1))}function Ke(te){Y(te);const we=kn(te.modifiers,Ne,Xo),de=kn(te.parameters,ve,io);let Oe;if(te.body&&b){const X=Ye(b.class,b);if(X){const it=[],Ct=u.copyPrologue(te.body.statements,it,!1,ve),ct=cQ(te.body.statements,Ct);ct.length>0?je(it,te.body.statements,Ct,ct,0,X):(yn(it,X),yn(it,kn(te.body.statements,ve,ua))),Oe=u.createBlock(it,!0),su(Oe,te.body),Pt(Oe,te.body)}}return Oe??(Oe=yt(te.body,ve,go)),oe(),u.updateConstructorDeclaration(te,we,de,Oe)}function Gt(te,we){return te!==we&&(Tc(te,we),As(te,o5(we))),te}function Yt(te,we,de){let Oe,X,it,Ct,ct;if(!we){const Ui=kn(te.modifiers,Ne,Xo);return se(),X=jn(te.name),ge(),{modifiers:Ui,referencedName:Oe,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}const Qt=et(hQ(te,we.class,!1)),Ti=kn(te.modifiers,Ne,Xo);if(Qt){const Ui=Be(te,"decorators"),Sn=u.createArrayLiteralExpression(Qt),du=u.createAssignment(Ui,Sn),Ou={memberDecoratorsName:Ui};we.memberInfos??(we.memberInfos=new Map),we.memberInfos.set(te,Ou),T??(T=[]),T.push(du);const Er=N8(te)||ef(te)?No(te)?we.staticNonFieldDecorationStatements??(we.staticNonFieldDecorationStatements=[]):we.nonStaticNonFieldDecorationStatements??(we.nonStaticNonFieldDecorationStatements=[]):ko(te)&&!ef(te)?No(te)?we.staticFieldDecorationStatements??(we.staticFieldDecorationStatements=[]):we.nonStaticFieldDecorationStatements??(we.nonStaticFieldDecorationStatements=[]):H.fail(),er=Im(te)?"getter":jf(te)?"setter":hc(te)?"method":ef(te)?"accessor":ko(te)?"field":H.fail();let da;if(at(te.name)||ea(te.name))da={computed:!1,name:te.name};else if(eE(te.name))da={computed:!0,name:u.createStringLiteralFromNode(te.name)};else{const wn=te.name.expression;eE(wn)&&!at(wn)?da={computed:!0,name:u.createStringLiteralFromNode(wn)}:(se(),{referencedName:Oe,name:X}=bt(te.name),da={computed:!0,name:Oe},ge())}const Wu={kind:er,name:da,static:No(te),private:ea(te.name),access:{get:ko(te)||Im(te)||hc(te),set:ko(te)||jf(te)},metadata:we.metadataReference},Va=No(te)?we.staticExtraInitializersName??(we.staticExtraInitializersName=u.createUniqueName("_staticExtraInitializers",48)):we.instanceExtraInitializersName??(we.instanceExtraInitializersName=u.createUniqueName("_instanceExtraInitializers",48));if(N8(te)){let wn;Eh(te)&&de&&(wn=de(te,kn(Ti,wo=>ar(wo,HP),Xo)),Ou.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Rr=s().createESDecorateHelper(u.createThis(),wn??u.createNull(),Ui,Wu,u.createNull(),Va),os=u.createExpressionStatement(Rr);As(os,o5(te)),Er.push(os)}else if(ko(te)){it=Ou.memberInitializersName??(Ou.memberInitializersName=Be(te,"initializers")),No(te)&&(Ct=we.classThis);let wn;Eh(te)&&tE(te)&&de&&(wn=de(te,void 0),Ou.memberDescriptorName=ct=Be(te,"descriptor"),wn=u.createAssignment(ct,wn));const Rr=s().createESDecorateHelper(ef(te)?u.createThis():u.createNull(),wn??u.createNull(),Ui,Wu,it,Va),os=u.createExpressionStatement(Rr);As(os,o5(te)),Er.push(os)}}return X===void 0&&(se(),X=jn(te.name),ge()),!Ge(Ti)&&(hc(te)||ko(te))&&Yn(X,1024),{modifiers:Ti,referencedName:Oe,name:X,initializersName:it,descriptorName:ct,thisArg:Ct}}function Ie(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,me);if(Oe)return oe(),Gt(Ot(we,de,Oe),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,go);return oe(),Gt(u.updateMethodDeclaration(te,we,te.asteriskToken,de,void 0,void 0,X,void 0,it),te)}}function st(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,ni);if(Oe)return oe(),Gt(Ei(we,de,Oe),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,go);return oe(),Gt(u.updateGetAccessorDeclaration(te,we,de,X,void 0,it),te)}}function Bt(te){Y(te);const{modifiers:we,name:de,descriptorName:Oe}=Yt(te,b,xi);if(Oe)return oe(),Gt($i(we,de,Oe),te);{const X=kn(te.parameters,ve,io),it=yt(te.body,ve,go);return oe(),Gt(u.updateSetAccessorDeclaration(te,we,de,X,it),te)}}function It(te){Y(te);let we;if(X7(te))we=rn(te,ve,t);else if(_M(te)){const de=B;B=void 0,we=rn(te,ve,t),B=de}else b&&(b.hasStaticInitializers=!0),we=rn(te,ve,t);return oe(),we}function ei(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),Y(te),H.assert(!x0e(te),"Not yet implemented.");const{modifiers:we,name:de,initializersName:Oe,descriptorName:X,thisArg:it}=Yt(te,b,tE(te)?pt:void 0);d();let Ct=yt(te.initializer,ve,Wt);Oe&&(Ct=s().createRunInitializersHelper(it??u.createThis(),Oe,Ct??u.createVoidZero())),!No(te)&&(b!=null&&b.instanceExtraInitializersName)&&!(b!=null&&b.hasInjectedInstanceInitializers)&&(b.hasInjectedInstanceInitializers=!0,Ct??(Ct=u.createVoidZero()),Ct=u.createParenthesizedExpression(u.createComma(s().createRunInitializersHelper(u.createThis(),b.instanceExtraInitializersName),Ct))),No(te)&&b&&Ct&&(b.hasStaticInitializers=!0);const ct=f();if(Ge(ct)&&(Ct=u.createImmediatelyInvokedArrowFunction([...ct,u.createReturnStatement(Ct)])),oe(),tE(te)&&X){const Qt=uE(te),Ti=Nv(te),Ui=te.name;let Sn=Ui,du=Ui;if(Ms(Ui)&&!lE(Ui.expression)){const Wu=SY(Ui);if(Wu)Sn=u.updateComputedPropertyName(Ui,yt(Ui.expression,ve,Wt)),du=u.updateComputedPropertyName(Ui,Wu.left);else{const Va=u.createTempVariable(p);As(Va,Ui.expression);const wn=yt(Ui.expression,ve,Wt),Rr=u.createAssignment(Va,wn);As(Rr,Ui.expression),Sn=u.updateComputedPropertyName(Ui,Rr),du=u.updateComputedPropertyName(Ui,Va)}}const Ou=kn(we,Wu=>Wu.kind!==129?Wu:void 0,Xo),Er=Jce(u,te,Ou,Ct);su(Er,te),Yn(Er,3072),As(Er,Ti),As(Er.name,te.name);const er=Ei(Ou,Sn,X);su(er,te),Tc(er,Qt),As(er,Ti);const da=$i(Ou,du,X);return su(da,te),Yn(da,3072),As(da,Ti),[Er,er,da]}return Gt(u.updatePropertyDeclaration(te,we,de,void 0,void 0,Ct),te)}function ft(te){return B??te}function Ut(te){if(nf(te.expression)&&B){const we=yt(te.expression,ve,Wt),de=kn(te.arguments,ve,Wt),Oe=u.createFunctionCallCall(we,B,de);return su(Oe,te),Pt(Oe,te),Oe}return rn(te,ve,t)}function Ni(te){if(nf(te.tag)&&B){const we=yt(te.tag,ve,Wt),de=u.createFunctionBindCall(we,B,[]);su(de,te),Pt(de,te);const Oe=yt(te.template,ve,P8);return u.updateTaggedTemplateExpression(te,de,void 0,Oe)}return rn(te,ve,t)}function Vi(te){if(nf(te)&&at(te.name)&&B&&k){const we=u.createStringLiteralFromNode(te.name),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function xn(te){if(nf(te)&&B&&k){const we=yt(te.argumentExpression,ve,Wt),de=u.createReflectGetCall(k,we,B);return su(de,te.expression),Pt(de,te.expression),de}return rn(te,ve,t)}function Jn(te){If(te,an)&&(te=Vf(t,te,Pi(te.initializer)));const we=u.updateParameterDeclaration(te,void 0,te.dotDotDotToken,yt(te.name,ve,qy),void 0,void 0,yt(te.initializer,ve,Wt));return we!==te&&(Tc(we,te),Pt(we,nE(te)),As(we,nE(te)),Yn(we.name,64)),we}function an(te){return e1(te)&&!te.name&&He(te)}function Pi(te){const we=vc(te);return e1(we)&&!we.name&&!t5(!1,we)}function Fi(te){return u.updateForStatement(te,yt(te.initializer,fe,l4),yt(te.condition,ve,Wt),yt(te.incrementor,fe,Wt),Rh(te.statement,ve,t))}function Yu(te){return rn(te,fe,t)}function oa(te,we){if(r5(te)){const de=_t(te.left),Oe=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,Oe)}if(ld(te)){if(If(te,an))return te=Vf(t,te,Pi(te.right)),rn(te,ve,t);if(nf(te.left)&&B&&k){let de=q0(te.left)?yt(te.left.argumentExpression,ve,Wt):at(te.left.name)?u.createStringLiteralFromNode(te.left.name):void 0;if(de){let Oe=yt(te.right,ve,Wt);if(pM(te.operatorToken.kind)){let it=de;lE(de)||(it=u.createTempVariable(p),de=u.createAssignment(it,de));const Ct=u.createReflectGetCall(k,it,B);su(Ct,te.left),Pt(Ct,te.left),Oe=u.createBinaryExpression(Ct,gM(te.operatorToken.kind),Oe),Pt(Oe,te)}const X=we?void 0:u.createTempVariable(p);return X&&(Oe=u.createAssignment(X,Oe),Pt(X,te)),Oe=u.createReflectSetCall(k,de,Oe,B),su(Oe,te),Pt(Oe,te),X&&(Oe=u.createComma(Oe,X),Pt(Oe,te)),Oe}}}if(te.operatorToken.kind===28){const de=yt(te.left,fe,Wt),Oe=yt(te.right,we?fe:ve,Wt);return u.updateBinaryExpression(te,de,te.operatorToken,Oe)}return rn(te,ve,t)}function Fr(te,we){if(te.operator===46||te.operator===47){const de=l0(te.operand);if(nf(de)&&B&&k){let Oe=q0(de)?yt(de.argumentExpression,ve,Wt):at(de.name)?u.createStringLiteralFromNode(de.name):void 0;if(Oe){let X=Oe;lE(Oe)||(X=u.createTempVariable(p),Oe=u.createAssignment(X,Oe));let it=u.createReflectGetCall(k,X,B);su(it,te),Pt(it,te);const Ct=we?void 0:u.createTempVariable(p);return it=vY(u,te,it,p,Ct),it=u.createReflectSetCall(k,Oe,it,B),su(it,te),Pt(it,te),Ct&&(it=u.createComma(it,Ct),Pt(it,te)),it}}}return rn(te,ve,t)}function wa(te,we){const de=we?fH(te.elements,fe):fH(te.elements,ve,fe);return u.updateCommaListExpression(te,de)}function bt(te){if(eE(te)||ea(te)){const it=u.createStringLiteralFromNode(te),Ct=yt(te,ve,wc);return{referencedName:it,name:Ct}}if(eE(te.expression)&&!at(te.expression)){const it=u.createStringLiteralFromNode(te.expression),Ct=yt(te,ve,wc);return{referencedName:it,name:Ct}}const we=u.getGeneratedNameForNode(te);p(we);const de=s().createPropKeyHelper(yt(te.expression,ve,Wt)),Oe=u.createAssignment(we,de),X=u.updateComputedPropertyName(te,Pe(Oe));return{referencedName:we,name:X}}function jn(te){return Ms(te)?Ln(te):yt(te,ve,wc)}function Ln(te){let we=yt(te.expression,ve,Wt);return lE(we)||(we=Pe(we)),u.updateComputedPropertyName(te,we)}function Ai(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Dn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function Cn(te){return If(te,an)&&(te=Vf(t,te,Pi(te.initializer))),rn(te,ve,t)}function tu(te){if(ys(te)||vh(te))return _t(te);if(nf(te)&&B&&k){const we=q0(te)?yt(te.argumentExpression,ve,Wt):at(te.name)?u.createStringLiteralFromNode(te.name):void 0;if(we){const de=u.createTempVariable(void 0),Oe=u.createAssignmentTargetWrapper(de,u.createReflectSetCall(k,we,de,B));return su(Oe,te),Pt(Oe,te),Oe}}return rn(te,ve,t)}function sa(te){if(ld(te,!0)){If(te,an)&&(te=Vf(t,te,Pi(te.right)));const we=tu(te.left),de=yt(te.right,ve,Wt);return u.updateBinaryExpression(te,we,te.operatorToken,de)}else return tu(te)}function xa(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadElement(te,we)}return rn(te,ve,t)}function aa(te){return H.assertNode(te,YO),rE(te)?xa(te):Fd(te)?rn(te,ve,t):sa(te)}function Ta(te){const we=yt(te.name,ve,wc);if(ld(te.initializer,!0)){const de=sa(te.initializer);return u.updatePropertyAssignment(te,we,de)}if(Df(te.initializer)){const de=tu(te.initializer);return u.updatePropertyAssignment(te,we,de)}return rn(te,ve,t)}function Qo(te){return If(te,an)&&(te=Vf(t,te,Pi(te.objectAssignmentInitializer))),rn(te,ve,t)}function bo(te){if(Df(te.expression)){const we=tu(te.expression);return u.updateSpreadAssignment(te,we)}return rn(te,ve,t)}function Qe(te){return H.assertNode(te,ZO),d5(te)?bo(te):pm(te)?Qo(te):Uc(te)?Ta(te):rn(te,ve,t)}function _t(te){if(vh(te)){const we=kn(te.elements,aa,Wt);return u.updateArrayLiteralExpression(te,we)}else{const we=kn(te.properties,Qe,Z3);return u.updateObjectLiteralExpression(te,we)}}function Mt(te){return If(te,an)&&(te=Vf(t,te,Pi(te.expression))),rn(te,ve,t)}function qt(te,we){const de=we?fe:ve,Oe=yt(te.expression,de,Wt);return u.updateParenthesizedExpression(te,Oe)}function Xt(te,we){const de=we?fe:ve,Oe=yt(te.expression,de,Wt);return u.updatePartiallyEmittedExpression(te,Oe)}function Pe(te){return Ge(T)&&(Cf(te)?(T.push(te.expression),te=u.updateParenthesizedExpression(te,u.inlineExpressions(T))):(T.push(te),te=u.inlineExpressions(T)),T=void 0),te}function et(te){if(!te)return;const we=[];return yn(we,Vt(te.decorators,Et)),we}function Et(te){const we=yt(te.expression,ve,Wt);Yn(we,3072);const de=vc(we);if(O0(de)){const{target:Oe,thisArg:X}=u.createCallBinding(we,p,E,!0);return u.restoreOuterExpressions(we,u.createFunctionBindCall(Oe,X,[]))}return we}function ii(te,we,de,Oe,X,it,Ct){const ct=u.createFunctionExpression(de,Oe,void 0,void 0,it,void 0,Ct??u.createBlock([]));su(ct,te),As(ct,o5(te)),Yn(ct,3072);const Qt=X==="get"||X==="set"?X:void 0,Ti=u.createStringLiteralFromNode(we,void 0),Ui=s().createSetFunctionNameHelper(ct,Ti,Qt),Sn=u.createPropertyAssignment(u.createIdentifier(X),Ui);return su(Sn,te),As(Sn,o5(te)),Yn(Sn,3072),Sn}function me(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,te.asteriskToken,"value",kn(te.parameters,ve,io),yt(te.body,ve,go))])}function ni(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],yt(te.body,ve,go))])}function xi(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"set",kn(te.parameters,ve,io),yt(te.body,ve,go))])}function pt(te,we){return u.createObjectLiteralExpression([ii(te,te.name,we,void 0,"get",[],u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)))])),ii(te,te.name,we,void 0,"set",[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(u.createThis(),u.getGeneratedPrivateNameForNode(te.name)),u.createIdentifier("value")))]))])}function Ot(te,we,de){return te=kn(te,Oe=>N7(Oe)?Oe:void 0,Xo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createPropertyAccessExpression(de,u.createIdentifier("value")))]))}function Ei(te,we,de){return te=kn(te,Oe=>N7(Oe)?Oe:void 0,Xo),u.createGetAccessorDeclaration(te,we,[],void 0,u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("get")),u.createThis(),[]))]))}function $i(te,we,de){return te=kn(te,Oe=>N7(Oe)?Oe:void 0,Xo),u.createSetAccessorDeclaration(te,we,[u.createParameterDeclaration(void 0,void 0,"value")],u.createBlock([u.createReturnStatement(u.createFunctionCallCall(u.createPropertyAccessExpression(de,u.createIdentifier("set")),u.createThis(),[u.createIdentifier("value")]))]))}function Qi(te,we){const de=u.createVariableDeclaration(te,void 0,void 0,u.createConditionalExpression(u.createLogicalAnd(u.createTypeCheck(u.createIdentifier("Symbol"),"function"),u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),u.createToken(58),u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"create"),void 0,[we?le(we):u.createNull()]),u.createToken(59),u.createVoidZero()));return u.createVariableStatement(void 0,u.createVariableDeclarationList([de],2))}function on(te,we){const de=u.createObjectDefinePropertyCall(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata"),u.createPropertyDescriptor({configurable:!0,writable:!0,enumerable:!0,value:we},!0));return Yn(u.createIfStatement(we,u.createExpressionStatement(de)),1)}function le(te){return u.createBinaryExpression(u.createElementAccessExpression(te,u.createPropertyAccessExpression(u.createIdentifier("Symbol"),"metadata")),61,u.createNull())}}var NMt=o({"src/compiler/transformers/esDecorators.ts"(){Bo()}});function p7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=js(v);let B,k=0,T,M,z;const j=[];let J=0;const K=t.onEmitNode,Y=t.onSubstituteNode;return t.onEmitNode=Jn,t.onSubstituteNode=an,Wp(t,oe);function oe(bt){if(bt.isDeclarationFile)return bt;se(1,!1),se(2,!D0e(bt,v));const jn=rn(bt,Se,t);return iD(jn,t.readEmitHelpers()),jn}function se(bt,jn){J=jn?J|bt:J&~bt}function ge(bt){return(J&bt)!==0}function ae(){return!ge(1)}function Ce(){return ge(2)}function ne(bt,jn,Ln){const Ai=bt&~J;if(Ai){se(Ai,!0);const Dn=jn(Ln);return se(Ai,!1),Dn}return jn(Ln)}function ve(bt){return rn(bt,Se,t)}function Se(bt){if(!(bt.transformFlags&256))return bt;switch(bt.kind){case 134:return;case 223:return Ae(bt);case 174:return ne(3,He,bt);case 262:return ne(3,Ye,bt);case 218:return ne(3,je,bt);case 219:return ne(1,Ke,bt);case 211:return M&&Ru(bt)&&bt.expression.kind===108&&M.add(bt.name.escapedText),rn(bt,Se,t);case 212:return M&&bt.expression.kind===108&&(z=!0),rn(bt,Se,t);case 177:return ne(3,Je,bt);case 178:return ne(3,mt,bt);case 176:return ne(3,De,bt);case 263:case 231:return ne(3,ve,bt);default:return rn(bt,Se,t)}}function Ne(bt){if(pye(bt))switch(bt.kind){case 243:return fe(bt);case 248:return We(bt);case 249:return xe(bt);case 250:return Be(bt);case 299:return pe(bt);case 241:case 255:case 269:case 296:case 297:case 258:case 246:case 247:case 245:case 254:case 256:return rn(bt,Ne,t);default:return H.assertNever(bt,"Unhandled node.")}return Se(bt)}function pe(bt){const jn=new Set;Gt(bt.variableDeclaration,jn);let Ln;if(jn.forEach((Ai,Dn)=>{T.has(Dn)&&(Ln||(Ln=new Set(T)),Ln.delete(Dn))}),Ln){const Ai=T;T=Ln;const Dn=rn(bt,Ne,t);return T=Ai,Dn}else return rn(bt,Ne,t)}function fe(bt){if(Yt(bt.declarationList)){const jn=Ie(bt.declarationList,!1);return jn?u.createExpressionStatement(jn):void 0}return rn(bt,Se,t)}function xe(bt){return u.updateForInStatement(bt,Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,l4)),H.checkDefined(yt(bt.expression,Se,Wt)),Rh(bt.statement,Ne,t))}function Be(bt){return u.updateForOfStatement(bt,yt(bt.awaitModifier,Se,xce),Yt(bt.initializer)?Ie(bt.initializer,!0):H.checkDefined(yt(bt.initializer,Se,l4)),H.checkDefined(yt(bt.expression,Se,Wt)),Rh(bt.statement,Ne,t))}function We(bt){const jn=bt.initializer;return u.updateForStatement(bt,Yt(jn)?Ie(jn,!1):yt(bt.initializer,Se,l4),yt(bt.condition,Se,Wt),yt(bt.incrementor,Se,Wt),Rh(bt.statement,Ne,t))}function Ae(bt){return ae()?rn(bt,Se,t):su(Pt(u.createYieldExpression(void 0,yt(bt.expression,Se,Wt)),bt),bt)}function De(bt){return u.updateConstructorDeclaration(bt,kn(bt.modifiers,Se,Xo),Cc(bt.parameters,Se,t),ft(bt))}function He(bt){return u.updateMethodDeclaration(bt,kn(bt.modifiers,Se,ll),bt.asteriskToken,bt.name,void 0,void 0,Cc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):ft(bt))}function Je(bt){return u.updateGetAccessorDeclaration(bt,kn(bt.modifiers,Se,ll),bt.name,Cc(bt.parameters,Se,t),void 0,ft(bt))}function mt(bt){return u.updateSetAccessorDeclaration(bt,kn(bt.modifiers,Se,ll),bt.name,Cc(bt.parameters,Se,t),ft(bt))}function Ye(bt){return u.updateFunctionDeclaration(bt,kn(bt.modifiers,Se,ll),bt.asteriskToken,bt.name,void 0,Cc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):jm(bt.body,Se,t))}function je(bt){return u.updateFunctionExpression(bt,kn(bt.modifiers,Se,Xo),bt.asteriskToken,bt.name,void 0,Cc(bt.parameters,Se,t),void 0,kd(bt)&2?Ut(bt):jm(bt.body,Se,t))}function Ke(bt){return u.updateArrowFunction(bt,kn(bt.modifiers,Se,Xo),void 0,Cc(bt.parameters,Se,t),void 0,bt.equalsGreaterThanToken,kd(bt)&2?Ut(bt):jm(bt.body,Se,t))}function Gt({name:bt},jn){if(at(bt))jn.add(bt.escapedText);else for(const Ln of bt.elements)Fd(Ln)||Gt(Ln,jn)}function Yt(bt){return!!bt&&Ad(bt)&&!(bt.flags&7)&&bt.declarations.some(ei)}function Ie(bt,jn){st(bt);const Ln=xP(bt);return Ln.length===0?jn?yt(u.converters.convertToAssignmentElementTarget(bt.declarations[0].name),Se,Wt):void 0:u.inlineExpressions(Vt(Ln,It))}function st(bt){L(bt.declarations,Bt)}function Bt({name:bt}){if(at(bt))p(bt);else for(const jn of bt.elements)Fd(jn)||Bt(jn)}function It(bt){const jn=As(u.createAssignment(u.converters.convertToAssignmentElementTarget(bt.name),bt.initializer),bt);return H.checkDefined(yt(jn,Se,Wt))}function ei({name:bt}){if(at(bt))return T.has(bt.escapedText);for(const jn of bt.elements)if(!Fd(jn)&&ei(jn))return!0;return!1}function ft(bt){H.assertIsDefined(bt.body);const jn=M,Ln=z;M=new Set,z=!1;let Ai=jm(bt.body,Se,t);const Dn=Wl(bt,U0);if(b>=2&&E.getNodeCheckFlags(bt)&384&&(kd(Dn)&3)!==3){if(xn(),M.size){const tu=pQ(u,E,bt,M);j[Us(tu)]=!0;const sa=Ai.statements.slice();YE(sa,[tu]),Ai=u.updateBlock(Ai,sa)}z&&(E.getNodeCheckFlags(bt)&256?S7(Ai,yV):E.getNodeCheckFlags(bt)&128&&S7(Ai,bV))}return M=jn,z=Ln,Ai}function Ut(bt){d();const Ln=Wl(bt,Co).type,Ai=b<2?Vi(Ln):void 0,Dn=bt.kind===219,Cn=(E.getNodeCheckFlags(bt)&512)!==0,tu=T;T=new Set;for(const Ta of bt.parameters)Gt(Ta,T);const sa=M,xa=z;Dn||(M=new Set,z=!1);let aa;if(Dn){const Ta=s().createAwaiterHelper(Ce(),Cn,Ai,Ni(bt.body)),Qo=f();if(Ge(Qo)){const bo=u.converters.convertToFunctionBlock(Ta);aa=u.updateBlock(bo,Pt(u.createNodeArray(mi(Qo,bo.statements)),bo.statements))}else aa=Ta}else{const Ta=[],Qo=u.copyPrologue(bt.body.statements,Ta,!1,Se);Ta.push(u.createReturnStatement(s().createAwaiterHelper(Ce(),Cn,Ai,Ni(bt.body,Qo)))),YE(Ta,f());const bo=b>=2&&E.getNodeCheckFlags(bt)&384;if(bo&&(xn(),M.size)){const _t=pQ(u,E,bt,M);j[Us(_t)]=!0,YE(Ta,[_t])}const Qe=u.createBlock(Ta,!0);Pt(Qe,bt.body),bo&&z&&(E.getNodeCheckFlags(bt)&256?S7(Qe,yV):E.getNodeCheckFlags(bt)&128&&S7(Qe,bV)),aa=Qe}return T=tu,Dn||(M=sa,z=xa),aa}function Ni(bt,jn){return go(bt)?u.updateBlock(bt,kn(bt.statements,Ne,ua,jn)):u.converters.convertToFunctionBlock(H.checkDefined(yt(bt,Ne,WU)))}function Vi(bt){const jn=bt&&gj(bt);if(jn&&sm(jn)){const Ln=E.getTypeReferenceSerializationKind(jn);if(Ln===1||Ln===0)return jn}}function xn(){B&1||(B|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Jn(bt,jn,Ln){if(B&1&&Fr(jn)){const Ai=E.getNodeCheckFlags(jn)&384;if(Ai!==k){const Dn=k;k=Ai,K(bt,jn,Ln),k=Dn;return}}else if(B&&j[Us(jn)]){const Ai=k;k=0,K(bt,jn,Ln),k=Ai;return}K(bt,jn,Ln)}function an(bt,jn){return jn=Y(bt,jn),bt===1&&k?Pi(jn):jn}function Pi(bt){switch(bt.kind){case 211:return Fi(bt);case 212:return Yu(bt);case 213:return oa(bt)}return bt}function Fi(bt){return bt.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),bt.name),bt):bt}function Yu(bt){return bt.expression.kind===108?wa(bt.argumentExpression,bt):bt}function oa(bt){const jn=bt.expression;if(nf(jn)){const Ln=Ru(jn)?Fi(jn):Yu(jn);return u.createCallExpression(u.createPropertyAccessExpression(Ln,"call"),void 0,[u.createThis(),...bt.arguments])}return bt}function Fr(bt){const jn=bt.kind;return jn===263||jn===176||jn===174||jn===177||jn===178}function wa(bt,jn){return k&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),"value"),jn):Pt(u.createCallExpression(u.createUniqueName("_superIndex",48),void 0,[bt]),jn)}}function pQ(t,u,s,d){const f=(u.getNodeCheckFlags(s)&256)!==0,p=[];return d.forEach((E,v)=>{const b=Qr(v),B=[];B.push(t.createPropertyAssignment("get",t.createArrowFunction(void 0,void 0,[],void 0,void 0,Yn(t.createPropertyAccessExpression(Yn(t.createSuper(),8),b),8)))),f&&B.push(t.createPropertyAssignment("set",t.createArrowFunction(void 0,void 0,[t.createParameterDeclaration(void 0,void 0,"v",void 0,void 0,void 0)],void 0,void 0,t.createAssignment(Yn(t.createPropertyAccessExpression(Yn(t.createSuper(),8),b),8),t.createIdentifier("v"))))),p.push(t.createPropertyAssignment(b,t.createObjectLiteralExpression(B)))}),t.createVariableStatement(void 0,t.createVariableDeclarationList([t.createVariableDeclaration(t.createUniqueName("_super",48),void 0,void 0,t.createCallExpression(t.createPropertyAccessExpression(t.createIdentifier("Object"),"create"),void 0,[t.createNull(),t.createObjectLiteralExpression(p,!0)]))],2))}var PMt=o({"src/compiler/transformers/es2017.ts"(){Bo()}});function g7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistVariableDeclaration:p}=t,E=t.getEmitResolver(),v=t.getCompilerOptions(),b=js(v),B=t.onEmitNode;t.onEmitNode=Ta;const k=t.onSubstituteNode;t.onSubstituteNode=Qo;let T=!1,M,z,j,J=0,K=0,Y,oe,se,ge;const ae=[];return Wp(t,Ne);function Ce(Pe,et){return K!==(K&~Pe|et)}function ne(Pe,et){const Et=K;return K=(K&~Pe|et)&3,Et}function ve(Pe){K=Pe}function Se(Pe){oe=Di(oe,u.createVariableDeclaration(Pe))}function Ne(Pe){if(Pe.isDeclarationFile)return Pe;Y=Pe;const et=Yt(Pe);return iD(et,t.readEmitHelpers()),Y=void 0,oe=void 0,et}function pe(Pe){return Ae(Pe,!1)}function fe(Pe){return Ae(Pe,!0)}function xe(Pe){if(Pe.kind!==134)return Pe}function Be(Pe,et,Et,ii){if(Ce(Et,ii)){const me=ne(Et,ii),ni=Pe(et);return ve(me),ni}return Pe(et)}function We(Pe){return rn(Pe,pe,t)}function Ae(Pe,et){if(!(Pe.transformFlags&128))return Pe;switch(Pe.kind){case 223:return De(Pe);case 229:return He(Pe);case 253:return Je(Pe);case 256:return mt(Pe);case 210:return je(Pe);case 226:return st(Pe,et);case 361:return Bt(Pe,et);case 299:return It(Pe);case 243:return ei(Pe);case 260:return ft(Pe);case 246:case 247:case 249:return Be(We,Pe,0,2);case 250:return xn(Pe,void 0);case 248:return Be(Ni,Pe,0,2);case 222:return Vi(Pe);case 176:return Be(wa,Pe,2,1);case 174:return Be(Ln,Pe,2,1);case 177:return Be(bt,Pe,2,1);case 178:return Be(jn,Pe,2,1);case 262:return Be(Ai,Pe,2,1);case 218:return Be(Cn,Pe,2,1);case 219:return Be(Dn,Pe,2,0);case 169:return oa(Pe);case 244:return Ke(Pe);case 217:return Gt(Pe,et);case 215:return Ie(Pe);case 211:return se&&Ru(Pe)&&Pe.expression.kind===108&&se.add(Pe.name.escapedText),rn(Pe,pe,t);case 212:return se&&Pe.expression.kind===108&&(ge=!0),rn(Pe,pe,t);case 263:case 231:return Be(We,Pe,2,1);default:return rn(Pe,pe,t)}}function De(Pe){return z&2&&z&1?su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(yt(Pe.expression,pe,Wt))),Pe),Pe):rn(Pe,pe,t)}function He(Pe){if(z&2&&z&1){if(Pe.asteriskToken){const et=yt(H.checkDefined(Pe.expression),pe,Wt);return su(Pt(u.createYieldExpression(void 0,s().createAwaitHelper(u.updateYieldExpression(Pe,Pe.asteriskToken,Pt(s().createAsyncDelegatorHelper(Pt(s().createAsyncValuesHelper(et),et)),et)))),Pe),Pe)}return su(Pt(u.createYieldExpression(void 0,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())),Pe),Pe)}return rn(Pe,pe,t)}function Je(Pe){return z&2&&z&1?u.updateReturnStatement(Pe,Pi(Pe.expression?yt(Pe.expression,pe,Wt):u.createVoidZero())):rn(Pe,pe,t)}function mt(Pe){if(z&2){const et=B0e(Pe);return et.kind===250&&et.awaitModifier?xn(et,Pe):u.restoreEnclosingLabel(yt(et,pe,ua,u.liftToBlock),Pe)}return rn(Pe,pe,t)}function Ye(Pe){let et;const Et=[];for(const ii of Pe)if(ii.kind===305){et&&(Et.push(u.createObjectLiteralExpression(et)),et=void 0);const me=ii.expression;Et.push(yt(me,pe,Wt))}else et=Di(et,ii.kind===303?u.createPropertyAssignment(ii.name,yt(ii.initializer,pe,Wt)):yt(ii,pe,Z3));return et&&Et.push(u.createObjectLiteralExpression(et)),Et}function je(Pe){if(Pe.transformFlags&65536){const et=Ye(Pe.properties);et.length&&et[0].kind!==210&&et.unshift(u.createObjectLiteralExpression());let Et=et[0];if(et.length>1){for(let ii=1;ii=2&&E.getNodeCheckFlags(Pe)&384;if(xi){aa();const Ot=pQ(u,E,Pe,se);ae[Us(Ot)]=!0,YE(et,[Ot])}et.push(ni),YE(et,f());const pt=u.updateBlock(Pe.body,et);return xi&&ge&&(E.getNodeCheckFlags(Pe)&256?S7(pt,yV):E.getNodeCheckFlags(Pe)&128&&S7(pt,bV)),se=ii,ge=me,pt}function sa(Pe){d();let et=0;const Et=[],ii=yt(Pe.body,pe,WU)??u.createBlock([]);go(ii)&&(et=u.copyPrologue(ii.statements,Et,!1,pe)),yn(Et,xa(void 0,Pe));const me=f();if(et>0||Ge(Et)||Ge(me)){const ni=u.converters.convertToFunctionBlock(ii,!0);return YE(Et,me),yn(Et,ni.statements.slice(et)),u.updateBlock(ni,Pt(u.createNodeArray(Et),ni.statements))}return ii}function xa(Pe,et){let Et=!1;for(const ii of et.parameters)if(Et){if(So(ii.name)){if(ii.name.elements.length>0){const me=X2(ii,pe,t,0,u.getGeneratedNameForNode(ii));if(Ge(me)){const ni=u.createVariableDeclarationList(me),xi=u.createVariableStatement(void 0,ni);Yn(xi,2097152),Pe=Di(Pe,xi)}}else if(ii.initializer){const me=u.getGeneratedNameForNode(ii),ni=yt(ii.initializer,pe,Wt),xi=u.createAssignment(me,ni),pt=u.createExpressionStatement(xi);Yn(pt,2097152),Pe=Di(Pe,pt)}}else if(ii.initializer){const me=u.cloneNode(ii.name);Pt(me,ii.name),Yn(me,96);const ni=yt(ii.initializer,pe,Wt);n_(ni,3168);const xi=u.createAssignment(me,ni);Pt(xi,ii),Yn(xi,3072);const pt=u.createBlock([u.createExpressionStatement(xi)]);Pt(pt,ii),Yn(pt,3905);const Ot=u.createTypeCheck(u.cloneNode(ii.name),"undefined"),Ei=u.createIfStatement(Ot,pt);bh(Ei),Pt(Ei,ii),Yn(Ei,2101056),Pe=Di(Pe,Ei)}}else if(ii.transformFlags&65536){Et=!0;const me=X2(ii,pe,t,1,u.getGeneratedNameForNode(ii),!1,!0);if(Ge(me)){const ni=u.createVariableDeclarationList(me),xi=u.createVariableStatement(void 0,ni);Yn(xi,2097152),Pe=Di(Pe,xi)}}return Pe}function aa(){M&1||(M|=1,t.enableSubstitution(213),t.enableSubstitution(211),t.enableSubstitution(212),t.enableEmitNotification(263),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(176),t.enableEmitNotification(243))}function Ta(Pe,et,Et){if(M&1&&qt(et)){const ii=E.getNodeCheckFlags(et)&384;if(ii!==J){const me=J;J=ii,B(Pe,et,Et),J=me;return}}else if(M&&ae[Us(et)]){const ii=J;J=0,B(Pe,et,Et),J=ii;return}B(Pe,et,Et)}function Qo(Pe,et){return et=k(Pe,et),Pe===1&&J?bo(et):et}function bo(Pe){switch(Pe.kind){case 211:return Qe(Pe);case 212:return _t(Pe);case 213:return Mt(Pe)}return Pe}function Qe(Pe){return Pe.expression.kind===108?Pt(u.createPropertyAccessExpression(u.createUniqueName("_super",48),Pe.name),Pe):Pe}function _t(Pe){return Pe.expression.kind===108?Xt(Pe.argumentExpression,Pe):Pe}function Mt(Pe){const et=Pe.expression;if(nf(et)){const Et=Ru(et)?Qe(et):_t(et);return u.createCallExpression(u.createPropertyAccessExpression(Et,"call"),void 0,[u.createThis(),...Pe.arguments])}return Pe}function qt(Pe){const et=Pe.kind;return et===263||et===176||et===174||et===177||et===178}function Xt(Pe,et){return J&256?Pt(u.createPropertyAccessExpression(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),"value"),et):Pt(u.createCallExpression(u.createIdentifier("_superIndex"),void 0,[Pe]),et)}}var MMt=o({"src/compiler/transformers/es2018.ts"(){Bo()}});function E7e(t){const u=t.factory;return Wp(t,s);function s(p){return p.isDeclarationFile?p:rn(p,d,t)}function d(p){if(!(p.transformFlags&64))return p;switch(p.kind){case 299:return f(p);default:return rn(p,d,t)}}function f(p){return p.variableDeclaration?rn(p,d,t):u.updateCatchClause(p,u.createVariableDeclaration(u.createTempVariable(void 0)),yt(p.block,d,go))}}var zMt=o({"src/compiler/transformers/es2019.ts"(){Bo()}});function _7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Wp(t,d);function d(j){return j.isDeclarationFile?j:rn(j,f,t)}function f(j){if(!(j.transformFlags&32))return j;switch(j.kind){case 213:{const J=b(j,!1);return H.assertNotNode(J,j7),J}case 211:case 212:if(Q1(j)){const J=k(j,!1,!1);return H.assertNotNode(J,j7),J}return rn(j,f,t);case 226:return j.operatorToken.kind===61?M(j):rn(j,f,t);case 220:return z(j);default:return rn(j,f,t)}}function p(j){H.assertNotNode(j,RU);const J=[j];for(;!j.questionDotToken&&!Dk(j);)j=Po(Pp(j.expression),Q1),H.assertNotNode(j,RU),J.unshift(j);return{expression:j.expression,chain:J}}function E(j,J,K){const Y=B(j.expression,J,K);return j7(Y)?u.createSyntheticReferenceExpression(u.updateParenthesizedExpression(j,Y.expression),Y.thisArg):u.updateParenthesizedExpression(j,Y)}function v(j,J,K){if(Q1(j))return k(j,J,K);let Y=yt(j.expression,f,Wt);H.assertNotNode(Y,j7);let oe;return J&&(Q2(Y)?oe=Y:(oe=u.createTempVariable(s),Y=u.createAssignment(oe,Y))),Y=j.kind===211?u.updatePropertyAccessExpression(j,Y,yt(j.name,f,at)):u.updateElementAccessExpression(j,Y,yt(j.argumentExpression,f,Wt)),oe?u.createSyntheticReferenceExpression(Y,oe):Y}function b(j,J){if(Q1(j))return k(j,J,!1);if(Cf(j.expression)&&Q1(l0(j.expression))){const K=E(j.expression,!0,!1),Y=kn(j.arguments,f,Wt);return j7(K)?Pt(u.createFunctionCallCall(K.expression,K.thisArg,Y),j):u.updateCallExpression(j,K,void 0,Y)}return rn(j,f,t)}function B(j,J,K){switch(j.kind){case 217:return E(j,J,K);case 211:case 212:return v(j,J,K);case 213:return b(j,J);default:return yt(j,f,Wt)}}function k(j,J,K){const{expression:Y,chain:oe}=p(j),se=B(Pp(Y),$y(oe[0]),!1);let ge=j7(se)?se.thisArg:void 0,ae=j7(se)?se.expression:se,Ce=u.restoreOuterExpressions(Y,ae,8);Q2(ae)||(ae=u.createTempVariable(s),Ce=u.createAssignment(ae,Ce));let ne=ae,ve;for(let Ne=0;NeAe&&yn(De,kn(Be.statements,T,ua,Ae,He-Ae));break}He++}H.assert(HeK(De,Ae))))],Ae,We===2)}return rn(Be,T,t)}function oe(Be,We,Ae,De,He){const Je=[];for(let je=We;jeu&&(u=d)}return u}function jMt(t){let u=0;for(const s of t){const d=a1e(s.statements);if(d===2)return 2;d>u&&(u=d)}return u}var VMt=o({"src/compiler/transformers/esnext.ts"(){Bo()}});function y7e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getCompilerOptions();let f,p;return Wp(t,T);function E(){if(p.filenameDeclaration)return p.filenameDeclaration.name;const Ie=u.createVariableDeclaration(u.createUniqueName("_jsxFileName",48),void 0,void 0,u.createStringLiteral(f.fileName));return p.filenameDeclaration=Ie,p.filenameDeclaration.name}function v(Ie){return d.jsx===5?"jsxDEV":Ie?"jsxs":"jsx"}function b(Ie){const st=v(Ie);return k(st)}function B(){return k("Fragment")}function k(Ie){var st,Bt;const It=Ie==="createElement"?p.importSpecifier:aZ(p.importSpecifier,d),ei=(Bt=(st=p.utilizedImplicitRuntimeImports)==null?void 0:st.get(It))==null?void 0:Bt.get(Ie);if(ei)return ei.name;p.utilizedImplicitRuntimeImports||(p.utilizedImplicitRuntimeImports=new Map);let ft=p.utilizedImplicitRuntimeImports.get(It);ft||(ft=new Map,p.utilizedImplicitRuntimeImports.set(It,ft));const Ut=u.createUniqueName(`_${Ie}`,112),Ni=u.createImportSpecifier(!1,u.createIdentifier(Ie),Ut);return Yke(Ut,Ni),ft.set(Ie,Ni),Ut}function T(Ie){if(Ie.isDeclarationFile)return Ie;f=Ie,p={},p.importSpecifier=rZ(d,Ie);let st=rn(Ie,M,t);iD(st,t.readEmitHelpers());let Bt=st.statements;if(p.filenameDeclaration&&(Bt=Xy(Bt.slice(),u.createVariableStatement(void 0,u.createVariableDeclarationList([p.filenameDeclaration],2)))),p.utilizedImplicitRuntimeImports){for(const[It,ei]of Ea(p.utilizedImplicitRuntimeImports.entries()))if(Lc(Ie)){const ft=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports(Ea(ei.values()))),u.createStringLiteral(It),void 0);Vx(ft,!1),Bt=Xy(Bt.slice(),ft)}else if(cm(Ie)){const ft=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createObjectBindingPattern(Ea(ei.values(),Ut=>u.createBindingElement(void 0,Ut.propertyName,Ut.name))),void 0,void 0,u.createCallExpression(u.createIdentifier("require"),void 0,[u.createStringLiteral(It)]))],2));Vx(ft,!1),Bt=Xy(Bt.slice(),ft)}}return Bt!==st.statements&&(st=u.updateSourceFile(st,Bt)),p=void 0,st}function M(Ie){return Ie.transformFlags&2?z(Ie):Ie}function z(Ie){switch(Ie.kind){case 284:return oe(Ie,!1);case 285:return se(Ie,!1);case 288:return ge(Ie,!1);case 294:return Yt(Ie);default:return rn(Ie,M,t)}}function j(Ie){switch(Ie.kind){case 12:return He(Ie);case 294:return Yt(Ie);case 284:return oe(Ie,!0);case 285:return se(Ie,!0);case 288:return ge(Ie,!0);default:return H.failBadSyntaxKind(Ie)}}function J(Ie){return Ie.properties.some(st=>Uc(st)&&(at(st.name)&&fu(st.name)==="__proto__"||rs(st.name)&&st.name.text==="__proto__"))}function K(Ie){let st=!1;for(const Bt of Ie.attributes.properties)if(H7(Bt)&&(!ys(Bt.expression)||Bt.expression.properties.some(d5)))st=!0;else if(st&&sE(Bt)&&at(Bt.name)&&Bt.name.escapedText==="key")return!0;return!1}function Y(Ie){return p.importSpecifier===void 0||K(Ie)}function oe(Ie,st){return(Y(Ie.openingElement)?Se:ne)(Ie.openingElement,Ie.children,st,Ie)}function se(Ie,st){return(Y(Ie)?Se:ne)(Ie,void 0,st,Ie)}function ge(Ie,st){return(p.importSpecifier===void 0?pe:Ne)(Ie.openingFragment,Ie.children,st,Ie)}function ae(Ie){const st=Ce(Ie);return st&&u.createObjectLiteralExpression([st])}function Ce(Ie){const st=uB(Ie);if(S(st)===1&&!st[0].dotDotDotToken){const It=j(st[0]);return It&&u.createPropertyAssignment("children",It)}const Bt=qi(Ie,j);return S(Bt)?u.createPropertyAssignment("children",u.createArrayLiteralExpression(Bt)):void 0}function ne(Ie,st,Bt,It){const ei=Ke(Ie),ft=st&&st.length?Ce(st):void 0,Ut=Le(Ie.attributes.properties,xn=>!!xn.name&&at(xn.name)&&xn.name.escapedText==="key"),Ni=Ut?ti(Ie.attributes.properties,xn=>xn!==Ut):Ie.attributes.properties,Vi=S(Ni)?xe(Ni,ft):u.createObjectLiteralExpression(ft?[ft]:Dt);return ve(ei,Vi,Ut,st||Dt,Bt,It)}function ve(Ie,st,Bt,It,ei,ft){var Ut;const Ni=uB(It),Vi=S(Ni)>1||!!((Ut=Ni[0])!=null&&Ut.dotDotDotToken),xn=[Ie,st];if(Bt&&xn.push(De(Bt.initializer)),d.jsx===5){const an=Wl(f);if(an&&ca(an)){Bt===void 0&&xn.push(u.createVoidZero()),xn.push(Vi?u.createTrue():u.createFalse());const Pi=s0(an,ft.pos);xn.push(u.createObjectLiteralExpression([u.createPropertyAssignment("fileName",E()),u.createPropertyAssignment("lineNumber",u.createNumericLiteral(Pi.line+1)),u.createPropertyAssignment("columnNumber",u.createNumericLiteral(Pi.character+1))])),xn.push(u.createThis())}}const Jn=Pt(u.createCallExpression(b(Vi),void 0,xn),ft);return ei&&bh(Jn),Jn}function Se(Ie,st,Bt,It){const ei=Ke(Ie),ft=Ie.attributes.properties,Ut=S(ft)?xe(ft):u.createNull(),Ni=p.importSpecifier===void 0?zce(u,t.getEmitResolver().getJsxFactoryEntity(f),d.reactNamespace,Ie):k("createElement"),Vi=wFe(u,Ni,ei,Ut,qi(st,j),It);return Bt&&bh(Vi),Vi}function Ne(Ie,st,Bt,It){let ei;if(st&&st.length){const ft=ae(st);ft&&(ei=ft)}return ve(B(),ei||u.createObjectLiteralExpression([]),void 0,st,Bt,It)}function pe(Ie,st,Bt,It){const ei=TFe(u,t.getEmitResolver().getJsxFactoryEntity(f),t.getEmitResolver().getJsxFragmentFactoryEntity(f),d.reactNamespace,qi(st,j),Ie,It);return Bt&&bh(ei),ei}function fe(Ie){return ys(Ie.expression)&&!J(Ie.expression)?Pu(Ie.expression.properties,st=>H.checkDefined(yt(st,M,Z3))):u.createSpreadAssignment(H.checkDefined(yt(Ie.expression,M,Wt)))}function xe(Ie,st){const Bt=js(d);return Bt&&Bt>=5?u.createObjectLiteralExpression(Be(Ie,st)):We(Ie,st)}function Be(Ie,st){const Bt=Ha(Hl(Ie,H7,(It,ei)=>Ha(Vt(It,ft=>ei?fe(ft):Ae(ft)))));return st&&Bt.push(st),Bt}function We(Ie,st){const Bt=[];let It=[];for(const ft of Ie){if(H7(ft)){if(ys(ft.expression)&&!J(ft.expression)){for(const Ut of ft.expression.properties){if(d5(Ut)){ei(),Bt.push(H.checkDefined(yt(Ut.expression,M,Wt)));continue}It.push(H.checkDefined(yt(Ut,M)))}continue}ei(),Bt.push(H.checkDefined(yt(ft.expression,M,Wt)));continue}It.push(Ae(ft))}return st&&It.push(st),ei(),Bt.length&&!ys(Bt[0])&&Bt.unshift(u.createObjectLiteralExpression()),Sa(Bt)||s().createAssignHelper(Bt);function ei(){It.length&&(Bt.push(u.createObjectLiteralExpression(It)),It=[])}}function Ae(Ie){const st=Gt(Ie),Bt=De(Ie.initializer);return u.createPropertyAssignment(st,Bt)}function De(Ie){if(Ie===void 0)return u.createTrue();if(Ie.kind===11){const st=Ie.singleQuote!==void 0?Ie.singleQuote:!yq(Ie,f),Bt=u.createStringLiteral(je(Ie.text)||Ie.text,st);return Pt(Bt,Ie)}return Ie.kind===294?Ie.expression===void 0?u.createTrue():H.checkDefined(yt(Ie.expression,M,Wt)):a3(Ie)?oe(Ie,!1):bk(Ie)?se(Ie,!1):W2(Ie)?ge(Ie,!1):H.failBadSyntaxKind(Ie)}function He(Ie){const st=Je(Ie.text);return st===void 0?void 0:u.createStringLiteral(st)}function Je(Ie){let st,Bt=0,It=-1;for(let ei=0;ei{if(ft)return F8(parseInt(ft,10));if(Ut)return F8(parseInt(Ut,16));{const Vi=qet.get(Ni);return Vi?F8(Vi):st}})}function je(Ie){const st=Ye(Ie);return st===Ie?void 0:st}function Ke(Ie){if(Ie.kind===284)return Ke(Ie.openingElement);{const st=Ie.tagName;return at(st)&&aB(st.escapedText)?u.createStringLiteral(fu(st)):gg(st)?u.createStringLiteral(fu(st.namespace)+":"+fu(st.name)):MV(u,st)}}function Gt(Ie){const st=Ie.name;if(at(st)){const Bt=fu(st);return/^[A-Za-z_]\w*$/.test(Bt)?st:u.createStringLiteral(Bt)}return u.createStringLiteral(fu(st.namespace)+":"+fu(st.name))}function Yt(Ie){const st=yt(Ie.expression,M,Wt);return Ie.dotDotDotToken?u.createSpreadElement(st):st}}var qet,HMt=o({"src/compiler/transformers/jsx.ts"(){Bo(),qet=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 k7e(t){const{factory:u,hoistVariableDeclaration:s}=t;return Wp(t,d);function d(b){return b.isDeclarationFile?b:rn(b,f,t)}function f(b){if(!(b.transformFlags&512))return b;switch(b.kind){case 226:return p(b);default:return rn(b,f,t)}}function p(b){switch(b.operatorToken.kind){case 68:return E(b);case 43:return v(b);default:return rn(b,f,t)}}function E(b){let B,k;const T=yt(b.left,f,Wt),M=yt(b.right,f,Wt);if(q0(T)){const z=u.createTempVariable(s),j=u.createTempVariable(s);B=Pt(u.createElementAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),Pt(u.createAssignment(j,T.argumentExpression),T.argumentExpression)),T),k=Pt(u.createElementAccessExpression(z,j),T)}else if(Ru(T)){const z=u.createTempVariable(s);B=Pt(u.createPropertyAccessExpression(Pt(u.createAssignment(z,T.expression),T.expression),T.name),T),k=Pt(u.createPropertyAccessExpression(z,T.name),T)}else B=T,k=T;return Pt(u.createAssignment(B,Pt(u.createGlobalMethodCall("Math","pow",[k,M]),b)),b)}function v(b){const B=yt(b.left,f,Wt),k=yt(b.right,f,Wt);return Pt(u.createGlobalMethodCall("Math","pow",[B,k]),b)}}var KMt=o({"src/compiler/transformers/es2016.ts"(){Bo()}});function Zet(t,u){return{kind:t,expression:u}}function F7e(t){const{factory:u,getEmitHelperFactory:s,startLexicalEnvironment:d,resumeLexicalEnvironment:f,endLexicalEnvironment:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=t.getEmitResolver(),B=t.onSubstituteNode,k=t.onEmitNode;t.onEmitNode=up,t.onSubstituteNode=g4;let T,M,z,j;function J(Ee){j=Di(j,u.createVariableDeclaration(Ee))}let K,Y;return Wp(t,oe);function oe(Ee){if(Ee.isDeclarationFile)return Ee;T=Ee,M=Ee.text;const wt=xe(Ee);return iD(wt,t.readEmitHelpers()),T=void 0,M=void 0,j=void 0,z=0,wt}function se(Ee,wt){const _i=z;return z=(z&~Ee|wt)&32767,_i}function ge(Ee,wt,_i){z=(z&~wt|_i)&-32768|Ee}function ae(Ee){return(z&8192)!==0&&Ee.kind===253&&!Ee.expression}function Ce(Ee){return Ee.transformFlags&4194304&&(jp(Ee)||xk(Ee)||gFe(Ee)||wV(Ee)||YP(Ee)||BB(Ee)||LV(Ee)||Ck(Ee)||J2(Ee)||H2(Ee)||Tx(Ee,!1)||go(Ee))}function ne(Ee){return(Ee.transformFlags&1024)!==0||K!==void 0||z&8192&&Ce(Ee)||Tx(Ee,!1)&&ho(Ee)||(Mp(Ee)&1)!==0}function ve(Ee){return ne(Ee)?fe(Ee,!1):Ee}function Se(Ee){return ne(Ee)?fe(Ee,!0):Ee}function Ne(Ee){if(ne(Ee)){const wt=Wl(Ee);if(ko(wt)&&Gc(wt)){const _i=se(32670,16449),vi=fe(Ee,!1);return ge(_i,229376,0),vi}return fe(Ee,!1)}return Ee}function pe(Ee){return Ee.kind===108?ql(Ee,!0):ve(Ee)}function fe(Ee,wt){switch(Ee.kind){case 126:return;case 263:return Ke(Ee);case 231:return Gt(Ee);case 169:return bo(Ee);case 262:return Qi(Ee);case 219:return Ei(Ee);case 218:return $i(Ee);case 260:return Sn(Ee);case 80:return Ye(Ee);case 261:return ct(Ee);case 255:return Be(Ee);case 269:return We(Ee);case 241:return te(Ee,!1);case 252:case 251:return je(Ee);case 256:return Er(Ee);case 246:case 247:return Wu(Ee,void 0);case 248:return Va(Ee,void 0);case 249:return Rr(Ee,void 0);case 250:return os(Ee,void 0);case 244:return we(Ee);case 210:return c0(Ee);case 299:return Mr(Ee);case 304:return ud(Ee);case 167:return T0(Ee);case 209:return m0(Ee);case 213:return Bd(Ee);case 214:return p4(Ee);case 217:return de(Ee,wt);case 226:return Oe(Ee,wt);case 361:return X(Ee,wt);case 15:case 16:case 17:case 18:return To(Ee);case 11:return uc(Ee);case 9:return mc(Ee);case 215:return bl(Ee);case 228:return Ll(Ee);case 229:return rd(Ee);case 230:return Fo(Ee);case 108:return ql(Ee,!1);case 110:return Je(Ee);case 236:return Mc(Ee);case 174:return Ss(Ee);case 177:case 178:return nc(Ee);case 243:return Ct(Ee);case 253:return He(Ee);case 222:return mt(Ee);default:return rn(Ee,ve,t)}}function xe(Ee){const wt=se(8064,64),_i=[],vi=[];d();const Q=u.copyPrologue(Ee.statements,_i,!1,ve);return yn(vi,kn(Ee.statements,ve,ua,Q)),j&&vi.push(u.createVariableStatement(void 0,u.createVariableDeclarationList(j))),u.mergeLexicalEnvironment(_i,p()),et(_i,Ee),ge(wt,0,0),u.updateSourceFile(Ee,Pt(u.createNodeArray(mi(_i,vi)),Ee.statements))}function Be(Ee){if(K!==void 0){const wt=K.allowedNonLabeledJumps;K.allowedNonLabeledJumps|=2;const _i=rn(Ee,ve,t);return K.allowedNonLabeledJumps=wt,_i}return rn(Ee,ve,t)}function We(Ee){const wt=se(7104,0),_i=rn(Ee,ve,t);return ge(wt,0,0),_i}function Ae(Ee){return su(u.createReturnStatement(De()),Ee)}function De(){return u.createUniqueName("_this",48)}function He(Ee){return K?(K.nonLocalJumps|=8,ae(Ee)&&(Ee=Ae(Ee)),u.createReturnStatement(u.createObjectLiteralExpression([u.createPropertyAssignment(u.createIdentifier("value"),Ee.expression?H.checkDefined(yt(Ee.expression,ve,Wt)):u.createVoidZero())]))):ae(Ee)?Ae(Ee):rn(Ee,ve,t)}function Je(Ee){return z|=65536,z&2&&!(z&16384)&&(z|=131072),K?z&2?(K.containsLexicalThis=!0,Ee):K.thisName||(K.thisName=u.createUniqueName("this")):Ee}function mt(Ee){return rn(Ee,Se,t)}function Ye(Ee){return K&&b.isArgumentsLocalBinding(Ee)?K.argumentsName||(K.argumentsName=u.createUniqueName("arguments")):Ee.flags&256?su(Pt(u.createIdentifier(Qr(Ee.escapedText)),Ee),Ee):Ee}function je(Ee){if(K){const wt=Ee.kind===252?2:4;if(!(Ee.label&&K.labels&&K.labels.get(fu(Ee.label))||!Ee.label&&K.allowedNonLabeledJumps&wt)){let vi;const Q=Ee.label;Q?Ee.kind===252?(vi=`break-${Q.escapedText}`,tt(K,!0,fu(Q),vi)):(vi=`continue-${Q.escapedText}`,tt(K,!1,fu(Q),vi)):Ee.kind===252?(K.nonLocalJumps|=2,vi="break"):(K.nonLocalJumps|=4,vi="continue");let Me=u.createStringLiteral(vi);if(K.loopOutParameters.length){const Tt=K.loopOutParameters;let yi;for(let In=0;Inat(wt.name)&&!wt.initializer)}function Ut(Ee){if(ik(Ee))return!0;if(!(Ee.transformFlags&134217728))return!1;switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return!1;case 177:case 178:case 174:case 172:{const wt=Ee;return Ms(wt.name)?!!ao(wt.name,Ut):!1}}return!!ao(Ee,Ut)}function Ni(Ee,wt,_i,vi){const Q=!!_i&&vc(_i.expression).kind!==106;if(!Ee)return ei(wt,Q);const Me=[],Tt=[];f();const yi=u.copyStandardPrologue(Ee.body.statements,Me,0);(vi||Ut(Ee.body))&&(z|=8192),yn(Tt,kn(Ee.body.statements,ve,ua,yi));const In=Q||z&8192;_t(Me,Ee),Pe(Me,Ee,vi),ii(Me,Ee),In?Et(Me,Ee,Ta()):et(Me,Ee),u.mergeLexicalEnvironment(Me,p()),In&&!aa(Ee.body)&&Tt.push(u.createReturnStatement(De()));const nr=u.createBlock(Pt(u.createNodeArray([...Me,...Tt]),Ee.body.statements),!0);return Pt(nr,Ee.body),xa(nr,Ee.body,vi)}function Vi(Ee){return sl(Ee)&&fu(Ee)==="_this"}function xn(Ee){return sl(Ee)&&fu(Ee)==="_super"}function Jn(Ee){return Jl(Ee)&&Ee.declarationList.declarations.length===1&&an(Ee.declarationList.declarations[0])}function an(Ee){return ra(Ee)&&Vi(Ee.name)&&!!Ee.initializer}function Pi(Ee){return ld(Ee,!0)&&Vi(Ee.left)}function Fi(Ee){return Mo(Ee)&&Ru(Ee.expression)&&xn(Ee.expression.expression)&&at(Ee.expression.name)&&(fu(Ee.expression.name)==="call"||fu(Ee.expression.name)==="apply")&&Ee.arguments.length>=1&&Ee.arguments[0].kind===110}function Yu(Ee){return eu(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&Fi(Ee.left)}function oa(Ee){return eu(Ee)&&Ee.operatorToken.kind===56&&eu(Ee.left)&&Ee.left.operatorToken.kind===38&&xn(Ee.left.left)&&Ee.left.right.kind===106&&Fi(Ee.right)&&fu(Ee.right.expression.name)==="apply"}function Fr(Ee){return eu(Ee)&&Ee.operatorToken.kind===57&&Ee.right.kind===110&&oa(Ee.left)}function wa(Ee){return Pi(Ee)&&Yu(Ee.right)}function bt(Ee){return Pi(Ee)&&Fr(Ee.right)}function jn(Ee){return Fi(Ee)||Yu(Ee)||wa(Ee)||oa(Ee)||Fr(Ee)||bt(Ee)}function Ln(Ee){for(let wt=0;wt0;vi--){const Q=Ee.statements[vi];if(jp(Q)&&Q.expression&&Vi(Q.expression)){const Me=Ee.statements[vi-1];let Tt;if(Od(Me)&&wa(vc(Me.expression)))Tt=Me.expression;else if(_i&&Jn(Me)){const nr=Me.declarationList.declarations[0];jn(vc(nr.initializer))&&(Tt=u.createAssignment(De(),nr.initializer))}if(!Tt)break;const yi=u.createReturnStatement(Tt);su(yi,Me),Pt(yi,Me);const In=u.createNodeArray([...Ee.statements.slice(0,vi-1),yi,...Ee.statements.slice(vi+1)]);return Pt(In,Ee.statements),u.updateBlock(Ee,In)}}return Ee}function Dn(Ee){if(Jn(Ee)){if(Ee.declarationList.declarations[0].initializer.kind===110)return}else if(Pi(Ee))return u.createPartiallyEmittedExpression(Ee.right,Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const wt=Ee;return Ms(wt.name)?u.replacePropertyName(wt,rn(wt.name,Dn,Dg)):Ee}}return rn(Ee,Dn,Dg)}function Cn(Ee,wt){if(wt.transformFlags&16384||z&65536||z&131072)return Ee;for(const _i of wt.statements)if(_i.transformFlags&134217728&&!lQ(_i))return Ee;return u.updateBlock(Ee,kn(Ee.statements,Dn,ua))}function tu(Ee){if(Fi(Ee)&&Ee.arguments.length===2&&at(Ee.arguments[1])&&fu(Ee.arguments[1])==="arguments")return u.createLogicalAnd(u.createStrictInequality(kc(),u.createNull()),Ee);switch(Ee.kind){case 219:case 218:case 262:case 176:case 175:return Ee;case 177:case 178:case 174:case 172:{const wt=Ee;return Ms(wt.name)?u.replacePropertyName(wt,rn(wt.name,tu,Dg)):Ee}}return rn(Ee,tu,Dg)}function sa(Ee){return u.updateBlock(Ee,kn(Ee.statements,tu,ua))}function xa(Ee,wt,_i){const vi=Ee;return Ee=Ln(Ee),Ee=Ai(Ee,wt),Ee!==vi&&(Ee=Cn(Ee,wt)),_i&&(Ee=sa(Ee)),Ee}function aa(Ee){if(Ee.kind===253)return!0;if(Ee.kind===245){const wt=Ee;if(wt.elseStatement)return aa(wt.thenStatement)&&aa(wt.elseStatement)}else if(Ee.kind===241){const wt=Zu(Ee.statements);if(wt&&aa(wt))return!0}return!1}function Ta(){return Yn(u.createThis(),8)}function Qo(){return u.createLogicalOr(u.createLogicalAnd(u.createStrictInequality(kc(),u.createNull()),u.createFunctionApplyCall(kc(),Ta(),u.createIdentifier("arguments"))),Ta())}function bo(Ee){if(!Ee.dotDotDotToken)return So(Ee.name)?su(Pt(u.createParameterDeclaration(void 0,void 0,u.getGeneratedNameForNode(Ee),void 0,void 0,void 0),Ee),Ee):Ee.initializer?su(Pt(u.createParameterDeclaration(void 0,void 0,Ee.name,void 0,void 0,void 0),Ee),Ee):Ee}function Qe(Ee){return Ee.initializer!==void 0||So(Ee.name)}function _t(Ee,wt){if(!Ge(wt.parameters,Qe))return!1;let _i=!1;for(const vi of wt.parameters){const{name:Q,initializer:Me,dotDotDotToken:Tt}=vi;Tt||(So(Q)?_i=Mt(Ee,vi,Q,Me)||_i:Me&&(qt(Ee,vi,Q,Me),_i=!0))}return _i}function Mt(Ee,wt,_i,vi){return _i.elements.length>0?(Xy(Ee,Yn(u.createVariableStatement(void 0,u.createVariableDeclarationList(X2(wt,ve,t,0,u.getGeneratedNameForNode(wt)))),2097152)),!0):vi?(Xy(Ee,Yn(u.createExpressionStatement(u.createAssignment(u.getGeneratedNameForNode(wt),H.checkDefined(yt(vi,ve,Wt)))),2097152)),!0):!1}function qt(Ee,wt,_i,vi){vi=H.checkDefined(yt(vi,ve,Wt));const Q=u.createIfStatement(u.createTypeCheck(u.cloneNode(_i),"undefined"),Yn(Pt(u.createBlock([u.createExpressionStatement(Yn(Pt(u.createAssignment(Yn(ks(Pt(u.cloneNode(_i),_i),_i.parent),96),Yn(vi,96|bs(vi)|3072)),wt),3072))]),wt),3905));bh(Q),Pt(Q,wt),Yn(Q,2101056),Xy(Ee,Q)}function Xt(Ee,wt){return!!(Ee&&Ee.dotDotDotToken&&!wt)}function Pe(Ee,wt,_i){const vi=[],Q=Zu(wt.parameters);if(!Xt(Q,_i))return!1;const Me=Q.name.kind===80?ks(Pt(u.cloneNode(Q.name),Q.name),Q.name.parent):u.createTempVariable(void 0);Yn(Me,96);const Tt=Q.name.kind===80?u.cloneNode(Q.name):Me,yi=wt.parameters.length-1,In=u.createLoopVariable();vi.push(Yn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Me,void 0,void 0,u.createArrayLiteralExpression([]))])),Q),2097152));const nr=u.createForStatement(Pt(u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,u.createNumericLiteral(yi))]),Q),Pt(u.createLessThan(In,u.createPropertyAccessExpression(u.createIdentifier("arguments"),"length")),Q),Pt(u.createPostfixIncrement(In),Q),u.createBlock([bh(Pt(u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(Tt,yi===0?In:u.createSubtract(In,u.createNumericLiteral(yi))),u.createElementAccessExpression(u.createIdentifier("arguments"),In))),Q))]));return Yn(nr,2097152),bh(nr),vi.push(nr),Q.name.kind!==80&&vi.push(Yn(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList(X2(Q,ve,t,0,Tt))),Q),2097152)),d0e(Ee,vi),!0}function et(Ee,wt){return z&131072&&wt.kind!==219?(Et(Ee,wt,u.createThis()),!0):!1}function Et(Ee,wt,_i){Vh();const vi=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(De(),void 0,void 0,_i)]));Yn(vi,2100224),As(vi,wt),Xy(Ee,vi)}function ii(Ee,wt){if(z&32768){let _i;switch(wt.kind){case 219:return Ee;case 174:case 177:case 178:_i=u.createVoidZero();break;case 176:_i=u.createPropertyAccessExpression(Yn(u.createThis(),8),"constructor");break;case 262:case 218:_i=u.createConditionalExpression(u.createLogicalAnd(Yn(u.createThis(),8),u.createBinaryExpression(Yn(u.createThis(),8),104,u.getLocalName(wt))),void 0,u.createPropertyAccessExpression(Yn(u.createThis(),8),"constructor"),void 0,u.createVoidZero());break;default:return H.failBadSyntaxKind(wt)}const vi=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.createUniqueName("_newTarget",48),void 0,void 0,_i)]));Yn(vi,2100224),Xy(Ee,vi)}return Ee}function me(Ee,wt){for(const _i of wt.members)switch(_i.kind){case 240:Ee.push(ni(_i));break;case 174:Ee.push(xi(E4(wt,_i),_i,wt));break;case 177:case 178:const vi=dk(wt.members,_i);_i===vi.firstAccessor&&Ee.push(pt(E4(wt,_i),vi,wt));break;case 176:case 175:break;default:H.failBadSyntaxKind(_i,T&&T.fileName);break}}function ni(Ee){return Pt(u.createEmptyStatement(),Ee)}function xi(Ee,wt,_i){const vi=uE(wt),Q=Nv(wt),Me=on(wt,wt,void 0,_i),Tt=yt(wt.name,ve,wc);H.assert(Tt);let yi;if(!ea(Tt)&&tV(t.getCompilerOptions())){const nr=Ms(Tt)?Tt.expression:at(Tt)?u.createStringLiteral(Qr(Tt.escapedText)):Tt;yi=u.createObjectDefinePropertyCall(Ee,nr,u.createPropertyDescriptor({value:Me,enumerable:!1,writable:!0,configurable:!0}))}else{const nr=Fk(u,Ee,Tt,wt.name);yi=u.createAssignment(nr,Me)}Yn(Me,3072),As(Me,Q);const In=Pt(u.createExpressionStatement(yi),wt);return su(In,wt),Tc(In,vi),Yn(In,96),In}function pt(Ee,wt,_i){const vi=u.createExpressionStatement(Ot(Ee,wt,_i,!1));return Yn(vi,3072),As(vi,Nv(wt.firstAccessor)),vi}function Ot(Ee,{firstAccessor:wt,getAccessor:_i,setAccessor:vi},Q,Me){const Tt=ks(Pt(u.cloneNode(Ee),Ee),Ee.parent);Yn(Tt,3136),As(Tt,wt.name);const yi=yt(wt.name,ve,wc);if(H.assert(yi),ea(yi))return H.failBadSyntaxKind(yi,"Encountered unhandled private identifier while transforming ES2015.");const In=Rce(u,yi);Yn(In,3104),As(In,wt.name);const nr=[];if(_i){const fa=on(_i,void 0,void 0,Q);As(fa,Nv(_i)),Yn(fa,1024);const ss=u.createPropertyAssignment("get",fa);Tc(ss,uE(_i)),nr.push(ss)}if(vi){const fa=on(vi,void 0,void 0,Q);As(fa,Nv(vi)),Yn(fa,1024);const ss=u.createPropertyAssignment("set",fa);Tc(ss,uE(vi)),nr.push(ss)}nr.push(u.createPropertyAssignment("enumerable",_i||vi?u.createFalse():u.createTrue()),u.createPropertyAssignment("configurable",u.createTrue()));const ur=u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("Object"),"defineProperty"),void 0,[Tt,In,u.createObjectLiteralExpression(nr,!0)]);return Me&&bh(ur),ur}function Ei(Ee){Ee.transformFlags&16384&&!(z&16384)&&(z|=131072);const wt=K;K=void 0;const _i=se(15232,66),vi=u.createFunctionExpression(void 0,void 0,void 0,void 0,Cc(Ee.parameters,ve,t),void 0,le(Ee));return Pt(vi,Ee),su(vi,Ee),Yn(vi,16),ge(_i,0,0),K=wt,vi}function $i(Ee){const wt=bs(Ee)&524288?se(32662,69):se(32670,65),_i=K;K=void 0;const vi=Cc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(wt,229376,0),K=_i,u.updateFunctionExpression(Ee,void 0,Ee.asteriskToken,Me,void 0,vi,void 0,Q)}function Qi(Ee){const wt=K;K=void 0;const _i=se(32670,65),vi=Cc(Ee.parameters,ve,t),Q=le(Ee),Me=z&32768?u.getLocalName(Ee):Ee.name;return ge(_i,229376,0),K=wt,u.updateFunctionDeclaration(Ee,kn(Ee.modifiers,ve,Xo),Ee.asteriskToken,Me,void 0,vi,void 0,Q)}function on(Ee,wt,_i,vi){const Q=K;K=void 0;const Me=vi&&gr(vi)&&!No(Ee)?se(32670,73):se(32670,65),Tt=Cc(Ee.parameters,ve,t),yi=le(Ee);return z&32768&&!_i&&(Ee.kind===262||Ee.kind===218)&&(_i=u.getGeneratedNameForNode(Ee)),ge(Me,229376,0),K=Q,su(Pt(u.createFunctionExpression(void 0,Ee.asteriskToken,_i,void 0,Tt,void 0,yi),wt),Ee)}function le(Ee){let wt=!1,_i=!1,vi,Q;const Me=[],Tt=[],yi=Ee.body;let In;if(f(),go(yi)&&(In=u.copyStandardPrologue(yi.statements,Me,0,!1),In=u.copyCustomPrologue(yi.statements,Tt,In,ve,sq),In=u.copyCustomPrologue(yi.statements,Tt,In,ve,lq)),wt=_t(Tt,Ee)||wt,wt=Pe(Tt,Ee,!1)||wt,go(yi))In=u.copyCustomPrologue(yi.statements,Tt,In,ve),vi=yi.statements,yn(Tt,kn(yi.statements,ve,ua,In)),!wt&&yi.multiLine&&(wt=!0);else{H.assert(Ee.kind===219),vi=Jq(yi,-1);const ur=Ee.equalsGreaterThanToken;!cl(ur)&&!cl(yi)&&(Zj(ur,yi,T)?_i=!0:wt=!0);const fa=yt(yi,ve,Wt),ss=u.createReturnStatement(fa);Pt(ss,yi),Gke(ss,yi),Yn(ss,2880),Tt.push(ss),Q=yi}if(u.mergeLexicalEnvironment(Me,p()),ii(Me,Ee),et(Me,Ee),Ge(Me)&&(wt=!0),Tt.unshift(...Me),go(yi)&&On(Tt,yi.statements))return yi;const nr=u.createBlock(Pt(u.createNodeArray(Tt),vi),wt);return Pt(nr,Ee.body),!wt&&_i&&Yn(nr,1),Q&&Wke(nr,20,Q),su(nr,Ee.body),nr}function te(Ee,wt){if(wt)return rn(Ee,ve,t);const _i=z&256?se(7104,512):se(6976,128),vi=rn(Ee,ve,t);return ge(_i,0,0),vi}function we(Ee){return rn(Ee,Se,t)}function de(Ee,wt){return rn(Ee,wt?Se:ve,t)}function Oe(Ee,wt){return r5(Ee)?wk(Ee,ve,t,0,!wt):Ee.operatorToken.kind===28?u.updateBinaryExpression(Ee,H.checkDefined(yt(Ee.left,Se,Wt)),Ee.operatorToken,H.checkDefined(yt(Ee.right,wt?Se:ve,Wt))):rn(Ee,ve,t)}function X(Ee,wt){if(wt)return rn(Ee,Se,t);let _i;for(let Q=0;QIn.name)),yi=vi?u.createYieldExpression(u.createToken(42),Yn(Tt,8388608)):Tt;if(Me)Q.push(u.createExpressionStatement(yi)),X0(wt.loopOutParameters,1,0,Q);else{const In=u.createUniqueName("state"),nr=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(In,void 0,void 0,yi)]));if(Q.push(nr),X0(wt.loopOutParameters,1,0,Q),wt.nonLocalJumps&8){let ur;_i?(_i.nonLocalJumps|=8,ur=u.createReturnStatement(In)):ur=u.createReturnStatement(u.createPropertyAccessExpression(In,"value")),Q.push(u.createIfStatement(u.createTypeCheck(In,"object"),ur))}if(wt.nonLocalJumps&2&&Q.push(u.createIfStatement(u.createStrictEquality(In,u.createStringLiteral("break")),u.createBreakStatement())),wt.labeledNonLocalBreaks||wt.labeledNonLocalContinues){const ur=[];vt(wt.labeledNonLocalBreaks,!0,In,_i,ur),vt(wt.labeledNonLocalContinues,!1,In,_i,ur),Q.push(u.createSwitchStatement(In,u.createCaseBlock(ur)))}}return Q}function tt(Ee,wt,_i,vi){wt?(Ee.labeledNonLocalBreaks||(Ee.labeledNonLocalBreaks=new Map),Ee.labeledNonLocalBreaks.set(_i,vi)):(Ee.labeledNonLocalContinues||(Ee.labeledNonLocalContinues=new Map),Ee.labeledNonLocalContinues.set(_i,vi))}function vt(Ee,wt,_i,vi,Q){Ee&&Ee.forEach((Me,Tt)=>{const yi=[];if(!vi||vi.labels&&vi.labels.get(Tt)){const In=u.createIdentifier(Tt);yi.push(wt?u.createBreakStatement(In):u.createContinueStatement(In))}else tt(vi,wt,Tt,Me),yi.push(u.createReturnStatement(_i));Q.push(u.createCaseClause(u.createStringLiteral(Me),yi))})}function fi(Ee,wt,_i,vi,Q){const Me=wt.name;if(So(Me))for(const Tt of Me.elements)Fd(Tt)||fi(Ee,Tt,_i,vi,Q);else{_i.push(u.createParameterDeclaration(void 0,void 0,Me));const Tt=b.getNodeCheckFlags(wt);if(Tt&65536||Q){const yi=u.createUniqueName("out_"+fu(Me));let In=0;Tt&65536&&(In|=1),vk(Ee)&&(Ee.initializer&&b.isBindingCapturedByNode(Ee.initializer,wt)&&(In|=2),(Ee.condition&&b.isBindingCapturedByNode(Ee.condition,wt)||Ee.incrementor&&b.isBindingCapturedByNode(Ee.incrementor,wt))&&(In|=1)),vi.push({flags:In,originalName:Me,outParamName:yi})}}}function fn(Ee,wt,_i,vi){const Q=wt.properties,Me=Q.length;for(let Tt=vi;TtJl(_s)&&!!Pn(_s.declarationList.declarations).initializer,vi=K;K=void 0;const Q=kn(wt.statements,Ne,ua);K=vi;const Me=ti(Q,_i),Tt=ti(Q,_s=>!_i(_s)),In=Po(Pn(Me),Jl).declarationList.declarations[0],nr=vc(In.initializer);let ur=ar(nr,ld);!ur&&eu(nr)&&nr.operatorToken.kind===28&&(ur=ar(nr.left,ld));const fa=Po(ur?vc(ur.right):nr,Mo),ss=Po(vc(fa.expression),w0),ls=ss.body.statements;let Rl=0,v1=-1;const fd=[];if(ur){const _s=ar(ls[Rl],Od);_s&&(fd.push(_s),Rl++),fd.push(ls[Rl]),Rl++,fd.push(u.createExpressionStatement(u.createAssignment(ur.left,Po(In.name,at))))}for(;!jp(qD(ls,v1));)v1--;yn(fd,ls,Rl,v1),v1<-1&&yn(fd,ls,v1+1);const Um=ar(qD(ls,v1),jp);for(const _s of Tt)jp(_s)&&(Um!=null&&Um.expression)&&!at(Um.expression)?fd.push(Um):fd.push(_s);return yn(fd,Me,1),u.restoreOuterExpressions(Ee.expression,u.restoreOuterExpressions(In.initializer,u.restoreOuterExpressions(ur&&ur.right,u.updateCallExpression(fa,u.restoreOuterExpressions(fa.expression,u.updateFunctionExpression(ss,void 0,void 0,void 0,void 0,ss.parameters,void 0,u.updateBlock(ss.body,fd))),void 0,fa.arguments))))}function rh(Ee,wt){if(Ee.transformFlags&32768||Ee.expression.kind===108||nf(vc(Ee.expression))){const{target:_i,thisArg:vi}=u.createCallBinding(Ee.expression,E);Ee.expression.kind===108&&Yn(vi,8);let Q;if(Ee.transformFlags&32768?Q=u.createFunctionApplyCall(H.checkDefined(yt(_i,pe,Wt)),Ee.expression.kind===108?vi:H.checkDefined(yt(vi,ve,Wt)),x1(Ee.arguments,!0,!1,!1)):Q=Pt(u.createFunctionCallCall(H.checkDefined(yt(_i,pe,Wt)),Ee.expression.kind===108?vi:H.checkDefined(yt(vi,ve,Wt)),kn(Ee.arguments,ve,Wt)),Ee),Ee.expression.kind===108){const Me=u.createLogicalOr(Q,Ta());Q=wt?u.createAssignment(De(),Me):Me}return su(Q,Ee)}return ik(Ee)&&(z|=131072),rn(Ee,ve,t)}function p4(Ee){if(Ge(Ee.arguments,rE)){const{target:wt,thisArg:_i}=u.createCallBinding(u.createPropertyAccessExpression(Ee.expression,"bind"),E);return u.createNewExpression(u.createFunctionApplyCall(H.checkDefined(yt(wt,ve,Wt)),_i,x1(u.createNodeArray([u.createVoidZero(),...Ee.arguments]),!0,!1,!1)),void 0,[])}return rn(Ee,ve,t)}function x1(Ee,wt,_i,vi){const Q=Ee.length,Me=Ha(Hl(Ee,Ve,(nr,ur,fa,ss)=>ur(nr,_i,vi&&ss===Q)));if(Me.length===1){const nr=Me[0];if(wt&&!v.downlevelIteration||zle(nr.expression)||VP(nr.expression,"___spreadArray"))return nr.expression}const Tt=s(),yi=Me[0].kind!==0;let In=yi?u.createArrayLiteralExpression():Me[0].expression;for(let nr=yi?0:1;nr0&&vi.push(u.createStringLiteral(_i.literal.text)),wt=u.createCallExpression(u.createPropertyAccessExpression(wt,"concat"),void 0,vi)}return Pt(wt,Ee)}function kc(){return u.createUniqueName("_super",48)}function ql(Ee,wt){const _i=z&8&&!wt?u.createPropertyAccessExpression(su(kc(),Ee),"prototype"):kc();return su(_i,Ee),Tc(_i,Ee),As(_i,Ee),_i}function Mc(Ee){return Ee.keywordToken===105&&Ee.name.escapedText==="target"?(z|=32768,u.createUniqueName("_newTarget",48)):Ee}function up(Ee,wt,_i){if(Y&1&&Co(wt)){const vi=se(32670,bs(wt)&16?81:65);k(Ee,wt,_i),ge(vi,0,0);return}k(Ee,wt,_i)}function $m(){Y&2||(Y|=2,t.enableSubstitution(80))}function Vh(){Y&1||(Y|=1,t.enableSubstitution(110),t.enableEmitNotification(176),t.enableEmitNotification(174),t.enableEmitNotification(177),t.enableEmitNotification(178),t.enableEmitNotification(219),t.enableEmitNotification(218),t.enableEmitNotification(262))}function g4(Ee,wt){return wt=B(Ee,wt),Ee===1?C5(wt):at(wt)?d3(wt):wt}function d3(Ee){if(Y&2&&!Oce(Ee)){const wt=Za(Ee,at);if(wt&&d_(wt))return Pt(u.getGeneratedNameForNode(wt),Ee)}return Ee}function d_(Ee){switch(Ee.parent.kind){case 208:case 263:case 266:case 260:return Ee.parent.name===Ee&&b.isDeclarationWithCollidingName(Ee.parent)}return!1}function C5(Ee){switch(Ee.kind){case 80:return O1(Ee);case 110:return Wf(Ee)}return Ee}function O1(Ee){if(Y&2&&!Oce(Ee)){const wt=b.getReferencedDeclarationWithCollidingName(Ee);if(wt&&!(gr(wt)&&h3(wt,Ee)))return Pt(u.getGeneratedNameForNode(Ya(wt)),Ee)}return Ee}function h3(Ee,wt){let _i=Za(wt);if(!_i||_i===Ee||_i.end<=Ee.pos||_i.pos>=Ee.end)return!1;const vi=QE(Ee);for(;_i;){if(_i===vi||_i===Ee)return!1;if(Yd(_i)&&_i.parent===Ee)return!0;_i=_i.parent}return!1}function Wf(Ee){return Y&1&&z&16?Pt(De(),Ee):Ee}function E4(Ee,wt){return No(wt)?u.getInternalName(Ee):u.createPropertyAccessExpression(u.getInternalName(Ee),"prototype")}function Hh(Ee,wt){if(!Ee||!wt||Ge(Ee.parameters))return!1;const _i=Ki(Ee.body.statements);if(!_i||!cl(_i)||_i.kind!==244)return!1;const vi=_i.expression;if(!cl(vi)||vi.kind!==213)return!1;const Q=vi.expression;if(!cl(Q)||Q.kind!==108)return!1;const Me=Sa(vi.arguments);if(!Me||!cl(Me)||Me.kind!==230)return!1;const Tt=Me.expression;return at(Tt)&&Tt.escapedText==="arguments"}}var WMt=o({"src/compiler/transformers/es2015.ts"(){Bo()}});function A7e(t){const{factory:u}=t,s=t.getCompilerOptions();let d,f;(s.jsx===1||s.jsx===3)&&(d=t.onEmitNode,t.onEmitNode=v,t.enableEmitNotification(286),t.enableEmitNotification(287),t.enableEmitNotification(285),f=[]);const p=t.onSubstituteNode;return t.onSubstituteNode=b,t.enableSubstitution(211),t.enableSubstitution(303),Wp(t,E);function E(M){return M}function v(M,z,j){switch(z.kind){case 286:case 287:case 285:const J=z.tagName;f[z1(J)]=!0;break}d(M,z,j)}function b(M,z){return z.id&&f&&f[z.id]?p(M,z):(z=p(M,z),Ru(z)?B(z):Uc(z)?k(z):z)}function B(M){if(ea(M.name))return M;const z=T(M.name);return z?Pt(u.createElementAccessExpression(M.expression,z),M):M}function k(M){const z=at(M.name)&&T(M.name);return z?u.updatePropertyAssignment(M,z,M.initializer):M}function T(M){const z=xv(M);if(z!==void 0&&z>=83&&z<=118)return Pt(u.createStringLiteralFromNode(M),M)}}var GMt=o({"src/compiler/transformers/es5.ts"(){Bo()}});function JMt(t){switch(t){case 2:return"return";case 3:return"break";case 4:return"yield";case 5:return"yield*";case 7:return"endfinally";default:return}}function S7e(t){const{factory:u,getEmitHelperFactory:s,resumeLexicalEnvironment:d,endLexicalEnvironment:f,hoistFunctionDeclaration:p,hoistVariableDeclaration:E}=t,v=t.getCompilerOptions(),b=js(v),B=t.getEmitResolver(),k=t.onSubstituteNode;t.onSubstituteNode=we;let T,M,z,j,J,K,Y,oe,se,ge,ae=1,Ce,ne,ve,Se,Ne=0,pe=0,fe,xe,Be,We,Ae,De,He,Je;return Wp(t,mt);function mt(Ve){if(Ve.isDeclarationFile||!(Ve.transformFlags&2048))return Ve;const di=rn(Ve,Ye,t);return iD(di,t.readEmitHelpers()),di}function Ye(Ve){const di=Ve.transformFlags;return j?je(Ve):z?Ke(Ve):U0(Ve)&&Ve.asteriskToken?Yt(Ve):di&2048?rn(Ve,Ye,t):Ve}function je(Ve){switch(Ve.kind){case 246:return Qo(Ve);case 247:return Qe(Ve);case 255:return Ot(Ve);case 256:return $i(Ve);default:return Ke(Ve)}}function Ke(Ve){switch(Ve.kind){case 262:return Ie(Ve);case 218:return st(Ve);case 177:case 178:return Bt(Ve);case 243:return ei(Ve);case 248:return Mt(Ve);case 249:return Xt(Ve);case 252:return ii(Ve);case 251:return et(Ve);case 253:return ni(Ve);default:return Ve.transformFlags&1048576?Gt(Ve):Ve.transformFlags&4196352?rn(Ve,Ye,t):Ve}}function Gt(Ve){switch(Ve.kind){case 226:return ft(Ve);case 361:return xn(Ve);case 227:return an(Ve);case 229:return Pi(Ve);case 209:return Fi(Ve);case 210:return oa(Ve);case 212:return Fr(Ve);case 213:return wa(Ve);case 214:return bt(Ve);default:return rn(Ve,Ye,t)}}function Yt(Ve){switch(Ve.kind){case 262:return Ie(Ve);case 218:return st(Ve);default:return H.failBadSyntaxKind(Ve)}}function Ie(Ve){if(Ve.asteriskToken)Ve=su(Pt(u.createFunctionDeclaration(Ve.modifiers,void 0,Ve.name,void 0,Cc(Ve.parameters,Ye,t),void 0,It(Ve.body)),Ve),Ve);else{const di=z,Mn=j;z=!1,j=!1,Ve=rn(Ve,Ye,t),z=di,j=Mn}if(z){p(Ve);return}else return Ve}function st(Ve){if(Ve.asteriskToken)Ve=su(Pt(u.createFunctionExpression(void 0,void 0,Ve.name,void 0,Cc(Ve.parameters,Ye,t),void 0,It(Ve.body)),Ve),Ve);else{const di=z,Mn=j;z=!1,j=!1,Ve=rn(Ve,Ye,t),z=di,j=Mn}return Ve}function Bt(Ve){const di=z,Mn=j;return z=!1,j=!1,Ve=rn(Ve,Ye,t),z=di,j=Mn,Ve}function It(Ve){const di=[],Mn=z,ka=j,Fo=J,To=K,uc=Y,mc=oe,bl=se,Ll=ge,kc=ae,ql=Ce,Mc=ne,up=ve,$m=Se;z=!0,j=!1,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,ge=void 0,ae=1,Ce=void 0,ne=void 0,ve=void 0,Se=u.createTempVariable(void 0),d();const Vh=u.copyPrologue(Ve.statements,di,!1,Ye);jn(Ve.statements,Vh);const g4=tt();return YE(di,f()),di.push(u.createReturnStatement(g4)),z=Mn,j=ka,J=Fo,K=To,Y=uc,oe=mc,se=bl,ge=Ll,ae=kc,Ce=ql,ne=Mc,ve=up,Se=$m,Pt(u.createBlock(di,Ve.multiLine),Ve)}function ei(Ve){if(Ve.transformFlags&1048576){sa(Ve.declarationList);return}else{if(bs(Ve)&2097152)return Ve;for(const Mn of Ve.declarationList.declarations)E(Mn.name);const di=xP(Ve.declarationList);return di.length===0?void 0:As(u.createExpressionStatement(u.inlineExpressions(Vt(di,xa))),Ve)}}function ft(Ve){const di=Y0e(Ve);switch(di){case 0:return Ni(Ve);case 1:return Ut(Ve);default:return H.assertNever(di)}}function Ut(Ve){const{left:di,right:Mn}=Ve;if(le(Mn)){let ka;switch(di.kind){case 211:ka=u.updatePropertyAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),di.name);break;case 212:ka=u.updateElementAccessExpression(di,X(H.checkDefined(yt(di.expression,Ye,Df))),X(H.checkDefined(yt(di.argumentExpression,Ye,Wt))));break;default:ka=H.checkDefined(yt(di,Ye,Wt));break}const Fo=Ve.operatorToken.kind;return pM(Fo)?Pt(u.createAssignment(ka,Pt(u.createBinaryExpression(X(ka),gM(Fo),H.checkDefined(yt(Mn,Ye,Wt))),Ve)),Ve):u.updateBinaryExpression(Ve,ka,Ve.operatorToken,H.checkDefined(yt(Mn,Ye,Wt)))}return rn(Ve,Ye,t)}function Ni(Ve){return le(Ve.right)?jye(Ve.operatorToken.kind)?Jn(Ve):Ve.operatorToken.kind===28?Vi(Ve):u.updateBinaryExpression(Ve,X(H.checkDefined(yt(Ve.left,Ye,Wt))),Ve.operatorToken,H.checkDefined(yt(Ve.right,Ye,Wt))):rn(Ve,Ye,t)}function Vi(Ve){let di=[];return Mn(Ve.left),Mn(Ve.right),u.inlineExpressions(di);function Mn(ka){eu(ka)&&ka.operatorToken.kind===28?(Mn(ka.left),Mn(ka.right)):(le(ka)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(ka,Ye,Wt))))}}function xn(Ve){let di=[];for(const Mn of Ve.elements)eu(Mn)&&Mn.operatorToken.kind===28?di.push(Vi(Mn)):(le(Mn)&&di.length>0&&($(1,[u.createExpressionStatement(u.inlineExpressions(di))]),di=[]),di.push(H.checkDefined(yt(Mn,Ye,Wt))));return u.inlineExpressions(di)}function Jn(Ve){const di=Ct(),Mn=it();return hl(Mn,H.checkDefined(yt(Ve.left,Ye,Wt)),Ve.left),Ve.operatorToken.kind===56?fl(di,Mn,Ve.left):Oi(di,Mn,Ve.left),hl(Mn,H.checkDefined(yt(Ve.right,Ye,Wt)),Ve.right),ct(di),Mn}function an(Ve){if(le(Ve.whenTrue)||le(Ve.whenFalse)){const di=Ct(),Mn=Ct(),ka=it();return fl(di,H.checkDefined(yt(Ve.condition,Ye,Wt)),Ve.condition),hl(ka,H.checkDefined(yt(Ve.whenTrue,Ye,Wt)),Ve.whenTrue),Ga(Mn),ct(di),hl(ka,H.checkDefined(yt(Ve.whenFalse,Ye,Wt)),Ve.whenFalse),ct(Mn),ka}return rn(Ve,Ye,t)}function Pi(Ve){const di=Ct(),Mn=yt(Ve.expression,Ye,Wt);if(Ve.asteriskToken){const ka=bs(Ve.expression)&8388608?Mn:Pt(s().createValuesHelper(Mn),Ve);Zc(ka,Ve)}else yh(Mn,Ve);return ct(di),$p(Ve)}function Fi(Ve){return Yu(Ve.elements,void 0,void 0,Ve.multiLine)}function Yu(Ve,di,Mn,ka){const Fo=te(Ve);let To;if(Fo>0){To=it();const bl=kn(Ve,Ye,Wt,0,Fo);hl(To,u.createArrayLiteralExpression(di?[di,...bl]:bl)),di=void 0}const uc=nn(Ve,mc,[],Fo);return To?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(uc,ka)]):Pt(u.createArrayLiteralExpression(di?[di,...uc]:uc,ka),Mn);function mc(bl,Ll){if(le(Ll)&&bl.length>0){const kc=To!==void 0;To||(To=it()),hl(To,kc?u.createArrayConcatCall(To,[u.createArrayLiteralExpression(bl,ka)]):u.createArrayLiteralExpression(di?[di,...bl]:bl,ka)),di=void 0,bl=[]}return bl.push(H.checkDefined(yt(Ll,Ye,Wt))),bl}}function oa(Ve){const di=Ve.properties,Mn=Ve.multiLine,ka=te(di),Fo=it();hl(Fo,u.createObjectLiteralExpression(kn(di,Ye,Z3,0,ka),Mn));const To=nn(di,uc,[],ka);return To.push(Mn?bh(ks(Pt(u.cloneNode(Fo),Fo),Fo.parent)):Fo),u.inlineExpressions(To);function uc(mc,bl){le(bl)&&mc.length>0&&(Il(u.createExpressionStatement(u.inlineExpressions(mc))),mc=[]);const Ll=LFe(u,Ve,bl,Fo),kc=yt(Ll,Ye,Wt);return kc&&(Mn&&bh(kc),mc.push(kc)),mc}}function Fr(Ve){return le(Ve.argumentExpression)?u.updateElementAccessExpression(Ve,X(H.checkDefined(yt(Ve.expression,Ye,Df))),H.checkDefined(yt(Ve.argumentExpression,Ye,Wt))):rn(Ve,Ye,t)}function wa(Ve){if(!dm(Ve)&&L(Ve.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(Ve.expression,E,b,!0);return su(Pt(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Df))),Mn,Yu(Ve.arguments)),Ve),Ve)}return rn(Ve,Ye,t)}function bt(Ve){if(L(Ve.arguments,le)){const{target:di,thisArg:Mn}=u.createCallBinding(u.createPropertyAccessExpression(Ve.expression,"bind"),E);return su(Pt(u.createNewExpression(u.createFunctionApplyCall(X(H.checkDefined(yt(di,Ye,Wt))),Mn,Yu(Ve.arguments,u.createVoidZero())),void 0,[]),Ve),Ve)}return rn(Ve,Ye,t)}function jn(Ve,di=0){const Mn=Ve.length;for(let ka=di;ka0)break;Fo.push(xa(uc))}Fo.length&&(Il(u.createExpressionStatement(u.inlineExpressions(Fo))),ka+=Fo.length,Fo=[])}}function xa(Ve){return As(u.createAssignment(As(u.cloneNode(Ve.name),Ve.name),H.checkDefined(yt(Ve.initializer,Ye,Wt))),Ve)}function aa(Ve){if(le(Ve))if(le(Ve.thenStatement)||le(Ve.elseStatement)){const di=Ct(),Mn=Ve.elseStatement?Ct():void 0;fl(Ve.elseStatement?Mn:di,H.checkDefined(yt(Ve.expression,Ye,Wt)),Ve.expression),Ln(Ve.thenStatement),Ve.elseStatement&&(Ga(di),ct(Mn),Ln(Ve.elseStatement)),ct(di)}else Il(yt(Ve,Ye,ua));else Il(yt(Ve,Ye,ua))}function Ta(Ve){if(le(Ve)){const di=Ct(),Mn=Ct();wn(di),ct(Mn),Ln(Ve.statement),ct(di),Oi(Mn,H.checkDefined(yt(Ve.expression,Ye,Wt))),Rr()}else Il(yt(Ve,Ye,ua))}function Qo(Ve){return j?(Va(),Ve=rn(Ve,Ye,t),Rr(),Ve):rn(Ve,Ye,t)}function bo(Ve){if(le(Ve)){const di=Ct(),Mn=wn(di);ct(di),fl(Mn,H.checkDefined(yt(Ve.expression,Ye,Wt))),Ln(Ve.statement),Ga(di),Rr()}else Il(yt(Ve,Ye,ua))}function Qe(Ve){return j?(Va(),Ve=rn(Ve,Ye,t),Rr(),Ve):rn(Ve,Ye,t)}function _t(Ve){if(le(Ve)){const di=Ct(),Mn=Ct(),ka=wn(Mn);if(Ve.initializer){const Fo=Ve.initializer;Ad(Fo)?sa(Fo):Il(Pt(u.createExpressionStatement(H.checkDefined(yt(Fo,Ye,Wt))),Fo))}ct(di),Ve.condition&&fl(ka,H.checkDefined(yt(Ve.condition,Ye,Wt))),Ln(Ve.statement),ct(Mn),Ve.incrementor&&Il(Pt(u.createExpressionStatement(H.checkDefined(yt(Ve.incrementor,Ye,Wt))),Ve.incrementor)),Ga(di),Rr()}else Il(yt(Ve,Ye,ua))}function Mt(Ve){j&&Va();const di=Ve.initializer;if(di&&Ad(di)){for(const ka of di.declarations)E(ka.name);const Mn=xP(di);Ve=u.updateForStatement(Ve,Mn.length>0?u.inlineExpressions(Vt(Mn,xa)):void 0,yt(Ve.condition,Ye,Wt),yt(Ve.incrementor,Ye,Wt),Rh(Ve.statement,Ye,t))}else Ve=rn(Ve,Ye,t);return j&&Rr(),Ve}function qt(Ve){if(le(Ve)){const di=it(),Mn=it(),ka=it(),Fo=u.createLoopVariable(),To=Ve.initializer;E(Fo),hl(di,H.checkDefined(yt(Ve.expression,Ye,Wt))),hl(Mn,u.createArrayLiteralExpression()),Il(u.createForInStatement(ka,di,u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(Mn,"push"),void 0,[ka])))),hl(Fo,u.createNumericLiteral(0));const uc=Ct(),mc=Ct(),bl=wn(mc);ct(uc),fl(bl,u.createLessThan(Fo,u.createPropertyAccessExpression(Mn,"length"))),hl(ka,u.createElementAccessExpression(Mn,Fo)),fl(mc,u.createBinaryExpression(ka,103,di));let Ll;if(Ad(To)){for(const kc of To.declarations)E(kc.name);Ll=u.cloneNode(To.declarations[0].name)}else Ll=H.checkDefined(yt(To,Ye,Wt)),H.assert(Df(Ll));hl(Ll,ka),Ln(Ve.statement),ct(mc),Il(u.createExpressionStatement(u.createPostfixIncrement(Fo))),Ga(uc),Rr()}else Il(yt(Ve,Ye,ua))}function Xt(Ve){j&&Va();const di=Ve.initializer;if(Ad(di)){for(const Mn of di.declarations)E(Mn.name);Ve=u.updateForInStatement(Ve,di.declarations[0].name,H.checkDefined(yt(Ve.expression,Ye,Wt)),H.checkDefined(yt(Ve.statement,Ye,ua,u.liftToBlock)))}else Ve=rn(Ve,Ye,t);return j&&Rr(),Ve}function Pe(Ve){const di=Ko(Ve.label?fu(Ve.label):void 0);di>0?Ga(di,Ve):Il(Ve)}function et(Ve){if(j){const di=Ko(Ve.label&&fu(Ve.label));if(di>0)return Wo(di,Ve)}return rn(Ve,Ye,t)}function Et(Ve){const di=ho(Ve.label?fu(Ve.label):void 0);di>0?Ga(di,Ve):Il(Ve)}function ii(Ve){if(j){const di=ho(Ve.label&&fu(Ve.label));if(di>0)return Wo(di,Ve)}return rn(Ve,Ye,t)}function me(Ve){sf(yt(Ve.expression,Ye,Wt),Ve)}function ni(Ve){return Nc(yt(Ve.expression,Ye,Wt),Ve)}function xi(Ve){le(Ve)?(du(X(H.checkDefined(yt(Ve.expression,Ye,Wt)))),Ln(Ve.statement),Ou()):Il(yt(Ve,Ye,ua))}function pt(Ve){if(le(Ve.caseBlock)){const di=Ve.caseBlock,Mn=di.clauses.length,ka=wo(),Fo=X(H.checkDefined(yt(Ve.expression,Ye,Wt))),To=[];let uc=-1;for(let Ll=0;Ll0)break;bl.push(u.createCaseClause(H.checkDefined(yt(ql.expression,Ye,Wt)),[Wo(To[kc],ql.expression)]))}else Ll++}bl.length&&(Il(u.createSwitchStatement(Fo,u.createCaseBlock(bl))),mc+=bl.length,bl=[]),Ll>0&&(mc+=Ll,Ll=0)}uc>=0?Ga(To[uc]):Ga(ka);for(let Ll=0;Ll=0;Mn--){const ka=oe[Mn];if(Tl(ka)){if(ka.labelText===Ve)return!0}else break}return!1}function ho(Ve){if(oe)if(Ve)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(Tl(Mn)&&Mn.labelText===Ve)return Mn.breakLabel;if(Ul(Mn)&&Cl(Ve,di-1))return Mn.breakLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(Ul(Mn))return Mn.breakLabel}return 0}function Ko(Ve){if(oe)if(Ve)for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn)&&Cl(Ve,di-1))return Mn.continueLabel}else for(let di=oe.length-1;di>=0;di--){const Mn=oe[di];if(hd(Mn))return Mn.continueLabel}return 0}function nd(Ve){if(Ve!==void 0&&Ve>0){ge===void 0&&(ge=[]);const di=u.createNumericLiteral(-1);return ge[Ve]===void 0?ge[Ve]=[di]:ge[Ve].push(di),di}return u.createOmittedExpression()}function Q0(Ve){const di=u.createNumericLiteral(Ve);return BZ(di,3,JMt(Ve)),di}function Wo(Ve,di){return H.assertLessThan(0,Ve,"Invalid label"),Pt(u.createReturnStatement(u.createArrayLiteralExpression([Q0(3),nd(Ve)])),di)}function Nc(Ve,di){return Pt(u.createReturnStatement(u.createArrayLiteralExpression(Ve?[Q0(2),Ve]:[Q0(2)])),di)}function $p(Ve){return Pt(u.createCallExpression(u.createPropertyAccessExpression(Se,"sent"),void 0,[]),Ve)}function Pc(){$(0)}function Il(Ve){Ve?$(1,[Ve]):Pc()}function hl(Ve,di,Mn){$(2,[Ve,di],Mn)}function Ga(Ve,di){$(3,[Ve],di)}function Oi(Ve,di,Mn){$(4,[Ve,di],Mn)}function fl(Ve,di,Mn){$(5,[Ve,di],Mn)}function Zc(Ve,di){$(7,[Ve],di)}function yh(Ve,di){$(6,[Ve],di)}function sf(Ve,di){$(8,[Ve],di)}function X0(Ve,di){$(9,[Ve],di)}function yc(){$(10)}function $(Ve,di,Mn){Ce===void 0&&(Ce=[],ne=[],ve=[]),se===void 0&&ct(Ct());const ka=Ce.length;Ce[ka]=Ve,ne[ka]=di,ve[ka]=Mn}function tt(){Ne=0,pe=0,fe=void 0,xe=!1,Be=!1,We=void 0,Ae=void 0,De=void 0,He=void 0,Je=void 0;const Ve=vt();return s().createGeneratorHelper(Yn(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,Se)],void 0,u.createBlock(Ve,Ve.length>0)),1048576))}function vt(){if(Ce){for(let Ve=0;Ve=0;di--){const Mn=Je[di];Ae=[u.createWithStatement(Mn.expression,u.createBlock(Ae))]}if(He){const{startLabel:di,catchLabel:Mn,finallyLabel:ka,endLabel:Fo}=He;Ae.unshift(u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createPropertyAccessExpression(Se,"trys"),"push"),void 0,[u.createArrayLiteralExpression([nd(di),nd(Mn),nd(ka),nd(Fo)])]))),He=void 0}Ve&&Ae.push(u.createExpressionStatement(u.createAssignment(u.createPropertyAccessExpression(Se,"label"),u.createNumericLiteral(pe+1))))}We.push(u.createCaseClause(u.createNumericLiteral(pe),Ae||[])),Ae=void 0}function Nu(Ve){if(se)for(let di=0;dis.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(ct))),Ct),s.createVoidZero())));Di(te,yt(K.externalHelpersImportDeclaration,fe,ua)),yn(te,kn(le.statements,fe,ua,de)),pe(te,!1),YE(te,p());const Oe=s.updateSourceFile(le,Pt(s.createNodeArray(te),le.statements));return iD(Oe,t.readEmitHelpers()),Oe}function Ce(le){const te=s.createIdentifier("define"),we=RV(s,le,B,v),de=J4(le)&&le,{aliasedModuleNames:Oe,unaliasedModuleNames:X,importAliasNames:it}=ve(le,!0),Ct=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(te,void 0,[...we?[we]:[],s.createArrayLiteralExpression(de?Dt:[s.createStringLiteral("require"),s.createStringLiteral("exports"),...Oe,...X]),de?de.statements.length?de.statements[0].expression:s.createObjectLiteralExpression():s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...it],void 0,Ne(le))]))]),le.statements));return iD(Ct,t.readEmitHelpers()),Ct}function ne(le){const{aliasedModuleNames:te,unaliasedModuleNames:we,importAliasNames:de}=ve(le,!1),Oe=RV(s,le,B,v),X=s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"factory")],void 0,Pt(s.createBlock([s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("module"),"object"),s.createTypeCheck(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),"object")),s.createBlock([s.createVariableStatement(void 0,[s.createVariableDeclaration("v",void 0,void 0,s.createCallExpression(s.createIdentifier("factory"),void 0,[s.createIdentifier("require"),s.createIdentifier("exports")]))]),Yn(s.createIfStatement(s.createStrictInequality(s.createIdentifier("v"),s.createIdentifier("undefined")),s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),s.createIdentifier("v")))),1)]),s.createIfStatement(s.createLogicalAnd(s.createTypeCheck(s.createIdentifier("define"),"function"),s.createPropertyAccessExpression(s.createIdentifier("define"),"amd")),s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("define"),void 0,[...Oe?[Oe]:[],s.createArrayLiteralExpression([s.createStringLiteral("require"),s.createStringLiteral("exports"),...te,...we]),s.createIdentifier("factory")]))])))],!0),void 0)),it=s.updateSourceFile(le,Pt(s.createNodeArray([s.createExpressionStatement(s.createCallExpression(X,void 0,[s.createFunctionExpression(void 0,void 0,void 0,void 0,[s.createParameterDeclaration(void 0,void 0,"require"),s.createParameterDeclaration(void 0,void 0,"exports"),...de],void 0,Ne(le))]))]),le.statements));return iD(it,t.readEmitHelpers()),it}function ve(le,te){const we=[],de=[],Oe=[];for(const X of le.amdDependencies)X.name?(we.push(s.createStringLiteral(X.path)),Oe.push(s.createParameterDeclaration(void 0,void 0,X.name))):de.push(s.createStringLiteral(X.path));for(const X of K.externalImports){const it=W7(s,X,J,B,b,v),Ct=zB(s,X,J);it&&(te&&Ct?(Yn(Ct,8),we.push(it),Oe.push(s.createParameterDeclaration(void 0,void 0,Ct))):de.push(it))}return{aliasedModuleNames:we,unaliasedModuleNames:de,importAliasNames:Oe}}function Se(le){if(_1(le)||$c(le)||!W7(s,le,J,B,b,v))return;const te=zB(s,le,J),we=wa(le,te);if(we!==te)return s.createExpressionStatement(s.createAssignment(te,we))}function Ne(le){f();const te=[],we=s.copyPrologue(le.statements,te,!v.noImplicitUseStrict,fe);ge()&&Di(te,Pe()),S(K.exportedNames)&&Di(te,s.createExpressionStatement(nn(K.exportedNames,(Oe,X)=>s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.createIdentifier(fu(X))),Oe),s.createVoidZero()))),Di(te,yt(K.externalHelpersImportDeclaration,fe,ua)),T===2&&yn(te,qi(K.externalImports,Se)),yn(te,kn(le.statements,fe,ua,we)),pe(te,!0),YE(te,p());const de=s.createBlock(te,!0);return oe&&S7(de,Yet),de}function pe(le,te){if(K.exportEquals){const we=yt(K.exportEquals.expression,We,Wt);if(we)if(te){const de=s.createReturnStatement(we);Pt(de,K.exportEquals),Yn(de,3840),le.push(de)}else{const de=s.createExpressionStatement(s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("module"),"exports"),we));Pt(de,K.exportEquals),Yn(de,3072),le.push(de)}}}function fe(le){switch(le.kind){case 272:return bt(le);case 271:return Ln(le);case 278:return Ai(le);case 277:return Dn(le);default:return xe(le)}}function xe(le){switch(le.kind){case 243:return sa(le);case 262:return Cn(le);case 263:return tu(le);case 248:return Je(le,!0);case 249:return mt(le);case 250:return Ye(le);case 246:return je(le);case 247:return Ke(le);case 256:return Gt(le);case 254:return Yt(le);case 245:return Ie(le);case 255:return st(le);case 269:return Bt(le);case 296:return It(le);case 297:return ei(le);case 258:return ft(le);case 299:return Ut(le);case 241:return Ni(le);default:return We(le)}}function Be(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return Je(le,!1);case 244:return Vi(le);case 217:return xn(le,te);case 360:return Jn(le,te);case 213:if(dm(le)&&J.impliedNodeFormat===void 0)return Pi(le);break;case 226:if(r5(le))return He(le,te);break;case 224:case 225:return an(le,te)}return rn(le,We,t)}function We(le){return Be(le,!1)}function Ae(le){return Be(le,!0)}function De(le){if(ys(le))for(const te of le.properties)switch(te.kind){case 303:if(De(te.initializer))return!0;break;case 304:if(De(te.name))return!0;break;case 305:if(De(te.expression))return!0;break;case 174:case 177:case 178:return!1;default:H.assertNever(te,"Unhandled object member kind")}else if(vh(le)){for(const te of le.elements)if(rE(te)){if(De(te.expression))return!0}else if(De(te))return!0}else if(at(le))return S(on(le))>(CY(le)?1:0);return!1}function He(le,te){return De(le.left)?wk(le,We,t,0,!te,xa):rn(le,We,t)}function Je(le,te){if(te&&le.initializer&&Ad(le.initializer)&&!(le.initializer.flags&7)){const we=Qe(void 0,le.initializer,!1);if(we){const de=[],Oe=yt(le.initializer,Ae,Ad),X=s.createVariableStatement(void 0,Oe);de.push(X),yn(de,we);const it=yt(le.condition,We,Wt),Ct=yt(le.incrementor,Ae,Wt),ct=Rh(le.statement,te?xe:We,t);return de.push(s.updateForStatement(le,void 0,it,Ct,ct)),de}}return s.updateForStatement(le,yt(le.initializer,Ae,l4),yt(le.condition,We,Wt),yt(le.incrementor,Ae,Wt),Rh(le.statement,te?xe:We,t))}function mt(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0);if(Ge(te)){const we=yt(le.initializer,Ae,l4),de=yt(le.expression,We,Wt),Oe=Rh(le.statement,xe,t),X=go(Oe)?s.updateBlock(Oe,[...te,...Oe.statements]):s.createBlock([...te,Oe],!0);return s.updateForInStatement(le,we,de,X)}}return s.updateForInStatement(le,yt(le.initializer,Ae,l4),yt(le.expression,We,Wt),Rh(le.statement,xe,t))}function Ye(le){if(Ad(le.initializer)&&!(le.initializer.flags&7)){const te=Qe(void 0,le.initializer,!0),we=yt(le.initializer,Ae,l4),de=yt(le.expression,We,Wt);let Oe=Rh(le.statement,xe,t);return Ge(te)&&(Oe=go(Oe)?s.updateBlock(Oe,[...te,...Oe.statements]):s.createBlock([...te,Oe],!0)),s.updateForOfStatement(le,le.awaitModifier,we,de,Oe)}return s.updateForOfStatement(le,le.awaitModifier,yt(le.initializer,Ae,l4),yt(le.expression,We,Wt),Rh(le.statement,xe,t))}function je(le){return s.updateDoStatement(le,Rh(le.statement,xe,t),yt(le.expression,We,Wt))}function Ke(le){return s.updateWhileStatement(le,yt(le.expression,We,Wt),Rh(le.statement,xe,t))}function Gt(le){return s.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,xe,ua,s.liftToBlock)))}function Yt(le){return s.updateWithStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.statement,xe,ua,s.liftToBlock)))}function Ie(le){return s.updateIfStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.thenStatement,xe,ua,s.liftToBlock)),yt(le.elseStatement,xe,ua,s.liftToBlock))}function st(le){return s.updateSwitchStatement(le,yt(le.expression,We,Wt),H.checkDefined(yt(le.caseBlock,xe,YP)))}function Bt(le){return s.updateCaseBlock(le,kn(le.clauses,xe,JU))}function It(le){return s.updateCaseClause(le,yt(le.expression,We,Wt),kn(le.statements,xe,ua))}function ei(le){return rn(le,xe,t)}function ft(le){return rn(le,xe,t)}function Ut(le){return s.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,xe,go)))}function Ni(le){return le=rn(le,xe,t),le}function Vi(le){return s.updateExpressionStatement(le,yt(le.expression,Ae,Wt))}function xn(le,te){return s.updateParenthesizedExpression(le,yt(le.expression,te?Ae:We,Wt))}function Jn(le,te){return s.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ae:We,Wt))}function an(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!sl(le.operand)&&!rD(le.operand)&&!Ele(le.operand)){const we=on(le.operand);if(we){let de,Oe=yt(le.operand,We,Wt);Iv(le)?Oe=s.updatePrefixUnaryExpression(le,Oe):(Oe=s.updatePostfixUnaryExpression(le,Oe),te||(de=s.createTempVariable(E),Oe=s.createAssignment(de,Oe),Pt(Oe,le)),Oe=s.createComma(Oe,s.cloneNode(le.operand)),Pt(Oe,le));for(const X of we)Y[Us(Oe)]=!0,Oe=Et(X,Oe),Pt(Oe,le);return de&&(Y[Us(Oe)]=!0,Oe=s.createComma(Oe,de),Pt(Oe,le)),Oe}}return rn(le,We,t)}function Pi(le){if(T===0&&k>=7)return rn(le,We,t);const te=W7(s,le,J,B,b,v),we=yt(Ki(le.arguments),We,Wt),de=te&&(!we||!rs(we)||we.text!==te.text)?te:we,Oe=!!(le.transformFlags&16384);switch(v.module){case 2:return Yu(de,Oe);case 3:return Fi(de??s.createVoidZero(),Oe);case 1:default:return oa(de)}}function Fi(le,te){if(oe=!0,Q2(le)){const we=sl(le)?le:rs(le)?s.createStringLiteralFromNode(le):Yn(Pt(s.cloneNode(le),le),3072);return s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,oa(le),void 0,Yu(we,te))}else{const we=s.createTempVariable(E);return s.createComma(s.createAssignment(we,le),s.createConditionalExpression(s.createIdentifier("__syncRequire"),void 0,oa(we,!0),void 0,Yu(we,te)))}}function Yu(le,te){const we=s.createUniqueName("resolve"),de=s.createUniqueName("reject"),Oe=[s.createParameterDeclaration(void 0,void 0,we),s.createParameterDeclaration(void 0,void 0,de)],X=s.createBlock([s.createExpressionStatement(s.createCallExpression(s.createIdentifier("require"),void 0,[s.createArrayLiteralExpression([le||s.createOmittedExpression()]),we,de]))]);let it;k>=2?it=s.createArrowFunction(void 0,void 0,Oe,void 0,void 0,X):(it=s.createFunctionExpression(void 0,void 0,void 0,void 0,Oe,void 0,X),te&&Yn(it,16));const Ct=s.createNewExpression(s.createIdentifier("Promise"),void 0,[it]);return t_(v)?s.createCallExpression(s.createPropertyAccessExpression(Ct,s.createIdentifier("then")),void 0,[d().createImportStarCallbackHelper()]):Ct}function oa(le,te){const we=le&&!lE(le)&&!te,de=s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Promise"),"resolve"),void 0,we?k>=2?[s.createTemplateExpression(s.createTemplateHead(""),[s.createTemplateSpan(le,s.createTemplateTail(""))])]:[s.createCallExpression(s.createPropertyAccessExpression(s.createStringLiteral(""),"concat"),void 0,[le])]:[]);let Oe=s.createCallExpression(s.createIdentifier("require"),void 0,we?[s.createIdentifier("s")]:le?[le]:[]);t_(v)&&(Oe=d().createImportStarHelper(Oe));const X=we?[s.createParameterDeclaration(void 0,void 0,"s")]:[];let it;return k>=2?it=s.createArrowFunction(void 0,void 0,X,void 0,void 0,Oe):it=s.createFunctionExpression(void 0,void 0,void 0,void 0,X,void 0,s.createBlock([s.createReturnStatement(Oe)])),s.createCallExpression(s.createPropertyAccessExpression(de,"then"),void 0,[it])}function Fr(le,te){return!t_(v)||Mp(le)&2?te:YAe(le)?d().createImportStarHelper(te):te}function wa(le,te){return!t_(v)||Mp(le)&2?te:sQ(le)?d().createImportStarHelper(te):qde(le)?d().createImportDefaultHelper(te):te}function bt(le){let te;const we=Q8(le);if(T!==2)if(le.importClause){const de=[];we&&!c7(le)?de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,wa(le,jn(le)))):(de.push(s.createVariableDeclaration(s.getGeneratedNameForNode(le),void 0,void 0,wa(le,jn(le)))),we&&c7(le)&&de.push(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)))),te=Di(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList(de,k>=2?2:0)),le),le))}else return su(Pt(s.createExpressionStatement(jn(le)),le),le);else we&&c7(le)&&(te=Di(te,s.createVariableStatement(void 0,s.createVariableDeclarationList([su(Pt(s.createVariableDeclaration(s.cloneNode(we.name),void 0,void 0,s.getGeneratedNameForNode(le)),le),le)],k>=2?2:0))));return te=Ta(te,le),B0(te)}function jn(le){const te=W7(s,le,J,B,b,v),we=[];return te&&we.push(te),s.createCallExpression(s.createIdentifier("require"),void 0,we)}function Ln(le){H.assert(yv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return T!==2?Qu(le,32)?te=Di(te,su(Pt(s.createExpressionStatement(Et(le.name,jn(le))),le),le)):te=Di(te,su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(s.cloneNode(le.name),void 0,void 0,jn(le))],k>=2?2:0)),le),le)):Qu(le,32)&&(te=Di(te,su(Pt(s.createExpressionStatement(Et(s.getExportName(le),s.getLocalName(le))),le),le))),te=Qo(te,le),B0(te)}function Ai(le){if(!le.moduleSpecifier)return;const te=s.getGeneratedNameForNode(le);if(le.exportClause&&ip(le.exportClause)){const we=[];T!==2&&we.push(su(Pt(s.createVariableStatement(void 0,s.createVariableDeclarationList([s.createVariableDeclaration(te,void 0,void 0,jn(le))])),le),le));for(const de of le.exportClause.elements)if(k===0)we.push(su(Pt(s.createExpressionStatement(d().createCreateBindingHelper(te,s.createStringLiteralFromNode(de.propertyName||de.name),de.propertyName?s.createStringLiteralFromNode(de.name):void 0)),de),de));else{const Oe=!!t_(v)&&!(Mp(le)&2)&&fu(de.propertyName||de.name)==="default",X=s.createPropertyAccessExpression(Oe?d().createImportDefaultHelper(te):te,de.propertyName||de.name);we.push(su(Pt(s.createExpressionStatement(Et(s.getExportName(de),X,void 0,!0)),de),de))}return B0(we)}else if(le.exportClause){const we=[];return we.push(su(Pt(s.createExpressionStatement(Et(s.cloneNode(le.exportClause.name),Fr(le,T!==2?jn(le):iq(le)?te:s.createIdentifier(fu(le.exportClause.name))))),le),le)),B0(we)}else return su(Pt(s.createExpressionStatement(d().createExportStarHelper(T!==2?jn(le):te)),le),le)}function Dn(le){if(!le.isExportEquals)return et(s.createIdentifier("default"),yt(le.expression,We,Wt),le,!0)}function Cn(le){let te;return Qu(le,32)?te=Di(te,su(Pt(s.createFunctionDeclaration(kn(le.modifiers,ii,Xo),le.asteriskToken,s.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,We,io),void 0,rn(le.body,We,t)),le),le)):te=Di(te,rn(le,We,t)),te=Mt(te,le),B0(te)}function tu(le){let te;return Qu(le,32)?te=Di(te,su(Pt(s.createClassDeclaration(kn(le.modifiers,ii,ll),s.getDeclarationName(le,!0,!0),void 0,kn(le.heritageClauses,We,mm),kn(le.members,We,Yd)),le),le)):te=Di(te,rn(le,We,t)),te=Mt(te,le),B0(te)}function sa(le){let te,we,de;if(Qu(le,32)){let Oe,X=!1;for(const it of le.declarationList.declarations)if(at(it.name)&&rD(it.name))if(Oe||(Oe=kn(le.modifiers,ii,Xo)),it.initializer){const Ct=s.updateVariableDeclaration(it,it.name,void 0,void 0,Et(it.name,yt(it.initializer,We,Wt)));we=Di(we,Ct)}else we=Di(we,it);else if(it.initializer)if(!So(it.name)&&(Z0(it.initializer)||w0(it.initializer)||e1(it.initializer))){const Ct=s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),it.name),it.name),s.createIdentifier(U4(it.name))),ct=s.createVariableDeclaration(it.name,it.exclamationToken,it.type,yt(it.initializer,We,Wt));we=Di(we,ct),de=Di(de,Ct),X=!0}else de=Di(de,aa(it));if(we&&(te=Di(te,s.updateVariableStatement(le,Oe,s.updateVariableDeclarationList(le.declarationList,we)))),de){const it=su(Pt(s.createExpressionStatement(s.inlineExpressions(de)),le),le);X&&_V(it),te=Di(te,it)}}else te=Di(te,rn(le,We,t));return te=bo(te,le),B0(te)}function xa(le,te,we){const de=on(le);if(de){let Oe=CY(le)?te:s.createAssignment(le,te);for(const X of de)Yn(Oe,8),Oe=Et(X,Oe,we);return Oe}return s.createAssignment(le,te)}function aa(le){return So(le.name)?wk(yt(le,We,Yj),We,t,0,!1,xa):s.createAssignment(Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),le.name),le.name),le.initializer?yt(le.initializer,We,Wt):s.createVoidZero())}function Ta(le,te){if(K.exportEquals)return le;const we=te.importClause;if(!we)return le;const de=new Y7;we.name&&(le=qt(le,de,we));const Oe=we.namedBindings;if(Oe)switch(Oe.kind){case 274:le=qt(le,de,Oe);break;case 275:for(const X of Oe.elements)le=qt(le,de,X,!0);break}return le}function Qo(le,te){return K.exportEquals?le:qt(le,new Y7,te)}function bo(le,te){return Qe(le,te.declarationList,!1)}function Qe(le,te,we){if(K.exportEquals)return le;for(const de of te.declarations)le=_t(le,de,we);return le}function _t(le,te,we){if(K.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=_t(le,de,we));else!sl(te.name)&&(!ra(te)||te.initializer||we)&&(le=qt(le,new Y7,te));return le}function Mt(le,te){if(K.exportEquals)return le;const we=new Y7;if(Qu(te,32)){const de=Qu(te,2048)?s.createIdentifier("default"):s.getDeclarationName(te);le=Xt(le,we,de,s.getLocalName(te),te)}return te.name&&(le=qt(le,we,te)),le}function qt(le,te,we,de){const Oe=s.getDeclarationName(we),X=K.exportSpecifiers.get(Oe);if(X)for(const it of X)le=Xt(le,te,it.name,Oe,it.name,void 0,de);return le}function Xt(le,te,we,de,Oe,X,it){return te.has(we)||(te.set(we,!0),le=Di(le,et(we,de,Oe,X,it))),le}function Pe(){let le;return k===0?le=s.createExpressionStatement(Et(s.createIdentifier("__esModule"),s.createTrue())):le=s.createExpressionStatement(s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteral("__esModule"),s.createObjectLiteralExpression([s.createPropertyAssignment("value",s.createTrue())])])),Yn(le,2097152),le}function et(le,te,we,de,Oe){const X=Pt(s.createExpressionStatement(Et(le,te,void 0,Oe)),we);return bh(X),de||Yn(X,3072),X}function Et(le,te,we,de){return Pt(de&&k!==0?s.createCallExpression(s.createPropertyAccessExpression(s.createIdentifier("Object"),"defineProperty"),void 0,[s.createIdentifier("exports"),s.createStringLiteralFromNode(le),s.createObjectLiteralExpression([s.createPropertyAssignment("enumerable",s.createTrue()),s.createPropertyAssignment("get",s.createFunctionExpression(void 0,void 0,void 0,void 0,[],void 0,s.createBlock([s.createReturnStatement(te)])))])]):s.createAssignment(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),te),we)}function ii(le){switch(le.kind){case 95:case 90:return}return le}function me(le,te,we){te.kind===312?(J=te,K=j[z1(J)],z(le,te,we),J=void 0,K=void 0):z(le,te,we)}function ni(le,te){return te=M(le,te),te.id&&Y[te.id]?te:le===1?pt(te):pm(te)?xi(te):te}function xi(le){const te=le.name,we=$i(te);if(we!==te){if(le.objectAssignmentInitializer){const de=s.createAssignment(we,le.objectAssignmentInitializer);return Pt(s.createPropertyAssignment(te,de),le)}return Pt(s.createPropertyAssignment(te,we),le)}return le}function pt(le){switch(le.kind){case 80:return $i(le);case 213:return Ot(le);case 215:return Ei(le);case 226:return Qi(le)}return le}function Ot(le){if(at(le.expression)){const te=$i(le.expression);if(Y[Us(te)]=!0,!at(te)&&!(bs(le.expression)&8192))return F7(s.updateCallExpression(le,te,void 0,le.arguments),16)}return le}function Ei(le){if(at(le.tag)){const te=$i(le.tag);if(Y[Us(te)]=!0,!at(te)&&!(bs(le.tag)&8192))return F7(s.updateTaggedTemplateExpression(le,te,void 0,le.template),16)}return le}function $i(le){var te,we;if(bs(le)&8192){const de=IV(J);return de?s.createPropertyAccessExpression(de,le):le}else if(!(sl(le)&&!(le.emitNode.autoGenerate.flags&64))&&!rD(le)){const de=b.getReferencedExportContainer(le,CY(le));if(de&&de.kind===312)return Pt(s.createPropertyAccessExpression(s.createIdentifier("exports"),s.cloneNode(le)),le);const Oe=b.getReferencedImportDeclaration(le);if(Oe){if(u_(Oe))return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(Oe.parent),s.createIdentifier("default")),le);if(bf(Oe)){const X=Oe.propertyName||Oe.name;return Pt(s.createPropertyAccessExpression(s.getGeneratedNameForNode(((we=(te=Oe.parent)==null?void 0:te.parent)==null?void 0:we.parent)||Oe),s.cloneNode(X)),le)}}}return le}function Qi(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!sl(le.left)||$O(le.left))&&!rD(le.left)){const te=on(le.left);if(te){let we=le;for(const de of te)Y[Us(we)]=!0,we=Et(de,we,le);return we}}return le}function on(le){if(sl(le)){if($O(le)){const te=K==null?void 0:K.exportSpecifiers.get(le);if(te){const we=[];for(const de of te)we.push(de.name);return we}}}else{const te=b.getReferencedImportDeclaration(le);if(te)return K==null?void 0:K.exportedBindings[z1(te)];const we=new Set,de=b.getReferencedValueDeclarations(le);if(de){for(const Oe of de){const X=K==null?void 0:K.exportedBindings[z1(Oe)];if(X)for(const it of X)we.add(it)}if(we.size)return Ea(we)}}}}var Yet,UMt=o({"src/compiler/transformers/module/module.ts"(){Bo(),Yet={name:"typescript:dynamicimport-sync-require",scoped:!0,text:` + var __syncRequire = typeof module === "object" && typeof module.exports === "object";`}}});function B7e(t){const{factory:u,startLexicalEnvironment:s,endLexicalEnvironment:d,hoistVariableDeclaration:f}=t,p=t.getCompilerOptions(),E=t.getEmitResolver(),v=t.getEmitHost(),b=t.onSubstituteNode,B=t.onEmitNode;t.onSubstituteNode=Et,t.onEmitNode=et,t.enableSubstitution(80),t.enableSubstitution(304),t.enableSubstitution(226),t.enableSubstitution(236),t.enableEmitNotification(312);const k=[],T=[],M=[],z=[];let j,J,K,Y,oe,se,ge;return Wp(t,ae);function ae(le){if(le.isDeclarationFile||!(s7(le,p)||le.transformFlags&8388608))return le;const te=z1(le);j=le,se=le,J=k[te]=Zde(t,le),K=u.createUniqueName("exports"),T[te]=K,Y=z[te]=u.createUniqueName("context");const we=Ce(J.externalImports),de=ne(le,we),Oe=u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,K),u.createParameterDeclaration(void 0,void 0,Y)],void 0,de),X=RV(u,le,v,p),it=u.createArrayLiteralExpression(Vt(we,ct=>ct.name)),Ct=Yn(u.updateSourceFile(le,Pt(u.createNodeArray([u.createExpressionStatement(u.createCallExpression(u.createPropertyAccessExpression(u.createIdentifier("System"),"register"),void 0,X?[X,it,Oe]:[it,Oe]))]),le.statements)),2048);return F0(p)||Uke(Ct,de,ct=>!ct.scoped),ge&&(M[te]=ge,ge=void 0),j=void 0,J=void 0,K=void 0,Y=void 0,oe=void 0,se=void 0,Ct}function Ce(le){const te=new Map,we=[];for(const de of le){const Oe=W7(u,de,j,v,E,p);if(Oe){const X=Oe.text,it=te.get(X);it!==void 0?we[it].externalImports.push(de):(te.set(X,we.length),we.push({name:Oe,externalImports:[de]}))}}return we}function ne(le,te){const we=[];s();const de=Q4(p,"alwaysStrict")||!p.noImplicitUseStrict&&Lc(j),Oe=u.copyPrologue(le.statements,we,de,pe);we.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration("__moduleName",void 0,void 0,u.createLogicalAnd(Y,u.createPropertyAccessExpression(Y,"id")))]))),yt(J.externalHelpersImportDeclaration,pe,ua);const X=kn(le.statements,pe,ua,Oe);yn(we,oe),YE(we,d());const it=ve(we),Ct=le.transformFlags&2097152?u.createModifiersFromModifierFlags(1024):void 0,ct=u.createObjectLiteralExpression([u.createPropertyAssignment("setters",Ne(it,te)),u.createPropertyAssignment("execute",u.createFunctionExpression(Ct,void 0,void 0,void 0,[],void 0,u.createBlock(X,!0)))],!0);return we.push(u.createReturnStatement(ct)),u.createBlock(we,!0)}function ve(le){if(!J.hasExportStarsToExportValues)return;if(!J.exportedNames&&J.exportSpecifiers.size===0){let Oe=!1;for(const X of J.externalImports)if(X.kind===278&&X.exportClause){Oe=!0;break}if(!Oe){const X=Se(void 0);return le.push(X),X.name}}const te=[];if(J.exportedNames)for(const Oe of J.exportedNames)Oe.escapedText!=="default"&&te.push(u.createPropertyAssignment(u.createStringLiteralFromNode(Oe),u.createTrue()));const we=u.createUniqueName("exportedNames");le.push(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(we,void 0,void 0,u.createObjectLiteralExpression(te,!0))])));const de=Se(we);return le.push(de),de.name}function Se(le){const te=u.createUniqueName("exportStar"),we=u.createIdentifier("m"),de=u.createIdentifier("n"),Oe=u.createIdentifier("exports");let X=u.createStrictInequality(de,u.createStringLiteral("default"));return le&&(X=u.createLogicalAnd(X,u.createLogicalNot(u.createCallExpression(u.createPropertyAccessExpression(le,"hasOwnProperty"),void 0,[de])))),u.createFunctionDeclaration(void 0,void 0,te,void 0,[u.createParameterDeclaration(void 0,void 0,we)],void 0,u.createBlock([u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(Oe,void 0,void 0,u.createObjectLiteralExpression([]))])),u.createForInStatement(u.createVariableDeclarationList([u.createVariableDeclaration(de)]),we,u.createBlock([Yn(u.createIfStatement(X,u.createExpressionStatement(u.createAssignment(u.createElementAccessExpression(Oe,de),u.createElementAccessExpression(we,de)))),1)])),u.createExpressionStatement(u.createCallExpression(K,void 0,[Oe]))],!0))}function Ne(le,te){const we=[];for(const de of te){const Oe=L(de.externalImports,Ct=>zB(u,Ct,j)),X=Oe?u.getGeneratedNameForNode(Oe):u.createUniqueName(""),it=[];for(const Ct of de.externalImports){const ct=zB(u,Ct,j);switch(Ct.kind){case 272:if(!Ct.importClause)break;case 271:H.assert(ct!==void 0),it.push(u.createExpressionStatement(u.createAssignment(ct,X))),Qu(Ct,32)&&it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(ct)),X])));break;case 278:if(H.assert(ct!==void 0),Ct.exportClause)if(ip(Ct.exportClause)){const Qt=[];for(const Ti of Ct.exportClause.elements)Qt.push(u.createPropertyAssignment(u.createStringLiteral(fu(Ti.name)),u.createElementAccessExpression(X,u.createStringLiteral(fu(Ti.propertyName||Ti.name)))));it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createObjectLiteralExpression(Qt,!0)])))}else it.push(u.createExpressionStatement(u.createCallExpression(K,void 0,[u.createStringLiteral(fu(Ct.exportClause.name)),X])));else it.push(u.createExpressionStatement(u.createCallExpression(le,void 0,[X])));break}}we.push(u.createFunctionExpression(void 0,void 0,void 0,void 0,[u.createParameterDeclaration(void 0,void 0,X)],void 0,u.createBlock(it,!0)))}return u.createArrayLiteralExpression(we,!0)}function pe(le){switch(le.kind){case 272:return fe(le);case 271:return Be(le);case 278:return xe(le);case 277:return We(le);default:return Vi(le)}}function fe(le){let te;return le.importClause&&f(zB(u,le,j)),B0(Yt(te,le))}function xe(le){H.assertIsDefined(le)}function Be(le){H.assert(yv(le),"import= for internal module references should be handled in an earlier transformer.");let te;return f(zB(u,le,j)),B0(Ie(te,le))}function We(le){if(le.isExportEquals)return;const te=yt(le.expression,aa,Wt);return Ut(u.createIdentifier("default"),te,!0)}function Ae(le){Qu(le,32)?oe=Di(oe,u.updateFunctionDeclaration(le,kn(le.modifiers,Pe,ll),le.asteriskToken,u.getDeclarationName(le,!0,!0),void 0,kn(le.parameters,aa,io),void 0,yt(le.body,aa,go))):oe=Di(oe,rn(le,aa,t)),oe=It(oe,le)}function De(le){let te;const we=u.getLocalName(le);return f(we),te=Di(te,Pt(u.createExpressionStatement(u.createAssignment(we,Pt(u.createClassExpression(kn(le.modifiers,Pe,ll),le.name,void 0,kn(le.heritageClauses,aa,mm),kn(le.members,aa,Yd)),le))),le)),te=It(te,le),B0(te)}function He(le){if(!mt(le.declarationList))return yt(le,aa,ua);let te;if(dj(le.declarationList)||cj(le.declarationList)){const we=kn(le.modifiers,Pe,ll),de=[];for(const X of le.declarationList.declarations)de.push(u.updateVariableDeclaration(X,u.getGeneratedNameForNode(X.name),void 0,void 0,Ye(X,!1)));const Oe=u.updateVariableDeclarationList(le.declarationList,de);te=Di(te,u.updateVariableStatement(le,we,Oe))}else{let we;const de=Qu(le,32);for(const Oe of le.declarationList.declarations)Oe.initializer?we=Di(we,Ye(Oe,de)):Je(Oe);we&&(te=Di(te,Pt(u.createExpressionStatement(u.inlineExpressions(we)),le)))}return te=st(te,le,!1),B0(te)}function Je(le){if(So(le.name))for(const te of le.name.elements)Fd(te)||Je(te);else f(u.cloneNode(le.name))}function mt(le){return(bs(le)&4194304)===0&&(se.kind===312||(Wl(le).flags&7)===0)}function Ye(le,te){const we=te?je:Ke;return So(le.name)?wk(le,aa,t,0,!1,we):le.initializer?we(le.name,yt(le.initializer,aa,Wt)):le.name}function je(le,te,we){return Gt(le,te,we,!0)}function Ke(le,te,we){return Gt(le,te,we,!1)}function Gt(le,te,we,de){return f(u.cloneNode(le)),de?Ni(le,Qi(Pt(u.createAssignment(le,te),we))):Qi(Pt(u.createAssignment(le,te),we))}function Yt(le,te){if(J.exportEquals)return le;const we=te.importClause;if(!we)return le;we.name&&(le=ei(le,we));const de=we.namedBindings;if(de)switch(de.kind){case 274:le=ei(le,de);break;case 275:for(const Oe of de.elements)le=ei(le,Oe);break}return le}function Ie(le,te){return J.exportEquals?le:ei(le,te)}function st(le,te,we){if(J.exportEquals)return le;for(const de of te.declarationList.declarations)(de.initializer||we)&&(le=Bt(le,de,we));return le}function Bt(le,te,we){if(J.exportEquals)return le;if(So(te.name))for(const de of te.name.elements)Fd(de)||(le=Bt(le,de,we));else if(!sl(te.name)){let de;we&&(le=ft(le,te.name,u.getLocalName(te)),de=fu(te.name)),le=ei(le,te,de)}return le}function It(le,te){if(J.exportEquals)return le;let we;if(Qu(te,32)){const de=Qu(te,2048)?u.createStringLiteral("default"):te.name;le=ft(le,de,u.getLocalName(te)),we=U4(de)}return te.name&&(le=ei(le,te,we)),le}function ei(le,te,we){if(J.exportEquals)return le;const de=u.getDeclarationName(te),Oe=J.exportSpecifiers.get(de);if(Oe)for(const X of Oe)X.name.escapedText!==we&&(le=ft(le,X.name,de));return le}function ft(le,te,we,de){return le=Di(le,Ut(te,we,de)),le}function Ut(le,te,we){const de=u.createExpressionStatement(Ni(le,te));return bh(de),we||Yn(de,3072),de}function Ni(le,te){const we=at(le)?u.createStringLiteralFromNode(le):le;return Yn(te,bs(te)|3072),Tc(u.createCallExpression(K,void 0,[we,te]),te)}function Vi(le){switch(le.kind){case 243:return He(le);case 262:return Ae(le);case 263:return De(le);case 248:return xn(le,!0);case 249:return Jn(le);case 250:return an(le);case 246:return Yu(le);case 247:return oa(le);case 256:return Fr(le);case 254:return wa(le);case 245:return bt(le);case 255:return jn(le);case 269:return Ln(le);case 296:return Ai(le);case 297:return Dn(le);case 258:return Cn(le);case 299:return tu(le);case 241:return sa(le);default:return aa(le)}}function xn(le,te){const we=se;return se=le,le=u.updateForStatement(le,yt(le.initializer,te?Fi:Ta,l4),yt(le.condition,aa,Wt),yt(le.incrementor,Ta,Wt),Rh(le.statement,te?Vi:aa,t)),se=we,le}function Jn(le){const te=se;return se=le,le=u.updateForInStatement(le,Fi(le.initializer),yt(le.expression,aa,Wt),Rh(le.statement,Vi,t)),se=te,le}function an(le){const te=se;return se=le,le=u.updateForOfStatement(le,le.awaitModifier,Fi(le.initializer),yt(le.expression,aa,Wt),Rh(le.statement,Vi,t)),se=te,le}function Pi(le){return Ad(le)&&mt(le)}function Fi(le){if(Pi(le)){let te;for(const we of le.declarations)te=Di(te,Ye(we,!1)),we.initializer||Je(we);return te?u.inlineExpressions(te):u.createOmittedExpression()}else return yt(le,Ta,l4)}function Yu(le){return u.updateDoStatement(le,Rh(le.statement,Vi,t),yt(le.expression,aa,Wt))}function oa(le){return u.updateWhileStatement(le,yt(le.expression,aa,Wt),Rh(le.statement,Vi,t))}function Fr(le){return u.updateLabeledStatement(le,le.label,H.checkDefined(yt(le.statement,Vi,ua,u.liftToBlock)))}function wa(le){return u.updateWithStatement(le,yt(le.expression,aa,Wt),H.checkDefined(yt(le.statement,Vi,ua,u.liftToBlock)))}function bt(le){return u.updateIfStatement(le,yt(le.expression,aa,Wt),H.checkDefined(yt(le.thenStatement,Vi,ua,u.liftToBlock)),yt(le.elseStatement,Vi,ua,u.liftToBlock))}function jn(le){return u.updateSwitchStatement(le,yt(le.expression,aa,Wt),H.checkDefined(yt(le.caseBlock,Vi,YP)))}function Ln(le){const te=se;return se=le,le=u.updateCaseBlock(le,kn(le.clauses,Vi,JU)),se=te,le}function Ai(le){return u.updateCaseClause(le,yt(le.expression,aa,Wt),kn(le.statements,Vi,ua))}function Dn(le){return rn(le,Vi,t)}function Cn(le){return rn(le,Vi,t)}function tu(le){const te=se;return se=le,le=u.updateCatchClause(le,le.variableDeclaration,H.checkDefined(yt(le.block,Vi,go))),se=te,le}function sa(le){const te=se;return se=le,le=rn(le,Vi,t),se=te,le}function xa(le,te){if(!(le.transformFlags&276828160))return le;switch(le.kind){case 248:return xn(le,!1);case 244:return Qo(le);case 217:return bo(le,te);case 360:return Qe(le,te);case 226:if(r5(le))return Mt(le,te);break;case 213:if(dm(le))return _t(le);break;case 224:case 225:return Xt(le,te)}return rn(le,aa,t)}function aa(le){return xa(le,!1)}function Ta(le){return xa(le,!0)}function Qo(le){return u.updateExpressionStatement(le,yt(le.expression,Ta,Wt))}function bo(le,te){return u.updateParenthesizedExpression(le,yt(le.expression,te?Ta:aa,Wt))}function Qe(le,te){return u.updatePartiallyEmittedExpression(le,yt(le.expression,te?Ta:aa,Wt))}function _t(le){const te=W7(u,le,j,v,E,p),we=yt(Ki(le.arguments),aa,Wt),de=te&&(!we||!rs(we)||we.text!==te.text)?te:we;return u.createCallExpression(u.createPropertyAccessExpression(Y,u.createIdentifier("import")),void 0,de?[de]:[])}function Mt(le,te){return qt(le.left)?wk(le,aa,t,0,!te):rn(le,aa,t)}function qt(le){if(ld(le,!0))return qt(le.left);if(rE(le))return qt(le.expression);if(ys(le))return Ge(le.properties,qt);if(vh(le))return Ge(le.elements,qt);if(pm(le))return qt(le.name);if(Uc(le))return qt(le.initializer);if(at(le)){const te=E.getReferencedExportContainer(le);return te!==void 0&&te.kind===312}else return!1}function Xt(le,te){if((le.operator===46||le.operator===47)&&at(le.operand)&&!sl(le.operand)&&!rD(le.operand)&&!Ele(le.operand)){const we=Ei(le.operand);if(we){let de,Oe=yt(le.operand,aa,Wt);Iv(le)?Oe=u.updatePrefixUnaryExpression(le,Oe):(Oe=u.updatePostfixUnaryExpression(le,Oe),te||(de=u.createTempVariable(f),Oe=u.createAssignment(de,Oe),Pt(Oe,le)),Oe=u.createComma(Oe,u.cloneNode(le.operand)),Pt(Oe,le));for(const X of we)Oe=Ni(X,Qi(Oe));return de&&(Oe=u.createComma(Oe,de),Pt(Oe,le)),Oe}}return rn(le,aa,t)}function Pe(le){switch(le.kind){case 95:case 90:return}return le}function et(le,te,we){if(te.kind===312){const de=z1(te);j=te,J=k[de],K=T[de],ge=M[de],Y=z[de],ge&&delete M[de],B(le,te,we),j=void 0,J=void 0,K=void 0,Y=void 0,ge=void 0}else B(le,te,we)}function Et(le,te){return te=b(le,te),on(te)?te:le===1?ni(te):le===4?ii(te):te}function ii(le){switch(le.kind){case 304:return me(le)}return le}function me(le){var te,we;const de=le.name;if(!sl(de)&&!rD(de)){const Oe=E.getReferencedImportDeclaration(de);if(Oe){if(u_(Oe))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(Oe.parent),u.createIdentifier("default"))),le);if(bf(Oe))return Pt(u.createPropertyAssignment(u.cloneNode(de),u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=Oe.parent)==null?void 0:te.parent)==null?void 0:we.parent)||Oe),u.cloneNode(Oe.propertyName||Oe.name))),le)}}return le}function ni(le){switch(le.kind){case 80:return xi(le);case 226:return pt(le);case 236:return Ot(le)}return le}function xi(le){var te,we;if(bs(le)&8192){const de=IV(j);return de?u.createPropertyAccessExpression(de,le):le}if(!sl(le)&&!rD(le)){const de=E.getReferencedImportDeclaration(le);if(de){if(u_(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(de.parent),u.createIdentifier("default")),le);if(bf(de))return Pt(u.createPropertyAccessExpression(u.getGeneratedNameForNode(((we=(te=de.parent)==null?void 0:te.parent)==null?void 0:we.parent)||de),u.cloneNode(de.propertyName||de.name)),le)}}return le}function pt(le){if(u5(le.operatorToken.kind)&&at(le.left)&&(!sl(le.left)||$O(le.left))&&!rD(le.left)){const te=Ei(le.left);if(te){let we=le;for(const de of te)we=Ni(de,Qi(we));return we}}return le}function Ot(le){return W8(le)?u.createPropertyAccessExpression(Y,u.createIdentifier("meta")):le}function Ei(le){let te;const we=$i(le);if(we){const de=E.getReferencedExportContainer(le,!1);de&&de.kind===312&&(te=Di(te,u.getDeclarationName(we))),te=yn(te,J==null?void 0:J.exportedBindings[z1(we)])}else if(sl(le)&&$O(le)){const de=J==null?void 0:J.exportSpecifiers.get(le);if(de){const Oe=[];for(const X of de)Oe.push(X.name);return Oe}}return te}function $i(le){if(!sl(le)){const te=E.getReferencedImportDeclaration(le);if(te)return te;const we=E.getReferencedValueDeclaration(le);if(we&&(J!=null&&J.exportedBindings[z1(we)]))return we;const de=E.getReferencedValueDeclarations(le);if(de){for(const Oe of de)if(Oe!==we&&(J!=null&&J.exportedBindings[z1(Oe)]))return Oe}return we}}function Qi(le){return ge===void 0&&(ge=[]),ge[Us(le)]=!0,le}function on(le){return ge&&le.id&&ge[le.id]}}var qMt=o({"src/compiler/transformers/module/system.ts"(){Bo()}});function s1e(t){const{factory:u,getEmitHelperFactory:s}=t,d=t.getEmitHost(),f=t.getEmitResolver(),p=t.getCompilerOptions(),E=js(p),v=t.onEmitNode,b=t.onSubstituteNode;t.onEmitNode=ge,t.onSubstituteNode=ae,t.enableEmitNotification(312),t.enableSubstitution(80);let B,k,T;return Wp(t,M);function M(ne){if(ne.isDeclarationFile)return ne;if(Lc(ne)||mg(p)){k=ne,T=void 0;let ve=z(ne);return k=void 0,T&&(ve=u.updateSourceFile(ve,Pt(u.createNodeArray(d0e(ve.statements.slice(),T)),ve.statements))),!Lc(ne)||Ge(ve.statements,QO)?ve:u.updateSourceFile(ve,Pt(u.createNodeArray([...ve.statements,PV(u)]),ve.statements))}return ne}function z(ne){const ve=Vce(u,s(),ne,p);if(ve){const Se=[],Ne=u.copyPrologue(ne.statements,Se);return Di(Se,ve),yn(Se,kn(ne.statements,j,ua,Ne)),u.updateSourceFile(ne,Pt(u.createNodeArray(Se),ne.statements))}else return rn(ne,j,t)}function j(ne){switch(ne.kind){case 271:return p1(p)>=100?K(ne):void 0;case 277:return oe(ne);case 278:return se(ne)}return ne}function J(ne){const ve=W7(u,ne,H.checkDefined(k),d,f,p),Se=[];if(ve&&Se.push(ve),!T){const pe=u.createUniqueName("_createRequire",48),fe=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamedImports([u.createImportSpecifier(!1,u.createIdentifier("createRequire"),pe)])),u.createStringLiteral("module"),void 0),xe=u.createUniqueName("__require",48),Be=u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(xe,void 0,void 0,u.createCallExpression(u.cloneNode(pe),void 0,[u.createPropertyAccessExpression(u.createMetaProperty(102,u.createIdentifier("meta")),u.createIdentifier("url"))]))],E>=2?2:0));T=[fe,Be]}const Ne=T[1].declarationList.declarations[0].name;return H.assertNode(Ne,at),u.createCallExpression(u.cloneNode(Ne),void 0,Se)}function K(ne){H.assert(yv(ne),"import= for internal module references should be handled in an earlier transformer.");let ve;return ve=Di(ve,su(Pt(u.createVariableStatement(void 0,u.createVariableDeclarationList([u.createVariableDeclaration(u.cloneNode(ne.name),void 0,void 0,J(ne))],E>=2?2:0)),ne),ne)),ve=Y(ve,ne),B0(ve)}function Y(ne,ve){return Qu(ve,32)&&(ne=Di(ne,u.createExportDeclaration(void 0,ve.isTypeOnly,u.createNamedExports([u.createExportSpecifier(!1,void 0,fu(ve.name))])))),ne}function oe(ne){return ne.isExportEquals?void 0:ne}function se(ne){if(p.module!==void 0&&p.module>5||!ne.exportClause||!r_(ne.exportClause)||!ne.moduleSpecifier)return ne;const ve=ne.exportClause.name,Se=u.getGeneratedNameForNode(ve),Ne=u.createImportDeclaration(void 0,u.createImportClause(!1,void 0,u.createNamespaceImport(Se)),ne.moduleSpecifier,ne.attributes);su(Ne,ne.exportClause);const pe=iq(ne)?u.createExportDefault(Se):u.createExportDeclaration(void 0,!1,u.createNamedExports([u.createExportSpecifier(!1,Se,ve)]));return su(pe,ne),[Ne,pe]}function ge(ne,ve,Se){ca(ve)?((Lc(ve)||mg(p))&&p.importHelpers&&(B=new Map),v(ne,ve,Se),B=void 0):v(ne,ve,Se)}function ae(ne,ve){return ve=b(ne,ve),B&&at(ve)&&bs(ve)&8192?Ce(ve):ve}function Ce(ne){const ve=fu(ne);let Se=B.get(ve);return Se||B.set(ve,Se=u.createUniqueName(ve,48)),Se}}var ZMt=o({"src/compiler/transformers/module/esnextAnd2015.ts"(){Bo()}});function w7e(t){const u=t.onSubstituteNode,s=t.onEmitNode,d=s1e(t),f=t.onSubstituteNode,p=t.onEmitNode;t.onSubstituteNode=u,t.onEmitNode=s;const E=o1e(t),v=t.onSubstituteNode,b=t.onEmitNode;t.onSubstituteNode=k,t.onEmitNode=T,t.enableSubstitution(312),t.enableEmitNotification(312);let B;return j;function k(K,Y){return ca(Y)?(B=Y,u(K,Y)):B?B.impliedNodeFormat===99?f(K,Y):v(K,Y):u(K,Y)}function T(K,Y,oe){return ca(Y)&&(B=Y),B?B.impliedNodeFormat===99?p(K,Y,oe):b(K,Y,oe):s(K,Y,oe)}function M(K){return K.impliedNodeFormat===99?d:E}function z(K){if(K.isDeclarationFile)return K;B=K;const Y=M(K)(K);return B=void 0,H.assert(ca(Y)),Y}function j(K){return K.kind===312?z(K):J(K)}function J(K){return t.factory.createBundle(Vt(K.sourceFiles,z),K.prepends)}}var YMt=o({"src/compiler/transformers/module/node.ts"(){Bo()}});function gQ(t){return ra(t)||ko(t)||zm(t)||Vs(t)||e5(t)||Lx(t)||AV(t)||CB(t)||hc(t)||u3(t)||td(t)||io(t)||wl(t)||c5(t)||_1(t)||Vp(t)||fc(t)||Ek(t)||Ru(t)||q0(t)||eu(t)||$4(t)}function T7e(t){if(e5(t)||Lx(t))return u;return u3(t)||hc(t)?d:h5(t);function u(p){const E=s(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function s(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function d(p){const E=f(p);return E!==void 0?{diagnosticMessage:E,errorNode:t,typeName:t.name}:void 0}function f(p){return No(t)?p.errorModuleName?p.accessibility===2?F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263?p.errorModuleName?p.accessibility===2?F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_method_0_of_exported_class_has_or_is_using_private_name_1:p.errorModuleName?F.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Method_0_of_exported_interface_has_or_is_using_private_name_1}}function h5(t){if(ra(t)||ko(t)||zm(t)||Ru(t)||q0(t)||eu(t)||Vs(t)||fc(t))return s;return e5(t)||Lx(t)?d:AV(t)||CB(t)||hc(t)||u3(t)||td(t)||Ek(t)?f:io(t)?Mf(t,t.parent)&&Qu(t.parent,2)?s:p:wl(t)?v:c5(t)?b:_1(t)?B:Vp(t)||$4(t)?k:H.assertNever(t,`Attempted to set a declaration diagnostic context for unhandled node kind: ${H.formatSyntaxKind(t.kind)}`);function u(T){if(t.kind===260||t.kind===208)return T.errorModuleName?T.accessibility===2?F.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Exported_variable_0_has_or_is_using_name_1_from_private_module_2:F.Exported_variable_0_has_or_is_using_private_name_1;if(t.kind===172||t.kind===211||t.kind===212||t.kind===226||t.kind===171||t.kind===169&&Qu(t.parent,2))return No(t)?T.errorModuleName?T.accessibility===2?F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1:t.parent.kind===263||t.kind===169?T.errorModuleName?T.accessibility===2?F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2:F.Public_property_0_of_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Property_0_of_exported_interface_has_or_is_using_private_name_1}function s(T){const M=u(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function d(T){let M;return t.kind===178?No(t)?M=T.errorModuleName?F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1,{diagnosticMessage:M,errorNode:t.name,typeName:t.name}}function f(T){let M;switch(t.kind){case 180:M=T.errorModuleName?F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 179:M=T.errorModuleName?F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 181:M=T.errorModuleName?F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;break;case 174:case 173:No(t)?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0:t.parent.kind===263?M=T.errorModuleName?T.accessibility===2?F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0:M=T.errorModuleName?F.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;break;case 262:M=T.errorModuleName?T.accessibility===2?F.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named:F.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1:F.Return_type_of_exported_function_has_or_is_using_private_name_0;break;default:return H.fail("This is unknown kind for signature: "+t.kind)}return{diagnosticMessage:M,errorNode:t.name||t}}function p(T){const M=E(T);return M!==void 0?{diagnosticMessage:M,errorNode:t,typeName:t.name}:void 0}function E(T){switch(t.parent.kind){case 176:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;case 180:case 185:return T.errorModuleName?F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;case 179:return T.errorModuleName?F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;case 181:return T.errorModuleName?F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;case 174:case 173:return No(t.parent)?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T.errorModuleName?T.accessibility===2?F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T.errorModuleName?F.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;case 262:case 184:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_exported_function_has_or_is_using_private_name_1;case 178:case 177:return T.errorModuleName?T.accessibility===2?F.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named:F.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2:F.Parameter_0_of_accessor_has_or_is_using_private_name_1;default:return H.fail(`Unknown parent for parameter: ${H.formatSyntaxKind(t.parent.kind)}`)}}function v(){let T;switch(t.parent.kind){case 263:T=F.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;break;case 264:T=F.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;break;case 200:T=F.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;break;case 185:case 180:T=F.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 179:T=F.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;break;case 174:case 173:No(t.parent)?T=F.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1:t.parent.parent.kind===263?T=F.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1:T=F.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;break;case 184:case 262:T=F.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;break;case 195:T=F.Extends_clause_for_inferred_type_0_has_or_is_using_private_name_1;break;case 265:T=F.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;break;default:return H.fail("This is unknown parent for type parameter: "+t.parent.kind)}return{diagnosticMessage:T,errorNode:t,typeName:t.name}}function b(){let T;return Jc(t.parent.parent)?T=mm(t.parent)&&t.parent.token===119?F.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1:t.parent.parent.name?F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1:F.extends_clause_of_exported_class_has_or_is_using_private_name_0:T=F.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1,{diagnosticMessage:T,errorNode:t,typeName:Ya(t.parent.parent)}}function B(){return{diagnosticMessage:F.Import_declaration_0_is_using_private_name_1,errorNode:t,typeName:t.name}}function k(T){return{diagnosticMessage:T.errorModuleName?F.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2:F.Exported_type_alias_0_has_or_is_using_private_name_1,errorNode:$4(t)?H.checkDefined(t.typeExpression):t.type,typeName:$4(t)?Ya(t):t.name}}}var QMt=o({"src/compiler/transformers/declarations/diagnostics.ts"(){Bo()}});function L7e(t,u,s){const d=t.getCompilerOptions();return gH(u,t,q,d,s?[s]:ti(t.getSourceFiles(),N0e),[c1e],!1).diagnostics}function Qet(t,u){return u.text.substring(t.pos,t.end).includes("@internal")}function l1e(t,u){const s=Za(t);if(s&&s.kind===169){const f=s.parent.parameters.indexOf(s),p=f>0?s.parent.parameters[f-1]:void 0,E=u.text,v=p?mi(Ev(E,gs(E,p.end+1,!1,!0)),G_(E,t.pos)):Ev(E,gs(E,t.pos,!1,!0));return v&&v.length&&Qet(yr(v),u)}const d=s&&F0e(s,u);return!!L(d,f=>Qet(f,u))}function c1e(t){const u=()=>H.fail("Diagnostic emitted without context");let s=u,d=!0,f=!1,p=!1,E=!1,v=!1,b,B,k,T,M,z;const{factory:j}=t,J=t.getEmitHost(),K={trackSymbol:Ae,reportInaccessibleThisError:Ye,reportInaccessibleUniqueSymbolError:Je,reportCyclicStructureError:mt,reportPrivateInBaseOfClassExpression:De,reportLikelyUnsafeImportRequiredError:je,reportTruncationError:Ke,moduleResolverHost:J,trackReferencedAmbientModule:fe,trackExternalModuleSymbolOfImportTypeNode:We,reportNonlocalAugmentation:Gt,reportNonSerializableProperty:Yt};let Y,oe,se,ge,ae,Ce;const ne=t.getEmitResolver(),ve=t.getCompilerOptions(),{noResolve:Se,stripInternal:Ne}=ve;return st;function pe(me){if(me){B=B||new Set;for(const ni of me)B.add(ni)}}function fe(me,ni){const xi=ne.getTypeReferenceDirectivesForSymbol(ni,67108863);if(S(xi))return pe(xi);const pt=zn(me);ge.set(z1(pt),pt)}function xe(me){const ni=Z8(me),xi=ni&&ne.tryFindAmbientModule(ni);if(xi!=null&&xi.declarations)for(const pt of xi.declarations)P1(pt)&&zn(pt)!==se&&fe(pt,xi)}function Be(me){if(me.accessibility===0){if(me&&me.aliasesToMakeVisible)if(!k)k=me.aliasesToMakeVisible;else for(const ni of me.aliasesToMakeVisible)Ca(k,ni)}else{const ni=s(me);if(ni)return ni.typeName?t.addDiagnostic(Tu(me.errorNode||ni.errorNode,ni.diagnosticMessage,Wc(ni.typeName),me.errorSymbolName,me.errorModuleName)):t.addDiagnostic(Tu(me.errorNode||ni.errorNode,ni.diagnosticMessage,me.errorSymbolName,me.errorModuleName)),!0}return!1}function We(me){f||(z||(z=[])).push(me)}function Ae(me,ni,xi){if(me.flags&262144)return!1;const pt=Be(ne.isSymbolAccessible(me,ni,xi,!0));return pe(ne.getTypeReferenceDirectivesForSymbol(me,xi)),pt}function De(me){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.Property_0_of_exported_class_expression_may_not_be_private_or_protected,me))}function He(){return Y?k0(Y):oe&&Ya(oe)?k0(Ya(oe)):oe&&ic(oe)?oe.isExportEquals?"export=":"default":"(Missing)"}function Je(){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,He(),"unique symbol"))}function mt(){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary,He()))}function Ye(){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary,He(),"this"))}function je(me){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary,He(),me))}function Ke(){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed))}function Gt(me,ni,xi){var pt;const Ot=(pt=ni.declarations)==null?void 0:pt.find($i=>zn($i)===me),Ei=ti(xi.declarations,$i=>zn($i)!==me);if(Ot&&Ei)for(const $i of Ei)t.addDiagnostic(Es(Tu($i,F.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized),Tu(Ot,F.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)))}function Yt(me){(Y||oe)&&t.addDiagnostic(Tu(Y||oe,F.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized,me))}function Ie(me,ni){const xi=s;s=Ot=>Ot.errorNode&&gQ(Ot.errorNode)?h5(Ot.errorNode)(Ot):{diagnosticMessage:Ot.errorModuleName?F.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit:F.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,errorNode:Ot.errorNode||me};const pt=ne.getDeclarationStatementsForSourceFile(me,Tk,K,ni);return s=xi,pt}function st(me){if(me.kind===312&&me.isDeclarationFile)return me;if(me.kind===313){f=!0,ge=new Map,ae=new Map;let te=!1;const we=j.createBundle(Vt(me.sourceFiles,X=>{if(X.isDeclarationFile)return;if(te=te||X.hasNoDefaultLib,se=X,b=X,k=void 0,M=!1,T=new Map,s=u,E=!1,v=!1,Bt(X,ge),It(X,ae),cm(X)||J4(X)){p=!1,d=!1;const Ct=_h(X)?j.createNodeArray(Ie(X,!0)):kn(X.statements,sa,ua);return j.updateSourceFile(X,[j.createModuleDeclaration([j.createModifier(138)],j.createStringLiteral(zq(t.getEmitHost(),X)),j.createModuleBlock(Pt(j.createNodeArray(Dn(Ct)),X.statements)))],!0,[],[],!1,[])}d=!0;const it=_h(X)?j.createNodeArray(Ie(X)):kn(X.statements,sa,ua);return j.updateSourceFile(X,Dn(it),!0,[],[],!1,[])}),qi(me.prepends,X=>{if(X.kind===315){const it=rce(X,"dts",Ne);return te=te||!!it.hasNoDefaultLib,Bt(it,ge),pe(Vt(it.typeReferenceDirectives,Ct=>[Ct.fileName,Ct.resolutionMode])),It(it,ae),it}return X}));we.syntheticFileReferences=[],we.syntheticTypeReferences=Qi(),we.syntheticLibReferences=$i(),we.hasNoDefaultLib=te;const de=dr(Z1(bM(me,J,!0).declarationFilePath)),Oe=le(we.syntheticFileReferences,de);return ge.forEach(Oe),we}d=!0,E=!1,v=!1,b=me,se=me,s=u,f=!1,p=!1,M=!1,k=void 0,T=new Map,B=void 0,ge=Bt(se,new Map),ae=It(se,new Map);const ni=[],xi=dr(Z1(bM(me,J,!0).declarationFilePath)),pt=le(ni,xi);let Ot;if(_h(se))Ot=j.createNodeArray(Ie(me)),ge.forEach(pt),Ce=ti(Ot,tk);else{const te=kn(me.statements,sa,ua);Ot=Pt(j.createNodeArray(Dn(te)),me.statements),ge.forEach(pt),Ce=ti(Ot,tk),Lc(me)&&(!p||E&&!v)&&(Ot=Pt(j.createNodeArray([...Ot,PV(j)]),Ot))}const Ei=j.updateSourceFile(me,Ot,!0,ni,Qi(),me.hasNoDefaultLib,$i());return Ei.exportedModulesFromDeclarationEmit=z,Ei;function $i(){return Ea(ae.keys(),te=>({fileName:te,pos:-1,end:-1}))}function Qi(){return B?qi(Ea(B.keys()),on):[]}function on([te,we]){if(Ce){for(const de of Ce)if(_1(de)&&a_(de.moduleReference)){const Oe=de.moduleReference.expression;if(i0(Oe)&&Oe.text===te)return}else if(Sd(de)&&rs(de.moduleSpecifier)&&de.moduleSpecifier.text===te)return}return{fileName:te,pos:-1,end:-1,...we?{resolutionMode:we}:void 0}}function le(te,we){return de=>{let Oe;if(de.isDeclarationFile)Oe=de.fileName;else{if(f&&kt(me.sourceFiles,de))return;const X=bM(de,J,!0);Oe=X.declarationFilePath||X.jsFilePath||de.fileName}if(Oe){const X=YY(ve,se,$0(we,J.getCurrentDirectory(),J.getCanonicalFileName),$0(Oe,J.getCurrentDirectory(),J.getCanonicalFileName),J);if(!om(X)){pe([[X,void 0]]);return}let it=i7(we,Oe,J.getCurrentDirectory(),J.getCanonicalFileName,!1);if(Ma(it,"./")&&t7(it)&&(it=it.substring(2)),Ma(it,"node_modules/")||q7(it))return;te.push({pos:-1,end:-1,fileName:it})}}}}function Bt(me,ni){return Se||!yk(me)&&_h(me)||L(me.referencedFiles,xi=>{const pt=J.getSourceFileFromReference(me,xi);pt&&ni.set(z1(pt),pt)}),ni}function It(me,ni){return L(me.libReferenceDirectives,xi=>{J.getLibFileFromReference(xi)&&ni.set(Ug(xi.fileName),!0)}),ni}function ei(me){if(me.kind===80)return me;return me.kind===207?j.updateArrayBindingPattern(me,kn(me.elements,ni,HU)):j.updateObjectBindingPattern(me,kn(me.elements,ni,Vs));function ni(xi){return xi.kind===232?xi:(xi.propertyName&&Ms(xi.propertyName)&&tc(xi.propertyName.expression)&&Fr(xi.propertyName.expression,b),xi.propertyName&&at(xi.propertyName)&&at(xi.name)&&!xi.symbol.isReferenced&&!Lq(xi.propertyName)?j.updateBindingElement(xi,xi.dotDotDotToken,void 0,xi.propertyName,Ut(xi)?xi.initializer:void 0):j.updateBindingElement(xi,xi.dotDotDotToken,xi.propertyName,ei(xi.name),Ut(xi)?xi.initializer:void 0))}}function ft(me,ni,xi){let pt;M||(pt=s,s=h5(me));const Ot=j.updateParameterDeclaration(me,ezt(j,me,ni),me.dotDotDotToken,ei(me.name),ne.isOptionalParameter(me)?me.questionToken||j.createToken(58):void 0,Vi(me,xi||me.type,!0),Ni(me));return M||(s=pt),Ot}function Ut(me){return tzt(me)&&ne.isLiteralConstDeclaration(Za(me))}function Ni(me){if(Ut(me))return ne.createLiteralConstValue(Za(me),K)}function Vi(me,ni,xi){if(!xi&&Rf(me,2)||Ut(me))return;const pt=me.kind===169&&(ne.isRequiredInitializedParameter(me)||ne.isOptionalUninitializedParameterProperty(me));if(ni&&!pt)return yt(ni,Cn,Xr);if(!Za(me))return ni?yt(ni,Cn,Xr):j.createKeywordTypeNode(133);if(me.kind===178)return j.createKeywordTypeNode(133);Y=me.name;let Ot;if(M||(Ot=s,s=h5(me)),me.kind===260||me.kind===208)return Ei(ne.createTypeOfDeclaration(me,b,Tk,K));if(me.kind===169||me.kind===172||me.kind===171)return zm(me)||!me.initializer?Ei(ne.createTypeOfDeclaration(me,b,Tk,K,pt)):Ei(ne.createTypeOfDeclaration(me,b,Tk,K,pt)||ne.createTypeOfExpression(me.initializer,b,Tk,K));return Ei(ne.createReturnTypeOfSignatureDeclaration(me,b,Tk,K));function Ei($i){return Y=void 0,M||(s=Ot),$i||j.createKeywordTypeNode(133)}}function xn(me){switch(me=Za(me),me.kind){case 262:case 267:case 264:case 263:case 265:case 266:return!ne.isDeclarationVisible(me);case 260:return!an(me);case 271:case 272:case 278:case 277:return!1;case 175:return!0}return!1}function Jn(me){var ni;if(me.body)return!0;const xi=(ni=me.symbol.declarations)==null?void 0:ni.filter(pt=>td(pt)&&!pt.body);return!xi||xi.indexOf(me)===xi.length-1}function an(me){return Fd(me)?!1:So(me.name)?Ge(me.name.elements,an):ne.isDeclarationVisible(me)}function Pi(me,ni,xi){if(Rf(me,2))return j.createNodeArray();const pt=Vt(ni,Ot=>ft(Ot,xi));return pt?j.createNodeArray(pt,ni.hasTrailingComma):j.createNodeArray()}function Fi(me,ni){let xi;if(!ni){const pt=L2(me);pt&&(xi=[ft(pt)])}if(jf(me)){let pt;if(!ni){const Ot=fP(me);if(Ot){const Ei=Et(me,ne.getAllAccessorDeclarations(me));pt=ft(Ot,void 0,Ei)}}pt||(pt=j.createParameterDeclaration(void 0,void 0,"value")),xi=Di(xi,pt)}return j.createNodeArray(xi||Dt)}function Yu(me,ni){return Rf(me,2)?void 0:kn(ni,Cn,wl)}function oa(me){return ca(me)||Vp(me)||xc(me)||Jc(me)||Ch(me)||Co(me)||Ek(me)||$P(me)}function Fr(me,ni){const xi=ne.isEntityNameVisible(me,ni);Be(xi),pe(ne.getTypeReferenceDirectivesForEntityName(me))}function wa(me,ni){return lm(me)&&lm(ni)&&(me.jsDoc=ni.jsDoc),Tc(me,uE(ni))}function bt(me,ni){if(ni){if(p=p||me.kind!==267&&me.kind!==205,i0(ni))if(f){const xi=bye(t.getEmitHost(),ne,me);if(xi)return j.createStringLiteral(xi)}else{const xi=ne.getSymbolOfExternalModuleSpecifier(ni);xi&&(z||(z=[])).push(xi)}return ni}}function jn(me){if(ne.isDeclarationVisible(me))if(me.moduleReference.kind===283){const ni=eP(me);return j.updateImportEqualsDeclaration(me,me.modifiers,me.isTypeOnly,me.name,j.updateExternalModuleReference(me.moduleReference,bt(me,ni)))}else{const ni=s;return s=h5(me),Fr(me.moduleReference,b),s=ni,me}}function Ln(me){if(!me.importClause)return j.updateImportDeclaration(me,me.modifiers,me.importClause,bt(me,me.moduleSpecifier),Ai(me.attributes));const ni=me.importClause&&me.importClause.name&&ne.isDeclarationVisible(me.importClause)?me.importClause.name:void 0;if(!me.importClause.namedBindings)return ni&&j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,void 0),bt(me,me.moduleSpecifier),Ai(me.attributes));if(me.importClause.namedBindings.kind===274){const pt=ne.isDeclarationVisible(me.importClause.namedBindings)?me.importClause.namedBindings:void 0;return ni||pt?j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,pt),bt(me,me.moduleSpecifier),Ai(me.attributes)):void 0}const xi=qi(me.importClause.namedBindings.elements,pt=>ne.isDeclarationVisible(pt)?pt:void 0);if(xi&&xi.length||ni)return j.updateImportDeclaration(me,me.modifiers,j.updateImportClause(me.importClause,me.importClause.isTypeOnly,ni,xi&&xi.length?j.updateNamedImports(me.importClause.namedBindings,xi):void 0),bt(me,me.moduleSpecifier),Ai(me.attributes));if(ne.isImportRequiredByAugmentation(me))return j.updateImportDeclaration(me,me.modifiers,void 0,bt(me,me.moduleSpecifier),Ai(me.attributes))}function Ai(me){const ni=qB(me);return me&&ni!==void 0?me:void 0}function Dn(me){for(;S(k);){const xi=k.shift();if(!uq(xi))return H.fail(`Late replaced statement was found which is not handled by the declaration transformer!: ${H.formatSyntaxKind(xi.kind)}`);const pt=d;d=xi.parent&&ca(xi.parent)&&!(Lc(xi.parent)&&f);const Ot=Ta(xi);d=pt,T.set(z1(xi),Ot)}return kn(me,ni,ua);function ni(xi){if(uq(xi)){const pt=z1(xi);if(T.has(pt)){const Ot=T.get(pt);return T.delete(pt),Ot&&((Wa(Ot)?Ge(Ot,KU):KU(Ot))&&(E=!0),ca(xi.parent)&&(Wa(Ot)?Ge(Ot,QO):QO(Ot))&&(p=!0)),Ot}}return xi}}function Cn(me){if(Mt(me)||X1(me)&&(xn(me)||Ix(me)&&!ne.isLateBound(Za(me)))||Co(me)&&ne.isImplementationOfOverload(me)||pFe(me))return;let ni;oa(me)&&(ni=b,b=me);const xi=s,pt=gQ(me),Ot=M;let Ei=(me.kind===187||me.kind===200)&&me.parent.kind!==265;if((hc(me)||u3(me))&&Rf(me,2))return me.symbol&&me.symbol.declarations&&me.symbol.declarations[0]!==me?void 0:$i(j.createPropertyDeclaration(Pe(me),me.name,void 0,void 0,void 0));if(pt&&!M&&(s=h5(me)),bB(me)&&Fr(me.exprName,b),Ei&&(M=!0),nzt(me))switch(me.kind){case 233:{(sm(me.expression)||tc(me.expression))&&Fr(me.expression,b);const Qi=rn(me,Cn,t);return $i(j.updateExpressionWithTypeArguments(Qi,Qi.expression,Qi.typeArguments))}case 183:{Fr(me.typeName,b);const Qi=rn(me,Cn,t);return $i(j.updateTypeReferenceNode(Qi,Qi.typeName,Qi.typeArguments))}case 180:return $i(j.updateConstructSignature(me,Yu(me,me.typeParameters),Pi(me,me.parameters),Vi(me,me.type)));case 176:{const Qi=j.createConstructorDeclaration(Pe(me),Pi(me,me.parameters,0),void 0);return $i(Qi)}case 174:{if(ea(me.name))return $i(void 0);const Qi=j.createMethodDeclaration(Pe(me),void 0,me.name,me.questionToken,Yu(me,me.typeParameters),Pi(me,me.parameters),Vi(me,me.type),void 0);return $i(Qi)}case 177:{if(ea(me.name))return $i(void 0);const Qi=Et(me,ne.getAllAccessorDeclarations(me));return $i(j.updateGetAccessorDeclaration(me,Pe(me),me.name,Fi(me,Rf(me,2)),Vi(me,Qi),void 0))}case 178:return ea(me.name)?$i(void 0):$i(j.updateSetAccessorDeclaration(me,Pe(me),me.name,Fi(me,Rf(me,2)),void 0));case 172:return ea(me.name)?$i(void 0):$i(j.updatePropertyDeclaration(me,Pe(me),me.name,me.questionToken,Vi(me,me.type),Ni(me)));case 171:return ea(me.name)?$i(void 0):$i(j.updatePropertySignature(me,Pe(me),me.name,me.questionToken,Vi(me,me.type)));case 173:return ea(me.name)?$i(void 0):$i(j.updateMethodSignature(me,Pe(me),me.name,me.questionToken,Yu(me,me.typeParameters),Pi(me,me.parameters),Vi(me,me.type)));case 179:return $i(j.updateCallSignature(me,Yu(me,me.typeParameters),Pi(me,me.parameters),Vi(me,me.type)));case 181:return $i(j.updateIndexSignature(me,Pe(me),Pi(me,me.parameters),yt(me.type,Cn,Xr)||j.createKeywordTypeNode(133)));case 260:return So(me.name)?bo(me.name):(Ei=!0,M=!0,$i(j.updateVariableDeclaration(me,me.name,void 0,Vi(me,me.type),Ni(me))));case 168:return tu(me)&&(me.default||me.constraint)?$i(j.updateTypeParameterDeclaration(me,me.modifiers,me.name,void 0,void 0)):$i(rn(me,Cn,t));case 194:{const Qi=yt(me.checkType,Cn,Xr),on=yt(me.extendsType,Cn,Xr),le=b;b=me.trueType;const te=yt(me.trueType,Cn,Xr);b=le;const we=yt(me.falseType,Cn,Xr);return H.assert(Qi),H.assert(on),H.assert(te),H.assert(we),$i(j.updateConditionalTypeNode(me,Qi,on,te,we))}case 184:return $i(j.updateFunctionTypeNode(me,kn(me.typeParameters,Cn,wl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Xr))));case 185:return $i(j.updateConstructorTypeNode(me,Pe(me),kn(me.typeParameters,Cn,wl),Pi(me,me.parameters),H.checkDefined(yt(me.type,Cn,Xr))));case 205:return zx(me)?(xe(me),$i(j.updateImportTypeNode(me,j.updateLiteralTypeNode(me.argument,bt(me,me.argument.literal)),me.attributes,me.qualifier,kn(me.typeArguments,Cn,Xr),me.isTypeOf))):$i(me);default:H.assertNever(me,`Attempted to process unhandled node kind: ${H.formatSyntaxKind(me.kind)}`)}return yB(me)&&s0(se,me.pos).line===s0(se,me.end).line&&Yn(me,1),$i(rn(me,Cn,t));function $i(Qi){return Qi&&pt&&Ix(me)&&_t(me),oa(me)&&(b=ni),pt&&!M&&(s=xi),Ei&&(M=Ot),Qi===me?Qi:Qi&&su(wa(Qi,me),me)}}function tu(me){return me.parent.kind===174&&Rf(me.parent,2)}function sa(me){if(!izt(me)||Mt(me))return;switch(me.kind){case 278:return ca(me.parent)&&(p=!0),v=!0,xe(me),j.updateExportDeclaration(me,me.modifiers,me.isTypeOnly,me.exportClause,bt(me,me.moduleSpecifier),Ai(me.attributes));case 277:{if(ca(me.parent)&&(p=!0),v=!0,me.expression.kind===80)return me;{const xi=j.createUniqueName("_default",16);s=()=>({diagnosticMessage:F.Default_export_of_the_module_has_or_is_using_private_name_0,errorNode:me}),oe=me;const pt=j.createVariableDeclaration(xi,void 0,ne.createTypeOfExpression(me.expression,me,Tk,K),void 0);oe=void 0;const Ot=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([pt],2));return wa(Ot,me),_V(me),[Ot,j.updateExportAssignment(me,me.modifiers,xi)]}}}const ni=Ta(me);return T.set(z1(me),ni),me}function xa(me){if(_1(me)||Rf(me,2048)||!Kp(me))return me;const ni=j.createModifiersFromModifierFlags(Dh(me)&131039);return j.replaceModifiers(me,ni)}function aa(me,ni,xi,pt){const Ot=j.updateModuleDeclaration(me,ni,xi,pt);if(P1(Ot)||Ot.flags&32)return Ot;const Ei=j.createModuleDeclaration(Ot.modifiers,Ot.name,Ot.body,Ot.flags|32);return su(Ei,Ot),Pt(Ei,Ot),Ei}function Ta(me){if(k)for(;EO(k,me););if(Mt(me))return;switch(me.kind){case 271:{const $i=jn(me);return $i&&xe(me),$i}case 272:{const $i=Ln(me);return $i&&xe(me),$i}}if(X1(me)&&xn(me)||Co(me)&&ne.isImplementationOfOverload(me))return;let ni;oa(me)&&(ni=b,b=me);const xi=gQ(me),pt=s;xi&&(s=h5(me));const Ot=d;switch(me.kind){case 265:{d=!1;const $i=Ei(j.updateTypeAliasDeclaration(me,Pe(me),me.name,kn(me.typeParameters,Cn,wl),H.checkDefined(yt(me.type,Cn,Xr))));return d=Ot,$i}case 264:return Ei(j.updateInterfaceDeclaration(me,Pe(me),me.name,Yu(me,me.typeParameters),ii(me.heritageClauses),kn(me.members,Cn,Zy)));case 262:{const $i=Ei(j.updateFunctionDeclaration(me,Pe(me),void 0,me.name,Yu(me,me.typeParameters),Pi(me,me.parameters),Vi(me,me.type),void 0));if($i&&ne.isExpandoFunctionDeclaration(me)&&Jn(me)){const Qi=ne.getPropertiesOfContainerFunction(me),on=o_.createModuleDeclaration(void 0,$i.name||j.createIdentifier("_default"),j.createModuleBlock([]),32);ks(on,b),on.locals=Ho(Qi),on.symbol=Qi[0].parent;const le=[];let te=qi(Qi,Ct=>{if(!DZ(Ct.valueDeclaration))return;const ct=Qr(Ct.escapedName);if(!Nm(ct,99))return;s=h5(Ct.valueDeclaration);const Qt=ne.createTypeOfDeclaration(Ct.valueDeclaration,on,Tk,K);s=pt;const Ti=m7(ct),Ui=Ti?j.getGeneratedNameForNode(Ct.valueDeclaration):j.createIdentifier(ct);Ti&&le.push([Ui,ct]);const Sn=j.createVariableDeclaration(Ui,void 0,Qt,void 0);return j.createVariableStatement(Ti?void 0:[j.createToken(95)],j.createVariableDeclarationList([Sn]))});le.length?te.push(j.createExportDeclaration(void 0,!1,j.createNamedExports(Vt(le,([Ct,ct])=>j.createExportSpecifier(!1,Ct,ct))))):te=qi(te,Ct=>j.replaceModifiers(Ct,0));const we=j.createModuleDeclaration(Pe(me),me.name,j.createModuleBlock(te),32);if(!Rf($i,2048))return[$i,we];const de=j.createModifiersFromModifierFlags(Dh($i)&-2081|128),Oe=j.updateFunctionDeclaration($i,de,void 0,$i.name,$i.typeParameters,$i.parameters,$i.type,void 0),X=j.updateModuleDeclaration(we,de,we.name,we.body),it=j.createExportAssignment(void 0,!1,we.name);return ca(me.parent)&&(p=!0),v=!0,[Oe,X,it]}else return $i}case 267:{d=!1;const $i=me.body;if($i&&$i.kind===268){const Qi=E,on=v;v=!1,E=!1;const le=kn($i.statements,sa,ua);let te=Dn(le);me.flags&33554432&&(E=!1),!Qg(me)&&!Xt(te)&&!v&&(E?te=j.createNodeArray([...te,PV(j)]):te=kn(te,xa,ua));const we=j.updateModuleBlock($i,te);d=Ot,E=Qi,v=on;const de=Pe(me);return Ei(aa(me,de,C2(me)?bt(me,me.name):me.name,we))}else{d=Ot;const Qi=Pe(me);d=!1,yt($i,sa);const on=z1($i),le=T.get(on);return T.delete(on),Ei(aa(me,Qi,me.name,le))}}case 263:{Y=me.name,oe=me;const $i=j.createNodeArray(Pe(me)),Qi=Yu(me,me.typeParameters),on=e3(me);let le;if(on){const it=s;le=vr(Vu(on.parameters,Ct=>{if(!Qu(Ct,31)||Mt(Ct))return;if(s=h5(Ct),Ct.name.kind===80)return wa(j.createPropertyDeclaration(Pe(Ct),Ct.name,Ct.questionToken,Vi(Ct,Ct.type),Ni(Ct)),Ct);return ct(Ct.name);function ct(Qt){let Ti;for(const Ui of Qt.elements)Fd(Ui)||(So(Ui.name)&&(Ti=mi(Ti,ct(Ui.name))),Ti=Ti||[],Ti.push(j.createPropertyDeclaration(Pe(Ct),Ui.name,void 0,Vi(Ui,void 0),void 0)));return Ti}})),s=it}const we=Ge(me.members,it=>!!it.name&&ea(it.name))?[j.createPropertyDeclaration(void 0,j.createPrivateIdentifier("#private"),void 0,void 0,void 0)]:void 0,de=mi(mi(we,le),kn(me.members,Cn,Yd)),Oe=j.createNodeArray(de),X=Xg(me);if(X&&!tc(X.expression)&&X.expression.kind!==106){const it=me.name?Qr(me.name.escapedText):"default",Ct=j.createUniqueName(`${it}_base`,16);s=()=>({diagnosticMessage:F.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,errorNode:X,typeName:me.name});const ct=j.createVariableDeclaration(Ct,void 0,ne.createTypeOfExpression(X.expression,me,Tk,K),void 0),Qt=j.createVariableStatement(d?[j.createModifier(138)]:[],j.createVariableDeclarationList([ct],2)),Ti=j.createNodeArray(Vt(me.heritageClauses,Ui=>{if(Ui.token===96){const Sn=s;s=h5(Ui.types[0]);const du=j.updateHeritageClause(Ui,Vt(Ui.types,Ou=>j.updateExpressionWithTypeArguments(Ou,Ct,kn(Ou.typeArguments,Cn,Xr))));return s=Sn,du}return j.updateHeritageClause(Ui,kn(j.createNodeArray(ti(Ui.types,Sn=>tc(Sn.expression)||Sn.expression.kind===106)),Cn,c5))}));return[Qt,Ei(j.updateClassDeclaration(me,$i,me.name,Qi,Ti,Oe))]}else{const it=ii(me.heritageClauses);return Ei(j.updateClassDeclaration(me,$i,me.name,Qi,it,Oe))}}case 243:return Ei(Qo(me));case 266:return Ei(j.updateEnumDeclaration(me,j.createNodeArray(Pe(me)),me.name,j.createNodeArray(qi(me.members,$i=>{if(Mt($i))return;const Qi=ne.getConstantValue($i);return wa(j.updateEnumMember($i,$i.name,Qi!==void 0?typeof Qi=="string"?j.createStringLiteral(Qi):j.createNumericLiteral(Qi):void 0),$i)}))))}return H.assertNever(me,`Unhandled top-level node in declaration emit: ${H.formatSyntaxKind(me.kind)}`);function Ei($i){return oa(me)&&(b=ni),xi&&(s=pt),me.kind===267&&(d=Ot),$i===me?$i:(oe=void 0,Y=void 0,$i&&su(wa($i,me),me))}}function Qo(me){if(!L(me.declarationList.declarations,an))return;const ni=kn(me.declarationList.declarations,Cn,ra);if(!S(ni))return;const xi=j.createNodeArray(Pe(me));let pt;return dj(me.declarationList)||cj(me.declarationList)?(pt=j.createVariableDeclarationList(ni,2),su(pt,me.declarationList),Pt(pt,me.declarationList),Tc(pt,me.declarationList)):pt=j.updateVariableDeclarationList(me.declarationList,ni),j.updateVariableStatement(me,xi,pt)}function bo(me){return Ha(qi(me.elements,ni=>Qe(ni)))}function Qe(me){if(me.kind!==232&&me.name)return an(me)?So(me.name)?bo(me.name):j.createVariableDeclaration(me.name,void 0,Vi(me,void 0),void 0):void 0}function _t(me){let ni;M||(ni=s,s=T7e(me)),Y=me.name,H.assert(ne.isLateBound(Za(me)));const pt=me.name.expression;Fr(pt,b),M||(s=ni),Y=void 0}function Mt(me){return!!Ne&&!!me&&l1e(me,se)}function qt(me){return ic(me)||$c(me)}function Xt(me){return Ge(me,qt)}function Pe(me){const ni=Dh(me),xi=et(me);return ni===xi?hH(me.modifiers,pt=>ar(pt,Xo),Xo):j.createModifiersFromModifierFlags(xi)}function et(me){let ni=130030,xi=d&&!XMt(me)?128:0;const pt=me.parent.kind===312;return(!pt||f&&pt&&Lc(me.parent))&&(ni^=128,xi=0),Xet(me,ni,xi)}function Et(me,ni){let xi=N7e(me);return!xi&&me!==ni.firstAccessor&&(xi=N7e(ni.firstAccessor),s=h5(ni.firstAccessor)),!xi&&ni.secondAccessor&&me!==ni.secondAccessor&&(xi=N7e(ni.secondAccessor),s=h5(ni.secondAccessor)),xi}function ii(me){return j.createNodeArray(ti(Vt(me,ni=>j.updateHeritageClause(ni,kn(j.createNodeArray(ti(ni.types,xi=>tc(xi.expression)||ni.token===96&&xi.expression.kind===106)),Cn,c5))),ni=>ni.types&&!!ni.types.length))}}function XMt(t){return t.kind===264}function ezt(t,u,s,d){return t.createModifiersFromModifierFlags(Xet(u,s,d))}function Xet(t,u=131070,s=0){let d=Dh(t)&u|s;return d&2048&&!(d&32)&&(d^=32),d&2048&&d&128&&(d^=128),d}function N7e(t){if(t)return t.kind===177?t.type:t.parameters.length>0?t.parameters[0].type:void 0}function tzt(t){switch(t.kind){case 172:case 171:return!Rf(t,2);case 169:case 260:return!0}return!1}function izt(t){switch(t.kind){case 262:case 267:case 271:case 264:case 263:case 265:case 266:case 243:case 272:case 278:case 277:return!0}return!1}function nzt(t){switch(t.kind){case 180:case 176:case 174:case 177:case 178:case 172:case 171:case 173:case 179:case 181:case 260:case 168:case 233:case 183:case 194:case 184:case 185:case 205:return!0}return!1}var Tk,uzt=o({"src/compiler/transformers/declarations.ts"(){Bo(),OAe(),Tk=531469}});function rzt(t){switch(t){case 99:case 7:case 6:case 5:return s1e;case 4:return B7e;case 100:case 199:return w7e;default:return o1e}}function d1e(t,u,s){return{scriptTransformers:azt(t,u,s),declarationTransformers:ozt(u)}}function azt(t,u,s){if(s)return Dt;const d=js(t),f=p1(t),p=tV(t),E=[];return yn(E,u&&Vt(u.before,ttt)),E.push(c7e),t.experimentalDecorators&&E.push(f7e),uZ(t)&&E.push(y7e),d<99&&E.push(x7e),!t.experimentalDecorators&&(d<99||!p)&&E.push(m7e),E.push(d7e),d<8&&E.push(D7e),d<7&&E.push(_7e),d<6&&E.push(E7e),d<5&&E.push(g7e),d<4&&E.push(p7e),d<3&&E.push(k7e),d<2&&(E.push(F7e),E.push(S7e)),E.push(rzt(f)),d<1&&E.push(A7e),yn(E,u&&Vt(u.after,ttt)),E}function ozt(t){const u=[];return u.push(c1e),yn(u,t&&Vt(t.afterDeclarations,lzt)),u}function szt(t){return u=>Ace(u)?t.transformBundle(u):t.transformSourceFile(u)}function ett(t,u){return s=>{const d=t(s);return typeof d=="function"?u(s,d):szt(d)}}function ttt(t){return ett(t,Wp)}function lzt(t){return ett(t,(u,s)=>s)}function vM(t,u){return u}function pH(t,u,s){s(t,u)}function gH(t,u,s,d,f,p,E){var v,b;const B=new Array(363);let k,T,M,z=0,j=[],J=[],K=[],Y=[],oe=0,se=!1,ge=[],ae=0,Ce,ne,ve=vM,Se=pH,Ne=0;const pe=[],fe={factory:s,getCompilerOptions:()=>d,getEmitResolver:()=>t,getEmitHost:()=>u,getEmitHelperFactory:zh(()=>Xke(fe)),startLexicalEnvironment:Ie,suspendLexicalEnvironment:st,resumeLexicalEnvironment:Bt,endLexicalEnvironment:It,setLexicalEnvironmentFlags:ei,getLexicalEnvironmentFlags:ft,hoistVariableDeclaration:Ke,hoistFunctionDeclaration:Gt,addInitializationStatement:Yt,startBlockScope:Ut,endBlockScope:Ni,addBlockScopedVariable:Vi,requestEmitHelper:xn,readEmitHelpers:Jn,enableSubstitution:De,enableEmitNotification:mt,isSubstitutionEnabled:He,isEmitNotificationEnabled:Ye,get onSubstituteNode(){return ve},set onSubstituteNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),ve=Pi},get onEmitNode(){return Se},set onEmitNode(Pi){H.assert(Ne<1,"Cannot modify transformation hooks after initialization has completed."),H.assert(Pi!==void 0,"Value must not be 'undefined'"),Se=Pi},addDiagnostic(Pi){pe.push(Pi)}};for(const Pi of f)lce(zn(Za(Pi)));al("beforeTransform");const xe=p.map(Pi=>Pi(fe)),Be=Pi=>{for(const Fi of xe)Pi=Fi(Pi);return Pi};Ne=1;const We=[];for(const Pi of f)(v=Gn)==null||v.push(Gn.Phase.Emit,"transformNodes",Pi.kind===312?{path:Pi.path}:{kind:Pi.kind,pos:Pi.pos,end:Pi.end}),We.push((E?Be:Ae)(Pi)),(b=Gn)==null||b.pop();return Ne=2,al("afterTransform"),Lm("transformTime","beforeTransform","afterTransform"),{transformed:We,substituteNode:Je,emitNodeWithNotification:je,isEmitNotificationEnabled:Ye,dispose:an,diagnostics:pe};function Ae(Pi){return Pi&&(!ca(Pi)||!Pi.isDeclarationFile)?Be(Pi):Pi}function De(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=1}function He(Pi){return(B[Pi.kind]&1)!==0&&(bs(Pi)&8)===0}function Je(Pi,Fi){return H.assert(Ne<3,"Cannot substitute a node after the result is disposed."),Fi&&He(Fi)&&ve(Pi,Fi)||Fi}function mt(Pi){H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),B[Pi]|=2}function Ye(Pi){return(B[Pi.kind]&2)!==0||(bs(Pi)&4)!==0}function je(Pi,Fi,Yu){H.assert(Ne<3,"Cannot invoke TransformationResult callbacks after the result is disposed."),Fi&&(Ye(Fi)?Se(Pi,Fi,Yu):Yu(Pi,Fi))}function Ke(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed.");const Fi=Yn(s.createVariableDeclaration(Pi),128);k?k.push(Fi):k=[Fi],z&1&&(z|=2)}function Gt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Yn(Pi,2097152),T?T.push(Pi):T=[Pi]}function Yt(Pi){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),Yn(Pi,2097152),M?M.push(Pi):M=[Pi]}function Ie(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended."),j[oe]=k,J[oe]=T,K[oe]=M,Y[oe]=z,oe++,k=void 0,T=void 0,M=void 0,z=0}function st(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is already suspended."),se=!0}function Bt(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(se,"Lexical environment is not suspended."),se=!1}function It(){H.assert(Ne>0,"Cannot modify the lexical environment during initialization."),H.assert(Ne<2,"Cannot modify the lexical environment after transformation has completed."),H.assert(!se,"Lexical environment is suspended.");let Pi;if(k||T||M){if(T&&(Pi=[...T]),k){const Fi=s.createVariableStatement(void 0,s.createVariableDeclarationList(k));Yn(Fi,2097152),Pi?Pi.push(Fi):Pi=[Fi]}M&&(Pi?Pi=[...Pi,...M]:Pi=[...M])}return oe--,k=j[oe],T=J[oe],M=K[oe],z=Y[oe],oe===0&&(j=[],J=[],K=[],Y=[]),Pi}function ei(Pi,Fi){z=Fi?z|Pi:z&~Pi}function ft(){return z}function Ut(){H.assert(Ne>0,"Cannot start a block scope during initialization."),H.assert(Ne<2,"Cannot start a block scope after transformation has completed."),ge[ae]=Ce,ae++,Ce=void 0}function Ni(){H.assert(Ne>0,"Cannot end a block scope during initialization."),H.assert(Ne<2,"Cannot end a block scope after transformation has completed.");const Pi=Ge(Ce)?[s.createVariableStatement(void 0,s.createVariableDeclarationList(Ce.map(Fi=>s.createVariableDeclaration(Fi)),1))]:void 0;return ae--,Ce=ge[ae],ae===0&&(ge=[]),Pi}function Vi(Pi){H.assert(ae>0,"Cannot add a block scoped variable outside of an iteration body."),(Ce||(Ce=[])).push(Pi)}function xn(Pi){if(H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed."),H.assert(!Pi.scoped,"Cannot request a scoped emit helper."),Pi.dependencies)for(const Fi of Pi.dependencies)xn(Fi);ne=Di(ne,Pi)}function Jn(){H.assert(Ne>0,"Cannot modify the transformation context during initialization."),H.assert(Ne<2,"Cannot modify the transformation context after transformation has completed.");const Pi=ne;return ne=void 0,Pi}function an(){if(Ne<3){for(const Pi of f)lce(zn(Za(Pi)));k=void 0,j=void 0,T=void 0,J=void 0,ve=void 0,Se=void 0,ne=void 0,Ne=3}}}var h1e,Dg,czt=o({"src/compiler/transformer.ts"(){Bo(),Wy(),h1e={scriptTransformers:Dt,declarationTransformers:Dt},Dg={factory:q,getCompilerOptions:()=>({}),getEmitResolver:fo,getEmitHost:fo,getEmitHelperFactory:fo,startLexicalEnvironment:Rs,resumeLexicalEnvironment:Rs,suspendLexicalEnvironment:Rs,endLexicalEnvironment:fv,setLexicalEnvironmentFlags:Rs,getLexicalEnvironmentFlags:()=>0,hoistVariableDeclaration:Rs,hoistFunctionDeclaration:Rs,addInitializationStatement:Rs,startBlockScope:Rs,endBlockScope:fv,addBlockScopedVariable:Rs,requestEmitHelper:Rs,readEmitHelpers:fo,enableSubstitution:Rs,enableEmitNotification:Rs,isSubstitutionEnabled:fo,isEmitNotificationEnabled:fo,onSubstituteNode:vM,onEmitNode:pH,addDiagnostic:Rs}}});function P7e(t){return Ml(t,".tsbuildinfo")}function f1e(t,u,s,d=!1,f,p){const E=Wa(s)?s:ule(t,s,d),v=t.getCompilerOptions();if(F0(v)){const b=t.getPrependNodes();if(E.length||b.length){const B=q.createBundle(E,b),k=u(bM(B,t,d),B);if(k)return k}}else{if(!f)for(const b of E){const B=u(bM(b,t,d),b);if(B)return B}if(p){const b=f5(v);if(b)return u({buildInfoPath:b},void 0)}}}function f5(t){const u=t.configFilePath;if(!eV(t))return;if(t.tsBuildInfoFile)return t.tsBuildInfoFile;const s=F0(t);let d;if(s)d=xh(s);else{if(!u)return;const f=xh(u);d=t.outDir?t.rootDir?kx(t.outDir,$E(t.rootDir,f,!0)):hr(t.outDir,Bc(f)):f}return d+".tsbuildinfo"}function CM(t,u){const s=F0(t),d=t.emitDeclarationOnly?void 0:s,f=d&&itt(d,t),p=u||f4(t)?xh(s)+".d.ts":void 0,E=p&&tZ(t)?p+".map":void 0,v=f5(t);return{jsFilePath:d,sourceMapFilePath:f,declarationFilePath:p,declarationMapPath:E,buildInfoPath:v}}function bM(t,u,s){const d=u.getCompilerOptions();if(t.kind===313)return CM(d,s);{const f=yye(t.fileName,u,EQ(t.fileName,d)),p=J4(t),E=p&&gv(t.fileName,f,u.getCurrentDirectory(),!u.useCaseSensitiveFileNames())===0,v=d.emitDeclarationOnly||E?void 0:f,b=!v||J4(t)?void 0:itt(v,d),B=s||f4(d)&&!p?kye(t.fileName,u):void 0,k=B&&tZ(d)?B+".map":void 0;return{jsFilePath:v,sourceMapFilePath:b,declarationFilePath:B,declarationMapPath:k,buildInfoPath:void 0}}}function itt(t,u){return u.sourceMap&&!u.inlineSourceMap?t+".map":void 0}function EQ(t,u){return Ml(t,".json")?".json":u.jsx===1&&Hc(t,[".jsx",".tsx"])?".jsx":Hc(t,[".mts",".mjs"])?".mjs":Hc(t,[".cts",".cjs"])?".cjs":".js"}function ntt(t,u,s,d,f){return d?kx(d,$E(f?f():FM(u,s),t,s)):t}function yM(t,u,s,d){return Tv(ntt(t,u,s,u.options.declarationDir||u.options.outDir,d),Wj(t))}function utt(t,u,s,d){if(u.options.emitDeclarationOnly)return;const f=Ml(t,".json"),p=Tv(ntt(t,u,s,u.options.outDir,d),EQ(t,u.options));return!f||gv(t,p,H.checkDefined(u.options.configFilePath),s)!==0?p:void 0}function rtt(){let t;return{addOutput:u,getOutputs:s};function u(d){d&&(t||(t=[])).push(d)}function s(){return t||Dt}}function att(t,u){const{jsFilePath:s,sourceMapFilePath:d,declarationFilePath:f,declarationMapPath:p,buildInfoPath:E}=CM(t.options,!1);u(s),u(d),u(f),u(p),u(E)}function ott(t,u,s,d,f){if(t1(u))return;const p=utt(u,t,s,f);if(d(p),!Ml(u,".json")&&(p&&t.options.sourceMap&&d(`${p}.map`),f4(t.options))){const E=yM(u,t,s,f);d(E),t.options.declarationMap&&d(`${E}.map`)}}function kM(t,u,s,d,f){let p;return t.rootDir?(p=qa(t.rootDir,s),f==null||f(t.rootDir)):t.composite&&t.configFilePath?(p=dr(Z1(t.configFilePath)),f==null||f(p)):p=j7e(u(),s,d),p&&p[p.length-1]!==ol&&(p+=ol),p}function FM({options:t,fileNames:u},s){return kM(t,()=>ti(u,d=>!(t.noEmitForJsFiles&&Hc(d,_B))&&!t1(d)),dr(Z1(H.checkDefined(t.configFilePath))),N1(!s))}function _Q(t,u){const{addOutput:s,getOutputs:d}=rtt();if(F0(t.options))att(t,s);else{const f=zh(()=>FM(t,u));for(const p of t.fileNames)ott(t,p,u,s,f);s(f5(t.options))}return d()}function stt(t,u,s){u=Uo(u),H.assert(kt(t.fileNames,u),"Expected fileName to be present in command line");const{addOutput:d,getOutputs:f}=rtt();return F0(t.options)?att(t,d):ott(t,u,s,d),f()}function m1e(t,u){if(F0(t.options)){const{jsFilePath:f,declarationFilePath:p}=CM(t.options,!1);return H.checkDefined(f||p,`project ${t.options.configFilePath} expected to have at least one output`)}const s=zh(()=>FM(t,u));for(const f of t.fileNames){if(t1(f))continue;const p=utt(f,t,u,s);if(p)return p;if(!Ml(f,".json")&&f4(t.options))return yM(f,t,u,s)}const d=f5(t.options);return d||H.fail(`project ${t.options.configFilePath} expected to have at least one output`)}function DQ(t,u,s,{scriptTransformers:d,declarationTransformers:f},p,E,v){var b=u.getCompilerOptions(),B=b.sourceMap||b.inlineSourceMap||tZ(b)?[]:void 0,k=b.listEmittedFiles?[]:void 0,T=rB(),M=a5(b),z=Hj(M),{enter:j,exit:J}=voe("printTime","beforePrint","afterPrint"),K,Y=!1;return j(),f1e(u,oe,ule(u,s,v),v,E,!s),J(),{emitSkipped:Y,diagnostics:T.getDiagnostics(),emittedFiles:k,sourceMaps:B};function oe({jsFilePath:fe,sourceMapFilePath:xe,declarationFilePath:Be,declarationMapPath:We,buildInfoPath:Ae},De){var He,Je,mt,Ye,je,Ke;let Gt;Ae&&De&&Ace(De)&&(Gt=dr(qa(Ae,u.getCurrentDirectory())),K={commonSourceDirectory:Yt(u.getCommonSourceDirectory()),sourceFiles:De.sourceFiles.map(Ie=>Yt(qa(Ie.fileName,u.getCurrentDirectory())))}),(He=Gn)==null||He.push(Gn.Phase.Emit,"emitJsFileOrBundle",{jsFilePath:fe}),ge(De,fe,xe,Yt),(Je=Gn)==null||Je.pop(),(mt=Gn)==null||mt.push(Gn.Phase.Emit,"emitDeclarationFileOrBundle",{declarationFilePath:Be}),ae(De,Be,We,Yt),(Ye=Gn)==null||Ye.pop(),(je=Gn)==null||je.push(Gn.Phase.Emit,"emitBuildInfo",{buildInfoPath:Ae}),se(K,Ae),(Ke=Gn)==null||Ke.pop(),!Y&&k&&(p||(fe&&k.push(fe),xe&&k.push(xe),Ae&&k.push(Ae)),p!==0&&(Be&&k.push(Be),We&&k.push(We)));function Yt(Ie){return f2($E(Gt,Ie,u.getCanonicalFileName))}}function se(fe,xe){if(!xe||s||Y)return;if(u.isEmitBlocked(xe)){Y=!0;return}const Be=u.getBuildInfo(fe)||EH(void 0,fe);dP(u,T,xe,M7e(Be),!1,void 0,{buildInfo:Be})}function ge(fe,xe,Be,We){if(!fe||p||!xe)return;if(u.isEmitBlocked(xe)||b.noEmit){Y=!0;return}const Ae=gH(t,u,q,b,[fe],d,!1),De={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:b.noEmitHelpers,module:b.module,target:b.target,sourceMap:b.sourceMap,inlineSourceMap:b.inlineSourceMap,inlineSources:b.inlineSources,extendedDiagnostics:b.extendedDiagnostics,writeBundleFileInfo:!!K,relativeToBuildInfo:We},He=Jv(De,{hasGlobalName:t.hasGlobalName,onEmitNode:Ae.emitNodeWithNotification,isEmitNotificationEnabled:Ae.isEmitNotificationEnabled,substituteNode:Ae.substituteNode});H.assert(Ae.transformed.length===1,"Should only see one output from the transform"),ne(xe,Be,Ae,He,b),Ae.dispose(),K&&(K.js=He.bundleFileInfo)}function ae(fe,xe,Be,We){if(!fe||p===0)return;if(!xe){(p||b.emitDeclarationOnly)&&(Y=!0);return}const Ae=ca(fe)?[fe]:fe.sourceFiles,De=v?Ae:ti(Ae,N0e),He=F0(b)?[q.createBundle(De,ca(fe)?void 0:fe.prepends)]:De;p&&!f4(b)&&De.forEach(Ce);const Je=gH(t,u,q,b,He,f,!1);if(S(Je.diagnostics))for(const Ke of Je.diagnostics)T.add(Ke);const mt={removeComments:b.removeComments,newLine:b.newLine,noEmitHelpers:!0,module:b.module,target:b.target,sourceMap:!v&&b.declarationMap,inlineSourceMap:b.inlineSourceMap,extendedDiagnostics:b.extendedDiagnostics,onlyPrintJsDocStyle:!0,omitBraceSourceMapPositions:!0,writeBundleFileInfo:!!K,recordInternalSection:!!K,relativeToBuildInfo:We},Ye=Jv(mt,{hasGlobalName:t.hasGlobalName,onEmitNode:Je.emitNodeWithNotification,isEmitNotificationEnabled:Je.isEmitNotificationEnabled,substituteNode:Je.substituteNode}),je=!!Je.diagnostics&&!!Je.diagnostics.length||!!u.isEmitBlocked(xe)||!!b.noEmit;Y=Y||je,(!je||v)&&(H.assert(Je.transformed.length===1,"Should only see one output from the decl transform"),ne(xe,Be,Je,Ye,{sourceMap:mt.sourceMap,sourceRoot:b.sourceRoot,mapRoot:b.mapRoot,extendedDiagnostics:b.extendedDiagnostics})),Je.dispose(),K&&(K.dts=Ye.bundleFileInfo)}function Ce(fe){if(ic(fe)){fe.expression.kind===80&&t.collectLinkedAliases(fe.expression,!0);return}else if(th(fe)){t.collectLinkedAliases(fe.propertyName||fe.name,!0);return}ao(fe,Ce)}function ne(fe,xe,Be,We,Ae){const De=Be.transformed[0],He=De.kind===313?De:void 0,Je=De.kind===312?De:void 0,mt=He?He.sourceFiles:[Je];let Ye;ve(Ae,De)&&(Ye=JAe(u,Bc(Z1(fe)),Se(Ae),Ne(Ae,fe,Je),Ae)),He?We.writeBundle(He,z,Ye):We.writeFile(Je,z,Ye);let je;if(Ye){B&&B.push({inputSourceFileNames:Ye.getSources(),sourceMap:Ye.toJSON()});const Gt=pe(Ae,Ye,fe,xe,Je);if(Gt&&(z.isAtStartOfLine()||z.rawWrite(M),je=z.getTextPos(),z.writeComment(`//# sourceMappingURL=${Gt}`)),xe){const Yt=Ye.toString();dP(u,T,xe,Yt,!1,mt),We.bundleFileInfo&&(We.bundleFileInfo.mapHash=Nk(Yt,u))}}else z.writeLine();const Ke=z.getText();dP(u,T,fe,Ke,!!b.emitBOM,mt,{sourceMapUrlPos:je,diagnostics:Be.diagnostics}),We.bundleFileInfo&&(We.bundleFileInfo.hash=Nk(Ke,u)),z.clear()}function ve(fe,xe){return(fe.sourceMap||fe.inlineSourceMap)&&(xe.kind!==312||!Ml(xe.fileName,".json"))}function Se(fe){const xe=Z1(fe.sourceRoot||"");return xe&&zd(xe)}function Ne(fe,xe,Be){if(fe.sourceRoot)return u.getCommonSourceDirectory();if(fe.mapRoot){let We=Z1(fe.mapRoot);return Be&&(We=dr(Oq(Be.fileName,u,We))),GE(We)===0&&(We=hr(u.getCommonSourceDirectory(),We)),We}return dr(Uo(xe))}function pe(fe,xe,Be,We,Ae){if(fe.inlineSourceMap){const He=xe.toString();return`data:application/json;base64,${Gye(d1,He)}`}const De=Bc(Z1(H.checkDefined(We)));if(fe.mapRoot){let He=Z1(fe.mapRoot);return Ae&&(He=dr(Oq(Ae.fileName,u,He))),GE(He)===0?(He=hr(u.getCommonSourceDirectory(),He),encodeURI(i7(dr(Uo(Be)),hr(He,De),u.getCurrentDirectory(),u.getCanonicalFileName,!0))):encodeURI(hr(He,De))}return encodeURI(De)}}function EH(t,u){return{bundle:u,program:t,version:_}}function M7e(t){return JSON.stringify(t)}function xQ(t,u){return mle(t,u)}function dzt(t,u,s){var d;const f=H.checkDefined(t.js),p=((d=f.sources)==null?void 0:d.prologues)&&lg(f.sources.prologues,E=>E.file);return t.sourceFiles.map((E,v)=>{const b=p==null?void 0:p.get(v),B=b==null?void 0:b.directives.map(M=>{const z=Pt(q.createStringLiteral(M.expression.text),M.expression),j=Pt(q.createExpressionStatement(z),M);return ks(z,j),j}),k=q.createToken(1),T=q.createSourceFile(B??[],k,0);return T.fileName=$E(s.getCurrentDirectory(),qa(E,u),!s.useCaseSensitiveFileNames()),T.text=(b==null?void 0:b.text)??"",TP(T,0,(b==null?void 0:b.text.length)??0),pB(T.statements,T),TP(k,T.end,0),ks(k,T),T})}function z7e(t,u,s,d){var f,p;(f=Gn)==null||f.push(Gn.Phase.Emit,"emitUsingBuildInfo",{},!0),al("beforeEmit");const E=hzt(t,u,s,d);return al("afterEmit"),Lm("Emit","beforeEmit","afterEmit"),(p=Gn)==null||p.pop(),E}function hzt(t,u,s,d){const{buildInfoPath:f,jsFilePath:p,sourceMapFilePath:E,declarationFilePath:v,declarationMapPath:b}=CM(t.options,!1),B=u.getBuildInfo(f,t.options.configFilePath);if(!B||!B.bundle||!B.bundle.js||v&&!B.bundle.dts)return f;const k=u.readFile(H.checkDefined(p));if(!k||Nk(k,u)!==B.bundle.js.hash)return p;const T=E&&u.readFile(E);if(E&&!T||t.options.inlineSourceMap)return E||"inline sourcemap decoding";if(E&&Nk(T,u)!==B.bundle.js.mapHash)return E;const M=v&&u.readFile(v);if(v&&!M||v&&Nk(M,u)!==B.bundle.dts.hash)return v;const z=b&&u.readFile(b);if(b&&!z||t.options.inlineSourceMap)return b||"inline sourcemap decoding";if(b&&Nk(z,u)!==B.bundle.dts.mapHash)return b;const j=dr(qa(f,u.getCurrentDirectory())),J=oce(p,k,E,T,v,M,b,z,f,B,!0),K=[],Y=M1e(t.projectReferences,s,Ce=>u.readFile(Ce),u),oe=dzt(B.bundle,j,u);let se,ge;const ae={getPrependNodes:zh(()=>[...Y,J]),getCanonicalFileName:u.getCanonicalFileName,getCommonSourceDirectory:()=>qa(B.bundle.commonSourceDirectory,j),getCompilerOptions:()=>t.options,getCurrentDirectory:()=>u.getCurrentDirectory(),getSourceFile:fv,getSourceFileByPath:fv,getSourceFiles:()=>oe,getLibFileFromReference:fo,isSourceFileFromExternalLibrary:cg,getResolvedProjectReferenceToRedirect:fv,getProjectReferenceRedirect:fv,isSourceOfProjectReferenceRedirect:cg,writeFile:(Ce,ne,ve,Se,Ne,pe)=>{switch(Ce){case p:if(k===ne)return;break;case E:if(T===ne)return;break;case f:break;case v:if(M===ne)return;se=ne,ge=pe;break;case b:if(z===ne)return;break;default:H.fail(`Unexpected path: ${Ce}`)}K.push({name:Ce,text:ne,writeByteOrderMark:ve,data:pe})},isEmitBlocked:cg,readFile:Ce=>u.readFile(Ce),fileExists:Ce=>u.fileExists(Ce),useCaseSensitiveFileNames:()=>u.useCaseSensitiveFileNames(),getBuildInfo:Ce=>{const ne=B.program;ne&&se!==void 0&&t.options.composite&&(ne.outSignature=Nk(se,u,ge));const{js:ve,dts:Se,sourceFiles:Ne}=B.bundle;return Ce.js.sources=ve.sources,Se&&(Ce.dts.sources=Se.sources),Ce.sourceFiles=Ne,EH(ne,Ce)},getSourceFileFromReference:fv,redirectTargetsMap:Tm(),getFileIncludeReasons:fo,createHash:Lo(u,u.createHash)};return DQ(vQ,ae,void 0,d1e(t.options,d)),K}function Jv(t={},u={}){var{hasGlobalName:s,onEmitNode:d=pH,isEmitNotificationEnabled:f,substituteNode:p=vM,onBeforeEmitNode:E,onAfterEmitNode:v,onBeforeEmitNodeArray:b,onAfterEmitNodeArray:B,onBeforeEmitToken:k,onAfterEmitToken:T}=u,M=!!t.extendedDiagnostics,z=!!t.omitBraceSourceMapPositions,j=a5(t),J=p1(t),K=new Map,Y,oe,se,ge,ae,Ce,ne,ve,Se,Ne,pe,fe,xe,Be,We,Ae=t.preserveSourceNewlines,De,He,Je,mt=cz,Ye,je=t.writeBundleFileInfo?{sections:[]}:void 0,Ke=je?H.checkDefined(t.relativeToBuildInfo):void 0,Gt=t.recordInternalSection,Yt=0,Ie="text",st=!0,Bt,It,ei=-1,ft,Ut=-1,Ni=-1,Vi=-1,xn=-1,Jn,an,Pi=!1,Fi=!!t.removeComments,Yu,oa,{enter:Fr,exit:wa}=Iqe(M,"commentTime","beforeComment","afterComment"),bt=q.parenthesizer,jn={select:O=>O===0?bt.parenthesizeLeadingTypeArgument:void 0},Ln=h3();return ni(),{printNode:Ai,printList:Dn,printFile:tu,printBundle:Cn,writeNode:xa,writeList:aa,writeFile:Xt,writeBundle:Mt,bundleFileInfo:je};function Ai(O,be,Ht){switch(O){case 0:H.assert(ca(be),"Expected a SourceFile node.");break;case 2:H.assert(at(be),"Expected an Identifier node.");break;case 1:H.assert(Wt(be),"Expected an Expression node.");break}switch(be.kind){case 312:return tu(be);case 313:return Cn(be);case 314:return sa(be)}return xa(O,be,Ht,Pe()),et()}function Dn(O,be,Ht){return aa(O,be,Ht,Pe()),et()}function Cn(O){return Mt(O,Pe(),void 0),et()}function tu(O){return Xt(O,Pe(),void 0),et()}function sa(O){return qt(O,Pe()),et()}function xa(O,be,Ht,ji){const Fu=He;me(ji,void 0),Et(O,be,Ht),ni(),He=Fu}function aa(O,be,Ht,ji){const Fu=He;me(ji,void 0),Ht&&ii(Ht),L0(void 0,be,O),ni(),He=Fu}function Ta(){return He.getTextPosWithWriteLine?He.getTextPosWithWriteLine():He.getTextPos()}function Qo(O,be,Ht){const ji=Zu(je.sections);ji&&ji.kind===Ht?ji.end=be:je.sections.push({pos:O,end:be,kind:Ht})}function bo(O){if(Gt&&je&&Y&&(X1(O)||Jl(O))&&l1e(O,Y)&&Ie!=="internal"){const be=Ie;return _t(He.getTextPos()),Yt=Ta(),Ie="internal",be}}function Qe(O){O&&(_t(He.getTextPos()),Yt=Ta(),Ie=O)}function _t(O){return YtH.assert(tke(Ao))),je.sections.push({pos:$r,end:He.getTextPos(),kind:"prepend",data:Ke(Fu.fileName),texts:_a}))}}Yt=Ta();for(const Fu of O.sourceFiles)Et(0,Fu,Fu);if(je&&O.sourceFiles.length){const Fu=He.getTextPos();if(_t(Fu)){const $r=Rw(O);$r&&(je.sources||(je.sources={}),je.sources.prologues=$r);const kr=Ti(O);kr&&(je.sources||(je.sources={}),je.sources.helpers=kr)}}ni(),He=ji}function qt(O,be){const Ht=He;me(be,void 0),Et(4,O,void 0),ni(),He=Ht}function Xt(O,be,Ht){Ye=!0;const ji=He;me(be,Ht),Eb(O),B5(O),Et(0,O,O),ni(),He=ji}function Pe(){return Je||(Je=Hj(j))}function et(){const O=Je.getText();return Je.clear(),O}function Et(O,be,Ht){Ht&&ii(Ht),le(O,be,void 0)}function ii(O){Y=O,Jn=void 0,an=void 0,O&&DC(O)}function me(O,be){O&&t.omitTrailingSemicolon&&(O=ile(O)),He=O,Bt=be,st=!He||!Bt}function ni(){oe=[],se=[],ge=[],ae=new Set,Ce=[],ne=new Map,ve=[],Se=0,Ne=[],pe=0,fe=[],xe=void 0,Be=[],We=void 0,Y=void 0,Jn=void 0,an=void 0,me(void 0,void 0)}function xi(){return Jn||(Jn=$3(H.checkDefined(Y)))}function pt(O,be){if(O===void 0)return;const Ht=bo(O);le(4,O,be),Qe(Ht)}function Ot(O){O!==void 0&&le(2,O,void 0)}function Ei(O,be){O!==void 0&&le(1,O,be)}function $i(O){le(rs(O)?6:4,O)}function Qi(O){Ae&&Mp(O)&4&&(Ae=!1)}function on(O){Ae=O}function le(O,be,Ht){oa=Ht,de(0,O,be)(O,be),oa=void 0}function te(O){return!Fi&&!ca(O)}function we(O){return!st&&!ca(O)&&!vq(O)&&!yk(O)&&!xFe(O)}function de(O,be,Ht){switch(O){case 0:if(d!==pH&&(!f||f(Ht)))return X;case 1:if(p!==vM&&(Yu=p(be,Ht)||Ht)!==Ht)return oa&&(Yu=oa(Yu)),Qt;case 2:if(te(Ht))return P9;case 3:if(we(Ht))return sF;case 4:return it;default:return H.assertNever(O)}}function Oe(O,be,Ht){return de(O+1,be,Ht)}function X(O,be){const Ht=Oe(0,O,be);d(O,be,Ht)}function it(O,be){if(E==null||E(be),Ae){const Ht=Ae;Qi(be),Ct(O,be),on(Ht)}else Ct(O,be);v==null||v(be),oa=void 0}function Ct(O,be,Ht=!0){if(Ht){const ji=cce(be);if(ji)return Va(O,be,ji)}if(O===0)return tF(Po(be,ca));if(O===2)return os(Po(be,at));if(O===6)return Ou(Po(be,rs),!0);if(O===3)return ct(Po(be,wl));if(O===5)return H.assertNode(be,yce),fa(!0);if(O===4){switch(be.kind){case 16:case 17:case 18:return Ou(be,!1);case 80:return os(be);case 81:return wo(be);case 166:return Fn(be);case 167:return Qa(be);case 168:return c0(be);case 169:return Ul(be);case 170:return Tl(be);case 171:return hd(be);case 172:return Cl(be);case 173:return ho(be);case 174:return Ko(be);case 175:return nd(be);case 176:return Q0(be);case 177:case 178:return Wo(be);case 179:return Nc(be);case 180:return $p(be);case 181:return Pc(be);case 182:return Ga(be);case 183:return Oi(be);case 184:return fl(be);case 185:return yc(be);case 186:return $(be);case 187:return tt(be);case 188:return vt(be);case 189:return fn(be);case 190:return uu(be);case 192:return Nu(be);case 193:return Mr(be);case 194:return Hu(be);case 195:return Ss(be);case 196:return nc(be);case 233:return _i(be);case 197:return ud();case 198:return T0(be);case 199:return rd(be);case 200:return m0(be);case 201:return Bd(be);case 202:return Gu(be);case 203:return jh(be);case 204:return Il(be);case 205:return rh(be);case 206:return p4(be);case 207:return x1(be);case 208:return Ve(be);case 239:return yi(be);case 240:return hl();case 241:return In(be);case 243:return ur(be);case 242:return fa(!1);case 244:return ss(be);case 245:return ls(be);case 246:return v1(be);case 247:return fd(be);case 248:return Um(be);case 249:return _s(be);case 250:return rp(be);case 251:return f3(be);case 252:return h_(be);case 253:return b5(be);case 254:return Xe(be);case 255:return xt(be);case 256:return oi(be);case 257:return wi(be);case 258:return Xi(be);case 259:return Rn(be);case 260:return tn(be);case 261:return bn(be);case 262:return Ar(be);case 263:return tC(be);case 264:return cD(be);case 265:return i6(be);case 266:return Gk(be);case 267:return cb(be);case 268:return Jk(be);case 269:return $k(be);case 270:return qk(be);case 271:return oz(be);case 272:return ww(be);case 273:return iC(be);case 274:return x9(be);case 280:return db(be);case 275:return v9(be);case 276:return Tw(be);case 277:return Uk(be);case 278:return Lw(be);case 279:return hb(be);case 281:return nC(be);case 300:return C9(be);case 301:return b9(be);case 282:return;case 283:return mE(be);case 12:return k5(be);case 286:case 289:return n6(be);case 287:case 290:return f_(be);case 291:return Jf(be);case 292:return _4(be);case 293:return Kh(be);case 294:return y9(be);case 295:return Yk(be);case 296:return rC(be);case 297:return Qk(be);case 298:return jd(be);case 299:return F5(be);case 303:return A5(be);case 304:return m3(be);case 305:return gt(be);case 306:return n1(be);case 307:return er(be);case 314:case 308:return Er(be);case 309:case 310:return da(be);case 311:return Wu(be);case 312:return tF(be);case 313:return H.fail("Bundles should be printed using printBundle");case 315:return H.fail("InputFiles should not be printed");case 316:return g3(be);case 317:return S5(be);case 319:return ru("*");case 320:return ru("?");case 321:return yh(be);case 322:return sf(be);case 323:return X0(be);case 324:return Zc(be);case 191:case 325:return fi(be);case 326:return;case 327:return D4(be);case 329:return eF(be);case 330:return pb(be);case 334:case 339:case 344:return Xk(be);case 335:case 336:return oC(be);case 337:case 338:return;case 340:case 341:case 342:case 343:return;case 345:return Ks(be);case 346:return yg(be);case 348:case 355:return gb(be);case 347:case 349:case 350:case 351:case 356:case 357:return kh(be);case 352:return p3(be);case 353:return sz(be);case 354:return Mw(be);case 359:return}if(Wt(be)&&(O=1,p!==vM)){const ji=p(O,be)||be;ji!==be&&(be=ji,oa&&(be=oa(be)))}}if(O===1)switch(be.kind){case 9:case 10:return du(be);case 11:case 14:case 15:return Ou(be,!1);case 80:return os(be);case 81:return wo(be);case 209:return di(be);case 210:return Mn(be);case 211:return ka(be);case 212:return To(be);case 213:return uc(be);case 214:return mc(be);case 215:return bl(be);case 216:return Ll(be);case 217:return kc(be);case 218:return ql(be);case 219:return Mc(be);case 220:return $m(be);case 221:return Vh(be);case 222:return g4(be);case 223:return d3(be);case 224:return d_(be);case 225:return O1(be);case 226:return Ln(be);case 227:return Wf(be);case 228:return E4(be);case 229:return Hh(be);case 230:return Ee(be);case 231:return wt(be);case 232:return;case 234:return vi(be);case 235:return Q(be);case 233:return _i(be);case 238:return Me(be);case 236:return Tt(be);case 237:return H.fail("SyntheticExpression should never be printed.");case 282:return;case 284:return Hs(be);case 285:return Zk(be);case 288:return Nw(be);case 358:return H.fail("SyntaxList should not be printed");case 359:return;case 360:return sr(be);case 361:return gE(be);case 362:return H.fail("SyntheticReferenceExpression should not be printed")}if(uf(be.kind))return B9(be,za);if(Use(be.kind))return B9(be,ru);H.fail(`Unhandled SyntaxKind: ${H.formatSyntaxKind(be.kind)}.`)}function ct(O){pt(O.name),Un(),za("in"),Un(),pt(O.constraint)}function Qt(O,be){const Ht=Oe(1,O,be);H.assertIsDefined(Yu),be=Yu,Yu=void 0,Ht(O,be)}function Ti(O){let be;if(J===0||t.noEmitHelpers)return;const Ht=new Map;for(const ji of O.sourceFiles){const Fu=IV(ji)!==void 0,$r=Sn(ji);if($r)for(const kr of $r)!kr.scoped&&!Fu&&!Ht.get(kr.name)&&(Ht.set(kr.name,!0),(be||(be=[])).push(kr.name))}return be}function Ui(O){let be=!1;const Ht=O.kind===313?O:void 0;if(Ht&&J===0)return;const ji=Ht?Ht.prepends.length:0,Fu=Ht?Ht.sourceFiles.length+ji:1;for(let $r=0;$r"),Un(),pt(O.type),Ff(O)}function Zc(O){za("function"),w5(O,O.parameters),ru(":"),pt(O.type)}function yh(O){ru("?"),pt(O.type)}function sf(O){ru("!"),pt(O.type)}function X0(O){pt(O.type),ru("=")}function yc(O){j1(O),dD(O,O.modifiers),za("new"),Un(),g_(O,O.typeParameters),w5(O,O.parameters),Un(),ru("=>"),Un(),pt(O.type),Ff(O)}function $(O){za("typeof"),Un(),pt(O.exprName),EE(O,O.typeArguments)}function tt(O){v4(0,void 0),ru("{");const be=bs(O)&1?768:32897;L0(O,O.members,be|524288),ru("}"),mC()}function vt(O){pt(O.elementType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),ru("]")}function fi(O){ru("..."),pt(O.type)}function fn(O){ia(23,O.pos,ru,O);const be=bs(O)&1?528:657;L0(O,O.elements,be|524288,bt.parenthesizeElementTypeOfTupleType),ia(24,O.elements.end,ru,O)}function Gu(O){pt(O.dotDotDotToken),pt(O.name),pt(O.questionToken),ia(59,O.name.end,ru,O),Un(),pt(O.type)}function uu(O){pt(O.type,bt.parenthesizeTypeOfOptionalType),ru("?")}function Nu(O){L0(O,O.types,516,bt.parenthesizeConstituentTypeOfUnionType)}function Mr(O){L0(O,O.types,520,bt.parenthesizeConstituentTypeOfIntersectionType)}function Hu(O){pt(O.checkType,bt.parenthesizeCheckTypeOfConditionalType),Un(),za("extends"),Un(),pt(O.extendsType,bt.parenthesizeExtendsTypeOfConditionalType),Un(),ru("?"),Un(),pt(O.trueType),Un(),ru(":"),Un(),pt(O.falseType)}function Ss(O){za("infer"),Un(),pt(O.typeParameter)}function nc(O){ru("("),pt(O.type),ru(")")}function ud(){za("this")}function T0(O){hD(O.operator,za),Un();const be=O.operator===148?bt.parenthesizeOperandOfReadonlyTypeOperator:bt.parenthesizeOperandOfTypeOperator;pt(O.type,be)}function rd(O){pt(O.objectType,bt.parenthesizeNonArrayTypeOfPostfixType),ru("["),pt(O.indexType),ru("]")}function m0(O){const be=bs(O);ru("{"),be&1?Un():(wd(),DE()),O.readonlyToken&&(pt(O.readonlyToken),O.readonlyToken.kind!==148&&za("readonly"),Un()),ru("["),le(3,O.typeParameter),O.nameType&&(Un(),za("as"),Un(),pt(O.nameType)),ru("]"),O.questionToken&&(pt(O.questionToken),O.questionToken.kind!==58&&ru("?")),ru(":"),Un(),pt(O.type),C1(),be&1?Un():(wd(),xE()),L0(O,O.members,2),ru("}")}function Bd(O){Ei(O.literal)}function jh(O){pt(O.head),L0(O,O.templateSpans,262144)}function rh(O){if(O.isTypeOf&&(za("typeof"),Un()),za("import"),ru("("),pt(O.argument),O.attributes){ru(","),Un(),ru("{"),Un(),za(O.attributes.token===132?"assert":"with"),ru(":"),Un();const be=O.attributes.elements;L0(O.attributes,be,526226),Un(),ru("}")}ru(")"),O.qualifier&&(ru("."),pt(O.qualifier)),EE(O,O.typeArguments)}function p4(O){ru("{"),L0(O,O.elements,525136),ru("}")}function x1(O){ru("["),L0(O,O.elements,524880),ru("]")}function Ve(O){pt(O.dotDotDotToken),O.propertyName&&(pt(O.propertyName),ru(":"),Un()),pt(O.name),E3(O.initializer,O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function di(O){const be=O.elements,Ht=O.multiLine?65536:0;_b(O,be,8914|Ht,bt.parenthesizeExpressionForDisallowedComma)}function Mn(O){v4(0,void 0),L(O.properties,aF);const be=bs(O)&131072;be&&DE();const Ht=O.multiLine?65536:0,ji=Y&&Y.languageVersion>=1&&!J4(Y)?64:0;L0(O,O.properties,526226|ji|Ht),be&&xE(),mC()}function ka(O){Ei(O.expression,bt.parenthesizeLeftSideOfAccess);const be=O.questionDotToken||i_(q.createToken(25),O.expression.end,O.name.pos),Ht=x4(O,O.expression,be),ji=x4(O,be,O.name);D3(Ht,!1),be.kind!==29&&Fo(O.expression)&&!He.hasTrailingComment()&&!He.hasTrailingWhitespace()&&ru("."),O.questionDotToken?pt(be):ia(be.kind,O.expression.end,ru,O),D3(ji,!1),pt(O.name),E_(Ht,ji)}function Fo(O){if(O=Pp(O),Of(O)){const be=T9(O,!0,!1);return!(O.numericLiteralFlags&448)&&!be.includes(qo(25))&&!be.includes("E")&&!be.includes("e")}else if(O0(O)){const be=Jke(O);return typeof be=="number"&&isFinite(be)&&be>=0&&Math.floor(be)===be}}function To(O){Ei(O.expression,bt.parenthesizeLeftSideOfAccess),pt(O.questionDotToken),ia(23,O.expression.end,ru,O),Ei(O.argumentExpression),ia(24,O.argumentExpression.end,ru,O)}function uc(O){const be=Mp(O)&16;be&&(ru("("),lC("0"),ru(","),Un()),Ei(O.expression,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),pt(O.questionDotToken),EE(O,O.typeArguments),_b(O,O.arguments,2576,bt.parenthesizeExpressionForDisallowedComma)}function mc(O){ia(105,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeExpressionOfNew),EE(O,O.typeArguments),_b(O,O.arguments,18960,bt.parenthesizeExpressionForDisallowedComma)}function bl(O){const be=Mp(O)&16;be&&(ru("("),lC("0"),ru(","),Un()),Ei(O.tag,bt.parenthesizeLeftSideOfAccess),be&&ru(")"),EE(O,O.typeArguments),Un(),Ei(O.template)}function Ll(O){ru("<"),pt(O.type),ru(">"),Ei(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function kc(O){const be=ia(21,O.pos,ru,O),Ht=w9(O.expression,O);Ei(O.expression,void 0),rF(O.expression,O),E_(Ht),ia(22,O.expression?O.expression.end:be,ru,O)}function ql(O){lp(O.name),bu(O)}function Mc(O){dD(O,O.modifiers),yu(O,up)}function up(O){g_(O,O.typeParameters),k9(O,O.parameters),m_(O.type),Un(),pt(O.equalsGreaterThanToken)}function $m(O){ia(91,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function Vh(O){ia(114,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function g4(O){ia(116,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function d3(O){ia(135,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeOperandOfPrefixUnary)}function d_(O){hD(O.operator,lf),C5(O)&&Un(),Ei(O.operand,bt.parenthesizeOperandOfPrefixUnary)}function C5(O){const be=O.operand;return be.kind===224&&(O.operator===40&&(be.operator===40||be.operator===46)||O.operator===41&&(be.operator===41||be.operator===47))}function O1(O){Ei(O.operand,bt.parenthesizeOperandOfPostfixUnary),hD(O.operator,lf)}function h3(){return AY(O,be,Ht,ji,Fu,void 0);function O(kr,_a){if(_a){_a.stackIndex++,_a.preserveSourceNewlinesStack[_a.stackIndex]=Ae,_a.containerPosStack[_a.stackIndex]=Ni,_a.containerEndStack[_a.stackIndex]=Vi,_a.declarationListContainerEndStack[_a.stackIndex]=xn;const Ao=_a.shouldEmitCommentsStack[_a.stackIndex]=te(kr),Af=_a.shouldEmitSourceMapsStack[_a.stackIndex]=we(kr);E==null||E(kr),Ao&&M9(kr),Af&&Jw(kr),Qi(kr)}else _a={stackIndex:0,preserveSourceNewlinesStack:[void 0],containerPosStack:[-1],containerEndStack:[-1],declarationListContainerEndStack:[-1],shouldEmitCommentsStack:[!1],shouldEmitSourceMapsStack:[!1]};return _a}function be(kr,_a,Ao){return $r(kr,Ao,"left")}function Ht(kr,_a,Ao){const Af=kr.kind!==28,Uf=x4(Ao,Ao.left,kr),Sr=x4(Ao,kr,Ao.right);D3(Uf,Af),Ym(kr.pos),B9(kr,kr.kind===103?za:lf),qp(kr.end,!0),D3(Sr,!0)}function ji(kr,_a,Ao){return $r(kr,Ao,"right")}function Fu(kr,_a){const Ao=x4(kr,kr.left,kr.operatorToken),Af=x4(kr,kr.operatorToken,kr.right);if(E_(Ao,Af),_a.stackIndex>0){const Uf=_a.preserveSourceNewlinesStack[_a.stackIndex],Sr=_a.containerPosStack[_a.stackIndex],CE=_a.containerEndStack[_a.stackIndex],gn=_a.declarationListContainerEndStack[_a.stackIndex],h6=_a.shouldEmitCommentsStack[_a.stackIndex],P5=_a.shouldEmitSourceMapsStack[_a.stackIndex];on(Uf),P5&&b4(kr),h6&&z9(kr,Sr,CE,gn),v==null||v(kr),_a.stackIndex--}}function $r(kr,_a,Ao){const Af=Ao==="left"?bt.getParenthesizeLeftSideOfBinaryForOperator(_a.operatorToken.kind):bt.getParenthesizeRightSideOfBinaryForOperator(_a.operatorToken.kind);let Uf=de(0,1,kr);if(Uf===Qt&&(H.assertIsDefined(Yu),kr=Af(Po(Yu,Wt)),Uf=Oe(1,1,kr),Yu=void 0),(Uf===P9||Uf===sF||Uf===it)&&eu(kr))return kr;oa=Af,Uf(1,kr)}}function Wf(O){const be=x4(O,O.condition,O.questionToken),Ht=x4(O,O.questionToken,O.whenTrue),ji=x4(O,O.whenTrue,O.colonToken),Fu=x4(O,O.colonToken,O.whenFalse);Ei(O.condition,bt.parenthesizeConditionOfConditionalExpression),D3(be,!0),pt(O.questionToken),D3(Ht,!0),Ei(O.whenTrue,bt.parenthesizeBranchOfConditionalExpression),E_(be,Ht),D3(ji,!0),pt(O.colonToken),D3(Fu,!0),Ei(O.whenFalse,bt.parenthesizeBranchOfConditionalExpression),E_(ji,Fu)}function E4(O){pt(O.head),L0(O,O.templateSpans,262144)}function Hh(O){ia(127,O.pos,za,O),pt(O.asteriskToken),_3(O.expression&&bg(O.expression),lb)}function Ee(O){ia(26,O.pos,ru,O),Ei(O.expression,bt.parenthesizeExpressionForDisallowedComma)}function wt(O){lp(O.name),t6(O)}function _i(O){Ei(O.expression,bt.parenthesizeLeftSideOfAccess),EE(O,O.typeArguments)}function vi(O){Ei(O.expression,void 0),O.type&&(Un(),za("as"),Un(),pt(O.type))}function Q(O){Ei(O.expression,bt.parenthesizeLeftSideOfAccess),lf("!")}function Me(O){Ei(O.expression,void 0),O.type&&(Un(),za("satisfies"),Un(),pt(O.type))}function Tt(O){u6(O.keywordToken,O.pos,ru),ru("."),pt(O.name)}function yi(O){Ei(O.expression),pt(O.literal)}function In(O){nr(O,!O.multiLine&&fC(O))}function nr(O,be){ia(19,O.pos,ru,O);const Ht=be||bs(O)&1?768:129;L0(O,O.statements,Ht),ia(20,O.statements.end,ru,O,!!(Ht&1))}function ur(O){Fh(O,O.modifiers,!1),pt(O.declarationList),C1()}function fa(O){O?ru(";"):C1()}function ss(O){Ei(O.expression,bt.parenthesizeExpressionOfExpressionStatement),(!Y||!J4(Y)||cl(O.expression))&&C1()}function ls(O){const be=ia(101,O.pos,za,O);Un(),ia(21,be,ru,O),Ei(O.expression),ia(22,O.expression.end,ru,O),p_(O,O.thenStatement),O.elseStatement&&(dC(O,O.thenStatement,O.elseStatement),ia(93,O.thenStatement.end,za,O),O.elseStatement.kind===245?(Un(),pt(O.elseStatement)):p_(O,O.elseStatement))}function Rl(O,be){const Ht=ia(117,be,za,O);Un(),ia(21,Ht,ru,O),Ei(O.expression),ia(22,O.expression.end,ru,O)}function v1(O){ia(92,O.pos,za,O),p_(O,O.statement),go(O.statement)&&!Ae?Un():dC(O,O.statement,O.expression),Rl(O,O.statement.end),C1()}function fd(O){Rl(O,O.pos),p_(O,O.statement)}function Um(O){const be=ia(99,O.pos,za,O);Un();let Ht=ia(21,be,ru,O);qm(O.initializer),Ht=ia(27,O.initializer?O.initializer.end:Ht,ru,O),_3(O.condition),Ht=ia(27,O.condition?O.condition.end:Ht,ru,O),_3(O.incrementor),ia(22,O.incrementor?O.incrementor.end:Ht,ru,O),p_(O,O.statement)}function _s(O){const be=ia(99,O.pos,za,O);Un(),ia(21,be,ru,O),qm(O.initializer),Un(),ia(103,O.initializer.end,za,O),Un(),Ei(O.expression),ia(22,O.expression.end,ru,O),p_(O,O.statement)}function rp(O){const be=ia(99,O.pos,za,O);Un(),Ow(O.awaitModifier),ia(21,be,ru,O),qm(O.initializer),Un(),ia(165,O.initializer.end,za,O),Un(),Ei(O.expression),ia(22,O.expression.end,ru,O),p_(O,O.statement)}function qm(O){O!==void 0&&(O.kind===261?pt(O):Ei(O))}function f3(O){ia(88,O.pos,za,O),sC(O.label),C1()}function h_(O){ia(83,O.pos,za,O),sC(O.label),C1()}function ia(O,be,Ht,ji,Fu){const $r=Za(ji),kr=$r&&$r.kind===ji.kind,_a=be;if(kr&&Y&&(be=gs(Y.text,be)),kr&&ji.pos!==_a){const Ao=Fu&&Y&&!Y4(_a,be,Y);Ao&&DE(),Ym(_a),Ao&&xE()}if(!z&&(O===19||O===20)?be=u6(O,be,Ht,ji):be=hD(O,Ht,be),kr&&ji.end!==be){const Ao=ji.kind===294;qp(be,!Ao,Ao)}return be}function Xx(O){return O.kind===2||!!O.hasTrailingNewLine}function e6(O){return Y?Ge(G_(Y.text,O.pos),Xx)||Ge(DB(O),Xx)?!0:fY(O)?O.pos!==O.expression.pos&&Ge(Ev(Y.text,O.expression.pos),Xx)?!0:e6(O.expression):!1:!1}function bg(O){if(!Fi&&fY(O)&&e6(O)){const be=Za(O);if(be&&Cf(be)){const Ht=q.createParenthesizedExpression(O.expression);return su(Ht,O),Pt(Ht,be),Ht}return q.createParenthesizedExpression(O)}return O}function lb(O){return bg(bt.parenthesizeExpressionForDisallowedComma(O))}function b5(O){ia(107,O.pos,za,O),_3(O.expression&&bg(O.expression),bg),C1()}function Xe(O){const be=ia(118,O.pos,za,O);Un(),ia(21,be,ru,O),Ei(O.expression),ia(22,O.expression.end,ru,O),p_(O,O.statement)}function xt(O){const be=ia(109,O.pos,za,O);Un(),ia(21,be,ru,O),Ei(O.expression),ia(22,O.expression.end,ru,O),Un(),pt(O.caseBlock)}function oi(O){pt(O.label),ia(59,O.label.end,ru,O),Un(),pt(O.statement)}function wi(O){ia(111,O.pos,za,O),_3(bg(O.expression),bg),C1()}function Xi(O){ia(113,O.pos,za,O),Un(),pt(O.tryBlock),O.catchClause&&(dC(O,O.tryBlock,O.catchClause),pt(O.catchClause)),O.finallyBlock&&(dC(O,O.catchClause||O.tryBlock,O.finallyBlock),ia(98,(O.catchClause||O.tryBlock).end,za,O),Un(),pt(O.finallyBlock))}function Rn(O){u6(89,O.pos,za),C1()}function tn(O){var be,Ht,ji;pt(O.name),pt(O.exclamationToken),m_(O.type),E3(O.initializer,((be=O.type)==null?void 0:be.end)??((ji=(Ht=O.name.emitNode)==null?void 0:Ht.typeNode)==null?void 0:ji.end)??O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function bn(O){if(cj(O))za("await"),Un(),za("using");else{const be=oq(O)?"let":K8(O)?"const":dj(O)?"using":"var";za(be)}Un(),L0(O,O.declarations,528)}function Ar(O){bu(O)}function bu(O){Fh(O,O.modifiers,!1),za("function"),pt(O.asteriskToken),Un(),Ot(O.name),yu(O,_u)}function yu(O,be){const Ht=O.body;if(Ht)if(go(Ht)){const ji=bs(O)&131072;ji&&DE(),j1(O),L(O.parameters,u1),u1(O.body),be(O),p0(Ht),Ff(O),ji&&xE()}else be(O),Un(),Ei(Ht,bt.parenthesizeConciseBodyOfArrowFunction);else be(O),C1()}function _u(O){g_(O,O.typeParameters),w5(O,O.parameters),m_(O.type)}function la(O){if(bs(O)&1)return!0;if(O.multiLine||!cl(O)&&Y&&!hk(O,Y)||uF(O,Ki(O.statements),2)||r6(O,Zu(O.statements),2,O.statements))return!1;let be;for(const Ht of O.statements){if(fD(be,Ht,2)>0)return!1;be=Ht}return!0}function p0(O){E==null||E(O),Un(),ru("{"),DE();const be=la(O)?o0:Gf;Du(O,O.statements,be),xE(),u6(20,O.statements.end,ru,O),v==null||v(O)}function o0(O){Gf(O,!0)}function Gf(O,be){const Ht=kf(O.statements),ji=He.getTextPos();Ui(O),Ht===0&&ji===He.getTextPos()&&be?(xE(),L0(O,O.statements,768),DE()):L0(O,O.statements,1,void 0,Ht)}function tC(O){t6(O)}function t6(O){v4(0,void 0),L(O.members,aF),Fh(O,O.modifiers,!0),ia(86,nE(O).pos,za,O),O.name&&(Un(),Ot(O.name));const be=bs(O)&131072;be&&DE(),g_(O,O.typeParameters),L0(O,O.heritageClauses,0),Un(),ru("{"),L0(O,O.members,129),ru("}"),be&&xE(),mC()}function cD(O){v4(0,void 0),Fh(O,O.modifiers,!1),za("interface"),Un(),pt(O.name),g_(O,O.typeParameters),L0(O,O.heritageClauses,512),Un(),ru("{"),L0(O,O.members,129),ru("}"),mC()}function i6(O){Fh(O,O.modifiers,!1),za("type"),Un(),pt(O.name),g_(O,O.typeParameters),Un(),ru("="),Un(),pt(O.type),C1()}function Gk(O){Fh(O,O.modifiers,!1),za("enum"),Un(),pt(O.name),Un(),ru("{"),L0(O,O.members,145),ru("}")}function cb(O){Fh(O,O.modifiers,!1),~O.flags&2048&&(za(O.flags&32?"namespace":"module"),Un()),pt(O.name);let be=O.body;if(!be)return C1();for(;be&&xc(be);)ru("."),pt(be.name),be=be.body;Un(),pt(be)}function Jk(O){j1(O),L(O.statements,u1),nr(O,fC(O)),Ff(O)}function $k(O){ia(19,O.pos,ru,O),L0(O,O.clauses,129),ia(20,O.clauses.end,ru,O,!0)}function oz(O){Fh(O,O.modifiers,!1),ia(102,O.modifiers?O.modifiers.end:O.pos,za,O),Un(),O.isTypeOnly&&(ia(156,O.pos,za,O),Un()),pt(O.name),Un(),ia(64,O.name.end,ru,O),Un(),D9(O.moduleReference),C1()}function D9(O){O.kind===80?Ei(O):pt(O)}function ww(O){Fh(O,O.modifiers,!1),ia(102,O.modifiers?O.modifiers.end:O.pos,za,O),Un(),O.importClause&&(pt(O.importClause),Un(),ia(161,O.importClause.end,za,O),Un()),Ei(O.moduleSpecifier),O.attributes&&sC(O.attributes),C1()}function iC(O){O.isTypeOnly&&(ia(156,O.pos,za,O),Un()),pt(O.name),O.name&&O.namedBindings&&(ia(28,O.name.end,ru,O),Un()),pt(O.namedBindings)}function x9(O){const be=ia(42,O.pos,ru,O);Un(),ia(130,be,za,O),Un(),pt(O.name)}function v9(O){y5(O)}function Tw(O){fb(O)}function Uk(O){const be=ia(95,O.pos,za,O);Un(),O.isExportEquals?ia(64,be,lf,O):ia(90,be,za,O),Un(),Ei(O.expression,O.isExportEquals?bt.getParenthesizeRightSideOfBinaryForOperator(64):bt.parenthesizeExpressionOfExportDefault),C1()}function Lw(O){Fh(O,O.modifiers,!1);let be=ia(95,O.pos,za,O);if(Un(),O.isTypeOnly&&(be=ia(156,be,za,O),Un()),O.exportClause?pt(O.exportClause):be=ia(42,be,ru,O),O.moduleSpecifier){Un();const Ht=O.exportClause?O.exportClause.end:be;ia(161,Ht,za,O),Un(),Ei(O.moduleSpecifier)}O.attributes&&sC(O.attributes),C1()}function C9(O){ia(O.token,O.pos,za,O),Un();const be=O.elements;L0(O,be,526226)}function b9(O){pt(O.name),ru(":"),Un();const be=O.value;if(!(bs(be)&1024)){const Ht=uE(be);qp(Ht.pos)}pt(be)}function qk(O){let be=ia(95,O.pos,za,O);Un(),be=ia(130,be,za,O),Un(),be=ia(145,be,za,O),Un(),pt(O.name),C1()}function db(O){const be=ia(42,O.pos,ru,O);Un(),ia(130,be,za,O),Un(),pt(O.name)}function hb(O){y5(O)}function nC(O){fb(O)}function y5(O){ru("{"),L0(O,O.elements,525136),ru("}")}function fb(O){O.isTypeOnly&&(za("type"),Un()),O.propertyName&&(pt(O.propertyName),Un(),ia(130,O.propertyName.end,za,O),Un()),pt(O.name)}function mE(O){za("require"),ru("("),Ei(O.expression),ru(")")}function Hs(O){pt(O.openingElement),L0(O,O.children,262144),pt(O.closingElement)}function Zk(O){ru("<"),mb(O.tagName),EE(O,O.typeArguments),Un(),pt(O.attributes),ru("/>")}function Nw(O){pt(O.openingFragment),L0(O,O.children,262144),pt(O.closingFragment)}function n6(O){if(ru("<"),oE(O)){const be=w9(O.tagName,O);mb(O.tagName),EE(O,O.typeArguments),O.attributes.properties&&O.attributes.properties.length>0&&Un(),pt(O.attributes),rF(O.attributes,O),E_(be)}ru(">")}function k5(O){He.writeLiteral(O.text)}function f_(O){ru("")}function _4(O){L0(O,O.properties,262656)}function Jf(O){pt(O.name),Up("=",ru,O.initializer,$i)}function Kh(O){ru("{..."),Ei(O.expression),ru("}")}function Em(O){let be=!1;return MO((Y==null?void 0:Y.text)||"",O+1,()=>be=!0),be}function uC(O){let be=!1;return PO((Y==null?void 0:Y.text)||"",O+1,()=>be=!0),be}function Pw(O){return Em(O)||uC(O)}function y9(O){var be;if(O.expression||!Fi&&!cl(O)&&Pw(O.pos)){const Ht=Y&&!cl(O)&&s0(Y,O.pos).line!==s0(Y,O.end).line;Ht&&He.increaseIndent();const ji=ia(19,O.pos,ru,O);pt(O.dotDotDotToken),Ei(O.expression),ia(20,((be=O.expression)==null?void 0:be.end)||ji,ru,O),Ht&&He.decreaseIndent()}}function Yk(O){Ot(O.namespace),ru(":"),Ot(O.name)}function mb(O){O.kind===80?Ei(O):pt(O)}function rC(O){ia(84,O.pos,za,O),Un(),Ei(O.expression,bt.parenthesizeExpressionForDisallowedComma),aC(O,O.statements,O.expression.end)}function Qk(O){const be=ia(90,O.pos,za,O);aC(O,O.statements,be)}function aC(O,be,Ht){const ji=be.length===1&&(!Y||cl(O)||cl(be[0])||$q(O,be[0],Y));let Fu=163969;ji?(u6(59,Ht,ru,O),Un(),Fu&=-130):ia(59,Ht,ru,O),L0(O,be,Fu)}function jd(O){Un(),hD(O.token,za),Un(),L0(O,O.types,528)}function F5(O){const be=ia(85,O.pos,za,O);Un(),O.variableDeclaration&&(ia(21,be,ru,O),pt(O.variableDeclaration),ia(22,O.variableDeclaration.end,ru,O),Un()),pt(O.block)}function A5(O){pt(O.name),ru(":"),Un();const be=O.initializer;if(!(bs(be)&1024)){const Ht=uE(be);qp(Ht.pos)}Ei(be,bt.parenthesizeExpressionForDisallowedComma)}function m3(O){pt(O.name),O.objectAssignmentInitializer&&(Un(),ru("="),Un(),Ei(O.objectAssignmentInitializer,bt.parenthesizeExpressionForDisallowedComma))}function gt(O){O.expression&&(ia(26,O.pos,ru,O),Ei(O.expression,bt.parenthesizeExpressionForDisallowedComma))}function n1(O){pt(O.name),E3(O.initializer,O.name.end,O,bt.parenthesizeExpressionForDisallowedComma)}function D4(O){if(mt("/**"),O.comment){const be=WO(O.comment);if(be){const Ht=be.split(/\r\n?|\n/g);for(const ji of Ht)wd(),Un(),ru("*"),Un(),mt(ji)}}O.tags&&(O.tags.length===1&&O.tags[0].kind===351&&!O.comment?(Un(),pt(O.tags[0])):L0(O,O.tags,33)),Un(),mt("*/")}function kh(O){ap(O.tagName),g3(O.typeExpression),kg(O.comment)}function Mw(O){ap(O.tagName),pt(O.name),kg(O.comment)}function S5(O){Un(),ru("{"),pt(O.name),ru("}")}function oC(O){ap(O.tagName),Un(),ru("{"),pt(O.class),ru("}"),kg(O.comment)}function p3(O){ap(O.tagName),g3(O.constraint),Un(),L0(O,O.typeParameters,528),kg(O.comment)}function sz(O){ap(O.tagName),O.typeExpression&&(O.typeExpression.kind===316?g3(O.typeExpression):(Un(),ru("{"),mt("Object"),O.typeExpression.isArrayType&&(ru("["),ru("]")),ru("}"))),O.fullName&&(Un(),pt(O.fullName)),kg(O.comment),O.typeExpression&&O.typeExpression.kind===329&&eF(O.typeExpression)}function Ks(O){ap(O.tagName),O.name&&(Un(),pt(O.name)),kg(O.comment),pb(O.typeExpression)}function yg(O){kg(O.comment),pb(O.typeExpression)}function Xk(O){ap(O.tagName),kg(O.comment)}function eF(O){L0(O,q.createNodeArray(O.jsDocPropertyTags),33)}function pb(O){O.typeParameters&&L0(O,q.createNodeArray(O.typeParameters),33),O.parameters&&L0(O,q.createNodeArray(O.parameters),33),O.type&&(wd(),Un(),ru("*"),Un(),pt(O.type))}function gb(O){ap(O.tagName),g3(O.typeExpression),Un(),O.isBracketed&&ru("["),pt(O.name),O.isBracketed&&ru("]"),kg(O.comment)}function ap(O){ru("@"),pt(O)}function kg(O){const be=WO(O);be&&(Un(),mt(be))}function g3(O){O&&(Un(),ru("{"),pt(O.type),ru("}"))}function tF(O){wd();const be=O.statements;if(be.length===0||!zp(be[0])||cl(be[0])){Du(O,be,qr);return}qr(O)}function pE(O){zw(!!O.hasNoDefaultLib,O.syntheticFileReferences||[],O.syntheticTypeReferences||[],O.syntheticLibReferences||[]);for(const be of O.prepends)if(yk(be)&&be.syntheticReferences)for(const Ht of be.syntheticReferences)pt(Ht),wd()}function iF(O){O.isDeclarationFile&&zw(O.hasNoDefaultLib,O.referencedFiles,O.typeReferenceDirectives,O.libReferenceDirectives)}function zw(O,be,Ht,ji){if(O){const Fu=He.getTextPos();sp('/// '),je&&je.sections.push({pos:Fu,end:He.getTextPos(),kind:"no-default-lib"}),wd()}if(Y&&Y.moduleName&&(sp(`/// `),wd()),Y&&Y.amdDependencies)for(const Fu of Y.amdDependencies)Fu.name?sp(`/// `):sp(`/// `),wd();for(const Fu of be){const $r=He.getTextPos();sp(`/// `),je&&je.sections.push({pos:$r,end:He.getTextPos(),kind:"reference",data:Fu.fileName}),wd()}for(const Fu of Ht){const $r=He.getTextPos(),kr=Fu.resolutionMode&&Fu.resolutionMode!==(Y==null?void 0:Y.impliedNodeFormat)?`resolution-mode="${Fu.resolutionMode===99?"import":"require"}"`:"";sp(`/// `),je&&je.sections.push({pos:$r,end:He.getTextPos(),kind:Fu.resolutionMode?Fu.resolutionMode===99?"type-import":"type-require":"type",data:Fu.fileName}),wd()}for(const Fu of ji){const $r=He.getTextPos();sp(`/// `),je&&je.sections.push({pos:$r,end:He.getTextPos(),kind:"lib",data:Fu.fileName}),wd()}}function qr(O){const be=O.statements;j1(O),L(O.statements,u1),Ui(O);const Ht=Ue(be,ji=>!zp(ji));iF(O),L0(O,be,1,void 0,Ht===-1?be.length:Ht),Ff(O)}function sr(O){const be=bs(O);!(be&1024)&&O.pos!==O.expression.pos&&qp(O.expression.pos),Ei(O.expression),!(be&2048)&&O.end!==O.expression.end&&Ym(O.expression.end)}function gE(O){_b(O,O.elements,528,void 0)}function kf(O,be,Ht,ji){let Fu=!!be;for(let $r=0;$r=Ht.length||kr===0;if(Ao&&ji&32768){b==null||b(Ht),B==null||B(Ht);return}ji&15360&&(ru(mzt(ji)),Ao&&Ht&&qp(Ht.pos,!0)),b==null||b(Ht),Ao?ji&1&&!(Ae&&(!be||Y&&hk(be,Y)))?wd():ji&256&&!(ji&524288)&&Un():op(O,be,Ht,ji,Fu,$r,kr,Ht.hasTrailingComma,Ht),B==null||B(Ht),ji&15360&&(Ao&&Ht&&Ym(Ht.end),ru(pzt(ji)))}function op(O,be,Ht,ji,Fu,$r,kr,_a,Ao){const Af=(ji&262144)===0;let Uf=Af;const Sr=uF(be,Ht[$r],ji);Sr?(wd(Sr),Uf=!1):ji&256&&Un(),ji&128&&DE();const CE=Dzt(O,Fu);let gn,h6,P5=!1;for(let __=0;__0){if(ji&131||(DE(),P5=!0),Uf&&ji&60&&!pg(M5.pos)){const Uw=uE(M5);qp(Uw.pos,!!(ji&512),!0)}wd(b3),Uf=!1}else gn&&ji&512&&Un()}if(h6=bo(M5),Uf){const b3=uE(M5);qp(b3.pos)}else Uf=Af;De=M5.pos,CE(M5,O,Fu,__),P5&&(xE(),P5=!1),gn=M5}const lF=gn?bs(gn):0,xC=Fi||!!(lF&2048),O9=_a&&ji&64&&ji&16;O9&&(gn&&!xC?ia(28,gn.end,ru,gn):ru(",")),gn&&(be?be.end:-1)!==gn.end&&ji&60&&!xC&&Ym(O9&&(Ao!=null&&Ao.end)?Ao.end:gn.end),ji&128&&xE(),Qe(h6);const cF=r6(be,Ht[$r+kr-1],ji,Ao);cF?wd(cF):ji&2097408&&Un()}function lC(O){He.writeLiteral(O)}function S9(O){He.writeStringLiteral(O)}function cz(O){He.write(O)}function nF(O,be){He.writeSymbol(O,be)}function ru(O){He.writePunctuation(O)}function C1(){He.writeTrailingSemicolon(";")}function za(O){He.writeKeyword(O)}function lf(O){He.writeOperator(O)}function _E(O){He.writeParameter(O)}function sp(O){He.writeComment(O)}function Un(){He.writeSpace(" ")}function Db(O){He.writeProperty(O)}function cC(O){He.nonEscapingWrite?He.nonEscapingWrite(O):He.write(O)}function wd(O=1){for(let be=0;be0)}function DE(){He.increaseIndent()}function xE(){He.decreaseIndent()}function u6(O,be,Ht,ji){return st?hD(O,Ht,be):C3(ji,O,Ht,be,hD)}function B9(O,be){k&&k(O),be(qo(O.kind)),T&&T(O)}function hD(O,be,Ht){const ji=qo(O);return be(ji),Ht<0?Ht:Ht+ji.length}function dC(O,be,Ht){if(bs(O)&1)Un();else if(Ae){const ji=x4(O,be,Ht);ji?wd(ji):Un()}else wd()}function hC(O){const be=O.split(/\r\n?|\n/g),Ht=kbe(be);for(const ji of be){const Fu=Ht?ji.slice(Ht):ji;Fu.length&&(wd(),mt(Fu))}}function D3(O,be){O?(DE(),wd(O)):be&&Un()}function E_(O,be){O&&xE(),be&&xE()}function uF(O,be,Ht){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!O||Y&&hk(O,Y)?0:1;if(be.pos===De||be.kind===12)return 0;if(Y&&O&&!pg(O.pos)&&!cl(be)&&(!be.parent||Wl(be.parent)===Wl(O)))return Ae?xb(ji=>Zye(be.pos,O.pos,Y,ji)):$q(O,be,Y)?0:1;if(vb(be,Ht))return 1}return Ht&1?1:0}function fD(O,be,Ht){if(Ht&2||Ae){if(O===void 0||be===void 0||be.kind===12)return 0;if(Y&&!cl(O)&&!cl(be))return Ae&&cf(O,be)?xb(ji=>gle(O,be,Y,ji)):!Ae&&Dm(O,be)?Zj(O,be,Y)?0:1:Ht&65536?1:0;if(vb(O,Ht)||vb(be,Ht))return 1}else if(OP(be))return 1;return Ht&1?1:0}function r6(O,be,Ht,ji){if(Ht&2||Ae){if(Ht&65536)return 1;if(be===void 0)return!O||Y&&hk(O,Y)?0:1;if(Y&&O&&!pg(O.pos)&&!cl(be)&&(!be.parent||be.parent===O)){if(Ae){const Fu=ji&&!pg(ji.end)?ji.end:be.end;return xb($r=>Yye(Fu,O.end,Y,$r))}return $ye(O,be,Y)?0:1}if(vb(be,Ht))return 1}return Ht&1&&!(Ht&131072)?1:0}function xb(O){H.assert(!!Ae);const be=O(!0);return be===0?O(!1):be}function w9(O,be){const Ht=Ae&&uF(be,O,0);return Ht&&D3(Ht,!1),!!Ht}function rF(O,be){const Ht=Ae&&r6(be,O,0,void 0);Ht&&wd(Ht)}function vb(O,be){if(cl(O)){const Ht=OP(O);return Ht===void 0?(be&65536)!==0:Ht}return(be&65536)!==0}function x4(O,be,Ht){return bs(O)&262144?0:(O=Fc(O),be=Fc(be),Ht=Fc(Ht),OP(Ht)?1:Y&&!cl(O)&&!cl(be)&&!cl(Ht)?Ae?xb(ji=>gle(be,Ht,Y,ji)):Zj(be,Ht,Y)?0:1:0)}function fC(O){return O.statements.length===0&&(!Y||Zj(O,O,Y))}function Fc(O){for(;O.kind===217&&cl(O);)O=O.expression;return O}function md(O,be){if(sl(O)||Uy(O))return a6(O);if(rs(O)&&O.textSourceNode)return md(O.textSourceNode,be);const Ht=Y,ji=!!Ht&&!!O.parent&&!cl(O);if($_(O)){if(!ji||zn(O)!==Wl(Ht))return fu(O)}else if(gg(O)){if(!ji||zn(O)!==Wl(Ht))return IP(O)}else if(H.assertNode(O,_2),!ji)return O.text;return v2(Ht,O,be)}function T9(O,be,Ht){if(O.kind===11&&O.textSourceNode){const Fu=O.textSourceNode;if(at(Fu)||ea(Fu)||Of(Fu)||gg(Fu)){const $r=Of(Fu)?Fu.text:md(Fu);return Ht?`"${tle($r)}"`:be||bs(O)&16777216?`"${Sv($r)}"`:`"${Vj($r)}"`}else return T9(Fu,be,Ht)}const ji=(be?1:0)|(Ht?2:0)|(t.terminateUnterminatedLiterals?4:0)|(t.target&&t.target===99?8:0);return zbe(O,Y,ji)}function j1(O){O&&bs(O)&1048576||(Ne.push(pe),pe=0,Ce.push(ne),ne=void 0,fe.push(xe))}function Ff(O){O&&bs(O)&1048576||(pe=Ne.pop(),ne=Ce.pop(),xe=fe.pop())}function Cb(O){(!xe||xe===Zu(fe))&&(xe=new Set),xe.add(O)}function v4(O,be){ve.push(Se),Se=O,Be.push(xe),We=be}function mC(){Se=ve.pop(),We=Be.pop()}function T5(O){(!We||We===Zu(Be))&&(We=new Set),We.add(O)}function u1(O){if(O)switch(O.kind){case 241:L(O.statements,u1);break;case 256:case 254:case 246:case 247:u1(O.statement);break;case 245:u1(O.thenStatement),u1(O.elseStatement);break;case 248:case 250:case 249:u1(O.initializer),u1(O.statement);break;case 255:u1(O.caseBlock);break;case 269:L(O.clauses,u1);break;case 296:case 297:L(O.statements,u1);break;case 258:u1(O.tryBlock),u1(O.catchClause),u1(O.finallyBlock);break;case 299:u1(O.variableDeclaration),u1(O.block);break;case 243:u1(O.declarationList);break;case 261:L(O.declarations,u1);break;case 260:case 169:case 208:case 263:lp(O.name);break;case 262:lp(O.name),bs(O)&1048576&&(L(O.parameters,u1),u1(O.body));break;case 206:case 207:L(O.elements,u1);break;case 272:u1(O.importClause);break;case 273:lp(O.name),u1(O.namedBindings);break;case 274:lp(O.name);break;case 280:lp(O.name);break;case 275:L(O.elements,u1);break;case 276:lp(O.propertyName||O.name);break}}function aF(O){if(O)switch(O.kind){case 303:case 304:case 172:case 174:case 177:case 178:lp(O.name);break}}function lp(O){O&&(sl(O)||Uy(O)?a6(O):So(O)&&u1(O))}function a6(O){const be=O.emitNode.autoGenerate;if((be.flags&7)===4)return Hw(VV(O),ea(O),be.flags,be.prefix,be.suffix);{const Ht=be.id;return ge[Ht]||(ge[Ht]=dz(O))}}function Hw(O,be,Ht,ji,Fu){const $r=Us(O),kr=be?se:oe;return kr[$r]||(kr[$r]=L5(O,be,Ht??0,RB(ji,a6),RB(Fu)))}function j0(O,be){return oF(O)&&!Kw(O,be)&&!ae.has(O)}function Kw(O,be){return be?!!(We!=null&&We.has(O)):!!(xe!=null&&xe.has(O))}function oF(O,be){return Y?eq(Y,O,s):!0}function pC(O,be){for(let Ht=be;Ht&&B2(Ht,be);Ht=Ht.nextContainer)if(qE(Ht)&&Ht.locals){const ji=Ht.locals.get(Sl(O));if(ji&&ji.flags&3257279)return!1}return!0}function L9(O){switch(O){case"":return pe;case"#":return Se;default:return(ne==null?void 0:ne.get(O))??0}}function Wh(O,be){switch(O){case"":pe=be;break;case"#":Se=be;break;default:ne??(ne=new Map),ne.set(O,be);break}}function x3(O,be,Ht,ji,Fu){ji.length>0&&ji.charCodeAt(0)===35&&(ji=ji.slice(1));const $r=Vv(Ht,ji,"",Fu);let kr=L9($r);if(O&&!(kr&O)){const Ao=Vv(Ht,ji,O===268435456?"_i":"_n",Fu);if(j0(Ao,Ht))return kr|=O,Ht?T5(Ao):be&&Cb(Ao),Wh($r,kr),Ao}for(;;){const _a=kr&268435455;if(kr++,_a!==8&&_a!==13){const Ao=_a<26?"_"+String.fromCharCode(97+_a):"_"+(_a-26),Af=Vv(Ht,ji,Ao,Fu);if(j0(Af,Ht))return Ht?T5(Af):be&&Cb(Af),Wh($r,kr),Af}}}function mD(O,be=j0,Ht,ji,Fu,$r,kr){if(O.length>0&&O.charCodeAt(0)===35&&(O=O.slice(1)),$r.length>0&&$r.charCodeAt(0)===35&&($r=$r.slice(1)),Ht){const Ao=Vv(Fu,$r,O,kr);if(be(Ao,Fu))return Fu?T5(Ao):ji?Cb(Ao):ae.add(Ao),Ao}O.charCodeAt(O.length-1)!==95&&(O+="_");let _a=1;for(;;){const Ao=Vv(Fu,$r,O+_a,kr);if(be(Ao,Fu))return Fu?T5(Ao):ji?Cb(Ao):ae.add(Ao),Ao;_a++}}function bb(O){return mD(O,oF,!0,!1,!1,"","")}function _m(O){const be=md(O.name);return pC(be,ar(O,qE))?be:mD(be,j0,!1,!1,!1,"","")}function N9(O){const be=Y8(O),Ht=rs(be)?Rbe(be.text):"module";return mD(Ht,j0,!1,!1,!1,"","")}function o6(){return mD("default",j0,!1,!1,!1,"","")}function Zm(){return mD("class",j0,!1,!1,!1,"","")}function yb(O,be,Ht,ji){return at(O.name)?Hw(O.name,be):x3(0,!1,be,Ht,ji)}function L5(O,be,Ht,ji,Fu){switch(O.kind){case 80:case 81:return mD(md(O),j0,!!(Ht&16),!!(Ht&8),be,ji,Fu);case 267:case 266:return H.assert(!ji&&!Fu&&!be),_m(O);case 272:case 278:return H.assert(!ji&&!Fu&&!be),N9(O);case 262:case 263:{H.assert(!ji&&!Fu&&!be);const $r=O.name;return $r&&!sl($r)?L5($r,!1,Ht,ji,Fu):o6()}case 277:return H.assert(!ji&&!Fu&&!be),o6();case 231:return H.assert(!ji&&!Fu&&!be),Zm();case 174:case 177:case 178:return yb(O,be,ji,Fu);case 167:return x3(0,!0,be,ji,Fu);default:return x3(0,!1,be,ji,Fu)}}function dz(O){const be=O.emitNode.autoGenerate,Ht=RB(be.prefix,a6),ji=RB(be.suffix);switch(be.flags&7){case 1:return x3(0,!!(be.flags&8),ea(O),Ht,ji);case 2:return H.assertNode(O,at),x3(268435456,!!(be.flags&8),!1,Ht,ji);case 3:return mD(fu(O),be.flags&32?oF:j0,!!(be.flags&16),!!(be.flags&8),ea(O),Ht,ji)}return H.fail(`Unsupported GeneratedIdentifierKind: ${H.formatEnum(be.flags&7,cU,!0)}.`)}function P9(O,be){const Ht=Oe(2,O,be),ji=Ni,Fu=Vi,$r=xn;M9(be),Ht(O,be),z9(be,ji,Fu,$r)}function M9(O){const be=bs(O),Ht=uE(O);gC(O,be,Ht.pos,Ht.end),be&4096&&(Fi=!0)}function z9(O,be,Ht,ji){const Fu=bs(O),$r=uE(O);Fu&4096&&(Fi=!1),$f(O,Fu,$r.pos,$r.end,be,Ht,ji);const kr=Zke(O);kr&&$f(O,Fu,kr.pos,kr.end,be,Ht,ji)}function gC(O,be,Ht,ji){Fr(),Pi=!1;const Fu=Ht<0||(be&1024)!==0||O.kind===12,$r=ji<0||(be&2048)!==0||O.kind===12;(Ht>0||ji>0)&&Ht!==ji&&(Fu||kb(Ht,O.kind!==359),(!Fu||Ht>=0&&be&1024)&&(Ni=Ht),(!$r||ji>=0&&be&2048)&&(Vi=ji,O.kind===261&&(xn=ji))),L(DB(O),v3),wa()}function $f(O,be,Ht,ji,Fu,$r,kr){Fr();const _a=ji<0||(be&2048)!==0||O.kind===12;L(xV(O),I9),(Ht>0||ji>0)&&Ht!==ji&&(Ni=Fu,Vi=$r,xn=kr,!_a&&O.kind!==359&&cp(ji)),wa()}function v3(O){(O.hasLeadingNewline||O.kind===2)&&He.writeLine(),R9(O),O.hasTrailingNewLine||O.kind===2?He.writeLine():He.writeSpace(" ")}function I9(O){He.isAtStartOfLine()||He.writeSpace(" "),R9(O),O.hasTrailingNewLine&&He.writeLine()}function R9(O){const be=Ws(O),Ht=O.kind===3?n7(be):void 0;sB(be,Ht,He,0,be.length,j)}function Ws(O){return O.kind===3?`/*${O.text}*/`:`//${O.text}`}function Du(O,be,Ht){Fr();const{pos:ji,end:Fu}=be,$r=bs(O),kr=ji<0||($r&1024)!==0,_a=Fi||Fu<0||($r&2048)!==0;kr||Gw(be),wa(),$r&4096&&!Fi?(Fi=!0,Ht(O),Fi=!1):Ht(O),Fr(),_a||(kb(be.end,!0),Pi&&!He.isAtStartOfLine()&&He.writeLine()),wa()}function Dm(O,be){return O=Wl(O),O.parent&&O.parent===Wl(be).parent}function cf(O,be){if(be.pos-1&&ji.indexOf(be)===Fu+1}function kb(O,be){Pi=!1,be?O===0&&(Y!=null&&Y.isDeclarationFile)?Ab(O,EC):Ab(O,s6):O===0&&Ab(O,Ww)}function Ww(O,be,Ht,ji,Fu){_C(O,be)&&s6(O,be,Ht,ji,Fu)}function EC(O,be,Ht,ji,Fu){_C(O,be)||s6(O,be,Ht,ji,Fu)}function Fb(O,be){return t.onlyPrintJsDocStyle?Uce(O,be)||tq(O,be):!0}function s6(O,be,Ht,ji,Fu){!Y||!Fb(Y.text,O)||(Pi||(Lye(xi(),He,Fu,O),Pi=!0),vE(O),sB(Y.text,xi(),He,O,be,j),vE(be),ji?He.writeLine():Ht===3&&He.writeSpace(" "))}function Ym(O){Fi||O===-1||kb(O,!0)}function cp(O){zc(O,l6)}function l6(O,be,Ht,ji){!Y||!Fb(Y.text,O)||(He.isAtStartOfLine()||He.writeSpace(" "),vE(O),sB(Y.text,xi(),He,O,be,j),vE(be),ji&&He.writeLine())}function qp(O,be,Ht){Fi||(Fr(),zc(O,be?l6:Ht?dp:N5),wa())}function dp(O,be,Ht){Y&&(vE(O),sB(Y.text,xi(),He,O,be,j),vE(be),Ht===2&&He.writeLine())}function N5(O,be,Ht,ji){Y&&(vE(O),sB(Y.text,xi(),He,O,be,j),vE(be),ji?He.writeLine():He.writeSpace(" "))}function Ab(O,be){Y&&(Ni===-1||O!==Ni)&&(hz(O)?C4(be):PO(Y.text,O,be,O))}function zc(O,be){Y&&(Vi===-1||O!==Vi&&O!==xn)&&MO(Y.text,O,be)}function hz(O){return an!==void 0&&yr(an).nodePos===O}function C4(O){if(!Y)return;const be=yr(an).detachedCommentEndPos;an.length-1?an.pop():an=void 0,PO(Y.text,be,O,be)}function Gw(O){const be=Y&&Pye(Y.text,xi(),He,V1,O,j,Fi);be&&(an?an.push(be):an=[be])}function V1(O,be,Ht,ji,Fu,$r){!Y||!Fb(Y.text,ji)||(vE(ji),sB(O,be,Ht,ji,Fu,$r),vE(Fu))}function _C(O,be){return!!Y&&h0e(Y.text,O,be)}function Sb(O){return O.parsedSourceMap===void 0&&O.sourceMapText!==void 0&&(O.parsedSourceMap=Jde(O.sourceMapText)||!1),O.parsedSourceMap||void 0}function sF(O,be){const Ht=Oe(3,O,be);Jw(be),Ht(O,be),b4(be)}function Jw(O){const be=bs(O),Ht=Nv(O);if($se(O)){H.assertIsDefined(O.parent,"UnparsedNodes must have parent pointers");const ji=Sb(O.parent);ji&&Bt&&Bt.appendSourceMap(He.getLine(),He.getColumn(),ji,O.parent.sourceMapPath,O.parent.getLineAndCharacterOfPosition(O.pos),O.parent.getLineAndCharacterOfPosition(O.end))}else{const ji=Ht.source||It;O.kind!==359&&!(be&32)&&Ht.pos>=0&&c6(Ht.source||It,Ol(ji,Ht.pos)),be&128&&(st=!0)}}function b4(O){const be=bs(O),Ht=Nv(O);$se(O)||(be&128&&(st=!1),O.kind!==359&&!(be&64)&&Ht.end>=0&&c6(Ht.source||It,Ht.end))}function Ol(O,be){return O.skipTrivia?O.skipTrivia(be):gs(O.text,be)}function vE(O){if(st||pg(O)||d6(It))return;const{line:be,character:Ht}=s0(It,O);Bt.addMapping(He.getLine(),He.getColumn(),ei,be,Ht,void 0)}function c6(O,be){if(O!==It){const Ht=It,ji=ei;DC(O),vE(be),$w(Ht,ji)}else vE(be)}function C3(O,be,Ht,ji,Fu){if(st||O&&vq(O))return Fu(be,Ht,ji);const $r=O&&O.emitNode,kr=$r&&$r.flags||0,_a=$r&&$r.tokenSourceMapRanges&&$r.tokenSourceMapRanges[be],Ao=_a&&_a.source||It;return ji=Ol(Ao,_a?_a.pos:ji),!(kr&256)&&ji>=0&&c6(Ao,ji),ji=Fu(be,Ht,ji),_a&&(ji=_a.end),!(kr&512)&&ji>=0&&c6(Ao,ji),ji}function DC(O){if(!st){if(It=O,O===ft){ei=Ut;return}d6(O)||(ei=Bt.addSource(O.fileName),t.inlineSources&&Bt.setSourceContent(ei,O.text),ft=O,Ut=ei)}}function $w(O,be){It=O,ei=be}function d6(O){return Ml(O.fileName,".json")}}function fzt(){const t=[];return t[1024]=["{","}"],t[2048]=["(",")"],t[4096]=["<",">"],t[8192]=["[","]"],t}function mzt(t){return I7e[t&15360][0]}function pzt(t){return I7e[t&15360][1]}function gzt(t,u,s,d){u(t)}function Ezt(t,u,s,d){u(t,s.select(d))}function _zt(t,u,s,d){u(t,s)}function Dzt(t,u){return t.length===1?gzt:typeof u=="object"?Ezt:_zt}var I7e,vQ,p1e,eb,g1e,_H,xzt=o({"src/compiler/emitter.ts"(){Bo(),Bo(),Wy(),I7e=fzt(),vQ={hasGlobalName:fo,getReferencedExportContainer:fo,getReferencedImportDeclaration:fo,getReferencedDeclarationWithCollidingName:fo,isDeclarationWithCollidingName:fo,isValueAliasDeclaration:fo,isReferencedAliasDeclaration:fo,isTopLevelValueImportEqualsWithEntityName:fo,getNodeCheckFlags:fo,isDeclarationVisible:fo,isLateBound:t=>!1,collectLinkedAliases:fo,isImplementationOfOverload:fo,isRequiredInitializedParameter:fo,isOptionalUninitializedParameterProperty:fo,isExpandoFunctionDeclaration:fo,getPropertiesOfContainerFunction:fo,createTypeOfDeclaration:fo,createReturnTypeOfSignatureDeclaration:fo,createTypeOfExpression:fo,createLiteralConstValue:fo,isSymbolAccessible:fo,isEntityNameVisible:fo,getConstantValue:fo,getReferencedValueDeclaration:fo,getReferencedValueDeclarations:fo,getTypeReferenceSerializationKind:fo,isOptionalParameter:fo,moduleExportsSomeValue:fo,isArgumentsLocalBinding:fo,getExternalModuleFileFromDeclaration:fo,getTypeReferenceDirectivesForEntityName:fo,getTypeReferenceDirectivesForSymbol:fo,isLiteralConstDeclaration:fo,getJsxFactoryEntity:fo,getJsxFragmentFactoryEntity:fo,getAllAccessorDeclarations:fo,getSymbolOfExternalModuleSpecifier:fo,isBindingCapturedByNode:fo,getDeclarationStatementsForSourceFile:fo,isImportRequiredByAugmentation:fo,tryFindAmbientModule:fo},p1e=zh(()=>Jv({})),eb=zh(()=>Jv({removeComments:!0})),g1e=zh(()=>Jv({removeComments:!0,neverAsciiEscape:!0})),_H=zh(()=>Jv({removeComments:!0,omitTrailingSemicolon:!0}))}});function CQ(t,u,s){if(!t.getDirectories||!t.readDirectory)return;const d=new Map,f=N1(s);return{useCaseSensitiveFileNames:s,fileExists:z,readFile:(ne,ve)=>t.readFile(ne,ve),directoryExists:t.directoryExists&&j,getDirectories:K,readDirectory:Y,createDirectory:t.createDirectory&&J,writeFile:t.writeFile&&M,addOrDeleteFileOrDirectory:se,addOrDeleteFile:ge,clearCache:Ce,realpath:t.realpath&&oe};function p(ne){return $0(ne,u,f)}function E(ne){return d.get(zd(ne))}function v(ne){const ve=E(dr(ne));return ve&&(ve.sortedAndCanonicalizedFiles||(ve.sortedAndCanonicalizedFiles=ve.files.map(f).sort(),ve.sortedAndCanonicalizedDirectories=ve.directories.map(f).sort()),ve)}function b(ne){return Bc(Uo(ne))}function B(ne,ve){var Se;if(!t.realpath||zd(p(t.realpath(ne)))===ve){const Ne={files:Vt(t.readDirectory(ne,void 0,void 0,["*.*"]),b)||[],directories:t.getDirectories(ne)||[]};return d.set(zd(ve),Ne),Ne}if((Se=t.directoryExists)!=null&&Se.call(t,ne))return d.set(ve,!1),!1}function k(ne,ve){ve=zd(ve);const Se=E(ve);if(Se)return Se;try{return B(ne,ve)}catch{H.assert(!d.has(zd(ve)));return}}function T(ne,ve){return Kl(ne,ve,ul,fh)>=0}function M(ne,ve,Se){const Ne=p(ne),pe=v(Ne);return pe&&ae(pe,b(ne),!0),t.writeFile(ne,ve,Se)}function z(ne){const ve=p(ne),Se=v(ve);return Se&&T(Se.sortedAndCanonicalizedFiles,f(b(ne)))||t.fileExists(ne)}function j(ne){const ve=p(ne);return d.has(zd(ve))||t.directoryExists(ne)}function J(ne){const ve=p(ne),Se=v(ve);if(Se){const Ne=b(ne),pe=f(Ne),fe=Se.sortedAndCanonicalizedDirectories;At(fe,pe,fh)&&Se.directories.push(Ne)}t.createDirectory(ne)}function K(ne){const ve=p(ne),Se=k(ne,ve);return Se?Se.directories.slice():t.getDirectories(ne)}function Y(ne,ve,Se,Ne,pe){const fe=p(ne),xe=k(ne,fe);let Be;if(xe!==void 0)return Ble(ne,ve,Se,Ne,s,u,pe,We,oe);return t.readDirectory(ne,ve,Se,Ne,pe);function We(De){const He=p(De);if(He===fe)return xe||Ae(De,He);const Je=k(De,He);return Je!==void 0?Je||Ae(De,He):kZ}function Ae(De,He){if(Be&&He===fe)return Be;const Je={files:Vt(t.readDirectory(De,void 0,void 0,["*.*"]),b)||Dt,directories:t.getDirectories(De)||Dt};return He===fe&&(Be=Je),Je}}function oe(ne){return t.realpath?t.realpath(ne):ne}function se(ne,ve){if(E(ve)!==void 0){Ce();return}const Ne=v(ve);if(!Ne)return;if(!t.directoryExists){Ce();return}const pe=b(ne),fe={fileExists:t.fileExists(ve),directoryExists:t.directoryExists(ve)};return fe.directoryExists||T(Ne.sortedAndCanonicalizedDirectories,f(pe))?Ce():ae(Ne,pe,fe.fileExists),fe}function ge(ne,ve,Se){if(Se===1)return;const Ne=v(ve);Ne&&ae(Ne,b(ne),Se===0)}function ae(ne,ve,Se){const Ne=ne.sortedAndCanonicalizedFiles,pe=f(ve);if(Se)At(Ne,pe,fh)&&ne.files.push(ve);else{const fe=Kl(Ne,pe,ul,fh);if(fe>=0){Ne.splice(fe,1);const xe=ne.files.findIndex(Be=>f(Be)===pe);ne.files.splice(xe,1)}}}function Ce(){d.clear()}}function bQ(t,u,s,d,f){var p;const E=lg(((p=u==null?void 0:u.configFile)==null?void 0:p.extendedSourceFiles)||Dt,f);s.forEach((v,b)=>{E.has(b)||(v.projects.delete(t),v.close())}),E.forEach((v,b)=>{const B=s.get(b);B?B.projects.add(t):s.set(b,{projects:new Set([t]),watcher:d(v,b),close:()=>{const k=s.get(b);!k||k.projects.size!==0||(k.watcher.close(),s.delete(b))}})})}function E1e(t,u){u.forEach(s=>{s.projects.delete(t)&&s.close()})}function yQ(t,u,s){t.delete(u)&&t.forEach(({extendedResult:d},f)=>{var p;(p=d.extendedSourceFiles)!=null&&p.some(E=>s(E)===u)&&yQ(t,f,s)})}function ltt(t,u,s){const d=new Map(t);cB(u,d,{createNewValue:s,onDeleteValue:fg})}function _1e(t,u,s){const d=t.getMissingFilePaths(),f=lg(d,ul,J3);cB(u,f,{createNewValue:s,onDeleteValue:fg})}function DH(t,u,s){cB(t,u,{createNewValue:d,onDeleteValue:Vm,onExistingValue:f});function d(p,E){return{watcher:s(p,E),flags:E}}function f(p,E,v){p.flags!==E&&(p.watcher.close(),t.set(v,d(v,E)))}}function xH({watchedDirPath:t,fileOrDirectory:u,fileOrDirectoryPath:s,configFileName:d,options:f,program:p,extraFileExtensions:E,currentDirectory:v,useCaseSensitiveFileNames:b,writeLog:B,toPath:k,getScriptKind:T}){const M=RQ(s);if(!M)return B(`Project: ${d} Detected ignored path: ${u}`),!0;if(s=M,s===t)return!1;if(t7(s)&&!(_ke(u,f,E)||Y()))return B(`Project: ${d} Detected file add/remove of non supported extension: ${u}`),!0;if(uAe(u,f.configFile.configFileSpecs,qa(dr(d),v),b,v))return B(`Project: ${d} Detected excluded file: ${u}`),!0;if(!p||F0(f)||f.outDir)return!1;if(t1(s)){if(f.declarationDir)return!1}else if(!Hc(s,_B))return!1;const z=xh(s),j=Wa(p)?void 0:vzt(p)?p.getProgramOrUndefined():p,J=!j&&!Wa(p)?p:void 0;if(K(z+".ts")||K(z+".tsx"))return B(`Project: ${d} Detected output file: ${u}`),!0;return!1;function K(oe){return j?!!j.getSourceFileByPath(oe):J?J.getState().fileInfos.has(oe):!!Le(p,se=>k(se)===oe)}function Y(){if(!T)return!1;switch(T(u)){case 3:case 4:case 7:case 5:return!0;case 1:case 2:return wv(f);case 6:return z2(f);case 0:return!1}}}function vzt(t){return!!t.getState}function R7e(t,u){return t?t.isEmittedFile(u):!1}function D1e(t,u,s,d){C2e(u===2?s:Rs);const f={watchFile:(J,K,Y,oe)=>t.watchFile(J,K,Y,oe),watchDirectory:(J,K,Y,oe)=>t.watchDirectory(J,K,(Y&1)!==0,oe)},p=u!==0?{watchFile:z("watchFile"),watchDirectory:z("watchDirectory")}:void 0,E=u===2?{watchFile:T,watchDirectory:M}:p||f,v=u===2?k:iw;return{watchFile:b("watchFile"),watchDirectory:b("watchDirectory")};function b(J){return(K,Y,oe,se,ge,ae)=>{var Ce;return NY(K,J==="watchFile"?se==null?void 0:se.excludeFiles:se==null?void 0:se.excludeDirectories,B(),((Ce=t.getCurrentDirectory)==null?void 0:Ce.call(t))||"")?v(K,oe,se,ge,ae):E[J].call(void 0,K,Y,oe,se,ge,ae)}}function B(){return typeof t.useCaseSensitiveFileNames=="boolean"?t.useCaseSensitiveFileNames:t.useCaseSensitiveFileNames()}function k(J,K,Y,oe,se){return s(`ExcludeWatcher:: Added:: ${j(J,K,Y,oe,se,d)}`),{close:()=>s(`ExcludeWatcher:: Close:: ${j(J,K,Y,oe,se,d)}`)}}function T(J,K,Y,oe,se,ge){s(`FileWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`);const ae=p.watchFile(J,K,Y,oe,se,ge);return{close:()=>{s(`FileWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`),ae.close()}}}function M(J,K,Y,oe,se,ge){const ae=`DirectoryWatcher:: Added:: ${j(J,Y,oe,se,ge,d)}`;s(ae);const Ce=J0(),ne=p.watchDirectory(J,K,Y,oe,se,ge),ve=J0()-Ce;return s(`Elapsed:: ${ve}ms ${ae}`),{close:()=>{const Se=`DirectoryWatcher:: Close:: ${j(J,Y,oe,se,ge,d)}`;s(Se);const Ne=J0();ne.close();const pe=J0()-Ne;s(`Elapsed:: ${pe}ms ${Se}`)}}}function z(J){return(K,Y,oe,se,ge,ae)=>f[J].call(void 0,K,(...Ce)=>{const ne=`${J==="watchFile"?"FileWatcher":"DirectoryWatcher"}:: Triggered with ${Ce[0]} ${Ce[1]!==void 0?Ce[1]:""}:: ${j(K,oe,se,ge,ae,d)}`;s(ne);const ve=J0();Y.call(void 0,...Ce);const Se=J0()-ve;s(`Elapsed:: ${Se}ms ${ne}`)},oe,se,ge,ae)}function j(J,K,Y,oe,se,ge){return`WatchInfo: ${J} ${K} ${JSON.stringify(Y)} ${ge?ge(oe,se):se===void 0?oe:`${oe} ${se}`}`}}function vH(t){const u=t==null?void 0:t.fallbackPolling;return{watchFile:u!==void 0?u:1}}function Vm(t){t.watcher.close()}var x1e,v1e,Czt=o({"src/compiler/watchUtilities.ts"(){Bo(),x1e=(t=>(t[t.Update=0]="Update",t[t.RootNamesAndUpdate=1]="RootNamesAndUpdate",t[t.Full=2]="Full",t))(x1e||{}),v1e=(t=>(t[t.None=0]="None",t[t.TriggerOnly=1]="TriggerOnly",t[t.Verbose=2]="Verbose",t))(v1e||{})}});function O7e(t,u,s="tsconfig.json"){return qg(t,d=>{const f=hr(d,s);return u(f)?f:void 0})}function kQ(t,u){const s=dr(u),d=Pf(t)?t:hr(s,t);return Uo(d)}function j7e(t,u,s){let d;return L(t,p=>{const E=AO(p,u);if(E.pop(),!d){d=E;return}const v=Math.min(d.length,E.length);for(let b=0;b{let E;try{al("beforeIORead"),E=t(d,u().charset),al("afterIORead"),Lm("I/O Read","beforeIORead","afterIORead")}catch(v){p&&p(v.message),E=""}return E!==void 0?WV(d,E,f,s):void 0}}function b1e(t,u,s){return(d,f,p,E)=>{try{al("beforeIOWrite"),rle(d,f,p,t,u,s),al("afterIOWrite"),Lm("I/O Write","beforeIOWrite","afterIOWrite")}catch(v){E&&E(v.message)}}}function y1e(t,u,s=d1){const d=new Map,f=N1(s.useCaseSensitiveFileNames);function p(k){return d.has(k)?!0:(B.directoryExists||s.directoryExists)(k)?(d.set(k,!0),!0):!1}function E(){return dr(Uo(s.getExecutingFilePath()))}const v=a5(t),b=s.realpath&&(k=>s.realpath(k)),B={getSourceFile:C1e(k=>B.readFile(k),()=>t,u),getDefaultLibLocation:E,getDefaultLibFileName:k=>hr(E(),IO(k)),writeFile:b1e((k,T,M)=>s.writeFile(k,T,M),k=>(B.createDirectory||s.createDirectory)(k),k=>p(k)),getCurrentDirectory:zh(()=>s.getCurrentDirectory()),useCaseSensitiveFileNames:()=>s.useCaseSensitiveFileNames,getCanonicalFileName:f,getNewLine:()=>v,fileExists:k=>s.fileExists(k),readFile:k=>s.readFile(k),trace:k=>s.write(k+v),directoryExists:k=>s.directoryExists(k),getEnvironmentVariable:k=>s.getEnvironmentVariable?s.getEnvironmentVariable(k):"",getDirectories:k=>s.getDirectories(k),realpath:b,readDirectory:(k,T,M,z,j)=>s.readDirectory(k,T,M,z,j),createDirectory:k=>s.createDirectory(k),createHash:Lo(s,s.createHash)};return B}function CH(t,u,s){const d=t.readFile,f=t.fileExists,p=t.directoryExists,E=t.createDirectory,v=t.writeFile,b=new Map,B=new Map,k=new Map,T=new Map,M=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:z(K,J)},z=(J,K)=>{const Y=d.call(t,K);return b.set(J,Y!==void 0?Y:!1),Y};t.readFile=J=>{const K=u(J),Y=b.get(K);return Y!==void 0?Y!==!1?Y:void 0:!Ml(J,".json")&&!P7e(J)?d.call(t,J):z(K,J)};const j=s?(J,K,Y,oe)=>{const se=u(J),ge=typeof K=="object"?K.impliedNodeFormat:void 0,ae=T.get(ge),Ce=ae==null?void 0:ae.get(se);if(Ce)return Ce;const ne=s(J,K,Y,oe);return ne&&(t1(J)||Ml(J,".json"))&&T.set(ge,(ae||new Map).set(se,ne)),ne}:void 0;return t.fileExists=J=>{const K=u(J),Y=B.get(K);if(Y!==void 0)return Y;const oe=f.call(t,J);return B.set(K,!!oe),oe},v&&(t.writeFile=(J,K,...Y)=>{const oe=u(J);B.delete(oe);const se=b.get(oe);se!==void 0&&se!==K?(b.delete(oe),T.forEach(ge=>ge.delete(oe))):j&&T.forEach(ge=>{const ae=ge.get(oe);ae&&ae.text!==K&&ge.delete(oe)}),v.call(t,J,K,...Y)}),p&&(t.directoryExists=J=>{const K=u(J),Y=k.get(K);if(Y!==void 0)return Y;const oe=p.call(t,J);return k.set(K,!!oe),oe},E&&(t.createDirectory=J=>{const K=u(J);k.delete(K),E.call(t,J)})),{originalReadFile:d,originalFileExists:f,originalDirectoryExists:p,originalCreateDirectory:E,originalWriteFile:v,getSourceFileWithCache:j,readFileWithCache:M}}function ctt(t,u,s){let d;return d=yn(d,t.getConfigFileParsingDiagnostics()),d=yn(d,t.getOptionsDiagnostics(s)),d=yn(d,t.getSyntacticDiagnostics(u,s)),d=yn(d,t.getGlobalDiagnostics(s)),d=yn(d,t.getSemanticDiagnostics(u,s)),f4(t.getCompilerOptions())&&(d=yn(d,t.getDeclarationDiagnostics(u,s))),A8(d||Dt)}function dtt(t,u){let s="";for(const d of t)s+=k1e(d,u);return s}function k1e(t,u){const s=`${Gy(t)} TS${t.code}: ${cE(t.messageText,u.getNewLine())}${u.getNewLine()}`;if(t.file){const{line:d,character:f}=s0(t.file,t.start),p=t.file.fileName;return`${TN(p,u.getCurrentDirectory(),v=>u.getCanonicalFileName(v))}(${d+1},${f+1}): `+s}return s}function htt(t){switch(t){case 1:return"\x1B[91m";case 0:return"\x1B[93m";case 2:return H.fail("Should never get an Info diagnostic on the command line.");case 3:return"\x1B[94m"}}function tb(t,u){return u+t+G7e}function ftt(t,u,s,d,f,p){const{line:E,character:v}=s0(t,u),{line:b,character:B}=s0(t,u+s),k=s0(t,t.text.length).line,T=b-E>=4;let M=(b+1+"").length;T&&(M=Math.max(J7e.length,M));let z="";for(let j=E;j<=b;j++){z+=p.getNewLine(),T&&E+1s.getCanonicalFileName(b)):t.fileName;let v="";return v+=d(E,"\x1B[96m"),v+=":",v+=d(`${f+1}`,"\x1B[93m"),v+=":",v+=d(`${p+1}`,"\x1B[93m"),v}function H7e(t,u){let s="";for(const d of t){if(d.file){const{file:f,start:p}=d;s+=F1e(f,p,u),s+=" - "}if(s+=tb(Gy(d),htt(d.category)),s+=tb(` TS${d.code}: `,"\x1B[90m"),s+=cE(d.messageText,u.getNewLine()),d.file&&d.code!==F.File_appears_to_be_binary.code&&(s+=u.getNewLine(),s+=ftt(d.file,d.start,d.length,"",htt(d.category),u)),d.relatedInformation){s+=u.getNewLine();for(const{file:f,start:p,length:E,messageText:v}of d.relatedInformation)f&&(s+=u.getNewLine(),s+=gtt+F1e(f,p,u),s+=ftt(f,p,E,$7e,"\x1B[96m",u)),s+=u.getNewLine(),s+=$7e+cE(v,u.getNewLine())}s+=u.getNewLine()}return s}function cE(t,u,s=0){if(Ua(t))return t;if(t===void 0)return"";let d="";if(s){d+=u;for(let f=0;fWB(p,t,s,d,f,u,E)}}function W7e(t){return Ua(t)?t:Ug(t.fileName)}function AQ(t,u,s,d,f){return{nameAndMode:PQ,resolve:(p,E)=>_Ae(p,t,s,d,u,f,E)}}function bH(t,u,s,d,f,p,E,v){if(t.length===0)return Dt;const b=[],B=new Map,k=v(u,s,d,p,E);for(const T of t){const M=k.nameAndMode.getName(T),z=k.nameAndMode.getMode(T,f),j=hM(M,z);let J=B.get(j);J||B.set(j,J=k.resolve(M,z)),b.push(J)}return b}function w1e(t,u){return SQ(void 0,t,(s,d)=>s&&u(s,d))}function SQ(t,u,s,d){let f;return p(t,u,void 0);function p(E,v,b){if(d){const B=d(E,b);if(B)return B}return L(v,(B,k)=>{if(B&&(f!=null&&f.has(B.sourceFile.path)))return;const T=s(B,b,k);return T||!B?T:((f||(f=new Set)).add(B.sourceFile.path),p(B.commandLine.projectReferences,B.references,B))})}}function BQ(t,u,s){const d=t.configFilePath?dr(t.configFilePath):u;return hr(d,`__lib_node_modules_lookup_${s}__.ts`)}function T1e(t){const u=t.split(".");let s=u[1],d=2;for(;u[d]&&u[d]!=="d";)s+=(d===2?"/":"-")+u[d],d++;return"@typescript/lib-"+s}function mtt(t){const u=Ug(t.fileName),s=PY.get(u);return{libName:u,libFileName:s}}function $v(t){switch(t==null?void 0:t.kind){case 3:case 4:case 5:case 7:return!0;default:return!1}}function ZB(t){return t.pos!==void 0}function AM(t,u){var s,d,f,p;const E=H.checkDefined(t.getSourceFileByPath(u.file)),{kind:v,index:b}=u;let B,k,T,M;switch(v){case 3:const z=NQ(E,b);if(T=(d=(s=t.getResolvedModule(E,z.text,A1e(E,b)))==null?void 0:s.resolvedModule)==null?void 0:d.packageId,z.pos===-1)return{file:E,packageId:T,text:z.text};B=gs(E.text,z.pos),k=z.end;break;case 4:({pos:B,end:k}=E.referencedFiles[b]);break;case 5:({pos:B,end:k,resolutionMode:M}=E.typeReferenceDirectives[b]),T=(p=(f=t.getResolvedTypeReferenceDirective(E,Ug(E.typeReferenceDirectives[b].fileName),M||E.impliedNodeFormat))==null?void 0:f.resolvedTypeReferenceDirective)==null?void 0:p.packageId;break;case 7:({pos:B,end:k}=E.libReferenceDirectives[b]);break;default:return H.assertNever(v)}return{file:E,pos:B,end:k,packageId:T}}function L1e(t,u,s,d,f,p,E,v,b,B){if(!t||v!=null&&v()||!On(t.getRootFileNames(),u))return!1;let k;if(!On(t.getProjectReferences(),B,j)||t.getSourceFiles().some(M)||t.getMissingFilePaths().some(f))return!1;const T=t.getCompilerOptions();if(!_le(T,s)||t.resolvedLibReferences&&f1(t.resolvedLibReferences,(K,Y)=>E(Y)))return!1;if(T.configFile&&s.configFile)return T.configFile.text===s.configFile.text;return!0;function M(K){return!z(K)||p(K.path)}function z(K){return K.version===d(K.resolvedPath,K.fileName)}function j(K,Y,oe){return s0e(K,Y)&&J(t.getResolvedProjectReferences()[oe],K)}function J(K,Y){if(K){if(kt(k,K))return!0;const se=YB(Y),ge=b(se);return!ge||K.commandLine.options.configFile!==ge.options.configFile||!On(K.commandLine.fileNames,ge.fileNames)?!1:((k||(k=[])).push(K),!L(K.references,(ae,Ce)=>!J(ae,K.commandLine.projectReferences[Ce])))}const oe=YB(Y);return!b(oe)}}function Lk(t){return t.options.configFile?[...t.options.configFile.parseDiagnostics,...t.errors]:t.errors}function yH(t,u,s,d){const f=N1e(t,u,s,d);return typeof f=="object"?f.impliedNodeFormat:f}function N1e(t,u,s,d){switch(g1(d)){case 3:case 99:return Hc(t,[".d.mts",".mts",".mjs"])?99:Hc(t,[".d.cts",".cts",".cjs"])?1:Hc(t,[".d.ts",".ts",".tsx",".js",".jsx"])?f():void 0;default:return}function f(){const p=aH(u,s,d),E=[];p.failedLookupLocations=E,p.affectingLocations=E;const v=oH(t,p);return{impliedNodeFormat:(v==null?void 0:v.contents.packageJsonContent.type)==="module"?99:1,packageJsonLocations:E,packageJsonScope:v}}}function bzt(t,u){return t?R8(t.getCompilerOptions(),u,zY):!1}function yzt(t,u,s,d,f,p){return{rootNames:t,options:u,host:s,oldProgram:d,configFileParsingDiagnostics:f,typeScriptVersion:p}}function wQ(t,u,s,d,f){var p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge;const ae=Wa(t)?yzt(t,u,s,d,f):t,{rootNames:Ce,options:ne,configFileParsingDiagnostics:ve,projectReferences:Se,typeScriptVersion:Ne}=ae;let{oldProgram:pe}=ae;const fe=zh(()=>rp("ignoreDeprecations",F.Invalid_value_for_ignoreDeprecations));let xe,Be,We,Ae,De,He,Je;const mt=new Map;let Ye=Tm();const je={},Ke={};let Gt=U7(),Yt,Ie,st,Bt,It,ei,ft,Ut,Ni,Vi;const xn=typeof ne.maxNodeModuleJsDepth=="number"?ne.maxNodeModuleJsDepth:0;let Jn=0;const an=new Map,Pi=new Map;(p=Gn)==null||p.push(Gn.Phase.Program,"createProgram",{configFilePath:ne.configFilePath,rootDir:ne.rootDir},!0),al("beforeProgram");const Fi=ae.host||V7e(ne),Yu=LQ(Fi);let oa=ne.noLib;const Fr=zh(()=>Fi.getDefaultLibFileName(ne)),wa=Fi.getDefaultLibLocation?Fi.getDefaultLibLocation():dr(Fr()),bt=rB(),jn=Fi.getCurrentDirectory(),Ln=FP(ne),Ai=iV(ne,Ln),Dn=new Map;let Cn,tu,sa;const xa=Fi.hasInvalidatedResolutions||cg;Fi.resolveModuleNameLiterals?(sa=Fi.resolveModuleNameLiterals.bind(Fi),tu=(E=Fi.getModuleResolutionCache)==null?void 0:E.call(Fi)):Fi.resolveModuleNames?(sa=(Xe,xt,oi,wi,Xi,Rn)=>Fi.resolveModuleNames(Xe.map(K7e),xt,Rn==null?void 0:Rn.map(K7e),oi,wi,Xi).map(tn=>tn?tn.extension!==void 0?{resolvedModule:tn}:{resolvedModule:{...tn,extension:y7(tn.resolvedFileName)}}:U7e),tu=(v=Fi.getModuleResolutionCache)==null?void 0:v.call(Fi)):(tu=KB(jn,E4,ne),sa=(Xe,xt,oi,wi,Xi)=>bH(Xe,xt,oi,wi,Xi,Fi,tu,B1e));let aa;if(Fi.resolveTypeReferenceDirectiveReferences)aa=Fi.resolveTypeReferenceDirectiveReferences.bind(Fi);else if(Fi.resolveTypeReferenceDirectives)aa=(Xe,xt,oi,wi,Xi)=>Fi.resolveTypeReferenceDirectives(Xe.map(W7e),xt,oi,wi,Xi==null?void 0:Xi.impliedNodeFormat).map(Rn=>({resolvedTypeReferenceDirective:Rn}));else{const Xe=WY(jn,E4,void 0,tu==null?void 0:tu.getPackageJsonInfoCache(),tu==null?void 0:tu.optionsToRedirectsKey);aa=(xt,oi,wi,Xi,Rn)=>bH(xt,oi,wi,Xi,Rn,Fi,Xe,AQ)}const Ta=Fi.hasInvalidatedLibResolutions||cg;let Qo;if(Fi.resolveLibrary)Qo=Fi.resolveLibrary.bind(Fi);else{const Xe=KB(jn,E4,ne,tu==null?void 0:tu.getPackageJsonInfoCache());Qo=(xt,oi,wi)=>GY(xt,oi,wi,Fi,Xe)}const bo=new Map;let Qe=new Map,_t=Tm(),Mt=!1;const qt=new Map;let Xt;const Pe=Fi.useCaseSensitiveFileNames()?new Map:void 0;let et,Et,ii,me;const ni=!!((b=Fi.useSourceOfProjectReferenceRedirect)!=null&&b.call(Fi))&&!ne.disableSourceOfProjectReferenceRedirect,{onProgramCreateComplete:xi,fileExists:pt,directoryExists:Ot}=kzt({compilerHost:Fi,getSymlinkCache:b5,useSourceOfProjectReferenceRedirect:ni,toPath:er,getResolvedProjectReferences:Qa,getSourceOfProjectReferenceRedirect:up,forEachResolvedProjectReference:Mc}),Ei=Fi.readFile.bind(Fi);(B=Gn)==null||B.push(Gn.Phase.Program,"shouldProgramCreateNewSourceFiles",{hasOldProgram:!!pe});const $i=bzt(pe,ne);(k=Gn)==null||k.pop();let Qi;if((T=Gn)==null||T.push(Gn.Phase.Program,"tryReuseStructureFromOldProgram",{}),Qi=os(),(M=Gn)==null||M.pop(),Qi!==2){if(xe=[],Be=[],Se&&(et||(et=Se.map(wt)),Ce.length&&(et==null||et.forEach((Xe,xt)=>{if(!Xe)return;const oi=F0(Xe.commandLine.options);if(ni){if(oi||p1(Xe.commandLine.options)===0)for(const wi of Xe.commandLine.fileNames)Ve(wi,{kind:1,index:xt})}else if(oi)Ve(Tv(oi,".d.ts"),{kind:2,index:xt});else if(p1(Xe.commandLine.options)===0){const wi=zh(()=>FM(Xe.commandLine,!Fi.useCaseSensitiveFileNames()));for(const Xi of Xe.commandLine.fileNames)!t1(Xi)&&!Ml(Xi,".json")&&Ve(yM(Xi,Xe.commandLine,!Fi.useCaseSensitiveFileNames(),wi),{kind:2,index:xt})}}))),(z=Gn)==null||z.push(Gn.Phase.Program,"processRootFiles",{count:Ce.length}),L(Ce,(Xe,xt)=>ud(Xe,!1,!1,{kind:0,index:xt})),(j=Gn)==null||j.pop(),Ie??(Ie=Ce.length?KY(ne,Fi):Dt),st=U7(),Ie.length){(J=Gn)==null||J.push(Gn.Phase.Program,"processTypeReferences",{count:Ie.length});const Xe=ne.configFilePath?dr(ne.configFilePath):jn,xt=hr(Xe,QB),oi=wn(Ie,xt);for(let wi=0;wi{ud(O1(xt),!0,!1,{kind:6,index:oi})})}Xt=Ea(Ka(qt.entries(),([Xe,xt])=>xt===void 0?Xe:void 0)),We=sc(xe,Ou).concat(Be),xe=void 0,Be=void 0}if(H.assert(!!Xt),pe&&Fi.onReleaseOldSourceFile){const Xe=pe.getSourceFiles();for(const xt of Xe){const oi=Wo(xt.resolvedPath);($i||!oi||oi.impliedNodeFormat!==xt.impliedNodeFormat||xt.resolvedPath===xt.path&&oi.resolvedPath!==xt.path)&&Fi.onReleaseOldSourceFile(xt,pe.getCompilerOptions(),!!Wo(xt.path))}Fi.getParsedCommandLine||pe.forEachResolvedProjectReference(xt=>{Vh(xt.sourceFile.path)||Fi.onReleaseOldSourceFile(xt.sourceFile,pe.getCompilerOptions(),!1)})}pe&&Fi.onReleaseParsedCommandLine&&SQ(pe.getProjectReferences(),pe.getResolvedProjectReferences(),(Xe,xt,oi)=>{const wi=(xt==null?void 0:xt.commandLine.projectReferences[oi])||pe.getProjectReferences()[oi],Xi=YB(wi);Et!=null&&Et.has(er(Xi))||Fi.onReleaseParsedCommandLine(Xi,Xe,pe.getCompilerOptions())}),pe=void 0,It=void 0,ft=void 0,Ni=void 0;const on={getRootFileNames:()=>Ce,getSourceFile:Q0,getSourceFileByPath:Wo,getSourceFiles:()=>We,getMissingFilePaths:()=>Xt,getModuleResolutionCache:()=>tu,getFilesByNameMap:()=>qt,getCompilerOptions:()=>ne,getSyntacticDiagnostics:$p,getOptionsDiagnostics:Mr,getGlobalDiagnostics:Ss,getSemanticDiagnostics:Pc,getCachedSemanticDiagnostics:Il,getSuggestionDiagnostics:tt,getDeclarationDiagnostics:Oi,getBindAndCheckDiagnostics:hl,getProgramDiagnostics:Ga,getTypeChecker:Cl,getClassifiableNames:Wu,getCommonSourceDirectory:da,emit:ho,getCurrentDirectory:()=>jn,getNodeCount:()=>Cl().getNodeCount(),getIdentifierCount:()=>Cl().getIdentifierCount(),getSymbolCount:()=>Cl().getSymbolCount(),getTypeCount:()=>Cl().getTypeCount(),getInstantiationCount:()=>Cl().getInstantiationCount(),getRelationCacheSizes:()=>Cl().getRelationCacheSizes(),getFileProcessingDiagnostics:()=>Yt,getResolvedTypeReferenceDirectives:()=>Gt,getAutomaticTypeDirectiveNames:()=>Ie,getAutomaticTypeDirectiveResolutions:()=>st,isSourceFileFromExternalLibrary:Tl,isSourceFileDefaultLibrary:hd,getSourceFileFromReference:rh,getLibFileFromReference:jh,sourceFileToPackageName:Qe,redirectTargetsMap:_t,usesUriStyleNodeCoreModules:Mt,resolvedModules:ei,resolvedTypeReferenceDirectiveNames:Ut,resolvedLibReferences:Bt,getResolvedModule:le,getResolvedTypeReferenceDirective:te,forEachResolvedModule:we,forEachResolvedTypeReferenceDirective:de,getCurrentPackagesMap:()=>Vi,typesPackageExists:it,packageBundlesTypes:Ct,isEmittedFile:bg,getConfigFileParsingDiagnostics:nc,getProjectReferences:c0,getResolvedProjectReferences:Qa,getProjectReferenceRedirect:bl,getResolvedProjectReferenceToRedirect:ql,getResolvedProjectReferenceByPath:Vh,forEachResolvedProjectReference:Mc,isSourceOfProjectReferenceRedirect:$m,emitBuildInfo:bc,fileExists:pt,readFile:Ei,directoryExists:Ot,getSymlinkCache:b5,realpath:(se=Fi.realpath)==null?void 0:se.bind(Fi),useCaseSensitiveFileNames:()=>Fi.useCaseSensitiveFileNames(),getCanonicalFileName:E4,getFileIncludeReasons:()=>Ye,structureIsReused:Qi,writeFile:Fn};return xi(),Yt==null||Yt.forEach(Xe=>{switch(Xe.kind){case 1:return bt.add(yi(Xe.file&&Wo(Xe.file),Xe.fileProcessingReason,Xe.diagnostic,Xe.args||Dt));case 0:const{file:xt,pos:oi,end:wi}=AM(on,Xe.reason);return bt.add(Rd(xt,H.checkDefined(oi),H.checkDefined(wi)-oi,Xe.diagnostic,...Xe.args||Dt));case 2:return Xe.diagnostics.forEach(Xi=>bt.add(Xi));default:H.assertNever(Xe)}}),_i(),al("afterProgram"),Lm("Program","beforeProgram","afterProgram"),(ge=Gn)==null||ge.pop(),on;function le(Xe,xt,oi){var wi;return(wi=ei==null?void 0:ei.get(Xe.path))==null?void 0:wi.get(xt,oi)}function te(Xe,xt,oi){var wi;return(wi=Ut==null?void 0:Ut.get(Xe.path))==null?void 0:wi.get(xt,oi)}function we(Xe,xt){Oe(ei,Xe,xt)}function de(Xe,xt){Oe(Ut,Xe,xt)}function Oe(Xe,xt,oi){var wi;oi?(wi=Xe==null?void 0:Xe.get(oi.path))==null||wi.forEach((Xi,Rn,tn)=>xt(Xi,Rn,tn,oi.path)):Xe==null||Xe.forEach((Xi,Rn)=>Xi.forEach((tn,bn,Ar)=>xt(tn,bn,Ar,Rn)))}function X(){return Vi||(Vi=new Map,we(({resolvedModule:Xe})=>{Xe!=null&&Xe.packageId&&Vi.set(Xe.packageId.name,Xe.extension===".d.ts"||!!Vi.get(Xe.packageId.name))}),Vi)}function it(Xe){return X().has(qY(Xe))}function Ct(Xe){return!!X().get(Xe)}function ct(Xe){var xt;(xt=Xe.resolutionDiagnostics)!=null&&xt.length&&(Yt??(Yt=[])).push({kind:2,diagnostics:Xe.resolutionDiagnostics})}function Qt(Xe,xt,oi,wi){if(Fi.resolveModuleNameLiterals||!Fi.resolveModuleNames)return ct(oi);if(!tu||Id(xt))return;const Xi=qa(Xe.originalFileName,jn),Rn=dr(Xi),tn=Sn(Xe),bn=tu.getFromNonRelativeNameCache(xt,wi,Rn,tn);bn&&ct(bn)}function Ti(Xe,xt,oi){var wi,Xi;if(!Xe.length)return Dt;const Rn=qa(xt.originalFileName,jn),tn=Sn(xt);(wi=Gn)==null||wi.push(Gn.Phase.Program,"resolveModuleNamesWorker",{containingFileName:Rn}),al("beforeResolveModule");const bn=sa(Xe,Rn,tn,ne,xt,oi);return al("afterResolveModule"),Lm("ResolveModule","beforeResolveModule","afterResolveModule"),(Xi=Gn)==null||Xi.pop(),bn}function Ui(Xe,xt,oi){var wi,Xi;if(!Xe.length)return[];const Rn=Ua(xt)?void 0:xt,tn=Ua(xt)?xt:qa(xt.originalFileName,jn),bn=Rn&&Sn(Rn);(wi=Gn)==null||wi.push(Gn.Phase.Program,"resolveTypeReferenceDirectiveNamesWorker",{containingFileName:tn}),al("beforeResolveTypeReference");const Ar=aa(Xe,tn,bn,ne,Rn,oi);return al("afterResolveTypeReference"),Lm("ResolveTypeReference","beforeResolveTypeReference","afterResolveTypeReference"),(Xi=Gn)==null||Xi.pop(),Ar}function Sn(Xe){const xt=ql(Xe.originalFileName);if(xt||!t1(Xe.originalFileName))return xt;const oi=du(Xe.path);if(oi)return oi;if(!Fi.realpath||!ne.preserveSymlinks||!Xe.originalFileName.includes(s_))return;const wi=er(Fi.realpath(Xe.originalFileName));return wi===Xe.path?void 0:du(wi)}function du(Xe){const xt=up(Xe);if(Ua(xt))return ql(xt);if(xt)return Mc(oi=>{const wi=F0(oi.commandLine.options);if(wi)return er(wi)===Xe?oi:void 0})}function Ou(Xe,xt){return rl(Er(Xe),Er(xt))}function Er(Xe){if(JE(wa,Xe.fileName,!1)){const xt=Bc(Xe.fileName);if(xt==="lib.d.ts"||xt==="lib.es6.d.ts")return 0;const oi=D8(kN(xt,"lib."),".d.ts"),wi=QV.indexOf(oi);if(wi!==-1)return wi+1}return QV.length+2}function er(Xe){return $0(Xe,jn,E4)}function da(){if(De===void 0){const Xe=ti(We,xt=>p7(xt,on));De=kM(ne,()=>qi(Xe,xt=>xt.isDeclarationFile?void 0:xt.fileName),jn,E4,xt=>Ee(Xe,xt))}return De}function Wu(){var Xe;if(!Je){Cl(),Je=new Set;for(const xt of We)(Xe=xt.classifiableNames)==null||Xe.forEach(oi=>Je.add(oi))}return Je}function Va(Xe,xt){if(Qi===0&&!xt.ambientModuleNames.length)return Ti(Xe,xt,void 0);let oi,wi,Xi;const Rn=U7e,tn=pe&&pe.getSourceFile(xt.fileName);for(let yu=0;yu{const wi=(xt?xt.commandLine.projectReferences:Se)[oi],Xi=wt(wi);return Xe?!Xi||Xi.sourceFile!==Xe.sourceFile||!On(Xe.commandLine.fileNames,Xi.commandLine.fileNames):Xi!==void 0},(Xe,xt)=>{const oi=xt?Vh(xt.sourceFile.path).commandLine.projectReferences:Se;return!On(Xe,oi,s0e)})}function os(){var Xe;if(!pe)return 0;const xt=pe.getCompilerOptions();if(ZU(xt,ne))return 0;const oi=pe.getRootFileNames();if(!On(oi,Ce)||!Rr())return 0;Se&&(et=Se.map(wt));const wi=[],Xi=[];if(Qi=2,pe.getMissingFilePaths().some(bu=>Fi.fileExists(bu)))return 0;const Rn=pe.getSourceFiles();let tn;(bu=>{bu[bu.Exists=0]="Exists",bu[bu.Modified=1]="Modified"})(tn||(tn={}));const bn=new Map;for(const bu of Rn){const yu=Fo(bu.fileName,tu,Fi,ne);let _u=Fi.getSourceFileByPath?Fi.getSourceFileByPath(bu.fileName,bu.resolvedPath,yu,void 0,$i):Fi.getSourceFile(bu.fileName,yu,void 0,$i);if(!_u)return 0;_u.packageJsonLocations=(Xe=yu.packageJsonLocations)!=null&&Xe.length?yu.packageJsonLocations:void 0,_u.packageJsonScope=yu.packageJsonScope,H.assert(!_u.redirectInfo,"Host should not return a redirect source file from `getSourceFile`");let la;if(bu.redirectInfo){if(_u!==bu.redirectInfo.unredirected)return 0;la=!1,_u=bu}else if(pe.redirectTargetsMap.has(bu.path)){if(_u!==bu)return 0;la=!1}else la=_u!==bu;_u.path=bu.path,_u.originalFileName=bu.originalFileName,_u.resolvedPath=bu.resolvedPath,_u.fileName=bu.fileName;const p0=pe.sourceFileToPackageName.get(bu.path);if(p0!==void 0){const o0=bn.get(p0),Gf=la?1:0;if(o0!==void 0&&Gf===1||o0===1)return 0;bn.set(p0,Gf)}if(la)bu.impliedNodeFormat!==_u.impliedNodeFormat?Qi=1:On(bu.libReferenceDirectives,_u.libReferenceDirectives,T0)?bu.hasNoDefaultLib!==_u.hasNoDefaultLib?Qi=1:On(bu.referencedFiles,_u.referencedFiles,T0)?(Bd(_u),On(bu.imports,_u.imports,rd)&&On(bu.moduleAugmentations,_u.moduleAugmentations,rd)?(bu.flags&12582912)!==(_u.flags&12582912)?Qi=1:On(bu.typeReferenceDirectives,_u.typeReferenceDirectives,T0)||(Qi=1):Qi=1):Qi=1:Qi=1,Xi.push(_u);else if(xa(bu.path))Qi=1,Xi.push(_u);else for(const o0 of bu.ambientModuleNames)mt.set(o0,bu.fileName);wi.push(_u)}if(Qi!==2)return Qi;for(const bu of Xi){const yu=ptt(bu),_u=Va(yu,bu);(ft??(ft=new Map)).set(bu.path,_u),c0e(yu,bu,_u,(tC,t6)=>pe.getResolvedModule(bu,tC,t6),Tbe,kH)&&(Qi=1);const p0=bu.typeReferenceDirectives,o0=wn(p0,bu);(Ni??(Ni=new Map)).set(bu.path,o0),c0e(p0,bu,o0,(tC,t6)=>pe==null?void 0:pe.getResolvedTypeReferenceDirective(bu,tC,t6),Lbe,PQ)&&(Qi=1)}if(Qi!==2)return Qi;if(Bbe(xt,ne)||pe.resolvedLibReferences&&f1(pe.resolvedLibReferences,(bu,yu)=>h3(yu).actual!==bu.actual))return 1;if(Fi.hasChangedAutomaticTypeDirectiveNames){if(Fi.hasChangedAutomaticTypeDirectiveNames())return 1}else if(Ie=KY(ne,Fi),!On(pe.getAutomaticTypeDirectiveNames(),Ie))return 1;Xt=pe.getMissingFilePaths(),H.assert(wi.length===pe.getSourceFiles().length);for(const bu of wi)qt.set(bu.path,bu);return pe.getFilesByNameMap().forEach((bu,yu)=>{if(!bu){qt.set(yu,bu);return}if(bu.path===yu){pe.isSourceFileFromExternalLibrary(bu)&&Pi.set(bu.path,!0);return}qt.set(yu,qt.get(bu.path))}),We=wi,Ye=pe.getFileIncludeReasons(),Yt=pe.getFileProcessingDiagnostics(),Gt=pe.getResolvedTypeReferenceDirectives(),Ie=pe.getAutomaticTypeDirectiveNames(),st=pe.getAutomaticTypeDirectiveResolutions(),Qe=pe.sourceFileToPackageName,_t=pe.redirectTargetsMap,Mt=pe.usesUriStyleNodeCoreModules,ei=pe.resolvedModules,Ut=pe.resolvedTypeReferenceDirectiveNames,Bt=pe.resolvedLibReferences,Vi=pe.getCurrentPackagesMap(),2}function wo(Xe){return{getPrependNodes:Ul,getCanonicalFileName:E4,getCommonSourceDirectory:on.getCommonSourceDirectory,getCompilerOptions:on.getCompilerOptions,getCurrentDirectory:()=>jn,getSourceFile:on.getSourceFile,getSourceFileByPath:on.getSourceFileByPath,getSourceFiles:on.getSourceFiles,getLibFileFromReference:on.getLibFileFromReference,isSourceFileFromExternalLibrary:Tl,getResolvedProjectReferenceToRedirect:ql,getProjectReferenceRedirect:bl,isSourceOfProjectReferenceRedirect:$m,getSymlinkCache:b5,writeFile:Xe||Fn,isEmitBlocked:Ko,readFile:xt=>Fi.readFile(xt),fileExists:xt=>{const oi=er(xt);return Wo(oi)?!0:kt(Xt,oi)?!1:Fi.fileExists(xt)},useCaseSensitiveFileNames:()=>Fi.useCaseSensitiveFileNames(),getBuildInfo:xt=>{var oi;return(oi=on.getBuildInfo)==null?void 0:oi.call(on,xt)},getSourceFileFromReference:(xt,oi)=>on.getSourceFileFromReference(xt,oi),redirectTargetsMap:_t,getFileIncludeReasons:on.getFileIncludeReasons,createHash:Lo(Fi,Fi.createHash)}}function Fn(Xe,xt,oi,wi,Xi,Rn){Fi.writeFile(Xe,xt,oi,wi,Xi,Rn)}function bc(Xe){var xt,oi;H.assert(!F0(ne)),(xt=Gn)==null||xt.push(Gn.Phase.Emit,"emitBuildInfo",{},!0),al("beforeEmit");const wi=DQ(vQ,wo(Xe),void 0,h1e,!1,!0);return al("afterEmit"),Lm("Emit","beforeEmit","afterEmit"),(oi=Gn)==null||oi.pop(),wi}function Qa(){return et}function c0(){return Se}function Ul(){return M1e(Se,(Xe,xt)=>{var oi;return(oi=et[xt])==null?void 0:oi.commandLine},Xe=>{const xt=er(Xe),oi=Wo(xt);return oi?oi.text:qt.has(xt)?void 0:Fi.readFile(xt)},Fi)}function Tl(Xe){return!!Pi.get(Xe.path)}function hd(Xe){if(!Xe.isDeclarationFile)return!1;if(Xe.hasNoDefaultLib)return!0;if(!ne.noLib)return!1;const xt=Fi.useCaseSensitiveFileNames()?XA:QA;return ne.lib?Ge(ne.lib,oi=>xt(Xe.fileName,Bt.get(oi).actual)):xt(Xe.fileName,Fr())}function Cl(){return He||(He=jAe(on))}function ho(Xe,xt,oi,wi,Xi,Rn){var tn,bn;(tn=Gn)==null||tn.push(Gn.Phase.Emit,"emit",{path:Xe==null?void 0:Xe.path},!0);const Ar=Zc(()=>nd(on,Xe,xt,oi,wi,Xi,Rn));return(bn=Gn)==null||bn.pop(),Ar}function Ko(Xe){return Dn.has(er(Xe))}function nd(Xe,xt,oi,wi,Xi,Rn,tn){if(!tn){const bu=P1e(Xe,xt,oi,wi);if(bu)return bu}const bn=Cl().getEmitResolver(F0(ne)?void 0:xt,wi);al("beforeEmit");const Ar=DQ(bn,wo(oi),xt,d1e(ne,Rn,Xi),Xi,!1,tn);return al("afterEmit"),Lm("Emit","beforeEmit","afterEmit"),Ar}function Q0(Xe){return Wo(er(Xe))}function Wo(Xe){return qt.get(Xe)||void 0}function Nc(Xe,xt,oi){return A8(Xe?xt(Xe,oi):Vu(on.getSourceFiles(),wi=>(oi&&oi.throwIfCancellationRequested(),xt(wi,oi))))}function $p(Xe,xt){return Nc(Xe,fl,xt)}function Pc(Xe,xt){return Nc(Xe,yh,xt)}function Il(Xe){var xt;return Xe?(xt=je.perFile)==null?void 0:xt.get(Xe.path):je.allDiagnostics}function hl(Xe,xt){return sf(Xe,xt)}function Ga(Xe){var xt;if(SP(Xe,ne,on))return Dt;const oi=bt.getDiagnostics(Xe.fileName);return(xt=Xe.commentDirectives)!=null&&xt.length?$(Xe,Xe.commentDirectives,oi).diagnostics:oi}function Oi(Xe,xt){const oi=on.getCompilerOptions();return!Xe||F0(oi)?fn(Xe,xt):Nc(Xe,Nu,xt)}function fl(Xe){return _h(Xe)?(Xe.additionalSyntacticDiagnostics||(Xe.additionalSyntacticDiagnostics=fi(Xe)),mi(Xe.additionalSyntacticDiagnostics,Xe.parseDiagnostics)):Xe.parseDiagnostics}function Zc(Xe){try{return Xe()}catch(xt){throw xt instanceof b8&&(He=void 0),xt}}function yh(Xe,xt){return mi(TQ(sf(Xe,xt),ne),Ga(Xe))}function sf(Xe,xt){return uu(Xe,xt,je,X0)}function X0(Xe,xt){return Zc(()=>{if(SP(Xe,ne,on))return Dt;const oi=Cl();H.assert(!!Xe.bindDiagnostics);const Xi=(Xe.scriptKind===1||Xe.scriptKind===2)&&rV(Xe,ne),Rn=uj(Xe,ne.checkJs),bn=!(!!Xe.checkJsDirective&&Xe.checkJsDirective.enabled===!1)&&(Xe.scriptKind===3||Xe.scriptKind===4||Xe.scriptKind===5||Rn||Xi||Xe.scriptKind===7);let Ar=bn?Xe.bindDiagnostics:Dt,bu=bn?oi.getDiagnostics(Xe,xt):Dt;return Rn&&(Ar=ti(Ar,yu=>MQ.has(yu.code)),bu=ti(bu,yu=>MQ.has(yu.code))),yc(Xe,bn&&!Rn,Ar,bu,Xi?Xe.jsDocDiagnostics:void 0)})}function yc(Xe,xt,...oi){var wi;const Xi=Ha(oi);if(!xt||!((wi=Xe.commentDirectives)!=null&&wi.length))return Xi;const{diagnostics:Rn,directives:tn}=$(Xe,Xe.commentDirectives,Xi);for(const bn of tn.getUnusedExpectations())Rn.push($be(Xe,bn.range,F.Unused_ts_expect_error_directive));return Rn}function $(Xe,xt,oi){const wi=Mbe(Xe,xt);return{diagnostics:oi.filter(Rn=>vt(Rn,wi)===-1),directives:wi}}function tt(Xe,xt){return Zc(()=>Cl().getSuggestionDiagnostics(Xe,xt))}function vt(Xe,xt){const{file:oi,start:wi}=Xe;if(!oi)return-1;const Xi=$3(oi);let Rn=k8(Xi,wi).line-1;for(;Rn>=0;){if(xt.markUsed(Rn))return Rn;const tn=oi.text.slice(Xi[Rn],Xi[Rn+1]).trim();if(tn!==""&&!/^(\s*)\/\/(.*)$/.test(tn))return-1;Rn--}return-1}function fi(Xe){return Zc(()=>{const xt=[];return oi(Xe,Xe),rM(Xe,oi,wi),xt;function oi(bn,Ar){switch(Ar.kind){case 169:case 172:case 174:if(Ar.questionToken===bn)return xt.push(tn(bn,F.The_0_modifier_can_only_be_used_in_TypeScript_files,"?")),"skip";case 173:case 176:case 177:case 178:case 218:case 262:case 219:case 260:if(Ar.type===bn)return xt.push(tn(bn,F.Type_annotations_can_only_be_used_in_TypeScript_files)),"skip"}switch(bn.kind){case 273:if(bn.isTypeOnly)return xt.push(tn(Ar,F._0_declarations_can_only_be_used_in_TypeScript_files,"import type")),"skip";break;case 278:if(bn.isTypeOnly)return xt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,"export type")),"skip";break;case 276:case 281:if(bn.isTypeOnly)return xt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,bf(bn)?"import...type":"export...type")),"skip";break;case 271:return xt.push(tn(bn,F.import_can_only_be_used_in_TypeScript_files)),"skip";case 277:if(bn.isExportEquals)return xt.push(tn(bn,F.export_can_only_be_used_in_TypeScript_files)),"skip";break;case 298:if(bn.token===119)return xt.push(tn(bn,F.implements_clauses_can_only_be_used_in_TypeScript_files)),"skip";break;case 264:const yu=qo(120);return H.assertIsDefined(yu),xt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,yu)),"skip";case 267:const _u=bn.flags&32?qo(145):qo(144);return H.assertIsDefined(_u),xt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,_u)),"skip";case 265:return xt.push(tn(bn,F.Type_aliases_can_only_be_used_in_TypeScript_files)),"skip";case 176:case 174:case 262:return bn.body?void 0:(xt.push(tn(bn,F.Signature_declarations_can_only_be_used_in_TypeScript_files)),"skip");case 266:const la=H.checkDefined(qo(94));return xt.push(tn(bn,F._0_declarations_can_only_be_used_in_TypeScript_files,la)),"skip";case 235:return xt.push(tn(bn,F.Non_null_assertions_can_only_be_used_in_TypeScript_files)),"skip";case 234:return xt.push(tn(bn.type,F.Type_assertion_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 238:return xt.push(tn(bn.type,F.Type_satisfaction_expressions_can_only_be_used_in_TypeScript_files)),"skip";case 216:H.fail()}}function wi(bn,Ar){if(Wce(Ar)){const bu=Le(Ar.modifiers,E1);bu&&xt.push(tn(bu,F.Decorators_are_not_valid_here))}else if(Ak(Ar)&&Ar.modifiers){const bu=Ue(Ar.modifiers,E1);if(bu>=0){if(io(Ar)&&!ne.experimentalDecorators)xt.push(tn(Ar.modifiers[bu],F.Decorators_are_not_valid_here));else if(Jc(Ar)){const yu=Ue(Ar.modifiers,L7);if(yu>=0){const _u=Ue(Ar.modifiers,oY);if(bu>yu&&_u>=0&&bu<_u)xt.push(tn(Ar.modifiers[bu],F.Decorators_are_not_valid_here));else if(yu>=0&&bu=0&&xt.push(Es(tn(Ar.modifiers[la],F.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),tn(Ar.modifiers[bu],F.Decorator_used_before_export_here)))}}}}}switch(Ar.kind){case 263:case 231:case 174:case 176:case 177:case 178:case 218:case 262:case 219:if(bn===Ar.typeParameters)return xt.push(Rn(bn,F.Type_parameter_declarations_can_only_be_used_in_TypeScript_files)),"skip";case 243:if(bn===Ar.modifiers)return Xi(Ar.modifiers,Ar.kind===243),"skip";break;case 172:if(bn===Ar.modifiers){for(const bu of bn)Xo(bu)&&bu.kind!==126&&bu.kind!==129&&xt.push(tn(bu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,qo(bu.kind)));return"skip"}break;case 169:if(bn===Ar.modifiers&&Ge(bn,Xo))return xt.push(Rn(bn,F.Parameter_modifiers_can_only_be_used_in_TypeScript_files)),"skip";break;case 213:case 214:case 233:case 285:case 286:case 215:if(bn===Ar.typeArguments)return xt.push(Rn(bn,F.Type_arguments_can_only_be_used_in_TypeScript_files)),"skip";break}}function Xi(bn,Ar){for(const bu of bn)switch(bu.kind){case 87:if(Ar)continue;case 125:case 123:case 124:case 148:case 138:case 128:case 164:case 103:case 147:xt.push(tn(bu,F.The_0_modifier_can_only_be_used_in_TypeScript_files,qo(bu.kind)));break;case 126:case 95:case 90:case 129:}}function Rn(bn,Ar,...bu){const yu=bn.pos;return Rd(Xe,yu,bn.end-yu,Ar,...bu)}function tn(bn,Ar,...bu){return G4(Xe,bn,Ar,...bu)}})}function fn(Xe,xt){return uu(Xe,xt,Ke,Gu)}function Gu(Xe,xt){return Zc(()=>{const oi=Cl().getEmitResolver(Xe,xt);return L7e(wo(Rs),oi,Xe)||Dt})}function uu(Xe,xt,oi,wi){var Xi;const Rn=Xe?(Xi=oi.perFile)==null?void 0:Xi.get(Xe.path):oi.allDiagnostics;if(Rn)return Rn;const tn=wi(Xe,xt);return Xe?(oi.perFile||(oi.perFile=new Map)).set(Xe.path,tn):oi.allDiagnostics=tn,tn}function Nu(Xe,xt){return Xe.isDeclarationFile?[]:fn(Xe,xt)}function Mr(){return A8(mi(bt.getGlobalDiagnostics(),Hu()))}function Hu(){if(!ne.configFile)return Dt;let Xe=bt.getDiagnostics(ne.configFile.fileName);return Mc(xt=>{Xe=mi(Xe,bt.getDiagnostics(xt.sourceFile.fileName))}),Xe}function Ss(){return Ce.length?A8(Cl().getGlobalDiagnostics().slice()):Dt}function nc(){return ve||Dt}function ud(Xe,xt,oi,wi){x1(Uo(Xe),xt,oi,void 0,wi)}function T0(Xe,xt){return Xe.fileName===xt.fileName}function rd(Xe,xt){return Xe.kind===80?xt.kind===80&&Xe.escapedText===xt.escapedText:xt.kind===11&&Xe.text===xt.text}function m0(Xe,xt){const oi=q.createStringLiteral(Xe),wi=q.createImportDeclaration(void 0,void 0,oi,void 0);return F7(wi,2),ks(oi,wi),ks(wi,xt),oi.flags&=-17,wi.flags&=-17,oi}function Bd(Xe){if(Xe.imports)return;const xt=_h(Xe),oi=Lc(Xe);let wi,Xi,Rn;if((mg(ne)||oi)&&!Xe.isDeclarationFile){ne.importHelpers&&(wi=[m0(Hx,Xe)]);const yu=aZ(rZ(ne,Xe),ne);yu&&(wi||(wi=[])).push(m0(yu,Xe))}for(const yu of Xe.statements)bn(yu,!1);const tn=xt&&iZ(ne);(Xe.flags&4194304||tn)&&Ar(Xe),Xe.imports=wi||Dt,Xe.moduleAugmentations=Xi||Dt,Xe.ambientModuleNames=Rn||Dt;return;function bn(yu,_u){if(oj(yu)){const la=Y8(yu);la&&rs(la)&&la.text&&(!_u||!Id(la.text))&&(Vx(yu,!1),wi=Di(wi,la),!Mt&&Jn===0&&!Xe.isDeclarationFile&&(Mt=Ma(la.text,"node:")))}else if(xc(yu)&&P1(yu)&&(_u||Qu(yu,128)||Xe.isDeclarationFile)){yu.name.parent=yu;const la=U4(yu.name);if(oi||_u&&!Id(la))(Xi||(Xi=[])).push(yu.name);else if(!_u){Xe.isDeclarationFile&&(Rn||(Rn=[])).push(la);const p0=yu.body;if(p0)for(const o0 of p0.statements)bn(o0,!0)}}}function Ar(yu){const _u=/import|require/g;for(;_u.exec(yu.text)!==null;){const la=bu(yu,_u.lastIndex);tn&&xf(la,!0)||dm(la)&&la.arguments.length>=1&&i0(la.arguments[0])?(Vx(la,!1),wi=Di(wi,la.arguments[0])):zx(la)&&(Vx(la,!1),wi=Di(wi,la.argument.literal))}}function bu(yu,_u){let la=yu;const p0=o0=>{if(o0.pos<=_u&&(_uMl(Xi,tn))){oi&&(I2(Xi)?oi(F.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option,Xe):oi(F.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1,Xe,"'"+Ha(Ln).join("', '")+"'"));return}const Rn=xt(Xe);if(oi)if(Rn)$v(wi)&&Xi===Fi.getCanonicalFileName(Wo(wi.file).fileName)&&oi(F.A_file_cannot_have_a_reference_to_itself);else{const tn=bl(Xe);tn?oi(F.Output_file_0_has_not_been_built_from_source_file_1,tn,Xe):oi(F.File_0_not_found,Xe)}return Rn}else{const Xi=ne.allowNonTsExtensions&&xt(Xe);if(Xi)return Xi;if(oi&&ne.allowNonTsExtensions){oi(F.File_0_not_found,Xe);return}const Rn=L(Ln[0],tn=>xt(Xe+tn));return oi&&!Rn&&oi(F.Could_not_resolve_the_path_0_with_the_extensions_Colon_1,Xe,"'"+Ha(Ln).join("', '")+"'"),Rn}}function x1(Xe,xt,oi,wi,Xi){p4(Xe,Rn=>ka(Rn,xt,oi,Xi,wi),(Rn,...tn)=>In(void 0,Xi,Rn,tn),Xi)}function Ve(Xe,xt){return x1(Xe,!1,!1,void 0,xt)}function di(Xe,xt,oi){!$v(oi)&&Ge(Ye.get(xt.path),$v)?In(xt,oi,F.Already_included_file_name_0_differs_from_file_name_1_only_in_casing,[xt.fileName,Xe]):In(xt,oi,F.File_name_0_differs_from_already_included_file_name_1_only_in_casing,[Xe,xt.fileName])}function Mn(Xe,xt,oi,wi,Xi,Rn,tn){var bn;const Ar=o_.createRedirectedSourceFile({redirectTarget:Xe,unredirected:xt});return Ar.fileName=oi,Ar.path=wi,Ar.resolvedPath=Xi,Ar.originalFileName=Rn,Ar.packageJsonLocations=(bn=tn.packageJsonLocations)!=null&&bn.length?tn.packageJsonLocations:void 0,Ar.packageJsonScope=tn.packageJsonScope,Pi.set(wi,Jn>0),Ar}function ka(Xe,xt,oi,wi,Xi){var Rn,tn;(Rn=Gn)==null||Rn.push(Gn.Phase.Program,"findSourceFile",{fileName:Xe,isDefaultLib:xt||void 0,fileIncludeKind:dU[wi.kind]});const bn=To(Xe,xt,oi,wi,Xi);return(tn=Gn)==null||tn.pop(),bn}function Fo(Xe,xt,oi,wi){const Xi=N1e(qa(Xe,jn),xt==null?void 0:xt.getPackageJsonInfoCache(),oi,wi),Rn=js(wi),tn=Xj(wi);return typeof Xi=="object"?{...Xi,languageVersion:Rn,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}:{languageVersion:Rn,impliedNodeFormat:Xi,setExternalModuleIndicator:tn,jsDocParsingMode:oi.jsDocParsingMode}}function To(Xe,xt,oi,wi,Xi){var Rn;const tn=er(Xe);if(ni){let _u=up(tn);if(!_u&&Fi.realpath&&ne.preserveSymlinks&&t1(Xe)&&Xe.includes(s_)){const la=er(Fi.realpath(Xe));la!==tn&&(_u=up(la))}if(_u){const la=Ua(_u)?ka(_u,xt,oi,wi,Xi):void 0;return la&&mc(la,tn,void 0),la}}const bn=Xe;if(qt.has(tn)){const _u=qt.get(tn);if(uc(_u||void 0,wi),_u&&ne.forceConsistentCasingInFileNames!==!1){const la=_u.fileName;er(la)!==er(Xe)&&(Xe=bl(Xe)||Xe);const o0=Sse(la,jn),Gf=Sse(Xe,jn);o0!==Gf&&di(Xe,_u,wi)}return _u&&Pi.get(_u.path)&&Jn===0?(Pi.set(_u.path,!1),ne.noResolve||(g4(_u,xt),d3(_u)),ne.noLib||Wf(_u),an.set(_u.path,!1),Hh(_u)):_u&&an.get(_u.path)&&JnIn(void 0,wi,F.Cannot_read_file_0_Colon_1,[Xe,_u]),$i);if(Xi){const _u=Px(Xi),la=bo.get(_u);if(la){const p0=Mn(la,yu,Xe,tn,er(Xe),bn,bu);return _t.add(la.path,Xe),mc(p0,tn,Ar),uc(p0,wi),Qe.set(tn,QU(Xi)),Be.push(p0),p0}else yu&&(bo.set(_u,yu),Qe.set(tn,QU(Xi)))}if(mc(yu,tn,Ar),yu){if(Pi.set(tn,Jn>0),yu.fileName=Xe,yu.path=tn,yu.resolvedPath=er(Xe),yu.originalFileName=bn,yu.packageJsonLocations=(Rn=bu.packageJsonLocations)!=null&&Rn.length?bu.packageJsonLocations:void 0,yu.packageJsonScope=bu.packageJsonScope,uc(yu,wi),Fi.useCaseSensitiveFileNames()){const _u=Ug(tn),la=Pe.get(_u);la?di(Xe,la,wi):Pe.set(_u,yu)}oa=oa||yu.hasNoDefaultLib&&!oi,ne.noResolve||(g4(yu,xt),d3(yu)),ne.noLib||Wf(yu),Hh(yu),xt?xe.push(yu):Be.push(yu)}return yu}function uc(Xe,xt){Xe&&Ye.add(Xe.path,xt)}function mc(Xe,xt,oi){oi?(qt.set(oi,Xe),qt.set(xt,Xe||!1)):qt.set(xt,Xe)}function bl(Xe){const xt=Ll(Xe);return xt&&kc(xt,Xe)}function Ll(Xe){if(!(!et||!et.length||t1(Xe)||Ml(Xe,".json")))return ql(Xe)}function kc(Xe,xt){const oi=F0(Xe.commandLine.options);return oi?Tv(oi,".d.ts"):yM(xt,Xe.commandLine,!Fi.useCaseSensitiveFileNames())}function ql(Xe){ii===void 0&&(ii=new Map,Mc(oi=>{er(ne.configFilePath)!==oi.sourceFile.path&&oi.commandLine.fileNames.forEach(wi=>ii.set(er(wi),oi.sourceFile.path))}));const xt=ii.get(er(Xe));return xt&&Vh(xt)}function Mc(Xe){return w1e(et,Xe)}function up(Xe){if(t1(Xe))return me===void 0&&(me=new Map,Mc(xt=>{const oi=F0(xt.commandLine.options);if(oi){const wi=Tv(oi,".d.ts");me.set(er(wi),!0)}else{const wi=zh(()=>FM(xt.commandLine,!Fi.useCaseSensitiveFileNames()));L(xt.commandLine.fileNames,Xi=>{if(!t1(Xi)&&!Ml(Xi,".json")){const Rn=yM(Xi,xt.commandLine,!Fi.useCaseSensitiveFileNames(),wi);me.set(er(Rn),Xi)}})}})),me.get(Xe)}function $m(Xe){return ni&&!!ql(Xe)}function Vh(Xe){if(Et)return Et.get(Xe)||void 0}function g4(Xe,xt){L(Xe.referencedFiles,(oi,wi)=>{x1(kQ(oi.fileName,Xe.fileName),xt,!1,void 0,{kind:4,file:Xe.path,index:wi})})}function d3(Xe){const xt=Xe.typeReferenceDirectives;if(!xt.length)return;const oi=(Ni==null?void 0:Ni.get(Xe.path))||wn(xt,Xe),wi=U7();(Ut??(Ut=new Map)).set(Xe.path,wi);for(let Xi=0;Xi{const{libName:wi,libFileName:Xi}=mtt(xt);if(Xi)ud(O1(Xi),!0,!0,{kind:7,file:Xe.path,index:oi});else{const Rn=D8(kN(wi,"lib."),".d.ts"),tn=yN(Rn,QV,ul),bn=tn?F.Cannot_find_lib_definition_for_0_Did_you_mean_1:F.Cannot_find_lib_definition_for_0,Ar=tn?[wi,tn]:[wi];(Yt||(Yt=[])).push({kind:0,reason:{kind:7,file:Xe.path,index:oi},diagnostic:bn,args:Ar})}})}function E4(Xe){return Fi.getCanonicalFileName(Xe)}function Hh(Xe){var xt;if(Bd(Xe),Xe.imports.length||Xe.moduleAugmentations.length){const oi=ptt(Xe),wi=(ft==null?void 0:ft.get(Xe.path))||Va(oi,Xe);H.assert(wi.length===oi.length);const Xi=(ni?(xt=Sn(Xe))==null?void 0:xt.commandLine.options:void 0)||ne,Rn=U7();(ei??(ei=new Map)).set(Xe.path,Rn);for(let tn=0;tnxn,Gf=p0&&!z1e(Xi,bn,Xe)&&!Xi.noResolve&&tnLc(tn)&&!tn.isDeclarationFile);if(ne.isolatedModules||ne.verbatimModuleSyntax)ne.module===0&&xt<2&&ne.isolatedModules&&_s(F.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher,"isolatedModules","target"),ne.preserveConstEnums===!1&&_s(F.Option_preserveConstEnums_cannot_be_disabled_when_0_is_enabled,ne.verbatimModuleSyntax?"verbatimModuleSyntax":"isolatedModules","preserveConstEnums");else if(oi&&xt<2&&ne.module===0){const tn=b2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none))}if(Xe&&!ne.emitDeclarationOnly){if(ne.module&&!(ne.module===2||ne.module===4))_s(F.Only_amd_and_system_modules_are_supported_alongside_0,ne.out?"out":"outFile","module");else if(ne.module===void 0&&oi){const tn=b2(oi,typeof oi.externalModuleIndicator=="boolean"?oi:oi.externalModuleIndicator);bt.add(Rd(oi,tn.start,tn.length,F.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system,ne.out?"out":"outFile"))}}if(z2(ne)&&(g1(ne)===1?_s(F.Option_resolveJsonModule_cannot_be_specified_when_moduleResolution_is_set_to_classic,"resolveJsonModule"):eZ(ne)||_s(F.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext,"resolveJsonModule","module")),ne.outDir||ne.rootDir||ne.sourceRoot||ne.mapRoot){const tn=da();ne.outDir&&tn===""&&We.some(bn=>GE(bn.fileName)>1)&&_s(F.Cannot_find_the_common_subdirectory_path_for_the_input_files,"outDir")}ne.useDefineForClassFields&&xt===0&&_s(F.Option_0_cannot_be_specified_when_option_target_is_ES3,"useDefineForClassFields"),ne.checkJs&&!wv(ne)&&bt.add(dc(F.Option_0_cannot_be_specified_without_specifying_option_1,"checkJs","allowJs")),ne.emitDeclarationOnly&&(f4(ne)||_s(F.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2,"emitDeclarationOnly","declaration","composite"),ne.noEmit&&_s(F.Option_0_cannot_be_specified_with_option_1,"emitDeclarationOnly","noEmit")),ne.emitDecoratorMetadata&&!ne.experimentalDecorators&&_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"emitDecoratorMetadata","experimentalDecorators"),ne.jsxFactory?(ne.reactNamespace&&_s(F.Option_0_cannot_be_specified_with_option_1,"reactNamespace","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFactory",lM.get(""+ne.jsx)),G7(ne.jsxFactory,xt)||rp("jsxFactory",F.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFactory)):ne.reactNamespace&&!Nm(ne.reactNamespace,xt)&&rp("reactNamespace",F.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier,ne.reactNamespace),ne.jsxFragmentFactory&&(ne.jsxFactory||_s(F.Option_0_cannot_be_specified_without_specifying_option_1,"jsxFragmentFactory","jsxFactory"),(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxFragmentFactory",lM.get(""+ne.jsx)),G7(ne.jsxFragmentFactory,xt)||rp("jsxFragmentFactory",F.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name,ne.jsxFragmentFactory)),ne.reactNamespace&&(ne.jsx===4||ne.jsx===5)&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"reactNamespace",lM.get(""+ne.jsx)),ne.jsxImportSource&&ne.jsx===2&&_s(F.Option_0_cannot_be_specified_when_option_jsx_is_1,"jsxImportSource",lM.get(""+ne.jsx)),ne.preserveValueImports&&p1(ne)<5&&_s(F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"preserveValueImports");const wi=p1(ne);ne.verbatimModuleSyntax&&((wi===2||wi===3||wi===4)&&_s(F.Option_verbatimModuleSyntax_cannot_be_used_when_module_is_set_to_UMD_AMD_or_System,"verbatimModuleSyntax"),ne.preserveValueImports&&Xx("preserveValueImports","verbatimModuleSyntax"),ne.importsNotUsedAsValues&&Xx("importsNotUsedAsValues","verbatimModuleSyntax")),ne.allowImportingTsExtensions&&!(ne.noEmit||ne.emitDeclarationOnly)&&rp("allowImportingTsExtensions",F.Option_allowImportingTsExtensions_can_only_be_used_when_either_noEmit_or_emitDeclarationOnly_is_set);const Xi=g1(ne);if(ne.resolvePackageJsonExports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonExports"),ne.resolvePackageJsonImports&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"resolvePackageJsonImports"),ne.customConditions&&!b7(Xi)&&_s(F.Option_0_can_only_be_used_when_moduleResolution_is_set_to_node16_nodenext_or_bundler,"customConditions"),Xi===100&&!Xq(wi)&&rp("moduleResolution",F.Option_0_can_only_be_used_when_module_is_set_to_es2015_or_later,"bundler"),AN[wi]&&100<=wi&&wi<=199&&!(3<=Xi&&Xi<=99)){const tn=AN[wi];rp("moduleResolution",F.Option_moduleResolution_must_be_set_to_0_or_left_unspecified_when_option_module_is_set_to_1,tn,tn)}else if(y8[Xi]&&3<=Xi&&Xi<=99&&!(100<=wi&&wi<=199)){const tn=y8[Xi];rp("module",F.Option_module_must_be_set_to_0_when_option_moduleResolution_is_set_to_1,tn,tn)}if(!ne.noEmit&&!ne.suppressOutputPathCheck){const tn=wo(),bn=new Set;f1e(tn,Ar=>{ne.emitDeclarationOnly||Rn(Ar.jsFilePath,bn),Rn(Ar.declarationFilePath,bn)})}function Rn(tn,bn){if(tn){const Ar=er(tn);if(qt.has(Ar)){let yu;ne.configFilePath||(yu=ro(void 0,F.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)),yu=ro(yu,F.Cannot_write_file_0_because_it_would_overwrite_input_file,tn),e6(tn,Yq(yu))}const bu=Fi.useCaseSensitiveFileNames()?Ar:Ug(Ar);bn.has(bu)?e6(tn,dc(F.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files,tn)):bn.add(bu)}}}function vi(){const Xe=ne.ignoreDeprecations;if(Xe){if(Xe==="5.0")return new Np(Xe);fe()}return Np.zero}function Q(Xe,xt,oi,wi){const Xi=new Np(Xe),Rn=new Np(xt),tn=new Np(Ne||g),bn=vi(),Ar=Rn.compareTo(tn)!==1,bu=!Ar&&bn.compareTo(Xi)===-1;(Ar||bu)&&wi((yu,_u,la)=>{Ar?_u===void 0?oi(yu,_u,la,F.Option_0_has_been_removed_Please_remove_it_from_your_configuration,yu):oi(yu,_u,la,F.Option_0_1_has_been_removed_Please_remove_it_from_your_configuration,yu,_u):_u===void 0?oi(yu,_u,la,F.Option_0_is_deprecated_and_will_stop_functioning_in_TypeScript_1_Specify_compilerOption_ignoreDeprecations_Colon_2_to_silence_this_error,yu,xt,Xe):oi(yu,_u,la,F.Option_0_1_is_deprecated_and_will_stop_functioning_in_TypeScript_2_Specify_compilerOption_ignoreDeprecations_Colon_3_to_silence_this_error,yu,_u,xt,Xe)})}function Me(){function Xe(xt,oi,wi,Xi,...Rn){if(wi){const tn=ro(void 0,F.Use_0_instead,wi),bn=ro(tn,Xi,...Rn);f3(!oi,xt,void 0,bn)}else f3(!oi,xt,void 0,Xi,...Rn)}Q("5.0","5.5",Xe,xt=>{ne.target===0&&xt("target","ES3"),ne.noImplicitUseStrict&&xt("noImplicitUseStrict"),ne.keyofStringsOnly&&xt("keyofStringsOnly"),ne.suppressExcessPropertyErrors&&xt("suppressExcessPropertyErrors"),ne.suppressImplicitAnyIndexErrors&&xt("suppressImplicitAnyIndexErrors"),ne.noStrictGenericChecks&&xt("noStrictGenericChecks"),ne.charset&&xt("charset"),ne.out&&xt("out",void 0,"outFile"),ne.importsNotUsedAsValues&&xt("importsNotUsedAsValues",void 0,"verbatimModuleSyntax"),ne.preserveValueImports&&xt("preserveValueImports",void 0,"verbatimModuleSyntax")})}function Tt(Xe,xt,oi){function wi(Xi,Rn,tn,bn,...Ar){qm(xt,oi,bn,...Ar)}Q("5.0","5.5",wi,Xi=>{Xe.prepend&&Xi("prepend")})}function yi(Xe,xt,oi,wi){var Xi;let Rn,tn,bn=$v(xt)?xt:void 0;Xe&&((Xi=Ye.get(Xe.path))==null||Xi.forEach(la)),xt&&la(xt),bn&&(Rn==null?void 0:Rn.length)===1&&(Rn=void 0);const Ar=bn&&AM(on,bn),bu=Rn&&ro(Rn,F.The_file_is_in_the_program_because_Colon),yu=Xe&&X1e(Xe),_u=ro(yu?bu?[bu,...yu]:yu:bu,oi,...wi||Dt);return Ar&&ZB(Ar)?rq(Ar.file,Ar.pos,Ar.end-Ar.pos,_u,tn):Yq(_u,tn);function la(p0){(Rn||(Rn=[])).push(ihe(on,p0)),!bn&&$v(p0)?bn=p0:bn!==p0&&(tn=Di(tn,ur(p0))),p0===xt&&(xt=void 0)}}function In(Xe,xt,oi,wi){(Yt||(Yt=[])).push({kind:1,file:Xe&&Xe.path,fileProcessingReason:xt,diagnostic:oi,args:wi})}function nr(Xe,xt,oi){bt.add(yi(Xe,void 0,xt,oi))}function ur(Xe){if($v(Xe)){const wi=AM(on,Xe);let Xi;switch(Xe.kind){case 3:Xi=F.File_is_included_via_import_here;break;case 4:Xi=F.File_is_included_via_reference_here;break;case 5:Xi=F.File_is_included_via_type_library_reference_here;break;case 7:Xi=F.File_is_included_via_library_reference_here;break;default:H.assertNever(Xe)}return ZB(wi)?Rd(wi.file,wi.pos,wi.end-wi.pos,Xi):void 0}if(!ne.configFile)return;let xt,oi;switch(Xe.kind){case 0:if(!ne.configFile.configFileSpecs)return;const wi=qa(Ce[Xe.index],jn),Xi=ehe(on,wi);if(Xi){xt=hq(ne.configFile,"files",Xi),oi=F.File_is_matched_by_files_list_specified_here;break}const Rn=the(on,wi);if(!Rn||!Ua(Rn))return;xt=hq(ne.configFile,"include",Rn),oi=F.File_is_matched_by_include_pattern_specified_here;break;case 1:case 2:const tn=H.checkDefined(et==null?void 0:et[Xe.index]),bn=SQ(Se,et,(la,p0,o0)=>la===tn?{sourceFile:(p0==null?void 0:p0.sourceFile)||ne.configFile,index:o0}:void 0);if(!bn)return;const{sourceFile:Ar,index:bu}=bn,yu=fj(Ar,"references",la=>vh(la.initializer)?la.initializer:void 0);return yu&&yu.elements.length>bu?G4(Ar,yu.elements[bu],Xe.kind===2?F.File_is_output_from_referenced_project_specified_here:F.File_is_source_from_referenced_project_specified_here):void 0;case 8:if(!ne.types)return;xt=Um("types",Xe.typeReference),oi=F.File_is_entry_point_of_type_library_specified_here;break;case 6:if(Xe.index!==void 0){xt=Um("lib",ne.lib[Xe.index]),oi=F.File_is_library_specified_here;break}const _u=f1(eH.type,(la,p0)=>la===js(ne)?p0:void 0);xt=_u?fd("target",_u):void 0,oi=F.File_is_default_library_for_target_specified_here;break;default:H.assertNever(Xe)}return xt&&G4(ne.configFile,xt,oi)}function fa(){const Xe=ne.suppressOutputPathCheck?void 0:f5(ne);SQ(Se,et,(xt,oi,wi)=>{const Xi=(oi?oi.commandLine.projectReferences:Se)[wi],Rn=oi&&oi.sourceFile;if(Tt(Xi,Rn,wi),!xt){qm(Rn,wi,F.File_0_not_found,Xi.path);return}const tn=xt.commandLine.options;if((!tn.composite||tn.noEmit)&&(oi?oi.commandLine.fileNames:Ce).length&&(tn.composite||qm(Rn,wi,F.Referenced_project_0_must_have_setting_composite_Colon_true,Xi.path),tn.noEmit&&qm(Rn,wi,F.Referenced_project_0_may_not_disable_emit,Xi.path)),Xi.prepend){const bn=F0(tn);bn?Fi.fileExists(bn)||qm(Rn,wi,F.Output_file_0_from_project_1_does_not_exist,bn,Xi.path):qm(Rn,wi,F.Cannot_prepend_project_0_because_it_does_not_have_outFile_set,Xi.path)}!oi&&Xe&&Xe===f5(tn)&&(qm(Rn,wi,F.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1,Xe,Xi.path),Dn.set(er(Xe),!0))})}function ss(Xe,xt,oi,...wi){let Xi=!0;v1(Rn=>{ys(Rn.initializer)&&J8(Rn.initializer,Xe,tn=>{const bn=tn.initializer;vh(bn)&&bn.elements.length>xt&&(bt.add(G4(ne.configFile,bn.elements[xt],oi,...wi)),Xi=!1)})}),Xi&&bt.add(dc(oi,...wi))}function ls(Xe,xt,oi,...wi){let Xi=!0;v1(Rn=>{ys(Rn.initializer)&&ia(Rn.initializer,Xe,xt,void 0,oi,...wi)&&(Xi=!1)}),Xi&&bt.add(dc(oi,...wi))}function Rl(Xe,xt){return J8(h_(),Xe,xt)}function v1(Xe){return Rl("paths",Xe)}function fd(Xe,xt){return Rl(Xe,oi=>rs(oi.initializer)&&oi.initializer.text===xt?oi.initializer:void 0)}function Um(Xe,xt){const oi=h_();return oi&&iye(oi,Xe,xt)}function _s(Xe,xt,oi,wi){f3(!0,xt,oi,Xe,xt,oi,wi)}function rp(Xe,xt,...oi){f3(!1,Xe,void 0,xt,...oi)}function qm(Xe,xt,oi,...wi){const Xi=fj(Xe||ne.configFile,"references",Rn=>vh(Rn.initializer)?Rn.initializer:void 0);Xi&&Xi.elements.length>xt?bt.add(G4(Xe||ne.configFile,Xi.elements[xt],oi,...wi)):bt.add(dc(oi,...wi))}function f3(Xe,xt,oi,wi,...Xi){const Rn=h_();(!Rn||!ia(Rn,Xe,xt,oi,wi,...Xi))&&("messageText"in wi?bt.add(Yq(wi)):bt.add(dc(wi,...Xi)))}function h_(){return Cn===void 0&&(Cn=J8(YN(ne.configFile),"compilerOptions",Xe=>ys(Xe.initializer)?Xe.initializer:void 0)||!1),Cn||void 0}function ia(Xe,xt,oi,wi,Xi,...Rn){let tn=!1;return J8(Xe,oi,bn=>{"messageText"in Xi?bt.add(Y3(ne.configFile,xt?bn.name:bn.initializer,Xi)):bt.add(G4(ne.configFile,xt?bn.name:bn.initializer,Xi,...Rn)),tn=!0},wi),tn}function Xx(Xe,xt){const oi=h_();oi?ia(oi,!0,Xe,void 0,F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,xt):_s(F.Option_0_is_redundant_and_cannot_be_specified_with_option_1,Xe,xt)}function e6(Xe,xt){Dn.set(er(Xe),!0),bt.add(xt)}function bg(Xe){if(ne.noEmit)return!1;const xt=er(Xe);if(Wo(xt))return!1;const oi=F0(ne);if(oi)return lb(xt,oi)||lb(xt,xh(oi)+".d.ts");if(ne.declarationDir&&JE(ne.declarationDir,xt,jn,!Fi.useCaseSensitiveFileNames()))return!0;if(ne.outDir)return JE(ne.outDir,xt,jn,!Fi.useCaseSensitiveFileNames());if(Hc(xt,_B)||t1(xt)){const wi=xh(xt);return!!Wo(wi+".ts")||!!Wo(wi+".tsx")}return!1}function lb(Xe,xt){return gv(Xe,xt,jn,!Fi.useCaseSensitiveFileNames())===0}function b5(){return Fi.getSymlinkCache?Fi.getSymlinkCache():(Ae||(Ae=kle(jn,E4)),We&&!Ae.hasProcessedResolutions()&&Ae.setSymlinksFromResolutions(we,de,st),Ae)}}function kzt(t){let u;const s=t.compilerHost.fileExists,d=t.compilerHost.directoryExists,f=t.compilerHost.getDirectories,p=t.compilerHost.realpath;if(!t.useSourceOfProjectReferenceRedirect)return{onProgramCreateComplete:Rs,fileExists:b};t.compilerHost.fileExists=b;let E;return d&&(E=t.compilerHost.directoryExists=z=>d.call(t.compilerHost,z)?(T(z),!0):t.getResolvedProjectReferences()?(u||(u=new Set,t.forEachResolvedProjectReference(j=>{const J=F0(j.commandLine.options);if(J)u.add(dr(t.toPath(J)));else{const K=j.commandLine.options.declarationDir||j.commandLine.options.outDir;K&&u.add(t.toPath(K))}})),M(z,!1)):!1),f&&(t.compilerHost.getDirectories=z=>!t.getResolvedProjectReferences()||d&&d.call(t.compilerHost,z)?f.call(t.compilerHost,z):[]),p&&(t.compilerHost.realpath=z=>{var j;return((j=t.getSymlinkCache().getSymlinkedFiles())==null?void 0:j.get(t.toPath(z)))||p.call(t.compilerHost,z)}),{onProgramCreateComplete:v,fileExists:b,directoryExists:E};function v(){t.compilerHost.fileExists=s,t.compilerHost.directoryExists=d,t.compilerHost.getDirectories=f}function b(z){return s.call(t.compilerHost,z)?!0:!t.getResolvedProjectReferences()||!t1(z)?!1:M(z,!0)}function B(z){const j=t.getSourceOfProjectReferenceRedirect(t.toPath(z));return j!==void 0?Ua(j)?s.call(t.compilerHost,j):!0:void 0}function k(z){const j=t.toPath(z),J=`${j}${ol}`;return q_(u,K=>j===K||Ma(K,J)||Ma(j,`${K}/`))}function T(z){var j;if(!t.getResolvedProjectReferences()||LP(z)||!p||!z.includes(s_))return;const J=t.getSymlinkCache(),K=zd(t.toPath(z));if((j=J.getSymlinkedDirectories())!=null&&j.has(K))return;const Y=Uo(p.call(t.compilerHost,z));let oe;if(Y===z||(oe=zd(t.toPath(Y)))===K){J.setSymlinkedDirectory(K,!1);return}J.setSymlinkedDirectory(z,{real:zd(Y),realPath:oe})}function M(z,j){var J;const K=j?ae=>B(ae):ae=>k(ae),Y=K(z);if(Y!==void 0)return Y;const oe=t.getSymlinkCache(),se=oe.getSymlinkedDirectories();if(!se)return!1;const ge=t.toPath(z);return ge.includes(s_)?j&&((J=oe.getSymlinkedFiles())!=null&&J.has(ge))?!0:ie(se.entries(),([ae,Ce])=>{if(!Ce||!Ma(ge,ae))return;const ne=K(ge.replace(ae,Ce.realPath));if(j&&ne){const ve=qa(z,t.compilerHost.getCurrentDirectory());oe.setSymlinkedFile(ge,`${Ce.real}${ve.replace(new RegExp(ae,"i"),"")}`)}return ne})||!1:!1}}function P1e(t,u,s,d){const f=t.getCompilerOptions();if(f.noEmit)return t.getSemanticDiagnostics(u,d),u||F0(f)?zQ:t.emitBuildInfo(s,d);if(!f.noEmitOnError)return;let p=[...t.getOptionsDiagnostics(d),...t.getSyntacticDiagnostics(u,d),...t.getGlobalDiagnostics(d),...t.getSemanticDiagnostics(u,d)];if(p.length===0&&f4(t.getCompilerOptions())&&(p=t.getDeclarationDiagnostics(void 0,d)),!p.length)return;let E;if(!u&&!F0(f)){const v=t.emitBuildInfo(s,d);v.diagnostics&&(p=[...p,...v.diagnostics]),E=v.emittedFiles}return{diagnostics:p,sourceMaps:void 0,emittedFiles:E,emitSkipped:!0}}function TQ(t,u){return ti(t,s=>!s.skippedOn||!u[s.skippedOn])}function LQ(t,u=t){return{fileExists:s=>u.fileExists(s),readDirectory(s,d,f,p,E){return H.assertIsDefined(u.readDirectory,"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'"),u.readDirectory(s,d,f,p,E)},readFile:s=>u.readFile(s),directoryExists:Lo(u,u.directoryExists),getDirectories:Lo(u,u.getDirectories),realpath:Lo(u,u.realpath),useCaseSensitiveFileNames:t.useCaseSensitiveFileNames(),getCurrentDirectory:()=>t.getCurrentDirectory(),onUnRecoverableConfigFileDiagnostic:t.onUnRecoverableConfigFileDiagnostic||fv,trace:t.trace?s=>t.trace(s):void 0}}function M1e(t,u,s,d){if(!t)return Dt;let f;for(let p=0;pd);for(const d of u)d.kind===11&&s.push(d);return s}function NQ({imports:t,moduleAugmentations:u},s){if(s(t.Grey="\x1B[90m",t.Red="\x1B[91m",t.Yellow="\x1B[93m",t.Blue="\x1B[94m",t.Cyan="\x1B[96m",t))(I1e||{}),R1e="\x1B[7m",O1e=" ",G7e="\x1B[0m",J7e="...",gtt=" ",$7e=" ",U7e={resolvedModule:void 0,resolvedTypeReferenceDirective:void 0},kH={getName:K7e,getMode:(t,u)=>xg(u,t)},PQ={getName:W7e,getMode:(t,u)=>FQ(t,u==null?void 0:u.impliedNodeFormat)},QB="__inferred type names__.ts",MQ=new Set([F.Cannot_redeclare_block_scoped_variable_0.code,F.A_module_cannot_have_multiple_default_exports.code,F.Another_export_default_is_here.code,F.The_first_export_default_is_here.code,F.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module.code,F.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode.code,F.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here.code,F.constructor_is_a_reserved_word.code,F.delete_cannot_be_called_on_an_identifier_in_strict_mode.code,F.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,F.Invalid_use_of_0_Modules_are_automatically_in_strict_mode.code,F.Invalid_use_of_0_in_strict_mode.code,F.A_label_is_not_allowed_here.code,F.with_statements_are_not_allowed_in_strict_mode.code,F.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement.code,F.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement.code,F.A_class_declaration_without_the_default_modifier_must_have_a_name.code,F.A_class_member_cannot_have_the_0_keyword.code,F.A_comma_expression_is_not_allowed_in_a_computed_property_name.code,F.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement.code,F.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement.code,F.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration.code,F.A_definite_assignment_assertion_is_not_permitted_in_this_context.code,F.A_destructuring_declaration_must_have_an_initializer.code,F.A_get_accessor_cannot_have_parameters.code,F.A_rest_element_cannot_contain_a_binding_pattern.code,F.A_rest_element_cannot_have_a_property_name.code,F.A_rest_element_cannot_have_an_initializer.code,F.A_rest_element_must_be_last_in_a_destructuring_pattern.code,F.A_rest_parameter_cannot_have_an_initializer.code,F.A_rest_parameter_must_be_last_in_a_parameter_list.code,F.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma.code,F.A_return_statement_cannot_be_used_inside_a_class_static_block.code,F.A_set_accessor_cannot_have_rest_parameter.code,F.A_set_accessor_must_have_exactly_one_parameter.code,F.An_export_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_export_declaration_cannot_have_modifiers.code,F.An_import_declaration_can_only_be_used_at_the_top_level_of_a_module.code,F.An_import_declaration_cannot_have_modifiers.code,F.An_object_member_cannot_be_declared_optional.code,F.Argument_of_dynamic_import_cannot_be_spread_element.code,F.Cannot_assign_to_private_method_0_Private_methods_are_not_writable.code,F.Cannot_redeclare_identifier_0_in_catch_clause.code,F.Catch_clause_variable_cannot_have_an_initializer.code,F.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator.code,F.Classes_can_only_extend_a_single_class.code,F.Classes_may_not_have_a_field_named_constructor.code,F.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,F.Duplicate_label_0.code,F.Dynamic_imports_can_only_accept_a_module_specifier_and_an_optional_set_of_attributes_as_arguments.code,F.for_await_loops_cannot_be_used_inside_a_class_static_block.code,F.JSX_attributes_must_only_be_assigned_a_non_empty_expression.code,F.JSX_elements_cannot_have_multiple_attributes_with_the_same_name.code,F.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array.code,F.JSX_property_access_expressions_cannot_include_JSX_namespace_names.code,F.Jump_target_cannot_cross_function_boundary.code,F.Line_terminator_not_permitted_before_arrow.code,F.Modifiers_cannot_appear_here.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement.code,F.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement.code,F.Private_identifiers_are_not_allowed_outside_class_bodies.code,F.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,F.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier.code,F.Tagged_template_expressions_are_not_permitted_in_an_optional_chain.code,F.The_left_hand_side_of_a_for_of_statement_may_not_be_async.code,F.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer.code,F.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer.code,F.Trailing_comma_not_allowed.code,F.Variable_declaration_list_cannot_be_empty.code,F._0_and_1_operations_cannot_be_mixed_without_parentheses.code,F._0_expected.code,F._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2.code,F._0_list_cannot_be_empty.code,F._0_modifier_already_seen.code,F._0_modifier_cannot_appear_on_a_constructor_declaration.code,F._0_modifier_cannot_appear_on_a_module_or_namespace_element.code,F._0_modifier_cannot_appear_on_a_parameter.code,F._0_modifier_cannot_appear_on_class_elements_of_this_kind.code,F._0_modifier_cannot_be_used_here.code,F._0_modifier_must_precede_1_modifier.code,F._0_declarations_can_only_be_declared_inside_a_block.code,F._0_declarations_must_be_initialized.code,F.extends_clause_already_seen.code,F.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations.code,F.Class_constructor_may_not_be_a_generator.code,F.Class_constructor_may_not_be_an_accessor.code,F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Private_field_0_must_be_declared_in_an_enclosing_class.code,F.This_condition_will_always_return_0_since_JavaScript_compares_objects_by_reference_not_value.code]),zQ={diagnostics:Dt,sourceMaps:void 0,emittedFiles:void 0,emitSkipped:!0}}}),Azt=o({"src/compiler/builderStatePublic.ts"(){}});function q7e(t,u,s,d,f,p){const E=[],{emitSkipped:v,diagnostics:b}=t.emit(u,B,d,s,f,p);return{outputFiles:E,emitSkipped:v,diagnostics:b};function B(k,T,M){E.push({name:k,writeByteOrderMark:M,text:T})}}var Gp,Szt=o({"src/compiler/builderState.ts"(){Bo(),(t=>{function u(){function pe(fe,xe,Be){const We={getKeys:Ae=>xe.get(Ae),getValues:Ae=>fe.get(Ae),keys:()=>fe.keys(),deleteKey:Ae=>{(Be||(Be=new Set)).add(Ae);const De=fe.get(Ae);return De?(De.forEach(He=>d(xe,He,Ae)),fe.delete(Ae),!0):!1},set:(Ae,De)=>{Be==null||Be.delete(Ae);const He=fe.get(Ae);return fe.set(Ae,De),He==null||He.forEach(Je=>{De.has(Je)||d(xe,Je,Ae)}),De.forEach(Je=>{He!=null&&He.has(Je)||s(xe,Je,Ae)}),We}};return We}return pe(new Map,new Map,void 0)}t.createManyToManyPathMap=u;function s(pe,fe,xe){let Be=pe.get(fe);Be||(Be=new Set,pe.set(fe,Be)),Be.add(xe)}function d(pe,fe,xe){const Be=pe.get(fe);return Be!=null&&Be.delete(xe)?(Be.size||pe.delete(fe),!0):!1}function f(pe){return qi(pe.declarations,fe=>{var xe;return(xe=zn(fe))==null?void 0:xe.resolvedPath})}function p(pe,fe){const xe=pe.getSymbolAtLocation(fe);return xe&&f(xe)}function E(pe,fe,xe,Be){return $0(pe.getProjectReferenceRedirect(fe)||fe,xe,Be)}function v(pe,fe,xe){let Be;if(fe.imports&&fe.imports.length>0){const He=pe.getTypeChecker();for(const Je of fe.imports){const mt=p(He,Je);mt==null||mt.forEach(De)}}const We=dr(fe.resolvedPath);if(fe.referencedFiles&&fe.referencedFiles.length>0)for(const He of fe.referencedFiles){const Je=E(pe,He.fileName,We,xe);De(Je)}if(pe.forEachResolvedTypeReferenceDirective(({resolvedTypeReferenceDirective:He})=>{if(!He)return;const Je=He.resolvedFileName,mt=E(pe,Je,We,xe);De(mt)},fe),fe.moduleAugmentations.length){const He=pe.getTypeChecker();for(const Je of fe.moduleAugmentations){if(!rs(Je))continue;const mt=He.getSymbolAtLocation(Je);mt&&Ae(mt)}}for(const He of pe.getTypeChecker().getAmbientModules())He.declarations&&He.declarations.length>1&&Ae(He);return Be;function Ae(He){if(He.declarations)for(const Je of He.declarations){const mt=zn(Je);mt&&mt!==fe&&De(mt.resolvedPath)}}function De(He){(Be||(Be=new Set)).add(He)}}function b(pe,fe){return fe&&!fe.referencedMap==!pe}t.canReuseOldState=b;function B(pe,fe,xe){var Be,We,Ae;const De=new Map,He=pe.getCompilerOptions(),Je=F0(He),mt=He.module!==0&&!Je?u():void 0,Ye=mt?u():void 0,je=b(mt,fe);pe.getTypeChecker();for(const Ke of pe.getSourceFiles()){const Gt=H.checkDefined(Ke.version,"Program intended to be used with Builder should have source files with versions set"),Yt=je?(Be=fe.oldSignatures)==null?void 0:Be.get(Ke.resolvedPath):void 0,Ie=Yt===void 0?je?(We=fe.fileInfos.get(Ke.resolvedPath))==null?void 0:We.signature:void 0:Yt||void 0;if(mt){const st=v(pe,Ke,pe.getCanonicalFileName);if(st&&mt.set(Ke.resolvedPath,st),je){const Bt=(Ae=fe.oldExportedModulesMap)==null?void 0:Ae.get(Ke.resolvedPath),It=Bt===void 0?fe.exportedModulesMap.getValues(Ke.resolvedPath):Bt||void 0;It&&Ye.set(Ke.resolvedPath,It)}}De.set(Ke.resolvedPath,{version:Gt,signature:Ie,affectsGlobalScope:Je?void 0:ne(Ke)||void 0,impliedFormat:Ke.impliedNodeFormat})}return{fileInfos:De,referencedMap:mt,exportedModulesMap:Ye,useFileVersionAsSignature:!xe&&!je}}t.create=B;function k(pe){pe.allFilesExcludingDefaultLibraryFile=void 0,pe.allFileNames=void 0}t.releaseCache=k;function T(pe,fe,xe,Be,We){var Ae,De;const He=M(pe,fe,xe,Be,We);return(Ae=pe.oldSignatures)==null||Ae.clear(),(De=pe.oldExportedModulesMap)==null||De.clear(),He}t.getFilesAffectedBy=T;function M(pe,fe,xe,Be,We){const Ae=fe.getSourceFileByPath(xe);return Ae?J(pe,fe,Ae,Be,We)?(pe.referencedMap?Ne:Se)(pe,fe,Ae,Be,We):[Ae]:Dt}t.getFilesAffectedByWithOldState=M;function z(pe,fe,xe){pe.fileInfos.get(xe).signature=fe,(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe)}t.updateSignatureOfFile=z;function j(pe,fe,xe,Be,We){pe.emit(fe,(Ae,De,He,Je,mt,Ye)=>{H.assert(t1(Ae),`File extension for signature expected to be dts: Got:: ${Ae}`),We(V1e(pe,fe,De,Be,Ye),mt)},xe,!0,void 0,!0)}t.computeDtsSignature=j;function J(pe,fe,xe,Be,We,Ae=pe.useFileVersionAsSignature){var De;if((De=pe.hasCalledUpdateShapeSignature)!=null&&De.has(xe.resolvedPath))return!1;const He=pe.fileInfos.get(xe.resolvedPath),Je=He.signature;let mt;if(!xe.isDeclarationFile&&!Ae&&j(fe,xe,Be,We,(Ye,je)=>{mt=Ye,mt!==Je&&K(pe,xe,je[0].exportedModulesFromDeclarationEmit)}),mt===void 0&&(mt=xe.version,pe.exportedModulesMap&&mt!==Je)){(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(xe.resolvedPath,pe.exportedModulesMap.getValues(xe.resolvedPath)||!1);const Ye=pe.referencedMap?pe.referencedMap.getValues(xe.resolvedPath):void 0;Ye?pe.exportedModulesMap.set(xe.resolvedPath,Ye):pe.exportedModulesMap.deleteKey(xe.resolvedPath)}return(pe.oldSignatures||(pe.oldSignatures=new Map)).set(xe.resolvedPath,Je||!1),(pe.hasCalledUpdateShapeSignature||(pe.hasCalledUpdateShapeSignature=new Set)).add(xe.resolvedPath),He.signature=mt,mt!==Je}t.updateShapeSignature=J;function K(pe,fe,xe){if(!pe.exportedModulesMap)return;(pe.oldExportedModulesMap||(pe.oldExportedModulesMap=new Map)).set(fe.resolvedPath,pe.exportedModulesMap.getValues(fe.resolvedPath)||!1);const Be=Y(xe);Be?pe.exportedModulesMap.set(fe.resolvedPath,Be):pe.exportedModulesMap.deleteKey(fe.resolvedPath)}t.updateExportedModules=K;function Y(pe){let fe;return pe==null||pe.forEach(xe=>f(xe).forEach(Be=>(fe??(fe=new Set)).add(Be))),fe}t.getExportedModules=Y;function oe(pe,fe,xe){const Be=fe.getCompilerOptions();if(F0(Be)||!pe.referencedMap||ne(xe))return se(pe,fe);const We=new Set,Ae=[xe.resolvedPath];for(;Ae.length;){const De=Ae.pop();if(!We.has(De)){We.add(De);const He=pe.referencedMap.getValues(De);if(He)for(const Je of He.keys())Ae.push(Je)}}return Ea(Ka(We.keys(),De=>{var He;return((He=fe.getSourceFileByPath(De))==null?void 0:He.fileName)??De}))}t.getAllDependencies=oe;function se(pe,fe){if(!pe.allFileNames){const xe=fe.getSourceFiles();pe.allFileNames=xe===Dt?Dt:xe.map(Be=>Be.fileName)}return pe.allFileNames}function ge(pe,fe){const xe=pe.referencedMap.getKeys(fe);return xe?Ea(xe.keys()):[]}t.getReferencedByPaths=ge;function ae(pe){for(const fe of pe.statements)if(!nq(fe))return!1;return!0}function Ce(pe){return Ge(pe.moduleAugmentations,fe=>Qg(fe.parent))}function ne(pe){return Ce(pe)||!cm(pe)&&!J4(pe)&&!ae(pe)}function ve(pe,fe,xe){if(pe.allFilesExcludingDefaultLibraryFile)return pe.allFilesExcludingDefaultLibraryFile;let Be;xe&&We(xe);for(const Ae of fe.getSourceFiles())Ae!==xe&&We(Ae);return pe.allFilesExcludingDefaultLibraryFile=Be||Dt,pe.allFilesExcludingDefaultLibraryFile;function We(Ae){fe.isSourceFileDefaultLibrary(Ae)||(Be||(Be=[])).push(Ae)}}t.getAllFilesExcludingDefaultLibraryFile=ve;function Se(pe,fe,xe){const Be=fe.getCompilerOptions();return Be&&F0(Be)?[xe]:ve(pe,fe,xe)}function Ne(pe,fe,xe,Be,We){if(ne(xe))return ve(pe,fe,xe);const Ae=fe.getCompilerOptions();if(Ae&&(mg(Ae)||F0(Ae)))return[xe];const De=new Map;De.set(xe.resolvedPath,xe);const He=ge(pe,xe.resolvedPath);for(;He.length>0;){const Je=He.pop();if(!De.has(Je)){const mt=fe.getSourceFileByPath(Je);De.set(Je,mt),mt&&J(pe,fe,mt,Be,We)&&He.push(...ge(pe,mt.resolvedPath))}}return Ea(Ka(De.values(),Je=>Je))}})(Gp||(Gp={}))}});function Ux(t){let u=1;return t.sourceMap&&(u=u|2),t.inlineSourceMap&&(u=u|4),f4(t)&&(u=u|8),t.declarationMap&&(u=u|16),t.emitDeclarationOnly&&(u=u&24),u}function XB(t,u){const s=u&&(UD(u)?u:Ux(u)),d=UD(t)?t:Ux(t);if(s===d)return 0;if(!s||!d)return d;const f=s^d;let p=0;return f&7&&(p=d&7),f&24&&(p=p|d&24),p}function Bzt(t,u){return t===u||t!==void 0&&u!==void 0&&t.size===u.size&&!q_(t,s=>!u.has(s))}function wzt(t,u){var s,d;const f=Gp.create(t,u,!1);f.program=t;const p=t.getCompilerOptions();f.compilerOptions=p;const E=F0(p);E?p.composite&&(u!=null&&u.outSignature)&&E===F0(u==null?void 0:u.compilerOptions)&&(f.outSignature=u.outSignature&&_tt(p,u.compilerOptions,u.outSignature)):f.semanticDiagnosticsPerFile=new Map,f.changedFilesSet=new Set,f.latestChangedDtsFile=p.composite?u==null?void 0:u.latestChangedDtsFile:void 0;const v=Gp.canReuseOldState(f.referencedMap,u),b=v?u.compilerOptions:void 0,B=v&&u.semanticDiagnosticsPerFile&&!!f.semanticDiagnosticsPerFile&&!fke(p,b),k=p.composite&&(u==null?void 0:u.emitSignatures)&&!E&&!pke(p,u.compilerOptions);v?((s=u.changedFilesSet)==null||s.forEach(J=>f.changedFilesSet.add(J)),!E&&((d=u.affectedFilesPendingEmit)!=null&&d.size)&&(f.affectedFilesPendingEmit=new Map(u.affectedFilesPendingEmit),f.seenAffectedFiles=new Set),f.programEmitPending=u.programEmitPending):f.buildInfoEmitPending=!0;const T=f.referencedMap,M=v?u.referencedMap:void 0,z=B&&!p.skipLibCheck==!b.skipLibCheck,j=z&&!p.skipDefaultLibCheck==!b.skipDefaultLibCheck;if(f.fileInfos.forEach((J,K)=>{let Y,oe;if(!v||!(Y=u.fileInfos.get(K))||Y.version!==J.version||Y.impliedFormat!==J.impliedFormat||!Bzt(oe=T&&T.getValues(K),M&&M.getValues(K))||oe&&q_(oe,se=>!f.fileInfos.has(se)&&u.fileInfos.has(se)))Ett(f,K);else if(B){const se=t.getSourceFileByPath(K);if(se.isDeclarationFile&&!z||se.hasNoDefaultLib&&!j)return;const ge=u.semanticDiagnosticsPerFile.get(K);ge&&(f.semanticDiagnosticsPerFile.set(K,u.hasReusableDiagnostic?Lzt(ge,t):Tzt(ge,t)),f.semanticDiagnosticsFromOldState||(f.semanticDiagnosticsFromOldState=new Set),f.semanticDiagnosticsFromOldState.add(K))}if(k){const se=u.emitSignatures.get(K);se&&(f.emitSignatures??(f.emitSignatures=new Map)).set(K,_tt(p,u.compilerOptions,se))}}),v&&f1(u.fileInfos,(J,K)=>f.fileInfos.has(K)?!1:E||J.affectsGlobalScope?!0:(f.buildInfoEmitPending=!0,!1)))Gp.getAllFilesExcludingDefaultLibraryFile(f,t,void 0).forEach(J=>Ett(f,J.resolvedPath));else if(b){const J=mke(p,b)?Ux(p):XB(p,b);J!==0&&(E?f.programEmitPending=f.programEmitPending?f.programEmitPending|J:J:(t.getSourceFiles().forEach(K=>{f.changedFilesSet.has(K.resolvedPath)||i9e(f,K.resolvedPath,J)}),H.assert(!f.seenAffectedFiles||!f.seenAffectedFiles.size),f.seenAffectedFiles=f.seenAffectedFiles||new Set,f.buildInfoEmitPending=!0))}return E&&!f.changedFilesSet.size&&(v&&(f.bundle=u.bundle),Ge(t.getProjectReferences(),J=>!!J.prepend)&&(f.programEmitPending=Ux(p))),f}function Ett(t,u){t.changedFilesSet.add(u),t.buildInfoEmitPending=!0,t.programEmitPending=void 0}function _tt(t,u,s){return!!t.declarationMap==!!u.declarationMap?s:Ua(s)?[s]:s[0]}function Tzt(t,u){return t.length?Pu(t,s=>{if(Ua(s.messageText))return s;const d=Z7e(s.messageText,s.file,u,f=>{var p;return(p=f.repopulateInfo)==null?void 0:p.call(f)});return d===s.messageText?s:{...s,messageText:d}}):t}function Z7e(t,u,s,d){const f=d(t);if(f)return{...l0e(u,s,f.moduleReference,f.mode,f.packageName||f.moduleReference),next:Dtt(t.next,u,s,d)};const p=Dtt(t.next,u,s,d);return p===t.next?t:{...t,next:p}}function Dtt(t,u,s,d){return Pu(t,f=>Z7e(f,u,s,d))}function Lzt(t,u){if(!t.length)return Dt;let s;return t.map(f=>{const p=xtt(f,u,d);p.reportsUnnecessary=f.reportsUnnecessary,p.reportsDeprecated=f.reportDeprecated,p.source=f.source,p.skippedOn=f.skippedOn;const{relatedInformation:E}=f;return p.relatedInformation=E?E.length?E.map(v=>xtt(v,u,d)):[]:void 0,p});function d(f){return s??(s=dr(qa(f5(u.getCompilerOptions()),u.getCurrentDirectory()))),$0(f,s,u.getCanonicalFileName)}}function xtt(t,u,s){const{file:d}=t,f=d?u.getSourceFileByPath(s(d)):void 0;return{...t,file:f,messageText:Ua(t.messageText)?t.messageText:Z7e(t.messageText,f,u,p=>p.info)}}function Nzt(t){Gp.releaseCache(t),t.program=void 0}function Pzt(t){const u=F0(t.compilerOptions);return H.assert(!t.changedFilesSet.size||u),{affectedFilesPendingEmit:t.affectedFilesPendingEmit&&new Map(t.affectedFilesPendingEmit),seenEmittedFiles:t.seenEmittedFiles&&new Map(t.seenEmittedFiles),programEmitPending:t.programEmitPending,emitSignatures:t.emitSignatures&&new Map(t.emitSignatures),outSignature:t.outSignature,latestChangedDtsFile:t.latestChangedDtsFile,hasChangedEmitSignature:t.hasChangedEmitSignature,changedFilesSet:u?new Set(t.changedFilesSet):void 0}}function Mzt(t,u){t.affectedFilesPendingEmit=u.affectedFilesPendingEmit,t.seenEmittedFiles=u.seenEmittedFiles,t.programEmitPending=u.programEmitPending,t.emitSignatures=u.emitSignatures,t.outSignature=u.outSignature,t.latestChangedDtsFile=u.latestChangedDtsFile,t.hasChangedEmitSignature=u.hasChangedEmitSignature,u.changedFilesSet&&(t.changedFilesSet=u.changedFilesSet)}function vtt(t,u){H.assert(!u||!t.affectedFiles||t.affectedFiles[t.affectedFilesIndex-1]!==u||!t.semanticDiagnosticsPerFile.has(u.resolvedPath))}function Ctt(t,u,s){for(var d,f;;){const{affectedFiles:p}=t;if(p){const B=t.seenAffectedFiles;let k=t.affectedFilesIndex;for(;k{const p=d&7;p?t.affectedFilesPendingEmit.set(f,p):t.affectedFilesPendingEmit.delete(f)})}}function Izt(t,u){var s;if((s=t.affectedFilesPendingEmit)!=null&&s.size)return f1(t.affectedFilesPendingEmit,(d,f)=>{var p;const E=t.program.getSourceFileByPath(f);if(!E||!p7(E,t.program)){t.affectedFilesPendingEmit.delete(f);return}const v=(p=t.seenEmittedFiles)==null?void 0:p.get(E.resolvedPath);let b=XB(d,v);if(u&&(b=b&24),b)return{affectedFile:E,emitKind:b}})}function btt(t){if(!t.cleanedDiagnosticsOfLibFiles){t.cleanedDiagnosticsOfLibFiles=!0;const u=H.checkDefined(t.program),s=u.getCompilerOptions();L(u.getSourceFiles(),d=>u.isSourceFileDefaultLibrary(d)&&!SP(d,s,u)&&Y7e(t,d.resolvedPath))}}function Rzt(t,u,s,d){if(Y7e(t,u.resolvedPath),t.allFilesExcludingDefaultLibraryFile===t.affectedFiles){btt(t),Gp.updateShapeSignature(t,H.checkDefined(t.program),u,s,d);return}t.compilerOptions.assumeChangesOnlyAffectDirectDependencies||Ozt(t,u,s,d)}function j1e(t,u,s,d){if(Y7e(t,u),!t.changedFilesSet.has(u)){const f=H.checkDefined(t.program),p=f.getSourceFileByPath(u);p&&(Gp.updateShapeSignature(t,f,p,s,d,!0),f4(t.compilerOptions)&&i9e(t,u,t.compilerOptions.declarationMap?24:8))}}function Y7e(t,u){return t.semanticDiagnosticsFromOldState?(t.semanticDiagnosticsFromOldState.delete(u),t.semanticDiagnosticsPerFile.delete(u),!t.semanticDiagnosticsFromOldState.size):!0}function ytt(t,u){const s=H.checkDefined(t.oldSignatures).get(u)||void 0;return H.checkDefined(t.fileInfos.get(u)).signature!==s}function Q7e(t,u,s,d){var f;return(f=t.fileInfos.get(u))!=null&&f.affectsGlobalScope?(Gp.getAllFilesExcludingDefaultLibraryFile(t,t.program,void 0).forEach(p=>j1e(t,p.resolvedPath,s,d)),btt(t),!0):!1}function Ozt(t,u,s,d){var f;if(!t.exportedModulesMap||!t.changedFilesSet.has(u.resolvedPath)||!ytt(t,u.resolvedPath))return;if(mg(t.compilerOptions)){const E=new Map;E.set(u.resolvedPath,!0);const v=Gp.getReferencedByPaths(t,u.resolvedPath);for(;v.length>0;){const b=v.pop();if(!E.has(b)){if(E.set(b,!0),Q7e(t,b,s,d))return;if(j1e(t,b,s,d),ytt(t,b)){const B=H.checkDefined(t.program).getSourceFileByPath(b);v.push(...Gp.getReferencedByPaths(t,B.resolvedPath))}}}}const p=new Set;(f=t.exportedModulesMap.getKeys(u.resolvedPath))==null||f.forEach(E=>{if(Q7e(t,E,s,d))return!0;const v=t.referencedMap.getKeys(E);return v&&q_(v,b=>ktt(t,b,p,s,d))})}function ktt(t,u,s,d,f){var p,E;if(Bs(s,u)){if(Q7e(t,u,d,f))return!0;j1e(t,u,d,f),(p=t.exportedModulesMap.getKeys(u))==null||p.forEach(v=>ktt(t,v,s,d,f)),(E=t.referencedMap.getKeys(u))==null||E.forEach(v=>!s.has(v)&&j1e(t,v,d,f))}}function X7e(t,u,s){return mi(jzt(t,u,s),H.checkDefined(t.program).getProgramDiagnostics(u))}function jzt(t,u,s){const d=u.resolvedPath;if(t.semanticDiagnosticsPerFile){const p=t.semanticDiagnosticsPerFile.get(d);if(p)return TQ(p,t.compilerOptions)}const f=H.checkDefined(t.program).getBindAndCheckDiagnostics(u,s);return t.semanticDiagnosticsPerFile&&t.semanticDiagnosticsPerFile.set(d,f),TQ(f,t.compilerOptions)}function e9e(t){return!!F0(t.options||{})}function Vzt(t,u){var s,d,f;const p=H.checkDefined(t.program).getCurrentDirectory(),E=dr(qa(f5(t.compilerOptions),p)),v=t.latestChangedDtsFile?ae(t.latestChangedDtsFile):void 0,b=[],B=new Map,k=[];if(F0(t.compilerOptions)){const pe=Ea(t.fileInfos.entries(),([De,He])=>{const Je=ne(De);return Se(De,Je),He.impliedFormat?{version:He.version,impliedFormat:He.impliedFormat,signature:void 0,affectsGlobalScope:void 0}:He.version}),fe={fileNames:b,fileInfos:pe,root:k,options:Ne(t.compilerOptions),outSignature:t.outSignature,latestChangedDtsFile:v,pendingEmit:t.programEmitPending?t.programEmitPending===Ux(t.compilerOptions)?!1:t.programEmitPending:void 0},{js:xe,dts:Be,commonSourceDirectory:We,sourceFiles:Ae}=u;return t.bundle=u={commonSourceDirectory:We,sourceFiles:Ae,js:xe||(t.compilerOptions.emitDeclarationOnly||(s=t.bundle)==null?void 0:s.js),dts:Be||(f4(t.compilerOptions)?(d=t.bundle)==null?void 0:d.dts:void 0)},EH(fe,u)}let T,M,z;const j=Ea(t.fileInfos.entries(),([pe,fe])=>{var xe,Be;const We=ne(pe);Se(pe,We),H.assert(b[We-1]===Ce(pe));const Ae=(xe=t.oldSignatures)==null?void 0:xe.get(pe),De=Ae!==void 0?Ae||void 0:fe.signature;if(t.compilerOptions.composite){const He=t.program.getSourceFileByPath(pe);if(!J4(He)&&p7(He,t.program)){const Je=(Be=t.emitSignatures)==null?void 0:Be.get(pe);Je!==De&&(z||(z=[])).push(Je===void 0?We:[We,!Ua(Je)&&Je[0]===De?Dt:Je])}}return fe.version===De?fe.affectsGlobalScope||fe.impliedFormat?{version:fe.version,signature:void 0,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:fe.version:De!==void 0?Ae===void 0?fe:{version:fe.version,signature:De,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}:{version:fe.version,signature:!1,affectsGlobalScope:fe.affectsGlobalScope,impliedFormat:fe.impliedFormat}});let J;t.referencedMap&&(J=Ea(t.referencedMap.keys()).sort(fh).map(pe=>[ne(pe),ve(t.referencedMap.getValues(pe))]));let K;t.exportedModulesMap&&(K=qi(Ea(t.exportedModulesMap.keys()).sort(fh),pe=>{var fe;const xe=(fe=t.oldExportedModulesMap)==null?void 0:fe.get(pe);if(xe===void 0)return[ne(pe),ve(t.exportedModulesMap.getValues(pe))];if(xe)return[ne(pe),ve(xe)]}));let Y;if(t.semanticDiagnosticsPerFile)for(const pe of Ea(t.semanticDiagnosticsPerFile.keys()).sort(fh)){const fe=t.semanticDiagnosticsPerFile.get(pe);(Y||(Y=[])).push(fe.length?[ne(pe),Kzt(fe,Ce)]:ne(pe))}let oe;if((f=t.affectedFilesPendingEmit)!=null&&f.size){const pe=Ux(t.compilerOptions),fe=new Set;for(const xe of Ea(t.affectedFilesPendingEmit.keys()).sort(fh))if(Bs(fe,xe)){const Be=t.program.getSourceFileByPath(xe);if(!Be||!p7(Be,t.program))continue;const We=ne(xe),Ae=t.affectedFilesPendingEmit.get(xe);(oe||(oe=[])).push(Ae===pe?We:Ae===8?[We]:[We,Ae])}}let se;if(t.changedFilesSet.size)for(const pe of Ea(t.changedFilesSet.keys()).sort(fh))(se||(se=[])).push(ne(pe));const ge={fileNames:b,fileInfos:j,root:k,options:Ne(t.compilerOptions),fileIdsList:T,referencedMap:J,exportedModulesMap:K,semanticDiagnosticsPerFile:Y,affectedFilesPendingEmit:oe,changeFileSet:se,emitSignatures:z,latestChangedDtsFile:v};return EH(ge,u);function ae(pe){return Ce(qa(pe,p))}function Ce(pe){return f2($E(E,pe,t.program.getCanonicalFileName))}function ne(pe){let fe=B.get(pe);return fe===void 0&&(b.push(Ce(pe)),B.set(pe,fe=b.length)),fe}function ve(pe){const fe=Ea(pe.keys(),ne).sort(rl),xe=fe.join();let Be=M==null?void 0:M.get(xe);return Be===void 0&&((T||(T=[])).push(fe),(M||(M=new Map)).set(xe,Be=T.length)),Be}function Se(pe,fe){const xe=t.program.getSourceFile(pe);if(!t.program.getFileIncludeReasons().get(xe.path).some(De=>De.kind===0))return;if(!k.length)return k.push(fe);const Be=k[k.length-1],We=Wa(Be);if(We&&Be[1]===fe-1)return Be[1]=fe;if(We||k.length===1||Be!==fe-1)return k.push(fe);const Ae=k[k.length-2];return!UD(Ae)||Ae!==Be-1?k.push(fe):(k[k.length-2]=[Ae,fe],k.length=k.length-1)}function Ne(pe){let fe;const{optionsNameMap:xe}=jB();for(const Be of Ps(pe).sort(fh)){const We=xe.get(Be.toLowerCase());We!=null&&We.affectsBuildInfo&&((fe||(fe={}))[Be]=Hzt(We,pe[Be],ae))}return fe}}function Hzt(t,u,s){if(t){if(H.assert(t.type!=="listOrElement"),t.type==="list"){const d=u;if(t.element.isFilePath&&d.length)return d.map(s)}else if(t.isFilePath)return s(u)}return u}function Kzt(t,u){return H.assert(!!t.length),t.map(s=>{const d=Ftt(s,u);d.reportsUnnecessary=s.reportsUnnecessary,d.reportDeprecated=s.reportsDeprecated,d.source=s.source,d.skippedOn=s.skippedOn;const{relatedInformation:f}=s;return d.relatedInformation=f?f.length?f.map(p=>Ftt(p,u)):[]:void 0,d})}function Ftt(t,u){const{file:s}=t;return{...t,file:s?u(s.resolvedPath):void 0,messageText:Ua(t.messageText)?t.messageText:t9e(t.messageText)}}function t9e(t){if(t.repopulateInfo)return{info:t.repopulateInfo(),next:Att(t.next)};const u=Att(t.next);return u===t.next?t:{...t,next:u}}function Att(t){return t&&(L(t,(u,s)=>{const d=t9e(u);if(u===d)return;const f=s>0?t.slice(0,s-1):[];f.push(d);for(let p=s+1;p`${b(B)}${CO[B.category]}${B.code}: ${v(B.messageText)}`).join(` +`)),(d.createHash??SN)(s);function v(B){return Ua(B)?B:B===void 0?"":B.next?B.messageText+B.next.map(v).join(` +`):B.messageText}function b(B){return B.file.resolvedPath===u.resolvedPath?`(${B.start},${B.length})`:(E===void 0&&(E=dr(u.resolvedPath)),`${f2($E(E,B.file.resolvedPath,t.getCanonicalFileName))}(${B.start},${B.length})`)}}function Nk(t,u,s){return(u.createHash??SN)(Stt(t,s))}function H1e(t,{newProgram:u,host:s,oldProgram:d,configFileParsingDiagnostics:f}){let p=d&&d.getState();if(p&&u===p.program&&f===u.getConfigFileParsingDiagnostics())return u=void 0,p=void 0,d;const E=wzt(u,p);u.getBuildInfo=J=>Vzt(E,J),u=void 0,d=void 0,p=void 0;const v=()=>E,b=W1e(v,f);return b.getState=v,b.saveEmitState=()=>Pzt(E),b.restoreEmitState=J=>Mzt(E,J),b.hasChangedEmitSignature=()=>!!E.hasChangedEmitSignature,b.getAllDependencies=J=>Gp.getAllDependencies(E,H.checkDefined(E.program),J),b.getSemanticDiagnostics=j,b.emit=M,b.releaseProgram=()=>Nzt(E),t===0?b.getSemanticDiagnosticsOfNextAffectedFile=z:t===1?(b.getSemanticDiagnosticsOfNextAffectedFile=z,b.emitNextAffectedFile=k,b.emitBuildInfo=B):fo(),b;function B(J,K){if(E.buildInfoEmitPending){const Y=H.checkDefined(E.program).emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,Y}return zQ}function k(J,K,Y,oe){var se,ge,ae;let Ce=Ctt(E,K,s);const ne=Ux(E.compilerOptions);let ve=Y?ne&24:ne;if(!Ce)if(F0(E.compilerOptions)){if(!E.programEmitPending||(ve=E.programEmitPending,Y&&(ve=ve&24),!ve))return;Ce=E.program}else{const pe=Izt(E,Y);if(!pe){if(!E.buildInfoEmitPending)return;const fe=E.program,xe=fe.emitBuildInfo(J||Lo(s,s.writeFile),K);return E.buildInfoEmitPending=!1,{result:xe,affected:fe}}({affectedFile:Ce,emitKind:ve}=pe)}let Se;ve&7&&(Se=0),ve&24&&(Se=Se===void 0?1:void 0),Ce===E.program&&(E.programEmitPending=E.changedFilesSet.size?XB(ne,ve):E.programEmitPending?XB(E.programEmitPending,ve):void 0);const Ne=E.program.emit(Ce===E.program?void 0:Ce,T(J,oe),K,Se,oe);if(Ce!==E.program){const pe=Ce;E.seenAffectedFiles.add(pe.resolvedPath),E.affectedFilesIndex!==void 0&&E.affectedFilesIndex++,E.buildInfoEmitPending=!0;const fe=((se=E.seenEmittedFiles)==null?void 0:se.get(pe.resolvedPath))||0;(E.seenEmittedFiles??(E.seenEmittedFiles=new Map)).set(pe.resolvedPath,ve|fe);const xe=((ge=E.affectedFilesPendingEmit)==null?void 0:ge.get(pe.resolvedPath))||ne,Be=XB(xe,ve|fe);Be?(E.affectedFilesPendingEmit??(E.affectedFilesPendingEmit=new Map)).set(pe.resolvedPath,Be):(ae=E.affectedFilesPendingEmit)==null||ae.delete(pe.resolvedPath)}else E.changedFilesSet.clear();return{result:Ne,affected:Ce}}function T(J,K){return f4(E.compilerOptions)?(Y,oe,se,ge,ae,Ce)=>{var ne,ve,Se,Ne;if(t1(Y))if(F0(E.compilerOptions)){if(E.compilerOptions.composite){const fe=pe(E.outSignature,void 0);if(!fe)return;E.outSignature=fe}}else{H.assert((ae==null?void 0:ae.length)===1);let fe;if(!K){const xe=ae[0],Be=E.fileInfos.get(xe.resolvedPath);if(Be.signature===xe.version){const We=V1e(E.program,xe,oe,s,Ce);(ne=Ce==null?void 0:Ce.diagnostics)!=null&&ne.length||(fe=We),We!==xe.version&&(s.storeFilesChangingSignatureDuringEmit&&(E.filesChangingSignature??(E.filesChangingSignature=new Set)).add(xe.resolvedPath),E.exportedModulesMap&&Gp.updateExportedModules(E,xe,xe.exportedModulesFromDeclarationEmit),E.affectedFiles?(((ve=E.oldSignatures)==null?void 0:ve.get(xe.resolvedPath))===void 0&&(E.oldSignatures??(E.oldSignatures=new Map)).set(xe.resolvedPath,Be.signature||!1),Be.signature=We):(Be.signature=We,(Se=E.oldExportedModulesMap)==null||Se.clear()))}}if(E.compilerOptions.composite){const xe=ae[0].resolvedPath;if(fe=pe((Ne=E.emitSignatures)==null?void 0:Ne.get(xe),fe),!fe)return;(E.emitSignatures??(E.emitSignatures=new Map)).set(xe,fe)}}J?J(Y,oe,se,ge,ae,Ce):s.writeFile?s.writeFile(Y,oe,se,ge,ae,Ce):E.program.writeFile(Y,oe,se,ge,ae,Ce);function pe(fe,xe){const Be=!fe||Ua(fe)?fe:fe[0];if(xe??(xe=Nk(oe,s,Ce)),xe===Be){if(fe===Be)return;Ce?Ce.differsOnlyInMap=!0:Ce={differsOnlyInMap:!0}}else E.hasChangedEmitSignature=!0,E.latestChangedDtsFile=Y;return xe}}:J||Lo(s,s.writeFile)}function M(J,K,Y,oe,se){t===1&&vtt(E,J);const ge=P1e(b,J,K,Y);if(ge)return ge;if(!J)if(t===1){let ae=[],Ce=!1,ne,ve=[],Se;for(;Se=k(K,Y,oe,se);)Ce=Ce||Se.result.emitSkipped,ne=yn(ne,Se.result.diagnostics),ve=yn(ve,Se.result.emittedFiles),ae=yn(ae,Se.result.sourceMaps);return{emitSkipped:Ce,diagnostics:ne||Dt,emittedFiles:ve,sourceMaps:ae}}else zzt(E,oe);return H.checkDefined(E.program).emit(J,T(K,se),Y,oe,se)}function z(J,K){for(;;){const Y=Ctt(E,J,s);let oe;if(Y)if(Y!==E.program){const se=Y;if((!K||!K(se))&&(oe=X7e(E,se,J)),E.seenAffectedFiles.add(se.resolvedPath),E.affectedFilesIndex++,E.buildInfoEmitPending=!0,!oe)continue}else oe=E.program.getSemanticDiagnostics(void 0,J),E.changedFilesSet.clear(),E.programEmitPending=Ux(E.compilerOptions);else return;return{result:oe,affected:Y}}}function j(J,K){vtt(E,J);const Y=H.checkDefined(E.program).getCompilerOptions();if(F0(Y))return H.assert(!E.semanticDiagnosticsPerFile),H.checkDefined(E.program).getSemanticDiagnostics(J,K);if(J)return X7e(E,J,K);for(;z(K););let oe;for(const se of H.checkDefined(E.program).getSourceFiles())oe=yn(oe,X7e(E,se,K));return oe||Dt}}function i9e(t,u,s){var d;const f=((d=t.affectedFilesPendingEmit)==null?void 0:d.get(u))||0;(t.affectedFilesPendingEmit??(t.affectedFilesPendingEmit=new Map)).set(u,f|s)}function n9e(t){return Ua(t)?{version:t,signature:t,affectsGlobalScope:void 0,impliedFormat:void 0}:Ua(t.signature)?t:{version:t.version,signature:t.signature===!1?void 0:t.version,affectsGlobalScope:t.affectsGlobalScope,impliedFormat:t.impliedFormat}}function u9e(t,u){return UD(t)?u:t[1]||8}function r9e(t,u){return t||Ux(u||{})}function a9e(t,u,s){var d,f,p,E;const v=t.program,b=dr(qa(u,s.getCurrentDirectory())),B=N1(s.useCaseSensitiveFileNames());let k;const T=(d=v.fileNames)==null?void 0:d.map(j);let M;const z=v.latestChangedDtsFile?J(v.latestChangedDtsFile):void 0;if(e9e(v)){const se=new Map;v.fileInfos.forEach((ge,ae)=>{const Ce=K(ae+1);se.set(Ce,Ua(ge)?{version:ge,signature:void 0,affectsGlobalScope:void 0,impliedFormat:void 0}:ge)}),k={fileInfos:se,compilerOptions:v.options?lde(v.options,J):{},latestChangedDtsFile:z,outSignature:v.outSignature,programEmitPending:v.pendingEmit===void 0?void 0:r9e(v.pendingEmit,v.options),bundle:t.bundle}}else{M=(f=v.fileIdsList)==null?void 0:f.map(Ce=>new Set(Ce.map(K)));const se=new Map,ge=(p=v.options)!=null&&p.composite&&!F0(v.options)?new Map:void 0;v.fileInfos.forEach((Ce,ne)=>{const ve=K(ne+1),Se=n9e(Ce);se.set(ve,Se),ge&&Se.signature&&ge.set(ve,Se.signature)}),(E=v.emitSignatures)==null||E.forEach(Ce=>{if(UD(Ce))ge.delete(K(Ce));else{const ne=K(Ce[0]);ge.set(ne,!Ua(Ce[1])&&!Ce[1].length?[ge.get(ne)]:Ce[1])}});const ae=v.affectedFilesPendingEmit?Ux(v.options||{}):void 0;k={fileInfos:se,compilerOptions:v.options?lde(v.options,J):{},referencedMap:oe(v.referencedMap),exportedModulesMap:oe(v.exportedModulesMap),semanticDiagnosticsPerFile:v.semanticDiagnosticsPerFile&&lg(v.semanticDiagnosticsPerFile,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>UD(Ce)?Dt:Ce[1]),hasReusableDiagnostic:!0,affectedFilesPendingEmit:v.affectedFilesPendingEmit&&lg(v.affectedFilesPendingEmit,Ce=>K(UD(Ce)?Ce:Ce[0]),Ce=>u9e(Ce,ae)),changedFilesSet:new Set(Vt(v.changeFileSet,K)),latestChangedDtsFile:z,emitSignatures:ge!=null&&ge.size?ge:void 0}}return{getState:()=>k,saveEmitState:Rs,restoreEmitState:Rs,getProgram:fo,getProgramOrUndefined:fv,releaseProgram:Rs,getCompilerOptions:()=>k.compilerOptions,getSourceFile:fo,getSourceFiles:fo,getOptionsDiagnostics:fo,getGlobalDiagnostics:fo,getConfigFileParsingDiagnostics:fo,getSyntacticDiagnostics:fo,getDeclarationDiagnostics:fo,getSemanticDiagnostics:fo,emit:fo,getAllDependencies:fo,getCurrentDirectory:fo,emitNextAffectedFile:fo,getSemanticDiagnosticsOfNextAffectedFile:fo,emitBuildInfo:fo,close:Rs,hasChangedEmitSignature:cg};function j(se){return $0(se,b,B)}function J(se){return qa(se,b)}function K(se){return T[se-1]}function Y(se){return M[se-1]}function oe(se){if(!se)return;const ge=Gp.createManyToManyPathMap();return se.forEach(([ae,Ce])=>ge.set(K(ae),Y(Ce))),ge}}function K1e(t,u,s){const d=dr(qa(u,s.getCurrentDirectory())),f=N1(s.useCaseSensitiveFileNames()),p=new Map;let E=0;const v=[];return t.fileInfos.forEach((b,B)=>{const k=$0(t.fileNames[B],d,f),T=Ua(b)?b:b.version;if(p.set(k,T),Et().program,releaseProgram:()=>t().program=void 0,getCompilerOptions:()=>t().compilerOptions,getSourceFile:d=>s().getSourceFile(d),getSourceFiles:()=>s().getSourceFiles(),getOptionsDiagnostics:d=>s().getOptionsDiagnostics(d),getGlobalDiagnostics:d=>s().getGlobalDiagnostics(d),getConfigFileParsingDiagnostics:()=>u,getSyntacticDiagnostics:(d,f)=>s().getSyntacticDiagnostics(d,f),getDeclarationDiagnostics:(d,f)=>s().getDeclarationDiagnostics(d,f),getSemanticDiagnostics:(d,f)=>s().getSemanticDiagnostics(d,f),emit:(d,f,p,E,v)=>s().emit(d,f,p,E,v),emitBuildInfo:(d,f)=>s().emitBuildInfo(d,f),getAllDependencies:fo,getCurrentDirectory:()=>s().getCurrentDirectory(),close:Rs};function s(){return H.checkDefined(t().program)}}var G1e,J1e,Wzt=o({"src/compiler/builder.ts"(){Bo(),G1e=(t=>(t[t.None=0]="None",t[t.Js=1]="Js",t[t.JsMap=2]="JsMap",t[t.JsInlineMap=4]="JsInlineMap",t[t.Dts=8]="Dts",t[t.DtsMap=16]="DtsMap",t[t.AllJs=7]="AllJs",t[t.AllDts=24]="AllDts",t[t.All=31]="All",t))(G1e||{}),J1e=(t=>(t[t.SemanticDiagnosticsBuilderProgram=0]="SemanticDiagnosticsBuilderProgram",t[t.EmitAndSemanticDiagnosticsBuilderProgram=1]="EmitAndSemanticDiagnosticsBuilderProgram",t))(J1e||{})}});function Btt(t,u,s,d,f,p){return H1e(0,IQ(t,u,s,d,f,p))}function $1e(t,u,s,d,f,p){return H1e(1,IQ(t,u,s,d,f,p))}function wtt(t,u,s,d,f,p){const{newProgram:E,configFileParsingDiagnostics:v}=IQ(t,u,s,d,f,p);return W1e(()=>({program:E,compilerOptions:E.getCompilerOptions()}),v)}var Gzt=o({"src/compiler/builderPublic.ts"(){Bo()}});function RQ(t){return lc(t,"/node_modules/.staging")?D8(t,"/.staging"):Ge(FO,u=>t.includes(u))?void 0:t}function o9e(t,u){if(u<=1)return 1;let s=1,d=t[0].search(/[a-zA-Z]:/)===0;if(t[0]!==ol&&!d&&t[1].search(/[a-zA-Z]\$$/)===0){if(u===2)return 2;s=2,d=!0}return d&&!t[s].match(/^users$/i)?s:t[s].match(/^workspaces$/i)?s+1:s+2}function OQ(t,u){if(u===void 0&&(u=t.length),u<=2)return!1;const s=o9e(t,u);return u>s+1}function s9e(t){return Ltt(dr(t))}function Ttt(t,u){if(u.lengthf.length+1?c9e(v,E,Math.max(f.length+1,b+1)):{dir:s,dirPath:d,nonRecursive:!0}:Ntt(v,E,E.length-1,b,B,f)}function Ntt(t,u,s,d,f,p){if(f!==-1)return c9e(t,u,f+1);let E=!0,v=s;for(let b=0;bJzt(d,f,p,t,s,u,E)}}function Jzt(t,u,s,d,f,p,E){const v=jQ(t),b=WB(s,d,f,v,u,p,E);if(!t.getGlobalCache)return b;const B=t.getGlobalCache();if(B!==void 0&&!Id(s)&&!(b.resolvedModule&&hZ(b.resolvedModule.extension))){const{resolvedModule:k,failedLookupLocations:T,affectingLocations:M,resolutionDiagnostics:z}=TAe(H.checkDefined(t.globalCacheResolutionModuleName)(s),t.projectName,f,v,B,u);if(k)return b.resolvedModule=k,b.failedLookupLocations=HB(b.failedLookupLocations,T),b.affectingLocations=HB(b.affectingLocations,M),b.resolutionDiagnostics=HB(b.resolutionDiagnostics,z),b}return b}function q1e(t,u,s){let d,f,p;const E=Tm(),v=new Set,b=new Set,B=new Map,k=new Map;let T=!1,M,z,j,J,K,Y=!1;const oe=zh(()=>t.getCurrentDirectory()),se=t.getCachedDirectoryStructureHost(),ge=new Map,ae=KB(oe(),t.getCanonicalFileName,t.getCompilationSettings()),Ce=new Map,ne=WY(oe(),t.getCanonicalFileName,t.getCompilationSettings(),ae.getPackageJsonInfoCache(),ae.optionsToRedirectsKey),ve=new Map,Se=KB(oe(),t.getCanonicalFileName,kde(t.getCompilationSettings()),ae.getPackageJsonInfoCache()),Ne=new Map,pe=new Map,fe=h9e(u,oe),xe=t.toPath(fe),Be=yd(xe),We=new Map;return{rootDirForResolution:u,resolvedModuleNames:ge,resolvedTypeReferenceDirectives:Ce,resolvedLibraries:ve,resolvedFileToResolution:B,resolutionsWithFailedLookups:v,resolutionsWithOnlyAffectingLocations:b,directoryWatchesOfFailedLookups:Ne,fileWatchesOfAffectingLocations:pe,watchFailedLookupLocationsOfExternalModuleResolutions:xn,getModuleResolutionCache:()=>ae,startRecordingFilesWithChangedResolutions:mt,finishRecordingFilesWithChangedResolutions:Ye,startCachingPerDirectoryResolution:Gt,finishCachingPerDirectoryResolution:Ie,resolveModuleNameLiterals:ft,resolveTypeReferenceDirectiveReferences:ei,resolveLibrary:Ut,resolveSingleModuleNameWithoutWatching:Ni,removeResolutionsFromProjectReferenceRedirects:Dn,removeResolutionsOfFile:Cn,hasChangedAutomaticTypeDirectiveNames:()=>T,invalidateResolutionOfFile:sa,invalidateResolutionsOfFailedLookupLocations:Qo,setFilesWithInvalidatedNonRelativeUnresolvedImports:xa,createHasInvalidatedResolutions:Ke,isFileWithInvalidatedNonRelativeUnresolvedImports:je,updateTypeRootsWatch:Xt,closeTypeRootsWatch:Mt,clear:He,onChangesAffectModuleResolution:Je};function Ae(et){return et.resolvedModule}function De(et){return et.resolvedTypeReferenceDirective}function He(){rf(Ne,Vm),rf(pe,Vm),E.clear(),Mt(),ge.clear(),Ce.clear(),B.clear(),v.clear(),b.clear(),j=void 0,J=void 0,K=void 0,z=void 0,M=void 0,Y=!1,ae.clear(),ne.clear(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings()),Se.clear(),k.clear(),ve.clear(),T=!1}function Je(){Y=!0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),ae.update(t.getCompilationSettings()),ne.update(t.getCompilationSettings())}function mt(){d=[]}function Ye(){const et=d;return d=void 0,et}function je(et){if(!p)return!1;const Et=p.get(et);return!!Et&&!!Et.length}function Ke(et,Et){Qo();const ii=f;return f=void 0,{hasInvalidatedResolutions:me=>et(me)||Y||!!(ii!=null&&ii.has(me))||je(me),hasInvalidatedLibResolutions:me=>{var ni;return Et(me)||!!((ni=ve==null?void 0:ve.get(me))!=null&&ni.isInvalidated)}}}function Gt(){ae.isReadonly=void 0,ne.isReadonly=void 0,Se.isReadonly=void 0,ae.getPackageJsonInfoCache().isReadonly=void 0,ae.clearAllExceptPackageJsonInfoCache(),ne.clearAllExceptPackageJsonInfoCache(),Se.clearAllExceptPackageJsonInfoCache(),E.forEach(oa),E.clear()}function Yt(et){ve.forEach((Et,ii)=>{var me;(me=et==null?void 0:et.resolvedLibReferences)!=null&&me.has(ii)||(bt(Et,t.toPath(BQ(t.getCompilationSettings(),oe(),ii)),Ae),ve.delete(ii))})}function Ie(et,Et){p=void 0,Y=!1,E.forEach(oa),E.clear(),et!==Et&&(Yt(et),et==null||et.getSourceFiles().forEach(ii=>{var me;const ni=cm(ii)?((me=ii.packageJsonLocations)==null?void 0:me.length)??0:0,xi=k.get(ii.path)??Dt;for(let pt=xi.length;ptni)for(let pt=ni;pt{et!=null&&et.getSourceFileByPath(me)||(ii.forEach(ni=>pe.get(ni).files--),k.delete(me))})),Ne.forEach(st),pe.forEach(Bt),T=!1,ae.isReadonly=!0,ne.isReadonly=!0,Se.isReadonly=!0,ae.getPackageJsonInfoCache().isReadonly=!0}function st(et,Et){et.refCount===0&&(Ne.delete(Et),et.watcher.close())}function Bt(et,Et){var ii;et.files===0&&et.resolutions===0&&!((ii=et.symlinks)!=null&&ii.size)&&(pe.delete(Et),et.watcher.close())}function It({entries:et,containingFile:Et,containingSourceFile:ii,redirectedReference:me,options:ni,perFileCache:xi,reusedNames:pt,loader:Ot,getResolutionWithResolvedFileName:Ei,deferWatchingNonRelativeResolution:$i,shouldRetryResolution:Qi,logChanges:on}){const le=t.toPath(Et),te=xi.get(le)||xi.set(le,U7()).get(le),we=[],de=on&&je(le),Oe=t.getCurrentProgram(),X=Oe&&Oe.getResolvedProjectReferenceToRedirect(Et),it=X?!me||me.sourceFile.path!==X.sourceFile.path:!!me,Ct=U7();for(const Qt of et){const Ti=Ot.nameAndMode.getName(Qt),Ui=Ot.nameAndMode.getMode(Qt,ii);let Sn=te.get(Ti,Ui);if(!Ct.has(Ti,Ui)&&(Y||it||!Sn||Sn.isInvalidated||de&&!Id(Ti)&&Qi(Sn))){const du=Sn;Sn=Ot.resolve(Ti,Ui),t.onDiscoveredSymlink&&$zt(Sn)&&t.onDiscoveredSymlink(),te.set(Ti,Ui,Sn),Sn!==du&&(xn(Ti,Sn,le,Ei,$i),du&&bt(du,le,Ei)),on&&d&&!ct(du,Sn)&&(d.push(le),on=!1)}else{const du=jQ(t);if(aD(ni,du)&&!Ct.has(Ti,Ui)){const Ou=Ei(Sn);Ba(du,xi===ge?Ou!=null&&Ou.resolvedFileName?Ou.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved:Ou!=null&&Ou.resolvedFileName?Ou.packageId?F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved,Ti,Et,Ou==null?void 0:Ou.resolvedFileName,(Ou==null?void 0:Ou.packageId)&&Px(Ou.packageId))}}H.assert(Sn!==void 0&&!Sn.isInvalidated),Ct.set(Ti,Ui,!0),we.push(Sn)}return pt==null||pt.forEach(Qt=>Ct.set(Ot.nameAndMode.getName(Qt),Ot.nameAndMode.getMode(Qt,ii),!0)),te.size()!==Ct.size()&&te.forEach((Qt,Ti,Ui)=>{Ct.has(Ti,Ui)||(bt(Qt,le,Ei),te.delete(Ti,Ui))}),we;function ct(Qt,Ti){if(Qt===Ti)return!0;if(!Qt||!Ti)return!1;const Ui=Ei(Qt),Sn=Ei(Ti);return Ui===Sn?!0:!Ui||!Sn?!1:Ui.resolvedFileName===Sn.resolvedFileName}}function ei(et,Et,ii,me,ni,xi){return It({entries:et,containingFile:Et,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:xi,perFileCache:Ce,loader:AQ(Et,ii,me,jQ(t),ne),getResolutionWithResolvedFileName:De,shouldRetryResolution:pt=>pt.resolvedTypeReferenceDirective===void 0,deferWatchingNonRelativeResolution:!1})}function ft(et,Et,ii,me,ni,xi){return It({entries:et,containingFile:Et,containingSourceFile:ni,redirectedReference:ii,options:me,reusedNames:xi,perFileCache:ge,loader:f9e(Et,ii,me,t,ae),getResolutionWithResolvedFileName:Ae,shouldRetryResolution:pt=>!pt.resolvedModule||!AP(pt.resolvedModule.extension),logChanges:s,deferWatchingNonRelativeResolution:!0})}function Ut(et,Et,ii,me){const ni=jQ(t);let xi=ve==null?void 0:ve.get(me);if(!xi||xi.isInvalidated){const pt=xi;xi=GY(et,Et,ii,ni,Se);const Ot=t.toPath(Et);xn(et,xi,Ot,Ae,!1),ve.set(me,xi),pt&&bt(pt,Ot,Ae)}else if(aD(ii,ni)){const pt=Ae(xi);Ba(ni,pt!=null&&pt.resolvedFileName?pt.packageId?F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2:F.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved,et,Et,pt==null?void 0:pt.resolvedFileName,(pt==null?void 0:pt.packageId)&&Px(pt.packageId))}return xi}function Ni(et,Et){var ii,me;const ni=t.toPath(Et),xi=ge.get(ni),pt=xi==null?void 0:xi.get(et,void 0);if(pt&&!pt.isInvalidated)return pt;const Ot=(ii=t.beforeResolveSingleModuleNameWithoutWatching)==null?void 0:ii.call(t,ae),Ei=jQ(t),$i=WB(et,Et,t.getCompilationSettings(),Ei,ae);return(me=t.afterResolveSingleModuleNameWithoutWatching)==null||me.call(t,ae,et,Et,$i,Ot),$i}function Vi(et){return lc(et,"/node_modules/@types")}function xn(et,Et,ii,me,ni){var xi;if(Et.refCount)Et.refCount++,H.assertIsDefined(Et.files);else{Et.refCount=1,H.assert(!((xi=Et.files)!=null&&xi.size)),!ni||Id(et)?an(Et):E.add(et,Et);const pt=me(Et);if(pt&&pt.resolvedFileName){const Ot=t.toPath(pt.resolvedFileName);let Ei=B.get(Ot);Ei||B.set(Ot,Ei=new Set),Ei.add(Et)}}(Et.files??(Et.files=new Set)).add(ii)}function Jn(et,Et){const ii=t.toPath(et),me=U1e(et,ii,fe,xe,Be,oe);if(me){const{dir:ni,dirPath:xi,nonRecursive:pt}=me;xi===xe?(H.assert(pt),Et=!0):Fr(ni,xi,pt)}return Et}function an(et){H.assert(!!et.refCount);const{failedLookupLocations:Et,affectingLocations:ii,node10Result:me}=et;if(!(Et!=null&&Et.length)&&!(ii!=null&&ii.length)&&!me)return;(Et!=null&&Et.length||me)&&v.add(et);let ni=!1;if(Et)for(const xi of Et)ni=Jn(xi,ni);me&&(ni=Jn(me,ni)),ni&&Fr(fe,xe,!0),Pi(et,!(Et!=null&&Et.length)&&!me)}function Pi(et,Et){H.assert(!!et.refCount);const{affectingLocations:ii}=et;if(ii!=null&&ii.length){Et&&b.add(et);for(const me of ii)Fi(me,!0)}}function Fi(et,Et){const ii=pe.get(et);if(ii){Et?ii.resolutions++:ii.files++;return}let me=et,ni=!1,xi;t.realpath&&(me=t.realpath(et),et!==me&&(ni=!0,xi=pe.get(me)));const pt=Et?1:0,Ot=Et?0:1;if(!ni||!xi){const Ei={watcher:l9e(t.toPath(me))?t.watchAffectingFileLocation(me,($i,Qi)=>{se==null||se.addOrDeleteFile($i,t.toPath(me),Qi),Yu(me,ae.getPackageJsonInfoCache().getInternalMap()),t.scheduleInvalidateResolutionsOfFailedLookupLocations()}):tw,resolutions:ni?0:pt,files:ni?0:Ot,symlinks:void 0};pe.set(me,Ei),ni&&(xi=Ei)}if(ni){H.assert(!!xi);const Ei={watcher:{close:()=>{var $i;const Qi=pe.get(me);($i=Qi==null?void 0:Qi.symlinks)!=null&&$i.delete(et)&&!Qi.symlinks.size&&!Qi.resolutions&&!Qi.files&&(pe.delete(me),Qi.watcher.close())}},resolutions:pt,files:Ot,symlinks:void 0};pe.set(et,Ei),(xi.symlinks??(xi.symlinks=new Set)).add(et)}}function Yu(et,Et){var ii;const me=pe.get(et);me!=null&&me.resolutions&&(z??(z=new Set)).add(et),me!=null&&me.files&&(M??(M=new Set)).add(et),(ii=me==null?void 0:me.symlinks)==null||ii.forEach(ni=>Yu(ni,Et)),Et==null||Et.delete(t.toPath(et))}function oa(et,Et){const ii=t.getCurrentProgram();!ii||!ii.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(Et)?et.forEach(an):et.forEach(me=>Pi(me,!0))}function Fr(et,Et,ii){const me=Ne.get(Et);me?(H.assert(!!ii==!!me.nonRecursive),me.refCount++):Ne.set(Et,{watcher:Ln(et,Et,ii),refCount:1,nonRecursive:ii})}function wa(et,Et,ii){const me=t.toPath(et),ni=U1e(et,me,fe,xe,Be,oe);if(ni){const{dirPath:xi}=ni;xi===xe?Et=!0:jn(xi,ii)}return Et}function bt(et,Et,ii,me){if(H.checkDefined(et.files).delete(Et),et.refCount--,et.refCount)return;const ni=ii(et);if(ni&&ni.resolvedFileName){const Ei=t.toPath(ni.resolvedFileName),$i=B.get(Ei);$i!=null&&$i.delete(et)&&!$i.size&&B.delete(Ei)}const{failedLookupLocations:xi,affectingLocations:pt,node10Result:Ot}=et;if(v.delete(et)){let Ei=!1;if(xi)for(const $i of xi)Ei=wa($i,Ei,me);Ot&&(Ei=wa(Ot,Ei,me)),Ei&&jn(xe,me)}else pt!=null&&pt.length&&b.delete(et);if(pt)for(const Ei of pt){const $i=pe.get(Ei);$i.resolutions--,me&&Bt($i,Ei)}}function jn(et,Et){const ii=Ne.get(et);ii.refCount--,Et&&st(ii,et)}function Ln(et,Et,ii){return t.watchDirectoryOfFailedLookupLocation(et,me=>{const ni=t.toPath(me);se&&se.addOrDeleteFileOrDirectory(me,ni),aa(ni,Et===ni)},ii?0:1)}function Ai(et,Et,ii,me){const ni=et.get(Et);ni&&(ni.forEach(xi=>bt(xi,Et,ii,me)),et.delete(Et))}function Dn(et){if(!Ml(et,".json"))return;const Et=t.getCurrentProgram();if(!Et)return;const ii=Et.getResolvedProjectReferenceByPath(et);ii&&ii.commandLine.fileNames.forEach(me=>Cn(t.toPath(me)))}function Cn(et,Et){Ai(ge,et,Ae,Et),Ai(Ce,et,De,Et)}function tu(et,Et){if(!et)return!1;let ii=!1;return et.forEach(me=>{if(!(me.isInvalidated||!Et(me))){me.isInvalidated=ii=!0;for(const ni of H.checkDefined(me.files))(f??(f=new Set)).add(ni),T=T||lc(ni,QB)}}),ii}function sa(et){Cn(et);const Et=T;tu(B.get(et),J3)&&T&&!Et&&t.onChangedAutomaticTypeDirectiveNames()}function xa(et){H.assert(p===et||p===void 0),p=et}function aa(et,Et){if(Et)(K||(K=new Set)).add(et);else{const ii=RQ(et);if(!ii||(et=ii,t.fileIsOpen(et)))return!1;const me=dr(et);if(Vi(et)||kU(et)||Vi(me)||kU(me))(j||(j=new Set)).add(et),(J||(J=new Set)).add(et);else{if(R7e(t.getCurrentProgram(),et)||Ml(et,".map"))return!1;(j||(j=new Set)).add(et);const ni=rH(et,!0);ni&&(J||(J=new Set)).add(ni)}}t.scheduleInvalidateResolutionsOfFailedLookupLocations()}function Ta(){const et=ae.getPackageJsonInfoCache().getInternalMap();et&&(j||J||K)&&et.forEach((Et,ii)=>Qe(ii)?et.delete(ii):void 0)}function Qo(){var et;if(Y)return M=void 0,Ta(),(j||J||K||z)&&tu(ve,bo),j=void 0,J=void 0,K=void 0,z=void 0,!0;let Et=!1;return M&&((et=t.getCurrentProgram())==null||et.getSourceFiles().forEach(ii=>{Ge(ii.packageJsonLocations,me=>M.has(me))&&((f??(f=new Set)).add(ii.path),Et=!0)}),M=void 0),!j&&!J&&!K&&!z||(Et=tu(v,bo)||Et,Ta(),j=void 0,J=void 0,K=void 0,Et=tu(b,_t)||Et,z=void 0),Et}function bo(et){var Et;return _t(et)?!0:!j&&!J&&!K?!1:((Et=et.failedLookupLocations)==null?void 0:Et.some(ii=>Qe(t.toPath(ii))))||!!et.node10Result&&Qe(t.toPath(et.node10Result))}function Qe(et){return(j==null?void 0:j.has(et))||ie((J==null?void 0:J.keys())||[],Et=>Ma(et,Et)?!0:void 0)||ie((K==null?void 0:K.keys())||[],Et=>et.length>Et.length&&Ma(et,Et)&&(Fse(Et)||et[Et.length]===ol)?!0:void 0)}function _t(et){var Et;return!!z&&((Et=et.affectingLocations)==null?void 0:Et.some(ii=>z.has(ii)))}function Mt(){rf(We,fg)}function qt(et,Et){return Pe(et)?t.watchTypeRootsDirectory(Et,ii=>{const me=t.toPath(ii);se&&se.addOrDeleteFileOrDirectory(ii,me),T=!0,t.onChangedAutomaticTypeDirectiveNames();const ni=d9e(Et,et,xe,Be,oe,xi=>Ne.has(xi));ni&&aa(me,ni===me)},1):tw}function Xt(){const et=t.getCompilationSettings();if(et.types){Mt();return}const Et=dM(et,{getCurrentDirectory:oe});Et?cB(We,lg(Et,ii=>t.toPath(ii)),{createNewValue:qt,onDeleteValue:fg}):Mt()}function Pe(et){return t.getCompilationSettings().typeRoots?!0:s9e(t.toPath(et))}}function $zt(t){var u,s;return!!((u=t.resolvedModule)!=null&&u.originalPath||(s=t.resolvedTypeReferenceDirective)!=null&&s.originalPath)}var Uzt=o({"src/compiler/resolutionCache.ts"(){Bo()}});function FH(t,u){const s=t===d1&&x9e?x9e:{getCurrentDirectory:()=>t.getCurrentDirectory(),getNewLine:()=>t.newLine,getCanonicalFileName:N1(t.useCaseSensitiveFileNames)};if(!u)return f=>t.write(k1e(f,s));const d=new Array(1);return f=>{d[0]=f,t.write(H7e(d,s)+s.getNewLine()),d[0]=void 0}}function Mtt(t,u,s){return t.clearScreen&&!s.preserveWatchOutput&&!s.extendedDiagnostics&&!s.diagnostics&&kt(JQ,u.code)?(t.clearScreen(),!0):!1}function qzt(t,u){return kt(JQ,t.code)?u+u:u}function AH(t){return t.now?t.now().toLocaleTimeString("en-US",{timeZone:"UTC"}).replace(" "," "):new Date().toLocaleTimeString()}function m9e(t,u){return u?(s,d,f)=>{Mtt(t,s,f);let p=`[${tb(AH(t),"\x1B[90m")}] `;p+=`${cE(s.messageText,t.newLine)}${d+d}`,t.write(p)}:(s,d,f)=>{let p="";Mtt(t,s,f)||(p+=d),p+=`${AH(t)} - `,p+=`${cE(s.messageText,t.newLine)}${qzt(s,d)}`,t.write(p)}}function ztt(t,u,s,d,f,p){const E=f;E.onUnRecoverableConfigFileDiagnostic=b=>Ott(f,p,b);const v=JV(t,u,E,s,d);return E.onUnRecoverableConfigFileDiagnostic=void 0,v}function VQ(t){return ui(t,u=>u.category===1)}function HQ(t){return ti(t,s=>s.category===1).map(s=>{if(s.file!==void 0)return`${s.file.fileName}`}).map(s=>{if(s===void 0)return;const d=Le(t,f=>f.file!==void 0&&f.file.fileName===s);if(d!==void 0){const{line:f}=s0(d.file,d.start);return{fileName:s,line:f+1}}})}function Z1e(t){return t===1?F.Found_1_error_Watching_for_file_changes:F.Found_0_errors_Watching_for_file_changes}function Itt(t,u){const s=tb(":"+t.line,"\x1B[90m");return BN(t.fileName)&&BN(u)?$E(u,t.fileName,!1)+s:t.fileName+s}function p9e(t,u,s,d){if(t===0)return"";const f=u.filter(k=>k!==void 0),p=f.map(k=>`${k.fileName}:${k.line}`).filter((k,T,M)=>M.indexOf(k)===T),E=f[0]&&Itt(f[0],d.getCurrentDirectory());let v;t===1?v=u[0]!==void 0?[F.Found_1_error_in_0,E]:[F.Found_1_error]:v=p.length===0?[F.Found_0_errors,t]:p.length===1?[F.Found_0_errors_in_the_same_file_starting_at_Colon_1,t,E]:[F.Found_0_errors_in_1_files,t,p.length];const b=dc(...v),B=p.length>1?Zzt(f,d):"";return`${s}${cE(b.messageText,s)}${s}${s}${B}`}function Zzt(t,u){const s=t.filter((T,M,z)=>M===z.findIndex(j=>(j==null?void 0:j.fileName)===(T==null?void 0:T.fileName)));if(s.length===0)return"";const d=T=>Math.log(T)*Math.LOG10E+1,f=s.map(T=>[T,ui(t,M=>M.fileName===T.fileName)]),p=f.reduce((T,M)=>Math.max(T,M[1]||0),0),E=F.Errors_Files.message,v=E.split(" ")[0].length,b=Math.max(v,d(p)),B=Math.max(d(p)-v,0);let k="";return k+=" ".repeat(B)+E+` +`,f.forEach(T=>{const[M,z]=T,j=Math.log(z)*Math.LOG10E+1|0,J=j{u(d.fileName)})}function Q1e(t,u){var s,d;const f=t.getFileIncludeReasons(),p=E=>TN(E,t.getCurrentDirectory(),t.getCanonicalFileName);for(const E of t.getSourceFiles())u(`${ew(E,p)}`),(s=f.get(E.path))==null||s.forEach(v=>u(` ${ihe(t,v,p).messageText}`)),(d=X1e(E,p))==null||d.forEach(v=>u(` ${v.messageText}`))}function X1e(t,u){var s;let d;if(t.path!==t.resolvedPath&&(d??(d=[])).push(ro(void 0,F.File_is_output_of_project_reference_source_0,ew(t.originalFileName,u))),t.redirectInfo&&(d??(d=[])).push(ro(void 0,F.File_redirects_to_file_0,ew(t.redirectInfo.redirectTarget,u))),cm(t))switch(t.impliedNodeFormat){case 99:t.packageJsonScope&&(d??(d=[])).push(ro(void 0,F.File_is_ECMAScript_module_because_0_has_field_type_with_value_module,ew(yr(t.packageJsonLocations),u)));break;case 1:t.packageJsonScope?(d??(d=[])).push(ro(void 0,t.packageJsonScope.contents.packageJsonContent.type?F.File_is_CommonJS_module_because_0_has_field_type_whose_value_is_not_module:F.File_is_CommonJS_module_because_0_does_not_have_field_type,ew(yr(t.packageJsonLocations),u))):(s=t.packageJsonLocations)!=null&&s.length&&(d??(d=[])).push(ro(void 0,F.File_is_CommonJS_module_because_package_json_was_not_found));break}return d}function ehe(t,u){var s;const d=t.getCompilerOptions().configFile;if(!((s=d==null?void 0:d.configFileSpecs)!=null&&s.validatedFilesSpec))return;const f=t.getCanonicalFileName(u),p=dr(qa(d.fileName,t.getCurrentDirectory()));return Le(d.configFileSpecs.validatedFilesSpec,E=>t.getCanonicalFileName(qa(E,p))===f)}function the(t,u){var s,d;const f=t.getCompilerOptions().configFile;if(!((s=f==null?void 0:f.configFileSpecs)!=null&&s.validatedIncludeSpecs))return;if(f.configFileSpecs.isDefaultIncludeSpec)return!0;const p=Ml(u,".json"),E=dr(qa(f.fileName,t.getCurrentDirectory())),v=t.useCaseSensitiveFileNames();return Le((d=f==null?void 0:f.configFileSpecs)==null?void 0:d.validatedIncludeSpecs,b=>{if(p&&!lc(b,".json"))return!1;const B=Sle(b,E,"files");return!!B&&jx(`(${B})$`,v).test(u)})}function ihe(t,u,s){var d,f;const p=t.getCompilerOptions();if($v(u)){const E=AM(t,u),v=ZB(E)?E.file.text.substring(E.pos,E.end):`"${E.text}"`;let b;switch(H.assert(ZB(E)||u.kind===3,"Only synthetic references are imports"),u.kind){case 3:ZB(E)?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2:F.Imported_via_0_from_file_1:E.text===Hx?b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions:F.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions:b=E.packageId?F.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions:F.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;break;case 4:H.assert(!E.packageId),b=F.Referenced_via_0_from_file_1;break;case 5:b=E.packageId?F.Type_library_referenced_via_0_from_file_1_with_packageId_2:F.Type_library_referenced_via_0_from_file_1;break;case 7:H.assert(!E.packageId),b=F.Library_referenced_via_0_from_file_1;break;default:H.assertNever(u)}return ro(void 0,b,v,ew(E.file,s),E.packageId&&Px(E.packageId))}switch(u.kind){case 0:if(!((d=p.configFile)!=null&&d.configFileSpecs))return ro(void 0,F.Root_file_specified_for_compilation);const E=qa(t.getRootFileNames()[u.index],t.getCurrentDirectory());if(ehe(t,E))return ro(void 0,F.Part_of_files_list_in_tsconfig_json);const b=the(t,E);return Ua(b)?ro(void 0,F.Matched_by_include_pattern_0_in_1,b,ew(p.configFile,s)):ro(void 0,b?F.Matched_by_default_include_pattern_Asterisk_Asterisk_Slash_Asterisk:F.Root_file_specified_for_compilation);case 1:case 2:const B=u.kind===2,k=H.checkDefined((f=t.getResolvedProjectReferences())==null?void 0:f[u.index]);return ro(void 0,F0(p)?B?F.Output_from_referenced_project_0_included_because_1_specified:F.Source_from_referenced_project_0_included_because_1_specified:B?F.Output_from_referenced_project_0_included_because_module_is_specified_as_none:F.Source_from_referenced_project_0_included_because_module_is_specified_as_none,ew(k.sourceFile.fileName,s),p.outFile?"--outFile":"--out");case 8:{const T=p.types?u.packageId?[F.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_of_type_library_0_specified_in_compilerOptions,u.typeReference]:u.packageId?[F.Entry_point_for_implicit_type_library_0_with_packageId_1,u.typeReference,Px(u.packageId)]:[F.Entry_point_for_implicit_type_library_0,u.typeReference];return ro(void 0,...T)}case 6:{if(u.index!==void 0)return ro(void 0,F.Library_0_specified_in_compilerOptions,p.lib[u.index]);const T=f1(eH.type,(z,j)=>z===js(p)?j:void 0),M=T?[F.Default_library_for_target_0,T]:[F.Default_library];return ro(void 0,...M)}default:H.assertNever(u)}}function ew(t,u){const s=Ua(t)?t:t.fileName;return u?u(s):s}function KQ(t,u,s,d,f,p,E,v){const b=!!t.getCompilerOptions().listFilesOnly,B=t.getConfigFileParsingDiagnostics().slice(),k=B.length;yn(B,t.getSyntacticDiagnostics(void 0,p)),B.length===k&&(yn(B,t.getOptionsDiagnostics(p)),b||(yn(B,t.getGlobalDiagnostics(p)),B.length===k&&yn(B,t.getSemanticDiagnostics(void 0,p))));const T=b?{emitSkipped:!0,diagnostics:Dt}:t.emit(void 0,f,p,E,v),{emittedFiles:M,diagnostics:z}=T;yn(B,z);const j=A8(B);if(j.forEach(u),s){const J=t.getCurrentDirectory();L(M,K=>{const Y=qa(K,J);s(`TSFILE: ${Y}`)}),Y1e(t,s)}return d&&d(VQ(j),HQ(j)),{emitResult:T,diagnostics:j}}function E9e(t,u,s,d,f,p,E,v){const{emitResult:b,diagnostics:B}=KQ(t,u,s,d,f,p,E,v);return b.emitSkipped&&B.length>0?1:B.length>0?2:0}function nhe(t=d1,u){return{onWatchStatusChange:u||m9e(t),watchFile:Lo(t,t.watchFile)||iw,watchDirectory:Lo(t,t.watchDirectory)||iw,setTimeout:Lo(t,t.setTimeout)||Rs,clearTimeout:Lo(t,t.clearTimeout)||Rs}}function uhe(t,u){const s=t.trace?u.extendedDiagnostics?2:u.diagnostics?1:0:0,d=s!==0?p=>t.trace(p):Rs,f=D1e(t,s,d);return f.writeLog=d,f}function rhe(t,u,s=t){const d=t.useCaseSensitiveFileNames(),f={getSourceFile:C1e((p,E)=>E?t.readFile(p,E):f.readFile(p),u,void 0),getDefaultLibLocation:Lo(t,t.getDefaultLibLocation),getDefaultLibFileName:p=>t.getDefaultLibFileName(p),writeFile:b1e((p,E,v)=>t.writeFile(p,E,v),p=>t.createDirectory(p),p=>t.directoryExists(p)),getCurrentDirectory:zh(()=>t.getCurrentDirectory()),useCaseSensitiveFileNames:()=>d,getCanonicalFileName:N1(d),getNewLine:()=>a5(u()),fileExists:p=>t.fileExists(p),readFile:p=>t.readFile(p),trace:Lo(t,t.trace),directoryExists:Lo(s,s.directoryExists),getDirectories:Lo(s,s.getDirectories),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable)||(()=>""),createHash:Lo(t,t.createHash),readDirectory:Lo(t,t.readDirectory),storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,jsDocParsingMode:t.jsDocParsingMode};return f}function WQ(t,u){if(u.match(Ude)){let s=u.length,d=s;for(let f=s-1;f>=0;f--){const p=u.charCodeAt(f);switch(p){case 10:f&&u.charCodeAt(f-1)===13&&f--;case 13:break;default:if(p<127||!Y1(p)){d=f;continue}break}const E=u.substring(d,s);if(E.match(rQ)){u=u.substring(0,d);break}else if(!E.match(aQ))break;s=d}}return(t.createHash||SN)(u)}function GQ(t){const u=t.getSourceFile;t.getSourceFile=(...s)=>{const d=u.call(t,...s);return d&&(d.version=WQ(t,d.text)),d}}function ahe(t,u){const s=zh(()=>dr(Uo(t.getExecutingFilePath())));return{useCaseSensitiveFileNames:()=>t.useCaseSensitiveFileNames,getNewLine:()=>t.newLine,getCurrentDirectory:zh(()=>t.getCurrentDirectory()),getDefaultLibLocation:s,getDefaultLibFileName:d=>hr(s(),IO(d)),fileExists:d=>t.fileExists(d),readFile:(d,f)=>t.readFile(d,f),directoryExists:d=>t.directoryExists(d),getDirectories:d=>t.getDirectories(d),readDirectory:(d,f,p,E,v)=>t.readDirectory(d,f,p,E,v),realpath:Lo(t,t.realpath),getEnvironmentVariable:Lo(t,t.getEnvironmentVariable),trace:d=>t.write(d+t.newLine),createDirectory:d=>t.createDirectory(d),writeFile:(d,f,p)=>t.writeFile(d,f,p),createHash:Lo(t,t.createHash),createProgram:u||$1e,storeFilesChangingSignatureDuringEmit:t.storeFilesChangingSignatureDuringEmit,now:Lo(t,t.now)}}function Rtt(t=d1,u,s,d){const f=E=>t.write(E+t.newLine),p=ahe(t,u);return ooe(p,nhe(t,d)),p.afterProgramCreate=E=>{const v=E.getCompilerOptions(),b=a5(v);KQ(E,s,f,B=>p.onWatchStatusChange(dc(Z1e(B),B),b,v,B))},p}function Ott(t,u,s){u(s),t.exit(1)}function _9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:s,extraFileExtensions:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=E||FH(f),B=Rtt(f,p,b,v);return B.onUnRecoverableConfigFileDiagnostic=k=>Ott(f,b,k),B.configFileName=t,B.optionsToExtend=u,B.watchOptionsToExtend=s,B.extraFileExtensions=d,B}function D9e({rootFiles:t,options:u,watchOptions:s,projectReferences:d,system:f,createProgram:p,reportDiagnostic:E,reportWatchStatus:v}){const b=Rtt(f,p,E||FH(f),v);return b.rootFiles=t,b.options=u,b.watchOptions=s,b.projectReferences=d,b}function jtt(t){const u=t.system||d1,s=t.host||(t.host=ohe(t.options,u)),d=v9e(t),f=E9e(d,t.reportDiagnostic||FH(u),p=>s.trace&&s.trace(p),t.reportErrorSummary||t.options.pretty?(p,E)=>u.write(p9e(p,E,u.newLine,s)):void 0);return t.afterProgramEmitAndDiagnostics&&t.afterProgramEmitAndDiagnostics(d),f}var x9e,JQ,tw,iw,cd,Yzt=o({"src/compiler/watch.ts"(){Bo(),x9e=d1?{getCurrentDirectory:()=>d1.getCurrentDirectory(),getNewLine:()=>d1.newLine,getCanonicalFileName:N1(d1.useCaseSensitiveFileNames)}:void 0,JQ=[F.Starting_compilation_in_watch_mode.code,F.File_change_detected_Starting_incremental_compilation.code],tw={close:Rs},iw=()=>tw,cd={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 $Q(t,u){const s=f5(t);if(!s)return;let d;if(u.getBuildInfo)d=u.getBuildInfo(s,t.configFilePath);else{const f=u.readFile(s);if(!f)return;d=xQ(s,f)}if(!(!d||d.version!==_||!d.program))return a9e(d,s,u)}function ohe(t,u=d1){const s=y1e(t,void 0,u);return s.createHash=Lo(u,u.createHash),s.storeFilesChangingSignatureDuringEmit=u.storeFilesChangingSignatureDuringEmit,GQ(s),CH(s,d=>$0(d,s.getCurrentDirectory(),s.getCanonicalFileName)),s}function v9e({rootNames:t,options:u,configFileParsingDiagnostics:s,projectReferences:d,host:f,createProgram:p}){f=f||ohe(u),p=p||$1e;const E=$Q(u,f);return p(t,u,f,E,s,d)}function Vtt(t,u,s,d,f,p,E,v){return Wa(t)?D9e({rootFiles:t,options:u,watchOptions:v,projectReferences:E,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p}):_9e({configFileName:t,optionsToExtend:u,watchOptionsToExtend:E,extraFileExtensions:v,system:s,createProgram:d,reportDiagnostic:f,reportWatchStatus:p})}function Htt(t){let u,s,d,f,p,E,v,b,B=t.extendedConfigCache,k=!1;const T=new Map;let M,z=!1;const j=t.useCaseSensitiveFileNames(),J=t.getCurrentDirectory(),{configFileName:K,optionsToExtend:Y={},watchOptionsToExtend:oe,extraFileExtensions:se,createProgram:ge}=t;let{rootFiles:ae,options:Ce,watchOptions:ne,projectReferences:ve}=t,Se,Ne,pe=!1,fe=!1;const xe=K===void 0?void 0:CQ(t,J,j),Be=xe||t,We=LQ(t,Be);let Ae=xn();K&&t.configFileParsingResult&&(bo(t.configFileParsingResult),Ae=xn()),bt(F.Starting_compilation_in_watch_mode),K&&!t.configFileParsingResult&&(Ae=a5(Y),H.assert(!ae),Qo(),Ae=xn()),H.assert(Ce),H.assert(ae);const{watchFile:De,watchDirectory:He,writeLog:Je}=uhe(t,Ce),mt=N1(j);Je(`Current directory: ${J} CaseSensitiveFileNames: ${j}`);let Ye;K&&(Ye=De(K,tu,2e3,ne,cd.ConfigFile));const je=rhe(t,()=>Ce,Be);GQ(je);const Ke=je.getSourceFile;je.getSourceFile=(pt,...Ot)=>Yu(pt,Jn(pt),...Ot),je.getSourceFileByPath=Yu,je.getNewLine=()=>Ae,je.fileExists=Fi,je.onReleaseOldSourceFile=wa,je.onReleaseParsedCommandLine=Mt,je.toPath=Jn,je.getCompilationSettings=()=>Ce,je.useSourceOfProjectReferenceRedirect=Lo(t,t.useSourceOfProjectReferenceRedirect),je.watchDirectoryOfFailedLookupLocation=(pt,Ot,Ei)=>He(pt,Ot,Ei,ne,cd.FailedLookupLocations),je.watchAffectingFileLocation=(pt,Ot)=>De(pt,Ot,2e3,ne,cd.AffectingFileLocation),je.watchTypeRootsDirectory=(pt,Ot,Ei)=>He(pt,Ot,Ei,ne,cd.TypeRoots),je.getCachedDirectoryStructureHost=()=>xe,je.scheduleInvalidateResolutionsOfFailedLookupLocations=Ai,je.onInvalidatedResolution=Cn,je.onChangedAutomaticTypeDirectiveNames=Cn,je.fileIsOpen=cg,je.getCurrentProgram=ft,je.writeLog=Je,je.getParsedCommandLine=Qe;const Gt=q1e(je,K?dr(qa(K,J)):J,!1);je.resolveModuleNameLiterals=Lo(t,t.resolveModuleNameLiterals),je.resolveModuleNames=Lo(t,t.resolveModuleNames),!je.resolveModuleNameLiterals&&!je.resolveModuleNames&&(je.resolveModuleNameLiterals=Gt.resolveModuleNameLiterals.bind(Gt)),je.resolveTypeReferenceDirectiveReferences=Lo(t,t.resolveTypeReferenceDirectiveReferences),je.resolveTypeReferenceDirectives=Lo(t,t.resolveTypeReferenceDirectives),!je.resolveTypeReferenceDirectiveReferences&&!je.resolveTypeReferenceDirectives&&(je.resolveTypeReferenceDirectiveReferences=Gt.resolveTypeReferenceDirectiveReferences.bind(Gt)),je.resolveLibrary=t.resolveLibrary?t.resolveLibrary.bind(t):Gt.resolveLibrary.bind(Gt),je.getModuleResolutionCache=t.resolveModuleNameLiterals||t.resolveModuleNames?Lo(t,t.getModuleResolutionCache):()=>Gt.getModuleResolutionCache();const Ie=!!t.resolveModuleNameLiterals||!!t.resolveTypeReferenceDirectiveReferences||!!t.resolveModuleNames||!!t.resolveTypeReferenceDirectives?Lo(t,t.hasInvalidatedResolutions)||J3:cg,st=t.resolveLibrary?Lo(t,t.hasInvalidatedLibResolutions)||J3:cg;return u=$Q(Ce,je),Ut(),ii(),K&&ni(Jn(K),Ce,ne,cd.ExtendedConfigFile),K?{getCurrentProgram:ei,getProgram:xa,close:Bt,getResolutionCache:It}:{getCurrentProgram:ei,getProgram:xa,updateRootFileNames:Vi,close:Bt,getResolutionCache:It};function Bt(){Ln(),Gt.clear(),rf(T,pt=>{pt&&pt.fileWatcher&&(pt.fileWatcher.close(),pt.fileWatcher=void 0)}),Ye&&(Ye.close(),Ye=void 0),B==null||B.clear(),B=void 0,b&&(rf(b,Vm),b=void 0),f&&(rf(f,Vm),f=void 0),d&&(rf(d,fg),d=void 0),v&&(rf(v,pt=>{var Ot;(Ot=pt.watcher)==null||Ot.close(),pt.watcher=void 0,pt.watchedDirectories&&rf(pt.watchedDirectories,Vm),pt.watchedDirectories=void 0}),v=void 0)}function It(){return Gt}function ei(){return u}function ft(){return u&&u.getProgramOrUndefined()}function Ut(){Je("Synchronizing program"),H.assert(Ce),H.assert(ae),Ln();const pt=ei();z&&(Ae=xn(),pt&&ZU(pt.getCompilerOptions(),Ce)&&Gt.onChangesAffectModuleResolution());const{hasInvalidatedResolutions:Ot,hasInvalidatedLibResolutions:Ei}=Gt.createHasInvalidatedResolutions(Ie,st),{originalReadFile:$i,originalFileExists:Qi,originalDirectoryExists:on,originalCreateDirectory:le,originalWriteFile:te,readFileWithCache:we}=CH(je,Jn);return L1e(ft(),ae,Ce,de=>Fr(de,we),de=>je.fileExists(de),Ot,Ei,jn,Qe,ve)?fe&&(k&&bt(F.File_change_detected_Starting_incremental_compilation),u=ge(void 0,void 0,je,u,Ne,ve),fe=!1):(k&&bt(F.File_change_detected_Starting_incremental_compilation),Ni(Ot,Ei)),k=!1,t.afterProgramCreate&&pt!==u&&t.afterProgramCreate(u),je.readFile=$i,je.fileExists=Qi,je.directoryExists=on,je.createDirectory=le,je.writeFile=te,u}function Ni(pt,Ot){Je("CreatingProgramWith::"),Je(` roots: ${JSON.stringify(ae)}`),Je(` options: ${JSON.stringify(Ce)}`),ve&&Je(` projectReferences: ${JSON.stringify(ve)}`);const Ei=z||!ft();z=!1,fe=!1,Gt.startCachingPerDirectoryResolution(),je.hasInvalidatedResolutions=pt,je.hasInvalidatedLibResolutions=Ot,je.hasChangedAutomaticTypeDirectiveNames=jn;const $i=ft();if(u=ge(ae,Ce,je,u,Ne,ve),Gt.finishCachingPerDirectoryResolution(u.getProgram(),$i),_1e(u.getProgram(),d||(d=new Map),et),Ei&&Gt.updateTypeRootsWatch(),M){for(const Qi of M)d.has(Qi)||T.delete(Qi);M=void 0}}function Vi(pt){H.assert(!K,"Cannot update root file names with config file watch mode"),ae=pt,Cn()}function xn(){return a5(Ce||Y)}function Jn(pt){return $0(pt,J,mt)}function an(pt){return typeof pt=="boolean"}function Pi(pt){return typeof pt.version=="boolean"}function Fi(pt){const Ot=Jn(pt);return an(T.get(Ot))?!1:Be.fileExists(pt)}function Yu(pt,Ot,Ei,$i,Qi){const on=T.get(Ot);if(an(on))return;const le=typeof Ei=="object"?Ei.impliedNodeFormat:void 0;if(on===void 0||Qi||Pi(on)||on.sourceFile.impliedNodeFormat!==le){const te=Ke(pt,Ei,$i);if(on)te?(on.sourceFile=te,on.version=te.version,on.fileWatcher||(on.fileWatcher=qt(Ot,pt,Xt,250,ne,cd.SourceFile))):(on.fileWatcher&&on.fileWatcher.close(),T.set(Ot,!1));else if(te){const we=qt(Ot,pt,Xt,250,ne,cd.SourceFile);T.set(Ot,{sourceFile:te,version:te.version,fileWatcher:we})}else T.set(Ot,!1);return te}return on.sourceFile}function oa(pt){const Ot=T.get(pt);Ot!==void 0&&(an(Ot)?T.set(pt,{version:!1}):Ot.version=!1)}function Fr(pt,Ot){const Ei=T.get(pt);if(!Ei)return;if(Ei.version)return Ei.version;const $i=Ot(pt);return $i!==void 0?WQ(je,$i):void 0}function wa(pt,Ot,Ei){const $i=T.get(pt.resolvedPath);$i!==void 0&&(an($i)?(M||(M=[])).push(pt.path):$i.sourceFile===pt&&($i.fileWatcher&&$i.fileWatcher.close(),T.delete(pt.resolvedPath),Ei||Gt.removeResolutionsOfFile(pt.path)))}function bt(pt){t.onWatchStatusChange&&t.onWatchStatusChange(dc(pt),Ae,Ce||Y)}function jn(){return Gt.hasChangedAutomaticTypeDirectiveNames()}function Ln(){return E?(t.clearTimeout(E),E=void 0,!0):!1}function Ai(){if(!t.setTimeout||!t.clearTimeout)return Gt.invalidateResolutionsOfFailedLookupLocations();const pt=Ln();Je(`Scheduling invalidateFailedLookup${pt?", Cancelled earlier one":""}`),E=t.setTimeout(Dn,250,"timerToInvalidateFailedLookupResolutions")}function Dn(){E=void 0,Gt.invalidateResolutionsOfFailedLookupLocations()&&Cn()}function Cn(){!t.setTimeout||!t.clearTimeout||(p&&t.clearTimeout(p),Je("Scheduling update"),p=t.setTimeout(sa,250,"timerToUpdateProgram"))}function tu(){H.assert(!!K),s=2,Cn()}function sa(){p=void 0,k=!0,xa()}function xa(){var pt,Ot,Ei,$i;switch(s){case 1:(pt=mh)==null||pt.logStartUpdateProgram("PartialConfigReload"),aa();break;case 2:(Ot=mh)==null||Ot.logStartUpdateProgram("FullConfigReload"),Ta();break;default:(Ei=mh)==null||Ei.logStartUpdateProgram("SynchronizeProgram"),Ut();break}return($i=mh)==null||$i.logStopUpdateProgram("Done"),ei()}function aa(){Je("Reloading new file names and options"),H.assert(Ce),H.assert(K),s=0,ae=sM(Ce.configFile.configFileSpecs,qa(dr(K),J),Ce,We,se),LY(ae,qa(K,J),Ce.configFile.configFileSpecs,Ne,pe)&&(fe=!0),Ut()}function Ta(){H.assert(K),Je(`Reloading config file: ${K}`),s=0,xe&&xe.clearCache(),Qo(),z=!0,Ut(),ii(),ni(Jn(K),Ce,ne,cd.ExtendedConfigFile)}function Qo(){H.assert(K),bo(JV(K,Y,We,B||(B=new Map),oe,se))}function bo(pt){ae=pt.fileNames,Ce=pt.options,ne=pt.watchOptions,ve=pt.projectReferences,Se=pt.wildcardDirectories,Ne=Lk(pt).slice(),pe=oM(pt.raw),fe=!0}function Qe(pt){const Ot=Jn(pt);let Ei=v==null?void 0:v.get(Ot);if(Ei){if(!Ei.updateLevel)return Ei.parsedCommandLine;if(Ei.parsedCommandLine&&Ei.updateLevel===1&&!t.getParsedCommandLine){Je("Reloading new file names and options"),H.assert(Ce);const Qi=sM(Ei.parsedCommandLine.options.configFile.configFileSpecs,qa(dr(pt),J),Ce,We);return Ei.parsedCommandLine={...Ei.parsedCommandLine,fileNames:Qi},Ei.updateLevel=void 0,Ei.parsedCommandLine}}Je(`Loading config file: ${pt}`);const $i=t.getParsedCommandLine?t.getParsedCommandLine(pt):_t(pt);return Ei?(Ei.parsedCommandLine=$i,Ei.updateLevel=void 0):(v||(v=new Map)).set(Ot,Ei={parsedCommandLine:$i}),xi(pt,Ot,Ei),$i}function _t(pt){const Ot=We.onUnRecoverableConfigFileDiagnostic;We.onUnRecoverableConfigFileDiagnostic=Rs;const Ei=JV(pt,void 0,We,B||(B=new Map),oe);return We.onUnRecoverableConfigFileDiagnostic=Ot,Ei}function Mt(pt){var Ot;const Ei=Jn(pt),$i=v==null?void 0:v.get(Ei);$i&&(v.delete(Ei),$i.watchedDirectories&&rf($i.watchedDirectories,Vm),(Ot=$i.watcher)==null||Ot.close(),E1e(Ei,b))}function qt(pt,Ot,Ei,$i,Qi,on){return De(Ot,(le,te)=>Ei(le,te,pt),$i,Qi,on)}function Xt(pt,Ot,Ei){Pe(pt,Ei,Ot),Ot===2&&T.has(Ei)&&Gt.invalidateResolutionOfFile(Ei),oa(Ei),Cn()}function Pe(pt,Ot,Ei){xe&&xe.addOrDeleteFile(pt,Ot,Ei)}function et(pt){return v!=null&&v.has(pt)?tw:qt(pt,pt,Et,500,ne,cd.MissingFile)}function Et(pt,Ot,Ei){Pe(pt,Ei,Ot),Ot===0&&d.has(Ei)&&(d.get(Ei).close(),d.delete(Ei),oa(Ei),Cn())}function ii(){Se?DH(f||(f=new Map),new Map(Object.entries(Se)),me):f&&rf(f,Vm)}function me(pt,Ot){return He(pt,Ei=>{H.assert(K),H.assert(Ce);const $i=Jn(Ei);xe&&xe.addOrDeleteFileOrDirectory(Ei,$i),oa($i),!xH({watchedDirPath:Jn(pt),fileOrDirectory:Ei,fileOrDirectoryPath:$i,configFileName:K,extraFileExtensions:se,options:Ce,program:ei()||ae,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})&&s!==2&&(s=1,Cn())},Ot,ne,cd.WildcardDirectory)}function ni(pt,Ot,Ei,$i){bQ(pt,Ot,b||(b=new Map),(Qi,on)=>De(Qi,(le,te)=>{var we;Pe(Qi,on,te),B&&yQ(B,on,Jn);const de=(we=b.get(on))==null?void 0:we.projects;de!=null&&de.size&&de.forEach(Oe=>{if(K&&Jn(K)===Oe)s=2;else{const X=v==null?void 0:v.get(Oe);X&&(X.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(Oe)}Cn()})},2e3,Ei,$i),Jn)}function xi(pt,Ot,Ei){var $i,Qi,on,le,te;Ei.watcher||(Ei.watcher=De(pt,(we,de)=>{Pe(pt,Ot,de);const Oe=v==null?void 0:v.get(Ot);Oe&&(Oe.updateLevel=2),Gt.removeResolutionsFromProjectReferenceRedirects(Ot),Cn()},2e3,(($i=Ei.parsedCommandLine)==null?void 0:$i.watchOptions)||ne,cd.ConfigFileOfReferencedProject)),(Qi=Ei.parsedCommandLine)!=null&&Qi.wildcardDirectories?DH(Ei.watchedDirectories||(Ei.watchedDirectories=new Map),new Map(Object.entries((on=Ei.parsedCommandLine)==null?void 0:on.wildcardDirectories)),(we,de)=>{var Oe;return He(we,X=>{const it=Jn(X);xe&&xe.addOrDeleteFileOrDirectory(X,it),oa(it);const Ct=v==null?void 0:v.get(Ot);Ct!=null&&Ct.parsedCommandLine&&(xH({watchedDirPath:Jn(we),fileOrDirectory:X,fileOrDirectoryPath:it,configFileName:pt,options:Ct.parsedCommandLine.options,program:Ct.parsedCommandLine.fileNames,currentDirectory:J,useCaseSensitiveFileNames:j,writeLog:Je,toPath:Jn})||Ct.updateLevel!==2&&(Ct.updateLevel=1,Cn()))},de,((Oe=Ei.parsedCommandLine)==null?void 0:Oe.watchOptions)||ne,cd.WildcardDirectoryOfReferencedProject)}):Ei.watchedDirectories&&(rf(Ei.watchedDirectories,Vm),Ei.watchedDirectories=void 0),ni(Ot,(le=Ei.parsedCommandLine)==null?void 0:le.options,((te=Ei.parsedCommandLine)==null?void 0:te.watchOptions)||ne,cd.ExtendedConfigOfReferencedProject)}}var Qzt=o({"src/compiler/watchPublic.ts"(){Bo()}});function she(t){return Ml(t,".json")?t:hr(t,"tsconfig.json")}var lhe,Xzt=o({"src/compiler/tsbuild.ts"(){Bo(),lhe=(t=>(t[t.Unbuildable=0]="Unbuildable",t[t.UpToDate=1]="UpToDate",t[t.UpToDateWithUpstreamTypes=2]="UpToDateWithUpstreamTypes",t[t.OutOfDateWithPrepend=3]="OutOfDateWithPrepend",t[t.OutputMissing=4]="OutputMissing",t[t.ErrorReadingFile=5]="ErrorReadingFile",t[t.OutOfDateWithSelf=6]="OutOfDateWithSelf",t[t.OutOfDateWithUpstream=7]="OutOfDateWithUpstream",t[t.OutOfDateBuildInfo=8]="OutOfDateBuildInfo",t[t.OutOfDateOptions=9]="OutOfDateOptions",t[t.OutOfDateRoots=10]="OutOfDateRoots",t[t.UpstreamOutOfDate=11]="UpstreamOutOfDate",t[t.UpstreamBlocked=12]="UpstreamBlocked",t[t.ComputingUpstream=13]="ComputingUpstream",t[t.TsVersionOutputOfDate=14]="TsVersionOutputOfDate",t[t.UpToDateWithInputFileText=15]="UpToDateWithInputFileText",t[t.ContainerOnly=16]="ContainerOnly",t[t.ForceBuild=17]="ForceBuild",t))(lhe||{})}});function eIt(t,u,s){const d=t.get(u);let f;return d||(f=s(),t.set(u,f)),d||f}function C9e(t,u){return eIt(t,u,()=>new Map)}function SH(t){return t.now?t.now():new Date}function e9(t){return!!t&&!!t.buildOrder}function UQ(t){return e9(t)?t.buildOrder:t}function b9e(t,u){return s=>{let d=u?`[${tb(AH(t),"\x1B[90m")}] `:`${AH(t)} - `;d+=`${cE(s.messageText,t.newLine)}${t.newLine+t.newLine}`,t.write(d)}}function Ktt(t,u,s,d){const f=ahe(t,u);return f.getModifiedTime=t.getModifiedTime?p=>t.getModifiedTime(p):fv,f.setModifiedTime=t.setModifiedTime?(p,E)=>t.setModifiedTime(p,E):Rs,f.deleteFile=t.deleteFile?p=>t.deleteFile(p):Rs,f.reportDiagnostic=s||FH(t),f.reportSolutionBuilderStatus=d||b9e(t),f.now=Lo(t,t.now),f}function Wtt(t=d1,u,s,d,f){const p=Ktt(t,u,s,d);return p.reportErrorSummary=f,p}function Gtt(t=d1,u,s,d,f){const p=Ktt(t,u,s,d),E=nhe(t,f);return ooe(p,E),p}function tIt(t){const u={};return XV.forEach(s=>{Eu(t,s.name)&&(u[s.name]=t[s.name])}),u}function Jtt(t,u,s){return git(!1,t,u,s)}function $tt(t,u,s,d){return git(!0,t,u,s,d)}function iIt(t,u,s,d,f){const p=u,E=u,v=tIt(d),b=rhe(p,()=>J.projectCompilerOptions);GQ(b),b.getParsedCommandLine=K=>t9(J,K,dE(J,K)),b.resolveModuleNameLiterals=Lo(p,p.resolveModuleNameLiterals),b.resolveTypeReferenceDirectiveReferences=Lo(p,p.resolveTypeReferenceDirectiveReferences),b.resolveLibrary=Lo(p,p.resolveLibrary),b.resolveModuleNames=Lo(p,p.resolveModuleNames),b.resolveTypeReferenceDirectives=Lo(p,p.resolveTypeReferenceDirectives),b.getModuleResolutionCache=Lo(p,p.getModuleResolutionCache);let B,k;!b.resolveModuleNameLiterals&&!b.resolveModuleNames&&(B=KB(b.getCurrentDirectory(),b.getCanonicalFileName),b.resolveModuleNameLiterals=(K,Y,oe,se,ge)=>bH(K,Y,oe,se,ge,p,B,B1e),b.getModuleResolutionCache=()=>B),!b.resolveTypeReferenceDirectiveReferences&&!b.resolveTypeReferenceDirectives&&(k=WY(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache(),B==null?void 0:B.optionsToRedirectsKey),b.resolveTypeReferenceDirectiveReferences=(K,Y,oe,se,ge)=>bH(K,Y,oe,se,ge,p,k,AQ));let T;b.resolveLibrary||(T=KB(b.getCurrentDirectory(),b.getCanonicalFileName,void 0,B==null?void 0:B.getPackageJsonInfoCache()),b.resolveLibrary=(K,Y,oe)=>GY(K,Y,oe,p,T)),b.getBuildInfo=(K,Y)=>oit(J,K,dE(J,Y),void 0);const{watchFile:M,watchDirectory:z,writeLog:j}=uhe(E,d),J={host:p,hostWithWatch:E,parseConfigFileHost:LQ(p),write:Lo(p,p.trace),options:d,baseCompilerOptions:v,rootNames:s,baseWatchOptions:f,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:b,moduleResolutionCache:B,typeReferenceDirectiveResolutionCache:k,libraryResolutionCache:T,buildOrder:void 0,readFileWithCache:K=>p.readFile(K),projectCompilerOptions:v,cache:void 0,allProjectBuildPending:!0,needsSummary:!0,watchAllProjectsPending:t,watch:t,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:M,watchDirectory:z,writeLog:j};return J}function gm(t,u){return $0(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function dE(t,u){const{resolvedConfigFilePaths:s}=t,d=s.get(u);if(d!==void 0)return d;const f=gm(t,u);return s.set(u,f),f}function Utt(t){return!!t.options}function nIt(t,u){const s=t.configFileCache.get(u);return s&&Utt(s)?s:void 0}function t9(t,u,s){const{configFileCache:d}=t,f=d.get(s);if(f)return Utt(f)?f:void 0;al("SolutionBuilder::beforeConfigFileParsing");let p;const{parseConfigFileHost:E,baseCompilerOptions:v,baseWatchOptions:b,extendedConfigCache:B,host:k}=t;let T;return k.getParsedCommandLine?(T=k.getParsedCommandLine(u),T||(p=dc(F.File_0_not_found,u))):(E.onUnRecoverableConfigFileDiagnostic=M=>p=M,T=JV(u,v,E,B,b),E.onUnRecoverableConfigFileDiagnostic=Rs),d.set(s,T||p),al("SolutionBuilder::afterConfigFileParsing"),Lm("SolutionBuilder::Config file parsing","SolutionBuilder::beforeConfigFileParsing","SolutionBuilder::afterConfigFileParsing"),T}function SM(t,u){return she(kx(t.compilerHost.getCurrentDirectory(),u))}function qtt(t,u){const s=new Map,d=new Map,f=[];let p,E;for(const b of u)v(b);return E?{buildOrder:p||Dt,circularDiagnostics:E}:p||Dt;function v(b,B){const k=dE(t,b);if(d.has(k))return;if(s.has(k)){B||(E||(E=[])).push(dc(F.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0,f.join(`\r +`)));return}s.set(k,!0),f.push(b);const T=t9(t,b,k);if(T&&T.projectReferences)for(const M of T.projectReferences){const z=SM(t,M.path);v(z,B||M.circular)}f.pop(),d.set(k,!0),(p||(p=[])).push(b)}}function qQ(t){return t.buildOrder||uIt(t)}function uIt(t){const u=qtt(t,t.rootNames.map(f=>SM(t,f)));t.resolvedConfigFilePaths.clear();const s=new Map(UQ(u).map(f=>[dE(t,f),!0])),d={onDeleteValue:Rs};return eD(t.configFileCache,s,d),eD(t.projectStatus,s,d),eD(t.builderPrograms,s,d),eD(t.diagnostics,s,d),eD(t.projectPendingBuild,s,d),eD(t.projectErrorsReported,s,d),eD(t.buildInfoCache,s,d),eD(t.outputTimeStamps,s,d),t.watch&&(eD(t.allWatchedConfigFiles,s,{onDeleteValue:fg}),t.allWatchedExtendedConfigFiles.forEach(f=>{f.projects.forEach(p=>{s.has(p)||f.projects.delete(p)}),f.close()}),eD(t.allWatchedWildcardDirectories,s,{onDeleteValue:f=>f.forEach(Vm)}),eD(t.allWatchedInputFiles,s,{onDeleteValue:f=>f.forEach(fg)}),eD(t.allWatchedPackageJsonFiles,s,{onDeleteValue:f=>f.forEach(fg)})),t.buildOrder=u}function Ztt(t,u,s){const d=u&&SM(t,u),f=qQ(t);if(e9(f))return f;if(d){const E=dE(t,d);if(Ue(f,b=>dE(t,b)===E)===-1)return}const p=d?qtt(t,[d]):f;return H.assert(!e9(p)),H.assert(!s||d!==void 0),H.assert(!s||p[p.length-1]===d),s?p.slice(0,p.length-1):p}function Ytt(t){t.cache&&y9e(t);const{compilerHost:u,host:s}=t,d=t.readFileWithCache,f=u.getSourceFile,{originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,getSourceFileWithCache:k,readFileWithCache:T}=CH(s,M=>gm(t,M),(...M)=>f.call(u,...M));t.readFileWithCache=T,u.getSourceFile=k,t.cache={originalReadFile:p,originalFileExists:E,originalDirectoryExists:v,originalCreateDirectory:b,originalWriteFile:B,originalReadFileWithCache:d,originalGetSourceFile:f}}function y9e(t){if(!t.cache)return;const{cache:u,host:s,compilerHost:d,extendedConfigCache:f,moduleResolutionCache:p,typeReferenceDirectiveResolutionCache:E,libraryResolutionCache:v}=t;s.readFile=u.originalReadFile,s.fileExists=u.originalFileExists,s.directoryExists=u.originalDirectoryExists,s.createDirectory=u.originalCreateDirectory,s.writeFile=u.originalWriteFile,d.getSourceFile=u.originalGetSourceFile,t.readFileWithCache=u.originalReadFileWithCache,f.clear(),p==null||p.clear(),E==null||E.clear(),v==null||v.clear(),t.cache=void 0}function Qtt(t,u){t.projectStatus.delete(u),t.diagnostics.delete(u)}function Xtt({projectPendingBuild:t},u,s){const d=t.get(u);(d===void 0||dt.projectPendingBuild.set(dE(t,d),0)),u&&u.throwIfCancellationRequested()}function tit(t,u){return t.projectPendingBuild.delete(u),t.diagnostics.has(u)?1:0}function rIt(t,u,s,d,f){let p=!0;return{kind:2,project:u,projectPath:s,buildOrder:f,getCompilerOptions:()=>d.options,getCurrentDirectory:()=>t.compilerHost.getCurrentDirectory(),updateOutputFileStatmps:()=>{lit(t,d,s),p=!1},done:()=>(p&&lit(t,d,s),al("SolutionBuilder::Timestamps only updates"),tit(t,s))}}function iit(t,u,s,d,f,p,E){let v=t===0?0:4,b,B,k;return t===0?{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),getBuilderProgram:()=>M(ul),getProgram:()=>M(ne=>ne.getProgramOrUndefined()),getSourceFile:ne=>M(ve=>ve.getSourceFile(ne)),getSourceFiles:()=>z(ne=>ne.getSourceFiles()),getOptionsDiagnostics:ne=>z(ve=>ve.getOptionsDiagnostics(ne)),getGlobalDiagnostics:ne=>z(ve=>ve.getGlobalDiagnostics(ne)),getConfigFileParsingDiagnostics:()=>z(ne=>ne.getConfigFileParsingDiagnostics()),getSyntacticDiagnostics:(ne,ve)=>z(Se=>Se.getSyntacticDiagnostics(ne,ve)),getAllDependencies:ne=>z(ve=>ve.getAllDependencies(ne)),getSemanticDiagnostics:(ne,ve)=>z(Se=>Se.getSemanticDiagnostics(ne,ve)),getSemanticDiagnosticsOfNextAffectedFile:(ne,ve)=>M(Se=>Se.getSemanticDiagnosticsOfNextAffectedFile&&Se.getSemanticDiagnosticsOfNextAffectedFile(ne,ve)),emit:(ne,ve,Se,Ne,pe)=>{if(ne||Ne)return M(fe=>{var xe,Be;return fe.emit(ne,ve,Se,Ne,pe||((Be=(xe=u.host).getCustomTransformers)==null?void 0:Be.call(xe,s)))});if(Ce(2,Se),v===5)return se(ve,Se);if(v===3)return oe(ve,Se,pe)},done:T}:{kind:t,project:s,projectPath:d,buildOrder:E,getCompilerOptions:()=>p.options,getCurrentDirectory:()=>u.compilerHost.getCurrentDirectory(),emit:(ne,ve)=>v!==4?k:ae(ne,ve),done:T};function T(ne,ve,Se){return Ce(8,ne,ve,Se),al(t===0?"SolutionBuilder::Projects built":"SolutionBuilder::Bundles updated"),tit(u,d)}function M(ne){return Ce(0),b&&ne(b)}function z(ne){return M(ne)||Dt}function j(){var ne,ve;if(H.assert(b===void 0),u.options.dry){Oh(u,F.A_non_dry_build_would_build_project_0,s),B=1,v=7;return}if(u.options.verbose&&Oh(u,F.Building_project_0,s),p.fileNames.length===0){BM(u,d,Lk(p)),B=0,v=7;return}const{host:Se,compilerHost:Ne}=u;u.projectCompilerOptions=p.options,(ne=u.moduleResolutionCache)==null||ne.update(p.options),(ve=u.typeReferenceDirectiveResolutionCache)==null||ve.update(p.options),b=Se.createProgram(p.fileNames,p.options,Ne,oIt(u,d,p),Lk(p),p.projectReferences),u.watch&&(u.lastCachedPackageJsonLookups.set(d,u.moduleResolutionCache&&Vt(u.moduleResolutionCache.getPackageJsonInfoCache().entries(),([pe,fe])=>[u.host.realpath&&fe?gm(u,u.host.realpath(pe)):pe,fe])),u.builderPrograms.set(d,b)),v++}function J(ne,ve,Se){ne.length?{buildResult:B,step:v}=A9e(u,d,b,p,ne,ve,Se):v++}function K(ne){H.assertIsDefined(b),J([...b.getConfigFileParsingDiagnostics(),...b.getOptionsDiagnostics(ne),...b.getGlobalDiagnostics(ne),...b.getSyntacticDiagnostics(void 0,ne)],8,"Syntactic")}function Y(ne){J(H.checkDefined(b).getSemanticDiagnostics(void 0,ne),16,"Semantic")}function oe(ne,ve,Se){var Ne,pe,fe;H.assertIsDefined(b),H.assert(v===3);const xe=b.saveEmitState();let Be;const We=st=>(Be||(Be=[])).push(st),Ae=[],{emitResult:De}=KQ(b,We,void 0,void 0,(st,Bt,It,ei,ft,Ut)=>Ae.push({name:st,text:Bt,writeByteOrderMark:It,data:Ut}),ve,!1,Se||((pe=(Ne=u.host).getCustomTransformers)==null?void 0:pe.call(Ne,s)));if(Be)return b.restoreEmitState(xe),{buildResult:B,step:v}=A9e(u,d,b,p,Be,32,"Declaration file"),{emitSkipped:!0,diagnostics:De.diagnostics};const{host:He,compilerHost:Je}=u,mt=(fe=b.hasChangedEmitSignature)!=null&&fe.call(b)?0:2,Ye=rB(),je=new Map,Ke=b.getCompilerOptions(),Gt=eV(Ke);let Yt,Ie;return Ae.forEach(({name:st,text:Bt,writeByteOrderMark:It,data:ei})=>{const ft=gm(u,st);je.set(gm(u,st),st),ei!=null&&ei.buildInfo&&B9e(u,ei.buildInfo,d,Ke,mt);const Ut=ei!=null&&ei.differsOnlyInMap?e7(u.host,st):void 0;dP(ne?{writeFile:ne}:Je,Ye,st,Bt,It),ei!=null&&ei.differsOnlyInMap?u.host.setModifiedTime(st,Ut):!Gt&&u.watch&&(Yt||(Yt=S9e(u,d))).set(ft,Ie||(Ie=SH(u.host)))}),ge(Ye,je,Ae.length?Ae[0].name:m1e(p,!He.useCaseSensitiveFileNames()),mt),De}function se(ne,ve){H.assertIsDefined(b),H.assert(v===5);const Se=b.emitBuildInfo((Ne,pe,fe,xe,Be,We)=>{We!=null&&We.buildInfo&&B9e(u,We.buildInfo,d,b.getCompilerOptions(),2),ne?ne(Ne,pe,fe,xe,Be,We):u.compilerHost.writeFile(Ne,pe,fe,xe,Be,We)},ve);return Se.diagnostics.length&&(YQ(u,Se.diagnostics),u.diagnostics.set(d,[...u.diagnostics.get(d),...Se.diagnostics]),B=64&B),Se.emittedFiles&&u.write&&Se.emittedFiles.forEach(Ne=>rit(u,p,Ne)),F9e(u,b,p),v=7,Se}function ge(ne,ve,Se,Ne){const pe=ne.getDiagnostics();return pe.length?({buildResult:B,step:v}=A9e(u,d,b,p,pe,64,"Emit"),pe):(u.write&&ve.forEach(fe=>rit(u,p,fe)),sit(u,p,d,F.Updating_unchanged_output_timestamps_of_project_0,ve),u.diagnostics.delete(d),u.projectStatus.set(d,{type:1,oldestOutputFileName:Se}),F9e(u,b,p),v=7,B=Ne,pe)}function ae(ne,ve){var Se,Ne,pe,fe;if(H.assert(t===1),u.options.dry){Oh(u,F.A_non_dry_build_would_update_output_of_project_0,s),B=1,v=7;return}u.options.verbose&&Oh(u,F.Updating_output_of_project_0,s);const{compilerHost:xe}=u;u.projectCompilerOptions=p.options,(Ne=(Se=u.host).beforeEmitBundle)==null||Ne.call(Se,p);const Be=z7e(p,xe,mt=>{const Ye=SM(u,mt.path);return t9(u,Ye,dE(u,Ye))},ve||((fe=(pe=u.host).getCustomTransformers)==null?void 0:fe.call(pe,s)));if(Ua(Be))return Oh(u,F.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1,s,i1(u,Be)),v=6,k=iit(0,u,s,d,f,p,E);H.assert(!!Be.length);const We=rB(),Ae=new Map;let De=2;const He=u.buildInfoCache.get(d).buildInfo||void 0;return Be.forEach(({name:mt,text:Ye,writeByteOrderMark:je,data:Ke})=>{var Gt,Yt;Ae.set(gm(u,mt),mt),Ke!=null&&Ke.buildInfo&&(((Gt=Ke.buildInfo.program)==null?void 0:Gt.outSignature)!==((Yt=He==null?void 0:He.program)==null?void 0:Yt.outSignature)&&(De&=-3),B9e(u,Ke.buildInfo,d,p.options,De)),dP(ne?{writeFile:ne}:xe,We,mt,Ye,je)}),{emitSkipped:!1,diagnostics:ge(We,Ae,Be[0].name,De)}}function Ce(ne,ve,Se,Ne){for(;v<=ne&&v<8;){const pe=v;switch(v){case 0:j();break;case 1:K(ve);break;case 2:Y(ve);break;case 3:oe(Se,ve,Ne);break;case 5:se(Se,ve);break;case 4:ae(Se,Ne);break;case 6:H.checkDefined(k).done(ve,Se,Ne),v=8;break;case 7:dIt(u,s,d,f,p,E,H.checkDefined(B)),v++;break}H.assert(v>pe)}}}function aIt({options:t},u,s){return u.type!==3||t.force?!0:s.fileNames.length===0||!!Lk(s).length||!eV(s.options)}function nit(t,u,s){if(!t.projectPendingBuild.size||e9(u))return;const{options:d,projectPendingBuild:f}=t;for(let p=0;p{const z=H.checkDefined(t.filesWatched.get(v));H.assert(che(z)),z.modifiedTime=M,z.callbacks.forEach(j=>j(k,T,M))},d,f,p,E);t.filesWatched.set(v,{callbacks:[s],watcher:B,modifiedTime:b})}return{close:()=>{const B=H.checkDefined(t.filesWatched.get(v));H.assert(che(B)),B.callbacks.length===1?(t.filesWatched.delete(v),Vm(B)):Vy(B.callbacks,s)}}}function S9e(t,u){if(!t.watch)return;let s=t.outputTimeStamps.get(u);return s||t.outputTimeStamps.set(u,s=new Map),s}function B9e(t,u,s,d,f){const p=f5(d),E=w9e(t,p,s),v=SH(t.host);E?(E.buildInfo=u,E.modifiedTime=v,f&2||(E.latestChangedDtsTime=v)):t.buildInfoCache.set(s,{path:gm(t,p),buildInfo:u,modifiedTime:v,latestChangedDtsTime:f&2?void 0:v})}function w9e(t,u,s){const d=gm(t,u),f=t.buildInfoCache.get(s);return(f==null?void 0:f.path)===d?f:void 0}function oit(t,u,s,d){const f=gm(t,u),p=t.buildInfoCache.get(s);if(p!==void 0&&p.path===f)return p.buildInfo||void 0;const E=t.readFileWithCache(u),v=E?xQ(u,E):void 0;return t.buildInfoCache.set(s,{path:f,buildInfo:v||!1,modifiedTime:d||W_}),v}function T9e(t,u,s,d){const f=ait(t,u);if(sJ&&(j=Se,J=Ne),M&&Y.add(gm(t,Se))}if(M){z||(z=K1e(M,b,v));for(const Se of z.roots)if(!Y.has(Se))return{type:10,buildInfoFile:b,inputFile:Se}}if(!b){const Se=_Q(u,!v.useCaseSensitiveFileNames()),Ne=S9e(t,s);for(const pe of Se){const fe=gm(t,pe);let xe=Ne==null?void 0:Ne.get(fe);if(xe||(xe=e7(t.host,pe),Ne==null||Ne.set(fe,xe)),xe===W_)return{type:4,missingOutputFileName:pe};if(xeT9e(t,Se,k,B));if(ne)return ne;const ve=L(t.lastCachedPackageJsonLookups.get(s)||Dt,([Se])=>T9e(t,Se,k,B));return ve||(ge&&se?{type:3,outOfDateOutputFileName:B,newerProjectName:ae}:{type:se?2:K?15:1,newestInputFileTime:J,newestInputFileName:j,oldestOutputFileName:B})}function lIt(t,u,s){return t.buildInfoCache.get(s).path===u.path}function L9e(t,u,s){if(u===void 0)return{type:0,reason:"File deleted mid-build"};const d=t.projectStatus.get(s);if(d!==void 0)return d;al("SolutionBuilder::beforeUpToDateCheck");const f=sIt(t,u,s);return al("SolutionBuilder::afterUpToDateCheck"),Lm("SolutionBuilder::Up-to-date check","SolutionBuilder::beforeUpToDateCheck","SolutionBuilder::afterUpToDateCheck"),t.projectStatus.set(s,f),f}function sit(t,u,s,d,f){if(u.options.noEmit)return;let p;const E=f5(u.options);if(E){f!=null&&f.has(gm(t,E))||(t.options.verbose&&Oh(t,d,u.options.configFilePath),t.host.setModifiedTime(E,p=SH(t.host)),w9e(t,E,s).modifiedTime=p),t.outputTimeStamps.delete(s);return}const{host:v}=t,b=_Q(u,!v.useCaseSensitiveFileNames()),B=S9e(t,s),k=B?new Set:void 0;if(!f||b.length!==f.size){let T=!!t.options.verbose;for(const M of b){const z=gm(t,M);f!=null&&f.has(z)||(T&&(T=!1,Oh(t,d,u.options.configFilePath)),v.setModifiedTime(M,p||(p=SH(t.host))),B&&(B.set(z,p),k.add(z)))}}B==null||B.forEach((T,M)=>{!(f!=null&&f.has(M))&&!k.has(M)&&B.delete(M)})}function cIt(t,u,s){if(!u.composite)return;const d=H.checkDefined(t.buildInfoCache.get(s));if(d.latestChangedDtsTime!==void 0)return d.latestChangedDtsTime||void 0;const f=d.buildInfo&&d.buildInfo.program&&d.buildInfo.program.latestChangedDtsFile?t.host.getModifiedTime(qa(d.buildInfo.program.latestChangedDtsFile,dr(d.path))):void 0;return d.latestChangedDtsTime=f||!1,f}function lit(t,u,s){if(t.options.dry)return Oh(t,F.A_non_dry_build_would_update_timestamps_for_output_of_project_0,u.options.configFilePath);sit(t,u,s,F.Updating_output_timestamps_of_project_0),t.projectStatus.set(s,{type:1,oldestOutputFileName:m1e(u,!t.host.useCaseSensitiveFileNames())})}function dIt(t,u,s,d,f,p,E){if(!(E&124)&&f.options.composite)for(let v=d+1;vt.diagnostics.has(dE(t,B)))?b?2:1:0}function dit(t,u,s){al("SolutionBuilder::beforeClean");const d=fIt(t,u,s);return al("SolutionBuilder::afterClean"),Lm("SolutionBuilder::Clean","SolutionBuilder::beforeClean","SolutionBuilder::afterClean"),d}function fIt(t,u,s){const d=Ztt(t,u,s);if(!d)return 3;if(e9(d))return YQ(t,d.circularDiagnostics),4;const{options:f,host:p}=t,E=f.dry?[]:void 0;for(const v of d){const b=dE(t,v),B=t9(t,v,b);if(B===void 0){Eit(t,b);continue}const k=_Q(B,!p.useCaseSensitiveFileNames());if(!k.length)continue;const T=new Set(B.fileNames.map(M=>gm(t,M)));for(const M of k)T.has(gm(t,M))||p.fileExists(M)&&(E?E.push(M):(p.deleteFile(M),N9e(t,b,0)))}return E&&Oh(t,F.A_non_dry_build_would_delete_the_following_files_Colon_0,E.map(v=>`\r + * ${v}`).join("")),0}function N9e(t,u,s){t.host.getParsedCommandLine&&s===1&&(s=2),s===2&&(t.configFileCache.delete(u),t.buildOrder=void 0),t.needsSummary=!0,Qtt(t,u),Xtt(t,u,s),Ytt(t)}function ZQ(t,u,s){t.reportFileChangeDetected=!0,N9e(t,u,s),hit(t,250,!0)}function hit(t,u,s){const{hostWithWatch:d}=t;!d.setTimeout||!d.clearTimeout||(t.timerToBuildInvalidatedProject&&d.clearTimeout(t.timerToBuildInvalidatedProject),t.timerToBuildInvalidatedProject=d.setTimeout(mIt,u,"timerToBuildInvalidatedProject",t,s))}function mIt(t,u,s){al("SolutionBuilder::beforeBuild");const d=pIt(u,s);al("SolutionBuilder::afterBuild"),Lm("SolutionBuilder::Build","SolutionBuilder::beforeBuild","SolutionBuilder::afterBuild"),d&&_it(u,d)}function pIt(t,u){t.timerToBuildInvalidatedProject=void 0,t.reportFileChangeDetected&&(t.reportFileChangeDetected=!1,t.projectErrorsReported.clear(),z9e(t,F.File_change_detected_Starting_incremental_compilation));let s=0;const d=qQ(t),f=k9e(t,d,!1);if(f)for(f.done(),s++;t.projectPendingBuild.size;){if(t.timerToBuildInvalidatedProject)return;const p=nit(t,d,!1);if(!p)break;if(p.kind!==2&&(u||s===5)){hit(t,100,!1);return}uit(t,p,d).done(),p.kind!==2&&s++}return y9e(t),d}function fit(t,u,s,d){!t.watch||t.allWatchedConfigFiles.has(s)||t.allWatchedConfigFiles.set(s,dhe(t,u,()=>ZQ(t,s,2),2e3,d==null?void 0:d.watchOptions,cd.ConfigFile,u))}function mit(t,u,s){bQ(u,s==null?void 0:s.options,t.allWatchedExtendedConfigFiles,(d,f)=>dhe(t,d,()=>{var p;return(p=t.allWatchedExtendedConfigFiles.get(f))==null?void 0:p.projects.forEach(E=>ZQ(t,E,2))},2e3,s==null?void 0:s.watchOptions,cd.ExtendedConfigFile),d=>gm(t,d))}function pit(t,u,s,d){t.watch&&DH(C9e(t.allWatchedWildcardDirectories,s),new Map(Object.entries(d.wildcardDirectories)),(f,p)=>t.watchDirectory(f,E=>{var v;xH({watchedDirPath:gm(t,f),fileOrDirectory:E,fileOrDirectoryPath:gm(t,E),configFileName:u,currentDirectory:t.compilerHost.getCurrentDirectory(),options:d.options,program:t.builderPrograms.get(s)||((v=nIt(t,s))==null?void 0:v.fileNames),useCaseSensitiveFileNames:t.parseConfigFileHost.useCaseSensitiveFileNames,writeLog:b=>t.writeLog(b),toPath:b=>gm(t,b)})||ZQ(t,s,1)},p,d==null?void 0:d.watchOptions,cd.WildcardDirectory,u))}function P9e(t,u,s,d){t.watch&&cB(C9e(t.allWatchedInputFiles,s),lg(d.fileNames,f=>gm(t,f)),{createNewValue:(f,p)=>dhe(t,p,()=>ZQ(t,s,0),250,d==null?void 0:d.watchOptions,cd.SourceFile,u),onDeleteValue:fg})}function M9e(t,u,s,d){!t.watch||!t.lastCachedPackageJsonLookups||cB(C9e(t.allWatchedPackageJsonFiles,s),new Map(t.lastCachedPackageJsonLookups.get(s)),{createNewValue:(f,p)=>dhe(t,f,()=>ZQ(t,s,0),2e3,d==null?void 0:d.watchOptions,cd.PackageJson,u),onDeleteValue:fg})}function gIt(t,u){if(t.watchAllProjectsPending){al("SolutionBuilder::beforeWatcherCreation"),t.watchAllProjectsPending=!1;for(const s of UQ(u)){const d=dE(t,s),f=t9(t,s,d);fit(t,s,d,f),mit(t,d,f),f&&(pit(t,s,d,f),P9e(t,s,d,f),M9e(t,s,d,f))}al("SolutionBuilder::afterWatcherCreation"),Lm("SolutionBuilder::Watcher creation","SolutionBuilder::beforeWatcherCreation","SolutionBuilder::afterWatcherCreation")}}function EIt(t){rf(t.allWatchedConfigFiles,fg),rf(t.allWatchedExtendedConfigFiles,Vm),rf(t.allWatchedWildcardDirectories,u=>rf(u,Vm)),rf(t.allWatchedInputFiles,u=>rf(u,fg)),rf(t.allWatchedPackageJsonFiles,u=>rf(u,fg))}function git(t,u,s,d,f){const p=iIt(t,u,s,d,f);return{build:(E,v,b,B)=>cit(p,E,v,b,B),clean:E=>dit(p,E),buildReferences:(E,v,b,B)=>cit(p,E,v,b,B,!0),cleanReferences:E=>dit(p,E,!0),getNextInvalidatedProject:E=>(eit(p,E),k9e(p,qQ(p),!1)),getBuildOrder:()=>qQ(p),getUpToDateStatusOfProject:E=>{const v=SM(p,E),b=dE(p,v);return L9e(p,t9(p,v,b),b)},invalidateProject:(E,v)=>N9e(p,E,v||0),close:()=>EIt(p)}}function i1(t,u){return TN(u,t.compilerHost.getCurrentDirectory(),t.compilerHost.getCanonicalFileName)}function Oh(t,u,...s){t.host.reportSolutionBuilderStatus(dc(u,...s))}function z9e(t,u,...s){var d,f;(f=(d=t.hostWithWatch).onWatchStatusChange)==null||f.call(d,dc(u,...s),t.host.getNewLine(),t.baseCompilerOptions)}function YQ({host:t},u){u.forEach(s=>t.reportDiagnostic(s))}function BM(t,u,s){YQ(t,s),t.projectErrorsReported.set(u,!0),s.length&&t.diagnostics.set(u,s)}function Eit(t,u){BM(t,u,[t.configFileCache.get(u)])}function _it(t,u){if(!t.needsSummary)return;t.needsSummary=!1;const s=t.watch||!!t.host.reportErrorSummary,{diagnostics:d}=t;let f=0,p=[];e9(u)?(Dit(t,u.buildOrder),YQ(t,u.circularDiagnostics),s&&(f+=VQ(u.circularDiagnostics)),s&&(p=[...p,...HQ(u.circularDiagnostics)])):(u.forEach(E=>{const v=dE(t,E);t.projectErrorsReported.has(v)||YQ(t,d.get(v)||Dt)}),s&&d.forEach(E=>f+=VQ(E)),s&&d.forEach(E=>[...p,...HQ(E)])),t.watch?z9e(t,Z1e(f),f):t.host.reportErrorSummary&&t.host.reportErrorSummary(f,p)}function Dit(t,u){t.options.verbose&&Oh(t,F.Projects_in_this_build_Colon_0,u.map(s=>`\r + * `+i1(t,s)).join(""))}function _It(t,u,s){switch(s.type){case 6:return Oh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,i1(t,u),i1(t,s.outOfDateOutputFileName),i1(t,s.newerInputFileName));case 7:return Oh(t,F.Project_0_is_out_of_date_because_output_1_is_older_than_input_2,i1(t,u),i1(t,s.outOfDateOutputFileName),i1(t,s.newerProjectName));case 4:return Oh(t,F.Project_0_is_out_of_date_because_output_file_1_does_not_exist,i1(t,u),i1(t,s.missingOutputFileName));case 5:return Oh(t,F.Project_0_is_out_of_date_because_there_was_error_reading_file_1,i1(t,u),i1(t,s.fileName));case 8:return Oh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_some_of_the_changes_were_not_emitted,i1(t,u),i1(t,s.buildInfoFile));case 9:return Oh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_there_is_change_in_compilerOptions,i1(t,u),i1(t,s.buildInfoFile));case 10:return Oh(t,F.Project_0_is_out_of_date_because_buildinfo_file_1_indicates_that_file_2_was_root_file_of_compilation_but_not_any_more,i1(t,u),i1(t,s.buildInfoFile),i1(t,s.inputFile));case 1:if(s.newestInputFileTime!==void 0)return Oh(t,F.Project_0_is_up_to_date_because_newest_input_1_is_older_than_output_2,i1(t,u),i1(t,s.newestInputFileName||""),i1(t,s.oldestOutputFileName||""));break;case 3:return Oh(t,F.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed,i1(t,u),i1(t,s.newerProjectName));case 2:return Oh(t,F.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies,i1(t,u));case 15:return Oh(t,F.Project_0_is_up_to_date_but_needs_to_update_timestamps_of_output_files_that_are_older_than_input_files,i1(t,u));case 11:return Oh(t,F.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date,i1(t,u),i1(t,s.upstreamProjectName));case 12:return Oh(t,s.upstreamProjectBlocked?F.Project_0_can_t_be_built_because_its_dependency_1_was_not_built:F.Project_0_can_t_be_built_because_its_dependency_1_has_errors,i1(t,u),i1(t,s.upstreamProjectName));case 0:return Oh(t,F.Failed_to_parse_file_0_Colon_1,i1(t,u),s.reason);case 14:return Oh(t,F.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2,i1(t,u),s.version,_);case 17:return Oh(t,F.Project_0_is_being_forcibly_rebuilt,i1(t,u))}}function hhe(t,u,s){t.options.verbose&&_It(t,u,s)}var xit,vit,fhe,DIt=o({"src/compiler/tsbuildPublic.ts"(){Bo(),Wy(),xit=new Date(-864e13),vit=new Date(864e13),fhe=(t=>(t[t.Build=0]="Build",t[t.UpdateBundle=1]="UpdateBundle",t[t.UpdateOutputFileStamps=2]="UpdateOutputFileStamps",t))(fhe||{})}}),Bo=o({"src/compiler/_namespaces/ts.ts"(){y(),Awt(),Swt(),Rwt(),Vwt(),Hwt(),Xwt(),Rqe(),sTt(),fTt(),mTt(),DTt(),kTt(),bLt(),yLt(),kLt(),FLt(),MLt(),zLt(),ILt(),RLt(),dNt(),hNt(),CNt(),jNt(),fPt(),DPt(),xPt(),TPt(),IPt(),GPt(),QPt(),dMt(),hMt(),vMt(),CMt(),bMt(),wMt(),TMt(),LMt(),NMt(),PMt(),MMt(),zMt(),IMt(),RMt(),VMt(),HMt(),KMt(),WMt(),GMt(),$Mt(),UMt(),qMt(),ZMt(),YMt(),QMt(),uzt(),czt(),xzt(),Czt(),Fzt(),Azt(),Szt(),Wzt(),Gzt(),Uzt(),Yzt(),Qzt(),Xzt(),DIt(),OAe(),Wy()}});function Cit(t){return d1.args.includes(t)}function bit(t){const u=d1.args.indexOf(t);return u>=0&&u{t.GlobalCacheLocation="--globalTypingsCacheLocation",t.LogFile="--logFile",t.EnableTelemetry="--enableTelemetry",t.TypingSafeListLocation="--typingSafeListLocation",t.TypesMapLocation="--typesMapLocation",t.NpmLocation="--npmLocation",t.ValidateDefaultNpmLocation="--validateDefaultNpmLocation"})(ghe||(ghe={})),j9e=` + `}}),vIt=o({"src/jsTyping/types.ts"(){}}),eX=o({"src/jsTyping/_namespaces/ts.server.ts"(){xIt(),vIt()}});function kit(t,u){return new Np(uo(u,`ts${g}`)||uo(u,"latest")).compareTo(t.version)<=0}function Fit(t){return G9e.has(t)?"node":t}function CIt(t,u){const s=$V(u,d=>t.readFile(d));return new Map(Object.entries(s.config))}function bIt(t,u){var s;const d=$V(u,f=>t.readFile(f));if((s=d.config)!=null&&s.simpleMap)return new Map(Object.entries(d.config.simpleMap))}function yIt(t,u,s,d,f,p,E,v,b,B){if(!E||!E.enable)return{cachedTypingPaths:[],newTypingNames:[],filesToWatch:[]};const k=new Map;s=qi(s,ge=>{const ae=Uo(ge);if(I2(ae))return ae});const T=[];E.include&&Y(E.include,"Explicitly included types");const M=E.exclude||[];if(!B.types){const ge=new Set(s.map(dr));ge.add(d),ge.forEach(ae=>{oe(ae,"bower.json","bower_components",T),oe(ae,"package.json","node_modules",T)})}if(E.disableFilenameBasedTypeAcquisition||se(s),v){const ge=li(v.map(Fit),XA,fh);Y(ge,"Inferred typings from unresolved imports")}for(const ge of M)k.delete(ge)&&u&&u(`Typing for ${ge} is in exclude list, will be ignored.`);p.forEach((ge,ae)=>{const Ce=b.get(ae);k.get(ae)===!1&&Ce!==void 0&&kit(ge,Ce)&&k.set(ae,ge.typingLocation)});const z=[],j=[];k.forEach((ge,ae)=>{ge?j.push(ge):z.push(ae)});const J={cachedTypingPaths:j,newTypingNames:z,filesToWatch:T};return u&&u(`Finished typings discovery:${nw(J)}`),J;function K(ge){k.has(ge)||k.set(ge,!1)}function Y(ge,ae){u&&u(`${ae}: ${JSON.stringify(ge)}`),L(ge,K)}function oe(ge,ae,Ce,ne){const ve=hr(ge,ae);let Se,Ne;t.fileExists(ve)&&(ne.push(ve),Se=$V(ve,Be=>t.readFile(Be)).config,Ne=Vu([Se.dependencies,Se.devDependencies,Se.optionalDependencies,Se.peerDependencies],Ps),Y(Ne,`Typing names in '${ve}' dependencies`));const pe=hr(ge,Ce);if(ne.push(pe),!t.directoryExists(pe))return;const fe=[],xe=Ne?Ne.map(Be=>hr(pe,Be,ae)):t.readDirectory(pe,[".json"],void 0,void 0,3).filter(Be=>{if(Bc(Be)!==ae)return!1;const We=yd(Uo(Be)),Ae=We[We.length-3][0]==="@";return Ae&&Ug(We[We.length-4])===Ce||!Ae&&Ug(We[We.length-3])===Ce});u&&u(`Searching for typing names in ${pe}; all files: ${JSON.stringify(xe)}`);for(const Be of xe){const We=Uo(Be),De=$V(We,Je=>t.readFile(Je)).config;if(!De.name)continue;const He=De.types||De.typings;if(He){const Je=qa(He,dr(We));t.fileExists(Je)?(u&&u(` Package '${De.name}' provides its own types.`),k.set(De.name,Je)):u&&u(` Package '${De.name}' provides its own types but they are missing.`)}else fe.push(De.name)}Y(fe," Found package names")}function se(ge){const ae=qi(ge,ne=>{if(!I2(ne))return;const ve=xh(Ug(Bc(ne))),Se=coe(ve);return f.get(Se)});ae.length&&Y(ae,"Inferred typings from file names"),Ge(ge,ne=>Ml(ne,".jsx"))&&(u&&u("Inferred 'react' typings due to presence of '.jsx' extension"),K("react"))}}function kIt(t){return V9e(t,!0)}function V9e(t,u){if(!t)return 1;if(t.length>$9e)return 2;if(t.charCodeAt(0)===46)return 3;if(t.charCodeAt(0)===95)return 4;if(u){const s=/^@([^/]+)\/([^/]+)$/.exec(t);if(s){const d=V9e(s[1],!1);if(d!==0)return{name:s[1],isScopeName:!0,result:d};const f=V9e(s[2],!1);return f!==0?{name:s[2],isScopeName:!1,result:f}:0}}return encodeURIComponent(t)!==t?5:0}function FIt(t,u){return typeof t=="object"?Ait(u,t.result,t.name,t.isScopeName):Ait(u,t,u,!1)}function Ait(t,u,s,d){const f=d?"Scope":"Package";switch(u){case 1:return`'${t}':: ${f} name '${s}' cannot be empty`;case 2:return`'${t}':: ${f} name '${s}' should be less than ${$9e} characters`;case 3:return`'${t}':: ${f} name '${s}' cannot start with '.'`;case 4:return`'${t}':: ${f} name '${s}' cannot start with '_'`;case 5:return`'${t}':: ${f} name '${s}' contains non URI safe characters`;case 0:return H.fail();default:H.assertNever(u)}}var H9e,K9e,W9e,G9e,J9e,$9e,AIt=o({"src/jsTyping/jsTyping.ts"(){wH(),eX(),H9e=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","https","http2","inspector","module","net","os","path","perf_hooks","process","punycode","querystring","readline","repl","stream","stream/promises","string_decoder","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"],K9e=H9e.map(t=>`node:${t}`),W9e=[...H9e,...K9e],G9e=new Set(W9e),J9e=(t=>(t[t.Ok=0]="Ok",t[t.EmptyName=1]="EmptyName",t[t.NameTooLong=2]="NameTooLong",t[t.NameStartsWithDot=3]="NameStartsWithDot",t[t.NameStartsWithUnderscore=4]="NameStartsWithUnderscore",t[t.NameContainsNonURISafeCharacters=5]="NameContainsNonURISafeCharacters",t))(J9e||{}),$9e=214}}),s3={};h(s3,{NameValidationResult:()=>J9e,discoverTypings:()=>yIt,isTypingUpToDate:()=>kit,loadSafeList:()=>CIt,loadTypesMap:()=>bIt,nodeCoreModuleList:()=>W9e,nodeCoreModules:()=>G9e,nonRelativeModuleNameForTypingCache:()=>Fit,prefixedNodeCoreModuleList:()=>K9e,renderPackageNameValidationFailure:()=>FIt,validatePackageName:()=>kIt});var SIt=o({"src/jsTyping/_namespaces/ts.JsTyping.ts"(){AIt()}}),wH=o({"src/jsTyping/_namespaces/ts.ts"(){Bo(),SIt(),eX()}});function tX(t){return{indentSize:4,tabSize:4,newLineCharacter:t||` +`,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 iX,Ehe,_he,Dhe,m4,xhe,vhe,Che,bhe,yhe,khe,Fhe,U9e,TH,Ahe,She,Bhe,whe,The,Lhe,Nhe,Phe,Mhe,BIt=o({"src/services/types.ts"(){(t=>{class u{constructor(f){this.text=f}getText(f,p){return f===0&&p===this.text.length?this.text:this.text.substring(f,p)}getLength(){return this.text.length}getChangeRange(){}}function s(d){return new u(d)}t.fromString=s})(iX||(iX={})),Ehe=(t=>(t[t.Dependencies=1]="Dependencies",t[t.DevDependencies=2]="DevDependencies",t[t.PeerDependencies=4]="PeerDependencies",t[t.OptionalDependencies=8]="OptionalDependencies",t[t.All=15]="All",t))(Ehe||{}),_he=(t=>(t[t.Off=0]="Off",t[t.On=1]="On",t[t.Auto=2]="Auto",t))(_he||{}),Dhe=(t=>(t[t.Semantic=0]="Semantic",t[t.PartialSemantic=1]="PartialSemantic",t[t.Syntactic=2]="Syntactic",t))(Dhe||{}),m4={},xhe=(t=>(t.Original="original",t.TwentyTwenty="2020",t))(xhe||{}),vhe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(vhe||{}),Che=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(Che||{}),bhe=(t=>(t.Type="Type",t.Parameter="Parameter",t.Enum="Enum",t))(bhe||{}),yhe=(t=>(t.none="none",t.definition="definition",t.reference="reference",t.writtenReference="writtenReference",t))(yhe||{}),khe=(t=>(t[t.None=0]="None",t[t.Block=1]="Block",t[t.Smart=2]="Smart",t))(khe||{}),Fhe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(Fhe||{}),U9e=tX(` +`),TH=(t=>(t[t.aliasName=0]="aliasName",t[t.className=1]="className",t[t.enumName=2]="enumName",t[t.fieldName=3]="fieldName",t[t.interfaceName=4]="interfaceName",t[t.keyword=5]="keyword",t[t.lineBreak=6]="lineBreak",t[t.numericLiteral=7]="numericLiteral",t[t.stringLiteral=8]="stringLiteral",t[t.localName=9]="localName",t[t.methodName=10]="methodName",t[t.moduleName=11]="moduleName",t[t.operator=12]="operator",t[t.parameterName=13]="parameterName",t[t.propertyName=14]="propertyName",t[t.punctuation=15]="punctuation",t[t.space=16]="space",t[t.text=17]="text",t[t.typeParameterName=18]="typeParameterName",t[t.enumMemberName=19]="enumMemberName",t[t.functionName=20]="functionName",t[t.regularExpressionLiteral=21]="regularExpressionLiteral",t[t.link=22]="link",t[t.linkName=23]="linkName",t[t.linkText=24]="linkText",t))(TH||{}),Ahe=(t=>(t[t.None=0]="None",t[t.MayIncludeAutoImports=1]="MayIncludeAutoImports",t[t.IsImportStatementCompletion=2]="IsImportStatementCompletion",t[t.IsContinuation=4]="IsContinuation",t[t.ResolvedModuleSpecifiers=8]="ResolvedModuleSpecifiers",t[t.ResolvedModuleSpecifiersBeyondLimit=16]="ResolvedModuleSpecifiersBeyondLimit",t[t.MayIncludeMethodSnippets=32]="MayIncludeMethodSnippets",t))(Ahe||{}),She=(t=>(t.Comment="comment",t.Region="region",t.Code="code",t.Imports="imports",t))(She||{}),Bhe=(t=>(t[t.JavaScript=0]="JavaScript",t[t.SourceMap=1]="SourceMap",t[t.Declaration=2]="Declaration",t))(Bhe||{}),whe=(t=>(t[t.None=0]="None",t[t.InMultiLineCommentTrivia=1]="InMultiLineCommentTrivia",t[t.InSingleQuoteStringLiteral=2]="InSingleQuoteStringLiteral",t[t.InDoubleQuoteStringLiteral=3]="InDoubleQuoteStringLiteral",t[t.InTemplateHeadOrNoSubstitutionTemplate=4]="InTemplateHeadOrNoSubstitutionTemplate",t[t.InTemplateMiddleOrTail=5]="InTemplateMiddleOrTail",t[t.InTemplateSubstitutionPosition=6]="InTemplateSubstitutionPosition",t))(whe||{}),The=(t=>(t[t.Punctuation=0]="Punctuation",t[t.Keyword=1]="Keyword",t[t.Operator=2]="Operator",t[t.Comment=3]="Comment",t[t.Whitespace=4]="Whitespace",t[t.Identifier=5]="Identifier",t[t.NumberLiteral=6]="NumberLiteral",t[t.BigIntLiteral=7]="BigIntLiteral",t[t.StringLiteral=8]="StringLiteral",t[t.RegExpLiteral=9]="RegExpLiteral",t))(The||{}),Lhe=(t=>(t.unknown="",t.warning="warning",t.keyword="keyword",t.scriptElement="script",t.moduleElement="module",t.classElement="class",t.localClassElement="local class",t.interfaceElement="interface",t.typeElement="type",t.enumElement="enum",t.enumMemberElement="enum member",t.variableElement="var",t.localVariableElement="local var",t.variableUsingElement="using",t.variableAwaitUsingElement="await using",t.functionElement="function",t.localFunctionElement="local function",t.memberFunctionElement="method",t.memberGetAccessorElement="getter",t.memberSetAccessorElement="setter",t.memberVariableElement="property",t.memberAccessorVariableElement="accessor",t.constructorImplementationElement="constructor",t.callSignatureElement="call",t.indexSignatureElement="index",t.constructSignatureElement="construct",t.parameterElement="parameter",t.typeParameterElement="type parameter",t.primitiveType="primitive type",t.label="label",t.alias="alias",t.constElement="const",t.letElement="let",t.directory="directory",t.externalModuleName="external module name",t.jsxAttribute="JSX attribute",t.string="string",t.link="link",t.linkName="link name",t.linkText="link text",t))(Lhe||{}),Nhe=(t=>(t.none="",t.publicMemberModifier="public",t.privateMemberModifier="private",t.protectedMemberModifier="protected",t.exportedModifier="export",t.ambientModifier="declare",t.staticModifier="static",t.abstractModifier="abstract",t.optionalModifier="optional",t.deprecatedModifier="deprecated",t.dtsModifier=".d.ts",t.tsModifier=".ts",t.tsxModifier=".tsx",t.jsModifier=".js",t.jsxModifier=".jsx",t.jsonModifier=".json",t.dmtsModifier=".d.mts",t.mtsModifier=".mts",t.mjsModifier=".mjs",t.dctsModifier=".d.cts",t.ctsModifier=".cts",t.cjsModifier=".cjs",t))(Nhe||{}),Phe=(t=>(t.comment="comment",t.identifier="identifier",t.keyword="keyword",t.numericLiteral="number",t.bigintLiteral="bigint",t.operator="operator",t.stringLiteral="string",t.whiteSpace="whitespace",t.text="text",t.punctuation="punctuation",t.className="class name",t.enumName="enum name",t.interfaceName="interface name",t.moduleName="module name",t.typeParameterName="type parameter name",t.typeAliasName="type alias name",t.parameterName="parameter name",t.docCommentTagName="doc comment tag name",t.jsxOpenTagName="jsx open tag name",t.jsxCloseTagName="jsx close tag name",t.jsxSelfClosingTagName="jsx self closing tag name",t.jsxAttribute="jsx attribute",t.jsxText="jsx text",t.jsxAttributeStringLiteralValue="jsx attribute string literal value",t))(Phe||{}),Mhe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(Mhe||{})}});function LH(t){switch(t.kind){case 260:return Xn(t)&&Vse(t)?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 353:return t.name===void 0?3:2;case 306:case 263:return 3;case 267:return P1(t)||oD(t)===1?5:4;case 266:case 275:case 276:case 271:case 272:case 277:case 278:return 7;case 312:return 5}return 7}function Pk(t){t=Uhe(t);const u=t.parent;return t.kind===312?1:ic(u)||th(u)||a_(u)||bf(u)||u_(u)||_1(u)&&t===u.name?7:nX(t)?wIt(t):X3(t)?LH(u):sm(t)&&Tn(t,dg(XP,o7,Ov))?7:PIt(t)?2:TIt(t)?4:wl(u)?(H.assert(_g(u.parent)),2):zv(u)?3:1}function wIt(t){const u=t.kind===166?t:vf(t.parent)&&t.parent.right===t?t.parent:void 0;return u&&u.parent.kind===271?7:4}function nX(t){for(;t.parent.kind===166;)t=t.parent;return U8(t.parent)&&t.parent.moduleReference===t}function TIt(t){return LIt(t)||NIt(t)}function LIt(t){let u=t,s=!0;if(u.parent.kind===166){for(;u.parent&&u.parent.kind===166;)u=u.parent;s=u.right===t}return u.parent.kind===183&&!s}function NIt(t){let u=t,s=!0;if(u.parent.kind===211){for(;u.parent&&u.parent.kind===211;)u=u.parent;s=u.name===t}if(!s&&u.parent.kind===233&&u.parent.parent.kind===298){const d=u.parent.parent.parent;return d.kind===263&&u.parent.parent.token===119||d.kind===264&&u.parent.parent.token===96}return!1}function PIt(t){switch(EP(t)&&(t=t.parent),t.kind){case 110:return!Y_(t);case 197:return!0}switch(t.parent.kind){case 183:return!0;case 205:return!t.parent.isTypeOf;case 233:return Z_(t.parent)}return!1}function zhe(t,u=!1,s=!1){return NH(t,Mo,Rhe,u,s)}function TM(t,u=!1,s=!1){return NH(t,V2,Rhe,u,s)}function Ihe(t,u=!1,s=!1){return NH(t,UE,Rhe,u,s)}function q9e(t,u=!1,s=!1){return NH(t,Dk,MIt,u,s)}function Z9e(t,u=!1,s=!1){return NH(t,E1,Rhe,u,s)}function Y9e(t,u=!1,s=!1){return NH(t,Ih,zIt,u,s)}function Rhe(t){return t.expression}function MIt(t){return t.tag}function zIt(t){return t.tagName}function NH(t,u,s,d,f){let p=d?Q9e(t):uX(t);return f&&(p=vc(p)),!!p&&!!p.parent&&u(p.parent)&&s(p.parent)===p}function uX(t){return uw(t)?t.parent:t}function Q9e(t){return uw(t)||Hhe(t)?t.parent:t}function rX(t,u){for(;t;){if(t.kind===256&&t.label.escapedText===u)return t.label;t=t.parent}}function PH(t,u){return Ru(t.expression)?t.expression.name.text===u:!1}function MH(t){var u;return at(t)&&((u=ar(t.parent,jN))==null?void 0:u.label)===t}function Ohe(t){var u;return at(t)&&((u=ar(t.parent,H2))==null?void 0:u.label)===t}function jhe(t){return Ohe(t)||MH(t)}function Vhe(t){var u;return((u=ar(t.parent,I8))==null?void 0:u.tagName)===t}function X9e(t){var u;return((u=ar(t.parent,vf))==null?void 0:u.right)===t}function uw(t){var u;return((u=ar(t.parent,Ru))==null?void 0:u.name)===t}function Hhe(t){var u;return((u=ar(t.parent,q0))==null?void 0:u.argumentExpression)===t}function Khe(t){var u;return((u=ar(t.parent,xc))==null?void 0:u.name)===t}function Whe(t){var u;return at(t)&&((u=ar(t.parent,Co))==null?void 0:u.name)===t}function aX(t){switch(t.parent.kind){case 172:case 171:case 303:case 306:case 174:case 173:case 177:case 178:case 267:return Ya(t.parent)===t;case 212:return t.parent.argumentExpression===t;case 167:return!0;case 201:return t.parent.parent.kind===199;default:return!1}}function eSe(t){return yv(t.parent.parent)&&eP(t.parent.parent)===t}function Mk(t){for($4(t)&&(t=t.parent.parent);;){if(t=t.parent,!t)return;switch(t.kind){case 312:case 174:case 173:case 262:case 218:case 177:case 178:case 263:case 264:case 266:case 267:return t}}}function ib(t){switch(t.kind){case 312:return Lc(t)?"module":"script";case 267:return"module";case 263:case 231:return"class";case 264:return"interface";case 265:case 345:case 353:return"type";case 266:return"enum";case 260:return u(t);case 208:return u(e_(t));case 219:case 262:case 218:return"function";case 177:return"getter";case 178:return"setter";case 174:case 173:return"method";case 303:const{initializer:s}=t;return Co(s)?"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 Qu(t,31)?"property":"parameter";case 271:case 276:case 281:case 274:case 280:return"alias";case 226:const d=ec(t),{right:f}=t;switch(d){case 7:case 8:case 9:case 0:return"";case 1:case 2:const E=ib(f);return E===""?"const":E;case 3:return w0(f)?"method":"property";case 4:return"property";case 5:return w0(f)?"method":"property";case 6:return"local class";default:return""}case 80:return u_(t.parent)?"alias":"";case 277:const p=ib(t.expression);return p===""?"const":p;default:return""}function u(s){return K8(s)?"const":oq(s)?"let":"var"}}function rw(t){switch(t.kind){case 110:return!0;case 80:return ale(t)&&t.parent.kind===169;default:return!1}}function np(t,u){const s=$3(u),d=u.getLineAndCharacterOfPosition(t).line;return s[d]}function Hm(t,u){return Ghe(t.pos,t.end,u)}function tSe(t,u){return IH(t,u.pos)&&IH(t,u.end)}function zH(t,u){return t.pos<=u&&u<=t.end}function IH(t,u){return t.pos=s.end}function RH(t,u,s){return t.pos<=u&&t.end>=s}function LM(t,u,s){return sX(t.pos,t.end,u,s)}function oX(t,u,s,d){return sX(t.getStart(u),t.end,s,d)}function sX(t,u,s,d){const f=Math.max(t,s),p=Math.min(u,d);return fd.kind===u)}function lX(t){const u=Le(t.parent.getChildren(),s=>MB(s)&&Hm(s,t));return H.assert(!u||kt(u.getChildren(),t)),u}function Sit(t){return t.kind===90}function IIt(t){return t.kind===86}function RIt(t){return t.kind===100}function OIt(t){if(gh(t))return t.name;if(Jc(t)){const u=t.modifiers&&Le(t.modifiers,Sit);if(u)return u}if(e1(t)){const u=Le(t.getChildren(),IIt);if(u)return u}}function jIt(t){if(gh(t))return t.name;if(td(t)){const u=Le(t.modifiers,Sit);if(u)return u}if(w0(t)){const u=Le(t.getChildren(),RIt);if(u)return u}}function VIt(t){let u;return Tn(t,s=>(Xr(s)&&(u=s),!vf(s.parent)&&!Xr(s.parent)&&!Zy(s.parent))),u}function cX(t,u){if(t.flags&16777216)return;const s=wX(t,u);if(s)return s;const d=VIt(t);return d&&u.getTypeAtLocation(d)}function HIt(t,u){if(!u)switch(t.kind){case 263:case 231:return OIt(t);case 262:case 218:return jIt(t);case 176:return t}if(gh(t))return t.name}function Bit(t,u){if(t.importClause){if(t.importClause.name&&t.importClause.namedBindings)return;if(t.importClause.name)return t.importClause.name;if(t.importClause.namedBindings){if(uD(t.importClause.namedBindings)){const s=Sa(t.importClause.namedBindings.elements);return s?s.name:void 0}else if(Jx(t.importClause.namedBindings))return t.importClause.namedBindings.name}}if(!u)return t.moduleSpecifier}function wit(t,u){if(t.exportClause){if(ip(t.exportClause))return Sa(t.exportClause.elements)?t.exportClause.elements[0].name:void 0;if(r_(t.exportClause))return t.exportClause.name}if(!u)return t.moduleSpecifier}function KIt(t){if(t.types.length===1)return t.types[0].expression}function Tit(t,u){const{parent:s}=t;if(Xo(t)&&(u||t.kind!==90)?Kp(s)&&kt(s.modifiers,t):t.kind===86?Jc(s)||e1(t):t.kind===100?td(s)||w0(t):t.kind===120?Ch(s):t.kind===94?Rv(s):t.kind===156?Vp(s):t.kind===145||t.kind===144?xc(s):t.kind===102?_1(s):t.kind===139?Im(s):t.kind===153&&jf(s)){const d=HIt(s,u);if(d)return d}if((t.kind===115||t.kind===87||t.kind===121)&&Ad(s)&&s.declarations.length===1){const d=s.declarations[0];if(at(d.name))return d.name}if(t.kind===156){if(u_(s)&&s.isTypeOnly){const d=Bit(s.parent,u);if(d)return d}if($c(s)&&s.isTypeOnly){const d=wit(s,u);if(d)return d}}if(t.kind===130){if(bf(s)&&s.propertyName||th(s)&&s.propertyName||Jx(s)||r_(s))return s.name;if($c(s)&&s.exportClause&&r_(s.exportClause))return s.exportClause.name}if(t.kind===102&&Sd(s)){const d=Bit(s,u);if(d)return d}if(t.kind===95){if($c(s)){const d=wit(s,u);if(d)return d}if(ic(s))return vc(s.expression)}if(t.kind===149&&a_(s))return s.expression;if(t.kind===161&&(Sd(s)||$c(s))&&s.moduleSpecifier)return s.moduleSpecifier;if((t.kind===96||t.kind===119)&&mm(s)&&s.token===t.kind){const d=KIt(s);if(d)return d}if(t.kind===96){if(wl(s)&&s.constraint&&tp(s.constraint))return s.constraint.typeName;if(FB(s)&&tp(s.extendsType))return s.extendsType.typeName}if(t.kind===140&&P7(s))return s.typeParameter.name;if(t.kind===103&&wl(s)&&$P(s.parent))return s.name;if(t.kind===143&&z7(s)&&s.operator===143&&tp(s.type))return s.type.typeName;if(t.kind===148&&z7(s)&&s.operator===148&&lY(s.type)&&tp(s.type.elementType))return s.type.elementType.typeName;if(!u){if((t.kind===105&&V2(s)||t.kind===116&&R7(s)||t.kind===114&&AB(s)||t.kind===135&&Gx(s)||t.kind===127&&hY(s)||t.kind===91&&fFe(s))&&s.expression)return vc(s.expression);if((t.kind===103||t.kind===104)&&eu(s)&&s.operatorToken===t)return vc(s.right);if(t.kind===130&&SV(s)&&tp(s.type))return s.type.typeName;if(t.kind===103&&mY(s)||t.kind===165&&BV(s))return vc(s.expression)}return t}function Uhe(t){return Tit(t,!1)}function dX(t){return Tit(t,!0)}function af(t,u){return NM(t,u,s=>eE(s)||uf(s.kind)||ea(s))}function NM(t,u,s){return Lit(t,u,!1,s,!1)}function ya(t,u){return Lit(t,u,!0,void 0,!1)}function Lit(t,u,s,d,f){let p=t,E;e:for(;;){const b=p.getChildren(t),B=ba(b,u,(k,T)=>T,(k,T)=>{const M=b[k].getEnd();if(Mu?1:v(b[k],z,M)?b[k-1]&&v(b[k-1])?1:0:d&&z===u&&b[k-1]&&b[k-1].getEnd()===u&&v(b[k-1])?1:-1});if(E)return E;if(B>=0&&b[B]){p=b[B];continue e}return p}function v(b,B,k){if(k??(k=b.getEnd()),ku))return!1;if(us.getStart(t)&&u(p.pos<=t.pos&&p.end>t.end||p.pos===t.end)&&cSe(p,s)?d(p):void 0)}}function id(t,u,s,d){const f=p(s||u);return H.assert(!(f&&fX(f))),f;function p(E){if(Nit(E)&&E.kind!==1)return E;const v=E.getChildren(u),b=ba(v,t,(k,T)=>T,(k,T)=>t=v[k-1].end?0:1:-1);if(b>=0&&v[b]){const k=v[b];if(t=t||!cSe(k,u)||fX(k)){const z=rSe(v,b,u,E.kind);return z?!d&&$U(z)&&z.getChildren(u).length?p(z):uSe(z,u):void 0}else return p(k)}H.assert(s!==void 0||E.kind===312||E.kind===1||$U(E));const B=rSe(v,v.length,u,E.kind);return B&&uSe(B,u)}}function Nit(t){return u7(t)&&!fX(t)}function uSe(t,u){if(Nit(t))return t;const s=t.getChildren(u);if(s.length===0)return t;const d=rSe(s,s.length,u,t.kind);return d&&uSe(d,u)}function rSe(t,u,s,d){for(let f=u-1;f>=0;f--){const p=t[f];if(fX(p))f===0&&(d===12||d===285)&&H.fail("`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`");else if(cSe(t[f],s))return t[f]}}function zk(t,u,s=id(u,t)){if(s&&Zse(s)){const d=s.getStart(t),f=s.getEnd();if(ds.getStart(t)}function oSe(t,u){const s=ya(t,u);return!!(w7(s)||s.kind===19&&QP(s.parent)&&a3(s.parent.parent)||s.kind===30&&Ih(s.parent)&&a3(s.parent.parent))}function mX(t,u){function s(d){for(;d;)if(d.kind>=285&&d.kind<=294||d.kind===12||d.kind===30||d.kind===32||d.kind===80||d.kind===20||d.kind===19||d.kind===44)d=d.parent;else if(d.kind===284){if(u>d.getStart(t))return!0;d=d.parent}else return!1;return!1}return s(ya(t,u))}function pX(t,u,s){const d=qo(t.kind),f=qo(u),p=t.getFullStart(),E=s.text.lastIndexOf(f,p);if(E===-1)return;if(s.text.lastIndexOf(d,p-1)!!p.typeParameters&&p.typeParameters.length>=u)}function Yhe(t,u){if(u.text.lastIndexOf("<",t?t.pos:u.text.length)===-1)return;let s=t,d=0,f=0;for(;s;){switch(s.kind){case 30:if(s=id(s.getFullStart(),u),s&&s.kind===29&&(s=id(s.getFullStart(),u)),!s||!at(s))return;if(!d)return X3(s)?void 0:{called:s,nTypeArguments:f};d--;break;case 50:d=3;break;case 49:d=2;break;case 32:d++;break;case 20:if(s=pX(s,19,u),!s)return;break;case 22:if(s=pX(s,21,u),!s)return;break;case 24:if(s=pX(s,23,u),!s)return;break;case 28:f++;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(Xr(s))break;return}s=id(s.getFullStart(),u)}}function m5(t,u,s){return dd.getRangeOfEnclosingComment(t,u,void 0,s)}function lSe(t,u){const s=ya(t,u);return!!Tn(s,Hp)}function cSe(t,u){return t.kind===1?!!t.jsDoc:t.getWidth(u)!==0}function PM(t,u=0){const s=[],d=X1(t)?zse(t)&~u:0;return d&2&&s.push("private"),d&4&&s.push("protected"),d&1&&s.push("public"),(d&256||zl(t))&&s.push("static"),d&64&&s.push("abstract"),d&32&&s.push("export"),d&65536&&s.push("deprecated"),t.flags&33554432&&s.push("declare"),t.kind===277&&s.push("export"),s.length>0?s.join(","):""}function dSe(t){if(t.kind===183||t.kind===213)return t.typeArguments;if(Co(t)||t.kind===263||t.kind===264)return t.typeParameters}function gX(t){return t===2||t===3}function Qhe(t){return!!(t===11||t===14||Bx(t))}function Pit(t,u,s){return!!(u.flags&4)&&t.isEmptyAnonymousObjectType(s)}function hSe(t){if(!t.isIntersection())return!1;const{types:u,checker:s}=t;return u.length===2&&(Pit(s,u[0],u[1])||Pit(s,u[1],u[0]))}function VH(t,u,s){return Bx(t.kind)&&t.getStart(s){const s=Us(u);return!t[s]&&(t[s]=!0)}}function aw(t){return t.getText(0,t.getLength())}function WH(t,u){let s="";for(let d=0;d!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!(u.externalModuleIndicator||u.commonJsModuleIndicator))}function gSe(t){return t.getSourceFiles().some(u=>!u.isDeclarationFile&&!t.isSourceFileFromExternalLibrary(u)&&!!u.externalModuleIndicator)}function afe(t){return!!t.module||js(t)>=2||!!t.noEmit}function Ik(t,u){return{fileExists:s=>t.fileExists(s),getCurrentDirectory:()=>u.getCurrentDirectory(),readFile:Lo(u,u.readFile),useCaseSensitiveFileNames:Lo(u,u.useCaseSensitiveFileNames),getSymlinkCache:Lo(u,u.getSymlinkCache)||t.getSymlinkCache,getModuleSpecifierCache:Lo(u,u.getModuleSpecifierCache),getPackageJsonInfoCache:()=>{var s;return(s=t.getModuleResolutionCache())==null?void 0:s.getPackageJsonInfoCache()},getGlobalTypingsCacheLocation:Lo(u,u.getGlobalTypingsCacheLocation),redirectTargetsMap:t.redirectTargetsMap,getProjectReferenceRedirect:s=>t.getProjectReferenceRedirect(s),isSourceOfProjectReferenceRedirect:s=>t.isSourceOfProjectReferenceRedirect(s),getNearestAncestorDirectoryWithPackageJson:Lo(u,u.getNearestAncestorDirectoryWithPackageJson),getFileIncludeReasons:()=>t.getFileIncludeReasons()}}function ofe(t,u){return{...Ik(t,u),getCommonSourceDirectory:()=>t.getCommonSourceDirectory()}}function xX(t){return t===2||t>=3&&t<=99||t===100}function ESe(t,u,s,d){return t||u&&u.length?g5(t,u,s,d):void 0}function g5(t,u,s,d,f){return q.createImportDeclaration(void 0,t||u?q.createImportClause(!!f,t,u&&u.length?q.createNamedImports(u):void 0):void 0,typeof s=="string"?n9(s,d):s,void 0)}function n9(t,u){return q.createStringLiteral(t,u===0)}function sfe(t,u){return yq(t,u)?1:0}function Km(t,u){if(u.quotePreference&&u.quotePreference!=="auto")return u.quotePreference==="single"?0:1;{const s=t.imports&&Le(t.imports,d=>rs(d)&&!cl(d.parent));return s?sfe(s,t):1}}function lfe(t){switch(t){case 0:return"'";case 1:return'"';default:return H.assertNever(t)}}function vX(t){const u=CX(t);return u===void 0?void 0:Qr(u)}function CX(t){return t.escapedName!=="default"?t.escapedName:G(t.declarations,u=>{const s=Ya(u);return s&&s.kind===80?s.escapedText:void 0})}function bX(t){return i0(t)&&(a_(t.parent)||Sd(t.parent)||xf(t.parent,!1)&&t.parent.arguments[0]===t||dm(t.parent)&&t.parent.arguments[0]===t)}function JH(t){return Vs(t)&&Op(t.parent)&&at(t.name)&&!t.propertyName}function yX(t,u){const s=t.getTypeAtLocation(u.parent);return s&&t.getPropertyOfType(s,u.name.text)}function $H(t,u,s){if(t)for(;t.parent;){if(ca(t.parent)||!WIt(s,t.parent,u))return t;t=t.parent}}function WIt(t,u,s){return Mse(t,u.getStart(s))&&u.getEnd()<=Dc(t)}function ow(t,u){return Kp(t)?Le(t.modifiers,s=>s.kind===u):void 0}function zM(t,u,s,d,f){const E=(Wa(s)?s[0]:s).kind===243?P0e:tk,v=ti(u.statements,E);let b=Wa(s)?Jp.detectImportDeclarationSorting(s,f):3;const B=Jp.getOrganizeImportsComparer(f,b===2),k=Wa(s)?sc(s,(T,M)=>Jp.compareImportsOrRequireStatements(T,M,B)):[s];if(!v.length)t.insertNodesAtTopOfFile(u,k,d);else if(v&&(b=Jp.detectImportDeclarationSorting(v,f))){const T=Jp.getOrganizeImportsComparer(f,b===2);for(const M of k){const z=Jp.getImportDeclarationInsertionIndex(v,M,T);if(z===0){const j=v[0]===u.statements[0]?{leadingTriviaOption:iu.LeadingTriviaOption.Exclude}:{};t.insertNodeBefore(u,v[0],M,!1,j)}else{const j=v[z-1];t.insertNodeAfter(u,j,M)}}}else{const T=Zu(v);T?t.insertNodesAfter(u,T,k):t.insertNodesAtTopOfFile(u,k,d)}}function cfe(t,u){return H.assert(t.isTypeOnly),Po(t.getChildAt(0,u),ufe)}function sw(t,u){return!!t&&!!u&&t.start===u.start&&t.length===u.length}function kX(t,u){return t.fileName===u.fileName&&sw(t.textSpan,u.textSpan)}function dfe(t,u){if(t){for(let s=0;sio(s)?!0:Vs(s)||Op(s)||_k(s)?!1:"quit")}function GIt(){const t=cV*10;let u,s,d,f;k();const p=T=>v(T,17);return{displayParts:()=>{const T=u.length&&u[u.length-1].text;return f>t&&T&&T!=="..."&&(U3(T.charCodeAt(T.length-1))||u.push(yf(" ",16)),u.push(yf("...",15))),u},writeKeyword:T=>v(T,5),writeOperator:T=>v(T,12),writePunctuation:T=>v(T,15),writeTrailingSemicolon:T=>v(T,15),writeSpace:T=>v(T,16),writeStringLiteral:T=>v(T,8),writeParameter:T=>v(T,13),writeProperty:T=>v(T,14),writeLiteral:T=>v(T,8),writeSymbol:b,writeLine:B,write:p,writeComment:p,getText:()=>"",getTextPos:()=>0,getColumn:()=>0,getLine:()=>0,isAtStartOfLine:()=>!1,hasTrailingWhitespace:()=>!1,hasTrailingComment:()=>!1,rawWrite:fo,getIndent:()=>d,increaseIndent:()=>{d++},decreaseIndent:()=>{d--},clear:k};function E(){if(!(f>t)&&s){const T=Mq(d);T&&(f+=T.length,u.push(yf(T,16))),s=!1}}function v(T,M){f>t||(E(),f+=T.length,u.push(yf(T,M)))}function b(T,M){f>t||(E(),f+=T.length,u.push(DSe(T,M)))}function B(){f>t||(f+=1,u.push(lw()),s=!0)}function k(){u=[],s=!0,d=0,f=0}}function DSe(t,u){return yf(t,s(u));function s(d){const f=d.flags;return f&3?ffe(d)?13:9:f&4||f&32768||f&65536?14:f&8?19:f&16?20:f&32?1:f&64?4:f&384?2:f&1536?11:f&8192?10:f&262144?18:f&524288||f&2097152?0:17}}function yf(t,u){return{text:t,kind:TH[u]}}function $l(){return yf(" ",16)}function Hf(t){return yf(qo(t),5)}function nh(t){return yf(qo(t),15)}function RM(t){return yf(qo(t),12)}function xSe(t){return yf(t,13)}function vSe(t){return yf(t,14)}function mfe(t){const u=m2(t);return u===void 0?Wm(t):Hf(u)}function Wm(t){return yf(t,17)}function CSe(t){return yf(t,0)}function bSe(t){return yf(t,18)}function AX(t){return yf(t,24)}function ySe(t,u){return{text:t,kind:TH[23],target:{fileName:zn(u).fileName,textSpan:of(u)}}}function pfe(t){return yf(t,22)}function kSe(t,u){var s;const d=vFe(t)?"link":CFe(t)?"linkcode":"linkplain",f=[pfe(`{@${d} `)];if(!t.name)t.text&&f.push(AX(t.text));else{const p=u==null?void 0:u.getSymbolAtLocation(t.name),E=$It(t.text),v=Wc(t.name)+t.text.slice(0,E),b=JIt(t.text.slice(E)),B=(p==null?void 0:p.valueDeclaration)||((s=p==null?void 0:p.declarations)==null?void 0:s[0]);B?(f.push(ySe(v,B)),b&&f.push(AX(b))):f.push(AX(v+(E?"":" ")+b))}return f.push(pfe("}")),f}function JIt(t){let u=0;if(t.charCodeAt(u++)===124){for(;u"&&s--,d++,!s)return d}return 0}function E5(t,u){var s;return(u==null?void 0:u.newLineCharacter)||((s=t.getNewLine)==null?void 0:s.call(t))||Wit}function lw(){return yf(` +`,6)}function Zx(t){try{return t(Pfe),Pfe.displayParts()}finally{Pfe.clear()}}function UH(t,u,s,d=0){return Zx(f=>{t.writeType(u,s,d|1024|16384,f)})}function OM(t,u,s,d,f=0){return Zx(p=>{t.writeSymbol(u,s,d,f|8,p)})}function gfe(t,u,s,d=0){return d|=25632,Zx(f=>{t.writeSignature(u,s,d,void 0,f)})}function zit(t,u){const s=u.getSourceFile();return Zx(d=>{_H().writeNode(4,t,s,d)})}function FSe(t){return!!t.parent&&r7(t.parent)&&t.parent.propertyName===t}function Efe(t,u){return lZ(t,u.getScriptKind&&u.getScriptKind(t))}function ASe(t,u){let s=t;for(;UIt(s)||ZE(s)&&s.links.target;)ZE(s)&&s.links.target?s=s.links.target:s=eh(s,u);return s}function UIt(t){return(t.flags&2097152)!==0}function SSe(t,u){return Yo(eh(t,u))}function BSe(t,u){for(;U3(t.charCodeAt(u));)u+=1;return u}function SX(t,u){for(;u>-1&&Zg(t.charCodeAt(u));)u-=1;return u+1}function dl(t,u=!0){const s=t&&Iit(t);return s&&!u&&Kf(s),s}function qH(t,u,s){let d=s(t);return d?su(d,t):d=Iit(t,s),d&&!u&&Kf(d),d}function Iit(t,u){const s=u?p=>qH(p,!0,u):dl,f=rn(t,s,Dg,u?p=>p&&_fe(p,!0,u):p=>p&&ub(p),s);if(f===t){const p=rs(t)?su(q.createStringLiteralFromNode(t),t):Of(t)?su(q.createNumericLiteral(t.text,t.numericLiteralFlags),t):q.cloneNode(t);return Pt(p,t)}return f.parent=void 0,f}function ub(t,u=!0){if(t){const s=q.createNodeArray(t.map(d=>dl(d,u)),t.hasTrailingComma);return Pt(s,t),s}return t}function _fe(t,u,s){return q.createNodeArray(t.map(d=>qH(d,u,s)),t.hasTrailingComma)}function Kf(t){Dfe(t),wSe(t)}function Dfe(t){TSe(t,1024,ZIt)}function wSe(t){TSe(t,2048,Dle)}function Rk(t,u){const s=t.getSourceFile(),d=s.text;qIt(t,d)?cw(t,u,s):YH(t,u,s),jM(t,u,s)}function qIt(t,u){const s=t.getFullStart(),d=t.getStart();for(let f=s;fu)}function Ok(t,u){let s=t;for(let d=1;!eq(u,s);d++)s=`${t}_${d}`;return s}function ZH(t,u,s,d){let f=0,p=-1;for(const{fileName:E,textChanges:v}of t){H.assert(E===u);for(const b of v){const{span:B,newText:k}=b,T=YIt(k,Sv(s));if(T!==-1&&(p=B.start+f+T,!d))return p;f+=k.length-B.length}}return H.assert(d),H.assert(p>=0),p}function cw(t,u,s,d,f){PO(s.text,t.pos,LSe(u,s,d,f,jP))}function jM(t,u,s,d,f){MO(s.text,t.end,LSe(u,s,d,f,BZ))}function YH(t,u,s,d,f){MO(s.text,t.pos,LSe(u,s,d,f,jP))}function LSe(t,u,s,d,f){return(p,E,v,b)=>{v===3?(p+=2,E-=2):p+=2,f(t,s||v,u.text.slice(p,E),d!==void 0?d:b)}}function YIt(t,u){if(Ma(t,u))return 0;let s=t.indexOf(" "+u);return s===-1&&(s=t.indexOf("."+u)),s===-1&&(s=t.indexOf('"'+u)),s===-1?-1:s+1}function BX(t){return eu(t)&&t.operatorToken.kind===28||ys(t)||(SV(t)||mFe(t))&&ys(t.expression)}function wX(t,u,s){const d=i5(t.parent);switch(d.kind){case 214:return u.getContextualType(d,s);case 226:{const{left:f,operatorToken:p,right:E}=d;return TX(p.kind)?u.getTypeAtLocation(t===E?f:E):u.getContextualType(t,s)}case 296:return vfe(d,u);default:return u.getContextualType(t,s)}}function VM(t,u,s){const d=Km(t,u),f=JSON.stringify(s);return d===0?`'${q4(f).replace(/'/g,"\\'").replace(/\\"/g,'"')}'`:f}function TX(t){switch(t){case 37:case 35:case 38:case 36:return!0;default:return!1}}function NSe(t){switch(t.kind){case 11:case 15:case 228:case 215:return!0;default:return!1}}function xfe(t){return!!t.getStringIndexType()||!!t.getNumberIndexType()}function vfe(t,u){return u.getTypeAtLocation(t.parent.parent.expression)}function HM(t,u,s,d){const f=s.getTypeChecker();let p=!0;const E=()=>p=!1,v=f.typeToTypeNode(t,u,1,{trackSymbol:(b,B,k)=>(p=p&&f.isSymbolAccessible(b,B,k,!1).accessibility===0,!p),reportInaccessibleThisError:E,reportPrivateInBaseOfClassExpression:E,reportInaccessibleUniqueSymbolError:E,moduleResolverHost:ofe(s,d)});return p?v:void 0}function PSe(t){return t===179||t===180||t===181||t===171||t===173}function Rit(t){return t===262||t===176||t===174||t===177||t===178}function Oit(t){return t===267}function LX(t){return t===243||t===244||t===246||t===251||t===252||t===253||t===257||t===259||t===172||t===265||t===272||t===271||t===278||t===270||t===277}function QIt(t,u){const s=t.getLastToken(u);if(s&&s.kind===27)return!1;if(PSe(t.kind)){if(s&&s.kind===28)return!1}else if(Oit(t.kind)){const v=yr(t.getChildren(u));if(v&&aE(v))return!1}else if(Rit(t.kind)){const v=yr(t.getChildren(u));if(v&&F2(v))return!1}else if(!LX(t.kind))return!1;if(t.kind===246)return!0;const d=Tn(t,v=>!v.parent),f=nb(t,d,u);if(!f||f.kind===20)return!0;const p=u.getLineAndCharacterOfPosition(t.getEnd()).line,E=u.getLineAndCharacterOfPosition(f.getStart(u)).line;return p!==E}function NX(t,u,s){const d=Tn(u,f=>f.end!==t?"quit":Mfe(f.kind));return!!d&&QIt(d,s)}function QH(t){let u=0,s=0;const d=5;return ao(t,function f(p){if(LX(p.kind)){const E=p.getLastToken(t);(E==null?void 0:E.kind)===27?u++:s++}else if(PSe(p.kind)){const E=p.getLastToken(t);if((E==null?void 0:E.kind)===27)u++;else if(E&&E.kind!==28){const v=s0(t,E.getStart(t)).line,b=s0(t,XE(t,E.end).start).line;v!==b&&s++}}return u+s>=d?!0:ao(p,f)}),u===0&&s<=1?!0:u/s>1/d}function PX(t,u){return IX(t,t.getDirectories,u)||[]}function Cfe(t,u,s,d,f){return IX(t,t.readDirectory,u,s,d,f)||Dt}function XH(t,u){return IX(t,t.fileExists,u)}function MX(t,u){return zX(()=>hg(u,t))||!1}function zX(t){try{return t()}catch{return}}function IX(t,u,...s){return zX(()=>u&&u.apply(t,s))}function bfe(t,u,s){const d=[];return qg(t,f=>{if(f===s)return!0;const p=hr(f,"package.json");XH(u,p)&&d.push(p)}),d}function MSe(t,u){let s;return qg(t,d=>{if(d==="node_modules"||(s=O7e(d,f=>XH(u,f),"package.json"),s))return!0}),s}function zSe(t,u){if(!u.fileExists)return[];const s=[];return qg(dr(t),d=>{const f=hr(d,"package.json");if(u.fileExists(f)){const p=yfe(f,u);p&&s.push(p)}}),s}function yfe(t,u){if(!u.readFile)return;const s=["dependencies","devDependencies","optionalDependencies","peerDependencies"],d=u.readFile(t)||"",f=XIt(d),p={};if(f)for(const b of s){const B=f[b];if(!B)continue;const k=new Map;for(const T in B)k.set(T,B[T]);p[b]=k}const E=[[1,p.dependencies],[2,p.devDependencies],[8,p.optionalDependencies],[4,p.peerDependencies]];return{...p,parseable:!!f,fileName:t,get:v,has(b,B){return!!v(b,B)}};function v(b,B=15){for(const[k,T]of E)if(T&&B&k){const M=T.get(b);if(M!==void 0)return M}}}function KM(t,u,s){const d=(s.getPackageJsonsVisibleToFile&&s.getPackageJsonsVisibleToFile(t.fileName)||zSe(t.fileName,s)).filter(j=>j.parseable);let f,p,E;return{allowsImportingAmbientModule:b,allowsImportingSourceFile:B,allowsImportingSpecifier:k};function v(j){const J=z(j);for(const K of d)if(K.has(J)||K.has(qY(J)))return!0;return!1}function b(j,J){if(!d.length||!j.valueDeclaration)return!0;if(!p)p=new Map;else{const ge=p.get(j);if(ge!==void 0)return ge}const K=q4(j.getName());if(T(K))return p.set(j,!0),!0;const Y=j.valueDeclaration.getSourceFile(),oe=M(Y.fileName,J);if(typeof oe>"u")return p.set(j,!0),!0;const se=v(oe)||v(K);return p.set(j,se),se}function B(j,J){if(!d.length)return!0;if(!E)E=new Map;else{const oe=E.get(j);if(oe!==void 0)return oe}const K=M(j.fileName,J);if(!K)return E.set(j,!0),!0;const Y=v(K);return E.set(j,Y),Y}function k(j){return!d.length||T(j)||om(j)||Pf(j)?!0:v(j)}function T(j){return!!(_h(t)&&s3.nodeCoreModules.has(j)&&(f===void 0&&(f=RX(t)),f))}function M(j,J){if(!j.includes("node_modules"))return;const K=Y2.getNodeModulesPackageName(s.getCompilationSettings(),t,j,J,u);if(K&&!om(K)&&!Pf(K))return z(K)}function z(j){const J=yd(fM(j)).slice(1);return Ma(J[0],"@")?`${J[0]}/${J[1]}`:J[0]}}function XIt(t){try{return JSON.parse(t)}catch{return}}function RX(t){return Ge(t.imports,({text:u})=>s3.nodeCoreModules.has(u))}function eK(t){return kt(yd(t),"node_modules")}function kfe(t){return t.file!==void 0&&t.start!==void 0&&t.length!==void 0}function ISe(t,u){const s=of(t),d=ba(u,s,ul,Y$);if(d>=0){const f=u[d];return H.assertEqual(f.file,t.getSourceFile(),"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile"),Po(f,kfe)}}function RSe(t,u){var s;let d=ba(u,t.start,E=>E.start,rl);for(d<0&&(d=~d);((s=u[d-1])==null?void 0:s.start)===t.start;)d--;const f=[],p=Dc(t);for(;;){const E=ar(u[d],kfe);if(!E||E.start>p)break;M2e(t,E)&&f.push(E),d++}return f}function u9({startPosition:t,endPosition:u}){return Kc(t,u===void 0?t:u)}function Ffe(t,u){const s=ya(t,u.start);return Tn(s,f=>f.getStart(t)Dc(u)?"quit":Wt(f)&&sw(u,of(f,t)))}function Afe(t,u,s=ul){return t?Wa(t)?s(Vt(t,u)):u(t,0):void 0}function Sfe(t){return Wa(t)?Pn(t):t}function OSe(t,u){if(jit(t)){const s=Vit(t);if(s)return s;const d=I1.moduleSymbolToValidIdentifier(jSe(t),u,!1),f=I1.moduleSymbolToValidIdentifier(jSe(t),u,!0);return d===f?d:[d,f]}return t.name}function OX(t,u,s){return jit(t)?Vit(t)||I1.moduleSymbolToValidIdentifier(jSe(t),u,!!s):t.name}function jit(t){return!(t.flags&33554432)&&(t.escapedName==="export="||t.escapedName==="default")}function Vit(t){return G(t.declarations,u=>{var s,d,f;return ic(u)?(s=ar(vc(u.expression),at))==null?void 0:s.text:th(u)&&u.symbol.flags===2097152?(d=ar(u.propertyName,at))==null?void 0:d.text:(f=ar(Ya(u),at))==null?void 0:f.text})}function jSe(t){var u;return H.checkDefined(t.parent,`Symbol parent was undefined. Flags: ${H.formatSymbolFlags(t.flags)}. Declarations: ${(u=t.declarations)==null?void 0:u.map(s=>{const d=H.formatSyntaxKind(s.kind),f=Xn(s),{expression:p}=s;return(f?"[JS]":"")+d+(p?` (expression: ${H.formatSyntaxKind(p.kind)})`:"")}).join(", ")}.`)}function VSe(t,u,s){const d=u.length;if(d+s>t.length)return!1;for(let f=0;fxc(s)&&Qg(s))}function jX(t){return!!(zse(t)&65536)}function VX(t,u){return G(t.imports,d=>{if(s3.nodeCoreModules.has(d.text))return Ma(d.text,"node:")})??u.usesUriStyleNodeCoreModules}function tK(t){return t===` +`?1:0}function jk(t){return Wa(t)?t3(to(t[0]),t.slice(1)):to(t)}function HX({options:t},u){const s=!t.semicolons||t.semicolons==="ignore",d=t.semicolons==="remove"||s&&!QH(u);return{...t,semicolons:d?"remove":"ignore"}}function wfe(t){return t===2||t===3}function WM(t,u){return t.isSourceFileFromExternalLibrary(u)||t.isSourceFileDefaultLibrary(u)}function KX(t,u){const s=new Set,d=new Set,f=new Set;for(const v of u)if(!LV(v)){const b=l0(v.expression);if(_2(b))switch(b.kind){case 15:case 11:s.add(b.text);break;case 9:d.add(parseInt(b.text));break;case 10:const B=vke(lc(b.text,"n")?b.text.slice(0,-1):b.text);B&&f.add(R2(B));break}else{const B=t.getSymbolAtLocation(v.expression);if(B&&B.valueDeclaration&&$2(B.valueDeclaration)){const k=t.getConstantValue(B.valueDeclaration);k!==void 0&&p(k)}}}return{addValue:p,hasValue:E};function p(v){switch(typeof v){case"string":s.add(v);break;case"number":d.add(v)}}function E(v){switch(typeof v){case"string":return s.has(v);case"number":return d.has(v);case"object":return f.has(R2(v))}}}function Tfe(t,u,s,d){var f;const p=typeof t=="string"?t:t.fileName;if(!I2(p))return!1;const E=u.getCompilerOptions(),v=p1(E),b=typeof t=="string"?yH($0(t,s.getCurrentDirectory(),n5(s)),(f=u.getPackageJsonInfoCache)==null?void 0:f.call(u),s,E):t.impliedNodeFormat;if(b===99)return!1;if(b===1||E.verbatimModuleSyntax&&v===1)return!0;if(E.verbatimModuleSyntax&&Xq(v))return!1;if(typeof t=="object"){if(t.commonJsModuleIndicator)return!0;if(t.externalModuleIndicator)return!1}return d}var uh,Lfe,Kit,WX,Nfe,Pfe,Wit,GX,Mfe,eRt=o({"src/services/utilities.ts"(){or(),uh=YD(99,!0),Lfe=(t=>(t[t.None=0]="None",t[t.Value=1]="Value",t[t.Type=2]="Type",t[t.Namespace=4]="Namespace",t[t.All=7]="All",t))(Lfe||{}),Kit=/^\/\/\/\s*(t[t.Single=0]="Single",t[t.Double=1]="Double",t))(Nfe||{}),Pfe=GIt(),Wit=` +`,GX="anonymous function",Mfe=dg(PSe,Rit,Oit,LX)}});function zfe(t){let u=1;const s=Tm(),d=new Map,f=new Map;let p;const E={isUsableByFile:z=>z===p,isEmpty:()=>!s.size,clear:()=>{s.clear(),d.clear(),p=void 0},add:(z,j,J,K,Y,oe,se,ge)=>{z!==p&&(E.clear(),p=z);let ae;if(Y){const Ae=EZ(Y.fileName);if(Ae){const{topLevelNodeModulesIndex:De,topLevelPackageNameIndex:He,packageRootIndex:Je}=Ae;if(ae=cH(fM(Y.fileName.substring(He+1,Je))),Ma(z,Y.path.substring(0,De))){const mt=f.get(ae),Ye=Y.fileName.substring(0,He+1);if(mt){const je=mt.indexOf(s_);De>je&&f.set(ae,Ye)}else f.set(ae,Ye)}}}const ne=oe===1&&lB(j)||j,ve=oe===0||KH(ne)?Qr(J):OSe(ne,void 0),Se=typeof ve=="string"?ve:ve[0],Ne=typeof ve=="string"?void 0:ve[1],pe=q4(K.name),fe=u++,xe=eh(j,ge),Be=j.flags&33554432?void 0:j,We=K.flags&33554432?void 0:K;(!Be||!We)&&d.set(fe,[j,K]),s.add(b(Se,j,Id(pe)?void 0:pe,ge),{id:fe,symbolTableKey:J,symbolName:Se,capitalizedSymbolName:Ne,moduleName:pe,moduleFile:Y,moduleFileName:Y==null?void 0:Y.fileName,packageName:ae,exportKind:oe,targetFlags:xe.flags,isFromPackageJson:se,symbol:Be,moduleSymbol:We})},get:(z,j)=>{if(z!==p)return;const J=s.get(j);return J==null?void 0:J.map(v)},search:(z,j,J,K)=>{if(z===p)return f1(s,(Y,oe)=>{const{symbolName:se,ambientModuleName:ge}=B(oe),ae=j&&Y[0].capitalizedSymbolName||se;if(J(ae,Y[0].targetFlags)){const ne=Y.map(v).filter((ve,Se)=>M(ve,Y[Se].packageName));if(ne.length){const ve=K(ne,ae,!!ge,oe);if(ve!==void 0)return ve}}})},releaseSymbols:()=>{d.clear()},onFileChanged:(z,j,J)=>k(z)&&k(j)?!1:p&&p!==j.path||J&&RX(z)!==RX(j)||!On(z.moduleAugmentations,j.moduleAugmentations)||!T(z,j)?(E.clear(),!0):(p=j.path,!1)};return H.isDebugging&&Object.defineProperty(E,"__cache",{value:s}),E;function v(z){if(z.symbol&&z.moduleSymbol)return z;const{id:j,exportKind:J,targetFlags:K,isFromPackageJson:Y,moduleFileName:oe}=z,[se,ge]=d.get(j)||Dt;if(se&&ge)return{symbol:se,moduleSymbol:ge,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y};const ae=(Y?t.getPackageJsonAutoImportProvider():t.getCurrentProgram()).getTypeChecker(),Ce=z.moduleSymbol||ge||H.checkDefined(z.moduleFile?ae.getMergedSymbol(z.moduleFile.symbol):ae.tryFindAmbientModule(z.moduleName)),ne=z.symbol||se||H.checkDefined(J===2?ae.resolveExternalModuleSymbol(Ce):ae.tryGetMemberInModuleExportsAndProperties(Qr(z.symbolTableKey),Ce),`Could not find symbol '${z.symbolName}' by key '${z.symbolTableKey}' in module ${Ce.name}`);return d.set(j,[ne,Ce]),{symbol:ne,moduleSymbol:Ce,moduleFileName:oe,exportKind:J,targetFlags:K,isFromPackageJson:Y}}function b(z,j,J,K){const Y=J||"";return`${z.length} ${Yo(eh(j,K))} ${z} ${Y}`}function B(z){const j=z.indexOf(" "),J=z.indexOf(" ",j+1),K=parseInt(z.substring(0,j),10),Y=z.substring(J+1),oe=Y.substring(0,K),se=Y.substring(K+1);return{symbolName:oe,ambientModuleName:se===""?void 0:se}}function k(z){return!z.commonJsModuleIndicator&&!z.externalModuleIndicator&&!z.moduleAugmentations&&!z.ambientModuleNames}function T(z,j){if(!On(z.ambientModuleNames,j.ambientModuleNames))return!1;let J=-1,K=-1;for(const Y of j.ambientModuleNames){const oe=se=>g0e(se)&&se.name.text===Y;if(J=Ue(z.statements,oe,J+1),K=Ue(j.statements,oe,K+1),z.statements[J]!==j.statements[K])return!1}return!0}function M(z,j){if(!j||!z.moduleFileName)return!0;const J=t.getGlobalTypingsCacheLocation();if(J&&Ma(z.moduleFileName,J))return!0;const K=f.get(j);return!K||Ma(z.moduleFileName,K)}}function Ife(t,u,s,d,f,p,E){var v;if(u===s)return!1;const b=E==null?void 0:E.get(u.path,s.path,d,{});if((b==null?void 0:b.isBlockedByPackageJsonDependencies)!==void 0)return!b.isBlockedByPackageJsonDependencies;const B=n5(p),k=(v=p.getGlobalTypingsCacheLocation)==null?void 0:v.call(p),T=!!Y2.forEachFileNameOfModule(u.fileName,s.fileName,p,!1,M=>{const z=t.getSourceFile(M);return(z===s||!z)&&tRt(u.fileName,M,B,k)});if(f){const M=T&&f.allowsImportingSourceFile(s,p);return E==null||E.setBlockedByPackageJsonDependencies(u.path,s.path,d,{},!M),M}return T}function tRt(t,u,s,d){const f=qg(u,E=>Bc(E)==="node_modules"?E:void 0),p=f&&dr(s(f));return p===void 0||Ma(s(t),p)||!!d&&Ma(s(d),p)}function Rfe(t,u,s,d,f){var p,E;const v=Kj(u),b=s.autoImportFileExcludePatterns&&qi(s.autoImportFileExcludePatterns,k=>{const T=Sle(k,"","exclude");return T?jx(T,v):void 0});Git(t.getTypeChecker(),t.getSourceFiles(),b,(k,T)=>f(k,T,t,!1));const B=d&&((p=u.getPackageJsonAutoImportProvider)==null?void 0:p.call(u));if(B){const k=J0(),T=t.getTypeChecker();Git(B.getTypeChecker(),B.getSourceFiles(),b,(M,z)=>{(z&&!t.getSourceFile(z.fileName)||!z&&!T.resolveName(M.name,void 0,1536,!1))&&f(M,z,B,!0)}),(E=u.log)==null||E.call(u,`forEachExternalModuleToImportFrom autoImportProvider: ${J0()-k}`)}}function Git(t,u,s,d){var f;const p=s&&(E=>s.some(v=>v.test(E)));for(const E of t.getAmbientModules())!E.name.includes("*")&&!(s&&((f=E.declarations)!=null&&f.every(v=>p(v.getSourceFile().fileName))))&&d(E,void 0);for(const E of u)cm(E)&&!(p!=null&&p(E.fileName))&&d(t.getMergedSymbol(E.symbol),E)}function iK(t,u,s,d,f){var p,E,v,b,B;const k=J0();(p=u.getPackageJsonAutoImportProvider)==null||p.call(u);const T=((E=u.getCachedExportInfoMap)==null?void 0:E.call(u))||zfe({getCurrentProgram:()=>s,getPackageJsonAutoImportProvider:()=>{var j;return(j=u.getPackageJsonAutoImportProvider)==null?void 0:j.call(u)},getGlobalTypingsCacheLocation:()=>{var j;return(j=u.getGlobalTypingsCacheLocation)==null?void 0:j.call(u)}});if(T.isUsableByFile(t.path))return(v=u.log)==null||v.call(u,"getExportInfoMap: cache hit"),T;(b=u.log)==null||b.call(u,"getExportInfoMap: cache miss or empty; calculating new results");const M=s.getCompilerOptions();let z=0;try{Rfe(s,u,d,!0,(j,J,K,Y)=>{++z%100===0&&(f==null||f.throwIfCancellationRequested());const oe=new Map,se=K.getTypeChecker(),ge=JX(j,se,M);ge&&Jit(ge.symbol,se)&&T.add(t.path,ge.symbol,ge.exportKind===1?"default":"export=",j,J,ge.exportKind,Y,se),se.forEachExportAndPropertyOfModule(j,(ae,Ce)=>{ae!==(ge==null?void 0:ge.symbol)&&Jit(ae,se)&&Rp(oe,Ce)&&T.add(t.path,ae,Ce,j,J,0,Y,se)})})}catch(j){throw T.clear(),j}return(B=u.log)==null||B.call(u,`getExportInfoMap: done in ${J0()-k} ms`),T}function JX(t,u,s){const d=iRt(t,u);if(!d)return;const{symbol:f,exportKind:p}=d,E=$X(f,u,s);return E&&{symbol:f,exportKind:p,...E}}function Jit(t,u){return!u.isUndefinedSymbol(t)&&!u.isUnknownSymbol(t)&&!Rj(t)&&!xye(t)}function iRt(t,u){const s=u.resolveExternalModuleSymbol(t);if(s!==t)return{symbol:s,exportKind:2};const d=u.tryGetMemberInModuleExports("default",t);if(d)return{symbol:d,exportKind:1}}function $X(t,u,s){const d=lB(t);if(d)return{resolvedSymbol:d,name:d.name};const f=nRt(t);if(f!==void 0)return{resolvedSymbol:t,name:f};if(t.flags&2097152){const p=u.getImmediateAliasedSymbol(t);if(p&&p.parent)return $X(p,u,s)}return t.escapedName!=="default"&&t.escapedName!=="export="?{resolvedSymbol:t,name:t.getName()}:{resolvedSymbol:t,name:OX(t,s.target)}}function nRt(t){return t.declarations&&G(t.declarations,u=>{var s;if(ic(u))return(s=ar(vc(u.expression),at))==null?void 0:s.text;if(th(u))return H.assert(u.name.text==="default","Expected the specifier to be a default export"),u.propertyName&&u.propertyName.text})}var Ofe,jfe,uRt=o({"src/services/exportInfoMap.ts"(){or(),Ofe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.Namespace=2]="Namespace",t[t.CommonJS=3]="CommonJS",t))(Ofe||{}),jfe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t[t.UMD=3]="UMD",t))(jfe||{})}});function $it(){const t=YD(99,!1);function u(d,f,p){return oRt(s(d,f,p),d)}function s(d,f,p){let E=0,v=0;const b=[],{prefix:B,pushTemplate:k}=cRt(f);d=B+d;const T=B.length;k&&b.push(16),t.setText(d);let M=0;const z=[];let j=0;do{E=t.scan(),nB(E)||(J(),v=E);const K=t.getTokenEnd();if(aRt(t.getTokenStart(),K,T,fRt(E),z),K>=d.length){const Y=rRt(t,E,Zu(b));Y!==void 0&&(M=Y)}}while(E!==1);function J(){switch(E){case 44:case 69:!Yit[v]&&t.reScanSlashToken()===14&&(E=14);break;case 30:v===80&&j++;break;case 32:j>0&&j--;break;case 133:case 154:case 150:case 136:case 155:j>0&&!p&&(E=80);break;case 16:b.push(E);break;case 19:b.length>0&&b.push(E);break;case 20:if(b.length>0){const K=Zu(b);K===16?(E=t.reScanTemplateToken(!1),E===18?b.pop():H.assertEqual(E,17,"Should have been a template middle.")):(H.assertEqual(K,19,"Should have been an open brace"),b.pop())}break;default:if(!uf(E))break;(v===25||uf(v)&&uf(E)&&!lRt(v,E))&&(E=80)}}return{endOfLineState:M,spans:z}}return{getClassificationsForLine:u,getEncodedLexicalClassifications:s}}function rRt(t,u,s){switch(u){case 11:{if(!t.isUnterminated())return;const d=t.getTokenText(),f=d.length-1;let p=0;for(;d.charCodeAt(f-p)===92;)p++;return p&1?d.charCodeAt(0)===34?3:2:void 0}case 3:return t.isUnterminated()?1:void 0;default:if(Bx(u)){if(!t.isUnterminated())return;switch(u){case 18:return 5;case 15:return 4;default:return H.fail("Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #"+u)}}return s===16?6:void 0}}function aRt(t,u,s,d,f){if(d===8)return;t===0&&s>0&&(t+=s);const p=u-t;p>0&&f.push(t-s,p,d)}function oRt(t,u){const s=[],d=t.spans;let f=0;for(let E=0;E=0){const k=v-f;k>0&&s.push({length:k,classification:4})}s.push({length:b,classification:sRt(B)}),f=v+b}const p=u.length-f;return p>0&&s.push({length:p,classification:4}),{entries:s,finalLexState:t.endOfLineState}}function sRt(t){switch(t){case 1:return 3;case 3:return 1;case 4:return 6;case 25:return 7;case 5:return 2;case 6:return 8;case 8:return 4;case 10:return 0;case 2:case 11:case 12:case 13:case 14:case 15:case 16:case 9:case 17:return 5;default:return}}function lRt(t,u){if(!Xhe(t))return!0;switch(u){case 139:case 153:case 137:case 126:case 129:return!0;default:return!1}}function cRt(t){switch(t){case 3:return{prefix:`"\\ `};case 2:return{prefix:`'\\ `};case 1:return{prefix:`/* `};case 4:return{prefix:"`\n"};case 5:return{prefix:`} -`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return H.assertNever(t)}}function oRt(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function sRt(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function lRt(t){if(uf(t))return 3;if(oRt(t)||sRt(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Bx(t)?6:2}}function ISe(t,u,s,d,f){return Git(Ofe(t,u,s,d,f))}function Kit(t,u){switch(u){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function Ofe(t,u,s,d,f){const p=[];return s.forEachChild(function v(b){if(!(!b||!wU(f,b.pos,b.getFullWidth()))){if(Kit(u,b.kind),at(b)&&!Ql(b)&&d.has(b.escapedText)){const B=t.getSymbolAtLocation(b),k=B&&Wit(B,Pk(b),t);k&&E(b.getStart(s),b.getEnd(),k)}b.forEachChild(v)}}),{spans:p,endOfLineState:0};function E(v,b,B){const k=b-v;H.assert(k>0,`Classification had non-positive length of ${k}`),p.push(v),p.push(k),p.push(B)}}function Wit(t,u,s){const d=t.getFlags();if(d&2885600)return d&32?11:d&384?12:d&524288?16:d&1536?u&4||u&1&&cRt(t)?14:void 0:d&2097152?Wit(s.getAliasedSymbol(t),u,s):u&2?d&64?13:d&262144?15:void 0:void 0}function cRt(t){return Oe(t.declarations,u=>_c(u)&&oD(u)===1)}function dRt(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Git(t){H.assert(t.spans.length%3===0);const u=t.spans,s=[];for(let d=0;d])*)(\/>)?)?/im,ve=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Se=u.text.substr(ae,Ce),Ne=ne.exec(Se);if(!Ne||!Ne[3]||!(Ne[3]in CO))return!1;let pe=ae;T(pe,Ne[1].length),pe+=Ne[1].length,b(pe,Ne[2].length,10),pe+=Ne[2].length,b(pe,Ne[3].length,21),pe+=Ne[3].length;const fe=Ne[4];let xe=pe;for(;;){const Ge=ve.exec(fe);if(!Ge)break;const Ae=pe+Ge.index+Ge[1].length;Ae>xe&&(T(xe,Ae-xe),xe=Ae),b(xe,Ge[2].length,22),xe+=Ge[2].length,Ge[3].length&&(T(xe,Ge[3].length),xe+=Ge[3].length),b(xe,Ge[4].length,5),xe+=Ge[4].length,Ge[5].length&&(T(xe,Ge[5].length),xe+=Ge[5].length),b(xe,Ge[6].length,24),xe+=Ge[6].length}pe+=Ne[4].length,pe>xe&&T(xe,pe-xe),Ne[5]&&(b(pe,Ne[5].length,10),pe+=Ne[5].length);const Be=ae+Ce;return pe=0),ve>0){const Se=Ce||se(ae.kind,ae);Se&&b(ne,ve,Se)}return!0}function oe(ae){switch(ae.parent&&ae.parent.kind){case 286:if(ae.parent.tagName===ae)return 19;break;case 287:if(ae.parent.tagName===ae)return 20;break;case 285:if(ae.parent.tagName===ae)return 21;break;case 291:if(ae.parent.name===ae)return 22;break}}function se(ae,Ce){if(uf(ae))return 3;if((ae===30||ae===32)&&Ce&&rSe(Ce.parent))return 10;if(W0e(ae)){if(Ce){const ne=Ce.parent;if(ae===64&&(ne.kind===260||ne.kind===172||ne.kind===169||ne.kind===291)||ne.kind===226||ne.kind===224||ne.kind===225||ne.kind===227)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return Ce&&Ce.parent.kind===291?24:6;if(ae===14)return 6;if(Bx(ae))return 6;if(ae===12)return 23;if(ae===80){if(Ce){switch(Ce.parent.kind){case 263:return Ce.parent.name===Ce?11:void 0;case 168:return Ce.parent.name===Ce?15:void 0;case 264:return Ce.parent.name===Ce?13:void 0;case 266:return Ce.parent.name===Ce?12:void 0;case 267:return Ce.parent.name===Ce?14:void 0;case 169:return Ce.parent.name===Ce?N2(Ce)?3:17:void 0}if(q3(Ce.parent))return 3}return 2}}}function ge(ae){if(ae&&RO(d,f,ae.pos,ae.getFullWidth())){Kit(t,ae.kind);for(const Ce of ae.getChildren(u))Y(Ce)||ge(Ce)}}}var Jit,$it=o({"src/services/classifier.ts"(){rr(),Jit=noe([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),JX,hRt=o({"src/services/documentHighlights.ts"(){rr(),(t=>{function u(pe,fe,xe,Be,Ge){const Ae=af(xe,Be);if(Ae.parent&&(aE(Ae.parent)&&Ae.parent.tagName===Ae||H2(Ae.parent))){const{openingElement:De,closingElement:Ke}=Ae.parent.parent,Je=[De,Ke].map(({tagName:ft})=>s(ft,xe));return[{fileName:xe.fileName,highlightSpans:Je}]}return d(Be,Ae,pe,fe,Ge)||f(Ae,xe)}t.getDocumentHighlights=u;function s(pe,fe){return{fileName:fe.fileName,textSpan:of(pe,fe),kind:"none"}}function d(pe,fe,xe,Be,Ge){const Ae=new Set(Ge.map(ft=>ft.fileName)),De=Z0.getReferenceEntriesForNode(pe,fe,xe,Ge,Be,void 0,Ae);if(!De)return;const Ke=mO(De.map(Z0.toHighlightSpan),ft=>ft.fileName,ft=>ft.span),Je=L1(xe.useCaseSensitiveFileNames());return ga(eo(Ke.entries(),([ft,Ye])=>{if(!Ae.has(ft)){if(!xe.redirectTargetsMap.has(J0(ft,xe.getCurrentDirectory(),Je)))return;const Ve=xe.getSourceFile(ft);ft=Le(Ge,Gt=>!!Gt.redirectInfo&&Gt.redirectInfo.redirectTarget===Ve).fileName,H.assert(Ae.has(ft))}return{fileName:ft,highlightSpans:Ye}}))}function f(pe,fe){const xe=p(pe,fe);return xe&&[{fileName:fe.fileName,highlightSpans:xe}]}function p(pe,fe){switch(pe.kind){case 101:case 93:return xk(pe.parent)?ve(pe.parent,fe):void 0;case 107:return Be(pe.parent,Op,ge);case 111:return Be(pe.parent,bce,se);case 113:case 85:case 98:const Ae=pe.kind===85?pe.parent.parent:pe.parent;return Be(Ae,Ck,oe);case 109:return Be(pe.parent,BV,Y);case 84:case 90:return TV(pe.parent)||BB(pe.parent)?Be(pe.parent.parent.parent,BV,Y):void 0;case 83:case 88:return Be(pe.parent,ON,K);case 99:case 117:case 92:return Be(pe.parent,De=>Tx(De,!0),J);case 137:return xe(hc,[137]);case 139:case 153:return xe(wx,[139,153]);case 135:return Be(pe.parent,Gx,ae);case 134:return Ge(ae(pe));case 127:return Ge(Ce(pe));case 103:return;default:return XD(pe.kind)&&(Q1(pe.parent)||Jl(pe.parent))?Ge(M(pe.kind,pe.parent)):void 0}function xe(Ae,De){return Be(pe.parent,Ae,Ke=>{var Je;return qi((Je=ur(Ke,Zg))==null?void 0:Je.symbol.declarations,ft=>Ae(ft)?Le(ft.getChildren(fe),Ye=>kt(De,Ye.kind)):void 0)})}function Be(Ae,De,Ke){return De(Ae)?Ge(Ke(Ae,fe)):void 0}function Ge(Ae){return Ae&&Ae.map(De=>s(De,fe))}}function E(pe){return bce(pe)?[pe]:Ck(pe)?Hi(pe.catchClause?E(pe.catchClause):pe.tryBlock&&E(pe.tryBlock),pe.finallyBlock&&E(pe.finallyBlock)):Co(pe)?void 0:B(pe,E)}function v(pe){let fe=pe;for(;fe.parent;){const xe=fe.parent;if(k2(xe)||xe.kind===312)return xe;if(Ck(xe)&&xe.tryBlock===fe&&xe.catchClause)return fe;fe=xe}}function b(pe){return ON(pe)?[pe]:Co(pe)?void 0:B(pe,b)}function B(pe,fe){const xe=[];return pe.forEachChild(Be=>{const Ge=fe(Be);Ge!==void 0&&xe.push(...YA(Ge))}),xe}function k(pe,fe){const xe=T(fe);return!!xe&&xe===pe}function T(pe){return Tn(pe,fe=>{switch(fe.kind){case 255:if(pe.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!pe.label||Ne(fe,pe.label.escapedText);default:return Co(fe)&&"quit"}})}function M(pe,fe){return qi(z(fe,_7(pe)),xe=>ow(xe,pe))}function z(pe,fe){const xe=pe.parent;switch(xe.kind){case 268:case 312:case 241:case 296:case 297:return fe&64&&Wc(pe)?[...pe.members,pe]:xe.statements;case 176:case 174:case 262:return[...xe.parameters,...mr(xe.parent)?xe.parent.members:[]];case 263:case 231:case 264:case 187:const Be=xe.members;if(fe&15){const Ge=Le(xe.members,hc);if(Ge)return[...Be,...Ge.parameters]}else if(fe&64)return[...Be,xe];return Be;case 210:return;default:H.assertNever(xe,"Invalid container kind.")}}function j(pe,fe,...xe){return fe&&kt(xe,fe.kind)?(pe.push(fe),!0):!1}function J(pe){const fe=[];if(j(fe,pe.getFirstToken(),99,117,92)&&pe.kind===246){const xe=pe.getChildren();for(let Be=xe.length-1;Be>=0&&!j(fe,xe[Be],117);Be--);}return L(b(pe.statement),xe=>{k(pe,xe)&&j(fe,xe.getFirstToken(),83,88)}),fe}function K(pe){const fe=T(pe);if(fe)switch(fe.kind){case 248:case 249:case 250:case 246:case 247:return J(fe);case 255:return Y(fe)}}function Y(pe){const fe=[];return j(fe,pe.getFirstToken(),109),L(pe.caseBlock.clauses,xe=>{j(fe,xe.getFirstToken(),84,90),L(b(xe),Be=>{k(pe,Be)&&j(fe,Be.getFirstToken(),83)})}),fe}function oe(pe,fe){const xe=[];if(j(xe,pe.getFirstToken(),113),pe.catchClause&&j(xe,pe.catchClause.getFirstToken(),85),pe.finallyBlock){const Be=a0(pe,98,fe);j(xe,Be,98)}return xe}function se(pe,fe){const xe=v(pe);if(!xe)return;const Be=[];return L(E(xe),Ge=>{Be.push(a0(Ge,111,fe))}),k2(xe)&&y2(xe,Ge=>{Be.push(a0(Ge,107,fe))}),Be}function ge(pe,fe){const xe=Nm(pe);if(!xe)return;const Be=[];return y2(Po(xe.body,po),Ge=>{Be.push(a0(Ge,107,fe))}),L(E(xe.body),Ge=>{Be.push(a0(Ge,111,fe))}),Be}function ae(pe){const fe=Nm(pe);if(!fe)return;const xe=[];return fe.modifiers&&fe.modifiers.forEach(Be=>{j(xe,Be,134)}),ao(fe,Be=>{ne(Be,Ge=>{Gx(Ge)&&j(xe,Ge.getFirstToken(),135)})}),xe}function Ce(pe){const fe=Nm(pe);if(!fe)return;const xe=[];return ao(fe,Be=>{ne(Be,Ge=>{cY(Ge)&&j(xe,Ge.getFirstToken(),127)})}),xe}function ne(pe,fe){fe(pe),!Co(pe)&&!mr(pe)&&!xh(pe)&&!_c(pe)&&!jp(pe)&&!Xr(pe)&&ao(pe,xe=>ne(xe,fe))}function ve(pe,fe){const xe=Se(pe,fe),Be=[];for(let Ge=0;Ge=Ae.end;Je--)if(!qg(fe.text.charCodeAt(Je))){Ke=!1;break}if(Ke){Be.push({fileName:fe.fileName,textSpan:Vc(Ae.getStart(),De.end),kind:"reference"}),Ge++;continue}}Be.push(s(xe[Ge],fe))}return Be}function Se(pe,fe){const xe=[];for(;xk(pe.parent)&&pe.parent.elseStatement===pe;)pe=pe.parent;for(;;){const Be=pe.getChildren(fe);j(xe,Be[0],101);for(let Ge=Be.length-1;Ge>=0&&!j(xe,Be[Ge],93);Ge--);if(!pe.elseStatement||!xk(pe.elseStatement))break;pe=pe.elseStatement}return xe}function Ne(pe,fe){return!!Tn(pe.parent,xe=>V2(xe)?xe.label.escapedText===fe:"quit")}})(JX||(JX={}))}});function iK(t){return!!t.sourceFile}function OSe(t,u,s){return Vfe(t,u,s)}function Vfe(t,u="",s,d){const f=new Map,p=L1(!!t);function E(){const K=ga(f.keys()).filter(Y=>Y&&Y.charAt(0)==="_").map(Y=>{const oe=f.get(Y),se=[];return oe.forEach((ge,ae)=>{iK(ge)?se.push({name:ae,scriptKind:ge.sourceFile.scriptKind,refCount:ge.languageServiceRefCount}):ge.forEach((Ce,ne)=>se.push({name:ae,scriptKind:ne,refCount:Ce.languageServiceRefCount}))}),se.sort((ge,ae)=>ae.refCount-ge.refCount),{bucket:Y,sourceFiles:se}});return JSON.stringify(K,void 0,2)}function v(K){return typeof K.getCompilationSettings=="function"?K.getCompilationSettings():K}function b(K,Y,oe,se,ge,ae){const Ce=J0(K,u,p),ne=Hfe(v(Y));return B(K,Ce,Y,ne,oe,se,ge,ae)}function B(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,oe,se,ge,ae,!0,Ce,ne)}function k(K,Y,oe,se,ge,ae){const Ce=J0(K,u,p),ne=Hfe(v(Y));return T(K,Ce,Y,ne,oe,se,ge,ae)}function T(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,v(oe),se,ge,ae,!1,Ce,ne)}function M(K,Y){const oe=iK(K)?K:K.get(H.checkDefined(Y,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return H.assert(Y===void 0||!oe||oe.sourceFile.scriptKind===Y,`Script kind should match provided ScriptKind:${Y} and sourceFile.scriptKind: ${oe==null?void 0:oe.sourceFile.scriptKind}, !entry: ${!oe}`),oe}function z(K,Y,oe,se,ge,ae,Ce,ne,ve){var Se,Ne,pe,fe;ne=oZ(K,ne);const xe=v(oe),Be=oe===xe?void 0:oe,Ge=ne===6?100:Os(xe),Ae=typeof ve=="object"?ve:{languageVersion:Ge,impliedNodeFormat:Be&&bH(Y,(fe=(pe=(Ne=(Se=Be.getCompilerHost)==null?void 0:Se.call(Be))==null?void 0:Ne.getModuleResolutionCache)==null?void 0:pe.call(Ne))==null?void 0:fe.getPackageJsonInfoCache(),Be,xe),setExternalModuleIndicator:Qj(xe),jsDocParsingMode:s};Ae.languageVersion=Ge,H.assertEqual(s,Ae.jsDocParsingMode);const De=f.size,Ke=jSe(se,Ae.impliedNodeFormat),Je=W0(f,Ke,()=>new Map);if(Gn){f.size>De&&Gn.instant(Gn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:xe.configFilePath,key:Ke});const We=!e1(Y)&&h1(f,(Gt,Yt)=>Yt!==Ke&&Gt.has(Y)&&Yt);We&&Gn.instant(Gn.Phase.Session,"documentRegistryBucketOverlap",{path:Y,key1:We,key2:Ke})}const ft=Je.get(Y);let Ye=ft&&M(ft,ne);if(!Ye&&d){const We=d.getDocument(Ke,Y);We&&(H.assert(Ce),Ye={sourceFile:We,languageServiceRefCount:0},Ve())}if(Ye)Ye.sourceFile.version!==ae&&(Ye.sourceFile=wme(Ye.sourceFile,ge,ae,ge.getChangeRange(Ye.sourceFile.scriptSnapshot)),d&&d.setDocument(Ke,Y,Ye.sourceFile)),Ce&&Ye.languageServiceRefCount++;else{const We=Eee(K,ge,Ae,ae,!1,ne);d&&d.setDocument(Ke,Y,We),Ye={sourceFile:We,languageServiceRefCount:1},Ve()}return H.assert(Ye.languageServiceRefCount!==0),Ye.sourceFile;function Ve(){if(!ft)Je.set(Y,Ye);else if(iK(ft)){const We=new Map;We.set(ft.sourceFile.scriptKind,ft),We.set(ne,Ye),Je.set(Y,We)}else ft.set(ne,Ye)}}function j(K,Y,oe,se){const ge=J0(K,u,p),ae=Hfe(Y);return J(ge,ae,oe,se)}function J(K,Y,oe,se){const ge=H.checkDefined(f.get(jSe(Y,se))),ae=ge.get(K),Ce=M(ae,oe);Ce.languageServiceRefCount--,H.assert(Ce.languageServiceRefCount>=0),Ce.languageServiceRefCount===0&&(iK(ae)?ge.delete(K):(ae.delete(oe),ae.size===1&&ge.set(K,ie(ae.values(),il))))}return{acquireDocument:b,acquireDocumentWithKey:B,updateDocument:k,updateDocumentWithKey:T,releaseDocument:j,releaseDocumentWithKey:J,getKeyForCompilationSettings:Hfe,getDocumentRegistryBucketKeyWithMode:jSe,reportStats:E,getBuckets:()=>f}}function Hfe(t){return vde(t,PY)}function jSe(t,u){return u?`${t}|${u}`:t}var fRt=o({"src/services/documentRegistry.ts"(){rr()}});function VSe(t,u,s,d,f,p,E){const v=Hj(d),b=L1(v),B=Kfe(u,s,b,E),k=Kfe(s,u,b,E);return iu.ChangeTracker.with({host:d,formatContext:f,preferences:p},T=>{pRt(t,T,B,u,s,d.getCurrentDirectory(),v),gRt(t,T,B,k,d,b)})}function Kfe(t,u,s,d){const f=s(t);return E=>{const v=d&&d.tryGetSourcePosition({fileName:E,pos:0}),b=p(v?v.fileName:E);return v?b===void 0?void 0:mRt(v.fileName,b,E,s):b};function p(E){if(s(E)===f)return u;const v=yle(E,f,s);return v===void 0?void 0:u+"/"+v}}function mRt(t,u,s,d){const f=SO(t,u,d);return HSe(lr(s),f)}function pRt(t,u,s,d,f,p,E){const{configFile:v}=t.getCompilerOptions();if(!v)return;const b=lr(v.fileName),B=ZN(v);if(!B)return;KSe(B,(z,j)=>{switch(j){case"files":case"include":case"exclude":{if(k(z)||j!=="include"||!Dh(z.initializer))return;const K=qi(z.initializer.elements,oe=>us(oe)?oe.text:void 0);if(K.length===0)return;const Y=aZ(b,[],K,E,p);jx(H.checkDefined(Y.includeFilePattern),E).test(d)&&!jx(H.checkDefined(Y.includeFilePattern),E).test(f)&&u.insertNodeAfter(v,Cr(z.initializer.elements),q.createStringLiteral(M(f)));return}case"compilerOptions":KSe(z.initializer,(J,K)=>{const Y=ede(K);H.assert((Y==null?void 0:Y.type)!=="listOrElement"),Y&&(Y.isFilePath||Y.type==="list"&&Y.element.isFilePath)?k(J):K==="paths"&&KSe(J.initializer,oe=>{if(Dh(oe.initializer))for(const se of oe.initializer.elements)T(se)})});return}});function k(z){const j=Dh(z.initializer)?z.initializer.elements:[z.initializer];let J=!1;for(const K of j)J=T(K)||J;return J}function T(z){if(!us(z))return!1;const j=HSe(b,z.text),J=s(j);return J!==void 0?(u.replaceRangeWithText(v,qit(z,v),M(J)),!0):!1}function M(z){return JE(b,z,!E)}}function gRt(t,u,s,d,f,p){const E=t.getSourceFiles();for(const v of E){const b=s(v.fileName),B=b??v.fileName,k=lr(B),T=d(v.fileName),M=T||v.fileName,z=lr(M),j=b!==void 0||T!==void 0;DRt(v,u,J=>{if(!om(J))return;const K=HSe(z,J),Y=s(K);return Y===void 0?void 0:h2(JE(k,Y,p))},J=>{const K=t.getTypeChecker().getSymbolAtLocation(J);if(K!=null&&K.declarations&&K.declarations.some(oe=>N1(oe)))return;const Y=T!==void 0?Uit(J,WB(J.text,M,t.getCompilerOptions(),f),s,E):_Rt(K,J,v,t,f,s);return Y!==void 0&&(Y.updated||j&&om(J.text))?Z2.updateModuleSpecifier(t.getCompilerOptions(),v,p(B),Y.newFileName,Ik(t,f),J.text):void 0})}}function ERt(t,u){return $o(cr(t,u))}function HSe(t,u){return h2(ERt(t,u))}function _Rt(t,u,s,d,f,p){if(t){const E=Le(t.declarations,la).fileName,v=p(E);return v===void 0?{newFileName:E,updated:!1}:{newFileName:v,updated:!0}}else{const E=xg(s,u),v=f.resolveModuleNameLiterals||!f.resolveModuleNames?d.getResolvedModule(s,u.text,E):f.getResolvedModuleWithFailedLookupLocationsFromCache&&f.getResolvedModuleWithFailedLookupLocationsFromCache(u.text,s.fileName,E);return Uit(u,v,p,d.getSourceFiles())}}function Uit(t,u,s,d){if(!u)return;if(u.resolvedModule){const b=v(u.resolvedModule.resolvedFileName);if(b)return b}const f=L(u.failedLookupLocations,p)||om(t.text)&&L(u.failedLookupLocations,E);if(f)return f;return u.resolvedModule&&{newFileName:u.resolvedModule.resolvedFileName,updated:!1};function p(b){const B=s(b);return B&&Le(d,k=>k.fileName===B)?E(b):void 0}function E(b){return sc(b,"/package.json")?void 0:v(b)}function v(b){const B=s(b);return B&&{newFileName:B,updated:!0}}}function DRt(t,u,s,d){for(const f of t.referencedFiles||_t){const p=s(f.fileName);p!==void 0&&p!==t.text.slice(f.pos,f.end)&&u.replaceRangeWithText(t,f,p)}for(const f of t.imports){const p=d(f);p!==void 0&&p!==f.text&&u.replaceRangeWithText(t,qit(f,t),p)}}function qit(t,u){return s4(t.getStart(u)+1,t.end-1)}function KSe(t,u){if(ys(t))for(const s of t.properties)Jc(s)&&us(s.name)&&u(s,s.name.text)}var xRt=o({"src/services/getEditsForFileRename.ts"(){rr()}});function WM(t,u){return{kind:t,isCaseSensitive:u}}function WSe(t){const u=new Map,s=t.trim().split(".").map(d=>yRt(d.trim()));if(s.length===1&&s[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>WM(2,!0),getFullMatch:()=>WM(2,!0),patternContainsDots:!1};if(!s.some(d=>!d.subWordTextChunks.length))return{getFullMatch:(d,f)=>vRt(d,f,s,u),getMatchForLastSegmentOfPattern:d=>GSe(d,Cr(s),u),patternContainsDots:s.length>1}}function vRt(t,u,s,d){if(!GSe(u,Cr(s),d)||s.length-1>t.length)return;let p;for(let E=s.length-2,v=t.length-1;E>=0;E-=1,v-=1)p=Qit(p,GSe(t[v],s[E],d));return p}function Zit(t,u){let s=u.get(t);return s||u.set(t,s=YSe(t)),s}function Yit(t,u,s){const d=kRt(t,u.textLowerCase);if(d===0)return WM(u.text.length===t.length?0:1,Pa(t,u.text));if(u.isLowerCase){if(d===-1)return;const f=Zit(t,s);for(const p of f)if(JSe(t,p,u.text,!0))return WM(2,JSe(t,p,u.text,!1));if(u.text.length0)return WM(2,!0);if(u.characterSpans.length>0){const f=Zit(t,s),p=Xit(t,f,u,!1)?!0:Xit(t,f,u,!0)?!1:void 0;if(p!==void 0)return WM(3,p)}}}function GSe(t,u,s){if(Wfe(u.totalTextChunk.text,p=>p!==32&&p!==42)){const p=Yit(t,u.totalTextChunk,s);if(p)return p}const d=u.subWordTextChunks;let f;for(const p of d)f=Qit(f,Yit(t,p,s));return f}function Qit(t,u){return ooe([t,u],CRt)}function CRt(t,u){return t===void 0?1:u===void 0?-1:nl(t.kind,u.kind)||d2(!t.isCaseSensitive,!u.isCaseSensitive)}function JSe(t,u,s,d,f={start:0,length:s.length}){return f.length<=u.length&&nnt(0,f.length,p=>bRt(s.charCodeAt(f.start+p),t.charCodeAt(u.start+p),d))}function bRt(t,u,s){return s?$Se(t)===$Se(u):t===u}function Xit(t,u,s,d){const f=s.characterSpans;let p=0,E=0;for(;;){if(E===f.length)return!0;if(p===u.length)return!1;let v=u[p],b=!1;for(;E=65&&t<=90)return!0;if(t<127||!kU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toUpperCase()}function ent(t){if(t>=97&&t<=122)return!0;if(t<127||!kU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toLowerCase()}function kRt(t,u){const s=t.length-u.length;for(let d=0;d<=s;d++)if(Wfe(u,(f,p)=>$Se(t.charCodeAt(p+d))===f))return d;return-1}function $Se(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function USe(t){return t>=48&&t<=57}function FRt(t){return dw(t)||ent(t)||USe(t)||t===95||t===36}function ARt(t){const u=[];let s=0,d=0;for(let f=0;f0&&(u.push(qSe(t.substr(s,d))),d=0)}return d>0&&u.push(qSe(t.substr(s,d))),u}function qSe(t){const u=t.toLowerCase();return{text:t,textLowerCase:u,isLowerCase:t===u,characterSpans:ZSe(t)}}function ZSe(t){return tnt(t,!1)}function YSe(t){return tnt(t,!0)}function tnt(t,u){const s=[];let d=0;for(let f=1;fQSe(d)&&d!==95,u,s)}function SRt(t,u,s){return u!==s&&u+1u(t.charCodeAt(f),f))}var $X,wRt=o({"src/services/patternMatcher.ts"(){rr(),$X=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))($X||{})}});function unt(t,u=!0,s=!1){const d={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},f=[];let p,E,v,b=0,B=!1;function k(){return E=v,v=nh.scan(),v===19?b++:v===20&&b--,v}function T(){const ae=nh.getTokenValue(),Ce=nh.getTokenStart();return{fileName:ae,pos:Ce,end:Ce+ae.length}}function M(){p||(p=[]),p.push({ref:T(),depth:b})}function z(){f.push(T()),j()}function j(){b===0&&(B=!0)}function J(){let ae=nh.getToken();return ae===138?(ae=k(),ae===144&&(ae=k(),ae===11&&M()),!0):!1}function K(){if(E===25)return!1;let ae=nh.getToken();if(ae===102){if(ae=k(),ae===21){if(ae=k(),ae===11||ae===15)return z(),!0}else{if(ae===11)return z(),!0;if(ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne!==161&&(ne===42||ne===19||ne===80||uf(ne))})&&(ae=k()),ae===80||uf(ae))if(ae=k(),ae===161){if(ae=k(),ae===11)return z(),!0}else if(ae===64){if(oe(!0))return!0}else if(ae===28)ae=k();else return!0;if(ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else ae===42&&(ae=k(),ae===130&&(ae=k(),(ae===80||uf(ae))&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))))}return!0}return!1}function Y(){let ae=nh.getToken();if(ae===95){if(j(),ae=k(),ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne===42||ne===19})&&(ae=k()),ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else if(ae===42)ae=k(),ae===161&&(ae=k(),ae===11&&z());else if(ae===102&&(ae=k(),ae===156&&nh.lookAhead(()=>{const ne=nh.scan();return ne===80||uf(ne)})&&(ae=k()),(ae===80||uf(ae))&&(ae=k(),ae===64&&oe(!0))))return!0;return!0}return!1}function oe(ae,Ce=!1){let ne=ae?k():nh.getToken();return ne===149?(ne=k(),ne===21&&(ne=k(),(ne===11||Ce&&ne===15)&&z()),!0):!1}function se(){let ae=nh.getToken();if(ae===80&&nh.getTokenValue()==="define"){if(ae=k(),ae!==21)return!0;if(ae=k(),ae===11||ae===15)if(ae=k(),ae===28)ae=k();else return!0;if(ae!==23)return!0;for(ae=k();ae!==24&&ae!==1;)(ae===11||ae===15)&&z(),ae=k();return!0}return!1}function ge(){for(nh.setText(t),k();nh.getToken()!==1;){if(nh.getToken()===16){const ae=[nh.getToken()];e:for(;S(ae);){const Ce=nh.scan();switch(Ce){case 1:break e;case 102:K();break;case 16:ae.push(Ce);break;case 19:S(ae)&&ae.push(Ce);break;case 20:S(ae)&&(qu(ae)===16?nh.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}k()}J()||K()||Y()||s&&(oe(!1,!0)||se())||k()}nh.setText(void 0)}if(u&&ge(),Uce(d,t),qce(d,Is),B){if(p)for(const ae of p)f.push(ae.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(p)for(const Ce of p)Ce.depth===0?(ae||(ae=[]),ae.push(Ce.ref.fileName)):f.push(Ce.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:ae}}}var TRt=o({"src/services/preProcess.ts"(){rr()}});function XSe(t){const u=L1(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),d=new Map,f=new Map;return{tryGetSourcePosition:v,tryGetGeneratedPosition:b,toLineColumnOffset:M,clearCache:z};function p(j){return J0(j,s,u)}function E(j,J){const K=p(j),Y=f.get(K);if(Y)return Y;let oe;if(t.getDocumentPositionMapper)oe=t.getDocumentPositionMapper(j,J);else if(t.readFile){const se=T(j);oe=se&&Gfe({getSourceFileLike:T,getCanonicalFileName:u,log:ge=>t.log(ge)},j,Kde(se.text,$3(se)),ge=>!t.fileExists||t.fileExists(ge)?t.readFile(ge):void 0)}return f.set(K,oe||rQ),oe||rQ}function v(j){if(!e1(j.fileName)||!B(j.fileName))return;const K=E(j.fileName).getSourcePosition(j);return!K||K===j?void 0:v(K)||K}function b(j){if(e1(j.fileName))return;const J=B(j.fileName);if(!J)return;const K=t.getProgram();if(K.isSourceOfProjectReferenceRedirect(J.fileName))return;const Y=K.getCompilerOptions(),oe=y0(Y),se=oe?_h(oe)+".d.ts":Mq(j.fileName,K.getCompilerOptions(),s,K.getCommonSourceDirectory(),u);if(se===void 0)return;const ge=E(se,j.fileName).getGeneratedPosition(j);return ge===j?void 0:ge}function B(j){const J=t.getProgram();if(!J)return;const K=p(j),Y=J.getSourceFileByPath(K);return Y&&Y.resolvedPath===K?Y:void 0}function k(j){const J=p(j),K=d.get(J);if(K!==void 0)return K||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(J)){d.set(J,!1);return}const Y=t.readFile(J),oe=Y?LRt(Y):!1;return d.set(J,oe),oe||void 0}function T(j){return t.getSourceFileLike?t.getSourceFileLike(j):B(j)||k(j)}function M(j,J){return T(j).getLineAndCharacterOfPosition(J)}function z(){d.clear(),f.clear()}}function Gfe(t,u,s,d){let f=VAe(s);if(f){const v=ant.exec(f);if(v){if(v[1]){const b=v[1];return rnt(t,jye(c1,b),u)}f=void 0}}const p=[];f&&p.push(f),p.push(u+".map");const E=f&&$a(f,lr(u));for(const v of p){const b=$a(v,lr(u)),B=d(b,E);if(Ja(B))return rnt(t,B,b);if(B!==void 0)return B||void 0}}function rnt(t,u,s){const d=Wde(u);if(!(!d||!d.sources||!d.file||!d.mappings)&&!(d.sourcesContent&&d.sourcesContent.some(Ja)))return WAe(t,d,s)}function LRt(t,u){return{text:t,lineMap:u,getLineAndCharacterOfPosition(s){return k8($3(this),s)}}}var ant,NRt=o({"src/services/sourcemaps.ts"(){rr(),ant=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Jfe(t,u,s){var d;u.getSemanticDiagnostics(t,s);const f=[],p=u.getTypeChecker();!(t.impliedNodeFormat===1||jc(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(cSe(u)||ufe(u.getCompilerOptions()))&&PRt(t)&&f.push(Su(RRt(t.commonJsModuleIndicator),F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const v=gh(t);if(Zfe.clear(),b(t),C7(u.getCompilerOptions()))for(const B of t.imports){const k=tP(B),T=MRt(k);if(!T)continue;const M=(d=u.getResolvedModule(t,B.text,xg(t,B)))==null?void 0:d.resolvedModule,z=M&&u.getSourceFile(M.resolvedFileName);z&&z.externalModuleIndicator&&z.externalModuleIndicator!==!0&&tc(z.externalModuleIndicator)&&z.externalModuleIndicator.isExportEquals&&f.push(Su(T,F.Import_may_be_converted_to_a_default_import))}return yn(f,t.bindSuggestionDiagnostics),yn(f,u.getSuggestionDiagnostics(t,s)),f.sort((B,k)=>B.start-k.start);function b(B){if(v)jRt(B,p)&&f.push(Su(ua(B.parent)?B.parent.name:B,F.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Jl(B)&&B.parent===t&&B.declarationList.flags&2&&B.declarationList.declarations.length===1){const T=B.declarationList.declarations[0].initializer;T&&xf(T,!0)&&f.push(Su(T,F.require_call_may_be_converted_to_an_import))}const k=z1.getJSDocTypedefNodes(B);for(const T of k)f.push(Su(T,F.JSDoc_typedef_may_be_converted_to_TypeScript_type));z1.parameterShouldGetTypeFromJSDoc(B)&&f.push(Su(B.name||B,F.JSDoc_types_may_be_moved_to_TypeScript_types))}qfe(B)&&zRt(B,p,f),B.forEachChild(b)}}function PRt(t){return t.statements.some(u=>{switch(u.kind){case 243:return u.declarationList.declarations.some(s=>!!s.initializer&&xf(ont(s.initializer),!0));case 244:{const{expression:s}=u;if(!Xn(s))return xf(s,!0);const d=Xl(s);return d===1||d===2}default:return!1}})}function ont(t){return Iu(t)?ont(t.expression):t}function MRt(t){switch(t.kind){case 272:const{importClause:u,moduleSpecifier:s}=t;return u&&!u.name&&u.namedBindings&&u.namedBindings.kind===274&&us(s)?u.namedBindings.name:void 0;case 271:return t.name;default:return}}function zRt(t,u,s){IRt(t,u)&&!Zfe.has(dnt(t))&&s.push(Su(!t.name&&ua(t.parent)&&at(t.parent.name)?t.parent.name:t,F.This_may_be_converted_to_an_async_function))}function IRt(t,u){return!aP(t)&&t.body&&po(t.body)&&ORt(t.body,u)&&$fe(t,u)}function $fe(t,u){const s=u.getSignatureFromDeclaration(t),d=s?u.getReturnTypeOfSignature(s):void 0;return!!d&&!!u.getPromisedTypeOfPromise(d)}function RRt(t){return Xn(t)?t.left:t}function ORt(t,u){return!!y2(t,s=>UX(s,u))}function UX(t,u){return Op(t)&&!!t.expression&&Ufe(t.expression,u)}function Ufe(t,u){if(!snt(t)||!lnt(t)||!t.arguments.every(d=>cnt(d,u)))return!1;let s=t.expression.expression;for(;snt(s)||Iu(s);)if(Mo(s)){if(!lnt(s)||!s.arguments.every(d=>cnt(d,u)))return!1;s=s.expression.expression}else s=s.expression;return!0}function snt(t){return Mo(t)&&(NH(t,"then")||NH(t,"catch")||NH(t,"finally"))}function lnt(t){const u=t.expression.name.text,s=u==="then"?2:u==="catch"||u==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthd.kind===106||at(d)&&d.text==="undefined")}function cnt(t,u){switch(t.kind){case 262:case 218:if(kd(t)&1)return!1;case 219:Zfe.set(dnt(t),!0);case 106:return!0;case 80:case 211:{const d=u.getSymbolAtLocation(t);return d?u.isUndefinedSymbol(d)||Oe(X1(d,u).declarations,f=>Co(f)||Nx(f)&&!!f.initializer&&Co(f.initializer)):!1}default:return!1}}function dnt(t){return`${t.pos.toString()}:${t.end.toString()}`}function jRt(t,u){var s,d,f,p;if(A0(t)){if(ua(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const E=u.getSymbolOfExpando(t,!1);return!!(E&&((d=E.exports)!=null&&d.size||(f=E.members)!=null&&f.size))}return ed(t)?!!((p=t.symbol.members)!=null&&p.size):!1}function qfe(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var Zfe,VRt=o({"src/services/suggestionDiagnostics.ts"(){rr(),Zfe=new Map}});function e8e(t,u){const s=[],d=u.compilerOptions?Yfe(u.compilerOptions,s):{},f=gee();for(const M in f)gu(f,M)&&d[M]===void 0&&(d[M]=f[M]);for(const M of gde)d.verbatimModuleSyntax&&fnt.has(M.name)||(d[M.name]=M.transpileOptionValue);d.suppressOutputPathCheck=!0,d.allowNonTsExtensions=!0;const p=a5(d),E={getSourceFile:M=>M===$o(v)?b:void 0,writeFile:(M,z)=>{Ml(M,".map")?(H.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",M),k=z):(H.assertEqual(B,void 0,"Unexpected multiple outputs, file:",M),B=z)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:M=>M,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:M=>M===v,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},v=u.fileName||(u.compilerOptions&&u.compilerOptions.jsx?"module.tsx":"module.ts"),b=KV(v,t,{languageVersion:Os(d),impliedNodeFormat:bH(J0(v,"",E.getCanonicalFileName),void 0,E,d),setExternalModuleIndicator:Qj(d),jsDocParsingMode:u.jsDocParsingMode??0});u.moduleName&&(b.moduleName=u.moduleName),u.renamedDependencies&&(b.renamedDependencies=new Map(Object.entries(u.renamedDependencies)));let B,k;const T=SQ([v],d,E);return u.reportDiagnostics&&(yn(s,T.getSyntacticDiagnostics(b)),yn(s,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,u.transformers),B===void 0?H.fail("Output generation failed"):{outputText:B,diagnostics:s,sourceMapText:k}}function hnt(t,u,s,d,f){const p=e8e(t,{compilerOptions:u,fileName:s,reportDiagnostics:!!d,moduleName:f});return yn(d,p.diagnostics),p.outputText}function Yfe(t,u){t8e=t8e||ti(a3,s=>typeof s.type=="object"&&!h1(s.type,d=>typeof d!="number")),t=Qhe(t);for(const s of t8e){if(!gu(t,s.name))continue;const d=t[s.name];Ja(d)?t[s.name]=BY(s,d,u):h1(s.type,f=>f===d)||u.push(GFe(s))}return t}var fnt,t8e,HRt=o({"src/services/transpile.ts"(){rr(),fnt=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function mnt(t,u,s,d,f,p,E){const v=WSe(d);if(!v)return _t;const b=[],B=t.length===1?t[0]:void 0;for(const k of t)s.throwIfCancellationRequested(),!(p&&k.isDeclarationFile)&&(pnt(k,!!E,B)||k.getNamedDeclarations().forEach((T,M)=>{KRt(v,M,T,u,k.fileName,!!E,B,b)}));return b.sort($Rt),(f===void 0?b:b.slice(0,f)).map(URt)}function pnt(t,u,s){return t!==s&&u&&(XH(t.path)||t.hasNoDefaultLib)}function KRt(t,u,s,d,f,p,E,v){const b=t.getMatchForLastSegmentOfPattern(u);if(b){for(const B of s)if(WRt(B,d,p,E))if(t.patternContainsDots){const k=t.getFullMatch(JRt(B),u);k&&v.push({name:u,fileName:f,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:B})}else v.push({name:u,fileName:f,matchKind:b.kind,isCaseSensitive:b.isCaseSensitive,declaration:B})}}function WRt(t,u,s,d){var f;switch(t.kind){case 273:case 276:case 271:const p=u.getSymbolAtLocation(t.name),E=u.getAliasedSymbol(p);return p.escapedName!==E.escapedName&&!((f=E.declarations)!=null&&f.every(v=>pnt(v.getSourceFile(),s,d)));default:return!0}}function GRt(t,u){const s=Za(t);return!!s&&(gnt(s,u)||s.kind===167&&i8e(s.expression,u))}function i8e(t,u){return gnt(t,u)||Iu(t)&&(u.push(t.name.text),!0)&&i8e(t.expression,u)}function gnt(t,u){return Xg(t)&&(u.push(J4(t)),!0)}function JRt(t){const u=[],s=Za(t);if(s&&s.kind===167&&!i8e(s.expression,u))return _t;u.shift();let d=Mk(t);for(;d;){if(!GRt(d,u))return _t;d=Mk(d)}return u.reverse()}function $Rt(t,u){return nl(t.matchKind,u.matchKind)||pO(t.name,u.name)}function URt(t){const u=t.declaration,s=Mk(u),d=s&&Za(s);return{name:t.name,kind:tb(u),kindModifiers:NM(u),matchKind:$X[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:of(u),containerName:d?d.text:"",containerKind:d?tb(s):""}}var qRt=o({"src/services/navigateTo.ts"(){rr()}}),n8e={};h(n8e,{getNavigateToItems:()=>mnt});var Ent=o({"src/services/_namespaces/ts.NavigateTo.ts"(){qRt()}});function _nt(t,u){tme=u,nK=t;try{return Vt(eOt(Cnt(t)),tOt)}finally{xnt()}}function Dnt(t,u){tme=u,nK=t;try{return Tnt(Cnt(t))}finally{xnt()}}function xnt(){nK=void 0,tme=void 0,uK=[],_5=void 0,ime=[]}function qX(t){return GM(t.getText(nK))}function Qfe(t){return t.node.kind}function vnt(t,u){t.children?t.children.push(u):t.children=[u]}function Cnt(t){H.assert(!uK.length);const u={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};_5=u;for(const s of t.statements)r9(s);return $v(),H.assert(!_5&&!uK.length),u}function ub(t,u){vnt(_5,u8e(t,u))}function u8e(t,u){return{node:t,name:u||(Q1(t)||Wt(t)?Za(t):void 0),additionalNodes:void 0,parent:_5,children:void 0,indent:_5.indent+1}}function bnt(t){hw||(hw=new Map),hw.set(t,!0)}function ynt(t){for(let u=0;u0;d--){const f=s[d];rb(t,f)}return[s.length-1,s[0]]}function rb(t,u){const s=u8e(t,u);vnt(_5,s),uK.push(_5),h8e.push(hw),hw=void 0,_5=s}function $v(){_5.children&&(Xfe(_5.children,_5),o8e(_5.children)),_5=uK.pop(),hw=h8e.pop()}function Uv(t,u,s){rb(t,s),r9(u),$v()}function Fnt(t){t.initializer&&nOt(t.initializer)?(rb(t),ao(t.initializer,r9),$v()):Uv(t,t.initializer)}function r8e(t){const u=Za(t);if(u===void 0)return!1;if(Ps(u)){const s=u.expression;return ec(s)||Of(s)||Pm(s)}return!!u}function r9(t){if(tme.throwIfCancellationRequested(),!(!t||u7(t)))switch(t.kind){case 176:const u=t;Uv(u,u.body);for(const E of u.parameters)Mf(E,u)&&ub(E);break;case 174:case 177:case 178:case 173:r8e(t)&&Uv(t,t.body);break;case 172:r8e(t)&&Fnt(t);break;case 171:r8e(t)&&ub(t);break;case 273:const s=t;s.name&&ub(s.name);const{namedBindings:d}=s;if(d)if(d.kind===274)ub(d);else for(const E of d.elements)ub(E);break;case 304:Uv(t,t.name);break;case 305:const{expression:f}=t;at(f)?ub(t,f):ub(t);break;case 208:case 303:case 260:{const E=t;So(E.name)?r9(E.name):Fnt(E);break}case 262:const p=t.name;p&&at(p)&&bnt(p.text),Uv(t,t.body);break;case 219:case 218:Uv(t,t.body);break;case 266:rb(t);for(const E of t.members)iOt(E)||ub(E);$v();break;case 263:case 231:case 264:rb(t);for(const E of t.members)r9(E);$v();break;case 267:Uv(t,Nnt(t).body);break;case 277:{const E=t.expression,v=ys(E)||Mo(E)?E:q0(E)||A0(E)?E.body:void 0;v?(rb(t),r9(v),$v()):ub(t);break}case 281:case 271:case 181:case 179:case 180:case 265:ub(t);break;case 213:case 226:{const E=Xl(t);switch(E){case 1:case 2:Uv(t,t.right);return;case 6:case 3:{const v=t,b=v.left,B=E===3?b.expression:b;let k=0,T;at(B.expression)?(bnt(B.expression.text),T=B.expression):[k,T]=knt(v,B.expression),E===6?ys(v.right)&&v.right.properties.length>0&&(rb(v,T),ao(v.right,r9),$v()):A0(v.right)||q0(v.right)?Uv(t,v.right,T):(rb(v,T),Uv(t,v.right,b.name),$v()),ynt(k);return}case 7:case 9:{const v=t,b=E===7?v.arguments[0]:v.arguments[0].expression,B=v.arguments[1],[k,T]=knt(t,b);rb(t,T),rb(t,Pt(q.createIdentifier(B.text),B)),r9(t.arguments[2]),$v(),$v(),ynt(k);return}case 5:{const v=t,b=v.left,B=b.expression;if(at(B)&&Q3(b)!=="prototype"&&hw&&hw.has(B.text)){A0(v.right)||q0(v.right)?Uv(t,v.right,B):A2(b)&&(rb(v,B),Uv(v.left,v.right,bj(b)),$v());return}break}case 4:case 0:case 8:break;default:H.assertNever(E)}}default:lm(t)&&L(t.jsDoc,E=>{L(E.tags,v=>{G4(v)&&ub(v)})}),ao(t,r9)}}function Xfe(t,u){const s=new Map;Uu(t,(d,f)=>{const p=d.name||Za(d.node),E=p&&qX(p);if(!E)return!0;const v=s.get(E);if(!v)return s.set(E,d),!0;if(v instanceof Array){for(const b of v)if(Ant(b,d,f,u))return!1;return v.push(d),!0}else{const b=v;return Ant(b,d,f,u)?!1:(s.set(E,[b,d]),!0)}})}function ZRt(t,u,s,d){function f(v){return A0(v)||ed(v)||ua(v)}const p=Xn(u.node)||Mo(u.node)?Xl(u.node):0,E=Xn(t.node)||Mo(t.node)?Xl(t.node):0;if(JM[p]&&JM[E]||f(t.node)&&JM[p]||f(u.node)&&JM[E]||Wc(t.node)&&a8e(t.node)&&JM[p]||Wc(u.node)&&JM[E]||Wc(t.node)&&a8e(t.node)&&f(u.node)||Wc(u.node)&&f(t.node)&&a8e(t.node)){let v=t.additionalNodes&&qu(t.additionalNodes)||t.node;if(!Wc(t.node)&&!Wc(u.node)||f(t.node)||f(u.node)){const B=f(t.node)?t.node:f(u.node)?u.node:void 0;if(B!==void 0){const k=Pt(q.createConstructorDeclaration(void 0,[],void 0),B),T=u8e(k);T.indent=t.indent+1,T.children=t.node===B?t.children:u.children,t.children=t.node===B?Hi([T],u.children||[u]):Hi(t.children||[{...t}],[T])}else(t.children||u.children)&&(t.children=Hi(t.children||[{...t}],u.children||[u]),t.children&&(Xfe(t.children,t),o8e(t.children)));v=t.node=Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=Hi(t.children,u.children),t.children&&Xfe(t.children,t);const b=u.node;return d.children[s-1].node.end===v.end?Pt(v,{pos:v.pos,end:b.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),u.node))),!0}return p!==0}function Ant(t,u,s,d){return ZRt(t,u,s,d)?!0:YRt(t.node,u.node,d)?(QRt(t,u),!0):!1}function YRt(t,u,s){if(t.kind!==u.kind||t.parent!==u.parent&&!(Snt(t,s)&&Snt(u,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return No(t)===No(u);case 267:return Bnt(t,u)&&c8e(t)===c8e(u);default:return!0}}function a8e(t){return!!(t.flags&16)}function Snt(t,u){const s=rE(t.parent)?t.parent.parent:t.parent;return s===u.node||kt(u.additionalNodes,s)}function Bnt(t,u){return!t.body||!u.body?t.body===u.body:t.body.kind===u.body.kind&&(t.body.kind!==267||Bnt(t.body,u.body))}function QRt(t,u){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(u.node),u.additionalNodes&&t.additionalNodes.push(...u.additionalNodes),t.children=Hi(t.children,u.children),t.children&&(Xfe(t.children,t),o8e(t.children))}function o8e(t){t.sort(XRt)}function XRt(t,u){return pO(wnt(t.node),wnt(u.node))||nl(Qfe(t),Qfe(u))}function wnt(t){if(t.kind===267)return Lnt(t);const u=Za(t);if(u&&Sc(u)){const s=sk(u);return s&&Qr(s)}switch(t.kind){case 218:case 219:case 231:return Mnt(t);default:return}}function s8e(t,u){if(t.kind===267)return GM(Lnt(t));if(u){const s=at(u)?u.text:U0(u)?`[${qX(u.argumentExpression)}]`:qX(u);if(s.length>0)return GM(s)}switch(t.kind){case 312:const s=t;return wc(s)?`"${Av(Ac(_h($o(s.fileName))))}"`:"";case 277:return tc(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Rx(t)&2048?"default":Mnt(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function eOt(t){const u=[];function s(f){if(d(f)&&(u.push(f),f.children))for(const p of f.children)s(p)}return s(t),u;function d(f){if(f.children)return!0;switch(Qfe(f)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return p(f);default:return!1}function p(E){if(!E.node.body)return!1;switch(Qfe(E.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function Tnt(t){return{text:s8e(t.node,t.name),kind:tb(t.node),kindModifiers:Pnt(t.node),spans:l8e(t),nameSpan:t.name&&d8e(t.name),childItems:Vt(t.children,Tnt)}}function tOt(t){return{text:s8e(t.node,t.name),kind:tb(t.node),kindModifiers:Pnt(t.node),spans:l8e(t),childItems:Vt(t.children,u)||ime,indent:t.indent,bolded:!1,grayed:!1};function u(s){return{text:s8e(s.node,s.name),kind:tb(s.node),kindModifiers:NM(s.node),spans:l8e(s),childItems:ime,indent:0,bolded:!1,grayed:!1}}}function l8e(t){const u=[d8e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)u.push(d8e(s));return u}function Lnt(t){return N1(t)?Hc(t.name):c8e(t)}function c8e(t){const u=[J4(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,u.push(J4(t.name));return u.join(".")}function Nnt(t){return t.body&&_c(t.body)?Nnt(t.body):t}function iOt(t){return!t.name||t.name.kind===167}function d8e(t){return t.kind===312?qx(t):of(t,nK)}function Pnt(t){return t.parent&&t.parent.kind===260&&(t=t.parent),NM(t)}function Mnt(t){const{parent:u}=t;if(t.name&&ij(t.name)>0)return GM(b0(t.name));if(ua(u))return GM(b0(u.name));if(Xn(u)&&u.operatorToken.kind===64)return qX(u.left).replace(Int,"");if(Jc(u))return qX(u.name);if(Rx(t)&2048)return"default";if(mr(t))return"";if(Mo(u)){let s=znt(u.expression);if(s!==void 0){if(s=GM(s),s.length>eme)return`${s} callback`;const d=GM(qi(u.arguments,f=>t0(f)?f.getText(nK):void 0).join(", "));return`${s}(${d}) callback`}}return""}function znt(t){if(at(t))return t.text;if(Iu(t)){const u=znt(t.expression),s=t.name.text;return u===void 0?s:`${u}.${s}`}else return}function nOt(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function GM(t){return t=t.length>eme?t.substring(0,eme)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Int,eme,tme,nK,uK,_5,h8e,hw,ime,JM,uOt=o({"src/services/navigationBar.ts"(){rr(),Int=/\s+/g,eme=150,uK=[],h8e=[],ime=[],JM={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),f8e={};h(f8e,{getNavigationBarItems:()=>_nt,getNavigationTree:()=>Dnt});var Rnt=o({"src/services/_namespaces/ts.NavigationBar.ts"(){uOt()}});function s3(t,u){nme.set(t,u)}function rOt(t,u){return ga(pa(nme.values(),s=>{var d;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((d=s.kinds)!=null&&d.some(f=>qv(f,t.kind)))?void 0:s.getAvailableActions(t,u)}))}function aOt(t,u,s,d){const f=nme.get(u);return f&&f.getEditsForAction(t,s,d)}var nme,Ont=o({"src/services/refactorProvider.ts"(){rr(),s_(),nme=new Map}});function jnt(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=Ca(s,f.start),E=p.parent&&Rx(p.parent)&32&&u?p.parent:JH(p,s,f);if(!E||!la(E.parent)&&!(rE(E.parent)&&N1(E.parent.parent)))return{error:to(F.Could_not_find_export_statement)};const v=d.getTypeChecker(),b=hOt(E.parent,v),B=Rx(E)||(tc(E)&&!E.isExportEquals?2080:0),k=!!(B&2048);if(!(B&32)||!k&&b.exports.has("default"))return{error:to(F.This_file_already_has_a_default_export)};const T=M=>at(M)&&v.getSymbolAtLocation(M)?void 0:{error:to(F.Can_only_convert_named_export)};switch(E.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const M=E;return M.name?T(M.name)||{exportNode:M,exportName:M.name,wasDefault:k,exportingModuleSymbol:b}:void 0}case 243:{const M=E;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;const z=Pn(M.declarationList.declarations);return z.initializer?(H.assert(!k,"Can't have a default flag here"),T(z.name)||{exportNode:M,exportName:z.name,wasDefault:k,exportingModuleSymbol:b}):void 0}case 277:{const M=E;return M.isExportEquals?void 0:T(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:k,exportingModuleSymbol:b}}default:return}}function oOt(t,u,s,d,f){sOt(t,s,d,u.getTypeChecker()),lOt(u,s,d,f)}function sOt(t,{wasDefault:u,exportNode:s,exportName:d},f,p){if(u)if(tc(s)&&!s.isExportEquals){const E=s.expression,v=Vnt(E.text,E.text);f.replaceNode(t,s,q.createExportDeclaration(void 0,!1,q.createNamedExports([v])))}else f.delete(t,H.checkDefined(ow(s,90),"Should find a default keyword in modifier list"));else{const E=H.checkDefined(ow(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:f.insertNodeAfter(t,E,q.createToken(90));break;case 243:const v=Pn(s.declarationList.declarations);if(!Z0.Core.isSymbolReferencedInFile(d,p,t)&&!v.type){f.replaceNode(t,s,q.createExportDefault(H.checkDefined(v.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:f.deleteModifier(t,E),f.insertNodeAfter(t,s,q.createExportDefault(q.createIdentifier(d.text)));break;default:H.fail(`Unexpected exportNode kind ${s.kind}`)}}}function lOt(t,{wasDefault:u,exportName:s,exportingModuleSymbol:d},f,p){const E=t.getTypeChecker(),v=H.checkDefined(E.getSymbolAtLocation(s),"Export name should resolve to a symbol");Z0.Core.eachExportReference(t.getSourceFiles(),E,p,v,d,s.text,u,b=>{if(s===b)return;const B=b.getSourceFile();u?cOt(B,b,f,s.text):dOt(B,b,f)})}function cOt(t,u,s,d){const{parent:f}=u;switch(f.kind){case 211:s.replaceNode(t,u,q.createIdentifier(d));break;case 276:case 281:{const E=f;s.replaceNode(t,E,m8e(d,E.name.text));break}case 273:{const E=f;H.assert(E.name===u,"Import clause name should match provided ref");const v=m8e(d,u.text),{namedBindings:b}=E;if(!b)s.replaceNode(t,u,q.createNamedImports([v]));else if(b.kind===274){s.deleteRange(t,{pos:u.getStart(t),end:b.getStart(t)});const B=us(E.parent.moduleSpecifier)?afe(E.parent.moduleSpecifier,t):1,k=g5(void 0,[m8e(d,u.text)],E.parent.moduleSpecifier,B);s.insertNodeAfter(t,E.parent,k)}else s.delete(t,u),s.insertNodeAtEndOfList(t,b.elements,v);break}case 205:const p=f;s.replaceNode(t,f,q.createImportTypeNode(p.argument,p.attributes,q.createIdentifier(d),p.typeArguments,p.isTypeOf));break;default:H.failBadSyntaxKind(f)}}function dOt(t,u,s){const d=u.parent;switch(d.kind){case 211:s.replaceNode(t,u,q.createIdentifier("default"));break;case 276:{const f=q.createIdentifier(d.name.text);d.parent.elements.length===1?s.replaceNode(t,d.parent,f):(s.delete(t,d),s.insertNodeBefore(t,d.parent,f));break}case 281:{s.replaceNode(t,d,Vnt("default",d.name.text));break}default:H.assertNever(d,`Unexpected parent kind ${d.kind}`)}}function m8e(t,u){return q.createImportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function Vnt(t,u){return q.createExportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function hOt(t,u){if(la(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&v2(s.valueDeclaration)?u.getMergedSymbol(s):s}var ume,ZX,YX,fOt=o({"src/services/refactors/convertExport.ts"(){rr(),s_(),ume="Convert export",ZX={name:"Convert default export to named export",description:to(F.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},YX={name:"Convert named export to default export",description:to(F.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},s3(ume,{kinds:[ZX.kind,YX.kind],getAvailableActions:function(u){const s=jnt(u,u.triggerReason==="invoked");if(!s)return _t;if(!sD(s)){const d=s.wasDefault?ZX:YX;return[{name:ume,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?[{name:ume,description:to(F.Convert_default_export_to_named_export),actions:[{...ZX,notApplicableReason:s.error},{...YX,notApplicableReason:s.error}]}]:_t},getEditsForAction:function(u,s){H.assert(s===ZX.name||s===YX.name,"Unexpected action name");const d=jnt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>oOt(u.file,u.program,d,p,u.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function Hnt(t,u=!0){const{file:s}=t,d=u9(t),f=Ca(s,d.start),p=u?Tn(f,Sd):JH(f,s,d);if(!p||!Sd(p))return{error:"Selection is not an import declaration."};const E=d.start+d.length,v=ib(p,p.parent,s);if(v&&E>v.getStart())return;const{importClause:b}=p;return b?b.namedBindings?b.namedBindings.kind===274?{convertTo:0,import:b.namedBindings}:Knt(t.program,b)?{convertTo:1,import:b.namedBindings}:{convertTo:2,import:b.namedBindings}:{error:to(F.Could_not_find_namespace_import_or_named_imports)}:{error:to(F.Could_not_find_import_clause)}}function Knt(t,u){return C7(t.getCompilerOptions())&&EOt(u.parent.moduleSpecifier,t.getTypeChecker())}function mOt(t,u,s,d){const f=u.getTypeChecker();d.convertTo===0?pOt(t,f,s,d.import,C7(u.getCompilerOptions())):Gnt(t,u,s,d.import,d.convertTo===1)}function pOt(t,u,s,d,f){let p=!1;const E=[],v=new Map;Z0.Core.eachSymbolReferenceInFile(d.name,u,t,T=>{if(!obe(T.parent))p=!0;else{const M=Wnt(T.parent).text;u.resolveName(M,T,67108863,!0)&&v.set(M,!0),H.assert(gOt(T.parent)===T,"Parent expression should match id"),E.push(T.parent)}});const b=new Map;for(const T of E){const M=Wnt(T).text;let z=b.get(M);z===void 0&&b.set(M,z=v.has(M)?Ok(M,t):M),s.replaceNode(t,T,q.createIdentifier(z))}const B=[];b.forEach((T,M)=>{B.push(q.createImportSpecifier(!1,T===M?void 0:q.createIdentifier(M),q.createIdentifier(T)))});const k=d.parent.parent;p&&!f?s.insertNodeAfter(t,k,p8e(k,void 0,B)):s.replaceNode(t,k,p8e(k,p?q.createIdentifier(d.name.text):void 0,B))}function Wnt(t){return Iu(t)?t.name:t.right}function gOt(t){return Iu(t)?t.expression:t.left}function Gnt(t,u,s,d,f=Knt(u,d.parent)){const p=u.getTypeChecker(),E=d.parent.parent,{moduleSpecifier:v}=E,b=new Set;d.elements.forEach(j=>{const J=p.getSymbolAtLocation(j.name);J&&b.add(J)});const B=v&&us(v)?z1.moduleSpecifierToValidIdentifier(v.text,99):"module";function k(j){return!!Z0.Core.eachSymbolReferenceInFile(j.name,p,t,J=>{const K=p.resolveName(B,J,67108863,!0);return K?b.has(K)?eh(J.parent):!0:!1})}const M=d.elements.some(k)?Ok(B,t):B,z=new Set;for(const j of d.elements){const J=(j.propertyName||j.name).text;Z0.Core.eachSymbolReferenceInFile(j.name,p,t,K=>{const Y=q.createPropertyAccessExpression(q.createIdentifier(M),J);pm(K.parent)?s.replaceNode(t,K.parent,q.createPropertyAssignment(K.text,Y)):eh(K.parent)?z.add(j):s.replaceNode(t,K,Y)})}if(s.replaceNode(t,d,f?q.createIdentifier(M):q.createNamespaceImport(q.createIdentifier(M))),z.size){const j=ga(z.values(),J=>q.createImportSpecifier(J.isTypeOnly,J.propertyName&&q.createIdentifier(J.propertyName.text),q.createIdentifier(J.name.text)));s.insertNodeAfter(t,d.parent.parent,p8e(E,void 0,j))}}function EOt(t,u){const s=u.resolveExternalModuleName(t);if(!s)return!1;const d=u.resolveExternalModuleSymbol(s);return s!==d}function p8e(t,u,s){return q.createImportDeclaration(void 0,q.createImportClause(!1,u,s&&s.length?q.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var rme,QX,_Ot=o({"src/services/refactors/convertImport.ts"(){rr(),s_(),rme="Convert import",QX={0:{name:"Convert namespace import to named imports",description:to(F.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:to(F.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:to(F.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},s3(rme,{kinds:U1(QX).map(t=>t.kind),getAvailableActions:function(u){const s=Hnt(u,u.triggerReason==="invoked");if(!s)return _t;if(!sD(s)){const d=QX[s.convertTo];return[{name:rme,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?U1(QX).map(d=>({name:rme,description:d.description,actions:[{...d,notApplicableReason:s.error}]})):_t},getEditsForAction:function(u,s){H.assert(Oe(U1(QX),p=>p.name===s),"Unexpected action name");const d=Hnt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>mOt(u.file,u.program,p,d)),renameFilename:void 0,renameLocation:void 0}}})}});function Jnt(t,u=!0){const{file:s,startPosition:d}=t,f=gh(s),p=Ca(s,d),E=pX(u9(t)),v=E.pos===E.end&&u,b=rX(p,s,E.pos,E.end),B=Tn(p,Y=>Y.parent&&Xr(Y)&&!ab(E,Y.parent,s)&&(v||b));if(!B||!Xr(B))return{error:to(F.Selection_is_not_a_valid_type_node)};const k=t.program.getTypeChecker(),T=bOt(B,f);if(T===void 0)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const M=yOt(B,T);if(!Xr(M))return{error:to(F.Selection_is_not_a_valid_type_node)};const z=[];(Pv(M.parent)||kB(M.parent))&&E.end>B.end&&yn(z,M.parent.types.filter(Y=>rX(Y,s,E.pos,E.end)));const j=z.length>1?z:M,J=DOt(k,j,T,s);if(!J)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const K=ame(k,j);return{isJS:f,selection:j,enclosingNode:T,typeParameters:J,typeElements:K}}function ame(t,u){if(u){if(Ha(u)){const s=[];for(const d of u){const f=ame(t,d);if(!f)return;yn(s,f)}return s}if(kB(u)){const s=[],d=new Map;for(const f of u.types){const p=ame(t,f);if(!p||!p.every(E=>E.name&&Ip(d,WH(E.name))))return;yn(s,p)}return s}else{if(M7(u))return ame(t,u.type);if(fm(u))return u.members}}}function ab(t,u,s){return IH(t,gs(s.text,u.pos),u.end)}function DOt(t,u,s,d){const f=[],p=YA(u),E={pos:p[0].pos,end:p[p.length-1].end};for(const b of p)if(v(b))return;return f;function v(b){if(X4(b)){if(at(b.typeName)){const B=b.typeName,k=t.resolveName(B.text,B,262144,!0);for(const T of(k==null?void 0:k.declarations)||_t)if(Bl(T)&&T.getSourceFile()===d){if(T.name.escapedText===B.escapedText&&ab(T,E,d))return!0;if(ab(s,T,d)&&!ab(E,T,d)){xa(f,T);break}}}}else if(P7(b)){const B=Tn(b,k=>FB(k)&&ab(k.extendsType,b,d));if(!B||!ab(E,B,d))return!0}else if(aY(b)||sY(b)){const B=Tn(b.parent,Co);if(B&&B.type&&ab(B.type,b,d)&&!ab(E,B,d))return!0}else if(bB(b)){if(at(b.exprName)){const B=t.resolveName(b.exprName.text,b.exprName,111551,!1);if(B!=null&&B.valueDeclaration&&ab(s,B.valueDeclaration,d)&&!ab(E,B.valueDeclaration,d))return!0}else if(N2(b.exprName.left)&&!ab(E,b.parent,d))return!0}return d&&yB(b)&&s0(d,b.pos).line===s0(d,b.end).line&&Zn(b,1),ao(b,v)}}function xOt(t,u,s,d){const{enclosingNode:f,typeParameters:p}=d,{firstTypeNode:E,lastTypeNode:v,newTypeNode:b}=g8e(d),B=q.createTypeAliasDeclaration(void 0,s,p.map(k=>q.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),b);t.insertNodeBefore(u,f,cce(B),!0),t.replaceNodeRange(u,E,v,q.createTypeReferenceNode(s,p.map(k=>q.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function vOt(t,u,s,d){var f;const{enclosingNode:p,typeParameters:E,typeElements:v}=d,b=q.createInterfaceDeclaration(void 0,s,E,void 0,v);Pt(b,(f=v[0])==null?void 0:f.parent),t.insertNodeBefore(u,p,cce(b),!0);const{firstTypeNode:B,lastTypeNode:k}=g8e(d);t.replaceNodeRange(u,B,k,q.createTypeReferenceNode(s,E.map(T=>q.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function COt(t,u,s,d,f){var p;YA(f.selection).forEach(j=>{Zn(j,7168)});const{enclosingNode:E,typeParameters:v}=f,{firstTypeNode:b,lastTypeNode:B,newTypeNode:k}=g8e(f),T=q.createJSDocTypedefTag(q.createIdentifier("typedef"),q.createJSDocTypeExpression(k),q.createIdentifier(d)),M=[];L(v,j=>{const J=w8(j),K=q.createTypeParameterDeclaration(void 0,j.name),Y=q.createJSDocTemplateTag(q.createIdentifier("template"),J&&Po(J,kk),[K]);M.push(Y)});const z=q.createJSDocComment(void 0,q.createNodeArray(Hi(M,[T])));if(Vp(E)){const j=E.getStart(s),J=E5(u.host,(p=u.formatContext)==null?void 0:p.options);t.insertNodeAt(s,E.getStart(s),z,{suffix:J+J+s.text.slice(FX(s.text,j-1),j)})}else t.insertNodeBefore(s,E,z,!0);t.replaceNodeRange(s,b,B,q.createTypeReferenceNode(d,v.map(j=>q.createTypeReferenceNode(j.name,void 0))))}function g8e(t){return Ha(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:Pv(t.selection[0].parent)?q.createUnionTypeNode(t.selection):q.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function bOt(t,u){return Tn(t,na)||(u?Tn(t,Vp):void 0)}function yOt(t,u){return Tn(t,s=>s===u?"quit":!!(Pv(s.parent)||kB(s.parent)))??t}var ome,XX,eee,tee,kOt=o({"src/services/refactors/extractType.ts"(){rr(),s_(),ome="Extract type",XX={name:"Extract to type alias",description:to(F.Extract_to_type_alias),kind:"refactor.extract.type"},eee={name:"Extract to interface",description:to(F.Extract_to_interface),kind:"refactor.extract.interface"},tee={name:"Extract to typedef",description:to(F.Extract_to_typedef),kind:"refactor.extract.typedef"},s3(ome,{kinds:[XX.kind,eee.kind,tee.kind],getAvailableActions:function(u){const s=Jnt(u,u.triggerReason==="invoked");return s?sD(s)?u.preferences.provideRefactorNotApplicableReason?[{name:ome,description:to(F.Extract_type),actions:[{...tee,notApplicableReason:s.error},{...XX,notApplicableReason:s.error},{...eee,notApplicableReason:s.error}]}]:_t:[{name:ome,description:to(F.Extract_type),actions:s.isJS?[tee]:xi([XX],s.typeElements&&eee)}]:_t},getEditsForAction:function(u,s){const{file:d}=u,f=Jnt(u);H.assert(f&&!sD(f),"Expected to find a range to extract");const p=Ok("NewType",d),E=iu.ChangeTracker.with(u,B=>{switch(s){case XX.name:return H.assert(!f.isJS,"Invalid actionName/JS combo"),xOt(B,d,p,f);case tee.name:return H.assert(f.isJS,"Invalid actionName/JS combo"),COt(B,u,d,p,f);case eee.name:return H.assert(!f.isJS&&!!f.typeElements,"Invalid actionName/JS combo"),vOt(B,d,p,f);default:H.fail("Unexpected action name")}}),v=d.fileName,b=qH(E,v,p,!1);return{edits:E,renameFilename:v,renameLocation:b}}})}});function sD(t){return t.error!==void 0}function qv(t,u){return u?t.substr(0,u.length)===u:!0}var FOt=o({"src/services/refactors/helpers.ts"(){}});function $nt(t,u,s,d){var f,p;const E=d.getTypeChecker(),v=af(t,u),b=v.parent;if(at(v)){if(Zj(b)&&qN(b)&&at(b.name)){if(((f=E.getMergedSymbol(b.symbol).declarations)==null?void 0:f.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};if(Unt(b))return;const B=qnt(b,E,t);return B&&{references:B,declaration:b,replacement:b.initializer}}if(s){let B=E.resolveName(v.text,v,111551,!1);if(B=B&&E.getMergedSymbol(B),((p=B==null?void 0:B.declarations)==null?void 0:p.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};const k=B.declarations[0];if(!Zj(k)||!qN(k)||!at(k.name)||Unt(k))return;const T=qnt(k,E,t);return T&&{references:T,declaration:k,replacement:k.initializer}}return{error:to(F.Could_not_find_variable_to_inline)}}}function Unt(t){const u=Po(t.parent.parent,Jl);return Oe(u.modifiers,L7)}function qnt(t,u,s){const d=[],f=Z0.Core.eachSymbolReferenceInFile(t.name,u,s,p=>{if(Z0.isWriteAccessForReference(p)||eh(p.parent)||tc(p.parent)||bB(p.parent)||IO(t,p.pos))return!0;d.push(p)});return d.length===0||f?void 0:d}function AOt(t,u){u=ll(u);const{parent:s}=t;return Wt(s)&&(lP(u){for(const T of E)k.replaceNode(s,T,AOt(T,b));k.delete(s,v)})}}})}});function BOt(t,u,s,d,f,p,E){const v=u.getTypeChecker(),b=uee(t,s.all,v),B=A8e(t,u,E,f);d.createNewFile(t,B,wOt(t,b,d,s,u,f,B,p)),E8e(u,d,t.fileName,B,n5(f))}function wOt(t,u,s,d,f,p,E,v){const b=f.getTypeChecker(),B=tU(t.statements,Mp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&u.oldImportsNeededByTargetFile.size===0)return iee(t,d.ranges,s),[...B,...d.all];const k=!Bfe(E,f,p,!!t.commonJsModuleIndicator),T=Hm(t,v),M=v8e(t,u.oldFileImportsFromTargetFile,E,f,p,k,T);M&&MM(s,t,M,!0,v),_8e(t,d.all,s,u.unusedImportsFromOldFile,b),iee(t,d.ranges,s),D8e(s,f,p,t,u.movedSymbols,E,T);const z=TOt(t,u.oldImportsNeededByTargetFile,u.targetFileImportsFromOldFile,s,b,f,p,k,T),j=C8e(t,d.all,u.oldFileImportsFromTargetFile,k);return z.length&&j.length?[...B,...z,4,...j]:[...B,...z,...j]}function TOt(t,u,s,d,f,p,E,v,b){const B=[];for(const z of t.statements)sK(z,j=>{xi(B,lK(j,oK(j),J=>u.has(f.getSymbolAtLocation(J))))});let k;const T=[],M=i9();return s.forEach(z=>{if(z.declarations)for(const j of z.declarations){if(!ree(j))continue;const J=k8e(j);if(!J)continue;const K=hme(j);M(K)&&F8e(t,K,J,d,v),Yu(j,2048)?k=J:T.push(J.text)}}),xi(B,nee(t,k,T,Ac(t.fileName),p,E,v,b)),B}var aK,cme,dme,LOt=o({"src/services/refactors/moveToNewFile.ts"(){rr(),s_(),aK="Move to a new file",cme=to(F.Move_to_a_new_file),dme={name:aK,description:cme,kind:"refactor.move.newFile"},s3(aK,{kinds:[dme.kind],getAvailableActions:function(u){const s=cK(u);return u.preferences.allowTextChangesInNewFiles&&s?[{name:aK,description:cme,actions:[dme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:aK,description:cme,actions:[{...dme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t},getEditsForAction:function(u,s){H.assert(s===aK,"Wrong refactor invoked");const d=H.checkDefined(cK(u));return{edits:iu.ChangeTracker.with(u,p=>BOt(u.file,u.program,d,p,u.host,u.preferences,u)),renameFilename:void 0,renameLocation:void 0}}})}});function Znt(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function NOt(t,u,s,d,f,p,E,v){const b=d.getTypeChecker();if(!E.fileExists(s))p.createNewFile(u,s,Ynt(u,s,uee(u,f.all,b),p,f,d,E,v)),E8e(d,p,u.fileName,s,n5(E));else{const B=H.checkDefined(d.getSourceFile(s)),k=z1.createImportAdder(B,t.program,t.preferences,t.host);Ynt(u,B,uee(u,f.all,b,QOt(B,b)),p,f,d,E,v,k)}}function Ynt(t,u,s,d,f,p,E,v,b){const B=p.getTypeChecker(),k=tU(t.statements,Mp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof u=="string")return iee(t,f.ranges,d),[...k,...f.all];const T=typeof u=="string"?u:u.fileName,M=!Bfe(T,p,E,!!t.commonJsModuleIndicator),z=Hm(t,v),j=v8e(t,s.oldFileImportsFromTargetFile,T,p,E,M,z);j&&MM(d,t,j,!0,v),_8e(t,f.all,d,s.unusedImportsFromOldFile,B),iee(t,f.ranges,d),D8e(d,p,E,t,s.movedSymbols,T,z);const J=POt(t,T,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,d,B,p,E,M,z,b),K=C8e(t,f.all,s.oldFileImportsFromTargetFile,M);return typeof u!="string"&&(u.statements.length>0?YOt(d,p,K,u,f):d.insertNodesAtEndOfFile(u,K,!1),J.length>0&&MM(d,u,J,!0,v)),b&&b.writeFixes(d,z),J.length&&K.length?[...k,...J,4,...K]:[...k,...J,...K]}function POt(t,u,s,d,f,p,E,v,b,B,k){const T=[];if(k)s.forEach((K,Y)=>{try{k.addImportFromExportedSymbol(X1(Y,p),K)}catch{for(const oe of t.statements)sK(oe,se=>{xi(T,lK(se,q.createStringLiteral(oK(se).text),ge=>s.has(p.getSymbolAtLocation(ge))))})}});else{const K=E.getSourceFile(u);for(const Y of t.statements)sK(Y,oe=>{var se;const ge=oK(oe),ae=E.getResolvedModule(t,ge.text,xg(t,ge)),Ce=(se=ae==null?void 0:ae.resolvedModule)==null?void 0:se.resolvedFileName;if(Ce&&K){const ne=qY(E.getCompilerOptions(),K,K.path,Ce,Ik(E,v));xi(T,lK(oe,n9(ne,B),ve=>s.has(p.getSymbolAtLocation(ve))))}else xi(T,lK(oe,q.createStringLiteral(oK(oe).text),ne=>s.has(p.getSymbolAtLocation(ne))))})}const M=E.getSourceFile(u);let z;const j=[],J=i9();return d.forEach(K=>{if(K.declarations)for(const Y of K.declarations){if(!ree(Y))continue;const oe=k8e(Y);if(!oe)continue;const se=hme(Y);J(se)&&F8e(t,se,oe,f,b),k&&p.isUnknownSymbol(K)?k.addImportFromExportedSymbol(X1(K,p)):Yu(Y,2048)?z=oe:j.push(oe.text)}}),M?xi(T,nee(M,z,j,t.fileName,E,v,b,B)):xi(T,nee(t,z,j,t.fileName,E,v,b,B))}function E8e(t,u,s,d,f){const p=t.getCompilerOptions().configFile;if(!p)return;const E=$o(cr(s,"..",d)),v=SO(p.fileName,E,f),b=p.statements[0]&&ur(p.statements[0].expression,ys),B=b&&Le(b.properties,k=>Jc(k)&&us(k.name)&&k.name.text==="files");B&&Dh(B.initializer)&&u.insertNodeInListAfter(p,Cr(B.initializer.elements),q.createStringLiteral(v),B.initializer.elements)}function iee(t,u,s){for(const{first:d,afterLast:f}of u)s.deleteNodeRangeExcludingEnd(t,d,f)}function _8e(t,u,s,d,f){for(const p of t.statements)kt(u,p)||sK(p,E=>b8e(t,E,s,v=>d.has(f.getSymbolAtLocation(v))))}function D8e(t,u,s,d,f,p,E){const v=u.getTypeChecker();for(const b of u.getSourceFiles())if(b!==d)for(const B of b.statements)sK(B,k=>{if(v.getSymbolAtLocation(oK(k))!==d.symbol)return;const T=K=>{const Y=js(K.parent)?CX(v,K.parent):X1(v.getSymbolAtLocation(K),v);return!!Y&&f.has(Y)};b8e(b,k,t,T);const M=kx(lr(d.path),p),z=qY(u.getCompilerOptions(),b,b.path,M,Ik(u,s)),j=lK(k,n9(z,E),T);j&&t.insertNodeAfter(b,B,j);const J=MOt(k);J&&zOt(t,b,v,f,z,J,k,E)})}function MOt(t){switch(t.kind){case 272:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===274?t.importClause.namedBindings.name:void 0;case 271:return t.name;case 260:return ur(t.name,at);default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function zOt(t,u,s,d,f,p,E,v){const b=z1.moduleSpecifierToValidIdentifier(f,99);let B=!1;const k=[];if(Z0.Core.eachSymbolReferenceInFile(p,s,u,T=>{Iu(T.parent)&&(B=B||!!s.resolveName(b,T,67108863,!0),d.has(s.getSymbolAtLocation(T.parent.name))&&k.push(T))}),k.length){const T=B?Ok(b,u):b;for(const M of k)t.replaceNode(u,M,q.createIdentifier(T));t.insertNodeAfter(u,E,IOt(E,b,f,v))}}function IOt(t,u,s,d){const f=q.createIdentifier(u),p=n9(s,d);switch(t.kind){case 272:return q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(f)),p,void 0);case 271:return q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(p));case 260:return q.createVariableDeclaration(f,void 0,void 0,x8e(p));default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function x8e(t){return q.createCallExpression(q.createIdentifier("require"),void 0,[t])}function oK(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function sK(t,u){if(Sd(t))us(t.moduleSpecifier)&&u(t);else if(E1(t))r_(t.moduleReference)&&t0(t.moduleReference.expression)&&u(t);else if(Jl(t))for(const s of t.declarationList.declarations)s.initializer&&xf(s.initializer,!0)&&u(s)}function v8e(t,u,s,d,f,p,E){let v;const b=[];return u.forEach(B=>{B.escapedName==="default"?v=q.createIdentifier(DX(B)):b.push(B.name)}),nee(t,v,b,s,d,f,p,E)}function nee(t,u,s,d,f,p,E,v){const b=kx(lr(t.path),d),B=qY(f.getCompilerOptions(),t,t.path,b,Ik(f,p));if(E){const k=s.map(T=>q.createImportSpecifier(!1,void 0,q.createIdentifier(T)));return dSe(u,k,B,v)}else{H.assert(!u,"No default import should exist");const k=s.map(T=>q.createBindingElement(void 0,void 0,T));return k.length?Qnt(q.createObjectBindingPattern(k),void 0,x8e(n9(B,v))):void 0}}function Qnt(t,u,s,d=2){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(t,void 0,u,s)],d))}function C8e(t,u,s,d){return ju(u,f=>{if(eut(f)&&!Xnt(t,f,d)&&S8e(f,p=>{var E;return s.has(H.checkDefined((E=ur(p,Zg))==null?void 0:E.symbol))})){const p=jOt(ll(f),d);if(p)return p}return ll(f)})}function Xnt(t,u,s,d){var f;return s?!Od(u)&&Yu(u,32)||!!(d&&t.symbol&&((f=t.symbol.exports)!=null&&f.has(d.escapedText))):!!t.symbol&&!!t.symbol.exports&&y8e(u).some(p=>t.symbol.exports.has(Al(p)))}function b8e(t,u,s,d){switch(u.kind){case 272:ROt(t,u,s,d);break;case 271:d(u.name)&&s.delete(t,u);break;case 260:OOt(t,u,s,d);break;default:H.assertNever(u,`Unexpected import decl kind ${u.kind}`)}}function ROt(t,u,s,d){if(!u.importClause)return;const{name:f,namedBindings:p}=u.importClause,E=!f||d(f),v=!p||(p.kind===274?d(p.name):p.elements.length!==0&&p.elements.every(b=>d(b.name)));if(E&&v)s.delete(t,u);else if(f&&E&&s.delete(t,f),p){if(v)s.replaceNode(t,u.importClause,q.updateImportClause(u.importClause,u.importClause.isTypeOnly,f,void 0));else if(p.kind===275)for(const b of p.elements)d(b.name)&&s.delete(t,b)}}function OOt(t,u,s,d){const{name:f}=u;switch(f.kind){case 80:d(f)&&(u.initializer&&xf(u.initializer,!0)?s.delete(t,Ad(u.parent)&&S(u.parent.declarations)===1?u.parent.parent:u):s.delete(t,f));break;case 207:break;case 206:if(f.elements.every(p=>at(p.name)&&d(p.name)))s.delete(t,Ad(u.parent)&&u.parent.declarations.length===1?u.parent.parent:u);else for(const p of f.elements)at(p.name)&&d(p.name)&&s.delete(t,p.name);break}}function eut(t){return H.assert(la(t.parent),"Node parent should be a SourceFile"),aut(t)||Jl(t)}function jOt(t,u){return u?[VOt(t)]:HOt(t)}function VOt(t){const u=Hp(t)?Hi([q.createModifier(95)],p2(t)):void 0;switch(t.kind){case 262:return q.updateFunctionDeclaration(t,u,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=Ak(t)?Ax(t):void 0;return q.updateClassDeclaration(t,Hi(s,u),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return q.updateVariableStatement(t,u,t.declarationList);case 267:return q.updateModuleDeclaration(t,u,t.name,t.body);case 266:return q.updateEnumDeclaration(t,u,t.name,t.members);case 265:return q.updateTypeAliasDeclaration(t,u,t.name,t.typeParameters,t.type);case 264:return q.updateInterfaceDeclaration(t,u,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return q.updateImportEqualsDeclaration(t,u,t.isTypeOnly,t.name,t.moduleReference);case 244:return H.fail();default:return H.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function HOt(t){return[t,...y8e(t).map(tut)]}function tut(t){return q.createExpressionStatement(q.createBinaryExpression(q.createPropertyAccessExpression(q.createIdentifier("exports"),q.createIdentifier(t)),64,q.createIdentifier(t)))}function y8e(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return qi(t.declarationList.declarations,u=>at(u.name)?u.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return _t;case 244:return H.fail("Can't export an ExpressionStatement");default:return H.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function lK(t,u,s){switch(t.kind){case 272:{const d=t.importClause;if(!d)return;const f=d.name&&s(d.name)?d.name:void 0,p=d.namedBindings&&KOt(d.namedBindings,s);return f||p?q.createImportDeclaration(void 0,q.createImportClause(d.isTypeOnly,f,p),ll(u),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const d=WOt(t.name,s);return d?Qnt(d,t.type,x8e(u),t.parent.flags):void 0}default:return H.assertNever(t,`Unexpected import kind ${t.kind}`)}}function KOt(t,u){if(t.kind===274)return u(t.name)?t:void 0;{const s=t.elements.filter(d=>u(d.name));return s.length?q.createNamedImports(s):void 0}}function WOt(t,u){switch(t.kind){case 80:return u(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(d=>d.propertyName||!at(d.name)||u(d.name));return s.length?q.createObjectBindingPattern(s):void 0}}}function k8e(t){return Od(t)?ur(t.expression.left.name,at):ur(t.name,at)}function hme(t){switch(t.kind){case 260:return t.parent.parent;case 208:return hme(Po(t.parent.parent,u=>ua(u)||js(u)));default:return t}}function F8e(t,u,s,d,f){if(!Xnt(t,u,f,s))if(f)Od(u)||d.insertExportModifier(t,u);else{const p=y8e(u);p.length!==0&&d.insertNodesAfter(t,u,p.map(tut))}}function A8e(t,u,s,d){const f=u.getTypeChecker(),p=cK(s);let E;if(p){E=uee(t,p.all,f);const v=lr(t.fileName),b=y7(t.fileName);return cr(v,UOt(qOt(E.oldFileImportsFromTargetFile,E.movedSymbols),b,v,d))+b}return""}function GOt(t){const{file:u}=t,s=pX(u9(t)),{statements:d}=u;let f=Ue(d,B=>B.end>s.pos);if(f===-1)return;const p=d[f],E=out(u,p);E&&(f=E.start);let v=Ue(d,B=>B.end>=s.end,f);v!==-1&&s.end<=d[v].getStart()&&v--;const b=out(u,d[v]);return b&&(v=b.end),{toMove:d.slice(f,v===-1?d.length:v+1),afterLast:v===-1?void 0:d[v+1]}}function cK(t){const u=GOt(t);if(u===void 0)return;const s=[],d=[],{toMove:f,afterLast:p}=u;return eu(f,JOt,(E,v)=>{for(let b=E;b!!u.initializer&&xf(u.initializer,!0));default:return!1}}function uee(t,u,s,d=new Set){const f=new Set,p=new Map,E=new Set,v=Le(u,M=>!!(M.transformFlags&2)),b=T(v);b&&p.set(b,!1);for(const M of u)S8e(M,z=>{f.add(H.checkDefined(Od(z)?s.getSymbolAtLocation(z.expression.left):z.symbol,"Need a symbol here"))});const B=new Set;for(const M of u)iut(M,s,(z,j)=>{if(z.declarations){if(d.has(X1(z,s))){B.add(z);return}for(const J of z.declarations)if(nut(J)){const K=p.get(z);p.set(z,(K===void 0||K)&&j)}else ree(J)&&ZOt(J)===t&&!f.has(z)&&E.add(z)}});for(const M of p.keys())B.add(M);const k=new Set;for(const M of t.statements)kt(u,M)||(b&&M.transformFlags&2&&B.delete(b),iut(M,s,z=>{f.has(z)&&k.add(z),B.delete(z)}));return{movedSymbols:f,targetFileImportsFromOldFile:E,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:p,unusedImportsFromOldFile:B};function T(M){if(M===void 0)return;const z=s.getJsxNamespace(M),j=s.resolveName(z,M,1920,!0);return j&&Oe(j.declarations,nut)?j:void 0}}function UOt(t,u,s,d){let f=t;for(let p=1;;p++){const E=cr(s,f+u);if(!d.fileExists(E))return f;f=`${t}.${p}`}}function qOt(t,u){return U_(t,DX)||U_(u,DX)||"newFile"}function iut(t,u,s){t.forEachChild(function d(f){if(at(f)&&!X3(f)){const p=u.getSymbolAtLocation(f);p&&s(p,Tv(f))}else f.forEachChild(d)})}function S8e(t,u){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return u(t);case 243:return G(t.declarationList.declarations,s=>rut(s.name,u));case 244:{const{expression:s}=t;return Xn(s)&&Xl(s)===1?u(t):void 0}}}function nut(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return uut(t);case 208:return ua(t.parent.parent)&&uut(t.parent.parent);default:return!1}}function uut(t){return la(t.parent.parent.parent)&&!!t.initializer&&xf(t.initializer,!0)}function ree(t){return aut(t)&&la(t.parent)||ua(t)&&la(t.parent.parent.parent)}function ZOt(t){return ua(t)?t.parent.parent.parent:t.parent}function rut(t,u){switch(t.kind){case 80:return u(Po(t.parent,s=>ua(s)||js(s)));case 207:case 206:return G(t.elements,s=>Fd(s)?void 0:rut(s.name,u));default:return H.assertNever(t,`Unexpected name kind ${t.kind}`)}}function aut(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function YOt(t,u,s,d,f){var p;const E=new Set,v=(p=d.symbol)==null?void 0:p.exports;if(v){const B=u.getTypeChecker(),k=new Map;for(const T of f.all)eut(T)&&Yu(T,32)&&S8e(T,M=>{var z;const j=Zg(M)?(z=v.get(M.symbol.escapedName))==null?void 0:z.declarations:void 0,J=G(j,K=>Gc(K)?K:eh(K)?ur(K.parent.parent,Gc):void 0);J&&J.moduleSpecifier&&k.set(J,(k.get(J)||new Set).add(M))});for(const[T,M]of ga(k))if(T.exportClause&&ep(T.exportClause)&&S(T.exportClause.elements)){const z=T.exportClause.elements,j=ti(z,J=>Le(X1(J.symbol,B).declarations,K=>ree(K)&&M.has(K))===void 0);if(S(j)===0){t.deleteNode(d,T),E.add(T);continue}S(j)Gc(B)&&!!B.moduleSpecifier&&!E.has(B));b?t.insertNodesBefore(d,b,s,!0):t.insertNodesAfter(d,d.statements[d.statements.length-1],s)}function out(t,u){if($0(u)){const s=u.symbol.declarations;if(s===void 0||S(s)<=1||!kt(s,u))return;const d=s[0],f=s[S(s)-1],p=qi(s,b=>zn(b)===t&&na(b)?b:void 0),E=Ue(t.statements,b=>b.end>=f.end),v=Ue(t.statements,b=>b.end>=d.end);return{toMove:p,start:v,end:E}}}function QOt(t,u){const s=new Set;for(const d of t.imports){const f=tP(d);if(Sd(f)&&f.importClause&&f.importClause.namedBindings&&uD(f.importClause.namedBindings))for(const p of f.importClause.namedBindings.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(X1(E,u))}if(vq(f.parent)&&Rp(f.parent.name))for(const p of f.parent.name.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(X1(E,u))}}return s}var aee,fme,mme,XOt=o({"src/services/refactors/moveToFile.ts"(){ket(),rr(),Ont(),aee="Move to file",fme=to(F.Move_to_file),mme={name:"Move to file",description:fme,kind:"refactor.move.file"},s3(aee,{kinds:[mme.kind],getAvailableActions:function(u,s){const d=cK(u);return s?u.preferences.allowTextChangesInNewFiles&&d?[{name:aee,description:fme,actions:[mme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:aee,description:fme,actions:[{...mme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:_t:_t},getEditsForAction:function(u,s,d){H.assert(s===aee,"Wrong refactor invoked");const f=H.checkDefined(cK(u)),{host:p,program:E}=u;H.assert(d,"No interactive refactor arguments available");const v=d.targetFile;return z2(v)||mk(v)?p.fileExists(v)&&E.getSourceFile(v)===void 0?Znt(to(F.Cannot_move_statements_to_the_selected_file)):{edits:iu.ChangeTracker.with(u,B=>NOt(u,u.file,d.targetFile,u.program,f,B,u.host,u.preferences)),renameFilename:void 0,renameLocation:void 0}:Znt(to(F.Cannot_move_to_file_selected_file_is_invalid))}})}});function ejt(t){const{file:u,startPosition:s,program:d}=t;return lut(u,s,d)?[{name:pme,description:B8e,actions:[w8e]}]:_t}function tjt(t){const{file:u,startPosition:s,program:d}=t,f=lut(u,s,d);if(!f)return;const p=d.getTypeChecker(),E=f[f.length-1];let v=E;switch(E.kind){case 173:{v=q.updateMethodSignature(E,E.modifiers,E.name,E.questionToken,E.typeParameters,B(f),E.type);break}case 174:{v=q.updateMethodDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.questionToken,E.typeParameters,B(f),E.type,E.body);break}case 179:{v=q.updateCallSignature(E,E.typeParameters,B(f),E.type);break}case 176:{v=q.updateConstructorDeclaration(E,E.modifiers,B(f),E.body);break}case 180:{v=q.updateConstructSignature(E,E.typeParameters,B(f),E.type);break}case 262:{v=q.updateFunctionDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.typeParameters,B(f),E.type,E.body);break}default:return H.failBadSyntaxKind(E,"Unhandled signature kind in overload list conversion refactoring")}if(v===E)return;return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,M=>{M.replaceNodeRange(u,f[0],f[f.length-1],v)})};function B(M){const z=M[M.length-1];return $0(z)&&z.body&&(M=M.slice(0,M.length-1)),q.createNodeArray([q.createParameterDeclaration(void 0,q.createToken(26),"args",void 0,q.createUnionTypeNode(Vt(M,k)))])}function k(M){const z=Vt(M.parameters,T);return Zn(q.createTupleTypeNode(z),Oe(z,j=>!!S(DB(j)))?0:1)}function T(M){H.assert(at(M.name));const z=Pt(q.createNamedTupleMember(M.dotDotDotToken,M.name,M.questionToken,M.type||q.createKeywordTypeNode(133)),M),j=M.symbol&&M.symbol.getDocumentationComment(p);if(j){const J=EK(j);J.length&&Nv(z,[{text:`* +`,pushTemplate:!0};case 6:return{prefix:"",pushTemplate:!0};case 0:return{prefix:""};default:return H.assertNever(t)}}function dRt(t){switch(t){case 42:case 44:case 45:case 40:case 41:case 48:case 49:case 50:case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:case 35:case 36:case 37:case 38:case 51:case 53:case 52:case 56:case 57:case 75:case 74:case 79:case 71:case 72:case 73:case 65:case 66:case 67:case 69:case 70:case 64:case 28:case 61:case 76:case 77:case 78:return!0;default:return!1}}function hRt(t){switch(t){case 40:case 41:case 55:case 54:case 46:case 47:return!0;default:return!1}}function fRt(t){if(uf(t))return 3;if(dRt(t)||hRt(t))return 5;if(t>=19&&t<=79)return 10;switch(t){case 9:return 4;case 10:return 25;case 11:return 6;case 14:return 7;case 7:case 3:case 2:return 1;case 5:case 4:return 8;case 80:default:return Bx(t)?6:2}}function KSe(t,u,s,d,f){return Zit(Vfe(t,u,s,d,f))}function Uit(t,u){switch(u){case 267:case 263:case 264:case 262:case 231:case 218:case 219:t.throwIfCancellationRequested()}}function Vfe(t,u,s,d,f){const p=[];return s.forEachChild(function v(b){if(!(!b||!LU(f,b.pos,b.getFullWidth()))){if(Uit(u,b.kind),at(b)&&!Xl(b)&&d.has(b.escapedText)){const B=t.getSymbolAtLocation(b),k=B&&qit(B,Pk(b),t);k&&E(b.getStart(s),b.getEnd(),k)}b.forEachChild(v)}}),{spans:p,endOfLineState:0};function E(v,b,B){const k=b-v;H.assert(k>0,`Classification had non-positive length of ${k}`),p.push(v),p.push(k),p.push(B)}}function qit(t,u,s){const d=t.getFlags();if(d&2885600)return d&32?11:d&384?12:d&524288?16:d&1536?u&4||u&1&&mRt(t)?14:void 0:d&2097152?qit(s.getAliasedSymbol(t),u,s):u&2?d&64?13:d&262144?15:void 0:void 0}function mRt(t){return Ge(t.declarations,u=>xc(u)&&oD(u)===1)}function pRt(t){switch(t){case 1:return"comment";case 2:return"identifier";case 3:return"keyword";case 4:return"number";case 25:return"bigint";case 5:return"operator";case 6:return"string";case 8:return"whitespace";case 9:return"text";case 10:return"punctuation";case 11:return"class name";case 12:return"enum name";case 13:return"interface name";case 14:return"module name";case 15:return"type parameter name";case 16:return"type alias name";case 17:return"parameter name";case 18:return"doc comment tag name";case 19:return"jsx open tag name";case 20:return"jsx close tag name";case 21:return"jsx self closing tag name";case 22:return"jsx attribute";case 23:return"jsx text";case 24:return"jsx attribute string literal value";default:return}}function Zit(t){H.assert(t.spans.length%3===0);const u=t.spans,s=[];for(let d=0;d])*)(\/>)?)?/im,ve=/(\s)(\S+)(\s*)(=)(\s*)('[^']+'|"[^"]+")/img,Se=u.text.substr(ae,Ce),Ne=ne.exec(Se);if(!Ne||!Ne[3]||!(Ne[3]in bO))return!1;let pe=ae;T(pe,Ne[1].length),pe+=Ne[1].length,b(pe,Ne[2].length,10),pe+=Ne[2].length,b(pe,Ne[3].length,21),pe+=Ne[3].length;const fe=Ne[4];let xe=pe;for(;;){const We=ve.exec(fe);if(!We)break;const Ae=pe+We.index+We[1].length;Ae>xe&&(T(xe,Ae-xe),xe=Ae),b(xe,We[2].length,22),xe+=We[2].length,We[3].length&&(T(xe,We[3].length),xe+=We[3].length),b(xe,We[4].length,5),xe+=We[4].length,We[5].length&&(T(xe,We[5].length),xe+=We[5].length),b(xe,We[6].length,24),xe+=We[6].length}pe+=Ne[4].length,pe>xe&&T(xe,pe-xe),Ne[5]&&(b(pe,Ne[5].length,10),pe+=Ne[5].length);const Be=ae+Ce;return pe=0),ve>0){const Se=Ce||se(ae.kind,ae);Se&&b(ne,ve,Se)}return!0}function oe(ae){switch(ae.parent&&ae.parent.kind){case 286:if(ae.parent.tagName===ae)return 19;break;case 287:if(ae.parent.tagName===ae)return 20;break;case 285:if(ae.parent.tagName===ae)return 21;break;case 291:if(ae.parent.name===ae)return 22;break}}function se(ae,Ce){if(uf(ae))return 3;if((ae===30||ae===32)&&Ce&&dSe(Ce.parent))return 10;if(J0e(ae)){if(Ce){const ne=Ce.parent;if(ae===64&&(ne.kind===260||ne.kind===172||ne.kind===169||ne.kind===291)||ne.kind===226||ne.kind===224||ne.kind===225||ne.kind===227)return 5}return 10}else{if(ae===9)return 4;if(ae===10)return 25;if(ae===11)return Ce&&Ce.parent.kind===291?24:6;if(ae===14)return 6;if(Bx(ae))return 6;if(ae===12)return 23;if(ae===80){if(Ce){switch(Ce.parent.kind){case 263:return Ce.parent.name===Ce?11:void 0;case 168:return Ce.parent.name===Ce?15:void 0;case 264:return Ce.parent.name===Ce?13:void 0;case 266:return Ce.parent.name===Ce?12:void 0;case 267:return Ce.parent.name===Ce?14:void 0;case 169:return Ce.parent.name===Ce?P2(Ce)?3:17:void 0}if(q3(Ce.parent))return 3}return 2}}}function ge(ae){if(ae&&OO(d,f,ae.pos,ae.getFullWidth())){Uit(t,ae.kind);for(const Ce of ae.getChildren(u))Y(Ce)||ge(Ce)}}}var Yit,Qit=o({"src/services/classifier.ts"(){or(),Yit=roe([80,11,9,10,14,110,46,47,22,24,20,112,97],t=>t,()=>!0)}}),UX,gRt=o({"src/services/documentHighlights.ts"(){or(),(t=>{function u(pe,fe,xe,Be,We){const Ae=af(xe,Be);if(Ae.parent&&(oE(Ae.parent)&&Ae.parent.tagName===Ae||K2(Ae.parent))){const{openingElement:De,closingElement:He}=Ae.parent.parent,Je=[De,He].map(({tagName:mt})=>s(mt,xe));return[{fileName:xe.fileName,highlightSpans:Je}]}return d(Be,Ae,pe,fe,We)||f(Ae,xe)}t.getDocumentHighlights=u;function s(pe,fe){return{fileName:fe.fileName,textSpan:of(pe,fe),kind:"none"}}function d(pe,fe,xe,Be,We){const Ae=new Set(We.map(mt=>mt.fileName)),De=Y0.getReferenceEntriesForNode(pe,fe,xe,We,Be,void 0,Ae);if(!De)return;const He=pO(De.map(Y0.toHighlightSpan),mt=>mt.fileName,mt=>mt.span),Je=N1(xe.useCaseSensitiveFileNames());return Ea(Ka(He.entries(),([mt,Ye])=>{if(!Ae.has(mt)){if(!xe.redirectTargetsMap.has($0(mt,xe.getCurrentDirectory(),Je)))return;const je=xe.getSourceFile(mt);mt=Le(We,Gt=>!!Gt.redirectInfo&&Gt.redirectInfo.redirectTarget===je).fileName,H.assert(Ae.has(mt))}return{fileName:mt,highlightSpans:Ye}}))}function f(pe,fe){const xe=p(pe,fe);return xe&&[{fileName:fe.fileName,highlightSpans:xe}]}function p(pe,fe){switch(pe.kind){case 101:case 93:return xk(pe.parent)?ve(pe.parent,fe):void 0;case 107:return Be(pe.parent,jp,ge);case 111:return Be(pe.parent,kce,se);case 113:case 85:case 98:const Ae=pe.kind===85?pe.parent.parent:pe.parent;return Be(Ae,Ck,oe);case 109:return Be(pe.parent,wV,Y);case 84:case 90:return LV(pe.parent)||BB(pe.parent)?Be(pe.parent.parent.parent,wV,Y):void 0;case 83:case 88:return Be(pe.parent,jN,K);case 99:case 117:case 92:return Be(pe.parent,De=>Tx(De,!0),J);case 137:return xe(fc,[137]);case 139:case 153:return xe(wx,[139,153]);case 135:return Be(pe.parent,Gx,ae);case 134:return We(ae(pe));case 127:return We(Ce(pe));case 103:return;default:return XD(pe.kind)&&(X1(pe.parent)||Jl(pe.parent))?We(M(pe.kind,pe.parent)):void 0}function xe(Ae,De){return Be(pe.parent,Ae,He=>{var Je;return qi((Je=ar(He,Yg))==null?void 0:Je.symbol.declarations,mt=>Ae(mt)?Le(mt.getChildren(fe),Ye=>kt(De,Ye.kind)):void 0)})}function Be(Ae,De,He){return De(Ae)?We(He(Ae,fe)):void 0}function We(Ae){return Ae&&Ae.map(De=>s(De,fe))}}function E(pe){return kce(pe)?[pe]:Ck(pe)?mi(pe.catchClause?E(pe.catchClause):pe.tryBlock&&E(pe.tryBlock),pe.finallyBlock&&E(pe.finallyBlock)):Co(pe)?void 0:B(pe,E)}function v(pe){let fe=pe;for(;fe.parent;){const xe=fe.parent;if(F2(xe)||xe.kind===312)return xe;if(Ck(xe)&&xe.tryBlock===fe&&xe.catchClause)return fe;fe=xe}}function b(pe){return jN(pe)?[pe]:Co(pe)?void 0:B(pe,b)}function B(pe,fe){const xe=[];return pe.forEachChild(Be=>{const We=fe(Be);We!==void 0&&xe.push(...YA(We))}),xe}function k(pe,fe){const xe=T(fe);return!!xe&&xe===pe}function T(pe){return Tn(pe,fe=>{switch(fe.kind){case 255:if(pe.kind===251)return!1;case 248:case 249:case 250:case 247:case 246:return!pe.label||Ne(fe,pe.label.escapedText);default:return Co(fe)&&"quit"}})}function M(pe,fe){return qi(z(fe,_7(pe)),xe=>ow(xe,pe))}function z(pe,fe){const xe=pe.parent;switch(xe.kind){case 268:case 312:case 241:case 296:case 297:return fe&64&&Jc(pe)?[...pe.members,pe]:xe.statements;case 176:case 174:case 262:return[...xe.parameters,...gr(xe.parent)?xe.parent.members:[]];case 263:case 231:case 264:case 187:const Be=xe.members;if(fe&15){const We=Le(xe.members,fc);if(We)return[...Be,...We.parameters]}else if(fe&64)return[...Be,xe];return Be;case 210:return;default:H.assertNever(xe,"Invalid container kind.")}}function j(pe,fe,...xe){return fe&&kt(xe,fe.kind)?(pe.push(fe),!0):!1}function J(pe){const fe=[];if(j(fe,pe.getFirstToken(),99,117,92)&&pe.kind===246){const xe=pe.getChildren();for(let Be=xe.length-1;Be>=0&&!j(fe,xe[Be],117);Be--);}return L(b(pe.statement),xe=>{k(pe,xe)&&j(fe,xe.getFirstToken(),83,88)}),fe}function K(pe){const fe=T(pe);if(fe)switch(fe.kind){case 248:case 249:case 250:case 246:case 247:return J(fe);case 255:return Y(fe)}}function Y(pe){const fe=[];return j(fe,pe.getFirstToken(),109),L(pe.caseBlock.clauses,xe=>{j(fe,xe.getFirstToken(),84,90),L(b(xe),Be=>{k(pe,Be)&&j(fe,Be.getFirstToken(),83)})}),fe}function oe(pe,fe){const xe=[];if(j(xe,pe.getFirstToken(),113),pe.catchClause&&j(xe,pe.catchClause.getFirstToken(),85),pe.finallyBlock){const Be=a0(pe,98,fe);j(xe,Be,98)}return xe}function se(pe,fe){const xe=v(pe);if(!xe)return;const Be=[];return L(E(xe),We=>{Be.push(a0(We,111,fe))}),F2(xe)&&k2(xe,We=>{Be.push(a0(We,107,fe))}),Be}function ge(pe,fe){const xe=Pm(pe);if(!xe)return;const Be=[];return k2(Po(xe.body,go),We=>{Be.push(a0(We,107,fe))}),L(E(xe.body),We=>{Be.push(a0(We,111,fe))}),Be}function ae(pe){const fe=Pm(pe);if(!fe)return;const xe=[];return fe.modifiers&&fe.modifiers.forEach(Be=>{j(xe,Be,134)}),ao(fe,Be=>{ne(Be,We=>{Gx(We)&&j(xe,We.getFirstToken(),135)})}),xe}function Ce(pe){const fe=Pm(pe);if(!fe)return;const xe=[];return ao(fe,Be=>{ne(Be,We=>{hY(We)&&j(xe,We.getFirstToken(),127)})}),xe}function ne(pe,fe){fe(pe),!Co(pe)&&!gr(pe)&&!Ch(pe)&&!xc(pe)&&!Vp(pe)&&!Xr(pe)&&ao(pe,xe=>ne(xe,fe))}function ve(pe,fe){const xe=Se(pe,fe),Be=[];for(let We=0;We=Ae.end;Je--)if(!Zg(fe.text.charCodeAt(Je))){He=!1;break}if(He){Be.push({fileName:fe.fileName,textSpan:Kc(Ae.getStart(),De.end),kind:"reference"}),We++;continue}}Be.push(s(xe[We],fe))}return Be}function Se(pe,fe){const xe=[];for(;xk(pe.parent)&&pe.parent.elseStatement===pe;)pe=pe.parent;for(;;){const Be=pe.getChildren(fe);j(xe,Be[0],101);for(let We=Be.length-1;We>=0&&!j(xe,Be[We],93);We--);if(!pe.elseStatement||!xk(pe.elseStatement))break;pe=pe.elseStatement}return xe}function Ne(pe,fe){return!!Tn(pe.parent,xe=>H2(xe)?xe.label.escapedText===fe:"quit")}})(UX||(UX={}))}});function nK(t){return!!t.sourceFile}function GSe(t,u,s){return Kfe(t,u,s)}function Kfe(t,u="",s,d){const f=new Map,p=N1(!!t);function E(){const K=Ea(f.keys()).filter(Y=>Y&&Y.charAt(0)==="_").map(Y=>{const oe=f.get(Y),se=[];return oe.forEach((ge,ae)=>{nK(ge)?se.push({name:ae,scriptKind:ge.sourceFile.scriptKind,refCount:ge.languageServiceRefCount}):ge.forEach((Ce,ne)=>se.push({name:ae,scriptKind:ne,refCount:Ce.languageServiceRefCount}))}),se.sort((ge,ae)=>ae.refCount-ge.refCount),{bucket:Y,sourceFiles:se}});return JSON.stringify(K,void 0,2)}function v(K){return typeof K.getCompilationSettings=="function"?K.getCompilationSettings():K}function b(K,Y,oe,se,ge,ae){const Ce=$0(K,u,p),ne=Wfe(v(Y));return B(K,Ce,Y,ne,oe,se,ge,ae)}function B(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,oe,se,ge,ae,!0,Ce,ne)}function k(K,Y,oe,se,ge,ae){const Ce=$0(K,u,p),ne=Wfe(v(Y));return T(K,Ce,Y,ne,oe,se,ge,ae)}function T(K,Y,oe,se,ge,ae,Ce,ne){return z(K,Y,v(oe),se,ge,ae,!1,Ce,ne)}function M(K,Y){const oe=nK(K)?K:K.get(H.checkDefined(Y,"If there are more than one scriptKind's for same document the scriptKind should be provided"));return H.assert(Y===void 0||!oe||oe.sourceFile.scriptKind===Y,`Script kind should match provided ScriptKind:${Y} and sourceFile.scriptKind: ${oe==null?void 0:oe.sourceFile.scriptKind}, !entry: ${!oe}`),oe}function z(K,Y,oe,se,ge,ae,Ce,ne,ve){var Se,Ne,pe,fe;ne=lZ(K,ne);const xe=v(oe),Be=oe===xe?void 0:oe,We=ne===6?100:js(xe),Ae=typeof ve=="object"?ve:{languageVersion:We,impliedNodeFormat:Be&&yH(Y,(fe=(pe=(Ne=(Se=Be.getCompilerHost)==null?void 0:Se.call(Be))==null?void 0:Ne.getModuleResolutionCache)==null?void 0:pe.call(Ne))==null?void 0:fe.getPackageJsonInfoCache(),Be,xe),setExternalModuleIndicator:Xj(xe),jsDocParsingMode:s};Ae.languageVersion=We,H.assertEqual(s,Ae.jsDocParsingMode);const De=f.size,He=JSe(se,Ae.impliedNodeFormat),Je=_0(f,He,()=>new Map);if(Gn){f.size>De&&Gn.instant(Gn.Phase.Session,"createdDocumentRegistryBucket",{configFilePath:xe.configFilePath,key:He});const Ke=!t1(Y)&&f1(f,(Gt,Yt)=>Yt!==He&&Gt.has(Y)&&Yt);Ke&&Gn.instant(Gn.Phase.Session,"documentRegistryBucketOverlap",{path:Y,key1:Ke,key2:He})}const mt=Je.get(Y);let Ye=mt&&M(mt,ne);if(!Ye&&d){const Ke=d.getDocument(He,Y);Ke&&(H.assert(Ce),Ye={sourceFile:Ke,languageServiceRefCount:0},je())}if(Ye)Ye.sourceFile.version!==ae&&(Ye.sourceFile=Lme(Ye.sourceFile,ge,ae,ge.getChangeRange(Ye.sourceFile.scriptSnapshot)),d&&d.setDocument(He,Y,Ye.sourceFile)),Ce&&Ye.languageServiceRefCount++;else{const Ke=Dee(K,ge,Ae,ae,!1,ne);d&&d.setDocument(He,Y,Ke),Ye={sourceFile:Ke,languageServiceRefCount:1},je()}return H.assert(Ye.languageServiceRefCount!==0),Ye.sourceFile;function je(){if(!mt)Je.set(Y,Ye);else if(nK(mt)){const Ke=new Map;Ke.set(mt.sourceFile.scriptKind,mt),Ke.set(ne,Ye),Je.set(Y,Ke)}else mt.set(ne,Ye)}}function j(K,Y,oe,se){const ge=$0(K,u,p),ae=Wfe(Y);return J(ge,ae,oe,se)}function J(K,Y,oe,se){const ge=H.checkDefined(f.get(JSe(Y,se))),ae=ge.get(K),Ce=M(ae,oe);Ce.languageServiceRefCount--,H.assert(Ce.languageServiceRefCount>=0),Ce.languageServiceRefCount===0&&(nK(ae)?ge.delete(K):(ae.delete(oe),ae.size===1&&ge.set(K,ie(ae.values(),ul))))}return{acquireDocument:b,acquireDocumentWithKey:B,updateDocument:k,updateDocumentWithKey:T,releaseDocument:j,releaseDocumentWithKey:J,getKeyForCompilationSettings:Wfe,getDocumentRegistryBucketKeyWithMode:JSe,reportStats:E,getBuckets:()=>f}}function Wfe(t){return bde(t,zY)}function JSe(t,u){return u?`${t}|${u}`:t}var ERt=o({"src/services/documentRegistry.ts"(){or()}});function $Se(t,u,s,d,f,p,E){const v=Kj(d),b=N1(v),B=Gfe(u,s,b,E),k=Gfe(s,u,b,E);return iu.ChangeTracker.with({host:d,formatContext:f,preferences:p},T=>{DRt(t,T,B,u,s,d.getCurrentDirectory(),v),xRt(t,T,B,k,d,b)})}function Gfe(t,u,s,d){const f=s(t);return E=>{const v=d&&d.tryGetSourcePosition({fileName:E,pos:0}),b=p(v?v.fileName:E);return v?b===void 0?void 0:_Rt(v.fileName,b,E,s):b};function p(E){if(s(E)===f)return u;const v=Fle(E,f,s);return v===void 0?void 0:u+"/"+v}}function _Rt(t,u,s,d){const f=BO(t,u,d);return USe(dr(s),f)}function DRt(t,u,s,d,f,p,E){const{configFile:v}=t.getCompilerOptions();if(!v)return;const b=dr(v.fileName),B=YN(v);if(!B)return;qSe(B,(z,j)=>{switch(j){case"files":case"include":case"exclude":{if(k(z)||j!=="include"||!vh(z.initializer))return;const K=qi(z.initializer.elements,oe=>rs(oe)?oe.text:void 0);if(K.length===0)return;const Y=sZ(b,[],K,E,p);jx(H.checkDefined(Y.includeFilePattern),E).test(d)&&!jx(H.checkDefined(Y.includeFilePattern),E).test(f)&&u.insertNodeAfter(v,yr(z.initializer.elements),q.createStringLiteral(M(f)));return}case"compilerOptions":qSe(z.initializer,(J,K)=>{const Y=ide(K);H.assert((Y==null?void 0:Y.type)!=="listOrElement"),Y&&(Y.isFilePath||Y.type==="list"&&Y.element.isFilePath)?k(J):K==="paths"&&qSe(J.initializer,oe=>{if(vh(oe.initializer))for(const se of oe.initializer.elements)T(se)})});return}});function k(z){const j=vh(z.initializer)?z.initializer.elements:[z.initializer];let J=!1;for(const K of j)J=T(K)||J;return J}function T(z){if(!rs(z))return!1;const j=USe(b,z.text),J=s(j);return J!==void 0?(u.replaceRangeWithText(v,ent(z,v),M(J)),!0):!1}function M(z){return $E(b,z,!E)}}function xRt(t,u,s,d,f,p){const E=t.getSourceFiles();for(const v of E){const b=s(v.fileName),B=b??v.fileName,k=dr(B),T=d(v.fileName),M=T||v.fileName,z=dr(M),j=b!==void 0||T!==void 0;bRt(v,u,J=>{if(!om(J))return;const K=USe(z,J),Y=s(K);return Y===void 0?void 0:f2($E(k,Y,p))},J=>{const K=t.getTypeChecker().getSymbolAtLocation(J);if(K!=null&&K.declarations&&K.declarations.some(oe=>P1(oe)))return;const Y=T!==void 0?Xit(J,WB(J.text,M,t.getCompilerOptions(),f),s,E):CRt(K,J,v,t,f,s);return Y!==void 0&&(Y.updated||j&&om(J.text))?Y2.updateModuleSpecifier(t.getCompilerOptions(),v,p(B),Y.newFileName,Ik(t,f),J.text):void 0})}}function vRt(t,u){return Uo(hr(t,u))}function USe(t,u){return f2(vRt(t,u))}function CRt(t,u,s,d,f,p){if(t){const E=Le(t.declarations,ca).fileName,v=p(E);return v===void 0?{newFileName:E,updated:!1}:{newFileName:v,updated:!0}}else{const E=xg(s,u),v=f.resolveModuleNameLiterals||!f.resolveModuleNames?d.getResolvedModule(s,u.text,E):f.getResolvedModuleWithFailedLookupLocationsFromCache&&f.getResolvedModuleWithFailedLookupLocationsFromCache(u.text,s.fileName,E);return Xit(u,v,p,d.getSourceFiles())}}function Xit(t,u,s,d){if(!u)return;if(u.resolvedModule){const b=v(u.resolvedModule.resolvedFileName);if(b)return b}const f=L(u.failedLookupLocations,p)||om(t.text)&&L(u.failedLookupLocations,E);if(f)return f;return u.resolvedModule&&{newFileName:u.resolvedModule.resolvedFileName,updated:!1};function p(b){const B=s(b);return B&&Le(d,k=>k.fileName===B)?E(b):void 0}function E(b){return lc(b,"/package.json")?void 0:v(b)}function v(b){const B=s(b);return B&&{newFileName:B,updated:!0}}}function bRt(t,u,s,d){for(const f of t.referencedFiles||Dt){const p=s(f.fileName);p!==void 0&&p!==t.text.slice(f.pos,f.end)&&u.replaceRangeWithText(t,f,p)}for(const f of t.imports){const p=d(f);p!==void 0&&p!==f.text&&u.replaceRangeWithText(t,ent(f,t),p)}}function ent(t,u){return d4(t.getStart(u)+1,t.end-1)}function qSe(t,u){if(ys(t))for(const s of t.properties)Uc(s)&&rs(s.name)&&u(s,s.name.text)}var yRt=o({"src/services/getEditsForFileRename.ts"(){or()}});function GM(t,u){return{kind:t,isCaseSensitive:u}}function ZSe(t){const u=new Map,s=t.trim().split(".").map(d=>SRt(d.trim()));if(s.length===1&&s[0].totalTextChunk.text==="")return{getMatchForLastSegmentOfPattern:()=>GM(2,!0),getFullMatch:()=>GM(2,!0),patternContainsDots:!1};if(!s.some(d=>!d.subWordTextChunks.length))return{getFullMatch:(d,f)=>kRt(d,f,s,u),getMatchForLastSegmentOfPattern:d=>YSe(d,yr(s),u),patternContainsDots:s.length>1}}function kRt(t,u,s,d){if(!YSe(u,yr(s),d)||s.length-1>t.length)return;let p;for(let E=s.length-2,v=t.length-1;E>=0;E-=1,v-=1)p=nnt(p,YSe(t[v],s[E],d));return p}function tnt(t,u){let s=u.get(t);return s||u.set(t,s=n8e(t)),s}function int(t,u,s){const d=BRt(t,u.textLowerCase);if(d===0)return GM(u.text.length===t.length?0:1,Ma(t,u.text));if(u.isLowerCase){if(d===-1)return;const f=tnt(t,s);for(const p of f)if(QSe(t,p,u.text,!0))return GM(2,QSe(t,p,u.text,!1));if(u.text.length0)return GM(2,!0);if(u.characterSpans.length>0){const f=tnt(t,s),p=unt(t,f,u,!1)?!0:unt(t,f,u,!0)?!1:void 0;if(p!==void 0)return GM(3,p)}}}function YSe(t,u,s){if(Jfe(u.totalTextChunk.text,p=>p!==32&&p!==42)){const p=int(t,u.totalTextChunk,s);if(p)return p}const d=u.subWordTextChunks;let f;for(const p of d)f=nnt(f,int(t,p,s));return f}function nnt(t,u){return loe([t,u],FRt)}function FRt(t,u){return t===void 0?1:u===void 0?-1:rl(t.kind,u.kind)||h2(!t.isCaseSensitive,!u.isCaseSensitive)}function QSe(t,u,s,d,f={start:0,length:s.length}){return f.length<=u.length&&snt(0,f.length,p=>ARt(s.charCodeAt(f.start+p),t.charCodeAt(u.start+p),d))}function ARt(t,u,s){return s?XSe(t)===XSe(u):t===u}function unt(t,u,s,d){const f=s.characterSpans;let p=0,E=0;for(;;){if(E===f.length)return!0;if(p===u.length)return!1;let v=u[p],b=!1;for(;E=65&&t<=90)return!0;if(t<127||!AU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toUpperCase()}function rnt(t){if(t>=97&&t<=122)return!0;if(t<127||!AU(t,99))return!1;const u=String.fromCharCode(t);return u===u.toLowerCase()}function BRt(t,u){const s=t.length-u.length;for(let d=0;d<=s;d++)if(Jfe(u,(f,p)=>XSe(t.charCodeAt(p+d))===f))return d;return-1}function XSe(t){return t>=65&&t<=90?97+(t-65):t<127?t:String.fromCharCode(t).toLowerCase().charCodeAt(0)}function e8e(t){return t>=48&&t<=57}function wRt(t){return dw(t)||rnt(t)||e8e(t)||t===95||t===36}function TRt(t){const u=[];let s=0,d=0;for(let f=0;f0&&(u.push(t8e(t.substr(s,d))),d=0)}return d>0&&u.push(t8e(t.substr(s,d))),u}function t8e(t){const u=t.toLowerCase();return{text:t,textLowerCase:u,isLowerCase:t===u,characterSpans:i8e(t)}}function i8e(t){return ant(t,!1)}function n8e(t){return ant(t,!0)}function ant(t,u){const s=[];let d=0;for(let f=1;fu8e(d)&&d!==95,u,s)}function LRt(t,u,s){return u!==s&&u+1u(t.charCodeAt(f),f))}var qX,PRt=o({"src/services/patternMatcher.ts"(){or(),qX=(t=>(t[t.exact=0]="exact",t[t.prefix=1]="prefix",t[t.substring=2]="substring",t[t.camelCase=3]="camelCase",t))(qX||{})}});function lnt(t,u=!0,s=!1){const d={languageVersion:1,pragmas:void 0,checkJsDirective:void 0,referencedFiles:[],typeReferenceDirectives:[],libReferenceDirectives:[],amdDependencies:[],hasNoDefaultLib:void 0,moduleName:void 0},f=[];let p,E,v,b=0,B=!1;function k(){return E=v,v=uh.scan(),v===19?b++:v===20&&b--,v}function T(){const ae=uh.getTokenValue(),Ce=uh.getTokenStart();return{fileName:ae,pos:Ce,end:Ce+ae.length}}function M(){p||(p=[]),p.push({ref:T(),depth:b})}function z(){f.push(T()),j()}function j(){b===0&&(B=!0)}function J(){let ae=uh.getToken();return ae===138?(ae=k(),ae===144&&(ae=k(),ae===11&&M()),!0):!1}function K(){if(E===25)return!1;let ae=uh.getToken();if(ae===102){if(ae=k(),ae===21){if(ae=k(),ae===11||ae===15)return z(),!0}else{if(ae===11)return z(),!0;if(ae===156&&uh.lookAhead(()=>{const ne=uh.scan();return ne!==161&&(ne===42||ne===19||ne===80||uf(ne))})&&(ae=k()),ae===80||uf(ae))if(ae=k(),ae===161){if(ae=k(),ae===11)return z(),!0}else if(ae===64){if(oe(!0))return!0}else if(ae===28)ae=k();else return!0;if(ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else ae===42&&(ae=k(),ae===130&&(ae=k(),(ae===80||uf(ae))&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))))}return!0}return!1}function Y(){let ae=uh.getToken();if(ae===95){if(j(),ae=k(),ae===156&&uh.lookAhead(()=>{const ne=uh.scan();return ne===42||ne===19})&&(ae=k()),ae===19){for(ae=k();ae!==20&&ae!==1;)ae=k();ae===20&&(ae=k(),ae===161&&(ae=k(),ae===11&&z()))}else if(ae===42)ae=k(),ae===161&&(ae=k(),ae===11&&z());else if(ae===102&&(ae=k(),ae===156&&uh.lookAhead(()=>{const ne=uh.scan();return ne===80||uf(ne)})&&(ae=k()),(ae===80||uf(ae))&&(ae=k(),ae===64&&oe(!0))))return!0;return!0}return!1}function oe(ae,Ce=!1){let ne=ae?k():uh.getToken();return ne===149?(ne=k(),ne===21&&(ne=k(),(ne===11||Ce&&ne===15)&&z()),!0):!1}function se(){let ae=uh.getToken();if(ae===80&&uh.getTokenValue()==="define"){if(ae=k(),ae!==21)return!0;if(ae=k(),ae===11||ae===15)if(ae=k(),ae===28)ae=k();else return!0;if(ae!==23)return!0;for(ae=k();ae!==24&&ae!==1;)(ae===11||ae===15)&&z(),ae=k();return!0}return!1}function ge(){for(uh.setText(t),k();uh.getToken()!==1;){if(uh.getToken()===16){const ae=[uh.getToken()];e:for(;S(ae);){const Ce=uh.scan();switch(Ce){case 1:break e;case 102:K();break;case 16:ae.push(Ce);break;case 19:S(ae)&&ae.push(Ce);break;case 20:S(ae)&&(Zu(ae)===16?uh.reScanTemplateToken(!1)===18&&ae.pop():ae.pop());break}}k()}J()||K()||Y()||s&&(oe(!1,!0)||se())||k()}uh.setText(void 0)}if(u&&ge(),Zce(d,t),Yce(d,Rs),B){if(p)for(const ae of p)f.push(ae.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:void 0}}else{let ae;if(p)for(const Ce of p)Ce.depth===0?(ae||(ae=[]),ae.push(Ce.ref.fileName)):f.push(Ce.ref);return{referencedFiles:d.referencedFiles,typeReferenceDirectives:d.typeReferenceDirectives,libReferenceDirectives:d.libReferenceDirectives,importedFiles:f,isLibFile:!!d.hasNoDefaultLib,ambientExternalModules:ae}}}var MRt=o({"src/services/preProcess.ts"(){or()}});function r8e(t){const u=N1(t.useCaseSensitiveFileNames()),s=t.getCurrentDirectory(),d=new Map,f=new Map;return{tryGetSourcePosition:v,tryGetGeneratedPosition:b,toLineColumnOffset:M,clearCache:z};function p(j){return $0(j,s,u)}function E(j,J){const K=p(j),Y=f.get(K);if(Y)return Y;let oe;if(t.getDocumentPositionMapper)oe=t.getDocumentPositionMapper(j,J);else if(t.readFile){const se=T(j);oe=se&&$fe({getSourceFileLike:T,getCanonicalFileName:u,log:ge=>t.log(ge)},j,Gde(se.text,$3(se)),ge=>!t.fileExists||t.fileExists(ge)?t.readFile(ge):void 0)}return f.set(K,oe||oQ),oe||oQ}function v(j){if(!t1(j.fileName)||!B(j.fileName))return;const K=E(j.fileName).getSourcePosition(j);return!K||K===j?void 0:v(K)||K}function b(j){if(t1(j.fileName))return;const J=B(j.fileName);if(!J)return;const K=t.getProgram();if(K.isSourceOfProjectReferenceRedirect(J.fileName))return;const Y=K.getCompilerOptions(),oe=F0(Y),se=oe?xh(oe)+".d.ts":Iq(j.fileName,K.getCompilerOptions(),s,K.getCommonSourceDirectory(),u);if(se===void 0)return;const ge=E(se,j.fileName).getGeneratedPosition(j);return ge===j?void 0:ge}function B(j){const J=t.getProgram();if(!J)return;const K=p(j),Y=J.getSourceFileByPath(K);return Y&&Y.resolvedPath===K?Y:void 0}function k(j){const J=p(j),K=d.get(J);if(K!==void 0)return K||void 0;if(!t.readFile||t.fileExists&&!t.fileExists(J)){d.set(J,!1);return}const Y=t.readFile(J),oe=Y?zRt(Y):!1;return d.set(J,oe),oe||void 0}function T(j){return t.getSourceFileLike?t.getSourceFileLike(j):B(j)||k(j)}function M(j,J){return T(j).getLineAndCharacterOfPosition(J)}function z(){d.clear(),f.clear()}}function $fe(t,u,s,d){let f=$Ae(s);if(f){const v=dnt.exec(f);if(v){if(v[1]){const b=v[1];return cnt(t,Jye(d1,b),u)}f=void 0}}const p=[];f&&p.push(f),p.push(u+".map");const E=f&&qa(f,dr(u));for(const v of p){const b=qa(v,dr(u)),B=d(b,E);if(Ua(B))return cnt(t,B,b);if(B!==void 0)return B||void 0}}function cnt(t,u,s){const d=Jde(u);if(!(!d||!d.sources||!d.file||!d.mappings)&&!(d.sourcesContent&&d.sourcesContent.some(Ua)))return ZAe(t,d,s)}function zRt(t,u){return{text:t,lineMap:u,getLineAndCharacterOfPosition(s){return k8($3(this),s)}}}var dnt,IRt=o({"src/services/sourcemaps.ts"(){or(),dnt=/^data:(?:application\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+/=]+)$)?/}});function Ufe(t,u,s){var d;u.getSemanticDiagnostics(t,s);const f=[],p=u.getTypeChecker();!(t.impliedNodeFormat===1||Hc(t.fileName,[".cts",".cjs"]))&&t.commonJsModuleIndicator&&(gSe(u)||afe(u.getCompilerOptions()))&&RRt(t)&&f.push(Tu(HRt(t.commonJsModuleIndicator),F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module));const v=_h(t);if(Qfe.clear(),b(t),C7(u.getCompilerOptions()))for(const B of t.imports){const k=iP(B),T=ORt(k);if(!T)continue;const M=(d=u.getResolvedModule(t,B.text,xg(t,B)))==null?void 0:d.resolvedModule,z=M&&u.getSourceFile(M.resolvedFileName);z&&z.externalModuleIndicator&&z.externalModuleIndicator!==!0&&ic(z.externalModuleIndicator)&&z.externalModuleIndicator.isExportEquals&&f.push(Tu(T,F.Import_may_be_converted_to_a_default_import))}return yn(f,t.bindSuggestionDiagnostics),yn(f,u.getSuggestionDiagnostics(t,s)),f.sort((B,k)=>B.start-k.start);function b(B){if(v)WRt(B,p)&&f.push(Tu(ra(B.parent)?B.parent.name:B,F.This_constructor_function_may_be_converted_to_a_class_declaration));else{if(Jl(B)&&B.parent===t&&B.declarationList.flags&2&&B.declarationList.declarations.length===1){const T=B.declarationList.declarations[0].initializer;T&&xf(T,!0)&&f.push(Tu(T,F.require_call_may_be_converted_to_an_import))}const k=I1.getJSDocTypedefNodes(B);for(const T of k)f.push(Tu(T,F.JSDoc_typedef_may_be_converted_to_TypeScript_type));I1.parameterShouldGetTypeFromJSDoc(B)&&f.push(Tu(B.name||B,F.JSDoc_types_may_be_moved_to_TypeScript_types))}Yfe(B)&&jRt(B,p,f),B.forEachChild(b)}}function RRt(t){return t.statements.some(u=>{switch(u.kind){case 243:return u.declarationList.declarations.some(s=>!!s.initializer&&xf(hnt(s.initializer),!0));case 244:{const{expression:s}=u;if(!eu(s))return xf(s,!0);const d=ec(s);return d===1||d===2}default:return!1}})}function hnt(t){return Ru(t)?hnt(t.expression):t}function ORt(t){switch(t.kind){case 272:const{importClause:u,moduleSpecifier:s}=t;return u&&!u.name&&u.namedBindings&&u.namedBindings.kind===274&&rs(s)?u.namedBindings.name:void 0;case 271:return t.name;default:return}}function jRt(t,u,s){VRt(t,u)&&!Qfe.has(gnt(t))&&s.push(Tu(!t.name&&ra(t.parent)&&at(t.parent.name)?t.parent.name:t,F.This_may_be_converted_to_an_async_function))}function VRt(t,u){return!oP(t)&&t.body&&go(t.body)&&KRt(t.body,u)&&qfe(t,u)}function qfe(t,u){const s=u.getSignatureFromDeclaration(t),d=s?u.getReturnTypeOfSignature(s):void 0;return!!d&&!!u.getPromisedTypeOfPromise(d)}function HRt(t){return eu(t)?t.left:t}function KRt(t,u){return!!k2(t,s=>ZX(s,u))}function ZX(t,u){return jp(t)&&!!t.expression&&Zfe(t.expression,u)}function Zfe(t,u){if(!fnt(t)||!mnt(t)||!t.arguments.every(d=>pnt(d,u)))return!1;let s=t.expression.expression;for(;fnt(s)||Ru(s);)if(Mo(s)){if(!mnt(s)||!s.arguments.every(d=>pnt(d,u)))return!1;s=s.expression.expression}else s=s.expression;return!0}function fnt(t){return Mo(t)&&(PH(t,"then")||PH(t,"catch")||PH(t,"finally"))}function mnt(t){const u=t.expression.name.text,s=u==="then"?2:u==="catch"||u==="finally"?1:0;return t.arguments.length>s?!1:t.arguments.lengthd.kind===106||at(d)&&d.text==="undefined")}function pnt(t,u){switch(t.kind){case 262:case 218:if(kd(t)&1)return!1;case 219:Qfe.set(gnt(t),!0);case 106:return!0;case 80:case 211:{const d=u.getSymbolAtLocation(t);return d?u.isUndefinedSymbol(d)||Ge(eh(d,u).declarations,f=>Co(f)||Nx(f)&&!!f.initializer&&Co(f.initializer)):!1}default:return!1}}function gnt(t){return`${t.pos.toString()}:${t.end.toString()}`}function WRt(t,u){var s,d,f,p;if(w0(t)){if(ra(t.parent)&&((s=t.symbol.members)!=null&&s.size))return!0;const E=u.getSymbolOfExpando(t,!1);return!!(E&&((d=E.exports)!=null&&d.size||(f=E.members)!=null&&f.size))}return td(t)?!!((p=t.symbol.members)!=null&&p.size):!1}function Yfe(t){switch(t.kind){case 262:case 174:case 218:case 219:return!0;default:return!1}}var Qfe,GRt=o({"src/services/suggestionDiagnostics.ts"(){or(),Qfe=new Map}});function a8e(t,u){const s=[],d=u.compilerOptions?Xfe(u.compilerOptions,s):{},f=_ee();for(const M in f)Eu(f,M)&&d[M]===void 0&&(d[M]=f[M]);for(const M of _de)d.verbatimModuleSyntax&&_nt.has(M.name)||(d[M.name]=M.transpileOptionValue);d.suppressOutputPathCheck=!0,d.allowNonTsExtensions=!0;const p=a5(d),E={getSourceFile:M=>M===Uo(v)?b:void 0,writeFile:(M,z)=>{Ml(M,".map")?(H.assertEqual(k,void 0,"Unexpected multiple source map outputs, file:",M),k=z):(H.assertEqual(B,void 0,"Unexpected multiple outputs, file:",M),B=z)},getDefaultLibFileName:()=>"lib.d.ts",useCaseSensitiveFileNames:()=>!1,getCanonicalFileName:M=>M,getCurrentDirectory:()=>"",getNewLine:()=>p,fileExists:M=>M===v,readFile:()=>"",directoryExists:()=>!0,getDirectories:()=>[]},v=u.fileName||(u.compilerOptions&&u.compilerOptions.jsx?"module.tsx":"module.ts"),b=WV(v,t,{languageVersion:js(d),impliedNodeFormat:yH($0(v,"",E.getCanonicalFileName),void 0,E,d),setExternalModuleIndicator:Xj(d),jsDocParsingMode:u.jsDocParsingMode??0});u.moduleName&&(b.moduleName=u.moduleName),u.renamedDependencies&&(b.renamedDependencies=new Map(Object.entries(u.renamedDependencies)));let B,k;const T=wQ([v],d,E);return u.reportDiagnostics&&(yn(s,T.getSyntacticDiagnostics(b)),yn(s,T.getOptionsDiagnostics())),T.emit(void 0,void 0,void 0,void 0,u.transformers),B===void 0?H.fail("Output generation failed"):{outputText:B,diagnostics:s,sourceMapText:k}}function Ent(t,u,s,d,f){const p=a8e(t,{compilerOptions:u,fileName:s,reportDiagnostics:!!d,moduleName:f});return yn(d,p.diagnostics),p.outputText}function Xfe(t,u){o8e=o8e||ti(o3,s=>typeof s.type=="object"&&!f1(s.type,d=>typeof d!="number")),t=efe(t);for(const s of o8e){if(!Eu(t,s.name))continue;const d=t[s.name];Ua(d)?t[s.name]=TY(s,d,u):f1(s.type,f=>f===d)||u.push(YFe(s))}return t}var _nt,o8e,JRt=o({"src/services/transpile.ts"(){or(),_nt=new Set(["isolatedModules","preserveValueImports","importsNotUsedAsValues"])}});function Dnt(t,u,s,d,f,p,E){const v=ZSe(d);if(!v)return Dt;const b=[],B=t.length===1?t[0]:void 0;for(const k of t)s.throwIfCancellationRequested(),!(p&&k.isDeclarationFile)&&(xnt(k,!!E,B)||k.getNamedDeclarations().forEach((T,M)=>{$Rt(v,M,T,u,k.fileName,!!E,B,b)}));return b.sort(YRt),(f===void 0?b:b.slice(0,f)).map(QRt)}function xnt(t,u,s){return t!==s&&u&&(eK(t.path)||t.hasNoDefaultLib)}function $Rt(t,u,s,d,f,p,E,v){const b=t.getMatchForLastSegmentOfPattern(u);if(b){for(const B of s)if(URt(B,d,p,E))if(t.patternContainsDots){const k=t.getFullMatch(ZRt(B),u);k&&v.push({name:u,fileName:f,matchKind:k.kind,isCaseSensitive:k.isCaseSensitive,declaration:B})}else v.push({name:u,fileName:f,matchKind:b.kind,isCaseSensitive:b.isCaseSensitive,declaration:B})}}function URt(t,u,s,d){var f;switch(t.kind){case 273:case 276:case 271:const p=u.getSymbolAtLocation(t.name),E=u.getAliasedSymbol(p);return p.escapedName!==E.escapedName&&!((f=E.declarations)!=null&&f.every(v=>xnt(v.getSourceFile(),s,d)));default:return!0}}function qRt(t,u){const s=Ya(t);return!!s&&(vnt(s,u)||s.kind===167&&s8e(s.expression,u))}function s8e(t,u){return vnt(t,u)||Ru(t)&&(u.push(t.name.text),!0)&&s8e(t.expression,u)}function vnt(t,u){return eE(t)&&(u.push(U4(t)),!0)}function ZRt(t){const u=[],s=Ya(t);if(s&&s.kind===167&&!s8e(s.expression,u))return Dt;u.shift();let d=Mk(t);for(;d;){if(!qRt(d,u))return Dt;d=Mk(d)}return u.reverse()}function YRt(t,u){return rl(t.matchKind,u.matchKind)||gO(t.name,u.name)}function QRt(t){const u=t.declaration,s=Mk(u),d=s&&Ya(s);return{name:t.name,kind:ib(u),kindModifiers:PM(u),matchKind:qX[t.matchKind],isCaseSensitive:t.isCaseSensitive,fileName:t.fileName,textSpan:of(u),containerName:d?d.text:"",containerKind:d?ib(s):""}}var XRt=o({"src/services/navigateTo.ts"(){or()}}),l8e={};h(l8e,{getNavigateToItems:()=>Dnt});var Cnt=o({"src/services/_namespaces/ts.NavigateTo.ts"(){XRt()}});function bnt(t,u){nme=u,uK=t;try{return Vt(uOt(Ant(t)),rOt)}finally{knt()}}function ynt(t,u){nme=u,uK=t;try{return znt(Ant(t))}finally{knt()}}function knt(){uK=void 0,nme=void 0,rK=[],_5=void 0,ume=[]}function YX(t){return JM(t.getText(uK))}function eme(t){return t.node.kind}function Fnt(t,u){t.children?t.children.push(u):t.children=[u]}function Ant(t){H.assert(!rK.length);const u={node:t,name:void 0,additionalNodes:void 0,parent:void 0,children:void 0,indent:0};_5=u;for(const s of t.statements)r9(s);return Uv(),H.assert(!_5&&!rK.length),u}function rb(t,u){Fnt(_5,c8e(t,u))}function c8e(t,u){return{node:t,name:u||(X1(t)||Wt(t)?Ya(t):void 0),additionalNodes:void 0,parent:_5,children:void 0,indent:_5.indent+1}}function Snt(t){hw||(hw=new Map),hw.set(t,!0)}function Bnt(t){for(let u=0;u0;d--){const f=s[d];ab(t,f)}return[s.length-1,s[0]]}function ab(t,u){const s=c8e(t,u);Fnt(_5,s),rK.push(_5),_8e.push(hw),hw=void 0,_5=s}function Uv(){_5.children&&(tme(_5.children,_5),f8e(_5.children)),_5=rK.pop(),hw=_8e.pop()}function qv(t,u,s){ab(t,s),r9(u),Uv()}function Tnt(t){t.initializer&&oOt(t.initializer)?(ab(t),ao(t.initializer,r9),Uv()):qv(t,t.initializer)}function d8e(t){const u=Ya(t);if(u===void 0)return!1;if(Ms(u)){const s=u.expression;return tc(s)||Of(s)||Mm(s)}return!!u}function r9(t){if(nme.throwIfCancellationRequested(),!(!t||u7(t)))switch(t.kind){case 176:const u=t;qv(u,u.body);for(const E of u.parameters)Mf(E,u)&&rb(E);break;case 174:case 177:case 178:case 173:d8e(t)&&qv(t,t.body);break;case 172:d8e(t)&&Tnt(t);break;case 171:d8e(t)&&rb(t);break;case 273:const s=t;s.name&&rb(s.name);const{namedBindings:d}=s;if(d)if(d.kind===274)rb(d);else for(const E of d.elements)rb(E);break;case 304:qv(t,t.name);break;case 305:const{expression:f}=t;at(f)?rb(t,f):rb(t);break;case 208:case 303:case 260:{const E=t;So(E.name)?r9(E.name):Tnt(E);break}case 262:const p=t.name;p&&at(p)&&Snt(p.text),qv(t,t.body);break;case 219:case 218:qv(t,t.body);break;case 266:ab(t);for(const E of t.members)aOt(E)||rb(E);Uv();break;case 263:case 231:case 264:ab(t);for(const E of t.members)r9(E);Uv();break;case 267:qv(t,Rnt(t).body);break;case 277:{const E=t.expression,v=ys(E)||Mo(E)?E:Z0(E)||w0(E)?E.body:void 0;v?(ab(t),r9(v),Uv()):rb(t);break}case 281:case 271:case 181:case 179:case 180:case 265:rb(t);break;case 213:case 226:{const E=ec(t);switch(E){case 1:case 2:qv(t,t.right);return;case 6:case 3:{const v=t,b=v.left,B=E===3?b.expression:b;let k=0,T;at(B.expression)?(Snt(B.expression.text),T=B.expression):[k,T]=wnt(v,B.expression),E===6?ys(v.right)&&v.right.properties.length>0&&(ab(v,T),ao(v.right,r9),Uv()):w0(v.right)||Z0(v.right)?qv(t,v.right,T):(ab(v,T),qv(t,v.right,b.name),Uv()),Bnt(k);return}case 7:case 9:{const v=t,b=E===7?v.arguments[0]:v.arguments[0].expression,B=v.arguments[1],[k,T]=wnt(t,b);ab(t,T),ab(t,Pt(q.createIdentifier(B.text),B)),r9(t.arguments[2]),Uv(),Uv(),Bnt(k);return}case 5:{const v=t,b=v.left,B=b.expression;if(at(B)&&Q3(b)!=="prototype"&&hw&&hw.has(B.text)){w0(v.right)||Z0(v.right)?qv(t,v.right,B):S2(b)&&(ab(v,B),qv(v.left,v.right,yj(b)),Uv());return}break}case 4:case 0:case 8:break;default:H.assertNever(E)}}default:lm(t)&&L(t.jsDoc,E=>{L(E.tags,v=>{$4(v)&&rb(v)})}),ao(t,r9)}}function tme(t,u){const s=new Map;qu(t,(d,f)=>{const p=d.name||Ya(d.node),E=p&&YX(p);if(!E)return!0;const v=s.get(E);if(!v)return s.set(E,d),!0;if(v instanceof Array){for(const b of v)if(Lnt(b,d,f,u))return!1;return v.push(d),!0}else{const b=v;return Lnt(b,d,f,u)?!1:(s.set(E,[b,d]),!0)}})}function eOt(t,u,s,d){function f(v){return w0(v)||td(v)||ra(v)}const p=eu(u.node)||Mo(u.node)?ec(u.node):0,E=eu(t.node)||Mo(t.node)?ec(t.node):0;if($M[p]&&$M[E]||f(t.node)&&$M[p]||f(u.node)&&$M[E]||Jc(t.node)&&h8e(t.node)&&$M[p]||Jc(u.node)&&$M[E]||Jc(t.node)&&h8e(t.node)&&f(u.node)||Jc(u.node)&&f(t.node)&&h8e(t.node)){let v=t.additionalNodes&&Zu(t.additionalNodes)||t.node;if(!Jc(t.node)&&!Jc(u.node)||f(t.node)||f(u.node)){const B=f(t.node)?t.node:f(u.node)?u.node:void 0;if(B!==void 0){const k=Pt(q.createConstructorDeclaration(void 0,[],void 0),B),T=c8e(k);T.indent=t.indent+1,T.children=t.node===B?t.children:u.children,t.children=t.node===B?mi([T],u.children||[u]):mi(t.children||[{...t}],[T])}else(t.children||u.children)&&(t.children=mi(t.children||[{...t}],u.children||[u]),t.children&&(tme(t.children,t),f8e(t.children)));v=t.node=Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),t.node)}else t.children=mi(t.children,u.children),t.children&&tme(t.children,t);const b=u.node;return d.children[s-1].node.end===v.end?Pt(v,{pos:v.pos,end:b.end}):(t.additionalNodes||(t.additionalNodes=[]),t.additionalNodes.push(Pt(q.createClassDeclaration(void 0,t.name||q.createIdentifier("__class__"),void 0,void 0,[]),u.node))),!0}return p!==0}function Lnt(t,u,s,d){return eOt(t,u,s,d)?!0:tOt(t.node,u.node,d)?(iOt(t,u),!0):!1}function tOt(t,u,s){if(t.kind!==u.kind||t.parent!==u.parent&&!(Nnt(t,s)&&Nnt(u,s)))return!1;switch(t.kind){case 172:case 174:case 177:case 178:return No(t)===No(u);case 267:return Pnt(t,u)&&g8e(t)===g8e(u);default:return!0}}function h8e(t){return!!(t.flags&16)}function Nnt(t,u){const s=aE(t.parent)?t.parent.parent:t.parent;return s===u.node||kt(u.additionalNodes,s)}function Pnt(t,u){return!t.body||!u.body?t.body===u.body:t.body.kind===u.body.kind&&(t.body.kind!==267||Pnt(t.body,u.body))}function iOt(t,u){t.additionalNodes=t.additionalNodes||[],t.additionalNodes.push(u.node),u.additionalNodes&&t.additionalNodes.push(...u.additionalNodes),t.children=mi(t.children,u.children),t.children&&(tme(t.children,t),f8e(t.children))}function f8e(t){t.sort(nOt)}function nOt(t,u){return gO(Mnt(t.node),Mnt(u.node))||rl(eme(t),eme(u))}function Mnt(t){if(t.kind===267)return Int(t);const u=Ya(t);if(u&&wc(u)){const s=sk(u);return s&&Qr(s)}switch(t.kind){case 218:case 219:case 231:return jnt(t);default:return}}function m8e(t,u){if(t.kind===267)return JM(Int(t));if(u){const s=at(u)?u.text:q0(u)?`[${YX(u.argumentExpression)}]`:YX(u);if(s.length>0)return JM(s)}switch(t.kind){case 312:const s=t;return Lc(s)?`"${Sv(Bc(xh(Uo(s.fileName))))}"`:"";case 277:return ic(t)&&t.isExportEquals?"export=":"default";case 219:case 262:case 218:case 263:case 231:return Rx(t)&2048?"default":jnt(t);case 176:return"constructor";case 180:return"new()";case 179:return"()";case 181:return"[]";default:return""}}function uOt(t){const u=[];function s(f){if(d(f)&&(u.push(f),f.children))for(const p of f.children)s(p)}return s(t),u;function d(f){if(f.children)return!0;switch(eme(f)){case 263:case 231:case 266:case 264:case 267:case 312:case 265:case 353:case 345:return!0;case 219:case 262:case 218:return p(f);default:return!1}function p(E){if(!E.node.body)return!1;switch(eme(E.parent)){case 268:case 312:case 174:case 176:return!0;default:return!1}}}}function znt(t){return{text:m8e(t.node,t.name),kind:ib(t.node),kindModifiers:Ont(t.node),spans:p8e(t),nameSpan:t.name&&E8e(t.name),childItems:Vt(t.children,znt)}}function rOt(t){return{text:m8e(t.node,t.name),kind:ib(t.node),kindModifiers:Ont(t.node),spans:p8e(t),childItems:Vt(t.children,u)||ume,indent:t.indent,bolded:!1,grayed:!1};function u(s){return{text:m8e(s.node,s.name),kind:ib(s.node),kindModifiers:PM(s.node),spans:p8e(s),childItems:ume,indent:0,bolded:!1,grayed:!1}}}function p8e(t){const u=[E8e(t.node)];if(t.additionalNodes)for(const s of t.additionalNodes)u.push(E8e(s));return u}function Int(t){return P1(t)?Wc(t.name):g8e(t)}function g8e(t){const u=[U4(t.name)];for(;t.body&&t.body.kind===267;)t=t.body,u.push(U4(t.name));return u.join(".")}function Rnt(t){return t.body&&xc(t.body)?Rnt(t.body):t}function aOt(t){return!t.name||t.name.kind===167}function E8e(t){return t.kind===312?qx(t):of(t,uK)}function Ont(t){return t.parent&&t.parent.kind===260&&(t=t.parent),PM(t)}function jnt(t){const{parent:u}=t;if(t.name&&nj(t.name)>0)return JM(k0(t.name));if(ra(u))return JM(k0(u.name));if(eu(u)&&u.operatorToken.kind===64)return YX(u.left).replace(Hnt,"");if(Uc(u))return YX(u.name);if(Rx(t)&2048)return"default";if(gr(t))return"";if(Mo(u)){let s=Vnt(u.expression);if(s!==void 0){if(s=JM(s),s.length>ime)return`${s} callback`;const d=JM(qi(u.arguments,f=>i0(f)?f.getText(uK):void 0).join(", "));return`${s}(${d}) callback`}}return""}function Vnt(t){if(at(t))return t.text;if(Ru(t)){const u=Vnt(t.expression),s=t.name.text;return u===void 0?s:`${u}.${s}`}else return}function oOt(t){switch(t.kind){case 219:case 218:case 231:return!0;default:return!1}}function JM(t){return t=t.length>ime?t.substring(0,ime)+"...":t,t.replace(/\\?(\r?\n|\r|\u2028|\u2029)/g,"")}var Hnt,ime,nme,uK,rK,_5,_8e,hw,ume,$M,sOt=o({"src/services/navigationBar.ts"(){or(),Hnt=/\s+/g,ime=150,rK=[],_8e=[],ume=[],$M={5:!0,3:!0,7:!0,9:!0,0:!1,1:!1,2:!1,8:!1,6:!0,4:!1}}}),D8e={};h(D8e,{getNavigationBarItems:()=>bnt,getNavigationTree:()=>ynt});var Knt=o({"src/services/_namespaces/ts.NavigationBar.ts"(){sOt()}});function l3(t,u){rme.set(t,u)}function lOt(t,u){return Ea(ga(rme.values(),s=>{var d;return t.cancellationToken&&t.cancellationToken.isCancellationRequested()||!((d=s.kinds)!=null&&d.some(f=>Zv(f,t.kind)))?void 0:s.getAvailableActions(t,u)}))}function cOt(t,u,s,d){const f=rme.get(u);return f&&f.getEditsForAction(t,s,d)}var rme,Wnt=o({"src/services/refactorProvider.ts"(){or(),l_(),rme=new Map}});function Gnt(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=ya(s,f.start),E=p.parent&&Rx(p.parent)&32&&u?p.parent:$H(p,s,f);if(!E||!ca(E.parent)&&!(aE(E.parent)&&P1(E.parent.parent)))return{error:to(F.Could_not_find_export_statement)};const v=d.getTypeChecker(),b=gOt(E.parent,v),B=Rx(E)||(ic(E)&&!E.isExportEquals?2080:0),k=!!(B&2048);if(!(B&32)||!k&&b.exports.has("default"))return{error:to(F.This_file_already_has_a_default_export)};const T=M=>at(M)&&v.getSymbolAtLocation(M)?void 0:{error:to(F.Can_only_convert_named_export)};switch(E.kind){case 262:case 263:case 264:case 266:case 265:case 267:{const M=E;return M.name?T(M.name)||{exportNode:M,exportName:M.name,wasDefault:k,exportingModuleSymbol:b}:void 0}case 243:{const M=E;if(!(M.declarationList.flags&2)||M.declarationList.declarations.length!==1)return;const z=Pn(M.declarationList.declarations);return z.initializer?(H.assert(!k,"Can't have a default flag here"),T(z.name)||{exportNode:M,exportName:z.name,wasDefault:k,exportingModuleSymbol:b}):void 0}case 277:{const M=E;return M.isExportEquals?void 0:T(M.expression)||{exportNode:M,exportName:M.expression,wasDefault:k,exportingModuleSymbol:b}}default:return}}function dOt(t,u,s,d,f){hOt(t,s,d,u.getTypeChecker()),fOt(u,s,d,f)}function hOt(t,{wasDefault:u,exportNode:s,exportName:d},f,p){if(u)if(ic(s)&&!s.isExportEquals){const E=s.expression,v=Jnt(E.text,E.text);f.replaceNode(t,s,q.createExportDeclaration(void 0,!1,q.createNamedExports([v])))}else f.delete(t,H.checkDefined(ow(s,90),"Should find a default keyword in modifier list"));else{const E=H.checkDefined(ow(s,95),"Should find an export keyword in modifier list");switch(s.kind){case 262:case 263:case 264:f.insertNodeAfter(t,E,q.createToken(90));break;case 243:const v=Pn(s.declarationList.declarations);if(!Y0.Core.isSymbolReferencedInFile(d,p,t)&&!v.type){f.replaceNode(t,s,q.createExportDefault(H.checkDefined(v.initializer,"Initializer was previously known to be present")));break}case 266:case 265:case 267:f.deleteModifier(t,E),f.insertNodeAfter(t,s,q.createExportDefault(q.createIdentifier(d.text)));break;default:H.fail(`Unexpected exportNode kind ${s.kind}`)}}}function fOt(t,{wasDefault:u,exportName:s,exportingModuleSymbol:d},f,p){const E=t.getTypeChecker(),v=H.checkDefined(E.getSymbolAtLocation(s),"Export name should resolve to a symbol");Y0.Core.eachExportReference(t.getSourceFiles(),E,p,v,d,s.text,u,b=>{if(s===b)return;const B=b.getSourceFile();u?mOt(B,b,f,s.text):pOt(B,b,f)})}function mOt(t,u,s,d){const{parent:f}=u;switch(f.kind){case 211:s.replaceNode(t,u,q.createIdentifier(d));break;case 276:case 281:{const E=f;s.replaceNode(t,E,x8e(d,E.name.text));break}case 273:{const E=f;H.assert(E.name===u,"Import clause name should match provided ref");const v=x8e(d,u.text),{namedBindings:b}=E;if(!b)s.replaceNode(t,u,q.createNamedImports([v]));else if(b.kind===274){s.deleteRange(t,{pos:u.getStart(t),end:b.getStart(t)});const B=rs(E.parent.moduleSpecifier)?sfe(E.parent.moduleSpecifier,t):1,k=g5(void 0,[x8e(d,u.text)],E.parent.moduleSpecifier,B);s.insertNodeAfter(t,E.parent,k)}else s.delete(t,u),s.insertNodeAtEndOfList(t,b.elements,v);break}case 205:const p=f;s.replaceNode(t,f,q.createImportTypeNode(p.argument,p.attributes,q.createIdentifier(d),p.typeArguments,p.isTypeOf));break;default:H.failBadSyntaxKind(f)}}function pOt(t,u,s){const d=u.parent;switch(d.kind){case 211:s.replaceNode(t,u,q.createIdentifier("default"));break;case 276:{const f=q.createIdentifier(d.name.text);d.parent.elements.length===1?s.replaceNode(t,d.parent,f):(s.delete(t,d),s.insertNodeBefore(t,d.parent,f));break}case 281:{s.replaceNode(t,d,Jnt("default",d.name.text));break}default:H.assertNever(d,`Unexpected parent kind ${d.kind}`)}}function x8e(t,u){return q.createImportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function Jnt(t,u){return q.createExportSpecifier(!1,t===u?void 0:q.createIdentifier(t),q.createIdentifier(u))}function gOt(t,u){if(ca(t))return t.symbol;const s=t.parent.symbol;return s.valueDeclaration&&C2(s.valueDeclaration)?u.getMergedSymbol(s):s}var ame,QX,XX,EOt=o({"src/services/refactors/convertExport.ts"(){or(),l_(),ame="Convert export",QX={name:"Convert default export to named export",description:to(F.Convert_default_export_to_named_export),kind:"refactor.rewrite.export.named"},XX={name:"Convert named export to default export",description:to(F.Convert_named_export_to_default_export),kind:"refactor.rewrite.export.default"},l3(ame,{kinds:[QX.kind,XX.kind],getAvailableActions:function(u){const s=Gnt(u,u.triggerReason==="invoked");if(!s)return Dt;if(!sD(s)){const d=s.wasDefault?QX:XX;return[{name:ame,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?[{name:ame,description:to(F.Convert_default_export_to_named_export),actions:[{...QX,notApplicableReason:s.error},{...XX,notApplicableReason:s.error}]}]:Dt},getEditsForAction:function(u,s){H.assert(s===QX.name||s===XX.name,"Unexpected action name");const d=Gnt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>dOt(u.file,u.program,d,p,u.cancellationToken)),renameFilename:void 0,renameLocation:void 0}}})}});function $nt(t,u=!0){const{file:s}=t,d=u9(t),f=ya(s,d.start),p=u?Tn(f,Sd):$H(f,s,d);if(!p||!Sd(p))return{error:"Selection is not an import declaration."};const E=d.start+d.length,v=nb(p,p.parent,s);if(v&&E>v.getStart())return;const{importClause:b}=p;return b?b.namedBindings?b.namedBindings.kind===274?{convertTo:0,import:b.namedBindings}:Unt(t.program,b)?{convertTo:1,import:b.namedBindings}:{convertTo:2,import:b.namedBindings}:{error:to(F.Could_not_find_namespace_import_or_named_imports)}:{error:to(F.Could_not_find_import_clause)}}function Unt(t,u){return C7(t.getCompilerOptions())&&vOt(u.parent.moduleSpecifier,t.getTypeChecker())}function _Ot(t,u,s,d){const f=u.getTypeChecker();d.convertTo===0?DOt(t,f,s,d.import,C7(u.getCompilerOptions())):Znt(t,u,s,d.import,d.convertTo===1)}function DOt(t,u,s,d,f){let p=!1;const E=[],v=new Map;Y0.Core.eachSymbolReferenceInFile(d.name,u,t,T=>{if(!fbe(T.parent))p=!0;else{const M=qnt(T.parent).text;u.resolveName(M,T,67108863,!0)&&v.set(M,!0),H.assert(xOt(T.parent)===T,"Parent expression should match id"),E.push(T.parent)}});const b=new Map;for(const T of E){const M=qnt(T).text;let z=b.get(M);z===void 0&&b.set(M,z=v.has(M)?Ok(M,t):M),s.replaceNode(t,T,q.createIdentifier(z))}const B=[];b.forEach((T,M)=>{B.push(q.createImportSpecifier(!1,T===M?void 0:q.createIdentifier(M),q.createIdentifier(T)))});const k=d.parent.parent;p&&!f?s.insertNodeAfter(t,k,v8e(k,void 0,B)):s.replaceNode(t,k,v8e(k,p?q.createIdentifier(d.name.text):void 0,B))}function qnt(t){return Ru(t)?t.name:t.right}function xOt(t){return Ru(t)?t.expression:t.left}function Znt(t,u,s,d,f=Unt(u,d.parent)){const p=u.getTypeChecker(),E=d.parent.parent,{moduleSpecifier:v}=E,b=new Set;d.elements.forEach(j=>{const J=p.getSymbolAtLocation(j.name);J&&b.add(J)});const B=v&&rs(v)?I1.moduleSpecifierToValidIdentifier(v.text,99):"module";function k(j){return!!Y0.Core.eachSymbolReferenceInFile(j.name,p,t,J=>{const K=p.resolveName(B,J,67108863,!0);return K?b.has(K)?th(J.parent):!0:!1})}const M=d.elements.some(k)?Ok(B,t):B,z=new Set;for(const j of d.elements){const J=(j.propertyName||j.name).text;Y0.Core.eachSymbolReferenceInFile(j.name,p,t,K=>{const Y=q.createPropertyAccessExpression(q.createIdentifier(M),J);pm(K.parent)?s.replaceNode(t,K.parent,q.createPropertyAssignment(K.text,Y)):th(K.parent)?z.add(j):s.replaceNode(t,K,Y)})}if(s.replaceNode(t,d,f?q.createIdentifier(M):q.createNamespaceImport(q.createIdentifier(M))),z.size){const j=Ea(z.values(),J=>q.createImportSpecifier(J.isTypeOnly,J.propertyName&&q.createIdentifier(J.propertyName.text),q.createIdentifier(J.name.text)));s.insertNodeAfter(t,d.parent.parent,v8e(E,void 0,j))}}function vOt(t,u){const s=u.resolveExternalModuleName(t);if(!s)return!1;const d=u.resolveExternalModuleSymbol(s);return s!==d}function v8e(t,u,s){return q.createImportDeclaration(void 0,q.createImportClause(!1,u,s&&s.length?q.createNamedImports(s):void 0),t.moduleSpecifier,void 0)}var ome,eee,COt=o({"src/services/refactors/convertImport.ts"(){or(),l_(),ome="Convert import",eee={0:{name:"Convert namespace import to named imports",description:to(F.Convert_namespace_import_to_named_imports),kind:"refactor.rewrite.import.named"},2:{name:"Convert named imports to namespace import",description:to(F.Convert_named_imports_to_namespace_import),kind:"refactor.rewrite.import.namespace"},1:{name:"Convert named imports to default import",description:to(F.Convert_named_imports_to_default_import),kind:"refactor.rewrite.import.default"}},l3(ome,{kinds:q1(eee).map(t=>t.kind),getAvailableActions:function(u){const s=$nt(u,u.triggerReason==="invoked");if(!s)return Dt;if(!sD(s)){const d=eee[s.convertTo];return[{name:ome,description:d.description,actions:[d]}]}return u.preferences.provideRefactorNotApplicableReason?q1(eee).map(d=>({name:ome,description:d.description,actions:[{...d,notApplicableReason:s.error}]})):Dt},getEditsForAction:function(u,s){H.assert(Ge(q1(eee),p=>p.name===s),"Unexpected action name");const d=$nt(u);return H.assert(d&&!sD(d),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(u,p=>_Ot(u.file,u.program,p,d)),renameFilename:void 0,renameLocation:void 0}}})}});function Ynt(t,u=!0){const{file:s,startPosition:d}=t,f=_h(s),p=ya(s,d),E=EX(u9(t)),v=E.pos===E.end&&u,b=oX(p,s,E.pos,E.end),B=Tn(p,Y=>Y.parent&&Xr(Y)&&!ob(E,Y.parent,s)&&(v||b));if(!B||!Xr(B))return{error:to(F.Selection_is_not_a_valid_type_node)};const k=t.program.getTypeChecker(),T=AOt(B,f);if(T===void 0)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const M=SOt(B,T);if(!Xr(M))return{error:to(F.Selection_is_not_a_valid_type_node)};const z=[];(Mv(M.parent)||kB(M.parent))&&E.end>B.end&&yn(z,M.parent.types.filter(Y=>oX(Y,s,E.pos,E.end)));const j=z.length>1?z:M,J=bOt(k,j,T,s);if(!J)return{error:to(F.No_type_could_be_extracted_from_this_type_node)};const K=sme(k,j);return{isJS:f,selection:j,enclosingNode:T,typeParameters:J,typeElements:K}}function sme(t,u){if(u){if(Wa(u)){const s=[];for(const d of u){const f=sme(t,d);if(!f)return;yn(s,f)}return s}if(kB(u)){const s=[],d=new Map;for(const f of u.types){const p=sme(t,f);if(!p||!p.every(E=>E.name&&Rp(d,GH(E.name))))return;yn(s,p)}return s}else{if(M7(u))return sme(t,u.type);if(fm(u))return u.members}}}function ob(t,u,s){return RH(t,gs(s.text,u.pos),u.end)}function bOt(t,u,s,d){const f=[],p=YA(u),E={pos:p[0].pos,end:p[p.length-1].end};for(const b of p)if(v(b))return;return f;function v(b){if(tp(b)){if(at(b.typeName)){const B=b.typeName,k=t.resolveName(B.text,B,262144,!0);for(const T of(k==null?void 0:k.declarations)||Dt)if(wl(T)&&T.getSourceFile()===d){if(T.name.escapedText===B.escapedText&&ob(T,E,d))return!0;if(ob(s,T,d)&&!ob(E,T,d)){Ca(f,T);break}}}}else if(P7(b)){const B=Tn(b,k=>FB(k)&&ob(k.extendsType,b,d));if(!B||!ob(E,B,d))return!0}else if(sY(b)||cY(b)){const B=Tn(b.parent,Co);if(B&&B.type&&ob(B.type,b,d)&&!ob(E,B,d))return!0}else if(bB(b)){if(at(b.exprName)){const B=t.resolveName(b.exprName.text,b.exprName,111551,!1);if(B!=null&&B.valueDeclaration&&ob(s,B.valueDeclaration,d)&&!ob(E,B.valueDeclaration,d))return!0}else if(P2(b.exprName.left)&&!ob(E,b.parent,d))return!0}return d&&yB(b)&&s0(d,b.pos).line===s0(d,b.end).line&&Yn(b,1),ao(b,v)}}function yOt(t,u,s,d){const{enclosingNode:f,typeParameters:p}=d,{firstTypeNode:E,lastTypeNode:v,newTypeNode:b}=C8e(d),B=q.createTypeAliasDeclaration(void 0,s,p.map(k=>q.updateTypeParameterDeclaration(k,k.modifiers,k.name,k.constraint,void 0)),b);t.insertNodeBefore(u,f,hce(B),!0),t.replaceNodeRange(u,E,v,q.createTypeReferenceNode(s,p.map(k=>q.createTypeReferenceNode(k.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function kOt(t,u,s,d){var f;const{enclosingNode:p,typeParameters:E,typeElements:v}=d,b=q.createInterfaceDeclaration(void 0,s,E,void 0,v);Pt(b,(f=v[0])==null?void 0:f.parent),t.insertNodeBefore(u,p,hce(b),!0);const{firstTypeNode:B,lastTypeNode:k}=C8e(d);t.replaceNodeRange(u,B,k,q.createTypeReferenceNode(s,E.map(T=>q.createTypeReferenceNode(T.name,void 0))),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.ExcludeWhitespace})}function FOt(t,u,s,d,f){var p;YA(f.selection).forEach(j=>{Yn(j,7168)});const{enclosingNode:E,typeParameters:v}=f,{firstTypeNode:b,lastTypeNode:B,newTypeNode:k}=C8e(f),T=q.createJSDocTypedefTag(q.createIdentifier("typedef"),q.createJSDocTypeExpression(k),q.createIdentifier(d)),M=[];L(v,j=>{const J=w8(j),K=q.createTypeParameterDeclaration(void 0,j.name),Y=q.createJSDocTemplateTag(q.createIdentifier("template"),J&&Po(J,kk),[K]);M.push(Y)});const z=q.createJSDocComment(void 0,q.createNodeArray(mi(M,[T])));if(Hp(E)){const j=E.getStart(s),J=E5(u.host,(p=u.formatContext)==null?void 0:p.options);t.insertNodeAt(s,E.getStart(s),z,{suffix:J+J+s.text.slice(SX(s.text,j-1),j)})}else t.insertNodeBefore(s,E,z,!0);t.replaceNodeRange(s,b,B,q.createTypeReferenceNode(d,v.map(j=>q.createTypeReferenceNode(j.name,void 0))))}function C8e(t){return Wa(t.selection)?{firstTypeNode:t.selection[0],lastTypeNode:t.selection[t.selection.length-1],newTypeNode:Mv(t.selection[0].parent)?q.createUnionTypeNode(t.selection):q.createIntersectionTypeNode(t.selection)}:{firstTypeNode:t.selection,lastTypeNode:t.selection,newTypeNode:t.selection}}function AOt(t,u){return Tn(t,ua)||(u?Tn(t,Hp):void 0)}function SOt(t,u){return Tn(t,s=>s===u?"quit":!!(Mv(s.parent)||kB(s.parent)))??t}var lme,tee,iee,nee,BOt=o({"src/services/refactors/extractType.ts"(){or(),l_(),lme="Extract type",tee={name:"Extract to type alias",description:to(F.Extract_to_type_alias),kind:"refactor.extract.type"},iee={name:"Extract to interface",description:to(F.Extract_to_interface),kind:"refactor.extract.interface"},nee={name:"Extract to typedef",description:to(F.Extract_to_typedef),kind:"refactor.extract.typedef"},l3(lme,{kinds:[tee.kind,iee.kind,nee.kind],getAvailableActions:function(u){const s=Ynt(u,u.triggerReason==="invoked");return s?sD(s)?u.preferences.provideRefactorNotApplicableReason?[{name:lme,description:to(F.Extract_type),actions:[{...nee,notApplicableReason:s.error},{...tee,notApplicableReason:s.error},{...iee,notApplicableReason:s.error}]}]:Dt:[{name:lme,description:to(F.Extract_type),actions:s.isJS?[nee]:Di([tee],s.typeElements&&iee)}]:Dt},getEditsForAction:function(u,s){const{file:d}=u,f=Ynt(u);H.assert(f&&!sD(f),"Expected to find a range to extract");const p=Ok("NewType",d),E=iu.ChangeTracker.with(u,B=>{switch(s){case tee.name:return H.assert(!f.isJS,"Invalid actionName/JS combo"),yOt(B,d,p,f);case nee.name:return H.assert(f.isJS,"Invalid actionName/JS combo"),FOt(B,u,d,p,f);case iee.name:return H.assert(!f.isJS&&!!f.typeElements,"Invalid actionName/JS combo"),kOt(B,d,p,f);default:H.fail("Unexpected action name")}}),v=d.fileName,b=ZH(E,v,p,!1);return{edits:E,renameFilename:v,renameLocation:b}}})}});function sD(t){return t.error!==void 0}function Zv(t,u){return u?t.substr(0,u.length)===u:!0}var wOt=o({"src/services/refactors/helpers.ts"(){}});function Qnt(t,u,s,d){var f,p;const E=d.getTypeChecker(),v=af(t,u),b=v.parent;if(at(v)){if(Yj(b)&&ZN(b)&&at(b.name)){if(((f=E.getMergedSymbol(b.symbol).declarations)==null?void 0:f.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};if(Xnt(b))return;const B=eut(b,E,t);return B&&{references:B,declaration:b,replacement:b.initializer}}if(s){let B=E.resolveName(v.text,v,111551,!1);if(B=B&&E.getMergedSymbol(B),((p=B==null?void 0:B.declarations)==null?void 0:p.length)!==1)return{error:to(F.Variables_with_multiple_declarations_cannot_be_inlined)};const k=B.declarations[0];if(!Yj(k)||!ZN(k)||!at(k.name)||Xnt(k))return;const T=eut(k,E,t);return T&&{references:T,declaration:k,replacement:k.initializer}}return{error:to(F.Could_not_find_variable_to_inline)}}}function Xnt(t){const u=Po(t.parent.parent,Jl);return Ge(u.modifiers,L7)}function eut(t,u,s){const d=[],f=Y0.Core.eachSymbolReferenceInFile(t.name,u,s,p=>{if(Y0.isWriteAccessForReference(p)||th(p.parent)||ic(p.parent)||bB(p.parent)||RO(t,p.pos))return!0;d.push(p)});return d.length===0||f?void 0:d}function TOt(t,u){u=dl(u);const{parent:s}=t;return Wt(s)&&(cP(u){for(const T of E)k.replaceNode(s,T,TOt(T,b));k.delete(s,v)})}}})}});function NOt(t,u,s,d,f,p,E){const v=u.getTypeChecker(),b=aee(t,s.all,v),B=N8e(t,u,E,f);d.createNewFile(t,B,POt(t,b,d,s,u,f,B,p)),b8e(u,d,t.fileName,B,n5(f))}function POt(t,u,s,d,f,p,E,v){const b=f.getTypeChecker(),B=nU(t.statements,zp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&u.oldImportsNeededByTargetFile.size===0)return uee(t,d.ranges,s),[...B,...d.all];const k=!Tfe(E,f,p,!!t.commonJsModuleIndicator),T=Km(t,v),M=A8e(t,u.oldFileImportsFromTargetFile,E,f,p,k,T);M&&zM(s,t,M,!0,v),y8e(t,d.all,s,u.unusedImportsFromOldFile,b),uee(t,d.ranges,s),k8e(s,f,p,t,u.movedSymbols,E,T);const z=MOt(t,u.oldImportsNeededByTargetFile,u.targetFileImportsFromOldFile,s,b,f,p,k,T),j=S8e(t,d.all,u.oldFileImportsFromTargetFile,k);return z.length&&j.length?[...B,...z,4,...j]:[...B,...z,...j]}function MOt(t,u,s,d,f,p,E,v,b){const B=[];for(const z of t.statements)lK(z,j=>{Di(B,cK(j,sK(j),J=>u.has(f.getSymbolAtLocation(J))))});let k;const T=[],M=i9();return s.forEach(z=>{if(z.declarations)for(const j of z.declarations){if(!oee(j))continue;const J=T8e(j);if(!J)continue;const K=mme(j);M(K)&&L8e(t,K,J,d,v),Qu(j,2048)?k=J:T.push(J.text)}}),Di(B,ree(t,k,T,Bc(t.fileName),p,E,v,b)),B}var oK,hme,fme,zOt=o({"src/services/refactors/moveToNewFile.ts"(){or(),l_(),oK="Move to a new file",hme=to(F.Move_to_a_new_file),fme={name:oK,description:hme,kind:"refactor.move.newFile"},l3(oK,{kinds:[fme.kind],getAvailableActions:function(u){const s=dK(u);return u.preferences.allowTextChangesInNewFiles&&s?[{name:oK,description:hme,actions:[fme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:oK,description:hme,actions:[{...fme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:Dt},getEditsForAction:function(u,s){H.assert(s===oK,"Wrong refactor invoked");const d=H.checkDefined(dK(u));return{edits:iu.ChangeTracker.with(u,p=>NOt(u.file,u.program,d,p,u.host,u.preferences,u)),renameFilename:void 0,renameLocation:void 0}}})}});function tut(t){return{edits:[],renameFilename:void 0,renameLocation:void 0,notApplicableReason:t}}function IOt(t,u,s,d,f,p,E,v){const b=d.getTypeChecker();if(!E.fileExists(s))p.createNewFile(u,s,iut(u,s,aee(u,f.all,b),p,f,d,E,v)),b8e(d,p,u.fileName,s,n5(E));else{const B=H.checkDefined(d.getSourceFile(s)),k=I1.createImportAdder(B,t.program,t.preferences,t.host);iut(u,B,aee(u,f.all,b,ijt(B,b)),p,f,d,E,v,k)}}function iut(t,u,s,d,f,p,E,v,b){const B=p.getTypeChecker(),k=nU(t.statements,zp);if(t.externalModuleIndicator===void 0&&t.commonJsModuleIndicator===void 0&&s.oldImportsNeededByTargetFile.size===0&&s.targetFileImportsFromOldFile.size===0&&typeof u=="string")return uee(t,f.ranges,d),[...k,...f.all];const T=typeof u=="string"?u:u.fileName,M=!Tfe(T,p,E,!!t.commonJsModuleIndicator),z=Km(t,v),j=A8e(t,s.oldFileImportsFromTargetFile,T,p,E,M,z);j&&zM(d,t,j,!0,v),y8e(t,f.all,d,s.unusedImportsFromOldFile,B),uee(t,f.ranges,d),k8e(d,p,E,t,s.movedSymbols,T,z);const J=ROt(t,T,s.oldImportsNeededByTargetFile,s.targetFileImportsFromOldFile,d,B,p,E,M,z,b),K=S8e(t,f.all,s.oldFileImportsFromTargetFile,M);return typeof u!="string"&&(u.statements.length>0?tjt(d,p,K,u,f):d.insertNodesAtEndOfFile(u,K,!1),J.length>0&&zM(d,u,J,!0,v)),b&&b.writeFixes(d,z),J.length&&K.length?[...k,...J,4,...K]:[...k,...J,...K]}function ROt(t,u,s,d,f,p,E,v,b,B,k){const T=[];if(k)s.forEach((K,Y)=>{try{k.addImportFromExportedSymbol(eh(Y,p),K)}catch{for(const oe of t.statements)lK(oe,se=>{Di(T,cK(se,q.createStringLiteral(sK(se).text),ge=>s.has(p.getSymbolAtLocation(ge))))})}});else{const K=E.getSourceFile(u);for(const Y of t.statements)lK(Y,oe=>{var se;const ge=sK(oe),ae=E.getResolvedModule(t,ge.text,xg(t,ge)),Ce=(se=ae==null?void 0:ae.resolvedModule)==null?void 0:se.resolvedFileName;if(Ce&&K){const ne=YY(E.getCompilerOptions(),K,K.path,Ce,Ik(E,v));Di(T,cK(oe,n9(ne,B),ve=>s.has(p.getSymbolAtLocation(ve))))}else Di(T,cK(oe,q.createStringLiteral(sK(oe).text),ne=>s.has(p.getSymbolAtLocation(ne))))})}const M=E.getSourceFile(u);let z;const j=[],J=i9();return d.forEach(K=>{if(K.declarations)for(const Y of K.declarations){if(!oee(Y))continue;const oe=T8e(Y);if(!oe)continue;const se=mme(Y);J(se)&&L8e(t,se,oe,f,b),k&&p.isUnknownSymbol(K)?k.addImportFromExportedSymbol(eh(K,p)):Qu(Y,2048)?z=oe:j.push(oe.text)}}),M?Di(T,ree(M,z,j,t.fileName,E,v,b,B)):Di(T,ree(t,z,j,t.fileName,E,v,b,B))}function b8e(t,u,s,d,f){const p=t.getCompilerOptions().configFile;if(!p)return;const E=Uo(hr(s,"..",d)),v=BO(p.fileName,E,f),b=p.statements[0]&&ar(p.statements[0].expression,ys),B=b&&Le(b.properties,k=>Uc(k)&&rs(k.name)&&k.name.text==="files");B&&vh(B.initializer)&&u.insertNodeInListAfter(p,yr(B.initializer.elements),q.createStringLiteral(v),B.initializer.elements)}function uee(t,u,s){for(const{first:d,afterLast:f}of u)s.deleteNodeRangeExcludingEnd(t,d,f)}function y8e(t,u,s,d,f){for(const p of t.statements)kt(u,p)||lK(p,E=>B8e(t,E,s,v=>d.has(f.getSymbolAtLocation(v))))}function k8e(t,u,s,d,f,p,E){const v=u.getTypeChecker();for(const b of u.getSourceFiles())if(b!==d)for(const B of b.statements)lK(B,k=>{if(v.getSymbolAtLocation(sK(k))!==d.symbol)return;const T=K=>{const Y=Vs(K.parent)?yX(v,K.parent):eh(v.getSymbolAtLocation(K),v);return!!Y&&f.has(Y)};B8e(b,k,t,T);const M=kx(dr(d.path),p),z=YY(u.getCompilerOptions(),b,b.path,M,Ik(u,s)),j=cK(k,n9(z,E),T);j&&t.insertNodeAfter(b,B,j);const J=OOt(k);J&&jOt(t,b,v,f,z,J,k,E)})}function OOt(t){switch(t.kind){case 272:return t.importClause&&t.importClause.namedBindings&&t.importClause.namedBindings.kind===274?t.importClause.namedBindings.name:void 0;case 271:return t.name;case 260:return ar(t.name,at);default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function jOt(t,u,s,d,f,p,E,v){const b=I1.moduleSpecifierToValidIdentifier(f,99);let B=!1;const k=[];if(Y0.Core.eachSymbolReferenceInFile(p,s,u,T=>{Ru(T.parent)&&(B=B||!!s.resolveName(b,T,67108863,!0),d.has(s.getSymbolAtLocation(T.parent.name))&&k.push(T))}),k.length){const T=B?Ok(b,u):b;for(const M of k)t.replaceNode(u,M,q.createIdentifier(T));t.insertNodeAfter(u,E,VOt(E,b,f,v))}}function VOt(t,u,s,d){const f=q.createIdentifier(u),p=n9(s,d);switch(t.kind){case 272:return q.createImportDeclaration(void 0,q.createImportClause(!1,void 0,q.createNamespaceImport(f)),p,void 0);case 271:return q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(p));case 260:return q.createVariableDeclaration(f,void 0,void 0,F8e(p));default:return H.assertNever(t,`Unexpected node kind ${t.kind}`)}}function F8e(t){return q.createCallExpression(q.createIdentifier("require"),void 0,[t])}function sK(t){return t.kind===272?t.moduleSpecifier:t.kind===271?t.moduleReference.expression:t.initializer.arguments[0]}function lK(t,u){if(Sd(t))rs(t.moduleSpecifier)&&u(t);else if(_1(t))a_(t.moduleReference)&&i0(t.moduleReference.expression)&&u(t);else if(Jl(t))for(const s of t.declarationList.declarations)s.initializer&&xf(s.initializer,!0)&&u(s)}function A8e(t,u,s,d,f,p,E){let v;const b=[];return u.forEach(B=>{B.escapedName==="default"?v=q.createIdentifier(vX(B)):b.push(B.name)}),ree(t,v,b,s,d,f,p,E)}function ree(t,u,s,d,f,p,E,v){const b=kx(dr(t.path),d),B=YY(f.getCompilerOptions(),t,t.path,b,Ik(f,p));if(E){const k=s.map(T=>q.createImportSpecifier(!1,void 0,q.createIdentifier(T)));return ESe(u,k,B,v)}else{H.assert(!u,"No default import should exist");const k=s.map(T=>q.createBindingElement(void 0,void 0,T));return k.length?nut(q.createObjectBindingPattern(k),void 0,F8e(n9(B,v))):void 0}}function nut(t,u,s,d=2){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(t,void 0,u,s)],d))}function S8e(t,u,s,d){return Vu(u,f=>{if(rut(f)&&!uut(t,f,d)&&P8e(f,p=>{var E;return s.has(H.checkDefined((E=ar(p,Yg))==null?void 0:E.symbol))})){const p=WOt(dl(f),d);if(p)return p}return dl(f)})}function uut(t,u,s,d){var f;return s?!Od(u)&&Qu(u,32)||!!(d&&t.symbol&&((f=t.symbol.exports)!=null&&f.has(d.escapedText))):!!t.symbol&&!!t.symbol.exports&&w8e(u).some(p=>t.symbol.exports.has(Sl(p)))}function B8e(t,u,s,d){switch(u.kind){case 272:HOt(t,u,s,d);break;case 271:d(u.name)&&s.delete(t,u);break;case 260:KOt(t,u,s,d);break;default:H.assertNever(u,`Unexpected import decl kind ${u.kind}`)}}function HOt(t,u,s,d){if(!u.importClause)return;const{name:f,namedBindings:p}=u.importClause,E=!f||d(f),v=!p||(p.kind===274?d(p.name):p.elements.length!==0&&p.elements.every(b=>d(b.name)));if(E&&v)s.delete(t,u);else if(f&&E&&s.delete(t,f),p){if(v)s.replaceNode(t,u.importClause,q.updateImportClause(u.importClause,u.importClause.isTypeOnly,f,void 0));else if(p.kind===275)for(const b of p.elements)d(b.name)&&s.delete(t,b)}}function KOt(t,u,s,d){const{name:f}=u;switch(f.kind){case 80:d(f)&&(u.initializer&&xf(u.initializer,!0)?s.delete(t,Ad(u.parent)&&S(u.parent.declarations)===1?u.parent.parent:u):s.delete(t,f));break;case 207:break;case 206:if(f.elements.every(p=>at(p.name)&&d(p.name)))s.delete(t,Ad(u.parent)&&u.parent.declarations.length===1?u.parent.parent:u);else for(const p of f.elements)at(p.name)&&d(p.name)&&s.delete(t,p.name);break}}function rut(t){return H.assert(ca(t.parent),"Node parent should be a SourceFile"),dut(t)||Jl(t)}function WOt(t,u){return u?[GOt(t)]:JOt(t)}function GOt(t){const u=Kp(t)?mi([q.createModifier(95)],g2(t)):void 0;switch(t.kind){case 262:return q.updateFunctionDeclaration(t,u,t.asteriskToken,t.name,t.typeParameters,t.parameters,t.type,t.body);case 263:const s=Ak(t)?Ax(t):void 0;return q.updateClassDeclaration(t,mi(s,u),t.name,t.typeParameters,t.heritageClauses,t.members);case 243:return q.updateVariableStatement(t,u,t.declarationList);case 267:return q.updateModuleDeclaration(t,u,t.name,t.body);case 266:return q.updateEnumDeclaration(t,u,t.name,t.members);case 265:return q.updateTypeAliasDeclaration(t,u,t.name,t.typeParameters,t.type);case 264:return q.updateInterfaceDeclaration(t,u,t.name,t.typeParameters,t.heritageClauses,t.members);case 271:return q.updateImportEqualsDeclaration(t,u,t.isTypeOnly,t.name,t.moduleReference);case 244:return H.fail();default:return H.assertNever(t,`Unexpected declaration kind ${t.kind}`)}}function JOt(t){return[t,...w8e(t).map(aut)]}function aut(t){return q.createExpressionStatement(q.createBinaryExpression(q.createPropertyAccessExpression(q.createIdentifier("exports"),q.createIdentifier(t)),64,q.createIdentifier(t)))}function w8e(t){switch(t.kind){case 262:case 263:return[t.name.text];case 243:return qi(t.declarationList.declarations,u=>at(u.name)?u.name.text:void 0);case 267:case 266:case 265:case 264:case 271:return Dt;case 244:return H.fail("Can't export an ExpressionStatement");default:return H.assertNever(t,`Unexpected decl kind ${t.kind}`)}}function cK(t,u,s){switch(t.kind){case 272:{const d=t.importClause;if(!d)return;const f=d.name&&s(d.name)?d.name:void 0,p=d.namedBindings&&$Ot(d.namedBindings,s);return f||p?q.createImportDeclaration(void 0,q.createImportClause(d.isTypeOnly,f,p),dl(u),void 0):void 0}case 271:return s(t.name)?t:void 0;case 260:{const d=UOt(t.name,s);return d?nut(d,t.type,F8e(u),t.parent.flags):void 0}default:return H.assertNever(t,`Unexpected import kind ${t.kind}`)}}function $Ot(t,u){if(t.kind===274)return u(t.name)?t:void 0;{const s=t.elements.filter(d=>u(d.name));return s.length?q.createNamedImports(s):void 0}}function UOt(t,u){switch(t.kind){case 80:return u(t)?t:void 0;case 207:return t;case 206:{const s=t.elements.filter(d=>d.propertyName||!at(d.name)||u(d.name));return s.length?q.createObjectBindingPattern(s):void 0}}}function T8e(t){return Od(t)?ar(t.expression.left.name,at):ar(t.name,at)}function mme(t){switch(t.kind){case 260:return t.parent.parent;case 208:return mme(Po(t.parent.parent,u=>ra(u)||Vs(u)));default:return t}}function L8e(t,u,s,d,f){if(!uut(t,u,f,s))if(f)Od(u)||d.insertExportModifier(t,u);else{const p=w8e(u);p.length!==0&&d.insertNodesAfter(t,u,p.map(aut))}}function N8e(t,u,s,d){const f=u.getTypeChecker(),p=dK(s);let E;if(p){E=aee(t,p.all,f);const v=dr(t.fileName),b=y7(t.fileName);return hr(v,QOt(XOt(E.oldFileImportsFromTargetFile,E.movedSymbols),b,v,d))+b}return""}function qOt(t){const{file:u}=t,s=EX(u9(t)),{statements:d}=u;let f=Ue(d,B=>B.end>s.pos);if(f===-1)return;const p=d[f],E=hut(u,p);E&&(f=E.start);let v=Ue(d,B=>B.end>=s.end,f);v!==-1&&s.end<=d[v].getStart()&&v--;const b=hut(u,d[v]);return b&&(v=b.end),{toMove:d.slice(f,v===-1?d.length:v+1),afterLast:v===-1?void 0:d[v+1]}}function dK(t){const u=qOt(t);if(u===void 0)return;const s=[],d=[],{toMove:f,afterLast:p}=u;return ku(f,ZOt,(E,v)=>{for(let b=E;b!!u.initializer&&xf(u.initializer,!0));default:return!1}}function aee(t,u,s,d=new Set){const f=new Set,p=new Map,E=new Set,v=Le(u,M=>!!(M.transformFlags&2)),b=T(v);b&&p.set(b,!1);for(const M of u)P8e(M,z=>{f.add(H.checkDefined(Od(z)?s.getSymbolAtLocation(z.expression.left):z.symbol,"Need a symbol here"))});const B=new Set;for(const M of u)out(M,s,(z,j)=>{if(z.declarations){if(d.has(eh(z,s))){B.add(z);return}for(const J of z.declarations)if(sut(J)){const K=p.get(z);p.set(z,(K===void 0||K)&&j)}else oee(J)&&ejt(J)===t&&!f.has(z)&&E.add(z)}});for(const M of p.keys())B.add(M);const k=new Set;for(const M of t.statements)kt(u,M)||(b&&M.transformFlags&2&&B.delete(b),out(M,s,z=>{f.has(z)&&k.add(z),B.delete(z)}));return{movedSymbols:f,targetFileImportsFromOldFile:E,oldFileImportsFromTargetFile:k,oldImportsNeededByTargetFile:p,unusedImportsFromOldFile:B};function T(M){if(M===void 0)return;const z=s.getJsxNamespace(M),j=s.resolveName(z,M,1920,!0);return j&&Ge(j.declarations,sut)?j:void 0}}function QOt(t,u,s,d){let f=t;for(let p=1;;p++){const E=hr(s,f+u);if(!d.fileExists(E))return f;f=`${t}.${p}`}}function XOt(t,u){return q_(t,vX)||q_(u,vX)||"newFile"}function out(t,u,s){t.forEachChild(function d(f){if(at(f)&&!X3(f)){const p=u.getSymbolAtLocation(f);p&&s(p,Lv(f))}else f.forEachChild(d)})}function P8e(t,u){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return u(t);case 243:return G(t.declarationList.declarations,s=>cut(s.name,u));case 244:{const{expression:s}=t;return eu(s)&&ec(s)===1?u(t):void 0}}}function sut(t){switch(t.kind){case 271:case 276:case 273:case 274:return!0;case 260:return lut(t);case 208:return ra(t.parent.parent)&&lut(t.parent.parent);default:return!1}}function lut(t){return ca(t.parent.parent.parent)&&!!t.initializer&&xf(t.initializer,!0)}function oee(t){return dut(t)&&ca(t.parent)||ra(t)&&ca(t.parent.parent.parent)}function ejt(t){return ra(t)?t.parent.parent.parent:t.parent}function cut(t,u){switch(t.kind){case 80:return u(Po(t.parent,s=>ra(s)||Vs(s)));case 207:case 206:return G(t.elements,s=>Fd(s)?void 0:cut(s.name,u));default:return H.assertNever(t,`Unexpected name kind ${t.kind}`)}}function dut(t){switch(t.kind){case 262:case 263:case 267:case 266:case 265:case 264:case 271:return!0;default:return!1}}function tjt(t,u,s,d,f){var p;const E=new Set,v=(p=d.symbol)==null?void 0:p.exports;if(v){const B=u.getTypeChecker(),k=new Map;for(const T of f.all)rut(T)&&Qu(T,32)&&P8e(T,M=>{var z;const j=Yg(M)?(z=v.get(M.symbol.escapedName))==null?void 0:z.declarations:void 0,J=G(j,K=>$c(K)?K:th(K)?ar(K.parent.parent,$c):void 0);J&&J.moduleSpecifier&&k.set(J,(k.get(J)||new Set).add(M))});for(const[T,M]of Ea(k))if(T.exportClause&&ip(T.exportClause)&&S(T.exportClause.elements)){const z=T.exportClause.elements,j=ti(z,J=>Le(eh(J.symbol,B).declarations,K=>oee(K)&&M.has(K))===void 0);if(S(j)===0){t.deleteNode(d,T),E.add(T);continue}S(j)$c(B)&&!!B.moduleSpecifier&&!E.has(B));b?t.insertNodesBefore(d,b,s,!0):t.insertNodesAfter(d,d.statements[d.statements.length-1],s)}function hut(t,u){if(U0(u)){const s=u.symbol.declarations;if(s===void 0||S(s)<=1||!kt(s,u))return;const d=s[0],f=s[S(s)-1],p=qi(s,b=>zn(b)===t&&ua(b)?b:void 0),E=Ue(t.statements,b=>b.end>=f.end),v=Ue(t.statements,b=>b.end>=d.end);return{toMove:p,start:v,end:E}}}function ijt(t,u){const s=new Set;for(const d of t.imports){const f=iP(d);if(Sd(f)&&f.importClause&&f.importClause.namedBindings&&uD(f.importClause.namedBindings))for(const p of f.importClause.namedBindings.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(eh(E,u))}if(bq(f.parent)&&Op(f.parent.name))for(const p of f.parent.name.elements){const E=u.getSymbolAtLocation(p.propertyName||p.name);E&&s.add(eh(E,u))}}return s}var see,pme,gme,njt=o({"src/services/refactors/moveToFile.ts"(){Tet(),or(),Wnt(),see="Move to file",pme=to(F.Move_to_file),gme={name:"Move to file",description:pme,kind:"refactor.move.file"},l3(see,{kinds:[gme.kind],getAvailableActions:function(u,s){const d=dK(u);return s?u.preferences.allowTextChangesInNewFiles&&d?[{name:see,description:pme,actions:[gme]}]:u.preferences.provideRefactorNotApplicableReason?[{name:see,description:pme,actions:[{...gme,notApplicableReason:to(F.Selection_is_not_a_valid_statement_or_statements)}]}]:Dt:Dt},getEditsForAction:function(u,s,d){H.assert(s===see,"Wrong refactor invoked");const f=H.checkDefined(dK(u)),{host:p,program:E}=u;H.assert(d,"No interactive refactor arguments available");const v=d.targetFile;return I2(v)||mk(v)?p.fileExists(v)&&E.getSourceFile(v)===void 0?tut(to(F.Cannot_move_statements_to_the_selected_file)):{edits:iu.ChangeTracker.with(u,B=>IOt(u,u.file,d.targetFile,u.program,f,B,u.host,u.preferences)),renameFilename:void 0,renameLocation:void 0}:tut(to(F.Cannot_move_to_file_selected_file_is_invalid))}})}});function ujt(t){const{file:u,startPosition:s,program:d}=t;return mut(u,s,d)?[{name:Eme,description:M8e,actions:[z8e]}]:Dt}function rjt(t){const{file:u,startPosition:s,program:d}=t,f=mut(u,s,d);if(!f)return;const p=d.getTypeChecker(),E=f[f.length-1];let v=E;switch(E.kind){case 173:{v=q.updateMethodSignature(E,E.modifiers,E.name,E.questionToken,E.typeParameters,B(f),E.type);break}case 174:{v=q.updateMethodDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.questionToken,E.typeParameters,B(f),E.type,E.body);break}case 179:{v=q.updateCallSignature(E,E.typeParameters,B(f),E.type);break}case 176:{v=q.updateConstructorDeclaration(E,E.modifiers,B(f),E.body);break}case 180:{v=q.updateConstructSignature(E,E.typeParameters,B(f),E.type);break}case 262:{v=q.updateFunctionDeclaration(E,E.modifiers,E.asteriskToken,E.name,E.typeParameters,B(f),E.type,E.body);break}default:return H.failBadSyntaxKind(E,"Unhandled signature kind in overload list conversion refactoring")}if(v===E)return;return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,M=>{M.replaceNodeRange(u,f[0],f[f.length-1],v)})};function B(M){const z=M[M.length-1];return U0(z)&&z.body&&(M=M.slice(0,M.length-1)),q.createNodeArray([q.createParameterDeclaration(void 0,q.createToken(26),"args",void 0,q.createUnionTypeNode(Vt(M,k)))])}function k(M){const z=Vt(M.parameters,T);return Yn(q.createTupleTypeNode(z),Ge(z,j=>!!S(DB(j)))?0:1)}function T(M){H.assert(at(M.name));const z=Pt(q.createNamedTupleMember(M.dotDotDotToken,M.name,M.questionToken,M.type||q.createKeywordTypeNode(133)),M),j=M.symbol&&M.symbol.getDocumentationComment(p);if(j){const J=_K(j);J.length&&Pv(z,[{text:`* ${J.split(` `).map(K=>` * ${K}`).join(` `)} - `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return z}}function sut(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function lut(t,u,s){const d=Ca(t,u),f=Tn(d,sut);if(!f||$0(f)&&f.body&&MH(f.body,u))return;const p=s.getTypeChecker(),E=f.symbol;if(!E)return;const v=E.declarations;if(S(v)<=1||!ye(v,M=>zn(M)===t)||!sut(v[0]))return;const b=v[0].kind;if(!ye(v,M=>M.kind===b))return;const B=v;if(Oe(B,M=>!!M.typeParameters||Oe(M.parameters,z=>!!z.modifiers||!at(z.name))))return;const k=qi(B,M=>p.getSignatureFromDeclaration(M));if(S(k)!==S(v))return;const T=p.getReturnTypeOfSignature(k[0]);if(ye(k,M=>p.getReturnTypeOfSignature(M)===T))return B}var pme,B8e,w8e,ijt=o({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){rr(),s_(),pme="Convert overload list to single signature",B8e=to(F.Convert_overload_list_to_single_signature),w8e={name:pme,description:B8e,kind:"refactor.rewrite.function.overloadList"},s3(pme,{kinds:[w8e.kind],getEditsForAction:tjt,getAvailableActions:ejt})}});function njt(t){const{file:u,startPosition:s,triggerReason:d}=t,f=cut(u,s,d==="invoked");return f?sD(f)?t.preferences.provideRefactorNotApplicableReason?[{name:gme,description:T8e,actions:[{...oee,notApplicableReason:f.error},{...dK,notApplicableReason:f.error}]}]:_t:[{name:gme,description:T8e,actions:[f.addBraces?oee:dK]}]:_t}function ujt(t,u){const{file:s,startPosition:d}=t,f=cut(s,d);H.assert(f&&!sD(f),"Expected applicable refactor info");const{expression:p,returnStatement:E,func:v}=f;let b;if(u===oee.name){const k=q.createReturnStatement(p);b=q.createBlock([k],!0),cw(p,k,s,3,!0)}else if(u===dK.name&&E){const k=p||q.createVoidZero();b=AX(k)?q.createParenthesizedExpression(k):k,ZH(E,b,s,3,!1),cw(E,b,s,3,!1),OM(E,b,s,3,!1)}else H.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>{k.replaceNode(s,v.body,b)})}}function cut(t,u,s=!0,d){const f=Ca(t,u),p=Nm(f);if(!p)return{error:to(F.Could_not_find_a_containing_arrow_function)};if(!q0(p))return{error:to(F.Containing_function_is_not_an_arrow_function)};if(!(!Vm(p,f)||Vm(p.body,f)&&!s)){if(qv(oee.kind,d)&&Wt(p.body))return{func:p,addBraces:!0,expression:p.body};if(qv(dK.kind,d)&&po(p.body)&&p.body.statements.length===1){const E=Pn(p.body.statements);if(Op(E)){const v=E.expression&&ys(dB(E.expression,!1))?q.createParenthesizedExpression(E.expression):E.expression;return{func:p,addBraces:!1,expression:v,returnStatement:E}}}}}var gme,T8e,oee,dK,rjt=o({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){rr(),s_(),gme="Add or remove braces in an arrow function",T8e=to(F.Add_or_remove_braces_in_an_arrow_function),oee={name:"Add braces to arrow function",description:to(F.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},dK={name:"Remove braces from arrow function",description:to(F.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},s3(gme,{kinds:[dK.kind],getEditsForAction:ujt,getAvailableActions:njt})}}),ajt={},ojt=o({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){ijt(),rjt()}});function sjt(t){const{file:u,startPosition:s,program:d,kind:f}=t,p=hut(u,s,d);if(!p)return _t;const{selectedVariableDeclaration:E,func:v}=p,b=[],B=[];if(qv(fK.kind,f)){const k=E||q0(v)&&ua(v.parent)?void 0:to(F.Could_not_convert_to_named_function);k?B.push({...fK,notApplicableReason:k}):b.push(fK)}if(qv(hK.kind,f)){const k=!E&&q0(v)?void 0:to(F.Could_not_convert_to_anonymous_function);k?B.push({...hK,notApplicableReason:k}):b.push(hK)}if(qv(mK.kind,f)){const k=A0(v)?void 0:to(F.Could_not_convert_to_arrow_function);k?B.push({...mK,notApplicableReason:k}):b.push(mK)}return[{name:L8e,description:put,actions:b.length===0&&t.preferences.provideRefactorNotApplicableReason?B:b}]}function ljt(t,u){const{file:s,startPosition:d,program:f}=t,p=hut(s,d,f);if(!p)return;const{func:E}=p,v=[];switch(u){case hK.name:v.push(...fjt(t,E));break;case fK.name:const b=hjt(E);if(!b)return;v.push(...mjt(t,E,b));break;case mK.name:if(!A0(E))return;v.push(...pjt(t,E));break;default:return H.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:v}}function dut(t){let u=!1;return t.forEachChild(function s(d){if(rw(d)){u=!0;return}!mr(d)&&!ed(d)&&!A0(d)&&ao(d,s)}),u}function hut(t,u,s){const d=Ca(t,u),f=s.getTypeChecker(),p=djt(t,f,d.parent);if(p&&!dut(p.body)&&!f.containsArgumentsReference(p))return{selectedVariableDeclaration:!0,func:p};const E=Nm(d);if(E&&(A0(E)||q0(E))&&!Vm(E.body,d)&&!dut(E.body)&&!f.containsArgumentsReference(E))return A0(E)&&mut(t,f,E)?void 0:{selectedVariableDeclaration:!1,func:E}}function cjt(t){return ua(t)||Ad(t)&&t.declarations.length===1}function djt(t,u,s){if(!cjt(s))return;const f=(ua(s)?s:Pn(s.declarations)).initializer;if(f&&(q0(f)||A0(f)&&!mut(t,u,f)))return f}function fut(t){if(Wt(t)){const u=q.createReturnStatement(t),s=t.getSourceFile();return Pt(u,t),Kf(u),ZH(t,u,s,void 0,!0),q.createBlock([u],!0)}else return t}function hjt(t){const u=t.parent;if(!ua(u)||!qN(u))return;const s=u.parent,d=s.parent;if(!(!Ad(s)||!Jl(d)||!at(u.name)))return{variableDeclaration:u,variableDeclarationList:s,statement:d,name:u.name}}function fjt(t,u){const{file:s}=t,d=fut(u.body),f=q.createFunctionExpression(u.modifiers,u.asteriskToken,void 0,u.typeParameters,u.parameters,u.type,d);return iu.ChangeTracker.with(t,p=>p.replaceNode(s,u,f))}function mjt(t,u,s){const{file:d}=t,f=fut(u.body),{variableDeclaration:p,variableDeclarationList:E,statement:v,name:b}=s;Efe(v);const B=m2(p)&32|Eh(u),k=q.createModifiersFromModifierFlags(B),T=q.createFunctionDeclaration(S(k)?k:void 0,u.asteriskToken,b,u.typeParameters,u.parameters,u.type,f);return E.declarations.length===1?iu.ChangeTracker.with(t,M=>M.replaceNode(d,v,T)):iu.ChangeTracker.with(t,M=>{M.delete(d,p),M.insertNodeAfter(d,v,T)})}function pjt(t,u){const{file:s}=t,f=u.body.statements[0];let p;gjt(u.body,f)?(p=f.expression,Kf(p),Rk(f,p)):p=u.body;const E=q.createArrowFunction(u.modifiers,u.typeParameters,u.parameters,u.type,q.createToken(39),p);return iu.ChangeTracker.with(t,v=>v.replaceNode(s,u,E))}function gjt(t,u){return t.statements.length===1&&Op(u)&&!!u.expression}function mut(t,u,s){return!!s.name&&Z0.Core.isSymbolReferencedInFile(s.name,u,t)}var L8e,put,hK,fK,mK,Ejt=o({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){rr(),s_(),L8e="Convert arrow function or function expression",put=to(F.Convert_arrow_function_or_function_expression),hK={name:"Convert to anonymous function",description:to(F.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},fK={name:"Convert to named function",description:to(F.Convert_to_named_function),kind:"refactor.rewrite.function.named"},mK={name:"Convert to arrow function",description:to(F.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},s3(L8e,{kinds:[hK.kind,fK.kind,mK.kind],getEditsForAction:ljt,getAvailableActions:sjt})}}),_jt={},Djt=o({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){Ejt()}});function xjt(t){const{file:u,startPosition:s}=t;return gh(u)||!_ut(u,s,t.program.getTypeChecker())?_t:[{name:lee,description:z8e,actions:[I8e]}]}function vjt(t,u){H.assert(u===lee,"Unexpected action name");const{file:s,startPosition:d,program:f,cancellationToken:p,host:E}=t,v=_ut(s,d,f.getTypeChecker());if(!v||!p)return;const b=bjt(v,f,p);return b.valid?{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>Cjt(s,f,E,k,v,b))}:{edits:[]}}function Cjt(t,u,s,d,f,p){const E=p.signature,v=Vt(Cut(f,u,s),k=>ll(k));if(E){const k=Vt(Cut(E,u,s),T=>ll(T));B(E,k)}B(f,v);const b=pi(p.functionCalls,(k,T)=>nl(k.pos,T.pos));for(const k of b)if(k.arguments&&k.arguments.length){const T=ll(Njt(f,k.arguments),!0);d.replaceNodeRange(zn(k),Pn(k.arguments),Cr(k.arguments),T,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}function B(k,T){d.replaceNodeRangeWithNodes(t,Pn(k.parameters),Cr(k.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}}function bjt(t,u,s){const d=Mjt(t),f=hc(t)?Pjt(t):[],p=ri([...d,...f],Cx),E=u.getTypeChecker(),v=ju(p,T=>Z0.getReferenceEntriesForNode(-1,T,u,u.getSourceFiles(),s)),b=B(v);return ye(b.declarations,T=>kt(p,T))||(b.valid=!1),b;function B(T){const M={accessExpressions:[],typeUsages:[]},z={functionCalls:[],declarations:[],classReferences:M,valid:!0},j=Vt(d,k),J=Vt(f,k),K=hc(t),Y=Vt(d,oe=>N8e(oe,E));for(const oe of T){if(oe.kind===Z0.EntryKind.Span){z.valid=!1;continue}if(kt(Y,k(oe.node))){if(Ajt(oe.node.parent)){z.signature=oe.node.parent;continue}const ge=Eut(oe);if(ge){z.functionCalls.push(ge);continue}}const se=N8e(oe.node,E);if(se&&kt(Y,se)){const ge=P8e(oe);if(ge){z.declarations.push(ge);continue}}if(kt(j,k(oe.node))||wM(oe.node)){if(gut(oe))continue;const ae=P8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=Eut(oe);if(Ce){z.functionCalls.push(Ce);continue}}if(K&&kt(J,k(oe.node))){if(gut(oe))continue;const ae=P8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=yjt(oe);if(Ce){M.accessExpressions.push(Ce);continue}if(Wc(t.parent)){const ne=kjt(oe);if(ne){M.typeUsages.push(ne);continue}}}z.valid=!1}return z}function k(T){const M=E.getSymbolAtLocation(T);return M&&vSe(M,E)}}function N8e(t,u){const s=_K(t);if(s){const d=u.getContextualTypeForObjectLiteralElement(s),f=d==null?void 0:d.getSymbol();if(f&&!(Gl(f)&6))return f}}function gut(t){const u=t.node;if(bf(u.parent)||n_(u.parent)||E1(u.parent)||Jx(u.parent)||eh(u.parent)||tc(u.parent))return u}function P8e(t){if(Q1(t.node.parent))return t.node}function Eut(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 213:case 214:const d=ur(s,$E);if(d&&d.expression===u)return d;break;case 211:const f=ur(s,Iu);if(f&&f.parent&&f.name===u){const E=ur(f.parent,$E);if(E&&E.expression===f)return E}break;case 212:const p=ur(s,U0);if(p&&p.parent&&p.argumentExpression===u){const E=ur(p.parent,$E);if(E&&E.expression===p)return E}break}}}function yjt(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 211:const d=ur(s,Iu);if(d&&d.expression===u)return d;break;case 212:const f=ur(s,U0);if(f&&f.expression===u)return f;break}}}function kjt(t){const u=t.node;if(Pk(u)===2||Jj(u.parent))return u}function _ut(t,u,s){const d=LM(t,u),f=Ybe(d);if(!Fjt(d)&&f&&Sjt(f,s)&&Vm(f,d)&&!(f.body&&Vm(f.body,d)))return f}function Fjt(t){const u=Tn(t,z8);if(u){const s=Tn(u,d=>!z8(d));return!!s&&$0(s)}return!1}function Ajt(t){return n3(t)&&(xh(t.parent)||fm(t.parent))}function Sjt(t,u){var s;if(!Bjt(t.parameters,u))return!1;switch(t.kind){case 262:return Dut(t)&&see(t,u);case 174:if(ys(t.parent)){const d=N8e(t.name,u);return((s=d==null?void 0:d.declarations)==null?void 0:s.length)===1&&see(t,u)}return see(t,u);case 176:return Wc(t.parent)?Dut(t.parent)&&see(t,u):xut(t.parent.parent)&&see(t,u);case 218:case 219:return xut(t.parent)}return!1}function see(t,u){return!!t.body&&!u.isImplementationOfOverload(t)}function Dut(t){return t.name?!0:!!ow(t,90)}function Bjt(t,u){return Tjt(t)>=but&&ye(t,s=>wjt(s,u))}function wjt(t,u){if($_(t)){const s=u.getTypeAtLocation(t);if(!u.isArrayType(s)&&!u.isTupleType(s))return!1}return!t.modifiers&&at(t.name)}function xut(t){return ua(t)&&K8(t)&&at(t.name)&&!t.type}function M8e(t){return t.length>0&&rw(t[0].name)}function Tjt(t){return M8e(t)?t.length-1:t.length}function vut(t){return M8e(t)&&(t=q.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function Ljt(t,u){return at(u)&&J4(u)===t?q.createShorthandPropertyAssignment(t):q.createPropertyAssignment(t,u)}function Njt(t,u){const s=vut(t.parameters),d=$_(Cr(s)),f=d?u.slice(0,s.length-1):u,p=Vt(f,(v,b)=>{const B=Eme(s[b]),k=Ljt(B,v);return Kf(k.name),Jc(k)&&Kf(k.initializer),Rk(v,k),k});if(d&&u.length>=s.length){const v=u.slice(s.length-1),b=q.createPropertyAssignment(Eme(Cr(s)),q.createArrayLiteralExpression(v));p.push(b)}return q.createObjectLiteralExpression(p,!1)}function Cut(t,u,s){const d=u.getTypeChecker(),f=vut(t.parameters),p=Vt(f,k),E=q.createObjectBindingPattern(p),v=T(f);let b;ye(f,j)&&(b=q.createObjectLiteralExpression());const B=q.createParameterDeclaration(void 0,void 0,E,void 0,v,b);if(M8e(t.parameters)){const J=t.parameters[0],K=q.createParameterDeclaration(void 0,void 0,J.name,void 0,J.type);return Kf(K.name),Rk(J.name,K.name),J.type&&(Kf(K.type),Rk(J.type,K.type)),q.createNodeArray([K,B])}return q.createNodeArray([B]);function k(J){const K=q.createBindingElement(void 0,void 0,Eme(J),$_(J)&&j(J)?q.createArrayLiteralExpression():J.initializer);return Kf(K),J.initializer&&K.initializer&&Rk(J.initializer,K.initializer),K}function T(J){const K=Vt(J,M);return i_(q.createTypeLiteralNode(K),1)}function M(J){let K=J.type;!K&&(J.initializer||$_(J))&&(K=z(J));const Y=q.createPropertySignature(void 0,Eme(J),j(J)?q.createToken(58):J.questionToken,K);return Kf(Y),Rk(J.name,Y.name),J.type&&Y.type&&Rk(J.type,Y.type),Y}function z(J){const K=d.getTypeAtLocation(J);return VM(K,J,u,s)}function j(J){if($_(J)){const K=d.getTypeAtLocation(J);return!d.isTupleType(K)}return d.isOptionalParameter(J)}}function Eme(t){return J4(t.name)}function Pjt(t){switch(t.parent.kind){case 263:const u=t.parent;return u.name?[u.name]:[H.checkDefined(ow(u,90),"Nameless class declaration should be a default export")];case 231:const d=t.parent,f=t.parent.parent,p=d.name;return p?[p,f.name]:[f.name]}}function Mjt(t){switch(t.kind){case 262:return t.name?[t.name]:[H.checkDefined(ow(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=H.checkDefined(a0(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===231?[t.parent.parent.name,s]:[s];case 219:return[t.parent.name];case 218:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return H.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var lee,but,z8e,I8e,zjt=o({"src/services/refactors/convertParamsToDestructuredObject.ts"(){rr(),s_(),lee="Convert parameters to destructured object",but=1,z8e=to(F.Convert_parameters_to_destructured_object),I8e={name:lee,description:z8e,kind:"refactor.rewrite.parameters.toDestructured"},s3(lee,{kinds:[I8e.kind],getEditsForAction:vjt,getAvailableActions:xjt})}}),Ijt={},Rjt=o({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){zjt()}});function Ojt(t){const{file:u,startPosition:s}=t,d=yut(u,s),f=R8e(d),p=us(f),E={name:_me,description:Dme,actions:[]};return p&&t.triggerReason!=="invoked"?_t:Z_(f)&&(p||Xn(f)&&O8e(f).isValidConcatenation)?(E.actions.push(xme),[E]):t.preferences.provideRefactorNotApplicableReason?(E.actions.push({...xme,notApplicableReason:to(F.Can_only_convert_string_concatenations_and_string_literals)}),[E]):_t}function yut(t,u){const s=Ca(t,u),d=R8e(s);return!O8e(d).isValidConcatenation&&Cf(d.parent)&&Xn(d.parent.parent)?d.parent.parent:s}function jjt(t,u){const{file:s,startPosition:d}=t,f=yut(s,d);switch(u){case Dme:return{edits:Vjt(t,f)};default:return H.fail("invalid action")}}function Vjt(t,u){const s=R8e(u),d=t.file,f=Wjt(O8e(s),d),p=gv(d.text,s.end);if(p){const E=p[p.length-1],v={pos:p[0].pos,end:E.end};return iu.ChangeTracker.with(t,b=>{b.deleteRange(d,v),b.replaceNode(d,s,f)})}else return iu.ChangeTracker.with(t,E=>E.replaceNode(d,s,f))}function Hjt(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function R8e(t){return Tn(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(Xn(s.parent)&&Hjt(s.parent));default:return"quit"}})||t}function O8e(t){const u=E=>{if(!Xn(E))return{nodes:[E],operators:[],validOperators:!0,hasString:us(E)||T7(E)};const{nodes:v,operators:b,hasString:B,validOperators:k}=u(E.left);if(!(B||us(E.right)||lY(E.right)))return{nodes:[E],operators:[],hasString:!1,validOperators:!0};const T=E.operatorToken.kind===40,M=k&&T;return v.push(E.right),b.push(E.operatorToken),{nodes:v,operators:b,hasString:!0,validOperators:M}},{nodes:s,operators:d,validOperators:f,hasString:p}=u(t);return{nodes:s,operators:d,isValidConcatenation:f&&p}}function Kjt(t){return t.replace(/\\.|[$`]/g,u=>u[0]==="\\"?u:"\\"+u)}function kut(t){const u=vB(t)||qke(t)?-2:-1;return Hc(t).slice(1,u)}function Fut(t,u){const s=[];let d="",f="";for(;t{Aut(se);const ae=ge===M.templateSpans.length-1,Ce=se.literal.text+(ae?j:""),ne=kut(se.literal)+(ae?J:"");return q.createTemplateSpan(se.expression,Y&&ae?q.createTemplateTail(Ce,ne):q.createTemplateMiddle(Ce,ne))});B.push(...oe)}else{const oe=Y?q.createTemplateTail(j,J):q.createTemplateMiddle(j,J);f(K,oe),B.push(q.createTemplateSpan(M,oe))}}return q.createTemplateExpression(k,B)}function Aut(t){const u=t.getSourceFile();OM(t,t.expression,u,3,!1),ZH(t.expression,t.expression,u,3,!1)}function Gjt(t){return Cf(t)&&(Aut(t),t=t.expression),t}var _me,Dme,xme,Sut,But,Jjt=o({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){rr(),s_(),_me="Convert to template string",Dme=to(F.Convert_to_template_string),xme={name:_me,description:Dme,kind:"refactor.rewrite.string"},s3(_me,{kinds:[xme.kind],getEditsForAction:jjt,getAvailableActions:Ojt}),Sut=(t,u)=>(s,d)=>{s(d,f)=>{for(;d.length>0;){const p=d.shift();OM(t[p],f,u,3,!1),s(p,f)}}}}),$jt={},Ujt=o({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){Jjt()}});function qjt(t){const u=wut(t,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:cee,description:bme,actions:[{...yme,notApplicableReason:u.error}]}]:_t:[{name:cee,description:bme,actions:[yme]}]:_t}function Zjt(t,u){const s=wut(t);return H.assert(s&&!sD(s),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(t,f=>uVt(t.file,t.program.getTypeChecker(),f,s)),renameFilename:void 0,renameLocation:void 0}}function vme(t){return Xn(t)||SB(t)}function Yjt(t){return Od(t)||Op(t)||Jl(t)}function Cme(t){return vme(t)||Yjt(t)}function wut(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=f.length===0;if(p&&!u)return;const E=Ca(s,f.start),v=cX(s,f.start+f.length),b=Vc(E.pos,v&&v.end>=E.pos?v.getEnd():E.getEnd()),B=p?iVt(E):tVt(E,b),k=B&&Cme(B)?nVt(B):void 0;if(!k)return{error:to(F.Could_not_find_convertible_access_expression)};const T=d.getTypeChecker();return SB(k)?Qjt(k,T):Xjt(k)}function Qjt(t,u){const s=t.condition,d=V8e(t.whenTrue);if(!d||u.isNullableType(u.getTypeAtLocation(d)))return{error:to(F.Could_not_find_convertible_access_expression)};if((Iu(s)||at(s))&&j8e(s,d.expression))return{finalExpression:d,occurrences:[s],expression:t};if(Xn(s)){const f=Tut(d.expression,s);return f?{finalExpression:d,occurrences:f,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}}function Xjt(t){if(t.operatorToken.kind!==56)return{error:to(F.Can_only_convert_logical_AND_access_chains)};const u=V8e(t.right);if(!u)return{error:to(F.Could_not_find_convertible_access_expression)};const s=Tut(u.expression,t.left);return s?{finalExpression:u,occurrences:s,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}function Tut(t,u){const s=[];for(;Xn(u)&&u.operatorToken.kind===56;){const f=j8e(l0(t),l0(u.right));if(!f)break;s.push(f),t=f,u=u.left}const d=j8e(t,u);return d&&s.push(d),s.length>0?s:void 0}function j8e(t,u){if(!(!at(u)&&!Iu(u)&&!U0(u)))return eVt(t,u)?u:void 0}function eVt(t,u){for(;(Mo(t)||Iu(t)||U0(t))&&pK(t)!==pK(u);)t=t.expression;for(;Iu(t)&&Iu(u)||U0(t)&&U0(u);){if(pK(t)!==pK(u))return!1;t=t.expression,u=u.expression}return at(t)&&at(u)&&t.getText()===u.getText()}function pK(t){if(at(t)||Pm(t))return t.getText();if(Iu(t))return pK(t.name);if(U0(t))return pK(t.argumentExpression)}function tVt(t,u){for(;t.parent;){if(Cme(t)&&u.length!==0&&t.end>=u.start+u.length)return t;t=t.parent}}function iVt(t){for(;t.parent;){if(Cme(t)&&!Cme(t.parent))return t;t=t.parent}}function nVt(t){if(vme(t))return t;if(Jl(t)){const u=eB(t),s=u==null?void 0:u.initializer;return s&&vme(s)?s:void 0}return t.expression&&vme(t.expression)?t.expression:void 0}function V8e(t){if(t=l0(t),Xn(t))return V8e(t.left);if((Iu(t)||U0(t)||Mo(t))&&!Y1(t))return t}function Lut(t,u,s){if(Iu(u)||U0(u)||Mo(u)){const d=Lut(t,u.expression,s),f=s.length>0?s[s.length-1]:void 0,p=(f==null?void 0:f.getText())===u.expression.getText();if(p&&s.pop(),Mo(u))return p?q.createCallChain(d,q.createToken(29),u.typeArguments,u.arguments):q.createCallChain(d,u.questionDotToken,u.typeArguments,u.arguments);if(Iu(u))return p?q.createPropertyAccessChain(d,q.createToken(29),u.name):q.createPropertyAccessChain(d,u.questionDotToken,u.name);if(U0(u))return p?q.createElementAccessChain(d,q.createToken(29),u.argumentExpression):q.createElementAccessChain(d,u.questionDotToken,u.argumentExpression)}return u}function uVt(t,u,s,d,f){const{finalExpression:p,occurrences:E,expression:v}=d,b=E[E.length-1],B=Lut(u,p,E);B&&(Iu(B)||U0(B)||Mo(B))&&(Xn(v)?s.replaceNodeRange(t,b,p,B):SB(v)&&s.replaceNode(t,v,q.createBinaryExpression(B,q.createToken(61),v.whenFalse)))}var cee,bme,yme,rVt=o({"src/services/refactors/convertToOptionalChainExpression.ts"(){rr(),s_(),cee="Convert to optional chain expression",bme=to(F.Convert_to_optional_chain_expression),yme={name:cee,description:bme,kind:"refactor.rewrite.expression.optionalChain"},s3(cee,{kinds:[yme.kind],getEditsForAction:Zjt,getAvailableActions:qjt})}}),aVt={},oVt=o({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){rVt()}});function Nut(t){const u=t.kind,s=H8e(t.file,u9(t),t.triggerReason==="invoked"),d=s.targetRange;if(d===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return _t;const j=[];return qv(pw.kind,u)&&j.push({name:fw,description:pw.description,actions:[{...pw,notApplicableReason:z(s.errors)}]}),qv(mw.kind,u)&&j.push({name:fw,description:mw.description,actions:[{...mw,notApplicableReason:z(s.errors)}]}),j}const f=fVt(d,t);if(f===void 0)return _t;const p=[],E=new Map;let v;const b=[],B=new Map;let k,T=0;for(const{functionExtraction:j,constantExtraction:J}of f){if(qv(pw.kind,u)){const K=j.description;j.errors.length===0?E.has(K)||(E.set(K,!0),p.push({description:K,name:`function_scope_${T}`,kind:pw.kind})):v||(v={description:K,name:`function_scope_${T}`,notApplicableReason:z(j.errors),kind:pw.kind})}if(qv(mw.kind,u)){const K=J.description;J.errors.length===0?B.has(K)||(B.set(K,!0),b.push({description:K,name:`constant_scope_${T}`,kind:mw.kind})):k||(k={description:K,name:`constant_scope_${T}`,notApplicableReason:z(J.errors),kind:mw.kind})}T++}const M=[];return p.length?M.push({name:fw,description:to(F.Extract_function),actions:p}):t.preferences.provideRefactorNotApplicableReason&&v&&M.push({name:fw,description:to(F.Extract_function),actions:[v]}),b.length?M.push({name:fw,description:to(F.Extract_constant),actions:b}):t.preferences.provideRefactorNotApplicableReason&&k&&M.push({name:fw,description:to(F.Extract_constant),actions:[k]}),M.length?M:_t;function z(j){let J=j[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Put(t,u){const d=H8e(t.file,u9(t)).targetRange,f=/^function_scope_(\d+)$/.exec(u);if(f){const E=+f[1];return H.assert(isFinite(E),"Expected to parse a finite number from the function scope index"),dVt(d,t,E)}const p=/^constant_scope_(\d+)$/.exec(u);if(p){const E=+p[1];return H.assert(isFinite(E),"Expected to parse a finite number from the constant scope index"),hVt(d,t,E)}H.fail("Unrecognized action name")}function H8e(t,u,s=!0){const{length:d}=u;if(d===0&&!s)return{errors:[Rd(t,u.start,d,_1.cannotExtractEmpty)]};const f=d===0&&s,p=Y9e(t,u.start),E=cX(t,Ec(u)),v=p&&E&&s?sVt(p,E,t):u,b=f?NVt(p):JH(p,t,v),B=f?b:JH(E,t,v);let k=0,T;if(!b||!B)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};if(b.flags&16777216)return{errors:[Rd(t,u.start,d,_1.cannotExtractJSDoc)]};if(b.parent!==B.parent)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};if(b!==B){if(!zut(b.parent))return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};const oe=[];for(const se of b.parent.statements){if(se===b||oe.length){const ge=Y(se);if(ge)return{errors:ge};oe.push(se)}if(se===B)break}return oe.length?{targetRange:{range:oe,facts:k,thisNode:T}}:{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]}}if(Op(b)&&!b.expression)return{errors:[Rd(t,u.start,d,_1.cannotExtractRange)]};const M=j(b),z=J(M)||Y(M);if(z)return{errors:z};return{targetRange:{range:lVt(M),facts:k,thisNode:T}};function j(oe){if(Op(oe)){if(oe.expression)return oe.expression}else if(Jl(oe)||Ad(oe)){const se=Jl(oe)?oe.declarationList.declarations:oe.declarations;let ge=0,ae;for(const Ce of se)Ce.initializer&&(ge++,ae=Ce.initializer);if(ge===1)return ae}else if(ua(oe)&&oe.initializer)return oe.initializer;return oe}function J(oe){if(at(Od(oe)?oe.expression:oe))return[Su(oe,_1.cannotExtractIdentifier)]}function K(oe,se){let ge=oe;for(;ge!==se;){if(ge.kind===172){No(ge)&&(k|=32);break}else if(ge.kind===169){Nm(ge).kind===176&&(k|=32);break}else ge.kind===174&&No(ge)&&(k|=32);ge=ge.parent}}function Y(oe){let se;if((Se=>{Se[Se.None=0]="None",Se[Se.Break=1]="Break",Se[Se.Continue=2]="Continue",Se[Se.Return=4]="Return"})(se||(se={})),H.assert(oe.pos<=oe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),H.assert(!pg(oe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!na(oe)&&!(Z_(oe)&&Mut(oe))&&!$8e(oe))return[Su(oe,_1.statementOrExpressionExpected)];if(oe.flags&33554432)return[Su(oe,_1.cannotExtractAmbientBlock)];const ge=Yd(oe);ge&&K(oe,ge);let ae,Ce=4,ne;if(ve(oe),k&8){const Se=tf(oe,!1,!1);(Se.kind===262||Se.kind===174&&Se.parent.kind===210||Se.kind===218)&&(k|=16)}return ae;function ve(Se){if(ae)return!0;if(Q1(Se)){const pe=Se.kind===260?Se.parent.parent:Se;if(Yu(pe,32))return(ae||(ae=[])).push(Su(Se,_1.cannotExtractExportedEntity)),!0}switch(Se.kind){case 272:return(ae||(ae=[])).push(Su(Se,_1.cannotExtractImport)),!0;case 277:return(ae||(ae=[])).push(Su(Se,_1.cannotExtractExportedEntity)),!0;case 108:if(Se.parent.kind===213){const pe=Yd(Se);if(pe===void 0||pe.pos=u.start+u.length)return(ae||(ae=[])).push(Su(Se,_1.cannotExtractSuper)),!0}else k|=8,T=Se;break;case 219:ao(Se,function pe(fe){if(rw(fe))k|=8,T=Se;else{if(mr(fe)||Co(fe)&&!q0(fe))return!1;ao(fe,pe)}});case 263:case 262:la(Se.parent)&&Se.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(Su(Se,_1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ne=Ce;switch(Se.kind){case 245:Ce&=-5;break;case 258:Ce=0;break;case 241:Se.parent&&Se.parent.kind===258&&Se.parent.finallyBlock===Se&&(Ce=4);break;case 297:case 296:Ce|=1;break;default:Tx(Se,!1)&&(Ce|=3);break}switch(Se.kind){case 197:case 110:k|=8,T=Se;break;case 256:{const pe=Se.label;(ne||(ne=[])).push(pe.escapedText),ao(Se,ve),ne.pop();break}case 252:case 251:{const pe=Se.label;pe?kt(ne,pe.escapedText)||(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Ce&(Se.kind===252?1:2)||(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:Ce&4?k|=1:(ae||(ae=[])).push(Su(Se,_1.cannotExtractRangeContainingConditionalReturnStatement));break;default:ao(Se,ve);break}Ce=Ne}}}function sVt(t,u,s){const d=t.getStart(s);let f=u.getEnd();return s.text.charCodeAt(f)===59&&f++,{start:d,length:f-d}}function lVt(t){if(na(t))return[t];if(Z_(t))return Od(t.parent)?[t.parent]:t;if($8e(t))return t}function K8e(t){return q0(t)?t0e(t.body):$0(t)||la(t)||rE(t)||mr(t)}function cVt(t){let u=D5(t.range)?Pn(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const d=Yd(u);if(d){const f=Tn(u,$0);return f?[f,d]:[d]}}const s=[];for(;;)if(u=u.parent,u.kind===169&&(u=Tn(u,d=>$0(d)).parent),K8e(u)&&(s.push(u),u.kind===312))return s}function dVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,functionErrorsPerScope:E,exposedVariableDeclarations:v}}=W8e(t,u);return H.assert(!E[s].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),DVt(f,d[s],p[s],v,t,u)}function hVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,constantErrorsPerScope:E,exposedVariableDeclarations:v}}=W8e(t,u);H.assert(!E[s].length,"The extraction went missing? How?"),H.assert(v.length===0,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested();const b=Wt(f)?f:f.statements[0].expression;return xVt(b,d[s],p[s],t.facts,u)}function fVt(t,u){const{scopes:s,readsAndWrites:{functionErrorsPerScope:d,constantErrorsPerScope:f}}=W8e(t,u);return s.map((E,v)=>{const b=mVt(E),B=pVt(E),k=$0(E)?gVt(E):mr(E)?EVt(E):_Vt(E);let T,M;return k===1?(T=e3(to(F.Extract_to_0_in_1_scope),[b,"global"]),M=e3(to(F.Extract_to_0_in_1_scope),[B,"global"])):k===0?(T=e3(to(F.Extract_to_0_in_1_scope),[b,"module"]),M=e3(to(F.Extract_to_0_in_1_scope),[B,"module"])):(T=e3(to(F.Extract_to_0_in_1),[b,k]),M=e3(to(F.Extract_to_0_in_1),[B,k])),v===0&&!mr(E)&&(M=e3(to(F.Extract_to_0_in_enclosing_scope),[B])),{functionExtraction:{description:T,errors:d[v]},constantExtraction:{description:M,errors:f[v]}}})}function W8e(t,u){const{file:s}=u,d=cVt(t),f=TVt(t,s),p=LVt(t,d,f,s,u.program.getTypeChecker(),u.cancellationToken);return{scopes:d,readsAndWrites:p}}function mVt(t){return $0(t)?"inner function":mr(t)?"method":"function"}function pVt(t){return mr(t)?"readonly field":"constant"}function gVt(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:KX;case 219:return"arrow function";case 174:return`method '${t.name.getText()}'`;case 177:return`'get ${t.name.getText()}'`;case 178:return`'set ${t.name.getText()}'`;default:H.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function EVt(t){return t.kind===263?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function _Vt(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function DVt(t,u,{usages:s,typeParameterUsages:d,substitutions:f},p,E,v){const b=v.program.getTypeChecker(),B=Os(v.program.getCompilerOptions()),k=z1.createImportAdder(v.file,v.program,v.preferences,v.host),T=u.getSourceFile(),M=Ok(mr(u)?"newMethod":"newFunction",T),z=Qn(u),j=q.createIdentifier(M);let J;const K=[],Y=[];let oe;s.forEach((Ve,We)=>{let Gt;if(!z){let Ie=b.getTypeOfSymbolAtLocation(Ve.symbol,Ve.node);Ie=b.getBaseTypeOfLiteralType(Ie),Gt=z1.typeToAutoImportableTypeNode(b,k,Ie,u,B,1)}const Yt=q.createParameterDeclaration(void 0,void 0,We,void 0,Gt);K.push(Yt),Ve.usage===2&&(oe||(oe=[])).push(Ve),Y.push(q.createIdentifier(We))});const ge=ga(d.values(),Ve=>({type:Ve,declaration:CVt(Ve,v.startPosition)})).sort(bVt),ae=ge.length===0?void 0:qi(ge,({declaration:Ve})=>Ve),Ce=ae!==void 0?ae.map(Ve=>q.createTypeReferenceNode(Ve.name,void 0)):void 0;if(Wt(t)&&!z){const Ve=b.getContextualType(t);J=b.typeToTypeNode(Ve,u,1)}const{body:ne,returnValueProperty:ve}=kVt(t,p,oe,f,!!(E.facts&1));Kf(ne);let Se;const Ne=!!(E.facts&16);if(mr(u)){const Ve=z?[]:[q.createModifier(123)];E.facts&32&&Ve.push(q.createModifier(126)),E.facts&4&&Ve.push(q.createModifier(134)),Se=q.createMethodDeclaration(Ve.length?Ve:void 0,E.facts&2?q.createToken(42):void 0,j,void 0,ae,K,J,ne)}else Ne&&K.unshift(q.createParameterDeclaration(void 0,void 0,"this",void 0,b.typeToTypeNode(b.getTypeAtLocation(E.thisNode),u,1),void 0)),Se=q.createFunctionDeclaration(E.facts&4?[q.createToken(134)]:void 0,E.facts&2?q.createToken(42):void 0,j,ae,K,J,ne);const pe=iu.ChangeTracker.fromContext(v),fe=(D5(E.range)?Cr(E.range):E.range).end,xe=SVt(fe,u);xe?pe.insertNodeBefore(v.file,xe,Se,!0):pe.insertNodeAtEndOfScope(v.file,u,Se),k.writeFixes(pe);const Be=[],Ge=yVt(u,E,M);Ne&&Y.unshift(q.createIdentifier("this"));let Ae=q.createCallExpression(Ne?q.createPropertyAccessExpression(Ge,"call"):Ge,Ce,Y);if(E.facts&2&&(Ae=q.createYieldExpression(q.createToken(42),Ae)),E.facts&4&&(Ae=q.createAwaitExpression(Ae)),J8e(t)&&(Ae=q.createJsxExpression(void 0,Ae)),p.length&&!oe)if(H.assert(!ve,"Expected no returnValueProperty"),H.assert(!(E.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),p.length===1){const Ve=p[0];Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(Ve.name),void 0,ll(Ve.type),Ae)],Ve.parent.flags)))}else{const Ve=[],We=[];let Gt=p[0].parent.flags,Yt=!1;for(const st of p){Ve.push(q.createBindingElement(void 0,void 0,ll(st.name)));const St=b.typeToTypeNode(b.getBaseTypeOfLiteralType(b.getTypeAtLocation(st)),u,1);We.push(q.createPropertySignature(void 0,st.symbol.name,void 0,St)),Yt=Yt||st.type!==void 0,Gt=Gt&st.parent.flags}const Ie=Yt?q.createTypeLiteralNode(We):void 0;Ie&&Zn(Ie,1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(q.createObjectBindingPattern(Ve),void 0,Ie,Ae)],Gt)))}else if(p.length||oe){if(p.length)for(const We of p){let Gt=We.parent.flags;Gt&2&&(Gt=Gt&-3|1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(We.symbol.name,void 0,Ye(We.type))],Gt)))}ve&&Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ve,void 0,Ye(J))],1)));const Ve=G8e(p,oe);ve&&Ve.unshift(q.createShorthandPropertyAssignment(ve)),Ve.length===1?(H.assert(!ve,"Shouldn't have returnValueProperty here"),Be.push(q.createExpressionStatement(q.createAssignment(Ve[0].name,Ae))),E.facts&1&&Be.push(q.createReturnStatement())):(Be.push(q.createExpressionStatement(q.createAssignment(q.createObjectLiteralExpression(Ve),Ae))),ve&&Be.push(q.createReturnStatement(q.createIdentifier(ve))))}else E.facts&1?Be.push(q.createReturnStatement(Ae)):D5(E.range)?Be.push(q.createExpressionStatement(Ae)):Be.push(Ae);D5(E.range)?pe.replaceNodeRangeWithNodes(v.file,Pn(E.range),Cr(E.range),Be):pe.replaceNodeWithNodes(v.file,E.range,Be);const De=pe.getChanges(),Je=(D5(E.range)?Pn(E.range):E.range).getSourceFile().fileName,ft=qH(De,Je,M,!1);return{renameFilename:Je,renameLocation:ft,edits:De};function Ye(Ve){if(Ve===void 0)return;const We=ll(Ve);let Gt=We;for(;M7(Gt);)Gt=Gt.type;return Pv(Gt)&&Le(Gt.types,Yt=>Yt.kind===157)?We:q.createUnionTypeNode([We,q.createKeywordTypeNode(157)])}}function xVt(t,u,{substitutions:s},d,f){const p=f.program.getTypeChecker(),E=u.getSourceFile(),v=Iu(t)&&!mr(u)&&!p.resolveName(t.name.text,t,111551,!1)&&!ea(t.name)&&!Dv(t.name)?t.name.text:Ok(mr(u)?"newProperty":"newLocal",E),b=Qn(u);let B=b||!p.isContextSensitive(t)?void 0:p.typeToTypeNode(p.getContextualType(t),u,1),k=FVt(l0(t),s);({variableType:B,initializer:k}=J(B,k)),Kf(k);const T=iu.ChangeTracker.fromContext(f);if(mr(u)){H.assert(!b,"Cannot extract to a JS class");const K=[];K.push(q.createModifier(123)),d&32&&K.push(q.createModifier(126)),K.push(q.createModifier(148));const Y=q.createPropertyDeclaration(K,v,void 0,B,k);let oe=q.createPropertyAccessExpression(d&32?q.createIdentifier(u.name.getText()):q.createThis(),q.createIdentifier(v));J8e(t)&&(oe=q.createJsxExpression(void 0,oe));const se=t.pos,ge=BVt(se,u);T.insertNodeBefore(f.file,ge,Y,!0),T.replaceNode(f.file,t,oe)}else{const K=q.createVariableDeclaration(v,void 0,B,k),Y=vVt(t,u);if(Y){T.insertNodeBefore(f.file,Y,K);const oe=q.createIdentifier(v);T.replaceNode(f.file,t,oe)}else if(t.parent.kind===244&&u===Tn(t,K8e)){const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2));T.replaceNode(f.file,t.parent,oe)}else{const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2)),se=wVt(t,u);if(se.pos===0?T.insertNodeAtTopOfFile(f.file,oe,!1):T.insertNodeBefore(f.file,se,oe,!1),t.parent.kind===244)T.delete(f.file,t.parent);else{let ge=q.createIdentifier(v);J8e(t)&&(ge=q.createJsxExpression(void 0,ge)),T.replaceNode(f.file,t,ge)}}}const M=T.getChanges(),z=t.getSourceFile().fileName,j=qH(M,z,v,!0);return{renameFilename:z,renameLocation:j,edits:M};function J(K,Y){if(K===void 0)return{variableType:K,initializer:Y};if(!A0(Y)&&!q0(Y)||Y.typeParameters)return{variableType:K,initializer:Y};const oe=p.getTypeAtLocation(t),se=Aa(p.getSignaturesOfType(oe,0));if(!se)return{variableType:K,initializer:Y};if(se.getTypeParameters())return{variableType:K,initializer:Y};const ge=[];let ae=!1;for(const Ce of Y.parameters)if(Ce.type)ge.push(Ce);else{const ne=p.getTypeAtLocation(Ce);ne===p.getAnyType()&&(ae=!0),ge.push(q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,Ce.questionToken,Ce.type||p.typeToTypeNode(ne,u,1),Ce.initializer))}if(ae)return{variableType:K,initializer:Y};if(K=void 0,q0(Y))Y=q.updateArrowFunction(Y,Hp(t)?p2(t):void 0,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.equalsGreaterThanToken,Y.body);else{if(se&&se.thisParameter){const Ce=Ki(ge);if(!Ce||at(Ce.name)&&Ce.name.escapedText!=="this"){const ne=p.getTypeOfSymbolAtLocation(se.thisParameter,t);ge.splice(0,0,q.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(ne,u,1)))}}Y=q.updateFunctionExpression(Y,Hp(t)?p2(t):void 0,Y.asteriskToken,Y.name,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.body)}return{variableType:K,initializer:Y}}}function vVt(t,u){let s;for(;t!==void 0&&t!==u;){if(ua(t)&&t.initializer===s&&Ad(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function CVt(t,u){let s;const d=t.symbol;if(d&&d.declarations)for(const f of d.declarations)(s===void 0||f.pos0;if(po(t)&&!p&&d.size===0)return{body:q.createBlock(t.statements,!0),returnValueProperty:void 0};let E,v=!1;const b=q.createNodeArray(po(t)?t.statements.slice(0):[na(t)?t:q.createReturnStatement(l0(t))]);if(p||d.size){const k=kn(b,B,na).slice();if(p&&!f&&na(t)){const T=G8e(u,s);T.length===1?k.push(q.createReturnStatement(T[0].name)):k.push(q.createReturnStatement(q.createObjectLiteralExpression(T)))}return{body:q.createBlock(k,!0),returnValueProperty:E}}else return{body:q.createBlock(b,!0),returnValueProperty:void 0};function B(k){if(!v&&Op(k)&&p){const T=G8e(u,s);return k.expression&&(E||(E="__return"),T.unshift(q.createPropertyAssignment(E,yt(k.expression,B,Wt)))),T.length===1?q.createReturnStatement(T[0].name):q.createReturnStatement(q.createObjectLiteralExpression(T))}else{const T=v;v=v||$0(k)||mr(k);const M=d.get($s(k).toString()),z=M?ll(M):rn(k,B,Dg);return v=T,z}}}function FVt(t,u){return u.size?s(t):t;function s(d){const f=u.get($s(d).toString());return f?ll(f):rn(d,s,Dg)}}function AVt(t){if($0(t)){const u=t.body;if(po(u))return u.statements}else{if(rE(t)||la(t))return t.statements;if(mr(t))return t.members}return _t}function SVt(t,u){return Le(AVt(u),s=>s.pos>=t&&$0(s)&&!hc(s))}function BVt(t,u){const s=u.members;H.assert(s.length>0,"Found no members");let d,f=!0;for(const p of s){if(p.pos>t)return d||s[0];if(f&&!ko(p)){if(d!==void 0)return p;f=!1}d=p}return d===void 0?H.fail():d}function wVt(t,u){H.assert(!mr(u));let s;for(let d=t;d!==u;d=d.parent)K8e(d)&&(s=d);for(let d=(s||t).parent;;d=d.parent){if(zut(d)){let f;for(const p of d.statements){if(p.pos>t.pos)break;f=p}return!f&&BB(d)?(H.assert(BV(d.parent.parent),"Grandparent isn't a switch statement"),d.parent.parent):H.checkDefined(f,"prevStatement failed to get set")}H.assert(d!==u,"Didn't encounter a block-like before encountering scope")}}function G8e(t,u){const s=Vt(t,f=>q.createShorthandPropertyAssignment(f.symbol.name)),d=Vt(u,f=>q.createShorthandPropertyAssignment(f.symbol.name));return s===void 0?d:d===void 0?s:s.concat(d)}function D5(t){return Ha(t)}function TVt(t,u){return D5(t.range)?{pos:Pn(t.range).getStart(u),end:Cr(t.range).getEnd()}:t.range}function LVt(t,u,s,d,f,p){const E=new Map,v=[],b=[],B=[],k=[],T=[],M=new Map,z=[];let j;const J=D5(t.range)?t.range.length===1&&Od(t.range[0])?t.range[0].expression:void 0:t.range;let K;if(J===void 0){const xe=t.range,Be=Pn(xe).getStart(),Ge=Cr(xe).end;K=Rd(d,Be,Ge-Be,_1.expressionExpected)}else f.getTypeAtLocation(J).flags&147456&&(K=Su(J,_1.uselessConstantType));for(const xe of u){v.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),b.push(new Map),B.push([]);const Be=[];K&&Be.push(K),mr(xe)&&Qn(xe)&&Be.push(Su(xe,_1.cannotExtractToJSClass)),q0(xe)&&!po(xe.body)&&Be.push(Su(xe,_1.cannotExtractToExpressionArrowFunction)),k.push(Be)}const Y=new Map,oe=D5(t.range)?q.createBlock(t.range):t.range,se=D5(t.range)?Pn(t.range):t.range,ge=ae(se);if(ne(oe),ge&&!D5(t.range)&&!oE(t.range)){const xe=f.getContextualType(t.range);Ce(xe)}if(E.size>0){const xe=new Map;let Be=0;for(let Ge=se;Ge!==void 0&&Be{v[Be].typeParameterUsages.set(De,Ae)}),Be++),x0e(Ge))for(const Ae of Sx(Ge)){const De=f.getTypeAtLocation(Ae);E.has(De.id.toString())&&xe.set(De.id.toString(),De)}H.assert(Be===u.length,"Should have iterated all scopes")}if(T.length){const xe=D0e(u[0],u[0].parent)?u[0]:YE(u[0]);ao(xe,Ne)}for(let xe=0;xe0&&(Be.usages.size>0||Be.typeParameterUsages.size>0)){const De=D5(t.range)?t.range[0]:t.range;k[xe].push(Su(De,_1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&mr(u[xe])&&B[xe].push(Su(t.thisNode,_1.cannotExtractFunctionsContainingThisToMethod));let Ge=!1,Ae;if(v[xe].usages.forEach(De=>{De.usage===2&&(Ge=!0,De.symbol.flags&106500&&De.symbol.valueDeclaration&&Rf(De.symbol.valueDeclaration,8)&&(Ae=De.symbol.valueDeclaration))}),H.assert(D5(t.range)||z.length===0,"No variable declarations expected if something was extracted"),Ge&&!D5(t.range)){const De=Su(t.range,_1.cannotWriteInExpression);B[xe].push(De),k[xe].push(De)}else if(Ae&&xe>0){const De=Su(Ae,_1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);B[xe].push(De),k[xe].push(De)}else if(j){const De=Su(j,_1.cannotExtractExportedEntity);B[xe].push(De),k[xe].push(De)}}return{target:oe,usagesPerScope:v,functionErrorsPerScope:B,constantErrorsPerScope:k,exposedVariableDeclarations:z};function ae(xe){return!!Tn(xe,Be=>x0e(Be)&&Sx(Be).length!==0)}function Ce(xe){const Be=f.getSymbolWalker(()=>(p.throwIfCancellationRequested(),!0)),{visitedTypes:Ge}=Be.walkType(xe);for(const Ae of Ge)Ae.isTypeParameter()&&E.set(Ae.id.toString(),Ae)}function ne(xe,Be=1){if(ge){const Ge=f.getTypeAtLocation(xe);Ce(Ge)}if(Q1(xe)&&xe.symbol&&T.push(xe),ld(xe))ne(xe.left,2),ne(xe.right);else if(sbe(xe))ne(xe.operand,2);else if(Iu(xe)||U0(xe))ao(xe,ne);else if(at(xe)){if(!xe.parent||vf(xe.parent)&&xe!==xe.parent.left||Iu(xe.parent)&&xe!==xe.parent.expression)return;ve(xe,Be,q_(xe))}else ao(xe,ne)}function ve(xe,Be,Ge){const Ae=Se(xe,Be,Ge);if(Ae)for(let De=0;De=Be)return De;if(Y.set(De,Be),Ke){for(const Ye of v)Ye.usages.get(xe.text)&&Ye.usages.set(xe.text,{usage:Be,symbol:Ae,node:xe});return De}const Je=Ae.getDeclarations(),ft=Je&&Le(Je,Ye=>Ye.getSourceFile()===d);if(ft&&!IH(s,ft.getStart(),ft.end)){if(t.facts&2&&Be===2){const Ye=Su(xe,_1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const Ve of B)Ve.push(Ye);for(const Ve of k)Ve.push(Ye)}for(let Ye=0;YeAe.symbol===Be);if(Ge)if(ua(Ge)){const Ae=Ge.symbol.id.toString();M.has(Ae)||(z.push(Ge),M.set(Ae,!0))}else j=j||Ge}ao(xe,Ne)}function pe(xe){return xe.parent&&pm(xe.parent)&&xe.parent.name===xe?f.getShorthandAssignmentValueSymbol(xe.parent):f.getSymbolAtLocation(xe)}function fe(xe,Be,Ge){if(!xe)return;const Ae=xe.getDeclarations();if(Ae&&Ae.some(Ke=>Ke.parent===Be))return q.createIdentifier(xe.name);const De=fe(xe.parent,Be,Ge);if(De!==void 0)return Ge?q.createQualifiedName(De,q.createIdentifier(xe.name)):q.createPropertyAccessExpression(De,xe.name)}}function NVt(t){return Tn(t,u=>u.parent&&Mut(u)&&!Xn(u.parent))}function Mut(t){const{parent:u}=t;switch(u.kind){case 306:return!1}switch(t.kind){case 11:return u.kind!==272&&u.kind!==276;case 230:case 206:case 208:return!1;case 80:return u.kind!==208&&u.kind!==276&&u.kind!==281}return!0}function zut(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function J8e(t){return $8e(t)||(r3(t)||bk(t)||K2(t))&&(r3(t.parent)||K2(t.parent))}function $8e(t){return us(t)&&t.parent&&oE(t.parent)}var fw,mw,pw,_1,U8e,PVt=o({"src/services/refactors/extractSymbol.ts"(){rr(),s_(),fw="Extract Symbol",mw={name:"Extract Constant",description:to(F.Extract_constant),kind:"refactor.extract.constant"},pw={name:"Extract Function",description:to(F.Extract_function),kind:"refactor.extract.function"},s3(fw,{kinds:[mw.kind,pw.kind],getEditsForAction:Put,getAvailableActions:Nut}),(t=>{function u(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=u("Cannot extract range."),t.cannotExtractImport=u("Cannot extract import statement."),t.cannotExtractSuper=u("Cannot extract super call."),t.cannotExtractJSDoc=u("Cannot extract JSDoc."),t.cannotExtractEmpty=u("Cannot extract empty range."),t.expressionExpected=u("expression expected."),t.uselessConstantType=u("No reason to extract constant of type."),t.statementOrExpressionExpected=u("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=u("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=u("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=u("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=u("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=u("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=u("Function will not visible in the new scope."),t.cannotExtractIdentifier=u("Select more than a single identifier."),t.cannotExtractExportedEntity=u("Cannot extract exported declaration"),t.cannotWriteInExpression=u("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=u("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=u("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=u("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=u("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=u("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=u("Cannot extract functions containing this to method")})(_1||(_1={})),U8e=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(U8e||{})}}),Iut={};h(Iut,{Messages:()=>_1,RangeFacts:()=>U8e,getRangeToExtract:()=>H8e,getRefactorActionsToExtractSymbol:()=>Nut,getRefactorEditsToExtractSymbol:()=>Put});var MVt=o({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){PVt()}}),dee,kme,Fme,zVt=o({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){rr(),s_(),dee="Generate 'get' and 'set' accessors",kme=to(F.Generate_get_and_set_accessors),Fme={name:dee,description:kme,kind:"refactor.rewrite.property.generateAccessors"},s3(dee,{kinds:[Fme.kind],getEditsForAction:function(u,s){if(!u.endPosition)return;const d=z1.getAccessorConvertiblePropertyAtPosition(u.file,u.program,u.startPosition,u.endPosition);H.assert(d&&!sD(d),"Expected applicable refactor info");const f=z1.generateAccessorFromProperty(u.file,u.program,u.startPosition,u.endPosition,u,s);if(!f)return;const p=u.file.fileName,E=d.renameAccessor?d.accessorName:d.fieldName,b=(at(E)?0:-1)+qH(f,p,E.text,io(d.declaration));return{renameFilename:p,renameLocation:b,edits:f}},getAvailableActions(t){if(!t.endPosition)return _t;const u=z1.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:dee,description:kme,actions:[{...Fme,notApplicableReason:u.error}]}]:_t:[{name:dee,description:kme,actions:[Fme]}]:_t}})}}),IVt={},RVt=o({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){zVt()}});function OVt(t){const u=Rut(t);if(u&&!sD(u))return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,d=>VVt(t.file,d,u.declaration,u.returnTypeNode))}}function jVt(t){const u=Rut(t);return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:hee,description:Ame,actions:[{...fee,notApplicableReason:u.error}]}]:_t:[{name:hee,description:Ame,actions:[fee]}]:_t}function VVt(t,u,s,d){const f=a0(s,22,t),p=q0(s)&&f===void 0,E=p?Pn(s.parameters):f;E&&(p&&(u.insertNodeBefore(t,E,q.createToken(21)),u.insertNodeAfter(t,E,q.createToken(22))),u.insertNodeAt(t,E.end,d,{prefix:": "}))}function Rut(t){if(Qn(t.file)||!qv(fee.kind,t.kind))return;const u=af(t.file,t.startPosition),s=Tn(u,E=>po(E)||E.parent&&q0(E.parent)&&(E.kind===39||E.parent.body===E)?"quit":HVt(E));if(!s||!s.body||s.type)return{error:to(F.Return_type_must_be_inferred_from_a_function)};const d=t.program.getTypeChecker(),f=KVt(d,s);if(!f)return{error:to(F.Could_not_determine_function_return_type)};const p=d.typeToTypeNode(f,s,1);if(p)return{declaration:s,returnTypeNode:p}}function HVt(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function KVt(t,u){if(t.isImplementationOfOverload(u)){const d=t.getTypeAtLocation(u).getCallSignatures();if(d.length>1)return t.getUnionType(qi(d,f=>f.getReturnType()))}const s=t.getSignatureFromDeclaration(u);if(s)return t.getReturnTypeOfSignature(s)}var hee,Ame,fee,WVt=o({"src/services/refactors/inferFunctionReturnType.ts"(){rr(),s_(),hee="Infer function return type",Ame=to(F.Infer_function_return_type),fee={name:hee,description:Ame,kind:"refactor.rewrite.function.returnType"},s3(hee,{kinds:[fee.kind],getEditsForAction:OVt,getAvailableActions:jVt})}}),GVt={},JVt=o({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){WVt()}}),a9={};h(a9,{addExportToChanges:()=>F8e,addExports:()=>C8e,addNewFileToTsconfig:()=>E8e,addOrRemoveBracesToArrowFunction:()=>ajt,convertArrowFunctionOrFunctionExpression:()=>_jt,convertParamsToDestructuredObject:()=>Ijt,convertStringOrTemplateLiteral:()=>$jt,convertToOptionalChainExpression:()=>aVt,createNewFileName:()=>A8e,createOldFileImportsFromTargetFile:()=>v8e,deleteMovedStatements:()=>iee,deleteUnusedImports:()=>b8e,deleteUnusedOldImports:()=>_8e,doChangeNamedToNamespaceOrDefault:()=>Gnt,extractSymbol:()=>Iut,filterImport:()=>lK,forEachImportInStatement:()=>sK,generateGetAccessorAndSetAccessor:()=>IVt,getApplicableRefactors:()=>rOt,getEditsForRefactor:()=>aOt,getStatementsToMove:()=>cK,getTopLevelDeclarationStatement:()=>hme,getUsageInfo:()=>uee,inferFunctionReturnType:()=>GVt,isRefactorErrorInfo:()=>sD,isTopLevelDeclaration:()=>ree,makeImportOrRequire:()=>nee,moduleSpecifierFromImport:()=>oK,nameOfTopLevelDeclaration:()=>k8e,refactorKindBeginsWith:()=>qv,registerRefactor:()=>s3,updateImportsInOtherFiles:()=>D8e});var s_=o({"src/services/_namespaces/ts.refactor.ts"(){Ont(),fOt(),_Ot(),kOt(),FOt(),SOt(),LOt(),XOt(),ojt(),Djt(),Rjt(),Ujt(),oVt(),MVt(),RVt(),JVt()}});function Out(t,u,s,d){const f=q8e(t,u,s,d);H.assert(f.spans.length%3===0);const p=f.spans,E=[];for(let v=0;v{f.push(E.getStart(u),E.getWidth(u),(v+1<<8)+b)},d),f}function UVt(t,u,s,d,f){const p=t.getTypeChecker();let E=!1;function v(b){switch(b.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:f.throwIfCancellationRequested()}if(!b||!wU(s,b.pos,b.getFullWidth())||b.getFullWidth()===0)return;const B=E;if((r3(b)||bk(b))&&(E=!0),YP(b)&&(E=!1),at(b)&&!E&&!QVt(b)&&!LP(b.escapedText)){let k=p.getSymbolAtLocation(b);if(k){k.flags&2097152&&(k=p.getAliasedSymbol(k));let T=qVt(k,Pk(b));if(T!==void 0){let M=0;b.parent&&(js(b.parent)||X8e.get(b.parent.kind)===T)&&b.parent.name===b&&(M=1),T===6&&Vut(b)&&(T=9),T=ZVt(p,b,T);const z=k.valueDeclaration;if(z){const j=m2(z),J=QD(z);j&256&&(M|=2),j&1024&&(M|=4),T!==0&&T!==2&&(j&8||J&2||k.getFlags()&8)&&(M|=8),(T===7||T===10)&&YVt(z,u)&&(M|=32),t.isSourceFileDefaultLibrary(z.getSourceFile())&&(M|=16)}else k.declarations&&k.declarations.some(j=>t.isSourceFileDefaultLibrary(j.getSourceFile()))&&(M|=16);d(b,T,M)}}}ao(b,v),E=B}v(u)}function qVt(t,u){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(u&2)return 2}else if(s&262144)return 4;let d=t.valueDeclaration||t.declarations&&t.declarations[0];return d&&js(d)&&(d=jut(d)),d&&X8e.get(d.kind)}function ZVt(t,u,s){if(s===7||s===9||s===6){const d=t.getTypeAtLocation(u);if(d){const f=p=>p(d)||d.isUnion()&&d.types.some(p);if(s!==6&&f(p=>p.getConstructSignatures().length>0))return 0;if(f(p=>p.getCallSignatures().length>0)&&!f(p=>p.getProperties().length>0)||XVt(u))return s===9?11:10}}return s}function YVt(t,u){return js(t)&&(t=jut(t)),ua(t)?(!la(t.parent.parent.parent)||G2(t.parent))&&t.getSourceFile()===u:ed(t)?!la(t.parent)&&t.getSourceFile()===u:!1}function jut(t){for(;;)if(js(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function QVt(t){const u=t.parent;return u&&(n_(u)||bf(u)||Jx(u))}function XVt(t){for(;Vut(t);)t=t.parent;return Mo(t.parent)&&t.parent.expression===t}function Vut(t){return vf(t.parent)&&t.parent.right===t||Iu(t.parent)&&t.parent.name===t}var Z8e,Y8e,Q8e,X8e,Hut=o({"src/services/classifier2020.ts"(){rr(),Z8e=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(Z8e||{}),Y8e=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))(Y8e||{}),Q8e=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(Q8e||{}),X8e=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]])}});function Kut(t,u,s,d){const f=GO(t)?new Lme(t,u,s):t===80?new Pme(80,u,s):t===81?new Mme(81,u,s):new nBe(t,u,s);return f.parent=d,f.flags=d.flags&101441536,f}function eHt(t,u){if(!GO(t.kind))return _t;const s=[];if(GU(t))return t.forEachChild(E=>{s.push(E)}),s;nh.setText((u||t.getSourceFile()).text);let d=t.pos;const f=E=>{mee(s,d,E.pos,t),s.push(E),d=E.end},p=E=>{mee(s,d,E.pos,t),s.push(tHt(E,t)),d=E.end};return L(t.jsDoc,f),d=t.pos,t.forEachChild(f,p),mee(s,d,t.end,t),nh.setText(void 0),s}function mee(t,u,s,d){for(nh.resetTokenState(u);uu.tagName.text==="inheritDoc"||u.tagName.text==="inheritdoc")}function Sme(t,u){if(!t)return _t;let s=Yv.getJsDocTagsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Wut))){const d=new Set;for(const f of t){const p=Gut(u,f,E=>{var v;if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualJsDocTags(f,u):((v=E.declarations)==null?void 0:v.length)===1?E.getJsDocTags():void 0});p&&(s=[...p,...s])}}return s}function pee(t,u){if(!t)return _t;let s=Yv.getJsDocCommentsFromDeclarations(t,u);if(u&&(s.length===0||t.some(Wut))){const d=new Set;for(const f of t){const p=Gut(u,f,E=>{if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualDocumentationComment(f,u):E.getDocumentationComment(u)});p&&(s=s.length===0?p.slice():p.concat(lw(),s))}}return s}function Gut(t,u,s){var d;const f=((d=u.parent)==null?void 0:d.kind)===176?u.parent.parent:u.parent;if(!f)return;const p=Kc(u);return G(uP(f),E=>{const v=t.getTypeAtLocation(E),b=p&&v.symbol?t.getTypeOfSymbol(v.symbol):v,B=t.getPropertyOfType(b,u.symbol.name);return B?s(B):void 0})}function iHt(){return{getNodeConstructor:()=>Lme,getTokenConstructor:()=>nBe,getIdentifierConstructor:()=>Pme,getPrivateIdentifierConstructor:()=>Mme,getSourceFileConstructor:()=>Yut,getSymbolConstructor:()=>Uut,getTypeConstructor:()=>qut,getSignatureConstructor:()=>Zut,getSourceMapSourceConstructor:()=>Qut}}function gK(t){let u=!0;for(const d in t)if(gu(t,d)&&!Jut(d)){u=!1;break}if(u)return t;const s={};for(const d in t)if(gu(t,d)){const f=Jut(d)?d:d.charAt(0).toLowerCase()+d.substr(1);s[f]=t[d]}return s}function Jut(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function EK(t){return t?Vt(t,u=>u.text).join(""):""}function gee(){return{target:1,jsx:1}}function Bme(){return z1.getSupportedErrorCodes()}function $ut(t,u,s){t.version=s,t.scriptSnapshot=u}function Eee(t,u,s,d,f,p){const E=KV(t,aw(u),s,f,p);return $ut(E,u,d),E}function wme(t,u,s,d,f){if(d&&s!==t.version){let E;const v=d.span.start!==0?t.text.substr(0,d.span.start):"",b=Ec(d.span)!==t.text.length?t.text.substr(Ec(d.span)):"";if(d.newLength===0)E=v&&b?v+b:v||b;else{const k=u.getText(d.span.start,d.span.start+d.newLength);E=v&&b?v+k+b:v?v+k:k+b}const B=$ce(t,E,d,f);return $ut(B,u,s),B.nameTable=void 0,t!==B&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),B}const p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return Eee(t.fileName,u,p,s,!0,t.scriptKind)}function eBe(t,u=OSe(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var d;let f;s===void 0?f=0:typeof s=="boolean"?f=s?2:0:f=s;const p=new Xut(t);let E,v,b=0;const B=t.getCancellationToken?new trt(t.getCancellationToken()):ert,k=t.getCurrentDirectory();tke((d=t.getLocalizedDiagnosticMessages)==null?void 0:d.bind(t));function T(we){t.log&&t.log(we)}const M=Hj(t),z=L1(M),j=XSe({useCaseSensitiveFileNames:()=>M,getCurrentDirectory:()=>k,getProgram:Y,fileExists:Lo(t,t.fileExists),readFile:Lo(t,t.readFile),getDocumentPositionMapper:Lo(t,t.getDocumentPositionMapper),getSourceFileLike:Lo(t,t.getSourceFileLike),log:T});function J(we){const de=E.getSourceFile(we);if(!de){const je=new Error(`Could not find source file: '${we}'.`);throw je.ProgramFiles=E.getSourceFiles().map(X=>X.fileName),je}return de}function K(){var we,de,je;if(H.assert(f!==2),t.getProjectVersion){const Ya=t.getProjectVersion();if(Ya){if(v===Ya&&!((we=t.hasChangedAutomaticTypeDirectiveNames)!=null&&we.call(t)))return;v=Ya}}const X=t.getTypeRootsVersion?t.getTypeRootsVersion():0;b!==X&&(T("TypeRoots version has changed; provide new program"),E=void 0,b=X);const it=t.getScriptFileNames().slice(),Ct=t.getCompilationSettings()||gee(),ct=t.hasInvalidatedResolutions||cg,Qt=Lo(t,t.hasInvalidatedLibResolutions)||cg,Li=Lo(t,t.hasChangedAutomaticTypeDirectiveNames),Ui=(de=t.getProjectReferences)==null?void 0:de.call(t);let Sn,du={getSourceFile:Fn,getSourceFileByPath:vc,getCancellationToken:()=>B,getCanonicalFileName:z,useCaseSensitiveFileNames:()=>M,getNewLine:()=>a5(Ct),getDefaultLibFileName:Ya=>t.getDefaultLibFileName(Ya),writeFile:Is,getCurrentDirectory:()=>k,fileExists:Ya=>t.fileExists(Ya),readFile:Ya=>t.readFile&&t.readFile(Ya),getSymlinkCache:Lo(t,t.getSymlinkCache),realpath:Lo(t,t.realpath),directoryExists:Ya=>hg(Ya,t),getDirectories:Ya=>t.getDirectories?t.getDirectories(Ya):[],readDirectory:(Ya,c0,Ul,wl,hd)=>(H.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(Ya,c0,Ul,wl,hd)),onReleaseOldSourceFile:wo,onReleaseParsedCommandLine:as,hasInvalidatedResolutions:ct,hasInvalidatedLibResolutions:Qt,hasChangedAutomaticTypeDirectiveNames:Li,trace:Lo(t,t.trace),resolveModuleNames:Lo(t,t.resolveModuleNames),getModuleResolutionCache:Lo(t,t.getModuleResolutionCache),createHash:Lo(t,t.createHash),resolveTypeReferenceDirectives:Lo(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Lo(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Lo(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:Lo(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:Lo(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:wn,jsDocParsingMode:t.jsDocParsingMode};const Ru=du.getSourceFile,{getSourceFileWithCache:pr}=vH(du,Ya=>J0(Ya,k,z),(...Ya)=>Ru.call(du,...Ya));du.getSourceFile=pr,(je=t.setCompilerHost)==null||je.call(t,du);const Xu={useCaseSensitiveFileNames:M,fileExists:Ya=>du.fileExists(Ya),readFile:Ya=>du.readFile(Ya),directoryExists:Ya=>du.directoryExists(Ya),getDirectories:Ya=>du.getDirectories(Ya),realpath:du.realpath,readDirectory:(...Ya)=>du.readDirectory(...Ya),trace:du.trace,getCurrentDirectory:du.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Is},ca=u.getKeyForCompilationSettings(Ct);let Ku=new Set;if(w1e(E,it,Ct,(Ya,c0)=>t.getScriptVersion(c0),Ya=>du.fileExists(Ya),ct,Qt,Li,wn,Ui)){du=void 0,Sn=void 0,Ku=void 0;return}E=SQ({rootNames:it,options:Ct,host:du,oldProgram:E,projectReferences:Ui}),du=void 0,Sn=void 0,Ku=void 0,j.clearCache(),E.getTypeChecker();return;function wn(Ya){const c0=J0(Ya,k,z),Ul=Sn==null?void 0:Sn.get(c0);if(Ul!==void 0)return Ul||void 0;const wl=t.getParsedCommandLine?t.getParsedCommandLine(Ya):Ir(Ya);return(Sn||(Sn=new Map)).set(c0,wl||!1),wl}function Ir(Ya){const c0=Fn(Ya,100);if(c0)return c0.path=J0(Ya,k,z),c0.resolvedPath=c0.path,c0.originalFileName=c0.fileName,UV(c0,Xu,$a(lr(Ya),k),void 0,$a(Ya,k))}function as(Ya,c0,Ul){var wl;t.getParsedCommandLine?(wl=t.onReleaseParsedCommandLine)==null||wl.call(t,Ya,c0,Ul):c0&&wo(c0.sourceFile,Ul)}function wo(Ya,c0){const Ul=u.getKeyForCompilationSettings(c0);u.releaseDocumentWithKey(Ya.resolvedPath,Ul,Ya.scriptKind,Ya.impliedNodeFormat)}function Fn(Ya,c0,Ul,wl){return vc(Ya,J0(Ya,k,z),c0,Ul,wl)}function vc(Ya,c0,Ul,wl,hd){H.assert(du,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const vl=t.getScriptSnapshot(Ya);if(!vl)return;const co=pfe(Ya,t),Ho=t.getScriptVersion(Ya);if(!hd){const id=E&&E.getSourceFileByPath(c0);if(id){if(co===id.scriptKind||Ku.has(id.resolvedPath))return u.updateDocumentWithKey(Ya,c0,t,ca,vl,Ho,co,Ul);u.releaseDocumentWithKey(id.resolvedPath,u.getKeyForCompilationSettings(E.getCompilerOptions()),id.scriptKind,id.impliedNodeFormat),Ku.add(id.resolvedPath)}}return u.acquireDocumentWithKey(Ya,c0,t,ca,vl,Ho,co,Ul)}}function Y(){if(f===2){H.assert(E===void 0);return}return K(),E}function oe(){var we;return(we=t.getPackageJsonAutoImportProvider)==null?void 0:we.call(t)}function se(we,de){const je=E.getTypeChecker(),X=it();if(!X)return!1;for(const ct of we)for(const Qt of ct.references){const Li=Ct(Qt);if(H.assertIsDefined(Li),de.has(Qt)||Z0.isDeclarationOfSymbol(Li,X)){de.add(Qt),Qt.isDefinition=!0;const Ui=yX(Qt,j,Lo(t,t.fileExists));Ui&&de.add(Ui)}else Qt.isDefinition=!1}return!0;function it(){for(const ct of we)for(const Qt of ct.references){if(de.has(Qt)){const Ui=Ct(Qt);return H.assertIsDefined(Ui),je.getSymbolAtLocation(Ui)}const Li=yX(Qt,j,Lo(t,t.fileExists));if(Li&&de.has(Li)){const Ui=Ct(Li);if(Ui)return je.getSymbolAtLocation(Ui)}}}function Ct(ct){const Qt=E.getSourceFile(ct.fileName);if(!Qt)return;const Li=af(Qt,ct.textSpan.start);return Z0.Core.getAdjustedNode(Li,{use:Z0.FindReferencesUse.References})}}function ge(){if(E){const we=u.getKeyForCompilationSettings(E.getCompilerOptions());L(E.getSourceFiles(),de=>u.releaseDocumentWithKey(de.resolvedPath,we,de.scriptKind,de.impliedNodeFormat)),E=void 0}}function ae(){ge(),t=void 0}function Ce(we){return K(),E.getSyntacticDiagnostics(J(we),B).slice()}function ne(we){K();const de=J(we),je=E.getSemanticDiagnostics(de,B);if(!c4(E.getCompilerOptions()))return je.slice();const X=E.getDeclarationDiagnostics(de,B);return[...je,...X]}function ve(we){return K(),Jfe(J(we),E,B)}function Se(){return K(),[...E.getOptionsDiagnostics(B),...E.getGlobalDiagnostics(B)]}function Ne(we,de,je=d4,X){const it={...je,includeCompletionsForModuleExports:je.includeCompletionsForModuleExports||je.includeExternalModuleExports,includeCompletionsWithInsertText:je.includeCompletionsWithInsertText||je.includeInsertTextCompletions};return K(),h9.getCompletionsAtPosition(t,E,T,J(we),de,it,je.triggerCharacter,je.triggerKind,B,X&&dd.getFormatContext(X,t),je.includeSymbol)}function pe(we,de,je,X,it,Ct=d4,ct){return K(),h9.getCompletionEntryDetails(E,T,J(we),de,{name:je,source:it,data:ct},t,X&&dd.getFormatContext(X,t),Ct,B)}function fe(we,de,je,X,it=d4){return K(),h9.getCompletionEntrySymbol(E,T,J(we),de,{name:je,source:X},t,it)}function xe(we,de){K();const je=J(we),X=af(je,de);if(X===je)return;const it=E.getTypeChecker(),Ct=Be(X),ct=aHt(Ct,it);if(!ct||it.isUnknownSymbol(ct)){const du=Ge(je,Ct,de)?it.getTypeAtLocation(Ct):void 0;return du&&{kind:"",kindModifiers:"",textSpan:of(Ct,je),displayParts:it.runWithCancellationToken(B,Ru=>$H(Ru,du,Mk(Ct))),documentation:du.symbol?du.symbol.getDocumentationComment(it):void 0,tags:du.symbol?du.symbol.getJsDocTags(it):void 0}}const{symbolKind:Qt,displayParts:Li,documentation:Ui,tags:Sn}=it.runWithCancellationToken(B,du=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(du,ct,je,Mk(Ct),Ct));return{kind:Qt,kindModifiers:x5.getSymbolModifiers(it,ct),textSpan:of(Ct,je),displayParts:Li,documentation:Ui,tags:Sn}}function Be(we){return j2(we.parent)&&we.pos===we.parent.pos?we.parent.expression:GP(we.parent)&&we.pos===we.parent.pos||W8(we.parent)&&we.parent.name===we||gg(we.parent)?we.parent:we}function Ge(we,de,je){switch(de.kind){case 80:return!Rhe(de)&&!Ohe(de)&&!q3(de.parent);case 211:case 166:return!m5(we,je);case 110:case 197:case 108:case 202:return!0;case 236:return W8(de);default:return!1}}function Ae(we,de,je,X){return K(),Cw.getDefinitionAtPosition(E,J(we),de,je,X)}function De(we,de){return K(),Cw.getDefinitionAndBoundSpan(E,J(we),de)}function Ke(we,de){return K(),Cw.getTypeDefinitionAtPosition(E.getTypeChecker(),J(we),de)}function Je(we,de){return K(),Z0.getImplementationsAtPosition(E,B,E.getSourceFiles(),J(we),de)}function ft(we,de,je){const X=$o(we);H.assert(je.some(ct=>$o(ct)===X)),K();const it=qi(je,ct=>E.getSourceFile(ct)),Ct=J(we);return JX.getDocumentHighlights(E,B,Ct,de,it)}function Ye(we,de,je,X,it){K();const Ct=J(we),ct=lX(af(Ct,de));if(Hee.nodeIsEligibleForRename(ct))if(at(ct)&&(aE(ct.parent)||H2(ct.parent))&&aB(ct.escapedText)){const{openingElement:Qt,closingElement:Li}=ct.parent.parent;return[Qt,Li].map(Ui=>{const Sn=of(Ui.tagName,Ct);return{fileName:Ct.fileName,textSpan:Sn,...Z0.toContextSpan(Sn,Ct,Ui.parent)}})}else{const Qt=Hm(Ct,it??d4),Li=typeof it=="boolean"?it:it==null?void 0:it.providePrefixAndSuffixTextForRename;return We(ct,de,{findInStrings:je,findInComments:X,providePrefixAndSuffixTextForRename:Li,use:Z0.FindReferencesUse.Rename},(Ui,Sn,du)=>Z0.toRenameLocation(Ui,Sn,du,Li||!1,Qt))}}function Ve(we,de){return K(),We(af(J(we),de),de,{use:Z0.FindReferencesUse.References},Z0.toReferenceEntry)}function We(we,de,je,X){K();const it=je&&je.use===Z0.FindReferencesUse.Rename?E.getSourceFiles().filter(Ct=>!E.isSourceFileDefaultLibrary(Ct)):E.getSourceFiles();return Z0.findReferenceOrRenameEntries(E,B,it,we,de,je,X)}function Gt(we,de){return K(),Z0.findReferencedSymbols(E,B,E.getSourceFiles(),J(we),de)}function Yt(we){return K(),Z0.Core.getReferencesForFileName(we,E,E.getSourceFiles()).map(Z0.toReferenceEntry)}function Ie(we,de,je,X=!1,it=!1){K();const Ct=je?[J(je)]:E.getSourceFiles();return mnt(Ct,E.getTypeChecker(),B,we,de,X,it)}function st(we,de,je){K();const X=J(we),it=t.getCustomTransformers&&t.getCustomTransformers();return K7e(E,X,!!de,B,it,je)}function St(we,de,{triggerReason:je}=d4){K();const X=J(we);return NK.getSignatureHelpItems(E,X,de,je,B)}function It(we){return p.getCurrentSourceFile(we)}function ei(we,de,je){const X=p.getCurrentSourceFile(we),it=af(X,de);if(it===X)return;switch(it.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 Ct=it;for(;;)if(uw(Ct)||$9e(Ct))Ct=Ct.parent;else if(Vhe(Ct))if(Ct.parent.parent.kind===267&&Ct.parent.parent.body===Ct.parent)Ct=Ct.parent.parent.name;else break;else break;return Vc(Ct.getStart(),it.getEnd())}function ht(we,de){const je=p.getCurrentSourceFile(we);return Ime.spanInSourceFileAtLocation(je,de)}function Ut(we){return _nt(p.getCurrentSourceFile(we),B)}function Ni(we){return Dnt(p.getCurrentSourceFile(we),B)}function ji(we,de,je){return K(),(je||"original")==="2020"?Out(E,B,J(we),de):ISe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de)}function xn(we,de,je){return K(),(je||"original")==="original"?Ofe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de):q8e(E,B,J(we),de)}function Jn(we,de){return RSe(B,p.getCurrentSourceFile(we),de)}function an(we,de){return jfe(B,p.getCurrentSourceFile(we),de)}function Pi(we){const de=p.getCurrentSourceFile(we);return Lpe.collectElements(de,B)}const Ai=new Map(Object.entries({19:20,21:22,23:24,32:30}));Ai.forEach((we,de)=>Ai.set(we.toString(),Number(de)));function Zu(we,de){const je=p.getCurrentSourceFile(we),X=LM(je,de),it=X.getStart(je)===de?Ai.get(X.kind.toString()):void 0,Ct=it&&a0(X.parent,it,je);return Ct?[of(X,je),of(Ct,je)].sort((ct,Qt)=>ct.start-Qt.start):_t}function aa(we,de,je){let X=G0();const it=gK(je),Ct=p.getCurrentSourceFile(we);T("getIndentationAtPosition: getCurrentSourceFile: "+(G0()-X)),X=G0();const ct=dd.SmartIndenter.getIndentation(de,Ct,it);return T("getIndentationAtPosition: computeIndentation : "+(G0()-X)),ct}function yr(we,de,je,X){const it=p.getCurrentSourceFile(we);return dd.formatSelection(de,je,it,dd.getFormatContext(gK(X),t))}function Ba(we,de){return dd.formatDocument(p.getCurrentSourceFile(we),dd.getFormatContext(gK(de),t))}function bt(we,de,je,X){const it=p.getCurrentSourceFile(we),Ct=dd.getFormatContext(gK(X),t);if(!m5(it,de))switch(je){case"{":return dd.formatOnOpeningCurly(de,it,Ct);case"}":return dd.formatOnClosingCurly(de,it,Ct);case";":return dd.formatOnSemicolon(de,it,Ct);case` -`:return dd.formatOnEnter(de,it,Ct)}return[]}function jn(we,de,je,X,it,Ct=d4){K();const ct=J(we),Qt=Vc(de,je),Li=dd.getFormatContext(it,t);return ju(ri(X,Cx,nl),Ui=>(B.throwIfCancellationRequested(),z1.getFixes({errorCode:Ui,sourceFile:ct,span:Qt,program:E,host:t,cancellationToken:B,formatContext:Li,preferences:Ct})))}function Ln(we,de,je,X=d4){K(),H.assert(we.type==="file");const it=J(we.fileName),Ct=dd.getFormatContext(je,t);return z1.getAllFixes({fixId:de,sourceFile:it,program:E,host:t,cancellationToken:B,formatContext:Ct,preferences:X})}function Si(we,de,je=d4){K(),H.assert(we.type==="file");const X=J(we.fileName),it=dd.getFormatContext(de,t),Ct=we.mode??(we.skipDestructiveCodeActions?"SortAndCombine":"All");return Gp.organizeImports(X,it,t,E,je,Ct)}function Dn(we,de,je,X=d4){return VSe(Y(),we,de,t,dd.getFormatContext(je,t),X,j)}function Cn(we,de){const je=typeof we=="string"?de:we;return Ha(je)?Promise.all(je.map(X=>tu(X))):tu(je)}function tu(we){const de=je=>J0(je,k,z);return H.assertEqual(we.type,"install package"),t.installPackage?t.installPackage({fileName:de(we.file),packageName:we.packageName}):Promise.reject("Host does not implement `installPackage`")}function oa(we,de,je,X){const it=X?dd.getFormatContext(X,t).options:void 0;return Yv.getDocCommentTemplateAtPosition(E5(t,it),p.getCurrentSourceFile(we),de,je)}function Da(we,de,je){if(je===60)return!1;const X=p.getCurrentSourceFile(we);if(zk(X,de))return!1;if(eSe(X,de))return je===123;if($he(X,de))return!1;switch(je){case 39:case 34:case 96:return!m5(X,de)}return!0}function ra(we,de){const je=p.getCurrentSourceFile(we),X=td(de,je);if(!X)return;const it=X.kind===32&&aE(X.parent)?X.parent.parent:w7(X)&&r3(X.parent)?X.parent:void 0;if(it&&qt(it))return{newText:``};const Ct=X.kind===32&&V7(X.parent)?X.parent.parent:w7(X)&&K2(X.parent)?X.parent:void 0;if(Ct&&Xt(Ct))return{newText:""}}function Ta(we,de){const je=p.getCurrentSourceFile(we),X=td(de,je);if(!X||X.parent.kind===312)return;const it="[a-zA-Z0-9:\\-\\._$]*";if(K2(X.parent.parent)){const Ct=X.parent.parent.openingFragment,ct=X.parent.parent.closingFragment;if(O8(Ct)||O8(ct))return;const Qt=Ct.getStart(je)+1,Li=ct.getStart(je)+2;return de!==Qt&&de!==Li?void 0:{ranges:[{start:Qt,length:0},{start:Li,length:0}],wordPattern:it}}else{const Ct=Tn(X.parent,pr=>!!(aE(pr)||H2(pr)));if(!Ct)return;H.assert(aE(Ct)||H2(Ct),"tag should be opening or closing element");const ct=Ct.parent.openingElement,Qt=Ct.parent.closingElement,Li=ct.tagName.getStart(je),Ui=ct.tagName.end,Sn=Qt.tagName.getStart(je),du=Qt.tagName.end;return!(Li<=de&&de<=Ui||Sn<=de&&de<=du)||ct.tagName.getText(je)!==Qt.tagName.getText(je)?void 0:{ranges:[{start:Li,length:Ui-Li},{start:Sn,length:du-Sn}],wordPattern:it}}}function Yo(we,de){return{lineStarts:we.getLineStarts(),firstLine:we.getLineAndCharacterOfPosition(de.pos).line,lastLine:we.getLineAndCharacterOfPosition(de.end).line}}function bo(we,de,je){const X=p.getCurrentSourceFile(we),it=[],{lineStarts:Ct,firstLine:ct,lastLine:Qt}=Yo(X,de);let Li=je||!1,Ui=Number.MAX_VALUE;const Sn=new Map,du=new RegExp(/\S/),Ru=hX(X,Ct[ct]),pr=Ru?"{/*":"//";for(let Xu=ct;Xu<=Qt;Xu++){const ca=X.text.substring(Ct[Xu],X.getLineEndOfPosition(Ct[Xu])),Ku=du.exec(ca);Ku&&(Ui=Math.min(Ui,Ku.index),Sn.set(Xu.toString(),Ku.index),ca.substr(Ku.index,pr.length)!==pr&&(Li=je===void 0||je))}for(let Xu=ct;Xu<=Qt;Xu++){if(ct!==Qt&&Ct[Xu]===de.end)continue;const ca=Sn.get(Xu.toString());ca!==void 0&&(Ru?it.push(...Qe(we,{pos:Ct[Xu]+Ui,end:X.getLineEndOfPosition(Ct[Xu])},Li,Ru)):Li?it.push({newText:pr,span:{length:0,start:Ct[Xu]+Ui}}):X.text.substr(Ct[Xu]+ca,pr.length)===pr&&it.push({newText:"",span:{length:pr.length,start:Ct[Xu]+ca}}))}return it}function Qe(we,de,je,X){var it;const Ct=p.getCurrentSourceFile(we),ct=[],{text:Qt}=Ct;let Li=!1,Ui=je||!1;const Sn=[];let{pos:du}=de;const Ru=X!==void 0?X:hX(Ct,du),pr=Ru?"{/*":"/*",Xu=Ru?"*/}":"*/",ca=Ru?"\\{\\/\\*":"\\/\\*",Ku=Ru?"\\*\\/\\}":"\\*\\/";for(;du<=de.end;){const ja=Qt.substr(du,pr.length)===pr?pr.length:0,wn=m5(Ct,du+ja);if(wn)Ru&&(wn.pos--,wn.end++),Sn.push(wn.pos),wn.kind===3&&Sn.push(wn.end),Li=!0,du=wn.end+1;else{const Ir=Qt.substring(du,de.end).search(`(${ca})|(${Ku})`);Ui=je!==void 0?je:Ui||!hSe(Qt,du,Ir===-1?de.end:du+Ir),du=Ir===-1?de.end+1:du+Ir+Xu.length}}if(Ui||!Li){((it=m5(Ct,de.pos))==null?void 0:it.kind)!==2&&Tt(Sn,de.pos,nl),Tt(Sn,de.end,nl);const ja=Sn[0];Qt.substr(ja,pr.length)!==pr&&ct.push({newText:pr,span:{length:0,start:ja}});for(let wn=1;wn0?ja-Xu.length:0,Ir=Qt.substr(wn,Xu.length)===Xu?Xu.length:0;ct.push({newText:"",span:{length:pr.length,start:ja-Ir}})}return ct}function Et(we,de){const je=p.getCurrentSourceFile(we),{firstLine:X,lastLine:it}=Yo(je,de);return X===it&&de.pos!==de.end?Qe(we,de,!0):bo(we,de,!0)}function Mt(we,de){const je=p.getCurrentSourceFile(we),X=[],{pos:it}=de;let{end:Ct}=de;it===Ct&&(Ct+=hX(je,it)?2:1);for(let ct=it;ct<=Ct;ct++){const Qt=m5(je,ct);if(Qt){switch(Qt.kind){case 2:X.push(...bo(we,{end:Qt.end,pos:Qt.pos+1},!1));break;case 3:X.push(...Qe(we,{end:Qt.end,pos:Qt.pos+1},!1))}ct=Qt.end+1}}return X}function qt({openingElement:we,closingElement:de,parent:je}){return!Vv(we.tagName,de.tagName)||r3(je)&&Vv(we.tagName,je.openingElement.tagName)&&qt(je)}function Xt({closingFragment:we,parent:de}){return!!(we.flags&262144)||K2(de)&&Xt(de)}function Pe(we,de,je){const X=p.getCurrentSourceFile(we),it=dd.getRangeOfEnclosingComment(X,de);return it&&(!je||it.kind===3)?qx(it):void 0}function et(we,de){K();const je=J(we);B.throwIfCancellationRequested();const X=je.text,it=[];if(de.length>0&&!Li(je.fileName)){const Ui=ct();let Sn;for(;Sn=Ui.exec(X);){B.throwIfCancellationRequested();const du=3;H.assert(Sn.length===de.length+du);const Ru=Sn[1],pr=Sn.index+Ru.length;if(!m5(je,pr))continue;let Xu;for(let Ku=0;Ku"("+Ct(wn.text)+")").join("|")+")",Xu=/(?:$|\*\/)/.source,ca=/(?:.*?)/.source,Ku="("+pr+ca+")",ja=Ru+Ku+Xu;return new RegExp(ja,"gim")}function Qt(Ui){return Ui>=97&&Ui<=122||Ui>=65&&Ui<=90||Ui>=48&&Ui<=57}function Li(Ui){return Ui.includes("/node_modules/")}}function gt(we,de,je){return K(),Hee.getRenameInfo(E,J(we),de,je||{})}function ii(we,de,je,X,it,Ct){const[ct,Qt]=typeof de=="number"?[de,void 0]:[de.pos,de.end];return{file:we,startPosition:ct,endPosition:Qt,program:Y(),host:t,formatContext:dd.getFormatContext(X,t),cancellationToken:B,preferences:je,triggerReason:it,kind:Ct}}function me(we,de,je){return{file:we,program:Y(),host:t,span:de,preferences:je,cancellationToken:B}}function ni(we,de){return Mpe.getSmartSelectionRange(de,p.getCurrentSourceFile(we))}function vi(we,de,je=d4,X,it,Ct){K();const ct=J(we);return a9.getApplicableRefactors(ii(ct,de,je,d4,X,it),Ct)}function mt(we,de,je=d4){K();const X=J(we),it=H.checkDefined(E.getSourceFiles()),Ct=y7(we),ct=qi(it,Li=>!(E!=null&&E.isSourceFileFromExternalLibrary(X))&&!(X===J(Li.fileName)||Ct===".ts"&&y7(Li.fileName)===".d.ts"||Ct===".d.ts"&&Pa(Ac(Li.fileName),"lib.")&&y7(Li.fileName)===".d.ts")&&Ct===y7(Li.fileName)?Li.fileName:void 0);return{newFileName:A8e(X,E,ii(X,de,je,d4),t),files:ct}}function Ot(we,de,je,X,it,Ct=d4,ct){K();const Qt=J(we);return a9.getEditsForRefactor(ii(Qt,je,Ct,de),X,it,ct)}function Ei(we,de){return de===0?{line:0,character:0}:j.toLineColumnOffset(we,de)}function $i(we,de){K();const je=o9.resolveCallHierarchyDeclaration(E,af(J(we),de));return je&&kfe(je,X=>o9.createCallHierarchyItem(E,X))}function Qi(we,de){K();const je=J(we),X=Ffe(o9.resolveCallHierarchyDeclaration(E,de===0?je:af(je,de)));return X?o9.getIncomingCalls(E,X,B):[]}function on(we,de){K();const je=J(we),X=Ffe(o9.resolveCallHierarchyDeclaration(E,de===0?je:af(je,de)));return X?o9.getOutgoingCalls(E,X):[]}function le(we,de,je=d4){K();const X=J(we);return Spe.provideInlayHints(me(X,de,je))}const te={dispose:ae,cleanupSemanticCache:ge,getSyntacticDiagnostics:Ce,getSemanticDiagnostics:ne,getSuggestionDiagnostics:ve,getCompilerOptionsDiagnostics:Se,getSyntacticClassifications:Jn,getSemanticClassifications:ji,getEncodedSyntacticClassifications:an,getEncodedSemanticClassifications:xn,getCompletionsAtPosition:Ne,getCompletionEntryDetails:pe,getCompletionEntrySymbol:fe,getSignatureHelpItems:St,getQuickInfoAtPosition:xe,getDefinitionAtPosition:Ae,getDefinitionAndBoundSpan:De,getImplementationAtPosition:Je,getTypeDefinitionAtPosition:Ke,getReferencesAtPosition:Ve,findReferences:Gt,getFileReferences:Yt,getDocumentHighlights:ft,getNameOrDottedNameSpan:ei,getBreakpointStatementAtPosition:ht,getNavigateToItems:Ie,getRenameInfo:gt,getSmartSelectionRange:ni,findRenameLocations:Ye,getNavigationBarItems:Ut,getNavigationTree:Ni,getOutliningSpans:Pi,getTodoComments:et,getBraceMatchingAtPosition:Zu,getIndentationAtPosition:aa,getFormattingEditsForRange:yr,getFormattingEditsForDocument:Ba,getFormattingEditsAfterKeystroke:bt,getDocCommentTemplateAtPosition:oa,isValidBraceCompletionAtPosition:Da,getJsxClosingTagAtPosition:ra,getLinkedEditingRangeAtPosition:Ta,getSpanOfEnclosingComment:Pe,getCodeFixesAtPosition:jn,getCombinedCodeFix:Ln,applyCodeActionCommand:Cn,organizeImports:Si,getEditsForFileRename:Dn,getEmitOutput:st,getNonBoundSourceFile:It,getProgram:Y,getCurrentProgram:()=>E,getAutoImportProvider:oe,updateIsDefinitionOfReferencedSymbols:se,getApplicableRefactors:vi,getEditsForRefactor:Ot,getMoveToRefactoringFileSuggestions:mt,toLineColumnOffset:Ei,getSourceMapper:()=>j,clearSourceMapperCache:()=>j.clearCache(),prepareCallHierarchy:$i,provideCallHierarchyIncomingCalls:Qi,provideCallHierarchyOutgoingCalls:on,toggleLineComment:bo,toggleMultilineComment:Qe,commentSelection:Et,uncommentSelection:Mt,provideInlayHints:le,getSupportedCodeFixes:Bme};switch(f){case 0:break;case 1:uBe.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:irt.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.Syntactic`)});break;default:H.assertNever(f)}return te}function Tme(t){return t.nameTable||nHt(t),t.nameTable}function nHt(t){const u=t.nameTable=new Map;t.forEachChild(function s(d){if(at(d)&&!Ohe(d)&&d.escapedText||Pm(d)&&uHt(d)){const f=oP(d);u.set(f,u.get(f)===void 0?d.pos:-1)}else if(ea(d)){const f=d.escapedText;u.set(f,u.get(f)===void 0?d.pos:-1)}if(ao(d,s),lm(d))for(const f of d.jsDoc)ao(f,s)})}function uHt(t){return X3(t)||t.parent.kind===283||oHt(t)||Nj(t)}function _K(t){const u=rHt(t);return u&&(ys(u.parent)||W2(u.parent))?u:void 0}function rHt(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return n0e(t.parent.parent)?t.parent.parent:void 0;case 80:return n0e(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function aHt(t,u){const s=_K(t);if(s){const d=u.getContextualType(s.parent),f=d&&_ee(s,u,d,!1);if(f&&f.length===1)return Pn(f)}return u.getSymbolAtLocation(t)}function _ee(t,u,s,d){const f=WH(t.name);if(!f)return _t;if(!s.isUnion()){const E=s.getProperty(f);return E?[E]:_t}const p=qi(s.types,E=>(ys(t.parent)||W2(t.parent))&&u.isTypeInvalidDueToUnionDiscriminant(E,t.parent)?void 0:E.getProperty(f));if(d&&(p.length===0||p.length===s.types.length)){const E=s.getProperty(f);if(E)return[E]}return p.length===0?qi(s.types,E=>E.getProperty(f)):p}function oHt(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function tBe(t){if(c1)return cr(lr($o(c1.getExecutingFilePath())),zO(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var iBe,Lme,Nme,Uut,nBe,Pme,Mme,qut,Zut,Yut,Qut,Xut,ert,trt,zme,uBe,irt,sHt=o({"src/services/services.ts"(){rr(),Ent(),Rnt(),s_(),$it(),Hut(),iBe="0.8",Lme=class{constructor(t,u,s){this.pos=u,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){H.assert(!pg(this.pos)&&!pg(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return zn(this)}getStart(t,u){return this.assertHasRealPosition(),ek(this,t,u)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,u){return this.getChildren(u)[t]}getChildren(t){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"),this._children||(this._children=eHt(this,t))}getFirstToken(t){this.assertHasRealPosition();const u=this.getChildren(t);if(!u.length)return;const s=Le(u,d=>d.kind<316||d.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const u=this.getChildren(t),s=qu(u);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,u){return ao(this,t,u)}},Nme=class{constructor(t,u){this.pos=t,this.end=u,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return zn(this)}getStart(t,u){return ek(this,t,u)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(t){return this.getEnd()-this.getStart(t)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(t){return this.getStart(t)-this.pos}getFullText(t){return(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(t){return this.getChildren()[t]}getChildren(){return this.kind===1&&this.jsDoc||_t}getFirstToken(){}getLastToken(){}forEachChild(){}},Uut=class{constructor(t,u){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=u}getFlags(){return this.flags}get name(){return lc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=_t,!this.declarations&&qE(this)&&this.links.target&&qE(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const u=this.links.target.links.tupleLabelDeclaration;this.documentationComment=pee([u],t)}else this.documentationComment=pee(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=pee(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e5(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=pee(ti(this.declarations,e5),u)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(u)}getJsDocTags(t){return this.tags===void 0&&(this.tags=Sme(this.declarations,t)),this.tags}getContextualJsDocTags(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=Sme(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e5(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=Sme(ti(this.declarations,e5),u)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(u)}},nBe=class extends Nme{constructor(t,u,s){super(u,s),this.kind=t}},Pme=class extends Nme{constructor(t,u,s){super(u,s),this.kind=80}get text(){return fu(this)}},Pme.prototype.kind=80,Mme=class extends Nme{constructor(t,u,s){super(u,s),this.kind=81}get text(){return fu(this)}},Mme.prototype.kind=81,qut=class{constructor(t,u){this.checker=t,this.flags=u}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(t){return this.checker.getPropertyOfType(this,t)}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!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Gu(this)&3)}isClass(){return!!(Gu(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Gu(this)&4)return this.checker.getTypeArguments(this)}},Zut=class{constructor(t,u){this.checker=t,this.flags=u}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const u=this.checker.getParameterType(this,t);if(u.isIndexType()&&NP(u.type)){const s=u.type.getConstraint();if(s)return this.checker.getIndexType(s)}return u}getDocumentationComment(){return this.documentationComment||(this.documentationComment=pee(Hy(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Sme(Hy(this.declaration),this.checker))}},Yut=class extends Lme{constructor(t,u,s){super(t,u,s),this.kind=312}update(t,u){return $ce(this,t,u)}getLineAndCharacterOfPosition(t){return s0(this,t)}getLineStarts(){return $3(this)}getPositionOfLineAndCharacter(t,u,s){return FU($3(this),t,u,this.text,s)}getLineEndOfPosition(t){const{line:u}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let d;u+1>=s.length&&(d=this.getEnd()),d||(d=s[u+1]-1);const f=this.getFullText();return f[d]===` -`&&f[d-1]==="\r"?d-1:d}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=wm();return this.forEachChild(f),t;function u(p){const E=d(p);E&&t.add(E,p)}function s(p){let E=t.get(p);return E||t.set(p,E=[]),E}function d(p){const E=TU(p);return E&&(Ps(E)&&Iu(E.expression)?E.expression.name.text:Sc(E)?WH(E):void 0)}function f(p){switch(p.kind){case 262:case 218:case 174:case 173:const E=p,v=d(E);if(v){const k=s(v),T=qu(k);T&&E.parent===T.parent&&E.symbol===T.symbol?E.body&&!T.body&&(k[k.length-1]=E):k.push(E)}ao(p,f);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:u(p),ao(p,f);break;case 169:if(!Yu(p,31))break;case 260:case 208:{const k=p;if(So(k.name)){ao(k.name,f);break}k.initializer&&f(k.initializer)}case 306:case 172:case 171:u(p);break;case 278:const b=p;b.exportClause&&(ep(b.exportClause)?L(b.exportClause.elements,f):f(b.exportClause.name));break;case 272:const B=p.importClause;B&&(B.name&&u(B.name),B.namedBindings&&(B.namedBindings.kind===274?u(B.namedBindings):L(B.namedBindings.elements,f)));break;case 226:Xl(p)!==0&&u(p);default:ao(p,f)}}}},Qut=class{constructor(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return s0(this,t)}},Xut=class{constructor(t){this.host=t}getCurrentSourceFile(t){var u,s,d,f,p,E,v,b;const B=this.host.getScriptSnapshot(t);if(!B)throw new Error("Could not find file: '"+t+"'.");const k=pfe(t,this.host),T=this.host.getScriptVersion(t);let M;if(this.currentFileName!==t){const z={languageVersion:99,impliedNodeFormat:bH(J0(t,this.host.getCurrentDirectory(),((d=(s=(u=this.host).getCompilerHost)==null?void 0:s.call(u))==null?void 0:d.getCanonicalFileName)||n5(this.host)),(b=(v=(E=(p=(f=this.host).getCompilerHost)==null?void 0:p.call(f))==null?void 0:E.getModuleResolutionCache)==null?void 0:v.call(E))==null?void 0:b.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Qj(this.host.getCompilationSettings()),jsDocParsingMode:0};M=Eee(t,B,z,T,!0,k)}else if(this.currentFileVersion!==T){const z=B.getChangeRange(this.currentFileScriptSnapshot);M=wme(this.currentSourceFile,B,T,z)}return M&&(this.currentFileVersion=T,this.currentFileName=t,this.currentFileScriptSnapshot=B,this.currentSourceFile=M),this.currentSourceFile}},ert={isCancellationRequested:cg,throwIfCancellationRequested:Is},trt=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new b8}},zme=class{constructor(t,u=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=u,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=G0();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new b8}},uBe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],irt=[...uBe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],Xye(iHt())}});function nrt(t,u,s){const d=[];s=Yfe(s,d);const f=Ha(t)?t:[t],p=pH(void 0,void 0,q,s,f,u,!0);return p.diagnostics=Hi(p.diagnostics,d),p}var lHt=o({"src/services/transform.ts"(){rr()}});function cHt(t,u){if(t.isDeclarationFile)return;let s=Ca(t,u);const d=t.getLineAndCharacterOfPosition(u).line;if(t.getLineAndCharacterOfPosition(s.getStart(t)).line>d){const T=td(s.pos,t);if(!T||t.getLineAndCharacterOfPosition(T.getEnd()).line!==d)return;s=T}if(s.flags&33554432)return;return k(s);function f(T,M){const z=Ak(T)?lt(T.modifiers,g1):void 0,j=z?gs(t.text,z.end):T.getStart(t);return Vc(j,(M||T).getEnd())}function p(T,M){return f(T,ib(M,M.parent,t))}function E(T,M){return T&&d===t.getLineAndCharacterOfPosition(T.getStart(t)).line?k(T):k(M)}function v(T,M,z){if(T){const j=T.indexOf(M);if(j>=0){let J=j,K=j+1;for(;J>0&&z(T[J-1]);)J--;for(;K0)return k(Ke.declarations[0])}else return k(De.initializer)}function ae(De){if(De.initializer)return ge(De);if(De.condition)return f(De.condition);if(De.incrementor)return f(De.incrementor)}function Ce(De){const Ke=L(De.elements,Je=>Je.kind!==232?Je:void 0);return Ke?k(Ke):De.parent.kind===208?f(De.parent):M(De.parent)}function ne(De){H.assert(De.kind!==207&&De.kind!==206);const Ke=De.kind===209?De.elements:De.properties,Je=L(Ke,ft=>ft.kind!==232?ft:void 0);return Je?k(Je):f(De.parent.kind===226?De.parent:De)}function ve(De){switch(De.parent.kind){case 266:const Ke=De.parent;return E(td(De.pos,t,De.parent),Ke.members.length?Ke.members[0]:Ke.getLastToken(t));case 263:const Je=De.parent;return E(td(De.pos,t,De.parent),Je.members.length?Je.members[0]:Je.getLastToken(t));case 269:return E(De.parent.parent,De.parent.clauses[0])}return k(De.parent)}function Se(De){switch(De.parent.kind){case 268:if(oD(De.parent.parent)!==1)return;case 266:case 263:return f(De);case 241:if(k2(De.parent))return f(De);case 299:return k(qu(De.parent.statements));case 269:const Ke=De.parent,Je=qu(Ke.clauses);return Je?k(qu(Je.statements)):void 0;case 206:const ft=De.parent;return k(qu(ft.elements)||ft);default:if(p5(De.parent)){const Ye=De.parent;return f(qu(Ye.properties)||Ye)}return k(De.parent)}}function Ne(De){switch(De.parent.kind){case 207:const Ke=De.parent;return f(qu(Ke.elements)||Ke);default:if(p5(De.parent)){const Je=De.parent;return f(qu(Je.elements)||Je)}return k(De.parent)}}function pe(De){return De.parent.kind===246||De.parent.kind===213||De.parent.kind===214?b(De):De.parent.kind===217?B(De):k(De.parent)}function fe(De){switch(De.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return b(De);default:return k(De.parent)}}function xe(De){return Co(De.parent)||De.parent.kind===303||De.parent.kind===169?b(De):k(De.parent)}function Be(De){return De.parent.kind===216?B(De):k(De.parent)}function Ge(De){return De.parent.kind===246?p(De,De.parent.expression):k(De.parent)}function Ae(De){return De.parent.kind===250?B(De):k(De.parent)}}}var dHt=o({"src/services/breakpoints.ts"(){rr()}}),Ime={};h(Ime,{spanInSourceFileAtLocation:()=>cHt});var hHt=o({"src/services/_namespaces/ts.BreakpointResolver.ts"(){dHt()}});function fHt(t){return(A0(t)||Xd(t))&&mh(t)}function DK(t){return(A0(t)||q0(t)||Xd(t))&&ua(t.parent)&&t===t.parent.initializer&&at(t.parent.name)&&!!(QD(t.parent)&2)}function urt(t){return la(t)||_c(t)||ed(t)||A0(t)||Wc(t)||Xd(t)||zl(t)||dc(t)||n3(t)||zm(t)||jf(t)}function gw(t){return la(t)||_c(t)&&at(t.name)||ed(t)||Wc(t)||zl(t)||dc(t)||n3(t)||zm(t)||jf(t)||fHt(t)||DK(t)}function rrt(t){return la(t)?t:mh(t)?t.name:DK(t)?t.parent.name:H.checkDefined(t.modifiers&&Le(t.modifiers,art))}function art(t){return t.kind===90}function ort(t,u){const s=rrt(u);return s&&t.getSymbolAtLocation(s)}function mHt(t,u){if(la(u))return{text:u.fileName,pos:0,end:0};if((ed(u)||Wc(u))&&!mh(u)){const f=u.modifiers&&Le(u.modifiers,art);if(f)return{text:"default",pos:f.getStart(),end:f.getEnd()}}if(zl(u)){const f=u.getSourceFile(),p=gs(f.text,iE(u).pos),E=p+6,v=t.getTypeChecker(),b=v.getSymbolAtLocation(u.parent);return{text:`${b?`${v.symbolToString(b,u.parent)} `:""}static {}`,pos:p,end:E}}const s=DK(u)?u.parent.name:H.checkDefined(Za(u),"Expected call hierarchy item to have a name");let d=at(s)?fu(s):Pm(s)?s.text:Ps(s)&&Pm(s.expression)?s.expression.text:void 0;if(d===void 0){const f=t.getTypeChecker(),p=f.getSymbolAtLocation(s);p&&(d=f.symbolToString(p,u))}if(d===void 0){const f=EH();d=GN(p=>f.writeNode(4,u,u.getSourceFile(),p))}return{text:d,pos:s.getStart(),end:s.getEnd()}}function pHt(t){var u,s;if(DK(t))return rE(t.parent.parent.parent.parent)&&at(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 177:case 178:case 174:return t.parent.kind===210?(u=zse(t.parent))==null?void 0:u.getText():(s=Za(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(rE(t.parent)&&at(t.parent.parent.name))return t.parent.parent.name.getText()}}function srt(t,u){if(u.body)return u;if(hc(u))return X_(u.parent);if(ed(u)||dc(u)){const s=ort(t,u);return s&&s.valueDeclaration&&$0(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return u}function lrt(t,u){const s=ort(t,u);let d;if(s&&s.declarations){const f=$r(s.declarations),p=Vt(s.declarations,b=>({file:b.getSourceFile().fileName,pos:b.pos}));f.sort((b,B)=>dh(p[b].file,p[B].file)||p[b].pos-p[B].pos);const E=Vt(f,b=>s.declarations[b]);let v;for(const b of E)gw(b)&&((!v||v.parent!==b.parent||v.end!==b.pos)&&(d=xi(d,b)),v=b)}return d}function Rme(t,u){return zl(u)?u:$0(u)?srt(t,u)??lrt(t,u)??u:lrt(t,u)??u}function crt(t,u){const s=t.getTypeChecker();let d=!1;for(;;){if(gw(u))return Rme(s,u);if(urt(u)){const f=Tn(u,gw);return f&&Rme(s,f)}if(X3(u)){if(gw(u.parent))return Rme(s,u.parent);if(urt(u.parent)){const f=Tn(u.parent,gw);return f&&Rme(s,f)}return ua(u.parent)&&u.parent.initializer&&DK(u.parent.initializer)?u.parent.initializer:void 0}if(hc(u))return gw(u.parent)?u.parent:void 0;if(u.kind===126&&zl(u.parent)){u=u.parent;continue}if(ua(u)&&u.initializer&&DK(u.initializer))return u.initializer;if(!d){let f=s.getSymbolAtLocation(u);if(f&&(f.flags&2097152&&(f=s.getAliasedSymbol(f)),f.valueDeclaration)){d=!0,u=f.valueDeclaration;continue}}return}}function rBe(t,u){const s=u.getSourceFile(),d=mHt(t,u),f=pHt(u),p=tb(u),E=NM(u),v=Vc(gs(s.text,u.getFullStart(),!1,!0),u.getEnd()),b=Vc(d.pos,d.end);return{file:s.fileName,kind:p,kindModifiers:E,name:d.text,containerName:f,span:v,selectionSpan:b}}function gHt(t){return t!==void 0}function EHt(t){if(t.kind===Z0.EntryKind.Node){const{node:u}=t;if(Mhe(u,!0,!0)||K9e(u,!0,!0)||W9e(u,!0,!0)||G9e(u,!0,!0)||uw(u)||jhe(u)){const s=u.getSourceFile();return{declaration:Tn(u,gw)||s,range:tfe(u,s)}}}}function drt(t){return $s(t.declaration)}function _Ht(t,u){return{from:t,fromSpans:u}}function DHt(t,u){return _Ht(rBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function xHt(t,u,s){if(la(u)||_c(u)||zl(u))return[];const d=rrt(u),f=ti(Z0.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),d,0,{use:Z0.FindReferencesUse.References},EHt),gHt);return f?vN(f,drt,p=>DHt(t,p)):[]}function vHt(t,u){function s(f){const p=Dk(f)?f.tag:zh(f)?f.tagName:I0(f)||zl(f)?f:f.expression,E=crt(t,p);if(E){const v=tfe(p,f.getSourceFile());if(Ha(E))for(const b of E)u.push({declaration:b,range:v});else u.push({declaration:E,range:v})}}function d(f){if(f&&!(f.flags&33554432)){if(gw(f)){if(mr(f))for(const p of f.members)p.name&&Ps(p.name)&&d(p.name.expression);return}switch(f.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(f);return;case 216:case 234:d(f.expression);return;case 260:case 169:d(f.name),d(f.initializer);return;case 213:s(f),d(f.expression),L(f.arguments,d);return;case 214:s(f),d(f.expression),L(f.arguments,d);return;case 215:s(f),d(f.tag),d(f.template);return;case 286:case 285:s(f),d(f.tagName),d(f.attributes);return;case 170:s(f),d(f.expression);return;case 211:case 212:s(f),ao(f,d);break;case 238:d(f.expression);return}q_(f)||ao(f,d)}}return d}function CHt(t,u){L(t.statements,u)}function bHt(t,u){!Yu(t,128)&&t.body&&rE(t.body)&&L(t.body.statements,u)}function yHt(t,u,s){const d=srt(t,u);d&&(L(d.parameters,s),s(d.body))}function kHt(t,u){u(t.body)}function FHt(t,u){L(t.modifiers,u);const s=B2(t);s&&u(s.expression);for(const d of t.members)Hp(d)&&L(d.modifiers,u),ko(d)?u(d.initializer):hc(d)&&d.body?(L(d.parameters,u),u(d.body)):zl(d)&&u(d)}function AHt(t,u){const s=[],d=vHt(t,s);switch(u.kind){case 312:CHt(u,d);break;case 267:bHt(u,d);break;case 262:case 218:case 219:case 174:case 177:case 178:yHt(t.getTypeChecker(),u,d);break;case 263:case 231:FHt(u,d);break;case 175:kHt(u,d);break;default:H.assertNever(u)}return s}function SHt(t,u){return{to:t,fromSpans:u}}function BHt(t,u){return SHt(rBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function wHt(t,u){return u.flags&33554432||n3(u)?[]:vN(AHt(t,u),drt,s=>BHt(t,s))}var THt=o({"src/services/callHierarchy.ts"(){rr()}}),o9={};h(o9,{createCallHierarchyItem:()=>rBe,getIncomingCalls:()=>xHt,getOutgoingCalls:()=>wHt,resolveCallHierarchyDeclaration:()=>crt});var LHt=o({"src/services/_namespaces/ts.CallHierarchy.ts"(){THt()}}),hrt={};h(hrt,{TokenEncodingConsts:()=>Z8e,TokenModifier:()=>Q8e,TokenType:()=>Y8e,getEncodedSemanticClassifications:()=>q8e,getSemanticClassifications:()=>Out});var NHt=o({"src/services/_namespaces/ts.classifier.v2020.ts"(){Hut()}}),aBe={};h(aBe,{v2020:()=>hrt});var PHt=o({"src/services/_namespaces/ts.classifier.ts"(){NHt()}});function Cg(t,u,s){return sBe(t,jk(s),u,void 0,void 0)}function Ro(t,u,s,d,f,p){return sBe(t,jk(s),u,d,jk(f),p)}function oBe(t,u,s,d,f,p){return sBe(t,jk(s),u,d,f&&jk(f),p)}function sBe(t,u,s,d,f,p){return{fixName:t,description:u,changes:s,fixId:d,fixAllDescription:f,commands:p?[p]:void 0}}function Xo(t){for(const u of t.errorCodes)lBe=void 0,Ome.add(String(u),t);if(t.fixIds)for(const u of t.fixIds)H.assert(!jme.has(u)),jme.set(u,t)}function MHt(){return lBe??(lBe=ga(Ome.keys()))}function zHt(t,u){const{errorCodes:s}=t;let d=0;for(const p of u)if(kt(s,p.code)&&d++,d>1)break;const f=d<2;return({fixId:p,fixAllDescription:E,...v})=>f?v:{...v,fixId:p,fixAllDescription:E}}function IHt(t){const u=mrt(t),s=Ome.get(String(t.errorCode));return ju(s,d=>Vt(d.getCodeActions(t),zHt(d,u)))}function RHt(t){return jme.get(Po(t.fixId,Ja)).getAllCodeActions(t)}function Ew(t,u){return{changes:t,commands:u}}function frt(t,u){return{fileName:t,textChanges:u}}function f0(t,u,s){const d=[],f=iu.ChangeTracker.with(t,p=>_w(t,u,E=>s(p,E,d)));return Ew(f,d.length===0?void 0:d)}function _w(t,u,s){for(const d of mrt(t))kt(u,d.code)&&s(d)}function mrt({program:t,sourceFile:u,cancellationToken:s}){return[...t.getSemanticDiagnostics(u,s),...t.getSyntacticDiagnostics(u,s),...Jfe(u,t,s)]}var Ome,jme,lBe,OHt=o({"src/services/codeFixProvider.ts"(){rr(),Ome=wm(),jme=new Map}});function prt(t,u,s){const d=AV(s)?q.createAsExpression(s.expression,q.createKeywordTypeNode(159)):q.createTypeAssertion(q.createKeywordTypeNode(159),s.expression);t.replaceNode(u,s.expression,d)}function grt(t,u){if(!Qn(t))return Tn(Ca(t,u),s=>AV(s)||aFe(s))}var Vme,cBe,jHt=o({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){rr(),rs(),Vme="addConvertToUnknownForNonOverlappingTypes",cBe=[F.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],Xo({errorCodes:cBe,getCodeActions:function(u){const s=grt(u.sourceFile,u.span.start);if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>prt(f,u.sourceFile,s));return[Ro(Vme,d,F.Add_unknown_conversion_for_non_overlapping_types,Vme,F.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Vme],getAllCodeActions:t=>f0(t,cBe,(u,s)=>{const d=grt(s.file,s.start);d&&prt(u,s.file,d)})})}}),VHt=o({"src/services/codefixes/addEmptyExportDeclaration.ts"(){rr(),rs(),Xo({errorCodes:[F.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,F.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,F.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(u){const{sourceFile:s}=u,d=iu.ChangeTracker.with(u,f=>{const p=q.createExportDeclaration(void 0,!1,q.createNamedExports([]),void 0);f.insertNodeAtEndOfScope(s,s,p)});return[Cg("addEmptyExportDeclaration",d,F.Add_export_to_make_this_file_into_a_module)]}})}});function Ert(t,u,s,d){const f=s(p=>HHt(p,t.sourceFile,u,d));return Ro(Hme,f,F.Add_async_modifier_to_containing_function,Hme,F.Add_all_missing_async_modifiers)}function HHt(t,u,s,d){if(d&&d.has($s(s)))return;d==null||d.add($s(s));const f=q.replaceModifiers(ll(s,!0),q.createNodeArray(q.createModifiersFromModifierFlags(Rx(s)|1024)));t.replaceNode(u,s,f)}function _rt(t,u){if(!u)return;const s=Ca(t,u.start);return Tn(s,f=>f.getStart(t)Ec(u)?"quit":(q0(f)||dc(f)||A0(f)||ed(f))&&sw(u,of(f,t)))}function KHt(t,u){return({start:s,length:d,relatedInformation:f,code:p})=>UD(s)&&UD(d)&&sw({start:s,length:d},t)&&p===u&&!!f&&Oe(f,E=>E.code===F.Did_you_mean_to_mark_this_function_as_async.code)}var Hme,dBe,WHt=o({"src/services/codefixes/addMissingAsync.ts"(){rr(),rs(),Hme="addMissingAsync",dBe=[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_comparable_to_type_1.code],Xo({fixIds:[Hme],errorCodes:dBe,getCodeActions:function(u){const{sourceFile:s,errorCode:d,cancellationToken:f,program:p,span:E}=u,v=Le(p.getTypeChecker().getDiagnostics(s,f),KHt(E,d)),b=v&&v.relatedInformation&&Le(v.relatedInformation,T=>T.code===F.Did_you_mean_to_mark_this_function_as_async.code),B=_rt(s,b);return B?[Ert(u,B,T=>iu.ChangeTracker.with(u,T))]:void 0},getAllCodeActions:t=>{const{sourceFile:u}=t,s=new Set;return f0(t,dBe,(d,f)=>{const p=f.relatedInformation&&Le(f.relatedInformation,b=>b.code===F.Did_you_mean_to_mark_this_function_as_async.code),E=_rt(u,p);return E?Ert(t,E,b=>(b(d),[]),s):void 0})}})}});function Drt(t,u,s,d,f){const p=yfe(t,s);return p&&GHt(t,u,s,d,f)&&Crt(p)?p:void 0}function xrt(t,u,s,d,f,p){const{sourceFile:E,program:v,cancellationToken:b}=t,B=JHt(u,E,b,v,d);if(B){const k=f(T=>{L(B.initializers,({expression:M})=>hBe(T,s,E,d,M,p)),p&&B.needsSecondPassForFixAll&&hBe(T,s,E,d,u,p)});return Cg("addMissingAwaitToInitializer",k,B.initializers.length===1?[F.Add_await_to_initializer_for_0,B.initializers[0].declarationSymbol.name]:F.Add_await_to_initializers)}}function vrt(t,u,s,d,f,p){const E=f(v=>hBe(v,s,t.sourceFile,d,u,p));return Ro(Kme,E,F.Add_await,Kme,F.Fix_all_expressions_possibly_missing_await)}function GHt(t,u,s,d,f){const E=f.getTypeChecker().getDiagnostics(t,d);return Oe(E,({start:v,length:b,relatedInformation:B,code:k})=>UD(v)&&UD(b)&&sw({start:v,length:b},s)&&k===u&&!!B&&Oe(B,T=>T.code===F.Did_you_forget_to_use_await.code))}function JHt(t,u,s,d,f){const p=$Ht(t,f);if(!p)return;let E=p.isCompleteFix,v;for(const b of p.identifiers){const B=f.getSymbolAtLocation(b);if(!B)continue;const k=ur(B.valueDeclaration,ua),T=k&&ur(k.name,at),M=Fv(k,243);if(!k||!M||k.type||!k.initializer||M.getSourceFile()!==u||Yu(M,32)||!T||!Crt(k.initializer)){E=!1;continue}const z=d.getSemanticDiagnostics(u,s);if(Z0.Core.eachSymbolReferenceInFile(T,f,u,J=>b!==J&&!UHt(J,z,u,f))){E=!1;continue}(v||(v=[])).push({expression:k.initializer,declarationSymbol:B})}return v&&{initializers:v,needsSecondPassForFixAll:!E}}function $Ht(t,u){if(Iu(t.parent)&&at(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(at(t))return{identifiers:[t],isCompleteFix:!0};if(Xn(t)){let s,d=!0;for(const f of[t.left,t.right]){const p=u.getTypeAtLocation(f);if(u.getPromisedTypeOfPromise(p)){if(!at(f)){d=!1;continue}(s||(s=[])).push(f)}}return s&&{identifiers:s,isCompleteFix:d}}}function UHt(t,u,s,d){const f=Iu(t.parent)?t.parent.name:Xn(t.parent)?t.parent:t,p=Le(u,E=>E.start===f.getStart(s)&&E.start+E.length===f.getEnd());return p&&kt(Wme,p.code)||d.getTypeAtLocation(f).flags&1}function Crt(t){return t.flags&65536||!!Tn(t,u=>u.parent&&q0(u.parent)&&u.parent.body===u||po(u)&&(u.parent.kind===262||u.parent.kind===218||u.parent.kind===219||u.parent.kind===174))}function hBe(t,u,s,d,f,p){if(SV(f.parent)&&!f.parent.awaitModifier){const E=d.getTypeAtLocation(f),v=d.getAsyncIterableType();if(v&&d.isTypeAssignableTo(E,v)){const b=f.parent;t.replaceNode(s,b,q.updateForOfStatement(b,q.createToken(135),b.initializer,b.expression,b.statement));return}}if(Xn(f))for(const E of[f.left,f.right]){if(p&&at(E)){const B=d.getSymbolAtLocation(E);if(B&&p.has(Zo(B)))continue}const v=d.getTypeAtLocation(E),b=d.getPromisedTypeOfPromise(v)?q.createAwaitExpression(E):E;t.replaceNode(s,E,b)}else if(u===fBe&&Iu(f.parent)){if(p&&at(f.parent.expression)){const E=d.getSymbolAtLocation(f.parent.expression);if(E&&p.has(Zo(E)))return}t.replaceNode(s,f.parent.expression,q.createParenthesizedExpression(q.createAwaitExpression(f.parent.expression))),brt(t,f.parent.expression,s)}else if(kt(mBe,u)&&$E(f.parent)){if(p&&at(f)){const E=d.getSymbolAtLocation(f);if(E&&p.has(Zo(E)))return}t.replaceNode(s,f,q.createParenthesizedExpression(q.createAwaitExpression(f))),brt(t,f,s)}else{if(p&&ua(f.parent)&&at(f.parent.name)){const E=d.getSymbolAtLocation(f.parent.name);if(E&&!r0(p,Zo(E)))return}t.replaceNode(s,f,q.createAwaitExpression(f))}}function brt(t,u,s){const d=td(u.pos,s);d&&TX(d.end,d.parent,s)&&t.insertText(s,u.getStart(s),";")}var Kme,fBe,mBe,Wme,qHt=o({"src/services/codefixes/addMissingAwait.ts"(){rr(),rs(),Kme="addMissingAwait",fBe=F.Property_0_does_not_exist_on_type_1.code,mBe=[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],Wme=[F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.Operator_0_cannot_be_applied_to_type_1.code,F.Operator_0_cannot_be_applied_to_types_1_and_2.code,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,F.This_condition_will_always_return_true_since_this_0_is_always_defined.code,F.Type_0_is_not_an_array_type.code,F.Type_0_is_not_an_array_type_or_a_string_type.code,F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,fBe,...mBe],Xo({fixIds:[Kme],errorCodes:Wme,getCodeActions:function(u){const{sourceFile:s,errorCode:d,span:f,cancellationToken:p,program:E}=u,v=Drt(s,d,f,p,E);if(!v)return;const b=u.program.getTypeChecker(),B=k=>iu.ChangeTracker.with(u,k);return Dr([xrt(u,v,d,b,B),vrt(u,v,d,b,B)])},getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=t.program.getTypeChecker(),p=new Set;return f0(t,Wme,(E,v)=>{const b=Drt(u,v.code,v,d,s);if(!b)return;const B=k=>(k(E),[]);return xrt(t,b,v.code,f,B,p)||vrt(t,b,v.code,f,B,p)})}})}});function yrt(t,u,s,d,f){const p=Ca(u,s),E=Tn(p,B=>M8(B.parent)?B.parent.initializer===B:ZHt(B)?!1:"quit");if(E)return Gme(t,E,u,f);const v=p.parent;if(Xn(v)&&v.operatorToken.kind===64&&Od(v.parent))return Gme(t,p,u,f);if(Dh(v)){const B=d.getTypeChecker();return ye(v.elements,k=>YHt(k,B))?Gme(t,v,u,f):void 0}const b=Tn(p,B=>Od(B.parent)?!0:QHt(B)?!1:"quit");if(b){const B=d.getTypeChecker();return krt(b,B)?Gme(t,b,u,f):void 0}}function Gme(t,u,s,d){(!d||r0(d,u))&&t.insertModifierBefore(s,87,u)}function ZHt(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function YHt(t,u){const s=at(t)?t:ld(t,!0)&&at(t.left)?t.left:void 0;return!!s&&!u.getSymbolAtLocation(s)}function QHt(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function krt(t,u){return Xn(t)?t.operatorToken.kind===28?ye([t.left,t.right],s=>krt(s,u)):t.operatorToken.kind===64&&at(t.left)&&!u.getSymbolAtLocation(t.left):!1}var Jme,pBe,XHt=o({"src/services/codefixes/addMissingConst.ts"(){rr(),rs(),Jme="addMissingConst",pBe=[F.Cannot_find_name_0.code,F.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],Xo({errorCodes:pBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>yrt(d,u.sourceFile,u.span.start,u.program));if(s.length>0)return[Ro(Jme,s,F.Add_const_to_unresolved_variable,Jme,F.Add_const_to_all_unresolved_variables)]},fixIds:[Jme],getAllCodeActions:t=>{const u=new Set;return f0(t,pBe,(s,d)=>yrt(s,d.file,d.start,t.program,u))}})}});function Frt(t,u,s,d){const f=Ca(u,s);if(!at(f))return;const p=f.parent;p.kind===172&&(!d||r0(d,p))&&t.insertModifierBefore(u,138,p)}var $me,gBe,eKt=o({"src/services/codefixes/addMissingDeclareProperty.ts"(){rr(),rs(),$me="addMissingDeclareProperty",gBe=[F.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],Xo({errorCodes:gBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Frt(d,u.sourceFile,u.span.start));if(s.length>0)return[Ro($me,s,F.Prefix_with_declare,$me,F.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[$me],getAllCodeActions:t=>{const u=new Set;return f0(t,gBe,(s,d)=>Frt(s,d.file,d.start,u))}})}});function Art(t,u,s){const d=Ca(u,s),f=Tn(d,g1);H.assert(!!f,"Expected position to be owned by a decorator.");const p=q.createCallExpression(f.expression,void 0,void 0);t.replaceNode(u,f.expression,p)}var Ume,EBe,tKt=o({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){rr(),rs(),Ume="addMissingInvocationForDecorator",EBe=[F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],Xo({errorCodes:EBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Art(d,u.sourceFile,u.span.start));return[Ro(Ume,s,F.Call_decorator_expression,Ume,F.Add_to_all_uncalled_decorators)]},fixIds:[Ume],getAllCodeActions:t=>f0(t,EBe,(u,s)=>Art(u,s.file,s.start))})}});function Srt(t,u,s){const d=Ca(u,s),f=d.parent;if(!io(f))return H.fail("Tried to add a parameter name to a non-parameter: "+H.formatSyntaxKind(d.kind));const p=f.parent.parameters.indexOf(f);H.assert(!f.type,"Tried to add a parameter name to a parameter that already had one."),H.assert(p>-1,"Parameter not found in parent parameter list.");let E=f.name.getEnd(),v=q.createTypeReferenceNode(f.name,void 0),b=Brt(u,f);for(;b;)v=q.createArrayTypeNode(v),E=b.getEnd(),b=Brt(u,b);const B=q.createParameterDeclaration(f.modifiers,f.dotDotDotToken,"arg"+p,f.questionToken,f.dotDotDotToken&&!oY(v)?q.createArrayTypeNode(v):v,f.initializer);t.replaceRange(u,s4(f.getStart(u),E),B)}function Brt(t,u){const s=ib(u.name,u.parent,t);if(s&&s.kind===23&&_k(s.parent)&&io(s.parent.parent))return s.parent.parent}var qme,_Be,iKt=o({"src/services/codefixes/addNameToNamelessParameter.ts"(){rr(),rs(),qme="addNameToNamelessParameter",_Be=[F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],Xo({errorCodes:_Be,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Srt(d,u.sourceFile,u.span.start));return[Ro(qme,s,F.Add_parameter_name,qme,F.Add_names_to_all_parameters_without_names)]},fixIds:[qme],getAllCodeActions:t=>f0(t,_Be,(u,s)=>Srt(u,s.file,s.start))})}});function nKt(t,u,s){var d,f;const p=wrt(yfe(t,u),s);if(!p)return _t;const{source:E,target:v}=p,b=uKt(E,v,s)?s.getTypeAtLocation(v.expression):s.getTypeAtLocation(v);return(f=(d=b.symbol)==null?void 0:d.declarations)!=null&&f.some(B=>zn(B).fileName.match(/\.d\.ts$/))?_t:s.getExactOptionalProperties(b)}function uKt(t,u,s){return Iu(u)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(u.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function wrt(t,u){var s;if(t){if(Xn(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(ua(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Mo(t.parent)){const d=u.getSymbolAtLocation(t.parent.expression);if(!(d!=null&&d.valueDeclaration)||!a7(d.valueDeclaration.kind)||!Wt(t))return;const f=t.parent.arguments.indexOf(t);if(f===-1)return;const p=d.valueDeclaration.parameters[f].name;if(at(p))return{source:t,target:p}}else if(Jc(t.parent)&&at(t.parent.name)||pm(t.parent)){const d=wrt(t.parent.parent,u);if(!d)return;const f=u.getPropertyOfType(u.getTypeAtLocation(d.target),t.parent.name.text),p=(s=f==null?void 0:f.declarations)==null?void 0:s[0];return p?{source:Jc(t.parent)?t.parent.initializer:t.parent.name,target:p}:void 0}}else return}function rKt(t,u){for(const s of u){const d=s.valueDeclaration;if(d&&(Mm(d)||ko(d))&&d.type){const f=q.createUnionTypeNode([...d.type.kind===192?d.type.types:[d.type],q.createTypeReferenceNode("undefined")]);t.replaceNode(d.getSourceFile(),d.type,f)}}}var DBe,Trt,aKt=o({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){rr(),rs(),DBe="addOptionalPropertyUndefined",Trt=[F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.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],Xo({errorCodes:Trt,getCodeActions(t){const u=t.program.getTypeChecker(),s=nKt(t.sourceFile,t.span,u);if(!s.length)return;const d=iu.ChangeTracker.with(t,f=>rKt(f,s));return[Cg(DBe,d,F.Add_undefined_to_optional_property_type)]},fixIds:[DBe]})}});function Lrt(t,u){const s=Ca(t,u);return ur(io(s.parent)?s.parent.parent:s.parent,Nrt)}function Nrt(t){return oKt(t)&&Prt(t)}function Prt(t){return $0(t)?t.parameters.some(Prt)||!t.type&&!!VO(t):!t.type&&!!vv(t)}function Mrt(t,u,s){if($0(s)&&(VO(s)||s.parameters.some(d=>!!vv(d)))){if(!s.typeParameters){const f=Oq(s);f.length&&t.insertTypeParameters(u,s,f)}const d=q0(s)&&!a0(s,21,u);d&&t.insertNodeBefore(u,Pn(s.parameters),q.createToken(21));for(const f of s.parameters)if(!f.type){const p=vv(f);p&&t.tryInsertTypeAnnotation(u,f,yt(p,ob,Xr))}if(d&&t.insertNodeAfter(u,Cr(s.parameters),q.createToken(22)),!s.type){const f=VO(s);f&&t.tryInsertTypeAnnotation(u,s,yt(f,ob,Xr))}}else{const d=H.checkDefined(vv(s),"A JSDocType for this declaration should exist");H.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(u,s,yt(d,ob,Xr))}}function oKt(t){return $0(t)||t.kind===260||t.kind===171||t.kind===172}function ob(t){switch(t.kind){case 319:case 320:return q.createTypeReferenceNode("any",_t);case 323:return lKt(t);case 322:return ob(t.type);case 321:return cKt(t);case 325:return dKt(t);case 324:return hKt(t);case 183:return mKt(t);case 329:return sKt(t);default:const u=rn(t,ob,Dg);return Zn(u,1),u}}function sKt(t){const u=q.createTypeLiteralNode(Vt(t.jsDocPropertyTags,s=>q.createPropertySignature(void 0,at(s.name)?s.name:s.name.right,aV(s)?q.createToken(58):void 0,s.typeExpression&&yt(s.typeExpression.type,ob,Xr)||q.createKeywordTypeNode(133))));return Zn(u,1),u}function lKt(t){return q.createUnionTypeNode([yt(t.type,ob,Xr),q.createTypeReferenceNode("undefined",_t)])}function cKt(t){return q.createUnionTypeNode([yt(t.type,ob,Xr),q.createTypeReferenceNode("null",_t)])}function dKt(t){return q.createArrayTypeNode(yt(t.type,ob,Xr))}function hKt(t){return q.createFunctionTypeNode(_t,t.parameters.map(fKt),t.type??q.createKeywordTypeNode(133))}function fKt(t){const u=t.parent.parameters.indexOf(t),s=t.type.kind===325&&u===t.parent.parameters.length-1,d=t.name||(s?"rest":"arg"+u),f=s?q.createToken(26):t.dotDotDotToken;return q.createParameterDeclaration(t.modifiers,f,d,t.questionToken,yt(t.type,ob,Xr),t.initializer)}function mKt(t){let u=t.typeName,s=t.typeArguments;if(at(t.typeName)){if(xq(t))return pKt(t);let d=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":d=d.toLowerCase();break;case"array":case"date":case"promise":d=d[0].toUpperCase()+d.slice(1);break}u=q.createIdentifier(d),(d==="Array"||d==="Promise")&&!t.typeArguments?s=q.createNodeArray([q.createTypeReferenceNode("any",_t)]):s=kn(t.typeArguments,ob,Xr)}return q.createTypeReferenceNode(u,s)}function pKt(t){const u=q.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,q.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=q.createTypeLiteralNode([q.createIndexSignature(void 0,[u],t.typeArguments[1])]);return Zn(s,1),s}var Zme,xBe,gKt=o({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){rr(),rs(),Zme="annotateWithTypeFromJSDoc",xBe=[F.JSDoc_types_may_be_moved_to_TypeScript_types.code],Xo({errorCodes:xBe,getCodeActions(t){const u=Lrt(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>Mrt(d,t.sourceFile,u));return[Ro(Zme,s,F.Annotate_with_type_from_JSDoc,Zme,F.Annotate_everything_with_types_from_JSDoc)]},fixIds:[Zme],getAllCodeActions:t=>f0(t,xBe,(u,s)=>{const d=Lrt(s.file,s.start);d&&Mrt(u,s.file,d)})})}});function zrt(t,u,s,d,f,p){const E=d.getSymbolAtLocation(Ca(u,s));if(!E||!E.valueDeclaration||!(E.flags&19))return;const v=E.valueDeclaration;if(ed(v)||A0(v))t.replaceNode(u,v,k(v));else if(ua(v)){const T=B(v);if(!T)return;const M=v.parent.parent;Ad(v.parent)&&v.parent.declarations.length>1?(t.delete(u,v),t.insertNodeAfter(u,M,T)):t.replaceNode(u,M,T)}function b(T){const M=[];return T.exports&&T.exports.forEach(J=>{if(J.name==="prototype"&&J.declarations){const K=J.declarations[0];if(J.declarations.length===1&&Iu(K)&&Xn(K.parent)&&K.parent.operatorToken.kind===64&&ys(K.parent.right)){const Y=K.parent.right;j(Y.symbol,void 0,M)}}else j(J,[q.createToken(126)],M)}),T.members&&T.members.forEach((J,K)=>{var Y,oe,se,ge;if(K==="constructor"&&J.valueDeclaration){const ae=(ge=(se=(oe=(Y=T.exports)==null?void 0:Y.get("prototype"))==null?void 0:oe.declarations)==null?void 0:se[0])==null?void 0:ge.parent;ae&&Xn(ae)&&ys(ae.right)&&Oe(ae.right.properties,Qme)||t.delete(u,J.valueDeclaration.parent);return}j(J,void 0,M)}),M;function z(J,K){return I0(J)?Iu(J)&&Qme(J)?!0:Co(K):ye(J.properties,Y=>!!(dc(Y)||NU(Y)||Jc(Y)&&A0(Y.initializer)&&Y.name||Qme(Y)))}function j(J,K,Y){if(!(J.flags&8192)&&!(J.flags&4096))return;const oe=J.valueDeclaration,se=oe.parent,ge=se.right;if(!z(oe,ge)||Oe(Y,Se=>{const Ne=Za(Se);return!!(Ne&&at(Ne)&&fu(Ne)===lc(J))}))return;const ae=se.parent&&se.parent.kind===244?se.parent:se;if(t.delete(u,ae),!ge){Y.push(q.createPropertyDeclaration(K,J.name,void 0,void 0,void 0));return}if(I0(oe)&&(A0(ge)||q0(ge))){const Se=Hm(u,f),Ne=EKt(oe,p,Se);Ne&&Ce(Y,ge,Ne);return}else if(ys(ge)){L(ge.properties,Se=>{(dc(Se)||NU(Se))&&Y.push(Se),Jc(Se)&&A0(Se.initializer)&&Ce(Y,Se.initializer,Se.name),Qme(Se)});return}else{if(gh(u)||!Iu(oe))return;const Se=q.createPropertyDeclaration(K,oe.name,void 0,void 0,ge);cw(se.parent,Se,u),Y.push(Se);return}function Ce(Se,Ne,pe){return A0(Ne)?ne(Se,Ne,pe):ve(Se,Ne,pe)}function ne(Se,Ne,pe){const fe=Hi(K,Yme(Ne,134)),xe=q.createMethodDeclaration(fe,void 0,pe,void 0,void 0,Ne.parameters,void 0,Ne.body);cw(se,xe,u),Se.push(xe)}function ve(Se,Ne,pe){const fe=Ne.body;let xe;fe.kind===241?xe=fe:xe=q.createBlock([q.createReturnStatement(fe)]);const Be=Hi(K,Yme(Ne,134)),Ge=q.createMethodDeclaration(Be,void 0,pe,void 0,void 0,Ne.parameters,void 0,xe);cw(se,Ge,u),Se.push(Ge)}}}function B(T){const M=T.initializer;if(!M||!A0(M)||!at(T.name))return;const z=b(T.symbol);M.body&&z.unshift(q.createConstructorDeclaration(void 0,M.parameters,M.body));const j=Yme(T.parent.parent,95);return q.createClassDeclaration(j,T.name,void 0,void 0,z)}function k(T){const M=b(E);T.body&&M.unshift(q.createConstructorDeclaration(void 0,T.parameters,T.body));const z=Yme(T,95);return q.createClassDeclaration(z,T.name,void 0,void 0,M)}}function Yme(t,u){return Hp(t)?ti(t.modifiers,s=>s.kind===u):void 0}function Qme(t){return t.name?!!(at(t.name)&&t.name.text==="constructor"):!1}function EKt(t,u,s){if(Iu(t))return t.name;const d=t.argumentExpression;if(Of(d))return d;if(t0(d))return Lm(d.text,Os(u))?q.createIdentifier(d.text):T7(d)?q.createStringLiteral(d.text,s===0):d}var Xme,vBe,_Kt=o({"src/services/codefixes/convertFunctionToEs6Class.ts"(){rr(),rs(),Xme="convertFunctionToEs6Class",vBe=[F.This_constructor_function_may_be_converted_to_a_class_declaration.code],Xo({errorCodes:vBe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>zrt(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Ro(Xme,u,F.Convert_function_to_an_ES2015_class,Xme,F.Convert_all_constructor_functions_to_classes)]},fixIds:[Xme],getAllCodeActions:t=>f0(t,vBe,(u,s)=>zrt(u,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function Irt(t,u,s,d){const f=Ca(u,s);let p;if(at(f)&&ua(f.parent)&&f.parent.initializer&&$0(f.parent.initializer)?p=f.parent.initializer:p=ur(Nm(Ca(u,s)),qfe),!p)return;const E=new Map,v=Qn(p),b=xKt(p,d),B=vKt(p,d,E);if(!$fe(B,d))return;const k=B.body&&po(B.body)?DKt(B.body,d):_t,T={checker:d,synthNamesMap:E,setOfExpressionsToReturn:b,isInJSFile:v};if(!k.length)return;const M=gs(u.text,iE(p).pos);t.insertModifierAt(u,M,134,{suffix:" "});for(const z of k)if(ao(z,function j(J){if(Mo(J)){const K=Dw(J,J,T,!1);if(s9())return!0;t.replaceNodeWithNodes(u,z,K)}else if(!Co(J)&&(ao(J,j),s9()))return!0}),s9())return}function DKt(t,u){const s=[];return y2(t,d=>{UX(d,u)&&s.push(d)}),s}function xKt(t,u){if(!t.body)return new Set;const s=new Set;return ao(t.body,function d(f){xK(f,u,"then")?(s.add($s(f)),L(f.arguments,d)):xK(f,u,"catch")||xK(f,u,"finally")?(s.add($s(f)),ao(f,d)):Ort(f,u)?s.add($s(f)):ao(f,d)}),s}function xK(t,u,s){if(!Mo(t))return!1;const f=NH(t,s)&&u.getTypeAtLocation(t);return!!(f&&u.getPromisedTypeOfPromise(f))}function Rrt(t,u){return(Gu(t)&4)!==0&&t.target===u}function e4e(t,u,s){if(t.expression.name.escapedText==="finally")return;const d=s.getTypeAtLocation(t.expression.expression);if(Rrt(d,s.getPromiseType())||Rrt(d,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(u===qD(t.arguments,0))return qD(t.typeArguments,0);if(u===qD(t.arguments,1))return qD(t.typeArguments,1)}else return qD(t.typeArguments,0)}function Ort(t,u){return Wt(t)?!!u.getPromisedTypeOfPromise(u.getTypeAtLocation(t)):!1}function vKt(t,u,s){const d=new Map,f=wm();return ao(t,function p(E){if(!at(E)){ao(E,p);return}const v=u.getSymbolAtLocation(E);if(v){const b=u.getTypeAtLocation(E),B=Grt(b,u),k=Zo(v).toString();if(B&&!io(E.parent)&&!$0(E.parent)&&!s.has(k)){const T=Ki(B.parameters),M=(T==null?void 0:T.valueDeclaration)&&io(T.valueDeclaration)&&ur(T.valueDeclaration.name,at)||q.createUniqueName("result",16),z=jrt(M,f);s.set(k,z),f.add(M.text,v)}else if(E.parent&&(io(E.parent)||ua(E.parent)||js(E.parent))){const T=E.text,M=f.get(T);if(M&&M.some(z=>z!==v)){const z=jrt(E,f);d.set(k,z.identifier),s.set(k,z),f.add(T,v)}else{const z=ll(E);s.set(k,$M(z)),f.add(T,v)}}}}),UH(t,!0,p=>{if(js(p)&&at(p.name)&&Rp(p.parent)){const E=u.getSymbolAtLocation(p.name),v=E&&d.get(String(Zo(E)));if(v&&v.text!==(p.name||p.propertyName).getText())return q.createBindingElement(p.dotDotDotToken,p.propertyName||p.name,v,p.initializer)}else if(at(p)){const E=u.getSymbolAtLocation(p),v=E&&d.get(String(Zo(E)));if(v)return q.createIdentifier(v.text)}})}function jrt(t,u){const s=(u.get(t.text)||_t).length,d=s===0?t:q.createIdentifier(t.text+"_"+s);return $M(d)}function s9(){return!xee}function Zv(){return xee=!1,_t}function Dw(t,u,s,d,f){if(xK(u,s.checker,"then"))return yKt(u,qD(u.arguments,0),qD(u.arguments,1),s,d,f);if(xK(u,s.checker,"catch"))return Krt(u,qD(u.arguments,0),s,d,f);if(xK(u,s.checker,"finally"))return bKt(u,qD(u.arguments,0),s,d,f);if(Iu(u))return Dw(t,u.expression,s,d,f);const p=s.checker.getTypeAtLocation(u);return p&&s.checker.getPromisedTypeOfPromise(p)?(H.assertNode(Wl(u).parent,Iu),kKt(t,u,s,d,f)):Zv()}function t4e({checker:t},u){if(u.kind===106)return!0;if(at(u)&&!al(u)&&fu(u)==="undefined"){const s=t.getSymbolAtLocation(u);return!s||t.isUndefinedSymbol(s)}return!1}function CKt(t){const u=q.createUniqueName(t.identifier.text,16);return $M(u)}function Vrt(t,u,s){let d;return s&&!CK(t,u)&&(vK(s)?(d=s,u.synthNamesMap.forEach((f,p)=>{if(f.identifier.text===s.identifier.text){const E=CKt(s);u.synthNamesMap.set(p,E)}})):d=$M(q.createUniqueName("result",16),s.types),kBe(d)),d}function Hrt(t,u,s,d,f){const p=[];let E;if(d&&!CK(t,u)){E=ll(kBe(d));const v=d.types,b=u.checker.getUnionType(v,2),B=u.isInJSFile?void 0:u.checker.typeToTypeNode(b,void 0,void 0),k=[q.createVariableDeclaration(E,void 0,B)],T=q.createVariableStatement(void 0,q.createVariableDeclarationList(k,1));p.push(T)}return p.push(s),f&&E&&SKt(f)&&p.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(qrt(f)),void 0,void 0,E)],2))),p}function bKt(t,u,s,d,f){if(!u||t4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=Vrt(t,s,f),E=Dw(t,t.expression.expression,s,!0,p);if(s9())return Zv();const v=bBe(u,d,void 0,void 0,t,s);if(s9())return Zv();const b=q.createBlock(E),B=q.createBlock(v),k=q.createTryStatement(b,void 0,B);return Hrt(t,s,k,p,f)}function Krt(t,u,s,d,f){if(!u||t4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=$rt(u,s),E=Vrt(t,s,f),v=Dw(t,t.expression.expression,s,!0,E);if(s9())return Zv();const b=bBe(u,d,E,p,t,s);if(s9())return Zv();const B=q.createBlock(v),k=q.createCatchClause(p&&ll(Dee(p)),q.createBlock(b)),T=q.createTryStatement(B,k,void 0);return Hrt(t,s,T,E,f)}function yKt(t,u,s,d,f,p){if(!u||t4e(d,u))return Krt(t,s,d,f,p);if(s&&!t4e(d,s))return Zv();const E=$rt(u,d),v=Dw(t.expression.expression,t.expression.expression,d,!0,E);if(s9())return Zv();const b=bBe(u,f,p,E,t,d);return s9()?Zv():Hi(v,b)}function kKt(t,u,s,d,f){if(CK(t,s)){let p=ll(u);return d&&(p=q.createAwaitExpression(p)),[q.createReturnStatement(p)]}return i4e(f,q.createAwaitExpression(u),void 0)}function i4e(t,u,s){return!t||Urt(t)?[q.createExpressionStatement(u)]:vK(t)&&t.hasBeenDeclared?[q.createExpressionStatement(q.createAssignment(ll(yBe(t)),u))]:[q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ll(Dee(t)),void 0,s,u)],2))]}function CBe(t,u){if(u&&t){const s=q.createUniqueName("result",16);return[...i4e($M(s),t,u),q.createReturnStatement(s)]}return[q.createReturnStatement(t)]}function bBe(t,u,s,d,f,p){var E;switch(t.kind){case 106:break;case 211:case 80:if(!d)break;const v=q.createCallExpression(ll(t),void 0,vK(d)?[yBe(d)]:[]);if(CK(f,p))return CBe(v,e4e(f,t,p.checker));const b=p.checker.getTypeAtLocation(t),B=p.checker.getSignaturesOfType(b,0);if(!B.length)return Zv();const k=B[0].getReturnType(),T=i4e(s,q.createAwaitExpression(v),e4e(f,t,p.checker));return s&&s.types.push(p.checker.getAwaitedType(k)||k),T;case 218:case 219:{const M=t.body,z=(E=Grt(p.checker.getTypeAtLocation(t),p.checker))==null?void 0:E.getReturnType();if(po(M)){let j=[],J=!1;for(const K of M.statements)if(Op(K))if(J=!0,UX(K,p.checker))j=j.concat(Jrt(p,K,u,s));else{const Y=z&&K.expression?Wrt(p.checker,z,K.expression):K.expression;j.push(...CBe(Y,e4e(f,t,p.checker)))}else{if(u&&y2(K,J3))return Zv();j.push(K)}return CK(f,p)?j.map(K=>ll(K)):FKt(j,s,p,J)}else{const j=Ufe(M,p.checker)?Jrt(p,q.createReturnStatement(M),u,s):_t;if(j.length>0)return j;if(z){const J=Wrt(p.checker,z,M);if(CK(f,p))return CBe(J,e4e(f,t,p.checker));{const K=i4e(s,J,void 0);return s&&s.types.push(p.checker.getAwaitedType(z)||z),K}}else return Zv()}}default:return Zv()}return _t}function Wrt(t,u,s){const d=ll(s);return t.getPromisedTypeOfPromise(u)?q.createAwaitExpression(d):d}function Grt(t,u){const s=u.getSignaturesOfType(t,0);return qu(s)}function FKt(t,u,s,d){const f=[];for(const p of t)if(Op(p)){if(p.expression){const E=Ort(p.expression,s.checker)?q.createAwaitExpression(p.expression):p.expression;u===void 0?f.push(q.createExpressionStatement(E)):vK(u)&&u.hasBeenDeclared?f.push(q.createExpressionStatement(q.createAssignment(yBe(u),E))):f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Dee(u),void 0,void 0,E)],2)))}}else f.push(ll(p));return!d&&u!==void 0&&f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Dee(u),void 0,void 0,q.createIdentifier("undefined"))],2))),f}function Jrt(t,u,s,d){let f=[];return ao(u,function p(E){if(Mo(E)){const v=Dw(E,E,t,s,d);if(f=f.concat(v),f.length>0)return}else Co(E)||ao(E,p)}),f}function $rt(t,u){const s=[];let d;if($0(t)){if(t.parameters.length>0){const b=t.parameters[0].name;d=f(b)}}else at(t)?d=p(t):Iu(t)&&at(t.name)&&(d=p(t.name));if(!d||"identifier"in d&&d.identifier.text==="undefined")return;return d;function f(b){if(at(b))return p(b);const B=ju(b.elements,k=>Fd(k)?[]:[f(k.name)]);return AKt(b,B)}function p(b){const B=v(b),k=E(B);return k&&u.synthNamesMap.get(Zo(k).toString())||$M(b,s)}function E(b){var B;return((B=ur(b,Zg))==null?void 0:B.symbol)??u.checker.getSymbolAtLocation(b)}function v(b){return b.original?b.original:b}}function Urt(t){return t?vK(t)?!t.identifier.text:ye(t.elements,Urt):!0}function $M(t,u=[]){return{kind:0,identifier:t,types:u,hasBeenDeclared:!1,hasBeenReferenced:!1}}function AKt(t,u=_t,s=[]){return{kind:1,bindingPattern:t,elements:u,types:s}}function yBe(t){return t.hasBeenReferenced=!0,t.identifier}function Dee(t){return vK(t)?kBe(t):qrt(t)}function qrt(t){for(const u of t.elements)Dee(u);return t.bindingPattern}function kBe(t){return t.hasBeenDeclared=!0,t.identifier}function vK(t){return t.kind===0}function SKt(t){return t.kind===1}function CK(t,u){return!!t.original&&u.setOfExpressionsToReturn.has($s(t.original))}var n4e,FBe,xee,BKt=o({"src/services/codefixes/convertToAsyncFunction.ts"(){rr(),rs(),n4e="convertToAsyncFunction",FBe=[F.This_may_be_converted_to_an_async_function.code],xee=!0,Xo({errorCodes:FBe,getCodeActions(t){xee=!0;const u=iu.ChangeTracker.with(t,s=>Irt(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return xee?[Ro(n4e,u,F.Convert_to_async_function,n4e,F.Convert_all_to_async_functions)]:[]},fixIds:[n4e],getAllCodeActions:t=>f0(t,FBe,(u,s)=>Irt(u,s.file,s.start,t.program.getTypeChecker()))})}});function wKt(t,u,s,d,f){var p;for(const E of t.imports){const v=(p=s.getResolvedModule(t,E.text,xg(t,E)))==null?void 0:p.resolvedModule;if(!v||v.resolvedFileName!==u.fileName)continue;const b=tP(E);switch(b.kind){case 271:d.replaceNode(t,b,g5(b.name,void 0,E,f));break;case 213:xf(b,!1)&&d.replaceNode(t,b,q.createPropertyAccessExpression(ll(b),"default"));break}}}function TKt(t,u,s,d,f){const p={original:WKt(t),additional:new Set},E=LKt(t,u,p);NKt(t,E,s);let v=!1,b;for(const B of ti(t.statements,Jl)){const k=Yrt(t,B,s,u,p,d,f);k&&qU(k,b??(b=new Map))}for(const B of ti(t.statements,k=>!Jl(k))){const k=PKt(t,B,u,s,p,d,E,b,f);v=v||k}return b==null||b.forEach((B,k)=>{s.replaceNode(t,k,B)}),v}function LKt(t,u,s){const d=new Map;return Zrt(t,f=>{const{text:p}=f.name;!d.has(p)&&(wq(f.name)||u.resolveName(p,f,111551,!0))&&d.set(p,u4e(`_${p}`,s))}),d}function NKt(t,u,s){Zrt(t,(d,f)=>{if(f)return;const{text:p}=d.name;s.replaceNode(t,d,q.createIdentifier(u.get(p)||p))})}function Zrt(t,u){t.forEachChild(function s(d){if(Iu(d)&&q2(t,d.expression)&&at(d.name)){const{parent:f}=d;u(d,Xn(f)&&f.left===d&&f.operatorToken.kind===64)}d.forEachChild(s)})}function PKt(t,u,s,d,f,p,E,v,b){switch(u.kind){case 243:return Yrt(t,u,d,s,f,p,b),!1;case 244:{const{expression:B}=u;switch(B.kind){case 213:return xf(B,!0)&&d.replaceNode(t,u,g5(void 0,void 0,B.arguments[0],b)),!1;case 226:{const{operatorToken:k}=B;return k.kind===64&&zKt(t,s,B,d,E,v)}}}default:return!1}}function Yrt(t,u,s,d,f,p,E){const{declarationList:v}=u;let b=!1;const B=Vt(v.declarations,k=>{const{name:T,initializer:M}=k;if(M){if(q2(t,M))return b=!0,UM([]);if(xf(M,!0))return b=!0,HKt(T,M.arguments[0],d,f,p,E);if(Iu(M)&&xf(M.expression,!0))return b=!0,MKt(T,M.name.text,M.expression.arguments[0],f,E)}return UM([q.createVariableStatement(void 0,q.createVariableDeclarationList([k],v.flags))])});if(b){s.replaceNodeWithNodes(t,u,ju(B,T=>T.newImports));let k;return L(B,T=>{T.useSitesToUnqualify&&qU(T.useSitesToUnqualify,k??(k=new Map))}),k}}function MKt(t,u,s,d,f){switch(t.kind){case 206:case 207:{const p=u4e(u,d);return UM([tat(p,u,s,f),r4e(void 0,t,q.createIdentifier(p))])}case 80:return UM([tat(t.text,u,s,f)]);default:return H.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function zKt(t,u,s,d,f,p){const{left:E,right:v}=s;if(!Iu(E))return!1;if(q2(t,E))if(q2(t,v))d.delete(t,s.parent);else{const b=ys(v)?IKt(v,p):xf(v,!0)?OKt(v.arguments[0],u):void 0;return b?(d.replaceNodeWithNodes(t,s.parent,b[0]),b[1]):(d.replaceRangeWithText(t,s4(E.getStart(t),v.pos),"export default"),!0)}else q2(t,E.expression)&&RKt(t,s,d,f);return!1}function IKt(t,u){const s=Zr(t.properties,d=>{switch(d.kind){case 177:case 178:case 304:case 305:return;case 303:return at(d.name)?VKt(d.name.text,d.initializer,u):void 0;case 174:return at(d.name)?eat(d.name.text,[q.createToken(95)],d,u):void 0;default:H.assertNever(d,`Convert to ES6 got invalid prop kind ${d.kind}`)}});return s&&[s,!1]}function RKt(t,u,s,d){const{text:f}=u.left.name,p=d.get(f);if(p!==void 0){const E=[r4e(void 0,p,u.right),BBe([q.createExportSpecifier(!1,p,f)])];s.replaceNodeWithNodes(t,u.parent,E)}else jKt(u,t,s)}function OKt(t,u){const s=t.text,d=u.getSymbolAtLocation(t),f=d?d.exports:iU;return f.has("export=")?[[ABe(s)],!0]:f.has("default")?f.size>1?[[Qrt(s),ABe(s)],!0]:[[ABe(s)],!0]:[[Qrt(s)],!1]}function Qrt(t){return BBe(void 0,t)}function ABe(t){return BBe([q.createExportSpecifier(!1,void 0,"default")],t)}function jKt({left:t,right:u,parent:s},d,f){const p=t.name.text;if((A0(u)||q0(u)||Xd(u))&&(!u.name||u.name.text===p)){f.replaceRange(d,{pos:t.getStart(d),end:u.getStart(d)},q.createToken(95),{suffix:" "}),u.name||f.insertName(d,u,p);const E=a0(s,27,d);E&&f.delete(d,E)}else f.replaceNodeRangeWithNodes(d,t.expression,a0(t,25,d),[q.createToken(95),q.createToken(87)],{joiner:" ",suffix:" "})}function VKt(t,u,s){const d=[q.createToken(95)];switch(u.kind){case 218:{const{name:p}=u;if(p&&p.text!==t)return f()}case 219:return eat(t,d,u,s);case 231:return JKt(t,d,u,s);default:return f()}function f(){return r4e(d,q.createIdentifier(t),SBe(u,s))}}function SBe(t,u){if(!u||!Oe(ga(u.keys()),d=>Vm(t,d)))return t;return Ha(t)?gfe(t,!0,s):UH(t,!0,s);function s(d){if(d.kind===211){const f=u.get(d);return u.delete(d),f}}}function HKt(t,u,s,d,f,p){switch(t.kind){case 206:{const E=Zr(t.elements,v=>v.dotDotDotToken||v.initializer||v.propertyName&&!at(v.propertyName)||!at(v.name)?void 0:iat(v.propertyName&&v.propertyName.text,v.name.text));if(E)return UM([g5(void 0,E,u,p)])}case 207:{const E=u4e(HBe(u.text,f),d);return UM([g5(q.createIdentifier(E),void 0,u,p),r4e(void 0,ll(t),q.createIdentifier(E))])}case 80:return KKt(t,u,s,d,p);default:return H.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function KKt(t,u,s,d,f){const p=s.getSymbolAtLocation(t),E=new Map;let v=!1,b;for(const k of d.original.get(t.text)){if(s.getSymbolAtLocation(k)!==p||k===t)continue;const{parent:T}=k;if(Iu(T)){const{name:{text:M}}=T;if(M==="default"){v=!0;const z=k.getText();(b??(b=new Map)).set(T,q.createIdentifier(z))}else{H.assert(T.expression===k,"Didn't expect expression === use");let z=E.get(M);z===void 0&&(z=u4e(M,d),E.set(M,z)),(b??(b=new Map)).set(T,q.createIdentifier(z))}}else v=!0}const B=E.size===0?void 0:ga(zr(E.entries(),([k,T])=>q.createImportSpecifier(!1,k===T?void 0:q.createIdentifier(k),q.createIdentifier(T))));return B||(v=!0),UM([g5(v?ll(t):void 0,B,u,f)],b)}function u4e(t,u){for(;u.original.has(t)||u.additional.has(t);)t=`_${t}`;return u.additional.add(t),t}function WKt(t){const u=wm();return Xrt(t,s=>u.add(s.text,s)),u}function Xrt(t,u){at(t)&&GKt(t)&&u(t),t.forEachChild(s=>Xrt(s,u))}function GKt(t){const{parent:u}=t;switch(u.kind){case 211:return u.name!==t;case 208:return u.propertyName!==t;case 276:return u.propertyName!==t;default:return!0}}function eat(t,u,s,d){return q.createFunctionDeclaration(Hi(u,nb(s.modifiers)),ll(s.asteriskToken),t,nb(s.typeParameters),nb(s.parameters),ll(s.type),q.converters.convertToFunctionBlock(SBe(s.body,d)))}function JKt(t,u,s,d){return q.createClassDeclaration(Hi(u,nb(s.modifiers)),t,nb(s.typeParameters),nb(s.heritageClauses),SBe(s.members,d))}function tat(t,u,s,d){return u==="default"?g5(q.createIdentifier(t),void 0,s,d):g5(void 0,[iat(u,t)],s,d)}function iat(t,u){return q.createImportSpecifier(!1,t!==void 0&&t!==u?q.createIdentifier(t):void 0,q.createIdentifier(u))}function r4e(t,u,s){return q.createVariableStatement(t,q.createVariableDeclarationList([q.createVariableDeclaration(u,void 0,void 0,s)],2))}function BBe(t,u){return q.createExportDeclaration(void 0,!1,t&&q.createNamedExports(t),u===void 0?void 0:q.createStringLiteral(u))}function UM(t,u){return{newImports:t,useSitesToUnqualify:u}}var $Kt=o({"src/services/codefixes/convertToEsModule.ts"(){rr(),rs(),Xo({errorCodes:[F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:u,program:s,preferences:d}=t,f=iu.ChangeTracker.with(t,p=>{if(TKt(u,s.getTypeChecker(),p,Os(s.getCompilerOptions()),Hm(u,d)))for(const v of s.getSourceFiles())wKt(v,u,s,p,Hm(v,d))});return[Cg("convertToEsModule",f,F.Convert_to_ES_module)]}})}});function nat(t,u){const s=Tn(Ca(t,u),vf);return H.assert(!!s,"Expected position to be owned by a qualified name."),at(s.left)?s:void 0}function uat(t,u,s){const d=s.right.text,f=q.createIndexedAccessTypeNode(q.createTypeReferenceNode(s.left,void 0),q.createLiteralTypeNode(q.createStringLiteral(d)));t.replaceNode(u,s,f)}var a4e,wBe,UKt=o({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){rr(),rs(),a4e="correctQualifiedNameToIndexedAccessType",wBe=[F.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],Xo({errorCodes:wBe,getCodeActions(t){const u=nat(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,f=>uat(f,t.sourceFile,u)),d=`${u.left.text}["${u.right.text}"]`;return[Ro(a4e,s,[F.Rewrite_as_the_indexed_access_type_0,d],a4e,F.Rewrite_all_as_indexed_access_types)]},fixIds:[a4e],getAllCodeActions:t=>f0(t,wBe,(u,s)=>{const d=nat(s.file,s.start);d&&uat(u,s.file,d)})})}});function rat(t,u){return ur(Ca(u,t.start).parent,eh)}function aat(t,u,s){if(!u)return;const d=u.parent,f=d.parent,p=qKt(u,s);if(p.length===d.elements.length)t.insertModifierBefore(s.sourceFile,156,d);else{const E=q.updateExportDeclaration(f,f.modifiers,!1,q.updateNamedExports(d,ti(d.elements,b=>!kt(p,b))),f.moduleSpecifier,void 0),v=q.createExportDeclaration(void 0,!0,q.createNamedExports(p),f.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,f,E,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,f,v)}}function qKt(t,u){const s=t.parent;if(s.elements.length===1)return s.elements;const d=LSe(of(s),u.program.getSemanticDiagnostics(u.sourceFile,u.cancellationToken));return ti(s.elements,f=>{var p;return f===t||((p=TSe(f,d))==null?void 0:p.code)===o4e[0]})}var o4e,s4e,ZKt=o({"src/services/codefixes/convertToTypeOnlyExport.ts"(){rr(),rs(),o4e=[F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],s4e="convertToTypeOnlyExport",Xo({errorCodes:o4e,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>aat(d,rat(u.span,u.sourceFile),u));if(s.length)return[Ro(s4e,s,F.Convert_to_type_only_export,s4e,F.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[s4e],getAllCodeActions:function(u){const s=new Map;return f0(u,o4e,(d,f)=>{const p=rat(f,u.sourceFile);p&&Ip(s,$s(p.parent.parent))&&aat(d,p,u)})}})}});function oat(t,u){const{parent:s}=Ca(t,u);return bf(s)||Sd(s)&&s.importClause?s:void 0}function sat(t,u,s){if(t.parent.parent.name)return!1;const d=t.parent.elements.filter(p=>!p.isTypeOnly);if(d.length===1)return!0;const f=s.getTypeChecker();for(const p of d)if(Z0.Core.eachSymbolReferenceInFile(p.name,f,u,v=>!Tv(v)))return!1;return!0}function vee(t,u,s){var d;if(bf(s))t.replaceNode(u,s,q.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const f=s.importClause;if(f.name&&f.namedBindings)t.replaceNodeWithNodes(u,s,[q.createImportDeclaration(nb(s.modifiers,!0),q.createImportClause(!0,ll(f.name,!0),void 0),ll(s.moduleSpecifier,!0),ll(s.attributes,!0)),q.createImportDeclaration(nb(s.modifiers,!0),q.createImportClause(!0,void 0,ll(f.namedBindings,!0)),ll(s.moduleSpecifier,!0),ll(s.attributes,!0))]);else{const p=((d=f.namedBindings)==null?void 0:d.kind)===275?q.updateNamedImports(f.namedBindings,Lu(f.namedBindings.elements,v=>q.updateImportSpecifier(v,!1,v.propertyName,v.name))):f.namedBindings,E=q.updateImportDeclaration(s,s.modifiers,q.updateImportClause(f,!0,f.name,p),s.moduleSpecifier,s.attributes);t.replaceNode(u,s,E)}}}var TBe,Cee,YKt=o({"src/services/codefixes/convertToTypeOnlyImport.ts"(){rr(),rs(),TBe=[F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],Cee="convertToTypeOnlyImport",Xo({errorCodes:TBe,getCodeActions:function(u){var s;const d=oat(u.sourceFile,u.span.start);if(d){const f=iu.ChangeTracker.with(u,v=>vee(v,u.sourceFile,d)),p=d.kind===276&&sat(d,u.sourceFile,u.program)?iu.ChangeTracker.with(u,v=>vee(v,u.sourceFile,d.parent.parent.parent)):void 0,E=Ro(Cee,f,d.kind===276?[F.Use_type_0,((s=d.propertyName)==null?void 0:s.text)??d.name.text]:F.Use_import_type,Cee,F.Fix_all_with_type_only_imports);return Oe(p)?[Cg(Cee,p,F.Use_import_type),E]:[E]}},fixIds:[Cee],getAllCodeActions:function(u){const s=new Set;return f0(u,TBe,(d,f)=>{const p=oat(f.file,f.start);(p==null?void 0:p.kind)===272&&!s.has(p)?(vee(d,f.file,p),s.add(p)):(p==null?void 0:p.kind)===276&&!s.has(p.parent.parent.parent)&&sat(p,f.file,u.program)?(vee(d,f.file,p.parent.parent.parent),s.add(p.parent.parent.parent)):(p==null?void 0:p.kind)===276&&vee(d,f.file,p)})}})}});function lat(t,u,s,d,f=!1){if(!PB(u))return;const p=XKt(u);if(!p)return;const E=u.parent,{leftSibling:v,rightSibling:b}=QKt(u);let B=E.getStart(),k="";!v&&E.comment&&(B=cat(E,E.getStart(),u.getStart()),k=`${d} */${d}`),v&&(f&&PB(v)?(B=u.getStart(),k=""):(B=cat(E,v.getStart(),u.getStart()),k=`${d} */${d}`));let T=E.getEnd(),M="";b&&(f&&PB(b)?(T=b.getStart(),M=`${d}${d}`):(T=b.getStart(),M=`${d}/**${d} * `)),t.replaceRange(s,{pos:B,end:T},p,{prefix:k,suffix:M})}function QKt(t){const u=t.parent,s=u.getChildCount()-1,d=u.getChildren().findIndex(E=>E.getStart()===t.getStart()&&E.getEnd()===t.getEnd()),f=d>0?u.getChildAt(d-1):void 0,p=d0;f--)if(!/[*/\s]/g.test(d.substring(f-1,f)))return u+f;return s}function XKt(t){var u;const{typeExpression:s}=t;if(!s)return;const d=(u=t.name)==null?void 0:u.getText();if(d){if(s.kind===329)return eWt(d,s);if(s.kind===316)return tWt(d,s)}}function eWt(t,u){const s=dat(u);if(Oe(s))return q.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function tWt(t,u){const s=ll(u.type);if(s)return q.createTypeAliasDeclaration(void 0,q.createIdentifier(t),void 0,s)}function dat(t){const u=t.jsDocPropertyTags;return Oe(u)?qi(u,d=>{var f;const p=iWt(d),E=(f=d.typeExpression)==null?void 0:f.type,v=d.isBracketed;let b;if(E&&K7(E)){const B=dat(E);b=q.createTypeLiteralNode(B)}else E&&(b=ll(E));if(b&&p){const B=v?q.createToken(58):void 0;return q.createPropertySignature(void 0,p,B,b)}}):void 0}function iWt(t){return t.name.kind===80?t.name.text:t.name.right.text}function nWt(t){return lm(t)?ju(t.jsDoc,u=>{var s;return(s=u.tags)==null?void 0:s.filter(d=>PB(d))}):[]}var l4e,LBe,uWt=o({"src/services/codefixes/convertTypedefToType.ts"(){rr(),rs(),l4e="convertTypedefToType",LBe=[F.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],Xo({fixIds:[l4e],errorCodes:LBe,getCodeActions(t){const u=E5(t.host,t.formatContext.options),s=Ca(t.sourceFile,t.span.start);if(!s)return;const d=iu.ChangeTracker.with(t,f=>lat(f,s,t.sourceFile,u));if(d.length>0)return[Ro(l4e,d,F.Convert_typedef_to_TypeScript_type,l4e,F.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>f0(t,LBe,(u,s)=>{const d=E5(t.host,t.formatContext.options),f=Ca(s.file,s.start);f&&lat(u,f,s.file,d,!0)})})}});function hat(t,u){const s=Ca(t,u);if(at(s)){const d=Po(s.parent.parent,Mm),f=s.getText(t);return{container:Po(d.parent,fm),typeNode:d.type,constraint:f,name:f==="K"?"P":"K"}}}function fat(t,u,{container:s,typeNode:d,constraint:f,name:p}){t.replaceNode(u,s,q.createMappedTypeNode(void 0,q.createTypeParameterDeclaration(void 0,p,q.createTypeReferenceNode(f)),void 0,void 0,d,void 0))}var c4e,NBe,rWt=o({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){rr(),rs(),c4e="convertLiteralTypeToMappedType",NBe=[F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],Xo({errorCodes:NBe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=hat(s,d.start);if(!f)return;const{name:p,constraint:E}=f,v=iu.ChangeTracker.with(u,b=>fat(b,s,f));return[Ro(c4e,v,[F.Convert_0_to_1_in_0,E,p],c4e,F.Convert_all_type_literals_to_mapped_type)]},fixIds:[c4e],getAllCodeActions:t=>f0(t,NBe,(u,s)=>{const d=hat(s.file,s.start);d&&fat(u,s.file,d)})})}});function mat(t,u){return H.checkDefined(Yd(Ca(t,u)),"There should be a containing class")}function pat(t){return!t.valueDeclaration||!(Eh(t.valueDeclaration)&2)}function gat(t,u,s,d,f,p){const E=t.program.getTypeChecker(),v=aWt(d,E),b=E.getTypeAtLocation(u),k=E.getPropertiesOfType(b).filter(Q$(pat,K=>!v.has(K.escapedName))),T=E.getTypeAtLocation(d),M=Le(d.members,K=>hc(K));T.getNumberIndexType()||j(b,1),T.getStringIndexType()||j(b,0);const z=l9(s,t.program,p,t.host);jwe(d,k,s,t,p,z,K=>J(s,d,K)),z.writeFixes(f);function j(K,Y){const oe=E.getIndexInfoOfType(K,Y);oe&&J(s,d,E.indexInfoToIndexSignatureDeclaration(oe,d,void 0,xw(t)))}function J(K,Y,oe){M?f.insertNodeAfter(K,M,oe):f.insertMemberAtStart(K,Y,oe)}}function aWt(t,u){const s=Qg(t);if(!s)return Vo();const d=u.getTypeAtLocation(s),f=u.getPropertiesOfType(d);return Vo(f.filter(pat))}var PBe,d4e,oWt=o({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){rr(),rs(),PBe=[F.Class_0_incorrectly_implements_interface_1.code,F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],d4e="fixClassIncorrectlyImplementsInterface",Xo({errorCodes:PBe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=mat(u,s.start);return qi(iB(d),f=>{const p=iu.ChangeTracker.with(t,E=>gat(t,f,u,d,E,t.preferences));return p.length===0?void 0:Ro(d4e,p,[F.Implement_interface_0,f.getText(u)],d4e,F.Implement_all_unimplemented_interfaces)})},fixIds:[d4e],getAllCodeActions(t){const u=new Map;return f0(t,PBe,(s,d)=>{const f=mat(d.file,d.start);if(Ip(u,$s(f)))for(const p of iB(f))gat(t,p,d.file,f,s,t.preferences)})}})}});function l9(t,u,s,d,f){return Eat(t,u,!1,s,d,f)}function Eat(t,u,s,d,f,p){const E=u.getCompilerOptions(),v=[],b=[],B=new Map,k=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:M,writeFixes:j,hasFixes:J};function T(K,Y){const oe=bat(Y,K.code,K.start,s);!oe||!oe.length||z(Pn(oe))}function M(K,Y){const oe=H.checkDefined(K.parent),se=IX(K,Os(E)),ge=u.getTypeChecker(),ae=ge.getMergedSymbol(X1(K,ge)),Ce=xat(t,ae,se,oe,!1,u,f,d,p),ne=f4e(t,u),ve=_at(t,H.checkDefined(Ce),u,void 0,!!Y,ne,f,d);ve&&z({fix:ve,symbolName:se,errorIdentifierText:void 0})}function z(K){var Y,oe;const{fix:se,symbolName:ge}=K;switch(se.kind){case 0:v.push(se);break;case 1:b.push(se);break;case 2:{const{importClauseOrBindingPattern:ve,importKind:Se,addAsTypeOnly:Ne}=se,pe=String($s(ve));let fe=B.get(pe);if(fe||B.set(pe,fe={importClauseOrBindingPattern:ve,defaultImport:void 0,namedImports:new Map}),Se===0){const xe=fe==null?void 0:fe.namedImports.get(ge);fe.namedImports.set(ge,ae(xe,Ne))}else H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add to Existing) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((Y=fe.defaultImport)==null?void 0:Y.addAsTypeOnly,Ne)};break}case 3:{const{moduleSpecifier:ve,importKind:Se,useRequire:Ne,addAsTypeOnly:pe}=se,fe=Ce(ve,Se,Ne,pe);switch(H.assert(fe.useRequire===Ne,"(Add new) Tried to add an `import` and a `require` for the same module"),Se){case 1:H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add new) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((oe=fe.defaultImport)==null?void 0:oe.addAsTypeOnly,pe)};break;case 0:const xe=(fe.namedImports||(fe.namedImports=new Map)).get(ge);fe.namedImports.set(ge,ae(xe,pe));break;case 3:case 2:H.assert(fe.namespaceLikeImport===void 0||fe.namespaceLikeImport.name===ge,"Namespacelike import shoudl be missing or match symbolName"),fe.namespaceLikeImport={importKind:Se,name:ge,addAsTypeOnly:pe};break}break}case 4:break;default:H.assertNever(se,`fix wasn't never - got kind ${se.kind}`)}function ae(ve,Se){return Math.max(ve??0,Se)}function Ce(ve,Se,Ne,pe){const fe=ne(ve,!0),xe=ne(ve,!1),Be=k.get(fe),Ge=k.get(xe),Ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ne};return Se===1&&pe===2?Be||(k.set(fe,Ae),Ae):pe===1&&(Be||Ge)?Be||Ge:Ge||(k.set(xe,Ae),Ae)}function ne(ve,Se){return`${Se?1:0}|${ve}`}}function j(K,Y){let oe;t.imports.length===0&&Y!==void 0?oe=Y:oe=Hm(t,d);for(const ge of v)OBe(K,t,ge);for(const ge of b)wat(K,t,ge,oe);B.forEach(({importClauseOrBindingPattern:ge,defaultImport:ae,namedImports:Ce})=>{Bat(K,t,ge,ae,ga(Ce.entries(),([ne,ve])=>({addAsTypeOnly:ve,name:ne})),d)});let se;k.forEach(({useRequire:ge,defaultImport:ae,namedImports:Ce,namespaceLikeImport:ne},ve)=>{const Se=ve.slice(2),pe=(ge?Nat:Lat)(Se,oe,ae,Ce&&ga(Ce.entries(),([fe,xe])=>({addAsTypeOnly:xe,name:fe})),ne,E,d);se=vo(se,pe)}),se&&MM(K,t,se,!0,d)}function J(){return v.length>0||b.length>0||B.size>0||k.size>0}}function sWt(t,u,s,d){const f=HM(t,d,s),p=vat(u.getTypeChecker(),t,u.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:E};function E(v,b,B,k){const{fixes:T,computedWithoutCacheCount:M}=h4e(v,b,B,!1,u,t,s,d,p,k),z=yat(T,t,u,f,s);return z&&{...z,computedWithoutCacheCount:M}}}function lWt(t,u,s,d,f,p,E,v,b,B,k,T){let M;s?(M=tK(d,E,v,k,T).get(d.path,s),H.assertIsDefined(M,"Some exportInfo should match the specified exportMapKey")):(M=kse($4(u.name))?[dWt(t,f,u,v,E)]:xat(d,t,f,u,p,v,E,k,T),H.assertIsDefined(M,"Some exportInfo should match the specified symbol / moduleSymbol"));const z=f4e(d,v),j=Tv(Ca(d,B)),J=H.checkDefined(_at(d,M,v,B,j,z,E,k));return{moduleSpecifier:J.moduleSpecifier,codeAction:Dat(RBe({host:E,formatContext:b,preferences:k},d,f,J,!1,v,k))}}function cWt(t,u,s,d,f,p){const E=s.getCompilerOptions(),v=bd(IBe(t,s.getTypeChecker(),u,E)),b=Aat(t,u,v,s),B=v!==u.text;return b&&Dat(RBe({host:d,formatContext:f,preferences:p},t,v,b,B,s,p))}function _at(t,u,s,d,f,p,E,v){const b=HM(t,v,E);return yat(h4e(u,d,f,p,s,t,E,v).fixes,t,s,b,E)}function Dat({description:t,changes:u,commands:s}){return{description:t,changes:u,commands:s}}function xat(t,u,s,d,f,p,E,v,b){const B=Cat(p,E);return tK(t,E,p,v,b).search(t.path,f,k=>k===s,k=>{if(X1(k[0].symbol,B(k[0].isFromPackageJson))===u&&k.some(T=>T.moduleSymbol===d||T.symbol.parent===d))return k})}function dWt(t,u,s,d,f){var p,E;const v=d.getCompilerOptions(),b=k(d.getTypeChecker(),!1);if(b)return b;const B=(E=(p=f.getPackageJsonAutoImportProvider)==null?void 0:p.call(f))==null?void 0:E.getTypeChecker();return H.checkDefined(B&&k(B,!0),"Could not find symbol in specified module for code actions");function k(T,M){const z=WX(s,T,v);if(z&&X1(z.symbol,T)===t)return{symbol:z.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:z.exportKind,targetFlags:X1(t,T).flags,isFromPackageJson:M};const j=T.tryGetMemberInModuleExportsAndProperties(u,s);if(j&&X1(j,T)===t)return{symbol:j,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:X1(t,T).flags,isFromPackageJson:M}}}function h4e(t,u,s,d,f,p,E,v,b=vat(f.getTypeChecker(),p,f.getCompilerOptions()),B){const k=f.getTypeChecker(),T=ju(t,b.getImportsForExportInfo),M=u!==void 0&&hWt(T,u),z=mWt(T,s,k,f.getCompilerOptions());if(z)return{computedWithoutCacheCount:0,fixes:[...M?[M]:_t,z]};const{fixes:j,computedWithoutCacheCount:J=0}=gWt(t,T,f,p,u,s,d,E,v,B);return{computedWithoutCacheCount:J,fixes:[...M?[M]:_t,...j]}}function hWt(t,u){return G(t,({declaration:s,importKind:d})=>{var f;if(d!==0)return;const p=fWt(s),E=p&&((f=Z8(s))==null?void 0:f.text);if(E)return{kind:0,namespacePrefix:p,usagePosition:u,moduleSpecifier:E}})}function fWt(t){var u,s,d;switch(t.kind){case 260:return(u=ur(t.name,at))==null?void 0:u.text;case 271:return t.name.text;case 272:return(d=ur((s=t.importClause)==null?void 0:s.namedBindings,Jx))==null?void 0:d.name.text;default:return H.assertNever(t)}}function MBe(t,u,s,d,f,p){return t?u&&p.importsNotUsedAsValues===2||xle(p)&&(!(d&111551)||f.getTypeOnlyAliasDeclaration(s))?2:1:4}function mWt(t,u,s,d){let f;for(const E of t){const v=p(E);if(!v)continue;const b=RU(v.importClauseOrBindingPattern);if(v.addAsTypeOnly!==4&&b||v.addAsTypeOnly===4&&!b)return v;f??(f=v)}return f;function p({declaration:E,importKind:v,symbol:b,targetFlags:B}){if(v===3||v===2||E.kind===271)return;if(E.kind===260)return(v===0||v===1)&&E.name.kind===206?{kind:2,importClauseOrBindingPattern:E.name,importKind:v,moduleSpecifier:E.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=E;if(!k||!t0(E.moduleSpecifier))return;const{name:T,namedBindings:M}=k;if(k.isTypeOnly&&!(v===0&&M))return;const z=MBe(u,!1,b,B,s,d);if(!(v===1&&(T||z===2&&M))&&!(v===0&&(M==null?void 0:M.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:v,moduleSpecifier:E.moduleSpecifier.text,addAsTypeOnly:z}}}function vat(t,u,s){let d;for(const f of u.imports){const p=tP(f);if(vq(p.parent)){const E=t.resolveExternalModuleName(f);E&&(d||(d=wm())).add(Zo(E),p.parent)}else if(p.kind===272||p.kind===271){const E=t.getSymbolAtLocation(f);E&&(d||(d=wm())).add(Zo(E),p)}}return{getImportsForExportInfo:({moduleSymbol:f,exportKind:p,targetFlags:E,symbol:v})=>{if(!(E&111551)&&gh(u))return _t;const b=d==null?void 0:d.get(Zo(f));if(!b)return _t;const B=zBe(u,p,s);return b.map(k=>({declaration:k,importKind:B,symbol:v,targetFlags:E}))}}}function f4e(t,u){if(!gh(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=u.getCompilerOptions();if(s.configFile)return m1(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const d of u.getSourceFiles())if(!(d===t||!gh(d)||u.isSourceFileFromExternalLibrary(d))){if(d.commonJsModuleIndicator&&!d.externalModuleIndicator)return!0;if(d.externalModuleIndicator&&!d.commonJsModuleIndicator)return!1}return!0}function Cat(t,u){return HE(s=>s?u.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function pWt(t,u,s,d,f,p,E,v,b){const B=gh(u),k=t.getCompilerOptions(),T=Ik(t,E),M=Cat(t,E),z=p1(k),j=_X(z),J=b?oe=>({moduleSpecifiers:Z2.tryGetModuleSpecifiersFromCache(oe,u,T,v),computedWithoutCache:!1}):(oe,se)=>Z2.getModuleSpecifiersWithCacheInfo(oe,se,k,u,T,v,void 0,!0);let K=0;const Y=ju(p,(oe,se)=>{const ge=M(oe.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:Ce}=J(oe.moduleSymbol,ge),ne=!!(oe.targetFlags&111551),ve=MBe(d,!0,oe.symbol,oe.targetFlags,ge,k);return K+=ae?1:0,qi(Ce,Se=>{var Ne;if(j&&q7(Se))return;if(!ne&&B&&s!==void 0)return{kind:1,moduleSpecifier:Se,usagePosition:s,exportInfo:oe,isReExport:se>0};const pe=zBe(u,oe.exportKind,k);let fe;if(s!==void 0&&pe===3&&oe.exportKind===0){const xe=ge.resolveExternalModuleSymbol(oe.moduleSymbol);let Be;xe!==oe.moduleSymbol&&(Be=(Ne=GX(xe,ge,k))==null?void 0:Ne.name),Be||(Be=VBe(oe.moduleSymbol,Os(k),!1)),fe={namespacePrefix:Be,usagePosition:s}}return{kind:3,moduleSpecifier:Se,importKind:pe,useRequire:f,addAsTypeOnly:ve,exportInfo:oe,isReExport:se>0,qualification:fe}})});return{computedWithoutCacheCount:K,fixes:Y}}function gWt(t,u,s,d,f,p,E,v,b,B){const k=G(u,T=>EWt(T,p,E,s.getTypeChecker(),s.getCompilerOptions()));return k?{fixes:[k]}:pWt(s,d,f,p,E,t,v,b,B)}function EWt({declaration:t,importKind:u,symbol:s,targetFlags:d},f,p,E,v){var b;const B=(b=Z8(t))==null?void 0:b.text;if(B){const k=p?4:MBe(f,!0,s,d,E,v);return{kind:3,moduleSpecifier:B,importKind:u,addAsTypeOnly:k,useRequire:p}}}function bat(t,u,s,d){const f=Ca(t.sourceFile,s);let p;if(u===F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)p=vWt(t,f);else if(at(f))if(u===F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const v=bd(IBe(t.sourceFile,t.program.getTypeChecker(),f,t.program.getCompilerOptions())),b=Aat(t.sourceFile,f,v,t.program);return b&&[{fix:b,symbolName:v,errorIdentifierText:f.text}]}else p=yWt(t,f,d);else return;const E=HM(t.sourceFile,t.preferences,t.host);return p&&_Wt(p,t.sourceFile,t.program,E,t.host)}function _Wt(t,u,s,d,f){const p=E=>J0(E,f.getCurrentDirectory(),n5(f));return Ph(t,(E,v)=>d2(!!E.isJsxNamespaceFix,!!v.isJsxNamespaceFix)||nl(E.fix.kind,v.fix.kind)||kat(E.fix,v.fix,u,s,d.allowsImportingSpecifier,p))}function yat(t,u,s,d,f){if(Oe(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((p,E)=>kat(E,p,u,s,d.allowsImportingSpecifier,v=>J0(v,f.getCurrentDirectory(),n5(f)))===-1?E:p)}function kat(t,u,s,d,f,p){return t.kind!==0&&u.kind!==0?d2(f(u.moduleSpecifier),f(t.moduleSpecifier))||xWt(t.moduleSpecifier,u.moduleSpecifier,s,d)||d2(Fat(t,s,d.getCompilerOptions(),p),Fat(u,s,d.getCompilerOptions(),p))||iV(t.moduleSpecifier,u.moduleSpecifier):0}function Fat(t,u,s,d){var f;if(t.isReExport&&((f=t.exportInfo)!=null&&f.moduleFileName)&&p1(s)===2&&DWt(t.exportInfo.moduleFileName)){const p=d(lr(t.exportInfo.moduleFileName));return Pa(u.path,p)}return!1}function DWt(t){return Ac(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function xWt(t,u,s,d){return Pa(t,"node:")&&!Pa(u,"node:")?OX(s,d)?-1:1:Pa(u,"node:")&&!Pa(t,"node:")?OX(s,d)?1:-1:0}function vWt({sourceFile:t,program:u,host:s,preferences:d},f){const p=u.getTypeChecker(),E=CWt(f,p);if(!E)return;const v=p.getAliasedSymbol(E),b=E.name,B=[{symbol:E,moduleSymbol:v,moduleFileName:void 0,exportKind:3,targetFlags:v.flags,isFromPackageJson:!1}],k=f4e(t,u);return h4e(B,void 0,!1,k,u,t,s,d).fixes.map(M=>{var z;return{fix:M,symbolName:b,errorIdentifierText:(z=ur(f,at))==null?void 0:z.text}})}function CWt(t,u){const s=at(t)?u.getSymbolAtLocation(t):void 0;if($q(s))return s;const{parent:d}=t;if(zh(d)&&d.tagName===t||V7(d)){const f=u.resolveName(u.getJsxNamespace(d),zh(d)?t:d,111551,!1);if($q(f))return f}}function zBe(t,u,s,d){if(s.verbatimModuleSyntax&&(m1(s)===1||t.impliedNodeFormat===1))return 3;switch(u){case 0:return 0;case 1:return 1;case 2:return AWt(t,s,!!d);case 3:return bWt(t,s,!!d);default:return H.assertNever(u)}}function bWt(t,u,s){if(C7(u))return 1;const d=m1(u);switch(d){case 2:case 1:case 3:return Qn(t)&&(wc(t)||s)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return t.impliedNodeFormat===99?2:3;default:return H.assertNever(d,`Unexpected moduleKind ${d}`)}}function yWt({sourceFile:t,program:u,cancellationToken:s,host:d,preferences:f},p,E){const v=u.getTypeChecker(),b=u.getCompilerOptions();return ju(IBe(t,v,p,b),B=>{if(B==="default")return;const k=Tv(p),T=f4e(t,u),M=FWt(B,$8(p),Pk(p),s,t,u,E,d,f);return ga(pa(M.values(),z=>h4e(z,p.getStart(t),k,T,u,t,d,f).fixes),z=>({fix:z,symbolName:B,errorIdentifierText:p.text,isJsxNamespaceFix:B!==p.text}))})}function Aat(t,u,s,d){const f=d.getTypeChecker(),p=f.resolveName(s,u,111551,!0);if(!p)return;const E=f.getTypeOnlyAliasDeclaration(p);if(!(!E||zn(E)!==t))return{kind:4,typeOnlyAliasDeclaration:E}}function IBe(t,u,s,d){const f=s.parent;if((zh(f)||H2(f))&&f.tagName===s&&Sfe(d.jsx)){const p=u.getJsxNamespace(t);if(kWt(p,s,u))return!aB(s.text)&&!u.resolveName(s.text,s,111551,!1)?[s.text,p]:[p]}return[s.text]}function kWt(t,u,s){if(aB(u.text))return!0;const d=s.resolveName(t,u,111551,!0);return!d||Oe(d.declarations,_2)&&!(d.flags&111551)}function FWt(t,u,s,d,f,p,E,v,b){var B;const k=wm(),T=HM(f,b,v),M=(B=v.getModuleSpecifierCache)==null?void 0:B.call(v),z=HE(J=>Ik(J?v.getPackageJsonAutoImportProvider():p,v));function j(J,K,Y,oe,se,ge){const ae=z(ge);if(K&&Mfe(se,f,K,b,T,ae,M)||!K&&T.allowsImportingAmbientModule(J,ae)){const Ce=se.getTypeChecker();k.add(CSe(Y,Ce).toString(),{symbol:Y,moduleSymbol:J,moduleFileName:K==null?void 0:K.fileName,exportKind:oe,targetFlags:X1(Y,Ce).flags,isFromPackageJson:ge})}}return zfe(p,v,b,E,(J,K,Y,oe)=>{const se=Y.getTypeChecker();d.throwIfCancellationRequested();const ge=Y.getCompilerOptions(),ae=WX(J,se,ge);ae&&(ae.name===t||VBe(J,Os(ge),u)===t)&&Mat(ae.resolvedSymbol,s)&&j(J,K,ae.symbol,ae.exportKind,Y,oe);const Ce=se.tryGetMemberInModuleExportsAndProperties(t,J);Ce&&Mat(Ce,s)&&j(J,K,Ce,0,Y,oe)}),k}function AWt(t,u,s){const d=C7(u),f=Qn(t);if(!f&&m1(u)>=5)return d?1:2;if(f)return wc(t)||s?d?1:2:3;for(const p of t.statements)if(E1(p)&&!Ql(p.moduleReference))return 3;return d?1:3}function RBe(t,u,s,d,f,p,E){let v;const b=iu.ChangeTracker.with(t,B=>{v=SWt(B,u,s,d,f,p,E)});return Ro(KBe,b,v,WBe,F.Add_all_missing_imports)}function SWt(t,u,s,d,f,p,E){const v=Hm(u,E);switch(d.kind){case 0:return OBe(t,u,d),[F.Change_0_to_1,s,`${d.namespacePrefix}.${s}`];case 1:return wat(t,u,d,v),[F.Change_0_to_1,s,Tat(d.moduleSpecifier,v)+s];case 2:{const{importClauseOrBindingPattern:b,importKind:B,addAsTypeOnly:k,moduleSpecifier:T}=d;Bat(t,u,b,B===1?{name:s,addAsTypeOnly:k}:void 0,B===0?[{name:s,addAsTypeOnly:k}]:_t,E);const M=$4(T);return f?[F.Import_0_from_1,s,M]:[F.Update_import_from_0,M]}case 3:{const{importKind:b,moduleSpecifier:B,addAsTypeOnly:k,useRequire:T,qualification:M}=d,z=T?Nat:Lat,j=b===1?{name:s,addAsTypeOnly:k}:void 0,J=b===0?[{name:s,addAsTypeOnly:k}]:void 0,K=b===2||b===3?{importKind:b,name:(M==null?void 0:M.namespacePrefix)||s,addAsTypeOnly:k}:void 0;return MM(t,u,z(B,v,j,J,K,p.getCompilerOptions(),E),!0,E),M&&OBe(t,u,M),f?[F.Import_0_from_1,s,B]:[F.Add_import_from_0,B]}case 4:{const{typeOnlyAliasDeclaration:b}=d,B=BWt(t,b,p,u,E);return B.kind===276?[F.Remove_type_from_import_of_0_from_1,s,Sat(B.parent.parent)]:[F.Remove_type_from_import_declaration_from_0,Sat(B)]}default:return H.assertNever(d,`Unexpected fix kind ${d.kind}`)}}function Sat(t){var u,s;return t.kind===271?((s=ur((u=ur(t.moduleReference,r_))==null?void 0:u.expression,t0))==null?void 0:s.text)||t.moduleReference.getText():Po(t.parent.moduleSpecifier,us).text}function BWt(t,u,s,d,f){const p=s.getCompilerOptions(),E=xle(p);switch(u.kind){case 276:if(u.isTypeOnly){const b=Gp.detectImportSpecifierSorting(u.parent.elements,f);if(u.parent.elements.length>1&&b){const B=q.updateImportSpecifier(u,!1,u.propertyName,u.name),k=Gp.getOrganizeImportsComparer(f,b===2),T=Gp.getImportSpecifierInsertionIndex(u.parent.elements,B,k);if(u.parent.elements.indexOf(u)!==T)return t.delete(d,u),t.insertImportSpecifierAtIndex(d,B,u.parent,T),u}return t.deleteRange(d,u.getFirstToken()),u}else return H.assert(u.parent.parent.isTypeOnly),v(u.parent.parent),u.parent.parent;case 273:return v(u),u;case 274:return v(u.parent),u.parent;case 271:return t.deleteRange(d,u.getChildAt(1)),u;default:H.failBadSyntaxKind(u)}function v(b){var B;if(t.delete(d,sfe(b,d)),!p.allowImportingTsExtensions){const k=Z8(b.parent),T=k&&((B=s.getResolvedModule(d,k.text,xg(d,k)))==null?void 0:B.resolvedModule);if(T!=null&&T.resolvedUsingTsExtension){const M=AO(k.text,pQ(k.text,p));t.replaceNode(d,k,q.createStringLiteral(M))}}if(E){const k=ur(b.namedBindings,uD);if(k&&k.elements.length>1){Gp.detectImportSpecifierSorting(k.elements,f)&&u.kind===276&&k.elements.indexOf(u)!==0&&(t.delete(d,u),t.insertImportSpecifierAtIndex(d,u,k,0));for(const T of k.elements)T!==u&&!T.isTypeOnly&&t.insertModifierBefore(d,156,T)}}}}function Bat(t,u,s,d,f,p){var E;if(s.kind===206){d&&B(s,d.name,"default");for(const k of f)B(s,k.name,void 0);return}const v=s.isTypeOnly&&Oe([d,...f],k=>(k==null?void 0:k.addAsTypeOnly)===4),b=s.namedBindings&&((E=ur(s.namedBindings,uD))==null?void 0:E.elements);if(d&&(H.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(u,s.getStart(u),q.createIdentifier(d.name),{suffix:", "})),f.length){let k;if(typeof p.organizeImportsIgnoreCase=="boolean")k=p.organizeImportsIgnoreCase;else if(b){const j=Gp.detectImportSpecifierSorting(b,p);j!==3&&(k=j===2)}k===void 0&&(k=Gp.detectSorting(u,p)===2);const T=Gp.getOrganizeImportsComparer(p,k),M=oc(f.map(j=>q.createImportSpecifier((!s.isTypeOnly||v)&&m4e(j,p),void 0,q.createIdentifier(j.name))),(j,J)=>Gp.compareImportOrExportSpecifiers(j,J,T)),z=(b==null?void 0:b.length)&&Gp.detectImportSpecifierSorting(b,p);if(z&&!(k&&z===1))for(const j of M){const J=v&&!j.isTypeOnly?0:Gp.getImportSpecifierInsertionIndex(b,j,T);t.insertImportSpecifierAtIndex(u,j,s.namedBindings,J)}else if(b!=null&&b.length)for(const j of M)t.insertNodeInListAfter(u,Cr(b),j,b);else if(M.length){const j=q.createNamedImports(M);s.namedBindings?t.replaceNode(u,s.namedBindings,j):t.insertNodeAfter(u,H.checkDefined(s.name,"Import clause must have either named imports or a default import"),j)}}if(v&&(t.delete(u,sfe(s,u)),b))for(const k of b)t.insertModifierBefore(u,156,k);function B(k,T,M){const z=q.createBindingElement(void 0,M,T);k.elements.length?t.insertNodeInListAfter(u,Cr(k.elements),z):t.replaceNode(u,k,q.createObjectBindingPattern([z]))}}function OBe(t,u,{namespacePrefix:s,usagePosition:d}){t.insertText(u,d,s+".")}function wat(t,u,{moduleSpecifier:s,usagePosition:d},f){t.insertText(u,d,Tat(s,f))}function Tat(t,u){const s=ofe(u);return`import(${s}${t}${s}).`}function jBe({addAsTypeOnly:t}){return t===2}function m4e(t,u){return jBe(t)||!!u.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function Lat(t,u,s,d,f,p,E){const v=n9(t,u);let b;if(s!==void 0||d!=null&&d.length){const B=(!s||jBe(s))&&ye(d,jBe)||(p.verbatimModuleSyntax||E.preferTypeOnlyAutoImports)&&(s==null?void 0:s.addAsTypeOnly)!==4&&!Oe(d,k=>k.addAsTypeOnly===4);b=vo(b,g5(s&&q.createIdentifier(s.name),d==null?void 0:d.map(k=>q.createImportSpecifier(!B&&m4e(k,E),void 0,q.createIdentifier(k.name))),t,u,B))}if(f){const B=f.importKind===3?q.createImportEqualsDeclaration(void 0,m4e(f,E),q.createIdentifier(f.name),q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(m4e(f,E),void 0,q.createNamespaceImport(q.createIdentifier(f.name))),v,void 0);b=vo(b,B)}return H.checkDefined(b)}function Nat(t,u,s,d,f){const p=n9(t,u);let E;if(s||d!=null&&d.length){const v=(d==null?void 0:d.map(({name:B})=>q.createBindingElement(void 0,void 0,B)))||[];s&&v.unshift(q.createBindingElement(void 0,"default",s.name));const b=Pat(q.createObjectBindingPattern(v),p);E=vo(E,b)}if(f){const v=Pat(f.name,p);E=vo(E,v)}return H.checkDefined(E)}function Pat(t,u){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(typeof t=="string"?q.createIdentifier(t):t,void 0,void 0,q.createCallExpression(q.createIdentifier("require"),void 0,[u]))],2))}function Mat({declarations:t},u){return Oe(t,s=>!!(TH(s)&u))}function VBe(t,u,s){return HBe(_h($4(t.name)),u,s)}function HBe(t,u,s){const d=Ac(D8(t,"/index"));let f="",p=!0;const E=d.charCodeAt(0);G_(E,u)?(f+=String.fromCharCode(E),s&&(f=f.toUpperCase())):p=!1;for(let v=1;vRBe(t,d,b,v,b!==B,p,s))},fixIds:[WBe],getAllCodeActions:t=>{const{sourceFile:u,program:s,preferences:d,host:f,cancellationToken:p}=t,E=Eat(u,s,!0,d,f,p);return _w(t,GBe,v=>E.addImportFromDiagnostic(v,t)),Ew(iu.ChangeTracker.with(t,E.writeFixes))}})}});function zat(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.This_type_parameter_might_need_an_extends_0_constraint.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;let p=$we(f.file,d1(f.start,f.length));if(p!==void 0&&(at(p)&&Bl(p.parent)&&(p=p.parent),Bl(p))){if(JP(p.parent))return;const E=Ca(u,s.start),v=t.getTypeChecker();return{constraint:LWt(v,E)||TWt(f.messageText),declaration:p,token:E}}}function Iat(t,u,s,d,f,p){const{declaration:E,constraint:v}=p,b=u.getTypeChecker();if(Ja(v))t.insertText(f,E.name.end,` extends ${v}`);else{const B=Os(u.getCompilerOptions()),k=xw({program:u,host:d}),T=l9(f,u,s,d),M=Y4e(b,T,v,void 0,B,void 0,k);M&&(t.replaceNode(f,E,q.updateTypeParameterDeclaration(E,void 0,E.name,M,E.default)),T.writeFixes(t))}}function TWt(t){const[u,s]=lE(t,` -`,0).match(/`extends (.*)`/)||[];return s}function LWt(t,u){return Xr(u.parent)?t.getTypeArgumentConstraint(u.parent):(Wt(u)?t.getContextualType(u):void 0)||t.getTypeAtLocation(u)}var p4e,JBe,NWt=o({"src/services/codefixes/fixAddMissingConstraint.ts"(){rr(),rs(),p4e="addMissingConstraint",JBe=[F.Type_0_is_not_comparable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Type_0_is_not_assignable_to_type_1.code,F.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,F.Property_0_is_incompatible_with_index_signature.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Type_0_does_not_satisfy_the_constraint_1.code],Xo({errorCodes:JBe,getCodeActions(t){const{sourceFile:u,span:s,program:d,preferences:f,host:p}=t,E=zat(d,u,s);if(E===void 0)return;const v=iu.ChangeTracker.with(t,b=>Iat(b,d,f,p,u,E));return[Ro(p4e,v,F.Add_extends_constraint,p4e,F.Add_extends_constraint_to_all_type_parameters)]},fixIds:[p4e],getAllCodeActions:t=>{const{program:u,preferences:s,host:d}=t,f=new Map;return Ew(iu.ChangeTracker.with(t,p=>{_w(t,JBe,E=>{const v=zat(u,E.file,d1(E.start,E.length));if(v&&Ip(f,$s(v.declaration)))return Iat(p,u,s,d,E.file,v)})}))}})}});function Rat(t,u,s,d){switch(s){case F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return PWt(t,u.sourceFile,d);case F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return MWt(t,u.sourceFile,d);default:H.fail("Unexpected error code: "+s)}}function PWt(t,u,s){const d=jat(u,s);if(gh(u)){t.addJSDocTags(u,d,[q.createJSDocOverrideTag(q.createIdentifier("override"))]);return}const f=d.modifiers||_t,p=Le(f,N7),E=Le(f,tFe),v=Le(f,T=>Yhe(T.kind)),b=lt(f,g1),B=E?E.end:p?p.end:v?v.end:b?gs(u.text,b.end):d.getStart(u),k=v||p||E?{prefix:" "}:{suffix:" "};t.insertModifierAt(u,B,164,k)}function MWt(t,u,s){const d=jat(u,s);if(gh(u)){t.filterJSDocTags(u,d,X$(gY));return}const f=Le(d.modifiers,iFe);H.assertIsDefined(f),t.deleteModifier(u,f)}function Oat(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Mf(t,t.parent);default:return!1}}function jat(t,u){const s=Ca(t,u),d=Tn(s,f=>mr(f)?"quit":Oat(f));return H.assert(d&&Oat(d)),d}var $Be,qM,bK,UBe,qBe,zWt=o({"src/services/codefixes/fixOverrideModifier.ts"(){rr(),rs(),$Be="fixOverrideModifier",qM="fixAddOverrideModifier",bK="fixRemoveOverrideModifier",UBe=[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],qBe={[F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_override_modifier},[F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:qM,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:bK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers}},Xo({errorCodes:UBe,getCodeActions:function(u){const{errorCode:s,span:d}=u,f=qBe[s];if(!f)return _t;const{descriptions:p,fixId:E,fixAllDescriptions:v}=f,b=iu.ChangeTracker.with(u,B=>Rat(B,u,s,d.start));return[oBe($Be,b,p,E,v)]},fixIds:[$Be,qM,bK],getAllCodeActions:t=>f0(t,UBe,(u,s)=>{const{code:d,start:f}=s,p=qBe[d];!p||p.fixId!==t.fixId||Rat(u,t,d,f)})})}});function Vat(t,u,s,d){const f=Hm(u,d),p=q.createStringLiteral(s.name.text,f===0);t.replaceNode(u,s,PU(s)?q.createElementAccessChain(s.expression,s.questionDotToken,p):q.createElementAccessExpression(s.expression,p))}function Hat(t,u){return Po(Ca(t,u).parent,Iu)}var g4e,ZBe,IWt=o({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){rr(),rs(),g4e="fixNoPropertyAccessFromIndexSignature",ZBe=[F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],Xo({errorCodes:ZBe,fixIds:[g4e],getCodeActions(t){const{sourceFile:u,span:s,preferences:d}=t,f=Hat(u,s.start),p=iu.ChangeTracker.with(t,E=>Vat(E,t.sourceFile,f,d));return[Ro(g4e,p,[F.Use_element_access_for_0,f.name.text],g4e,F.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>f0(t,ZBe,(u,s)=>Vat(u,s.file,Hat(s.file,s.start),t.preferences))})}});function Kat(t,u,s,d){const f=Ca(u,s);if(!rw(f))return;const p=tf(f,!1,!1);if(!(!ed(p)&&!A0(p))&&!la(tf(p,!1,!1))){const E=H.checkDefined(a0(p,100,u)),{name:v}=p,b=H.checkDefined(p.body);return A0(p)?v&&Z0.Core.isSymbolReferencedInFile(v,d,u,b)?void 0:(t.delete(u,E),v&&t.delete(u,v),t.insertText(u,b.pos," =>"),[F.Convert_function_expression_0_to_arrow_function,v?v.text:KX]):(t.replaceNode(u,E,q.createToken(87)),t.insertText(u,v.end," = "),t.insertText(u,b.pos," =>"),[F.Convert_function_declaration_0_to_arrow_function,v.text])}}var E4e,YBe,RWt=o({"src/services/codefixes/fixImplicitThis.ts"(){rr(),rs(),E4e="fixImplicitThis",YBe=[F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xo({errorCodes:YBe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u;let p;const E=iu.ChangeTracker.with(u,v=>{p=Kat(v,s,f.start,d.getTypeChecker())});return p?[Ro(E4e,E,p,E4e,F.Fix_all_implicit_this_errors)]:_t},fixIds:[E4e],getAllCodeActions:t=>f0(t,YBe,(u,s)=>{Kat(u,s.file,s.start,t.program.getTypeChecker())})})}});function Wat(t,u,s){var d,f;const p=Ca(t,u);if(at(p)){const E=Tn(p,Sd);if(E===void 0)return;const v=us(E.moduleSpecifier)?E.moduleSpecifier.text:void 0;if(v===void 0)return;const b=(d=s.getResolvedModule(t,v,void 0))==null?void 0:d.resolvedModule;if(b===void 0)return;const B=s.getSourceFile(b.resolvedFileName);if(B===void 0||KM(s,B))return;const k=B.symbol,T=(f=ur(k.valueDeclaration,UE))==null?void 0:f.locals;if(T===void 0)return;const M=T.get(p.escapedText);if(M===void 0)return;const z=jWt(M);return z===void 0?void 0:{exportName:{node:p,isTypeOnly:gB(z)},node:z,moduleSourceFile:B,moduleSpecifier:v}}}function OWt(t,u,{exportName:s,node:d,moduleSourceFile:f}){const p=_4e(f,s.isTypeOnly);p?Gat(t,u,f,p,[s]):rV(d)?t.insertExportModifier(f,d):Jat(t,u,f,[s])}function QBe(t,u,s,d,f){S(d)&&(f?Gat(t,u,s,f,d):Jat(t,u,s,d))}function _4e(t,u){const s=d=>Gc(d)&&(u&&d.isTypeOnly||!d.isTypeOnly);return lt(t.statements,s)}function Gat(t,u,s,d,f){const p=d.exportClause&&ep(d.exportClause)?d.exportClause.elements:q.createNodeArray([]),E=!d.isTypeOnly&&!!(mg(u.getCompilerOptions())||Le(p,v=>v.isTypeOnly));t.replaceNode(s,d,q.updateExportDeclaration(d,d.modifiers,d.isTypeOnly,q.createNamedExports(q.createNodeArray([...p,...$at(f,E)],p.hasTrailingComma)),d.moduleSpecifier,d.attributes))}function Jat(t,u,s,d){t.insertNodeAtEndOfScope(s,s,q.createExportDeclaration(void 0,!1,q.createNamedExports($at(d,mg(u.getCompilerOptions()))),void 0,void 0))}function $at(t,u){return q.createNodeArray(Vt(t,s=>q.createExportSpecifier(u&&s.isTypeOnly,void 0,s.node)))}function jWt(t){if(t.valueDeclaration===void 0)return Ki(t.declarations);const u=t.valueDeclaration,s=ua(u)?ur(u.parent.parent,Jl):void 0;return s&&S(s.declarationList.declarations)===1?s:u}var D4e,XBe,VWt=o({"src/services/codefixes/fixImportNonExportedMember.ts"(){rr(),rs(),D4e="fixImportNonExportedMember",XBe=[F.Module_0_declares_1_locally_but_it_is_not_exported.code],Xo({errorCodes:XBe,fixIds:[D4e],getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Wat(u,s.start,d);if(f===void 0)return;const p=iu.ChangeTracker.with(t,E=>OWt(E,d,f));return[Ro(D4e,p,[F.Export_0_from_module_1,f.exportName.node.text,f.moduleSpecifier],D4e,F.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:u}=t;return Ew(iu.ChangeTracker.with(t,s=>{const d=new Map;_w(t,XBe,f=>{const p=Wat(f.file,f.start,u);if(p===void 0)return;const{exportName:E,node:v,moduleSourceFile:b}=p;if(_4e(b,E.isTypeOnly)===void 0&&rV(v))s.insertExportModifier(b,v);else{const B=d.get(b)||{typeOnlyExports:[],exports:[]};E.isTypeOnly?B.typeOnlyExports.push(E):B.exports.push(E),d.set(b,B)}}),d.forEach((f,p)=>{const E=_4e(p,!0);E&&E.isTypeOnly?(QBe(s,u,p,f.typeOnlyExports,E),QBe(s,u,p,f.exports,_4e(p,!1))):QBe(s,u,p,[...f.exports,...f.typeOnlyExports],E)})}))}})}});function HWt(t,u){const s=Ca(t,u);return Tn(s,d=>d.kind===202)}function KWt(t,u,s){if(!s)return;let d=s.type,f=!1,p=!1;for(;d.kind===190||d.kind===191||d.kind===196;)d.kind===190?f=!0:d.kind===191&&(p=!0),d=d.type;const E=q.updateNamedTupleMember(s,s.dotDotDotToken||(p?q.createToken(26):void 0),s.name,s.questionToken||(f?q.createToken(58):void 0),d);E!==s&&t.replaceNode(u,s,E)}var x4e,Uat,WWt=o({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){rr(),rs(),x4e="fixIncorrectNamedTupleSyntax",Uat=[F.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,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],Xo({errorCodes:Uat,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=HWt(s,d.start),p=iu.ChangeTracker.with(u,E=>KWt(E,s,f));return[Ro(x4e,p,F.Move_labeled_tuple_element_modifiers_to_labels,x4e,F.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[x4e]})}});function qat(t,u,s,d){const f=Ca(t,u),p=f.parent;if((d===F.No_overload_matches_this_call.code||d===F.Type_0_is_not_assignable_to_type_1.code)&&!oE(p))return;const E=s.program.getTypeChecker();let v;if(Iu(p)&&p.name===f){H.assert(J_(f),"Expected an identifier for spelling (property access)");let b=E.getTypeAtLocation(p.expression);p.flags&64&&(b=E.getNonNullableType(b)),v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(Xn(p)&&p.operatorToken.kind===103&&p.left===f&&ea(f)){const b=E.getTypeAtLocation(p.right);v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(vf(p)&&p.right===f){const b=E.getSymbolAtLocation(p.left);b&&b.flags&1536&&(v=E.getSuggestedSymbolForNonexistentModule(p.right,b))}else if(bf(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for spelling (import)");const b=Tn(f,Sd),B=JWt(t,s,b);B&&B.symbol&&(v=E.getSuggestedSymbolForNonexistentModule(f,B.symbol))}else if(oE(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for JSX attribute");const b=Tn(f,zh),B=E.getContextualTypeForArgumentAtIndex(b,0);v=E.getSuggestedSymbolForNonexistentJSXAttribute(f,B)}else if(Vq(p)&&Zd(p)&&p.name===f){const b=Tn(f,mr),B=b?Qg(b):void 0,k=B?E.getTypeAtLocation(B):void 0;k&&(v=E.getSuggestedSymbolForNonexistentClassMember(Hc(f),k))}else{const b=Pk(f),B=Hc(f);H.assert(B!==void 0,"name should be defined"),v=E.getSuggestedSymbolForNonexistentSymbol(f,B,GWt(b))}return v===void 0?void 0:{node:f,suggestedSymbol:v}}function Zat(t,u,s,d,f){const p=lc(d);if(!Lm(p,f)&&Iu(s.parent)){const E=d.valueDeclaration;E&&mh(E)&&ea(E.name)?t.replaceNode(u,s,q.createIdentifier(p)):t.replaceNode(u,s.parent,q.createElementAccessExpression(s.parent.expression,q.createStringLiteral(p)))}else t.replaceNode(u,s,q.createIdentifier(p))}function GWt(t){let u=0;return t&4&&(u|=1920),t&2&&(u|=788968),t&1&&(u|=111551),u}function JWt(t,u,s){var d;if(!s||!t0(s.moduleSpecifier))return;const f=(d=u.program.getResolvedModule(t,s.moduleSpecifier.text,xg(t,s.moduleSpecifier)))==null?void 0:d.resolvedModule;if(f)return u.program.getSourceFile(f.resolvedFileName)}var ewe,twe,$Wt=o({"src/services/codefixes/fixSpelling.ts"(){rr(),rs(),ewe="fixSpelling",twe=[F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,F.Cannot_find_name_0_Did_you_mean_1.code,F.Could_not_find_name_0_Did_you_mean_1.code,F.Cannot_find_namespace_0_Did_you_mean_1.code,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,F._0_has_no_exported_member_named_1_Did_you_mean_2.code,F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.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,F.No_overload_matches_this_call.code,F.Type_0_is_not_assignable_to_type_1.code],Xo({errorCodes:twe,getCodeActions(t){const{sourceFile:u,errorCode:s}=t,d=qat(u,t.span.start,t,s);if(!d)return;const{node:f,suggestedSymbol:p}=d,E=Os(t.host.getCompilationSettings()),v=iu.ChangeTracker.with(t,b=>Zat(b,u,f,p,E));return[Ro("spelling",v,[F.Change_spelling_to_0,lc(p)],ewe,F.Fix_all_detected_spelling_errors)]},fixIds:[ewe],getAllCodeActions:t=>f0(t,twe,(u,s)=>{const d=qat(s.file,s.start,t,s.code),f=Os(t.host.getCompilationSettings());d&&Zat(u,t.sourceFile,d.node,d.suggestedSymbol,f)})})}});function Yat(t,u,s){const d=t.createSymbol(4,u.escapedText);d.links.type=t.getTypeAtLocation(s);const f=Vo([d]);return t.createAnonymousType(void 0,f,[],[],[])}function iwe(t,u,s,d){if(!u.body||!po(u.body)||S(u.body.statements)!==1)return;const f=Pn(u.body.statements);if(Od(f)&&nwe(t,u,t.getTypeAtLocation(f.expression),s,d))return{declaration:u,kind:0,expression:f.expression,statement:f,commentSource:f.expression};if(V2(f)&&Od(f.statement)){const p=q.createObjectLiteralExpression([q.createPropertyAssignment(f.label,f.statement.expression)]),E=Yat(t,f.label,f.statement.expression);if(nwe(t,u,E,s,d))return q0(u)?{declaration:u,kind:1,expression:p,statement:f,commentSource:f.statement.expression}:{declaration:u,kind:0,expression:p,statement:f,commentSource:f.statement.expression}}else if(po(f)&&S(f.statements)===1){const p=Pn(f.statements);if(V2(p)&&Od(p.statement)){const E=q.createObjectLiteralExpression([q.createPropertyAssignment(p.label,p.statement.expression)]),v=Yat(t,p.label,p.statement.expression);if(nwe(t,u,v,s,d))return{declaration:u,kind:0,expression:E,statement:f,commentSource:p}}}}function nwe(t,u,s,d,f){if(f){const p=t.getSignatureFromDeclaration(u);if(p){Yu(u,1024)&&(s=t.createPromiseType(s));const E=t.createSignature(u,p.typeParameters,p.thisParameter,p.parameters,s,void 0,p.minArgumentCount,p.flags);s=t.createAnonymousType(void 0,Vo(),[E],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,d)}function Qat(t,u,s,d){const f=Ca(u,s);if(!f.parent)return;const p=Tn(f.parent,$0);switch(d){case F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!p||!p.body||!p.type||!Vm(p.type,f)?void 0:iwe(t,p,t.getTypeFromTypeNode(p.type),!1);case F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!p||!Mo(p.parent)||!p.body)return;const E=p.parent.arguments.indexOf(p);if(E===-1)return;const v=t.getContextualTypeForArgumentAtIndex(p.parent,E);return v?iwe(t,p,v,!0):void 0;case F.Type_0_is_not_assignable_to_type_1.code:if(!X3(f)||!G8(f.parent)&&!oE(f.parent))return;const b=UWt(f.parent);return!b||!$0(b)||!b.body?void 0:iwe(t,b,t.getTypeAtLocation(f.parent),!0)}}function UWt(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(YP(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function Xat(t,u,s,d){Kf(s);const f=YH(u);t.replaceNode(u,d,q.createReturnStatement(s),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,suffix:f?";":void 0})}function eot(t,u,s,d,f,p){const E=p||AX(d)?q.createParenthesizedExpression(d):d;Kf(f),Rk(f,E),t.replaceNode(u,s.body,E)}function tot(t,u,s,d){t.replaceNode(u,s.body,q.createParenthesizedExpression(d))}function qWt(t,u,s){const d=iu.ChangeTracker.with(t,f=>Xat(f,t.sourceFile,u,s));return Ro(v4e,d,F.Add_a_return_statement,C4e,F.Add_all_missing_return_statement)}function ZWt(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>eot(p,t.sourceFile,u,s,d,!1));return Ro(v4e,f,F.Remove_braces_from_arrow_function_body,b4e,F.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function YWt(t,u,s){const d=iu.ChangeTracker.with(t,f=>tot(f,t.sourceFile,u,s));return Ro(v4e,d,F.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,y4e,F.Wrap_all_object_literal_with_parentheses)}var v4e,C4e,b4e,y4e,uwe,QWt=o({"src/services/codefixes/returnValueCorrect.ts"(){rr(),rs(),v4e="returnValueCorrect",C4e="fixAddReturnStatement",b4e="fixRemoveBracesFromArrowFunctionBody",y4e="fixWrapTheBlockWithParen",uwe=[F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],Xo({errorCodes:uwe,fixIds:[C4e,b4e,y4e],getCodeActions:function(u){const{program:s,sourceFile:d,span:{start:f},errorCode:p}=u,E=Qat(s.getTypeChecker(),d,f,p);if(E)return E.kind===0?xi([qWt(u,E.expression,E.statement)],q0(E.declaration)?ZWt(u,E.declaration,E.expression,E.commentSource):void 0):[YWt(u,E.declaration,E.expression)]},getAllCodeActions:t=>f0(t,uwe,(u,s)=>{const d=Qat(t.program.getTypeChecker(),s.file,s.start,s.code);if(d)switch(t.fixId){case C4e:Xat(u,s.file,d.expression,d.statement);break;case b4e:if(!q0(d.declaration))return;eot(u,s.file,d.declaration,d.expression,d.commentSource,!1);break;case y4e:if(!q0(d.declaration))return;tot(u,s.file,d.declaration,d.expression);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function iot(t,u,s,d,f){var p;const E=Ca(t,u),v=E.parent;if(s===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(E.kind===19&&ys(v)&&Mo(v.parent)))return;const z=Ue(v.parent.arguments,Y=>Y===v);if(z<0)return;const j=d.getResolvedSignature(v.parent);if(!(j&&j.declaration&&j.parameters[z]))return;const J=j.parameters[z].valueDeclaration;if(!(J&&io(J)&&at(J.name)))return;const K=ga(d.getUnmatchedProperties(d.getTypeAtLocation(v),d.getParameterType(j,z),!1,!1));return S(K)?{kind:3,token:J.name,properties:K,parentDeclaration:v}:void 0}if(!J_(E))return;if(at(E)&&Nx(v)&&v.initializer&&ys(v.initializer)){const z=d.getContextualType(E)||d.getTypeAtLocation(E),j=ga(d.getUnmatchedProperties(d.getTypeAtLocation(v.initializer),z,!1,!1));return S(j)?{kind:3,token:E,properties:j,parentDeclaration:v.initializer}:void 0}if(at(E)&&zh(E.parent)){const z=Os(f.getCompilerOptions()),j=rGt(d,z,E.parent);return S(j)?{kind:4,token:E,attributes:j,parentDeclaration:E.parent}:void 0}if(at(E)){const z=(p=d.getContextualType(E))==null?void 0:p.getNonNullableType();if(z&&Gu(z)&16){const j=Ki(d.getSignaturesOfType(z,0));return j===void 0?void 0:{kind:5,token:E,signature:j,sourceFile:t,parentDeclaration:fot(E)}}if(Mo(v)&&v.expression===E)return{kind:2,token:E,call:v,sourceFile:t,modifierFlags:0,parentDeclaration:fot(E)}}if(!Iu(v))return;const b=nfe(d.getTypeAtLocation(v.expression)),B=b.symbol;if(!B||!B.declarations)return;if(at(E)&&Mo(v.parent)){const z=Le(B.declarations,_c),j=z==null?void 0:z.getSourceFile();if(z&&j&&!KM(f,j))return{kind:2,token:E,call:v.parent,sourceFile:t,modifierFlags:32,parentDeclaration:z};const J=Le(B.declarations,la);if(t.commonJsModuleIndicator)return;if(J&&!KM(f,J))return{kind:2,token:E,call:v.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}const k=Le(B.declarations,mr);if(!k&&ea(E))return;const T=k||Le(B.declarations,z=>xh(z)||fm(z));if(T&&!KM(f,T.getSourceFile())){const z=!fm(T)&&(b.target||b)!==d.getDeclaredTypeOfSymbol(B);if(z&&(ea(E)||xh(T)))return;const j=T.getSourceFile(),J=fm(T)?0:(z?256:0)|(Afe(E.text)?2:0),K=gh(j),Y=ur(v.parent,Mo);return{kind:0,token:E,call:Y,modifierFlags:J,parentDeclaration:T,declSourceFile:j,isJSFile:K}}const M=Le(B.declarations,Iv);if(M&&!(b.flags&1056)&&!ea(E)&&!KM(f,M.getSourceFile()))return{kind:1,token:E,parentDeclaration:M}}function XWt(t,u){return u.isJSFile?Hy(eGt(t,u)):tGt(t,u)}function eGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){if(xh(u)||fm(u))return;const p=iu.ChangeTracker.with(t,v=>not(v,s,u,f,!!(d&256)));if(p.length===0)return;const E=d&256?F.Initialize_static_property_0:ea(f)?F.Declare_a_private_field_named_0:F.Initialize_property_0_in_the_constructor;return Ro(Yx,p,[E,f.text],Yx,F.Add_all_missing_members)}function not(t,u,s,d,f){const p=d.text;if(f){if(s.kind===231)return;const E=s.name.getText(),v=uot(q.createIdentifier(E),p);t.insertNodeAfter(u,s,v)}else if(ea(d)){const E=q.createPropertyDeclaration(void 0,p,void 0,void 0,void 0),v=oot(s);v?t.insertNodeAfter(u,v,E):t.insertMemberAtStart(u,s,E)}else{const E=X_(s);if(!E)return;const v=uot(q.createThis(),p);t.insertNodeAtConstructorEnd(u,E,v)}}function uot(t,u){return q.createExpressionStatement(q.createAssignment(q.createPropertyAccessExpression(t,u),c9()))}function tGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){const p=f.text,E=d&256,v=rot(t.program.getTypeChecker(),u,f),b=k=>iu.ChangeTracker.with(t,T=>aot(T,s,u,p,v,k)),B=[Ro(Yx,b(d&256),[E?F.Declare_static_property_0:F.Declare_property_0,p],Yx,F.Add_all_missing_members)];return E||ea(f)||(d&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_property_0,p])),B.push(iGt(t,s,u,f.text,v))),B}function rot(t,u,s){let d;if(s.parent.parent.kind===226){const f=s.parent.parent,p=s.parent===f.left?f.right:f.left,E=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(p)));d=t.typeToTypeNode(E,u,1)}else{const f=t.getContextualType(s.parent);d=f?t.typeToTypeNode(f,void 0,1):void 0}return d||q.createKeywordTypeNode(133)}function aot(t,u,s,d,f,p){const E=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,v=mr(s)?q.createPropertyDeclaration(E,d,void 0,f,void 0):q.createPropertySignature(void 0,d,void 0,f),b=oot(s);b?t.insertNodeAfter(u,b,v):t.insertMemberAtStart(u,s,v)}function oot(t){let u;for(const s of t.members){if(!ko(s))break;u=s}return u}function iGt(t,u,s,d,f){const p=q.createKeywordTypeNode(154),E=q.createParameterDeclaration(void 0,void 0,"x",void 0,p,void 0),v=q.createIndexSignature(void 0,[E],f),b=iu.ChangeTracker.with(t,B=>B.insertMemberAtStart(u,s,v));return Cg(Yx,b,[F.Add_index_signature_for_property_0,d])}function nGt(t,u){const{parentDeclaration:s,declSourceFile:d,modifierFlags:f,token:p,call:E}=u;if(E===void 0)return;const v=p.text,b=k=>iu.ChangeTracker.with(t,T=>sot(t,T,E,p,k,s,d)),B=[Ro(Yx,b(f&256),[f&256?F.Declare_static_method_0:F.Declare_method_0,v],Yx,F.Add_all_missing_members)];return f&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_method_0,v])),B}function sot(t,u,s,d,f,p,E){const v=l9(E,t.program,t.preferences,t.host),b=mr(p)?174:173,B=Vwe(b,t,v,s,d,f,p),k=aGt(p,s);k?u.insertNodeAfter(E,k,B):u.insertMemberAtStart(E,p,B),v.writeFixes(u)}function lot(t,u,{token:s,parentDeclaration:d}){const f=Oe(d.members,E=>{const v=u.getTypeAtLocation(E);return!!(v&&v.flags&402653316)}),p=q.createEnumMember(s,f?q.createStringLiteral(s.text):void 0);t.replaceNode(d.getSourceFile(),d,q.updateEnumDeclaration(d,d.modifiers,d.name,Hi(d.members,Hy(p))),{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude})}function cot(t,u,s){const d=Hm(u.sourceFile,u.preferences),f=l9(u.sourceFile,u.program,u.preferences,u.host),p=s.kind===2?Vwe(262,u,f,s.call,fu(s.token),s.modifierFlags,s.parentDeclaration):Z4e(262,u,d,s.signature,Bee(F.Function_not_implemented.message,d),s.token,void 0,void 0,void 0,f);p===void 0&&H.fail("fixMissingFunctionDeclaration codefix got unexpected error."),Op(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,p,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,p),f.writeFixes(t)}function dot(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Hm(u.sourceFile,u.preferences),p=u.program.getTypeChecker(),E=s.parentDeclaration.attributes,v=Oe(E.properties,H7),b=Vt(s.attributes,T=>{const M=k4e(u,p,d,f,p.getTypeOfSymbol(T),s.parentDeclaration),z=q.createIdentifier(T.name),j=q.createJsxAttribute(z,q.createJsxExpression(void 0,M));return ks(z,j),j}),B=q.createJsxAttributes(v?[...b,...E.properties]:[...E.properties,...b]),k={prefix:E.pos===E.end?" ":void 0};t.replaceNode(u.sourceFile,E,B,k),d.writeFixes(t)}function hot(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Hm(u.sourceFile,u.preferences),p=Os(u.program.getCompilerOptions()),E=u.program.getTypeChecker(),v=Vt(s.properties,B=>{const k=k4e(u,E,d,f,E.getTypeOfSymbol(B),s.parentDeclaration);return q.createPropertyAssignment(oGt(B,p,f,E),k)}),b={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(u.sourceFile,s.parentDeclaration,q.createObjectLiteralExpression([...s.parentDeclaration.properties,...v],!0),b),d.writeFixes(t)}function k4e(t,u,s,d,f,p){if(f.flags&3)return c9();if(f.flags&134217732)return q.createStringLiteral("",d===0);if(f.flags&8)return q.createNumericLiteral(0);if(f.flags&64)return q.createBigIntLiteral("0n");if(f.flags&16)return q.createFalse();if(f.flags&1056){const E=f.symbol.exports?Hn(f.symbol.exports.values()):f.symbol,v=u.symbolToExpression(f.symbol.parent?f.symbol.parent:f.symbol,111551,void 0,void 0);return E===void 0||v===void 0?q.createNumericLiteral(0):q.createPropertyAccessExpression(v,u.symbolToString(E))}if(f.flags&256)return q.createNumericLiteral(f.value);if(f.flags&2048)return q.createBigIntLiteral(f.value);if(f.flags&128)return q.createStringLiteral(f.value,d===0);if(f.flags&512)return f===u.getFalseType()||f===u.getFalseType(!0)?q.createFalse():q.createTrue();if(f.flags&65536)return q.createNull();if(f.flags&1048576)return G(f.types,v=>k4e(t,u,s,d,v,p))??c9();if(u.isArrayLikeType(f))return q.createArrayLiteralExpression();if(uGt(f)){const E=Vt(u.getPropertiesOfType(f),v=>{const b=k4e(t,u,s,d,u.getTypeOfSymbol(v),p);return q.createPropertyAssignment(v.name,b)});return q.createObjectLiteralExpression(E,!0)}if(Gu(f)&16){if(Le(f.symbol.declarations||_t,dg(u3,n3,dc))===void 0)return c9();const v=u.getSignaturesOfType(f,0);return v===void 0?c9():Z4e(218,t,d,v[0],Bee(F.Function_not_implemented.message,d),void 0,void 0,void 0,p,s)??c9()}if(Gu(f)&1){const E=tD(f.symbol);if(E===void 0||P2(E))return c9();const v=X_(E);return v&&S(v.parameters)?c9():q.createNewExpression(q.createIdentifier(f.symbol.name),void 0,void 0)}return c9()}function c9(){return q.createIdentifier("undefined")}function uGt(t){return t.flags&524288&&(Gu(t)&128||t.symbol&&ur(Aa(t.symbol.declarations),fm))}function rGt(t,u,s){const d=t.getContextualType(s.attributes);if(d===void 0)return _t;const f=d.getProperties();if(!S(f))return _t;const p=new Set;for(const E of s.attributes.properties)if(oE(E)&&p.add(MP(E.name)),H7(E)){const v=t.getTypeAtLocation(E.expression);for(const b of v.getProperties())p.add(b.escapedName)}return ti(f,E=>Lm(E.name,u,1)&&!(E.flags&16777216||Gl(E)&48||p.has(E.escapedName)))}function aGt(t,u){if(fm(t))return;const s=Tn(u,d=>dc(d)||hc(d));return s&&s.parent===t?s:void 0}function oGt(t,u,s,d){if(qE(t)){const f=d.symbolToNode(t,111551,void 0,1073741824);if(f&&Ps(f))return f}return mZ(t.name,u,s===0,!1,!1)}function fot(t){if(Tn(t,YP)){const u=Tn(t.parent,Op);if(u)return u}return zn(t)}var Yx,bee,yee,kee,rwe,sGt=o({"src/services/codefixes/fixAddMissingMember.ts"(){rr(),rs(),Yx="fixMissingMember",bee="fixMissingProperties",yee="fixMissingAttributes",kee="fixMissingFunctionDeclaration",rwe=[F.Property_0_does_not_exist_on_type_1.code,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_is_missing_in_type_1_but_required_in_type_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Cannot_find_name_0.code],Xo({errorCodes:rwe,getCodeActions(t){const u=t.program.getTypeChecker(),s=iot(t.sourceFile,t.span.start,t.errorCode,u,t.program);if(s){if(s.kind===3){const d=iu.ChangeTracker.with(t,f=>hot(f,t,s));return[Ro(bee,d,F.Add_missing_properties,bee,F.Add_all_missing_properties)]}if(s.kind===4){const d=iu.ChangeTracker.with(t,f=>dot(f,t,s));return[Ro(yee,d,F.Add_missing_attributes,yee,F.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const d=iu.ChangeTracker.with(t,f=>cot(f,t,s));return[Ro(kee,d,[F.Add_missing_function_declaration_0,s.token.text],kee,F.Add_all_missing_function_declarations)]}if(s.kind===1){const d=iu.ChangeTracker.with(t,f=>lot(f,t.program.getTypeChecker(),s));return[Ro(Yx,d,[F.Add_missing_enum_member_0,s.token.text],Yx,F.Add_all_missing_members)]}return Hi(nGt(t,s),XWt(t,s))}},fixIds:[Yx,kee,bee,yee],getAllCodeActions:t=>{const{program:u,fixId:s}=t,d=u.getTypeChecker(),f=new Map,p=new Map;return Ew(iu.ChangeTracker.with(t,E=>{_w(t,rwe,v=>{const b=iot(v.file,v.start,v.code,d,t.program);if(!(!b||!Ip(f,$s(b.parentDeclaration)+"#"+b.token.text))){if(s===kee&&(b.kind===2||b.kind===5))cot(E,t,b);else if(s===bee&&b.kind===3)hot(E,t,b);else if(s===yee&&b.kind===4)dot(E,t,b);else if(b.kind===1&&lot(E,d,b),b.kind===0){const{parentDeclaration:B,token:k}=b,T=W0(p,B,()=>[]);T.some(M=>M.token.text===k.text)||T.push(b)}}}),p.forEach((v,b)=>{const B=fm(b)?void 0:qwe(b,d);for(const k of v){if(B!=null&&B.some(Y=>{const oe=p.get(Y);return!!oe&&oe.some(({token:se})=>se.text===k.token.text)}))continue;const{parentDeclaration:T,declSourceFile:M,modifierFlags:z,token:j,call:J,isJSFile:K}=k;if(J&&!ea(j))sot(t,E,J,j,z&256,T,M);else if(K&&!xh(T)&&!fm(T))not(E,M,T,j,!!(z&256));else{const Y=rot(d,T,j);aot(E,M,T,j.text,Y,z&256)}}})}))}})}});function mot(t,u,s){const d=Po(lGt(u,s),Mo),f=q.createNewExpression(d.expression,d.typeArguments,d.arguments);t.replaceNode(u,d,f)}function lGt(t,u){let s=Ca(t,u.start);const d=Ec(u);for(;s.endmot(f,u,s));return[Ro(F4e,d,F.Add_missing_new_operator_to_call,F4e,F.Add_missing_new_operator_to_all_calls)]},fixIds:[F4e],getAllCodeActions:t=>f0(t,awe,(u,s)=>mot(u,t.sourceFile,s))})}});function pot(t,u){return{type:"install package",file:t,packageName:u}}function got(t,u){const s=ur(Ca(t,u),us);if(!s)return;const d=s.text,{packageName:f}=oH(d);return Id(f)?void 0:f}function Eot(t,u,s){var d;return s===owe?o3.nodeCoreModules.has(t)?"@types/node":void 0:(d=u.isKnownTypesPackageName)!=null&&d.call(u,t)?$Y(t):void 0}var _ot,A4e,owe,swe,dGt=o({"src/services/codefixes/fixCannotFindModule.ts"(){rr(),rs(),_ot="fixCannotFindModule",A4e="installTypesPackage",owe=F.Cannot_find_module_0_or_its_corresponding_type_declarations.code,swe=[owe,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],Xo({errorCodes:swe,getCodeActions:function(u){const{host:s,sourceFile:d,span:{start:f}}=u,p=got(d,f);if(p===void 0)return;const E=Eot(p,s,u.errorCode);return E===void 0?[]:[Ro(_ot,[],[F.Install_0,E],A4e,F.Install_all_missing_types_packages,pot(d.fileName,E))]},fixIds:[A4e],getAllCodeActions:t=>f0(t,swe,(u,s,d)=>{const f=got(s.file,s.start);if(f!==void 0)switch(t.fixId){case A4e:{const p=Eot(f,t.host,s.code);p&&d.push(pot(s.file.fileName,p));break}default:H.fail(`Bad fixId: ${t.fixId}`)}})})}});function Dot(t,u){const s=Ca(t,u);return Po(s.parent,mr)}function xot(t,u,s,d,f){const p=Qg(t),E=s.program.getTypeChecker(),v=E.getTypeAtLocation(p),b=E.getPropertiesOfType(v).filter(hGt),B=l9(u,s.program,f,s.host);jwe(t,b,u,s,f,B,k=>d.insertMemberAtStart(u,t,k)),B.writeFixes(d)}function hGt(t){const u=Rx(Pn(t.getDeclarations()));return!(u&2)&&!!(u&64)}var lwe,S4e,fGt=o({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){rr(),rs(),lwe=[F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],S4e="fixClassDoesntImplementInheritedAbstractMember",Xo({errorCodes:lwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=iu.ChangeTracker.with(u,p=>xot(Dot(s,d.start),s,u,p,u.preferences));return f.length===0?void 0:[Ro(S4e,f,F.Implement_inherited_abstract_class,S4e,F.Implement_all_inherited_abstract_classes)]},fixIds:[S4e],getAllCodeActions:function(u){const s=new Map;return f0(u,lwe,(d,f)=>{const p=Dot(f.file,f.start);Ip(s,$s(p))&&xot(p,u.sourceFile,u,d,u.preferences)})}})}});function vot(t,u,s,d){t.insertNodeAtConstructorStart(u,s,d),t.delete(u,d)}function Cot(t,u){const s=Ca(t,u);if(s.kind!==110)return;const d=Nm(s),f=bot(d.body);return f&&!f.expression.arguments.some(p=>Iu(p)&&p.expression===s)?{constructor:d,superCall:f}:void 0}function bot(t){return Od(t)&&ik(t.expression)?t:Co(t)?void 0:ao(t,bot)}var B4e,cwe,mGt=o({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){rr(),rs(),B4e="classSuperMustPrecedeThisAccess",cwe=[F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],Xo({errorCodes:cwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Cot(u,s.start);if(!d)return;const{constructor:f,superCall:p}=d,E=iu.ChangeTracker.with(t,v=>vot(v,u,f,p));return[Ro(B4e,E,F.Make_super_call_the_first_statement_in_the_constructor,B4e,F.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[B4e],getAllCodeActions(t){const{sourceFile:u}=t,s=new Map;return f0(t,cwe,(d,f)=>{const p=Cot(f.file,f.start);if(!p)return;const{constructor:E,superCall:v}=p;Ip(s,$s(E.parent))&&vot(d,u,E,v)})}})}});function yot(t,u){const s=Ca(t,u);return H.assert(hc(s.parent),"token should be at the constructor declaration"),s.parent}function kot(t,u,s){const d=q.createExpressionStatement(q.createCallExpression(q.createSuper(),void 0,_t));t.insertNodeAtConstructorStart(u,s,d)}var w4e,dwe,pGt=o({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){rr(),rs(),w4e="constructorForDerivedNeedSuperCall",dwe=[F.Constructors_for_derived_classes_must_contain_a_super_call.code],Xo({errorCodes:dwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=yot(u,s.start),f=iu.ChangeTracker.with(t,p=>kot(p,u,d));return[Ro(w4e,f,F.Add_missing_super_call,w4e,F.Add_all_missing_super_calls)]},fixIds:[w4e],getAllCodeActions:t=>f0(t,dwe,(u,s)=>kot(u,t.sourceFile,yot(s.file,s.start)))})}});function Fot(t,u){Gwe(t,u,"jsx",q.createStringLiteral("react"))}var hwe,fwe,gGt=o({"src/services/codefixes/fixEnableJsxFlag.ts"(){rr(),rs(),hwe="fixEnableJsxFlag",fwe=[F.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],Xo({errorCodes:fwe,getCodeActions:function(u){const{configFile:s}=u.program.getCompilerOptions();if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>Fot(f,s));return[Cg(hwe,d,F.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[hwe],getAllCodeActions:t=>f0(t,fwe,u=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&Fot(u,s)})})}});function Aot(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.Did_you_mean_0.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;const p=$we(f.file,d1(f.start,f.length));if(p!==void 0&&Wt(p)&&Xn(p.parent))return{suggestion:EGt(f.messageText),expression:p.parent,arg:p}}function Sot(t,u,s,d){const f=q.createCallExpression(q.createPropertyAccessExpression(q.createIdentifier("Number"),q.createIdentifier("isNaN")),void 0,[s]),p=d.operatorToken.kind;t.replaceNode(u,d,p===38||p===36?q.createPrefixUnaryExpression(54,f):f)}function EGt(t){const[u,s]=lE(t,` -`,0).match(/'(.*)'/)||[];return s}var T4e,mwe,_Gt=o({"src/services/codefixes/fixNaNEquality.ts"(){rr(),rs(),T4e="fixNaNEquality",mwe=[F.This_condition_will_always_return_0.code],Xo({errorCodes:mwe,getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Aot(d,u,s);if(f===void 0)return;const{suggestion:p,expression:E,arg:v}=f,b=iu.ChangeTracker.with(t,B=>Sot(B,u,v,E));return[Ro(T4e,b,[F.Use_0,p],T4e,F.Use_Number_isNaN_in_all_conditions)]},fixIds:[T4e],getAllCodeActions:t=>f0(t,mwe,(u,s)=>{const d=Aot(t.program,s.file,d1(s.start,s.length));d&&Sot(u,s.file,d.arg,d.expression)})})}}),DGt=o({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){rr(),rs(),Xo({errorCodes:[F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(u){const s=u.program.getCompilerOptions(),{configFile:d}=s;if(d===void 0)return;const f=[],p=m1(s);if(p>=5&&p<99){const B=iu.ChangeTracker.with(u,k=>{Gwe(k,d,"module",q.createStringLiteral("esnext"))});f.push(Cg("fixModuleOption",B,[F.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const v=Os(s);if(v<4||v>99){const B=iu.ChangeTracker.with(u,k=>{if(!ZN(d))return;const M=[["target",q.createStringLiteral("es2017")]];p===1&&M.push(["module",q.createStringLiteral("commonjs")]),Wwe(k,d,M)});f.push(Cg("fixTargetOption",B,[F.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return f.length?f:void 0}})}});function Bot(t,u,s){t.replaceNode(u,s,q.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function wot(t,u){return Po(Ca(t,u).parent,pm)}var L4e,pwe,xGt=o({"src/services/codefixes/fixPropertyAssignment.ts"(){rr(),rs(),L4e="fixPropertyAssignment",pwe=[F.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],Xo({errorCodes:pwe,fixIds:[L4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=wot(u,s.start),f=iu.ChangeTracker.with(t,p=>Bot(p,t.sourceFile,d));return[Ro(L4e,f,[F.Change_0_to_1,"=",":"],L4e,[F.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>f0(t,pwe,(u,s)=>Bot(u,s.file,wot(s.file,s.start)))})}});function Tot(t,u){const s=Ca(t,u),d=Yd(s).heritageClauses,f=d[0].getFirstToken();return f.kind===96?{extendsToken:f,heritageClauses:d}:void 0}function Lot(t,u,s,d){if(t.replaceNode(u,s,q.createToken(119)),d.length===2&&d[0].token===96&&d[1].token===119){const f=d[1].getFirstToken(),p=f.getFullStart();t.replaceRange(u,{pos:p,end:p},q.createToken(28));const E=u.text;let v=f.end;for(;vLot(E,u,d,f));return[Ro(N4e,p,F.Change_extends_to_implements,N4e,F.Change_all_extended_interfaces_to_implements)]},fixIds:[N4e],getAllCodeActions:t=>f0(t,gwe,(u,s)=>{const d=Tot(s.file,s.start);d&&Lot(u,s.file,d.extendsToken,d.heritageClauses)})})}});function Not(t,u,s){const d=Ca(t,u);if(at(d)||ea(d))return{node:d,className:s===Ewe?Yd(d).name.text:void 0}}function Pot(t,u,{node:s,className:d}){Kf(s),t.replaceNode(u,s,q.createPropertyAccessExpression(d?q.createIdentifier(d):q.createThis(),s))}var P4e,Ewe,_we,CGt=o({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){rr(),rs(),P4e="forgottenThisPropertyAccess",Ewe=F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,_we=[F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.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,Ewe],Xo({errorCodes:_we,getCodeActions(t){const{sourceFile:u}=t,s=Not(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Pot(f,u,s));return[Ro(P4e,d,[F.Add_0_to_unresolved_variable,s.className||"this"],P4e,F.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[P4e],getAllCodeActions:t=>f0(t,_we,(u,s)=>{const d=Not(s.file,s.start,s.code);d&&Pot(u,t.sourceFile,d)})})}});function bGt(t){return gu(vwe,t)}function Dwe(t,u,s,d,f){const p=s.getText()[d];if(!bGt(p))return;const E=f?vwe[p]:`{${jM(s,u,p)}}`;t.replaceRangeWithText(s,{pos:d,end:d+1},E)}var M4e,Fee,xwe,vwe,yGt=o({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){rr(),rs(),M4e="fixInvalidJsxCharacters_expression",Fee="fixInvalidJsxCharacters_htmlEntity",xwe=[F.Unexpected_token_Did_you_mean_or_gt.code,F.Unexpected_token_Did_you_mean_or_rbrace.code],Xo({errorCodes:xwe,fixIds:[M4e,Fee],getCodeActions(t){const{sourceFile:u,preferences:s,span:d}=t,f=iu.ChangeTracker.with(t,E=>Dwe(E,s,u,d.start,!1)),p=iu.ChangeTracker.with(t,E=>Dwe(E,s,u,d.start,!0));return[Ro(M4e,f,F.Wrap_invalid_character_in_an_expression_container,M4e,F.Wrap_all_invalid_characters_in_an_expression_container),Ro(Fee,p,F.Convert_invalid_character_to_its_html_entity_code,Fee,F.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return f0(t,xwe,(u,s)=>Dwe(u,t.preferences,s.file,s.start,t.fixId===Fee))}}),vwe={">":">","}":"}"}}});function kGt(t,{name:u,jsDocHost:s,jsDocParameterTag:d}){const f=iu.ChangeTracker.with(t,p=>p.filterJSDocTags(t.sourceFile,s,E=>E!==d));return Ro(Aee,f,[F.Delete_unused_param_tag_0,u.getText(t.sourceFile)],Aee,F.Delete_all_unused_param_tags)}function FGt(t,{name:u,jsDocHost:s,signature:d,jsDocParameterTag:f}){if(!S(d.parameters))return;const p=t.sourceFile,E=Cv(d),v=new Set;for(const T of E)Eg(T)&&at(T.name)&&v.add(T.name.escapedText);const b=G(d.parameters,T=>at(T.name)&&!v.has(T.name.escapedText)?T.name.getText(p):void 0);if(b===void 0)return;const B=q.updateJSDocParameterTag(f,f.tagName,q.createIdentifier(b),f.isBracketed,f.typeExpression,f.isNameFirst,f.comment),k=iu.ChangeTracker.with(t,T=>T.replaceJSDocComment(p,s,Vt(E,M=>M===f?B:M)));return Cg(Cwe,k,[F.Rename_param_tag_name_0_to_1,u.getText(p),b])}function Mot(t,u){const s=Ca(t,u);if(s.parent&&Eg(s.parent)&&at(s.parent.name)){const d=s.parent,f=h7(d),p=kv(d);if(f&&p)return{jsDocHost:f,signature:p,name:s.parent.name,jsDocParameterTag:d}}}var Aee,Cwe,bwe,AGt=o({"src/services/codefixes/fixUnmatchedParameter.ts"(){rr(),rs(),Aee="deleteUnmatchedParameter",Cwe="renameUnmatchedParameter",bwe=[F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],Xo({fixIds:[Aee,Cwe],errorCodes:bwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=[],p=Mot(s,d.start);if(p)return xi(f,kGt(u,p)),xi(f,FGt(u,p)),f},getAllCodeActions:function(u){const s=new Map;return Ew(iu.ChangeTracker.with(u,d=>{_w(u,bwe,({file:f,start:p})=>{const E=Mot(f,p);E&&s.set(E.signature,xi(s.get(E.signature),E.jsDocParameterTag))}),s.forEach((f,p)=>{if(u.fixId===Aee){const E=new Set(f);d.filterJSDocTags(p.getSourceFile(),p,v=>!E.has(v))}})}))}})}});function SGt(t,u,s){const d=ur(Ca(t,s),at);if(!d||d.parent.kind!==183)return;const p=u.getTypeChecker().getSymbolAtLocation(d);return Le((p==null?void 0:p.declarations)||_t,dg(n_,bf,E1))}function BGt(t,u,s,d){if(s.kind===271){t.insertModifierBefore(u,156,s.name);return}const f=s.kind===273?s:s.parent.parent;if(f.name&&f.namedBindings)return;const p=d.getTypeChecker();Fq(f,v=>{if(X1(v.symbol,p).flags&111551)return!0})||t.insertModifierBefore(u,156,f)}function wGt(t,u,s,d){a9.doChangeNamedToNamespaceOrDefault(u,d,t,s.parent)}var z4e,zot,TGt=o({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){rr(),rs(),z4e="fixUnreferenceableDecoratorMetadata",zot=[F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],Xo({errorCodes:zot,getCodeActions:t=>{const u=SGt(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,p=>u.kind===276&&wGt(p,t.sourceFile,u,t.program)),d=iu.ChangeTracker.with(t,p=>BGt(p,t.sourceFile,u,t.program));let f;return s.length&&(f=xi(f,Cg(z4e,s,F.Convert_named_imports_to_namespace_import))),d.length&&(f=xi(f,Cg(z4e,d,F.Use_import_type))),f},fixIds:[z4e]})}});function Iot(t,u,s){t.replaceNode(u,s.parent,q.createKeywordTypeNode(159))}function yK(t,u){return Ro(kK,t,u,O4e,F.Delete_all_unused_declarations)}function Rot(t,u,s){t.delete(u,H.checkDefined(Po(s.parent,v0e).typeParameters,"The type parameter to delete should exist"))}function ywe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function Oot(t){return t.kind===102?ur(t.parent,Sd):void 0}function jot(t,u){return Ad(u.parent)&&Pn(u.parent.getChildren(t))===u}function Vot(t,u,s){t.delete(u,s.parent.kind===243?s.parent:s)}function LGt(t,u,s){L(s.elements,d=>t.delete(u,d))}function NGt(t,u,s,{parent:d}){if(ua(d)&&d.initializer&&D2(d.initializer))if(Ad(d.parent)&&S(d.parent.declarations)>1){const f=d.parent.parent,p=f.getStart(s),E=f.end;u.delete(s,d),u.insertNodeAt(s,E,d.initializer,{prefix:E5(t.host,t.formatContext.options)+s.text.slice(FX(s.text,p-1),p),suffix:YH(s)?";":""})}else u.replaceNode(s,d.parent,d.initializer);else u.delete(s,d)}function Hot(t,u,s,d){u!==F.Property_0_is_declared_but_its_value_is_never_read.code&&(d.kind===140&&(d=Po(d.parent,P7).typeParameter.name),at(d)&&PGt(d)&&(t.replaceNode(s,d,q.createIdentifier(`_${d.text}`)),io(d.parent)&&B8(d.parent).forEach(f=>{at(f.name)&&t.replaceNode(s,f.name,q.createIdentifier(`_${f.name.text}`))})))}function PGt(t){switch(t.parent.kind){case 169:case 168:return!0;case 260:switch(t.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function I4e(t,u,s,d,f,p,E,v){MGt(u,s,t,d,f,p,E,v),at(u)&&Z0.Core.eachSymbolReferenceInFile(u,d,t,b=>{Iu(b.parent)&&b.parent.name===b&&(b=b.parent),!v&&OGt(b)&&s.delete(t,b.parent.parent)})}function MGt(t,u,s,d,f,p,E,v){const{parent:b}=t;if(io(b))zGt(u,s,b,d,f,p,E,v);else if(!(v&&at(t)&&Z0.Core.isSymbolReferencedInFile(t,d,s))){const B=n_(b)?t:Ps(b)?b.parent:b;H.assert(B!==s,"should not delete whole source file"),u.delete(s,B)}}function zGt(t,u,s,d,f,p,E,v=!1){if(IGt(d,u,s,f,p,E,v))if(s.modifiers&&s.modifiers.length>0&&(!at(s.name)||Z0.Core.isSymbolReferencedInFile(s.name,d,u)))for(const b of s.modifiers)Qo(b)&&t.deleteModifier(u,b);else!s.initializer&&Kot(s,d,f)&&t.delete(u,s)}function Kot(t,u,s){const d=t.parent.parameters.indexOf(t);return!Z0.Core.someSignatureUsage(t.parent,s,u,(f,p)=>!p||p.arguments.length>d)}function IGt(t,u,s,d,f,p,E){const{parent:v}=s;switch(v.kind){case 174:case 176:const b=v.parameters.indexOf(s),B=dc(v)?v.name:v,k=Z0.Core.getReferencedSymbolsForNode(v.pos,B,f,d,p);if(k){for(const T of k)for(const M of T.references)if(M.kind===Z0.EntryKind.Node){const z=HP(M.node)&&Mo(M.node.parent)&&M.node.parent.arguments.length>b,j=Iu(M.node.parent)&&HP(M.node.parent.expression)&&Mo(M.node.parent.parent)&&M.node.parent.parent.arguments.length>b,J=(dc(M.node.parent)||n3(M.node.parent))&&M.node.parent!==s.parent&&M.node.parent.parameters.length>b;if(z||j||J)return!1}}return!0;case 262:return v.name&&RGt(t,u,v.name)?Wot(v,s,E):!0;case 218:case 219:return Wot(v,s,E);case 178:return!1;case 177:return!0;default:return H.failBadSyntaxKind(v)}}function RGt(t,u,s){return!!Z0.Core.eachSymbolReferenceInFile(s,t,u,d=>at(d)&&Mo(d.parent)&&d.parent.arguments.includes(d))}function Wot(t,u,s){const d=t.parameters,f=d.indexOf(u);return H.assert(f!==-1,"The parameter should already be in the list"),s?d.slice(f+1).every(p=>at(p.name)&&!p.symbol.isReferenced):f===d.length-1}function OGt(t){return(Xn(t.parent)&&t.parent.left===t||(vce(t.parent)||zv(t.parent))&&t.parent.operand===t)&&Od(t.parent.parent)}var kK,R4e,O4e,See,j4e,kwe,jGt=o({"src/services/codefixes/fixUnusedIdentifier.ts"(){rr(),rs(),kK="unusedIdentifier",R4e="unusedIdentifier_prefix",O4e="unusedIdentifier_delete",See="unusedIdentifier_deleteImports",j4e="unusedIdentifier_infer",kwe=[F._0_is_declared_but_its_value_is_never_read.code,F._0_is_declared_but_never_used.code,F.Property_0_is_declared_but_its_value_is_never_read.code,F.All_imports_in_import_declaration_are_unused.code,F.All_destructured_elements_are_unused.code,F.All_variables_are_unused.code,F.All_type_parameters_are_unused.code],Xo({errorCodes:kwe,getCodeActions(t){const{errorCode:u,sourceFile:s,program:d,cancellationToken:f}=t,p=d.getTypeChecker(),E=d.getSourceFiles(),v=Ca(s,t.span.start);if(_g(v))return[yK(iu.ChangeTracker.with(t,T=>T.delete(s,v)),F.Remove_template_tag)];if(v.kind===30){const T=iu.ChangeTracker.with(t,M=>Rot(M,s,v));return[yK(T,F.Remove_type_parameters)]}const b=Oot(v);if(b){const T=iu.ChangeTracker.with(t,M=>M.delete(s,b));return[Ro(kK,T,[F.Remove_import_from_0,$ye(b)],See,F.Delete_all_unused_imports)]}else if(ywe(v)){const T=iu.ChangeTracker.with(t,M=>I4e(s,v,M,p,E,d,f,!1));if(T.length)return[Ro(kK,T,[F.Remove_unused_declaration_for_Colon_0,v.getText(s)],See,F.Delete_all_unused_imports)]}if(Rp(v.parent)||_k(v.parent)){if(io(v.parent.parent)){const T=v.parent.elements,M=[T.length>1?F.Remove_unused_declarations_for_Colon_0:F.Remove_unused_declaration_for_Colon_0,Vt(T,z=>z.getText(s)).join(", ")];return[yK(iu.ChangeTracker.with(t,z=>LGt(z,s,v.parent)),M)]}return[yK(iu.ChangeTracker.with(t,T=>NGt(t,T,s,v.parent)),F.Remove_unused_destructuring_declaration)]}if(jot(s,v))return[yK(iu.ChangeTracker.with(t,T=>Vot(T,s,v.parent)),F.Remove_variable_statement)];const B=[];if(v.kind===140){const T=iu.ChangeTracker.with(t,z=>Iot(z,s,v)),M=Po(v.parent,P7).typeParameter.name.text;B.push(Ro(kK,T,[F.Replace_infer_0_with_unknown,M],j4e,F.Replace_all_unused_infer_with_unknown))}else{const T=iu.ChangeTracker.with(t,M=>I4e(s,v,M,p,E,d,f,!1));if(T.length){const M=Ps(v.parent)?v.parent:v;B.push(yK(T,[F.Remove_unused_declaration_for_Colon_0,M.getText(s)]))}}const k=iu.ChangeTracker.with(t,T=>Hot(T,u,s,v));return k.length&&B.push(Ro(kK,k,[F.Prefix_0_with_an_underscore,v.getText(s)],R4e,F.Prefix_all_unused_declarations_with_where_possible)),B},fixIds:[R4e,O4e,See,j4e],getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=s.getTypeChecker(),p=s.getSourceFiles();return f0(t,kwe,(E,v)=>{const b=Ca(u,v.start);switch(t.fixId){case R4e:Hot(E,v.code,u,b);break;case See:{const B=Oot(b);B?E.delete(u,B):ywe(b)&&I4e(u,b,E,f,p,s,d,!0);break}case O4e:{if(b.kind===140||ywe(b))break;if(_g(b))E.delete(u,b);else if(b.kind===30)Rot(E,u,b);else if(Rp(b.parent)){if(b.parent.parent.initializer)break;(!io(b.parent.parent)||Kot(b.parent.parent,f,p))&&E.delete(u,b.parent.parent)}else{if(_k(b.parent.parent)&&b.parent.parent.parent.initializer)break;jot(u,b)?Vot(E,u,b.parent):I4e(u,b,E,f,p,s,d,!0)}break}case j4e:b.kind===140&&Iot(E,u,b);break;default:H.fail(JSON.stringify(t.fixId))}})}})}});function Got(t,u,s,d,f){const p=Ca(u,s),E=Tn(p,na);if(E.getStart(u)!==p.getStart(u)){const b=JSON.stringify({statementKind:H.formatSyntaxKind(E.kind),tokenKind:H.formatSyntaxKind(p.kind),errorCode:f,start:s,length:d});H.fail("Token and statement should start at the same point. "+b)}const v=(po(E.parent)?E.parent:E).parent;if(!po(E.parent)||E===Pn(E.parent.statements))switch(v.kind){case 245:if(v.elseStatement){if(po(E.parent))break;t.replaceNode(u,E,q.createBlock(_t));return}case 247:case 248:t.delete(u,v);return}if(po(E.parent)){const b=s+d,B=H.checkDefined(VGt(wle(E.parent.statements,E),k=>k.posGot(d,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Ro(V4e,s,F.Remove_unreachable_code,V4e,F.Remove_all_unreachable_code)]},fixIds:[V4e],getAllCodeActions:t=>f0(t,Fwe,(u,s)=>Got(u,s.file,s.start,s.length,s.code))})}});function Jot(t,u,s){const d=Ca(u,s),f=Po(d.parent,V2),p=d.getStart(u),E=f.statement.getStart(u),v=q4(p,E,u)?E:gs(u.text,a0(f,59,u).end,!0);t.deleteRange(u,{pos:p,end:v})}var H4e,Awe,KGt=o({"src/services/codefixes/fixUnusedLabel.ts"(){rr(),rs(),H4e="fixUnusedLabel",Awe=[F.Unused_label.code],Xo({errorCodes:Awe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Jot(s,t.sourceFile,t.span.start));return[Ro(H4e,u,F.Remove_unused_label,H4e,F.Remove_all_unused_labels)]},fixIds:[H4e],getAllCodeActions:t=>f0(t,Awe,(u,s)=>Jot(u,s.file,s.start))})}});function $ot(t,u,s,d,f){t.replaceNode(u,s,f.typeToTypeNode(d,s,void 0))}function Uot(t,u,s){const d=Tn(Ca(t,u),WGt),f=d&&d.type;return f&&{typeNode:f,type:GGt(s,f)}}function WGt(t){switch(t.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function GGt(t,u){if(wB(u)){const s=t.getTypeFromTypeNode(u.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(xi([s,t.getUndefinedType()],u.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(u)}var Swe,K4e,Bwe,JGt=o({"src/services/codefixes/fixJSDocTypes.ts"(){rr(),rs(),Swe="fixJSDocTypes_plain",K4e="fixJSDocTypes_nullable",Bwe=[F.JSDoc_types_can_only_be_used_inside_documentation_comments.code,F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],Xo({errorCodes:Bwe,getCodeActions(t){const{sourceFile:u}=t,s=t.program.getTypeChecker(),d=Uot(u,t.span.start,s);if(!d)return;const{typeNode:f,type:p}=d,E=f.getText(u),v=[b(p,Swe,F.Change_all_jsdoc_style_types_to_TypeScript)];return f.kind===321&&v.push(b(p,K4e,F.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),v;function b(B,k,T){const M=iu.ChangeTracker.with(t,z=>$ot(z,u,f,B,s));return Ro("jdocTypes",M,[F.Change_0_to_1,E,s.typeToString(B)],k,T)}},fixIds:[Swe,K4e],getAllCodeActions(t){const{fixId:u,program:s,sourceFile:d}=t,f=s.getTypeChecker();return f0(t,Bwe,(p,E)=>{const v=Uot(E.file,E.start,f);if(!v)return;const{typeNode:b,type:B}=v,k=b.kind===321&&u===K4e?f.getNullableType(B,32768):B;$ot(p,d,b,k,f)})}})}});function qot(t,u,s){t.replaceNodeWithText(u,s,`${s.text}()`)}function Zot(t,u){const s=Ca(t,u);if(Iu(s.parent)){let d=s.parent;for(;Iu(d.parent);)d=d.parent;return d.name}if(at(s))return s}var W4e,wwe,$Gt=o({"src/services/codefixes/fixMissingCallParentheses.ts"(){rr(),rs(),W4e="fixMissingCallParentheses",wwe=[F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],Xo({errorCodes:wwe,fixIds:[W4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=Zot(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>qot(p,t.sourceFile,d));return[Ro(W4e,f,F.Add_missing_call_parentheses,W4e,F.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>f0(t,wwe,(u,s)=>{const d=Zot(s.file,s.start);d&&qot(u,s.file,d)})})}});function UGt(t){if(t.type)return t.type;if(ua(t.parent)&&t.parent.type&&u3(t.parent.type))return t.parent.type.type}function Yot(t,u){const s=Ca(t,u),d=Nm(s);if(!d)return;let f;switch(d.kind){case 174:f=d.name;break;case 262:case 218:f=a0(d,100,t);break;case 219:const p=d.typeParameters?30:21;f=a0(d,p,t)||Pn(d.parameters);break;default:return}return f&&{insertBefore:f,returnType:UGt(d)}}function Qot(t,u,{insertBefore:s,returnType:d}){if(d){const f=pj(d);(!f||f.kind!==80||f.text!=="Promise")&&t.replaceNode(u,d,q.createTypeReferenceNode("Promise",q.createNodeArray([d])))}t.insertModifierBefore(u,134,s)}var G4e,Twe,qGt=o({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){rr(),rs(),G4e="fixAwaitInSyncFunction",Twe=[F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],Xo({errorCodes:Twe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Yot(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>Qot(p,u,d));return[Ro(G4e,f,F.Add_async_modifier_to_containing_function,G4e,F.Add_all_missing_async_modifiers)]},fixIds:[G4e],getAllCodeActions:function(u){const s=new Map;return f0(u,Twe,(d,f)=>{const p=Yot(f.file,f.start);!p||!Ip(s,$s(p.insertBefore))||Qot(d,u.sourceFile,p)})}})}});function Xot(t,u,s,d,f){let p,E;if(d===F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)p=u,E=u+s;else if(d===F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const v=f.program.getTypeChecker(),b=Ca(t,u).parent;H.assert(wx(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");const B=b.parent;H.assert(mr(B),"erroneous accessors should only be inside classes");const k=Aa(qwe(B,v));if(!k)return[];const T=Qr(V8(b.name)),M=v.getPropertyOfType(v.getTypeAtLocation(k),T);if(!M||!M.valueDeclaration)return[];p=M.valueDeclaration.pos,E=M.valueDeclaration.end,t=zn(M.valueDeclaration)}else H.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+d);return mst(t,f.program,p,E,f,F.Generate_get_and_set_accessors.message)}var Lwe,J4e,ZGt=o({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){rr(),rs(),Lwe=[F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],J4e="fixPropertyOverrideAccessor",Xo({errorCodes:Lwe,getCodeActions(t){const u=Xot(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(u)return[Ro(J4e,u,F.Generate_get_and_set_accessors,J4e,F.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[J4e],getAllCodeActions:t=>f0(t,Lwe,(u,s)=>{const d=Xot(s.file,s.start,s.length,s.code,t);if(d)for(const f of d)u.pushRaw(t.sourceFile,f)})})}});function YGt(t,u){switch(t){case F.Parameter_0_implicitly_has_an_1_type.code:case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return jf(Nm(u))?F.Infer_type_of_0_from_usage:F.Infer_parameter_types_from_usage;case F.Rest_parameter_0_implicitly_has_an_any_type.code:case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Infer_parameter_types_from_usage;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return F.Infer_this_type_of_0_from_usage;default:return F.Infer_type_of_0_from_usage}}function QGt(t){switch(t){case F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_an_1_type.code;case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Parameter_0_implicitly_has_an_1_type.code;case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Rest_parameter_0_implicitly_has_an_any_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Member_0_implicitly_has_an_1_type.code}return t}function est(t,u,s,d,f,p,E,v,b){if(!VN(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:B}=s,k=l9(u,f,b,v);switch(d=QGt(d),d){case F.Member_0_implicitly_has_an_1_type.code:case F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ua(B)&&E(B)||ko(B)||Mm(B))return tst(t,k,u,B,f,v,p),k.writeFixes(t),B;if(Iu(B)){const z=FK(B.name,f,p),j=VM(z,B,f,v);if(j){const J=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(j),void 0);t.addJSDocTags(u,Po(B.parent.parent,Od),[J])}return k.writeFixes(t),B}return;case F.Variable_0_implicitly_has_an_1_type.code:{const z=f.getTypeChecker().getSymbolAtLocation(s);return z&&z.valueDeclaration&&ua(z.valueDeclaration)&&E(z.valueDeclaration)?(tst(t,k,zn(z.valueDeclaration),z.valueDeclaration,f,v,p),k.writeFixes(t),z.valueDeclaration):void 0}}const T=Nm(s);if(T===void 0)return;let M;switch(d){case F.Parameter_0_implicitly_has_an_1_type.code:if(jf(T)){ist(t,k,u,T,f,v,p),M=T;break}case F.Rest_parameter_0_implicitly_has_an_any_type.code:if(E(T)){const z=Po(B,io);XGt(t,k,u,z,T,f,v,p),M=z}break;case F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:zm(T)&&at(T.name)&&($4e(t,k,u,T,FK(T.name,f,p),f,v),M=T);break;case F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:jf(T)&&(ist(t,k,u,T,f,v,p),M=T);break;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:iu.isThisTypeAnnotatable(T)&&E(T)&&(eJt(t,u,T,f,v,p),M=T);break;default:return H.fail(String(d))}return k.writeFixes(t),M}function tst(t,u,s,d,f,p,E){at(d.name)&&$4e(t,u,s,d,FK(d.name,f,E),f,p)}function XGt(t,u,s,d,f,p,E,v){if(!at(d.name))return;const b=nJt(f,s,p,v);if(H.assert(f.parameters.length===b.length,"Parameter count and inference count should match"),Qn(f))nst(t,s,b,p,E);else{const B=q0(f)&&!a0(f,21,s);B&&t.insertNodeBefore(s,Pn(f.parameters),q.createToken(21));for(const{declaration:k,type:T}of b)k&&!k.type&&!k.initializer&&$4e(t,u,s,k,T,p,E);B&&t.insertNodeAfter(s,Cr(f.parameters),q.createToken(22))}}function eJt(t,u,s,d,f,p){const E=ust(s,u,d,p);if(!E||!E.length)return;const v=Pwe(d,E,p).thisParameter(),b=VM(v,s,d,f);b&&(Qn(s)?tJt(t,u,s,b):t.tryInsertThisTypeAnnotation(u,s,b))}function tJt(t,u,s,d){t.addJSDocTags(u,s,[q.createJSDocThisTag(void 0,q.createJSDocTypeExpression(d))])}function ist(t,u,s,d,f,p,E){const v=Ki(d.parameters);if(v&&at(d.name)&&at(v.name)){let b=FK(d.name,f,E);b===f.getTypeChecker().getAnyType()&&(b=FK(v.name,f,E)),Qn(d)?nst(t,s,[{declaration:v,type:b}],f,p):$4e(t,u,s,v,b,f,p)}}function $4e(t,u,s,d,f,p,E){const v=VM(f,d,p,E);if(v)if(Qn(s)&&d.kind!==171){const b=ua(d)?ur(d.parent.parent,Jl):d;if(!b)return;const B=q.createJSDocTypeExpression(v),k=zm(d)?q.createJSDocReturnTag(void 0,B,void 0):q.createJSDocTypeTag(void 0,B,void 0);t.addJSDocTags(s,b,[k])}else iJt(v,d,s,t,u,Os(p.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,d,v)}function iJt(t,u,s,d,f,p){const E=d9(t,p);return E&&d.tryInsertTypeAnnotation(s,u,E.typeNode)?(L(E.symbols,v=>f.addImportFromExportedSymbol(v,!0)),!0):!1}function nst(t,u,s,d,f){const p=s.length&&s[0].declaration.parent;if(!p)return;const E=qi(s,v=>{const b=v.declaration;if(b.initializer||vv(b)||!at(b.name))return;const B=v.type&&VM(v.type,b,d,f);if(B){const k=q.cloneNode(b.name);return Zn(k,7168),{name:q.cloneNode(b.name),param:b,isOptional:!!v.isOptional,typeNode:B}}});if(E.length)if(q0(p)||A0(p)){const v=q0(p)&&!a0(p,21,u);v&&t.insertNodeBefore(u,Pn(p.parameters),q.createToken(21)),L(E,({typeNode:b,param:B})=>{const k=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(b)),T=q.createJSDocComment(void 0,[k]);t.insertNodeAt(u,B.getStart(u),T,{suffix:" "})}),v&&t.insertNodeAfter(u,Cr(p.parameters),q.createToken(22))}else{const v=Vt(E,({name:b,typeNode:B,isOptional:k})=>q.createJSDocParameterTag(void 0,b,!!k,q.createJSDocTypeExpression(B),!1,void 0));t.addJSDocTags(u,p,v)}}function Nwe(t,u,s){return qi(Z0.getReferenceEntriesForNode(-1,t,u,u.getSourceFiles(),s),d=>d.kind!==Z0.EntryKind.Span?ur(d.node,at):void 0)}function FK(t,u,s){const d=Nwe(t,u,s);return Pwe(u,d,s).single()}function nJt(t,u,s,d){const f=ust(t,u,s,d);return f&&Pwe(s,f,d).parameters(t)||t.parameters.map(p=>({declaration:p,type:at(p.name)?FK(p.name,s,d):s.getTypeChecker().getAnyType()}))}function ust(t,u,s,d){let f;switch(t.kind){case 176:f=a0(t,137,u);break;case 219:case 218:const p=t.parent;f=(ua(p)||ko(p))&&at(p.name)?p.name:t.name;break;case 262:case 174:case 173:f=t.name;break}if(f)return Nwe(f,s,d)}function Pwe(t,u,s){const d=t.getTypeChecker(),f={string:()=>d.getStringType(),number:()=>d.getNumberType(),Array:Ve=>d.createArrayType(Ve),Promise:Ve=>d.createPromiseType(Ve)},p=[d.getStringType(),d.getNumberType(),d.createArrayType(d.getAnyType()),d.createPromiseType(d.getAnyType())];return{single:b,parameters:B,thisParameter:k};function E(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function v(Ve){const We=new Map;for(const Yt of Ve)Yt.properties&&Yt.properties.forEach((Ie,st)=>{We.has(st)||We.set(st,[]),We.get(st).push(Ie)});const Gt=new Map;return We.forEach((Yt,Ie)=>{Gt.set(Ie,v(Yt))}),{isNumber:Ve.some(Yt=>Yt.isNumber),isString:Ve.some(Yt=>Yt.isString),isNumberOrString:Ve.some(Yt=>Yt.isNumberOrString),candidateTypes:ju(Ve,Yt=>Yt.candidateTypes),properties:Gt,calls:ju(Ve,Yt=>Yt.calls),constructs:ju(Ve,Yt=>Yt.constructs),numberIndex:L(Ve,Yt=>Yt.numberIndex),stringIndex:L(Ve,Yt=>Yt.stringIndex),candidateThisTypes:ju(Ve,Yt=>Yt.candidateThisTypes),inferredTypes:void 0}}function b(){return Se(T(u))}function B(Ve){if(u.length===0||!Ve.parameters)return;const We=E();for(const Yt of u)s.throwIfCancellationRequested(),M(Yt,We);const Gt=[...We.constructs||[],...We.calls||[]];return Ve.parameters.map((Yt,Ie)=>{const st=[],St=$_(Yt);let It=!1;for(const ht of Gt)if(ht.argumentTypes.length<=Ie)It=Qn(Ve),st.push(d.getUndefinedType());else if(St)for(let Ut=Ie;UtGt.every(Ie=>!Ie(Yt)))}function ve(Ve){return Se(pe(Ve))}function Se(Ve){if(!Ve.length)return d.getAnyType();const We=d.getUnionType([d.getStringType(),d.getNumberType()]);let Yt=ne(Ve,[{high:st=>st===d.getStringType()||st===d.getNumberType(),low:st=>st===We},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!(Gu(st)&16),low:st=>!!(Gu(st)&16)}]);const Ie=Yt.filter(st=>Gu(st)&16);return Ie.length&&(Yt=Yt.filter(st=>!(Gu(st)&16)),Yt.push(Ne(Ie))),d.getWidenedType(d.getUnionType(Yt.map(d.getBaseTypeOfLiteralType),2))}function Ne(Ve){if(Ve.length===1)return Ve[0];const We=[],Gt=[],Yt=[],Ie=[];let st=!1,St=!1;const It=wm();for(const Ut of Ve){for(const xn of d.getPropertiesOfType(Ut))It.add(xn.escapedName,xn.valueDeclaration?d.getTypeOfSymbolAtLocation(xn,xn.valueDeclaration):d.getAnyType());We.push(...d.getSignaturesOfType(Ut,0)),Gt.push(...d.getSignaturesOfType(Ut,1));const Ni=d.getIndexInfoOfType(Ut,0);Ni&&(Yt.push(Ni.type),st=st||Ni.isReadonly);const ji=d.getIndexInfoOfType(Ut,1);ji&&(Ie.push(ji.type),St=St||ji.isReadonly)}const ei=ci(It,(Ut,Ni)=>{const ji=Ni.lengthd.getBaseTypeOfLiteralType(It)),St=(Yt=Ve.calls)!=null&&Yt.length?fe(Ve):void 0;return St&&st?Ie.push(d.getUnionType([St,...st],2)):(St&&Ie.push(St),S(st)&&Ie.push(...st)),Ie.push(...xe(Ve)),Ie}function fe(Ve){const We=new Map;Ve.properties&&Ve.properties.forEach((st,St)=>{const It=d.createSymbol(4,St);It.links.type=ve(st),We.set(St,It)});const Gt=Ve.calls?[Je(Ve.calls)]:[],Yt=Ve.constructs?[Je(Ve.constructs)]:[],Ie=Ve.stringIndex?[d.createIndexInfo(d.getStringType(),ve(Ve.stringIndex),!1)]:[];return d.createAnonymousType(void 0,We,Gt,Yt,Ie)}function xe(Ve){if(!Ve.properties||!Ve.properties.size)return[];const We=p.filter(Gt=>Be(Gt,Ve));return 0Ge(Gt,Ve)):[]}function Be(Ve,We){return We.properties?!h1(We.properties,(Gt,Yt)=>{const Ie=d.getTypeOfPropertyOfType(Ve,Yt);return Ie?Gt.calls?!d.getSignaturesOfType(Ie,0).length||!d.isTypeAssignableTo(Ie,Ke(Gt.calls)):!d.isTypeAssignableTo(Ie,ve(Gt)):!0}):!1}function Ge(Ve,We){if(!(Gu(Ve)&4)||!We.properties)return Ve;const Gt=Ve.target,Yt=Aa(Gt.typeParameters);if(!Yt)return Ve;const Ie=[];return We.properties.forEach((st,St)=>{const It=d.getTypeOfPropertyOfType(Gt,St);H.assert(!!It,"generic should have all the properties of its reference."),Ie.push(...Ae(It,ve(st),Yt))}),f[Ve.symbol.escapedName](Se(Ie))}function Ae(Ve,We,Gt){if(Ve===Gt)return[We];if(Ve.flags&3145728)return ju(Ve.types,st=>Ae(st,We,Gt));if(Gu(Ve)&4&&Gu(We)&4){const st=d.getTypeArguments(Ve),St=d.getTypeArguments(We),It=[];if(st&&St)for(let ei=0;eiIe.argumentTypes.length));for(let Ie=0;IeSt.argumentTypes[Ie]||d.getUndefinedType())),Ve.some(St=>St.argumentTypes[Ie]===void 0)&&(st.flags|=16777216),We.push(st)}const Yt=ve(v(Ve.map(Ie=>Ie.return_)));return d.createSignature(void 0,void 0,void 0,We,Yt,void 0,Gt,0)}function ft(Ve,We){We&&!(We.flags&1)&&!(We.flags&131072)&&(Ve.candidateTypes||(Ve.candidateTypes=[])).push(We)}function Ye(Ve,We){We&&!(We.flags&1)&&!(We.flags&131072)&&(Ve.candidateThisTypes||(Ve.candidateThisTypes=[])).push(We)}}var U4e,Mwe,uJt=o({"src/services/codefixes/inferFromUsage.ts"(){rr(),rs(),U4e="inferFromUsage",Mwe=[F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,F.Variable_0_implicitly_has_an_1_type.code,F.Parameter_0_implicitly_has_an_1_type.code,F.Rest_parameter_0_implicitly_has_an_any_type.code,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,F.Member_0_implicitly_has_an_1_type.code,F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],Xo({errorCodes:Mwe,getCodeActions(t){const{sourceFile:u,program:s,span:{start:d},errorCode:f,cancellationToken:p,host:E,preferences:v}=t,b=Ca(u,d);let B;const k=iu.ChangeTracker.with(t,M=>{B=est(M,u,b,f,s,p,J3,E,v)}),T=B&&Za(B);return!T||k.length===0?void 0:[Ro(U4e,k,[YGt(f,b),Hc(T)],U4e,F.Infer_all_types_from_usage)]},fixIds:[U4e],getAllCodeActions(t){const{sourceFile:u,program:s,cancellationToken:d,host:f,preferences:p}=t,E=i9();return f0(t,Mwe,(v,b)=>{est(v,u,Ca(b.file,b.start),b.code,s,d,E,f,p)})}})}});function rst(t,u,s){if(Qn(t))return;const d=Ca(t,s),f=Tn(d,$0),p=f==null?void 0:f.type;if(!p)return;const E=u.getTypeFromTypeNode(p),v=u.getAwaitedType(E)||u.getVoidType(),b=u.typeToTypeNode(v,p,void 0);if(b)return{returnTypeNode:p,returnType:E,promisedTypeNode:b,promisedType:v}}function ast(t,u,s,d){t.replaceNode(u,s,q.createTypeReferenceNode("Promise",[d]))}var q4e,zwe,rJt=o({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){rr(),rs(),q4e="fixReturnTypeInAsyncFunction",zwe=[F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],Xo({errorCodes:zwe,fixIds:[q4e],getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u,p=d.getTypeChecker(),E=rst(s,d.getTypeChecker(),f.start);if(!E)return;const{returnTypeNode:v,returnType:b,promisedTypeNode:B,promisedType:k}=E,T=iu.ChangeTracker.with(u,M=>ast(M,s,v,B));return[Ro(q4e,T,[F.Replace_0_with_Promise_1,p.typeToString(b),p.typeToString(k)],q4e,F.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>f0(t,zwe,(u,s)=>{const d=rst(s.file,t.program.getTypeChecker(),s.start);d&&ast(u,s.file,d.returnTypeNode,d.promisedTypeNode)})})}});function ost(t,u,s,d){const{line:f}=s0(u,s);(!d||r0(d,f))&&t.insertCommentBeforeLine(u,f,s," @ts-ignore")}var Iwe,Rwe,Owe,aJt=o({"src/services/codefixes/disableJsDiagnostics.ts"(){rr(),rs(),Iwe="disableJsDiagnostics",Rwe="disableJsDiagnostics",Owe=qi(Object.keys(F),t=>{const u=F[t];return u.category===1?u.code:void 0}),Xo({errorCodes:Owe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f,host:p,formatContext:E}=u;if(!Qn(s)||!uV(s,d.getCompilerOptions()))return;const v=s.checkJsDirective?"":E5(p,E.options),b=[Cg(Iwe,[frt(s.fileName,[VH(s.checkJsDirective?Vc(s.checkJsDirective.pos,s.checkJsDirective.end):d1(0,0),`// @ts-nocheck${v}`)])],F.Disable_checking_for_this_file)];return iu.isValidLocationToAddComment(s,f.start)&&b.unshift(Ro(Iwe,iu.ChangeTracker.with(u,B=>ost(B,s,f.start)),F.Ignore_this_error_message,Rwe,F.Add_ts_ignore_to_all_error_messages)),b},fixIds:[Rwe],getAllCodeActions:t=>{const u=new Set;return f0(t,Owe,(s,d)=>{iu.isValidLocationToAddComment(d.file,d.start)&&ost(s,d.file,d.start,u)})}})}});function jwe(t,u,s,d,f,p,E){const v=t.symbol.members;for(const b of u)v.has(b.escapedName)||sst(b,t,s,d,f,p,E,void 0)}function xw(t){return{trackSymbol:()=>!1,moduleResolverHost:rfe(t.program,t.host)}}function sst(t,u,s,d,f,p,E,v,b=3,B=!1){const k=t.getDeclarations(),T=Ki(k),M=d.program.getTypeChecker(),z=Os(d.program.getCompilerOptions()),j=(T==null?void 0:T.kind)??171,J=xe(t,T),K=T?Eh(T):0;let Y=K&256;Y|=K&1?1:K&4?4:0,T&&ef(T)&&(Y|=512);const oe=ve(),se=M.getWidenedType(M.getTypeOfSymbolAtLocation(t,u)),ge=!!(t.flags&16777216),ae=!!(u.flags&33554432)||B,Ce=Hm(s,f);switch(j){case 171:case 172:const Be=Ce===0?268435456:void 0;let Ge=M.typeToTypeNode(se,u,Be,xw(d));if(p){const De=d9(Ge,z);De&&(Ge=De.typeNode,vw(p,De.symbols))}E(q.createPropertyDeclaration(oe,T?Ne(J):t.getName(),ge&&b&2?q.createToken(58):void 0,Ge,void 0));break;case 177:case 178:{H.assertIsDefined(k);let De=M.typeToTypeNode(se,u,void 0,xw(d));const Ke=dk(k,T),Je=Ke.secondAccessor?[Ke.firstAccessor,Ke.secondAccessor]:[Ke.firstAccessor];if(p){const ft=d9(De,z);ft&&(De=ft.typeNode,vw(p,ft.symbols))}for(const ft of Je)if(zm(ft))E(q.createGetAccessorDeclaration(oe,Ne(J),_t,fe(De),pe(v,Ce,ae)));else{H.assertNode(ft,jf,"The counterpart to a getter should be a setter");const Ye=hP(ft),Ve=Ye&&at(Ye.name)?fu(Ye.name):void 0;E(q.createSetAccessorDeclaration(oe,Ne(J),Hwe(1,[Ve],[fe(De)],1,!1),pe(v,Ce,ae)))}break}case 173:case 174:H.assertIsDefined(k);const Ae=se.isUnion()?ju(se.types,De=>De.getCallSignatures()):se.getCallSignatures();if(!Oe(Ae))break;if(k.length===1){H.assert(Ae.length===1,"One declaration implies one signature");const De=Ae[0];ne(Ce,De,oe,Ne(J),pe(v,Ce,ae));break}for(const De of Ae)ne(Ce,De,oe,Ne(J));if(!ae)if(k.length>Ae.length){const De=M.getSignatureFromDeclaration(k[k.length-1]);ne(Ce,De,oe,Ne(J),pe(v,Ce))}else H.assert(k.length===Ae.length,"Declarations and signatures should match count"),E(lJt(M,d,u,Ae,Ne(J),ge&&!!(b&1),oe,Ce,v));break}function ne(Be,Ge,Ae,De,Ke){const Je=Z4e(174,d,Be,Ge,Ke,De,Ae,ge&&!!(b&1),u,p);Je&&E(Je)}function ve(){let Be;return Y&&(Be=vo(Be,q.createModifiersFromModifierFlags(Y))),Se()&&(Be=xi(Be,q.createToken(164))),Be&&q.createNodeArray(Be)}function Se(){return!!(d.program.getCompilerOptions().noImplicitOverride&&T&&P2(T))}function Ne(Be){return at(Be)&&Be.escapedText==="constructor"?q.createComputedPropertyName(q.createStringLiteral(fu(Be),Ce===0)):ll(Be,!1)}function pe(Be,Ge,Ae){return Ae?void 0:ll(Be,!1)||Kwe(Ge)}function fe(Be){return ll(Be,!1)}function xe(Be,Ge){if(Gl(Be)&262144){const Ae=Be.links.nameType;if(Ae&&Y4(Ae))return q.createIdentifier(Qr(Q4(Ae)))}return ll(Za(Ge),!1)}}function Z4e(t,u,s,d,f,p,E,v,b,B){const k=u.program,T=k.getTypeChecker(),M=Os(k.getCompilerOptions()),z=Qn(b),j=524545|(s===0?268435456:0),J=T.signatureToSignatureDeclaration(d,t,b,j,xw(u));if(!J)return;let K=z?void 0:J.typeParameters,Y=J.parameters,oe=z?void 0:J.type;if(B){if(K){const Ce=Lu(K,ne=>{let ve=ne.constraint,Se=ne.default;if(ve){const Ne=d9(ve,M);Ne&&(ve=Ne.typeNode,vw(B,Ne.symbols))}if(Se){const Ne=d9(Se,M);Ne&&(Se=Ne.typeNode,vw(B,Ne.symbols))}return q.updateTypeParameterDeclaration(ne,ne.modifiers,ne.name,ve,Se)});K!==Ce&&(K=Pt(q.createNodeArray(Ce,K.hasTrailingComma),K))}const ae=Lu(Y,Ce=>{let ne=z?void 0:Ce.type;if(ne){const ve=d9(ne,M);ve&&(ne=ve.typeNode,vw(B,ve.symbols))}return q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,z?void 0:Ce.questionToken,ne,Ce.initializer)});if(Y!==ae&&(Y=Pt(q.createNodeArray(ae,Y.hasTrailingComma),Y)),oe){const Ce=d9(oe,M);Ce&&(oe=Ce.typeNode,vw(B,Ce.symbols))}}const se=v?q.createToken(58):void 0,ge=J.asteriskToken;if(A0(J))return q.updateFunctionExpression(J,E,J.asteriskToken,ur(p,at),K,Y,oe,f??J.body);if(q0(J))return q.updateArrowFunction(J,E,K,Y,oe,J.equalsGreaterThanToken,f??J.body);if(dc(J))return q.updateMethodDeclaration(J,E,ge,p??q.createIdentifier(""),se,K,Y,oe,f);if(ed(J))return q.updateFunctionDeclaration(J,E,J.asteriskToken,ur(p,at),K,Y,oe,f??J.body)}function Vwe(t,u,s,d,f,p,E){const v=Hm(u.sourceFile,u.preferences),b=Os(u.program.getCompilerOptions()),B=xw(u),k=u.program.getTypeChecker(),T=Qn(E),{typeArguments:M,arguments:z,parent:j}=d,J=T?void 0:k.getContextualType(d),K=Vt(z,Se=>at(Se)?Se.text:Iu(Se)&&at(Se.name)?Se.name.text:void 0),Y=T?[]:Vt(z,Se=>k.getTypeAtLocation(Se)),{argumentTypeNodes:oe,argumentTypeParameters:se}=dst(k,s,Y,E,b,1,B),ge=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,ae=cY(j)?q.createToken(42):void 0,Ce=T?void 0:oJt(k,se,M),ne=Hwe(z.length,K,oe,void 0,T),ve=T||J===void 0?void 0:k.typeToTypeNode(J,E,void 0,B);switch(t){case 174:return q.createMethodDeclaration(ge,ae,f,void 0,Ce,ne,ve,Kwe(v));case 173:return q.createMethodSignature(ge,f,void 0,Ce,ne,ve===void 0?q.createKeywordTypeNode(159):ve);case 262:return H.assert(typeof f=="string"||at(f),"Unexpected name"),q.createFunctionDeclaration(ge,ae,f,Ce,ne,ve,Bee(F.Function_not_implemented.message,v));default:H.fail("Unexpected kind")}}function oJt(t,u,s){const d=new Set(u.map(p=>p[0])),f=new Map(u);if(s){const p=s.filter(v=>!u.some(b=>{var B;return t.getTypeAtLocation(v)===((B=b[1])==null?void 0:B.argumentType)})),E=d.size+p.length;for(let v=0;d.size{var E;return q.createTypeParameterDeclaration(void 0,p,(E=f.get(p))==null?void 0:E.constraint)})}function lst(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function Y4e(t,u,s,d,f,p,E){let v=t.typeToTypeNode(s,d,p,E);if(v&&nD(v)){const b=d9(v,f);b&&(vw(u,b.symbols),v=b.typeNode)}return ll(v)}function cst(t){return t.isUnionOrIntersection()?t.types.some(cst):t.flags&262144}function dst(t,u,s,d,f,p,E){const v=[],b=new Map;for(let B=0;B=d?q.createToken(58):void 0,f?void 0:(s==null?void 0:s[v])||q.createKeywordTypeNode(159),void 0);p.push(k)}return p}function lJt(t,u,s,d,f,p,E,v,b){let B=d[0],k=d[0].minArgumentCount,T=!1;for(const J of d)k=Math.min(J.minArgumentCount,k),th(J)&&(T=!0),J.parameters.length>=B.parameters.length&&(!th(J)||th(B))&&(B=J);const M=B.parameters.length-(th(B)?1:0),z=B.parameters.map(J=>J.name),j=Hwe(M,z,void 0,k,!1);if(T){const J=q.createParameterDeclaration(void 0,q.createToken(26),z[M]||"rest",M>=k?q.createToken(58):void 0,q.createArrayTypeNode(q.createKeywordTypeNode(159)),void 0);j.push(J)}return dJt(E,f,p,void 0,j,cJt(d,t,u,s),v,b)}function cJt(t,u,s,d){if(S(t)){const f=u.getUnionType(Vt(t,u.getReturnTypeOfSignature));return u.typeToTypeNode(f,d,1,xw(s))}}function dJt(t,u,s,d,f,p,E,v){return q.createMethodDeclaration(t,void 0,u,s?q.createToken(58):void 0,d,f,p,v||Kwe(E))}function Kwe(t){return Bee(F.Method_not_implemented.message,t)}function Bee(t,u){return q.createBlock([q.createThrowStatement(q.createNewExpression(q.createIdentifier("Error"),void 0,[q.createStringLiteral(t,u===0)]))],!0)}function Wwe(t,u,s){const d=ZN(u);if(!d)return;const f=Jwe(d,"compilerOptions");if(f===void 0){t.insertNodeAtObjectStart(u,d,Q4e("compilerOptions",q.createObjectLiteralExpression(s.map(([E,v])=>Q4e(E,v)),!0)));return}const p=f.initializer;if(ys(p))for(const[E,v]of s){const b=Jwe(p,E);b===void 0?t.insertNodeAtObjectStart(u,p,Q4e(E,v)):t.replaceNode(u,b.initializer,v)}}function Gwe(t,u,s,d){Wwe(t,u,[[s,d]])}function Q4e(t,u){return q.createPropertyAssignment(q.createStringLiteral(t),u)}function Jwe(t,u){return Le(t.properties,s=>Jc(s)&&!!s.name&&us(s.name)&&s.name.text===u)}function d9(t,u){let s;const d=yt(t,f,Xr);if(s&&d)return{typeNode:d,symbols:s};function f(p){if(zx(p)&&p.qualifier){const E=hm(p.qualifier),v=IX(E.symbol,u),b=v!==E.text?fst(p.qualifier,q.createIdentifier(v)):p.qualifier;s=xi(s,E.symbol);const B=kn(p.typeArguments,f,Xr);return q.createTypeReferenceNode(b,B)}return rn(p,f,Dg)}}function fst(t,u){return t.kind===80?u:q.createQualifiedName(fst(t.left,u),t.right)}function vw(t,u){u.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function $we(t,u){const s=Ec(u);let d=Ca(t,u.start);for(;d.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(Uwe||{})}});function mst(t,u,s,d,f,p){const E=Est(t,u,s,d);if(!E||a9.isRefactorErrorInfo(E))return;const v=iu.ChangeTracker.fromContext(f),{isStatic:b,isReadonly:B,fieldName:k,accessorName:T,originalName:M,type:z,container:j,declaration:J}=E;Kf(k),Kf(T),Kf(J),Kf(j);let K,Y;if(mr(j)){const se=Eh(J);if(gh(t)){const ge=q.createModifiersFromModifierFlags(se);K=ge,Y=ge}else K=q.createModifiersFromModifierFlags(pJt(se)),Y=q.createModifiersFromModifierFlags(gJt(se));Ak(J)&&(Y=Hi(Ax(J),Y))}vJt(v,t,J,z,k,Y);const oe=EJt(k,T,z,K,b,j);if(Kf(oe),_st(v,t,oe,J,j),B){const se=X_(j);se&&CJt(v,t,se,k.text,M)}else{const se=_Jt(k,T,z,K,b,j);Kf(se),_st(v,t,se,J,j)}return v.getChanges()}function fJt(t){return at(t)||us(t)}function mJt(t){return Mf(t,t.parent)||ko(t)||Jc(t)}function pst(t,u){return at(u)?q.createIdentifier(t):q.createStringLiteral(t)}function gst(t,u,s){const d=u?s.name:q.createThis();return at(t)?q.createPropertyAccessExpression(d,t):q.createElementAccessExpression(d,q.createStringLiteralFromNode(t))}function pJt(t){return t&=-9,t&=-3,t&4||(t|=1),t}function gJt(t){return t&=-2,t&=-5,t|=2,t}function Est(t,u,s,d,f=!0){const p=Ca(t,s),E=s===d&&f,v=Tn(p.parent,mJt),b=271;if(!v||!(rX(v.name,t,s,d)||E))return{error:to(F.Could_not_find_property_for_which_to_generate_accessor)};if(!fJt(v.name))return{error:to(F.Name_is_not_valid)};if((Eh(v)&98303|b)!==b)return{error:to(F.Can_only_convert_property_with_modifier)};const B=v.name.text,k=Afe(B),T=pst(k?B:Ok(`_${B}`,t),v.name),M=pst(k?Ok(B.substring(1),t):B,v.name);return{isStatic:Kc(v),isReadonly:fP(v),type:bJt(v,u),container:v.kind===169?v.parent.parent:v.parent,originalName:v.name.text,declaration:v,fieldName:T,accessorName:M,renameAccessor:k}}function EJt(t,u,s,d,f,p){return q.createGetAccessorDeclaration(d,u,[],s,q.createBlock([q.createReturnStatement(gst(t,f,p))],!0))}function _Jt(t,u,s,d,f,p){return q.createSetAccessorDeclaration(d,u,[q.createParameterDeclaration(void 0,void 0,q.createIdentifier("value"),void 0,s)],q.createBlock([q.createExpressionStatement(q.createAssignment(gst(t,f,p),q.createIdentifier("value")))],!0))}function DJt(t,u,s,d,f,p){const E=q.updatePropertyDeclaration(s,p,f,s.questionToken||s.exclamationToken,d,s.initializer);t.replaceNode(u,s,E)}function xJt(t,u,s,d){let f=q.updatePropertyAssignment(s,d,s.initializer);(f.modifiers||f.questionToken||f.exclamationToken)&&(f===s&&(f=q.cloneNode(f)),f.modifiers=void 0,f.questionToken=void 0,f.exclamationToken=void 0),t.replacePropertyAssignment(u,s,f)}function vJt(t,u,s,d,f,p){ko(s)?DJt(t,u,s,d,f,p):Jc(s)?xJt(t,u,s,f):t.replaceNode(u,s,q.updateParameterDeclaration(s,p,s.dotDotDotToken,Po(f,at),s.questionToken,s.type,s.initializer))}function _st(t,u,s,d,f){Mf(d,d.parent)?t.insertMemberAtStart(u,f,s):Jc(d)?t.insertNodeAfterComma(u,d,s):t.insertNodeAfter(u,d,s)}function CJt(t,u,s,d,f){s.body&&s.body.forEachChild(function p(E){U0(E)&&E.expression.kind===110&&us(E.argumentExpression)&&E.argumentExpression.text===f&&D7(E)&&t.replaceNode(u,E.argumentExpression,q.createStringLiteral(d)),Iu(E)&&E.expression.kind===110&&E.name.text===f&&D7(E)&&t.replaceNode(u,E.name,q.createIdentifier(d)),!Co(E)&&!mr(E)&&E.forEachChild(p)})}function bJt(t,u){const s=Cye(t);if(ko(t)&&s&&t.questionToken){const d=u.getTypeChecker(),f=d.getTypeFromTypeNode(s);if(!d.isTypeAssignableTo(d.getUndefinedType(),f)){const p=Pv(s)?s.types:[s];return q.createUnionTypeNode([...p,q.createKeywordTypeNode(157)])}}return s}function qwe(t,u){const s=[];for(;t;){const d=B2(t),f=d&&u.getSymbolAtLocation(d.expression);if(!f)break;const p=f.flags&2097152?u.getAliasedSymbol(f):f,E=p.declarations&&Le(p.declarations,mr);if(!E)break;s.push(E),t=E}return s}var yJt=o({"src/services/codefixes/generateAccessors.ts"(){rr()}});function kJt(t,u){const s=zn(u),d=Q8(u),f=t.program.getCompilerOptions(),p=[];return p.push(Dst(t,s,u,g5(d.name,void 0,u.moduleSpecifier,Hm(s,t.preferences)))),m1(f)===1&&p.push(Dst(t,s,u,q.createImportEqualsDeclaration(void 0,!1,d.name,q.createExternalModuleReference(u.moduleSpecifier)))),p}function Dst(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>p.replaceNode(u,s,d));return Cg(Zwe,f,[F.Replace_import_with_0,f[0].textChanges[0].newText])}function FJt(t){const u=t.sourceFile,s=F.This_expression_is_not_callable.code===t.errorCode?213:214,d=Tn(Ca(u,t.span.start),p=>p.kind===s);if(!d)return[];const f=d.expression;return xst(t,f)}function AJt(t){const u=t.sourceFile,s=Tn(Ca(u,t.span.start),d=>d.getStart()===t.span.start&&d.getEnd()===t.span.start+t.span.length);return s?xst(t,s):[]}function xst(t,u){const s=t.program.getTypeChecker().getTypeAtLocation(u);if(!(s.symbol&&qE(s.symbol)&&s.symbol.links.originatingImport))return[];const d=[],f=s.symbol.links.originatingImport;if(dm(f)||yn(d,kJt(t,f)),Wt(u)&&!(mh(u.parent)&&u.parent.name===u)){const p=t.sourceFile,E=iu.ChangeTracker.with(t,v=>v.replaceNode(p,u,q.createPropertyAccessExpression(u,"default"),{}));d.push(Cg(Zwe,E,F.Use_synthetic_default_member))}return d}var Zwe,SJt=o({"src/services/codefixes/fixInvalidImportSyntax.ts"(){rr(),rs(),Zwe="invalidImportSyntax",Xo({errorCodes:[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],getCodeActions:FJt}),Xo({errorCodes:[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_does_not_satisfy_the_constraint_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_predicate_0_is_not_assignable_to_1.code,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,F._0_index_type_1_is_not_assignable_to_2_index_type_3.code,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:AJt})}});function vst(t,u){const s=Ca(t,u);if(at(s)&&ko(s.parent)){const d=f1(s.parent);if(d)return{type:d,prop:s.parent,isJs:Qn(s.parent)}}}function BJt(t,u){if(u.isJs)return;const s=iu.ChangeTracker.with(t,d=>Cst(d,t.sourceFile,u.prop));return Ro(X4e,s,[F.Add_definite_assignment_assertion_to_property_0,u.prop.getText()],epe,F.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Cst(t,u,s){Kf(s);const d=q.updatePropertyDeclaration(s,s.modifiers,s.name,q.createToken(54),s.type,s.initializer);t.replaceNode(u,s,d)}function wJt(t,u){const s=iu.ChangeTracker.with(t,d=>bst(d,t.sourceFile,u));return Ro(X4e,s,[F.Add_undefined_type_to_property_0,u.prop.name.getText()],tpe,F.Add_undefined_type_to_all_uninitialized_properties)}function bst(t,u,s){const d=q.createKeywordTypeNode(157),f=Pv(s.type)?s.type.types.concat(d):[s.type,d],p=q.createUnionTypeNode(f);s.isJs?t.addJSDocTags(u,s.prop,[q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(p))]):t.replaceNode(u,s.type,p)}function TJt(t,u){if(u.isJs)return;const s=t.program.getTypeChecker(),d=kst(s,u.prop);if(!d)return;const f=iu.ChangeTracker.with(t,p=>yst(p,t.sourceFile,u.prop,d));return Ro(X4e,f,[F.Add_initializer_to_property_0,u.prop.name.getText()],ipe,F.Add_initializers_to_all_uninitialized_properties)}function yst(t,u,s,d){Kf(s);const f=q.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,d);t.replaceNode(u,s,f)}function kst(t,u){return Fst(t,t.getTypeFromTypeNode(u.type))}function Fst(t,u){if(u.flags&512)return u===t.getFalseType()||u===t.getFalseType(!0)?q.createFalse():q.createTrue();if(u.isStringLiteral())return q.createStringLiteral(u.value);if(u.isNumberLiteral())return q.createNumericLiteral(u.value);if(u.flags&2048)return q.createBigIntLiteral(u.value);if(u.isUnion())return G(u.types,s=>Fst(t,s));if(u.isClass()){const s=tD(u.symbol);if(!s||Yu(s,64))return;const d=X_(s);return d&&d.parameters.length?void 0:q.createNewExpression(q.createIdentifier(u.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(u))return q.createArrayLiteralExpression()}var X4e,epe,tpe,ipe,Ywe,LJt=o({"src/services/codefixes/fixStrictClassInitialization.ts"(){rr(),rs(),X4e="strictClassInitialization",epe="addMissingPropertyDefiniteAssignmentAssertions",tpe="addMissingPropertyUndefinedType",ipe="addMissingPropertyInitializer",Ywe=[F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],Xo({errorCodes:Ywe,getCodeActions:function(u){const s=vst(u.sourceFile,u.span.start);if(!s)return;const d=[];return xi(d,wJt(u,s)),xi(d,BJt(u,s)),xi(d,TJt(u,s)),d},fixIds:[epe,tpe,ipe],getAllCodeActions:t=>f0(t,Ywe,(u,s)=>{const d=vst(s.file,s.start);if(d)switch(t.fixId){case epe:Cst(u,s.file,d.prop);break;case tpe:bst(u,s.file,d);break;case ipe:const f=t.program.getTypeChecker(),p=kst(f,d.prop);if(!p)return;yst(u,s.file,d.prop,p);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function Ast(t,u,s){const{allowSyntheticDefaults:d,defaultImportName:f,namedImports:p,statement:E,required:v}=s;t.replaceNode(u,E,f&&!d?q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(!1,f,p),v,void 0))}function Sst(t,u,s){const{parent:d}=Ca(t,s);xf(d,!0)||H.failBadSyntaxKind(d);const f=Po(d.parent,ua),p=ur(f.name,at),E=Rp(f.name)?NJt(f.name):void 0;if(p||E)return{allowSyntheticDefaults:C7(u.getCompilerOptions()),defaultImportName:p,namedImports:E,statement:Po(f.parent.parent,Jl),required:Pn(d.arguments)}}function NJt(t){const u=[];for(const s of t.elements){if(!at(s.name)||s.initializer)return;u.push(q.createImportSpecifier(!1,ur(s.propertyName,at),s.name))}if(u.length)return q.createNamedImports(u)}var npe,Qwe,PJt=o({"src/services/codefixes/requireInTs.ts"(){rr(),rs(),npe="requireInTs",Qwe=[F.require_call_may_be_converted_to_an_import.code],Xo({errorCodes:Qwe,getCodeActions(t){const u=Sst(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>Ast(d,t.sourceFile,u));return[Ro(npe,s,F.Convert_require_to_import,npe,F.Convert_all_require_to_import)]},fixIds:[npe],getAllCodeActions:t=>f0(t,Qwe,(u,s)=>{const d=Sst(s.file,t.program,s.start);d&&Ast(u,t.sourceFile,d)})})}});function Bst(t,u){const s=Ca(t,u);if(!at(s))return;const{parent:d}=s;if(E1(d)&&r_(d.moduleReference))return{importNode:d,name:s,moduleSpecifier:d.moduleReference.expression};if(Jx(d)){const f=d.parent.parent;return{importNode:f,name:s,moduleSpecifier:f.moduleSpecifier}}}function wst(t,u,s,d){t.replaceNode(u,s.importNode,g5(s.name,void 0,s.moduleSpecifier,Hm(u,d)))}var upe,Xwe,MJt=o({"src/services/codefixes/useDefaultImport.ts"(){rr(),rs(),upe="useDefaultImport",Xwe=[F.Import_may_be_converted_to_a_default_import.code],Xo({errorCodes:Xwe,getCodeActions(t){const{sourceFile:u,span:{start:s}}=t,d=Bst(u,s);if(!d)return;const f=iu.ChangeTracker.with(t,p=>wst(p,u,d,t.preferences));return[Ro(upe,f,F.Convert_to_default_import,upe,F.Convert_all_to_default_imports)]},fixIds:[upe],getAllCodeActions:t=>f0(t,Xwe,(u,s)=>{const d=Bst(s.file,s.start);d&&wst(u,s.file,d,t.preferences)})})}});function Tst(t,u,s){const d=ur(Ca(u,s.start),Of);if(!d)return;const f=d.getText(u)+"n";t.replaceNode(u,d,q.createBigIntLiteral(f))}var rpe,eTe,zJt=o({"src/services/codefixes/useBigintLiteral.ts"(){rr(),rs(),rpe="useBigintLiteral",eTe=[F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],Xo({errorCodes:eTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Tst(d,u.sourceFile,u.span));if(s.length>0)return[Ro(rpe,s,F.Convert_to_a_bigint_numeric_literal,rpe,F.Convert_all_to_bigint_numeric_literals)]},fixIds:[rpe],getAllCodeActions:t=>f0(t,eTe,(u,s)=>Tst(u,s.file,s))})}});function Lst(t,u){const s=Ca(t,u);return H.assert(s.kind===102,"This token should be an ImportKeyword"),H.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function Nst(t,u,s){const d=q.updateImportTypeNode(s,s.argument,s.attributes,s.qualifier,s.typeArguments,!0);t.replaceNode(u,s,d)}var Pst,ape,tTe,IJt=o({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){rr(),rs(),Pst="fixAddModuleReferTypeMissingTypeof",ape=Pst,tTe=[F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],Xo({errorCodes:tTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Lst(s,d.start),p=iu.ChangeTracker.with(u,E=>Nst(E,s,f));return[Ro(ape,p,F.Add_missing_typeof,ape,F.Add_missing_typeof)]},fixIds:[ape],getAllCodeActions:t=>f0(t,tTe,(u,s)=>Nst(u,t.sourceFile,Lst(s.file,s.start)))})}});function Mst(t,u){let f=Ca(t,u).parent.parent;if(!(!Xn(f)&&(f=f.parent,!Xn(f)))&&Ql(f.operatorToken))return f}function zst(t,u,s){const d=RJt(s);d&&t.replaceNode(u,s,q.createJsxFragment(q.createJsxOpeningFragment(),d,q.createJsxJsxClosingFragment()))}function RJt(t){const u=[];let s=t;for(;;)if(Xn(s)&&Ql(s.operatorToken)&&s.operatorToken.kind===28){if(u.push(s.left),ej(s.right))return u.push(s.right),u;if(Xn(s.right)){s=s.right;continue}else return}else return}var ope,iTe,OJt=o({"src/services/codefixes/wrapJsxInFragment.ts"(){rr(),rs(),ope="wrapJsxInFragment",iTe=[F.JSX_expressions_must_have_one_parent_element.code],Xo({errorCodes:iTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Mst(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,E=>zst(E,s,f));return[Ro(ope,p,F.Wrap_in_JSX_fragment,ope,F.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[ope],getAllCodeActions:t=>f0(t,iTe,(u,s)=>{const d=Mst(t.sourceFile,s.start);d&&zst(u,t.sourceFile,d)})})}});function Ist(t,u){const s=Ca(t,u),d=ur(s.parent.parent,Ek);if(!d)return;const f=xh(d.parent)?d.parent:ur(d.parent.parent,jp);if(f)return{indexSignature:d,container:f}}function jJt(t,u){return q.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,u)}function Rst(t,u,{indexSignature:s,container:d}){const p=(xh(d)?d.members:d.type.members).filter(k=>!Ek(k)),E=Pn(s.parameters),v=q.createTypeParameterDeclaration(void 0,Po(E.name,at),E.type),b=q.createMappedTypeNode(fP(s)?q.createModifier(148):void 0,v,void 0,s.questionToken,s.type,void 0),B=q.createIntersectionTypeNode([...uP(d),b,...p.length?[q.createTypeLiteralNode(p)]:_t]);t.replaceNode(u,d,jJt(d,B))}var spe,nTe,VJt=o({"src/services/codefixes/convertToMappedObjectType.ts"(){rr(),rs(),spe="fixConvertToMappedObjectType",nTe=[F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],Xo({errorCodes:nTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Ist(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,v=>Rst(v,s,f)),E=fu(f.container.name);return[Ro(spe,p,[F.Convert_0_to_mapped_object_type,E],spe,[F.Convert_0_to_mapped_object_type,E])]},fixIds:[spe],getAllCodeActions:t=>f0(t,nTe,(u,s)=>{const d=Ist(s.file,s.start);d&&Rst(u,s.file,d)})})}}),uTe,Ost,HJt=o({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){rr(),rs(),uTe="removeAccidentalCallParentheses",Ost=[F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],Xo({errorCodes:Ost,getCodeActions(t){const u=Tn(Ca(t.sourceFile,t.span.start),Mo);if(!u)return;const s=iu.ChangeTracker.with(t,d=>{d.deleteRange(t.sourceFile,{pos:u.expression.end,end:u.end})});return[Cg(uTe,s,F.Remove_parentheses)]},fixIds:[uTe]})}});function jst(t,u,s){const d=ur(Ca(u,s.start),v=>v.kind===135),f=d&&ur(d.parent,Gx);if(!f)return;let p=f;if(Cf(f.parent)){const v=dB(f.expression,!1);if(at(v)){const b=td(f.parent.pos,u);b&&b.kind!==105&&(p=f.parent)}}t.replaceNode(u,p,f.expression)}var lpe,rTe,KJt=o({"src/services/codefixes/removeUnnecessaryAwait.ts"(){rr(),rs(),lpe="removeUnnecessaryAwait",rTe=[F.await_has_no_effect_on_the_type_of_this_expression.code],Xo({errorCodes:rTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>jst(d,u.sourceFile,u.span));if(s.length>0)return[Ro(lpe,s,F.Remove_unnecessary_await,lpe,F.Remove_all_unnecessary_uses_of_await)]},fixIds:[lpe],getAllCodeActions:t=>f0(t,rTe,(u,s)=>jst(u,s.file,s))})}});function Vst(t,u){return Tn(Ca(t,u.start),Sd)}function Hst(t,u,s){if(!u)return;const d=H.checkDefined(u.importClause);t.replaceNode(s.sourceFile,u,q.updateImportDeclaration(u,u.modifiers,q.updateImportClause(d,d.isTypeOnly,d.name,void 0),u.moduleSpecifier,u.attributes)),t.insertNodeAfter(s.sourceFile,u,q.createImportDeclaration(void 0,q.updateImportClause(d,d.isTypeOnly,void 0,d.namedBindings),u.moduleSpecifier,u.attributes))}var aTe,cpe,WJt=o({"src/services/codefixes/splitTypeOnlyImport.ts"(){rr(),rs(),aTe=[F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],cpe="splitTypeOnlyImport",Xo({errorCodes:aTe,fixIds:[cpe],getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Hst(d,Vst(u.sourceFile,u.span),u));if(s.length)return[Ro(cpe,s,F.Split_into_two_separate_import_declarations,cpe,F.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>f0(t,aTe,(u,s)=>{Hst(u,Vst(t.sourceFile,s),t)})})}});function Kst(t,u,s){var d;const p=s.getTypeChecker().getSymbolAtLocation(Ca(t,u));if(p===void 0)return;const E=ur((d=p==null?void 0:p.valueDeclaration)==null?void 0:d.parent,Ad);if(E===void 0)return;const v=a0(E,87,t);if(v!==void 0)return{symbol:p,token:v}}function Wst(t,u,s){t.replaceNode(u,s,q.createToken(121))}var dpe,oTe,GJt=o({"src/services/codefixes/convertConstToLet.ts"(){rr(),rs(),dpe="fixConvertConstToLet",oTe=[F.Cannot_assign_to_0_because_it_is_a_constant.code],Xo({errorCodes:oTe,getCodeActions:function(u){const{sourceFile:s,span:d,program:f}=u,p=Kst(s,d.start,f);if(p===void 0)return;const E=iu.ChangeTracker.with(u,v=>Wst(v,s,p.token));return[oBe(dpe,E,F.Convert_const_to_let,dpe,F.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:u}=t,s=new Map;return Ew(iu.ChangeTracker.with(t,d=>{_w(t,oTe,f=>{const p=Kst(f.file,f.start,u);if(p&&Ip(s,Zo(p.symbol)))return Wst(d,f.file,p.token)})}))},fixIds:[dpe]})}});function Gst(t,u,s){const d=Ca(t,u);return d.kind===27&&d.parent&&(ys(d.parent)||Dh(d.parent))?{node:d}:void 0}function Jst(t,u,{node:s}){const d=q.createToken(28);t.replaceNode(u,s,d)}var hpe,$st,sTe,JJt=o({"src/services/codefixes/fixExpectedComma.ts"(){rr(),rs(),hpe="fixExpectedComma",$st=F._0_expected.code,sTe=[$st],Xo({errorCodes:sTe,getCodeActions(t){const{sourceFile:u}=t,s=Gst(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Jst(f,u,s));return[Ro(hpe,d,[F.Change_0_to_1,";",","],hpe,[F.Change_0_to_1,";",","])]},fixIds:[hpe],getAllCodeActions:t=>f0(t,sTe,(u,s)=>{const d=Gst(s.file,s.start,s.code);d&&Jst(u,t.sourceFile,d)})})}});function Ust(t,u,s,d,f){const p=Ca(u,s.start);if(!at(p)||!Mo(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)return;const E=d.getTypeChecker(),v=E.getSymbolAtLocation(p),b=v==null?void 0:v.valueDeclaration;if(!b||!io(b)||!j2(b.parent.parent)||f!=null&&f.has(b))return;f==null||f.add(b);const B=$Jt(b.parent.parent);if(Oe(B)){const k=B[0],T=!Pv(k)&&!M7(k)&&M7(q.createUnionTypeNode([k,q.createKeywordTypeNode(116)]).types[0]);T&&t.insertText(u,k.pos,"("),t.insertText(u,k.end,T?") | void":" | void")}else{const k=E.getResolvedSignature(p.parent),T=k==null?void 0:k.parameters[0],M=T&&E.getTypeOfSymbolAtLocation(T,b.parent.parent);Qn(b)?(!M||M.flags&3)&&(t.insertText(u,b.parent.parent.end,")"),t.insertText(u,gs(u.text,b.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&t.insertText(u,b.parent.parent.expression.end,"")}}function $Jt(t){var u;if(Qn(t)){if(Cf(t.parent)){const s=(u=xv(t.parent))==null?void 0:u.typeExpression.type;if(s&&X4(s)&&at(s.typeName)&&fu(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var qst,lTe,cTe,UJt=o({"src/services/codefixes/fixAddVoidToPromise.ts"(){rr(),rs(),qst="addVoidToPromise",lTe="addVoidToPromise",cTe=[F.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,F.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],Xo({errorCodes:cTe,fixIds:[lTe],getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Ust(s,t.sourceFile,t.span,t.program));if(u.length>0)return[Ro(qst,u,F.Add_void_to_Promise_resolved_without_a_value,lTe,F.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return f0(t,cTe,(u,s)=>Ust(u,s.file,s,t.program,new Set))}})}}),z1={};h(z1,{PreserveOptionalFlags:()=>Uwe,addNewNodeForMemberSymbol:()=>sst,codeFixAll:()=>f0,createCodeFixAction:()=>Ro,createCodeFixActionMaybeFixAll:()=>oBe,createCodeFixActionWithoutFixAll:()=>Cg,createCombinedCodeActions:()=>Ew,createFileTextChanges:()=>frt,createImportAdder:()=>l9,createImportSpecifierResolver:()=>sWt,createJsonPropertyAssignment:()=>Q4e,createMissingMemberNodes:()=>jwe,createSignatureDeclarationFromCallExpression:()=>Vwe,createSignatureDeclarationFromSignature:()=>Z4e,createStubbedBody:()=>Bee,eachDiagnostic:()=>_w,findAncestorMatchingSpan:()=>$we,findJsonProperty:()=>Jwe,generateAccessorFromProperty:()=>mst,getAccessorConvertiblePropertyAtPosition:()=>Est,getAllFixes:()=>RHt,getAllSupers:()=>qwe,getArgumentTypesAndTypeParameters:()=>dst,getFixes:()=>IHt,getImportCompletionAction:()=>lWt,getImportKind:()=>zBe,getJSDocTypedefNodes:()=>nWt,getNoopSymbolTrackerWithResolver:()=>xw,getPromoteTypeOnlyCompletionAction:()=>cWt,getSupportedErrorCodes:()=>MHt,importFixName:()=>KBe,importSymbols:()=>vw,moduleSpecifierToValidIdentifier:()=>HBe,moduleSymbolToValidIdentifier:()=>VBe,parameterShouldGetTypeFromJSDoc:()=>Nrt,registerCodeFix:()=>Xo,setJsonCompilerOptionValue:()=>Gwe,setJsonCompilerOptionValues:()=>Wwe,tryGetAutoImportableReferenceFromTypeNode:()=>d9,typeToAutoImportableTypeNode:()=>Y4e});var rs=o({"src/services/_namespaces/ts.codefix.ts"(){OHt(),jHt(),VHt(),WHt(),qHt(),XHt(),eKt(),tKt(),iKt(),aKt(),gKt(),_Kt(),BKt(),$Kt(),UKt(),ZKt(),YKt(),uWt(),rWt(),oWt(),wWt(),NWt(),zWt(),IWt(),RWt(),VWt(),WWt(),$Wt(),QWt(),sGt(),cGt(),dGt(),fGt(),mGt(),pGt(),gGt(),_Gt(),DGt(),xGt(),vGt(),CGt(),yGt(),AGt(),TGt(),jGt(),HGt(),KGt(),JGt(),$Gt(),qGt(),ZGt(),uJt(),rJt(),aJt(),hJt(),yJt(),SJt(),LJt(),PJt(),MJt(),zJt(),IJt(),OJt(),VJt(),HJt(),KJt(),WJt(),GJt(),JJt(),UJt()}});function qJt(t){return!!(t.kind&1)}function ZJt(t){return!!(t.kind&2)}function wee(t){return!!(t&&t.kind&4)}function ZM(t){return!!(t&&t.kind===32)}function YJt(t){return wee(t)||ZM(t)||dTe(t)}function QJt(t){return(wee(t)||ZM(t))&&!!t.isFromPackageJson}function XJt(t){return!!(t.kind&8)}function e$t(t){return!!(t.kind&16)}function Zst(t){return!!(t&&t.kind&64)}function Yst(t){return!!(t&&t.kind&128)}function t$t(t){return!!(t&&t.kind&256)}function dTe(t){return!!(t&&t.kind&512)}function Qst(t,u,s,d,f,p,E,v,b){var B,k,T;const M=G0(),z=E||b7(p1(d.getCompilerOptions()));let j=!1,J=0,K=0,Y=0,oe=0;const se=b({tryResolve:ae,skippedAny:()=>j,resolvedAny:()=>K>0,resolvedBeyondLimit:()=>K>Cpe}),ge=oe?` (${(Y/oe*100).toFixed(1)}% hit rate)`:"";return(B=u.log)==null||B.call(u,`${t}: resolved ${K} module specifiers, plus ${J} ambient and ${Y} from cache${ge}`),(k=u.log)==null||k.call(u,`${t}: response is ${j?"incomplete":"complete"}`),(T=u.log)==null||T.call(u,`${t}: ${G0()-M}`),se;function ae(Ce,ne){if(ne){const pe=s.getModuleSpecifierForBestExportInfo(Ce,f,v);return pe&&J++,pe||"failed"}const ve=z||p.allowIncompleteCompletions&&K{const j=qi(b.entries,J=>{var K;if(!J.hasAction||!J.source||!J.data||Xst(J.data))return J;if(!y0t(J.name,k))return;const{origin:Y}=H.checkDefined(d0t(J.name,J.data,d,f)),oe=T.get(u.path,J.data.exportMapKey),se=oe&&z.tryResolve(oe,!Id($4(Y.moduleSymbol.name)));if(se==="skipped")return J;if(!se||se==="failed"){(K=f.log)==null||K.call(f,`Unexpected failure resolving auto import for '${J.name}' from '${J.source}'`);return}const ge={...Y,kind:32,moduleSpecifier:se.moduleSpecifier};return J.data=o0t(ge),J.source=mTe(ge),J.sourceDisplay=[Km(ge.moduleSpecifier)],J});return z.skippedAny()||(b.isIncomplete=void 0),j});return b.entries=M,b.flags=(b.flags||0)|4,b.optionalReplacementSpan=n0t(B),b}function hTe(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function e0t(t,u,s,d,f,p){const E=Ca(t,u);if(!I8(E)&&!Vp(E))return[];const v=Vp(E)?E:E.parent;if(!Vp(v))return[];const b=v.parent;if(!Co(b))return[];const B=gh(t),k=f.includeCompletionsWithSnippetText||void 0,T=ui(v.tags,M=>Eg(M)&&M.getEnd()<=u);return qi(b.parameters,M=>{if(!B8(M).length){if(at(M.name)){const z={tabstop:1},j=M.name.text;let J=AK(j,M.initializer,M.dotDotDotToken,B,!1,!1,s,d,f),K=k?AK(j,M.initializer,M.dotDotDotToken,B,!1,!0,s,d,f,z):void 0;return p&&(J=J.slice(1),K&&(K=K.slice(1))),{name:J,kind:"parameter",sortText:I1.LocationPriority,insertText:k?K:void 0,isSnippet:k}}else if(M.parent.parameters.indexOf(M)===T){const z=`param${T}`,j=t0t(z,M.name,M.initializer,M.dotDotDotToken,B,!1,s,d,f),J=k?t0t(z,M.name,M.initializer,M.dotDotDotToken,B,!0,s,d,f):void 0;let K=j.join(a5(d)+"* "),Y=J==null?void 0:J.join(a5(d)+"* ");return p&&(K=K.slice(1),Y&&(Y=Y.slice(1))),{name:K,kind:"parameter",sortText:I1.LocationPriority,insertText:k?Y:void 0,isSnippet:k}}}})}function t0t(t,u,s,d,f,p,E,v,b){if(!f)return[AK(t,s,d,f,!1,p,E,v,b,{tabstop:1})];return B(t,u,s,d,{tabstop:1});function B(T,M,z,j,J){if(Rp(M)&&!j){const Y={tabstop:J.tabstop},oe=AK(T,z,j,f,!0,p,E,v,b,Y);let se=[];for(const ge of M.elements){const ae=k(T,ge,Y);if(ae)se.push(...ae);else{se=void 0;break}}if(se)return J.tabstop=Y.tabstop,[oe,...se]}return[AK(T,z,j,f,!1,p,E,v,b,J)]}function k(T,M,z){if(!M.propertyName&&at(M.name)||at(M.name)){const j=M.propertyName?UN(M.propertyName):M.name.text;if(!j)return;const J=`${T}.${j}`;return[AK(J,M.initializer,M.dotDotDotToken,f,!1,p,E,v,b,z)]}else if(M.propertyName){const j=UN(M.propertyName);return j&&B(`${T}.${j}`,M.name,M.initializer,M.dotDotDotToken,z)}}}function AK(t,u,s,d,f,p,E,v,b,B){if(p&&H.assertIsDefined(B),u&&(t=u$t(t,u)),p&&(t=O2(t)),d){let k="*";if(f)H.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(u){const z=E.getTypeAtLocation(u.parent);if(!(z.flags&16385)){const j=u.getSourceFile(),K=Hm(j,b)===0?268435456:0,Y=E.typeToTypeNode(z,Tn(u,Co),K);if(Y){const oe=p?ppe({removeComments:!0,module:v.module,target:v.target}):Gv({removeComments:!0,module:v.module,target:v.target});Zn(Y,1),k=oe.printNode(4,Y,j)}}}p&&k==="*"&&(k=`\${${B.tabstop++}:${k}}`)}const T=!f&&s?"...":"",M=p?`\${${B.tabstop++}}`:"";return`@param {${T}${k}} ${t} ${M}`}else{const k=p?`\${${B.tabstop++}}`:"";return`@param ${t} ${k}`}}function u$t(t,u){const s=u.getText().trim();return s.includes(` -`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function r$t(t){return{name:Uo(t),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords}}function a$t(t,u){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:u,entries:t.slice()}}function i0t(t,u,s){return{kind:4,keywordCompletions:h0t(t,u),isNewIdentifierLocation:s}}function o$t(t){switch(t){case 156:return 8;default:H.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function n0t(t){return(t==null?void 0:t.kind)===80?of(t):void 0}function s$t(t,u,s,d,f,p,E,v,b,B){const{symbols:k,contextToken:T,completionKind:M,isInSnippetScope:z,isNewIdentifierLocation:j,location:J,propertyAccessToConvert:K,keywordFilters:Y,symbolToOriginInfoMap:oe,recommendedCompletion:se,isJsxInitializer:ge,isTypeOnlyLocation:ae,isJsxIdentifierExpected:Ce,isRightOfOpenTag:ne,isRightOfDotOrQuestionDot:ve,importStatementCompletion:Se,insideJsDocTagTypeExpression:Ne,symbolToSortTextMap:pe,hasUnresolvedAutoImports:fe}=p;let xe=p.literals;const Be=s.getTypeChecker();if(Yj(t.scriptKind)===1){const ft=c$t(J,t);if(ft)return ft}const Ge=Tn(T,BB);if(Ge&&(uFe(T)||S2(T,Ge.expression))){const ft=VX(Be,Ge.parent.clauses);xe=xe.filter(Ye=>!ft.hasValue(Ye)),k.forEach((Ye,Ve)=>{if(Ye.valueDeclaration&&J2(Ye.valueDeclaration)){const We=Be.getConstantValue(Ye.valueDeclaration);We!==void 0&&ft.hasValue(We)&&(oe[Ve]={kind:256})}})}const Ae=xt(),De=u0t(t,d);if(De&&!j&&(!k||k.length===0)&&Y===0)return;const Ke=pTe(k,Ae,void 0,T,J,b,t,u,s,Os(d),f,M,E,d,v,ae,K,Ce,ge,Se,se,oe,pe,Ce,ne,B);if(Y!==0)for(const ft of h0t(Y,!Ne&&gh(t)))(ae&&PM(f2(ft.name))||!ae&&G$t(ft.name)||!Ke.has(ft.name))&&(Ke.add(ft.name),Tt(Ae,ft,Tee,!0));for(const ft of L$t(T,b))Ke.has(ft.name)||(Ke.add(ft.name),Tt(Ae,ft,Tee,!0));for(const ft of xe){const Ye=h$t(t,E,ft);Ke.add(Ye.name),Tt(Ae,Ye,Tee,!0)}De||d$t(t,J.pos,Ke,Os(d),Ae);let Je;if(E.includeCompletionsWithInsertText&&T&&!ne&&!ve&&(Je=Tn(T,ZP))){const ft=r0t(Je,t,E,d,u,s,v);ft&&Ae.push(ft.entry)}return{flags:p.flags,isGlobalCompletion:z,isIncomplete:E.allowIncompleteCompletions&&fe?!0:void 0,isMemberCompletion:l$t(M),isNewIdentifierLocation:j,optionalReplacementSpan:n0t(J),entries:Ae}}function u0t(t,u){return!gh(t)||!!uV(t,u)}function r0t(t,u,s,d,f,p,E){const v=t.clauses,b=p.getTypeChecker(),B=b.getTypeAtLocation(t.parent.expression);if(B&&B.isUnion()&&ye(B.types,k=>k.isLiteral())){const k=VX(b,v),T=Os(d),M=Hm(u,s),z=z1.createImportAdder(u,p,s,f),j=[];for(const ae of B.types)if(ae.flags&1024){H.assert(ae.symbol,"An enum member type should have a symbol"),H.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const Ce=ae.symbol.valueDeclaration&&b.getConstantValue(ae.symbol.valueDeclaration);if(Ce!==void 0){if(k.hasValue(Ce))continue;k.addValue(Ce)}const ne=z1.typeToAutoImportableTypeNode(b,z,ae,t,T);if(!ne)return;const ve=fpe(ne,T,M);if(!ve)return;j.push(ve)}else if(!k.hasValue(ae.value))switch(typeof ae.value){case"object":j.push(ae.value.negative?q.createPrefixUnaryExpression(41,q.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):q.createBigIntLiteral(ae.value));break;case"number":j.push(ae.value<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-ae.value)):q.createNumericLiteral(ae.value));break;case"string":j.push(q.createStringLiteral(ae.value,M===0));break}if(j.length===0)return;const J=Vt(j,ae=>q.createCaseClause(ae,[])),K=E5(f,E==null?void 0:E.options),Y=ppe({removeComments:!0,module:d.module,target:d.target,newLine:eK(K)}),oe=E?ae=>Y.printAndFormatNode(4,ae,u,E):ae=>Y.printNode(4,ae,u),se=Vt(J,(ae,Ce)=>s.includeCompletionsWithSnippetText?`${oe(ae)}$${Ce+1}`:`${oe(ae)}`).join(K);return{entry:{name:`${Y.printNode(4,J[0],u)} ...`,kind:"",sortText:I1.GlobalsOrKeywords,insertText:se,hasAction:z.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:z}}}function fpe(t,u,s){switch(t.kind){case 183:const d=t.typeName;return mpe(d,u,s);case 199:const f=fpe(t.objectType,u,s),p=fpe(t.indexType,u,s);return f&&p&&q.createElementAccessExpression(f,p);case 201:const E=t.literal;switch(E.kind){case 11:return q.createStringLiteral(E.text,s===0);case 9:return q.createNumericLiteral(E.text,E.numericLiteralFlags)}return;case 196:const v=fpe(t.type,u,s);return v&&(at(v)?v:q.createParenthesizedExpression(v));case 186:return mpe(t.exprName,u,s);case 205:H.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function mpe(t,u,s){if(at(t))return t;const d=Qr(t.right.escapedText);return zle(d,u)?q.createPropertyAccessExpression(mpe(t.left,u,s),d):q.createElementAccessExpression(mpe(t.left,u,s),q.createStringLiteral(d,s===0))}function l$t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function c$t(t,u){const s=Tn(t,d=>{switch(d.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const d=!!a0(s,32,u),E=s.parent.openingElement.tagName.getText(u)+(d?"":">"),v=of(s.tagName),b={name:E,kind:"class",kindModifiers:void 0,sortText:I1.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:v,entries:[b]}}}function d$t(t,u,s,d,f){Tme(t).forEach((p,E)=>{if(p===u)return;const v=Qr(E);!s.has(v)&&Lm(v,d)&&(s.add(v),Tt(f,{name:v,kind:"warning",kindModifiers:"",sortText:I1.JavascriptIdentifiers,isFromUncheckedFile:!0},Tee))})}function fTe(t,u,s){return typeof s=="object"?I2(s)+"n":Ja(s)?jM(t,u,s):JSON.stringify(s)}function h$t(t,u,s){return{name:fTe(t,u,s),kind:"string",kindModifiers:"",sortText:I1.LocationPriority}}function f$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne){var ve,Se;let Ne,pe,fe=Xhe(s),xe,Be,Ge=mTe(T),Ae,De,Ke;const Je=b.getTypeChecker(),ft=T&&e$t(T),Ye=T&&ZJt(T)||k;if(T&&qJt(T))Ne=k?`this${ft?"?.":""}[${s0t(E,oe,B)}]`:`this${ft?"?.":"."}${B}`;else if((Ye||ft)&&z){Ne=Ye?k?`[${s0t(E,oe,B)}]`:`[${B}]`:B,(ft||z.questionDotToken)&&(Ne=`?.${Ne}`);const We=a0(z,25,E)||a0(z,29,E);if(!We)return;const Gt=Pa(B,z.name.text)?z.name.end:We.end;fe=Vc(We.getStart(E),Gt)}if(j&&(Ne===void 0&&(Ne=B),Ne=`{${Ne}}`,typeof j!="boolean"&&(fe=of(j,E))),T&&XJt(T)&&z){Ne===void 0&&(Ne=B);const We=td(z.pos,E);let Gt="";We&&TX(We.end,We.parent,E)&&(Gt=";"),Gt+=`(await ${z.expression.getText()})`,Ne=k?`${Gt}${Ne}`:`${Gt}${ft?"?.":"."}${Ne}`;const Ie=ur(z.parent,Gx)?z.parent:z.expression;fe=Vc(Ie.getStart(E),z.end)}if(ZM(T)&&(Ae=[Km(T.moduleSpecifier)],J&&({insertText:Ne,replacementSpan:fe}=x$t(B,J,T,K,E,Y,oe),Be=oe.includeCompletionsWithSnippetText?!0:void 0)),(T==null?void 0:T.kind)===64&&(De=!0),se===0&&d&&((ve=td(d.pos,E,d))==null?void 0:ve.kind)!==28&&(dc(d.parent.parent)||zm(d.parent.parent)||jf(d.parent.parent)||d5(d.parent)||((Se=Tn(d.parent,Jc))==null?void 0:Se.getLastToken(E))===d||pm(d.parent)&&s0(E,d.getEnd()).line!==s0(E,p).line)&&(Ge="ObjectLiteralMemberWithComma/",De=!0),oe.includeCompletionsWithClassMemberSnippets&&oe.includeCompletionsWithInsertText&&se===3&&m$t(t,f,E)){let We;const Gt=a0t(v,b,Y,oe,B,t,f,p,d,ge);if(Gt)({insertText:Ne,filterText:pe,isSnippet:Be,importAdder:We}=Gt),We!=null&&We.hasFixes()&&(De=!0,Ge="ClassMemberSnippet/");else return}if(T&&Yst(T)&&({insertText:Ne,isSnippet:Be,labelDetails:Ke}=T,oe.useLabelDetailsInCompletionEntries||(B=B+Ke.detail,Ke=void 0),Ge="ObjectLiteralMethodSnippet/",u=I1.SortBelow(u)),ae&&!Ce&&oe.includeCompletionsWithSnippetText&&oe.jsxAttributeCompletionStyle&&oe.jsxAttributeCompletionStyle!=="none"&&!(oE(f.parent)&&f.parent.initializer)){let We=oe.jsxAttributeCompletionStyle==="braces";const Gt=Je.getTypeOfSymbolAtLocation(t,f);oe.jsxAttributeCompletionStyle==="auto"&&!(Gt.flags&528)&&!(Gt.flags&1048576&&Le(Gt.types,Yt=>!!(Yt.flags&528)))&&(Gt.flags&402653316||Gt.flags&1048576&&ye(Gt.types,Yt=>!!(Yt.flags&402686084||aSe(Yt)))?(Ne=`${O2(B)}=${jM(E,oe,"$1")}`,Be=!0):We=!0),We&&(Ne=`${O2(B)}={$1}`,Be=!0)}if(Ne!==void 0&&!oe.includeCompletionsWithInsertText)return;(wee(T)||ZM(T))&&(xe=o0t(T),De=!J);const Ve=Tn(f,Uq);if((Ve==null?void 0:Ve.kind)===275){const We=f2(B);Ve&&We&&(We===135||G0e(We))&&(Ne=`${B} as ${B}_`)}return{name:B,kind:x5.getSymbolKind(Je,t,f),kindModifiers:x5.getSymbolModifiers(Je,t),sortText:u,source:Ge,hasAction:De?!0:void 0,isRecommended:v$t(t,M,Je)||void 0,insertText:Ne,filterText:pe,replacementSpan:fe,sourceDisplay:Ae,labelDetails:Ke,isSnippet:Be,isPackageJsonImport:QJt(T)||void 0,isImportStatementCompletion:!!J||void 0,data:xe,...ne?{symbol:t}:void 0}}function m$t(t,u,s){return Qn(u)?!1:!!(t.flags&106500)&&(mr(u)||u.parent&&u.parent.parent&&Zd(u.parent)&&u===u.parent.name&&u.parent.getLastToken(s)===u.parent.name&&mr(u.parent.parent)||u.parent&&MB(u)&&mr(u.parent))}function a0t(t,u,s,d,f,p,E,v,b,B){const k=Tn(E,mr);if(!k)return;let T,M=f;const z=f,j=u.getTypeChecker(),J=E.getSourceFile(),K=ppe({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:eK(E5(t,B==null?void 0:B.options))}),Y=z1.createImportAdder(J,u,d,t);let oe;if(d.includeCompletionsWithSnippetText){T=!0;const Se=q.createEmptyStatement();oe=q.createBlock([Se],!0),lce(Se,{kind:0,order:0})}else oe=q.createBlock([],!0);let se=0;const{modifiers:ge,range:ae,decorators:Ce}=p$t(b,J,v),ne=ge&64&&k.modifierFlagsCache&64;let ve=[];if(z1.addNewNodeForMemberSymbol(p,k,J,{program:u,host:t},d,Y,Se=>{let Ne=0;ne&&(Ne|=64),Zd(Se)&&j.getMemberOverrideModifierStatus(k,Se,p)===1&&(Ne|=16),ve.length||(se=Se.modifierFlagsCache|Ne),Se=q.replaceModifiers(Se,se),ve.push(Se)},oe,z1.PreserveOptionalFlags.Property,!!ne),ve.length){const Se=p.flags&8192;let Ne=se|16|1;Se?Ne|=1024:Ne|=136;const pe=ge&Ne;if(ge&~Ne)return;if(se&4&&pe&1&&(se&=-5),pe!==0&&!(pe&1)&&(se&=-2),se|=pe,ve=ve.map(xe=>q.replaceModifiers(xe,se)),Ce!=null&&Ce.length){const xe=ve[ve.length-1];Ak(xe)&&(ve[ve.length-1]=q.replaceDecoratorsAndModifiers(xe,Ce.concat(p2(xe)||[])))}const fe=131073;B?M=K.printAndFormatSnippetList(fe,q.createNodeArray(ve),J,B):M=K.printSnippetList(fe,q.createNodeArray(ve),J)}return{insertText:M,filterText:z,isSnippet:T,importAdder:Y,eraseRange:ae}}function p$t(t,u,s){if(!t||s0(u,s).line>s0(u,t.getEnd()).line)return{modifiers:0};let d=0,f,p;const E={pos:s,end:s};if(ko(t.parent)&&t.parent.modifiers&&(d|=tE(t.parent.modifiers)&98303,f=t.parent.modifiers.filter(g1)||[],E.pos=Math.min(E.pos,t.parent.modifiers.pos)),p=g$t(t)){const v=_7(p);d&v||(d|=v,E.pos=Math.min(E.pos,t.pos))}return{modifiers:d,decorators:f,range:E.pos!==s?E:void 0}}function g$t(t){if(Qo(t))return t.kind;if(at(t)){const u=Dv(t);if(u&&XD(u))return u}}function E$t(t,u,s,d,f,p,E,v){const b=E.includeCompletionsWithSnippetText||void 0;let B=u;const k=s.getSourceFile(),T=_$t(t,s,k,d,f,E);if(!T)return;const M=ppe({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!1,newLine:eK(E5(f,v==null?void 0:v.options))});v?B=M.printAndFormatSnippetList(80,q.createNodeArray([T],!0),k,v):B=M.printSnippetList(80,q.createNodeArray([T],!0),k);const z=Gv({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!0}),j=q.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),J={detail:z.printNode(4,j,k)};return{isSnippet:b,insertText:B,labelDetails:J}}function _$t(t,u,s,d,f,p){const E=t.getDeclarations();if(!(E&&E.length))return;const v=d.getTypeChecker(),b=E[0],B=ll(Za(b),!1),k=v.getWidenedType(v.getTypeOfSymbolAtLocation(t,u)),M=33554432|(Hm(s,p)===0?268435456:0);switch(b.kind){case 171:case 172:case 173:case 174:{let z=k.flags&1048576&&k.types.length<10?v.getUnionType(k.types,2):k;if(z.flags&1048576){const oe=ti(z.types,se=>v.getSignaturesOfType(se,0).length>0);if(oe.length===1)z=oe[0];else return}if(v.getSignaturesOfType(z,0).length!==1)return;const J=v.typeToTypeNode(z,u,M,z1.getNoopSymbolTrackerWithResolver({program:d,host:f}));if(!J||!u3(J))return;let K;if(p.includeCompletionsWithSnippetText){const oe=q.createEmptyStatement();K=q.createBlock([oe],!0),lce(oe,{kind:0,order:0})}else K=q.createBlock([],!0);const Y=J.parameters.map(oe=>q.createParameterDeclaration(void 0,oe.dotDotDotToken,oe.name,void 0,void 0,oe.initializer));return q.createMethodDeclaration(void 0,void 0,B,void 0,void 0,Y,void 0,K)}default:return}}function ppe(t){let u;const s=iu.createWriter(a5(t)),d=Gv(t,s),f={...s,write:M=>p(M,()=>s.write(M)),nonEscapingWrite:s.write,writeLiteral:M=>p(M,()=>s.writeLiteral(M)),writeStringLiteral:M=>p(M,()=>s.writeStringLiteral(M)),writeSymbol:(M,z)=>p(M,()=>s.writeSymbol(M,z)),writeParameter:M=>p(M,()=>s.writeParameter(M)),writeComment:M=>p(M,()=>s.writeComment(M)),writeProperty:M=>p(M,()=>s.writeProperty(M))};return{printSnippetList:E,printAndFormatSnippetList:b,printNode:B,printAndFormatNode:T};function p(M,z){const j=O2(M);if(j!==M){const J=s.getTextPos();z();const K=s.getTextPos();u=xi(u||(u=[]),{newText:j,span:{start:J,length:K-J}})}else z()}function E(M,z,j){const J=v(M,z,j);return u?iu.applyChanges(J,u):J}function v(M,z,j){return u=void 0,f.clear(),d.writeList(M,z,j,f),f.getText()}function b(M,z,j,J){const K={text:v(M,z,j),getLineAndCharacterOfPosition(ge){return s0(this,ge)}},Y=jX(J,j),oe=ju(z,ge=>{const ae=iu.assignPositionsToNode(ge);return dd.formatNodeGivenIndentation(ae,K,j.languageVariant,0,0,{...J,options:Y})}),se=u?oc(Hi(oe,u),(ge,ae)=>q$(ge.span,ae.span)):oe;return iu.applyChanges(K.text,se)}function B(M,z,j){const J=k(M,z,j);return u?iu.applyChanges(J,u):J}function k(M,z,j){return u=void 0,f.clear(),d.writeNode(M,z,j,f),f.getText()}function T(M,z,j,J){const K={text:k(M,z,j),getLineAndCharacterOfPosition(ae){return s0(this,ae)}},Y=jX(J,j),oe=iu.assignPositionsToNode(z),se=dd.formatNodeGivenIndentation(oe,K,j.languageVariant,0,0,{...J,options:Y}),ge=u?oc(Hi(se,u),(ae,Ce)=>q$(ae.span,Ce.span)):se;return iu.applyChanges(K.text,ge)}}function o0t(t){const u=t.fileName?void 0:$4(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return ZM(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:u,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:$4(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function D$t(t,u,s){const d=t.exportName==="default",f=!!t.isPackageJsonImport;return Xst(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}}function x$t(t,u,s,d,f,p,E){const v=u.replacementSpan,b=O2(jM(f,E,s.moduleSpecifier)),B=s.isDefaultExport?1:s.exportName==="export="?2:0,k=E.includeCompletionsWithSnippetText?"$1":"",T=z1.getImportKind(f,B,p,!0),M=u.couldBeTypeOnlyImportSpecifier,z=u.isTopLevelTypeOnly?` ${Uo(156)} `:" ",j=M?`${Uo(156)} `:"",J=d?";":"";switch(T){case 3:return{replacementSpan:v,insertText:`import${z}${O2(t)}${k} = require(${b})${J}`};case 1:return{replacementSpan:v,insertText:`import${z}${O2(t)}${k} from ${b}${J}`};case 2:return{replacementSpan:v,insertText:`import${z}* as ${O2(t)} from ${b}${J}`};case 0:return{replacementSpan:v,insertText:`import${z}{ ${j}${O2(t)}${k} } from ${b}${J}`}}}function s0t(t,u,s){return/^\d+$/.test(s)?s:jM(t,u,s)}function v$t(t,u,s){return t===u||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===u}function mTe(t){if(wee(t))return $4(t.moduleSymbol.name);if(ZM(t))return t.moduleSpecifier;if((t==null?void 0:t.kind)===1)return"ThisProperty/";if((t==null?void 0:t.kind)===64)return"TypeOnlyAlias/"}function pTe(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne,ve,Se=!1){const Ne=G0(),pe=H$t(d,f),fe=YH(E),xe=b.getTypeChecker(),Be=new Map;for(let Ae=0;AeIe.getSourceFile()===f.getSourceFile()));Be.set(ft,Yt),Tt(u,Gt,Tee,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(G0()-Ne)),{has:Ae=>Be.has(Ae),add:Ae=>Be.set(Ae,!0)};function Ge(Ae,De){var Ke;let Je=Ae.flags;if(!la(f)){if(tc(f.parent))return!0;if(ur(pe,ua)&&Ae.valueDeclaration===pe)return!1;const ft=Ae.valueDeclaration??((Ke=Ae.declarations)==null?void 0:Ke[0]);if(pe&&ft&&(Bl(pe)&&Bl(ft)||io(pe)&&io(ft))){const Ve=ft.pos,We=io(pe)?pe.parent.parameters:P7(pe.parent)?void 0:pe.parent.typeParameters;if(Ve>=pe.pos&&We&&VefTe(s,E,se)===f.name);return oe!==void 0?{type:"literal",literal:oe}:G(B,(se,ge)=>{const ae=z[ge],Ce=Epe(se,Os(v),ae,M,b.isJsxIdentifierExpected);return Ce&&Ce.name===f.name&&(f.source==="ClassMemberSnippet/"&&se.flags&106500||f.source==="ObjectLiteralMethodSnippet/"&&se.flags&8196||mTe(ae)===f.source||f.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:se,location:T,origin:ae,contextToken:j,previousToken:J,isJsxInitializer:K,isTypeOnlyLocation:Y}:void 0})||{type:"none"}}function y$t(t,u,s,d,f,p,E,v,b){const B=t.getTypeChecker(),k=t.getCompilerOptions(),{name:T,source:M,data:z}=f,{previousToken:j,contextToken:J}=gpe(d,s);if(zk(s,d,j))return ype.getStringLiteralCompletionDetails(T,s,d,j,B,k,p,b,v);const K=l0t(t,u,s,d,f,p,v);switch(K.type){case"request":{const{request:Y}=K;switch(Y.kind){case 1:return Yv.getJSDocTagNameCompletionDetails(T);case 2:return Yv.getJSDocTagCompletionDetails(T);case 3:return Yv.getJSDocParameterNameCompletionDetails(T);case 4:return Oe(Y.keywordCompletions,oe=>oe.name===T)?gTe(T,"keyword",5):void 0;default:return H.assertNever(Y)}}case"symbol":{const{symbol:Y,location:oe,contextToken:se,origin:ge,previousToken:ae}=K,{codeActions:Ce,sourceDisplay:ne}=k$t(T,oe,se,ge,Y,t,p,k,s,d,ae,E,v,z,M,b),ve=dTe(ge)?ge.symbolName:Y.name;return ETe(Y,ve,B,s,oe,b,Ce,ne)}case"literal":{const{literal:Y}=K;return gTe(fTe(s,v,Y),"string",typeof Y=="string"?8:7)}case"cases":{const Y=r0t(J.parent,s,v,t.getCompilerOptions(),p,t,void 0);if(Y!=null&&Y.importAdder.hasFixes()){const{entry:oe,importAdder:se}=Y,ge=iu.ChangeTracker.with({host:p,formatContext:E,preferences:v},se.writeFixes);return{name:oe.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ge,description:jk([F.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:T,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return kTe().some(Y=>Y.name===T)?gTe(T,"keyword",5):void 0;default:H.assertNever(K)}}function gTe(t,u,s){return Lee(t,"",u,[yf(t,s)])}function ETe(t,u,s,d,f,p,E,v){const{displayParts:b,documentation:B,symbolKind:k,tags:T}=s.runWithCancellationToken(p,M=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(M,t,d,f,f,7));return Lee(u,x5.getSymbolModifiers(s,t),k,b,B,T,E,v)}function Lee(t,u,s,d,f,p,E,v){return{name:t,kindModifiers:u,kind:s,displayParts:d,documentation:f,tags:p,codeActions:E,source:v,sourceDisplay:v}}function k$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J){if(z!=null&&z.moduleSpecifier&&k&&D0t(s||k,b).replacementSpan)return{codeActions:void 0,sourceDisplay:[Km(z.moduleSpecifier)]};if(j==="ClassMemberSnippet/"){const{importAdder:Ce,eraseRange:ne}=a0t(E,p,v,M,t,f,u,B,s,T);if(Ce||ne)return{sourceDisplay:void 0,codeActions:[{changes:iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},Se=>{Ce&&Ce.writeFixes(Se),ne&&Se.deleteRange(b,ne)}),description:jk([F.Includes_imports_of_types_referenced_by_0,t])}]}}if(Zst(d)){const Ce=z1.getPromoteTypeOnlyCompletionAction(b,d.declaration.name,p,E,T,M);return H.assertIsDefined(Ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[Ce],sourceDisplay:void 0}}if(j==="ObjectLiteralMemberWithComma/"&&s){const Ce=iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},ne=>ne.insertText(b,s.end,","));if(Ce)return{sourceDisplay:void 0,codeActions:[{changes:Ce,description:jk([F.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!d||!(wee(d)||ZM(d)))return{codeActions:void 0,sourceDisplay:void 0};const K=d.isFromPackageJson?E.getPackageJsonAutoImportProvider().getTypeChecker():p.getTypeChecker(),{moduleSymbol:Y}=d,oe=K.getMergedSymbol(X1(f.exportSymbol||f,K)),se=(s==null?void 0:s.kind)===30&&zh(s.parent),{moduleSpecifier:ge,codeAction:ae}=z1.getImportCompletionAction(oe,Y,z==null?void 0:z.exportMapKey,b,t,se,E,p,T,k&&at(k)?k.getStart(b):B,M,J);return H.assert(!(z!=null&&z.moduleSpecifier)||ge===z.moduleSpecifier),{sourceDisplay:[Km(ge)],codeActions:[ae]}}function F$t(t,u,s,d,f,p,E){const v=l0t(t,u,s,d,f,p,E);return v.type==="symbol"?v.symbol:void 0}function A$t(t,u,s){return G(u&&(u.isUnion()?u.types:[u]),d=>{const f=d&&d.symbol;return f&&f.flags&424&&!Jye(f)?_Te(f,t,s):void 0})}function S$t(t,u,s,d){const{parent:f}=t;switch(t.kind){case 80:return SX(t,d);case 64:switch(f.kind){case 260:return d.getContextualType(f.initializer);case 226:return d.getTypeAtLocation(f.left);case 291:return d.getContextualTypeForJsxAttribute(f);default:return}case 105:return d.getContextualType(f);case 84:const p=ur(f,BB);return p?Dfe(p,d):void 0;case 19:return YP(f)&&!r3(f.parent)&&!K2(f.parent)?d.getContextualTypeForJsxAttribute(f.parent):void 0;default:const E=NK.getArgumentInfoForCompletions(t,u,s);return E?d.getContextualTypeForArgumentAtIndex(E.invocation,E.argumentIndex+(t.kind===28?1:0)):BX(t.kind)&&Xn(f)&&BX(f.operatorToken.kind)?d.getTypeAtLocation(f.left):d.getContextualType(t,4)||d.getContextualType(t)}}function _Te(t,u,s){const d=s.getAccessibleSymbolChain(t,u,67108863,!1);return d?Pn(d):t.parent&&(B$t(t.parent)?t:_Te(t.parent,u,s))}function B$t(t){var u;return!!((u=t.declarations)!=null&&u.some(s=>s.kind===312))}function c0t(t,u,s,d,f,p,E,v,b,B){const k=t.getTypeChecker(),T=u0t(s,d);let M=G0(),z=Ca(s,f);u("getCompletionData: Get current token: "+(G0()-M)),M=G0();const j=m5(s,f,z);u("getCompletionData: Is inside comment: "+(G0()-M));let J=!1,K=!1;if(j){if(nSe(s,f)){if(s.text.charCodeAt(f-1)===64)return{kind:1};{const it=tp(f,s);if(!/[^*|\s(/)]/.test(s.text.substring(it,f)))return{kind:2}}}const X=N$t(z,f);if(X){if(X.tagName.pos<=f&&f<=X.tagName.end)return{kind:1};const it=ji(X);if(it&&(z=Ca(s,f),(!z||!X3(z)&&(z.parent.kind!==355||z.parent.name!==z))&&(J=je(it))),!J&&Eg(X)&&(Ql(X.name)||X.name.pos<=f&&f<=X.name.end))return{kind:3,tag:X}}if(!J){u("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}M=G0();const Y=!J&&gh(s),oe=gpe(f,s),se=oe.previousToken;let ge=oe.contextToken;u("getCompletionData: Get previous token: "+(G0()-M));let ae=z,Ce,ne=!1,ve=!1,Se=!1,Ne=!1,pe=!1,fe=!1,xe,Be=af(s,f),Ge=0,Ae=!1,De=0;if(ge){const X=D0t(ge,s);if(X.keywordCompletion){if(X.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[r$t(X.keywordCompletion)],isNewIdentifierLocation:X.isNewIdentifierLocation};Ge=o$t(X.keywordCompletion)}if(X.replacementSpan&&p.includeCompletionsForImportStatements&&p.includeCompletionsWithInsertText&&(De|=2,xe=X,Ae=X.isNewIdentifierLocation),!X.replacementSpan&&Ta(ge))return u("Returning an empty list because completion was requested in an invalid position."),Ge?i0t(Ge,Y,bo()):void 0;let it=ge.parent;if(ge.kind===25||ge.kind===29)switch(ne=ge.kind===25,ve=ge.kind===29,it.kind){case 211:Ce=it,ae=Ce.expression;const Ct=CP(Ce);if(Ql(Ct)||(Mo(ae)||Co(ae))&&ae.end===ge.pos&&ae.getChildCount(s)&&Cr(ae.getChildren(s)).kind!==22)return;break;case 166:ae=it.left;break;case 267:ae=it.name;break;case 205:ae=it;break;case 236:ae=it.getFirstToken(s),H.assert(ae.kind===102||ae.kind===105);break;default:return}else if(!xe){if(it&&it.kind===211&&(ge=it,it=it.parent),z.parent===Be)switch(z.kind){case 32:(z.parent.kind===284||z.parent.kind===286)&&(Be=z);break;case 44:z.parent.kind===285&&(Be=z);break}switch(it.kind){case 287:ge.kind===44&&(Ne=!0,Be=ge);break;case 226:if(!_0t(it))break;case 285:case 284:case 286:fe=!0,ge.kind===30&&(Se=!0,Be=ge);break;case 294:case 293:(se.kind===20||se.kind===80&&se.parent.kind===291)&&(fe=!0);break;case 291:if(it.initializer===se&&se.endIk(X?v.getPackageJsonAutoImportProvider():t,v));if(ne||ve)xn();else if(Se)Ve=k.getJsxIntrinsicTagNamesAt(Be),H.assertEachIsDefined(Ve,"getJsxIntrinsicTagNames() should all be defined"),Ai(),Je=1,Ge=0;else if(Ne){const X=ge.parent.parent.openingElement.tagName,it=k.getSymbolAtLocation(X);it&&(Ve=[it]),Je=1,Ge=0}else if(!Ai())return Ge?i0t(Ge,Y,Ae):void 0;u("getCompletionData: Semantic work: "+(G0()-Ke));const It=se&&S$t(se,f,s,k),ht=!ur(se,t0)&&!fe?qi(It&&(It.isUnion()?It.types:[It]),X=>X.isLiteral()&&!(X.flags&1024)?X.value:void 0):[],Ut=se&&It&&A$t(se,It,k);return{kind:0,symbols:Ve,completionKind:Je,isInSnippetScope:K,propertyAccessToConvert:Ce,isNewIdentifierLocation:Ae,location:Be,keywordFilters:Ge,literals:ht,symbolToOriginInfoMap:Gt,recommendedCompletion:Ut,previousToken:se,contextToken:ge,isJsxInitializer:pe,insideJsDocTagTypeExpression:J,symbolToSortTextMap:Yt,isTypeOnlyLocation:st,isJsxIdentifierExpected:fe,isRightOfOpenTag:Se,isRightOfDotOrQuestionDot:ne||ve,importStatementCompletion:xe,hasUnresolvedAutoImports:Ye,flags:De};function Ni(X){switch(X.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!X.constraint;default:return!1}}function ji(X){if(Ni(X)){const it=_g(X)?X.constraint:X.typeExpression;return it&&it.kind===316?it:void 0}if(LB(X)||Nce(X))return X.class}function xn(){Je=2;const X=zx(ae),it=X&&!ae.isTypeOf||q_(ae.parent)||OH(ge,s,k),Ct=tX(ae);if(sm(ae)||X||Iu(ae)){const ct=_c(ae.parent);ct&&(Ae=!0);let Qt=k.getSymbolAtLocation(ae);if(Qt&&(Qt=X1(Qt,k),Qt.flags&1920)){const Li=k.getExportsOfModule(Qt);H.assertEachIsDefined(Li,"getExportsOfModule() should all be defined");const Ui=Ru=>k.isValidPropertyAccess(X?ae:ae.parent,Ru.name),Sn=Ru=>xTe(Ru,k),du=ct?Ru=>{var pr;return!!(Ru.flags&1920)&&!((pr=Ru.declarations)!=null&&pr.every(Xu=>Xu.parent===ae.parent))}:Ct?Ru=>Sn(Ru)||Ui(Ru):it||J?Sn:Ui;for(const Ru of Li)du(Ru)&&Ve.push(Ru);if(!it&&!J&&Qt.declarations&&Qt.declarations.some(Ru=>Ru.kind!==312&&Ru.kind!==267&&Ru.kind!==266)){let Ru=k.getTypeOfSymbolAtLocation(Qt,ae).getNonOptionalType(),pr=!1;if(Ru.isNullableType()){const Xu=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Xu||ve)&&(Ru=Ru.getNonNullableType(),Xu&&(pr=!0))}Jn(Ru,!!(ae.flags&65536),pr)}return}}if(!it||ck(ae)){k.tryGetThisTypeAt(ae,!1);let ct=k.getTypeAtLocation(ae).getNonOptionalType();if(it)Jn(ct.getNonNullableType(),!1,!1);else{let Qt=!1;if(ct.isNullableType()){const Li=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Li||ve)&&(ct=ct.getNonNullableType(),Li&&(Qt=!0))}Jn(ct,!!(ae.flags&65536),Qt)}}}function Jn(X,it,Ct){Ae=!!X.getStringIndexType(),ve&&Oe(X.getCallSignatures())&&(Ae=!0);const ct=ae.kind===205?ae:ae.parent;if(T)for(const Qt of X.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,X,Qt)&&an(Qt,!1,Ct);else Ve.push(...ti(xpe(X,k),Qt=>k.isValidPropertyAccessForCompletions(ct,X,Qt)));if(it&&p.includeCompletionsWithInsertText){const Qt=k.getPromisedTypeOfPromise(X);if(Qt)for(const Li of Qt.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,Qt,Li)&&an(Li,!0,Ct)}}function an(X,it,Ct){var ct;const Qt=G(X.declarations,du=>ur(Za(du),Ps));if(Qt){const du=Pi(Qt.expression),Ru=du&&k.getSymbolAtLocation(du),pr=Ru&&_Te(Ru,ge,k),Xu=pr&&Zo(pr);if(Xu&&Ip(Ie,Xu)){const ca=Ve.length;Ve.push(pr);const Ku=pr.parent;if(!Ku||!HH(Ku)||k.tryGetMemberInModuleExportsAndProperties(pr.name,Ku)!==pr)Gt[ca]={kind:Sn(2)};else{const ja=Id($4(Ku.name))?(ct=YU(Ku))==null?void 0:ct.fileName:void 0,{moduleSpecifier:wn}=(We||(We=z1.createImportSpecifierResolver(s,t,v,p))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:ja,isFromPackageJson:!1,moduleSymbol:Ku,symbol:pr,targetFlags:X1(pr,k).flags}],f,Tv(Be))||{};if(wn){const Ir={kind:Sn(6),moduleSymbol:Ku,isDefaultExport:!1,symbolName:pr.name,exportName:pr.name,fileName:ja,moduleSpecifier:wn};Gt[ca]=Ir}}}else if(p.includeCompletionsWithInsertText){if(Xu&&Ie.has(Xu))return;Ui(X),Li(X),Ve.push(X)}}else Ui(X),Li(X),Ve.push(X);function Li(du){O$t(du)&&(Yt[Zo(du)]=I1.LocalDeclarationPriority)}function Ui(du){p.includeCompletionsWithInsertText&&(it&&Ip(Ie,Zo(du))?Gt[Ve.length]={kind:Sn(8)}:Ct&&(Gt[Ve.length]={kind:16}))}function Sn(du){return Ct?du|16:du}}function Pi(X){return at(X)?X:Iu(X)?Pi(X.expression):void 0}function Ai(){return(Et()||Mt()||yr()||qt()||Xt()||Zu()||Pe()||aa()||(Ba(),1))===1}function Zu(){return gt(ge)?(Je=5,Ae=!0,Ge=4,1):0}function aa(){const X=me(ge),it=X&&k.getContextualType(X.attributes);if(!it)return 0;const Ct=X&&k.getContextualType(X.attributes,4);return Ve=Hi(Ve,de(Dpe(it,Ct,X.attributes,k),X.attributes.properties)),on(),Je=3,Ae=!1,1}function yr(){return xe?(Ae=!0,Cn(),1):0}function Ba(){Ge=ii(ge)?5:1,Je=1,Ae=bo(),se!==ge&&H.assert(!!se,"Expected 'contextToken' to be defined when different from 'previousToken'.");const X=se!==ge?se.getStart():f,it=ra(ge,X,s)||s;K=jn(it);const Ct=(st?0:111551)|788968|1920|2097152,ct=se&&!Tv(se);Ve=Hi(Ve,k.getSymbolsInScope(it,Ct)),H.assertEachIsDefined(Ve,"getSymbolsInScope() should all be defined");for(let Qt=0;QtUi.getSourceFile()===s)&&(Yt[Zo(Li)]=I1.GlobalsOrKeywords),ct&&!(Li.flags&111551)){const Ui=Li.declarations&&Le(Li.declarations,RU);if(Ui){const Sn={kind:64,declaration:Ui};Gt[Qt]=Sn}}}if(p.includeCompletionsWithInsertText&&it.kind!==312){const Qt=k.tryGetThisTypeAt(it,!1,mr(it.parent)?it:void 0);if(Qt&&!R$t(Qt,s,k))for(const Li of xpe(Qt,k))Gt[Ve.length]={kind:1},Ve.push(Li),Yt[Zo(Li)]=I1.SuggestedClassMembers}Cn(),st&&(Ge=ge&&Yy(ge.parent)?6:7)}function bt(){return xe?!0:ft||!p.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||ufe(t.getCompilerOptions())?!0:lSe(t)}function jn(X){switch(X.kind){case 312:case 228:case 294:case 241:return!0;default:return na(X)}}function Ln(){return J||!!xe&&_2(Be.parent)||!Si(ge)&&(OH(ge,s,k)||q_(Be)||Dn(ge))}function Si(X){return X&&(X.kind===114&&(X.parent.kind===186||AB(X.parent))||X.kind===131&&X.parent.kind===182)}function Dn(X){if(X){const it=X.parent.kind;switch(X.kind){case 59:return it===172||it===171||it===169||it===260||a7(it);case 64:return it===265;case 130:return it===234;case 30:return it===183||it===216;case 96:return it===168;case 152:return it===238}}return!1}function Cn(){var X,it;if(!bt()||(H.assert(!(E!=null&&E.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),E&&!E.source))return;De|=1;const ct=se===ge&&xe?"":se&&at(se)?se.text.toLowerCase():"",Qt=(X=v.getModuleSpecifierCache)==null?void 0:X.call(v),Li=tK(s,v,t,p,B),Ui=(it=v.getPackageJsonAutoImportProvider)==null?void 0:it.call(v),Sn=E?void 0:HM(s,p,v);Qst("collectAutoImports",v,We||(We=z1.createImportSpecifierResolver(s,t,v,p)),t,f,p,!!xe,Tv(Be),Ru=>{Li.search(s.path,Se,(pr,Xu)=>{if(!Lm(pr,Os(v.getCompilationSettings()))||!E&&m7(pr)||!st&&!xe&&!(Xu&111551)||st&&!(Xu&790504))return!1;const ca=pr.charCodeAt(0);return Se&&(ca<65||ca>90)?!1:E?!0:y0t(pr,ct)},(pr,Xu,ca,Ku)=>{if(E&&!Oe(pr,Fn=>E.source===$4(Fn.moduleSymbol.name))||(pr=ti(pr,du),!pr.length))return;const ja=Ru.tryResolve(pr,ca)||{};if(ja==="failed")return;let wn=pr[0],Ir;ja!=="skipped"&&({exportInfo:wn=pr[0],moduleSpecifier:Ir}=ja);const as=wn.exportKind===1,wo=as&&lB(wn.symbol)||wn.symbol;tu(wo,{kind:Ir?32:4,moduleSpecifier:Ir,symbolName:Xu,exportMapKey:Ku,exportName:wn.exportKind===2?"export=":wn.symbol.name,fileName:wn.moduleFileName,isDefaultExport:as,moduleSymbol:wn.moduleSymbol,isFromPackageJson:wn.isFromPackageJson})}),Ye=Ru.skippedAny(),De|=Ru.resolvedAny()?8:0,De|=Ru.resolvedBeyondLimit()?16:0});function du(Ru){const pr=ur(Ru.moduleSymbol.valueDeclaration,la);if(!pr){const Xu=$4(Ru.moduleSymbol.name);return o3.nodeCoreModules.has(Xu)&&Pa(Xu,"node:")!==OX(s,t)?!1:Sn?Sn.allowsImportingAmbientModule(Ru.moduleSymbol,St(Ru.isFromPackageJson)):!0}return Mfe(Ru.isFromPackageJson?Ui:t,s,pr,p,Sn,St(Ru.isFromPackageJson),Qt)}}function tu(X,it){const Ct=Zo(X);Yt[Ct]!==I1.GlobalsOrKeywords&&(Gt[Ve.length]=it,Yt[Ct]=xe?I1.LocationPriority:I1.AutoImportSuggestions,Ve.push(X))}function oa(X,it){Qn(Be)||X.forEach(Ct=>{if(!Da(Ct))return;const ct=Epe(Ct,Os(d),void 0,0,!1);if(!ct)return;const{name:Qt}=ct,Li=E$t(Ct,Qt,it,t,v,d,p,b);if(!Li)return;const Ui={kind:128,...Li};De|=32,Gt[Ve.length]=Ui,Ve.push(Ct)})}function Da(X){return!!(X.flags&8196)}function ra(X,it,Ct){let ct=X;for(;ct&&!Whe(ct,it,Ct);)ct=ct.parent;return ct}function Ta(X){const it=G0(),Ct=Qe(X)||ni(X)||Ot(X)||Yo(X)||iY(X);return u("getCompletionsAtPosition: isCompletionListBlocker: "+(G0()-it)),Ct}function Yo(X){if(X.kind===12)return!0;if(X.kind===32&&X.parent){if(Be===X.parent&&(Be.kind===286||Be.kind===285))return!1;if(X.parent.kind===286)return Be.parent.kind!==286;if(X.parent.kind===287||X.parent.kind===285)return!!X.parent.parent&&X.parent.parent.kind===284}return!1}function bo(){if(ge){const X=ge.parent.kind,it=_pe(ge);switch(it){case 28:return X===213||X===176||X===214||X===209||X===226||X===184||X===210;case 21:return X===213||X===176||X===214||X===217||X===196;case 23:return X===209||X===181||X===167;case 144:case 145:case 102:return!0;case 25:return X===267;case 19:return X===263||X===210;case 64:return X===260||X===226;case 16:return X===228;case 17:return X===239;case 134:return X===174||X===304;case 42:return X===174}if(Nee(it))return!0}return!1}function Qe(X){return(mce(X)||Use(X))&&(zH(X,f)||f===X.end&&(!!X.isUnterminated||mce(X)))}function Et(){const X=z$t(ge);if(!X)return 0;const Ct=(kB(X.parent)?X.parent:void 0)||X,ct=E0t(Ct,k);if(!ct)return 0;const Qt=k.getTypeFromTypeNode(Ct),Li=xpe(ct,k),Ui=xpe(Qt,k),Sn=new Set;return Ui.forEach(du=>Sn.add(du.escapedName)),Ve=Hi(Ve,ti(Li,du=>!Sn.has(du.escapedName))),Je=0,Ae=!0,1}function Mt(){const X=Ve.length,it=w$t(ge,f,s);if(!it)return 0;Je=0;let Ct,ct;if(it.kind===210){const Qt=j$t(it,k);if(Qt===void 0)return it.flags&67108864?2:(ft=!0,0);const Li=k.getContextualType(it,4),Ui=(Li||Qt).getStringIndexType(),Sn=(Li||Qt).getNumberIndexType();if(Ae=!!Ui||!!Sn,Ct=Dpe(Qt,Li,it,k),ct=it.properties,Ct.length===0&&!Sn)return ft=!0,0}else{H.assert(it.kind===206),Ae=!1;const Qt=XE(it.parent);if(!G8(Qt))return H.fail("Root declaration is not variable-like.");let Li=Nx(Qt)||!!f1(Qt)||Qt.parent.parent.kind===250;if(!Li&&Qt.kind===169&&(Wt(Qt.parent)?Li=!!k.getContextualType(Qt.parent):(Qt.parent.kind===174||Qt.parent.kind===178)&&(Li=Wt(Qt.parent.parent)&&!!k.getContextualType(Qt.parent.parent))),Li){const Ui=k.getTypeAtLocation(it);if(!Ui)return 2;Ct=k.getPropertiesOfType(Ui).filter(Sn=>k.isPropertyAccessible(it,!1,!1,Ui,Sn)),ct=it.elements}}if(Ct&&Ct.length>0){const Qt=$i(Ct,H.checkDefined(ct));Ve=Hi(Ve,Qt),on(),it.kind===210&&p.includeCompletionsWithObjectLiteralMethodSnippets&&p.includeCompletionsWithInsertText&&(te(X),oa(Qt,it))}return 1}function qt(){if(!ge)return 0;const X=ge.kind===19||ge.kind===28?ur(ge.parent,Uq):EX(ge)?ur(ge.parent.parent,Uq):void 0;if(!X)return 0;EX(ge)||(Ge=8);const{moduleSpecifier:it}=X.kind===275?X.parent.parent:X.parent;if(!it)return Ae=!0,X.kind===275?2:0;const Ct=k.getSymbolAtLocation(it);if(!Ct)return Ae=!0,2;Je=3,Ae=!1;const ct=k.getExportsAndPropertiesOfModule(Ct),Qt=new Set(X.elements.filter(Ui=>!je(Ui)).map(Ui=>(Ui.propertyName||Ui.name).escapedText)),Li=ct.filter(Ui=>Ui.escapedName!=="default"&&!Qt.has(Ui.escapedName));return Ve=Hi(Ve,Li),Li.length||(Ge=0),1}function Xt(){var X;const it=ge&&(ge.kind===19||ge.kind===28)?ur(ge.parent,ep):void 0;if(!it)return 0;const Ct=Tn(it,dg(la,_c));return Je=5,Ae=!1,(X=Ct.locals)==null||X.forEach((ct,Qt)=>{var Li,Ui;Ve.push(ct),(Ui=(Li=Ct.symbol)==null?void 0:Li.exports)!=null&&Ui.has(Qt)&&(Yt[Zo(ct)]=I1.OptionalMember)}),1}function Pe(){const X=M$t(s,ge,Be,f);if(!X)return 0;if(Je=3,Ae=!0,Ge=ge.kind===42?0:mr(X)?2:3,!mr(X))return 1;const it=ge.kind===27?ge.parent.parent:ge.parent;let Ct=Zd(it)?Eh(it):0;if(ge.kind===80&&!je(ge))switch(ge.getText()){case"private":Ct=Ct|2;break;case"static":Ct=Ct|256;break;case"override":Ct=Ct|16;break}if(zl(it)&&(Ct|=256),!(Ct&2)){const ct=mr(X)&&Ct&16?Hy(Qg(X)):uP(X),Qt=ju(ct,Li=>{const Ui=k.getTypeAtLocation(Li);return Ct&256?(Ui==null?void 0:Ui.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(Ui.symbol,X)):Ui&&k.getPropertiesOfType(Ui)});Ve=Hi(Ve,we(Qt,X.members,Ct)),L(Ve,(Li,Ui)=>{const Sn=Li==null?void 0:Li.valueDeclaration;if(Sn&&Zd(Sn)&&Sn.name&&Ps(Sn.name)){const du={kind:512,symbolName:k.symbolToString(Li)};Gt[Ui]=du}})}return 1}function et(X){return!!X.parent&&io(X.parent)&&hc(X.parent.parent)&&(VN(X.kind)||X3(X))}function gt(X){if(X){const it=X.parent;switch(X.kind){case 21:case 28:return hc(X.parent)?X.parent:void 0;default:if(et(X))return it.parent}}}function ii(X){if(X){let it;const Ct=Tn(X.parent,ct=>mr(ct)?"quit":$0(ct)&&it===ct.body?!0:(it=ct,!1));return Ct&&Ct}}function me(X){if(X){const it=X.parent;switch(X.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(it&&(it.kind===285||it.kind===286)){if(X.kind===32){const Ct=td(X.pos,s,void 0);if(!it.typeArguments||Ct&&Ct.kind===44)break}return it}else if(it.kind===291)return it.parent.parent;break;case 11:if(it&&(it.kind===291||it.kind===293))return it.parent.parent;break;case 20:if(it&&it.kind===294&&it.parent&&it.parent.kind===291)return it.parent.parent.parent;if(it&&it.kind===293)return it.parent.parent;break}}}function ni(X){const it=X.parent,Ct=it.kind;switch(X.kind){case 28:return Ct===260||Ei(X)||Ct===243||Ct===266||mt(Ct)||Ct===264||Ct===207||Ct===265||mr(it)&&!!it.typeParameters&&it.typeParameters.end>=X.pos;case 25:return Ct===207;case 59:return Ct===208;case 23:return Ct===207;case 21:return Ct===299||mt(Ct);case 19:return Ct===266;case 30:return Ct===263||Ct===231||Ct===264||Ct===265||a7(Ct);case 126:return Ct===172&&!mr(it.parent);case 26:return Ct===169||!!it.parent&&it.parent.kind===207;case 125:case 123:case 124:return Ct===169&&!hc(it.parent);case 130:return Ct===276||Ct===281||Ct===274;case 139:case 153:return!vpe(X);case 80:if(Ct===276&&X===it.name&&X.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ct!==276;case 42:return Co(X.parent)&&!dc(X.parent)}if(Nee(_pe(X))&&vpe(X)||et(X)&&(!at(X)||VN(_pe(X))||je(X)))return!1;switch(_pe(X)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ko(X.parent)}if(Tn(X.parent,mr)&&X===se&&vi(X,f))return!1;const Qt=Fv(X.parent,172);if(Qt&&X!==se&&mr(se.parent.parent)&&f<=se.end){if(vi(X,se.end))return!1;if(X.kind!==64&&(fH(Qt)||JU(Qt)))return!0}return X3(X)&&!pm(X.parent)&&!oE(X.parent)&&!((mr(X.parent)||xh(X.parent)||Bl(X.parent))&&(X!==se||f>se.end))}function vi(X,it){return X.kind!==64&&(X.kind===27||!q4(X.end,it,s))}function mt(X){return a7(X)&&X!==176}function Ot(X){if(X.kind===9){const it=X.getFullText();return it.charAt(it.length-1)==="."}return!1}function Ei(X){return X.parent.kind===261&&!OH(X,s,k)}function $i(X,it){if(it.length===0)return X;const Ct=new Set,ct=new Set;for(const Li of it){if(Li.kind!==303&&Li.kind!==304&&Li.kind!==208&&Li.kind!==174&&Li.kind!==177&&Li.kind!==178&&Li.kind!==305||je(Li))continue;let Ui;if(d5(Li))Qi(Li,Ct);else if(js(Li)&&Li.propertyName)Li.propertyName.kind===80&&(Ui=Li.propertyName.escapedText);else{const Sn=Za(Li);Ui=Sn&&Xg(Sn)?oP(Sn):void 0}Ui!==void 0&&ct.add(Ui)}const Qt=X.filter(Li=>!ct.has(Li.escapedName));return le(Ct,Qt),Qt}function Qi(X,it){const Ct=X.expression,ct=k.getSymbolAtLocation(Ct),Qt=ct&&k.getTypeOfSymbolAtLocation(ct,Ct),Li=Qt&&Qt.properties;Li&&Li.forEach(Ui=>{it.add(Ui.name)})}function on(){Ve.forEach(X=>{if(X.flags&16777216){const it=Zo(X);Yt[it]=Yt[it]??I1.OptionalMember}})}function le(X,it){if(X.size!==0)for(const Ct of it)X.has(Ct.name)&&(Yt[Zo(Ct)]=I1.MemberDeclaredBySpreadAssignment)}function te(X){for(let it=X;it!ct.has(Qt.escapedName)&&!!Qt.declarations&&!(l4(Qt)&2)&&!(Qt.valueDeclaration&&ph(Qt.valueDeclaration)))}function de(X,it){const Ct=new Set,ct=new Set;for(const Li of it)je(Li)||(Li.kind===291?Ct.add(MP(Li.name)):H7(Li)&&Qi(Li,ct));const Qt=X.filter(Li=>!Ct.has(Li.escapedName));return le(ct,Qt),Qt}function je(X){return X.getStart(s)<=f&&f<=X.getEnd()}}function w$t(t,u,s){var d;if(t){const{parent:f}=t;switch(t.kind){case 19:case 28:if(ys(f)||Rp(f))return f;break;case 42:return dc(f)?ur(f.parent,ys):void 0;case 134:return ur(f.parent,ys);case 80:if(t.text==="async"&&pm(t.parent))return t.parent.parent;{if(ys(t.parent.parent)&&(d5(t.parent)||pm(t.parent)&&s0(s,t.getEnd()).line!==s0(s,u).line))return t.parent.parent;const E=Tn(f,Jc);if((E==null?void 0:E.getLastToken(s))===t&&ys(E.parent))return E.parent}break;default:if((d=f.parent)!=null&&d.parent&&(dc(f.parent)||zm(f.parent)||jf(f.parent))&&ys(f.parent.parent))return f.parent.parent;if(d5(f)&&ys(f.parent))return f.parent;const p=Tn(f,Jc);if(t.kind!==59&&(p==null?void 0:p.getLastToken(s))===t&&ys(p.parent))return p.parent}}}function gpe(t,u){const s=td(t,u);return s&&t<=s.end&&(J_(s)||uf(s.kind))?{contextToken:td(s.getFullStart(),u,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function d0t(t,u,s,d){const f=u.isPackageJsonImport?d.getPackageJsonAutoImportProvider():s,p=f.getTypeChecker(),E=u.ambientModuleName?p.tryFindAmbientModule(u.ambientModuleName):u.fileName?p.getMergedSymbol(H.checkDefined(f.getSourceFile(u.fileName)).symbol):void 0;if(!E)return;let v=u.exportName==="export="?p.resolveExternalModuleSymbol(E):p.tryGetMemberInModuleExportsAndProperties(u.exportName,E);return v?(v=u.exportName==="default"&&lB(v)||v,{symbol:v,origin:D$t(u,t,E)}):void 0}function Epe(t,u,s,d,f){if(t$t(s))return;const p=YJt(s)?s.symbolName:t.name;if(p===void 0||t.flags&1536&&_j(p.charCodeAt(0))||Ij(t))return;const E={name:p,needsConvertPropertyAccess:!1};if(Lm(p,u,f?1:0)||t.valueDeclaration&&ph(t.valueDeclaration))return E;switch(d){case 3:return dTe(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(p),needsConvertPropertyAccess:!1};case 2:case 1:return p.charCodeAt(0)===32?void 0:{name:p,needsConvertPropertyAccess:!0};case 5:case 4:return E;default:H.assertNever(d)}}function h0t(t,u){if(!u)return f0t(t);const s=t+8+1;return Pee[s]||(Pee[s]=f0t(t).filter(d=>!T$t(f2(d.name))))}function f0t(t){return Pee[t]||(Pee[t]=kTe().filter(u=>{const s=f2(u.name);switch(t){case 0:return!1;case 1:return p0t(s)||s===138||s===144||s===156||s===145||s===128||PM(s)&&s!==157;case 5:return p0t(s);case 2:return Nee(s);case 3:return m0t(s);case 4:return VN(s);case 6:return PM(s)||s===87;case 7:return PM(s);case 8:return s===156;default:return H.assertNever(t)}}))}function T$t(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function m0t(t){return t===148}function Nee(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return qse(t)}}function p0t(t){return t===134||t===135||t===130||t===152||t===156||!Bq(t)&&!Nee(t)}function _pe(t){return at(t)?Dv(t)??0:t.kind}function L$t(t,u){const s=[];if(t){const d=t.getSourceFile(),f=t.parent,p=d.getLineAndCharacterOfPosition(t.end).line,E=d.getLineAndCharacterOfPosition(u).line;(Sd(f)||Gc(f)&&f.moduleSpecifier)&&t===f.moduleSpecifier&&p===E&&s.push({name:Uo(132),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords})}return s}function N$t(t,u){return Tn(t,s=>I8(s)&&MH(s,u)?!0:Vp(s)?"quit":!1)}function Dpe(t,u,s,d){const f=u&&u!==t,p=f&&!(u.flags&3)?d.getUnionType([t,u]):t,E=P$t(p,s,d);return p.isClass()&&g0t(E)?[]:f?ti(E,v):E;function v(b){return S(b.declarations)?Oe(b.declarations,B=>B.parent!==s):!0}}function P$t(t,u,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(ti(t.types,d=>!(d.flags&402784252||s.isArrayLikeType(d)||s.isTypeInvalidDueToUnionDiscriminant(d,u)||s.typeHasCallOrConstructSignatures(d)||d.isClass()&&g0t(d.getApparentProperties())))):t.getApparentProperties()}function g0t(t){return Oe(t,u=>!!(l4(u)&6))}function xpe(t,u){return t.isUnion()?H.checkEachDefined(u.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):H.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function M$t(t,u,s,d){switch(s.kind){case 358:return ur(s.parent,x7);case 1:const f=ur(qu(Po(s.parent,la).statements),x7);if(f&&!a0(f,20,t))return f;break;case 81:if(ur(s.parent,ko))return Tn(s,mr);break;case 80:{if(Dv(s)||ko(s.parent)&&s.parent.initializer===s)return;if(vpe(s))return Tn(s,x7)}}if(u){if(s.kind===137||at(u)&&ko(u.parent)&&mr(s))return Tn(u,mr);switch(u.kind){case 64:return;case 27:case 20:return vpe(s)&&s.parent.name===s?s.parent.parent:ur(s,x7);case 19:case 28:return ur(u.parent,x7);default:if(x7(s)){if(s0(t,u.getEnd()).line!==s0(t,d).line)return s;const f=mr(u.parent.parent)?Nee:m0t;return f(u.kind)||u.kind===42||at(u)&&f(Dv(u)??0)?u.parent.parent:void 0}return}}}function z$t(t){if(!t)return;const u=t.parent;switch(t.kind){case 19:if(fm(u))return u;break;case 27:case 28:case 80:if(u.kind===171&&fm(u.parent))return u.parent;break}}function E0t(t,u){if(!t)return;if(Xr(t)&&$U(t.parent))return u.getTypeArgumentConstraint(t);const s=E0t(t.parent,u);if(s)switch(t.kind){case 171:return u.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function vpe(t){return t.parent&&OU(t.parent)&&x7(t.parent.parent)}function I$t(t,u,s,d){switch(u){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&ASe(s)&&d===s.getStart(t)+1;case"#":return!!s&&ea(s)&&!!Yd(s);case"<":return!!s&&s.kind===30&&(!Xn(s.parent)||_0t(s.parent));case"/":return!!s&&(t0(s)?!!Aj(s):s.kind===44&&H2(s.parent));case" ":return!!s&&KP(s)&&s.parent.kind===312;default:return H.assertNever(u)}}function _0t({left:t}){return Ql(t)}function R$t(t,u,s){const d=s.resolveName("self",void 0,111551,!1);if(d&&s.getTypeOfSymbolAtLocation(d,u)===t)return!0;const f=s.resolveName("global",void 0,111551,!1);if(f&&s.getTypeOfSymbolAtLocation(f,u)===t)return!0;const p=s.resolveName("globalThis",void 0,111551,!1);return!!(p&&s.getTypeOfSymbolAtLocation(p,u)===t)}function O$t(t){return!!(t.valueDeclaration&&Eh(t.valueDeclaration)&256&&mr(t.valueDeclaration.parent))}function j$t(t,u){const s=u.getContextualType(t);if(s)return s;const d=i5(t.parent);if(Xn(d)&&d.operatorToken.kind===64&&t===d.left)return u.getTypeAtLocation(d);if(Wt(d))return u.getContextualType(d)}function D0t(t,u){var s,d,f;let p,E=!1;const v=b();return{isKeywordOnlyCompletion:E,keywordCompletion:p,isNewIdentifierLocation:!!(v||p===156),isTopLevelTypeOnly:!!((d=(s=ur(v,Sd))==null?void 0:s.importClause)!=null&&d.isTypeOnly)||!!((f=ur(v,E1))!=null&&f.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!v&&v0t(v,t),replacementSpan:V$t(v)};function b(){const B=t.parent;if(E1(B)){const k=B.getLastToken(u);if(at(t)&&k!==t){p=161,E=!0;return}return p=t.kind===156?void 0:156,DTe(B.moduleReference)?B:void 0}if(v0t(B,t)&&C0t(B.parent))return B;if(uD(B)||Jx(B)){if(!B.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(p=156),C0t(B))if(t.kind===20||t.kind===80)E=!0,p=161;else return B.parent.parent;return}if(KP(t)&&la(B))return p=156,t;if(KP(t)&&Sd(B))return p=156,DTe(B.moduleSpecifier)?B:void 0}}function V$t(t){var u;if(!t)return;const s=Tn(t,dg(Sd,E1))??t,d=s.getSourceFile();if(hk(s,d))return of(s,d);H.assert(s.kind!==102&&s.kind!==276);const f=s.kind===272?x0t((u=s.importClause)==null?void 0:u.namedBindings)??s.moduleSpecifier:s.moduleReference,p={pos:s.getFirstToken().getStart(),end:f.pos};if(hk(p,d))return qx(p)}function x0t(t){var u;return Le((u=ur(t,uD))==null?void 0:u.elements,s=>{var d;return!s.propertyName&&m7(s.name.text)&&((d=td(s.name.pos,t.getSourceFile(),t))==null?void 0:d.kind)!==28})}function v0t(t,u){return bf(t)&&(t.isTypeOnly||u===t.name&&EX(u))}function C0t(t){if(!DTe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(uD(t)){const u=x0t(t);return(u?t.elements.indexOf(u):t.elements.length)<2}return!0}function DTe(t){var u;return Ql(t)?!0:!((u=ur(r_(t)?t.expression:t,t0))!=null&&u.text)}function H$t(t,u){if(!t)return;const s=Tn(t,f=>k2(f)||b0t(f)||So(f)?"quit":(io(f)||Bl(f))&&!Ek(f.parent)),d=Tn(u,f=>k2(f)||b0t(f)||So(f)?"quit":ua(f));return s||d}function b0t(t){return t.parent&&q0(t.parent)&&(t.parent.body===t||t.kind===39)}function xTe(t,u,s=new Map){return d(t)||d(X1(t.exportSymbol||t,u));function d(f){return!!(f.flags&788968)||u.isUnknownSymbol(f)||!!(f.flags&1536)&&Ip(s,Zo(f))&&u.getExportsOfModule(f).some(p=>xTe(p,u,s))}}function K$t(t,u){const s=X1(t,u).declarations;return!!S(s)&&ye(s,RX)}function y0t(t,u){if(u.length===0)return!0;let s=!1,d,f=0;const p=t.length;for(let E=0;E(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(CTe||{}),bTe=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(bTe||{}),yTe=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(yTe||{}),Pee=[],kTe=Mh(()=>{const t=[];for(let u=83;u<=165;u++)t.push({name:Uo(u),kind:"keyword",kindModifiers:"",sortText:I1.GlobalsOrKeywords});return t})}});function FTe(){const t=new Map;function u(s){const d=t.get(s.name);(!d||TTe[d.kind]({name:Av(z.value,T),kindModifiers:"",kind:"string",sortText:I1.LocationPriority,replacementSpan:Xhe(u)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:k,entries:M}}default:return H.assertNever(t)}}function q$t(t,u,s,d,f,p,E,v,b){if(!d||!t0(d))return;const B=A0t(u,d,s,f,p,E,b);return B&&Z$t(t,d,B,u,f,v)}function Z$t(t,u,s,d,f,p){switch(s.kind){case 0:{const E=Le(s.paths,v=>v.name===t);return E&&Lee(t,F0t(E.extension),E.kind,[Km(t)])}case 1:{const E=Le(s.symbols,v=>v.name===t);return E&&ETe(E,E.name,f,d,u,p)}case 2:return Le(s.types,E=>E.value===t)?Lee(t,"","string",[Km(t)]):void 0;default:return H.assertNever(s)}}function k0t(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:f,kind:p,span:E,extension:v})=>({name:f,kind:p,kindModifiers:F0t(v),sortText:I1.LocationPriority,replacementSpan:E}))}}function F0t(t){switch(t){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 H.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return H.assertNever(t)}}function A0t(t,u,s,d,f,p,E){const v=ATe(u.parent);switch(v.kind){case 201:{const z=ATe(v.parent);return z.kind===205?{kind:0,paths:w0t(t,u,f,p,d,E)}:b(z)}case 303:return ys(v.parent)&&v.name===u?X$t(d,v.parent):B()||B(0);case 212:{const{expression:z,argumentExpression:j}=v;return u===l0(j)?S0t(d.getTypeAtLocation(z)):void 0}case 213:case 214:case 291:if(!fUt(u)&&!dm(v)){const z=NK.getArgumentInfoForCompletions(v.kind===291?v.parent:u,s,t);return z&&Q$t(z.invocation,u,z,d)||B(0)}case 272:case 278:case 283:return{kind:0,paths:w0t(t,u,f,p,d,E)};case 296:const k=VX(d,v.parent.clauses),T=B();return T?{kind:2,types:T.types.filter(z=>!k.hasValue(z.value)),isNewIdentifier:!1}:void 0;default:return B()||B(0)}function b(k){switch(k.kind){case 233:case 183:{const z=Tn(v,j=>j.parent===k);return z?{kind:2,types:bpe(d.getTypeArgumentConstraint(z)),isNewIdentifier:!1}:void 0}case 199:const{indexType:T,objectType:M}=k;return MH(T,s)?S0t(d.getTypeFromTypeNode(M)):void 0;case 192:{const z=b(ATe(k.parent));if(!z)return;const j=Y$t(k,v);return z.kind===1?{kind:1,symbols:z.symbols.filter(J=>!kt(j,J.name)),hasIndexSignature:z.hasIndexSignature}:{kind:2,types:z.types.filter(J=>!kt(j,J.value)),isNewIdentifier:!1}}default:return}}function B(k=4){const T=bpe(SX(u,d,k));if(T.length)return{kind:2,types:T,isNewIdentifier:!1}}}function ATe(t){switch(t.kind){case 196:return Lj(t);case 217:return i5(t);default:return t}}function Y$t(t,u){return qi(t.types,s=>s!==u&&Mv(s)&&us(s.literal)?s.literal.text:void 0)}function Q$t(t,u,s,d){let f=!1;const p=new Map,E=zh(t)?H.checkDefined(Tn(u.parent,oE)):u,v=d.getCandidateSignaturesForStringLiteralCompletions(t,E),b=ju(v,B=>{if(!th(B)&&s.argumentCount>B.parameters.length)return;let k=B.getTypeParameterAtPosition(s.argumentIndex);if(zh(t)){const T=d.getTypeOfPropertyOfType(k,sV(E.name));T&&(k=T)}return f=f||!!(k.flags&4),bpe(k,p)});return S(b)?{kind:2,types:b,isNewIdentifier:f}:void 0}function S0t(t){return t&&{kind:1,symbols:ti(t.getApparentProperties(),u=>!(u.valueDeclaration&&ph(u.valueDeclaration))),hasIndexSignature:_fe(t)}}function X$t(t,u){const s=t.getContextualType(u);if(!s)return;const d=t.getContextualType(u,4);return{kind:1,symbols:Dpe(s,d,u,t),hasIndexSignature:_fe(s)}}function bpe(t,u=new Map){return t?(t=nfe(t),t.isUnion()?ju(t.types,s=>bpe(s,u)):t.isStringLiteral()&&!(t.flags&1024)&&Ip(u,t.value)?[t]:_t):_t}function YM(t,u,s){return{name:t,kind:u,extension:s}}function STe(t){return YM(t,"directory",void 0)}function B0t(t,u,s){const d=dUt(t,u),f=t.length===0?void 0:d1(u,t.length);return s.map(({name:p,kind:E,extension:v})=>p.includes(rl)||p.includes(BO)?{name:p,kind:E,extension:v,span:f}:{name:p,kind:E,extension:v,span:d})}function w0t(t,u,s,d,f,p){return B0t(u.text,u.getStart(t)+1,eUt(t,u,s,d,f,p))}function eUt(t,u,s,d,f,p){const E=q1(u.text),v=t0(u)?xg(t,u):void 0,b=t.path,B=lr(b),k=BTe(s,1,t,f,p,v);return hUt(E)||!s.baseUrl&&!s.paths&&(Pf(E)||x2e(E))?tUt(E,B,s,d,b,k):rUt(E,B,v,s,d,k,f)}function BTe(t,u,s,d,f,p){return{extensionsToSearch:Va(iUt(t,d)),referenceKind:u,importingSourceFile:s,endingPreference:f==null?void 0:f.importModuleSpecifierEnding,resolutionMode:p}}function tUt(t,u,s,d,f,p){return s.rootDirs?uUt(s.rootDirs,t,u,p,s,d,f):ga(SK(t,u,p,d,!0,f).values())}function iUt(t,u){const s=u?qi(u.getAmbientModules(),p=>{const E=p.name.slice(1,-1);if(!(!E.startsWith("*.")||E.includes("/")))return E.slice(1)}):[],d=[...kP(t),s],f=p1(t);return _X(f)?tV(t,d):d}function nUt(t,u,s,d){t=t.map(p=>zd($o(Pf(p)?p:cr(u,p))));const f=G(t,p=>GE(p,s,u,d)?s.substr(p.length):void 0);return ri([...t.map(p=>cr(p,f)),s].map(p=>mv(p)),XA,dh)}function uUt(t,u,s,d,f,p,E){const v=f.project||p.getCurrentDirectory(),b=!(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames()),B=nUt(t,v,s,b);return ju(B,k=>ga(SK(u,k,d,p,!0,E).values()))}function SK(t,u,s,d,f,p,E=FTe()){var v;t===void 0&&(t=""),t=q1(t),ZD(t)||(t=lr(t)),t===""&&(t="."+rl),t=zd(t);const b=kx(u,t),B=ZD(b)?b:lr(b);if(!f){const z=BSe(B,d);if(z){const J=EP(z,d).typesVersions;if(typeof J=="object"){const K=(v=jY(J))==null?void 0:v.paths;if(K){const Y=lr(z),oe=b.slice(zd(Y).length);if(L0t(E,oe,Y,s,d,K))return E}}}}const k=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames());if(!NX(d,B))return E;const T=xfe(d,B,s.extensionsToSearch,void 0,["./*"]);if(T)for(let z of T){if(z=$o(z),p&&pv(z,p,u,k)===0)continue;const{name:j,extension:J}=T0t(Ac(z),d.getCompilationSettings(),s);E.add(YM(j,"script",J))}const M=LX(d,B);if(M)for(const z of M){const j=Ac($o(z));j!=="@types"&&E.add(STe(j))}return E}function T0t(t,u,s){const d=Z2.tryGetRealFileNameForNonJsDeclarationFileName(t);if(d)return{name:d,extension:t3(d)};if(s.referenceKind===0)return{name:t,extension:t3(t)};const f=Sle(s.endingPreference,s.resolutionMode,u,s.importingSourceFile);if(f===3){if(jc(t,hV))return{name:t,extension:t3(t)};const E=Z2.tryGetJSExtensionForFile(t,u);return E?{name:wv(t,E),extension:E}:{name:t,extension:t3(t)}}if((f===0||f===1)&&jc(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:_h(t),extension:t3(t)};const p=Z2.tryGetJSExtensionForFile(t,u);return p?{name:wv(t,p),extension:p}:{name:t,extension:t3(t)}}function L0t(t,u,s,d,f,p){const E=b=>p[b],v=(b,B)=>{const k=fB(b),T=fB(B),M=typeof k=="object"?k.prefix.length:b.length,z=typeof T=="object"?T.prefix.length:B.length;return nl(z,M)};return N0t(t,u,s,d,f,Ns(p),E,v)}function N0t(t,u,s,d,f,p,E,v){let b=[],B;for(const k of p){if(k===".")continue;const T=k.replace(/^\.\//,""),M=E(k);if(M){const z=fB(T);if(!z)continue;const j=typeof z=="object"&&Y$(z,u);j&&(B===void 0||v(k,B)===-1)&&(B=k,b=b.filter(K=>!K.matchedPattern)),(typeof z=="string"||B===void 0||v(k,B)!==1)&&b.push({matchedPattern:j,results:aUt(T,M,u,s,d,f).map(({name:K,kind:Y,extension:oe})=>YM(K,Y,oe))})}}return b.forEach(k=>k.results.forEach(T=>t.add(T))),B!==void 0}function rUt(t,u,s,d,f,p,E){const{baseUrl:v,paths:b}=d,B=FTe(),k=p1(d);if(v){const M=$o(cr(f.getCurrentDirectory(),v));SK(t,M,p,f,!1,void 0,B)}if(b){const M=zq(d,f);L0t(B,t,M,p,f,b)}const T=M0t(t);for(const M of sUt(t,T,E))B.add(YM(M,"external module name",void 0));if(R0t(f,d,u,T,p,B),_X(k)){let M=!1;if(T===void 0)for(const z of cUt(f,u)){const j=YM(z,"external module name",void 0);B.has(j.name)||(M=!0,B.add(j))}if(!M){let z=j=>{const J=cr(j,"node_modules");NX(f,J)&&SK(t,J,p,f,!1,void 0,B)};if(T&&vle(d)){const j=z;z=J=>{const K=yd(t);K.shift();let Y=K.shift();if(!Y)return j(J);if(Pa(Y,"@")){const ge=K.shift();if(!ge)return j(J);Y=cr(Y,ge)}const oe=cr(J,"node_modules",Y),se=cr(oe,"package.json");if(QH(f,se)){const ae=EP(se,f).exports;if(ae){if(typeof ae!="object"||ae===null)return;const Ce=Ns(ae),ne=K.join("/")+(K.length&&ZD(t)?"/":""),ve=$2(d,s);N0t(B,ne,oe,p,f,Ce,Se=>Hy(P0t(ae[Se],ve)),Sde);return}}return j(J)}}Ug(u,z)}}return ga(B.values())}function P0t(t,u){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Ha(t)){for(const s in t)if(s==="default"||u.includes(s)||sH(u,s)){const d=t[s];return P0t(d,u)}}}function M0t(t){return wTe(t)?ZD(t)?t:lr(t):void 0}function aUt(t,u,s,d,f,p){if(!sc(t,"*"))return t.includes("*")?_t:b(t,"script");const E=t.slice(0,t.length-1),v=doe(s,E);if(v===void 0)return t[t.length-2]==="/"?b(E,"directory"):ju(u,k=>{var T;return(T=z0t("",d,k,f,p))==null?void 0:T.map(({name:M,...z})=>({name:E+M,...z}))});return ju(u,B=>z0t(v,d,B,f,p));function b(B,k){return Pa(B,s)?[{name:mv(B),kind:k,extension:void 0}]:_t}}function z0t(t,u,s,d,f){if(!f.readDirectory)return;const p=fB(s);if(p===void 0||Ja(p))return;const E=kx(p.prefix),v=ZD(p.prefix)?E:lr(E),b=ZD(p.prefix)?"":Ac(E),B=wTe(t),k=B?ZD(t)?t:lr(t):void 0,T=B?cr(v,b+k):v,M=$o(p.suffix),z=M&&Kj("_"+M),j=z?[wv(M,z),M]:[M],J=$o(cr(u,T)),K=B?J:zd(J)+b,Y=M?j.map(ae=>"**/*"+ae):["./*"],oe=qi(xfe(f,J,d.extensionsToSearch,void 0,Y),ae=>{const Ce=ge(ae);if(Ce){if(wTe(Ce))return STe(yd(I0t(Ce))[1]);const{name:ne,extension:ve}=T0t(Ce,f.getCompilationSettings(),d);return YM(ne,"script",ve)}}),se=M?_t:qi(LX(f,J),ae=>ae==="node_modules"?void 0:STe(ae));return[...oe,...se];function ge(ae){return G(j,Ce=>{const ne=oUt($o(ae),K,Ce);return ne===void 0?void 0:I0t(ne)})}}function oUt(t,u,s){return Pa(t,u)&&sc(t,s)?t.slice(u.length,t.length-s.length):void 0}function I0t(t){return t[0]===rl?t.slice(1):t}function sUt(t,u,s){const f=s.getAmbientModules().map(p=>$4(p.name)).filter(p=>Pa(p,t)&&!p.includes("*"));if(u!==void 0){const p=zd(u);return f.map(E=>yN(E,p))}return f}function lUt(t,u,s,d){const f=Ca(t,u),p=W_(t.text,f.pos),E=p&&Le(p,j=>u>=j.pos&&u<=j.end);if(!E)return;const v=t.text.slice(E.pos,u),b=O0t.exec(v);if(!b)return;const[,B,k,T]=b,M=lr(t.path),z=k==="path"?SK(T,M,BTe(s,0,t),d,!0,t.path):k==="types"?R0t(d,s,M,M0t(T),BTe(s,1,t)):H.fail();return B0t(T,E.pos+B.length,ga(z.values()))}function R0t(t,u,s,d,f,p=FTe()){const E=new Map,v=PX(()=>cM(u,t))||_t;for(const B of v)b(B);for(const B of vfe(s,t)){const k=cr(lr(B),"node_modules/@types");b(k)}return p;function b(B){if(NX(t,B))for(const k of LX(t,B)){const T=lH(k);if(!(u.types&&!kt(u.types,T)))if(d===void 0)E.has(T)||(p.add(YM(T,"external module name",void 0)),E.set(T,!0));else{const M=cr(B,k),z=yle(d,T,n5(t));z!==void 0&&SK(z,M,f,t,!1,void 0,p)}}}}function cUt(t,u){if(!t.readFile||!t.fileExists)return _t;const s=[];for(const d of vfe(u,t)){const f=EP(d,t);for(const p of j0t){const E=f[p];if(E)for(const v in E)gu(E,v)&&!Pa(v,"@types/")&&s.push(v)}}return s}function dUt(t,u){const s=Math.max(t.lastIndexOf(rl),t.lastIndexOf(BO)),d=s!==-1?s+1:0,f=t.length-d;return f===0||Lm(t.substr(d,f),99)?void 0:d1(u+d,f)}function hUt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const u=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(u);return s===47||s===92}return!1}function wTe(t){return t.includes(rl)}function fUt(t){return Mo(t.parent)&&Ki(t.parent.arguments)===t&&at(t.parent.expression)&&t.parent.expression.escapedText==="require"}var TTe,O0t,j0t,mUt=o({"src/services/stringCompletions.ts"(){rr(),LTe(),TTe={directory:0,script:1,"external module name":2},O0t=/^(\/\/\/\s*q$t,getStringLiteralCompletions:()=>$$t});var pUt=o({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){mUt()}}),h9={};h(h9,{CompletionKind:()=>yTe,CompletionSource:()=>CTe,SortText:()=>I1,StringCompletions:()=>ype,SymbolOriginInfoKind:()=>bTe,createCompletionDetails:()=>Lee,createCompletionDetailsForSymbol:()=>ETe,getCompletionEntriesFromSymbols:()=>pTe,getCompletionEntryDetails:()=>y$t,getCompletionEntrySymbol:()=>F$t,getCompletionsAtPosition:()=>i$t,getPropertiesForObjectExpression:()=>Dpe,moduleSpecifierResolutionCacheAttemptLimit:()=>vTe,moduleSpecifierResolutionLimit:()=>Cpe});var LTe=o({"src/services/_namespaces/ts.Completions.ts"(){J$t(),pUt()}});function NTe(t,u,s,d){const f=DUt(t,s,d);return(p,E,v)=>{const{directImports:b,indirectUsers:B}=gUt(t,u,f,E,s,d);return{indirectUsers:B,...EUt(b,p,E.exportKind,s,v)}}}function gUt(t,u,s,{exportingModuleSymbol:d,exportKind:f},p,E){const v=i9(),b=i9(),B=[],k=!!d.globalExports,T=k?void 0:[];return z(d),{directImports:B,indirectUsers:M()};function M(){if(k)return t;if(d.declarations)for(const se of d.declarations)v2(se)&&u.has(se.getSourceFile().fileName)&&Y(se);return T.map(zn)}function z(se){const ge=oe(se);if(ge){for(const ae of ge)if(v(ae))switch(E&&E.throwIfCancellationRequested(),ae.kind){case 213:if(dm(ae)){j(ae);break}if(!k){const ne=ae.parent;if(f===2&&ne.kind===260){const{name:ve}=ne;if(ve.kind===80){B.push(ve);break}}}break;case 80:break;case 271:K(ae,ae.name,Yu(ae,32),!1);break;case 272:B.push(ae);const Ce=ae.importClause&&ae.importClause.namedBindings;Ce&&Ce.kind===274?K(ae,Ce.name,!1,!0):!k&&c7(ae)&&Y(Mee(ae));break;case 278:ae.exportClause?ae.exportClause.kind===280?Y(Mee(ae),!0):B.push(ae):z(yUt(ae,p));break;case 205:!k&&ae.isTypeOf&&!ae.qualifier&&J(ae)&&Y(ae.getSourceFile(),!0),B.push(ae);break;default:H.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(se){const ge=Tn(se,kpe)||se.getSourceFile();Y(ge,!!J(se,!0))}function J(se,ge=!1){return Tn(se,ae=>ge&&kpe(ae)?"quit":Hp(ae)&&Oe(ae.modifiers,L7))}function K(se,ge,ae,Ce){if(f===2)Ce||B.push(se);else if(!k){const ne=Mee(se);H.assert(ne.kind===312||ne.kind===267),ae||_Ut(ne,ge,p)?Y(ne,!0):Y(ne)}}function Y(se,ge=!1){if(H.assert(!k),!b(se)||(T.push(se),!ge))return;const Ce=p.getMergedSymbol(se.symbol);if(!Ce)return;H.assert(!!(Ce.flags&1536));const ne=oe(Ce);if(ne)for(const ve of ne)nD(ve)||Y(Mee(ve),!0)}function oe(se){return s.get(Zo(se).toString())}}function EUt(t,u,s,d,f){const p=[],E=[];function v(M,z){p.push([M,z])}if(t)for(const M of t)b(M);return{importSearches:p,singleReferences:E};function b(M){if(M.kind===271){MTe(M)&&B(M.name);return}if(M.kind===80){B(M);return}if(M.kind===205){if(M.qualifier){const J=hm(M.qualifier);J.escapedText===lc(u)&&E.push(J)}else s===2&&E.push(M.argument.literal);return}if(M.moduleSpecifier.kind!==11)return;if(M.kind===278){M.exportClause&&ep(M.exportClause)&&k(M.exportClause);return}const{name:z,namedBindings:j}=M.importClause||{name:void 0,namedBindings:void 0};if(j)switch(j.kind){case 274:B(j.name);break;case 275:(s===0||s===1)&&k(j);break;default:H.assertNever(j)}if(z&&(s===1||s===2)&&(!f||z.escapedText===xX(u))){const J=d.getSymbolAtLocation(z);v(z,J)}}function B(M){s===2&&(!f||T(M.escapedText))&&v(M,d.getSymbolAtLocation(M))}function k(M){if(M)for(const z of M.elements){const{name:j,propertyName:J}=z;if(T((J||j).escapedText))if(J)E.push(J),(!f||j.escapedText===u.escapedName)&&v(j,d.getSymbolAtLocation(j));else{const K=z.kind===281&&z.propertyName?d.getExportSpecifierLocalTargetSymbol(z):d.getSymbolAtLocation(j);v(j,K)}}}function T(M){return M===u.escapedName||s!==0&&M==="default"}}function _Ut(t,u,s){const d=s.getSymbolAtLocation(u);return!!H0t(t,f=>{if(!Gc(f))return;const{exportClause:p,moduleSpecifier:E}=f;return!E&&p&&ep(p)&&p.elements.some(v=>s.getExportSpecifierLocalTargetSymbol(v)===d)})}function V0t(t,u,s){var d;const f=[],p=t.getTypeChecker();for(const E of u){const v=s.valueDeclaration;if((v==null?void 0:v.kind)===312){for(const b of E.referencedFiles)t.getSourceFileFromReference(E,b)===v&&f.push({kind:"reference",referencingFile:E,ref:b});for(const b of E.typeReferenceDirectives){const B=(d=t.getResolvedTypeReferenceDirectives().get(b.fileName,b.resolutionMode||E.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective;B!==void 0&&B.resolvedFileName===v.fileName&&f.push({kind:"reference",referencingFile:E,ref:b})}}K0t(E,(b,B)=>{p.getSymbolAtLocation(B)===s&&f.push(sl(b)?{kind:"implicit",literal:B,referencingFile:E}:{kind:"import",literal:B})})}return f}function DUt(t,u,s){const d=new Map;for(const f of t)s&&s.throwIfCancellationRequested(),K0t(f,(p,E)=>{const v=u.getSymbolAtLocation(E);if(v){const b=Zo(v).toString();let B=d.get(b);B||d.set(b,B=[]),B.push(p)}});return d}function H0t(t,u){return L(t.kind===312?t.statements:t.body.statements,s=>u(s)||kpe(s)&&L(s.body&&s.body.statements,u))}function K0t(t,u){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)u(tP(s),s);else H0t(t,s=>{switch(s.kind){case 278:case 272:{const d=s;d.moduleSpecifier&&us(d.moduleSpecifier)&&u(d,d.moduleSpecifier);break}case 271:{const d=s;MTe(d)&&u(d,d.moduleReference.expression);break}}})}function W0t(t,u,s,d){return d?f():f()||p();function f(){var b;const{parent:B}=t,k=B.parent;if(u.exportSymbol)return B.kind===211?(b=u.declarations)!=null&&b.some(z=>z===B)&&Xn(k)?M(k,!1):void 0:E(u.exportSymbol,v(B));{const z=vUt(B,t);if(z&&Yu(z,32))return E1(z)&&z.moduleReference===t?d?void 0:{kind:0,symbol:s.getSymbolAtLocation(z.name)}:E(u,v(z));if(u_(B))return E(u,0);if(tc(B))return T(B);if(tc(k))return T(k);if(Xn(B))return M(B,!0);if(Xn(k))return M(k,!0);if(PB(B)||Ace(B))return E(u,0)}function T(z){if(!z.symbol.parent)return;const j=z.isExportEquals?2:1;return{kind:1,symbol:u,exportInfo:{exportingModuleSymbol:z.symbol.parent,exportKind:j}}}function M(z,j){let J;switch(Xl(z)){case 1:J=0;break;case 2:J=2;break;default:return}const K=j?s.getSymbolAtLocation(Uye(Po(z.left,I0))):u;return K&&E(K,J)}}function p(){if(!CUt(t))return;let B=s.getImmediateAliasedSymbol(u);if(!B||(B=bUt(B,s),B.escapedName==="export="&&(B=xUt(B,s),B===void 0)))return;const k=xX(B);if(k===void 0||k==="default"||k===u.escapedName)return{kind:0,symbol:B}}function E(b,B){const k=PTe(b,B,s);return k&&{kind:1,symbol:b,exportInfo:k}}function v(b){return Yu(b,2048)?1:0}}function xUt(t,u){var s,d;if(t.flags&2097152)return u.getImmediateAliasedSymbol(t);const f=H.checkDefined(t.valueDeclaration);if(tc(f))return(s=ur(f.expression,Zg))==null?void 0:s.symbol;if(Xn(f))return(d=ur(f.right,Zg))==null?void 0:d.symbol;if(la(f))return f.symbol}function vUt(t,u){const s=ua(t)?t:js(t)?S8(t):void 0;return s?t.name!==u||G2(s.parent)?void 0:Jl(s.parent.parent)?s.parent.parent:void 0:t}function CUt(t){const{parent:u}=t;switch(u.kind){case 271:return u.name===t&&MTe(u);case 276:return!u.propertyName;case 273:case 274:return H.assert(u.name===t),!0;case 208:return Qn(t)&&F2(u.parent.parent);default:return!1}}function PTe(t,u,s){const d=t.parent;if(!d)return;const f=s.getMergedSymbol(d);return HH(f)?{exportingModuleSymbol:f,exportKind:u}:void 0}function bUt(t,u){if(t.declarations)for(const s of t.declarations){if(eh(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return u.getExportSpecifierLocalTargetSymbol(s)||t;if(Iu(s)&&Y_(s.expression)&&!ea(s.name))return u.getSymbolAtLocation(s);if(pm(s)&&Xn(s.parent.parent)&&Xl(s.parent.parent)===2)return u.getExportSpecifierLocalTargetSymbol(s.name)}return t}function yUt(t,u){return u.getMergedSymbol(Mee(t).symbol)}function Mee(t){if(t.kind===213)return t.getSourceFile();const{parent:u}=t;return u.kind===312?u:(H.assert(u.kind===268),Po(u.parent,kpe))}function kpe(t){return t.kind===267&&t.name.kind===11}function MTe(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var zTe,ITe,kUt=o({"src/services/importTracker.ts"(){rr(),zTe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(zTe||{}),ITe=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(ITe||{})}});function l3(t,u=1){return{kind:u,node:t.name||t,context:FUt(t)}}function G0t(t){return t&&t.kind===void 0}function FUt(t){if(Q1(t))return Vk(t);if(t.parent){if(!Q1(t.parent)&&!tc(t.parent)){if(Qn(t)){const s=Xn(t.parent)?t.parent:I0(t.parent)&&Xn(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&Xl(s)!==0)return Vk(s)}if(aE(t.parent)||H2(t.parent))return t.parent.parent;if(bk(t.parent)||V2(t.parent)||ON(t.parent))return t.parent;if(t0(t)){const s=Aj(t);if(s){const d=Tn(s,f=>Q1(f)||na(f)||I8(f));return Q1(d)?Vk(d):d}}const u=Tn(t,Ps);return u?Vk(u.parent):void 0}if(t.parent.name===t||hc(t.parent)||tc(t.parent)||(r7(t.parent)||js(t.parent))&&t.parent.propertyName===t||t.kind===90&&Yu(t.parent,2080))return Vk(t.parent)}}function Vk(t){if(t)switch(t.kind){case 260:return!Ad(t.parent)||t.parent.declarations.length!==1?t:Jl(t.parent.parent)?t.parent.parent:M8(t.parent.parent)?Vk(t.parent.parent):t.parent;case 208:return Vk(t.parent.parent);case 276:return t.parent.parent.parent;case 281:case 274:return t.parent.parent;case 273:case 280:return t.parent;case 226:return Od(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return p5(t.parent)?Vk(Tn(t.parent,u=>Xn(u)||M8(u))):t;default:return t}}function RTe(t,u,s){if(!s)return;const d=G0t(s)?Iee(s.start,u,s.end):Iee(s,u);return d.start!==t.start||d.length!==t.length?{contextSpan:d}:void 0}function AUt(t,u,s,d,f){const p=af(d,f),E={use:1},v=f9.getReferencedSymbolsForNode(f,p,t,s,u,E),b=t.getTypeChecker(),B=f9.getAdjustedNode(p,E),k=SUt(B)?b.getSymbolAtLocation(B):void 0;return!v||!v.length?void 0:qi(v,({definition:T,references:M})=>T&&{definition:b.runWithCancellationToken(u,z=>TUt(T,z,p)),references:M.map(z=>NUt(z,k))})}function SUt(t){return t.kind===90||!!nP(t)||Nj(t)||t.kind===137&&hc(t.parent)}function BUt(t,u,s,d,f){const p=af(d,f);let E;const v=J0t(t,u,s,p,f);if(p.parent.kind===211||p.parent.kind===208||p.parent.kind===212||p.kind===108)E=v&&[...v];else if(v){const B=U$(v),k=new Map;for(;!B.isEmpty();){const T=B.dequeue();if(!Ip(k,$s(T.node)))continue;E=xi(E,T);const M=J0t(t,u,s,T.node,T.node.pos);M&&B.enqueue(...M)}}const b=t.getTypeChecker();return Vt(E,B=>MUt(B,b))}function J0t(t,u,s,d,f){if(d.kind===312)return;const p=t.getTypeChecker();if(d.parent.kind===304){const E=[];return f9.getReferenceEntriesForShorthandPropertyAssignment(d,p,v=>E.push(l3(v))),E}else if(d.kind===108||nf(d.parent)){const E=p.getSymbolAtLocation(d);return E.valueDeclaration&&[l3(E.valueDeclaration)]}else return $0t(f,d,t,s,u,{implementations:!0,use:1})}function wUt(t,u,s,d,f,p,E){return Vt(U0t(f9.getReferencedSymbolsForNode(f,d,t,s,u,p)),v=>E(v,d,t.getTypeChecker()))}function $0t(t,u,s,d,f,p={},E=new Set(d.map(v=>v.fileName))){return U0t(f9.getReferencedSymbolsForNode(t,u,s,d,f,p,E))}function U0t(t){return t&&ju(t,u=>u.references)}function TUt(t,u,s){const d=(()=>{switch(t.type){case 0:{const{symbol:k}=t,{displayParts:T,kind:M}=q0t(k,u,s),z=T.map(K=>K.text).join(""),j=k.declarations&&Ki(k.declarations),J=j?Za(j)||j:s;return{...zee(J),name:z,kind:M,displayParts:T,context:Vk(j)}}case 1:{const{node:k}=t;return{...zee(k),name:k.text,kind:"label",displayParts:[yf(k.text,17)]}}case 2:{const{node:k}=t,T=Uo(k.kind);return{...zee(k),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{const{node:k}=t,T=u.getSymbolAtLocation(k),M=T&&x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,T,k.getSourceFile(),Mk(k),k).displayParts||[Km("this")];return{...zee(k),name:"this",kind:"var",displayParts:M}}case 4:{const{node:k}=t;return{...zee(k),name:k.text,kind:"var",displayParts:[yf(Hc(k),8)]}}case 5:return{textSpan:qx(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[yf(`"${t.reference.fileName}"`,8)]};default:return H.assertNever(t)}})(),{sourceFile:f,textSpan:p,name:E,kind:v,displayParts:b,context:B}=d;return{containerKind:"",containerName:"",fileName:f.fileName,kind:v,name:E,textSpan:p,displayParts:b,...RTe(p,f,B)}}function zee(t){const u=t.getSourceFile();return{sourceFile:u,textSpan:Iee(Ps(t)?t.expression:t,u)}}function q0t(t,u,s){const d=f9.getIntersectingMeaningFromDeclarations(s,t),f=t.declarations&&Ki(t.declarations)||s,{displayParts:p,symbolKind:E}=x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,t,f.getSourceFile(),f,f,d);return{displayParts:p,kind:E}}function LUt(t,u,s,d,f){return{...Fpe(t),...d&&PUt(t,u,s,f)}}function NUt(t,u){const s=Z0t(t);return u?{...s,isDefinition:t.kind!==0&&Y0t(t.node,u)}:s}function Z0t(t){const u=Fpe(t);if(t.kind===0)return{...u,isWriteAccess:!1};const{kind:s,node:d}=t;return{...u,isWriteAccess:jTe(d),isInString:s===2?!0:void 0}}function Fpe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const u=t.node.getSourceFile(),s=Iee(t.node,u);return{textSpan:s,fileName:u.fileName,...RTe(s,u,t.context)}}}function PUt(t,u,s,d){if(t.kind!==0&&at(u)){const{node:f,kind:p}=t,E=f.parent,v=u.text,b=pm(E);if(b||GH(E)&&E.name===f&&E.dotDotDotToken===void 0){const B={prefixText:v+": "},k={suffixText:": "+v};if(p===3)return B;if(p===4)return k;if(b){const T=E.parent;return ys(T)&&Xn(T.parent)&&Y_(T.parent.left)?B:k}else return B}else if(bf(E)&&!E.propertyName){const B=eh(u.parent)?s.getExportSpecifierLocalTargetSymbol(u.parent):s.getSymbolAtLocation(u);return kt(B.declarations,E)?{prefixText:v+" as "}:d4}else if(eh(E)&&!E.propertyName)return u===t.node||s.getSymbolAtLocation(u)===s.getSymbolAtLocation(t.node)?{prefixText:v+" as "}:{suffixText:" as "+v}}if(t.kind!==0&&Of(t.node)&&I0(t.node.parent)){const f=ofe(d);return{prefixText:f,suffixText:f}}return d4}function MUt(t,u){const s=Fpe(t);if(t.kind!==0){const{node:d}=t;return{...s,...zUt(d,u)}}else return{...s,kind:"",displayParts:[]}}function zUt(t,u){const s=u.getSymbolAtLocation(Q1(t)&&t.name?t.name:t);return s?q0t(s,u,t):t.kind===210?{kind:"interface",displayParts:[ih(21),Km("object literal"),ih(22)]}:t.kind===231?{kind:"local class",displayParts:[ih(21),Km("anonymous local class"),ih(22)]}:{kind:tb(t),displayParts:[]}}function IUt(t){const u=Fpe(t);if(t.kind===0)return{fileName:u.fileName,span:{textSpan:u.textSpan,kind:"reference"}};const s=jTe(t.node),d={textSpan:u.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...u.contextSpan&&{contextSpan:u.contextSpan}};return{fileName:u.fileName,span:d}}function Iee(t,u,s){let d=t.getStart(u),f=(s||t).getEnd();return t0(t)&&f-d>2&&(H.assert(s===void 0),d+=1,f-=1),Vc(d,f)}function OTe(t){return t.kind===0?t.textSpan:Iee(t.node,t.node.getSourceFile())}function jTe(t){const u=nP(t);return!!u&&RUt(u)||t.kind===90||D7(t)}function Y0t(t,u){var s;if(!u)return!1;const d=nP(t)||(t.kind===90?t.parent:Nj(t)||t.kind===137&&hc(t.parent)?t.parent.parent:void 0),f=d&&Xn(d)?d.left:void 0;return!!(d&&((s=u.declarations)!=null&&s.some(p=>p===d||p===f)))}function RUt(t){if(t.flags&33554432)return!0;switch(t.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!p5(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||G2(t.parent);case 173:case 171:case 355:case 348:return!1;default:return H.failBadSyntaxKind(t)}}var VTe,HTe,KTe,f9,OUt=o({"src/services/findAllReferences.ts"(){rr(),Q0t(),VTe=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))(VTe||{}),HTe=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(HTe||{}),KTe=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(KTe||{}),(t=>{function u(Qe,Et,Mt,qt,Xt,Pe={},et=new Set(qt.map(gt=>gt.fileName))){var gt,ii;if(Et=s(Et,Pe),la(Et)){const $i=Cw.getReferenceAtPosition(Et,Qe,Mt);if(!($i!=null&&$i.file))return;const Qi=Mt.getTypeChecker().getMergedSymbol($i.file.symbol);if(Qi)return B(Mt,Qi,!1,qt,et);const on=Mt.getFileIncludeReasons();return on?[{definition:{type:5,reference:$i.reference,file:Et},references:f($i.file,on,Mt)||_t}]:void 0}if(!Pe.implementations){const $i=T(Et,qt,Xt);if($i)return $i}const me=Mt.getTypeChecker(),ni=me.getSymbolAtLocation(hc(Et)&&Et.parent.name||Et);if(!ni){if(!Pe.implementations&&t0(Et)){if(vX(Et)){const $i=Mt.getFileIncludeReasons(),Qi=(ii=(gt=Mt.getResolvedModule(Et.getSourceFile(),Et.text,xg(Et.getSourceFile(),Et)))==null?void 0:gt.resolvedModule)==null?void 0:ii.resolvedFileName,on=Qi?Mt.getSourceFile(Qi):void 0;if(on)return[{definition:{type:4,node:Et},references:f(on,$i,Mt)||_t}]}return bt(Et,qt,me,Xt)}return}if(ni.escapedName==="export=")return B(Mt,ni.parent,!1,qt,et);const vi=E(ni,Mt,qt,Xt,Pe,et);if(vi&&!(ni.flags&33554432))return vi;const mt=p(Et,ni,me),Ot=mt&&E(mt,Mt,qt,Xt,Pe,et),Ei=M(ni,Et,qt,et,me,Xt,Pe);return v(Mt,vi,Ei,Ot)}t.getReferencedSymbolsForNode=u;function s(Qe,Et){return Et.use===1?Qe=Jhe(Qe):Et.use===2&&(Qe=lX(Qe)),Qe}t.getAdjustedNode=s;function d(Qe,Et,Mt,qt=new Set(Mt.map(Xt=>Xt.fileName))){var Xt,Pe;const et=(Xt=Et.getSourceFile(Qe))==null?void 0:Xt.symbol;if(et)return((Pe=B(Et,et,!1,Mt,qt)[0])==null?void 0:Pe.references)||_t;const gt=Et.getFileIncludeReasons(),ii=Et.getSourceFile(Qe);return ii&>&&f(ii,gt,Et)||_t}t.getReferencesForFileName=d;function f(Qe,Et,Mt){let qt;const Xt=Et.get(Qe.path)||_t;for(const Pe of Xt)if(Jv(Pe)){const et=Mt.getSourceFileByPath(Pe.file),gt=FM(Mt,Pe);ZB(gt)&&(qt=xi(qt,{kind:0,fileName:et.fileName,textSpan:qx(gt)}))}return qt}function p(Qe,Et,Mt){if(Qe.parent&&wV(Qe.parent)){const qt=Mt.getAliasedSymbol(Et),Xt=Mt.getMergedSymbol(qt);if(qt!==Xt)return Xt}}function E(Qe,Et,Mt,qt,Xt,Pe){const et=Qe.flags&1536&&Qe.declarations&&Le(Qe.declarations,la);if(!et)return;const gt=Qe.exports.get("export="),ii=B(Et,Qe,!!gt,Mt,Pe);if(!gt||!Pe.has(et.fileName))return ii;const me=Et.getTypeChecker();return Qe=X1(gt,me),v(Et,ii,M(Qe,void 0,Mt,Pe,me,qt,Xt))}function v(Qe,...Et){let Mt;for(const qt of Et)if(!(!qt||!qt.length)){if(!Mt){Mt=qt;continue}for(const Xt of qt){if(!Xt.definition||Xt.definition.type!==0){Mt.push(Xt);continue}const Pe=Xt.definition.symbol,et=Ue(Mt,ii=>!!ii.definition&&ii.definition.type===0&&ii.definition.symbol===Pe);if(et===-1){Mt.push(Xt);continue}const gt=Mt[et];Mt[et]={definition:gt.definition,references:gt.references.concat(Xt.references).sort((ii,me)=>{const ni=b(Qe,ii),vi=b(Qe,me);if(ni!==vi)return nl(ni,vi);const mt=OTe(ii),Ot=OTe(me);return mt.start!==Ot.start?nl(mt.start,Ot.start):nl(mt.length,Ot.length)})}}}return Mt}function b(Qe,Et){const Mt=Et.kind===0?Qe.getSourceFile(Et.fileName):Et.node.getSourceFile();return Qe.getSourceFiles().indexOf(Mt)}function B(Qe,Et,Mt,qt,Xt){H.assert(!!Et.valueDeclaration);const Pe=qi(V0t(Qe,qt,Et),gt=>{if(gt.kind==="import"){const ii=gt.literal.parent;if(Mv(ii)){const me=Po(ii.parent,nD);if(Mt&&!me.qualifier)return}return l3(gt.literal)}else if(gt.kind==="implicit"){const ii=gt.literal.text!==Hx&&uM(gt.referencingFile,me=>me.transformFlags&2?r3(me)||bk(me)||K2(me)?me:void 0:"skip")||gt.referencingFile.statements[0]||gt.referencingFile;return l3(ii)}else return{kind:0,fileName:gt.referencingFile.fileName,textSpan:qx(gt.ref)}});if(Et.declarations)for(const gt of Et.declarations)switch(gt.kind){case 312:break;case 267:Xt.has(gt.getSourceFile().fileName)&&Pe.push(l3(gt.name));break;default:H.assert(!!(Et.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=Et.exports.get("export=");if(et!=null&&et.declarations)for(const gt of et.declarations){const ii=gt.getSourceFile();if(Xt.has(ii.fileName)){const me=Xn(gt)&&Iu(gt.left)?gt.left.expression:tc(gt)?H.checkDefined(a0(gt,95,ii)):Za(gt)||gt;Pe.push(l3(me))}}return Pe.length?[{definition:{type:0,symbol:Et},references:Pe}]:_t}function k(Qe){return Qe.kind===148&&z7(Qe.parent)&&Qe.parent.operator===148}function T(Qe,Et,Mt){if(PM(Qe.kind))return Qe.kind===116&&R7(Qe.parent)||Qe.kind===148&&!k(Qe)?void 0:Je(Et,Qe.kind,Mt,Qe.kind===148?k:void 0);if(W8(Qe.parent)&&Qe.parent.name===Qe)return Ke(Et,Mt);if(N7(Qe)&&zl(Qe.parent))return[{definition:{type:2,node:Qe},references:[l3(Qe)]}];if(PH(Qe)){const qt=nX(Qe.parent,Qe.text);return qt&&Ae(qt.parent,qt)}else if(Ihe(Qe))return Ae(Qe.parent,Qe);if(rw(Qe))return Ba(Qe,Et,Mt);if(Qe.kind===108)return aa(Qe)}function M(Qe,Et,Mt,qt,Xt,Pe,et){const gt=Et&&J(Qe,Et,Xt,!bo(et))||Qe,ii=Et?tu(Et,gt):7,me=[],ni=new oe(Mt,qt,Et?j(Et):0,Xt,Pe,ii,et,me),vi=!bo(et)||!gt.declarations?void 0:Le(gt.declarations,eh);if(vi)Gt(vi.name,gt,vi,ni.createSearch(Et,Qe,void 0),ni,!0,!0);else if(Et&&Et.kind===90&>.escapedName==="default"&>.parent)It(Et,gt,ni),se(Et,gt,{exportingModuleSymbol:gt.parent,exportKind:1},ni);else{const mt=ni.createSearch(Et,gt,void 0,{allSearchSymbols:Et?jn(gt,Et,Xt,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[gt]});z(gt,ni,mt)}return me}function z(Qe,Et,Mt){const qt=Se(Qe);if(qt)Ye(qt,qt.getSourceFile(),Mt,Et,!(la(qt)&&!kt(Et.sourceFiles,qt)));else for(const Xt of Et.sourceFiles)Et.cancellationToken.throwIfCancellationRequested(),ne(Xt,Mt,Et)}function j(Qe){switch(Qe.kind){case 176:case 137:return 1;case 80:if(mr(Qe.parent))return H.assert(Qe.parent.name===Qe),2;default:return 0}}function J(Qe,Et,Mt,qt){const{parent:Xt}=Et;return eh(Xt)&&qt?Yt(Et,Qe,Xt,Mt):G(Qe.declarations,Pe=>{if(!Pe.parent){if(Qe.flags&33554432)return;H.fail(`Unexpected symbol at ${H.formatSyntaxKind(Et.kind)}: ${H.formatSymbol(Qe)}`)}return fm(Pe.parent)&&Pv(Pe.parent.parent)?Mt.getPropertyOfType(Mt.getTypeFromTypeNode(Pe.parent.parent),Qe.name):void 0})}let K;(Qe=>{Qe[Qe.None=0]="None",Qe[Qe.Constructor=1]="Constructor",Qe[Qe.Class=2]="Class"})(K||(K={}));function Y(Qe){if(!(Qe.flags&33555968))return;const Et=Qe.declarations&&Le(Qe.declarations,Mt=>!la(Mt)&&!_c(Mt));return Et&&Et.symbol}class oe{constructor(Et,Mt,qt,Xt,Pe,et,gt,ii){this.sourceFiles=Et,this.sourceFilesSet=Mt,this.specialSearchKind=qt,this.checker=Xt,this.cancellationToken=Pe,this.searchMeaning=et,this.options=gt,this.result=ii,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=i9(),this.markSeenReExportRHS=i9(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(Et){return this.sourceFilesSet.has(Et.fileName)}getImportSearches(Et,Mt){return this.importTracker||(this.importTracker=NTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(Et,Mt,this.options.use===2)}createSearch(Et,Mt,qt,Xt={}){const{text:Pe=$4(lc(lB(Mt)||Y(Mt)||Mt)),allSearchSymbols:et=[Mt]}=Xt,gt=Al(Pe),ii=this.options.implementations&&Et?Yo(Et,Mt,this.checker):void 0;return{symbol:Mt,comingFrom:qt,text:Pe,escapedText:gt,parents:ii,allSearchSymbols:et,includes:me=>kt(et,me)}}referenceAdder(Et){const Mt=Zo(Et);let qt=this.symbolIdToReferences[Mt];return qt||(qt=this.symbolIdToReferences[Mt]=[],this.result.push({definition:{type:0,symbol:Et},references:qt})),(Xt,Pe)=>qt.push(l3(Xt,Pe))}addStringOrCommentReference(Et,Mt){this.result.push({definition:void 0,references:[{kind:0,fileName:Et,textSpan:Mt}]})}markSearchedSymbols(Et,Mt){const qt=$s(Et),Xt=this.sourceFileToSeenSymbols[qt]||(this.sourceFileToSeenSymbols[qt]=new Set);let Pe=!1;for(const et of Mt)Pe=r0(Xt,Zo(et))||Pe;return Pe}}function se(Qe,Et,Mt,qt){const{importSearches:Xt,singleReferences:Pe,indirectUsers:et}=qt.getImportSearches(Et,Mt);if(Pe.length){const gt=qt.referenceAdder(Et);for(const ii of Pe)ae(ii,qt)&>(ii)}for(const[gt,ii]of Xt)ft(gt.getSourceFile(),qt.createSearch(gt,ii,1),qt);if(et.length){let gt;switch(Mt.exportKind){case 0:gt=qt.createSearch(Qe,Et,1);break;case 1:gt=qt.options.use===2?void 0:qt.createSearch(Qe,Et,1,{text:"default"});break}if(gt)for(const ii of et)ne(ii,gt,qt)}}function ge(Qe,Et,Mt,qt,Xt,Pe,et,gt){const ii=NTe(Qe,new Set(Qe.map(mt=>mt.fileName)),Et,Mt),{importSearches:me,indirectUsers:ni,singleReferences:vi}=ii(qt,{exportKind:et?1:0,exportingModuleSymbol:Xt},!1);for(const[mt]of me)gt(mt);for(const mt of vi)at(mt)&&nD(mt.parent)&>(mt);for(const mt of ni)for(const Ot of Be(mt,et?"default":Pe)){const Ei=Et.getSymbolAtLocation(Ot),$i=Oe(Ei==null?void 0:Ei.declarations,Qi=>!!ur(Qi,tc));at(Ot)&&!r7(Ot.parent)&&(Ei===qt||$i)&>(Ot)}}t.eachExportReference=ge;function ae(Qe,Et){return Ve(Qe,Et)?Et.options.use!==2?!0:at(Qe)?!(r7(Qe.parent)&&Qe.escapedText==="default"):!1:!1}function Ce(Qe,Et){if(Qe.declarations)for(const Mt of Qe.declarations){const qt=Mt.getSourceFile();ft(qt,Et.createSearch(Mt,Qe,0),Et,Et.includesSourceFile(qt))}}function ne(Qe,Et,Mt){Tme(Qe).get(Et.escapedText)!==void 0&&ft(Qe,Et,Mt)}function ve(Qe,Et){return p5(Qe.parent.parent)?Et.getPropertySymbolOfDestructuringAssignment(Qe):void 0}function Se(Qe){const{declarations:Et,flags:Mt,parent:qt,valueDeclaration:Xt}=Qe;if(Xt&&(Xt.kind===218||Xt.kind===231))return Xt;if(!Et)return;if(Mt&8196){const gt=Le(Et,ii=>Rf(ii,2)||ph(ii));return gt?Fv(gt,263):void 0}if(Et.some(GH))return;const Pe=qt&&!(Qe.flags&262144);if(Pe&&!(HH(qt)&&!qt.globalExports))return;let et;for(const gt of Et){const ii=Mk(gt);if(et&&et!==ii||!ii||ii.kind===312&&!cm(ii))return;if(et=ii,A0(et)){let me;for(;me=R0e(et);)et=me}}return Pe?et.getSourceFile():et}function Ne(Qe,Et,Mt,qt=Mt){return pe(Qe,Et,Mt,()=>!0,qt)||!1}t.isSymbolReferencedInFile=Ne;function pe(Qe,Et,Mt,qt,Xt=Mt){const Pe=Mf(Qe.parent,Qe.parent.parent)?Pn(Et.getSymbolsOfParameterPropertyDeclaration(Qe.parent,Qe.text)):Et.getSymbolAtLocation(Qe);if(Pe)for(const et of Be(Mt,Pe.name,Xt)){if(!at(et)||et===Qe||et.escapedText!==Qe.escapedText)continue;const gt=Et.getSymbolAtLocation(et);if(gt===Pe||Et.getShorthandAssignmentValueSymbol(et.parent)===Pe||eh(et.parent)&&Yt(et,gt,et.parent,Et)===Pe){const ii=qt(et);if(ii)return ii}}}t.eachSymbolReferenceInFile=pe;function fe(Qe,Et){return ti(Be(Et,Qe),Xt=>!!nP(Xt)).reduce((Xt,Pe)=>{const et=qt(Pe);return!Oe(Xt.declarationNames)||et===Xt.depth?(Xt.declarationNames.push(Pe),Xt.depth=et):etni===Xt)&&qt(et,ii))return!0}return!1}t.someSignatureUsage=xe;function Be(Qe,Et,Mt=Qe){return qi(Ge(Qe,Et,Mt),qt=>{const Xt=af(Qe,qt);return Xt===Qe?void 0:Xt})}function Ge(Qe,Et,Mt=Qe){const qt=[];if(!Et||!Et.length)return qt;const Xt=Qe.text,Pe=Xt.length,et=Et.length;let gt=Xt.indexOf(Et,Mt.pos);for(;gt>=0&&!(gt>Mt.end);){const ii=gt+et;(gt===0||!Ev(Xt.charCodeAt(gt-1),99))&&(ii===Pe||!Ev(Xt.charCodeAt(ii),99))&&qt.push(gt),gt=Xt.indexOf(Et,gt+et+1)}return qt}function Ae(Qe,Et){const Mt=Qe.getSourceFile(),qt=Et.text,Xt=qi(Be(Mt,qt,Qe),Pe=>Pe===Et||PH(Pe)&&nX(Pe,qt)===Et?l3(Pe):void 0);return[{definition:{type:1,node:Et},references:Xt}]}function De(Qe,Et){switch(Qe.kind){case 81:if(Rv(Qe.parent))return!0;case 80:return Qe.text.length===Et.length;case 15:case 11:{const Mt=Qe;return(uX(Mt)||Vhe(Qe)||U9e(Qe)||Mo(Qe.parent)&&rk(Qe.parent)&&Qe.parent.arguments[1]===Qe)&&Mt.text.length===Et.length}case 9:return uX(Qe)&&Qe.text.length===Et.length;case 90:return Et.length===7;default:return!1}}function Ke(Qe,Et){const Mt=ju(Qe,qt=>(Et.throwIfCancellationRequested(),qi(Be(qt,"meta",qt),Xt=>{const Pe=Xt.parent;if(W8(Pe))return l3(Pe)})));return Mt.length?[{definition:{type:2,node:Mt[0].node},references:Mt}]:void 0}function Je(Qe,Et,Mt,qt){const Xt=ju(Qe,Pe=>(Mt.throwIfCancellationRequested(),qi(Be(Pe,Uo(Et),Pe),et=>{if(et.kind===Et&&(!qt||qt(et)))return l3(et)})));return Xt.length?[{definition:{type:2,node:Xt[0].node},references:Xt}]:void 0}function ft(Qe,Et,Mt,qt=!0){return Mt.cancellationToken.throwIfCancellationRequested(),Ye(Qe,Qe,Et,Mt,qt)}function Ye(Qe,Et,Mt,qt,Xt){if(qt.markSearchedSymbols(Et,Mt.allSearchSymbols))for(const Pe of Ge(Et,Mt.text,Qe))We(Et,Pe,Mt,qt,Xt)}function Ve(Qe,Et){return!!(Pk(Qe)&Et.searchMeaning)}function We(Qe,Et,Mt,qt,Xt){const Pe=af(Qe,Et);if(!De(Pe,Mt.text)){!qt.options.implementations&&(qt.options.findInStrings&&zk(Qe,Et)||qt.options.findInComments&&sSe(Qe,Et))&&qt.addStringOrCommentReference(Qe.fileName,d1(Et,Mt.text.length));return}if(!Ve(Pe,qt))return;let et=qt.checker.getSymbolAtLocation(Pe);if(!et)return;const gt=Pe.parent;if(bf(gt)&>.propertyName===Pe)return;if(eh(gt)){H.assert(Pe.kind===80),Gt(Pe,et,gt,Mt,qt,Xt);return}const ii=Cn(Mt,et,Pe,qt);if(!ii){St(et,Mt,qt);return}switch(qt.specialSearchKind){case 0:Xt&&It(Pe,ii,qt);break;case 1:ei(Pe,Qe,Mt,qt);break;case 2:ht(Pe,Mt,qt);break;default:H.assertNever(qt.specialSearchKind)}Qn(Pe)&&js(Pe.parent)&&F2(Pe.parent.parent.parent)&&(et=Pe.parent.symbol,!et)||st(Pe,et,Mt,qt)}function Gt(Qe,Et,Mt,qt,Xt,Pe,et){H.assert(!et||!!Xt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:gt,propertyName:ii,name:me}=Mt,ni=gt.parent,vi=Yt(Qe,Et,Mt,Xt.checker);if(!et&&!qt.includes(vi))return;if(ii?Qe===ii?(ni.moduleSpecifier||mt(),Pe&&Xt.options.use!==2&&Xt.markSeenReExportRHS(me)&&It(me,H.checkDefined(Mt.symbol),Xt)):Xt.markSeenReExportRHS(Qe)&&mt():Xt.options.use===2&&me.escapedText==="default"||mt(),!bo(Xt.options)||et){const Ei=Qe.escapedText==="default"||Mt.name.escapedText==="default"?1:0,$i=H.checkDefined(Mt.symbol),Qi=PTe($i,Ei,Xt.checker);Qi&&se(Qe,$i,Qi,Xt)}if(qt.comingFrom!==1&&ni.moduleSpecifier&&!ii&&!bo(Xt.options)){const Ot=Xt.checker.getExportSpecifierLocalTargetSymbol(Mt);Ot&&Ce(Ot,Xt)}function mt(){Pe&&It(Qe,vi,Xt)}}function Yt(Qe,Et,Mt,qt){return Ie(Qe,Mt)&&qt.getExportSpecifierLocalTargetSymbol(Mt)||Et}function Ie(Qe,Et){const{parent:Mt,propertyName:qt,name:Xt}=Et;return H.assert(qt===Qe||Xt===Qe),qt?qt===Qe:!Mt.parent.moduleSpecifier}function st(Qe,Et,Mt,qt){const Xt=W0t(Qe,Et,qt.checker,Mt.comingFrom===1);if(!Xt)return;const{symbol:Pe}=Xt;Xt.kind===0?bo(qt.options)||Ce(Pe,qt):se(Qe,Pe,Xt.exportInfo,qt)}function St({flags:Qe,valueDeclaration:Et},Mt,qt){const Xt=qt.checker.getShorthandAssignmentValueSymbol(Et),Pe=Et&&Za(Et);!(Qe&33554432)&&Pe&&Mt.includes(Xt)&&It(Pe,Xt,qt)}function It(Qe,Et,Mt){const{kind:qt,symbol:Xt}="kind"in Et?Et:{kind:void 0,symbol:Et};if(Mt.options.use===2&&Qe.kind===90)return;const Pe=Mt.referenceAdder(Xt);Mt.options.implementations?an(Qe,Pe,Mt):Pe(Qe,qt)}function ei(Qe,Et,Mt,qt){wM(Qe)&&It(Qe,Mt.symbol,qt);const Xt=()=>qt.referenceAdder(Mt.symbol);if(mr(Qe.parent))H.assert(Qe.kind===90||Qe.parent.name===Qe),Ut(Mt.symbol,Et,Xt());else{const Pe=Ta(Qe);Pe&&(ji(Pe,Xt()),Jn(Pe,qt))}}function ht(Qe,Et,Mt){It(Qe,Et.symbol,Mt);const qt=Qe.parent;if(Mt.options.use===2||!mr(qt))return;H.assert(qt.name===Qe);const Xt=Mt.referenceAdder(Et.symbol);for(const Pe of qt.members)N8(Pe)&&No(Pe)&&Pe.body&&Pe.body.forEachChild(function et(gt){gt.kind===110?Xt(gt):!Co(gt)&&!mr(gt)&>.forEachChild(et)})}function Ut(Qe,Et,Mt){const qt=Ni(Qe);if(qt&&qt.declarations)for(const Xt of qt.declarations){const Pe=a0(Xt,137,Et);H.assert(Xt.kind===176&&!!Pe),Mt(Pe)}Qe.exports&&Qe.exports.forEach(Xt=>{const Pe=Xt.valueDeclaration;if(Pe&&Pe.kind===174){const et=Pe.body;et&&ra(et,110,gt=>{wM(gt)&&Mt(gt)})}})}function Ni(Qe){return Qe.members&&Qe.members.get("__constructor")}function ji(Qe,Et){const Mt=Ni(Qe.symbol);if(Mt&&Mt.declarations)for(const qt of Mt.declarations){H.assert(qt.kind===176);const Xt=qt.body;Xt&&ra(Xt,108,Pe=>{Phe(Pe)&&Et(Pe)})}}function xn(Qe){return!!Ni(Qe.symbol)}function Jn(Qe,Et){if(xn(Qe))return;const Mt=Qe.symbol,qt=Et.createSearch(void 0,Mt,void 0);z(Mt,Et,qt)}function an(Qe,Et,Mt){if(X3(Qe)&&oa(Qe.parent)){Et(Qe);return}if(Qe.kind!==80)return;Qe.parent.kind===304&&Da(Qe,Mt.checker,Et);const qt=Pi(Qe);if(qt){Et(qt);return}const Xt=Tn(Qe,gt=>!vf(gt.parent)&&!Xr(gt.parent)&&!Zy(gt.parent)),Pe=Xt.parent;if(JU(Pe)&&Pe.type===Xt&&Mt.markSeenContainingTypeReference(Pe))if(Nx(Pe))et(Pe.initializer);else if(Co(Pe)&&Pe.body){const gt=Pe.body;gt.kind===241?y2(gt,ii=>{ii.expression&&et(ii.expression)}):et(gt)}else Yy(Pe)&&et(Pe.expression);function et(gt){Ai(gt)&&Et(gt)}}function Pi(Qe){return at(Qe)||Iu(Qe)?Pi(Qe.parent):c5(Qe)?ur(Qe.parent.parent,dg(mr,xh)):void 0}function Ai(Qe){switch(Qe.kind){case 217:return Ai(Qe.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Zu(Qe,Et,Mt,qt){if(Qe===Et)return!0;const Xt=Zo(Qe)+","+Zo(Et),Pe=Mt.get(Xt);if(Pe!==void 0)return Pe;Mt.set(Xt,!1);const et=!!Qe.declarations&&Qe.declarations.some(gt=>uP(gt).some(ii=>{const me=qt.getTypeAtLocation(ii);return!!me&&!!me.symbol&&Zu(me.symbol,Et,Mt,qt)}));return Mt.set(Xt,et),et}function aa(Qe){let Et=fj(Qe,!1);if(!Et)return;let Mt=256;switch(Et.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:Mt&=Rx(Et),Et=Et.parent;break;default:return}const qt=Et.getSourceFile(),Xt=qi(Be(qt,"super",Et),Pe=>{if(Pe.kind!==108)return;const et=fj(Pe,!1);return et&&No(et)===!!Mt&&et.parent.symbol===Et.symbol?l3(Pe):void 0});return[{definition:{type:0,symbol:Et.symbol},references:Xt}]}function yr(Qe){return Qe.kind===80&&Qe.parent.kind===169&&Qe.parent.name===Qe}function Ba(Qe,Et,Mt){let qt=tf(Qe,!1,!1),Xt=256;switch(qt.kind){case 174:case 173:if(zp(qt)){Xt&=Rx(qt),qt=qt.parent;break}case 172:case 171:case 176:case 177:case 178:Xt&=Rx(qt),qt=qt.parent;break;case 312:if(wc(qt)||yr(Qe))return;case 262:case 218:break;default:return}const Pe=ju(qt.kind===312?Et:[qt.getSourceFile()],gt=>(Mt.throwIfCancellationRequested(),Be(gt,"this",la(qt)?gt:qt).filter(ii=>{if(!rw(ii))return!1;const me=tf(ii,!1,!1);if(!Zg(me))return!1;switch(qt.kind){case 218:case 262:return qt.symbol===me.symbol;case 174:case 173:return zp(qt)&&qt.symbol===me.symbol;case 231:case 263:case 210:return me.parent&&Zg(me.parent)&&qt.symbol===me.parent.symbol&&No(me)===!!Xt;case 312:return me.kind===312&&!wc(me)&&!yr(ii)}}))).map(gt=>l3(gt));return[{definition:{type:3,node:G(Pe,gt=>io(gt.node.parent)?gt.node:void 0)||Qe},references:Pe}]}function bt(Qe,Et,Mt,qt){const Xt=sX(Qe,Mt),Pe=ju(Et,et=>(qt.throwIfCancellationRequested(),qi(Be(et,Qe.text),gt=>{if(t0(gt)&>.text===Qe.text)if(Xt){const ii=sX(gt,Mt);if(Xt!==Mt.getStringType()&&Xt===ii)return l3(gt,2)}else return T7(gt)&&!hk(gt,et)?void 0:l3(gt,2)})));return[{definition:{type:4,node:Qe},references:Pe}]}function jn(Qe,Et,Mt,qt,Xt,Pe){const et=[];return Ln(Qe,Et,Mt,qt,!(qt&&Xt),(gt,ii,me)=>{me&&Dn(Qe)!==Dn(me)&&(me=void 0),et.push(me||ii||gt)},()=>!Pe),et}function Ln(Qe,Et,Mt,qt,Xt,Pe,et){const gt=_K(Et);if(gt){const Ei=Mt.getShorthandAssignmentValueSymbol(Et.parent);if(Ei&&qt)return Pe(Ei,void 0,void 0,3);const $i=Mt.getContextualType(gt.parent),Qi=$i&&G(_ee(gt,Mt,$i,!0),we=>mt(we,4));if(Qi)return Qi;const on=ve(Et,Mt),le=on&&Pe(on,void 0,void 0,4);if(le)return le;const te=Ei&&Pe(Ei,void 0,void 0,3);if(te)return te}const ii=p(Et,Qe,Mt);if(ii){const Ei=Pe(ii,void 0,void 0,1);if(Ei)return Ei}const me=mt(Qe);if(me)return me;if(Qe.valueDeclaration&&Mf(Qe.valueDeclaration,Qe.valueDeclaration.parent)){const Ei=Mt.getSymbolsOfParameterPropertyDeclaration(Po(Qe.valueDeclaration,io),Qe.name);return H.assert(Ei.length===2&&!!(Ei[0].flags&1)&&!!(Ei[1].flags&4)),mt(Qe.flags&1?Ei[1]:Ei[0])}const ni=Sl(Qe,281);if(!qt||ni&&!ni.propertyName){const Ei=ni&&Mt.getExportSpecifierLocalTargetSymbol(ni);if(Ei){const $i=Pe(Ei,void 0,void 0,1);if($i)return $i}}if(!qt){let Ei;return Xt?Ei=GH(Et.parent)?CX(Mt,Et.parent):void 0:Ei=Ot(Qe,Mt),Ei&&mt(Ei,4)}if(H.assert(qt),Xt){const Ei=Ot(Qe,Mt);return Ei&&mt(Ei,4)}function mt(Ei,$i){return G(Mt.getRootSymbols(Ei),Qi=>Pe(Ei,Qi,void 0,$i)||(Qi.parent&&Qi.parent.flags&96&&et(Qi)?Si(Qi.parent,Qi.name,Mt,on=>Pe(Ei,Qi,on,$i)):void 0))}function Ot(Ei,$i){const Qi=Sl(Ei,208);if(Qi&&GH(Qi))return CX($i,Qi)}}function Si(Qe,Et,Mt,qt){const Xt=new Map;return Pe(Qe);function Pe(et){if(!(!(et.flags&96)||!Ip(Xt,Zo(et))))return G(et.declarations,gt=>G(uP(gt),ii=>{const me=Mt.getTypeAtLocation(ii),ni=me&&me.symbol&&Mt.getPropertyOfType(me,Et);return me&&ni&&(G(Mt.getRootSymbols(ni),qt)||Pe(me.symbol))}))}}function Dn(Qe){return Qe.valueDeclaration?!!(Eh(Qe.valueDeclaration)&256):!1}function Cn(Qe,Et,Mt,qt){const{checker:Xt}=qt;return Ln(Et,Mt,Xt,!1,qt.options.use!==2||!!qt.options.providePrefixAndSuffixTextForRename,(Pe,et,gt,ii)=>(gt&&Dn(Et)!==Dn(gt)&&(gt=void 0),Qe.includes(gt||et||Pe)?{symbol:et&&!(Gl(Pe)&6)?et:Pe,kind:ii}:void 0),Pe=>!(Qe.parents&&!Qe.parents.some(et=>Zu(Pe.parent,et,qt.inheritsFromCache,Xt))))}function tu(Qe,Et){let Mt=Pk(Qe);const{declarations:qt}=Et;if(qt){let Xt;do{Xt=Mt;for(const Pe of qt){const et=TH(Pe);et&Mt&&(Mt|=et)}}while(Mt!==Xt)}return Mt}t.getIntersectingMeaningFromDeclarations=tu;function oa(Qe){return Qe.flags&33554432?!(xh(Qe)||jp(Qe)):G8(Qe)?Nx(Qe):$0(Qe)?!!Qe.body:mr(Qe)||QO(Qe)}function Da(Qe,Et,Mt){const qt=Et.getSymbolAtLocation(Qe),Xt=Et.getShorthandAssignmentValueSymbol(qt.valueDeclaration);if(Xt)for(const Pe of Xt.getDeclarations())TH(Pe)&1&&Mt(Pe)}t.getReferenceEntriesForShorthandPropertyAssignment=Da;function ra(Qe,Et,Mt){ao(Qe,qt=>{qt.kind===Et&&Mt(qt),ra(qt,Et,Mt)})}function Ta(Qe){return sle(iX(Qe).parent)}function Yo(Qe,Et,Mt){const qt=uw(Qe)?Qe.parent:void 0,Xt=qt&&Mt.getTypeAtLocation(qt.expression),Pe=qi(Xt&&(Xt.isUnionOrIntersection()?Xt.types:Xt.symbol===Et.parent?void 0:[Xt]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Pe.length===0?void 0:Pe}function bo(Qe){return Qe.use===2&&Qe.providePrefixAndSuffixTextForRename}})(f9||(f9={}))}}),Z0={};h(Z0,{Core:()=>f9,DefinitionKind:()=>VTe,EntryKind:()=>HTe,ExportKind:()=>zTe,FindReferencesUse:()=>KTe,ImportExport:()=>ITe,createImportTracker:()=>NTe,findModuleReferences:()=>V0t,findReferenceOrRenameEntries:()=>wUt,findReferencedSymbols:()=>AUt,getContextNode:()=>Vk,getExportInfo:()=>PTe,getImplementationsAtPosition:()=>BUt,getImportOrExportSymbol:()=>W0t,getReferenceEntriesForNode:()=>$0t,getTextSpanOfEntry:()=>OTe,isContextWithStartAndEndNode:()=>G0t,isDeclarationOfSymbol:()=>Y0t,isWriteAccessForReference:()=>jTe,nodeEntry:()=>l3,toContextSpan:()=>RTe,toHighlightSpan:()=>IUt,toReferenceEntry:()=>Z0t,toRenameLocation:()=>LUt});var Q0t=o({"src/services/_namespaces/ts.FindAllReferences.ts"(){kUt(),OUt()}});function X0t(t,u,s,d,f){var p;const E=tlt(u,s,t),v=E&&[ZUt(E.reference.fileName,E.fileName,E.unverified)]||_t;if(E!=null&&E.file)return v;const b=af(u,s);if(b===u)return;const{parent:B}=b,k=t.getTypeChecker();if(b.kind===164||at(b)&&gY(B)&&B.tagName===b)return VUt(k,b)||_t;if(PH(b)){const K=nX(b.parent,b.text);return K?[WTe(k,K,"label",b.text,void 0)]:void 0}if(b.kind===107){const K=Tn(b.parent,Y=>zl(Y)?"quit":$0(Y));return K?[Ree(k,K)]:void 0}if(b.kind===135){const K=Tn(b,oe=>$0(oe));return K&&Oe(K.modifiers,oe=>oe.kind===134)?[Ree(k,K)]:void 0}if(b.kind===127){const K=Tn(b,oe=>$0(oe));return K&&K.asteriskToken?[Ree(k,K)]:void 0}if(N7(b)&&zl(b.parent)){const K=b.parent.parent,{symbol:Y,failedAliasResolution:oe}=Ape(K,k,f),se=ti(K.members,zl),ge=Y?k.symbolToString(Y,K):"",ae=b.getSourceFile();return Vt(se,Ce=>{let{pos:ne}=iE(Ce);return ne=gs(ae.text,ne),WTe(k,Ce,"constructor","static {}",ge,!1,oe,{start:ne,length:6})})}let{symbol:T,failedAliasResolution:M}=Ape(b,k,f),z=b;if(d&&M){const K=L([b,...(T==null?void 0:T.declarations)||_t],oe=>Tn(oe,Mbe)),Y=K&&Z8(K);Y&&({symbol:T,failedAliasResolution:M}=Ape(Y,k,f),z=Y)}if(!T&&vX(z)){const K=(p=t.getResolvedModule(u,z.text,xg(u,z)))==null?void 0:p.resolvedModule;if(K)return[{name:z.text,fileName:K.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:d1(0,0),failedAliasResolution:M,isAmbient:e1(K.resolvedFileName),unverified:z!==b}]}if(!T)return Hi(v,$Ut(b,k));if(d&&ye(T.declarations,K=>K.getSourceFile().fileName===u.fileName))return;const j=QUt(k,b);if(j&&!(zh(b.parent)&&XUt(j))){const K=Ree(k,j,M);if(k.getRootSymbols(T).some(Y=>jUt(Y,j)))return[K];{const Y=QM(k,T,b,M,j)||_t;return b.kind===108?[K,...Y]:[...Y,K]}}if(b.parent.kind===304){const K=k.getShorthandAssignmentValueSymbol(T.valueDeclaration),Y=K!=null&&K.declarations?K.declarations.map(oe=>wK(oe,k,K,b,!1,M)):_t;return Hi(Y,elt(k,b))}if(Sc(b)&&js(B)&&Rp(B.parent)&&b===(B.propertyName||B.name)){const K=WH(b),Y=k.getTypeAtLocation(B.parent);return K===void 0?_t:ju(Y.isUnion()?Y.types:[Y],oe=>{const se=oe.getProperty(K);return se&&QM(k,se,b)})}const J=elt(k,b);return Hi(v,J.length?J:QM(k,T,b,M))}function jUt(t,u){var s;return t===u.symbol||t===u.symbol.parent||ld(u.parent)||!D2(u.parent)&&t===((s=ur(u.parent,Zg))==null?void 0:s.symbol)}function elt(t,u){const s=_K(u);if(s){const d=s&&t.getContextualType(s.parent);if(d)return ju(_ee(s,t,d,!1),f=>QM(t,f,u))}return _t}function VUt(t,u){const s=Tn(u,Zd);if(!(s&&s.name))return;const d=Tn(s,mr);if(!d)return;const f=Qg(d);if(!f)return;const p=l0(f.expression),E=Xd(p)?p.symbol:t.getSymbolAtLocation(p);if(!E)return;const v=Qr(V8(s.name)),b=Kc(s)?t.getPropertyOfType(t.getTypeOfSymbol(E),v):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(E),v);if(b)return QM(t,b,u)}function tlt(t,u,s){var d,f;const p=XM(t.referencedFiles,u);if(p){const b=s.getSourceFileFromReference(t,p);return b&&{reference:p,fileName:b.fileName,file:b,unverified:!1}}const E=XM(t.typeReferenceDirectives,u);if(E){const b=(d=s.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||t.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective,B=b&&s.getSourceFile(b.resolvedFileName);return B&&{reference:E,fileName:B.fileName,file:B,unverified:!1}}const v=XM(t.libReferenceDirectives,u);if(v){const b=s.getLibFileFromReference(v);return b&&{reference:v,fileName:b.fileName,file:b,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){const b=LM(t,u);let B;if(vX(b)&&Id(b.text)&&(B=s.getResolvedModule(t,b.text,xg(t,b)))){const k=(f=B.resolvedModule)==null?void 0:f.resolvedFileName,T=k||kx(lr(t.fileName),b.text);return{file:s.getSourceFile(T),fileName:T,reference:{pos:b.getStart(),end:b.getEnd(),fileName:b.text},unverified:!k}}}}function HUt(t,u){const s=u.symbol.name;if(!JTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.target.symbol}function ilt(t,u){if(!u.aliasSymbol)return!1;const s=u.aliasSymbol.name;if(!JTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.aliasSymbol}function KUt(t,u,s,d){var f,p;if(Gu(u)&4&&HUt(t,u))return BK(t.getTypeArguments(u)[0],t,s,d);if(ilt(t,u)&&u.aliasTypeArguments)return BK(u.aliasTypeArguments[0],t,s,d);if(Gu(u)&32&&u.target&&ilt(t,u.target)){const E=(p=(f=u.aliasSymbol)==null?void 0:f.declarations)==null?void 0:p[0];if(E&&jp(E)&&X4(E.type)&&E.type.typeArguments)return BK(t.getTypeAtLocation(E.type.typeArguments[0]),t,s,d)}return[]}function WUt(t,u,s){const d=af(u,s);if(d===u)return;if(W8(d.parent)&&d.parent.name===d)return BK(t.getTypeAtLocation(d.parent),t,d.parent,!1);const{symbol:f,failedAliasResolution:p}=Ape(d,t,!1);if(!f)return;const E=t.getTypeOfSymbolAtLocation(f,d),v=GUt(f,E,t),b=v&&BK(v,t,d,p),[B,k]=b&&b.length!==0?[v,b]:[E,BK(E,t,d,p)];return k.length?[...KUt(t,B,d,p),...k]:!(f.flags&111551)&&f.flags&788968?QM(t,X1(f,t),d,p):void 0}function BK(t,u,s,d){return ju(t.isUnion()&&!(t.flags&32)?t.types:[t],f=>f.symbol&&QM(u,f.symbol,s,d))}function GUt(t,u,s){if(u.symbol===t||t.valueDeclaration&&u.symbol&&ua(t.valueDeclaration)&&t.valueDeclaration.initializer===u.symbol.valueDeclaration){const d=u.getCallSignatures();if(d.length===1)return s.getReturnTypeOfSignature(Pn(d))}}function JUt(t,u,s){const d=X0t(t,u,s);if(!d||d.length===0)return;const f=XM(u.referencedFiles,s)||XM(u.typeReferenceDirectives,s)||XM(u.libReferenceDirectives,s);if(f)return{definitions:d,textSpan:qx(f)};const p=af(u,s),E=d1(p.getStart(),p.getWidth());return{definitions:d,textSpan:E}}function $Ut(t,u){return qi(u.getIndexInfosAtLocation(t),s=>s.declaration&&Ree(u,s.declaration))}function Ape(t,u,s){const d=u.getSymbolAtLocation(t);let f=!1;if(d!=null&&d.declarations&&d.flags&2097152&&!s&&UUt(t,d.declarations[0])){const p=u.getAliasedSymbol(d);if(p.declarations)return{symbol:p};f=!0}return{symbol:d,failedAliasResolution:f}}function UUt(t,u){return t.kind!==80?!1:t.parent===u?!0:u.kind!==274}function qUt(t){if(!eP(t))return!1;const u=Tn(t,s=>ld(s)?!0:eP(s)?!1:"quit");return!!u&&Xl(u)===5}function QM(t,u,s,d,f){const p=ti(u.declarations,T=>T!==f),E=ti(p,T=>!qUt(T)),v=Oe(E)?E:p;return b()||B()||Vt(v,T=>wK(T,t,u,s,!1,d));function b(){if(u.flags&32&&!(u.flags&19)&&(wM(s)||s.kind===137)){const T=Le(p,mr)||H.fail("Expected declaration to have at least one class-like declaration");return k(T.members,!0)}}function B(){return Mhe(s)||Hhe(s)?k(p,!1):void 0}function k(T,M){if(!T)return;const z=T.filter(M?hc:Co),j=z.filter(J=>!!J.body);return z.length?j.length!==0?j.map(J=>wK(J,t,u,s)):[wK(Cr(z),t,u,s,!1,d)]:void 0}}function wK(t,u,s,d,f,p){const E=u.symbolToString(s),v=x5.getSymbolKind(u,s,d),b=s.parent?u.symbolToString(s.parent,d):"";return WTe(u,t,v,E,b,f,p)}function WTe(t,u,s,d,f,p,E,v){const b=u.getSourceFile();if(!v){const B=Za(u)||u;v=of(B,b)}return{fileName:b.fileName,textSpan:v,kind:s,name:d,containerKind:void 0,containerName:f,...Z0.toContextSpan(v,b,Z0.getContextNode(u)),isLocal:!GTe(t,u),isAmbient:!!(u.flags&33554432),unverified:p,failedAliasResolution:E}}function GTe(t,u){if(t.isDeclarationVisible(u))return!0;if(!u.parent)return!1;if(Nx(u.parent)&&u.parent.initializer===u)return GTe(t,u.parent);switch(u.kind){case 172:case 177:case 178:case 174:if(Rf(u,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return GTe(t,u.parent);default:return!1}}function Ree(t,u,s){return wK(u,t,u.symbol,u,!1,s)}function XM(t,u){return Le(t,s=>IO(s,u))}function ZUt(t,u,s){return{fileName:u,textSpan:Vc(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function YUt(t){const u=Tn(t,d=>!uw(d)),s=u==null?void 0:u.parent;return s&&D2(s)&&pq(s)===u?s:void 0}function QUt(t,u){const s=YUt(u),d=s&&t.getResolvedSignature(s);return ur(d&&d.declaration,f=>Co(f)&&!u3(f))}function XUt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var JTe,eqt=o({"src/services/goToDefinition.ts"(){rr(),JTe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),Cw={};h(Cw,{createDefinitionInfo:()=>wK,findReferenceInPosition:()=>XM,getDefinitionAndBoundSpan:()=>JUt,getDefinitionAtPosition:()=>X0t,getReferenceAtPosition:()=>tlt,getTypeDefinitionAtPosition:()=>WUt});var tqt=o({"src/services/_namespaces/ts.GoToDefinition.ts"(){eqt()}});function iqt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function nqt(t){return t.includeInlayParameterNameHints==="literals"}function nlt(t){return t.interactiveInlayHints===!0}function uqt(t){const{file:u,program:s,span:d,cancellationToken:f,preferences:p}=t,E=u.text,v=s.getCompilerOptions(),b=Hm(u,p),B=s.getTypeChecker(),k=[];return T(u),k;function T(Ae){if(!(!Ae||Ae.getFullWidth()===0)){switch(Ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:f.throwIfCancellationRequested()}if(wU(d,Ae.pos,Ae.getFullWidth())&&!(Xr(Ae)&&!c5(Ae)))return p.includeInlayVariableTypeHints&&ua(Ae)||p.includeInlayPropertyDeclarationTypeHints&&ko(Ae)?oe(Ae):p.includeInlayEnumMemberValueHints&&J2(Ae)?K(Ae):iqt(p)&&(Mo(Ae)||j2(Ae))?se(Ae):(p.includeInlayFunctionParameterTypeHints&&$0(Ae)&&fZ(Ae)&&Se(Ae),p.includeInlayFunctionLikeReturnTypeHints&&M(Ae)&&ne(Ae)),ao(Ae,T)}}function M(Ae){return q0(Ae)||A0(Ae)||ed(Ae)||dc(Ae)||zm(Ae)}function z(Ae,De,Ke,Je){let ft=`${Je?"...":""}${Ae}`,Ye;nlt(p)?(Ye=[Ge(ft,De),{text:":"}],ft=""):ft+=":",k.push({text:ft,position:Ke,kind:"Parameter",whitespaceAfter:!0,displayParts:Ye})}function j(Ae,De){k.push({text:typeof Ae=="string"?`: ${Ae}`:"",displayParts:typeof Ae=="string"?void 0:[{text:": "},...Ae],position:De,kind:"Type",whitespaceBefore:!0})}function J(Ae,De){k.push({text:`= ${Ae}`,position:De,kind:"Enum",whitespaceBefore:!0})}function K(Ae){if(Ae.initializer)return;const De=B.getConstantValue(Ae);De!==void 0&&J(De.toString(),Ae.end)}function Y(Ae){return Ae.symbol&&Ae.symbol.flags&1536}function oe(Ae){if(!Ae.initializer||So(Ae.name)||ua(Ae)&&!Be(Ae)||f1(Ae))return;const Ke=B.getTypeAtLocation(Ae);if(Y(Ke))return;const Je=fe(Ke);if(Je){const ft=typeof Je=="string"?Je:Je.map(Ve=>Ve.text).join("");if(p.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&QA(Ae.name.getText(),ft))return;j(Je,Ae.name.end)}}function se(Ae){const De=Ae.arguments;if(!De||!De.length)return;const Ke=[],Je=B.getResolvedSignatureForSignatureHelp(Ae,Ke);if(!Je||!Ke.length)return;let ft=0;for(const Ye of De){const Ve=l0(Ye);if(nqt(p)&&!Ce(Ve)){ft++;continue}let We=0;if(uE(Ve)){const Yt=B.getTypeAtLocation(Ve.expression);if(B.isTupleType(Yt)){const{elementFlags:Ie,fixedLength:st}=Yt.target;if(st===0)continue;const St=Ue(Ie,ei=>!(ei&1));(St<0?st:St)>0&&(We=St<0?st:St)}}const Gt=B.getParameterIdentifierInfoAtPosition(Je,ft);if(ft=ft+(We||1),Gt){const{parameter:Yt,parameterName:Ie,isRestParameter:st}=Gt;if(!(p.includeInlayParameterNameHintsWhenArgumentMatchesName||!ge(Ve,Ie))&&!st)continue;const It=Qr(Ie);if(ae(Ve,It))continue;z(It,Yt,Ye.getStart(),st)}}}function ge(Ae,De){return at(Ae)?Ae.text===De:Iu(Ae)?Ae.name.text===De:!1}function ae(Ae,De){if(!Lm(De,v.target,Yj(u.scriptKind)))return!1;const Ke=W_(E,Ae.pos);if(!(Ke!=null&&Ke.length))return!1;const Je=ult(De);return Oe(Ke,ft=>Je.test(E.substring(ft.pos,ft.end)))}function Ce(Ae){switch(Ae.kind){case 224:{const De=Ae.operand;return E2(De)||at(De)&&LP(De.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const De=Ae.escapedText;return xe(De)||LP(De)}}return E2(Ae)}function ne(Ae){if(q0(Ae)&&!a0(Ae,21,u)||U4(Ae)||!Ae.body)return;const Ke=B.getSignatureFromDeclaration(Ae);if(!Ke)return;const Je=B.getReturnTypeOfSignature(Ke);if(Y(Je))return;const ft=fe(Je);ft&&j(ft,ve(Ae))}function ve(Ae){const De=a0(Ae,22,u);return De?De.end:Ae.parameters.end}function Se(Ae){const De=B.getSignatureFromDeclaration(Ae);if(De)for(let Ke=0;Ke{const ft=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(ft,"should always get typenode"),Ke.writeNode(4,ft,u,Je)})}function fe(Ae){if(!nlt(p))return pe(Ae);const Ke=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(Ke,"should always get typenode");const Je=[];return ft(Ke),Je;function ft(We){if(!We)return;const Gt=Uo(We.kind);if(Gt){Je.push({text:Gt});return}if(E2(We)){Je.push({text:Ve(We)});return}switch(We.kind){case 80:const Yt=We,Ie=fu(Yt),st=Yt.symbol&&Yt.symbol.declarations&&Yt.symbol.declarations.length&&Za(Yt.symbol.declarations[0]);st?Je.push(Ge(Ie,st)):Je.push({text:Ie});break;case 166:const St=We;ft(St.left),Je.push({text:"."}),ft(St.right);break;case 182:const It=We;It.assertsModifier&&Je.push({text:"asserts "}),ft(It.parameterName),It.type&&(Je.push({text:" is "}),ft(It.type));break;case 183:const ei=We;ft(ei.typeName),ei.typeArguments&&(Je.push({text:"<"}),Ye(ei.typeArguments,", "),Je.push({text:">"}));break;case 168:const ht=We;ht.modifiers&&Ye(ht.modifiers," "),ft(ht.name),ht.constraint&&(Je.push({text:" extends "}),ft(ht.constraint)),ht.default&&(Je.push({text:" = "}),ft(ht.default));break;case 169:const Ut=We;Ut.modifiers&&Ye(Ut.modifiers," "),Ut.dotDotDotToken&&Je.push({text:"..."}),ft(Ut.name),Ut.questionToken&&Je.push({text:"?"}),Ut.type&&(Je.push({text:": "}),ft(Ut.type));break;case 185:const Ni=We;Je.push({text:"new "}),Ni.typeParameters&&(Je.push({text:"<"}),Ye(Ni.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(Ni.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),ft(Ni.type);break;case 186:const ji=We;Je.push({text:"typeof "}),ft(ji.exprName),ji.typeArguments&&(Je.push({text:"<"}),Ye(ji.typeArguments,", "),Je.push({text:">"}));break;case 187:const xn=We;Je.push({text:"{"}),xn.members.length&&(Je.push({text:" "}),Ye(xn.members,"; "),Je.push({text:" "})),Je.push({text:"}"});break;case 188:ft(We.elementType),Je.push({text:"[]"});break;case 189:Je.push({text:"["}),Ye(We.elements,", "),Je.push({text:"]"});break;case 202:const Jn=We;Jn.dotDotDotToken&&Je.push({text:"..."}),ft(Jn.name),Jn.questionToken&&Je.push({text:"?"}),Je.push({text:": "}),ft(Jn.type);break;case 190:ft(We.type),Je.push({text:"?"});break;case 191:Je.push({text:"..."}),ft(We.type);break;case 192:Ye(We.types," | ");break;case 193:Ye(We.types," & ");break;case 194:const an=We;ft(an.checkType),Je.push({text:" extends "}),ft(an.extendsType),Je.push({text:" ? "}),ft(an.trueType),Je.push({text:" : "}),ft(an.falseType);break;case 195:Je.push({text:"infer "}),ft(We.typeParameter);break;case 196:Je.push({text:"("}),ft(We.type),Je.push({text:")"});break;case 198:const Pi=We;Je.push({text:`${Uo(Pi.operator)} `}),ft(Pi.type);break;case 199:const Ai=We;ft(Ai.objectType),Je.push({text:"["}),ft(Ai.indexType),Je.push({text:"]"});break;case 200:const Zu=We;Je.push({text:"{ "}),Zu.readonlyToken&&(Zu.readonlyToken.kind===40?Je.push({text:"+"}):Zu.readonlyToken.kind===41&&Je.push({text:"-"}),Je.push({text:"readonly "})),Je.push({text:"["}),ft(Zu.typeParameter),Zu.nameType&&(Je.push({text:" as "}),ft(Zu.nameType)),Je.push({text:"]"}),Zu.questionToken&&(Zu.questionToken.kind===40?Je.push({text:"+"}):Zu.questionToken.kind===41&&Je.push({text:"-"}),Je.push({text:"?"})),Je.push({text:": "}),Zu.type&&ft(Zu.type),Je.push({text:"; }"});break;case 201:ft(We.literal);break;case 184:const aa=We;aa.typeParameters&&(Je.push({text:"<"}),Ye(aa.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(aa.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),ft(aa.type);break;case 205:const yr=We;yr.isTypeOf&&Je.push({text:"typeof "}),Je.push({text:"import("}),ft(yr.argument),yr.assertions&&(Je.push({text:", { assert: "}),Ye(yr.assertions.assertClause.elements,", "),Je.push({text:" }"})),Je.push({text:")"}),yr.qualifier&&(Je.push({text:"."}),ft(yr.qualifier)),yr.typeArguments&&(Je.push({text:"<"}),Ye(yr.typeArguments,", "),Je.push({text:">"}));break;case 171:const Ba=We;Ba.modifiers&&Ye(Ba.modifiers," "),ft(Ba.name),Ba.questionToken&&Je.push({text:"?"}),Ba.type&&(Je.push({text:": "}),ft(Ba.type));break;default:H.failBadSyntaxKind(We)}}function Ye(We,Gt){We.forEach((Yt,Ie)=>{Ie>0&&Je.push({text:Gt}),ft(Yt)})}function Ve(We){return us(We)?b===0?`'${Av(We.text,39)}'`:`"${Av(We.text,34)}"`:We.text}}function xe(Ae){return Ae==="undefined"}function Be(Ae){if((w2(Ae)||ua(Ae)&&K8(Ae))&&Ae.initializer){const De=l0(Ae.initializer);return!(Ce(De)||j2(De)||ys(De)||Yy(De))}return!0}function Ge(Ae,De){const Ke=De.getSourceFile();return{text:Ae,span:of(De,Ke),file:Ke.fileName}}}var ult,rqt=o({"src/services/inlayHints.ts"(){rr(),ult=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),Spe={};h(Spe,{provideInlayHints:()=>uqt});var aqt=o({"src/services/_namespaces/ts.InlayHints.ts"(){rqt()}});function oqt(t,u){const s=[];return lfe(t,d=>{for(const f of lqt(d)){const p=Vp(f)&&f.tags&&Le(f.tags,v=>v.kind===334&&(v.tagName.escapedText==="inheritDoc"||v.tagName.escapedText==="inheritdoc"));if(f.comment===void 0&&!p||Vp(f)&&d.kind!==353&&d.kind!==345&&f.tags&&f.tags.some(v=>v.kind===353||v.kind===345)&&!f.tags.some(v=>v.kind===348||v.kind===349))continue;let E=f.comment?bw(f.comment,u):[];p&&p.comment&&(E=E.concat(bw(p.comment,u))),kt(s,E,sqt)||s.push(E)}}),Va(_e(s,[lw()]))}function sqt(t,u){return Zt(t,u,(s,d)=>s.kind===d.kind&&s.text===d.text)}function lqt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];case 330:if(NB(t.parent))return[t.parent.parent];default:return I0e(t)}}function cqt(t,u){const s=[];return lfe(t,d=>{const f=Cv(d);if(!(f.some(p=>p.kind===353||p.kind===345)&&!f.some(p=>p.kind===348||p.kind===349)))for(const p of f)s.push({name:p.tagName.text,text:rlt(p,u)}),WO(p)&&p.isNameFirst&&p.typeExpression&&K7(p.typeExpression.type)&&L(p.typeExpression.type.jsDocPropertyTags,E=>{s.push({name:E.tagName.text,text:rlt(E,u)})})}),s}function bw(t,u){return typeof t=="string"?[Km(t)]:ju(t,s=>s.kind===328?[Km(s.text)]:DSe(s,u))}function rlt(t,u){const{comment:s,kind:d}=t,f=dqt(d);switch(d){case 356:const v=t.typeExpression;return v?p(v):s===void 0?void 0:bw(s,u);case 336:return p(t.class);case 335:return p(t.class);case 352:const b=t,B=[];if(b.constraint&&B.push(Km(b.constraint.getText())),S(b.typeParameters)){S(B)&&B.push($l());const T=b.typeParameters[b.typeParameters.length-1];L(b.typeParameters,M=>{B.push(f(M.getText())),T!==M&&B.push(ih(28),$l())})}return s&&B.push($l(),...bw(s,u)),B;case 351:case 357:return p(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=t;return k?p(k):s===void 0?void 0:bw(s,u);default:return s===void 0?void 0:bw(s,u)}function p(v){return E(v.getText())}function E(v){return s?v.match(/^https?$/)?[Km(v),...bw(s,u)]:[f(v),$l(),...bw(s,u)]:[Km(v)]}}function dqt(t){switch(t){case 348:return mSe;case 355:return pSe;case 352:return ESe;case 353:case 345:return gSe;default:return Km}}function hqt(){return olt||(olt=Vt(UTe,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function fqt(){return slt||(slt=Vt(UTe,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function alt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Km(t)],documentation:_t,tags:void 0,codeActions:void 0}}function mqt(t){if(!at(t.name))return _t;const u=t.name.text,s=t.parent,d=s.parent;return Co(d)?qi(d.parameters,f=>{if(!at(f.name))return;const p=f.name.text;if(!(s.tags.some(E=>E!==t&&Eg(E)&&at(E.name)&&E.name.escapedText===p)||u!==void 0&&!Pa(p,u)))return{name:p,kind:"parameter",kindModifiers:"",sortText:h9.SortText.LocationPriority}}):[]}function pqt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Km(t)],documentation:_t,tags:void 0,codeActions:void 0}}function gqt(t,u,s,d){const f=Ca(u,s),p=Tn(f,Vp);if(p&&(p.comment!==void 0||S(p.tags)))return;const E=f.getStart(u);if(!p&&E0;if(J&&!oe){const se=K+t+z+" * ",ge=E===s?t+z:"";return{newText:se+t+J+z+Y+ge,caretOffset:se.length}}return{newText:K+Y,caretOffset:3}}function Eqt(t,u){const{text:s}=t,d=tp(u,t);let f=d;for(;f<=u&&qg(s.charCodeAt(f));f++);return s.slice(d,f)}function _qt(t,u,s,d){return t.map(({name:f,dotDotDotToken:p},E)=>{const v=f.kind===80?f.text:"param"+E;return`${s} * @param ${u?p?"{...any} ":"{any} ":""}${v}${d}`}).join("")}function Dqt(t,u){return`${t} * @returns${u}`}function xqt(t,u){return ybe(t,s=>$Te(s,u))}function $Te(t,u){switch(t.kind){case 262:case 218:case 174:case 176:case 173:case 219:const s=t;return{commentOwner:t,parameters:s.parameters,hasReturn:Oee(s,u)};case 303:return $Te(t.initializer,u);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const f=t;return f.type&&u3(f.type)?{commentOwner:t,parameters:f.type.parameters,hasReturn:Oee(f.type,u)}:{commentOwner:t}}case 243:{const p=t.declarationList.declarations,E=p.length===1&&p[0].initializer?vqt(p[0].initializer):void 0;return E?{commentOwner:t,parameters:E.parameters,hasReturn:Oee(E,u)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return $Te(t.expression,u);case 226:{const f=t;return Xl(f)===0?"quit":Co(f.right)?{commentOwner:t,parameters:f.right.parameters,hasReturn:Oee(f.right,u)}:{commentOwner:t}}case 172:const d=t.initializer;if(d&&(A0(d)||q0(d)))return{commentOwner:t,parameters:d.parameters,hasReturn:Oee(d,u)}}}function Oee(t,u){return!!(u!=null&&u.generateReturnInDocTemplate)&&(u3(t)||q0(t)&&Wt(t.body)||$0(t)&&t.body&&po(t.body)&&!!y2(t.body,s=>s))}function vqt(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return Le(t.members,hc)}}var UTe,olt,slt,llt,Cqt=o({"src/services/jsDoc.ts"(){rr(),UTe=["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","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"],llt=alt}}),Yv={};h(Yv,{getDocCommentTemplateAtPosition:()=>gqt,getJSDocParameterNameCompletionDetails:()=>pqt,getJSDocParameterNameCompletions:()=>mqt,getJSDocTagCompletionDetails:()=>alt,getJSDocTagCompletions:()=>fqt,getJSDocTagNameCompletionDetails:()=>llt,getJSDocTagNameCompletions:()=>hqt,getJsDocCommentsFromDeclarations:()=>oqt,getJsDocTagsFromDeclarations:()=>cqt});var bqt=o({"src/services/_namespaces/ts.JsDoc.ts"(){Cqt()}});function yqt(t,u,s,d,f,p){const E=iu.ChangeTracker.fromContext({host:s,formatContext:u,preferences:f}),v=p==="SortAndCombine"||p==="All",b=v,B=p==="RemoveUnused"||p==="All",k=Bpe(t,t.statements.filter(Sd)),T=Vqt(f,v?()=>hlt(k,f)===2:void 0),M=j=>(B&&(j=Fqt(j,t,d)),b&&(j=clt(j,T,t)),v&&(j=oc(j,(J,K)=>XTe(J,K,T))),j);k.forEach(j=>z(j,M)),p!=="RemoveUnused"&&Hqt(t).forEach(j=>z(j,J=>qTe(J,T)));for(const j of t.statements.filter(N1)){if(!j.body)continue;if(Bpe(t,j.body.statements.filter(Sd)).forEach(K=>z(K,M)),p!=="RemoveUnused"){const K=j.body.statements.filter(Gc);z(K,Y=>qTe(Y,T))}}return E.getChanges();function z(j,J){if(S(j)===0)return;Zn(j[0],1024);const K=b?vN(j,se=>jee(se.moduleSpecifier)):[j],Y=v?oc(K,(se,ge)=>YTe(se[0].moduleSpecifier,ge[0].moduleSpecifier,T)):K,oe=ju(Y,se=>jee(se[0].moduleSpecifier)||se[0].moduleSpecifier===void 0?J(se):se);if(oe.length===0)E.deleteNodes(t,j,{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include},!0);else{const se={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include,suffix:E5(s,u.options)};E.replaceNodeWithNodes(t,j[0],oe,se);const ge=E.nodeHasTrailingComment(t,j[0],se);E.deleteNodes(t,j.slice(1),{trailingTriviaOption:iu.TrailingTriviaOption.Include},ge)}}}function Bpe(t,u){const s=YD(t.languageVersion,!1,t.languageVariant),d=[];let f=0;for(const p of u)d[f]&&kqt(t,p,s)&&f++,d[f]||(d[f]=[]),d[f].push(p);return d}function kqt(t,u,s){const d=u.getFullStart(),f=u.getStart();s.setText(t.text,d,f-d);let p=0;for(;s.getTokenStart()=2))return!0;return!1}function Fqt(t,u,s){const d=s.getTypeChecker(),f=s.getCompilerOptions(),p=d.getJsxNamespace(u),E=d.getJsxFragmentFactory(u),v=!!(u.transformFlags&2),b=[];for(const k of t){const{importClause:T,moduleSpecifier:M}=k;if(!T){b.push(k);continue}let{name:z,namedBindings:j}=T;if(z&&!B(z)&&(z=void 0),j)if(Jx(j))B(j.name)||(j=void 0);else{const J=j.elements.filter(K=>B(K.name));J.lengthus(d)&&d.text===s)}function jee(t){return t!==void 0&&t0(t)?t.text:void 0}function Sqt(t,u,s){const d=wpe(u);return clt(t,d,s)}function clt(t,u,s){if(t.length===0)return t;const{importWithoutClause:d,typeOnlyImports:f,regularImports:p}=Bqt(t),E=[];d&&E.push(d);for(const v of[p,f]){const b=v===f,{defaultImports:B,namespaceImports:k,namedImports:T}=v;if(!b&&B.length===1&&k.length===1&&T.length===0){const ge=B[0];E.push(TK(ge,ge.importClause.name,k[0].importClause.namedBindings));continue}const M=oc(k,(ge,ae)=>u(ge.importClause.namedBindings.name.text,ae.importClause.namedBindings.name.text));for(const ge of M)E.push(TK(ge,void 0,ge.importClause.namedBindings));const z=Ki(B),j=Ki(T),J=z??j;if(!J)continue;let K;const Y=[];if(B.length===1)K=B[0].importClause.name;else for(const ge of B)Y.push(q.createImportSpecifier(!1,q.createIdentifier("default"),ge.importClause.name));Y.push(...Iqt(T));const oe=q.createNodeArray(dlt(Y,u),j==null?void 0:j.importClause.namedBindings.elements.hasTrailingComma),se=oe.length===0?K?void 0:q.createNamedImports(_t):j?q.updateNamedImports(j.importClause.namedBindings,oe):q.createNamedImports(oe);s&&se&&(j!=null&&j.importClause.namedBindings)&&!hk(j.importClause.namedBindings,s)&&Zn(se,2),b&&K&&se?(E.push(TK(J,K,void 0)),E.push(TK(j??J,void 0,se))):E.push(TK(J,K,se))}return E}function Bqt(t){let u;const s={defaultImports:[],namespaceImports:[],namedImports:[]},d={defaultImports:[],namespaceImports:[],namedImports:[]};for(const f of t){if(f.importClause===void 0){u=u||f;continue}const p=f.importClause.isTypeOnly?s:d,{name:E,namedBindings:v}=f.importClause;E&&p.defaultImports.push(f),v&&(Jx(v)?p.namespaceImports.push(f):p.namedImports.push(f))}return{importWithoutClause:u,typeOnlyImports:s,regularImports:d}}function wqt(t,u){const s=wpe(u);return qTe(t,s)}function qTe(t,u){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:d,typeOnlyExports:f}=E(t),p=[];s&&p.push(s);for(const v of[d,f]){if(v.length===0)continue;const b=[];b.push(...ju(v,T=>T.exportClause&&ep(T.exportClause)?T.exportClause.elements:_t));const B=dlt(b,u),k=v[0];p.push(q.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(ep(k.exportClause)?q.updateNamedExports(k.exportClause,B):q.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return p;function E(v){let b;const B=[],k=[];for(const T of v)T.exportClause===void 0?b=b||T:T.isTypeOnly?k.push(T):B.push(T);return{exportWithoutClause:b,namedExports:B,typeOnlyExports:k}}}function TK(t,u,s){return q.updateImportDeclaration(t,t.modifiers,q.updateImportClause(t.importClause,t.importClause.isTypeOnly,u,s),t.moduleSpecifier,t.attributes)}function dlt(t,u){return oc(t,(s,d)=>ZTe(s,d,u))}function ZTe(t,u,s){return d2(t.isTypeOnly,u.isTypeOnly)||s(t.name.text,u.name.text)}function Tqt(t,u,s){const d=wpe(!!s);return YTe(t,u,d)}function YTe(t,u,s){const d=t===void 0?void 0:jee(t),f=u===void 0?void 0:jee(u);return d2(d===void 0,f===void 0)||d2(Id(d),Id(f))||s(d,f)}function QTe(t){var u;switch(t.kind){case 271:return(u=ur(t.moduleReference,r_))==null?void 0:u.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function Lqt(t,u){return hlt(Bpe(t,t.statements.filter(Sd)),u)}function hlt(t,u){const s=yw(u,!1),d=yw(u,!0);let f=3,p=!1;for(const E of t){if(E.length>1){const b=cn(E,B=>{var k;return((k=ur(B.moduleSpecifier,us))==null?void 0:k.text)??""},s,d);if(b&&(f&=b,p=!0),!f)return f}const v=Le(E,b=>{var B,k;return((k=ur((B=b.importClause)==null?void 0:B.namedBindings,uD))==null?void 0:k.elements.length)>1});if(v){const b=eLe(v.importClause.namedBindings.elements,u);if(b&&(f&=b,p=!0),!f)return f}if(f!==3)return f}return p?0:f}function Nqt(t,u){const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>jee(QTe(f))||"",s,d)}function Pqt(t,u,s){const d=Kl(t,u,il,(f,p)=>XTe(f,p,s));return d<0?~d:d}function Mqt(t,u,s){const d=Kl(t,u,il,(f,p)=>ZTe(f,p,s));return d<0?~d:d}function XTe(t,u,s){return YTe(QTe(t),QTe(u),s)||zqt(t,u)}function zqt(t,u){return nl(flt(t),flt(u))}function flt(t){var u;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((u=t.importClause.namedBindings)==null?void 0:u.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Iqt(t){return ju(t,u=>Vt(Rqt(u),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?q.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function Rqt(t){var u;return(u=t.importClause)!=null&&u.namedBindings&&uD(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function wpe(t){return t?qCe:dh}function Oqt(t,u){const s=jqt(u),d=u.organizeImportsCaseFirst??!1,f=u.organizeImportsNumericCollation??!1,p=u.organizeImportsAccentCollation??!0,E=t?p?"accent":"base":p?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:d||"false",sensitivity:E,numeric:f}).compare}function jqt(t){let u=t.organizeImportsLocale;u==="auto"&&(u=ZCe()),u===void 0&&(u="en");const s=Intl.Collator.supportedLocalesOf(u);return s.length?s[0]:"en"}function yw(t,u){return(t.organizeImportsCollation??"ordinal")==="unicode"?Oqt(u,t):wpe(u)}function Vqt(t,u){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(u==null?void 0:u())??!1;return yw(t,s)}function Hqt(t){const u=[],s=t.statements,d=S(s);let f=0,p=0;for(;fBpe(t,E))}var mlt,eLe,Kqt=o({"src/services/organizeImports.ts"(){rr(),mlt=class{has([t,u]){return this._lastPreferences!==u||!this._cache?!1:this._cache.has(t)}get([t,u]){if(!(this._lastPreferences!==u||!this._cache))return this._cache.get(t)}set([t,u],s){this._lastPreferences!==u&&(this._lastPreferences=u,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},eLe=UCe((t,u)=>{if(!hi(t,(f,p)=>d2(f.isTypeOnly,p.isTypeOnly)))return 0;const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>f.name.text,s,d)},new mlt)}}),Gp={};h(Gp,{coalesceExports:()=>wqt,coalesceImports:()=>Sqt,compareImportOrExportSpecifiers:()=>ZTe,compareImportsOrRequireStatements:()=>XTe,compareModuleSpecifiers:()=>Tqt,detectImportDeclarationSorting:()=>Nqt,detectImportSpecifierSorting:()=>eLe,detectSorting:()=>Lqt,getImportDeclarationInsertionIndex:()=>Pqt,getImportSpecifierInsertionIndex:()=>Mqt,getOrganizeImportsComparer:()=>yw,organizeImports:()=>yqt});var Wqt=o({"src/services/_namespaces/ts.OrganizeImports.ts"(){Kqt()}});function Gqt(t,u){const s=[];return Jqt(t,u,s),$qt(t,s),s.sort((d,f)=>d.textSpan.start-f.textSpan.start)}function Jqt(t,u,s){let d=40,f=0;const p=[...t.statements,t.endOfFileToken],E=p.length;for(;f1&&d.push(Vee(p,E,"comment"))}}function glt(t,u,s,d){w7(t)||tLe(t.pos,u,s,d)}function Vee(t,u,s){return m9(Vc(t,u),s)}function Uqt(t,u){switch(t.kind){case 241:if(Co(t.parent))return qqt(t.parent,t,u);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(t.parent);case 258:const z=t.parent;if(z.tryBlock===t)return k(t.parent);if(z.finallyBlock===t){const j=a0(z,98,u);if(j)return k(j)}default:return m9(of(t,u),"code")}case 268:return k(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(t);case 189:return k(t,!1,!yB(t.parent),23);case 296:case 297:return T(t.statements);case 210:return B(t);case 209:return B(t,23);case 284:return p(t);case 288:return E(t);case 285:case 286:return v(t.attributes);case 228:case 15:return b(t);case 207:return k(t,!1,!js(t.parent),23);case 219:return f(t);case 213:return d(t);case 217:return M(t);case 275:case 279:case 300:return s(t)}function s(z){if(!z.elements.length)return;const j=a0(z,19,u),J=a0(z,20,u);if(!(!j||!J||q4(j.pos,J.pos,u)))return Tpe(j,J,z,u,!1,!1)}function d(z){if(!z.arguments.length)return;const j=a0(z,21,u),J=a0(z,22,u);if(!(!j||!J||q4(j.pos,J.pos,u)))return Tpe(j,J,z,u,!1,!0)}function f(z){if(po(z.body)||Cf(z.body)||q4(z.body.getFullStart(),z.body.getEnd(),u))return;const j=Vc(z.body.getFullStart(),z.body.getEnd());return m9(j,"code",of(z))}function p(z){const j=Vc(z.openingElement.getStart(u),z.closingElement.getEnd()),J=z.openingElement.tagName.getText(u),K="<"+J+">...";return m9(j,"code",j,!1,K)}function E(z){const j=Vc(z.openingFragment.getStart(u),z.closingFragment.getEnd());return m9(j,"code",j,!1,"<>...")}function v(z){if(z.properties.length!==0)return Vee(z.getStart(u),z.getEnd(),"code")}function b(z){if(!(z.kind===15&&z.text.length===0))return Vee(z.getStart(u),z.getEnd(),"code")}function B(z,j=19){return k(z,!1,!Dh(z.parent)&&!Mo(z.parent),j)}function k(z,j=!1,J=!0,K=19,Y=K===19?20:24){const oe=a0(t,K,u),se=a0(t,Y,u);return oe&&se&&Tpe(oe,se,z,u,j,J)}function T(z){return z.length?m9(qx(z),"code"):void 0}function M(z){if(q4(z.getStart(),z.getEnd(),u))return;const j=Vc(z.getStart(),z.getEnd());return m9(j,"code",of(z))}}function qqt(t,u,s){const d=Zqt(t,u,s),f=a0(u,20,s);return d&&f&&Tpe(d,f,t,s,t.kind!==219)}function Tpe(t,u,s,d,f=!1,p=!0){const E=Vc(p?t.getFullStart():t.getStart(d),u.getEnd());return m9(E,"code",of(s,d),f)}function m9(t,u,s=t,d=!1,f="..."){return{textSpan:t,kind:u,hintSpan:s,bannerText:f,autoCollapse:d}}function Zqt(t,u,s){if(Kye(t.parameters,s)){const d=a0(t,21,s);if(d)return d}return a0(u,19,s)}var Elt,Yqt=o({"src/services/outliningElementsCollector.ts"(){rr(),Elt=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Lpe={};h(Lpe,{collectElements:()=>Gqt});var Qqt=o({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){Yqt()}});function Xqt(t,u,s,d){const f=lX(af(u,s));if(Dlt(f)){const p=eZt(f,t.getTypeChecker(),u,t,d);if(p)return p}return Npe(F.You_cannot_rename_this_element)}function eZt(t,u,s,d,f){const p=u.getSymbolAtLocation(t);if(!p){if(t0(t)){const M=sX(t,u);if(M&&(M.flags&128||M.flags&1048576&&ye(M.types,z=>!!(z.flags&128))))return iLe(t.text,t.text,"string","",t,s)}else if(Rhe(t)){const M=Hc(t);return iLe(M,M,"label","",t,s)}return}const{declarations:E}=p;if(!E||E.length===0)return;if(E.some(M=>tZt(d,M)))return Npe(F.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(at(t)&&t.escapedText==="default"&&p.parent&&p.parent.flags&1536)return;if(t0(t)&&Aj(t))return f.allowRenameOfImportPath?nZt(t,s,p):void 0;const v=iZt(s,p,u,f);if(v)return Npe(v);const b=x5.getSymbolKind(u,p,t),B=xSe(t)||Pm(t)&&t.parent.kind===167?$4(J4(t)):void 0,k=B||u.symbolToString(p),T=B||u.getFullyQualifiedName(p);return iLe(k,T,b,x5.getSymbolModifiers(u,p),t,s)}function tZt(t,u){const s=u.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Ml(s.fileName,".d.ts")}function iZt(t,u,s,d){if(!d.providePrefixAndSuffixTextForRename&&u.flags&2097152){const E=u.declarations&&Le(u.declarations,v=>bf(v));E&&!E.propertyName&&(u=s.getAliasedSymbol(u))}const{declarations:f}=u;if(!f)return;const p=_lt(t.path);if(p===void 0)return Oe(f,E=>XH(E.getSourceFile().path))?F.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const E of f){const v=_lt(E.getSourceFile().path);if(v){const b=Math.min(p.length,v.length);for(let B=0;B<=b;B++)if(dh(p[B],v[B])!==0)return F.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function _lt(t){const u=yd(t),s=u.lastIndexOf("node_modules");if(s!==-1)return u.slice(0,s+2)}function nZt(t,u,s){if(!Id(t.text))return Npe(F.You_cannot_rename_a_module_via_a_global_import);const d=s.declarations&&Le(s.declarations,la);if(!d)return;const f=sc(t.text,"/index")||sc(t.text,"/index.js")?void 0:XCe(_h(d.fileName),"/index"),p=f===void 0?d.fileName:f,E=f===void 0?"module":"directory",v=t.text.lastIndexOf("/")+1,b=d1(t.getStart(u)+1+v,t.text.length-v);return{canRename:!0,fileToRename:p,kind:E,displayName:p,fullDisplayName:p,kindModifiers:"",triggerSpan:b}}function iLe(t,u,s,d,f,p){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:u,kindModifiers:d,triggerSpan:uZt(f,p)}}function Npe(t){return{canRename:!1,localizedErrorMessage:to(t)}}function uZt(t,u){let s=t.getStart(u),d=t.getWidth(u);return t0(t)&&(s+=1,d-=2),d1(s,d)}function Dlt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return uX(t);default:return!1}}var rZt=o({"src/services/rename.ts"(){rr()}}),Hee={};h(Hee,{getRenameInfo:()=>Xqt,nodeIsEligibleForRename:()=>Dlt});var aZt=o({"src/services/_namespaces/ts.Rename.ts"(){rZt()}});function oZt(t,u,s,d,f){const p=t.getTypeChecker(),E=cX(u,s);if(!E)return;const v=!!d&&d.kind==="characterTyped";if(v&&(zk(u,s,E)||m5(u,s)))return;const b=!!d&&d.kind==="invoked",B=bZt(E,s,u,p,b);if(!B)return;f.throwIfCancellationRequested();const k=sZt(B,p,u,E,v);return f.throwIfCancellationRequested(),k?p.runWithCancellationToken(f,T=>k.kind===0?Flt(k.candidates,k.resolvedSignature,B,u,T):kZt(k.symbol,B,u,T)):gh(u)?cZt(B,t,f):void 0}function sZt({invocation:t,argumentCount:u},s,d,f,p){switch(t.kind){case 0:{if(p&&!lZt(f,t.node,d))return;const E=[],v=s.getResolvedSignatureForSignatureHelp(t.node,E,u);return E.length===0?void 0:{kind:0,candidates:E,resolvedSignature:v}}case 1:{const{called:E}=t;if(p&&!xlt(f,d,at(E)?E.parent:E))return;const v=Uhe(E,u,s);if(v.length!==0)return{kind:0,candidates:v,resolvedSignature:Pn(v)};const b=s.getSymbolAtLocation(E);return b&&{kind:1,symbol:b}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return H.assertNever(t)}}function lZt(t,u,s){if(!$E(u))return!1;const d=u.getChildren(s);switch(t.kind){case 21:return kt(d,t);case 28:{const f=oX(t);return!!f&&kt(d,f)}case 30:return xlt(t,s,u.expression);default:return!1}}function cZt(t,u,s){if(t.invocation.kind===2)return;const d=ylt(t.invocation),f=Iu(d)?d.name.text:void 0,p=u.getTypeChecker();return f===void 0?void 0:G(u.getSourceFiles(),E=>G(E.getNamedDeclarations().get(f),v=>{const b=v.symbol&&p.getTypeOfSymbolAtLocation(v.symbol,v),B=b&&b.getCallSignatures();if(B&&B.length)return p.runWithCancellationToken(s,k=>Flt(B,B[0],t,E,k,!0))}))}function xlt(t,u,s){const d=t.getFullStart();let f=t.parent;for(;f;){const p=td(d,u,f,!0);if(p)return Vm(s,p);f=f.parent}return H.fail("Could not find preceding token")}function dZt(t,u,s){const d=Clt(t,u,s);return!d||d.isTypeParameterList||d.invocation.kind!==0?void 0:{invocation:d.invocation.node,argumentCount:d.argumentCount,argumentIndex:d.argumentIndex}}function vlt(t,u,s){const d=hZt(t,s);if(!d)return;const{list:f,argumentIndex:p}=d,E=DZt(f,zk(s,u,t));p!==0&&H.assertLessThan(p,E);const v=vZt(f,s);return{list:f,argumentIndex:p,argumentCount:E,argumentsSpan:v}}function hZt(t,u){if(t.kind===30||t.kind===21)return{list:yZt(t.parent,t,u),argumentIndex:0};{const s=oX(t);return s&&{list:s,argumentIndex:_Zt(s,t)}}}function Clt(t,u,s){const{parent:d}=t;if($E(d)){const f=d,p=vlt(t,u,s);if(!p)return;const{list:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p;return{isTypeParameterList:!!d.typeArguments&&d.typeArguments.pos===E.pos,invocation:{kind:0,node:f},argumentsSpan:B,argumentIndex:v,argumentCount:b}}else{if(T7(t)&&Dk(d))return jH(t,u,s)?uLe(d,0,s):void 0;if(vB(t)&&d.parent.kind===215){const f=d,p=f.parent;H.assert(f.kind===228);const E=jH(t,u,s)?0:1;return uLe(p,E,s)}else if(qP(d)&&Dk(d.parent.parent)){const f=d,p=d.parent.parent;if(pce(t)&&!jH(t,u,s))return;const E=f.parent.templateSpans.indexOf(f),v=xZt(E,t,u,s);return uLe(p,v,s)}else if(zh(d)){const f=d.attributes.pos,p=gs(s.text,d.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:d},argumentsSpan:d1(f,p-f),argumentIndex:0,argumentCount:1}}else{const f=qhe(t,s);if(f){const{called:p,nTypeArguments:E}=f,v={kind:1,called:p},b=Vc(p.getStart(s),t.end);return{isTypeParameterList:!0,invocation:v,argumentsSpan:b,argumentIndex:E,argumentCount:E+1}}return}}}function fZt(t,u,s,d){return mZt(t,u,s,d)||Clt(t,u,s)}function blt(t){return Xn(t.parent)?blt(t.parent):t}function nLe(t){return Xn(t.left)?nLe(t.left)+1:2}function mZt(t,u,s,d){const f=pZt(t);if(f===void 0)return;const p=gZt(f,s,u,d);if(p===void 0)return;const{contextualType:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p,k=E.getNonNullableType(),T=k.symbol;if(T===void 0)return;const M=qu(k.getCallSignatures());return M===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:M,node:t,symbol:EZt(T)},argumentsSpan:B,argumentIndex:v,argumentCount:b}}function pZt(t){switch(t.kind){case 21:case 28:return t;default:return Tn(t.parent,u=>io(u)?!0:js(u)||Rp(u)||_k(u)?!1:"quit")}}function gZt(t,u,s,d){const{parent:f}=t;switch(f.kind){case 217:case 174:case 218:case 219:const p=vlt(t,s,u);if(!p)return;const{argumentIndex:E,argumentCount:v,argumentsSpan:b}=p,B=dc(f)?d.getContextualTypeForObjectLiteralElement(f):d.getContextualType(f);return B&&{contextualType:B,argumentIndex:E,argumentCount:v,argumentsSpan:b};case 226:{const k=blt(f),T=d.getContextualType(k),M=t.kind===21?0:nLe(f)-1,z=nLe(k);return T&&{contextualType:T,argumentIndex:M,argumentCount:z,argumentsSpan:of(f)}}default:return}}function EZt(t){return t.name==="__type"&&G(t.declarations,u=>{var s;return u3(u)?(s=ur(u.parent,Zg))==null?void 0:s.symbol:void 0})||t}function _Zt(t,u){let s=0;for(const d of t.getChildren()){if(d===u)break;d.kind!==28&&s++}return s}function DZt(t,u){const s=t.getChildren();let d=ui(s,f=>f.kind!==28);return!u&&s.length>0&&Cr(s).kind===28&&d++,d}function xZt(t,u,s,d){return H.assert(s>=u.getStart(),"Assumed 'position' could not occur before node."),X2e(u)?jH(u,s,d)?0:t+2:t+1}function uLe(t,u,s){const d=T7(t.template)?1:t.template.templateSpans.length+1;return u!==0&&H.assertLessThan(u,d),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:CZt(t,s),argumentIndex:u,argumentCount:d}}function vZt(t,u){const s=t.getFullStart(),d=gs(u.text,t.getEnd(),!1);return d1(s,d-s)}function CZt(t,u){const s=t.template,d=s.getStart();let f=s.getEnd();return s.kind===228&&Cr(s.templateSpans).literal.getFullWidth()===0&&(f=gs(u.text,f,!1)),d1(d,f-d)}function bZt(t,u,s,d,f){for(let p=t;!la(p)&&(f||!po(p));p=p.parent){H.assert(Vm(p.parent,p),"Not a subspan",()=>`Child: ${H.formatSyntaxKind(p.kind)}, parent: ${H.formatSyntaxKind(p.parent.kind)}`);const E=fZt(p,u,s,d);if(E)return E}}function yZt(t,u,s){const d=t.getChildren(s),f=d.indexOf(u);return H.assert(f>=0&&d.length>f+1),d[f+1]}function ylt(t){return t.kind===0?pq(t.node):t.called}function klt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function Flt(t,u,{isTypeParameterList:s,argumentCount:d,argumentsSpan:f,invocation:p,argumentIndex:E},v,b,B){var k;const T=klt(p),M=p.kind===2?p.symbol:b.getSymbolAtLocation(ylt(p))||B&&((k=u.declaration)==null?void 0:k.symbol),z=M?RM(b,M,B?v:void 0,void 0):_t,j=Vt(t,se=>AZt(se,z,s,b,T,v));E!==0&&H.assertLessThan(E,d);let J=0,K=0;for(let se=0;se1)){let ae=0;for(const Ce of ge){if(Ce.isVariadic||Ce.parameters.length>=d){J=K+ae;break}ae++}}K+=ge.length}H.assert(J!==-1);const Y={items:Tr(j,il),applicableSpan:f,selectedItemIndex:J,argumentIndex:E,argumentCount:d},oe=Y.items[J];if(oe.isVariadic){const se=Ue(oe.parameters,ge=>!!ge.isRest);-1Alt(T,s,d,f,E)),b=t.getDocumentationComment(s),B=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...p,ih(30)],suffixDisplayParts:[ih(32)],separatorDisplayParts:rLe,parameters:v,documentation:b,tags:B}}function AZt(t,u,s,d,f,p){const E=(s?BZt:wZt)(t,d,f,p);return Vt(E,({isVariadic:v,parameters:b,prefix:B,suffix:k})=>{const T=[...u,...B],M=[...k,...SZt(t,f,d)],z=t.getDocumentationComment(d),j=t.getJsDocTags();return{isVariadic:v,prefixDisplayParts:T,suffixDisplayParts:M,separatorDisplayParts:rLe,parameters:b,documentation:z,tags:j}})}function SZt(t,u,s){return Zx(d=>{d.writePunctuation(":"),d.writeSpace(" ");const f=s.getTypePredicateOfSignature(t);f?s.writeTypePredicate(f,u,void 0,d):s.writeType(s.getReturnTypeOfSignature(t),u,void 0,d)})}function BZt(t,u,s,d){const f=(t.target||t).typeParameters,p=X2(),E=(f||_t).map(b=>Alt(b,u,s,d,p)),v=t.thisParameter?[u.symbolToParameterDeclaration(t.thisParameter,s,LK)]:[];return u.getExpandedParameters(t).map(b=>{const B=q.createNodeArray([...v,...Vt(b,T=>u.symbolToParameterDeclaration(T,s,LK))]),k=Zx(T=>{p.writeList(2576,B,d,T)});return{isVariadic:!1,parameters:E,prefix:[ih(30)],suffix:[ih(32),...k]}})}function wZt(t,u,s,d){const f=X2(),p=Zx(b=>{if(t.typeParameters&&t.typeParameters.length){const B=q.createNodeArray(t.typeParameters.map(k=>u.typeParameterToDeclaration(k,s,LK)));f.writeList(53776,B,d,b)}}),E=u.getExpandedParameters(t),v=u.hasEffectiveRestParameter(t)?E.length===1?b=>!0:b=>{var B;return!!(b.length&&((B=ur(b[b.length-1],qE))==null?void 0:B.links.checkFlags)&32768)}:b=>!1;return E.map(b=>({isVariadic:v(b),parameters:b.map(B=>TZt(B,u,s,d,f)),prefix:[...p,ih(21)],suffix:[ih(22)]}))}function TZt(t,u,s,d,f){const p=Zx(b=>{const B=u.symbolToParameterDeclaration(t,s,LK);f.writeNode(4,B,d,b)}),E=u.isOptionalParameter(t.valueDeclaration),v=qE(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(u),displayParts:p,isOptional:E,isRest:v}}function Alt(t,u,s,d,f){const p=Zx(E=>{const v=u.typeParameterToDeclaration(t,s,LK);f.writeNode(4,v,d,E)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(u),displayParts:p,isOptional:!1,isRest:!1}}var LK,rLe,LZt=o({"src/services/signatureHelp.ts"(){rr(),LK=70246400,rLe=[ih(28),$l()]}}),NK={};h(NK,{getArgumentInfoForCompletions:()=>dZt,getSignatureHelpItems:()=>oZt});var NZt=o({"src/services/_namespaces/ts.SignatureHelp.ts"(){LZt()}});function PZt(t,u){var s,d;let f={textSpan:Vc(u.getFullStart(),u.getEnd())},p=u;e:for(;;){const b=zZt(p);if(!b.length)break;for(let B=0;Bt)break e;const z=Aa(gv(u.text,T.end));if(z&&z.kind===2&&v(z.pos,z.end),MZt(u,t,T)){if(t0e(T)&&$0(p)&&!q4(T.getStart(u),T.getEnd(),u)&&E(T.getStart(u),T.getEnd()),po(T)||qP(T)||vB(T)||pce(T)||k&&vB(k)||Ad(T)&&Jl(p)||MB(T)&&Ad(p)||ua(T)&&MB(p)&&b.length===1||kk(T)||Ov(T)||K7(T)){p=T;break}if(qP(p)&&M&&IU(M)){const Y=T.getFullStart()-2,oe=M.getStart()+1;E(Y,oe)}const j=MB(T)&&IZt(k)&&RZt(M)&&!q4(k.getStart(),M.getStart(),u);let J=j?k.getEnd():T.getStart();const K=j?M.getStart():OZt(u,T);if(lm(T)&&((s=T.jsDoc)!=null&&s.length)&&E(Pn(T.jsDoc).getStart(),K),MB(T)){const Y=T.getChildren()[0];Y&&lm(Y)&&((d=Y.jsDoc)!=null&&d.length)&&Y.getStart()!==T.pos&&(J=Math.min(J,Pn(Y.jsDoc).getStart()))}E(J,K),(us(T)||P8(T))&&E(J+1,K-1),p=T;break}if(B===b.length-1)break e}}return f;function E(b,B){if(b!==B){const k=Vc(b,B);(!f||!sw(k,f.textSpan)&&T2e(k,t))&&(f={textSpan:k,...f&&{parent:f}})}}function v(b,B){E(b,B);let k=b;for(;u.text.charCodeAt(k)===47;)k++;E(k,B)}}function MZt(t,u,s){return H.assert(s.pos<=u),uv===t.readonlyToken||v.kind===148||v===t.questionToken||v.kind===58),E=PK(p,({kind:v})=>v===23||v===168||v===24);return[s,MK(Ppe(E,({kind:v})=>v===59)),f]}if(Mm(t)){const s=PK(t.getChildren(),E=>E===t.name||kt(t.modifiers,E)),d=((u=s[0])==null?void 0:u.kind)===327?s[0]:void 0,f=d?s.slice(1):s,p=Ppe(f,({kind:E})=>E===59);return d?[d,MK(p)]:p}if(io(t)){const s=PK(t.getChildren(),f=>f===t.dotDotDotToken||f===t.name),d=PK(s,f=>f===s[0]||f===t.questionToken);return Ppe(d,({kind:f})=>f===64)}return js(t)?Ppe(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function PK(t,u){const s=[];let d;for(const f of t)u(f)?(d=d||[],d.push(f)):(d&&(s.push(MK(d)),d=void 0),s.push(f));return d&&s.push(MK(d)),s}function Ppe(t,u,s=!0){if(t.length<2)return t;const d=Ue(t,u);if(d===-1)return t;const f=t.slice(0,d),p=t[d],E=Cr(t),v=s&&E.kind===27,b=t.slice(d+1,v?t.length-1:void 0),B=Dr([f.length?MK(f):void 0,p,b.length?MK(b):void 0]);return v?B.concat(E):B}function MK(t){return H.assertGreaterThanOrEqual(t.length,1),t_(a_.createSyntaxList(t),t[0].pos,Cr(t).end)}function IZt(t){const u=t&&t.kind;return u===19||u===23||u===21||u===286}function RZt(t){const u=t&&t.kind;return u===20||u===24||u===22||u===287}function OZt(t,u){switch(u.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(u.getStart());default:return u.getEnd()}}var Slt,jZt=o({"src/services/smartSelection.ts"(){rr(),Slt=dg(Sd,E1)}}),Mpe={};h(Mpe,{getSmartSelectionRange:()=>PZt});var VZt=o({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){jZt()}});function Blt(t,u,s){const d=wlt(t,u,s);if(d!=="")return d;const f=xP(u);return f&32?Sl(u,231)?"local class":"class":f&384?"enum":f&524288?"type":f&64?"interface":f&262144?"type parameter":f&8?"enum member":f&2097152?"alias":f&1536?"module":d}function wlt(t,u,s){const d=t.getRootSymbols(u);if(d.length===1&&Pn(d).flags&8192&&t.getTypeOfSymbolAtLocation(u,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(u))return"var";if(t.isArgumentsSymbol(u))return"local var";if(s.kind===110&&Wt(s)||g7(s))return"parameter";const f=xP(u);if(f&3)return dfe(u)?"parameter":u.valueDeclaration&&K8(u.valueDeclaration)?"const":u.valueDeclaration&&cj(u.valueDeclaration)?"using":u.valueDeclaration&&lj(u.valueDeclaration)?"await using":L(u.declarations,rq)?"let":Nlt(u)?"local var":"var";if(f&16)return Nlt(u)?"local function":"function";if(f&32768)return"getter";if(f&65536)return"setter";if(f&8192)return"method";if(f&16384)return"constructor";if(f&131072)return"index";if(f&4){if(f&33554432&&u.links.checkFlags&6){const p=L(t.getRootSymbols(u),E=>{if(E.getFlags()&98311)return"property"});return p||(t.getTypeOfSymbolAtLocation(u,s).getCallSignatures().length?"method":"property")}return"property"}return""}function Tlt(t){if(t.declarations&&t.declarations.length){const[u,...s]=t.declarations,d=S(s)&&RX(u)&&Oe(s,p=>!RX(p))?65536:0,f=NM(u,d);if(f)return f.split(",")}return[]}function HZt(t,u){if(!u)return"";const s=new Set(Tlt(u));if(u.flags&2097152){const d=t.getAliasedSymbol(u);d!==u&&L(Tlt(d),f=>{s.add(f)})}return u.flags&16777216&&s.add("optional"),s.size>0?ga(s.values()).join(","):""}function Llt(t,u,s,d,f,p,E,v){var b;const B=[];let k=[],T=[];const M=xP(u);let z=E&1?wlt(t,u,f):"",j=!1;const J=f.kind===110&&Eq(f)||g7(f);let K,Y,oe=!1;if(f.kind===110&&!J)return{displayParts:[Hf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(z!==""||M&32||M&2097152){if(z==="getter"||z==="setter"){const Be=Le(u.declarations,Ge=>Ge.name===f);if(Be)switch(Be.kind){case 177:z="getter";break;case 178:z="setter";break;case 172:z="accessor";break;default:H.assertNever(Be)}else z="property"}let fe;if(p??(p=J?t.getTypeAtLocation(f):t.getTypeOfSymbolAtLocation(u,f)),f.parent&&f.parent.kind===211){const Be=f.parent.name;(Be===f||Be&&Be.getFullWidth()===0)&&(f=f.parent)}let xe;if($E(f)?xe=f:(Phe(f)||wM(f)||f.parent&&(zh(f.parent)||Dk(f.parent))&&Co(u.valueDeclaration))&&(xe=f.parent),xe){fe=t.getResolvedSignature(xe);const Be=xe.kind===214||Mo(xe)&&xe.expression.kind===108,Ge=Be?p.getConstructSignatures():p.getCallSignatures();if(fe&&!kt(Ge,fe.target)&&!kt(Ge,fe)&&(fe=Ge.length?Ge[0]:void 0),fe){switch(Be&&M&32?(z="constructor",ve(p.symbol,z)):M&2097152?(z="alias",Se(z),B.push($l()),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),ne(u)):ve(u,z),z){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(ih(59)),B.push($l()),!(Gu(p)&16)&&p.symbol&&(yn(B,RM(t,p.symbol,d,void 0,5)),B.push(lw())),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),Ne(fe,Ge,262144);break;default:Ne(fe,Ge)}j=!0,oe=Ge.length>1}}else if(Hhe(f)&&!(M&98304)||f.kind===137&&f.parent.kind===176){const Be=f.parent;if(u.declarations&&Le(u.declarations,Ae=>Ae===(f.kind===137?Be.parent:Be))){const Ae=Be.kind===176?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Be)?fe=Ae[0]:fe=t.getSignatureFromDeclaration(Be),Be.kind===176?(z="constructor",ve(p.symbol,z)):ve(Be.kind===179&&!(p.symbol.flags&2048||p.symbol.flags&4096)?p.symbol:u,z),fe&&Ne(fe,Ae),j=!0,oe=Ae.length>1}}}if(M&32&&!j&&!J&&(ae(),Sl(u,231)?Se("local class"):B.push(Hf(86)),B.push($l()),ne(u),pe(u,s)),M&64&&E&2&&(ge(),B.push(Hf(120)),B.push($l()),ne(u),pe(u,s)),M&524288&&E&2&&(ge(),B.push(Hf(156)),B.push($l()),ne(u),pe(u,s),B.push($l()),B.push(IM(64)),B.push($l()),yn(B,$H(t,f.parent&&q3(f.parent)?t.getTypeAtLocation(f.parent):t.getDeclaredTypeOfSymbol(u),d,8388608))),M&384&&(ge(),Oe(u.declarations,fe=>Iv(fe)&&b2(fe))&&(B.push(Hf(87)),B.push($l())),B.push(Hf(94)),B.push($l()),ne(u)),M&1536&&!J){ge();const fe=Sl(u,267),xe=fe&&fe.name&&fe.name.kind===80;B.push(Hf(xe?145:144)),B.push($l()),ne(u)}if(M&262144&&E&2)if(ge(),B.push(ih(21)),B.push(Km("type parameter")),B.push(ih(22)),B.push($l()),ne(u),u.parent)Ce(),ne(u.parent,d),pe(u.parent,d);else{const fe=Sl(u,168);if(fe===void 0)return H.fail();const xe=fe.parent;if(xe)if(Co(xe)){Ce();const Be=t.getSignatureFromDeclaration(xe);xe.kind===180?(B.push(Hf(105)),B.push($l())):xe.kind!==179&&xe.name&&ne(xe.symbol),yn(B,mfe(t,Be,s,32))}else jp(xe)&&(Ce(),B.push(Hf(156)),B.push($l()),ne(xe.symbol),pe(xe.symbol,s))}if(M&8){z="enum member",ve(u,"enum member");const fe=(b=u.declarations)==null?void 0:b[0];if((fe==null?void 0:fe.kind)===306){const xe=t.getConstantValue(fe);xe!==void 0&&(B.push($l()),B.push(IM(64)),B.push($l()),B.push(yf(Tbe(xe),typeof xe=="number"?7:8)))}}if(u.flags&2097152){if(ge(),!j||k.length===0&&T.length===0){const fe=t.getAliasedSymbol(u);if(fe!==u&&fe.declarations&&fe.declarations.length>0){const xe=fe.declarations[0],Be=Za(xe);if(Be&&!j){const Ge=tq(xe)&&Yu(xe,128),Ae=u.name!=="default"&&!Ge,De=Llt(t,fe,zn(xe),xe,Be,p,E,Ae?u:fe);B.push(...De.displayParts),B.push(lw()),K=De.documentation,Y=De.tags}else K=fe.getContextualDocumentationComment(xe,t),Y=fe.getJsDocTags(t)}}if(u.declarations)switch(u.declarations[0].kind){case 270:B.push(Hf(95)),B.push($l()),B.push(Hf(145));break;case 277:B.push(Hf(95)),B.push($l()),B.push(Hf(u.declarations[0].isExportEquals?64:90));break;case 281:B.push(Hf(95));break;default:B.push(Hf(102))}B.push($l()),ne(u),L(u.declarations,fe=>{if(fe.kind===271){const xe=fe;if(bv(xe))B.push($l()),B.push(IM(64)),B.push($l()),B.push(Hf(149)),B.push(ih(21)),B.push(yf(Hc(XN(xe)),8)),B.push(ih(22));else{const Be=t.getSymbolAtLocation(xe.moduleReference);Be&&(B.push($l()),B.push(IM(64)),B.push($l()),ne(Be,d))}return!0}})}if(!j)if(z!==""){if(p){if(J?(ge(),B.push(Hf(110))):ve(u,z),z==="property"||z==="accessor"||z==="getter"||z==="setter"||z==="JSX attribute"||M&3||z==="local var"||z==="index"||z==="using"||z==="await using"||J){if(B.push(ih(59)),B.push($l()),p.symbol&&p.symbol.flags&262144&&z!=="index"){const fe=Zx(xe=>{const Be=t.typeParameterToDeclaration(p,d,aLe);se().writeNode(4,Be,zn(Ua(d)),xe)});yn(B,fe)}else yn(B,$H(t,p,d));if(qE(u)&&u.links.target&&qE(u.links.target)&&u.links.target.links.tupleLabelDeclaration){const fe=u.links.target.links.tupleLabelDeclaration;H.assertNode(fe.name,at),B.push($l()),B.push(ih(21)),B.push(Km(fu(fe.name))),B.push(ih(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||z==="method"){const fe=p.getNonNullableType().getCallSignatures();fe.length&&(Ne(fe[0],fe),oe=fe.length>1)}}}else z=Blt(t,u,f);if(k.length===0&&!oe&&(k=u.getContextualDocumentationComment(d,t)),k.length===0&&M&4&&u.parent&&u.declarations&&L(u.parent.declarations,fe=>fe.kind===312))for(const fe of u.declarations){if(!fe.parent||fe.parent.kind!==226)continue;const xe=t.getSymbolAtLocation(fe.parent.right);if(xe&&(k=xe.getDocumentationComment(t),T=xe.getJsDocTags(t),k.length>0))break}if(k.length===0&&at(f)&&u.valueDeclaration&&js(u.valueDeclaration)){const fe=u.valueDeclaration,xe=fe.parent,Be=fe.propertyName||fe.name;if(at(Be)&&Rp(xe)){const Ge=J4(Be),Ae=t.getTypeAtLocation(xe);k=G(Ae.isUnion()?Ae.types:[Ae],De=>{const Ke=De.getProperty(Ge);return Ke?Ke.getDocumentationComment(t):void 0})||_t}}return T.length===0&&!oe&&(T=u.getContextualJsDocTags(d,t)),k.length===0&&K&&(k=K),T.length===0&&Y&&(T=Y),{displayParts:B,documentation:k,symbolKind:z,tags:T.length===0?void 0:T};function se(){return X2()}function ge(){B.length&&B.push(lw()),ae()}function ae(){v&&(Se("alias"),B.push($l()))}function Ce(){B.push($l()),B.push(Hf(103)),B.push($l())}function ne(fe,xe){let Be;v&&fe===u&&(fe=v),z==="index"&&(Be=t.getIndexInfosOfIndexSymbol(fe));let Ge=[];fe.flags&131072&&Be?(fe.parent&&(Ge=RM(t,fe.parent)),Ge.push(ih(23)),Be.forEach((Ae,De)=>{Ge.push(...$H(t,Ae.keyType)),De!==Be.length-1&&(Ge.push($l()),Ge.push(ih(52)),Ge.push($l()))}),Ge.push(ih(24))):Ge=RM(t,fe,xe||s,void 0,7),yn(B,Ge),u.flags&16777216&&B.push(ih(58))}function ve(fe,xe){ge(),xe&&(Se(xe),fe&&!Oe(fe.declarations,Be=>q0(Be)||(A0(Be)||Xd(Be))&&!Be.name)&&(B.push($l()),ne(fe)))}function Se(fe){switch(fe){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":B.push(hfe(fe));return;default:B.push(ih(21)),B.push(hfe(fe)),B.push(ih(22));return}}function Ne(fe,xe,Be=0){yn(B,mfe(t,fe,d,Be|32)),xe.length>1&&(B.push($l()),B.push(ih(21)),B.push(IM(40)),B.push(yf((xe.length-1).toString(),7)),B.push($l()),B.push(Km(xe.length===2?"overload":"overloads")),B.push(ih(22))),k=fe.getDocumentationComment(t),T=fe.getJsDocTags(),xe.length>1&&k.length===0&&T.length===0&&(k=xe[0].getDocumentationComment(t),T=xe[0].getJsDocTags().filter(Ge=>Ge.name!=="deprecated"))}function pe(fe,xe){const Be=Zx(Ge=>{const Ae=t.symbolToTypeParameterDeclarations(fe,xe,aLe);se().writeList(53776,Ae,zn(Ua(xe)),Ge)});yn(B,Be)}}function KZt(t,u,s,d,f,p=Pk(f),E){return Llt(t,u,s,d,f,void 0,p,E)}function Nlt(t){return t.parent?!1:L(t.declarations,u=>{if(u.kind===218)return!0;if(u.kind!==260&&u.kind!==262)return!1;for(let s=u.parent;!k2(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var aLe,WZt=o({"src/services/symbolDisplay.ts"(){rr(),aLe=70246400}}),x5={};h(x5,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>KZt,getSymbolKind:()=>Blt,getSymbolModifiers:()=>HZt});var GZt=o({"src/services/_namespaces/ts.SymbolDisplay.ts"(){WZt()}});function Plt(t){const u=t.__pos;return H.assert(typeof u=="number"),u}function oLe(t,u){H.assert(typeof u=="number"),t.__pos=u}function Mlt(t){const u=t.__end;return H.assert(typeof u=="number"),u}function sLe(t,u){H.assert(typeof u=="number"),t.__end=u}function zlt(t,u){return gs(t,u,!1,!0)}function JZt(t,u){let s=u;for(;s0?1:0;let M=Mx(dP(t,B)+T,t);return M=zlt(t.text,M),Mx(dP(t,M),t)}function lLe(t,u,s){const{end:d}=u,{trailingTriviaOption:f}=s;if(f===2){const p=gv(t.text,d);if(p){const E=dP(t,u.end);for(const v of p){if(v.kind===2||dP(t,v.pos)>E)break;if(dP(t,v.end)>E)return gs(t.text,v.end,!0,!0)}}}}function kw(t,u,s){var d;const{end:f}=u,{trailingTriviaOption:p}=s;if(p===0)return f;if(p===1){const b=Hi(gv(t.text,f),W_(t.text,f)),B=(d=b==null?void 0:b[b.length-1])==null?void 0:d.end;return B||f}const E=lLe(t,u,s);if(E)return E;const v=gs(t.text,f,!0);return v!==f&&(p===2||Z1(t.text.charCodeAt(v-1)))?v:f}function zpe(t,u){return!!u&&!!t.parent&&(u.kind===28||u.kind===27&&t.parent.kind===210)}function $Zt(t){return A0(t)||ed(t)}function UZt(t){if(t.kind!==219)return t;const u=t.parent.kind===172?t.parent:t.parent.parent;return u.jsDoc=t.jsDoc,u}function qZt(t,u){if(t.kind===u.kind)switch(t.kind){case 348:{const s=t,d=u;return at(s.name)&&at(d.name)&&s.name.escapedText===d.name.escapedText?q.createJSDocParameterTag(void 0,d.name,!1,d.typeExpression,d.isNameFirst,s.comment):void 0}case 349:return q.createJSDocReturnTag(void 0,u.typeExpression,t.comment);case 351:return q.createJSDocTypeTag(void 0,u.typeExpression,t.comment)}}function cLe(t,u){return gs(t.text,Hk(t,u,{leadingTriviaOption:1}),!1,!0)}function ZZt(t,u,s,d){const f=cLe(t,d);if(s===void 0||q4(kw(t,u,{}),f,t))return f;const p=td(d.getStart(t),t);if(zpe(u,p)){const E=td(u.getStart(t),t);if(zpe(s,E)){const v=gs(t.text,p.getEnd(),!0,!0);if(q4(E.getStart(t),p.getStart(t),t))return Z1(t.text.charCodeAt(v-1))?v-1:v;if(Z1(t.text.charCodeAt(v)))return v}}return f}function YZt(t,u){const s=a0(t,19,u),d=a0(t,20,u);return[s==null?void 0:s.end,d==null?void 0:d.end]}function Ipe(t){return ys(t)?t.properties:t.members}function dLe(t,u){for(let s=u.length-1;s>=0;s--){const{span:d,newText:f}=u[s];t=`${t.substring(0,d.start)}${f}${t.substring(Ec(d))}`}return t}function QZt(t){return gs(t,0)===t.length}function Rpe(t){const u=rn(t,Rpe,jlt,XZt,Rpe),s=sl(u)?u:Object.create(u);return t_(s,Plt(t),Mlt(t)),s}function XZt(t,u,s,d,f){const p=kn(t,u,s,d,f);if(!p)return p;H.assert(t);const E=p===t?q.createNodeArray(p.slice(0)):p;return t_(E,Plt(t),Mlt(t)),E}function Ilt(t){let u=0;const s=Vj(t),d=De=>{De&&oLe(De,u)},f=De=>{De&&sLe(De,u)},p=De=>{De&&oLe(De,u)},E=De=>{De&&sLe(De,u)},v=De=>{De&&oLe(De,u)},b=De=>{De&&sLe(De,u)};function B(De,Ke){if(Ke||!QZt(De)){u=s.getTextPos();let Je=0;for(;U3(De.charCodeAt(De.length-Je-1));)Je++;u-=Je}}function k(De){s.write(De),B(De,!1)}function T(De){s.writeComment(De)}function M(De){s.writeKeyword(De),B(De,!1)}function z(De){s.writeOperator(De),B(De,!1)}function j(De){s.writePunctuation(De),B(De,!1)}function J(De){s.writeTrailingSemicolon(De),B(De,!1)}function K(De){s.writeParameter(De),B(De,!1)}function Y(De){s.writeProperty(De),B(De,!1)}function oe(De){s.writeSpace(De),B(De,!1)}function se(De){s.writeStringLiteral(De),B(De,!1)}function ge(De,Ke){s.writeSymbol(De,Ke),B(De,!1)}function ae(De){s.writeLine(De)}function Ce(){s.increaseIndent()}function ne(){s.decreaseIndent()}function ve(){return s.getText()}function Se(De){s.rawWrite(De),B(De,!1)}function Ne(De){s.writeLiteral(De),B(De,!0)}function pe(){return s.getTextPos()}function fe(){return s.getLine()}function xe(){return s.getColumn()}function Be(){return s.getIndent()}function Ge(){return s.isAtStartOfLine()}function Ae(){s.clear(),u=0}return{onBeforeEmitNode:d,onAfterEmitNode:f,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:E,onBeforeEmitToken:v,onAfterEmitToken:b,write:k,writeComment:T,writeKeyword:M,writeOperator:z,writePunctuation:j,writeTrailingSemicolon:J,writeParameter:K,writeProperty:Y,writeSpace:oe,writeStringLiteral:se,writeSymbol:ge,writeLine:ae,increaseIndent:Ce,decreaseIndent:ne,getText:ve,rawWrite:Se,writeLiteral:Ne,getTextPos:pe,getLine:fe,getColumn:xe,getIndent:Be,isAtStartOfLine:Ge,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Ae}}function eYt(t){let u;for(const B of t.statements)if(Mp(B))u=B;else break;let s=0;const d=t.text;if(u)return s=u.end,b(),s;const f=SU(d);f!==void 0&&(s=f.length,b());const p=W_(d,s);if(!p)return s;let E,v;for(const B of p){if(B.kind===3){if(XU(d,B.pos)){E={range:B,pinnedOrTripleSlash:!0};continue}}else if(c0e(d,B.pos,B.end)){E={range:B,pinnedOrTripleSlash:!0};continue}if(E){if(E.pinnedOrTripleSlash)break;const k=t.getLineAndCharacterOfPosition(B.pos).line,T=t.getLineAndCharacterOfPosition(E.range.end).line;if(k>=T+2)break}if(t.statements.length){v===void 0&&(v=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const k=t.getLineAndCharacterOfPosition(B.end).line;if(v(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(hLe||{}),fLe=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(fLe||{}),ez={leadingTriviaOption:0,trailingTriviaOption:0},Olt=class ZOe{constructor(u,s){this.newLineCharacter=u,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(u){return new ZOe(E5(u.host,u.formatContext.options),u.formatContext)}static with(u,s){const d=ZOe.fromContext(u);return s(d),d.getChanges()}pushRaw(u,s){H.assertEqual(u.fileName,s.fileName);for(const d of s.textChanges)this.changes.push({kind:3,sourceFile:u,text:d.newText,range:pX(d.span)})}deleteRange(u,s){this.changes.push({kind:0,sourceFile:u,range:s})}delete(u,s){this.deletedNodes.push({sourceFile:u,node:s})}deleteNode(u,s,d={leadingTriviaOption:1}){this.deleteRange(u,zK(u,s,s,d))}deleteNodes(u,s,d={leadingTriviaOption:1},f){for(const p of s){const E=Hk(u,p,d,f),v=kw(u,p,d);this.deleteRange(u,{pos:E,end:v}),f=!!lLe(u,p,d)}}deleteModifier(u,s){this.deleteRange(u,{pos:s.getStart(u),end:gs(u.text,s.end,!0)})}deleteNodeRange(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=kw(u,d,f);this.deleteRange(u,{pos:p,end:E})}deleteNodeRangeExcludingEnd(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=d===void 0?u.text.length:Hk(u,d,f);this.deleteRange(u,{pos:p,end:E})}replaceRange(u,s,d,f={}){this.changes.push({kind:1,sourceFile:u,range:s,options:f,node:d})}replaceNode(u,s,d,f=ez){this.replaceRange(u,zK(u,s,s,f),d,f)}replaceNodeRange(u,s,d,f,p=ez){this.replaceRange(u,zK(u,s,d,p),f,p)}replaceRangeWithNodes(u,s,d,f={}){this.changes.push({kind:2,sourceFile:u,range:s,options:f,nodes:d})}replaceNodeWithNodes(u,s,d,f=ez){this.replaceRangeWithNodes(u,zK(u,s,s,f),d,f)}replaceNodeWithText(u,s,d){this.replaceRangeWithText(u,zK(u,s,s,ez),d)}replaceNodeRangeWithNodes(u,s,d,f,p=ez){this.replaceRangeWithNodes(u,zK(u,s,d,p),f,p)}nodeHasTrailingComment(u,s,d=ez){return!!lLe(u,s,d)}nextCommaToken(u,s){const d=ib(s,s.parent,u);return d&&d.kind===28?d:void 0}replacePropertyAssignment(u,s,d){const f=this.nextCommaToken(u,s)?"":","+this.newLineCharacter;this.replaceNode(u,s,d,{suffix:f})}insertNodeAt(u,s,d,f={}){this.replaceRange(u,s4(s),d,f)}insertNodesAt(u,s,d,f={}){this.replaceRangeWithNodes(u,s4(s),d,f)}insertNodeAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertNodesAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertAtTopOfFile(u,s,d){const f=eYt(u),p={prefix:f===0?void 0:this.newLineCharacter,suffix:(Z1(u.text.charCodeAt(f))?"":this.newLineCharacter)+(d?this.newLineCharacter:"")};Ha(s)?this.insertNodesAt(u,f,s,p):this.insertNodeAt(u,f,s,p)}insertNodesAtEndOfFile(u,s,d){this.insertAtEndOfFile(u,s,d)}insertAtEndOfFile(u,s,d){const f=u.end+1,p={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(d?this.newLineCharacter:"")};this.insertNodesAt(u,f,s,p)}insertStatementsInNewFile(u,s,d){this.newFileChanges||(this.newFileChanges=wm()),this.newFileChanges.add(u,{oldFile:d,statements:s})}insertFirstParameter(u,s,d){const f=Ki(s);f?this.insertNodeBefore(u,f,d):this.insertNodeAt(u,s.pos,d)}insertNodeBefore(u,s,d,f=!1,p={}){this.insertNodeAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,d,f))}insertNodesBefore(u,s,d,f=!1,p={}){this.insertNodesAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,Pn(d),f))}insertModifierAt(u,s,d,f={}){this.insertNodeAt(u,s,q.createToken(d),f)}insertModifierBefore(u,s,d){return this.insertModifierAt(u,d.getStart(u),s,{suffix:" "})}insertCommentBeforeLine(u,s,d,f){const p=Mx(s,u),E=bSe(u.text,p),v=Rlt(u,E),b=LM(u,v?E:d),B=u.text.slice(p,E),k=`${v?"":this.newLineCharacter}//${f}${this.newLineCharacter}${B}`;this.insertText(u,b.getStart(u),k)}insertJsdocCommentBefore(u,s,d){const f=s.getStart(u);if(s.jsDoc)for(const v of s.jsDoc)this.deleteRange(u,{pos:tp(v.getStart(u),u),end:kw(u,v,{})});const p=FX(u.text,f-1),E=u.text.slice(p,f);this.insertNodeAt(u,f,d,{suffix:this.newLineCharacter+E})}createJSDocText(u,s){const d=ju(s.jsDoc,p=>Ja(p.comment)?q.createJSDocText(p.comment):p.comment),f=Aa(s.jsDoc);return f&&q4(f.pos,f.end,u)&&S(d)===0?void 0:q.createNodeArray(_e(d,q.createJSDocText(` -`)))}replaceJSDocComment(u,s,d){this.insertJsdocCommentBefore(u,UZt(s),q.createJSDocComment(this.createJSDocText(u,s),q.createNodeArray(d)))}addJSDocTags(u,s,d){const f=Tr(s.jsDoc,E=>E.tags),p=d.filter(E=>!f.some((v,b)=>{const B=qZt(v,E);return B&&(f[b]=B),!!B}));this.replaceJSDocComment(u,s,[...f,...p])}filterJSDocTags(u,s,d){this.replaceJSDocComment(u,s,ti(Tr(s.jsDoc,f=>f.tags),d))}replaceRangeWithText(u,s,d){this.changes.push({kind:3,sourceFile:u,range:s,text:d})}insertText(u,s,d){this.replaceRangeWithText(u,s4(s),d)}tryInsertTypeAnnotation(u,s,d){let f;if(Co(s)){if(f=a0(s,22,u),!f){if(!q0(s))return!1;f=Pn(s.parameters)}}else f=(s.kind===260?s.exclamationToken:s.questionToken)??s.name;return this.insertNodeAt(u,f.end,d,{prefix:": "}),!0}tryInsertThisTypeAnnotation(u,s,d){const f=a0(s,21,u).getStart(u)+1,p=s.parameters.length?", ":"";this.insertNodeAt(u,f,d,{prefix:"this: ",suffix:p})}insertTypeParameters(u,s,d){const f=(a0(s,21,u)||Pn(s.parameters)).getStart(u);this.insertNodesAt(u,f,d,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(u,s,d){return na(u)||Zd(u)?{suffix:d?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ua(u)?{suffix:", "}:io(u)?io(s)?{suffix:", "}:{}:us(u)&&Sd(u.parent)||uD(u)?{suffix:", "}:bf(u)?{suffix:","+(d?this.newLineCharacter:" ")}:H.failBadSyntaxKind(u)}insertNodeAtConstructorStart(u,s,d){const f=Ki(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[d,...s.body.statements]):this.insertNodeBefore(u,f,d)}insertNodeAtConstructorStartAfterSuperCall(u,s,d){const f=Le(s.body.statements,p=>Od(p)&&ik(p.expression));!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}insertNodeAtConstructorEnd(u,s,d){const f=qu(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}replaceConstructorBody(u,s,d){this.replaceNode(u,s.body,q.createBlock(d,!0))}insertNodeAtEndOfScope(u,s,d){const f=Hk(u,s.getLastToken(),{});this.insertNodeAt(u,f,d,{prefix:Z1(u.text.charCodeAt(s.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtObjectStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtStartWorker(u,s,d){const f=this.guessIndentationFromExistingMembers(u,s)??this.computeIndentationForNewMember(u,s);this.insertNodeAt(u,Ipe(s).pos,d,this.getInsertNodeAtStartInsertOptions(u,s,f))}guessIndentationFromExistingMembers(u,s){let d,f=s;for(const p of Ipe(s)){if(Gq(f,p,u))return;const E=p.getStart(u),v=dd.SmartIndenter.findFirstNonWhitespaceColumn(tp(E,u),E,u,this.formatContext.options);if(d===void 0)d=v;else if(v!==d)return;f=p}return d}computeIndentationForNewMember(u,s){const d=s.getStart(u);return dd.SmartIndenter.findFirstNonWhitespaceColumn(tp(d,u),d,u,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(u,s,d){const p=Ipe(s).length===0,E=Ip(this.classesWithNodesInsertedAtStart,$s(s),{node:s,sourceFile:u}),v=ys(s)&&(!W4(u)||!p),b=ys(s)&&W4(u)&&p&&!E;return{indentation:d,prefix:(b?",":"")+this.newLineCharacter,suffix:v?",":xh(s)&&p?";":""}}insertNodeAfterComma(u,s,d){const f=this.insertNodeAfterWorker(u,this.nextCommaToken(u,s)||s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAtEndOfList(u,s,d){this.insertNodeAt(u,s.end,d,{prefix:", "})}insertNodesAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,Pn(d));this.insertNodesAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfterWorker(u,s,d){return tYt(s,d)&&u.text.charCodeAt(s.end-1)!==59&&this.replaceRange(u,s4(s.end),q.createToken(27)),kw(u,s,{})}getInsertNodeAfterOptions(u,s){const d=this.getInsertNodeAfterOptionsWorker(s);return{...d,prefix:s.end===u.end&&na(s)?d.prefix?` + `,kind:3,pos:-1,end:-1,hasTrailingNewLine:!0,hasLeadingNewline:!0}])}return z}}function fut(t){switch(t.kind){case 173:case 174:case 179:case 176:case 180:case 262:return!0}return!1}function mut(t,u,s){const d=ya(t,u),f=Tn(d,fut);if(!f||U0(f)&&f.body&&zH(f.body,u))return;const p=s.getTypeChecker(),E=f.symbol;if(!E)return;const v=E.declarations;if(S(v)<=1||!ye(v,M=>zn(M)===t)||!fut(v[0]))return;const b=v[0].kind;if(!ye(v,M=>M.kind===b))return;const B=v;if(Ge(B,M=>!!M.typeParameters||Ge(M.parameters,z=>!!z.modifiers||!at(z.name))))return;const k=qi(B,M=>p.getSignatureFromDeclaration(M));if(S(k)!==S(v))return;const T=p.getReturnTypeOfSignature(k[0]);if(ye(k,M=>p.getReturnTypeOfSignature(M)===T))return B}var Eme,M8e,z8e,ajt=o({"src/services/refactors/convertOverloadListToSingleSignature.ts"(){or(),l_(),Eme="Convert overload list to single signature",M8e=to(F.Convert_overload_list_to_single_signature),z8e={name:Eme,description:M8e,kind:"refactor.rewrite.function.overloadList"},l3(Eme,{kinds:[z8e.kind],getEditsForAction:rjt,getAvailableActions:ujt})}});function ojt(t){const{file:u,startPosition:s,triggerReason:d}=t,f=put(u,s,d==="invoked");return f?sD(f)?t.preferences.provideRefactorNotApplicableReason?[{name:_me,description:I8e,actions:[{...lee,notApplicableReason:f.error},{...hK,notApplicableReason:f.error}]}]:Dt:[{name:_me,description:I8e,actions:[f.addBraces?lee:hK]}]:Dt}function sjt(t,u){const{file:s,startPosition:d}=t,f=put(s,d);H.assert(f&&!sD(f),"Expected applicable refactor info");const{expression:p,returnStatement:E,func:v}=f;let b;if(u===lee.name){const k=q.createReturnStatement(p);b=q.createBlock([k],!0),cw(p,k,s,3,!0)}else if(u===hK.name&&E){const k=p||q.createVoidZero();b=BX(k)?q.createParenthesizedExpression(k):k,YH(E,b,s,3,!1),cw(E,b,s,3,!1),jM(E,b,s,3,!1)}else H.fail("invalid action");return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>{k.replaceNode(s,v.body,b)})}}function put(t,u,s=!0,d){const f=ya(t,u),p=Pm(f);if(!p)return{error:to(F.Could_not_find_a_containing_arrow_function)};if(!Z0(p))return{error:to(F.Containing_function_is_not_an_arrow_function)};if(!(!Hm(p,f)||Hm(p.body,f)&&!s)){if(Zv(lee.kind,d)&&Wt(p.body))return{func:p,addBraces:!0,expression:p.body};if(Zv(hK.kind,d)&&go(p.body)&&p.body.statements.length===1){const E=Pn(p.body.statements);if(jp(E)){const v=E.expression&&ys(dB(E.expression,!1))?q.createParenthesizedExpression(E.expression):E.expression;return{func:p,addBraces:!1,expression:v,returnStatement:E}}}}}var _me,I8e,lee,hK,ljt=o({"src/services/refactors/addOrRemoveBracesToArrowFunction.ts"(){or(),l_(),_me="Add or remove braces in an arrow function",I8e=to(F.Add_or_remove_braces_in_an_arrow_function),lee={name:"Add braces to arrow function",description:to(F.Add_braces_to_arrow_function),kind:"refactor.rewrite.arrow.braces.add"},hK={name:"Remove braces from arrow function",description:to(F.Remove_braces_from_arrow_function),kind:"refactor.rewrite.arrow.braces.remove"},l3(_me,{kinds:[hK.kind],getEditsForAction:sjt,getAvailableActions:ojt})}}),cjt={},djt=o({"src/services/_namespaces/ts.refactor.addOrRemoveBracesToArrowFunction.ts"(){ajt(),ljt()}});function hjt(t){const{file:u,startPosition:s,program:d,kind:f}=t,p=Eut(u,s,d);if(!p)return Dt;const{selectedVariableDeclaration:E,func:v}=p,b=[],B=[];if(Zv(mK.kind,f)){const k=E||Z0(v)&&ra(v.parent)?void 0:to(F.Could_not_convert_to_named_function);k?B.push({...mK,notApplicableReason:k}):b.push(mK)}if(Zv(fK.kind,f)){const k=!E&&Z0(v)?void 0:to(F.Could_not_convert_to_anonymous_function);k?B.push({...fK,notApplicableReason:k}):b.push(fK)}if(Zv(pK.kind,f)){const k=w0(v)?void 0:to(F.Could_not_convert_to_arrow_function);k?B.push({...pK,notApplicableReason:k}):b.push(pK)}return[{name:R8e,description:xut,actions:b.length===0&&t.preferences.provideRefactorNotApplicableReason?B:b}]}function fjt(t,u){const{file:s,startPosition:d,program:f}=t,p=Eut(s,d,f);if(!p)return;const{func:E}=p,v=[];switch(u){case fK.name:v.push(...Ejt(t,E));break;case mK.name:const b=gjt(E);if(!b)return;v.push(..._jt(t,E,b));break;case pK.name:if(!w0(E))return;v.push(...Djt(t,E));break;default:return H.fail("invalid action")}return{renameFilename:void 0,renameLocation:void 0,edits:v}}function gut(t){let u=!1;return t.forEachChild(function s(d){if(rw(d)){u=!0;return}!gr(d)&&!td(d)&&!w0(d)&&ao(d,s)}),u}function Eut(t,u,s){const d=ya(t,u),f=s.getTypeChecker(),p=pjt(t,f,d.parent);if(p&&!gut(p.body)&&!f.containsArgumentsReference(p))return{selectedVariableDeclaration:!0,func:p};const E=Pm(d);if(E&&(w0(E)||Z0(E))&&!Hm(E.body,d)&&!gut(E.body)&&!f.containsArgumentsReference(E))return w0(E)&&Dut(t,f,E)?void 0:{selectedVariableDeclaration:!1,func:E}}function mjt(t){return ra(t)||Ad(t)&&t.declarations.length===1}function pjt(t,u,s){if(!mjt(s))return;const f=(ra(s)?s:Pn(s.declarations)).initializer;if(f&&(Z0(f)||w0(f)&&!Dut(t,u,f)))return f}function _ut(t){if(Wt(t)){const u=q.createReturnStatement(t),s=t.getSourceFile();return Pt(u,t),Kf(u),YH(t,u,s,void 0,!0),q.createBlock([u],!0)}else return t}function gjt(t){const u=t.parent;if(!ra(u)||!ZN(u))return;const s=u.parent,d=s.parent;if(!(!Ad(s)||!Jl(d)||!at(u.name)))return{variableDeclaration:u,variableDeclarationList:s,statement:d,name:u.name}}function Ejt(t,u){const{file:s}=t,d=_ut(u.body),f=q.createFunctionExpression(u.modifiers,u.asteriskToken,void 0,u.typeParameters,u.parameters,u.type,d);return iu.ChangeTracker.with(t,p=>p.replaceNode(s,u,f))}function _jt(t,u,s){const{file:d}=t,f=_ut(u.body),{variableDeclaration:p,variableDeclarationList:E,statement:v,name:b}=s;Dfe(v);const B=p2(p)&32|Dh(u),k=q.createModifiersFromModifierFlags(B),T=q.createFunctionDeclaration(S(k)?k:void 0,u.asteriskToken,b,u.typeParameters,u.parameters,u.type,f);return E.declarations.length===1?iu.ChangeTracker.with(t,M=>M.replaceNode(d,v,T)):iu.ChangeTracker.with(t,M=>{M.delete(d,p),M.insertNodeAfter(d,v,T)})}function Djt(t,u){const{file:s}=t,f=u.body.statements[0];let p;xjt(u.body,f)?(p=f.expression,Kf(p),Rk(f,p)):p=u.body;const E=q.createArrowFunction(u.modifiers,u.typeParameters,u.parameters,u.type,q.createToken(39),p);return iu.ChangeTracker.with(t,v=>v.replaceNode(s,u,E))}function xjt(t,u){return t.statements.length===1&&jp(u)&&!!u.expression}function Dut(t,u,s){return!!s.name&&Y0.Core.isSymbolReferencedInFile(s.name,u,t)}var R8e,xut,fK,mK,pK,vjt=o({"src/services/refactors/convertArrowFunctionOrFunctionExpression.ts"(){or(),l_(),R8e="Convert arrow function or function expression",xut=to(F.Convert_arrow_function_or_function_expression),fK={name:"Convert to anonymous function",description:to(F.Convert_to_anonymous_function),kind:"refactor.rewrite.function.anonymous"},mK={name:"Convert to named function",description:to(F.Convert_to_named_function),kind:"refactor.rewrite.function.named"},pK={name:"Convert to arrow function",description:to(F.Convert_to_arrow_function),kind:"refactor.rewrite.function.arrow"},l3(R8e,{kinds:[fK.kind,mK.kind,pK.kind],getEditsForAction:fjt,getAvailableActions:hjt})}}),Cjt={},bjt=o({"src/services/_namespaces/ts.refactor.convertArrowFunctionOrFunctionExpression.ts"(){vjt()}});function yjt(t){const{file:u,startPosition:s}=t;return _h(u)||!but(u,s,t.program.getTypeChecker())?Dt:[{name:dee,description:H8e,actions:[K8e]}]}function kjt(t,u){H.assert(u===dee,"Unexpected action name");const{file:s,startPosition:d,program:f,cancellationToken:p,host:E}=t,v=but(s,d,f.getTypeChecker());if(!v||!p)return;const b=Ajt(v,f,p);return b.valid?{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,k=>Fjt(s,f,E,k,v,b))}:{edits:[]}}function Fjt(t,u,s,d,f,p){const E=p.signature,v=Vt(Aut(f,u,s),k=>dl(k));if(E){const k=Vt(Aut(E,u,s),T=>dl(T));B(E,k)}B(f,v);const b=pi(p.functionCalls,(k,T)=>rl(k.pos,T.pos));for(const k of b)if(k.arguments&&k.arguments.length){const T=dl(Ijt(f,k.arguments),!0);d.replaceNodeRange(zn(k),Pn(k.arguments),yr(k.arguments),T,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}function B(k,T){d.replaceNodeRangeWithNodes(t,Pn(k.parameters),yr(k.parameters),T,{joiner:", ",indentation:0,leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Include})}}function Ajt(t,u,s){const d=Ojt(t),f=fc(t)?Rjt(t):[],p=li([...d,...f],Cx),E=u.getTypeChecker(),v=Vu(p,T=>Y0.getReferenceEntriesForNode(-1,T,u,u.getSourceFiles(),s)),b=B(v);return ye(b.declarations,T=>kt(p,T))||(b.valid=!1),b;function B(T){const M={accessExpressions:[],typeUsages:[]},z={functionCalls:[],declarations:[],classReferences:M,valid:!0},j=Vt(d,k),J=Vt(f,k),K=fc(t),Y=Vt(d,oe=>O8e(oe,E));for(const oe of T){if(oe.kind===Y0.EntryKind.Span){z.valid=!1;continue}if(kt(Y,k(oe.node))){if(Tjt(oe.node.parent)){z.signature=oe.node.parent;continue}const ge=Cut(oe);if(ge){z.functionCalls.push(ge);continue}}const se=O8e(oe.node,E);if(se&&kt(Y,se)){const ge=j8e(oe);if(ge){z.declarations.push(ge);continue}}if(kt(j,k(oe.node))||TM(oe.node)){if(vut(oe))continue;const ae=j8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=Cut(oe);if(Ce){z.functionCalls.push(Ce);continue}}if(K&&kt(J,k(oe.node))){if(vut(oe))continue;const ae=j8e(oe);if(ae){z.declarations.push(ae);continue}const Ce=Sjt(oe);if(Ce){M.accessExpressions.push(Ce);continue}if(Jc(t.parent)){const ne=Bjt(oe);if(ne){M.typeUsages.push(ne);continue}}}z.valid=!1}return z}function k(T){const M=E.getSymbolAtLocation(T);return M&&ASe(M,E)}}function O8e(t,u){const s=DK(t);if(s){const d=u.getContextualTypeForObjectLiteralElement(s),f=d==null?void 0:d.getSymbol();if(f&&!(Gl(f)&6))return f}}function vut(t){const u=t.node;if(bf(u.parent)||u_(u.parent)||_1(u.parent)||Jx(u.parent)||th(u.parent)||ic(u.parent))return u}function j8e(t){if(X1(t.node.parent))return t.node}function Cut(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 213:case 214:const d=ar(s,UE);if(d&&d.expression===u)return d;break;case 211:const f=ar(s,Ru);if(f&&f.parent&&f.name===u){const E=ar(f.parent,UE);if(E&&E.expression===f)return E}break;case 212:const p=ar(s,q0);if(p&&p.parent&&p.argumentExpression===u){const E=ar(p.parent,UE);if(E&&E.expression===p)return E}break}}}function Sjt(t){if(t.node.parent){const u=t.node,s=u.parent;switch(s.kind){case 211:const d=ar(s,Ru);if(d&&d.expression===u)return d;break;case 212:const f=ar(s,q0);if(f&&f.expression===u)return f;break}}}function Bjt(t){const u=t.node;if(Pk(u)===2||$j(u.parent))return u}function but(t,u,s){const d=NM(t,u),f=nye(d);if(!wjt(d)&&f&&Ljt(f,s)&&Hm(f,d)&&!(f.body&&Hm(f.body,d)))return f}function wjt(t){const u=Tn(t,z8);if(u){const s=Tn(u,d=>!z8(d));return!!s&&U0(s)}return!1}function Tjt(t){return u3(t)&&(Ch(t.parent)||fm(t.parent))}function Ljt(t,u){var s;if(!Njt(t.parameters,u))return!1;switch(t.kind){case 262:return yut(t)&&cee(t,u);case 174:if(ys(t.parent)){const d=O8e(t.name,u);return((s=d==null?void 0:d.declarations)==null?void 0:s.length)===1&&cee(t,u)}return cee(t,u);case 176:return Jc(t.parent)?yut(t.parent)&&cee(t,u):kut(t.parent.parent)&&cee(t,u);case 218:case 219:return kut(t.parent)}return!1}function cee(t,u){return!!t.body&&!u.isImplementationOfOverload(t)}function yut(t){return t.name?!0:!!ow(t,90)}function Njt(t,u){return Mjt(t)>=Sut&&ye(t,s=>Pjt(s,u))}function Pjt(t,u){if(U_(t)){const s=u.getTypeAtLocation(t);if(!u.isArrayType(s)&&!u.isTupleType(s))return!1}return!t.modifiers&&at(t.name)}function kut(t){return ra(t)&&K8(t)&&at(t.name)&&!t.type}function V8e(t){return t.length>0&&rw(t[0].name)}function Mjt(t){return V8e(t)?t.length-1:t.length}function Fut(t){return V8e(t)&&(t=q.createNodeArray(t.slice(1),t.hasTrailingComma)),t}function zjt(t,u){return at(u)&&U4(u)===t?q.createShorthandPropertyAssignment(t):q.createPropertyAssignment(t,u)}function Ijt(t,u){const s=Fut(t.parameters),d=U_(yr(s)),f=d?u.slice(0,s.length-1):u,p=Vt(f,(v,b)=>{const B=Dme(s[b]),k=zjt(B,v);return Kf(k.name),Uc(k)&&Kf(k.initializer),Rk(v,k),k});if(d&&u.length>=s.length){const v=u.slice(s.length-1),b=q.createPropertyAssignment(Dme(yr(s)),q.createArrayLiteralExpression(v));p.push(b)}return q.createObjectLiteralExpression(p,!1)}function Aut(t,u,s){const d=u.getTypeChecker(),f=Fut(t.parameters),p=Vt(f,k),E=q.createObjectBindingPattern(p),v=T(f);let b;ye(f,j)&&(b=q.createObjectLiteralExpression());const B=q.createParameterDeclaration(void 0,void 0,E,void 0,v,b);if(V8e(t.parameters)){const J=t.parameters[0],K=q.createParameterDeclaration(void 0,void 0,J.name,void 0,J.type);return Kf(K.name),Rk(J.name,K.name),J.type&&(Kf(K.type),Rk(J.type,K.type)),q.createNodeArray([K,B])}return q.createNodeArray([B]);function k(J){const K=q.createBindingElement(void 0,void 0,Dme(J),U_(J)&&j(J)?q.createArrayLiteralExpression():J.initializer);return Kf(K),J.initializer&&K.initializer&&Rk(J.initializer,K.initializer),K}function T(J){const K=Vt(J,M);return n_(q.createTypeLiteralNode(K),1)}function M(J){let K=J.type;!K&&(J.initializer||U_(J))&&(K=z(J));const Y=q.createPropertySignature(void 0,Dme(J),j(J)?q.createToken(58):J.questionToken,K);return Kf(Y),Rk(J.name,Y.name),J.type&&Y.type&&Rk(J.type,Y.type),Y}function z(J){const K=d.getTypeAtLocation(J);return HM(K,J,u,s)}function j(J){if(U_(J)){const K=d.getTypeAtLocation(J);return!d.isTupleType(K)}return d.isOptionalParameter(J)}}function Dme(t){return U4(t.name)}function Rjt(t){switch(t.parent.kind){case 263:const u=t.parent;return u.name?[u.name]:[H.checkDefined(ow(u,90),"Nameless class declaration should be a default export")];case 231:const d=t.parent,f=t.parent.parent,p=d.name;return p?[p,f.name]:[f.name]}}function Ojt(t){switch(t.kind){case 262:return t.name?[t.name]:[H.checkDefined(ow(t,90),"Nameless function declaration should be a default export")];case 174:return[t.name];case 176:const s=H.checkDefined(a0(t,137,t.getSourceFile()),"Constructor declaration should have constructor keyword");return t.parent.kind===231?[t.parent.parent.name,s]:[s];case 219:return[t.parent.name];case 218:return t.name?[t.name,t.parent.name]:[t.parent.name];default:return H.assertNever(t,`Unexpected function declaration kind ${t.kind}`)}}var dee,Sut,H8e,K8e,jjt=o({"src/services/refactors/convertParamsToDestructuredObject.ts"(){or(),l_(),dee="Convert parameters to destructured object",Sut=1,H8e=to(F.Convert_parameters_to_destructured_object),K8e={name:dee,description:H8e,kind:"refactor.rewrite.parameters.toDestructured"},l3(dee,{kinds:[K8e.kind],getEditsForAction:kjt,getAvailableActions:yjt})}}),Vjt={},Hjt=o({"src/services/_namespaces/ts.refactor.convertParamsToDestructuredObject.ts"(){jjt()}});function Kjt(t){const{file:u,startPosition:s}=t,d=But(u,s),f=W8e(d),p=rs(f),E={name:xme,description:vme,actions:[]};return p&&t.triggerReason!=="invoked"?Dt:Y_(f)&&(p||eu(f)&&G8e(f).isValidConcatenation)?(E.actions.push(Cme),[E]):t.preferences.provideRefactorNotApplicableReason?(E.actions.push({...Cme,notApplicableReason:to(F.Can_only_convert_string_concatenations_and_string_literals)}),[E]):Dt}function But(t,u){const s=ya(t,u),d=W8e(s);return!G8e(d).isValidConcatenation&&Cf(d.parent)&&eu(d.parent.parent)?d.parent.parent:s}function Wjt(t,u){const{file:s,startPosition:d}=t,f=But(s,d);switch(u){case vme:return{edits:Gjt(t,f)};default:return H.fail("invalid action")}}function Gjt(t,u){const s=W8e(u),d=t.file,f=Ujt(G8e(s),d),p=Ev(d.text,s.end);if(p){const E=p[p.length-1],v={pos:p[0].pos,end:E.end};return iu.ChangeTracker.with(t,b=>{b.deleteRange(d,v),b.replaceNode(d,s,f)})}else return iu.ChangeTracker.with(t,E=>E.replaceNode(d,s,f))}function Jjt(t){return!(t.operatorToken.kind===64||t.operatorToken.kind===65)}function W8e(t){return Tn(t.parent,s=>{switch(s.kind){case 211:case 212:return!1;case 228:case 226:return!(eu(s.parent)&&Jjt(s.parent));default:return"quit"}})||t}function G8e(t){const u=E=>{if(!eu(E))return{nodes:[E],operators:[],validOperators:!0,hasString:rs(E)||T7(E)};const{nodes:v,operators:b,hasString:B,validOperators:k}=u(E.left);if(!(B||rs(E.right)||dY(E.right)))return{nodes:[E],operators:[],hasString:!1,validOperators:!0};const T=E.operatorToken.kind===40,M=k&&T;return v.push(E.right),b.push(E.operatorToken),{nodes:v,operators:b,hasString:!0,validOperators:M}},{nodes:s,operators:d,validOperators:f,hasString:p}=u(t);return{nodes:s,operators:d,isValidConcatenation:f&&p}}function $jt(t){return t.replace(/\\.|[$`]/g,u=>u[0]==="\\"?u:"\\"+u)}function wut(t){const u=vB(t)||tFe(t)?-2:-1;return Wc(t).slice(1,u)}function Tut(t,u){const s=[];let d="",f="";for(;t{Lut(se);const ae=ge===M.templateSpans.length-1,Ce=se.literal.text+(ae?j:""),ne=wut(se.literal)+(ae?J:"");return q.createTemplateSpan(se.expression,Y&&ae?q.createTemplateTail(Ce,ne):q.createTemplateMiddle(Ce,ne))});B.push(...oe)}else{const oe=Y?q.createTemplateTail(j,J):q.createTemplateMiddle(j,J);f(K,oe),B.push(q.createTemplateSpan(M,oe))}}return q.createTemplateExpression(k,B)}function Lut(t){const u=t.getSourceFile();jM(t,t.expression,u,3,!1),YH(t.expression,t.expression,u,3,!1)}function qjt(t){return Cf(t)&&(Lut(t),t=t.expression),t}var xme,vme,Cme,Nut,Put,Zjt=o({"src/services/refactors/convertStringOrTemplateLiteral.ts"(){or(),l_(),xme="Convert to template string",vme=to(F.Convert_to_template_string),Cme={name:xme,description:vme,kind:"refactor.rewrite.string"},l3(xme,{kinds:[Cme.kind],getEditsForAction:Wjt,getAvailableActions:Kjt}),Nut=(t,u)=>(s,d)=>{s(d,f)=>{for(;d.length>0;){const p=d.shift();jM(t[p],f,u,3,!1),s(p,f)}}}}),Yjt={},Qjt=o({"src/services/_namespaces/ts.refactor.convertStringOrTemplateLiteral.ts"(){Zjt()}});function Xjt(t){const u=Mut(t,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:hee,description:kme,actions:[{...Fme,notApplicableReason:u.error}]}]:Dt:[{name:hee,description:kme,actions:[Fme]}]:Dt}function eVt(t,u){const s=Mut(t);return H.assert(s&&!sD(s),"Expected applicable refactor info"),{edits:iu.ChangeTracker.with(t,f=>sVt(t.file,t.program.getTypeChecker(),f,s)),renameFilename:void 0,renameLocation:void 0}}function bme(t){return eu(t)||SB(t)}function tVt(t){return Od(t)||jp(t)||Jl(t)}function yme(t){return bme(t)||tVt(t)}function Mut(t,u=!0){const{file:s,program:d}=t,f=u9(t),p=f.length===0;if(p&&!u)return;const E=ya(s,f.start),v=hX(s,f.start+f.length),b=Kc(E.pos,v&&v.end>=E.pos?v.getEnd():E.getEnd()),B=p?aVt(E):rVt(E,b),k=B&&yme(B)?oVt(B):void 0;if(!k)return{error:to(F.Could_not_find_convertible_access_expression)};const T=d.getTypeChecker();return SB(k)?iVt(k,T):nVt(k)}function iVt(t,u){const s=t.condition,d=$8e(t.whenTrue);if(!d||u.isNullableType(u.getTypeAtLocation(d)))return{error:to(F.Could_not_find_convertible_access_expression)};if((Ru(s)||at(s))&&J8e(s,d.expression))return{finalExpression:d,occurrences:[s],expression:t};if(eu(s)){const f=zut(d.expression,s);return f?{finalExpression:d,occurrences:f,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}}function nVt(t){if(t.operatorToken.kind!==56)return{error:to(F.Can_only_convert_logical_AND_access_chains)};const u=$8e(t.right);if(!u)return{error:to(F.Could_not_find_convertible_access_expression)};const s=zut(u.expression,t.left);return s?{finalExpression:u,occurrences:s,expression:t}:{error:to(F.Could_not_find_matching_access_expressions)}}function zut(t,u){const s=[];for(;eu(u)&&u.operatorToken.kind===56;){const f=J8e(l0(t),l0(u.right));if(!f)break;s.push(f),t=f,u=u.left}const d=J8e(t,u);return d&&s.push(d),s.length>0?s:void 0}function J8e(t,u){if(!(!at(u)&&!Ru(u)&&!q0(u)))return uVt(t,u)?u:void 0}function uVt(t,u){for(;(Mo(t)||Ru(t)||q0(t))&&gK(t)!==gK(u);)t=t.expression;for(;Ru(t)&&Ru(u)||q0(t)&&q0(u);){if(gK(t)!==gK(u))return!1;t=t.expression,u=u.expression}return at(t)&&at(u)&&t.getText()===u.getText()}function gK(t){if(at(t)||Mm(t))return t.getText();if(Ru(t))return gK(t.name);if(q0(t))return gK(t.argumentExpression)}function rVt(t,u){for(;t.parent;){if(yme(t)&&u.length!==0&&t.end>=u.start+u.length)return t;t=t.parent}}function aVt(t){for(;t.parent;){if(yme(t)&&!yme(t.parent))return t;t=t.parent}}function oVt(t){if(bme(t))return t;if(Jl(t)){const u=eB(t),s=u==null?void 0:u.initializer;return s&&bme(s)?s:void 0}return t.expression&&bme(t.expression)?t.expression:void 0}function $8e(t){if(t=l0(t),eu(t))return $8e(t.left);if((Ru(t)||q0(t)||Mo(t))&&!Q1(t))return t}function Iut(t,u,s){if(Ru(u)||q0(u)||Mo(u)){const d=Iut(t,u.expression,s),f=s.length>0?s[s.length-1]:void 0,p=(f==null?void 0:f.getText())===u.expression.getText();if(p&&s.pop(),Mo(u))return p?q.createCallChain(d,q.createToken(29),u.typeArguments,u.arguments):q.createCallChain(d,u.questionDotToken,u.typeArguments,u.arguments);if(Ru(u))return p?q.createPropertyAccessChain(d,q.createToken(29),u.name):q.createPropertyAccessChain(d,u.questionDotToken,u.name);if(q0(u))return p?q.createElementAccessChain(d,q.createToken(29),u.argumentExpression):q.createElementAccessChain(d,u.questionDotToken,u.argumentExpression)}return u}function sVt(t,u,s,d,f){const{finalExpression:p,occurrences:E,expression:v}=d,b=E[E.length-1],B=Iut(u,p,E);B&&(Ru(B)||q0(B)||Mo(B))&&(eu(v)?s.replaceNodeRange(t,b,p,B):SB(v)&&s.replaceNode(t,v,q.createBinaryExpression(B,q.createToken(61),v.whenFalse)))}var hee,kme,Fme,lVt=o({"src/services/refactors/convertToOptionalChainExpression.ts"(){or(),l_(),hee="Convert to optional chain expression",kme=to(F.Convert_to_optional_chain_expression),Fme={name:hee,description:kme,kind:"refactor.rewrite.expression.optionalChain"},l3(hee,{kinds:[Fme.kind],getEditsForAction:eVt,getAvailableActions:Xjt})}}),cVt={},dVt=o({"src/services/_namespaces/ts.refactor.convertToOptionalChainExpression.ts"(){lVt()}});function Rut(t){const u=t.kind,s=U8e(t.file,u9(t),t.triggerReason==="invoked"),d=s.targetRange;if(d===void 0){if(!s.errors||s.errors.length===0||!t.preferences.provideRefactorNotApplicableReason)return Dt;const j=[];return Zv(pw.kind,u)&&j.push({name:fw,description:pw.description,actions:[{...pw,notApplicableReason:z(s.errors)}]}),Zv(mw.kind,u)&&j.push({name:fw,description:mw.description,actions:[{...mw,notApplicableReason:z(s.errors)}]}),j}const f=EVt(d,t);if(f===void 0)return Dt;const p=[],E=new Map;let v;const b=[],B=new Map;let k,T=0;for(const{functionExtraction:j,constantExtraction:J}of f){if(Zv(pw.kind,u)){const K=j.description;j.errors.length===0?E.has(K)||(E.set(K,!0),p.push({description:K,name:`function_scope_${T}`,kind:pw.kind})):v||(v={description:K,name:`function_scope_${T}`,notApplicableReason:z(j.errors),kind:pw.kind})}if(Zv(mw.kind,u)){const K=J.description;J.errors.length===0?B.has(K)||(B.set(K,!0),b.push({description:K,name:`constant_scope_${T}`,kind:mw.kind})):k||(k={description:K,name:`constant_scope_${T}`,notApplicableReason:z(J.errors),kind:mw.kind})}T++}const M=[];return p.length?M.push({name:fw,description:to(F.Extract_function),actions:p}):t.preferences.provideRefactorNotApplicableReason&&v&&M.push({name:fw,description:to(F.Extract_function),actions:[v]}),b.length?M.push({name:fw,description:to(F.Extract_constant),actions:b}):t.preferences.provideRefactorNotApplicableReason&&k&&M.push({name:fw,description:to(F.Extract_constant),actions:[k]}),M.length?M:Dt;function z(j){let J=j[0].messageText;return typeof J!="string"&&(J=J.messageText),J}}function Out(t,u){const d=U8e(t.file,u9(t)).targetRange,f=/^function_scope_(\d+)$/.exec(u);if(f){const E=+f[1];return H.assert(isFinite(E),"Expected to parse a finite number from the function scope index"),pVt(d,t,E)}const p=/^constant_scope_(\d+)$/.exec(u);if(p){const E=+p[1];return H.assert(isFinite(E),"Expected to parse a finite number from the constant scope index"),gVt(d,t,E)}H.fail("Unrecognized action name")}function U8e(t,u,s=!0){const{length:d}=u;if(d===0&&!s)return{errors:[Rd(t,u.start,d,D1.cannotExtractEmpty)]};const f=d===0&&s,p=nSe(t,u.start),E=hX(t,Dc(u)),v=p&&E&&s?hVt(p,E,t):u,b=f?IVt(p):$H(p,t,v),B=f?b:$H(E,t,v);let k=0,T;if(!b||!B)return{errors:[Rd(t,u.start,d,D1.cannotExtractRange)]};if(b.flags&16777216)return{errors:[Rd(t,u.start,d,D1.cannotExtractJSDoc)]};if(b.parent!==B.parent)return{errors:[Rd(t,u.start,d,D1.cannotExtractRange)]};if(b!==B){if(!Vut(b.parent))return{errors:[Rd(t,u.start,d,D1.cannotExtractRange)]};const oe=[];for(const se of b.parent.statements){if(se===b||oe.length){const ge=Y(se);if(ge)return{errors:ge};oe.push(se)}if(se===B)break}return oe.length?{targetRange:{range:oe,facts:k,thisNode:T}}:{errors:[Rd(t,u.start,d,D1.cannotExtractRange)]}}if(jp(b)&&!b.expression)return{errors:[Rd(t,u.start,d,D1.cannotExtractRange)]};const M=j(b),z=J(M)||Y(M);if(z)return{errors:z};return{targetRange:{range:fVt(M),facts:k,thisNode:T}};function j(oe){if(jp(oe)){if(oe.expression)return oe.expression}else if(Jl(oe)||Ad(oe)){const se=Jl(oe)?oe.declarationList.declarations:oe.declarations;let ge=0,ae;for(const Ce of se)Ce.initializer&&(ge++,ae=Ce.initializer);if(ge===1)return ae}else if(ra(oe)&&oe.initializer)return oe.initializer;return oe}function J(oe){if(at(Od(oe)?oe.expression:oe))return[Tu(oe,D1.cannotExtractIdentifier)]}function K(oe,se){let ge=oe;for(;ge!==se;){if(ge.kind===172){No(ge)&&(k|=32);break}else if(ge.kind===169){Pm(ge).kind===176&&(k|=32);break}else ge.kind===174&&No(ge)&&(k|=32);ge=ge.parent}}function Y(oe){let se;if((Se=>{Se[Se.None=0]="None",Se[Se.Break=1]="Break",Se[Se.Continue=2]="Continue",Se[Se.Return=4]="Return"})(se||(se={})),H.assert(oe.pos<=oe.end,"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)"),H.assert(!pg(oe.pos),"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)"),!ua(oe)&&!(Y_(oe)&&jut(oe))&&!X8e(oe))return[Tu(oe,D1.statementOrExpressionExpected)];if(oe.flags&33554432)return[Tu(oe,D1.cannotExtractAmbientBlock)];const ge=Qd(oe);ge&&K(oe,ge);let ae,Ce=4,ne;if(ve(oe),k&8){const Se=tf(oe,!1,!1);(Se.kind===262||Se.kind===174&&Se.parent.kind===210||Se.kind===218)&&(k|=16)}return ae;function ve(Se){if(ae)return!0;if(X1(Se)){const pe=Se.kind===260?Se.parent.parent:Se;if(Qu(pe,32))return(ae||(ae=[])).push(Tu(Se,D1.cannotExtractExportedEntity)),!0}switch(Se.kind){case 272:return(ae||(ae=[])).push(Tu(Se,D1.cannotExtractImport)),!0;case 277:return(ae||(ae=[])).push(Tu(Se,D1.cannotExtractExportedEntity)),!0;case 108:if(Se.parent.kind===213){const pe=Qd(Se);if(pe===void 0||pe.pos=u.start+u.length)return(ae||(ae=[])).push(Tu(Se,D1.cannotExtractSuper)),!0}else k|=8,T=Se;break;case 219:ao(Se,function pe(fe){if(rw(fe))k|=8,T=Se;else{if(gr(fe)||Co(fe)&&!Z0(fe))return!1;ao(fe,pe)}});case 263:case 262:ca(Se.parent)&&Se.parent.externalModuleIndicator===void 0&&(ae||(ae=[])).push(Tu(Se,D1.functionWillNotBeVisibleInTheNewScope));case 231:case 218:case 174:case 176:case 177:case 178:return!1}const Ne=Ce;switch(Se.kind){case 245:Ce&=-5;break;case 258:Ce=0;break;case 241:Se.parent&&Se.parent.kind===258&&Se.parent.finallyBlock===Se&&(Ce=4);break;case 297:case 296:Ce|=1;break;default:Tx(Se,!1)&&(Ce|=3);break}switch(Se.kind){case 197:case 110:k|=8,T=Se;break;case 256:{const pe=Se.label;(ne||(ne=[])).push(pe.escapedText),ao(Se,ve),ne.pop();break}case 252:case 251:{const pe=Se.label;pe?kt(ne,pe.escapedText)||(ae||(ae=[])).push(Tu(Se,D1.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange)):Ce&(Se.kind===252?1:2)||(ae||(ae=[])).push(Tu(Se,D1.cannotExtractRangeContainingConditionalBreakOrContinueStatements));break}case 223:k|=4;break;case 229:k|=2;break;case 253:Ce&4?k|=1:(ae||(ae=[])).push(Tu(Se,D1.cannotExtractRangeContainingConditionalReturnStatement));break;default:ao(Se,ve);break}Ce=Ne}}}function hVt(t,u,s){const d=t.getStart(s);let f=u.getEnd();return s.text.charCodeAt(f)===59&&f++,{start:d,length:f-d}}function fVt(t){if(ua(t))return[t];if(Y_(t))return Od(t.parent)?[t.parent]:t;if(X8e(t))return t}function q8e(t){return Z0(t)?n0e(t.body):U0(t)||ca(t)||aE(t)||gr(t)}function mVt(t){let u=D5(t.range)?Pn(t.range):t.range;if(t.facts&8&&!(t.facts&16)){const d=Qd(u);if(d){const f=Tn(u,U0);return f?[f,d]:[d]}}const s=[];for(;;)if(u=u.parent,u.kind===169&&(u=Tn(u,d=>U0(d)).parent),q8e(u)&&(s.push(u),u.kind===312))return s}function pVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,functionErrorsPerScope:E,exposedVariableDeclarations:v}}=Z8e(t,u);return H.assert(!E[s].length,"The extraction went missing? How?"),u.cancellationToken.throwIfCancellationRequested(),bVt(f,d[s],p[s],v,t,u)}function gVt(t,u,s){const{scopes:d,readsAndWrites:{target:f,usagesPerScope:p,constantErrorsPerScope:E,exposedVariableDeclarations:v}}=Z8e(t,u);H.assert(!E[s].length,"The extraction went missing? How?"),H.assert(v.length===0,"Extract constant accepted a range containing a variable declaration?"),u.cancellationToken.throwIfCancellationRequested();const b=Wt(f)?f:f.statements[0].expression;return yVt(b,d[s],p[s],t.facts,u)}function EVt(t,u){const{scopes:s,readsAndWrites:{functionErrorsPerScope:d,constantErrorsPerScope:f}}=Z8e(t,u);return s.map((E,v)=>{const b=_Vt(E),B=DVt(E),k=U0(E)?xVt(E):gr(E)?vVt(E):CVt(E);let T,M;return k===1?(T=t3(to(F.Extract_to_0_in_1_scope),[b,"global"]),M=t3(to(F.Extract_to_0_in_1_scope),[B,"global"])):k===0?(T=t3(to(F.Extract_to_0_in_1_scope),[b,"module"]),M=t3(to(F.Extract_to_0_in_1_scope),[B,"module"])):(T=t3(to(F.Extract_to_0_in_1),[b,k]),M=t3(to(F.Extract_to_0_in_1),[B,k])),v===0&&!gr(E)&&(M=t3(to(F.Extract_to_0_in_enclosing_scope),[B])),{functionExtraction:{description:T,errors:d[v]},constantExtraction:{description:M,errors:f[v]}}})}function Z8e(t,u){const{file:s}=u,d=mVt(t),f=MVt(t,s),p=zVt(t,d,f,s,u.program.getTypeChecker(),u.cancellationToken);return{scopes:d,readsAndWrites:p}}function _Vt(t){return U0(t)?"inner function":gr(t)?"method":"function"}function DVt(t){return gr(t)?"readonly field":"constant"}function xVt(t){switch(t.kind){case 176:return"constructor";case 218:case 262:return t.name?`function '${t.name.text}'`:GX;case 219:return"arrow function";case 174:return`method '${t.name.getText()}'`;case 177:return`'get ${t.name.getText()}'`;case 178:return`'set ${t.name.getText()}'`;default:H.assertNever(t,`Unexpected scope kind ${t.kind}`)}}function vVt(t){return t.kind===263?t.name?`class '${t.name.text}'`:"anonymous class declaration":t.name?`class expression '${t.name.text}'`:"anonymous class expression"}function CVt(t){return t.kind===268?`namespace '${t.parent.name.getText()}'`:t.externalModuleIndicator?0:1}function bVt(t,u,{usages:s,typeParameterUsages:d,substitutions:f},p,E,v){const b=v.program.getTypeChecker(),B=js(v.program.getCompilerOptions()),k=I1.createImportAdder(v.file,v.program,v.preferences,v.host),T=u.getSourceFile(),M=Ok(gr(u)?"newMethod":"newFunction",T),z=Xn(u),j=q.createIdentifier(M);let J;const K=[],Y=[];let oe;s.forEach((je,Ke)=>{let Gt;if(!z){let Ie=b.getTypeOfSymbolAtLocation(je.symbol,je.node);Ie=b.getBaseTypeOfLiteralType(Ie),Gt=I1.typeToAutoImportableTypeNode(b,k,Ie,u,B,1)}const Yt=q.createParameterDeclaration(void 0,void 0,Ke,void 0,Gt);K.push(Yt),je.usage===2&&(oe||(oe=[])).push(je),Y.push(q.createIdentifier(Ke))});const ge=Ea(d.values(),je=>({type:je,declaration:FVt(je,v.startPosition)})).sort(AVt),ae=ge.length===0?void 0:qi(ge,({declaration:je})=>je),Ce=ae!==void 0?ae.map(je=>q.createTypeReferenceNode(je.name,void 0)):void 0;if(Wt(t)&&!z){const je=b.getContextualType(t);J=b.typeToTypeNode(je,u,1)}const{body:ne,returnValueProperty:ve}=BVt(t,p,oe,f,!!(E.facts&1));Kf(ne);let Se;const Ne=!!(E.facts&16);if(gr(u)){const je=z?[]:[q.createModifier(123)];E.facts&32&&je.push(q.createModifier(126)),E.facts&4&&je.push(q.createModifier(134)),Se=q.createMethodDeclaration(je.length?je:void 0,E.facts&2?q.createToken(42):void 0,j,void 0,ae,K,J,ne)}else Ne&&K.unshift(q.createParameterDeclaration(void 0,void 0,"this",void 0,b.typeToTypeNode(b.getTypeAtLocation(E.thisNode),u,1),void 0)),Se=q.createFunctionDeclaration(E.facts&4?[q.createToken(134)]:void 0,E.facts&2?q.createToken(42):void 0,j,ae,K,J,ne);const pe=iu.ChangeTracker.fromContext(v),fe=(D5(E.range)?yr(E.range):E.range).end,xe=LVt(fe,u);xe?pe.insertNodeBefore(v.file,xe,Se,!0):pe.insertNodeAtEndOfScope(v.file,u,Se),k.writeFixes(pe);const Be=[],We=SVt(u,E,M);Ne&&Y.unshift(q.createIdentifier("this"));let Ae=q.createCallExpression(Ne?q.createPropertyAccessExpression(We,"call"):We,Ce,Y);if(E.facts&2&&(Ae=q.createYieldExpression(q.createToken(42),Ae)),E.facts&4&&(Ae=q.createAwaitExpression(Ae)),Q8e(t)&&(Ae=q.createJsxExpression(void 0,Ae)),p.length&&!oe)if(H.assert(!ve,"Expected no returnValueProperty"),H.assert(!(E.facts&1),"Expected RangeFacts.HasReturn flag to be unset"),p.length===1){const je=p[0];Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(dl(je.name),void 0,dl(je.type),Ae)],je.parent.flags)))}else{const je=[],Ke=[];let Gt=p[0].parent.flags,Yt=!1;for(const st of p){je.push(q.createBindingElement(void 0,void 0,dl(st.name)));const Bt=b.typeToTypeNode(b.getBaseTypeOfLiteralType(b.getTypeAtLocation(st)),u,1);Ke.push(q.createPropertySignature(void 0,st.symbol.name,void 0,Bt)),Yt=Yt||st.type!==void 0,Gt=Gt&st.parent.flags}const Ie=Yt?q.createTypeLiteralNode(Ke):void 0;Ie&&Yn(Ie,1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(q.createObjectBindingPattern(je),void 0,Ie,Ae)],Gt)))}else if(p.length||oe){if(p.length)for(const Ke of p){let Gt=Ke.parent.flags;Gt&2&&(Gt=Gt&-3|1),Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(Ke.symbol.name,void 0,Ye(Ke.type))],Gt)))}ve&&Be.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(ve,void 0,Ye(J))],1)));const je=Y8e(p,oe);ve&&je.unshift(q.createShorthandPropertyAssignment(ve)),je.length===1?(H.assert(!ve,"Shouldn't have returnValueProperty here"),Be.push(q.createExpressionStatement(q.createAssignment(je[0].name,Ae))),E.facts&1&&Be.push(q.createReturnStatement())):(Be.push(q.createExpressionStatement(q.createAssignment(q.createObjectLiteralExpression(je),Ae))),ve&&Be.push(q.createReturnStatement(q.createIdentifier(ve))))}else E.facts&1?Be.push(q.createReturnStatement(Ae)):D5(E.range)?Be.push(q.createExpressionStatement(Ae)):Be.push(Ae);D5(E.range)?pe.replaceNodeRangeWithNodes(v.file,Pn(E.range),yr(E.range),Be):pe.replaceNodeWithNodes(v.file,E.range,Be);const De=pe.getChanges(),Je=(D5(E.range)?Pn(E.range):E.range).getSourceFile().fileName,mt=ZH(De,Je,M,!1);return{renameFilename:Je,renameLocation:mt,edits:De};function Ye(je){if(je===void 0)return;const Ke=dl(je);let Gt=Ke;for(;M7(Gt);)Gt=Gt.type;return Mv(Gt)&&Le(Gt.types,Yt=>Yt.kind===157)?Ke:q.createUnionTypeNode([Ke,q.createKeywordTypeNode(157)])}}function yVt(t,u,{substitutions:s},d,f){const p=f.program.getTypeChecker(),E=u.getSourceFile(),v=Ru(t)&&!gr(u)&&!p.resolveName(t.name.text,t,111551,!1)&&!ea(t.name)&&!xv(t.name)?t.name.text:Ok(gr(u)?"newProperty":"newLocal",E),b=Xn(u);let B=b||!p.isContextSensitive(t)?void 0:p.typeToTypeNode(p.getContextualType(t),u,1),k=wVt(l0(t),s);({variableType:B,initializer:k}=J(B,k)),Kf(k);const T=iu.ChangeTracker.fromContext(f);if(gr(u)){H.assert(!b,"Cannot extract to a JS class");const K=[];K.push(q.createModifier(123)),d&32&&K.push(q.createModifier(126)),K.push(q.createModifier(148));const Y=q.createPropertyDeclaration(K,v,void 0,B,k);let oe=q.createPropertyAccessExpression(d&32?q.createIdentifier(u.name.getText()):q.createThis(),q.createIdentifier(v));Q8e(t)&&(oe=q.createJsxExpression(void 0,oe));const se=t.pos,ge=NVt(se,u);T.insertNodeBefore(f.file,ge,Y,!0),T.replaceNode(f.file,t,oe)}else{const K=q.createVariableDeclaration(v,void 0,B,k),Y=kVt(t,u);if(Y){T.insertNodeBefore(f.file,Y,K);const oe=q.createIdentifier(v);T.replaceNode(f.file,t,oe)}else if(t.parent.kind===244&&u===Tn(t,q8e)){const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2));T.replaceNode(f.file,t.parent,oe)}else{const oe=q.createVariableStatement(void 0,q.createVariableDeclarationList([K],2)),se=PVt(t,u);if(se.pos===0?T.insertNodeAtTopOfFile(f.file,oe,!1):T.insertNodeBefore(f.file,se,oe,!1),t.parent.kind===244)T.delete(f.file,t.parent);else{let ge=q.createIdentifier(v);Q8e(t)&&(ge=q.createJsxExpression(void 0,ge)),T.replaceNode(f.file,t,ge)}}}const M=T.getChanges(),z=t.getSourceFile().fileName,j=ZH(M,z,v,!0);return{renameFilename:z,renameLocation:j,edits:M};function J(K,Y){if(K===void 0)return{variableType:K,initializer:Y};if(!w0(Y)&&!Z0(Y)||Y.typeParameters)return{variableType:K,initializer:Y};const oe=p.getTypeAtLocation(t),se=Sa(p.getSignaturesOfType(oe,0));if(!se)return{variableType:K,initializer:Y};if(se.getTypeParameters())return{variableType:K,initializer:Y};const ge=[];let ae=!1;for(const Ce of Y.parameters)if(Ce.type)ge.push(Ce);else{const ne=p.getTypeAtLocation(Ce);ne===p.getAnyType()&&(ae=!0),ge.push(q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,Ce.questionToken,Ce.type||p.typeToTypeNode(ne,u,1),Ce.initializer))}if(ae)return{variableType:K,initializer:Y};if(K=void 0,Z0(Y))Y=q.updateArrowFunction(Y,Kp(t)?g2(t):void 0,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.equalsGreaterThanToken,Y.body);else{if(se&&se.thisParameter){const Ce=Ki(ge);if(!Ce||at(Ce.name)&&Ce.name.escapedText!=="this"){const ne=p.getTypeOfSymbolAtLocation(se.thisParameter,t);ge.splice(0,0,q.createParameterDeclaration(void 0,void 0,"this",void 0,p.typeToTypeNode(ne,u,1)))}}Y=q.updateFunctionExpression(Y,Kp(t)?g2(t):void 0,Y.asteriskToken,Y.name,Y.typeParameters,ge,Y.type||p.typeToTypeNode(se.getReturnType(),u,1),Y.body)}return{variableType:K,initializer:Y}}}function kVt(t,u){let s;for(;t!==void 0&&t!==u;){if(ra(t)&&t.initializer===s&&Ad(t.parent)&&t.parent.declarations.length>1)return t;s=t,t=t.parent}}function FVt(t,u){let s;const d=t.symbol;if(d&&d.declarations)for(const f of d.declarations)(s===void 0||f.pos0;if(go(t)&&!p&&d.size===0)return{body:q.createBlock(t.statements,!0),returnValueProperty:void 0};let E,v=!1;const b=q.createNodeArray(go(t)?t.statements.slice(0):[ua(t)?t:q.createReturnStatement(l0(t))]);if(p||d.size){const k=kn(b,B,ua).slice();if(p&&!f&&ua(t)){const T=Y8e(u,s);T.length===1?k.push(q.createReturnStatement(T[0].name)):k.push(q.createReturnStatement(q.createObjectLiteralExpression(T)))}return{body:q.createBlock(k,!0),returnValueProperty:E}}else return{body:q.createBlock(b,!0),returnValueProperty:void 0};function B(k){if(!v&&jp(k)&&p){const T=Y8e(u,s);return k.expression&&(E||(E="__return"),T.unshift(q.createPropertyAssignment(E,yt(k.expression,B,Wt)))),T.length===1?q.createReturnStatement(T[0].name):q.createReturnStatement(q.createObjectLiteralExpression(T))}else{const T=v;v=v||U0(k)||gr(k);const M=d.get(Us(k).toString()),z=M?dl(M):rn(k,B,Dg);return v=T,z}}}function wVt(t,u){return u.size?s(t):t;function s(d){const f=u.get(Us(d).toString());return f?dl(f):rn(d,s,Dg)}}function TVt(t){if(U0(t)){const u=t.body;if(go(u))return u.statements}else{if(aE(t)||ca(t))return t.statements;if(gr(t))return t.members}return Dt}function LVt(t,u){return Le(TVt(u),s=>s.pos>=t&&U0(s)&&!fc(s))}function NVt(t,u){const s=u.members;H.assert(s.length>0,"Found no members");let d,f=!0;for(const p of s){if(p.pos>t)return d||s[0];if(f&&!ko(p)){if(d!==void 0)return p;f=!1}d=p}return d===void 0?H.fail():d}function PVt(t,u){H.assert(!gr(u));let s;for(let d=t;d!==u;d=d.parent)q8e(d)&&(s=d);for(let d=(s||t).parent;;d=d.parent){if(Vut(d)){let f;for(const p of d.statements){if(p.pos>t.pos)break;f=p}return!f&&BB(d)?(H.assert(wV(d.parent.parent),"Grandparent isn't a switch statement"),d.parent.parent):H.checkDefined(f,"prevStatement failed to get set")}H.assert(d!==u,"Didn't encounter a block-like before encountering scope")}}function Y8e(t,u){const s=Vt(t,f=>q.createShorthandPropertyAssignment(f.symbol.name)),d=Vt(u,f=>q.createShorthandPropertyAssignment(f.symbol.name));return s===void 0?d:d===void 0?s:s.concat(d)}function D5(t){return Wa(t)}function MVt(t,u){return D5(t.range)?{pos:Pn(t.range).getStart(u),end:yr(t.range).getEnd()}:t.range}function zVt(t,u,s,d,f,p){const E=new Map,v=[],b=[],B=[],k=[],T=[],M=new Map,z=[];let j;const J=D5(t.range)?t.range.length===1&&Od(t.range[0])?t.range[0].expression:void 0:t.range;let K;if(J===void 0){const xe=t.range,Be=Pn(xe).getStart(),We=yr(xe).end;K=Rd(d,Be,We-Be,D1.expressionExpected)}else f.getTypeAtLocation(J).flags&147456&&(K=Tu(J,D1.uselessConstantType));for(const xe of u){v.push({usages:new Map,typeParameterUsages:new Map,substitutions:new Map}),b.push(new Map),B.push([]);const Be=[];K&&Be.push(K),gr(xe)&&Xn(xe)&&Be.push(Tu(xe,D1.cannotExtractToJSClass)),Z0(xe)&&!go(xe.body)&&Be.push(Tu(xe,D1.cannotExtractToExpressionArrowFunction)),k.push(Be)}const Y=new Map,oe=D5(t.range)?q.createBlock(t.range):t.range,se=D5(t.range)?Pn(t.range):t.range,ge=ae(se);if(ne(oe),ge&&!D5(t.range)&&!sE(t.range)){const xe=f.getContextualType(t.range);Ce(xe)}if(E.size>0){const xe=new Map;let Be=0;for(let We=se;We!==void 0&&Be{v[Be].typeParameterUsages.set(De,Ae)}),Be++),C0e(We))for(const Ae of Sx(We)){const De=f.getTypeAtLocation(Ae);E.has(De.id.toString())&&xe.set(De.id.toString(),De)}H.assert(Be===u.length,"Should have iterated all scopes")}if(T.length){const xe=v0e(u[0],u[0].parent)?u[0]:QE(u[0]);ao(xe,Ne)}for(let xe=0;xe0&&(Be.usages.size>0||Be.typeParameterUsages.size>0)){const De=D5(t.range)?t.range[0]:t.range;k[xe].push(Tu(De,D1.cannotAccessVariablesFromNestedScopes))}t.facts&16&&gr(u[xe])&&B[xe].push(Tu(t.thisNode,D1.cannotExtractFunctionsContainingThisToMethod));let We=!1,Ae;if(v[xe].usages.forEach(De=>{De.usage===2&&(We=!0,De.symbol.flags&106500&&De.symbol.valueDeclaration&&Rf(De.symbol.valueDeclaration,8)&&(Ae=De.symbol.valueDeclaration))}),H.assert(D5(t.range)||z.length===0,"No variable declarations expected if something was extracted"),We&&!D5(t.range)){const De=Tu(t.range,D1.cannotWriteInExpression);B[xe].push(De),k[xe].push(De)}else if(Ae&&xe>0){const De=Tu(Ae,D1.cannotExtractReadonlyPropertyInitializerOutsideConstructor);B[xe].push(De),k[xe].push(De)}else if(j){const De=Tu(j,D1.cannotExtractExportedEntity);B[xe].push(De),k[xe].push(De)}}return{target:oe,usagesPerScope:v,functionErrorsPerScope:B,constantErrorsPerScope:k,exposedVariableDeclarations:z};function ae(xe){return!!Tn(xe,Be=>C0e(Be)&&Sx(Be).length!==0)}function Ce(xe){const Be=f.getSymbolWalker(()=>(p.throwIfCancellationRequested(),!0)),{visitedTypes:We}=Be.walkType(xe);for(const Ae of We)Ae.isTypeParameter()&&E.set(Ae.id.toString(),Ae)}function ne(xe,Be=1){if(ge){const We=f.getTypeAtLocation(xe);Ce(We)}if(X1(xe)&&xe.symbol&&T.push(xe),ld(xe))ne(xe.left,2),ne(xe.right);else if(mbe(xe))ne(xe.operand,2);else if(Ru(xe)||q0(xe))ao(xe,ne);else if(at(xe)){if(!xe.parent||vf(xe.parent)&&xe!==xe.parent.left||Ru(xe.parent)&&xe!==xe.parent.expression)return;ve(xe,Be,Z_(xe))}else ao(xe,ne)}function ve(xe,Be,We){const Ae=Se(xe,Be,We);if(Ae)for(let De=0;De=Be)return De;if(Y.set(De,Be),He){for(const Ye of v)Ye.usages.get(xe.text)&&Ye.usages.set(xe.text,{usage:Be,symbol:Ae,node:xe});return De}const Je=Ae.getDeclarations(),mt=Je&&Le(Je,Ye=>Ye.getSourceFile()===d);if(mt&&!RH(s,mt.getStart(),mt.end)){if(t.facts&2&&Be===2){const Ye=Tu(xe,D1.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);for(const je of B)je.push(Ye);for(const je of k)je.push(Ye)}for(let Ye=0;YeAe.symbol===Be);if(We)if(ra(We)){const Ae=We.symbol.id.toString();M.has(Ae)||(z.push(We),M.set(Ae,!0))}else j=j||We}ao(xe,Ne)}function pe(xe){return xe.parent&&pm(xe.parent)&&xe.parent.name===xe?f.getShorthandAssignmentValueSymbol(xe.parent):f.getSymbolAtLocation(xe)}function fe(xe,Be,We){if(!xe)return;const Ae=xe.getDeclarations();if(Ae&&Ae.some(He=>He.parent===Be))return q.createIdentifier(xe.name);const De=fe(xe.parent,Be,We);if(De!==void 0)return We?q.createQualifiedName(De,q.createIdentifier(xe.name)):q.createPropertyAccessExpression(De,xe.name)}}function IVt(t){return Tn(t,u=>u.parent&&jut(u)&&!eu(u.parent))}function jut(t){const{parent:u}=t;switch(u.kind){case 306:return!1}switch(t.kind){case 11:return u.kind!==272&&u.kind!==276;case 230:case 206:case 208:return!1;case 80:return u.kind!==208&&u.kind!==276&&u.kind!==281}return!0}function Vut(t){switch(t.kind){case 241:case 312:case 268:case 296:return!0;default:return!1}}function Q8e(t){return X8e(t)||(a3(t)||bk(t)||W2(t))&&(a3(t.parent)||W2(t.parent))}function X8e(t){return rs(t)&&t.parent&&sE(t.parent)}var fw,mw,pw,D1,eBe,RVt=o({"src/services/refactors/extractSymbol.ts"(){or(),l_(),fw="Extract Symbol",mw={name:"Extract Constant",description:to(F.Extract_constant),kind:"refactor.extract.constant"},pw={name:"Extract Function",description:to(F.Extract_function),kind:"refactor.extract.function"},l3(fw,{kinds:[mw.kind,pw.kind],getEditsForAction:Out,getAvailableActions:Rut}),(t=>{function u(s){return{message:s,code:0,category:3,key:s}}t.cannotExtractRange=u("Cannot extract range."),t.cannotExtractImport=u("Cannot extract import statement."),t.cannotExtractSuper=u("Cannot extract super call."),t.cannotExtractJSDoc=u("Cannot extract JSDoc."),t.cannotExtractEmpty=u("Cannot extract empty range."),t.expressionExpected=u("expression expected."),t.uselessConstantType=u("No reason to extract constant of type."),t.statementOrExpressionExpected=u("Statement or expression expected."),t.cannotExtractRangeContainingConditionalBreakOrContinueStatements=u("Cannot extract range containing conditional break or continue statements."),t.cannotExtractRangeContainingConditionalReturnStatement=u("Cannot extract range containing conditional return statement."),t.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange=u("Cannot extract range containing labeled break or continue with target outside of the range."),t.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators=u("Cannot extract range containing writes to references located outside of the target range in generators."),t.typeWillNotBeVisibleInTheNewScope=u("Type will not visible in the new scope."),t.functionWillNotBeVisibleInTheNewScope=u("Function will not visible in the new scope."),t.cannotExtractIdentifier=u("Select more than a single identifier."),t.cannotExtractExportedEntity=u("Cannot extract exported declaration"),t.cannotWriteInExpression=u("Cannot write back side-effects when extracting an expression"),t.cannotExtractReadonlyPropertyInitializerOutsideConstructor=u("Cannot move initialization of read-only class property outside of the constructor"),t.cannotExtractAmbientBlock=u("Cannot extract code from ambient contexts"),t.cannotAccessVariablesFromNestedScopes=u("Cannot access variables from nested scopes"),t.cannotExtractToJSClass=u("Cannot extract constant to a class scope in JS"),t.cannotExtractToExpressionArrowFunction=u("Cannot extract constant to an arrow function without a block"),t.cannotExtractFunctionsContainingThisToMethod=u("Cannot extract functions containing this to method")})(D1||(D1={})),eBe=(t=>(t[t.None=0]="None",t[t.HasReturn=1]="HasReturn",t[t.IsGenerator=2]="IsGenerator",t[t.IsAsyncFunction=4]="IsAsyncFunction",t[t.UsesThis=8]="UsesThis",t[t.UsesThisInFunction=16]="UsesThisInFunction",t[t.InStaticRegion=32]="InStaticRegion",t))(eBe||{})}}),Hut={};h(Hut,{Messages:()=>D1,RangeFacts:()=>eBe,getRangeToExtract:()=>U8e,getRefactorActionsToExtractSymbol:()=>Rut,getRefactorEditsToExtractSymbol:()=>Out});var OVt=o({"src/services/_namespaces/ts.refactor.extractSymbol.ts"(){RVt()}}),fee,Ame,Sme,jVt=o({"src/services/refactors/generateGetAccessorAndSetAccessor.ts"(){or(),l_(),fee="Generate 'get' and 'set' accessors",Ame=to(F.Generate_get_and_set_accessors),Sme={name:fee,description:Ame,kind:"refactor.rewrite.property.generateAccessors"},l3(fee,{kinds:[Sme.kind],getEditsForAction:function(u,s){if(!u.endPosition)return;const d=I1.getAccessorConvertiblePropertyAtPosition(u.file,u.program,u.startPosition,u.endPosition);H.assert(d&&!sD(d),"Expected applicable refactor info");const f=I1.generateAccessorFromProperty(u.file,u.program,u.startPosition,u.endPosition,u,s);if(!f)return;const p=u.file.fileName,E=d.renameAccessor?d.accessorName:d.fieldName,b=(at(E)?0:-1)+ZH(f,p,E.text,io(d.declaration));return{renameFilename:p,renameLocation:b,edits:f}},getAvailableActions(t){if(!t.endPosition)return Dt;const u=I1.getAccessorConvertiblePropertyAtPosition(t.file,t.program,t.startPosition,t.endPosition,t.triggerReason==="invoked");return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:fee,description:Ame,actions:[{...Sme,notApplicableReason:u.error}]}]:Dt:[{name:fee,description:Ame,actions:[Sme]}]:Dt}})}}),VVt={},HVt=o({"src/services/_namespaces/ts.refactor.generateGetAccessorAndSetAccessor.ts"(){jVt()}});function KVt(t){const u=Kut(t);if(u&&!sD(u))return{renameFilename:void 0,renameLocation:void 0,edits:iu.ChangeTracker.with(t,d=>GVt(t.file,d,u.declaration,u.returnTypeNode))}}function WVt(t){const u=Kut(t);return u?sD(u)?t.preferences.provideRefactorNotApplicableReason?[{name:mee,description:Bme,actions:[{...pee,notApplicableReason:u.error}]}]:Dt:[{name:mee,description:Bme,actions:[pee]}]:Dt}function GVt(t,u,s,d){const f=a0(s,22,t),p=Z0(s)&&f===void 0,E=p?Pn(s.parameters):f;E&&(p&&(u.insertNodeBefore(t,E,q.createToken(21)),u.insertNodeAfter(t,E,q.createToken(22))),u.insertNodeAt(t,E.end,d,{prefix:": "}))}function Kut(t){if(Xn(t.file)||!Zv(pee.kind,t.kind))return;const u=af(t.file,t.startPosition),s=Tn(u,E=>go(E)||E.parent&&Z0(E.parent)&&(E.kind===39||E.parent.body===E)?"quit":JVt(E));if(!s||!s.body||s.type)return{error:to(F.Return_type_must_be_inferred_from_a_function)};const d=t.program.getTypeChecker(),f=$Vt(d,s);if(!f)return{error:to(F.Could_not_determine_function_return_type)};const p=d.typeToTypeNode(f,s,1);if(p)return{declaration:s,returnTypeNode:p}}function JVt(t){switch(t.kind){case 262:case 218:case 219:case 174:return!0;default:return!1}}function $Vt(t,u){if(t.isImplementationOfOverload(u)){const d=t.getTypeAtLocation(u).getCallSignatures();if(d.length>1)return t.getUnionType(qi(d,f=>f.getReturnType()))}const s=t.getSignatureFromDeclaration(u);if(s)return t.getReturnTypeOfSignature(s)}var mee,Bme,pee,UVt=o({"src/services/refactors/inferFunctionReturnType.ts"(){or(),l_(),mee="Infer function return type",Bme=to(F.Infer_function_return_type),pee={name:mee,description:Bme,kind:"refactor.rewrite.function.returnType"},l3(mee,{kinds:[pee.kind],getEditsForAction:KVt,getAvailableActions:WVt})}}),qVt={},ZVt=o({"src/services/_namespaces/ts.refactor.inferFunctionReturnType.ts"(){UVt()}}),a9={};h(a9,{addExportToChanges:()=>L8e,addExports:()=>S8e,addNewFileToTsconfig:()=>b8e,addOrRemoveBracesToArrowFunction:()=>cjt,convertArrowFunctionOrFunctionExpression:()=>Cjt,convertParamsToDestructuredObject:()=>Vjt,convertStringOrTemplateLiteral:()=>Yjt,convertToOptionalChainExpression:()=>cVt,createNewFileName:()=>N8e,createOldFileImportsFromTargetFile:()=>A8e,deleteMovedStatements:()=>uee,deleteUnusedImports:()=>B8e,deleteUnusedOldImports:()=>y8e,doChangeNamedToNamespaceOrDefault:()=>Znt,extractSymbol:()=>Hut,filterImport:()=>cK,forEachImportInStatement:()=>lK,generateGetAccessorAndSetAccessor:()=>VVt,getApplicableRefactors:()=>lOt,getEditsForRefactor:()=>cOt,getStatementsToMove:()=>dK,getTopLevelDeclarationStatement:()=>mme,getUsageInfo:()=>aee,inferFunctionReturnType:()=>qVt,isRefactorErrorInfo:()=>sD,isTopLevelDeclaration:()=>oee,makeImportOrRequire:()=>ree,moduleSpecifierFromImport:()=>sK,nameOfTopLevelDeclaration:()=>T8e,refactorKindBeginsWith:()=>Zv,registerRefactor:()=>l3,updateImportsInOtherFiles:()=>k8e});var l_=o({"src/services/_namespaces/ts.refactor.ts"(){Wnt(),EOt(),COt(),BOt(),wOt(),LOt(),zOt(),njt(),djt(),bjt(),Hjt(),Qjt(),dVt(),OVt(),HVt(),ZVt()}});function Wut(t,u,s,d){const f=tBe(t,u,s,d);H.assert(f.spans.length%3===0);const p=f.spans,E=[];for(let v=0;v{f.push(E.getStart(u),E.getWidth(u),(v+1<<8)+b)},d),f}function QVt(t,u,s,d,f){const p=t.getTypeChecker();let E=!1;function v(b){switch(b.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 219:f.throwIfCancellationRequested()}if(!b||!LU(s,b.pos,b.getFullWidth())||b.getFullWidth()===0)return;const B=E;if((a3(b)||bk(b))&&(E=!0),QP(b)&&(E=!1),at(b)&&!E&&!iHt(b)&&!NP(b.escapedText)){let k=p.getSymbolAtLocation(b);if(k){k.flags&2097152&&(k=p.getAliasedSymbol(k));let T=XVt(k,Pk(b));if(T!==void 0){let M=0;b.parent&&(Vs(b.parent)||rBe.get(b.parent.kind)===T)&&b.parent.name===b&&(M=1),T===6&&Jut(b)&&(T=9),T=eHt(p,b,T);const z=k.valueDeclaration;if(z){const j=p2(z),J=QD(z);j&256&&(M|=2),j&1024&&(M|=4),T!==0&&T!==2&&(j&8||J&2||k.getFlags()&8)&&(M|=8),(T===7||T===10)&&tHt(z,u)&&(M|=32),t.isSourceFileDefaultLibrary(z.getSourceFile())&&(M|=16)}else k.declarations&&k.declarations.some(j=>t.isSourceFileDefaultLibrary(j.getSourceFile()))&&(M|=16);d(b,T,M)}}}ao(b,v),E=B}v(u)}function XVt(t,u){const s=t.getFlags();if(s&32)return 0;if(s&384)return 1;if(s&524288)return 5;if(s&64){if(u&2)return 2}else if(s&262144)return 4;let d=t.valueDeclaration||t.declarations&&t.declarations[0];return d&&Vs(d)&&(d=Gut(d)),d&&rBe.get(d.kind)}function eHt(t,u,s){if(s===7||s===9||s===6){const d=t.getTypeAtLocation(u);if(d){const f=p=>p(d)||d.isUnion()&&d.types.some(p);if(s!==6&&f(p=>p.getConstructSignatures().length>0))return 0;if(f(p=>p.getCallSignatures().length>0)&&!f(p=>p.getProperties().length>0)||nHt(u))return s===9?11:10}}return s}function tHt(t,u){return Vs(t)&&(t=Gut(t)),ra(t)?(!ca(t.parent.parent.parent)||J2(t.parent))&&t.getSourceFile()===u:td(t)?!ca(t.parent)&&t.getSourceFile()===u:!1}function Gut(t){for(;;)if(Vs(t.parent.parent))t=t.parent.parent;else return t.parent.parent}function iHt(t){const u=t.parent;return u&&(u_(u)||bf(u)||Jx(u))}function nHt(t){for(;Jut(t);)t=t.parent;return Mo(t.parent)&&t.parent.expression===t}function Jut(t){return vf(t.parent)&&t.parent.right===t||Ru(t.parent)&&t.parent.name===t}var iBe,nBe,uBe,rBe,$ut=o({"src/services/classifier2020.ts"(){or(),iBe=(t=>(t[t.typeOffset=8]="typeOffset",t[t.modifierMask=255]="modifierMask",t))(iBe||{}),nBe=(t=>(t[t.class=0]="class",t[t.enum=1]="enum",t[t.interface=2]="interface",t[t.namespace=3]="namespace",t[t.typeParameter=4]="typeParameter",t[t.type=5]="type",t[t.parameter=6]="parameter",t[t.variable=7]="variable",t[t.enumMember=8]="enumMember",t[t.property=9]="property",t[t.function=10]="function",t[t.member=11]="member",t))(nBe||{}),uBe=(t=>(t[t.declaration=0]="declaration",t[t.static=1]="static",t[t.async=2]="async",t[t.readonly=3]="readonly",t[t.defaultLibrary=4]="defaultLibrary",t[t.local=5]="local",t))(uBe||{}),rBe=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]])}});function Uut(t,u,s,d){const f=JO(t)?new Pme(t,u,s):t===80?new zme(80,u,s):t===81?new Ime(81,u,s):new lBe(t,u,s);return f.parent=d,f.flags=d.flags&101441536,f}function uHt(t,u){if(!JO(t.kind))return Dt;const s=[];if($U(t))return t.forEachChild(E=>{s.push(E)}),s;uh.setText((u||t.getSourceFile()).text);let d=t.pos;const f=E=>{gee(s,d,E.pos,t),s.push(E),d=E.end},p=E=>{gee(s,d,E.pos,t),s.push(rHt(E,t)),d=E.end};return L(t.jsDoc,f),d=t.pos,t.forEachChild(f,p),gee(s,d,t.end,t),uh.setText(void 0),s}function gee(t,u,s,d){for(uh.resetTokenState(u);uu.tagName.text==="inheritDoc"||u.tagName.text==="inheritdoc")}function wme(t,u){if(!t)return Dt;let s=Qv.getJsDocTagsFromDeclarations(t,u);if(u&&(s.length===0||t.some(qut))){const d=new Set;for(const f of t){const p=Zut(u,f,E=>{var v;if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualJsDocTags(f,u):((v=E.declarations)==null?void 0:v.length)===1?E.getJsDocTags():void 0});p&&(s=[...p,...s])}}return s}function Eee(t,u){if(!t)return Dt;let s=Qv.getJsDocCommentsFromDeclarations(t,u);if(u&&(s.length===0||t.some(qut))){const d=new Set;for(const f of t){const p=Zut(u,f,E=>{if(!d.has(E))return d.add(E),f.kind===177||f.kind===178?E.getContextualDocumentationComment(f,u):E.getDocumentationComment(u)});p&&(s=s.length===0?p.slice():p.concat(lw(),s))}}return s}function Zut(t,u,s){var d;const f=((d=u.parent)==null?void 0:d.kind)===176?u.parent.parent:u.parent;if(!f)return;const p=Gc(u);return G(rP(f),E=>{const v=t.getTypeAtLocation(E),b=p&&v.symbol?t.getTypeOfSymbol(v.symbol):v,B=t.getPropertyOfType(b,u.symbol.name);return B?s(B):void 0})}function aHt(){return{getNodeConstructor:()=>Pme,getTokenConstructor:()=>lBe,getIdentifierConstructor:()=>zme,getPrivateIdentifierConstructor:()=>Ime,getSourceFileConstructor:()=>irt,getSymbolConstructor:()=>Xut,getTypeConstructor:()=>ert,getSignatureConstructor:()=>trt,getSourceMapSourceConstructor:()=>nrt}}function EK(t){let u=!0;for(const d in t)if(Eu(t,d)&&!Yut(d)){u=!1;break}if(u)return t;const s={};for(const d in t)if(Eu(t,d)){const f=Yut(d)?d:d.charAt(0).toLowerCase()+d.substr(1);s[f]=t[d]}return s}function Yut(t){return!t.length||t.charAt(0)===t.charAt(0).toLowerCase()}function _K(t){return t?Vt(t,u=>u.text).join(""):""}function _ee(){return{target:1,jsx:1}}function Tme(){return I1.getSupportedErrorCodes()}function Qut(t,u,s){t.version=s,t.scriptSnapshot=u}function Dee(t,u,s,d,f,p){const E=WV(t,aw(u),s,f,p);return Qut(E,u,d),E}function Lme(t,u,s,d,f){if(d&&s!==t.version){let E;const v=d.span.start!==0?t.text.substr(0,d.span.start):"",b=Dc(d.span)!==t.text.length?t.text.substr(Dc(d.span)):"";if(d.newLength===0)E=v&&b?v+b:v||b;else{const k=u.getText(d.span.start,d.span.start+d.newLength);E=v&&b?v+k+b:v?v+k:k+b}const B=qce(t,E,d,f);return Qut(B,u,s),B.nameTable=void 0,t!==B&&t.scriptSnapshot&&(t.scriptSnapshot.dispose&&t.scriptSnapshot.dispose(),t.scriptSnapshot=void 0),B}const p={languageVersion:t.languageVersion,impliedNodeFormat:t.impliedNodeFormat,setExternalModuleIndicator:t.setExternalModuleIndicator,jsDocParsingMode:t.jsDocParsingMode};return Dee(t.fileName,u,p,s,!0,t.scriptKind)}function aBe(t,u=GSe(t.useCaseSensitiveFileNames&&t.useCaseSensitiveFileNames(),t.getCurrentDirectory()),s){var d;let f;s===void 0?f=0:typeof s=="boolean"?f=s?2:0:f=s;const p=new urt(t);let E,v,b=0;const B=t.getCancellationToken?new art(t.getCancellationToken()):rrt,k=t.getCurrentDirectory();oke((d=t.getLocalizedDiagnosticMessages)==null?void 0:d.bind(t));function T(we){t.log&&t.log(we)}const M=Kj(t),z=N1(M),j=r8e({useCaseSensitiveFileNames:()=>M,getCurrentDirectory:()=>k,getProgram:Y,fileExists:Lo(t,t.fileExists),readFile:Lo(t,t.readFile),getDocumentPositionMapper:Lo(t,t.getDocumentPositionMapper),getSourceFileLike:Lo(t,t.getSourceFileLike),log:T});function J(we){const de=E.getSourceFile(we);if(!de){const Oe=new Error(`Could not find source file: '${we}'.`);throw Oe.ProgramFiles=E.getSourceFiles().map(X=>X.fileName),Oe}return de}function K(){var we,de,Oe;if(H.assert(f!==2),t.getProjectVersion){const Qa=t.getProjectVersion();if(Qa){if(v===Qa&&!((we=t.hasChangedAutomaticTypeDirectiveNames)!=null&&we.call(t)))return;v=Qa}}const X=t.getTypeRootsVersion?t.getTypeRootsVersion():0;b!==X&&(T("TypeRoots version has changed; provide new program"),E=void 0,b=X);const it=t.getScriptFileNames().slice(),Ct=t.getCompilationSettings()||_ee(),ct=t.hasInvalidatedResolutions||cg,Qt=Lo(t,t.hasInvalidatedLibResolutions)||cg,Ti=Lo(t,t.hasChangedAutomaticTypeDirectiveNames),Ui=(de=t.getProjectReferences)==null?void 0:de.call(t);let Sn,du={getSourceFile:Fn,getSourceFileByPath:bc,getCancellationToken:()=>B,getCanonicalFileName:z,useCaseSensitiveFileNames:()=>M,getNewLine:()=>a5(Ct),getDefaultLibFileName:Qa=>t.getDefaultLibFileName(Qa),writeFile:Rs,getCurrentDirectory:()=>k,fileExists:Qa=>t.fileExists(Qa),readFile:Qa=>t.readFile&&t.readFile(Qa),getSymlinkCache:Lo(t,t.getSymlinkCache),realpath:Lo(t,t.realpath),directoryExists:Qa=>hg(Qa,t),getDirectories:Qa=>t.getDirectories?t.getDirectories(Qa):[],readDirectory:(Qa,c0,Ul,Tl,hd)=>(H.checkDefined(t.readDirectory,"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'"),t.readDirectory(Qa,c0,Ul,Tl,hd)),onReleaseOldSourceFile:wo,onReleaseParsedCommandLine:os,hasInvalidatedResolutions:ct,hasInvalidatedLibResolutions:Qt,hasChangedAutomaticTypeDirectiveNames:Ti,trace:Lo(t,t.trace),resolveModuleNames:Lo(t,t.resolveModuleNames),getModuleResolutionCache:Lo(t,t.getModuleResolutionCache),createHash:Lo(t,t.createHash),resolveTypeReferenceDirectives:Lo(t,t.resolveTypeReferenceDirectives),resolveModuleNameLiterals:Lo(t,t.resolveModuleNameLiterals),resolveTypeReferenceDirectiveReferences:Lo(t,t.resolveTypeReferenceDirectiveReferences),resolveLibrary:Lo(t,t.resolveLibrary),useSourceOfProjectReferenceRedirect:Lo(t,t.useSourceOfProjectReferenceRedirect),getParsedCommandLine:wn,jsDocParsingMode:t.jsDocParsingMode};const Ou=du.getSourceFile,{getSourceFileWithCache:Er}=CH(du,Qa=>$0(Qa,k,z),(...Qa)=>Ou.call(du,...Qa));du.getSourceFile=Er,(Oe=t.setCompilerHost)==null||Oe.call(t,du);const er={useCaseSensitiveFileNames:M,fileExists:Qa=>du.fileExists(Qa),readFile:Qa=>du.readFile(Qa),directoryExists:Qa=>du.directoryExists(Qa),getDirectories:Qa=>du.getDirectories(Qa),realpath:du.realpath,readDirectory:(...Qa)=>du.readDirectory(...Qa),trace:du.trace,getCurrentDirectory:du.getCurrentDirectory,onUnRecoverableConfigFileDiagnostic:Rs},da=u.getKeyForCompilationSettings(Ct);let Wu=new Set;if(L1e(E,it,Ct,(Qa,c0)=>t.getScriptVersion(c0),Qa=>du.fileExists(Qa),ct,Qt,Ti,wn,Ui)){du=void 0,Sn=void 0,Wu=void 0;return}E=wQ({rootNames:it,options:Ct,host:du,oldProgram:E,projectReferences:Ui}),du=void 0,Sn=void 0,Wu=void 0,j.clearCache(),E.getTypeChecker();return;function wn(Qa){const c0=$0(Qa,k,z),Ul=Sn==null?void 0:Sn.get(c0);if(Ul!==void 0)return Ul||void 0;const Tl=t.getParsedCommandLine?t.getParsedCommandLine(Qa):Rr(Qa);return(Sn||(Sn=new Map)).set(c0,Tl||!1),Tl}function Rr(Qa){const c0=Fn(Qa,100);if(c0)return c0.path=$0(Qa,k,z),c0.resolvedPath=c0.path,c0.originalFileName=c0.fileName,qV(c0,er,qa(dr(Qa),k),void 0,qa(Qa,k))}function os(Qa,c0,Ul){var Tl;t.getParsedCommandLine?(Tl=t.onReleaseParsedCommandLine)==null||Tl.call(t,Qa,c0,Ul):c0&&wo(c0.sourceFile,Ul)}function wo(Qa,c0){const Ul=u.getKeyForCompilationSettings(c0);u.releaseDocumentWithKey(Qa.resolvedPath,Ul,Qa.scriptKind,Qa.impliedNodeFormat)}function Fn(Qa,c0,Ul,Tl){return bc(Qa,$0(Qa,k,z),c0,Ul,Tl)}function bc(Qa,c0,Ul,Tl,hd){H.assert(du,"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.");const Cl=t.getScriptSnapshot(Qa);if(!Cl)return;const ho=Efe(Qa,t),Ko=t.getScriptVersion(Qa);if(!hd){const nd=E&&E.getSourceFileByPath(c0);if(nd){if(ho===nd.scriptKind||Wu.has(nd.resolvedPath))return u.updateDocumentWithKey(Qa,c0,t,da,Cl,Ko,ho,Ul);u.releaseDocumentWithKey(nd.resolvedPath,u.getKeyForCompilationSettings(E.getCompilerOptions()),nd.scriptKind,nd.impliedNodeFormat),Wu.add(nd.resolvedPath)}}return u.acquireDocumentWithKey(Qa,c0,t,da,Cl,Ko,ho,Ul)}}function Y(){if(f===2){H.assert(E===void 0);return}return K(),E}function oe(){var we;return(we=t.getPackageJsonAutoImportProvider)==null?void 0:we.call(t)}function se(we,de){const Oe=E.getTypeChecker(),X=it();if(!X)return!1;for(const ct of we)for(const Qt of ct.references){const Ti=Ct(Qt);if(H.assertIsDefined(Ti),de.has(Qt)||Y0.isDeclarationOfSymbol(Ti,X)){de.add(Qt),Qt.isDefinition=!0;const Ui=FX(Qt,j,Lo(t,t.fileExists));Ui&&de.add(Ui)}else Qt.isDefinition=!1}return!0;function it(){for(const ct of we)for(const Qt of ct.references){if(de.has(Qt)){const Ui=Ct(Qt);return H.assertIsDefined(Ui),Oe.getSymbolAtLocation(Ui)}const Ti=FX(Qt,j,Lo(t,t.fileExists));if(Ti&&de.has(Ti)){const Ui=Ct(Ti);if(Ui)return Oe.getSymbolAtLocation(Ui)}}}function Ct(ct){const Qt=E.getSourceFile(ct.fileName);if(!Qt)return;const Ti=af(Qt,ct.textSpan.start);return Y0.Core.getAdjustedNode(Ti,{use:Y0.FindReferencesUse.References})}}function ge(){if(E){const we=u.getKeyForCompilationSettings(E.getCompilerOptions());L(E.getSourceFiles(),de=>u.releaseDocumentWithKey(de.resolvedPath,we,de.scriptKind,de.impliedNodeFormat)),E=void 0}}function ae(){ge(),t=void 0}function Ce(we){return K(),E.getSyntacticDiagnostics(J(we),B).slice()}function ne(we){K();const de=J(we),Oe=E.getSemanticDiagnostics(de,B);if(!f4(E.getCompilerOptions()))return Oe.slice();const X=E.getDeclarationDiagnostics(de,B);return[...Oe,...X]}function ve(we){return K(),Ufe(J(we),E,B)}function Se(){return K(),[...E.getOptionsDiagnostics(B),...E.getGlobalDiagnostics(B)]}function Ne(we,de,Oe=m4,X){const it={...Oe,includeCompletionsForModuleExports:Oe.includeCompletionsForModuleExports||Oe.includeExternalModuleExports,includeCompletionsWithInsertText:Oe.includeCompletionsWithInsertText||Oe.includeInsertTextCompletions};return K(),h9.getCompletionsAtPosition(t,E,T,J(we),de,it,Oe.triggerCharacter,Oe.triggerKind,B,X&&dd.getFormatContext(X,t),Oe.includeSymbol)}function pe(we,de,Oe,X,it,Ct=m4,ct){return K(),h9.getCompletionEntryDetails(E,T,J(we),de,{name:Oe,source:it,data:ct},t,X&&dd.getFormatContext(X,t),Ct,B)}function fe(we,de,Oe,X,it=m4){return K(),h9.getCompletionEntrySymbol(E,T,J(we),de,{name:Oe,source:X},t,it)}function xe(we,de){K();const Oe=J(we),X=af(Oe,de);if(X===Oe)return;const it=E.getTypeChecker(),Ct=Be(X),ct=cHt(Ct,it);if(!ct||it.isUnknownSymbol(ct)){const du=We(Oe,Ct,de)?it.getTypeAtLocation(Ct):void 0;return du&&{kind:"",kindModifiers:"",textSpan:of(Ct,Oe),displayParts:it.runWithCancellationToken(B,Ou=>UH(Ou,du,Mk(Ct))),documentation:du.symbol?du.symbol.getDocumentationComment(it):void 0,tags:du.symbol?du.symbol.getJsDocTags(it):void 0}}const{symbolKind:Qt,displayParts:Ti,documentation:Ui,tags:Sn}=it.runWithCancellationToken(B,du=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(du,ct,Oe,Mk(Ct),Ct));return{kind:Qt,kindModifiers:x5.getSymbolModifiers(it,ct),textSpan:of(Ct,Oe),displayParts:Ti,documentation:Ui,tags:Sn}}function Be(we){return V2(we.parent)&&we.pos===we.parent.pos?we.parent.expression:JP(we.parent)&&we.pos===we.parent.pos||W8(we.parent)&&we.parent.name===we||gg(we.parent)?we.parent:we}function We(we,de,Oe){switch(de.kind){case 80:return!jhe(de)&&!Vhe(de)&&!q3(de.parent);case 211:case 166:return!m5(we,Oe);case 110:case 197:case 108:case 202:return!0;case 236:return W8(de);default:return!1}}function Ae(we,de,Oe,X){return K(),Cw.getDefinitionAtPosition(E,J(we),de,Oe,X)}function De(we,de){return K(),Cw.getDefinitionAndBoundSpan(E,J(we),de)}function He(we,de){return K(),Cw.getTypeDefinitionAtPosition(E.getTypeChecker(),J(we),de)}function Je(we,de){return K(),Y0.getImplementationsAtPosition(E,B,E.getSourceFiles(),J(we),de)}function mt(we,de,Oe){const X=Uo(we);H.assert(Oe.some(ct=>Uo(ct)===X)),K();const it=qi(Oe,ct=>E.getSourceFile(ct)),Ct=J(we);return UX.getDocumentHighlights(E,B,Ct,de,it)}function Ye(we,de,Oe,X,it){K();const Ct=J(we),ct=dX(af(Ct,de));if(Wee.nodeIsEligibleForRename(ct))if(at(ct)&&(oE(ct.parent)||K2(ct.parent))&&aB(ct.escapedText)){const{openingElement:Qt,closingElement:Ti}=ct.parent.parent;return[Qt,Ti].map(Ui=>{const Sn=of(Ui.tagName,Ct);return{fileName:Ct.fileName,textSpan:Sn,...Y0.toContextSpan(Sn,Ct,Ui.parent)}})}else{const Qt=Km(Ct,it??m4),Ti=typeof it=="boolean"?it:it==null?void 0:it.providePrefixAndSuffixTextForRename;return Ke(ct,de,{findInStrings:Oe,findInComments:X,providePrefixAndSuffixTextForRename:Ti,use:Y0.FindReferencesUse.Rename},(Ui,Sn,du)=>Y0.toRenameLocation(Ui,Sn,du,Ti||!1,Qt))}}function je(we,de){return K(),Ke(af(J(we),de),de,{use:Y0.FindReferencesUse.References},Y0.toReferenceEntry)}function Ke(we,de,Oe,X){K();const it=Oe&&Oe.use===Y0.FindReferencesUse.Rename?E.getSourceFiles().filter(Ct=>!E.isSourceFileDefaultLibrary(Ct)):E.getSourceFiles();return Y0.findReferenceOrRenameEntries(E,B,it,we,de,Oe,X)}function Gt(we,de){return K(),Y0.findReferencedSymbols(E,B,E.getSourceFiles(),J(we),de)}function Yt(we){return K(),Y0.Core.getReferencesForFileName(we,E,E.getSourceFiles()).map(Y0.toReferenceEntry)}function Ie(we,de,Oe,X=!1,it=!1){K();const Ct=Oe?[J(Oe)]:E.getSourceFiles();return Dnt(Ct,E.getTypeChecker(),B,we,de,X,it)}function st(we,de,Oe){K();const X=J(we),it=t.getCustomTransformers&&t.getCustomTransformers();return q7e(E,X,!!de,B,it,Oe)}function Bt(we,de,{triggerReason:Oe}=m4){K();const X=J(we);return PK.getSignatureHelpItems(E,X,de,Oe,B)}function It(we){return p.getCurrentSourceFile(we)}function ei(we,de,Oe){const X=p.getCurrentSourceFile(we),it=af(X,de);if(it===X)return;switch(it.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 Ct=it;for(;;)if(uw(Ct)||X9e(Ct))Ct=Ct.parent;else if(Khe(Ct))if(Ct.parent.parent.kind===267&&Ct.parent.parent.body===Ct.parent)Ct=Ct.parent.parent.name;else break;else break;return Kc(Ct.getStart(),it.getEnd())}function ft(we,de){const Oe=p.getCurrentSourceFile(we);return Ome.spanInSourceFileAtLocation(Oe,de)}function Ut(we){return bnt(p.getCurrentSourceFile(we),B)}function Ni(we){return ynt(p.getCurrentSourceFile(we),B)}function Vi(we,de,Oe){return K(),(Oe||"original")==="2020"?Wut(E,B,J(we),de):KSe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de)}function xn(we,de,Oe){return K(),(Oe||"original")==="original"?Vfe(E.getTypeChecker(),B,J(we),E.getClassifiableNames(),de):tBe(E,B,J(we),de)}function Jn(we,de){return WSe(B,p.getCurrentSourceFile(we),de)}function an(we,de){return Hfe(B,p.getCurrentSourceFile(we),de)}function Pi(we){const de=p.getCurrentSourceFile(we);return Ppe.collectElements(de,B)}const Fi=new Map(Object.entries({19:20,21:22,23:24,32:30}));Fi.forEach((we,de)=>Fi.set(we.toString(),Number(de)));function Yu(we,de){const Oe=p.getCurrentSourceFile(we),X=NM(Oe,de),it=X.getStart(Oe)===de?Fi.get(X.kind.toString()):void 0,Ct=it&&a0(X.parent,it,Oe);return Ct?[of(X,Oe),of(Ct,Oe)].sort((ct,Qt)=>ct.start-Qt.start):Dt}function oa(we,de,Oe){let X=J0();const it=EK(Oe),Ct=p.getCurrentSourceFile(we);T("getIndentationAtPosition: getCurrentSourceFile: "+(J0()-X)),X=J0();const ct=dd.SmartIndenter.getIndentation(de,Ct,it);return T("getIndentationAtPosition: computeIndentation : "+(J0()-X)),ct}function Fr(we,de,Oe,X){const it=p.getCurrentSourceFile(we);return dd.formatSelection(de,Oe,it,dd.getFormatContext(EK(X),t))}function wa(we,de){return dd.formatDocument(p.getCurrentSourceFile(we),dd.getFormatContext(EK(de),t))}function bt(we,de,Oe,X){const it=p.getCurrentSourceFile(we),Ct=dd.getFormatContext(EK(X),t);if(!m5(it,de))switch(Oe){case"{":return dd.formatOnOpeningCurly(de,it,Ct);case"}":return dd.formatOnClosingCurly(de,it,Ct);case";":return dd.formatOnSemicolon(de,it,Ct);case` +`:return dd.formatOnEnter(de,it,Ct)}return[]}function jn(we,de,Oe,X,it,Ct=m4){K();const ct=J(we),Qt=Kc(de,Oe),Ti=dd.getFormatContext(it,t);return Vu(li(X,Cx,rl),Ui=>(B.throwIfCancellationRequested(),I1.getFixes({errorCode:Ui,sourceFile:ct,span:Qt,program:E,host:t,cancellationToken:B,formatContext:Ti,preferences:Ct})))}function Ln(we,de,Oe,X=m4){K(),H.assert(we.type==="file");const it=J(we.fileName),Ct=dd.getFormatContext(Oe,t);return I1.getAllFixes({fixId:de,sourceFile:it,program:E,host:t,cancellationToken:B,formatContext:Ct,preferences:X})}function Ai(we,de,Oe=m4){K(),H.assert(we.type==="file");const X=J(we.fileName),it=dd.getFormatContext(de,t),Ct=we.mode??(we.skipDestructiveCodeActions?"SortAndCombine":"All");return Jp.organizeImports(X,it,t,E,Oe,Ct)}function Dn(we,de,Oe,X=m4){return $Se(Y(),we,de,t,dd.getFormatContext(Oe,t),X,j)}function Cn(we,de){const Oe=typeof we=="string"?de:we;return Wa(Oe)?Promise.all(Oe.map(X=>tu(X))):tu(Oe)}function tu(we){const de=Oe=>$0(Oe,k,z);return H.assertEqual(we.type,"install package"),t.installPackage?t.installPackage({fileName:de(we.file),packageName:we.packageName}):Promise.reject("Host does not implement `installPackage`")}function sa(we,de,Oe,X){const it=X?dd.getFormatContext(X,t).options:void 0;return Qv.getDocCommentTemplateAtPosition(E5(t,it),p.getCurrentSourceFile(we),de,Oe)}function xa(we,de,Oe){if(Oe===60)return!1;const X=p.getCurrentSourceFile(we);if(zk(X,de))return!1;if(aSe(X,de))return Oe===123;if(qhe(X,de))return!1;switch(Oe){case 39:case 34:case 96:return!m5(X,de)}return!0}function aa(we,de){const Oe=p.getCurrentSourceFile(we),X=id(de,Oe);if(!X)return;const it=X.kind===32&&oE(X.parent)?X.parent.parent:w7(X)&&a3(X.parent)?X.parent:void 0;if(it&&qt(it))return{newText:``};const Ct=X.kind===32&&V7(X.parent)?X.parent.parent:w7(X)&&W2(X.parent)?X.parent:void 0;if(Ct&&Xt(Ct))return{newText:""}}function Ta(we,de){const Oe=p.getCurrentSourceFile(we),X=id(de,Oe);if(!X||X.parent.kind===312)return;const it="[a-zA-Z0-9:\\-\\._$]*";if(W2(X.parent.parent)){const Ct=X.parent.parent.openingFragment,ct=X.parent.parent.closingFragment;if(O8(Ct)||O8(ct))return;const Qt=Ct.getStart(Oe)+1,Ti=ct.getStart(Oe)+2;return de!==Qt&&de!==Ti?void 0:{ranges:[{start:Qt,length:0},{start:Ti,length:0}],wordPattern:it}}else{const Ct=Tn(X.parent,Er=>!!(oE(Er)||K2(Er)));if(!Ct)return;H.assert(oE(Ct)||K2(Ct),"tag should be opening or closing element");const ct=Ct.parent.openingElement,Qt=Ct.parent.closingElement,Ti=ct.tagName.getStart(Oe),Ui=ct.tagName.end,Sn=Qt.tagName.getStart(Oe),du=Qt.tagName.end;return!(Ti<=de&&de<=Ui||Sn<=de&&de<=du)||ct.tagName.getText(Oe)!==Qt.tagName.getText(Oe)?void 0:{ranges:[{start:Ti,length:Ui-Ti},{start:Sn,length:du-Sn}],wordPattern:it}}}function Qo(we,de){return{lineStarts:we.getLineStarts(),firstLine:we.getLineAndCharacterOfPosition(de.pos).line,lastLine:we.getLineAndCharacterOfPosition(de.end).line}}function bo(we,de,Oe){const X=p.getCurrentSourceFile(we),it=[],{lineStarts:Ct,firstLine:ct,lastLine:Qt}=Qo(X,de);let Ti=Oe||!1,Ui=Number.MAX_VALUE;const Sn=new Map,du=new RegExp(/\S/),Ou=mX(X,Ct[ct]),Er=Ou?"{/*":"//";for(let er=ct;er<=Qt;er++){const da=X.text.substring(Ct[er],X.getLineEndOfPosition(Ct[er])),Wu=du.exec(da);Wu&&(Ui=Math.min(Ui,Wu.index),Sn.set(er.toString(),Wu.index),da.substr(Wu.index,Er.length)!==Er&&(Ti=Oe===void 0||Oe))}for(let er=ct;er<=Qt;er++){if(ct!==Qt&&Ct[er]===de.end)continue;const da=Sn.get(er.toString());da!==void 0&&(Ou?it.push(...Qe(we,{pos:Ct[er]+Ui,end:X.getLineEndOfPosition(Ct[er])},Ti,Ou)):Ti?it.push({newText:Er,span:{length:0,start:Ct[er]+Ui}}):X.text.substr(Ct[er]+da,Er.length)===Er&&it.push({newText:"",span:{length:Er.length,start:Ct[er]+da}}))}return it}function Qe(we,de,Oe,X){var it;const Ct=p.getCurrentSourceFile(we),ct=[],{text:Qt}=Ct;let Ti=!1,Ui=Oe||!1;const Sn=[];let{pos:du}=de;const Ou=X!==void 0?X:mX(Ct,du),Er=Ou?"{/*":"/*",er=Ou?"*/}":"*/",da=Ou?"\\{\\/\\*":"\\/\\*",Wu=Ou?"\\*\\/\\}":"\\*\\/";for(;du<=de.end;){const Va=Qt.substr(du,Er.length)===Er?Er.length:0,wn=m5(Ct,du+Va);if(wn)Ou&&(wn.pos--,wn.end++),Sn.push(wn.pos),wn.kind===3&&Sn.push(wn.end),Ti=!0,du=wn.end+1;else{const Rr=Qt.substring(du,de.end).search(`(${da})|(${Wu})`);Ui=Oe!==void 0?Oe:Ui||!_Se(Qt,du,Rr===-1?de.end:du+Rr),du=Rr===-1?de.end+1:du+Rr+er.length}}if(Ui||!Ti){((it=m5(Ct,de.pos))==null?void 0:it.kind)!==2&&At(Sn,de.pos,rl),At(Sn,de.end,rl);const Va=Sn[0];Qt.substr(Va,Er.length)!==Er&&ct.push({newText:Er,span:{length:0,start:Va}});for(let wn=1;wn0?Va-er.length:0,Rr=Qt.substr(wn,er.length)===er?er.length:0;ct.push({newText:"",span:{length:Er.length,start:Va-Rr}})}return ct}function _t(we,de){const Oe=p.getCurrentSourceFile(we),{firstLine:X,lastLine:it}=Qo(Oe,de);return X===it&&de.pos!==de.end?Qe(we,de,!0):bo(we,de,!0)}function Mt(we,de){const Oe=p.getCurrentSourceFile(we),X=[],{pos:it}=de;let{end:Ct}=de;it===Ct&&(Ct+=mX(Oe,it)?2:1);for(let ct=it;ct<=Ct;ct++){const Qt=m5(Oe,ct);if(Qt){switch(Qt.kind){case 2:X.push(...bo(we,{end:Qt.end,pos:Qt.pos+1},!1));break;case 3:X.push(...Qe(we,{end:Qt.end,pos:Qt.pos+1},!1))}ct=Qt.end+1}}return X}function qt({openingElement:we,closingElement:de,parent:Oe}){return!Hv(we.tagName,de.tagName)||a3(Oe)&&Hv(we.tagName,Oe.openingElement.tagName)&&qt(Oe)}function Xt({closingFragment:we,parent:de}){return!!(we.flags&262144)||W2(de)&&Xt(de)}function Pe(we,de,Oe){const X=p.getCurrentSourceFile(we),it=dd.getRangeOfEnclosingComment(X,de);return it&&(!Oe||it.kind===3)?qx(it):void 0}function et(we,de){K();const Oe=J(we);B.throwIfCancellationRequested();const X=Oe.text,it=[];if(de.length>0&&!Ti(Oe.fileName)){const Ui=ct();let Sn;for(;Sn=Ui.exec(X);){B.throwIfCancellationRequested();const du=3;H.assert(Sn.length===de.length+du);const Ou=Sn[1],Er=Sn.index+Ou.length;if(!m5(Oe,Er))continue;let er;for(let Wu=0;Wu"("+Ct(wn.text)+")").join("|")+")",er=/(?:$|\*\/)/.source,da=/(?:.*?)/.source,Wu="("+Er+da+")",Va=Ou+Wu+er;return new RegExp(Va,"gim")}function Qt(Ui){return Ui>=97&&Ui<=122||Ui>=65&&Ui<=90||Ui>=48&&Ui<=57}function Ti(Ui){return Ui.includes("/node_modules/")}}function Et(we,de,Oe){return K(),Wee.getRenameInfo(E,J(we),de,Oe||{})}function ii(we,de,Oe,X,it,Ct){const[ct,Qt]=typeof de=="number"?[de,void 0]:[de.pos,de.end];return{file:we,startPosition:ct,endPosition:Qt,program:Y(),host:t,formatContext:dd.getFormatContext(X,t),cancellationToken:B,preferences:Oe,triggerReason:it,kind:Ct}}function me(we,de,Oe){return{file:we,program:Y(),host:t,span:de,preferences:Oe,cancellationToken:B}}function ni(we,de){return Ipe.getSmartSelectionRange(de,p.getCurrentSourceFile(we))}function xi(we,de,Oe=m4,X,it,Ct){K();const ct=J(we);return a9.getApplicableRefactors(ii(ct,de,Oe,m4,X,it),Ct)}function pt(we,de,Oe=m4){K();const X=J(we),it=H.checkDefined(E.getSourceFiles()),Ct=y7(we),ct=qi(it,Ti=>!(E!=null&&E.isSourceFileFromExternalLibrary(X))&&!(X===J(Ti.fileName)||Ct===".ts"&&y7(Ti.fileName)===".d.ts"||Ct===".d.ts"&&Ma(Bc(Ti.fileName),"lib.")&&y7(Ti.fileName)===".d.ts")&&Ct===y7(Ti.fileName)?Ti.fileName:void 0);return{newFileName:N8e(X,E,ii(X,de,Oe,m4),t),files:ct}}function Ot(we,de,Oe,X,it,Ct=m4,ct){K();const Qt=J(we);return a9.getEditsForRefactor(ii(Qt,Oe,Ct,de),X,it,ct)}function Ei(we,de){return de===0?{line:0,character:0}:j.toLineColumnOffset(we,de)}function $i(we,de){K();const Oe=o9.resolveCallHierarchyDeclaration(E,af(J(we),de));return Oe&&Afe(Oe,X=>o9.createCallHierarchyItem(E,X))}function Qi(we,de){K();const Oe=J(we),X=Sfe(o9.resolveCallHierarchyDeclaration(E,de===0?Oe:af(Oe,de)));return X?o9.getIncomingCalls(E,X,B):[]}function on(we,de){K();const Oe=J(we),X=Sfe(o9.resolveCallHierarchyDeclaration(E,de===0?Oe:af(Oe,de)));return X?o9.getOutgoingCalls(E,X):[]}function le(we,de,Oe=m4){K();const X=J(we);return wpe.provideInlayHints(me(X,de,Oe))}const te={dispose:ae,cleanupSemanticCache:ge,getSyntacticDiagnostics:Ce,getSemanticDiagnostics:ne,getSuggestionDiagnostics:ve,getCompilerOptionsDiagnostics:Se,getSyntacticClassifications:Jn,getSemanticClassifications:Vi,getEncodedSyntacticClassifications:an,getEncodedSemanticClassifications:xn,getCompletionsAtPosition:Ne,getCompletionEntryDetails:pe,getCompletionEntrySymbol:fe,getSignatureHelpItems:Bt,getQuickInfoAtPosition:xe,getDefinitionAtPosition:Ae,getDefinitionAndBoundSpan:De,getImplementationAtPosition:Je,getTypeDefinitionAtPosition:He,getReferencesAtPosition:je,findReferences:Gt,getFileReferences:Yt,getDocumentHighlights:mt,getNameOrDottedNameSpan:ei,getBreakpointStatementAtPosition:ft,getNavigateToItems:Ie,getRenameInfo:Et,getSmartSelectionRange:ni,findRenameLocations:Ye,getNavigationBarItems:Ut,getNavigationTree:Ni,getOutliningSpans:Pi,getTodoComments:et,getBraceMatchingAtPosition:Yu,getIndentationAtPosition:oa,getFormattingEditsForRange:Fr,getFormattingEditsForDocument:wa,getFormattingEditsAfterKeystroke:bt,getDocCommentTemplateAtPosition:sa,isValidBraceCompletionAtPosition:xa,getJsxClosingTagAtPosition:aa,getLinkedEditingRangeAtPosition:Ta,getSpanOfEnclosingComment:Pe,getCodeFixesAtPosition:jn,getCombinedCodeFix:Ln,applyCodeActionCommand:Cn,organizeImports:Ai,getEditsForFileRename:Dn,getEmitOutput:st,getNonBoundSourceFile:It,getProgram:Y,getCurrentProgram:()=>E,getAutoImportProvider:oe,updateIsDefinitionOfReferencedSymbols:se,getApplicableRefactors:xi,getEditsForRefactor:Ot,getMoveToRefactoringFileSuggestions:pt,toLineColumnOffset:Ei,getSourceMapper:()=>j,clearSourceMapperCache:()=>j.clearCache(),prepareCallHierarchy:$i,provideCallHierarchyIncomingCalls:Qi,provideCallHierarchyOutgoingCalls:on,toggleLineComment:bo,toggleMultilineComment:Qe,commentSelection:_t,uncommentSelection:Mt,provideInlayHints:le,getSupportedCodeFixes:Tme};switch(f){case 0:break;case 1:cBe.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.PartialSemantic`)});break;case 2:ort.forEach(we=>te[we]=()=>{throw new Error(`LanguageService Operation: ${we} not allowed in LanguageServiceMode.Syntactic`)});break;default:H.assertNever(f)}return te}function Nme(t){return t.nameTable||oHt(t),t.nameTable}function oHt(t){const u=t.nameTable=new Map;t.forEachChild(function s(d){if(at(d)&&!Vhe(d)&&d.escapedText||Mm(d)&&sHt(d)){const f=sP(d);u.set(f,u.get(f)===void 0?d.pos:-1)}else if(ea(d)){const f=d.escapedText;u.set(f,u.get(f)===void 0?d.pos:-1)}if(ao(d,s),lm(d))for(const f of d.jsDoc)ao(f,s)})}function sHt(t){return X3(t)||t.parent.kind===283||dHt(t)||Pj(t)}function DK(t){const u=lHt(t);return u&&(ys(u.parent)||G2(u.parent))?u:void 0}function lHt(t){switch(t.kind){case 11:case 15:case 9:if(t.parent.kind===167)return r0e(t.parent.parent)?t.parent.parent:void 0;case 80:return r0e(t.parent)&&(t.parent.parent.kind===210||t.parent.parent.kind===292)&&t.parent.name===t?t.parent:void 0}}function cHt(t,u){const s=DK(t);if(s){const d=u.getContextualType(s.parent),f=d&&xee(s,u,d,!1);if(f&&f.length===1)return Pn(f)}return u.getSymbolAtLocation(t)}function xee(t,u,s,d){const f=GH(t.name);if(!f)return Dt;if(!s.isUnion()){const E=s.getProperty(f);return E?[E]:Dt}const p=qi(s.types,E=>(ys(t.parent)||G2(t.parent))&&u.isTypeInvalidDueToUnionDiscriminant(E,t.parent)?void 0:E.getProperty(f));if(d&&(p.length===0||p.length===s.types.length)){const E=s.getProperty(f);if(E)return[E]}return p.length===0?qi(s.types,E=>E.getProperty(f)):p}function dHt(t){return t&&t.parent&&t.parent.kind===212&&t.parent.argumentExpression===t}function oBe(t){if(d1)return hr(dr(Uo(d1.getExecutingFilePath())),IO(t));throw new Error("getDefaultLibFilePath is only supported when consumed as a node module. ")}var sBe,Pme,Mme,Xut,lBe,zme,Ime,ert,trt,irt,nrt,urt,rrt,art,Rme,cBe,ort,hHt=o({"src/services/services.ts"(){or(),Cnt(),Knt(),l_(),Qit(),$ut(),sBe="0.8",Pme=class{constructor(t,u,s){this.pos=u,this.end=s,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.kind=t}assertHasRealPosition(t){H.assert(!pg(this.pos)&&!pg(this.end),t||"Node must have a real position for this operation")}getSourceFile(){return zn(this)}getStart(t,u){return this.assertHasRealPosition(),ek(this,t,u)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(t){return this.assertHasRealPosition(),this.getEnd()-this.getStart(t)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(t){return this.assertHasRealPosition(),this.getStart(t)-this.pos}getFullText(t){return this.assertHasRealPosition(),(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return this.assertHasRealPosition(),t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(t){return this.getChildren(t).length}getChildAt(t,u){return this.getChildren(u)[t]}getChildren(t){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"),this._children||(this._children=uHt(this,t))}getFirstToken(t){this.assertHasRealPosition();const u=this.getChildren(t);if(!u.length)return;const s=Le(u,d=>d.kind<316||d.kind>357);return s.kind<166?s:s.getFirstToken(t)}getLastToken(t){this.assertHasRealPosition();const u=this.getChildren(t),s=Zu(u);if(s)return s.kind<166?s:s.getLastToken(t)}forEachChild(t,u){return ao(this,t,u)}},Mme=class{constructor(t,u){this.pos=t,this.end=u,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0}getSourceFile(){return zn(this)}getStart(t,u){return ek(this,t,u)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(t){return this.getEnd()-this.getStart(t)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(t){return this.getStart(t)-this.pos}getFullText(t){return(t||this.getSourceFile()).text.substring(this.pos,this.end)}getText(t){return t||(t=this.getSourceFile()),t.text.substring(this.getStart(t),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(t){return this.getChildren()[t]}getChildren(){return this.kind===1&&this.jsDoc||Dt}getFirstToken(){}getLastToken(){}forEachChild(){}},Xut=class{constructor(t,u){this.id=0,this.mergeId=0,this.flags=t,this.escapedName=u}getFlags(){return this.flags}get name(){return cc(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(t){if(!this.documentationComment)if(this.documentationComment=Dt,!this.declarations&&ZE(this)&&this.links.target&&ZE(this.links.target)&&this.links.target.links.tupleLabelDeclaration){const u=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Eee([u],t)}else this.documentationComment=Eee(this.declarations,t);return this.documentationComment}getContextualDocumentationComment(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=Eee(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(e5(t)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=Eee(ti(this.declarations,e5),u)),S(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(u)}getJsDocTags(t){return this.tags===void 0&&(this.tags=wme(this.declarations,t)),this.tags}getContextualJsDocTags(t,u){if(t){if(Lx(t)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=wme(ti(this.declarations,Lx),u)),S(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(e5(t)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=wme(ti(this.declarations,e5),u)),S(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(u)}},lBe=class extends Mme{constructor(t,u,s){super(u,s),this.kind=t}},zme=class extends Mme{constructor(t,u,s){super(u,s),this.kind=80}get text(){return fu(this)}},zme.prototype.kind=80,Ime=class extends Mme{constructor(t,u,s){super(u,s),this.kind=81}get text(){return fu(this)}},Ime.prototype.kind=81,ert=class{constructor(t,u){this.checker=t,this.flags=u}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(t){return this.checker.getPropertyOfType(this,t)}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!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(Ju(this)&3)}isClass(){return!!(Ju(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(Ju(this)&4)return this.checker.getTypeArguments(this)}},trt=class{constructor(t,u){this.checker=t,this.flags=u}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(t){const u=this.checker.getParameterType(this,t);if(u.isIndexType()&&PP(u.type)){const s=u.type.getConstraint();if(s)return this.checker.getIndexType(s)}return u}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Eee(Hy(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=wme(Hy(this.declaration),this.checker))}},irt=class extends Pme{constructor(t,u,s){super(t,u,s),this.kind=312}update(t,u){return qce(this,t,u)}getLineAndCharacterOfPosition(t){return s0(this,t)}getLineStarts(){return $3(this)}getPositionOfLineAndCharacter(t,u,s){return SU($3(this),t,u,this.text,s)}getLineEndOfPosition(t){const{line:u}=this.getLineAndCharacterOfPosition(t),s=this.getLineStarts();let d;u+1>=s.length&&(d=this.getEnd()),d||(d=s[u+1]-1);const f=this.getFullText();return f[d]===` +`&&f[d-1]==="\r"?d-1:d}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){const t=Tm();return this.forEachChild(f),t;function u(p){const E=d(p);E&&t.add(E,p)}function s(p){let E=t.get(p);return E||t.set(p,E=[]),E}function d(p){const E=NU(p);return E&&(Ms(E)&&Ru(E.expression)?E.expression.name.text:wc(E)?GH(E):void 0)}function f(p){switch(p.kind){case 262:case 218:case 174:case 173:const E=p,v=d(E);if(v){const k=s(v),T=Zu(k);T&&E.parent===T.parent&&E.symbol===T.symbol?E.body&&!T.body&&(k[k.length-1]=E):k.push(E)}ao(p,f);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:u(p),ao(p,f);break;case 169:if(!Qu(p,31))break;case 260:case 208:{const k=p;if(So(k.name)){ao(k.name,f);break}k.initializer&&f(k.initializer)}case 306:case 172:case 171:u(p);break;case 278:const b=p;b.exportClause&&(ip(b.exportClause)?L(b.exportClause.elements,f):f(b.exportClause.name));break;case 272:const B=p.importClause;B&&(B.name&&u(B.name),B.namedBindings&&(B.namedBindings.kind===274?u(B.namedBindings):L(B.namedBindings.elements,f)));break;case 226:ec(p)!==0&&u(p);default:ao(p,f)}}}},nrt=class{constructor(t,u,s){this.fileName=t,this.text=u,this.skipTrivia=s}getLineAndCharacterOfPosition(t){return s0(this,t)}},urt=class{constructor(t){this.host=t}getCurrentSourceFile(t){var u,s,d,f,p,E,v,b;const B=this.host.getScriptSnapshot(t);if(!B)throw new Error("Could not find file: '"+t+"'.");const k=Efe(t,this.host),T=this.host.getScriptVersion(t);let M;if(this.currentFileName!==t){const z={languageVersion:99,impliedNodeFormat:yH($0(t,this.host.getCurrentDirectory(),((d=(s=(u=this.host).getCompilerHost)==null?void 0:s.call(u))==null?void 0:d.getCanonicalFileName)||n5(this.host)),(b=(v=(E=(p=(f=this.host).getCompilerHost)==null?void 0:p.call(f))==null?void 0:E.getModuleResolutionCache)==null?void 0:v.call(E))==null?void 0:b.getPackageJsonInfoCache(),this.host,this.host.getCompilationSettings()),setExternalModuleIndicator:Xj(this.host.getCompilationSettings()),jsDocParsingMode:0};M=Dee(t,B,z,T,!0,k)}else if(this.currentFileVersion!==T){const z=B.getChangeRange(this.currentFileScriptSnapshot);M=Lme(this.currentSourceFile,B,T,z)}return M&&(this.currentFileVersion=T,this.currentFileName=t,this.currentFileScriptSnapshot=B,this.currentSourceFile=M),this.currentSourceFile}},rrt={isCancellationRequested:cg,throwIfCancellationRequested:Rs},art=class{constructor(t){this.cancellationToken=t}isCancellationRequested(){return this.cancellationToken.isCancellationRequested()}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"CancellationTokenObject"}),new b8}},Rme=class{constructor(t,u=20){this.hostCancellationToken=t,this.throttleWaitMilliseconds=u,this.lastCancellationCheckTime=0}isCancellationRequested(){const t=J0();return Math.abs(t-this.lastCancellationCheckTime)>=this.throttleWaitMilliseconds?(this.lastCancellationCheckTime=t,this.hostCancellationToken.isCancellationRequested()):!1}throwIfCancellationRequested(){var t;if(this.isCancellationRequested())throw(t=Gn)==null||t.instant(Gn.Phase.Session,"cancellationThrown",{kind:"ThrottledCancellationToken"}),new b8}},cBe=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes"],ort=[...cBe,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors"],rke(aHt())}});function srt(t,u,s){const d=[];s=Xfe(s,d);const f=Wa(t)?t:[t],p=gH(void 0,void 0,q,s,f,u,!0);return p.diagnostics=mi(p.diagnostics,d),p}var fHt=o({"src/services/transform.ts"(){or()}});function mHt(t,u){if(t.isDeclarationFile)return;let s=ya(t,u);const d=t.getLineAndCharacterOfPosition(u).line;if(t.getLineAndCharacterOfPosition(s.getStart(t)).line>d){const T=id(s.pos,t);if(!T||t.getLineAndCharacterOfPosition(T.getEnd()).line!==d)return;s=T}if(s.flags&33554432)return;return k(s);function f(T,M){const z=Ak(T)?lt(T.modifiers,E1):void 0,j=z?gs(t.text,z.end):T.getStart(t);return Kc(j,(M||T).getEnd())}function p(T,M){return f(T,nb(M,M.parent,t))}function E(T,M){return T&&d===t.getLineAndCharacterOfPosition(T.getStart(t)).line?k(T):k(M)}function v(T,M,z){if(T){const j=T.indexOf(M);if(j>=0){let J=j,K=j+1;for(;J>0&&z(T[J-1]);)J--;for(;K0)return k(He.declarations[0])}else return k(De.initializer)}function ae(De){if(De.initializer)return ge(De);if(De.condition)return f(De.condition);if(De.incrementor)return f(De.incrementor)}function Ce(De){const He=L(De.elements,Je=>Je.kind!==232?Je:void 0);return He?k(He):De.parent.kind===208?f(De.parent):M(De.parent)}function ne(De){H.assert(De.kind!==207&&De.kind!==206);const He=De.kind===209?De.elements:De.properties,Je=L(He,mt=>mt.kind!==232?mt:void 0);return Je?k(Je):f(De.parent.kind===226?De.parent:De)}function ve(De){switch(De.parent.kind){case 266:const He=De.parent;return E(id(De.pos,t,De.parent),He.members.length?He.members[0]:He.getLastToken(t));case 263:const Je=De.parent;return E(id(De.pos,t,De.parent),Je.members.length?Je.members[0]:Je.getLastToken(t));case 269:return E(De.parent.parent,De.parent.clauses[0])}return k(De.parent)}function Se(De){switch(De.parent.kind){case 268:if(oD(De.parent.parent)!==1)return;case 266:case 263:return f(De);case 241:if(F2(De.parent))return f(De);case 299:return k(Zu(De.parent.statements));case 269:const He=De.parent,Je=Zu(He.clauses);return Je?k(Zu(Je.statements)):void 0;case 206:const mt=De.parent;return k(Zu(mt.elements)||mt);default:if(p5(De.parent)){const Ye=De.parent;return f(Zu(Ye.properties)||Ye)}return k(De.parent)}}function Ne(De){switch(De.parent.kind){case 207:const He=De.parent;return f(Zu(He.elements)||He);default:if(p5(De.parent)){const Je=De.parent;return f(Zu(Je.elements)||Je)}return k(De.parent)}}function pe(De){return De.parent.kind===246||De.parent.kind===213||De.parent.kind===214?b(De):De.parent.kind===217?B(De):k(De.parent)}function fe(De){switch(De.parent.kind){case 218:case 262:case 219:case 174:case 173:case 177:case 178:case 176:case 247:case 246:case 248:case 250:case 213:case 214:case 217:return b(De);default:return k(De.parent)}}function xe(De){return Co(De.parent)||De.parent.kind===303||De.parent.kind===169?b(De):k(De.parent)}function Be(De){return De.parent.kind===216?B(De):k(De.parent)}function We(De){return De.parent.kind===246?p(De,De.parent.expression):k(De.parent)}function Ae(De){return De.parent.kind===250?B(De):k(De.parent)}}}var pHt=o({"src/services/breakpoints.ts"(){or()}}),Ome={};h(Ome,{spanInSourceFileAtLocation:()=>mHt});var gHt=o({"src/services/_namespaces/ts.BreakpointResolver.ts"(){pHt()}});function EHt(t){return(w0(t)||e1(t))&&gh(t)}function xK(t){return(w0(t)||Z0(t)||e1(t))&&ra(t.parent)&&t===t.parent.initializer&&at(t.parent.name)&&!!(QD(t.parent)&2)}function lrt(t){return ca(t)||xc(t)||td(t)||w0(t)||Jc(t)||e1(t)||zl(t)||hc(t)||u3(t)||Im(t)||jf(t)}function gw(t){return ca(t)||xc(t)&&at(t.name)||td(t)||Jc(t)||zl(t)||hc(t)||u3(t)||Im(t)||jf(t)||EHt(t)||xK(t)}function crt(t){return ca(t)?t:gh(t)?t.name:xK(t)?t.parent.name:H.checkDefined(t.modifiers&&Le(t.modifiers,drt))}function drt(t){return t.kind===90}function hrt(t,u){const s=crt(u);return s&&t.getSymbolAtLocation(s)}function _Ht(t,u){if(ca(u))return{text:u.fileName,pos:0,end:0};if((td(u)||Jc(u))&&!gh(u)){const f=u.modifiers&&Le(u.modifiers,drt);if(f)return{text:"default",pos:f.getStart(),end:f.getEnd()}}if(zl(u)){const f=u.getSourceFile(),p=gs(f.text,nE(u).pos),E=p+6,v=t.getTypeChecker(),b=v.getSymbolAtLocation(u.parent);return{text:`${b?`${v.symbolToString(b,u.parent)} `:""}static {}`,pos:p,end:E}}const s=xK(u)?u.parent.name:H.checkDefined(Ya(u),"Expected call hierarchy item to have a name");let d=at(s)?fu(s):Mm(s)?s.text:Ms(s)&&Mm(s.expression)?s.expression.text:void 0;if(d===void 0){const f=t.getTypeChecker(),p=f.getSymbolAtLocation(s);p&&(d=f.symbolToString(p,u))}if(d===void 0){const f=_H();d=JN(p=>f.writeNode(4,u,u.getSourceFile(),p))}return{text:d,pos:s.getStart(),end:s.getEnd()}}function DHt(t){var u,s;if(xK(t))return aE(t.parent.parent.parent.parent)&&at(t.parent.parent.parent.parent.parent.name)?t.parent.parent.parent.parent.parent.name.getText():void 0;switch(t.kind){case 177:case 178:case 174:return t.parent.kind===210?(u=Rse(t.parent))==null?void 0:u.getText():(s=Ya(t.parent))==null?void 0:s.getText();case 262:case 263:case 267:if(aE(t.parent)&&at(t.parent.parent.name))return t.parent.parent.name.getText()}}function frt(t,u){if(u.body)return u;if(fc(u))return e3(u.parent);if(td(u)||hc(u)){const s=hrt(t,u);return s&&s.valueDeclaration&&U0(s.valueDeclaration)&&s.valueDeclaration.body?s.valueDeclaration:void 0}return u}function mrt(t,u){const s=hrt(t,u);let d;if(s&&s.declarations){const f=Cr(s.declarations),p=Vt(s.declarations,b=>({file:b.getSourceFile().fileName,pos:b.pos}));f.sort((b,B)=>fh(p[b].file,p[B].file)||p[b].pos-p[B].pos);const E=Vt(f,b=>s.declarations[b]);let v;for(const b of E)gw(b)&&((!v||v.parent!==b.parent||v.end!==b.pos)&&(d=Di(d,b)),v=b)}return d}function jme(t,u){return zl(u)?u:U0(u)?frt(t,u)??mrt(t,u)??u:mrt(t,u)??u}function prt(t,u){const s=t.getTypeChecker();let d=!1;for(;;){if(gw(u))return jme(s,u);if(lrt(u)){const f=Tn(u,gw);return f&&jme(s,f)}if(X3(u)){if(gw(u.parent))return jme(s,u.parent);if(lrt(u.parent)){const f=Tn(u.parent,gw);return f&&jme(s,f)}return ra(u.parent)&&u.parent.initializer&&xK(u.parent.initializer)?u.parent.initializer:void 0}if(fc(u))return gw(u.parent)?u.parent:void 0;if(u.kind===126&&zl(u.parent)){u=u.parent;continue}if(ra(u)&&u.initializer&&xK(u.initializer))return u.initializer;if(!d){let f=s.getSymbolAtLocation(u);if(f&&(f.flags&2097152&&(f=s.getAliasedSymbol(f)),f.valueDeclaration)){d=!0,u=f.valueDeclaration;continue}}return}}function dBe(t,u){const s=u.getSourceFile(),d=_Ht(t,u),f=DHt(u),p=ib(u),E=PM(u),v=Kc(gs(s.text,u.getFullStart(),!1,!0),u.getEnd()),b=Kc(d.pos,d.end);return{file:s.fileName,kind:p,kindModifiers:E,name:d.text,containerName:f,span:v,selectionSpan:b}}function xHt(t){return t!==void 0}function vHt(t){if(t.kind===Y0.EntryKind.Node){const{node:u}=t;if(Ihe(u,!0,!0)||q9e(u,!0,!0)||Z9e(u,!0,!0)||Y9e(u,!0,!0)||uw(u)||Hhe(u)){const s=u.getSourceFile();return{declaration:Tn(u,gw)||s,range:nfe(u,s)}}}}function grt(t){return Us(t.declaration)}function CHt(t,u){return{from:t,fromSpans:u}}function bHt(t,u){return CHt(dBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function yHt(t,u,s){if(ca(u)||xc(u)||zl(u))return[];const d=crt(u),f=ti(Y0.findReferenceOrRenameEntries(t,s,t.getSourceFiles(),d,0,{use:Y0.FindReferencesUse.References},vHt),xHt);return f?CN(f,grt,p=>bHt(t,p)):[]}function kHt(t,u){function s(f){const p=Dk(f)?f.tag:Ih(f)?f.tagName:O0(f)||zl(f)?f:f.expression,E=prt(t,p);if(E){const v=nfe(p,f.getSourceFile());if(Wa(E))for(const b of E)u.push({declaration:b,range:v});else u.push({declaration:E,range:v})}}function d(f){if(f&&!(f.flags&33554432)){if(gw(f)){if(gr(f))for(const p of f.members)p.name&&Ms(p.name)&&d(p.name.expression);return}switch(f.kind){case 80:case 271:case 272:case 278:case 264:case 265:return;case 175:s(f);return;case 216:case 234:d(f.expression);return;case 260:case 169:d(f.name),d(f.initializer);return;case 213:s(f),d(f.expression),L(f.arguments,d);return;case 214:s(f),d(f.expression),L(f.arguments,d);return;case 215:s(f),d(f.tag),d(f.template);return;case 286:case 285:s(f),d(f.tagName),d(f.attributes);return;case 170:s(f),d(f.expression);return;case 211:case 212:s(f),ao(f,d);break;case 238:d(f.expression);return}Z_(f)||ao(f,d)}}return d}function FHt(t,u){L(t.statements,u)}function AHt(t,u){!Qu(t,128)&&t.body&&aE(t.body)&&L(t.body.statements,u)}function SHt(t,u,s){const d=frt(t,u);d&&(L(d.parameters,s),s(d.body))}function BHt(t,u){u(t.body)}function wHt(t,u){L(t.modifiers,u);const s=w2(t);s&&u(s.expression);for(const d of t.members)Kp(d)&&L(d.modifiers,u),ko(d)?u(d.initializer):fc(d)&&d.body?(L(d.parameters,u),u(d.body)):zl(d)&&u(d)}function THt(t,u){const s=[],d=kHt(t,s);switch(u.kind){case 312:FHt(u,d);break;case 267:AHt(u,d);break;case 262:case 218:case 219:case 174:case 177:case 178:SHt(t.getTypeChecker(),u,d);break;case 263:case 231:wHt(u,d);break;case 175:BHt(u,d);break;default:H.assertNever(u)}return s}function LHt(t,u){return{to:t,fromSpans:u}}function NHt(t,u){return LHt(dBe(t,u[0].declaration),Vt(u,s=>qx(s.range)))}function PHt(t,u){return u.flags&33554432||u3(u)?[]:CN(THt(t,u),grt,s=>NHt(t,s))}var MHt=o({"src/services/callHierarchy.ts"(){or()}}),o9={};h(o9,{createCallHierarchyItem:()=>dBe,getIncomingCalls:()=>yHt,getOutgoingCalls:()=>PHt,resolveCallHierarchyDeclaration:()=>prt});var zHt=o({"src/services/_namespaces/ts.CallHierarchy.ts"(){MHt()}}),Ert={};h(Ert,{TokenEncodingConsts:()=>iBe,TokenModifier:()=>uBe,TokenType:()=>nBe,getEncodedSemanticClassifications:()=>tBe,getSemanticClassifications:()=>Wut});var IHt=o({"src/services/_namespaces/ts.classifier.v2020.ts"(){$ut()}}),hBe={};h(hBe,{v2020:()=>Ert});var RHt=o({"src/services/_namespaces/ts.classifier.ts"(){IHt()}});function Cg(t,u,s){return mBe(t,jk(s),u,void 0,void 0)}function Oo(t,u,s,d,f,p){return mBe(t,jk(s),u,d,jk(f),p)}function fBe(t,u,s,d,f,p){return mBe(t,jk(s),u,d,f&&jk(f),p)}function mBe(t,u,s,d,f,p){return{fixName:t,description:u,changes:s,fixId:d,fixAllDescription:f,commands:p?[p]:void 0}}function es(t){for(const u of t.errorCodes)pBe=void 0,Vme.add(String(u),t);if(t.fixIds)for(const u of t.fixIds)H.assert(!Hme.has(u)),Hme.set(u,t)}function OHt(){return pBe??(pBe=Ea(Vme.keys()))}function jHt(t,u){const{errorCodes:s}=t;let d=0;for(const p of u)if(kt(s,p.code)&&d++,d>1)break;const f=d<2;return({fixId:p,fixAllDescription:E,...v})=>f?v:{...v,fixId:p,fixAllDescription:E}}function VHt(t){const u=Drt(t),s=Vme.get(String(t.errorCode));return Vu(s,d=>Vt(d.getCodeActions(t),jHt(d,u)))}function HHt(t){return Hme.get(Po(t.fixId,Ua)).getAllCodeActions(t)}function Ew(t,u){return{changes:t,commands:u}}function _rt(t,u){return{fileName:t,textChanges:u}}function f0(t,u,s){const d=[],f=iu.ChangeTracker.with(t,p=>_w(t,u,E=>s(p,E,d)));return Ew(f,d.length===0?void 0:d)}function _w(t,u,s){for(const d of Drt(t))kt(u,d.code)&&s(d)}function Drt({program:t,sourceFile:u,cancellationToken:s}){return[...t.getSemanticDiagnostics(u,s),...t.getSyntacticDiagnostics(u,s),...Ufe(u,t,s)]}var Vme,Hme,pBe,KHt=o({"src/services/codeFixProvider.ts"(){or(),Vme=Tm(),Hme=new Map}});function xrt(t,u,s){const d=SV(s)?q.createAsExpression(s.expression,q.createKeywordTypeNode(159)):q.createTypeAssertion(q.createKeywordTypeNode(159),s.expression);t.replaceNode(u,s.expression,d)}function vrt(t,u){if(!Xn(t))return Tn(ya(t,u),s=>SV(s)||hFe(s))}var Kme,gBe,WHt=o({"src/services/codefixes/addConvertToUnknownForNonOverlappingTypes.ts"(){or(),as(),Kme="addConvertToUnknownForNonOverlappingTypes",gBe=[F.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],es({errorCodes:gBe,getCodeActions:function(u){const s=vrt(u.sourceFile,u.span.start);if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>xrt(f,u.sourceFile,s));return[Oo(Kme,d,F.Add_unknown_conversion_for_non_overlapping_types,Kme,F.Add_unknown_to_all_conversions_of_non_overlapping_types)]},fixIds:[Kme],getAllCodeActions:t=>f0(t,gBe,(u,s)=>{const d=vrt(s.file,s.start);d&&xrt(u,s.file,d)})})}}),GHt=o({"src/services/codefixes/addEmptyExportDeclaration.ts"(){or(),as(),es({errorCodes:[F.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,F.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,F.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(u){const{sourceFile:s}=u,d=iu.ChangeTracker.with(u,f=>{const p=q.createExportDeclaration(void 0,!1,q.createNamedExports([]),void 0);f.insertNodeAtEndOfScope(s,s,p)});return[Cg("addEmptyExportDeclaration",d,F.Add_export_to_make_this_file_into_a_module)]}})}});function Crt(t,u,s,d){const f=s(p=>JHt(p,t.sourceFile,u,d));return Oo(Wme,f,F.Add_async_modifier_to_containing_function,Wme,F.Add_all_missing_async_modifiers)}function JHt(t,u,s,d){if(d&&d.has(Us(s)))return;d==null||d.add(Us(s));const f=q.replaceModifiers(dl(s,!0),q.createNodeArray(q.createModifiersFromModifierFlags(Rx(s)|1024)));t.replaceNode(u,s,f)}function brt(t,u){if(!u)return;const s=ya(t,u.start);return Tn(s,f=>f.getStart(t)Dc(u)?"quit":(Z0(f)||hc(f)||w0(f)||td(f))&&sw(u,of(f,t)))}function $Ht(t,u){return({start:s,length:d,relatedInformation:f,code:p})=>UD(s)&&UD(d)&&sw({start:s,length:d},t)&&p===u&&!!f&&Ge(f,E=>E.code===F.Did_you_mean_to_mark_this_function_as_async.code)}var Wme,EBe,UHt=o({"src/services/codefixes/addMissingAsync.ts"(){or(),as(),Wme="addMissingAsync",EBe=[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_comparable_to_type_1.code],es({fixIds:[Wme],errorCodes:EBe,getCodeActions:function(u){const{sourceFile:s,errorCode:d,cancellationToken:f,program:p,span:E}=u,v=Le(p.getTypeChecker().getDiagnostics(s,f),$Ht(E,d)),b=v&&v.relatedInformation&&Le(v.relatedInformation,T=>T.code===F.Did_you_mean_to_mark_this_function_as_async.code),B=brt(s,b);return B?[Crt(u,B,T=>iu.ChangeTracker.with(u,T))]:void 0},getAllCodeActions:t=>{const{sourceFile:u}=t,s=new Set;return f0(t,EBe,(d,f)=>{const p=f.relatedInformation&&Le(f.relatedInformation,b=>b.code===F.Did_you_mean_to_mark_this_function_as_async.code),E=brt(u,p);return E?Crt(t,E,b=>(b(d),[]),s):void 0})}})}});function yrt(t,u,s,d,f){const p=Ffe(t,s);return p&&qHt(t,u,s,d,f)&&Art(p)?p:void 0}function krt(t,u,s,d,f,p){const{sourceFile:E,program:v,cancellationToken:b}=t,B=ZHt(u,E,b,v,d);if(B){const k=f(T=>{L(B.initializers,({expression:M})=>_Be(T,s,E,d,M,p)),p&&B.needsSecondPassForFixAll&&_Be(T,s,E,d,u,p)});return Cg("addMissingAwaitToInitializer",k,B.initializers.length===1?[F.Add_await_to_initializer_for_0,B.initializers[0].declarationSymbol.name]:F.Add_await_to_initializers)}}function Frt(t,u,s,d,f,p){const E=f(v=>_Be(v,s,t.sourceFile,d,u,p));return Oo(Gme,E,F.Add_await,Gme,F.Fix_all_expressions_possibly_missing_await)}function qHt(t,u,s,d,f){const E=f.getTypeChecker().getDiagnostics(t,d);return Ge(E,({start:v,length:b,relatedInformation:B,code:k})=>UD(v)&&UD(b)&&sw({start:v,length:b},s)&&k===u&&!!B&&Ge(B,T=>T.code===F.Did_you_forget_to_use_await.code))}function ZHt(t,u,s,d,f){const p=YHt(t,f);if(!p)return;let E=p.isCompleteFix,v;for(const b of p.identifiers){const B=f.getSymbolAtLocation(b);if(!B)continue;const k=ar(B.valueDeclaration,ra),T=k&&ar(k.name,at),M=Av(k,243);if(!k||!M||k.type||!k.initializer||M.getSourceFile()!==u||Qu(M,32)||!T||!Art(k.initializer)){E=!1;continue}const z=d.getSemanticDiagnostics(u,s);if(Y0.Core.eachSymbolReferenceInFile(T,f,u,J=>b!==J&&!QHt(J,z,u,f))){E=!1;continue}(v||(v=[])).push({expression:k.initializer,declarationSymbol:B})}return v&&{initializers:v,needsSecondPassForFixAll:!E}}function YHt(t,u){if(Ru(t.parent)&&at(t.parent.expression))return{identifiers:[t.parent.expression],isCompleteFix:!0};if(at(t))return{identifiers:[t],isCompleteFix:!0};if(eu(t)){let s,d=!0;for(const f of[t.left,t.right]){const p=u.getTypeAtLocation(f);if(u.getPromisedTypeOfPromise(p)){if(!at(f)){d=!1;continue}(s||(s=[])).push(f)}}return s&&{identifiers:s,isCompleteFix:d}}}function QHt(t,u,s,d){const f=Ru(t.parent)?t.parent.name:eu(t.parent)?t.parent:t,p=Le(u,E=>E.start===f.getStart(s)&&E.start+E.length===f.getEnd());return p&&kt(Jme,p.code)||d.getTypeAtLocation(f).flags&1}function Art(t){return t.flags&65536||!!Tn(t,u=>u.parent&&Z0(u.parent)&&u.parent.body===u||go(u)&&(u.parent.kind===262||u.parent.kind===218||u.parent.kind===219||u.parent.kind===174))}function _Be(t,u,s,d,f,p){if(BV(f.parent)&&!f.parent.awaitModifier){const E=d.getTypeAtLocation(f),v=d.getAsyncIterableType();if(v&&d.isTypeAssignableTo(E,v)){const b=f.parent;t.replaceNode(s,b,q.updateForOfStatement(b,q.createToken(135),b.initializer,b.expression,b.statement));return}}if(eu(f))for(const E of[f.left,f.right]){if(p&&at(E)){const B=d.getSymbolAtLocation(E);if(B&&p.has(Yo(B)))continue}const v=d.getTypeAtLocation(E),b=d.getPromisedTypeOfPromise(v)?q.createAwaitExpression(E):E;t.replaceNode(s,E,b)}else if(u===DBe&&Ru(f.parent)){if(p&&at(f.parent.expression)){const E=d.getSymbolAtLocation(f.parent.expression);if(E&&p.has(Yo(E)))return}t.replaceNode(s,f.parent.expression,q.createParenthesizedExpression(q.createAwaitExpression(f.parent.expression))),Srt(t,f.parent.expression,s)}else if(kt(xBe,u)&&UE(f.parent)){if(p&&at(f)){const E=d.getSymbolAtLocation(f);if(E&&p.has(Yo(E)))return}t.replaceNode(s,f,q.createParenthesizedExpression(q.createAwaitExpression(f))),Srt(t,f,s)}else{if(p&&ra(f.parent)&&at(f.parent.name)){const E=d.getSymbolAtLocation(f.parent.name);if(E&&!Bs(p,Yo(E)))return}t.replaceNode(s,f,q.createAwaitExpression(f))}}function Srt(t,u,s){const d=id(u.pos,s);d&&NX(d.end,d.parent,s)&&t.insertText(s,u.getStart(s),";")}var Gme,DBe,xBe,Jme,XHt=o({"src/services/codefixes/addMissingAwait.ts"(){or(),as(),Gme="addMissingAwait",DBe=F.Property_0_does_not_exist_on_type_1.code,xBe=[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],Jme=[F.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,F.Operator_0_cannot_be_applied_to_type_1.code,F.Operator_0_cannot_be_applied_to_types_1_and_2.code,F.This_comparison_appears_to_be_unintentional_because_the_types_0_and_1_have_no_overlap.code,F.This_condition_will_always_return_true_since_this_0_is_always_defined.code,F.Type_0_is_not_an_array_type.code,F.Type_0_is_not_an_array_type_or_a_string_type.code,F.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher.code,F.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,F.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,DBe,...xBe],es({fixIds:[Gme],errorCodes:Jme,getCodeActions:function(u){const{sourceFile:s,errorCode:d,span:f,cancellationToken:p,program:E}=u,v=yrt(s,d,f,p,E);if(!v)return;const b=u.program.getTypeChecker(),B=k=>iu.ChangeTracker.with(u,k);return vr([krt(u,v,d,b,B),Frt(u,v,d,b,B)])},getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=t.program.getTypeChecker(),p=new Set;return f0(t,Jme,(E,v)=>{const b=yrt(u,v.code,v,d,s);if(!b)return;const B=k=>(k(E),[]);return krt(t,b,v.code,f,B,p)||Frt(t,b,v.code,f,B,p)})}})}});function Brt(t,u,s,d,f){const p=ya(u,s),E=Tn(p,B=>M8(B.parent)?B.parent.initializer===B:eKt(B)?!1:"quit");if(E)return $me(t,E,u,f);const v=p.parent;if(eu(v)&&v.operatorToken.kind===64&&Od(v.parent))return $me(t,p,u,f);if(vh(v)){const B=d.getTypeChecker();return ye(v.elements,k=>tKt(k,B))?$me(t,v,u,f):void 0}const b=Tn(p,B=>Od(B.parent)?!0:iKt(B)?!1:"quit");if(b){const B=d.getTypeChecker();return wrt(b,B)?$me(t,b,u,f):void 0}}function $me(t,u,s,d){(!d||Bs(d,u))&&t.insertModifierBefore(s,87,u)}function eKt(t){switch(t.kind){case 80:case 209:case 210:case 303:case 304:return!0;default:return!1}}function tKt(t,u){const s=at(t)?t:ld(t,!0)&&at(t.left)?t.left:void 0;return!!s&&!u.getSymbolAtLocation(s)}function iKt(t){switch(t.kind){case 80:case 226:case 28:return!0;default:return!1}}function wrt(t,u){return eu(t)?t.operatorToken.kind===28?ye([t.left,t.right],s=>wrt(s,u)):t.operatorToken.kind===64&&at(t.left)&&!u.getSymbolAtLocation(t.left):!1}var Ume,vBe,nKt=o({"src/services/codefixes/addMissingConst.ts"(){or(),as(),Ume="addMissingConst",vBe=[F.Cannot_find_name_0.code,F.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code],es({errorCodes:vBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Brt(d,u.sourceFile,u.span.start,u.program));if(s.length>0)return[Oo(Ume,s,F.Add_const_to_unresolved_variable,Ume,F.Add_const_to_all_unresolved_variables)]},fixIds:[Ume],getAllCodeActions:t=>{const u=new Set;return f0(t,vBe,(s,d)=>Brt(s,d.file,d.start,t.program,u))}})}});function Trt(t,u,s,d){const f=ya(u,s);if(!at(f))return;const p=f.parent;p.kind===172&&(!d||Bs(d,p))&&t.insertModifierBefore(u,138,p)}var qme,CBe,uKt=o({"src/services/codefixes/addMissingDeclareProperty.ts"(){or(),as(),qme="addMissingDeclareProperty",CBe=[F.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],es({errorCodes:CBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Trt(d,u.sourceFile,u.span.start));if(s.length>0)return[Oo(qme,s,F.Prefix_with_declare,qme,F.Prefix_all_incorrect_property_declarations_with_declare)]},fixIds:[qme],getAllCodeActions:t=>{const u=new Set;return f0(t,CBe,(s,d)=>Trt(s,d.file,d.start,u))}})}});function Lrt(t,u,s){const d=ya(u,s),f=Tn(d,E1);H.assert(!!f,"Expected position to be owned by a decorator.");const p=q.createCallExpression(f.expression,void 0,void 0);t.replaceNode(u,f.expression,p)}var Zme,bBe,rKt=o({"src/services/codefixes/addMissingInvocationForDecorator.ts"(){or(),as(),Zme="addMissingInvocationForDecorator",bBe=[F._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code],es({errorCodes:bBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Lrt(d,u.sourceFile,u.span.start));return[Oo(Zme,s,F.Call_decorator_expression,Zme,F.Add_to_all_uncalled_decorators)]},fixIds:[Zme],getAllCodeActions:t=>f0(t,bBe,(u,s)=>Lrt(u,s.file,s.start))})}});function Nrt(t,u,s){const d=ya(u,s),f=d.parent;if(!io(f))return H.fail("Tried to add a parameter name to a non-parameter: "+H.formatSyntaxKind(d.kind));const p=f.parent.parameters.indexOf(f);H.assert(!f.type,"Tried to add a parameter name to a parameter that already had one."),H.assert(p>-1,"Parameter not found in parent parameter list.");let E=f.name.getEnd(),v=q.createTypeReferenceNode(f.name,void 0),b=Prt(u,f);for(;b;)v=q.createArrayTypeNode(v),E=b.getEnd(),b=Prt(u,b);const B=q.createParameterDeclaration(f.modifiers,f.dotDotDotToken,"arg"+p,f.questionToken,f.dotDotDotToken&&!lY(v)?q.createArrayTypeNode(v):v,f.initializer);t.replaceRange(u,d4(f.getStart(u),E),B)}function Prt(t,u){const s=nb(u.name,u.parent,t);if(s&&s.kind===23&&_k(s.parent)&&io(s.parent.parent))return s.parent.parent}var Yme,yBe,aKt=o({"src/services/codefixes/addNameToNamelessParameter.ts"(){or(),as(),Yme="addNameToNamelessParameter",yBe=[F.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code],es({errorCodes:yBe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Nrt(d,u.sourceFile,u.span.start));return[Oo(Yme,s,F.Add_parameter_name,Yme,F.Add_names_to_all_parameters_without_names)]},fixIds:[Yme],getAllCodeActions:t=>f0(t,yBe,(u,s)=>Nrt(u,s.file,s.start))})}});function oKt(t,u,s){var d,f;const p=Mrt(Ffe(t,u),s);if(!p)return Dt;const{source:E,target:v}=p,b=sKt(E,v,s)?s.getTypeAtLocation(v.expression):s.getTypeAtLocation(v);return(f=(d=b.symbol)==null?void 0:d.declarations)!=null&&f.some(B=>zn(B).fileName.match(/\.d\.ts$/))?Dt:s.getExactOptionalProperties(b)}function sKt(t,u,s){return Ru(u)&&!!s.getExactOptionalProperties(s.getTypeAtLocation(u.expression)).length&&s.getTypeAtLocation(t)===s.getUndefinedType()}function Mrt(t,u){var s;if(t){if(eu(t.parent)&&t.parent.operatorToken.kind===64)return{source:t.parent.right,target:t.parent.left};if(ra(t.parent)&&t.parent.initializer)return{source:t.parent.initializer,target:t.parent.name};if(Mo(t.parent)){const d=u.getSymbolAtLocation(t.parent.expression);if(!(d!=null&&d.valueDeclaration)||!a7(d.valueDeclaration.kind)||!Wt(t))return;const f=t.parent.arguments.indexOf(t);if(f===-1)return;const p=d.valueDeclaration.parameters[f].name;if(at(p))return{source:t,target:p}}else if(Uc(t.parent)&&at(t.parent.name)||pm(t.parent)){const d=Mrt(t.parent.parent,u);if(!d)return;const f=u.getPropertyOfType(u.getTypeAtLocation(d.target),t.parent.name.text),p=(s=f==null?void 0:f.declarations)==null?void 0:s[0];return p?{source:Uc(t.parent)?t.parent.initializer:t.parent.name,target:p}:void 0}}else return}function lKt(t,u){for(const s of u){const d=s.valueDeclaration;if(d&&(zm(d)||ko(d))&&d.type){const f=q.createUnionTypeNode([...d.type.kind===192?d.type.types:[d.type],q.createTypeReferenceNode("undefined")]);t.replaceNode(d.getSourceFile(),d.type,f)}}}var kBe,zrt,cKt=o({"src/services/codefixes/addOptionalPropertyUndefined.ts"(){or(),as(),kBe="addOptionalPropertyUndefined",zrt=[F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_type_of_the_target.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.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],es({errorCodes:zrt,getCodeActions(t){const u=t.program.getTypeChecker(),s=oKt(t.sourceFile,t.span,u);if(!s.length)return;const d=iu.ChangeTracker.with(t,f=>lKt(f,s));return[Cg(kBe,d,F.Add_undefined_to_optional_property_type)]},fixIds:[kBe]})}});function Irt(t,u){const s=ya(t,u);return ar(io(s.parent)?s.parent.parent:s.parent,Rrt)}function Rrt(t){return dKt(t)&&Ort(t)}function Ort(t){return U0(t)?t.parameters.some(Ort)||!t.type&&!!HO(t):!t.type&&!!Cv(t)}function jrt(t,u,s){if(U0(s)&&(HO(s)||s.parameters.some(d=>!!Cv(d)))){if(!s.typeParameters){const f=Vq(s);f.length&&t.insertTypeParameters(u,s,f)}const d=Z0(s)&&!a0(s,21,u);d&&t.insertNodeBefore(u,Pn(s.parameters),q.createToken(21));for(const f of s.parameters)if(!f.type){const p=Cv(f);p&&t.tryInsertTypeAnnotation(u,f,yt(p,sb,Xr))}if(d&&t.insertNodeAfter(u,yr(s.parameters),q.createToken(22)),!s.type){const f=HO(s);f&&t.tryInsertTypeAnnotation(u,s,yt(f,sb,Xr))}}else{const d=H.checkDefined(Cv(s),"A JSDocType for this declaration should exist");H.assert(!s.type,"The JSDocType decl should have a type"),t.tryInsertTypeAnnotation(u,s,yt(d,sb,Xr))}}function dKt(t){return U0(t)||t.kind===260||t.kind===171||t.kind===172}function sb(t){switch(t.kind){case 319:case 320:return q.createTypeReferenceNode("any",Dt);case 323:return fKt(t);case 322:return sb(t.type);case 321:return mKt(t);case 325:return pKt(t);case 324:return gKt(t);case 183:return _Kt(t);case 329:return hKt(t);default:const u=rn(t,sb,Dg);return Yn(u,1),u}}function hKt(t){const u=q.createTypeLiteralNode(Vt(t.jsDocPropertyTags,s=>q.createPropertySignature(void 0,at(s.name)?s.name:s.name.right,oV(s)?q.createToken(58):void 0,s.typeExpression&&yt(s.typeExpression.type,sb,Xr)||q.createKeywordTypeNode(133))));return Yn(u,1),u}function fKt(t){return q.createUnionTypeNode([yt(t.type,sb,Xr),q.createTypeReferenceNode("undefined",Dt)])}function mKt(t){return q.createUnionTypeNode([yt(t.type,sb,Xr),q.createTypeReferenceNode("null",Dt)])}function pKt(t){return q.createArrayTypeNode(yt(t.type,sb,Xr))}function gKt(t){return q.createFunctionTypeNode(Dt,t.parameters.map(EKt),t.type??q.createKeywordTypeNode(133))}function EKt(t){const u=t.parent.parameters.indexOf(t),s=t.type.kind===325&&u===t.parent.parameters.length-1,d=t.name||(s?"rest":"arg"+u),f=s?q.createToken(26):t.dotDotDotToken;return q.createParameterDeclaration(t.modifiers,f,d,t.questionToken,yt(t.type,sb,Xr),t.initializer)}function _Kt(t){let u=t.typeName,s=t.typeArguments;if(at(t.typeName)){if(Cq(t))return DKt(t);let d=t.typeName.text;switch(t.typeName.text){case"String":case"Boolean":case"Object":case"Number":d=d.toLowerCase();break;case"array":case"date":case"promise":d=d[0].toUpperCase()+d.slice(1);break}u=q.createIdentifier(d),(d==="Array"||d==="Promise")&&!t.typeArguments?s=q.createNodeArray([q.createTypeReferenceNode("any",Dt)]):s=kn(t.typeArguments,sb,Xr)}return q.createTypeReferenceNode(u,s)}function DKt(t){const u=q.createParameterDeclaration(void 0,void 0,t.typeArguments[0].kind===150?"n":"s",void 0,q.createTypeReferenceNode(t.typeArguments[0].kind===150?"number":"string",[]),void 0),s=q.createTypeLiteralNode([q.createIndexSignature(void 0,[u],t.typeArguments[1])]);return Yn(s,1),s}var Qme,FBe,xKt=o({"src/services/codefixes/annotateWithTypeFromJSDoc.ts"(){or(),as(),Qme="annotateWithTypeFromJSDoc",FBe=[F.JSDoc_types_may_be_moved_to_TypeScript_types.code],es({errorCodes:FBe,getCodeActions(t){const u=Irt(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>jrt(d,t.sourceFile,u));return[Oo(Qme,s,F.Annotate_with_type_from_JSDoc,Qme,F.Annotate_everything_with_types_from_JSDoc)]},fixIds:[Qme],getAllCodeActions:t=>f0(t,FBe,(u,s)=>{const d=Irt(s.file,s.start);d&&jrt(u,s.file,d)})})}});function Vrt(t,u,s,d,f,p){const E=d.getSymbolAtLocation(ya(u,s));if(!E||!E.valueDeclaration||!(E.flags&19))return;const v=E.valueDeclaration;if(td(v)||w0(v))t.replaceNode(u,v,k(v));else if(ra(v)){const T=B(v);if(!T)return;const M=v.parent.parent;Ad(v.parent)&&v.parent.declarations.length>1?(t.delete(u,v),t.insertNodeAfter(u,M,T)):t.replaceNode(u,M,T)}function b(T){const M=[];return T.exports&&T.exports.forEach(J=>{if(J.name==="prototype"&&J.declarations){const K=J.declarations[0];if(J.declarations.length===1&&Ru(K)&&eu(K.parent)&&K.parent.operatorToken.kind===64&&ys(K.parent.right)){const Y=K.parent.right;j(Y.symbol,void 0,M)}}else j(J,[q.createToken(126)],M)}),T.members&&T.members.forEach((J,K)=>{var Y,oe,se,ge;if(K==="constructor"&&J.valueDeclaration){const ae=(ge=(se=(oe=(Y=T.exports)==null?void 0:Y.get("prototype"))==null?void 0:oe.declarations)==null?void 0:se[0])==null?void 0:ge.parent;ae&&eu(ae)&&ys(ae.right)&&Ge(ae.right.properties,e4e)||t.delete(u,J.valueDeclaration.parent);return}j(J,void 0,M)}),M;function z(J,K){return O0(J)?Ru(J)&&e4e(J)?!0:Co(K):ye(J.properties,Y=>!!(hc(Y)||MU(Y)||Uc(Y)&&w0(Y.initializer)&&Y.name||e4e(Y)))}function j(J,K,Y){if(!(J.flags&8192)&&!(J.flags&4096))return;const oe=J.valueDeclaration,se=oe.parent,ge=se.right;if(!z(oe,ge)||Ge(Y,Se=>{const Ne=Ya(Se);return!!(Ne&&at(Ne)&&fu(Ne)===cc(J))}))return;const ae=se.parent&&se.parent.kind===244?se.parent:se;if(t.delete(u,ae),!ge){Y.push(q.createPropertyDeclaration(K,J.name,void 0,void 0,void 0));return}if(O0(oe)&&(w0(ge)||Z0(ge))){const Se=Km(u,f),Ne=vKt(oe,p,Se);Ne&&Ce(Y,ge,Ne);return}else if(ys(ge)){L(ge.properties,Se=>{(hc(Se)||MU(Se))&&Y.push(Se),Uc(Se)&&w0(Se.initializer)&&Ce(Y,Se.initializer,Se.name),e4e(Se)});return}else{if(_h(u)||!Ru(oe))return;const Se=q.createPropertyDeclaration(K,oe.name,void 0,void 0,ge);cw(se.parent,Se,u),Y.push(Se);return}function Ce(Se,Ne,pe){return w0(Ne)?ne(Se,Ne,pe):ve(Se,Ne,pe)}function ne(Se,Ne,pe){const fe=mi(K,Xme(Ne,134)),xe=q.createMethodDeclaration(fe,void 0,pe,void 0,void 0,Ne.parameters,void 0,Ne.body);cw(se,xe,u),Se.push(xe)}function ve(Se,Ne,pe){const fe=Ne.body;let xe;fe.kind===241?xe=fe:xe=q.createBlock([q.createReturnStatement(fe)]);const Be=mi(K,Xme(Ne,134)),We=q.createMethodDeclaration(Be,void 0,pe,void 0,void 0,Ne.parameters,void 0,xe);cw(se,We,u),Se.push(We)}}}function B(T){const M=T.initializer;if(!M||!w0(M)||!at(T.name))return;const z=b(T.symbol);M.body&&z.unshift(q.createConstructorDeclaration(void 0,M.parameters,M.body));const j=Xme(T.parent.parent,95);return q.createClassDeclaration(j,T.name,void 0,void 0,z)}function k(T){const M=b(E);T.body&&M.unshift(q.createConstructorDeclaration(void 0,T.parameters,T.body));const z=Xme(T,95);return q.createClassDeclaration(z,T.name,void 0,void 0,M)}}function Xme(t,u){return Kp(t)?ti(t.modifiers,s=>s.kind===u):void 0}function e4e(t){return t.name?!!(at(t.name)&&t.name.text==="constructor"):!1}function vKt(t,u,s){if(Ru(t))return t.name;const d=t.argumentExpression;if(Of(d))return d;if(i0(d))return Nm(d.text,js(u))?q.createIdentifier(d.text):T7(d)?q.createStringLiteral(d.text,s===0):d}var t4e,ABe,CKt=o({"src/services/codefixes/convertFunctionToEs6Class.ts"(){or(),as(),t4e="convertFunctionToEs6Class",ABe=[F.This_constructor_function_may_be_converted_to_a_class_declaration.code],es({errorCodes:ABe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Vrt(s,t.sourceFile,t.span.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()));return[Oo(t4e,u,F.Convert_function_to_an_ES2015_class,t4e,F.Convert_all_constructor_functions_to_classes)]},fixIds:[t4e],getAllCodeActions:t=>f0(t,ABe,(u,s)=>Vrt(u,s.file,s.start,t.program.getTypeChecker(),t.preferences,t.program.getCompilerOptions()))})}});function Hrt(t,u,s,d){const f=ya(u,s);let p;if(at(f)&&ra(f.parent)&&f.parent.initializer&&U0(f.parent.initializer)?p=f.parent.initializer:p=ar(Pm(ya(u,s)),Yfe),!p)return;const E=new Map,v=Xn(p),b=yKt(p,d),B=kKt(p,d,E);if(!qfe(B,d))return;const k=B.body&&go(B.body)?bKt(B.body,d):Dt,T={checker:d,synthNamesMap:E,setOfExpressionsToReturn:b,isInJSFile:v};if(!k.length)return;const M=gs(u.text,nE(p).pos);t.insertModifierAt(u,M,134,{suffix:" "});for(const z of k)if(ao(z,function j(J){if(Mo(J)){const K=Dw(J,J,T,!1);if(s9())return!0;t.replaceNodeWithNodes(u,z,K)}else if(!Co(J)&&(ao(J,j),s9()))return!0}),s9())return}function bKt(t,u){const s=[];return k2(t,d=>{ZX(d,u)&&s.push(d)}),s}function yKt(t,u){if(!t.body)return new Set;const s=new Set;return ao(t.body,function d(f){vK(f,u,"then")?(s.add(Us(f)),L(f.arguments,d)):vK(f,u,"catch")||vK(f,u,"finally")?(s.add(Us(f)),ao(f,d)):Wrt(f,u)?s.add(Us(f)):ao(f,d)}),s}function vK(t,u,s){if(!Mo(t))return!1;const f=PH(t,s)&&u.getTypeAtLocation(t);return!!(f&&u.getPromisedTypeOfPromise(f))}function Krt(t,u){return(Ju(t)&4)!==0&&t.target===u}function i4e(t,u,s){if(t.expression.name.escapedText==="finally")return;const d=s.getTypeAtLocation(t.expression.expression);if(Krt(d,s.getPromiseType())||Krt(d,s.getPromiseLikeType()))if(t.expression.name.escapedText==="then"){if(u===qD(t.arguments,0))return qD(t.typeArguments,0);if(u===qD(t.arguments,1))return qD(t.typeArguments,1)}else return qD(t.typeArguments,0)}function Wrt(t,u){return Wt(t)?!!u.getPromisedTypeOfPromise(u.getTypeAtLocation(t)):!1}function kKt(t,u,s){const d=new Map,f=Tm();return ao(t,function p(E){if(!at(E)){ao(E,p);return}const v=u.getSymbolAtLocation(E);if(v){const b=u.getTypeAtLocation(E),B=Zrt(b,u),k=Yo(v).toString();if(B&&!io(E.parent)&&!U0(E.parent)&&!s.has(k)){const T=Ki(B.parameters),M=(T==null?void 0:T.valueDeclaration)&&io(T.valueDeclaration)&&ar(T.valueDeclaration.name,at)||q.createUniqueName("result",16),z=Grt(M,f);s.set(k,z),f.add(M.text,v)}else if(E.parent&&(io(E.parent)||ra(E.parent)||Vs(E.parent))){const T=E.text,M=f.get(T);if(M&&M.some(z=>z!==v)){const z=Grt(E,f);d.set(k,z.identifier),s.set(k,z),f.add(T,v)}else{const z=dl(E);s.set(k,UM(z)),f.add(T,v)}}}}),qH(t,!0,p=>{if(Vs(p)&&at(p.name)&&Op(p.parent)){const E=u.getSymbolAtLocation(p.name),v=E&&d.get(String(Yo(E)));if(v&&v.text!==(p.name||p.propertyName).getText())return q.createBindingElement(p.dotDotDotToken,p.propertyName||p.name,v,p.initializer)}else if(at(p)){const E=u.getSymbolAtLocation(p),v=E&&d.get(String(Yo(E)));if(v)return q.createIdentifier(v.text)}})}function Grt(t,u){const s=(u.get(t.text)||Dt).length,d=s===0?t:q.createIdentifier(t.text+"_"+s);return UM(d)}function s9(){return!Cee}function Yv(){return Cee=!1,Dt}function Dw(t,u,s,d,f){if(vK(u,s.checker,"then"))return SKt(u,qD(u.arguments,0),qD(u.arguments,1),s,d,f);if(vK(u,s.checker,"catch"))return Urt(u,qD(u.arguments,0),s,d,f);if(vK(u,s.checker,"finally"))return AKt(u,qD(u.arguments,0),s,d,f);if(Ru(u))return Dw(t,u.expression,s,d,f);const p=s.checker.getTypeAtLocation(u);return p&&s.checker.getPromisedTypeOfPromise(p)?(H.assertNode(Wl(u).parent,Ru),BKt(t,u,s,d,f)):Yv()}function n4e({checker:t},u){if(u.kind===106)return!0;if(at(u)&&!sl(u)&&fu(u)==="undefined"){const s=t.getSymbolAtLocation(u);return!s||t.isUndefinedSymbol(s)}return!1}function FKt(t){const u=q.createUniqueName(t.identifier.text,16);return UM(u)}function Jrt(t,u,s){let d;return s&&!bK(t,u)&&(CK(s)?(d=s,u.synthNamesMap.forEach((f,p)=>{if(f.identifier.text===s.identifier.text){const E=FKt(s);u.synthNamesMap.set(p,E)}})):d=UM(q.createUniqueName("result",16),s.types),TBe(d)),d}function $rt(t,u,s,d,f){const p=[];let E;if(d&&!bK(t,u)){E=dl(TBe(d));const v=d.types,b=u.checker.getUnionType(v,2),B=u.isInJSFile?void 0:u.checker.typeToTypeNode(b,void 0,void 0),k=[q.createVariableDeclaration(E,void 0,B)],T=q.createVariableStatement(void 0,q.createVariableDeclarationList(k,1));p.push(T)}return p.push(s),f&&E&&LKt(f)&&p.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(dl(eat(f)),void 0,void 0,E)],2))),p}function AKt(t,u,s,d,f){if(!u||n4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=Jrt(t,s,f),E=Dw(t,t.expression.expression,s,!0,p);if(s9())return Yv();const v=BBe(u,d,void 0,void 0,t,s);if(s9())return Yv();const b=q.createBlock(E),B=q.createBlock(v),k=q.createTryStatement(b,void 0,B);return $rt(t,s,k,p,f)}function Urt(t,u,s,d,f){if(!u||n4e(s,u))return Dw(t,t.expression.expression,s,d,f);const p=Qrt(u,s),E=Jrt(t,s,f),v=Dw(t,t.expression.expression,s,!0,E);if(s9())return Yv();const b=BBe(u,d,E,p,t,s);if(s9())return Yv();const B=q.createBlock(v),k=q.createCatchClause(p&&dl(vee(p)),q.createBlock(b)),T=q.createTryStatement(B,k,void 0);return $rt(t,s,T,E,f)}function SKt(t,u,s,d,f,p){if(!u||n4e(d,u))return Urt(t,s,d,f,p);if(s&&!n4e(d,s))return Yv();const E=Qrt(u,d),v=Dw(t.expression.expression,t.expression.expression,d,!0,E);if(s9())return Yv();const b=BBe(u,f,p,E,t,d);return s9()?Yv():mi(v,b)}function BKt(t,u,s,d,f){if(bK(t,s)){let p=dl(u);return d&&(p=q.createAwaitExpression(p)),[q.createReturnStatement(p)]}return u4e(f,q.createAwaitExpression(u),void 0)}function u4e(t,u,s){return!t||Xrt(t)?[q.createExpressionStatement(u)]:CK(t)&&t.hasBeenDeclared?[q.createExpressionStatement(q.createAssignment(dl(wBe(t)),u))]:[q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(dl(vee(t)),void 0,s,u)],2))]}function SBe(t,u){if(u&&t){const s=q.createUniqueName("result",16);return[...u4e(UM(s),t,u),q.createReturnStatement(s)]}return[q.createReturnStatement(t)]}function BBe(t,u,s,d,f,p){var E;switch(t.kind){case 106:break;case 211:case 80:if(!d)break;const v=q.createCallExpression(dl(t),void 0,CK(d)?[wBe(d)]:[]);if(bK(f,p))return SBe(v,i4e(f,t,p.checker));const b=p.checker.getTypeAtLocation(t),B=p.checker.getSignaturesOfType(b,0);if(!B.length)return Yv();const k=B[0].getReturnType(),T=u4e(s,q.createAwaitExpression(v),i4e(f,t,p.checker));return s&&s.types.push(p.checker.getAwaitedType(k)||k),T;case 218:case 219:{const M=t.body,z=(E=Zrt(p.checker.getTypeAtLocation(t),p.checker))==null?void 0:E.getReturnType();if(go(M)){let j=[],J=!1;for(const K of M.statements)if(jp(K))if(J=!0,ZX(K,p.checker))j=j.concat(Yrt(p,K,u,s));else{const Y=z&&K.expression?qrt(p.checker,z,K.expression):K.expression;j.push(...SBe(Y,i4e(f,t,p.checker)))}else{if(u&&k2(K,J3))return Yv();j.push(K)}return bK(f,p)?j.map(K=>dl(K)):wKt(j,s,p,J)}else{const j=Zfe(M,p.checker)?Yrt(p,q.createReturnStatement(M),u,s):Dt;if(j.length>0)return j;if(z){const J=qrt(p.checker,z,M);if(bK(f,p))return SBe(J,i4e(f,t,p.checker));{const K=u4e(s,J,void 0);return s&&s.types.push(p.checker.getAwaitedType(z)||z),K}}else return Yv()}}default:return Yv()}return Dt}function qrt(t,u,s){const d=dl(s);return t.getPromisedTypeOfPromise(u)?q.createAwaitExpression(d):d}function Zrt(t,u){const s=u.getSignaturesOfType(t,0);return Zu(s)}function wKt(t,u,s,d){const f=[];for(const p of t)if(jp(p)){if(p.expression){const E=Wrt(p.expression,s.checker)?q.createAwaitExpression(p.expression):p.expression;u===void 0?f.push(q.createExpressionStatement(E)):CK(u)&&u.hasBeenDeclared?f.push(q.createExpressionStatement(q.createAssignment(wBe(u),E))):f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(vee(u),void 0,void 0,E)],2)))}}else f.push(dl(p));return!d&&u!==void 0&&f.push(q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(vee(u),void 0,void 0,q.createIdentifier("undefined"))],2))),f}function Yrt(t,u,s,d){let f=[];return ao(u,function p(E){if(Mo(E)){const v=Dw(E,E,t,s,d);if(f=f.concat(v),f.length>0)return}else Co(E)||ao(E,p)}),f}function Qrt(t,u){const s=[];let d;if(U0(t)){if(t.parameters.length>0){const b=t.parameters[0].name;d=f(b)}}else at(t)?d=p(t):Ru(t)&&at(t.name)&&(d=p(t.name));if(!d||"identifier"in d&&d.identifier.text==="undefined")return;return d;function f(b){if(at(b))return p(b);const B=Vu(b.elements,k=>Fd(k)?[]:[f(k.name)]);return TKt(b,B)}function p(b){const B=v(b),k=E(B);return k&&u.synthNamesMap.get(Yo(k).toString())||UM(b,s)}function E(b){var B;return((B=ar(b,Yg))==null?void 0:B.symbol)??u.checker.getSymbolAtLocation(b)}function v(b){return b.original?b.original:b}}function Xrt(t){return t?CK(t)?!t.identifier.text:ye(t.elements,Xrt):!0}function UM(t,u=[]){return{kind:0,identifier:t,types:u,hasBeenDeclared:!1,hasBeenReferenced:!1}}function TKt(t,u=Dt,s=[]){return{kind:1,bindingPattern:t,elements:u,types:s}}function wBe(t){return t.hasBeenReferenced=!0,t.identifier}function vee(t){return CK(t)?TBe(t):eat(t)}function eat(t){for(const u of t.elements)vee(u);return t.bindingPattern}function TBe(t){return t.hasBeenDeclared=!0,t.identifier}function CK(t){return t.kind===0}function LKt(t){return t.kind===1}function bK(t,u){return!!t.original&&u.setOfExpressionsToReturn.has(Us(t.original))}var r4e,LBe,Cee,NKt=o({"src/services/codefixes/convertToAsyncFunction.ts"(){or(),as(),r4e="convertToAsyncFunction",LBe=[F.This_may_be_converted_to_an_async_function.code],Cee=!0,es({errorCodes:LBe,getCodeActions(t){Cee=!0;const u=iu.ChangeTracker.with(t,s=>Hrt(s,t.sourceFile,t.span.start,t.program.getTypeChecker()));return Cee?[Oo(r4e,u,F.Convert_to_async_function,r4e,F.Convert_all_to_async_functions)]:[]},fixIds:[r4e],getAllCodeActions:t=>f0(t,LBe,(u,s)=>Hrt(u,s.file,s.start,t.program.getTypeChecker()))})}});function PKt(t,u,s,d,f){var p;for(const E of t.imports){const v=(p=s.getResolvedModule(t,E.text,xg(t,E)))==null?void 0:p.resolvedModule;if(!v||v.resolvedFileName!==u.fileName)continue;const b=iP(E);switch(b.kind){case 271:d.replaceNode(t,b,g5(b.name,void 0,E,f));break;case 213:xf(b,!1)&&d.replaceNode(t,b,q.createPropertyAccessExpression(dl(b),"default"));break}}}function MKt(t,u,s,d,f){const p={original:UKt(t),additional:new Set},E=zKt(t,u,p);IKt(t,E,s);let v=!1,b;for(const B of ti(t.statements,Jl)){const k=iat(t,B,s,u,p,d,f);k&&YU(k,b??(b=new Map))}for(const B of ti(t.statements,k=>!Jl(k))){const k=RKt(t,B,u,s,p,d,E,b,f);v=v||k}return b==null||b.forEach((B,k)=>{s.replaceNode(t,k,B)}),v}function zKt(t,u,s){const d=new Map;return tat(t,f=>{const{text:p}=f.name;!d.has(p)&&(Lq(f.name)||u.resolveName(p,f,111551,!0))&&d.set(p,a4e(`_${p}`,s))}),d}function IKt(t,u,s){tat(t,(d,f)=>{if(f)return;const{text:p}=d.name;s.replaceNode(t,d,q.createIdentifier(u.get(p)||p))})}function tat(t,u){t.forEachChild(function s(d){if(Ru(d)&&Z2(t,d.expression)&&at(d.name)){const{parent:f}=d;u(d,eu(f)&&f.left===d&&f.operatorToken.kind===64)}d.forEachChild(s)})}function RKt(t,u,s,d,f,p,E,v,b){switch(u.kind){case 243:return iat(t,u,d,s,f,p,b),!1;case 244:{const{expression:B}=u;switch(B.kind){case 213:return xf(B,!0)&&d.replaceNode(t,u,g5(void 0,void 0,B.arguments[0],b)),!1;case 226:{const{operatorToken:k}=B;return k.kind===64&&jKt(t,s,B,d,E,v)}}}default:return!1}}function iat(t,u,s,d,f,p,E){const{declarationList:v}=u;let b=!1;const B=Vt(v.declarations,k=>{const{name:T,initializer:M}=k;if(M){if(Z2(t,M))return b=!0,qM([]);if(xf(M,!0))return b=!0,JKt(T,M.arguments[0],d,f,p,E);if(Ru(M)&&xf(M.expression,!0))return b=!0,OKt(T,M.name.text,M.expression.arguments[0],f,E)}return qM([q.createVariableStatement(void 0,q.createVariableDeclarationList([k],v.flags))])});if(b){s.replaceNodeWithNodes(t,u,Vu(B,T=>T.newImports));let k;return L(B,T=>{T.useSitesToUnqualify&&YU(T.useSitesToUnqualify,k??(k=new Map))}),k}}function OKt(t,u,s,d,f){switch(t.kind){case 206:case 207:{const p=a4e(u,d);return qM([aat(p,u,s,f),o4e(void 0,t,q.createIdentifier(p))])}case 80:return qM([aat(t.text,u,s,f)]);default:return H.assertNever(t,`Convert to ES module got invalid syntax form ${t.kind}`)}}function jKt(t,u,s,d,f,p){const{left:E,right:v}=s;if(!Ru(E))return!1;if(Z2(t,E))if(Z2(t,v))d.delete(t,s.parent);else{const b=ys(v)?VKt(v,p):xf(v,!0)?KKt(v.arguments[0],u):void 0;return b?(d.replaceNodeWithNodes(t,s.parent,b[0]),b[1]):(d.replaceRangeWithText(t,d4(E.getStart(t),v.pos),"export default"),!0)}else Z2(t,E.expression)&&HKt(t,s,d,f);return!1}function VKt(t,u){const s=Vr(t.properties,d=>{switch(d.kind){case 177:case 178:case 304:case 305:return;case 303:return at(d.name)?GKt(d.name.text,d.initializer,u):void 0;case 174:return at(d.name)?rat(d.name.text,[q.createToken(95)],d,u):void 0;default:H.assertNever(d,`Convert to ES6 got invalid prop kind ${d.kind}`)}});return s&&[s,!1]}function HKt(t,u,s,d){const{text:f}=u.left.name,p=d.get(f);if(p!==void 0){const E=[o4e(void 0,p,u.right),MBe([q.createExportSpecifier(!1,p,f)])];s.replaceNodeWithNodes(t,u.parent,E)}else WKt(u,t,s)}function KKt(t,u){const s=t.text,d=u.getSymbolAtLocation(t),f=d?d.exports:uU;return f.has("export=")?[[NBe(s)],!0]:f.has("default")?f.size>1?[[nat(s),NBe(s)],!0]:[[NBe(s)],!0]:[[nat(s)],!1]}function nat(t){return MBe(void 0,t)}function NBe(t){return MBe([q.createExportSpecifier(!1,void 0,"default")],t)}function WKt({left:t,right:u,parent:s},d,f){const p=t.name.text;if((w0(u)||Z0(u)||e1(u))&&(!u.name||u.name.text===p)){f.replaceRange(d,{pos:t.getStart(d),end:u.getStart(d)},q.createToken(95),{suffix:" "}),u.name||f.insertName(d,u,p);const E=a0(s,27,d);E&&f.delete(d,E)}else f.replaceNodeRangeWithNodes(d,t.expression,a0(t,25,d),[q.createToken(95),q.createToken(87)],{joiner:" ",suffix:" "})}function GKt(t,u,s){const d=[q.createToken(95)];switch(u.kind){case 218:{const{name:p}=u;if(p&&p.text!==t)return f()}case 219:return rat(t,d,u,s);case 231:return ZKt(t,d,u,s);default:return f()}function f(){return o4e(d,q.createIdentifier(t),PBe(u,s))}}function PBe(t,u){if(!u||!Ge(Ea(u.keys()),d=>Hm(t,d)))return t;return Wa(t)?_fe(t,!0,s):qH(t,!0,s);function s(d){if(d.kind===211){const f=u.get(d);return u.delete(d),f}}}function JKt(t,u,s,d,f,p){switch(t.kind){case 206:{const E=Vr(t.elements,v=>v.dotDotDotToken||v.initializer||v.propertyName&&!at(v.propertyName)||!at(v.name)?void 0:oat(v.propertyName&&v.propertyName.text,v.name.text));if(E)return qM([g5(void 0,E,u,p)])}case 207:{const E=a4e(UBe(u.text,f),d);return qM([g5(q.createIdentifier(E),void 0,u,p),o4e(void 0,dl(t),q.createIdentifier(E))])}case 80:return $Kt(t,u,s,d,p);default:return H.assertNever(t,`Convert to ES module got invalid name kind ${t.kind}`)}}function $Kt(t,u,s,d,f){const p=s.getSymbolAtLocation(t),E=new Map;let v=!1,b;for(const k of d.original.get(t.text)){if(s.getSymbolAtLocation(k)!==p||k===t)continue;const{parent:T}=k;if(Ru(T)){const{name:{text:M}}=T;if(M==="default"){v=!0;const z=k.getText();(b??(b=new Map)).set(T,q.createIdentifier(z))}else{H.assert(T.expression===k,"Didn't expect expression === use");let z=E.get(M);z===void 0&&(z=a4e(M,d),E.set(M,z)),(b??(b=new Map)).set(T,q.createIdentifier(z))}}else v=!0}const B=E.size===0?void 0:Ea(Ir(E.entries(),([k,T])=>q.createImportSpecifier(!1,k===T?void 0:q.createIdentifier(k),q.createIdentifier(T))));return B||(v=!0),qM([g5(v?dl(t):void 0,B,u,f)],b)}function a4e(t,u){for(;u.original.has(t)||u.additional.has(t);)t=`_${t}`;return u.additional.add(t),t}function UKt(t){const u=Tm();return uat(t,s=>u.add(s.text,s)),u}function uat(t,u){at(t)&&qKt(t)&&u(t),t.forEachChild(s=>uat(s,u))}function qKt(t){const{parent:u}=t;switch(u.kind){case 211:return u.name!==t;case 208:return u.propertyName!==t;case 276:return u.propertyName!==t;default:return!0}}function rat(t,u,s,d){return q.createFunctionDeclaration(mi(u,ub(s.modifiers)),dl(s.asteriskToken),t,ub(s.typeParameters),ub(s.parameters),dl(s.type),q.converters.convertToFunctionBlock(PBe(s.body,d)))}function ZKt(t,u,s,d){return q.createClassDeclaration(mi(u,ub(s.modifiers)),t,ub(s.typeParameters),ub(s.heritageClauses),PBe(s.members,d))}function aat(t,u,s,d){return u==="default"?g5(q.createIdentifier(t),void 0,s,d):g5(void 0,[oat(u,t)],s,d)}function oat(t,u){return q.createImportSpecifier(!1,t!==void 0&&t!==u?q.createIdentifier(t):void 0,q.createIdentifier(u))}function o4e(t,u,s){return q.createVariableStatement(t,q.createVariableDeclarationList([q.createVariableDeclaration(u,void 0,void 0,s)],2))}function MBe(t,u){return q.createExportDeclaration(void 0,!1,t&&q.createNamedExports(t),u===void 0?void 0:q.createStringLiteral(u))}function qM(t,u){return{newImports:t,useSitesToUnqualify:u}}var YKt=o({"src/services/codefixes/convertToEsModule.ts"(){or(),as(),es({errorCodes:[F.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES_module.code],getCodeActions(t){const{sourceFile:u,program:s,preferences:d}=t,f=iu.ChangeTracker.with(t,p=>{if(MKt(u,s.getTypeChecker(),p,js(s.getCompilerOptions()),Km(u,d)))for(const v of s.getSourceFiles())PKt(v,u,s,p,Km(v,d))});return[Cg("convertToEsModule",f,F.Convert_to_ES_module)]}})}});function sat(t,u){const s=Tn(ya(t,u),vf);return H.assert(!!s,"Expected position to be owned by a qualified name."),at(s.left)?s:void 0}function lat(t,u,s){const d=s.right.text,f=q.createIndexedAccessTypeNode(q.createTypeReferenceNode(s.left,void 0),q.createLiteralTypeNode(q.createStringLiteral(d)));t.replaceNode(u,s,f)}var s4e,zBe,QKt=o({"src/services/codefixes/correctQualifiedNameToIndexedAccessType.ts"(){or(),as(),s4e="correctQualifiedNameToIndexedAccessType",zBe=[F.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],es({errorCodes:zBe,getCodeActions(t){const u=sat(t.sourceFile,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,f=>lat(f,t.sourceFile,u)),d=`${u.left.text}["${u.right.text}"]`;return[Oo(s4e,s,[F.Rewrite_as_the_indexed_access_type_0,d],s4e,F.Rewrite_all_as_indexed_access_types)]},fixIds:[s4e],getAllCodeActions:t=>f0(t,zBe,(u,s)=>{const d=sat(s.file,s.start);d&&lat(u,s.file,d)})})}});function cat(t,u){return ar(ya(u,t.start).parent,th)}function dat(t,u,s){if(!u)return;const d=u.parent,f=d.parent,p=XKt(u,s);if(p.length===d.elements.length)t.insertModifierBefore(s.sourceFile,156,d);else{const E=q.updateExportDeclaration(f,f.modifiers,!1,q.updateNamedExports(d,ti(d.elements,b=>!kt(p,b))),f.moduleSpecifier,void 0),v=q.createExportDeclaration(void 0,!0,q.createNamedExports(p),f.moduleSpecifier,void 0);t.replaceNode(s.sourceFile,f,E,{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude}),t.insertNodeAfter(s.sourceFile,f,v)}}function XKt(t,u){const s=t.parent;if(s.elements.length===1)return s.elements;const d=RSe(of(s),u.program.getSemanticDiagnostics(u.sourceFile,u.cancellationToken));return ti(s.elements,f=>{var p;return f===t||((p=ISe(f,d))==null?void 0:p.code)===l4e[0]})}var l4e,c4e,eWt=o({"src/services/codefixes/convertToTypeOnlyExport.ts"(){or(),as(),l4e=[F.Re_exporting_a_type_when_0_is_enabled_requires_using_export_type.code],c4e="convertToTypeOnlyExport",es({errorCodes:l4e,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>dat(d,cat(u.span,u.sourceFile),u));if(s.length)return[Oo(c4e,s,F.Convert_to_type_only_export,c4e,F.Convert_all_re_exported_types_to_type_only_exports)]},fixIds:[c4e],getAllCodeActions:function(u){const s=new Map;return f0(u,l4e,(d,f)=>{const p=cat(f,u.sourceFile);p&&Rp(s,Us(p.parent.parent))&&dat(d,p,u)})}})}});function hat(t,u){const{parent:s}=ya(t,u);return bf(s)||Sd(s)&&s.importClause?s:void 0}function fat(t,u,s){if(t.parent.parent.name)return!1;const d=t.parent.elements.filter(p=>!p.isTypeOnly);if(d.length===1)return!0;const f=s.getTypeChecker();for(const p of d)if(Y0.Core.eachSymbolReferenceInFile(p.name,f,u,v=>!Lv(v)))return!1;return!0}function bee(t,u,s){var d;if(bf(s))t.replaceNode(u,s,q.updateImportSpecifier(s,!0,s.propertyName,s.name));else{const f=s.importClause;if(f.name&&f.namedBindings)t.replaceNodeWithNodes(u,s,[q.createImportDeclaration(ub(s.modifiers,!0),q.createImportClause(!0,dl(f.name,!0),void 0),dl(s.moduleSpecifier,!0),dl(s.attributes,!0)),q.createImportDeclaration(ub(s.modifiers,!0),q.createImportClause(!0,void 0,dl(f.namedBindings,!0)),dl(s.moduleSpecifier,!0),dl(s.attributes,!0))]);else{const p=((d=f.namedBindings)==null?void 0:d.kind)===275?q.updateNamedImports(f.namedBindings,Pu(f.namedBindings.elements,v=>q.updateImportSpecifier(v,!1,v.propertyName,v.name))):f.namedBindings,E=q.updateImportDeclaration(s,s.modifiers,q.updateImportClause(f,!0,f.name,p),s.moduleSpecifier,s.attributes);t.replaceNode(u,s,E)}}}var IBe,yee,tWt=o({"src/services/codefixes/convertToTypeOnlyImport.ts"(){or(),as(),IBe=[F.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code,F._0_is_a_type_and_must_be_imported_using_a_type_only_import_when_verbatimModuleSyntax_is_enabled.code],yee="convertToTypeOnlyImport",es({errorCodes:IBe,getCodeActions:function(u){var s;const d=hat(u.sourceFile,u.span.start);if(d){const f=iu.ChangeTracker.with(u,v=>bee(v,u.sourceFile,d)),p=d.kind===276&&fat(d,u.sourceFile,u.program)?iu.ChangeTracker.with(u,v=>bee(v,u.sourceFile,d.parent.parent.parent)):void 0,E=Oo(yee,f,d.kind===276?[F.Use_type_0,((s=d.propertyName)==null?void 0:s.text)??d.name.text]:F.Use_import_type,yee,F.Fix_all_with_type_only_imports);return Ge(p)?[Cg(yee,p,F.Use_import_type),E]:[E]}},fixIds:[yee],getAllCodeActions:function(u){const s=new Set;return f0(u,IBe,(d,f)=>{const p=hat(f.file,f.start);(p==null?void 0:p.kind)===272&&!s.has(p)?(bee(d,f.file,p),s.add(p)):(p==null?void 0:p.kind)===276&&!s.has(p.parent.parent.parent)&&fat(p,f.file,u.program)?(bee(d,f.file,p.parent.parent.parent),s.add(p.parent.parent.parent)):(p==null?void 0:p.kind)===276&&bee(d,f.file,p)})}})}});function mat(t,u,s,d,f=!1){if(!PB(u))return;const p=nWt(u);if(!p)return;const E=u.parent,{leftSibling:v,rightSibling:b}=iWt(u);let B=E.getStart(),k="";!v&&E.comment&&(B=pat(E,E.getStart(),u.getStart()),k=`${d} */${d}`),v&&(f&&PB(v)?(B=u.getStart(),k=""):(B=pat(E,v.getStart(),u.getStart()),k=`${d} */${d}`));let T=E.getEnd(),M="";b&&(f&&PB(b)?(T=b.getStart(),M=`${d}${d}`):(T=b.getStart(),M=`${d}/**${d} * `)),t.replaceRange(s,{pos:B,end:T},p,{prefix:k,suffix:M})}function iWt(t){const u=t.parent,s=u.getChildCount()-1,d=u.getChildren().findIndex(E=>E.getStart()===t.getStart()&&E.getEnd()===t.getEnd()),f=d>0?u.getChildAt(d-1):void 0,p=d0;f--)if(!/[*/\s]/g.test(d.substring(f-1,f)))return u+f;return s}function nWt(t){var u;const{typeExpression:s}=t;if(!s)return;const d=(u=t.name)==null?void 0:u.getText();if(d){if(s.kind===329)return uWt(d,s);if(s.kind===316)return rWt(d,s)}}function uWt(t,u){const s=gat(u);if(Ge(s))return q.createInterfaceDeclaration(void 0,t,void 0,void 0,s)}function rWt(t,u){const s=dl(u.type);if(s)return q.createTypeAliasDeclaration(void 0,q.createIdentifier(t),void 0,s)}function gat(t){const u=t.jsDocPropertyTags;return Ge(u)?qi(u,d=>{var f;const p=aWt(d),E=(f=d.typeExpression)==null?void 0:f.type,v=d.isBracketed;let b;if(E&&K7(E)){const B=gat(E);b=q.createTypeLiteralNode(B)}else E&&(b=dl(E));if(b&&p){const B=v?q.createToken(58):void 0;return q.createPropertySignature(void 0,p,B,b)}}):void 0}function aWt(t){return t.name.kind===80?t.name.text:t.name.right.text}function oWt(t){return lm(t)?Vu(t.jsDoc,u=>{var s;return(s=u.tags)==null?void 0:s.filter(d=>PB(d))}):[]}var d4e,RBe,sWt=o({"src/services/codefixes/convertTypedefToType.ts"(){or(),as(),d4e="convertTypedefToType",RBe=[F.JSDoc_typedef_may_be_converted_to_TypeScript_type.code],es({fixIds:[d4e],errorCodes:RBe,getCodeActions(t){const u=E5(t.host,t.formatContext.options),s=ya(t.sourceFile,t.span.start);if(!s)return;const d=iu.ChangeTracker.with(t,f=>mat(f,s,t.sourceFile,u));if(d.length>0)return[Oo(d4e,d,F.Convert_typedef_to_TypeScript_type,d4e,F.Convert_all_typedef_to_TypeScript_types)]},getAllCodeActions:t=>f0(t,RBe,(u,s)=>{const d=E5(t.host,t.formatContext.options),f=ya(s.file,s.start);f&&mat(u,f,s.file,d,!0)})})}});function Eat(t,u){const s=ya(t,u);if(at(s)){const d=Po(s.parent.parent,zm),f=s.getText(t);return{container:Po(d.parent,fm),typeNode:d.type,constraint:f,name:f==="K"?"P":"K"}}}function _at(t,u,{container:s,typeNode:d,constraint:f,name:p}){t.replaceNode(u,s,q.createMappedTypeNode(void 0,q.createTypeParameterDeclaration(void 0,p,q.createTypeReferenceNode(f)),void 0,void 0,d,void 0))}var h4e,OBe,lWt=o({"src/services/codefixes/convertLiteralTypeToMappedType.ts"(){or(),as(),h4e="convertLiteralTypeToMappedType",OBe=[F._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code],es({errorCodes:OBe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Eat(s,d.start);if(!f)return;const{name:p,constraint:E}=f,v=iu.ChangeTracker.with(u,b=>_at(b,s,f));return[Oo(h4e,v,[F.Convert_0_to_1_in_0,E,p],h4e,F.Convert_all_type_literals_to_mapped_type)]},fixIds:[h4e],getAllCodeActions:t=>f0(t,OBe,(u,s)=>{const d=Eat(s.file,s.start);d&&_at(u,s.file,d)})})}});function Dat(t,u){return H.checkDefined(Qd(ya(t,u)),"There should be a containing class")}function xat(t){return!t.valueDeclaration||!(Dh(t.valueDeclaration)&2)}function vat(t,u,s,d,f,p){const E=t.program.getTypeChecker(),v=cWt(d,E),b=E.getTypeAtLocation(u),k=E.getPropertiesOfType(b).filter(eU(xat,K=>!v.has(K.escapedName))),T=E.getTypeAtLocation(d),M=Le(d.members,K=>fc(K));T.getNumberIndexType()||j(b,1),T.getStringIndexType()||j(b,0);const z=l9(s,t.program,p,t.host);Jwe(d,k,s,t,p,z,K=>J(s,d,K)),z.writeFixes(f);function j(K,Y){const oe=E.getIndexInfoOfType(K,Y);oe&&J(s,d,E.indexInfoToIndexSignatureDeclaration(oe,d,void 0,xw(t)))}function J(K,Y,oe){M?f.insertNodeAfter(K,M,oe):f.insertMemberAtStart(K,Y,oe)}}function cWt(t,u){const s=Xg(t);if(!s)return Ho();const d=u.getTypeAtLocation(s),f=u.getPropertiesOfType(d);return Ho(f.filter(xat))}var jBe,f4e,dWt=o({"src/services/codefixes/fixClassIncorrectlyImplementsInterface.ts"(){or(),as(),jBe=[F.Class_0_incorrectly_implements_interface_1.code,F.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code],f4e="fixClassIncorrectlyImplementsInterface",es({errorCodes:jBe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Dat(u,s.start);return qi(iB(d),f=>{const p=iu.ChangeTracker.with(t,E=>vat(t,f,u,d,E,t.preferences));return p.length===0?void 0:Oo(f4e,p,[F.Implement_interface_0,f.getText(u)],f4e,F.Implement_all_unimplemented_interfaces)})},fixIds:[f4e],getAllCodeActions(t){const u=new Map;return f0(t,jBe,(s,d)=>{const f=Dat(d.file,d.start);if(Rp(u,Us(f)))for(const p of iB(f))vat(t,p,d.file,f,s,t.preferences)})}})}});function l9(t,u,s,d,f){return Cat(t,u,!1,s,d,f)}function Cat(t,u,s,d,f,p){const E=u.getCompilerOptions(),v=[],b=[],B=new Map,k=new Map;return{addImportFromDiagnostic:T,addImportFromExportedSymbol:M,writeFixes:j,hasFixes:J};function T(K,Y){const oe=Sat(Y,K.code,K.start,s);!oe||!oe.length||z(Pn(oe))}function M(K,Y){const oe=H.checkDefined(K.parent),se=OX(K,js(E)),ge=u.getTypeChecker(),ae=ge.getMergedSymbol(eh(K,ge)),Ce=kat(t,ae,se,oe,!1,u,f,d,p),ne=p4e(t,u),ve=bat(t,H.checkDefined(Ce),u,void 0,!!Y,ne,f,d);ve&&z({fix:ve,symbolName:se,errorIdentifierText:void 0})}function z(K){var Y,oe;const{fix:se,symbolName:ge}=K;switch(se.kind){case 0:v.push(se);break;case 1:b.push(se);break;case 2:{const{importClauseOrBindingPattern:ve,importKind:Se,addAsTypeOnly:Ne}=se,pe=String(Us(ve));let fe=B.get(pe);if(fe||B.set(pe,fe={importClauseOrBindingPattern:ve,defaultImport:void 0,namedImports:new Map}),Se===0){const xe=fe==null?void 0:fe.namedImports.get(ge);fe.namedImports.set(ge,ae(xe,Ne))}else H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add to Existing) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((Y=fe.defaultImport)==null?void 0:Y.addAsTypeOnly,Ne)};break}case 3:{const{moduleSpecifier:ve,importKind:Se,useRequire:Ne,addAsTypeOnly:pe}=se,fe=Ce(ve,Se,Ne,pe);switch(H.assert(fe.useRequire===Ne,"(Add new) Tried to add an `import` and a `require` for the same module"),Se){case 1:H.assert(fe.defaultImport===void 0||fe.defaultImport.name===ge,"(Add new) Default import should be missing or match symbolName"),fe.defaultImport={name:ge,addAsTypeOnly:ae((oe=fe.defaultImport)==null?void 0:oe.addAsTypeOnly,pe)};break;case 0:const xe=(fe.namedImports||(fe.namedImports=new Map)).get(ge);fe.namedImports.set(ge,ae(xe,pe));break;case 3:case 2:H.assert(fe.namespaceLikeImport===void 0||fe.namespaceLikeImport.name===ge,"Namespacelike import shoudl be missing or match symbolName"),fe.namespaceLikeImport={importKind:Se,name:ge,addAsTypeOnly:pe};break}break}case 4:break;default:H.assertNever(se,`fix wasn't never - got kind ${se.kind}`)}function ae(ve,Se){return Math.max(ve??0,Se)}function Ce(ve,Se,Ne,pe){const fe=ne(ve,!0),xe=ne(ve,!1),Be=k.get(fe),We=k.get(xe),Ae={defaultImport:void 0,namedImports:void 0,namespaceLikeImport:void 0,useRequire:Ne};return Se===1&&pe===2?Be||(k.set(fe,Ae),Ae):pe===1&&(Be||We)?Be||We:We||(k.set(xe,Ae),Ae)}function ne(ve,Se){return`${Se?1:0}|${ve}`}}function j(K,Y){let oe;t.imports.length===0&&Y!==void 0?oe=Y:oe=Km(t,d);for(const ge of v)GBe(K,t,ge);for(const ge of b)Mat(K,t,ge,oe);B.forEach(({importClauseOrBindingPattern:ge,defaultImport:ae,namedImports:Ce})=>{Pat(K,t,ge,ae,Ea(Ce.entries(),([ne,ve])=>({addAsTypeOnly:ve,name:ne})),d)});let se;k.forEach(({useRequire:ge,defaultImport:ae,namedImports:Ce,namespaceLikeImport:ne},ve)=>{const Se=ve.slice(2),pe=(ge?Rat:Iat)(Se,oe,ae,Ce&&Ea(Ce.entries(),([fe,xe])=>({addAsTypeOnly:xe,name:fe})),ne,E,d);se=co(se,pe)}),se&&zM(K,t,se,!0,d)}function J(){return v.length>0||b.length>0||B.size>0||k.size>0}}function hWt(t,u,s,d){const f=KM(t,d,s),p=Fat(u.getTypeChecker(),t,u.getCompilerOptions());return{getModuleSpecifierForBestExportInfo:E};function E(v,b,B,k){const{fixes:T,computedWithoutCacheCount:M}=m4e(v,b,B,!1,u,t,s,d,p,k),z=Bat(T,t,u,f,s);return z&&{...z,computedWithoutCacheCount:M}}}function fWt(t,u,s,d,f,p,E,v,b,B,k,T){let M;s?(M=iK(d,E,v,k,T).get(d.path,s),H.assertIsDefined(M,"Some exportInfo should match the specified exportMapKey")):(M=Ase(q4(u.name))?[pWt(t,f,u,v,E)]:kat(d,t,f,u,p,v,E,k,T),H.assertIsDefined(M,"Some exportInfo should match the specified symbol / moduleSymbol"));const z=p4e(d,v),j=Lv(ya(d,B)),J=H.checkDefined(bat(d,M,v,B,j,z,E,k));return{moduleSpecifier:J.moduleSpecifier,codeAction:yat(WBe({host:E,formatContext:b,preferences:k},d,f,J,!1,v,k))}}function mWt(t,u,s,d,f,p){const E=s.getCompilerOptions(),v=bd(KBe(t,s.getTypeChecker(),u,E)),b=Lat(t,u,v,s),B=v!==u.text;return b&&yat(WBe({host:d,formatContext:f,preferences:p},t,v,b,B,s,p))}function bat(t,u,s,d,f,p,E,v){const b=KM(t,v,E);return Bat(m4e(u,d,f,p,s,t,E,v).fixes,t,s,b,E)}function yat({description:t,changes:u,commands:s}){return{description:t,changes:u,commands:s}}function kat(t,u,s,d,f,p,E,v,b){const B=Aat(p,E);return iK(t,E,p,v,b).search(t.path,f,k=>k===s,k=>{if(eh(k[0].symbol,B(k[0].isFromPackageJson))===u&&k.some(T=>T.moduleSymbol===d||T.symbol.parent===d))return k})}function pWt(t,u,s,d,f){var p,E;const v=d.getCompilerOptions(),b=k(d.getTypeChecker(),!1);if(b)return b;const B=(E=(p=f.getPackageJsonAutoImportProvider)==null?void 0:p.call(f))==null?void 0:E.getTypeChecker();return H.checkDefined(B&&k(B,!0),"Could not find symbol in specified module for code actions");function k(T,M){const z=JX(s,T,v);if(z&&eh(z.symbol,T)===t)return{symbol:z.symbol,moduleSymbol:s,moduleFileName:void 0,exportKind:z.exportKind,targetFlags:eh(t,T).flags,isFromPackageJson:M};const j=T.tryGetMemberInModuleExportsAndProperties(u,s);if(j&&eh(j,T)===t)return{symbol:j,moduleSymbol:s,moduleFileName:void 0,exportKind:0,targetFlags:eh(t,T).flags,isFromPackageJson:M}}}function m4e(t,u,s,d,f,p,E,v,b=Fat(f.getTypeChecker(),p,f.getCompilerOptions()),B){const k=f.getTypeChecker(),T=Vu(t,b.getImportsForExportInfo),M=u!==void 0&&gWt(T,u),z=_Wt(T,s,k,f.getCompilerOptions());if(z)return{computedWithoutCacheCount:0,fixes:[...M?[M]:Dt,z]};const{fixes:j,computedWithoutCacheCount:J=0}=xWt(t,T,f,p,u,s,d,E,v,B);return{computedWithoutCacheCount:J,fixes:[...M?[M]:Dt,...j]}}function gWt(t,u){return G(t,({declaration:s,importKind:d})=>{var f;if(d!==0)return;const p=EWt(s),E=p&&((f=Z8(s))==null?void 0:f.text);if(E)return{kind:0,namespacePrefix:p,usagePosition:u,moduleSpecifier:E}})}function EWt(t){var u,s,d;switch(t.kind){case 260:return(u=ar(t.name,at))==null?void 0:u.text;case 271:return t.name.text;case 272:return(d=ar((s=t.importClause)==null?void 0:s.namedBindings,Jx))==null?void 0:d.name.text;default:return H.assertNever(t)}}function VBe(t,u,s,d,f,p){return t?u&&p.importsNotUsedAsValues===2||Cle(p)&&(!(d&111551)||f.getTypeOnlyAliasDeclaration(s))?2:1:4}function _Wt(t,u,s,d){let f;for(const E of t){const v=p(E);if(!v)continue;const b=jU(v.importClauseOrBindingPattern);if(v.addAsTypeOnly!==4&&b||v.addAsTypeOnly===4&&!b)return v;f??(f=v)}return f;function p({declaration:E,importKind:v,symbol:b,targetFlags:B}){if(v===3||v===2||E.kind===271)return;if(E.kind===260)return(v===0||v===1)&&E.name.kind===206?{kind:2,importClauseOrBindingPattern:E.name,importKind:v,moduleSpecifier:E.initializer.arguments[0].text,addAsTypeOnly:4}:void 0;const{importClause:k}=E;if(!k||!i0(E.moduleSpecifier))return;const{name:T,namedBindings:M}=k;if(k.isTypeOnly&&!(v===0&&M))return;const z=VBe(u,!1,b,B,s,d);if(!(v===1&&(T||z===2&&M))&&!(v===0&&(M==null?void 0:M.kind)===274))return{kind:2,importClauseOrBindingPattern:k,importKind:v,moduleSpecifier:E.moduleSpecifier.text,addAsTypeOnly:z}}}function Fat(t,u,s){let d;for(const f of u.imports){const p=iP(f);if(bq(p.parent)){const E=t.resolveExternalModuleName(f);E&&(d||(d=Tm())).add(Yo(E),p.parent)}else if(p.kind===272||p.kind===271){const E=t.getSymbolAtLocation(f);E&&(d||(d=Tm())).add(Yo(E),p)}}return{getImportsForExportInfo:({moduleSymbol:f,exportKind:p,targetFlags:E,symbol:v})=>{if(!(E&111551)&&_h(u))return Dt;const b=d==null?void 0:d.get(Yo(f));if(!b)return Dt;const B=HBe(u,p,s);return b.map(k=>({declaration:k,importKind:B,symbol:v,targetFlags:E}))}}}function p4e(t,u){if(!_h(t))return!1;if(t.commonJsModuleIndicator&&!t.externalModuleIndicator)return!0;if(t.externalModuleIndicator&&!t.commonJsModuleIndicator)return!1;const s=u.getCompilerOptions();if(s.configFile)return p1(s)<5;if(t.impliedNodeFormat===1)return!0;if(t.impliedNodeFormat===99)return!1;for(const d of u.getSourceFiles())if(!(d===t||!_h(d)||u.isSourceFileFromExternalLibrary(d))){if(d.commonJsModuleIndicator&&!d.externalModuleIndicator)return!0;if(d.externalModuleIndicator&&!d.commonJsModuleIndicator)return!1}return!0}function Aat(t,u){return KE(s=>s?u.getPackageJsonAutoImportProvider().getTypeChecker():t.getTypeChecker())}function DWt(t,u,s,d,f,p,E,v,b){const B=_h(u),k=t.getCompilerOptions(),T=Ik(t,E),M=Aat(t,E),z=g1(k),j=xX(z),J=b?oe=>({moduleSpecifiers:Y2.tryGetModuleSpecifiersFromCache(oe,u,T,v),computedWithoutCache:!1}):(oe,se)=>Y2.getModuleSpecifiersWithCacheInfo(oe,se,k,u,T,v,void 0,!0);let K=0;const Y=Vu(p,(oe,se)=>{const ge=M(oe.isFromPackageJson),{computedWithoutCache:ae,moduleSpecifiers:Ce}=J(oe.moduleSymbol,ge),ne=!!(oe.targetFlags&111551),ve=VBe(d,!0,oe.symbol,oe.targetFlags,ge,k);return K+=ae?1:0,qi(Ce,Se=>{var Ne;if(j&&q7(Se))return;if(!ne&&B&&s!==void 0)return{kind:1,moduleSpecifier:Se,usagePosition:s,exportInfo:oe,isReExport:se>0};const pe=HBe(u,oe.exportKind,k);let fe;if(s!==void 0&&pe===3&&oe.exportKind===0){const xe=ge.resolveExternalModuleSymbol(oe.moduleSymbol);let Be;xe!==oe.moduleSymbol&&(Be=(Ne=$X(xe,ge,k))==null?void 0:Ne.name),Be||(Be=$Be(oe.moduleSymbol,js(k),!1)),fe={namespacePrefix:Be,usagePosition:s}}return{kind:3,moduleSpecifier:Se,importKind:pe,useRequire:f,addAsTypeOnly:ve,exportInfo:oe,isReExport:se>0,qualification:fe}})});return{computedWithoutCacheCount:K,fixes:Y}}function xWt(t,u,s,d,f,p,E,v,b,B){const k=G(u,T=>vWt(T,p,E,s.getTypeChecker(),s.getCompilerOptions()));return k?{fixes:[k]}:DWt(s,d,f,p,E,t,v,b,B)}function vWt({declaration:t,importKind:u,symbol:s,targetFlags:d},f,p,E,v){var b;const B=(b=Z8(t))==null?void 0:b.text;if(B){const k=p?4:VBe(f,!0,s,d,E,v);return{kind:3,moduleSpecifier:B,importKind:u,addAsTypeOnly:k,useRequire:p}}}function Sat(t,u,s,d){const f=ya(t.sourceFile,s);let p;if(u===F._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code)p=kWt(t,f);else if(at(f))if(u===F._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type.code){const v=bd(KBe(t.sourceFile,t.program.getTypeChecker(),f,t.program.getCompilerOptions())),b=Lat(t.sourceFile,f,v,t.program);return b&&[{fix:b,symbolName:v,errorIdentifierText:f.text}]}else p=SWt(t,f,d);else return;const E=KM(t.sourceFile,t.preferences,t.host);return p&&CWt(p,t.sourceFile,t.program,E,t.host)}function CWt(t,u,s,d,f){const p=E=>$0(E,f.getCurrentDirectory(),n5(f));return Mh(t,(E,v)=>h2(!!E.isJsxNamespaceFix,!!v.isJsxNamespaceFix)||rl(E.fix.kind,v.fix.kind)||wat(E.fix,v.fix,u,s,d.allowsImportingSpecifier,p))}function Bat(t,u,s,d,f){if(Ge(t))return t[0].kind===0||t[0].kind===2?t[0]:t.reduce((p,E)=>wat(E,p,u,s,d.allowsImportingSpecifier,v=>$0(v,f.getCurrentDirectory(),n5(f)))===-1?E:p)}function wat(t,u,s,d,f,p){return t.kind!==0&&u.kind!==0?h2(f(u.moduleSpecifier),f(t.moduleSpecifier))||yWt(t.moduleSpecifier,u.moduleSpecifier,s,d)||h2(Tat(t,s,d.getCompilerOptions(),p),Tat(u,s,d.getCompilerOptions(),p))||nV(t.moduleSpecifier,u.moduleSpecifier):0}function Tat(t,u,s,d){var f;if(t.isReExport&&((f=t.exportInfo)!=null&&f.moduleFileName)&&g1(s)===2&&bWt(t.exportInfo.moduleFileName)){const p=d(dr(t.exportInfo.moduleFileName));return Ma(u.path,p)}return!1}function bWt(t){return Bc(t,[".js",".jsx",".d.ts",".ts",".tsx"],!0)==="index"}function yWt(t,u,s,d){return Ma(t,"node:")&&!Ma(u,"node:")?VX(s,d)?-1:1:Ma(u,"node:")&&!Ma(t,"node:")?VX(s,d)?1:-1:0}function kWt({sourceFile:t,program:u,host:s,preferences:d},f){const p=u.getTypeChecker(),E=FWt(f,p);if(!E)return;const v=p.getAliasedSymbol(E),b=E.name,B=[{symbol:E,moduleSymbol:v,moduleFileName:void 0,exportKind:3,targetFlags:v.flags,isFromPackageJson:!1}],k=p4e(t,u);return m4e(B,void 0,!1,k,u,t,s,d).fixes.map(M=>{var z;return{fix:M,symbolName:b,errorIdentifierText:(z=ar(f,at))==null?void 0:z.text}})}function FWt(t,u){const s=at(t)?u.getSymbolAtLocation(t):void 0;if(qq(s))return s;const{parent:d}=t;if(Ih(d)&&d.tagName===t||V7(d)){const f=u.resolveName(u.getJsxNamespace(d),Ih(d)?t:d,111551,!1);if(qq(f))return f}}function HBe(t,u,s,d){if(s.verbatimModuleSyntax&&(p1(s)===1||t.impliedNodeFormat===1))return 3;switch(u){case 0:return 0;case 1:return 1;case 2:return TWt(t,s,!!d);case 3:return AWt(t,s,!!d);default:return H.assertNever(u)}}function AWt(t,u,s){if(C7(u))return 1;const d=p1(u);switch(d){case 2:case 1:case 3:return Xn(t)&&(Lc(t)||s)?2:3;case 4:case 5:case 6:case 7:case 99:case 0:return 2;case 100:case 199:return t.impliedNodeFormat===99?2:3;default:return H.assertNever(d,`Unexpected moduleKind ${d}`)}}function SWt({sourceFile:t,program:u,cancellationToken:s,host:d,preferences:f},p,E){const v=u.getTypeChecker(),b=u.getCompilerOptions();return Vu(KBe(t,v,p,b),B=>{if(B==="default")return;const k=Lv(p),T=p4e(t,u),M=wWt(B,$8(p),Pk(p),s,t,u,E,d,f);return Ea(ga(M.values(),z=>m4e(z,p.getStart(t),k,T,u,t,d,f).fixes),z=>({fix:z,symbolName:B,errorIdentifierText:p.text,isJsxNamespaceFix:B!==p.text}))})}function Lat(t,u,s,d){const f=d.getTypeChecker(),p=f.resolveName(s,u,111551,!0);if(!p)return;const E=f.getTypeOnlyAliasDeclaration(p);if(!(!E||zn(E)!==t))return{kind:4,typeOnlyAliasDeclaration:E}}function KBe(t,u,s,d){const f=s.parent;if((Ih(f)||K2(f))&&f.tagName===s&&wfe(d.jsx)){const p=u.getJsxNamespace(t);if(BWt(p,s,u))return!aB(s.text)&&!u.resolveName(s.text,s,111551,!1)?[s.text,p]:[p]}return[s.text]}function BWt(t,u,s){if(aB(u.text))return!0;const d=s.resolveName(t,u,111551,!0);return!d||Ge(d.declarations,D2)&&!(d.flags&111551)}function wWt(t,u,s,d,f,p,E,v,b){var B;const k=Tm(),T=KM(f,b,v),M=(B=v.getModuleSpecifierCache)==null?void 0:B.call(v),z=KE(J=>Ik(J?v.getPackageJsonAutoImportProvider():p,v));function j(J,K,Y,oe,se,ge){const ae=z(ge);if(K&&Ife(se,f,K,b,T,ae,M)||!K&&T.allowsImportingAmbientModule(J,ae)){const Ce=se.getTypeChecker();k.add(SSe(Y,Ce).toString(),{symbol:Y,moduleSymbol:J,moduleFileName:K==null?void 0:K.fileName,exportKind:oe,targetFlags:eh(Y,Ce).flags,isFromPackageJson:ge})}}return Rfe(p,v,b,E,(J,K,Y,oe)=>{const se=Y.getTypeChecker();d.throwIfCancellationRequested();const ge=Y.getCompilerOptions(),ae=JX(J,se,ge);ae&&(ae.name===t||$Be(J,js(ge),u)===t)&&jat(ae.resolvedSymbol,s)&&j(J,K,ae.symbol,ae.exportKind,Y,oe);const Ce=se.tryGetMemberInModuleExportsAndProperties(t,J);Ce&&jat(Ce,s)&&j(J,K,Ce,0,Y,oe)}),k}function TWt(t,u,s){const d=C7(u),f=Xn(t);if(!f&&p1(u)>=5)return d?1:2;if(f)return Lc(t)||s?d?1:2:3;for(const p of t.statements)if(_1(p)&&!Xl(p.moduleReference))return 3;return d?1:3}function WBe(t,u,s,d,f,p,E){let v;const b=iu.ChangeTracker.with(t,B=>{v=LWt(B,u,s,d,f,p,E)});return Oo(qBe,b,v,ZBe,F.Add_all_missing_imports)}function LWt(t,u,s,d,f,p,E){const v=Km(u,E);switch(d.kind){case 0:return GBe(t,u,d),[F.Change_0_to_1,s,`${d.namespacePrefix}.${s}`];case 1:return Mat(t,u,d,v),[F.Change_0_to_1,s,zat(d.moduleSpecifier,v)+s];case 2:{const{importClauseOrBindingPattern:b,importKind:B,addAsTypeOnly:k,moduleSpecifier:T}=d;Pat(t,u,b,B===1?{name:s,addAsTypeOnly:k}:void 0,B===0?[{name:s,addAsTypeOnly:k}]:Dt,E);const M=q4(T);return f?[F.Import_0_from_1,s,M]:[F.Update_import_from_0,M]}case 3:{const{importKind:b,moduleSpecifier:B,addAsTypeOnly:k,useRequire:T,qualification:M}=d,z=T?Rat:Iat,j=b===1?{name:s,addAsTypeOnly:k}:void 0,J=b===0?[{name:s,addAsTypeOnly:k}]:void 0,K=b===2||b===3?{importKind:b,name:(M==null?void 0:M.namespacePrefix)||s,addAsTypeOnly:k}:void 0;return zM(t,u,z(B,v,j,J,K,p.getCompilerOptions(),E),!0,E),M&&GBe(t,u,M),f?[F.Import_0_from_1,s,B]:[F.Add_import_from_0,B]}case 4:{const{typeOnlyAliasDeclaration:b}=d,B=NWt(t,b,p,u,E);return B.kind===276?[F.Remove_type_from_import_of_0_from_1,s,Nat(B.parent.parent)]:[F.Remove_type_from_import_declaration_from_0,Nat(B)]}default:return H.assertNever(d,`Unexpected fix kind ${d.kind}`)}}function Nat(t){var u,s;return t.kind===271?((s=ar((u=ar(t.moduleReference,a_))==null?void 0:u.expression,i0))==null?void 0:s.text)||t.moduleReference.getText():Po(t.parent.moduleSpecifier,rs).text}function NWt(t,u,s,d,f){const p=s.getCompilerOptions(),E=Cle(p);switch(u.kind){case 276:if(u.isTypeOnly){const b=Jp.detectImportSpecifierSorting(u.parent.elements,f);if(u.parent.elements.length>1&&b){const B=q.updateImportSpecifier(u,!1,u.propertyName,u.name),k=Jp.getOrganizeImportsComparer(f,b===2),T=Jp.getImportSpecifierInsertionIndex(u.parent.elements,B,k);if(u.parent.elements.indexOf(u)!==T)return t.delete(d,u),t.insertImportSpecifierAtIndex(d,B,u.parent,T),u}return t.deleteRange(d,u.getFirstToken()),u}else return H.assert(u.parent.parent.isTypeOnly),v(u.parent.parent),u.parent.parent;case 273:return v(u),u;case 274:return v(u.parent),u.parent;case 271:return t.deleteRange(d,u.getChildAt(1)),u;default:H.failBadSyntaxKind(u)}function v(b){var B;if(t.delete(d,cfe(b,d)),!p.allowImportingTsExtensions){const k=Z8(b.parent),T=k&&((B=s.getResolvedModule(d,k.text,xg(d,k)))==null?void 0:B.resolvedModule);if(T!=null&&T.resolvedUsingTsExtension){const M=SO(k.text,EQ(k.text,p));t.replaceNode(d,k,q.createStringLiteral(M))}}if(E){const k=ar(b.namedBindings,uD);if(k&&k.elements.length>1){Jp.detectImportSpecifierSorting(k.elements,f)&&u.kind===276&&k.elements.indexOf(u)!==0&&(t.delete(d,u),t.insertImportSpecifierAtIndex(d,u,k,0));for(const T of k.elements)T!==u&&!T.isTypeOnly&&t.insertModifierBefore(d,156,T)}}}}function Pat(t,u,s,d,f,p){var E;if(s.kind===206){d&&B(s,d.name,"default");for(const k of f)B(s,k.name,void 0);return}const v=s.isTypeOnly&&Ge([d,...f],k=>(k==null?void 0:k.addAsTypeOnly)===4),b=s.namedBindings&&((E=ar(s.namedBindings,uD))==null?void 0:E.elements);if(d&&(H.assert(!s.name,"Cannot add a default import to an import clause that already has one"),t.insertNodeAt(u,s.getStart(u),q.createIdentifier(d.name),{suffix:", "})),f.length){let k;if(typeof p.organizeImportsIgnoreCase=="boolean")k=p.organizeImportsIgnoreCase;else if(b){const j=Jp.detectImportSpecifierSorting(b,p);j!==3&&(k=j===2)}k===void 0&&(k=Jp.detectSorting(u,p)===2);const T=Jp.getOrganizeImportsComparer(p,k),M=sc(f.map(j=>q.createImportSpecifier((!s.isTypeOnly||v)&&g4e(j,p),void 0,q.createIdentifier(j.name))),(j,J)=>Jp.compareImportOrExportSpecifiers(j,J,T)),z=(b==null?void 0:b.length)&&Jp.detectImportSpecifierSorting(b,p);if(z&&!(k&&z===1))for(const j of M){const J=v&&!j.isTypeOnly?0:Jp.getImportSpecifierInsertionIndex(b,j,T);t.insertImportSpecifierAtIndex(u,j,s.namedBindings,J)}else if(b!=null&&b.length)for(const j of M)t.insertNodeInListAfter(u,yr(b),j,b);else if(M.length){const j=q.createNamedImports(M);s.namedBindings?t.replaceNode(u,s.namedBindings,j):t.insertNodeAfter(u,H.checkDefined(s.name,"Import clause must have either named imports or a default import"),j)}}if(v&&(t.delete(u,cfe(s,u)),b))for(const k of b)t.insertModifierBefore(u,156,k);function B(k,T,M){const z=q.createBindingElement(void 0,M,T);k.elements.length?t.insertNodeInListAfter(u,yr(k.elements),z):t.replaceNode(u,k,q.createObjectBindingPattern([z]))}}function GBe(t,u,{namespacePrefix:s,usagePosition:d}){t.insertText(u,d,s+".")}function Mat(t,u,{moduleSpecifier:s,usagePosition:d},f){t.insertText(u,d,zat(s,f))}function zat(t,u){const s=lfe(u);return`import(${s}${t}${s}).`}function JBe({addAsTypeOnly:t}){return t===2}function g4e(t,u){return JBe(t)||!!u.preferTypeOnlyAutoImports&&t.addAsTypeOnly!==4}function Iat(t,u,s,d,f,p,E){const v=n9(t,u);let b;if(s!==void 0||d!=null&&d.length){const B=(!s||JBe(s))&&ye(d,JBe)||(p.verbatimModuleSyntax||E.preferTypeOnlyAutoImports)&&(s==null?void 0:s.addAsTypeOnly)!==4&&!Ge(d,k=>k.addAsTypeOnly===4);b=co(b,g5(s&&q.createIdentifier(s.name),d==null?void 0:d.map(k=>q.createImportSpecifier(!B&&g4e(k,E),void 0,q.createIdentifier(k.name))),t,u,B))}if(f){const B=f.importKind===3?q.createImportEqualsDeclaration(void 0,g4e(f,E),q.createIdentifier(f.name),q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(g4e(f,E),void 0,q.createNamespaceImport(q.createIdentifier(f.name))),v,void 0);b=co(b,B)}return H.checkDefined(b)}function Rat(t,u,s,d,f){const p=n9(t,u);let E;if(s||d!=null&&d.length){const v=(d==null?void 0:d.map(({name:B})=>q.createBindingElement(void 0,void 0,B)))||[];s&&v.unshift(q.createBindingElement(void 0,"default",s.name));const b=Oat(q.createObjectBindingPattern(v),p);E=co(E,b)}if(f){const v=Oat(f.name,p);E=co(E,v)}return H.checkDefined(E)}function Oat(t,u){return q.createVariableStatement(void 0,q.createVariableDeclarationList([q.createVariableDeclaration(typeof t=="string"?q.createIdentifier(t):t,void 0,void 0,q.createCallExpression(q.createIdentifier("require"),void 0,[u]))],2))}function jat({declarations:t},u){return Ge(t,s=>!!(LH(s)&u))}function $Be(t,u,s){return UBe(xh(q4(t.name)),u,s)}function UBe(t,u,s){const d=Bc(D8(t,"/index"));let f="",p=!0;const E=d.charCodeAt(0);J_(E,u)?(f+=String.fromCharCode(E),s&&(f=f.toUpperCase())):p=!1;for(let v=1;vWBe(t,d,b,v,b!==B,p,s))},fixIds:[ZBe],getAllCodeActions:t=>{const{sourceFile:u,program:s,preferences:d,host:f,cancellationToken:p}=t,E=Cat(u,s,!0,d,f,p);return _w(t,YBe,v=>E.addImportFromDiagnostic(v,t)),Ew(iu.ChangeTracker.with(t,E.writeFixes))}})}});function Vat(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.This_type_parameter_might_need_an_extends_0_constraint.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;let p=Xwe(f.file,h1(f.start,f.length));if(p!==void 0&&(at(p)&&wl(p.parent)&&(p=p.parent),wl(p))){if($P(p.parent))return;const E=ya(u,s.start),v=t.getTypeChecker();return{constraint:zWt(v,E)||MWt(f.messageText),declaration:p,token:E}}}function Hat(t,u,s,d,f,p){const{declaration:E,constraint:v}=p,b=u.getTypeChecker();if(Ua(v))t.insertText(f,E.name.end,` extends ${v}`);else{const B=js(u.getCompilerOptions()),k=xw({program:u,host:d}),T=l9(f,u,s,d),M=X4e(b,T,v,void 0,B,void 0,k);M&&(t.replaceNode(f,E,q.updateTypeParameterDeclaration(E,void 0,E.name,M,E.default)),T.writeFixes(t))}}function MWt(t){const[u,s]=cE(t,` +`,0).match(/`extends (.*)`/)||[];return s}function zWt(t,u){return Xr(u.parent)?t.getTypeArgumentConstraint(u.parent):(Wt(u)?t.getContextualType(u):void 0)||t.getTypeAtLocation(u)}var E4e,QBe,IWt=o({"src/services/codefixes/fixAddMissingConstraint.ts"(){or(),as(),E4e="addMissingConstraint",QBe=[F.Type_0_is_not_comparable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_0_is_not_assignable_to_type_1_with_exactOptionalPropertyTypes_Colon_true_Consider_adding_undefined_to_the_types_of_the_target_s_properties.code,F.Type_0_is_not_assignable_to_type_1.code,F.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,F.Property_0_is_incompatible_with_index_signature.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Type_0_does_not_satisfy_the_constraint_1.code],es({errorCodes:QBe,getCodeActions(t){const{sourceFile:u,span:s,program:d,preferences:f,host:p}=t,E=Vat(d,u,s);if(E===void 0)return;const v=iu.ChangeTracker.with(t,b=>Hat(b,d,f,p,u,E));return[Oo(E4e,v,F.Add_extends_constraint,E4e,F.Add_extends_constraint_to_all_type_parameters)]},fixIds:[E4e],getAllCodeActions:t=>{const{program:u,preferences:s,host:d}=t,f=new Map;return Ew(iu.ChangeTracker.with(t,p=>{_w(t,QBe,E=>{const v=Vat(u,E.file,h1(E.start,E.length));if(v&&Rp(f,Us(v.declaration)))return Hat(p,u,s,d,E.file,v)})}))}})}});function Kat(t,u,s,d){switch(s){case F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:case F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:case F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:case F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code:return RWt(t,u.sourceFile,d);case F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code:case F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:case F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code:return OWt(t,u.sourceFile,d);default:H.fail("Unexpected error code: "+s)}}function RWt(t,u,s){const d=Gat(u,s);if(_h(u)){t.addJSDocTags(u,d,[q.createJSDocOverrideTag(q.createIdentifier("override"))]);return}const f=d.modifiers||Dt,p=Le(f,N7),E=Le(f,oFe),v=Le(f,T=>Xhe(T.kind)),b=lt(f,E1),B=E?E.end:p?p.end:v?v.end:b?gs(u.text,b.end):d.getStart(u),k=v||p||E?{prefix:" "}:{suffix:" "};t.insertModifierAt(u,B,164,k)}function OWt(t,u,s){const d=Gat(u,s);if(_h(u)){t.filterJSDocTags(u,d,tU(_Y));return}const f=Le(d.modifiers,sFe);H.assertIsDefined(f),t.deleteModifier(u,f)}function Wat(t){switch(t.kind){case 176:case 172:case 174:case 177:case 178:return!0;case 169:return Mf(t,t.parent);default:return!1}}function Gat(t,u){const s=ya(t,u),d=Tn(s,f=>gr(f)?"quit":Wat(f));return H.assert(d&&Wat(d)),d}var XBe,ZM,yK,ewe,twe,jWt=o({"src/services/codefixes/fixOverrideModifier.ts"(){or(),as(),XBe="fixOverrideModifier",ZM="fixAddOverrideModifier",yK="fixRemoveOverrideModifier",ewe=[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code,F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code,F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code,F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code],twe={[F.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:ZM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:ZM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:yK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_its_containing_class_0_does_not_extend_another_class.code]:{descriptions:F.Remove_override_modifier,fixId:yK,fixAllDescriptions:F.Remove_override_modifier},[F.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:ZM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_parameter_property_must_have_a_JSDoc_comment_with_an_override_tag_because_it_overrides_a_member_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:ZM,fixAllDescriptions:F.Add_all_missing_override_modifiers},[F.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code]:{descriptions:F.Add_override_modifier,fixId:ZM,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:yK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers},[F.This_member_cannot_have_a_JSDoc_comment_with_an_override_tag_because_it_is_not_declared_in_the_base_class_0.code]:{descriptions:F.Remove_override_modifier,fixId:yK,fixAllDescriptions:F.Remove_all_unnecessary_override_modifiers}},es({errorCodes:ewe,getCodeActions:function(u){const{errorCode:s,span:d}=u,f=twe[s];if(!f)return Dt;const{descriptions:p,fixId:E,fixAllDescriptions:v}=f,b=iu.ChangeTracker.with(u,B=>Kat(B,u,s,d.start));return[fBe(XBe,b,p,E,v)]},fixIds:[XBe,ZM,yK],getAllCodeActions:t=>f0(t,ewe,(u,s)=>{const{code:d,start:f}=s,p=twe[d];!p||p.fixId!==t.fixId||Kat(u,t,d,f)})})}});function Jat(t,u,s,d){const f=Km(u,d),p=q.createStringLiteral(s.name.text,f===0);t.replaceNode(u,s,zU(s)?q.createElementAccessChain(s.expression,s.questionDotToken,p):q.createElementAccessExpression(s.expression,p))}function $at(t,u){return Po(ya(t,u).parent,Ru)}var _4e,iwe,VWt=o({"src/services/codefixes/fixNoPropertyAccessFromIndexSignature.ts"(){or(),as(),_4e="fixNoPropertyAccessFromIndexSignature",iwe=[F.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code],es({errorCodes:iwe,fixIds:[_4e],getCodeActions(t){const{sourceFile:u,span:s,preferences:d}=t,f=$at(u,s.start),p=iu.ChangeTracker.with(t,E=>Jat(E,t.sourceFile,f,d));return[Oo(_4e,p,[F.Use_element_access_for_0,f.name.text],_4e,F.Use_element_access_for_all_undeclared_properties)]},getAllCodeActions:t=>f0(t,iwe,(u,s)=>Jat(u,s.file,$at(s.file,s.start),t.preferences))})}});function Uat(t,u,s,d){const f=ya(u,s);if(!rw(f))return;const p=tf(f,!1,!1);if(!(!td(p)&&!w0(p))&&!ca(tf(p,!1,!1))){const E=H.checkDefined(a0(p,100,u)),{name:v}=p,b=H.checkDefined(p.body);return w0(p)?v&&Y0.Core.isSymbolReferencedInFile(v,d,u,b)?void 0:(t.delete(u,E),v&&t.delete(u,v),t.insertText(u,b.pos," =>"),[F.Convert_function_expression_0_to_arrow_function,v?v.text:GX]):(t.replaceNode(u,E,q.createToken(87)),t.insertText(u,v.end," = "),t.insertText(u,b.pos," =>"),[F.Convert_function_declaration_0_to_arrow_function,v.text])}}var D4e,nwe,HWt=o({"src/services/codefixes/fixImplicitThis.ts"(){or(),as(),D4e="fixImplicitThis",nwe=[F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],es({errorCodes:nwe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u;let p;const E=iu.ChangeTracker.with(u,v=>{p=Uat(v,s,f.start,d.getTypeChecker())});return p?[Oo(D4e,E,p,D4e,F.Fix_all_implicit_this_errors)]:Dt},fixIds:[D4e],getAllCodeActions:t=>f0(t,nwe,(u,s)=>{Uat(u,s.file,s.start,t.program.getTypeChecker())})})}});function qat(t,u,s){var d,f;const p=ya(t,u);if(at(p)){const E=Tn(p,Sd);if(E===void 0)return;const v=rs(E.moduleSpecifier)?E.moduleSpecifier.text:void 0;if(v===void 0)return;const b=(d=s.getResolvedModule(t,v,void 0))==null?void 0:d.resolvedModule;if(b===void 0)return;const B=s.getSourceFile(b.resolvedFileName);if(B===void 0||WM(s,B))return;const k=B.symbol,T=(f=ar(k.valueDeclaration,qE))==null?void 0:f.locals;if(T===void 0)return;const M=T.get(p.escapedText);if(M===void 0)return;const z=WWt(M);return z===void 0?void 0:{exportName:{node:p,isTypeOnly:gB(z)},node:z,moduleSourceFile:B,moduleSpecifier:v}}}function KWt(t,u,{exportName:s,node:d,moduleSourceFile:f}){const p=x4e(f,s.isTypeOnly);p?Zat(t,u,f,p,[s]):aV(d)?t.insertExportModifier(f,d):Yat(t,u,f,[s])}function uwe(t,u,s,d,f){S(d)&&(f?Zat(t,u,s,f,d):Yat(t,u,s,d))}function x4e(t,u){const s=d=>$c(d)&&(u&&d.isTypeOnly||!d.isTypeOnly);return lt(t.statements,s)}function Zat(t,u,s,d,f){const p=d.exportClause&&ip(d.exportClause)?d.exportClause.elements:q.createNodeArray([]),E=!d.isTypeOnly&&!!(mg(u.getCompilerOptions())||Le(p,v=>v.isTypeOnly));t.replaceNode(s,d,q.updateExportDeclaration(d,d.modifiers,d.isTypeOnly,q.createNamedExports(q.createNodeArray([...p,...Qat(f,E)],p.hasTrailingComma)),d.moduleSpecifier,d.attributes))}function Yat(t,u,s,d){t.insertNodeAtEndOfScope(s,s,q.createExportDeclaration(void 0,!1,q.createNamedExports(Qat(d,mg(u.getCompilerOptions()))),void 0,void 0))}function Qat(t,u){return q.createNodeArray(Vt(t,s=>q.createExportSpecifier(u&&s.isTypeOnly,void 0,s.node)))}function WWt(t){if(t.valueDeclaration===void 0)return Ki(t.declarations);const u=t.valueDeclaration,s=ra(u)?ar(u.parent.parent,Jl):void 0;return s&&S(s.declarationList.declarations)===1?s:u}var v4e,rwe,GWt=o({"src/services/codefixes/fixImportNonExportedMember.ts"(){or(),as(),v4e="fixImportNonExportedMember",rwe=[F.Module_0_declares_1_locally_but_it_is_not_exported.code],es({errorCodes:rwe,fixIds:[v4e],getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=qat(u,s.start,d);if(f===void 0)return;const p=iu.ChangeTracker.with(t,E=>KWt(E,d,f));return[Oo(v4e,p,[F.Export_0_from_module_1,f.exportName.node.text,f.moduleSpecifier],v4e,F.Export_all_referenced_locals)]},getAllCodeActions(t){const{program:u}=t;return Ew(iu.ChangeTracker.with(t,s=>{const d=new Map;_w(t,rwe,f=>{const p=qat(f.file,f.start,u);if(p===void 0)return;const{exportName:E,node:v,moduleSourceFile:b}=p;if(x4e(b,E.isTypeOnly)===void 0&&aV(v))s.insertExportModifier(b,v);else{const B=d.get(b)||{typeOnlyExports:[],exports:[]};E.isTypeOnly?B.typeOnlyExports.push(E):B.exports.push(E),d.set(b,B)}}),d.forEach((f,p)=>{const E=x4e(p,!0);E&&E.isTypeOnly?(uwe(s,u,p,f.typeOnlyExports,E),uwe(s,u,p,f.exports,x4e(p,!1))):uwe(s,u,p,[...f.exports,...f.typeOnlyExports],E)})}))}})}});function JWt(t,u){const s=ya(t,u);return Tn(s,d=>d.kind===202)}function $Wt(t,u,s){if(!s)return;let d=s.type,f=!1,p=!1;for(;d.kind===190||d.kind===191||d.kind===196;)d.kind===190?f=!0:d.kind===191&&(p=!0),d=d.type;const E=q.updateNamedTupleMember(s,s.dotDotDotToken||(p?q.createToken(26):void 0),s.name,s.questionToken||(f?q.createToken(58):void 0),d);E!==s&&t.replaceNode(u,s,E)}var C4e,Xat,UWt=o({"src/services/codefixes/fixIncorrectNamedTupleSyntax.ts"(){or(),as(),C4e="fixIncorrectNamedTupleSyntax",Xat=[F.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,F.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code],es({errorCodes:Xat,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=JWt(s,d.start),p=iu.ChangeTracker.with(u,E=>$Wt(E,s,f));return[Oo(C4e,p,F.Move_labeled_tuple_element_modifiers_to_labels,C4e,F.Move_labeled_tuple_element_modifiers_to_labels)]},fixIds:[C4e]})}});function eot(t,u,s,d){const f=ya(t,u),p=f.parent;if((d===F.No_overload_matches_this_call.code||d===F.Type_0_is_not_assignable_to_type_1.code)&&!sE(p))return;const E=s.program.getTypeChecker();let v;if(Ru(p)&&p.name===f){H.assert($_(f),"Expected an identifier for spelling (property access)");let b=E.getTypeAtLocation(p.expression);p.flags&64&&(b=E.getNonNullableType(b)),v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(eu(p)&&p.operatorToken.kind===103&&p.left===f&&ea(f)){const b=E.getTypeAtLocation(p.right);v=E.getSuggestedSymbolForNonexistentProperty(f,b)}else if(vf(p)&&p.right===f){const b=E.getSymbolAtLocation(p.left);b&&b.flags&1536&&(v=E.getSuggestedSymbolForNonexistentModule(p.right,b))}else if(bf(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for spelling (import)");const b=Tn(f,Sd),B=ZWt(t,s,b);B&&B.symbol&&(v=E.getSuggestedSymbolForNonexistentModule(f,B.symbol))}else if(sE(p)&&p.name===f){H.assertNode(f,at,"Expected an identifier for JSX attribute");const b=Tn(f,Ih),B=E.getContextualTypeForArgumentAtIndex(b,0);v=E.getSuggestedSymbolForNonexistentJSXAttribute(f,B)}else if(Kq(p)&&Yd(p)&&p.name===f){const b=Tn(f,gr),B=b?Xg(b):void 0,k=B?E.getTypeAtLocation(B):void 0;k&&(v=E.getSuggestedSymbolForNonexistentClassMember(Wc(f),k))}else{const b=Pk(f),B=Wc(f);H.assert(B!==void 0,"name should be defined"),v=E.getSuggestedSymbolForNonexistentSymbol(f,B,qWt(b))}return v===void 0?void 0:{node:f,suggestedSymbol:v}}function tot(t,u,s,d,f){const p=cc(d);if(!Nm(p,f)&&Ru(s.parent)){const E=d.valueDeclaration;E&&gh(E)&&ea(E.name)?t.replaceNode(u,s,q.createIdentifier(p)):t.replaceNode(u,s.parent,q.createElementAccessExpression(s.parent.expression,q.createStringLiteral(p)))}else t.replaceNode(u,s,q.createIdentifier(p))}function qWt(t){let u=0;return t&4&&(u|=1920),t&2&&(u|=788968),t&1&&(u|=111551),u}function ZWt(t,u,s){var d;if(!s||!i0(s.moduleSpecifier))return;const f=(d=u.program.getResolvedModule(t,s.moduleSpecifier.text,xg(t,s.moduleSpecifier)))==null?void 0:d.resolvedModule;if(f)return u.program.getSourceFile(f.resolvedFileName)}var awe,owe,YWt=o({"src/services/codefixes/fixSpelling.ts"(){or(),as(),awe="fixSpelling",owe=[F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,F.Cannot_find_name_0_Did_you_mean_1.code,F.Could_not_find_name_0_Did_you_mean_1.code,F.Cannot_find_namespace_0_Did_you_mean_1.code,F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,F._0_has_no_exported_member_named_1_Did_you_mean_2.code,F.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,F.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,F.No_overload_matches_this_call.code,F.Type_0_is_not_assignable_to_type_1.code],es({errorCodes:owe,getCodeActions(t){const{sourceFile:u,errorCode:s}=t,d=eot(u,t.span.start,t,s);if(!d)return;const{node:f,suggestedSymbol:p}=d,E=js(t.host.getCompilationSettings()),v=iu.ChangeTracker.with(t,b=>tot(b,u,f,p,E));return[Oo("spelling",v,[F.Change_spelling_to_0,cc(p)],awe,F.Fix_all_detected_spelling_errors)]},fixIds:[awe],getAllCodeActions:t=>f0(t,owe,(u,s)=>{const d=eot(s.file,s.start,t,s.code),f=js(t.host.getCompilationSettings());d&&tot(u,t.sourceFile,d.node,d.suggestedSymbol,f)})})}});function iot(t,u,s){const d=t.createSymbol(4,u.escapedText);d.links.type=t.getTypeAtLocation(s);const f=Ho([d]);return t.createAnonymousType(void 0,f,[],[],[])}function swe(t,u,s,d){if(!u.body||!go(u.body)||S(u.body.statements)!==1)return;const f=Pn(u.body.statements);if(Od(f)&&lwe(t,u,t.getTypeAtLocation(f.expression),s,d))return{declaration:u,kind:0,expression:f.expression,statement:f,commentSource:f.expression};if(H2(f)&&Od(f.statement)){const p=q.createObjectLiteralExpression([q.createPropertyAssignment(f.label,f.statement.expression)]),E=iot(t,f.label,f.statement.expression);if(lwe(t,u,E,s,d))return Z0(u)?{declaration:u,kind:1,expression:p,statement:f,commentSource:f.statement.expression}:{declaration:u,kind:0,expression:p,statement:f,commentSource:f.statement.expression}}else if(go(f)&&S(f.statements)===1){const p=Pn(f.statements);if(H2(p)&&Od(p.statement)){const E=q.createObjectLiteralExpression([q.createPropertyAssignment(p.label,p.statement.expression)]),v=iot(t,p.label,p.statement.expression);if(lwe(t,u,v,s,d))return{declaration:u,kind:0,expression:E,statement:f,commentSource:p}}}}function lwe(t,u,s,d,f){if(f){const p=t.getSignatureFromDeclaration(u);if(p){Qu(u,1024)&&(s=t.createPromiseType(s));const E=t.createSignature(u,p.typeParameters,p.thisParameter,p.parameters,s,void 0,p.minArgumentCount,p.flags);s=t.createAnonymousType(void 0,Ho(),[E],[],[])}else s=t.getAnyType()}return t.isTypeAssignableTo(s,d)}function not(t,u,s,d){const f=ya(u,s);if(!f.parent)return;const p=Tn(f.parent,U0);switch(d){case F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code:return!p||!p.body||!p.type||!Hm(p.type,f)?void 0:swe(t,p,t.getTypeFromTypeNode(p.type),!1);case F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:if(!p||!Mo(p.parent)||!p.body)return;const E=p.parent.arguments.indexOf(p);if(E===-1)return;const v=t.getContextualTypeForArgumentAtIndex(p.parent,E);return v?swe(t,p,v,!0):void 0;case F.Type_0_is_not_assignable_to_type_1.code:if(!X3(f)||!G8(f.parent)&&!sE(f.parent))return;const b=QWt(f.parent);return!b||!U0(b)||!b.body?void 0:swe(t,b,t.getTypeAtLocation(f.parent),!0)}}function QWt(t){switch(t.kind){case 260:case 169:case 208:case 172:case 303:return t.initializer;case 291:return t.initializer&&(QP(t.initializer)?t.initializer.expression:void 0);case 304:case 171:case 306:case 355:case 348:return}}function uot(t,u,s,d){Kf(s);const f=QH(u);t.replaceNode(u,d,q.createReturnStatement(s),{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,suffix:f?";":void 0})}function rot(t,u,s,d,f,p){const E=p||BX(d)?q.createParenthesizedExpression(d):d;Kf(f),Rk(f,E),t.replaceNode(u,s.body,E)}function aot(t,u,s,d){t.replaceNode(u,s.body,q.createParenthesizedExpression(d))}function XWt(t,u,s){const d=iu.ChangeTracker.with(t,f=>uot(f,t.sourceFile,u,s));return Oo(b4e,d,F.Add_a_return_statement,y4e,F.Add_all_missing_return_statement)}function eGt(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>rot(p,t.sourceFile,u,s,d,!1));return Oo(b4e,f,F.Remove_braces_from_arrow_function_body,k4e,F.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues)}function tGt(t,u,s){const d=iu.ChangeTracker.with(t,f=>aot(f,t.sourceFile,u,s));return Oo(b4e,d,F.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal,F4e,F.Wrap_all_object_literal_with_parentheses)}var b4e,y4e,k4e,F4e,cwe,iGt=o({"src/services/codefixes/returnValueCorrect.ts"(){or(),as(),b4e="returnValueCorrect",y4e="fixAddReturnStatement",k4e="fixRemoveBracesFromArrowFunctionBody",F4e="fixWrapTheBlockWithParen",cwe=[F.A_function_whose_declared_type_is_neither_undefined_void_nor_any_must_return_a_value.code,F.Type_0_is_not_assignable_to_type_1.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code],es({errorCodes:cwe,fixIds:[y4e,k4e,F4e],getCodeActions:function(u){const{program:s,sourceFile:d,span:{start:f},errorCode:p}=u,E=not(s.getTypeChecker(),d,f,p);if(E)return E.kind===0?Di([XWt(u,E.expression,E.statement)],Z0(E.declaration)?eGt(u,E.declaration,E.expression,E.commentSource):void 0):[tGt(u,E.declaration,E.expression)]},getAllCodeActions:t=>f0(t,cwe,(u,s)=>{const d=not(t.program.getTypeChecker(),s.file,s.start,s.code);if(d)switch(t.fixId){case y4e:uot(u,s.file,d.expression,d.statement);break;case k4e:if(!Z0(d.declaration))return;rot(u,s.file,d.declaration,d.expression,d.commentSource,!1);break;case F4e:if(!Z0(d.declaration))return;aot(u,s.file,d.declaration,d.expression);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function oot(t,u,s,d,f){var p;const E=ya(t,u),v=E.parent;if(s===F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code){if(!(E.kind===19&&ys(v)&&Mo(v.parent)))return;const z=Ue(v.parent.arguments,Y=>Y===v);if(z<0)return;const j=d.getResolvedSignature(v.parent);if(!(j&&j.declaration&&j.parameters[z]))return;const J=j.parameters[z].valueDeclaration;if(!(J&&io(J)&&at(J.name)))return;const K=Ea(d.getUnmatchedProperties(d.getTypeAtLocation(v),d.getParameterType(j,z),!1,!1));return S(K)?{kind:3,token:J.name,properties:K,parentDeclaration:v}:void 0}if(!$_(E))return;if(at(E)&&Nx(v)&&v.initializer&&ys(v.initializer)){const z=d.getContextualType(E)||d.getTypeAtLocation(E),j=Ea(d.getUnmatchedProperties(d.getTypeAtLocation(v.initializer),z,!1,!1));return S(j)?{kind:3,token:E,properties:j,parentDeclaration:v.initializer}:void 0}if(at(E)&&Ih(E.parent)){const z=js(f.getCompilerOptions()),j=lGt(d,z,E.parent);return S(j)?{kind:4,token:E,attributes:j,parentDeclaration:E.parent}:void 0}if(at(E)){const z=(p=d.getContextualType(E))==null?void 0:p.getNonNullableType();if(z&&Ju(z)&16){const j=Ki(d.getSignaturesOfType(z,0));return j===void 0?void 0:{kind:5,token:E,signature:j,sourceFile:t,parentDeclaration:_ot(E)}}if(Mo(v)&&v.expression===E)return{kind:2,token:E,call:v,sourceFile:t,modifierFlags:0,parentDeclaration:_ot(E)}}if(!Ru(v))return;const b=rfe(d.getTypeAtLocation(v.expression)),B=b.symbol;if(!B||!B.declarations)return;if(at(E)&&Mo(v.parent)){const z=Le(B.declarations,xc),j=z==null?void 0:z.getSourceFile();if(z&&j&&!WM(f,j))return{kind:2,token:E,call:v.parent,sourceFile:t,modifierFlags:32,parentDeclaration:z};const J=Le(B.declarations,ca);if(t.commonJsModuleIndicator)return;if(J&&!WM(f,J))return{kind:2,token:E,call:v.parent,sourceFile:J,modifierFlags:32,parentDeclaration:J}}const k=Le(B.declarations,gr);if(!k&&ea(E))return;const T=k||Le(B.declarations,z=>Ch(z)||fm(z));if(T&&!WM(f,T.getSourceFile())){const z=!fm(T)&&(b.target||b)!==d.getDeclaredTypeOfSymbol(B);if(z&&(ea(E)||Ch(T)))return;const j=T.getSourceFile(),J=fm(T)?0:(z?256:0)|(Bfe(E.text)?2:0),K=_h(j),Y=ar(v.parent,Mo);return{kind:0,token:E,call:Y,modifierFlags:J,parentDeclaration:T,declSourceFile:j,isJSFile:K}}const M=Le(B.declarations,Rv);if(M&&!(b.flags&1056)&&!ea(E)&&!WM(f,M.getSourceFile()))return{kind:1,token:E,parentDeclaration:M}}function nGt(t,u){return u.isJSFile?Hy(uGt(t,u)):rGt(t,u)}function uGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){if(Ch(u)||fm(u))return;const p=iu.ChangeTracker.with(t,v=>sot(v,s,u,f,!!(d&256)));if(p.length===0)return;const E=d&256?F.Initialize_static_property_0:ea(f)?F.Declare_a_private_field_named_0:F.Initialize_property_0_in_the_constructor;return Oo(Yx,p,[E,f.text],Yx,F.Add_all_missing_members)}function sot(t,u,s,d,f){const p=d.text;if(f){if(s.kind===231)return;const E=s.name.getText(),v=lot(q.createIdentifier(E),p);t.insertNodeAfter(u,s,v)}else if(ea(d)){const E=q.createPropertyDeclaration(void 0,p,void 0,void 0,void 0),v=hot(s);v?t.insertNodeAfter(u,v,E):t.insertMemberAtStart(u,s,E)}else{const E=e3(s);if(!E)return;const v=lot(q.createThis(),p);t.insertNodeAtConstructorEnd(u,E,v)}}function lot(t,u){return q.createExpressionStatement(q.createAssignment(q.createPropertyAccessExpression(t,u),c9()))}function rGt(t,{parentDeclaration:u,declSourceFile:s,modifierFlags:d,token:f}){const p=f.text,E=d&256,v=cot(t.program.getTypeChecker(),u,f),b=k=>iu.ChangeTracker.with(t,T=>dot(T,s,u,p,v,k)),B=[Oo(Yx,b(d&256),[E?F.Declare_static_property_0:F.Declare_property_0,p],Yx,F.Add_all_missing_members)];return E||ea(f)||(d&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_property_0,p])),B.push(aGt(t,s,u,f.text,v))),B}function cot(t,u,s){let d;if(s.parent.parent.kind===226){const f=s.parent.parent,p=s.parent===f.left?f.right:f.left,E=t.getWidenedType(t.getBaseTypeOfLiteralType(t.getTypeAtLocation(p)));d=t.typeToTypeNode(E,u,1)}else{const f=t.getContextualType(s.parent);d=f?t.typeToTypeNode(f,void 0,1):void 0}return d||q.createKeywordTypeNode(133)}function dot(t,u,s,d,f,p){const E=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,v=gr(s)?q.createPropertyDeclaration(E,d,void 0,f,void 0):q.createPropertySignature(void 0,d,void 0,f),b=hot(s);b?t.insertNodeAfter(u,b,v):t.insertMemberAtStart(u,s,v)}function hot(t){let u;for(const s of t.members){if(!ko(s))break;u=s}return u}function aGt(t,u,s,d,f){const p=q.createKeywordTypeNode(154),E=q.createParameterDeclaration(void 0,void 0,"x",void 0,p,void 0),v=q.createIndexSignature(void 0,[E],f),b=iu.ChangeTracker.with(t,B=>B.insertMemberAtStart(u,s,v));return Cg(Yx,b,[F.Add_index_signature_for_property_0,d])}function oGt(t,u){const{parentDeclaration:s,declSourceFile:d,modifierFlags:f,token:p,call:E}=u;if(E===void 0)return;const v=p.text,b=k=>iu.ChangeTracker.with(t,T=>fot(t,T,E,p,k,s,d)),B=[Oo(Yx,b(f&256),[f&256?F.Declare_static_method_0:F.Declare_method_0,v],Yx,F.Add_all_missing_members)];return f&2&&B.unshift(Cg(Yx,b(2),[F.Declare_private_method_0,v])),B}function fot(t,u,s,d,f,p,E){const v=l9(E,t.program,t.preferences,t.host),b=gr(p)?174:173,B=$we(b,t,v,s,d,f,p),k=cGt(p,s);k?u.insertNodeAfter(E,k,B):u.insertMemberAtStart(E,p,B),v.writeFixes(u)}function mot(t,u,{token:s,parentDeclaration:d}){const f=Ge(d.members,E=>{const v=u.getTypeAtLocation(E);return!!(v&&v.flags&402653316)}),p=q.createEnumMember(s,f?q.createStringLiteral(s.text):void 0);t.replaceNode(d.getSourceFile(),d,q.updateEnumDeclaration(d,d.modifiers,d.name,mi(d.members,Hy(p))),{leadingTriviaOption:iu.LeadingTriviaOption.IncludeAll,trailingTriviaOption:iu.TrailingTriviaOption.Exclude})}function pot(t,u,s){const d=Km(u.sourceFile,u.preferences),f=l9(u.sourceFile,u.program,u.preferences,u.host),p=s.kind===2?$we(262,u,f,s.call,fu(s.token),s.modifierFlags,s.parentDeclaration):Q4e(262,u,d,s.signature,Tee(F.Function_not_implemented.message,d),s.token,void 0,void 0,void 0,f);p===void 0&&H.fail("fixMissingFunctionDeclaration codefix got unexpected error."),jp(s.parentDeclaration)?t.insertNodeBefore(s.sourceFile,s.parentDeclaration,p,!0):t.insertNodeAtEndOfScope(s.sourceFile,s.parentDeclaration,p),f.writeFixes(t)}function got(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Km(u.sourceFile,u.preferences),p=u.program.getTypeChecker(),E=s.parentDeclaration.attributes,v=Ge(E.properties,H7),b=Vt(s.attributes,T=>{const M=A4e(u,p,d,f,p.getTypeOfSymbol(T),s.parentDeclaration),z=q.createIdentifier(T.name),j=q.createJsxAttribute(z,q.createJsxExpression(void 0,M));return ks(z,j),j}),B=q.createJsxAttributes(v?[...b,...E.properties]:[...E.properties,...b]),k={prefix:E.pos===E.end?" ":void 0};t.replaceNode(u.sourceFile,E,B,k),d.writeFixes(t)}function Eot(t,u,s){const d=l9(u.sourceFile,u.program,u.preferences,u.host),f=Km(u.sourceFile,u.preferences),p=js(u.program.getCompilerOptions()),E=u.program.getTypeChecker(),v=Vt(s.properties,B=>{const k=A4e(u,E,d,f,E.getTypeOfSymbol(B),s.parentDeclaration);return q.createPropertyAssignment(dGt(B,p,f,E),k)}),b={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Exclude,indentation:s.indentation};t.replaceNode(u.sourceFile,s.parentDeclaration,q.createObjectLiteralExpression([...s.parentDeclaration.properties,...v],!0),b),d.writeFixes(t)}function A4e(t,u,s,d,f,p){if(f.flags&3)return c9();if(f.flags&134217732)return q.createStringLiteral("",d===0);if(f.flags&8)return q.createNumericLiteral(0);if(f.flags&64)return q.createBigIntLiteral("0n");if(f.flags&16)return q.createFalse();if(f.flags&1056){const E=f.symbol.exports?Hn(f.symbol.exports.values()):f.symbol,v=u.symbolToExpression(f.symbol.parent?f.symbol.parent:f.symbol,111551,void 0,void 0);return E===void 0||v===void 0?q.createNumericLiteral(0):q.createPropertyAccessExpression(v,u.symbolToString(E))}if(f.flags&256)return q.createNumericLiteral(f.value);if(f.flags&2048)return q.createBigIntLiteral(f.value);if(f.flags&128)return q.createStringLiteral(f.value,d===0);if(f.flags&512)return f===u.getFalseType()||f===u.getFalseType(!0)?q.createFalse():q.createTrue();if(f.flags&65536)return q.createNull();if(f.flags&1048576)return G(f.types,v=>A4e(t,u,s,d,v,p))??c9();if(u.isArrayLikeType(f))return q.createArrayLiteralExpression();if(sGt(f)){const E=Vt(u.getPropertiesOfType(f),v=>{const b=A4e(t,u,s,d,u.getTypeOfSymbol(v),p);return q.createPropertyAssignment(v.name,b)});return q.createObjectLiteralExpression(E,!0)}if(Ju(f)&16){if(Le(f.symbol.declarations||Dt,dg(r3,u3,hc))===void 0)return c9();const v=u.getSignaturesOfType(f,0);return v===void 0?c9():Q4e(218,t,d,v[0],Tee(F.Function_not_implemented.message,d),void 0,void 0,void 0,p,s)??c9()}if(Ju(f)&1){const E=tD(f.symbol);if(E===void 0||M2(E))return c9();const v=e3(E);return v&&S(v.parameters)?c9():q.createNewExpression(q.createIdentifier(f.symbol.name),void 0,void 0)}return c9()}function c9(){return q.createIdentifier("undefined")}function sGt(t){return t.flags&524288&&(Ju(t)&128||t.symbol&&ar(Sa(t.symbol.declarations),fm))}function lGt(t,u,s){const d=t.getContextualType(s.attributes);if(d===void 0)return Dt;const f=d.getProperties();if(!S(f))return Dt;const p=new Set;for(const E of s.attributes.properties)if(sE(E)&&p.add(zP(E.name)),H7(E)){const v=t.getTypeAtLocation(E.expression);for(const b of v.getProperties())p.add(b.escapedName)}return ti(f,E=>Nm(E.name,u,1)&&!(E.flags&16777216||Gl(E)&48||p.has(E.escapedName)))}function cGt(t,u){if(fm(t))return;const s=Tn(u,d=>hc(d)||fc(d));return s&&s.parent===t?s:void 0}function dGt(t,u,s,d){if(ZE(t)){const f=d.symbolToNode(t,111551,void 0,1073741824);if(f&&Ms(f))return f}return gZ(t.name,u,s===0,!1,!1)}function _ot(t){if(Tn(t,QP)){const u=Tn(t.parent,jp);if(u)return u}return zn(t)}var Yx,kee,Fee,Aee,dwe,hGt=o({"src/services/codefixes/fixAddMissingMember.ts"(){or(),as(),Yx="fixMissingMember",kee="fixMissingProperties",Fee="fixMissingAttributes",Aee="fixMissingFunctionDeclaration",dwe=[F.Property_0_does_not_exist_on_type_1.code,F.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,F.Property_0_is_missing_in_type_1_but_required_in_type_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,F.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Cannot_find_name_0.code],es({errorCodes:dwe,getCodeActions(t){const u=t.program.getTypeChecker(),s=oot(t.sourceFile,t.span.start,t.errorCode,u,t.program);if(s){if(s.kind===3){const d=iu.ChangeTracker.with(t,f=>Eot(f,t,s));return[Oo(kee,d,F.Add_missing_properties,kee,F.Add_all_missing_properties)]}if(s.kind===4){const d=iu.ChangeTracker.with(t,f=>got(f,t,s));return[Oo(Fee,d,F.Add_missing_attributes,Fee,F.Add_all_missing_attributes)]}if(s.kind===2||s.kind===5){const d=iu.ChangeTracker.with(t,f=>pot(f,t,s));return[Oo(Aee,d,[F.Add_missing_function_declaration_0,s.token.text],Aee,F.Add_all_missing_function_declarations)]}if(s.kind===1){const d=iu.ChangeTracker.with(t,f=>mot(f,t.program.getTypeChecker(),s));return[Oo(Yx,d,[F.Add_missing_enum_member_0,s.token.text],Yx,F.Add_all_missing_members)]}return mi(oGt(t,s),nGt(t,s))}},fixIds:[Yx,Aee,kee,Fee],getAllCodeActions:t=>{const{program:u,fixId:s}=t,d=u.getTypeChecker(),f=new Map,p=new Map;return Ew(iu.ChangeTracker.with(t,E=>{_w(t,dwe,v=>{const b=oot(v.file,v.start,v.code,d,t.program);if(!(!b||!Rp(f,Us(b.parentDeclaration)+"#"+b.token.text))){if(s===Aee&&(b.kind===2||b.kind===5))pot(E,t,b);else if(s===kee&&b.kind===3)Eot(E,t,b);else if(s===Fee&&b.kind===4)got(E,t,b);else if(b.kind===1&&mot(E,d,b),b.kind===0){const{parentDeclaration:B,token:k}=b,T=_0(p,B,()=>[]);T.some(M=>M.token.text===k.text)||T.push(b)}}}),p.forEach((v,b)=>{const B=fm(b)?void 0:tTe(b,d);for(const k of v){if(B!=null&&B.some(Y=>{const oe=p.get(Y);return!!oe&&oe.some(({token:se})=>se.text===k.token.text)}))continue;const{parentDeclaration:T,declSourceFile:M,modifierFlags:z,token:j,call:J,isJSFile:K}=k;if(J&&!ea(j))fot(t,E,J,j,z&256,T,M);else if(K&&!Ch(T)&&!fm(T))sot(E,M,T,j,!!(z&256));else{const Y=cot(d,T,j);dot(E,M,T,j.text,Y,z&256)}}})}))}})}});function Dot(t,u,s){const d=Po(fGt(u,s),Mo),f=q.createNewExpression(d.expression,d.typeArguments,d.arguments);t.replaceNode(u,d,f)}function fGt(t,u){let s=ya(t,u.start);const d=Dc(u);for(;s.endDot(f,u,s));return[Oo(S4e,d,F.Add_missing_new_operator_to_call,S4e,F.Add_missing_new_operator_to_all_calls)]},fixIds:[S4e],getAllCodeActions:t=>f0(t,hwe,(u,s)=>Dot(u,t.sourceFile,s))})}});function xot(t,u){return{type:"install package",file:t,packageName:u}}function vot(t,u){const s=ar(ya(t,u),rs);if(!s)return;const d=s.text,{packageName:f}=sH(d);return Id(f)?void 0:f}function Cot(t,u,s){var d;return s===fwe?s3.nodeCoreModules.has(t)?"@types/node":void 0:(d=u.isKnownTypesPackageName)!=null&&d.call(u,t)?qY(t):void 0}var bot,B4e,fwe,mwe,pGt=o({"src/services/codefixes/fixCannotFindModule.ts"(){or(),as(),bot="fixCannotFindModule",B4e="installTypesPackage",fwe=F.Cannot_find_module_0_or_its_corresponding_type_declarations.code,mwe=[fwe,F.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code],es({errorCodes:mwe,getCodeActions:function(u){const{host:s,sourceFile:d,span:{start:f}}=u,p=vot(d,f);if(p===void 0)return;const E=Cot(p,s,u.errorCode);return E===void 0?[]:[Oo(bot,[],[F.Install_0,E],B4e,F.Install_all_missing_types_packages,xot(d.fileName,E))]},fixIds:[B4e],getAllCodeActions:t=>f0(t,mwe,(u,s,d)=>{const f=vot(s.file,s.start);if(f!==void 0)switch(t.fixId){case B4e:{const p=Cot(f,t.host,s.code);p&&d.push(xot(s.file.fileName,p));break}default:H.fail(`Bad fixId: ${t.fixId}`)}})})}});function yot(t,u){const s=ya(t,u);return Po(s.parent,gr)}function kot(t,u,s,d,f){const p=Xg(t),E=s.program.getTypeChecker(),v=E.getTypeAtLocation(p),b=E.getPropertiesOfType(v).filter(gGt),B=l9(u,s.program,f,s.host);Jwe(t,b,u,s,f,B,k=>d.insertMemberAtStart(u,t,k)),B.writeFixes(d)}function gGt(t){const u=Rx(Pn(t.getDeclarations()));return!(u&2)&&!!(u&64)}var pwe,w4e,EGt=o({"src/services/codefixes/fixClassDoesntImplementInheritedAbstractMember.ts"(){or(),as(),pwe=[F.Non_abstract_class_0_does_not_implement_all_abstract_members_of_1.code],w4e="fixClassDoesntImplementInheritedAbstractMember",es({errorCodes:pwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=iu.ChangeTracker.with(u,p=>kot(yot(s,d.start),s,u,p,u.preferences));return f.length===0?void 0:[Oo(w4e,f,F.Implement_inherited_abstract_class,w4e,F.Implement_all_inherited_abstract_classes)]},fixIds:[w4e],getAllCodeActions:function(u){const s=new Map;return f0(u,pwe,(d,f)=>{const p=yot(f.file,f.start);Rp(s,Us(p))&&kot(p,u.sourceFile,u,d,u.preferences)})}})}});function Fot(t,u,s,d){t.insertNodeAtConstructorStart(u,s,d),t.delete(u,d)}function Aot(t,u){const s=ya(t,u);if(s.kind!==110)return;const d=Pm(s),f=Sot(d.body);return f&&!f.expression.arguments.some(p=>Ru(p)&&p.expression===s)?{constructor:d,superCall:f}:void 0}function Sot(t){return Od(t)&&ik(t.expression)?t:Co(t)?void 0:ao(t,Sot)}var T4e,gwe,_Gt=o({"src/services/codefixes/fixClassSuperMustPrecedeThisAccess.ts"(){or(),as(),T4e="classSuperMustPrecedeThisAccess",gwe=[F.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code],es({errorCodes:gwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Aot(u,s.start);if(!d)return;const{constructor:f,superCall:p}=d,E=iu.ChangeTracker.with(t,v=>Fot(v,u,f,p));return[Oo(T4e,E,F.Make_super_call_the_first_statement_in_the_constructor,T4e,F.Make_all_super_calls_the_first_statement_in_their_constructor)]},fixIds:[T4e],getAllCodeActions(t){const{sourceFile:u}=t,s=new Map;return f0(t,gwe,(d,f)=>{const p=Aot(f.file,f.start);if(!p)return;const{constructor:E,superCall:v}=p;Rp(s,Us(E.parent))&&Fot(d,u,E,v)})}})}});function Bot(t,u){const s=ya(t,u);return H.assert(fc(s.parent),"token should be at the constructor declaration"),s.parent}function wot(t,u,s){const d=q.createExpressionStatement(q.createCallExpression(q.createSuper(),void 0,Dt));t.insertNodeAtConstructorStart(u,s,d)}var L4e,Ewe,DGt=o({"src/services/codefixes/fixConstructorForDerivedNeedSuperCall.ts"(){or(),as(),L4e="constructorForDerivedNeedSuperCall",Ewe=[F.Constructors_for_derived_classes_must_contain_a_super_call.code],es({errorCodes:Ewe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=Bot(u,s.start),f=iu.ChangeTracker.with(t,p=>wot(p,u,d));return[Oo(L4e,f,F.Add_missing_super_call,L4e,F.Add_all_missing_super_calls)]},fixIds:[L4e],getAllCodeActions:t=>f0(t,Ewe,(u,s)=>wot(u,t.sourceFile,Bot(s.file,s.start)))})}});function Tot(t,u){Ywe(t,u,"jsx",q.createStringLiteral("react"))}var _we,Dwe,xGt=o({"src/services/codefixes/fixEnableJsxFlag.ts"(){or(),as(),_we="fixEnableJsxFlag",Dwe=[F.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code],es({errorCodes:Dwe,getCodeActions:function(u){const{configFile:s}=u.program.getCompilerOptions();if(s===void 0)return;const d=iu.ChangeTracker.with(u,f=>Tot(f,s));return[Cg(_we,d,F.Enable_the_jsx_flag_in_your_configuration_file)]},fixIds:[_we],getAllCodeActions:t=>f0(t,Dwe,u=>{const{configFile:s}=t.program.getCompilerOptions();s!==void 0&&Tot(u,s)})})}});function Lot(t,u,s){const d=Le(t.getSemanticDiagnostics(u),E=>E.start===s.start&&E.length===s.length);if(d===void 0||d.relatedInformation===void 0)return;const f=Le(d.relatedInformation,E=>E.code===F.Did_you_mean_0.code);if(f===void 0||f.file===void 0||f.start===void 0||f.length===void 0)return;const p=Xwe(f.file,h1(f.start,f.length));if(p!==void 0&&Wt(p)&&eu(p.parent))return{suggestion:vGt(f.messageText),expression:p.parent,arg:p}}function Not(t,u,s,d){const f=q.createCallExpression(q.createPropertyAccessExpression(q.createIdentifier("Number"),q.createIdentifier("isNaN")),void 0,[s]),p=d.operatorToken.kind;t.replaceNode(u,d,p===38||p===36?q.createPrefixUnaryExpression(54,f):f)}function vGt(t){const[u,s]=cE(t,` +`,0).match(/'(.*)'/)||[];return s}var N4e,xwe,CGt=o({"src/services/codefixes/fixNaNEquality.ts"(){or(),as(),N4e="fixNaNEquality",xwe=[F.This_condition_will_always_return_0.code],es({errorCodes:xwe,getCodeActions(t){const{sourceFile:u,span:s,program:d}=t,f=Lot(d,u,s);if(f===void 0)return;const{suggestion:p,expression:E,arg:v}=f,b=iu.ChangeTracker.with(t,B=>Not(B,u,v,E));return[Oo(N4e,b,[F.Use_0,p],N4e,F.Use_Number_isNaN_in_all_conditions)]},fixIds:[N4e],getAllCodeActions:t=>f0(t,xwe,(u,s)=>{const d=Lot(t.program,s.file,h1(s.start,s.length));d&&Not(u,s.file,d.arg,d.expression)})})}}),bGt=o({"src/services/codefixes/fixModuleAndTargetOptions.ts"(){or(),as(),es({errorCodes:[F.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_await_using_statements_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code,F.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_es2022_esnext_system_node16_or_nodenext_and_the_target_option_is_set_to_es2017_or_higher.code],getCodeActions:function(u){const s=u.program.getCompilerOptions(),{configFile:d}=s;if(d===void 0)return;const f=[],p=p1(s);if(p>=5&&p<99){const B=iu.ChangeTracker.with(u,k=>{Ywe(k,d,"module",q.createStringLiteral("esnext"))});f.push(Cg("fixModuleOption",B,[F.Set_the_module_option_in_your_configuration_file_to_0,"esnext"]))}const v=js(s);if(v<4||v>99){const B=iu.ChangeTracker.with(u,k=>{if(!YN(d))return;const M=[["target",q.createStringLiteral("es2017")]];p===1&&M.push(["module",q.createStringLiteral("commonjs")]),Zwe(k,d,M)});f.push(Cg("fixTargetOption",B,[F.Set_the_target_option_in_your_configuration_file_to_0,"es2017"]))}return f.length?f:void 0}})}});function Pot(t,u,s){t.replaceNode(u,s,q.createPropertyAssignment(s.name,s.objectAssignmentInitializer))}function Mot(t,u){return Po(ya(t,u).parent,pm)}var P4e,vwe,yGt=o({"src/services/codefixes/fixPropertyAssignment.ts"(){or(),as(),P4e="fixPropertyAssignment",vwe=[F.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],es({errorCodes:vwe,fixIds:[P4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=Mot(u,s.start),f=iu.ChangeTracker.with(t,p=>Pot(p,t.sourceFile,d));return[Oo(P4e,f,[F.Change_0_to_1,"=",":"],P4e,[F.Switch_each_misused_0_to_1,"=",":"])]},getAllCodeActions:t=>f0(t,vwe,(u,s)=>Pot(u,s.file,Mot(s.file,s.start)))})}});function zot(t,u){const s=ya(t,u),d=Qd(s).heritageClauses,f=d[0].getFirstToken();return f.kind===96?{extendsToken:f,heritageClauses:d}:void 0}function Iot(t,u,s,d){if(t.replaceNode(u,s,q.createToken(119)),d.length===2&&d[0].token===96&&d[1].token===119){const f=d[1].getFirstToken(),p=f.getFullStart();t.replaceRange(u,{pos:p,end:p},q.createToken(28));const E=u.text;let v=f.end;for(;vIot(E,u,d,f));return[Oo(M4e,p,F.Change_extends_to_implements,M4e,F.Change_all_extended_interfaces_to_implements)]},fixIds:[M4e],getAllCodeActions:t=>f0(t,Cwe,(u,s)=>{const d=zot(s.file,s.start);d&&Iot(u,s.file,d.extendsToken,d.heritageClauses)})})}});function Rot(t,u,s){const d=ya(t,u);if(at(d)||ea(d))return{node:d,className:s===bwe?Qd(d).name.text:void 0}}function Oot(t,u,{node:s,className:d}){Kf(s),t.replaceNode(u,s,q.createPropertyAccessExpression(d?q.createIdentifier(d):q.createThis(),s))}var z4e,bwe,ywe,FGt=o({"src/services/codefixes/fixForgottenThisPropertyAccess.ts"(){or(),as(),z4e="forgottenThisPropertyAccess",bwe=F.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,ywe=[F.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,F.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,bwe],es({errorCodes:ywe,getCodeActions(t){const{sourceFile:u}=t,s=Rot(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Oot(f,u,s));return[Oo(z4e,d,[F.Add_0_to_unresolved_variable,s.className||"this"],z4e,F.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)]},fixIds:[z4e],getAllCodeActions:t=>f0(t,ywe,(u,s)=>{const d=Rot(s.file,s.start,s.code);d&&Oot(u,t.sourceFile,d)})})}});function AGt(t){return Eu(Awe,t)}function kwe(t,u,s,d,f){const p=s.getText()[d];if(!AGt(p))return;const E=f?Awe[p]:`{${VM(s,u,p)}}`;t.replaceRangeWithText(s,{pos:d,end:d+1},E)}var I4e,See,Fwe,Awe,SGt=o({"src/services/codefixes/fixInvalidJsxCharacters.ts"(){or(),as(),I4e="fixInvalidJsxCharacters_expression",See="fixInvalidJsxCharacters_htmlEntity",Fwe=[F.Unexpected_token_Did_you_mean_or_gt.code,F.Unexpected_token_Did_you_mean_or_rbrace.code],es({errorCodes:Fwe,fixIds:[I4e,See],getCodeActions(t){const{sourceFile:u,preferences:s,span:d}=t,f=iu.ChangeTracker.with(t,E=>kwe(E,s,u,d.start,!1)),p=iu.ChangeTracker.with(t,E=>kwe(E,s,u,d.start,!0));return[Oo(I4e,f,F.Wrap_invalid_character_in_an_expression_container,I4e,F.Wrap_all_invalid_characters_in_an_expression_container),Oo(See,p,F.Convert_invalid_character_to_its_html_entity_code,See,F.Convert_all_invalid_characters_to_HTML_entity_code)]},getAllCodeActions(t){return f0(t,Fwe,(u,s)=>kwe(u,t.preferences,s.file,s.start,t.fixId===See))}}),Awe={">":">","}":"}"}}});function BGt(t,{name:u,jsDocHost:s,jsDocParameterTag:d}){const f=iu.ChangeTracker.with(t,p=>p.filterJSDocTags(t.sourceFile,s,E=>E!==d));return Oo(Bee,f,[F.Delete_unused_param_tag_0,u.getText(t.sourceFile)],Bee,F.Delete_all_unused_param_tags)}function wGt(t,{name:u,jsDocHost:s,signature:d,jsDocParameterTag:f}){if(!S(d.parameters))return;const p=t.sourceFile,E=bv(d),v=new Set;for(const T of E)Eg(T)&&at(T.name)&&v.add(T.name.escapedText);const b=G(d.parameters,T=>at(T.name)&&!v.has(T.name.escapedText)?T.name.getText(p):void 0);if(b===void 0)return;const B=q.updateJSDocParameterTag(f,f.tagName,q.createIdentifier(b),f.isBracketed,f.typeExpression,f.isNameFirst,f.comment),k=iu.ChangeTracker.with(t,T=>T.replaceJSDocComment(p,s,Vt(E,M=>M===f?B:M)));return Cg(Swe,k,[F.Rename_param_tag_name_0_to_1,u.getText(p),b])}function jot(t,u){const s=ya(t,u);if(s.parent&&Eg(s.parent)&&at(s.parent.name)){const d=s.parent,f=h7(d),p=Fv(d);if(f&&p)return{jsDocHost:f,signature:p,name:s.parent.name,jsDocParameterTag:d}}}var Bee,Swe,Bwe,TGt=o({"src/services/codefixes/fixUnmatchedParameter.ts"(){or(),as(),Bee="deleteUnmatchedParameter",Swe="renameUnmatchedParameter",Bwe=[F.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name.code],es({fixIds:[Bee,Swe],errorCodes:Bwe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=[],p=jot(s,d.start);if(p)return Di(f,BGt(u,p)),Di(f,wGt(u,p)),f},getAllCodeActions:function(u){const s=new Map;return Ew(iu.ChangeTracker.with(u,d=>{_w(u,Bwe,({file:f,start:p})=>{const E=jot(f,p);E&&s.set(E.signature,Di(s.get(E.signature),E.jsDocParameterTag))}),s.forEach((f,p)=>{if(u.fixId===Bee){const E=new Set(f);d.filterJSDocTags(p.getSourceFile(),p,v=>!E.has(v))}})}))}})}});function LGt(t,u,s){const d=ar(ya(t,s),at);if(!d||d.parent.kind!==183)return;const p=u.getTypeChecker().getSymbolAtLocation(d);return Le((p==null?void 0:p.declarations)||Dt,dg(u_,bf,_1))}function NGt(t,u,s,d){if(s.kind===271){t.insertModifierBefore(u,156,s.name);return}const f=s.kind===273?s:s.parent.parent;if(f.name&&f.namedBindings)return;const p=d.getTypeChecker();Sq(f,v=>{if(eh(v.symbol,p).flags&111551)return!0})||t.insertModifierBefore(u,156,f)}function PGt(t,u,s,d){a9.doChangeNamedToNamespaceOrDefault(u,d,t,s.parent)}var R4e,Vot,MGt=o({"src/services/codefixes/fixUnreferenceableDecoratorMetadata.ts"(){or(),as(),R4e="fixUnreferenceableDecoratorMetadata",Vot=[F.A_type_referenced_in_a_decorated_signature_must_be_imported_with_import_type_or_a_namespace_import_when_isolatedModules_and_emitDecoratorMetadata_are_enabled.code],es({errorCodes:Vot,getCodeActions:t=>{const u=LGt(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,p=>u.kind===276&&PGt(p,t.sourceFile,u,t.program)),d=iu.ChangeTracker.with(t,p=>NGt(p,t.sourceFile,u,t.program));let f;return s.length&&(f=Di(f,Cg(R4e,s,F.Convert_named_imports_to_namespace_import))),d.length&&(f=Di(f,Cg(R4e,d,F.Use_import_type))),f},fixIds:[R4e]})}});function Hot(t,u,s){t.replaceNode(u,s.parent,q.createKeywordTypeNode(159))}function kK(t,u){return Oo(FK,t,u,V4e,F.Delete_all_unused_declarations)}function Kot(t,u,s){t.delete(u,H.checkDefined(Po(s.parent,b0e).typeParameters,"The type parameter to delete should exist"))}function wwe(t){return t.kind===102||t.kind===80&&(t.parent.kind===276||t.parent.kind===273)}function Wot(t){return t.kind===102?ar(t.parent,Sd):void 0}function Got(t,u){return Ad(u.parent)&&Pn(u.parent.getChildren(t))===u}function Jot(t,u,s){t.delete(u,s.parent.kind===243?s.parent:s)}function zGt(t,u,s){L(s.elements,d=>t.delete(u,d))}function IGt(t,u,s,{parent:d}){if(ra(d)&&d.initializer&&x2(d.initializer))if(Ad(d.parent)&&S(d.parent.declarations)>1){const f=d.parent.parent,p=f.getStart(s),E=f.end;u.delete(s,d),u.insertNodeAt(s,E,d.initializer,{prefix:E5(t.host,t.formatContext.options)+s.text.slice(SX(s.text,p-1),p),suffix:QH(s)?";":""})}else u.replaceNode(s,d.parent,d.initializer);else u.delete(s,d)}function $ot(t,u,s,d){u!==F.Property_0_is_declared_but_its_value_is_never_read.code&&(d.kind===140&&(d=Po(d.parent,P7).typeParameter.name),at(d)&&RGt(d)&&(t.replaceNode(s,d,q.createIdentifier(`_${d.text}`)),io(d.parent)&&B8(d.parent).forEach(f=>{at(f.name)&&t.replaceNode(s,f.name,q.createIdentifier(`_${f.name.text}`))})))}function RGt(t){switch(t.parent.kind){case 169:case 168:return!0;case 260:switch(t.parent.parent.parent.kind){case 250:case 249:return!0}}return!1}function O4e(t,u,s,d,f,p,E,v){OGt(u,s,t,d,f,p,E,v),at(u)&&Y0.Core.eachSymbolReferenceInFile(u,d,t,b=>{Ru(b.parent)&&b.parent.name===b&&(b=b.parent),!v&&KGt(b)&&s.delete(t,b.parent.parent)})}function OGt(t,u,s,d,f,p,E,v){const{parent:b}=t;if(io(b))jGt(u,s,b,d,f,p,E,v);else if(!(v&&at(t)&&Y0.Core.isSymbolReferencedInFile(t,d,s))){const B=u_(b)?t:Ms(b)?b.parent:b;H.assert(B!==s,"should not delete whole source file"),u.delete(s,B)}}function jGt(t,u,s,d,f,p,E,v=!1){if(VGt(d,u,s,f,p,E,v))if(s.modifiers&&s.modifiers.length>0&&(!at(s.name)||Y0.Core.isSymbolReferencedInFile(s.name,d,u)))for(const b of s.modifiers)Xo(b)&&t.deleteModifier(u,b);else!s.initializer&&Uot(s,d,f)&&t.delete(u,s)}function Uot(t,u,s){const d=t.parent.parameters.indexOf(t);return!Y0.Core.someSignatureUsage(t.parent,s,u,(f,p)=>!p||p.arguments.length>d)}function VGt(t,u,s,d,f,p,E){const{parent:v}=s;switch(v.kind){case 174:case 176:const b=v.parameters.indexOf(s),B=hc(v)?v.name:v,k=Y0.Core.getReferencedSymbolsForNode(v.pos,B,f,d,p);if(k){for(const T of k)for(const M of T.references)if(M.kind===Y0.EntryKind.Node){const z=KP(M.node)&&Mo(M.node.parent)&&M.node.parent.arguments.length>b,j=Ru(M.node.parent)&&KP(M.node.parent.expression)&&Mo(M.node.parent.parent)&&M.node.parent.parent.arguments.length>b,J=(hc(M.node.parent)||u3(M.node.parent))&&M.node.parent!==s.parent&&M.node.parent.parameters.length>b;if(z||j||J)return!1}}return!0;case 262:return v.name&&HGt(t,u,v.name)?qot(v,s,E):!0;case 218:case 219:return qot(v,s,E);case 178:return!1;case 177:return!0;default:return H.failBadSyntaxKind(v)}}function HGt(t,u,s){return!!Y0.Core.eachSymbolReferenceInFile(s,t,u,d=>at(d)&&Mo(d.parent)&&d.parent.arguments.includes(d))}function qot(t,u,s){const d=t.parameters,f=d.indexOf(u);return H.assert(f!==-1,"The parameter should already be in the list"),s?d.slice(f+1).every(p=>at(p.name)&&!p.symbol.isReferenced):f===d.length-1}function KGt(t){return(eu(t.parent)&&t.parent.left===t||(bce(t.parent)||Iv(t.parent))&&t.parent.operand===t)&&Od(t.parent.parent)}var FK,j4e,V4e,wee,H4e,Twe,WGt=o({"src/services/codefixes/fixUnusedIdentifier.ts"(){or(),as(),FK="unusedIdentifier",j4e="unusedIdentifier_prefix",V4e="unusedIdentifier_delete",wee="unusedIdentifier_deleteImports",H4e="unusedIdentifier_infer",Twe=[F._0_is_declared_but_its_value_is_never_read.code,F._0_is_declared_but_never_used.code,F.Property_0_is_declared_but_its_value_is_never_read.code,F.All_imports_in_import_declaration_are_unused.code,F.All_destructured_elements_are_unused.code,F.All_variables_are_unused.code,F.All_type_parameters_are_unused.code],es({errorCodes:Twe,getCodeActions(t){const{errorCode:u,sourceFile:s,program:d,cancellationToken:f}=t,p=d.getTypeChecker(),E=d.getSourceFiles(),v=ya(s,t.span.start);if(_g(v))return[kK(iu.ChangeTracker.with(t,T=>T.delete(s,v)),F.Remove_template_tag)];if(v.kind===30){const T=iu.ChangeTracker.with(t,M=>Kot(M,s,v));return[kK(T,F.Remove_type_parameters)]}const b=Wot(v);if(b){const T=iu.ChangeTracker.with(t,M=>M.delete(s,b));return[Oo(FK,T,[F.Remove_import_from_0,Xye(b)],wee,F.Delete_all_unused_imports)]}else if(wwe(v)){const T=iu.ChangeTracker.with(t,M=>O4e(s,v,M,p,E,d,f,!1));if(T.length)return[Oo(FK,T,[F.Remove_unused_declaration_for_Colon_0,v.getText(s)],wee,F.Delete_all_unused_imports)]}if(Op(v.parent)||_k(v.parent)){if(io(v.parent.parent)){const T=v.parent.elements,M=[T.length>1?F.Remove_unused_declarations_for_Colon_0:F.Remove_unused_declaration_for_Colon_0,Vt(T,z=>z.getText(s)).join(", ")];return[kK(iu.ChangeTracker.with(t,z=>zGt(z,s,v.parent)),M)]}return[kK(iu.ChangeTracker.with(t,T=>IGt(t,T,s,v.parent)),F.Remove_unused_destructuring_declaration)]}if(Got(s,v))return[kK(iu.ChangeTracker.with(t,T=>Jot(T,s,v.parent)),F.Remove_variable_statement)];const B=[];if(v.kind===140){const T=iu.ChangeTracker.with(t,z=>Hot(z,s,v)),M=Po(v.parent,P7).typeParameter.name.text;B.push(Oo(FK,T,[F.Replace_infer_0_with_unknown,M],H4e,F.Replace_all_unused_infer_with_unknown))}else{const T=iu.ChangeTracker.with(t,M=>O4e(s,v,M,p,E,d,f,!1));if(T.length){const M=Ms(v.parent)?v.parent:v;B.push(kK(T,[F.Remove_unused_declaration_for_Colon_0,M.getText(s)]))}}const k=iu.ChangeTracker.with(t,T=>$ot(T,u,s,v));return k.length&&B.push(Oo(FK,k,[F.Prefix_0_with_an_underscore,v.getText(s)],j4e,F.Prefix_all_unused_declarations_with_where_possible)),B},fixIds:[j4e,V4e,wee,H4e],getAllCodeActions:t=>{const{sourceFile:u,program:s,cancellationToken:d}=t,f=s.getTypeChecker(),p=s.getSourceFiles();return f0(t,Twe,(E,v)=>{const b=ya(u,v.start);switch(t.fixId){case j4e:$ot(E,v.code,u,b);break;case wee:{const B=Wot(b);B?E.delete(u,B):wwe(b)&&O4e(u,b,E,f,p,s,d,!0);break}case V4e:{if(b.kind===140||wwe(b))break;if(_g(b))E.delete(u,b);else if(b.kind===30)Kot(E,u,b);else if(Op(b.parent)){if(b.parent.parent.initializer)break;(!io(b.parent.parent)||Uot(b.parent.parent,f,p))&&E.delete(u,b.parent.parent)}else{if(_k(b.parent.parent)&&b.parent.parent.parent.initializer)break;Got(u,b)?Jot(E,u,b.parent):O4e(u,b,E,f,p,s,d,!0)}break}case H4e:b.kind===140&&Hot(E,u,b);break;default:H.fail(JSON.stringify(t.fixId))}})}})}});function Zot(t,u,s,d,f){const p=ya(u,s),E=Tn(p,ua);if(E.getStart(u)!==p.getStart(u)){const b=JSON.stringify({statementKind:H.formatSyntaxKind(E.kind),tokenKind:H.formatSyntaxKind(p.kind),errorCode:f,start:s,length:d});H.fail("Token and statement should start at the same point. "+b)}const v=(go(E.parent)?E.parent:E).parent;if(!go(E.parent)||E===Pn(E.parent.statements))switch(v.kind){case 245:if(v.elseStatement){if(go(E.parent))break;t.replaceNode(u,E,q.createBlock(Dt));return}case 247:case 248:t.delete(u,v);return}if(go(E.parent)){const b=s+d,B=H.checkDefined(GGt(Lle(E.parent.statements,E),k=>k.posZot(d,t.sourceFile,t.span.start,t.span.length,t.errorCode));return[Oo(K4e,s,F.Remove_unreachable_code,K4e,F.Remove_all_unreachable_code)]},fixIds:[K4e],getAllCodeActions:t=>f0(t,Lwe,(u,s)=>Zot(u,s.file,s.start,s.length,s.code))})}});function Yot(t,u,s){const d=ya(u,s),f=Po(d.parent,H2),p=d.getStart(u),E=f.statement.getStart(u),v=Y4(p,E,u)?E:gs(u.text,a0(f,59,u).end,!0);t.deleteRange(u,{pos:p,end:v})}var W4e,Nwe,$Gt=o({"src/services/codefixes/fixUnusedLabel.ts"(){or(),as(),W4e="fixUnusedLabel",Nwe=[F.Unused_label.code],es({errorCodes:Nwe,getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Yot(s,t.sourceFile,t.span.start));return[Oo(W4e,u,F.Remove_unused_label,W4e,F.Remove_all_unused_labels)]},fixIds:[W4e],getAllCodeActions:t=>f0(t,Nwe,(u,s)=>Yot(u,s.file,s.start))})}});function Qot(t,u,s,d,f){t.replaceNode(u,s,f.typeToTypeNode(d,s,void 0))}function Xot(t,u,s){const d=Tn(ya(t,u),UGt),f=d&&d.type;return f&&{typeNode:f,type:qGt(s,f)}}function UGt(t){switch(t.kind){case 234:case 179:case 180:case 262:case 177:case 181:case 200:case 174:case 173:case 169:case 172:case 171:case 178:case 265:case 216:case 260:return!0;default:return!1}}function qGt(t,u){if(wB(u)){const s=t.getTypeFromTypeNode(u.type);return s===t.getNeverType()||s===t.getVoidType()?s:t.getUnionType(Di([s,t.getUndefinedType()],u.postfix?void 0:t.getNullType()))}return t.getTypeFromTypeNode(u)}var Pwe,G4e,Mwe,ZGt=o({"src/services/codefixes/fixJSDocTypes.ts"(){or(),as(),Pwe="fixJSDocTypes_plain",G4e="fixJSDocTypes_nullable",Mwe=[F.JSDoc_types_can_only_be_used_inside_documentation_comments.code,F._0_at_the_end_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code,F._0_at_the_start_of_a_type_is_not_valid_TypeScript_syntax_Did_you_mean_to_write_1.code],es({errorCodes:Mwe,getCodeActions(t){const{sourceFile:u}=t,s=t.program.getTypeChecker(),d=Xot(u,t.span.start,s);if(!d)return;const{typeNode:f,type:p}=d,E=f.getText(u),v=[b(p,Pwe,F.Change_all_jsdoc_style_types_to_TypeScript)];return f.kind===321&&v.push(b(p,G4e,F.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types)),v;function b(B,k,T){const M=iu.ChangeTracker.with(t,z=>Qot(z,u,f,B,s));return Oo("jdocTypes",M,[F.Change_0_to_1,E,s.typeToString(B)],k,T)}},fixIds:[Pwe,G4e],getAllCodeActions(t){const{fixId:u,program:s,sourceFile:d}=t,f=s.getTypeChecker();return f0(t,Mwe,(p,E)=>{const v=Xot(E.file,E.start,f);if(!v)return;const{typeNode:b,type:B}=v,k=b.kind===321&&u===G4e?f.getNullableType(B,32768):B;Qot(p,d,b,k,f)})}})}});function est(t,u,s){t.replaceNodeWithText(u,s,`${s.text}()`)}function tst(t,u){const s=ya(t,u);if(Ru(s.parent)){let d=s.parent;for(;Ru(d.parent);)d=d.parent;return d.name}if(at(s))return s}var J4e,zwe,YGt=o({"src/services/codefixes/fixMissingCallParentheses.ts"(){or(),as(),J4e="fixMissingCallParentheses",zwe=[F.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code],es({errorCodes:zwe,fixIds:[J4e],getCodeActions(t){const{sourceFile:u,span:s}=t,d=tst(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>est(p,t.sourceFile,d));return[Oo(J4e,f,F.Add_missing_call_parentheses,J4e,F.Add_all_missing_call_parentheses)]},getAllCodeActions:t=>f0(t,zwe,(u,s)=>{const d=tst(s.file,s.start);d&&est(u,s.file,d)})})}});function QGt(t){if(t.type)return t.type;if(ra(t.parent)&&t.parent.type&&r3(t.parent.type))return t.parent.type.type}function ist(t,u){const s=ya(t,u),d=Pm(s);if(!d)return;let f;switch(d.kind){case 174:f=d.name;break;case 262:case 218:f=a0(d,100,t);break;case 219:const p=d.typeParameters?30:21;f=a0(d,p,t)||Pn(d.parameters);break;default:return}return f&&{insertBefore:f,returnType:QGt(d)}}function nst(t,u,{insertBefore:s,returnType:d}){if(d){const f=gj(d);(!f||f.kind!==80||f.text!=="Promise")&&t.replaceNode(u,d,q.createTypeReferenceNode("Promise",q.createNodeArray([d])))}t.insertModifierBefore(u,134,s)}var $4e,Iwe,XGt=o({"src/services/codefixes/fixAwaitInSyncFunction.ts"(){or(),as(),$4e="fixAwaitInSyncFunction",Iwe=[F.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.await_using_statements_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,F.Cannot_find_name_0_Did_you_mean_to_write_this_in_an_async_function.code],es({errorCodes:Iwe,getCodeActions(t){const{sourceFile:u,span:s}=t,d=ist(u,s.start);if(!d)return;const f=iu.ChangeTracker.with(t,p=>nst(p,u,d));return[Oo($4e,f,F.Add_async_modifier_to_containing_function,$4e,F.Add_all_missing_async_modifiers)]},fixIds:[$4e],getAllCodeActions:function(u){const s=new Map;return f0(u,Iwe,(d,f)=>{const p=ist(f.file,f.start);!p||!Rp(s,Us(p.insertBefore))||nst(d,u.sourceFile,p)})}})}});function ust(t,u,s,d,f){let p,E;if(d===F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code)p=u,E=u+s;else if(d===F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code){const v=f.program.getTypeChecker(),b=ya(t,u).parent;H.assert(wx(b),"error span of fixPropertyOverrideAccessor should only be on an accessor");const B=b.parent;H.assert(gr(B),"erroneous accessors should only be inside classes");const k=Sa(tTe(B,v));if(!k)return[];const T=Qr(V8(b.name)),M=v.getPropertyOfType(v.getTypeAtLocation(k),T);if(!M||!M.valueDeclaration)return[];p=M.valueDeclaration.pos,E=M.valueDeclaration.end,t=zn(M.valueDeclaration)}else H.fail("fixPropertyOverrideAccessor codefix got unexpected error code "+d);return Dst(t,f.program,p,E,f,F.Generate_get_and_set_accessors.message)}var Rwe,U4e,eJt=o({"src/services/codefixes/fixPropertyOverrideAccessor.ts"(){or(),as(),Rwe=[F._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,F._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code],U4e="fixPropertyOverrideAccessor",es({errorCodes:Rwe,getCodeActions(t){const u=ust(t.sourceFile,t.span.start,t.span.length,t.errorCode,t);if(u)return[Oo(U4e,u,F.Generate_get_and_set_accessors,U4e,F.Generate_get_and_set_accessors_for_all_overriding_properties)]},fixIds:[U4e],getAllCodeActions:t=>f0(t,Rwe,(u,s)=>{const d=ust(s.file,s.start,s.length,s.code,t);if(d)for(const f of d)u.pushRaw(t.sourceFile,f)})})}});function tJt(t,u){switch(t){case F.Parameter_0_implicitly_has_an_1_type.code:case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return jf(Pm(u))?F.Infer_type_of_0_from_usage:F.Infer_parameter_types_from_usage;case F.Rest_parameter_0_implicitly_has_an_any_type.code:case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Infer_parameter_types_from_usage;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:return F.Infer_this_type_of_0_from_usage;default:return F.Infer_type_of_0_from_usage}}function iJt(t){switch(t){case F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;case F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Variable_0_implicitly_has_an_1_type.code;case F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Parameter_0_implicitly_has_an_1_type.code;case F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Rest_parameter_0_implicitly_has_an_any_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;case F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:return F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;case F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:return F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;case F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:return F.Member_0_implicitly_has_an_1_type.code}return t}function rst(t,u,s,d,f,p,E,v,b){if(!HN(s.kind)&&s.kind!==80&&s.kind!==26&&s.kind!==110)return;const{parent:B}=s,k=l9(u,f,b,v);switch(d=iJt(d),d){case F.Member_0_implicitly_has_an_1_type.code:case F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:if(ra(B)&&E(B)||ko(B)||zm(B))return ast(t,k,u,B,f,v,p),k.writeFixes(t),B;if(Ru(B)){const z=AK(B.name,f,p),j=HM(z,B,f,v);if(j){const J=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(j),void 0);t.addJSDocTags(u,Po(B.parent.parent,Od),[J])}return k.writeFixes(t),B}return;case F.Variable_0_implicitly_has_an_1_type.code:{const z=f.getTypeChecker().getSymbolAtLocation(s);return z&&z.valueDeclaration&&ra(z.valueDeclaration)&&E(z.valueDeclaration)?(ast(t,k,zn(z.valueDeclaration),z.valueDeclaration,f,v,p),k.writeFixes(t),z.valueDeclaration):void 0}}const T=Pm(s);if(T===void 0)return;let M;switch(d){case F.Parameter_0_implicitly_has_an_1_type.code:if(jf(T)){ost(t,k,u,T,f,v,p),M=T;break}case F.Rest_parameter_0_implicitly_has_an_any_type.code:if(E(T)){const z=Po(B,io);nJt(t,k,u,z,T,f,v,p),M=z}break;case F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:case F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:Im(T)&&at(T.name)&&(q4e(t,k,u,T,AK(T.name,f,p),f,v),M=T);break;case F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:jf(T)&&(ost(t,k,u,T,f,v,p),M=T);break;case F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:iu.isThisTypeAnnotatable(T)&&E(T)&&(uJt(t,u,T,f,v,p),M=T);break;default:return H.fail(String(d))}return k.writeFixes(t),M}function ast(t,u,s,d,f,p,E){at(d.name)&&q4e(t,u,s,d,AK(d.name,f,E),f,p)}function nJt(t,u,s,d,f,p,E,v){if(!at(d.name))return;const b=oJt(f,s,p,v);if(H.assert(f.parameters.length===b.length,"Parameter count and inference count should match"),Xn(f))sst(t,s,b,p,E);else{const B=Z0(f)&&!a0(f,21,s);B&&t.insertNodeBefore(s,Pn(f.parameters),q.createToken(21));for(const{declaration:k,type:T}of b)k&&!k.type&&!k.initializer&&q4e(t,u,s,k,T,p,E);B&&t.insertNodeAfter(s,yr(f.parameters),q.createToken(22))}}function uJt(t,u,s,d,f,p){const E=lst(s,u,d,p);if(!E||!E.length)return;const v=jwe(d,E,p).thisParameter(),b=HM(v,s,d,f);b&&(Xn(s)?rJt(t,u,s,b):t.tryInsertThisTypeAnnotation(u,s,b))}function rJt(t,u,s,d){t.addJSDocTags(u,s,[q.createJSDocThisTag(void 0,q.createJSDocTypeExpression(d))])}function ost(t,u,s,d,f,p,E){const v=Ki(d.parameters);if(v&&at(d.name)&&at(v.name)){let b=AK(d.name,f,E);b===f.getTypeChecker().getAnyType()&&(b=AK(v.name,f,E)),Xn(d)?sst(t,s,[{declaration:v,type:b}],f,p):q4e(t,u,s,v,b,f,p)}}function q4e(t,u,s,d,f,p,E){const v=HM(f,d,p,E);if(v)if(Xn(s)&&d.kind!==171){const b=ra(d)?ar(d.parent.parent,Jl):d;if(!b)return;const B=q.createJSDocTypeExpression(v),k=Im(d)?q.createJSDocReturnTag(void 0,B,void 0):q.createJSDocTypeTag(void 0,B,void 0);t.addJSDocTags(s,b,[k])}else aJt(v,d,s,t,u,js(p.getCompilerOptions()))||t.tryInsertTypeAnnotation(s,d,v)}function aJt(t,u,s,d,f,p){const E=d9(t,p);return E&&d.tryInsertTypeAnnotation(s,u,E.typeNode)?(L(E.symbols,v=>f.addImportFromExportedSymbol(v,!0)),!0):!1}function sst(t,u,s,d,f){const p=s.length&&s[0].declaration.parent;if(!p)return;const E=qi(s,v=>{const b=v.declaration;if(b.initializer||Cv(b)||!at(b.name))return;const B=v.type&&HM(v.type,b,d,f);if(B){const k=q.cloneNode(b.name);return Yn(k,7168),{name:q.cloneNode(b.name),param:b,isOptional:!!v.isOptional,typeNode:B}}});if(E.length)if(Z0(p)||w0(p)){const v=Z0(p)&&!a0(p,21,u);v&&t.insertNodeBefore(u,Pn(p.parameters),q.createToken(21)),L(E,({typeNode:b,param:B})=>{const k=q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(b)),T=q.createJSDocComment(void 0,[k]);t.insertNodeAt(u,B.getStart(u),T,{suffix:" "})}),v&&t.insertNodeAfter(u,yr(p.parameters),q.createToken(22))}else{const v=Vt(E,({name:b,typeNode:B,isOptional:k})=>q.createJSDocParameterTag(void 0,b,!!k,q.createJSDocTypeExpression(B),!1,void 0));t.addJSDocTags(u,p,v)}}function Owe(t,u,s){return qi(Y0.getReferenceEntriesForNode(-1,t,u,u.getSourceFiles(),s),d=>d.kind!==Y0.EntryKind.Span?ar(d.node,at):void 0)}function AK(t,u,s){const d=Owe(t,u,s);return jwe(u,d,s).single()}function oJt(t,u,s,d){const f=lst(t,u,s,d);return f&&jwe(s,f,d).parameters(t)||t.parameters.map(p=>({declaration:p,type:at(p.name)?AK(p.name,s,d):s.getTypeChecker().getAnyType()}))}function lst(t,u,s,d){let f;switch(t.kind){case 176:f=a0(t,137,u);break;case 219:case 218:const p=t.parent;f=(ra(p)||ko(p))&&at(p.name)?p.name:t.name;break;case 262:case 174:case 173:f=t.name;break}if(f)return Owe(f,s,d)}function jwe(t,u,s){const d=t.getTypeChecker(),f={string:()=>d.getStringType(),number:()=>d.getNumberType(),Array:je=>d.createArrayType(je),Promise:je=>d.createPromiseType(je)},p=[d.getStringType(),d.getNumberType(),d.createArrayType(d.getAnyType()),d.createPromiseType(d.getAnyType())];return{single:b,parameters:B,thisParameter:k};function E(){return{isNumber:void 0,isString:void 0,isNumberOrString:void 0,candidateTypes:void 0,properties:void 0,calls:void 0,constructs:void 0,numberIndex:void 0,stringIndex:void 0,candidateThisTypes:void 0,inferredTypes:void 0}}function v(je){const Ke=new Map;for(const Yt of je)Yt.properties&&Yt.properties.forEach((Ie,st)=>{Ke.has(st)||Ke.set(st,[]),Ke.get(st).push(Ie)});const Gt=new Map;return Ke.forEach((Yt,Ie)=>{Gt.set(Ie,v(Yt))}),{isNumber:je.some(Yt=>Yt.isNumber),isString:je.some(Yt=>Yt.isString),isNumberOrString:je.some(Yt=>Yt.isNumberOrString),candidateTypes:Vu(je,Yt=>Yt.candidateTypes),properties:Gt,calls:Vu(je,Yt=>Yt.calls),constructs:Vu(je,Yt=>Yt.constructs),numberIndex:L(je,Yt=>Yt.numberIndex),stringIndex:L(je,Yt=>Yt.stringIndex),candidateThisTypes:Vu(je,Yt=>Yt.candidateThisTypes),inferredTypes:void 0}}function b(){return Se(T(u))}function B(je){if(u.length===0||!je.parameters)return;const Ke=E();for(const Yt of u)s.throwIfCancellationRequested(),M(Yt,Ke);const Gt=[...Ke.constructs||[],...Ke.calls||[]];return je.parameters.map((Yt,Ie)=>{const st=[],Bt=U_(Yt);let It=!1;for(const ft of Gt)if(ft.argumentTypes.length<=Ie)It=Xn(je),st.push(d.getUndefinedType());else if(Bt)for(let Ut=Ie;UtGt.every(Ie=>!Ie(Yt)))}function ve(je){return Se(pe(je))}function Se(je){if(!je.length)return d.getAnyType();const Ke=d.getUnionType([d.getStringType(),d.getNumberType()]);let Yt=ne(je,[{high:st=>st===d.getStringType()||st===d.getNumberType(),low:st=>st===Ke},{high:st=>!(st.flags&16385),low:st=>!!(st.flags&16385)},{high:st=>!(st.flags&114689)&&!(Ju(st)&16),low:st=>!!(Ju(st)&16)}]);const Ie=Yt.filter(st=>Ju(st)&16);return Ie.length&&(Yt=Yt.filter(st=>!(Ju(st)&16)),Yt.push(Ne(Ie))),d.getWidenedType(d.getUnionType(Yt.map(d.getBaseTypeOfLiteralType),2))}function Ne(je){if(je.length===1)return je[0];const Ke=[],Gt=[],Yt=[],Ie=[];let st=!1,Bt=!1;const It=Tm();for(const Ut of je){for(const xn of d.getPropertiesOfType(Ut))It.add(xn.escapedName,xn.valueDeclaration?d.getTypeOfSymbolAtLocation(xn,xn.valueDeclaration):d.getAnyType());Ke.push(...d.getSignaturesOfType(Ut,0)),Gt.push(...d.getSignaturesOfType(Ut,1));const Ni=d.getIndexInfoOfType(Ut,0);Ni&&(Yt.push(Ni.type),st=st||Ni.isReadonly);const Vi=d.getIndexInfoOfType(Ut,1);Vi&&(Ie.push(Vi.type),Bt=Bt||Vi.isReadonly)}const ei=Ii(It,(Ut,Ni)=>{const Vi=Ni.lengthd.getBaseTypeOfLiteralType(It)),Bt=(Yt=je.calls)!=null&&Yt.length?fe(je):void 0;return Bt&&st?Ie.push(d.getUnionType([Bt,...st],2)):(Bt&&Ie.push(Bt),S(st)&&Ie.push(...st)),Ie.push(...xe(je)),Ie}function fe(je){const Ke=new Map;je.properties&&je.properties.forEach((st,Bt)=>{const It=d.createSymbol(4,Bt);It.links.type=ve(st),Ke.set(Bt,It)});const Gt=je.calls?[Je(je.calls)]:[],Yt=je.constructs?[Je(je.constructs)]:[],Ie=je.stringIndex?[d.createIndexInfo(d.getStringType(),ve(je.stringIndex),!1)]:[];return d.createAnonymousType(void 0,Ke,Gt,Yt,Ie)}function xe(je){if(!je.properties||!je.properties.size)return[];const Ke=p.filter(Gt=>Be(Gt,je));return 0We(Gt,je)):[]}function Be(je,Ke){return Ke.properties?!f1(Ke.properties,(Gt,Yt)=>{const Ie=d.getTypeOfPropertyOfType(je,Yt);return Ie?Gt.calls?!d.getSignaturesOfType(Ie,0).length||!d.isTypeAssignableTo(Ie,He(Gt.calls)):!d.isTypeAssignableTo(Ie,ve(Gt)):!0}):!1}function We(je,Ke){if(!(Ju(je)&4)||!Ke.properties)return je;const Gt=je.target,Yt=Sa(Gt.typeParameters);if(!Yt)return je;const Ie=[];return Ke.properties.forEach((st,Bt)=>{const It=d.getTypeOfPropertyOfType(Gt,Bt);H.assert(!!It,"generic should have all the properties of its reference."),Ie.push(...Ae(It,ve(st),Yt))}),f[je.symbol.escapedName](Se(Ie))}function Ae(je,Ke,Gt){if(je===Gt)return[Ke];if(je.flags&3145728)return Vu(je.types,st=>Ae(st,Ke,Gt));if(Ju(je)&4&&Ju(Ke)&4){const st=d.getTypeArguments(je),Bt=d.getTypeArguments(Ke),It=[];if(st&&Bt)for(let ei=0;eiIe.argumentTypes.length));for(let Ie=0;IeBt.argumentTypes[Ie]||d.getUndefinedType())),je.some(Bt=>Bt.argumentTypes[Ie]===void 0)&&(st.flags|=16777216),Ke.push(st)}const Yt=ve(v(je.map(Ie=>Ie.return_)));return d.createSignature(void 0,void 0,void 0,Ke,Yt,void 0,Gt,0)}function mt(je,Ke){Ke&&!(Ke.flags&1)&&!(Ke.flags&131072)&&(je.candidateTypes||(je.candidateTypes=[])).push(Ke)}function Ye(je,Ke){Ke&&!(Ke.flags&1)&&!(Ke.flags&131072)&&(je.candidateThisTypes||(je.candidateThisTypes=[])).push(Ke)}}var Z4e,Vwe,sJt=o({"src/services/codefixes/inferFromUsage.ts"(){or(),as(),Z4e="inferFromUsage",Vwe=[F.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,F.Variable_0_implicitly_has_an_1_type.code,F.Parameter_0_implicitly_has_an_1_type.code,F.Rest_parameter_0_implicitly_has_an_any_type.code,F.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,F._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,F.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,F.Member_0_implicitly_has_an_1_type.code,F.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,F.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,F._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,F.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,F.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,F.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code],es({errorCodes:Vwe,getCodeActions(t){const{sourceFile:u,program:s,span:{start:d},errorCode:f,cancellationToken:p,host:E,preferences:v}=t,b=ya(u,d);let B;const k=iu.ChangeTracker.with(t,M=>{B=rst(M,u,b,f,s,p,J3,E,v)}),T=B&&Ya(B);return!T||k.length===0?void 0:[Oo(Z4e,k,[tJt(f,b),Wc(T)],Z4e,F.Infer_all_types_from_usage)]},fixIds:[Z4e],getAllCodeActions(t){const{sourceFile:u,program:s,cancellationToken:d,host:f,preferences:p}=t,E=i9();return f0(t,Vwe,(v,b)=>{rst(v,u,ya(b.file,b.start),b.code,s,d,E,f,p)})}})}});function cst(t,u,s){if(Xn(t))return;const d=ya(t,s),f=Tn(d,U0),p=f==null?void 0:f.type;if(!p)return;const E=u.getTypeFromTypeNode(p),v=u.getAwaitedType(E)||u.getVoidType(),b=u.typeToTypeNode(v,p,void 0);if(b)return{returnTypeNode:p,returnType:E,promisedTypeNode:b,promisedType:v}}function dst(t,u,s,d){t.replaceNode(u,s,q.createTypeReferenceNode("Promise",[d]))}var Y4e,Hwe,lJt=o({"src/services/codefixes/fixReturnTypeInAsyncFunction.ts"(){or(),as(),Y4e="fixReturnTypeInAsyncFunction",Hwe=[F.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code],es({errorCodes:Hwe,fixIds:[Y4e],getCodeActions:function(u){const{sourceFile:s,program:d,span:f}=u,p=d.getTypeChecker(),E=cst(s,d.getTypeChecker(),f.start);if(!E)return;const{returnTypeNode:v,returnType:b,promisedTypeNode:B,promisedType:k}=E,T=iu.ChangeTracker.with(u,M=>dst(M,s,v,B));return[Oo(Y4e,T,[F.Replace_0_with_Promise_1,p.typeToString(b),p.typeToString(k)],Y4e,F.Fix_all_incorrect_return_type_of_an_async_functions)]},getAllCodeActions:t=>f0(t,Hwe,(u,s)=>{const d=cst(s.file,t.program.getTypeChecker(),s.start);d&&dst(u,s.file,d.returnTypeNode,d.promisedTypeNode)})})}});function hst(t,u,s,d){const{line:f}=s0(u,s);(!d||Bs(d,f))&&t.insertCommentBeforeLine(u,f,s," @ts-ignore")}var Kwe,Wwe,Gwe,cJt=o({"src/services/codefixes/disableJsDiagnostics.ts"(){or(),as(),Kwe="disableJsDiagnostics",Wwe="disableJsDiagnostics",Gwe=qi(Object.keys(F),t=>{const u=F[t];return u.category===1?u.code:void 0}),es({errorCodes:Gwe,getCodeActions:function(u){const{sourceFile:s,program:d,span:f,host:p,formatContext:E}=u;if(!Xn(s)||!rV(s,d.getCompilerOptions()))return;const v=s.checkJsDirective?"":E5(p,E.options),b=[Cg(Kwe,[_rt(s.fileName,[HH(s.checkJsDirective?Kc(s.checkJsDirective.pos,s.checkJsDirective.end):h1(0,0),`// @ts-nocheck${v}`)])],F.Disable_checking_for_this_file)];return iu.isValidLocationToAddComment(s,f.start)&&b.unshift(Oo(Kwe,iu.ChangeTracker.with(u,B=>hst(B,s,f.start)),F.Ignore_this_error_message,Wwe,F.Add_ts_ignore_to_all_error_messages)),b},fixIds:[Wwe],getAllCodeActions:t=>{const u=new Set;return f0(t,Gwe,(s,d)=>{iu.isValidLocationToAddComment(d.file,d.start)&&hst(s,d.file,d.start,u)})}})}});function Jwe(t,u,s,d,f,p,E){const v=t.symbol.members;for(const b of u)v.has(b.escapedName)||fst(b,t,s,d,f,p,E,void 0)}function xw(t){return{trackSymbol:()=>!1,moduleResolverHost:ofe(t.program,t.host)}}function fst(t,u,s,d,f,p,E,v,b=3,B=!1){const k=t.getDeclarations(),T=Ki(k),M=d.program.getTypeChecker(),z=js(d.program.getCompilerOptions()),j=(T==null?void 0:T.kind)??171,J=xe(t,T),K=T?Dh(T):0;let Y=K&256;Y|=K&1?1:K&4?4:0,T&&ef(T)&&(Y|=512);const oe=ve(),se=M.getWidenedType(M.getTypeOfSymbolAtLocation(t,u)),ge=!!(t.flags&16777216),ae=!!(u.flags&33554432)||B,Ce=Km(s,f);switch(j){case 171:case 172:const Be=Ce===0?268435456:void 0;let We=M.typeToTypeNode(se,u,Be,xw(d));if(p){const De=d9(We,z);De&&(We=De.typeNode,vw(p,De.symbols))}E(q.createPropertyDeclaration(oe,T?Ne(J):t.getName(),ge&&b&2?q.createToken(58):void 0,We,void 0));break;case 177:case 178:{H.assertIsDefined(k);let De=M.typeToTypeNode(se,u,void 0,xw(d));const He=dk(k,T),Je=He.secondAccessor?[He.firstAccessor,He.secondAccessor]:[He.firstAccessor];if(p){const mt=d9(De,z);mt&&(De=mt.typeNode,vw(p,mt.symbols))}for(const mt of Je)if(Im(mt))E(q.createGetAccessorDeclaration(oe,Ne(J),Dt,fe(De),pe(v,Ce,ae)));else{H.assertNode(mt,jf,"The counterpart to a getter should be a setter");const Ye=fP(mt),je=Ye&&at(Ye.name)?fu(Ye.name):void 0;E(q.createSetAccessorDeclaration(oe,Ne(J),Uwe(1,[je],[fe(De)],1,!1),pe(v,Ce,ae)))}break}case 173:case 174:H.assertIsDefined(k);const Ae=se.isUnion()?Vu(se.types,De=>De.getCallSignatures()):se.getCallSignatures();if(!Ge(Ae))break;if(k.length===1){H.assert(Ae.length===1,"One declaration implies one signature");const De=Ae[0];ne(Ce,De,oe,Ne(J),pe(v,Ce,ae));break}for(const De of Ae)ne(Ce,De,oe,Ne(J));if(!ae)if(k.length>Ae.length){const De=M.getSignatureFromDeclaration(k[k.length-1]);ne(Ce,De,oe,Ne(J),pe(v,Ce))}else H.assert(k.length===Ae.length,"Declarations and signatures should match count"),E(fJt(M,d,u,Ae,Ne(J),ge&&!!(b&1),oe,Ce,v));break}function ne(Be,We,Ae,De,He){const Je=Q4e(174,d,Be,We,He,De,Ae,ge&&!!(b&1),u,p);Je&&E(Je)}function ve(){let Be;return Y&&(Be=co(Be,q.createModifiersFromModifierFlags(Y))),Se()&&(Be=Di(Be,q.createToken(164))),Be&&q.createNodeArray(Be)}function Se(){return!!(d.program.getCompilerOptions().noImplicitOverride&&T&&M2(T))}function Ne(Be){return at(Be)&&Be.escapedText==="constructor"?q.createComputedPropertyName(q.createStringLiteral(fu(Be),Ce===0)):dl(Be,!1)}function pe(Be,We,Ae){return Ae?void 0:dl(Be,!1)||qwe(We)}function fe(Be){return dl(Be,!1)}function xe(Be,We){if(Gl(Be)&262144){const Ae=Be.links.nameType;if(Ae&&X4(Ae))return q.createIdentifier(Qr(ep(Ae)))}return dl(Ya(We),!1)}}function Q4e(t,u,s,d,f,p,E,v,b,B){const k=u.program,T=k.getTypeChecker(),M=js(k.getCompilerOptions()),z=Xn(b),j=524545|(s===0?268435456:0),J=T.signatureToSignatureDeclaration(d,t,b,j,xw(u));if(!J)return;let K=z?void 0:J.typeParameters,Y=J.parameters,oe=z?void 0:J.type;if(B){if(K){const Ce=Pu(K,ne=>{let ve=ne.constraint,Se=ne.default;if(ve){const Ne=d9(ve,M);Ne&&(ve=Ne.typeNode,vw(B,Ne.symbols))}if(Se){const Ne=d9(Se,M);Ne&&(Se=Ne.typeNode,vw(B,Ne.symbols))}return q.updateTypeParameterDeclaration(ne,ne.modifiers,ne.name,ve,Se)});K!==Ce&&(K=Pt(q.createNodeArray(Ce,K.hasTrailingComma),K))}const ae=Pu(Y,Ce=>{let ne=z?void 0:Ce.type;if(ne){const ve=d9(ne,M);ve&&(ne=ve.typeNode,vw(B,ve.symbols))}return q.updateParameterDeclaration(Ce,Ce.modifiers,Ce.dotDotDotToken,Ce.name,z?void 0:Ce.questionToken,ne,Ce.initializer)});if(Y!==ae&&(Y=Pt(q.createNodeArray(ae,Y.hasTrailingComma),Y)),oe){const Ce=d9(oe,M);Ce&&(oe=Ce.typeNode,vw(B,Ce.symbols))}}const se=v?q.createToken(58):void 0,ge=J.asteriskToken;if(w0(J))return q.updateFunctionExpression(J,E,J.asteriskToken,ar(p,at),K,Y,oe,f??J.body);if(Z0(J))return q.updateArrowFunction(J,E,K,Y,oe,J.equalsGreaterThanToken,f??J.body);if(hc(J))return q.updateMethodDeclaration(J,E,ge,p??q.createIdentifier(""),se,K,Y,oe,f);if(td(J))return q.updateFunctionDeclaration(J,E,J.asteriskToken,ar(p,at),K,Y,oe,f??J.body)}function $we(t,u,s,d,f,p,E){const v=Km(u.sourceFile,u.preferences),b=js(u.program.getCompilerOptions()),B=xw(u),k=u.program.getTypeChecker(),T=Xn(E),{typeArguments:M,arguments:z,parent:j}=d,J=T?void 0:k.getContextualType(d),K=Vt(z,Se=>at(Se)?Se.text:Ru(Se)&&at(Se.name)?Se.name.text:void 0),Y=T?[]:Vt(z,Se=>k.getTypeAtLocation(Se)),{argumentTypeNodes:oe,argumentTypeParameters:se}=gst(k,s,Y,E,b,1,B),ge=p?q.createNodeArray(q.createModifiersFromModifierFlags(p)):void 0,ae=hY(j)?q.createToken(42):void 0,Ce=T?void 0:dJt(k,se,M),ne=Uwe(z.length,K,oe,void 0,T),ve=T||J===void 0?void 0:k.typeToTypeNode(J,E,void 0,B);switch(t){case 174:return q.createMethodDeclaration(ge,ae,f,void 0,Ce,ne,ve,qwe(v));case 173:return q.createMethodSignature(ge,f,void 0,Ce,ne,ve===void 0?q.createKeywordTypeNode(159):ve);case 262:return H.assert(typeof f=="string"||at(f),"Unexpected name"),q.createFunctionDeclaration(ge,ae,f,Ce,ne,ve,Tee(F.Function_not_implemented.message,v));default:H.fail("Unexpected kind")}}function dJt(t,u,s){const d=new Set(u.map(p=>p[0])),f=new Map(u);if(s){const p=s.filter(v=>!u.some(b=>{var B;return t.getTypeAtLocation(v)===((B=b[1])==null?void 0:B.argumentType)})),E=d.size+p.length;for(let v=0;d.size{var E;return q.createTypeParameterDeclaration(void 0,p,(E=f.get(p))==null?void 0:E.constraint)})}function mst(t){return 84+t<=90?String.fromCharCode(84+t):`T${t}`}function X4e(t,u,s,d,f,p,E){let v=t.typeToTypeNode(s,d,p,E);if(v&&nD(v)){const b=d9(v,f);b&&(vw(u,b.symbols),v=b.typeNode)}return dl(v)}function pst(t){return t.isUnionOrIntersection()?t.types.some(pst):t.flags&262144}function gst(t,u,s,d,f,p,E){const v=[],b=new Map;for(let B=0;B=d?q.createToken(58):void 0,f?void 0:(s==null?void 0:s[v])||q.createKeywordTypeNode(159),void 0);p.push(k)}return p}function fJt(t,u,s,d,f,p,E,v,b){let B=d[0],k=d[0].minArgumentCount,T=!1;for(const J of d)k=Math.min(J.minArgumentCount,k),ih(J)&&(T=!0),J.parameters.length>=B.parameters.length&&(!ih(J)||ih(B))&&(B=J);const M=B.parameters.length-(ih(B)?1:0),z=B.parameters.map(J=>J.name),j=Uwe(M,z,void 0,k,!1);if(T){const J=q.createParameterDeclaration(void 0,q.createToken(26),z[M]||"rest",M>=k?q.createToken(58):void 0,q.createArrayTypeNode(q.createKeywordTypeNode(159)),void 0);j.push(J)}return pJt(E,f,p,void 0,j,mJt(d,t,u,s),v,b)}function mJt(t,u,s,d){if(S(t)){const f=u.getUnionType(Vt(t,u.getReturnTypeOfSignature));return u.typeToTypeNode(f,d,1,xw(s))}}function pJt(t,u,s,d,f,p,E,v){return q.createMethodDeclaration(t,void 0,u,s?q.createToken(58):void 0,d,f,p,v||qwe(E))}function qwe(t){return Tee(F.Method_not_implemented.message,t)}function Tee(t,u){return q.createBlock([q.createThrowStatement(q.createNewExpression(q.createIdentifier("Error"),void 0,[q.createStringLiteral(t,u===0)]))],!0)}function Zwe(t,u,s){const d=YN(u);if(!d)return;const f=Qwe(d,"compilerOptions");if(f===void 0){t.insertNodeAtObjectStart(u,d,epe("compilerOptions",q.createObjectLiteralExpression(s.map(([E,v])=>epe(E,v)),!0)));return}const p=f.initializer;if(ys(p))for(const[E,v]of s){const b=Qwe(p,E);b===void 0?t.insertNodeAtObjectStart(u,p,epe(E,v)):t.replaceNode(u,b.initializer,v)}}function Ywe(t,u,s,d){Zwe(t,u,[[s,d]])}function epe(t,u){return q.createPropertyAssignment(q.createStringLiteral(t),u)}function Qwe(t,u){return Le(t.properties,s=>Uc(s)&&!!s.name&&rs(s.name)&&s.name.text===u)}function d9(t,u){let s;const d=yt(t,f,Xr);if(s&&d)return{typeNode:d,symbols:s};function f(p){if(zx(p)&&p.qualifier){const E=hm(p.qualifier),v=OX(E.symbol,u),b=v!==E.text?_st(p.qualifier,q.createIdentifier(v)):p.qualifier;s=Di(s,E.symbol);const B=kn(p.typeArguments,f,Xr);return q.createTypeReferenceNode(b,B)}return rn(p,f,Dg)}}function _st(t,u){return t.kind===80?u:q.createQualifiedName(_st(t.left,u),t.right)}function vw(t,u){u.forEach(s=>t.addImportFromExportedSymbol(s,!0))}function Xwe(t,u){const s=Dc(u);let d=ya(t,u.start);for(;d.end(t[t.Method=1]="Method",t[t.Property=2]="Property",t[t.All=3]="All",t))(eTe||{})}});function Dst(t,u,s,d,f,p){const E=Cst(t,u,s,d);if(!E||a9.isRefactorErrorInfo(E))return;const v=iu.ChangeTracker.fromContext(f),{isStatic:b,isReadonly:B,fieldName:k,accessorName:T,originalName:M,type:z,container:j,declaration:J}=E;Kf(k),Kf(T),Kf(J),Kf(j);let K,Y;if(gr(j)){const se=Dh(J);if(_h(t)){const ge=q.createModifiersFromModifierFlags(se);K=ge,Y=ge}else K=q.createModifiersFromModifierFlags(DJt(se)),Y=q.createModifiersFromModifierFlags(xJt(se));Ak(J)&&(Y=mi(Ax(J),Y))}kJt(v,t,J,z,k,Y);const oe=vJt(k,T,z,K,b,j);if(Kf(oe),bst(v,t,oe,J,j),B){const se=e3(j);se&&FJt(v,t,se,k.text,M)}else{const se=CJt(k,T,z,K,b,j);Kf(se),bst(v,t,se,J,j)}return v.getChanges()}function EJt(t){return at(t)||rs(t)}function _Jt(t){return Mf(t,t.parent)||ko(t)||Uc(t)}function xst(t,u){return at(u)?q.createIdentifier(t):q.createStringLiteral(t)}function vst(t,u,s){const d=u?s.name:q.createThis();return at(t)?q.createPropertyAccessExpression(d,t):q.createElementAccessExpression(d,q.createStringLiteralFromNode(t))}function DJt(t){return t&=-9,t&=-3,t&4||(t|=1),t}function xJt(t){return t&=-2,t&=-5,t|=2,t}function Cst(t,u,s,d,f=!0){const p=ya(t,s),E=s===d&&f,v=Tn(p.parent,_Jt),b=271;if(!v||!(oX(v.name,t,s,d)||E))return{error:to(F.Could_not_find_property_for_which_to_generate_accessor)};if(!EJt(v.name))return{error:to(F.Name_is_not_valid)};if((Dh(v)&98303|b)!==b)return{error:to(F.Can_only_convert_property_with_modifier)};const B=v.name.text,k=Bfe(B),T=xst(k?B:Ok(`_${B}`,t),v.name),M=xst(k?Ok(B.substring(1),t):B,v.name);return{isStatic:Gc(v),isReadonly:mP(v),type:AJt(v,u),container:v.kind===169?v.parent.parent:v.parent,originalName:v.name.text,declaration:v,fieldName:T,accessorName:M,renameAccessor:k}}function vJt(t,u,s,d,f,p){return q.createGetAccessorDeclaration(d,u,[],s,q.createBlock([q.createReturnStatement(vst(t,f,p))],!0))}function CJt(t,u,s,d,f,p){return q.createSetAccessorDeclaration(d,u,[q.createParameterDeclaration(void 0,void 0,q.createIdentifier("value"),void 0,s)],q.createBlock([q.createExpressionStatement(q.createAssignment(vst(t,f,p),q.createIdentifier("value")))],!0))}function bJt(t,u,s,d,f,p){const E=q.updatePropertyDeclaration(s,p,f,s.questionToken||s.exclamationToken,d,s.initializer);t.replaceNode(u,s,E)}function yJt(t,u,s,d){let f=q.updatePropertyAssignment(s,d,s.initializer);(f.modifiers||f.questionToken||f.exclamationToken)&&(f===s&&(f=q.cloneNode(f)),f.modifiers=void 0,f.questionToken=void 0,f.exclamationToken=void 0),t.replacePropertyAssignment(u,s,f)}function kJt(t,u,s,d,f,p){ko(s)?bJt(t,u,s,d,f,p):Uc(s)?yJt(t,u,s,f):t.replaceNode(u,s,q.updateParameterDeclaration(s,p,s.dotDotDotToken,Po(f,at),s.questionToken,s.type,s.initializer))}function bst(t,u,s,d,f){Mf(d,d.parent)?t.insertMemberAtStart(u,f,s):Uc(d)?t.insertNodeAfterComma(u,d,s):t.insertNodeAfter(u,d,s)}function FJt(t,u,s,d,f){s.body&&s.body.forEachChild(function p(E){q0(E)&&E.expression.kind===110&&rs(E.argumentExpression)&&E.argumentExpression.text===f&&D7(E)&&t.replaceNode(u,E.argumentExpression,q.createStringLiteral(d)),Ru(E)&&E.expression.kind===110&&E.name.text===f&&D7(E)&&t.replaceNode(u,E.name,q.createIdentifier(d)),!Co(E)&&!gr(E)&&E.forEachChild(p)})}function AJt(t,u){const s=Sye(t);if(ko(t)&&s&&t.questionToken){const d=u.getTypeChecker(),f=d.getTypeFromTypeNode(s);if(!d.isTypeAssignableTo(d.getUndefinedType(),f)){const p=Mv(s)?s.types:[s];return q.createUnionTypeNode([...p,q.createKeywordTypeNode(157)])}}return s}function tTe(t,u){const s=[];for(;t;){const d=w2(t),f=d&&u.getSymbolAtLocation(d.expression);if(!f)break;const p=f.flags&2097152?u.getAliasedSymbol(f):f,E=p.declarations&&Le(p.declarations,gr);if(!E)break;s.push(E),t=E}return s}var SJt=o({"src/services/codefixes/generateAccessors.ts"(){or()}});function BJt(t,u){const s=zn(u),d=Q8(u),f=t.program.getCompilerOptions(),p=[];return p.push(yst(t,s,u,g5(d.name,void 0,u.moduleSpecifier,Km(s,t.preferences)))),p1(f)===1&&p.push(yst(t,s,u,q.createImportEqualsDeclaration(void 0,!1,d.name,q.createExternalModuleReference(u.moduleSpecifier)))),p}function yst(t,u,s,d){const f=iu.ChangeTracker.with(t,p=>p.replaceNode(u,s,d));return Cg(iTe,f,[F.Replace_import_with_0,f[0].textChanges[0].newText])}function wJt(t){const u=t.sourceFile,s=F.This_expression_is_not_callable.code===t.errorCode?213:214,d=Tn(ya(u,t.span.start),p=>p.kind===s);if(!d)return[];const f=d.expression;return kst(t,f)}function TJt(t){const u=t.sourceFile,s=Tn(ya(u,t.span.start),d=>d.getStart()===t.span.start&&d.getEnd()===t.span.start+t.span.length);return s?kst(t,s):[]}function kst(t,u){const s=t.program.getTypeChecker().getTypeAtLocation(u);if(!(s.symbol&&ZE(s.symbol)&&s.symbol.links.originatingImport))return[];const d=[],f=s.symbol.links.originatingImport;if(dm(f)||yn(d,BJt(t,f)),Wt(u)&&!(gh(u.parent)&&u.parent.name===u)){const p=t.sourceFile,E=iu.ChangeTracker.with(t,v=>v.replaceNode(p,u,q.createPropertyAccessExpression(u,"default"),{}));d.push(Cg(iTe,E,F.Use_synthetic_default_member))}return d}var iTe,LJt=o({"src/services/codefixes/fixInvalidImportSyntax.ts"(){or(),as(),iTe="invalidImportSyntax",es({errorCodes:[F.This_expression_is_not_callable.code,F.This_expression_is_not_constructable.code],getCodeActions:wJt}),es({errorCodes:[F.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,F.Type_0_does_not_satisfy_the_constraint_1.code,F.Type_0_is_not_assignable_to_type_1.code,F.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,F.Type_predicate_0_is_not_assignable_to_1.code,F.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,F._0_index_type_1_is_not_assignable_to_2_index_type_3.code,F.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,F.Property_0_in_type_1_is_not_assignable_to_type_2.code,F.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,F.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code],getCodeActions:TJt})}});function Fst(t,u){const s=ya(t,u);if(at(s)&&ko(s.parent)){const d=m1(s.parent);if(d)return{type:d,prop:s.parent,isJs:Xn(s.parent)}}}function NJt(t,u){if(u.isJs)return;const s=iu.ChangeTracker.with(t,d=>Ast(d,t.sourceFile,u.prop));return Oo(tpe,s,[F.Add_definite_assignment_assertion_to_property_0,u.prop.getText()],ipe,F.Add_definite_assignment_assertions_to_all_uninitialized_properties)}function Ast(t,u,s){Kf(s);const d=q.updatePropertyDeclaration(s,s.modifiers,s.name,q.createToken(54),s.type,s.initializer);t.replaceNode(u,s,d)}function PJt(t,u){const s=iu.ChangeTracker.with(t,d=>Sst(d,t.sourceFile,u));return Oo(tpe,s,[F.Add_undefined_type_to_property_0,u.prop.name.getText()],npe,F.Add_undefined_type_to_all_uninitialized_properties)}function Sst(t,u,s){const d=q.createKeywordTypeNode(157),f=Mv(s.type)?s.type.types.concat(d):[s.type,d],p=q.createUnionTypeNode(f);s.isJs?t.addJSDocTags(u,s.prop,[q.createJSDocTypeTag(void 0,q.createJSDocTypeExpression(p))]):t.replaceNode(u,s.type,p)}function MJt(t,u){if(u.isJs)return;const s=t.program.getTypeChecker(),d=wst(s,u.prop);if(!d)return;const f=iu.ChangeTracker.with(t,p=>Bst(p,t.sourceFile,u.prop,d));return Oo(tpe,f,[F.Add_initializer_to_property_0,u.prop.name.getText()],upe,F.Add_initializers_to_all_uninitialized_properties)}function Bst(t,u,s,d){Kf(s);const f=q.updatePropertyDeclaration(s,s.modifiers,s.name,s.questionToken,s.type,d);t.replaceNode(u,s,f)}function wst(t,u){return Tst(t,t.getTypeFromTypeNode(u.type))}function Tst(t,u){if(u.flags&512)return u===t.getFalseType()||u===t.getFalseType(!0)?q.createFalse():q.createTrue();if(u.isStringLiteral())return q.createStringLiteral(u.value);if(u.isNumberLiteral())return q.createNumericLiteral(u.value);if(u.flags&2048)return q.createBigIntLiteral(u.value);if(u.isUnion())return G(u.types,s=>Tst(t,s));if(u.isClass()){const s=tD(u.symbol);if(!s||Qu(s,64))return;const d=e3(s);return d&&d.parameters.length?void 0:q.createNewExpression(q.createIdentifier(u.symbol.name),void 0,void 0)}else if(t.isArrayLikeType(u))return q.createArrayLiteralExpression()}var tpe,ipe,npe,upe,nTe,zJt=o({"src/services/codefixes/fixStrictClassInitialization.ts"(){or(),as(),tpe="strictClassInitialization",ipe="addMissingPropertyDefiniteAssignmentAssertions",npe="addMissingPropertyUndefinedType",upe="addMissingPropertyInitializer",nTe=[F.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code],es({errorCodes:nTe,getCodeActions:function(u){const s=Fst(u.sourceFile,u.span.start);if(!s)return;const d=[];return Di(d,PJt(u,s)),Di(d,NJt(u,s)),Di(d,MJt(u,s)),d},fixIds:[ipe,npe,upe],getAllCodeActions:t=>f0(t,nTe,(u,s)=>{const d=Fst(s.file,s.start);if(d)switch(t.fixId){case ipe:Ast(u,s.file,d.prop);break;case npe:Sst(u,s.file,d);break;case upe:const f=t.program.getTypeChecker(),p=wst(f,d.prop);if(!p)return;Bst(u,s.file,d.prop,p);break;default:H.fail(JSON.stringify(t.fixId))}})})}});function Lst(t,u,s){const{allowSyntheticDefaults:d,defaultImportName:f,namedImports:p,statement:E,required:v}=s;t.replaceNode(u,E,f&&!d?q.createImportEqualsDeclaration(void 0,!1,f,q.createExternalModuleReference(v)):q.createImportDeclaration(void 0,q.createImportClause(!1,f,p),v,void 0))}function Nst(t,u,s){const{parent:d}=ya(t,s);xf(d,!0)||H.failBadSyntaxKind(d);const f=Po(d.parent,ra),p=ar(f.name,at),E=Op(f.name)?IJt(f.name):void 0;if(p||E)return{allowSyntheticDefaults:C7(u.getCompilerOptions()),defaultImportName:p,namedImports:E,statement:Po(f.parent.parent,Jl),required:Pn(d.arguments)}}function IJt(t){const u=[];for(const s of t.elements){if(!at(s.name)||s.initializer)return;u.push(q.createImportSpecifier(!1,ar(s.propertyName,at),s.name))}if(u.length)return q.createNamedImports(u)}var rpe,uTe,RJt=o({"src/services/codefixes/requireInTs.ts"(){or(),as(),rpe="requireInTs",uTe=[F.require_call_may_be_converted_to_an_import.code],es({errorCodes:uTe,getCodeActions(t){const u=Nst(t.sourceFile,t.program,t.span.start);if(!u)return;const s=iu.ChangeTracker.with(t,d=>Lst(d,t.sourceFile,u));return[Oo(rpe,s,F.Convert_require_to_import,rpe,F.Convert_all_require_to_import)]},fixIds:[rpe],getAllCodeActions:t=>f0(t,uTe,(u,s)=>{const d=Nst(s.file,t.program,s.start);d&&Lst(u,t.sourceFile,d)})})}});function Pst(t,u){const s=ya(t,u);if(!at(s))return;const{parent:d}=s;if(_1(d)&&a_(d.moduleReference))return{importNode:d,name:s,moduleSpecifier:d.moduleReference.expression};if(Jx(d)){const f=d.parent.parent;return{importNode:f,name:s,moduleSpecifier:f.moduleSpecifier}}}function Mst(t,u,s,d){t.replaceNode(u,s.importNode,g5(s.name,void 0,s.moduleSpecifier,Km(u,d)))}var ape,rTe,OJt=o({"src/services/codefixes/useDefaultImport.ts"(){or(),as(),ape="useDefaultImport",rTe=[F.Import_may_be_converted_to_a_default_import.code],es({errorCodes:rTe,getCodeActions(t){const{sourceFile:u,span:{start:s}}=t,d=Pst(u,s);if(!d)return;const f=iu.ChangeTracker.with(t,p=>Mst(p,u,d,t.preferences));return[Oo(ape,f,F.Convert_to_default_import,ape,F.Convert_all_to_default_imports)]},fixIds:[ape],getAllCodeActions:t=>f0(t,rTe,(u,s)=>{const d=Pst(s.file,s.start);d&&Mst(u,s.file,d,t.preferences)})})}});function zst(t,u,s){const d=ar(ya(u,s.start),Of);if(!d)return;const f=d.getText(u)+"n";t.replaceNode(u,d,q.createBigIntLiteral(f))}var ope,aTe,jJt=o({"src/services/codefixes/useBigintLiteral.ts"(){or(),as(),ope="useBigintLiteral",aTe=[F.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code],es({errorCodes:aTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>zst(d,u.sourceFile,u.span));if(s.length>0)return[Oo(ope,s,F.Convert_to_a_bigint_numeric_literal,ope,F.Convert_all_to_bigint_numeric_literals)]},fixIds:[ope],getAllCodeActions:t=>f0(t,aTe,(u,s)=>zst(u,s.file,s))})}});function Ist(t,u){const s=ya(t,u);return H.assert(s.kind===102,"This token should be an ImportKeyword"),H.assert(s.parent.kind===205,"Token parent should be an ImportType"),s.parent}function Rst(t,u,s){const d=q.updateImportTypeNode(s,s.argument,s.attributes,s.qualifier,s.typeArguments,!0);t.replaceNode(u,s,d)}var Ost,spe,oTe,VJt=o({"src/services/codefixes/fixAddModuleReferTypeMissingTypeof.ts"(){or(),as(),Ost="fixAddModuleReferTypeMissingTypeof",spe=Ost,oTe=[F.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code],es({errorCodes:oTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Ist(s,d.start),p=iu.ChangeTracker.with(u,E=>Rst(E,s,f));return[Oo(spe,p,F.Add_missing_typeof,spe,F.Add_missing_typeof)]},fixIds:[spe],getAllCodeActions:t=>f0(t,oTe,(u,s)=>Rst(u,t.sourceFile,Ist(s.file,s.start)))})}});function jst(t,u){let f=ya(t,u).parent.parent;if(!(!eu(f)&&(f=f.parent,!eu(f)))&&Xl(f.operatorToken))return f}function Vst(t,u,s){const d=HJt(s);d&&t.replaceNode(u,s,q.createJsxFragment(q.createJsxOpeningFragment(),d,q.createJsxJsxClosingFragment()))}function HJt(t){const u=[];let s=t;for(;;)if(eu(s)&&Xl(s.operatorToken)&&s.operatorToken.kind===28){if(u.push(s.left),tj(s.right))return u.push(s.right),u;if(eu(s.right)){s=s.right;continue}else return}else return}var lpe,sTe,KJt=o({"src/services/codefixes/wrapJsxInFragment.ts"(){or(),as(),lpe="wrapJsxInFragment",sTe=[F.JSX_expressions_must_have_one_parent_element.code],es({errorCodes:sTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=jst(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,E=>Vst(E,s,f));return[Oo(lpe,p,F.Wrap_in_JSX_fragment,lpe,F.Wrap_all_unparented_JSX_in_JSX_fragment)]},fixIds:[lpe],getAllCodeActions:t=>f0(t,sTe,(u,s)=>{const d=jst(t.sourceFile,s.start);d&&Vst(u,t.sourceFile,d)})})}});function Hst(t,u){const s=ya(t,u),d=ar(s.parent.parent,Ek);if(!d)return;const f=Ch(d.parent)?d.parent:ar(d.parent.parent,Vp);if(f)return{indexSignature:d,container:f}}function WJt(t,u){return q.createTypeAliasDeclaration(t.modifiers,t.name,t.typeParameters,u)}function Kst(t,u,{indexSignature:s,container:d}){const p=(Ch(d)?d.members:d.type.members).filter(k=>!Ek(k)),E=Pn(s.parameters),v=q.createTypeParameterDeclaration(void 0,Po(E.name,at),E.type),b=q.createMappedTypeNode(mP(s)?q.createModifier(148):void 0,v,void 0,s.questionToken,s.type,void 0),B=q.createIntersectionTypeNode([...rP(d),b,...p.length?[q.createTypeLiteralNode(p)]:Dt]);t.replaceNode(u,d,WJt(d,B))}var cpe,lTe,GJt=o({"src/services/codefixes/convertToMappedObjectType.ts"(){or(),as(),cpe="fixConvertToMappedObjectType",lTe=[F.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code],es({errorCodes:lTe,getCodeActions:function(u){const{sourceFile:s,span:d}=u,f=Hst(s,d.start);if(!f)return;const p=iu.ChangeTracker.with(u,v=>Kst(v,s,f)),E=fu(f.container.name);return[Oo(cpe,p,[F.Convert_0_to_mapped_object_type,E],cpe,[F.Convert_0_to_mapped_object_type,E])]},fixIds:[cpe],getAllCodeActions:t=>f0(t,lTe,(u,s)=>{const d=Hst(s.file,s.start);d&&Kst(u,s.file,d)})})}}),cTe,Wst,JJt=o({"src/services/codefixes/removeAccidentalCallParentheses.ts"(){or(),as(),cTe="removeAccidentalCallParentheses",Wst=[F.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code],es({errorCodes:Wst,getCodeActions(t){const u=Tn(ya(t.sourceFile,t.span.start),Mo);if(!u)return;const s=iu.ChangeTracker.with(t,d=>{d.deleteRange(t.sourceFile,{pos:u.expression.end,end:u.end})});return[Cg(cTe,s,F.Remove_parentheses)]},fixIds:[cTe]})}});function Gst(t,u,s){const d=ar(ya(u,s.start),v=>v.kind===135),f=d&&ar(d.parent,Gx);if(!f)return;let p=f;if(Cf(f.parent)){const v=dB(f.expression,!1);if(at(v)){const b=id(f.parent.pos,u);b&&b.kind!==105&&(p=f.parent)}}t.replaceNode(u,p,f.expression)}var dpe,dTe,$Jt=o({"src/services/codefixes/removeUnnecessaryAwait.ts"(){or(),as(),dpe="removeUnnecessaryAwait",dTe=[F.await_has_no_effect_on_the_type_of_this_expression.code],es({errorCodes:dTe,getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>Gst(d,u.sourceFile,u.span));if(s.length>0)return[Oo(dpe,s,F.Remove_unnecessary_await,dpe,F.Remove_all_unnecessary_uses_of_await)]},fixIds:[dpe],getAllCodeActions:t=>f0(t,dTe,(u,s)=>Gst(u,s.file,s))})}});function Jst(t,u){return Tn(ya(t,u.start),Sd)}function $st(t,u,s){if(!u)return;const d=H.checkDefined(u.importClause);t.replaceNode(s.sourceFile,u,q.updateImportDeclaration(u,u.modifiers,q.updateImportClause(d,d.isTypeOnly,d.name,void 0),u.moduleSpecifier,u.attributes)),t.insertNodeAfter(s.sourceFile,u,q.createImportDeclaration(void 0,q.updateImportClause(d,d.isTypeOnly,void 0,d.namedBindings),u.moduleSpecifier,u.attributes))}var hTe,hpe,UJt=o({"src/services/codefixes/splitTypeOnlyImport.ts"(){or(),as(),hTe=[F.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code],hpe="splitTypeOnlyImport",es({errorCodes:hTe,fixIds:[hpe],getCodeActions:function(u){const s=iu.ChangeTracker.with(u,d=>$st(d,Jst(u.sourceFile,u.span),u));if(s.length)return[Oo(hpe,s,F.Split_into_two_separate_import_declarations,hpe,F.Split_all_invalid_type_only_imports)]},getAllCodeActions:t=>f0(t,hTe,(u,s)=>{$st(u,Jst(t.sourceFile,s),t)})})}});function Ust(t,u,s){var d;const p=s.getTypeChecker().getSymbolAtLocation(ya(t,u));if(p===void 0)return;const E=ar((d=p==null?void 0:p.valueDeclaration)==null?void 0:d.parent,Ad);if(E===void 0)return;const v=a0(E,87,t);if(v!==void 0)return{symbol:p,token:v}}function qst(t,u,s){t.replaceNode(u,s,q.createToken(121))}var fpe,fTe,qJt=o({"src/services/codefixes/convertConstToLet.ts"(){or(),as(),fpe="fixConvertConstToLet",fTe=[F.Cannot_assign_to_0_because_it_is_a_constant.code],es({errorCodes:fTe,getCodeActions:function(u){const{sourceFile:s,span:d,program:f}=u,p=Ust(s,d.start,f);if(p===void 0)return;const E=iu.ChangeTracker.with(u,v=>qst(v,s,p.token));return[fBe(fpe,E,F.Convert_const_to_let,fpe,F.Convert_all_const_to_let)]},getAllCodeActions:t=>{const{program:u}=t,s=new Map;return Ew(iu.ChangeTracker.with(t,d=>{_w(t,fTe,f=>{const p=Ust(f.file,f.start,u);if(p&&Rp(s,Yo(p.symbol)))return qst(d,f.file,p.token)})}))},fixIds:[fpe]})}});function Zst(t,u,s){const d=ya(t,u);return d.kind===27&&d.parent&&(ys(d.parent)||vh(d.parent))?{node:d}:void 0}function Yst(t,u,{node:s}){const d=q.createToken(28);t.replaceNode(u,s,d)}var mpe,Qst,mTe,ZJt=o({"src/services/codefixes/fixExpectedComma.ts"(){or(),as(),mpe="fixExpectedComma",Qst=F._0_expected.code,mTe=[Qst],es({errorCodes:mTe,getCodeActions(t){const{sourceFile:u}=t,s=Zst(u,t.span.start,t.errorCode);if(!s)return;const d=iu.ChangeTracker.with(t,f=>Yst(f,u,s));return[Oo(mpe,d,[F.Change_0_to_1,";",","],mpe,[F.Change_0_to_1,";",","])]},fixIds:[mpe],getAllCodeActions:t=>f0(t,mTe,(u,s)=>{const d=Zst(s.file,s.start,s.code);d&&Yst(u,t.sourceFile,d)})})}});function Xst(t,u,s,d,f){const p=ya(u,s.start);if(!at(p)||!Mo(p.parent)||p.parent.expression!==p||p.parent.arguments.length!==0)return;const E=d.getTypeChecker(),v=E.getSymbolAtLocation(p),b=v==null?void 0:v.valueDeclaration;if(!b||!io(b)||!V2(b.parent.parent)||f!=null&&f.has(b))return;f==null||f.add(b);const B=YJt(b.parent.parent);if(Ge(B)){const k=B[0],T=!Mv(k)&&!M7(k)&&M7(q.createUnionTypeNode([k,q.createKeywordTypeNode(116)]).types[0]);T&&t.insertText(u,k.pos,"("),t.insertText(u,k.end,T?") | void":" | void")}else{const k=E.getResolvedSignature(p.parent),T=k==null?void 0:k.parameters[0],M=T&&E.getTypeOfSymbolAtLocation(T,b.parent.parent);Xn(b)?(!M||M.flags&3)&&(t.insertText(u,b.parent.parent.end,")"),t.insertText(u,gs(u.text,b.parent.parent.pos),"/** @type {Promise} */(")):(!M||M.flags&2)&&t.insertText(u,b.parent.parent.expression.end,"")}}function YJt(t){var u;if(Xn(t)){if(Cf(t.parent)){const s=(u=vv(t.parent))==null?void 0:u.typeExpression.type;if(s&&tp(s)&&at(s.typeName)&&fu(s.typeName)==="Promise")return s.typeArguments}}else return t.typeArguments}var e0t,pTe,gTe,QJt=o({"src/services/codefixes/fixAddVoidToPromise.ts"(){or(),as(),e0t="addVoidToPromise",pTe="addVoidToPromise",gTe=[F.Expected_1_argument_but_got_0_new_Promise_needs_a_JSDoc_hint_to_produce_a_resolve_that_can_be_called_without_arguments.code,F.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code],es({errorCodes:gTe,fixIds:[pTe],getCodeActions(t){const u=iu.ChangeTracker.with(t,s=>Xst(s,t.sourceFile,t.span,t.program));if(u.length>0)return[Oo(e0t,u,F.Add_void_to_Promise_resolved_without_a_value,pTe,F.Add_void_to_all_Promises_resolved_without_a_value)]},getAllCodeActions(t){return f0(t,gTe,(u,s)=>Xst(u,s.file,s,t.program,new Set))}})}}),I1={};h(I1,{PreserveOptionalFlags:()=>eTe,addNewNodeForMemberSymbol:()=>fst,codeFixAll:()=>f0,createCodeFixAction:()=>Oo,createCodeFixActionMaybeFixAll:()=>fBe,createCodeFixActionWithoutFixAll:()=>Cg,createCombinedCodeActions:()=>Ew,createFileTextChanges:()=>_rt,createImportAdder:()=>l9,createImportSpecifierResolver:()=>hWt,createJsonPropertyAssignment:()=>epe,createMissingMemberNodes:()=>Jwe,createSignatureDeclarationFromCallExpression:()=>$we,createSignatureDeclarationFromSignature:()=>Q4e,createStubbedBody:()=>Tee,eachDiagnostic:()=>_w,findAncestorMatchingSpan:()=>Xwe,findJsonProperty:()=>Qwe,generateAccessorFromProperty:()=>Dst,getAccessorConvertiblePropertyAtPosition:()=>Cst,getAllFixes:()=>HHt,getAllSupers:()=>tTe,getArgumentTypesAndTypeParameters:()=>gst,getFixes:()=>VHt,getImportCompletionAction:()=>fWt,getImportKind:()=>HBe,getJSDocTypedefNodes:()=>oWt,getNoopSymbolTrackerWithResolver:()=>xw,getPromoteTypeOnlyCompletionAction:()=>mWt,getSupportedErrorCodes:()=>OHt,importFixName:()=>qBe,importSymbols:()=>vw,moduleSpecifierToValidIdentifier:()=>UBe,moduleSymbolToValidIdentifier:()=>$Be,parameterShouldGetTypeFromJSDoc:()=>Rrt,registerCodeFix:()=>es,setJsonCompilerOptionValue:()=>Ywe,setJsonCompilerOptionValues:()=>Zwe,tryGetAutoImportableReferenceFromTypeNode:()=>d9,typeToAutoImportableTypeNode:()=>X4e});var as=o({"src/services/_namespaces/ts.codefix.ts"(){KHt(),WHt(),GHt(),UHt(),XHt(),nKt(),uKt(),rKt(),aKt(),cKt(),xKt(),CKt(),NKt(),YKt(),QKt(),eWt(),tWt(),sWt(),lWt(),dWt(),PWt(),IWt(),jWt(),VWt(),HWt(),GWt(),UWt(),YWt(),iGt(),hGt(),mGt(),pGt(),EGt(),_Gt(),DGt(),xGt(),CGt(),bGt(),yGt(),kGt(),FGt(),SGt(),TGt(),MGt(),WGt(),JGt(),$Gt(),ZGt(),YGt(),XGt(),eJt(),sJt(),lJt(),cJt(),gJt(),SJt(),LJt(),zJt(),RJt(),OJt(),jJt(),VJt(),KJt(),GJt(),JJt(),$Jt(),UJt(),qJt(),ZJt(),QJt()}});function XJt(t){return!!(t.kind&1)}function e$t(t){return!!(t.kind&2)}function Lee(t){return!!(t&&t.kind&4)}function YM(t){return!!(t&&t.kind===32)}function t$t(t){return Lee(t)||YM(t)||ETe(t)}function i$t(t){return(Lee(t)||YM(t))&&!!t.isFromPackageJson}function n$t(t){return!!(t.kind&8)}function u$t(t){return!!(t.kind&16)}function t0t(t){return!!(t&&t.kind&64)}function i0t(t){return!!(t&&t.kind&128)}function r$t(t){return!!(t&&t.kind&256)}function ETe(t){return!!(t&&t.kind&512)}function n0t(t,u,s,d,f,p,E,v,b){var B,k,T;const M=J0(),z=E||b7(g1(d.getCompilerOptions()));let j=!1,J=0,K=0,Y=0,oe=0;const se=b({tryResolve:ae,skippedAny:()=>j,resolvedAny:()=>K>0,resolvedBeyondLimit:()=>K>ype}),ge=oe?` (${(Y/oe*100).toFixed(1)}% hit rate)`:"";return(B=u.log)==null||B.call(u,`${t}: resolved ${K} module specifiers, plus ${J} ambient and ${Y} from cache${ge}`),(k=u.log)==null||k.call(u,`${t}: response is ${j?"incomplete":"complete"}`),(T=u.log)==null||T.call(u,`${t}: ${J0()-M}`),se;function ae(Ce,ne){if(ne){const pe=s.getModuleSpecifierForBestExportInfo(Ce,f,v);return pe&&J++,pe||"failed"}const ve=z||p.allowIncompleteCompletions&&K{const j=qi(b.entries,J=>{var K;if(!J.hasAction||!J.source||!J.data||u0t(J.data))return J;if(!B0t(J.name,k))return;const{origin:Y}=H.checkDefined(g0t(J.name,J.data,d,f)),oe=T.get(u.path,J.data.exportMapKey),se=oe&&z.tryResolve(oe,!Id(q4(Y.moduleSymbol.name)));if(se==="skipped")return J;if(!se||se==="failed"){(K=f.log)==null||K.call(f,`Unexpected failure resolving auto import for '${J.name}' from '${J.source}'`);return}const ge={...Y,kind:32,moduleSpecifier:se.moduleSpecifier};return J.data=h0t(ge),J.source=xTe(ge),J.sourceDisplay=[Wm(ge.moduleSpecifier)],J});return z.skippedAny()||(b.isIncomplete=void 0),j});return b.entries=M,b.flags=(b.flags||0)|4,b.optionalReplacementSpan=s0t(B),b}function _Te(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:t}}function r0t(t,u,s,d,f,p){const E=ya(t,u);if(!I8(E)&&!Hp(E))return[];const v=Hp(E)?E:E.parent;if(!Hp(v))return[];const b=v.parent;if(!Co(b))return[];const B=_h(t),k=f.includeCompletionsWithSnippetText||void 0,T=ui(v.tags,M=>Eg(M)&&M.getEnd()<=u);return qi(b.parameters,M=>{if(!B8(M).length){if(at(M.name)){const z={tabstop:1},j=M.name.text;let J=SK(j,M.initializer,M.dotDotDotToken,B,!1,!1,s,d,f),K=k?SK(j,M.initializer,M.dotDotDotToken,B,!1,!0,s,d,f,z):void 0;return p&&(J=J.slice(1),K&&(K=K.slice(1))),{name:J,kind:"parameter",sortText:R1.LocationPriority,insertText:k?K:void 0,isSnippet:k}}else if(M.parent.parameters.indexOf(M)===T){const z=`param${T}`,j=a0t(z,M.name,M.initializer,M.dotDotDotToken,B,!1,s,d,f),J=k?a0t(z,M.name,M.initializer,M.dotDotDotToken,B,!0,s,d,f):void 0;let K=j.join(a5(d)+"* "),Y=J==null?void 0:J.join(a5(d)+"* ");return p&&(K=K.slice(1),Y&&(Y=Y.slice(1))),{name:K,kind:"parameter",sortText:R1.LocationPriority,insertText:k?Y:void 0,isSnippet:k}}}})}function a0t(t,u,s,d,f,p,E,v,b){if(!f)return[SK(t,s,d,f,!1,p,E,v,b,{tabstop:1})];return B(t,u,s,d,{tabstop:1});function B(T,M,z,j,J){if(Op(M)&&!j){const Y={tabstop:J.tabstop},oe=SK(T,z,j,f,!0,p,E,v,b,Y);let se=[];for(const ge of M.elements){const ae=k(T,ge,Y);if(ae)se.push(...ae);else{se=void 0;break}}if(se)return J.tabstop=Y.tabstop,[oe,...se]}return[SK(T,z,j,f,!1,p,E,v,b,J)]}function k(T,M,z){if(!M.propertyName&&at(M.name)||at(M.name)){const j=M.propertyName?qN(M.propertyName):M.name.text;if(!j)return;const J=`${T}.${j}`;return[SK(J,M.initializer,M.dotDotDotToken,f,!1,p,E,v,b,z)]}else if(M.propertyName){const j=qN(M.propertyName);return j&&B(`${T}.${j}`,M.name,M.initializer,M.dotDotDotToken,z)}}}function SK(t,u,s,d,f,p,E,v,b,B){if(p&&H.assertIsDefined(B),u&&(t=s$t(t,u)),p&&(t=j2(t)),d){let k="*";if(f)H.assert(!s,"Cannot annotate a rest parameter with type 'Object'."),k="Object";else{if(u){const z=E.getTypeAtLocation(u.parent);if(!(z.flags&16385)){const j=u.getSourceFile(),K=Km(j,b)===0?268435456:0,Y=E.typeToTypeNode(z,Tn(u,Co),K);if(Y){const oe=p?Epe({removeComments:!0,module:v.module,target:v.target}):Jv({removeComments:!0,module:v.module,target:v.target});Yn(Y,1),k=oe.printNode(4,Y,j)}}}p&&k==="*"&&(k=`\${${B.tabstop++}:${k}}`)}const T=!f&&s?"...":"",M=p?`\${${B.tabstop++}}`:"";return`@param {${T}${k}} ${t} ${M}`}else{const k=p?`\${${B.tabstop++}}`:"";return`@param ${t} ${k}`}}function s$t(t,u){const s=u.getText().trim();return s.includes(` +`)||s.length>80?`[${t}]`:`[${t}=${s}]`}function l$t(t){return{name:qo(t),kind:"keyword",kindModifiers:"",sortText:R1.GlobalsOrKeywords}}function c$t(t,u){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:u,entries:t.slice()}}function o0t(t,u,s){return{kind:4,keywordCompletions:E0t(t,u),isNewIdentifierLocation:s}}function d$t(t){switch(t){case 156:return 8;default:H.fail("Unknown mapping from SyntaxKind to KeywordCompletionFilters")}}function s0t(t){return(t==null?void 0:t.kind)===80?of(t):void 0}function h$t(t,u,s,d,f,p,E,v,b,B){const{symbols:k,contextToken:T,completionKind:M,isInSnippetScope:z,isNewIdentifierLocation:j,location:J,propertyAccessToConvert:K,keywordFilters:Y,symbolToOriginInfoMap:oe,recommendedCompletion:se,isJsxInitializer:ge,isTypeOnlyLocation:ae,isJsxIdentifierExpected:Ce,isRightOfOpenTag:ne,isRightOfDotOrQuestionDot:ve,importStatementCompletion:Se,insideJsDocTagTypeExpression:Ne,symbolToSortTextMap:pe,hasUnresolvedAutoImports:fe}=p;let xe=p.literals;const Be=s.getTypeChecker();if(Qj(t.scriptKind)===1){const mt=m$t(J,t);if(mt)return mt}const We=Tn(T,BB);if(We&&(cFe(T)||B2(T,We.expression))){const mt=KX(Be,We.parent.clauses);xe=xe.filter(Ye=>!mt.hasValue(Ye)),k.forEach((Ye,je)=>{if(Ye.valueDeclaration&&$2(Ye.valueDeclaration)){const Ke=Be.getConstantValue(Ye.valueDeclaration);Ke!==void 0&&mt.hasValue(Ke)&&(oe[je]={kind:256})}})}const Ae=ht(),De=l0t(t,d);if(De&&!j&&(!k||k.length===0)&&Y===0)return;const He=vTe(k,Ae,void 0,T,J,b,t,u,s,js(d),f,M,E,d,v,ae,K,Ce,ge,Se,se,oe,pe,Ce,ne,B);if(Y!==0)for(const mt of E0t(Y,!Ne&&_h(t)))(ae&&MM(m2(mt.name))||!ae&&q$t(mt.name)||!He.has(mt.name))&&(He.add(mt.name),At(Ae,mt,Nee,!0));for(const mt of z$t(T,b))He.has(mt.name)||(He.add(mt.name),At(Ae,mt,Nee,!0));for(const mt of xe){const Ye=g$t(t,E,mt);He.add(Ye.name),At(Ae,Ye,Nee,!0)}De||p$t(t,J.pos,He,js(d),Ae);let Je;if(E.includeCompletionsWithInsertText&&T&&!ne&&!ve&&(Je=Tn(T,YP))){const mt=c0t(Je,t,E,d,u,s,v);mt&&Ae.push(mt.entry)}return{flags:p.flags,isGlobalCompletion:z,isIncomplete:E.allowIncompleteCompletions&&fe?!0:void 0,isMemberCompletion:f$t(M),isNewIdentifierLocation:j,optionalReplacementSpan:s0t(J),entries:Ae}}function l0t(t,u){return!_h(t)||!!rV(t,u)}function c0t(t,u,s,d,f,p,E){const v=t.clauses,b=p.getTypeChecker(),B=b.getTypeAtLocation(t.parent.expression);if(B&&B.isUnion()&&ye(B.types,k=>k.isLiteral())){const k=KX(b,v),T=js(d),M=Km(u,s),z=I1.createImportAdder(u,p,s,f),j=[];for(const ae of B.types)if(ae.flags&1024){H.assert(ae.symbol,"An enum member type should have a symbol"),H.assert(ae.symbol.parent,"An enum member type should have a parent symbol (the enum symbol)");const Ce=ae.symbol.valueDeclaration&&b.getConstantValue(ae.symbol.valueDeclaration);if(Ce!==void 0){if(k.hasValue(Ce))continue;k.addValue(Ce)}const ne=I1.typeToAutoImportableTypeNode(b,z,ae,t,T);if(!ne)return;const ve=ppe(ne,T,M);if(!ve)return;j.push(ve)}else if(!k.hasValue(ae.value))switch(typeof ae.value){case"object":j.push(ae.value.negative?q.createPrefixUnaryExpression(41,q.createBigIntLiteral({negative:!1,base10Value:ae.value.base10Value})):q.createBigIntLiteral(ae.value));break;case"number":j.push(ae.value<0?q.createPrefixUnaryExpression(41,q.createNumericLiteral(-ae.value)):q.createNumericLiteral(ae.value));break;case"string":j.push(q.createStringLiteral(ae.value,M===0));break}if(j.length===0)return;const J=Vt(j,ae=>q.createCaseClause(ae,[])),K=E5(f,E==null?void 0:E.options),Y=Epe({removeComments:!0,module:d.module,target:d.target,newLine:tK(K)}),oe=E?ae=>Y.printAndFormatNode(4,ae,u,E):ae=>Y.printNode(4,ae,u),se=Vt(J,(ae,Ce)=>s.includeCompletionsWithSnippetText?`${oe(ae)}$${Ce+1}`:`${oe(ae)}`).join(K);return{entry:{name:`${Y.printNode(4,J[0],u)} ...`,kind:"",sortText:R1.GlobalsOrKeywords,insertText:se,hasAction:z.hasFixes()||void 0,source:"SwitchCases/",isSnippet:s.includeCompletionsWithSnippetText?!0:void 0},importAdder:z}}}function ppe(t,u,s){switch(t.kind){case 183:const d=t.typeName;return gpe(d,u,s);case 199:const f=ppe(t.objectType,u,s),p=ppe(t.indexType,u,s);return f&&p&&q.createElementAccessExpression(f,p);case 201:const E=t.literal;switch(E.kind){case 11:return q.createStringLiteral(E.text,s===0);case 9:return q.createNumericLiteral(E.text,E.numericLiteralFlags)}return;case 196:const v=ppe(t.type,u,s);return v&&(at(v)?v:q.createParenthesizedExpression(v));case 186:return gpe(t.exprName,u,s);case 205:H.fail("We should not get an import type after calling 'codefix.typeToAutoImportableTypeNode'.")}}function gpe(t,u,s){if(at(t))return t;const d=Qr(t.right.escapedText);return Rle(d,u)?q.createPropertyAccessExpression(gpe(t.left,u,s),d):q.createElementAccessExpression(gpe(t.left,u,s),q.createStringLiteral(d,s===0))}function f$t(t){switch(t){case 0:case 3:case 2:return!0;default:return!1}}function m$t(t,u){const s=Tn(t,d=>{switch(d.kind){case 287:return!0;case 44:case 32:case 80:case 211:return!1;default:return"quit"}});if(s){const d=!!a0(s,32,u),E=s.parent.openingElement.tagName.getText(u)+(d?"":">"),v=of(s.tagName),b={name:E,kind:"class",kindModifiers:void 0,sortText:R1.LocationPriority};return{isGlobalCompletion:!1,isMemberCompletion:!0,isNewIdentifierLocation:!1,optionalReplacementSpan:v,entries:[b]}}}function p$t(t,u,s,d,f){Nme(t).forEach((p,E)=>{if(p===u)return;const v=Qr(E);!s.has(v)&&Nm(v,d)&&(s.add(v),At(f,{name:v,kind:"warning",kindModifiers:"",sortText:R1.JavascriptIdentifiers,isFromUncheckedFile:!0},Nee))})}function DTe(t,u,s){return typeof s=="object"?R2(s)+"n":Ua(s)?VM(t,u,s):JSON.stringify(s)}function g$t(t,u,s){return{name:DTe(t,u,s),kind:"string",kindModifiers:"",sortText:R1.LocationPriority}}function E$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne){var ve,Se;let Ne,pe,fe=tfe(s),xe,Be,We=xTe(T),Ae,De,He;const Je=b.getTypeChecker(),mt=T&&u$t(T),Ye=T&&e$t(T)||k;if(T&&XJt(T))Ne=k?`this${mt?"?.":""}[${f0t(E,oe,B)}]`:`this${mt?"?.":"."}${B}`;else if((Ye||mt)&&z){Ne=Ye?k?`[${f0t(E,oe,B)}]`:`[${B}]`:B,(mt||z.questionDotToken)&&(Ne=`?.${Ne}`);const Ke=a0(z,25,E)||a0(z,29,E);if(!Ke)return;const Gt=Ma(B,z.name.text)?z.name.end:Ke.end;fe=Kc(Ke.getStart(E),Gt)}if(j&&(Ne===void 0&&(Ne=B),Ne=`{${Ne}}`,typeof j!="boolean"&&(fe=of(j,E))),T&&n$t(T)&&z){Ne===void 0&&(Ne=B);const Ke=id(z.pos,E);let Gt="";Ke&&NX(Ke.end,Ke.parent,E)&&(Gt=";"),Gt+=`(await ${z.expression.getText()})`,Ne=k?`${Gt}${Ne}`:`${Gt}${mt?"?.":"."}${Ne}`;const Ie=ar(z.parent,Gx)?z.parent:z.expression;fe=Kc(Ie.getStart(E),z.end)}if(YM(T)&&(Ae=[Wm(T.moduleSpecifier)],J&&({insertText:Ne,replacementSpan:fe}=y$t(B,J,T,K,E,Y,oe),Be=oe.includeCompletionsWithSnippetText?!0:void 0)),(T==null?void 0:T.kind)===64&&(De=!0),se===0&&d&&((ve=id(d.pos,E,d))==null?void 0:ve.kind)!==28&&(hc(d.parent.parent)||Im(d.parent.parent)||jf(d.parent.parent)||d5(d.parent)||((Se=Tn(d.parent,Uc))==null?void 0:Se.getLastToken(E))===d||pm(d.parent)&&s0(E,d.getEnd()).line!==s0(E,p).line)&&(We="ObjectLiteralMemberWithComma/",De=!0),oe.includeCompletionsWithClassMemberSnippets&&oe.includeCompletionsWithInsertText&&se===3&&_$t(t,f,E)){let Ke;const Gt=d0t(v,b,Y,oe,B,t,f,p,d,ge);if(Gt)({insertText:Ne,filterText:pe,isSnippet:Be,importAdder:Ke}=Gt),Ke!=null&&Ke.hasFixes()&&(De=!0,We="ClassMemberSnippet/");else return}if(T&&i0t(T)&&({insertText:Ne,isSnippet:Be,labelDetails:He}=T,oe.useLabelDetailsInCompletionEntries||(B=B+He.detail,He=void 0),We="ObjectLiteralMethodSnippet/",u=R1.SortBelow(u)),ae&&!Ce&&oe.includeCompletionsWithSnippetText&&oe.jsxAttributeCompletionStyle&&oe.jsxAttributeCompletionStyle!=="none"&&!(sE(f.parent)&&f.parent.initializer)){let Ke=oe.jsxAttributeCompletionStyle==="braces";const Gt=Je.getTypeOfSymbolAtLocation(t,f);oe.jsxAttributeCompletionStyle==="auto"&&!(Gt.flags&528)&&!(Gt.flags&1048576&&Le(Gt.types,Yt=>!!(Yt.flags&528)))&&(Gt.flags&402653316||Gt.flags&1048576&&ye(Gt.types,Yt=>!!(Yt.flags&402686084||hSe(Yt)))?(Ne=`${j2(B)}=${VM(E,oe,"$1")}`,Be=!0):Ke=!0),Ke&&(Ne=`${j2(B)}={$1}`,Be=!0)}if(Ne!==void 0&&!oe.includeCompletionsWithInsertText)return;(Lee(T)||YM(T))&&(xe=h0t(T),De=!J);const je=Tn(f,Zq);if((je==null?void 0:je.kind)===275){const Ke=m2(B);je&&Ke&&(Ke===135||$0e(Ke))&&(Ne=`${B} as ${B}_`)}return{name:B,kind:x5.getSymbolKind(Je,t,f),kindModifiers:x5.getSymbolModifiers(Je,t),sortText:u,source:We,hasAction:De?!0:void 0,isRecommended:k$t(t,M,Je)||void 0,insertText:Ne,filterText:pe,replacementSpan:fe,sourceDisplay:Ae,labelDetails:He,isSnippet:Be,isPackageJsonImport:i$t(T)||void 0,isImportStatementCompletion:!!J||void 0,data:xe,...ne?{symbol:t}:void 0}}function _$t(t,u,s){return Xn(u)?!1:!!(t.flags&106500)&&(gr(u)||u.parent&&u.parent.parent&&Yd(u.parent)&&u===u.parent.name&&u.parent.getLastToken(s)===u.parent.name&&gr(u.parent.parent)||u.parent&&MB(u)&&gr(u.parent))}function d0t(t,u,s,d,f,p,E,v,b,B){const k=Tn(E,gr);if(!k)return;let T,M=f;const z=f,j=u.getTypeChecker(),J=E.getSourceFile(),K=Epe({removeComments:!0,module:s.module,target:s.target,omitTrailingSemicolon:!1,newLine:tK(E5(t,B==null?void 0:B.options))}),Y=I1.createImportAdder(J,u,d,t);let oe;if(d.includeCompletionsWithSnippetText){T=!0;const Se=q.createEmptyStatement();oe=q.createBlock([Se],!0),dce(Se,{kind:0,order:0})}else oe=q.createBlock([],!0);let se=0;const{modifiers:ge,range:ae,decorators:Ce}=D$t(b,J,v),ne=ge&64&&k.modifierFlagsCache&64;let ve=[];if(I1.addNewNodeForMemberSymbol(p,k,J,{program:u,host:t},d,Y,Se=>{let Ne=0;ne&&(Ne|=64),Yd(Se)&&j.getMemberOverrideModifierStatus(k,Se,p)===1&&(Ne|=16),ve.length||(se=Se.modifierFlagsCache|Ne),Se=q.replaceModifiers(Se,se),ve.push(Se)},oe,I1.PreserveOptionalFlags.Property,!!ne),ve.length){const Se=p.flags&8192;let Ne=se|16|1;Se?Ne|=1024:Ne|=136;const pe=ge&Ne;if(ge&~Ne)return;if(se&4&&pe&1&&(se&=-5),pe!==0&&!(pe&1)&&(se&=-2),se|=pe,ve=ve.map(xe=>q.replaceModifiers(xe,se)),Ce!=null&&Ce.length){const xe=ve[ve.length-1];Ak(xe)&&(ve[ve.length-1]=q.replaceDecoratorsAndModifiers(xe,Ce.concat(g2(xe)||[])))}const fe=131073;B?M=K.printAndFormatSnippetList(fe,q.createNodeArray(ve),J,B):M=K.printSnippetList(fe,q.createNodeArray(ve),J)}return{insertText:M,filterText:z,isSnippet:T,importAdder:Y,eraseRange:ae}}function D$t(t,u,s){if(!t||s0(u,s).line>s0(u,t.getEnd()).line)return{modifiers:0};let d=0,f,p;const E={pos:s,end:s};if(ko(t.parent)&&t.parent.modifiers&&(d|=iE(t.parent.modifiers)&98303,f=t.parent.modifiers.filter(E1)||[],E.pos=Math.min(E.pos,t.parent.modifiers.pos)),p=x$t(t)){const v=_7(p);d&v||(d|=v,E.pos=Math.min(E.pos,t.pos))}return{modifiers:d,decorators:f,range:E.pos!==s?E:void 0}}function x$t(t){if(Xo(t))return t.kind;if(at(t)){const u=xv(t);if(u&&XD(u))return u}}function v$t(t,u,s,d,f,p,E,v){const b=E.includeCompletionsWithSnippetText||void 0;let B=u;const k=s.getSourceFile(),T=C$t(t,s,k,d,f,E);if(!T)return;const M=Epe({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!1,newLine:tK(E5(f,v==null?void 0:v.options))});v?B=M.printAndFormatSnippetList(80,q.createNodeArray([T],!0),k,v):B=M.printSnippetList(80,q.createNodeArray([T],!0),k);const z=Jv({removeComments:!0,module:p.module,target:p.target,omitTrailingSemicolon:!0}),j=q.createMethodSignature(void 0,"",T.questionToken,T.typeParameters,T.parameters,T.type),J={detail:z.printNode(4,j,k)};return{isSnippet:b,insertText:B,labelDetails:J}}function C$t(t,u,s,d,f,p){const E=t.getDeclarations();if(!(E&&E.length))return;const v=d.getTypeChecker(),b=E[0],B=dl(Ya(b),!1),k=v.getWidenedType(v.getTypeOfSymbolAtLocation(t,u)),M=33554432|(Km(s,p)===0?268435456:0);switch(b.kind){case 171:case 172:case 173:case 174:{let z=k.flags&1048576&&k.types.length<10?v.getUnionType(k.types,2):k;if(z.flags&1048576){const oe=ti(z.types,se=>v.getSignaturesOfType(se,0).length>0);if(oe.length===1)z=oe[0];else return}if(v.getSignaturesOfType(z,0).length!==1)return;const J=v.typeToTypeNode(z,u,M,I1.getNoopSymbolTrackerWithResolver({program:d,host:f}));if(!J||!r3(J))return;let K;if(p.includeCompletionsWithSnippetText){const oe=q.createEmptyStatement();K=q.createBlock([oe],!0),dce(oe,{kind:0,order:0})}else K=q.createBlock([],!0);const Y=J.parameters.map(oe=>q.createParameterDeclaration(void 0,oe.dotDotDotToken,oe.name,void 0,void 0,oe.initializer));return q.createMethodDeclaration(void 0,void 0,B,void 0,void 0,Y,void 0,K)}default:return}}function Epe(t){let u;const s=iu.createWriter(a5(t)),d=Jv(t,s),f={...s,write:M=>p(M,()=>s.write(M)),nonEscapingWrite:s.write,writeLiteral:M=>p(M,()=>s.writeLiteral(M)),writeStringLiteral:M=>p(M,()=>s.writeStringLiteral(M)),writeSymbol:(M,z)=>p(M,()=>s.writeSymbol(M,z)),writeParameter:M=>p(M,()=>s.writeParameter(M)),writeComment:M=>p(M,()=>s.writeComment(M)),writeProperty:M=>p(M,()=>s.writeProperty(M))};return{printSnippetList:E,printAndFormatSnippetList:b,printNode:B,printAndFormatNode:T};function p(M,z){const j=j2(M);if(j!==M){const J=s.getTextPos();z();const K=s.getTextPos();u=Di(u||(u=[]),{newText:j,span:{start:J,length:K-J}})}else z()}function E(M,z,j){const J=v(M,z,j);return u?iu.applyChanges(J,u):J}function v(M,z,j){return u=void 0,f.clear(),d.writeList(M,z,j,f),f.getText()}function b(M,z,j,J){const K={text:v(M,z,j),getLineAndCharacterOfPosition(ge){return s0(this,ge)}},Y=HX(J,j),oe=Vu(z,ge=>{const ae=iu.assignPositionsToNode(ge);return dd.formatNodeGivenIndentation(ae,K,j.languageVariant,0,0,{...J,options:Y})}),se=u?sc(mi(oe,u),(ge,ae)=>Y$(ge.span,ae.span)):oe;return iu.applyChanges(K.text,se)}function B(M,z,j){const J=k(M,z,j);return u?iu.applyChanges(J,u):J}function k(M,z,j){return u=void 0,f.clear(),d.writeNode(M,z,j,f),f.getText()}function T(M,z,j,J){const K={text:k(M,z,j),getLineAndCharacterOfPosition(ae){return s0(this,ae)}},Y=HX(J,j),oe=iu.assignPositionsToNode(z),se=dd.formatNodeGivenIndentation(oe,K,j.languageVariant,0,0,{...J,options:Y}),ge=u?sc(mi(se,u),(ae,Ce)=>Y$(ae.span,Ce.span)):se;return iu.applyChanges(K.text,ge)}}function h0t(t){const u=t.fileName?void 0:q4(t.moduleSymbol.name),s=t.isFromPackageJson?!0:void 0;return YM(t)?{exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,ambientModuleName:u,fileName:t.fileName,isPackageJsonImport:s}:{exportName:t.exportName,exportMapKey:t.exportMapKey,fileName:t.fileName,ambientModuleName:t.fileName?void 0:q4(t.moduleSymbol.name),isPackageJsonImport:t.isFromPackageJson?!0:void 0}}function b$t(t,u,s){const d=t.exportName==="default",f=!!t.isPackageJsonImport;return u0t(t)?{kind:32,exportName:t.exportName,exportMapKey:t.exportMapKey,moduleSpecifier:t.moduleSpecifier,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}:{kind:4,exportName:t.exportName,exportMapKey:t.exportMapKey,symbolName:u,fileName:t.fileName,moduleSymbol:s,isDefaultExport:d,isFromPackageJson:f}}function y$t(t,u,s,d,f,p,E){const v=u.replacementSpan,b=j2(VM(f,E,s.moduleSpecifier)),B=s.isDefaultExport?1:s.exportName==="export="?2:0,k=E.includeCompletionsWithSnippetText?"$1":"",T=I1.getImportKind(f,B,p,!0),M=u.couldBeTypeOnlyImportSpecifier,z=u.isTopLevelTypeOnly?` ${qo(156)} `:" ",j=M?`${qo(156)} `:"",J=d?";":"";switch(T){case 3:return{replacementSpan:v,insertText:`import${z}${j2(t)}${k} = require(${b})${J}`};case 1:return{replacementSpan:v,insertText:`import${z}${j2(t)}${k} from ${b}${J}`};case 2:return{replacementSpan:v,insertText:`import${z}* as ${j2(t)} from ${b}${J}`};case 0:return{replacementSpan:v,insertText:`import${z}{ ${j}${j2(t)}${k} } from ${b}${J}`}}}function f0t(t,u,s){return/^\d+$/.test(s)?s:VM(t,u,s)}function k$t(t,u,s){return t===u||!!(t.flags&1048576)&&s.getExportSymbolOfSymbol(t)===u}function xTe(t){if(Lee(t))return q4(t.moduleSymbol.name);if(YM(t))return t.moduleSpecifier;if((t==null?void 0:t.kind)===1)return"ThisProperty/";if((t==null?void 0:t.kind)===64)return"TypeOnlyAlias/"}function vTe(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J,K,Y,oe,se,ge,ae,Ce,ne,ve,Se=!1){const Ne=J0(),pe=J$t(d,f),fe=QH(E),xe=b.getTypeChecker(),Be=new Map;for(let Ae=0;AeIe.getSourceFile()===f.getSourceFile()));Be.set(mt,Yt),At(u,Gt,Nee,!0)}return k("getCompletionsAtPosition: getCompletionEntriesFromSymbols: "+(J0()-Ne)),{has:Ae=>Be.has(Ae),add:Ae=>Be.set(Ae,!0)};function We(Ae,De){var He;let Je=Ae.flags;if(!ca(f)){if(ic(f.parent))return!0;if(ar(pe,ra)&&Ae.valueDeclaration===pe)return!1;const mt=Ae.valueDeclaration??((He=Ae.declarations)==null?void 0:He[0]);if(pe&&mt&&(wl(pe)&&wl(mt)||io(pe)&&io(mt))){const je=mt.pos,Ke=io(pe)?pe.parent.parameters:P7(pe.parent)?void 0:pe.parent.typeParameters;if(je>=pe.pos&&Ke&&jeDTe(s,E,se)===f.name);return oe!==void 0?{type:"literal",literal:oe}:G(B,(se,ge)=>{const ae=z[ge],Ce=Dpe(se,js(v),ae,M,b.isJsxIdentifierExpected);return Ce&&Ce.name===f.name&&(f.source==="ClassMemberSnippet/"&&se.flags&106500||f.source==="ObjectLiteralMethodSnippet/"&&se.flags&8196||xTe(ae)===f.source||f.source==="ObjectLiteralMemberWithComma/")?{type:"symbol",symbol:se,location:T,origin:ae,contextToken:j,previousToken:J,isJsxInitializer:K,isTypeOnlyLocation:Y}:void 0})||{type:"none"}}function S$t(t,u,s,d,f,p,E,v,b){const B=t.getTypeChecker(),k=t.getCompilerOptions(),{name:T,source:M,data:z}=f,{previousToken:j,contextToken:J}=_pe(d,s);if(zk(s,d,j))return Fpe.getStringLiteralCompletionDetails(T,s,d,j,B,k,p,b,v);const K=m0t(t,u,s,d,f,p,v);switch(K.type){case"request":{const{request:Y}=K;switch(Y.kind){case 1:return Qv.getJSDocTagNameCompletionDetails(T);case 2:return Qv.getJSDocTagCompletionDetails(T);case 3:return Qv.getJSDocParameterNameCompletionDetails(T);case 4:return Ge(Y.keywordCompletions,oe=>oe.name===T)?CTe(T,"keyword",5):void 0;default:return H.assertNever(Y)}}case"symbol":{const{symbol:Y,location:oe,contextToken:se,origin:ge,previousToken:ae}=K,{codeActions:Ce,sourceDisplay:ne}=B$t(T,oe,se,ge,Y,t,p,k,s,d,ae,E,v,z,M,b),ve=ETe(ge)?ge.symbolName:Y.name;return bTe(Y,ve,B,s,oe,b,Ce,ne)}case"literal":{const{literal:Y}=K;return CTe(DTe(s,v,Y),"string",typeof Y=="string"?8:7)}case"cases":{const Y=c0t(J.parent,s,v,t.getCompilerOptions(),p,t,void 0);if(Y!=null&&Y.importAdder.hasFixes()){const{entry:oe,importAdder:se}=Y,ge=iu.ChangeTracker.with({host:p,formatContext:E,preferences:v},se.writeFixes);return{name:oe.name,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0,codeActions:[{changes:ge,description:jk([F.Includes_imports_of_types_referenced_by_0,T])}]}}return{name:T,kind:"",kindModifiers:"",displayParts:[],sourceDisplay:void 0}}case"none":return TTe().some(Y=>Y.name===T)?CTe(T,"keyword",5):void 0;default:H.assertNever(K)}}function CTe(t,u,s){return Pee(t,"",u,[yf(t,s)])}function bTe(t,u,s,d,f,p,E,v){const{displayParts:b,documentation:B,symbolKind:k,tags:T}=s.runWithCancellationToken(p,M=>x5.getSymbolDisplayPartsDocumentationAndSymbolKind(M,t,d,f,f,7));return Pee(u,x5.getSymbolModifiers(s,t),k,b,B,T,E,v)}function Pee(t,u,s,d,f,p,E,v){return{name:t,kindModifiers:u,kind:s,displayParts:d,documentation:f,tags:p,codeActions:E,source:v,sourceDisplay:v}}function B$t(t,u,s,d,f,p,E,v,b,B,k,T,M,z,j,J){if(z!=null&&z.moduleSpecifier&&k&&y0t(s||k,b).replacementSpan)return{codeActions:void 0,sourceDisplay:[Wm(z.moduleSpecifier)]};if(j==="ClassMemberSnippet/"){const{importAdder:Ce,eraseRange:ne}=d0t(E,p,v,M,t,f,u,B,s,T);if(Ce||ne)return{sourceDisplay:void 0,codeActions:[{changes:iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},Se=>{Ce&&Ce.writeFixes(Se),ne&&Se.deleteRange(b,ne)}),description:jk([F.Includes_imports_of_types_referenced_by_0,t])}]}}if(t0t(d)){const Ce=I1.getPromoteTypeOnlyCompletionAction(b,d.declaration.name,p,E,T,M);return H.assertIsDefined(Ce,"Expected to have a code action for promoting type-only alias"),{codeActions:[Ce],sourceDisplay:void 0}}if(j==="ObjectLiteralMemberWithComma/"&&s){const Ce=iu.ChangeTracker.with({host:E,formatContext:T,preferences:M},ne=>ne.insertText(b,s.end,","));if(Ce)return{sourceDisplay:void 0,codeActions:[{changes:Ce,description:jk([F.Add_missing_comma_for_object_member_completion_0,t])}]}}if(!d||!(Lee(d)||YM(d)))return{codeActions:void 0,sourceDisplay:void 0};const K=d.isFromPackageJson?E.getPackageJsonAutoImportProvider().getTypeChecker():p.getTypeChecker(),{moduleSymbol:Y}=d,oe=K.getMergedSymbol(eh(f.exportSymbol||f,K)),se=(s==null?void 0:s.kind)===30&&Ih(s.parent),{moduleSpecifier:ge,codeAction:ae}=I1.getImportCompletionAction(oe,Y,z==null?void 0:z.exportMapKey,b,t,se,E,p,T,k&&at(k)?k.getStart(b):B,M,J);return H.assert(!(z!=null&&z.moduleSpecifier)||ge===z.moduleSpecifier),{sourceDisplay:[Wm(ge)],codeActions:[ae]}}function w$t(t,u,s,d,f,p,E){const v=m0t(t,u,s,d,f,p,E);return v.type==="symbol"?v.symbol:void 0}function T$t(t,u,s){return G(u&&(u.isUnion()?u.types:[u]),d=>{const f=d&&d.symbol;return f&&f.flags&424&&!Qye(f)?yTe(f,t,s):void 0})}function L$t(t,u,s,d){const{parent:f}=t;switch(t.kind){case 80:return wX(t,d);case 64:switch(f.kind){case 260:return d.getContextualType(f.initializer);case 226:return d.getTypeAtLocation(f.left);case 291:return d.getContextualTypeForJsxAttribute(f);default:return}case 105:return d.getContextualType(f);case 84:const p=ar(f,BB);return p?vfe(p,d):void 0;case 19:return QP(f)&&!a3(f.parent)&&!W2(f.parent)?d.getContextualTypeForJsxAttribute(f.parent):void 0;default:const E=PK.getArgumentInfoForCompletions(t,u,s);return E?d.getContextualTypeForArgumentAtIndex(E.invocation,E.argumentIndex+(t.kind===28?1:0)):TX(t.kind)&&eu(f)&&TX(f.operatorToken.kind)?d.getTypeAtLocation(f.left):d.getContextualType(t,4)||d.getContextualType(t)}}function yTe(t,u,s){const d=s.getAccessibleSymbolChain(t,u,67108863,!1);return d?Pn(d):t.parent&&(N$t(t.parent)?t:yTe(t.parent,u,s))}function N$t(t){var u;return!!((u=t.declarations)!=null&&u.some(s=>s.kind===312))}function p0t(t,u,s,d,f,p,E,v,b,B){const k=t.getTypeChecker(),T=l0t(s,d);let M=J0(),z=ya(s,f);u("getCompletionData: Get current token: "+(J0()-M)),M=J0();const j=m5(s,f,z);u("getCompletionData: Is inside comment: "+(J0()-M));let J=!1,K=!1;if(j){if(lSe(s,f)){if(s.text.charCodeAt(f-1)===64)return{kind:1};{const it=np(f,s);if(!/[^*|\s(/)]/.test(s.text.substring(it,f)))return{kind:2}}}const X=I$t(z,f);if(X){if(X.tagName.pos<=f&&f<=X.tagName.end)return{kind:1};const it=Vi(X);if(it&&(z=ya(s,f),(!z||!X3(z)&&(z.parent.kind!==355||z.parent.name!==z))&&(J=Oe(it))),!J&&Eg(X)&&(Xl(X.name)||X.name.pos<=f&&f<=X.name.end))return{kind:3,tag:X}}if(!J){u("Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.");return}}M=J0();const Y=!J&&_h(s),oe=_pe(f,s),se=oe.previousToken;let ge=oe.contextToken;u("getCompletionData: Get previous token: "+(J0()-M));let ae=z,Ce,ne=!1,ve=!1,Se=!1,Ne=!1,pe=!1,fe=!1,xe,Be=af(s,f),We=0,Ae=!1,De=0;if(ge){const X=y0t(ge,s);if(X.keywordCompletion){if(X.isKeywordOnlyCompletion)return{kind:4,keywordCompletions:[l$t(X.keywordCompletion)],isNewIdentifierLocation:X.isNewIdentifierLocation};We=d$t(X.keywordCompletion)}if(X.replacementSpan&&p.includeCompletionsForImportStatements&&p.includeCompletionsWithInsertText&&(De|=2,xe=X,Ae=X.isNewIdentifierLocation),!X.replacementSpan&&Ta(ge))return u("Returning an empty list because completion was requested in an invalid position."),We?o0t(We,Y,bo()):void 0;let it=ge.parent;if(ge.kind===25||ge.kind===29)switch(ne=ge.kind===25,ve=ge.kind===29,it.kind){case 211:Ce=it,ae=Ce.expression;const Ct=bP(Ce);if(Xl(Ct)||(Mo(ae)||Co(ae))&&ae.end===ge.pos&&ae.getChildCount(s)&&yr(ae.getChildren(s)).kind!==22)return;break;case 166:ae=it.left;break;case 267:ae=it.name;break;case 205:ae=it;break;case 236:ae=it.getFirstToken(s),H.assert(ae.kind===102||ae.kind===105);break;default:return}else if(!xe){if(it&&it.kind===211&&(ge=it,it=it.parent),z.parent===Be)switch(z.kind){case 32:(z.parent.kind===284||z.parent.kind===286)&&(Be=z);break;case 44:z.parent.kind===285&&(Be=z);break}switch(it.kind){case 287:ge.kind===44&&(Ne=!0,Be=ge);break;case 226:if(!b0t(it))break;case 285:case 284:case 286:fe=!0,ge.kind===30&&(Se=!0,Be=ge);break;case 294:case 293:(se.kind===20||se.kind===80&&se.parent.kind===291)&&(fe=!0);break;case 291:if(it.initializer===se&&se.endIk(X?v.getPackageJsonAutoImportProvider():t,v));if(ne||ve)xn();else if(Se)je=k.getJsxIntrinsicTagNamesAt(Be),H.assertEachIsDefined(je,"getJsxIntrinsicTagNames() should all be defined"),Fi(),Je=1,We=0;else if(Ne){const X=ge.parent.parent.openingElement.tagName,it=k.getSymbolAtLocation(X);it&&(je=[it]),Je=1,We=0}else if(!Fi())return We?o0t(We,Y,Ae):void 0;u("getCompletionData: Semantic work: "+(J0()-He));const It=se&&L$t(se,f,s,k),ft=!ar(se,i0)&&!fe?qi(It&&(It.isUnion()?It.types:[It]),X=>X.isLiteral()&&!(X.flags&1024)?X.value:void 0):[],Ut=se&&It&&T$t(se,It,k);return{kind:0,symbols:je,completionKind:Je,isInSnippetScope:K,propertyAccessToConvert:Ce,isNewIdentifierLocation:Ae,location:Be,keywordFilters:We,literals:ft,symbolToOriginInfoMap:Gt,recommendedCompletion:Ut,previousToken:se,contextToken:ge,isJsxInitializer:pe,insideJsDocTagTypeExpression:J,symbolToSortTextMap:Yt,isTypeOnlyLocation:st,isJsxIdentifierExpected:fe,isRightOfOpenTag:Se,isRightOfDotOrQuestionDot:ne||ve,importStatementCompletion:xe,hasUnresolvedAutoImports:Ye,flags:De};function Ni(X){switch(X.kind){case 348:case 355:case 349:case 351:case 353:case 356:case 357:return!0;case 352:return!!X.constraint;default:return!1}}function Vi(X){if(Ni(X)){const it=_g(X)?X.constraint:X.typeExpression;return it&&it.kind===316?it:void 0}if(LB(X)||Mce(X))return X.class}function xn(){Je=2;const X=zx(ae),it=X&&!ae.isTypeOf||Z_(ae.parent)||jH(ge,s,k),Ct=nX(ae);if(sm(ae)||X||Ru(ae)){const ct=xc(ae.parent);ct&&(Ae=!0);let Qt=k.getSymbolAtLocation(ae);if(Qt&&(Qt=eh(Qt,k),Qt.flags&1920)){const Ti=k.getExportsOfModule(Qt);H.assertEachIsDefined(Ti,"getExportsOfModule() should all be defined");const Ui=Ou=>k.isValidPropertyAccess(X?ae:ae.parent,Ou.name),Sn=Ou=>FTe(Ou,k),du=ct?Ou=>{var Er;return!!(Ou.flags&1920)&&!((Er=Ou.declarations)!=null&&Er.every(er=>er.parent===ae.parent))}:Ct?Ou=>Sn(Ou)||Ui(Ou):it||J?Sn:Ui;for(const Ou of Ti)du(Ou)&&je.push(Ou);if(!it&&!J&&Qt.declarations&&Qt.declarations.some(Ou=>Ou.kind!==312&&Ou.kind!==267&&Ou.kind!==266)){let Ou=k.getTypeOfSymbolAtLocation(Qt,ae).getNonOptionalType(),Er=!1;if(Ou.isNullableType()){const er=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(er||ve)&&(Ou=Ou.getNonNullableType(),er&&(Er=!0))}Jn(Ou,!!(ae.flags&65536),Er)}return}}if(!it||ck(ae)){k.tryGetThisTypeAt(ae,!1);let ct=k.getTypeAtLocation(ae).getNonOptionalType();if(it)Jn(ct.getNonNullableType(),!1,!1);else{let Qt=!1;if(ct.isNullableType()){const Ti=ne&&!ve&&p.includeAutomaticOptionalChainCompletions!==!1;(Ti||ve)&&(ct=ct.getNonNullableType(),Ti&&(Qt=!0))}Jn(ct,!!(ae.flags&65536),Qt)}}}function Jn(X,it,Ct){Ae=!!X.getStringIndexType(),ve&&Ge(X.getCallSignatures())&&(Ae=!0);const ct=ae.kind===205?ae:ae.parent;if(T)for(const Qt of X.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,X,Qt)&&an(Qt,!1,Ct);else je.push(...ti(Cpe(X,k),Qt=>k.isValidPropertyAccessForCompletions(ct,X,Qt)));if(it&&p.includeCompletionsWithInsertText){const Qt=k.getPromisedTypeOfPromise(X);if(Qt)for(const Ti of Qt.getApparentProperties())k.isValidPropertyAccessForCompletions(ct,Qt,Ti)&&an(Ti,!0,Ct)}}function an(X,it,Ct){var ct;const Qt=G(X.declarations,du=>ar(Ya(du),Ms));if(Qt){const du=Pi(Qt.expression),Ou=du&&k.getSymbolAtLocation(du),Er=Ou&&yTe(Ou,ge,k),er=Er&&Yo(Er);if(er&&Rp(Ie,er)){const da=je.length;je.push(Er);const Wu=Er.parent;if(!Wu||!KH(Wu)||k.tryGetMemberInModuleExportsAndProperties(Er.name,Wu)!==Er)Gt[da]={kind:Sn(2)};else{const Va=Id(q4(Wu.name))?(ct=XU(Wu))==null?void 0:ct.fileName:void 0,{moduleSpecifier:wn}=(Ke||(Ke=I1.createImportSpecifierResolver(s,t,v,p))).getModuleSpecifierForBestExportInfo([{exportKind:0,moduleFileName:Va,isFromPackageJson:!1,moduleSymbol:Wu,symbol:Er,targetFlags:eh(Er,k).flags}],f,Lv(Be))||{};if(wn){const Rr={kind:Sn(6),moduleSymbol:Wu,isDefaultExport:!1,symbolName:Er.name,exportName:Er.name,fileName:Va,moduleSpecifier:wn};Gt[da]=Rr}}}else if(p.includeCompletionsWithInsertText){if(er&&Ie.has(er))return;Ui(X),Ti(X),je.push(X)}}else Ui(X),Ti(X),je.push(X);function Ti(du){K$t(du)&&(Yt[Yo(du)]=R1.LocalDeclarationPriority)}function Ui(du){p.includeCompletionsWithInsertText&&(it&&Rp(Ie,Yo(du))?Gt[je.length]={kind:Sn(8)}:Ct&&(Gt[je.length]={kind:16}))}function Sn(du){return Ct?du|16:du}}function Pi(X){return at(X)?X:Ru(X)?Pi(X.expression):void 0}function Fi(){return(_t()||Mt()||Fr()||qt()||Xt()||Yu()||Pe()||oa()||(wa(),1))===1}function Yu(){return Et(ge)?(Je=5,Ae=!0,We=4,1):0}function oa(){const X=me(ge),it=X&&k.getContextualType(X.attributes);if(!it)return 0;const Ct=X&&k.getContextualType(X.attributes,4);return je=mi(je,de(vpe(it,Ct,X.attributes,k),X.attributes.properties)),on(),Je=3,Ae=!1,1}function Fr(){return xe?(Ae=!0,Cn(),1):0}function wa(){We=ii(ge)?5:1,Je=1,Ae=bo(),se!==ge&&H.assert(!!se,"Expected 'contextToken' to be defined when different from 'previousToken'.");const X=se!==ge?se.getStart():f,it=aa(ge,X,s)||s;K=jn(it);const Ct=(st?0:111551)|788968|1920|2097152,ct=se&&!Lv(se);je=mi(je,k.getSymbolsInScope(it,Ct)),H.assertEachIsDefined(je,"getSymbolsInScope() should all be defined");for(let Qt=0;QtUi.getSourceFile()===s)&&(Yt[Yo(Ti)]=R1.GlobalsOrKeywords),ct&&!(Ti.flags&111551)){const Ui=Ti.declarations&&Le(Ti.declarations,jU);if(Ui){const Sn={kind:64,declaration:Ui};Gt[Qt]=Sn}}}if(p.includeCompletionsWithInsertText&&it.kind!==312){const Qt=k.tryGetThisTypeAt(it,!1,gr(it.parent)?it:void 0);if(Qt&&!H$t(Qt,s,k))for(const Ti of Cpe(Qt,k))Gt[je.length]={kind:1},je.push(Ti),Yt[Yo(Ti)]=R1.SuggestedClassMembers}Cn(),st&&(We=ge&&Yy(ge.parent)?6:7)}function bt(){return xe?!0:mt||!p.includeCompletionsForModuleExports?!1:s.externalModuleIndicator||s.commonJsModuleIndicator||afe(t.getCompilerOptions())?!0:pSe(t)}function jn(X){switch(X.kind){case 312:case 228:case 294:case 241:return!0;default:return ua(X)}}function Ln(){return J||!!xe&&D2(Be.parent)||!Ai(ge)&&(jH(ge,s,k)||Z_(Be)||Dn(ge))}function Ai(X){return X&&(X.kind===114&&(X.parent.kind===186||AB(X.parent))||X.kind===131&&X.parent.kind===182)}function Dn(X){if(X){const it=X.parent.kind;switch(X.kind){case 59:return it===172||it===171||it===169||it===260||a7(it);case 64:return it===265;case 130:return it===234;case 30:return it===183||it===216;case 96:return it===168;case 152:return it===238}}return!1}function Cn(){var X,it;if(!bt()||(H.assert(!(E!=null&&E.data),"Should not run 'collectAutoImports' when faster path is available via `data`"),E&&!E.source))return;De|=1;const ct=se===ge&&xe?"":se&&at(se)?se.text.toLowerCase():"",Qt=(X=v.getModuleSpecifierCache)==null?void 0:X.call(v),Ti=iK(s,v,t,p,B),Ui=(it=v.getPackageJsonAutoImportProvider)==null?void 0:it.call(v),Sn=E?void 0:KM(s,p,v);n0t("collectAutoImports",v,Ke||(Ke=I1.createImportSpecifierResolver(s,t,v,p)),t,f,p,!!xe,Lv(Be),Ou=>{Ti.search(s.path,Se,(Er,er)=>{if(!Nm(Er,js(v.getCompilationSettings()))||!E&&m7(Er)||!st&&!xe&&!(er&111551)||st&&!(er&790504))return!1;const da=Er.charCodeAt(0);return Se&&(da<65||da>90)?!1:E?!0:B0t(Er,ct)},(Er,er,da,Wu)=>{if(E&&!Ge(Er,Fn=>E.source===q4(Fn.moduleSymbol.name))||(Er=ti(Er,du),!Er.length))return;const Va=Ou.tryResolve(Er,da)||{};if(Va==="failed")return;let wn=Er[0],Rr;Va!=="skipped"&&({exportInfo:wn=Er[0],moduleSpecifier:Rr}=Va);const os=wn.exportKind===1,wo=os&&lB(wn.symbol)||wn.symbol;tu(wo,{kind:Rr?32:4,moduleSpecifier:Rr,symbolName:er,exportMapKey:Wu,exportName:wn.exportKind===2?"export=":wn.symbol.name,fileName:wn.moduleFileName,isDefaultExport:os,moduleSymbol:wn.moduleSymbol,isFromPackageJson:wn.isFromPackageJson})}),Ye=Ou.skippedAny(),De|=Ou.resolvedAny()?8:0,De|=Ou.resolvedBeyondLimit()?16:0});function du(Ou){const Er=ar(Ou.moduleSymbol.valueDeclaration,ca);if(!Er){const er=q4(Ou.moduleSymbol.name);return s3.nodeCoreModules.has(er)&&Ma(er,"node:")!==VX(s,t)?!1:Sn?Sn.allowsImportingAmbientModule(Ou.moduleSymbol,Bt(Ou.isFromPackageJson)):!0}return Ife(Ou.isFromPackageJson?Ui:t,s,Er,p,Sn,Bt(Ou.isFromPackageJson),Qt)}}function tu(X,it){const Ct=Yo(X);Yt[Ct]!==R1.GlobalsOrKeywords&&(Gt[je.length]=it,Yt[Ct]=xe?R1.LocationPriority:R1.AutoImportSuggestions,je.push(X))}function sa(X,it){Xn(Be)||X.forEach(Ct=>{if(!xa(Ct))return;const ct=Dpe(Ct,js(d),void 0,0,!1);if(!ct)return;const{name:Qt}=ct,Ti=v$t(Ct,Qt,it,t,v,d,p,b);if(!Ti)return;const Ui={kind:128,...Ti};De|=32,Gt[je.length]=Ui,je.push(Ct)})}function xa(X){return!!(X.flags&8196)}function aa(X,it,Ct){let ct=X;for(;ct&&!Jhe(ct,it,Ct);)ct=ct.parent;return ct}function Ta(X){const it=J0(),Ct=Qe(X)||ni(X)||Ot(X)||Qo(X)||uY(X);return u("getCompletionsAtPosition: isCompletionListBlocker: "+(J0()-it)),Ct}function Qo(X){if(X.kind===12)return!0;if(X.kind===32&&X.parent){if(Be===X.parent&&(Be.kind===286||Be.kind===285))return!1;if(X.parent.kind===286)return Be.parent.kind!==286;if(X.parent.kind===287||X.parent.kind===285)return!!X.parent.parent&&X.parent.parent.kind===284}return!1}function bo(){if(ge){const X=ge.parent.kind,it=xpe(ge);switch(it){case 28:return X===213||X===176||X===214||X===209||X===226||X===184||X===210;case 21:return X===213||X===176||X===214||X===217||X===196;case 23:return X===209||X===181||X===167;case 144:case 145:case 102:return!0;case 25:return X===267;case 19:return X===263||X===210;case 64:return X===260||X===226;case 16:return X===228;case 17:return X===239;case 134:return X===174||X===304;case 42:return X===174}if(Mee(it))return!0}return!1}function Qe(X){return(gce(X)||Zse(X))&&(IH(X,f)||f===X.end&&(!!X.isUnterminated||gce(X)))}function _t(){const X=j$t(ge);if(!X)return 0;const Ct=(kB(X.parent)?X.parent:void 0)||X,ct=C0t(Ct,k);if(!ct)return 0;const Qt=k.getTypeFromTypeNode(Ct),Ti=Cpe(ct,k),Ui=Cpe(Qt,k),Sn=new Set;return Ui.forEach(du=>Sn.add(du.escapedName)),je=mi(je,ti(Ti,du=>!Sn.has(du.escapedName))),Je=0,Ae=!0,1}function Mt(){const X=je.length,it=P$t(ge,f,s);if(!it)return 0;Je=0;let Ct,ct;if(it.kind===210){const Qt=W$t(it,k);if(Qt===void 0)return it.flags&67108864?2:(mt=!0,0);const Ti=k.getContextualType(it,4),Ui=(Ti||Qt).getStringIndexType(),Sn=(Ti||Qt).getNumberIndexType();if(Ae=!!Ui||!!Sn,Ct=vpe(Qt,Ti,it,k),ct=it.properties,Ct.length===0&&!Sn)return mt=!0,0}else{H.assert(it.kind===206),Ae=!1;const Qt=e_(it.parent);if(!G8(Qt))return H.fail("Root declaration is not variable-like.");let Ti=Nx(Qt)||!!m1(Qt)||Qt.parent.parent.kind===250;if(!Ti&&Qt.kind===169&&(Wt(Qt.parent)?Ti=!!k.getContextualType(Qt.parent):(Qt.parent.kind===174||Qt.parent.kind===178)&&(Ti=Wt(Qt.parent.parent)&&!!k.getContextualType(Qt.parent.parent))),Ti){const Ui=k.getTypeAtLocation(it);if(!Ui)return 2;Ct=k.getPropertiesOfType(Ui).filter(Sn=>k.isPropertyAccessible(it,!1,!1,Ui,Sn)),ct=it.elements}}if(Ct&&Ct.length>0){const Qt=$i(Ct,H.checkDefined(ct));je=mi(je,Qt),on(),it.kind===210&&p.includeCompletionsWithObjectLiteralMethodSnippets&&p.includeCompletionsWithInsertText&&(te(X),sa(Qt,it))}return 1}function qt(){if(!ge)return 0;const X=ge.kind===19||ge.kind===28?ar(ge.parent,Zq):DX(ge)?ar(ge.parent.parent,Zq):void 0;if(!X)return 0;DX(ge)||(We=8);const{moduleSpecifier:it}=X.kind===275?X.parent.parent:X.parent;if(!it)return Ae=!0,X.kind===275?2:0;const Ct=k.getSymbolAtLocation(it);if(!Ct)return Ae=!0,2;Je=3,Ae=!1;const ct=k.getExportsAndPropertiesOfModule(Ct),Qt=new Set(X.elements.filter(Ui=>!Oe(Ui)).map(Ui=>(Ui.propertyName||Ui.name).escapedText)),Ti=ct.filter(Ui=>Ui.escapedName!=="default"&&!Qt.has(Ui.escapedName));return je=mi(je,Ti),Ti.length||(We=0),1}function Xt(){var X;const it=ge&&(ge.kind===19||ge.kind===28)?ar(ge.parent,ip):void 0;if(!it)return 0;const Ct=Tn(it,dg(ca,xc));return Je=5,Ae=!1,(X=Ct.locals)==null||X.forEach((ct,Qt)=>{var Ti,Ui;je.push(ct),(Ui=(Ti=Ct.symbol)==null?void 0:Ti.exports)!=null&&Ui.has(Qt)&&(Yt[Yo(ct)]=R1.OptionalMember)}),1}function Pe(){const X=O$t(s,ge,Be,f);if(!X)return 0;if(Je=3,Ae=!0,We=ge.kind===42?0:gr(X)?2:3,!gr(X))return 1;const it=ge.kind===27?ge.parent.parent:ge.parent;let Ct=Yd(it)?Dh(it):0;if(ge.kind===80&&!Oe(ge))switch(ge.getText()){case"private":Ct=Ct|2;break;case"static":Ct=Ct|256;break;case"override":Ct=Ct|16;break}if(zl(it)&&(Ct|=256),!(Ct&2)){const ct=gr(X)&&Ct&16?Hy(Xg(X)):rP(X),Qt=Vu(ct,Ti=>{const Ui=k.getTypeAtLocation(Ti);return Ct&256?(Ui==null?void 0:Ui.symbol)&&k.getPropertiesOfType(k.getTypeOfSymbolAtLocation(Ui.symbol,X)):Ui&&k.getPropertiesOfType(Ui)});je=mi(je,we(Qt,X.members,Ct)),L(je,(Ti,Ui)=>{const Sn=Ti==null?void 0:Ti.valueDeclaration;if(Sn&&Yd(Sn)&&Sn.name&&Ms(Sn.name)){const du={kind:512,symbolName:k.symbolToString(Ti)};Gt[Ui]=du}})}return 1}function et(X){return!!X.parent&&io(X.parent)&&fc(X.parent.parent)&&(HN(X.kind)||X3(X))}function Et(X){if(X){const it=X.parent;switch(X.kind){case 21:case 28:return fc(X.parent)?X.parent:void 0;default:if(et(X))return it.parent}}}function ii(X){if(X){let it;const Ct=Tn(X.parent,ct=>gr(ct)?"quit":U0(ct)&&it===ct.body?!0:(it=ct,!1));return Ct&&Ct}}function me(X){if(X){const it=X.parent;switch(X.kind){case 32:case 31:case 44:case 80:case 211:case 292:case 291:case 293:if(it&&(it.kind===285||it.kind===286)){if(X.kind===32){const Ct=id(X.pos,s,void 0);if(!it.typeArguments||Ct&&Ct.kind===44)break}return it}else if(it.kind===291)return it.parent.parent;break;case 11:if(it&&(it.kind===291||it.kind===293))return it.parent.parent;break;case 20:if(it&&it.kind===294&&it.parent&&it.parent.kind===291)return it.parent.parent.parent;if(it&&it.kind===293)return it.parent.parent;break}}}function ni(X){const it=X.parent,Ct=it.kind;switch(X.kind){case 28:return Ct===260||Ei(X)||Ct===243||Ct===266||pt(Ct)||Ct===264||Ct===207||Ct===265||gr(it)&&!!it.typeParameters&&it.typeParameters.end>=X.pos;case 25:return Ct===207;case 59:return Ct===208;case 23:return Ct===207;case 21:return Ct===299||pt(Ct);case 19:return Ct===266;case 30:return Ct===263||Ct===231||Ct===264||Ct===265||a7(Ct);case 126:return Ct===172&&!gr(it.parent);case 26:return Ct===169||!!it.parent&&it.parent.kind===207;case 125:case 123:case 124:return Ct===169&&!fc(it.parent);case 130:return Ct===276||Ct===281||Ct===274;case 139:case 153:return!bpe(X);case 80:if(Ct===276&&X===it.name&&X.text==="type")return!1;break;case 86:case 94:case 120:case 100:case 115:case 102:case 121:case 87:case 140:return!0;case 156:return Ct!==276;case 42:return Co(X.parent)&&!hc(X.parent)}if(Mee(xpe(X))&&bpe(X)||et(X)&&(!at(X)||HN(xpe(X))||Oe(X)))return!1;switch(xpe(X)){case 128:case 86:case 87:case 138:case 94:case 100:case 120:case 121:case 123:case 124:case 125:case 126:case 115:return!0;case 134:return ko(X.parent)}if(Tn(X.parent,gr)&&X===se&&xi(X,f))return!1;const Qt=Av(X.parent,172);if(Qt&&X!==se&&gr(se.parent.parent)&&f<=se.end){if(xi(X,se.end))return!1;if(X.kind!==64&&(mH(Qt)||UU(Qt)))return!0}return X3(X)&&!pm(X.parent)&&!sE(X.parent)&&!((gr(X.parent)||Ch(X.parent)||wl(X.parent))&&(X!==se||f>se.end))}function xi(X,it){return X.kind!==64&&(X.kind===27||!Y4(X.end,it,s))}function pt(X){return a7(X)&&X!==176}function Ot(X){if(X.kind===9){const it=X.getFullText();return it.charAt(it.length-1)==="."}return!1}function Ei(X){return X.parent.kind===261&&!jH(X,s,k)}function $i(X,it){if(it.length===0)return X;const Ct=new Set,ct=new Set;for(const Ti of it){if(Ti.kind!==303&&Ti.kind!==304&&Ti.kind!==208&&Ti.kind!==174&&Ti.kind!==177&&Ti.kind!==178&&Ti.kind!==305||Oe(Ti))continue;let Ui;if(d5(Ti))Qi(Ti,Ct);else if(Vs(Ti)&&Ti.propertyName)Ti.propertyName.kind===80&&(Ui=Ti.propertyName.escapedText);else{const Sn=Ya(Ti);Ui=Sn&&eE(Sn)?sP(Sn):void 0}Ui!==void 0&&ct.add(Ui)}const Qt=X.filter(Ti=>!ct.has(Ti.escapedName));return le(Ct,Qt),Qt}function Qi(X,it){const Ct=X.expression,ct=k.getSymbolAtLocation(Ct),Qt=ct&&k.getTypeOfSymbolAtLocation(ct,Ct),Ti=Qt&&Qt.properties;Ti&&Ti.forEach(Ui=>{it.add(Ui.name)})}function on(){je.forEach(X=>{if(X.flags&16777216){const it=Yo(X);Yt[it]=Yt[it]??R1.OptionalMember}})}function le(X,it){if(X.size!==0)for(const Ct of it)X.has(Ct.name)&&(Yt[Yo(Ct)]=R1.MemberDeclaredBySpreadAssignment)}function te(X){for(let it=X;it!ct.has(Qt.escapedName)&&!!Qt.declarations&&!(h4(Qt)&2)&&!(Qt.valueDeclaration&&Eh(Qt.valueDeclaration)))}function de(X,it){const Ct=new Set,ct=new Set;for(const Ti of it)Oe(Ti)||(Ti.kind===291?Ct.add(zP(Ti.name)):H7(Ti)&&Qi(Ti,ct));const Qt=X.filter(Ti=>!Ct.has(Ti.escapedName));return le(ct,Qt),Qt}function Oe(X){return X.getStart(s)<=f&&f<=X.getEnd()}}function P$t(t,u,s){var d;if(t){const{parent:f}=t;switch(t.kind){case 19:case 28:if(ys(f)||Op(f))return f;break;case 42:return hc(f)?ar(f.parent,ys):void 0;case 134:return ar(f.parent,ys);case 80:if(t.text==="async"&&pm(t.parent))return t.parent.parent;{if(ys(t.parent.parent)&&(d5(t.parent)||pm(t.parent)&&s0(s,t.getEnd()).line!==s0(s,u).line))return t.parent.parent;const E=Tn(f,Uc);if((E==null?void 0:E.getLastToken(s))===t&&ys(E.parent))return E.parent}break;default:if((d=f.parent)!=null&&d.parent&&(hc(f.parent)||Im(f.parent)||jf(f.parent))&&ys(f.parent.parent))return f.parent.parent;if(d5(f)&&ys(f.parent))return f.parent;const p=Tn(f,Uc);if(t.kind!==59&&(p==null?void 0:p.getLastToken(s))===t&&ys(p.parent))return p.parent}}}function _pe(t,u){const s=id(t,u);return s&&t<=s.end&&($_(s)||uf(s.kind))?{contextToken:id(s.getFullStart(),u,void 0),previousToken:s}:{contextToken:s,previousToken:s}}function g0t(t,u,s,d){const f=u.isPackageJsonImport?d.getPackageJsonAutoImportProvider():s,p=f.getTypeChecker(),E=u.ambientModuleName?p.tryFindAmbientModule(u.ambientModuleName):u.fileName?p.getMergedSymbol(H.checkDefined(f.getSourceFile(u.fileName)).symbol):void 0;if(!E)return;let v=u.exportName==="export="?p.resolveExternalModuleSymbol(E):p.tryGetMemberInModuleExportsAndProperties(u.exportName,E);return v?(v=u.exportName==="default"&&lB(v)||v,{symbol:v,origin:b$t(u,t,E)}):void 0}function Dpe(t,u,s,d,f){if(r$t(s))return;const p=t$t(s)?s.symbolName:t.name;if(p===void 0||t.flags&1536&&Dj(p.charCodeAt(0))||Rj(t))return;const E={name:p,needsConvertPropertyAccess:!1};if(Nm(p,u,f?1:0)||t.valueDeclaration&&Eh(t.valueDeclaration))return E;switch(d){case 3:return ETe(s)?{name:s.symbolName,needsConvertPropertyAccess:!1}:void 0;case 0:return{name:JSON.stringify(p),needsConvertPropertyAccess:!1};case 2:case 1:return p.charCodeAt(0)===32?void 0:{name:p,needsConvertPropertyAccess:!0};case 5:case 4:return E;default:H.assertNever(d)}}function E0t(t,u){if(!u)return _0t(t);const s=t+8+1;return zee[s]||(zee[s]=_0t(t).filter(d=>!M$t(m2(d.name))))}function _0t(t){return zee[t]||(zee[t]=TTe().filter(u=>{const s=m2(u.name);switch(t){case 0:return!1;case 1:return x0t(s)||s===138||s===144||s===156||s===145||s===128||MM(s)&&s!==157;case 5:return x0t(s);case 2:return Mee(s);case 3:return D0t(s);case 4:return HN(s);case 6:return MM(s)||s===87;case 7:return MM(s);case 8:return s===156;default:return H.assertNever(t)}}))}function M$t(t){switch(t){case 128:case 133:case 163:case 136:case 138:case 94:case 162:case 119:case 140:case 120:case 142:case 143:case 144:case 145:case 146:case 150:case 151:case 164:case 123:case 124:case 125:case 148:case 154:case 155:case 156:case 158:case 159:return!0;default:return!1}}function D0t(t){return t===148}function Mee(t){switch(t){case 128:case 129:case 137:case 139:case 153:case 134:case 138:case 164:return!0;default:return Yse(t)}}function x0t(t){return t===134||t===135||t===130||t===152||t===156||!Tq(t)&&!Mee(t)}function xpe(t){return at(t)?xv(t)??0:t.kind}function z$t(t,u){const s=[];if(t){const d=t.getSourceFile(),f=t.parent,p=d.getLineAndCharacterOfPosition(t.end).line,E=d.getLineAndCharacterOfPosition(u).line;(Sd(f)||$c(f)&&f.moduleSpecifier)&&t===f.moduleSpecifier&&p===E&&s.push({name:qo(132),kind:"keyword",kindModifiers:"",sortText:R1.GlobalsOrKeywords})}return s}function I$t(t,u){return Tn(t,s=>I8(s)&&zH(s,u)?!0:Hp(s)?"quit":!1)}function vpe(t,u,s,d){const f=u&&u!==t,p=f&&!(u.flags&3)?d.getUnionType([t,u]):t,E=R$t(p,s,d);return p.isClass()&&v0t(E)?[]:f?ti(E,v):E;function v(b){return S(b.declarations)?Ge(b.declarations,B=>B.parent!==s):!0}}function R$t(t,u,s){return t.isUnion()?s.getAllPossiblePropertiesOfTypes(ti(t.types,d=>!(d.flags&402784252||s.isArrayLikeType(d)||s.isTypeInvalidDueToUnionDiscriminant(d,u)||s.typeHasCallOrConstructSignatures(d)||d.isClass()&&v0t(d.getApparentProperties())))):t.getApparentProperties()}function v0t(t){return Ge(t,u=>!!(h4(u)&6))}function Cpe(t,u){return t.isUnion()?H.checkEachDefined(u.getAllPossiblePropertiesOfTypes(t.types),"getAllPossiblePropertiesOfTypes() should all be defined"):H.checkEachDefined(t.getApparentProperties(),"getApparentProperties() should all be defined")}function O$t(t,u,s,d){switch(s.kind){case 358:return ar(s.parent,x7);case 1:const f=ar(Zu(Po(s.parent,ca).statements),x7);if(f&&!a0(f,20,t))return f;break;case 81:if(ar(s.parent,ko))return Tn(s,gr);break;case 80:{if(xv(s)||ko(s.parent)&&s.parent.initializer===s)return;if(bpe(s))return Tn(s,x7)}}if(u){if(s.kind===137||at(u)&&ko(u.parent)&&gr(s))return Tn(u,gr);switch(u.kind){case 64:return;case 27:case 20:return bpe(s)&&s.parent.name===s?s.parent.parent:ar(s,x7);case 19:case 28:return ar(u.parent,x7);default:if(x7(s)){if(s0(t,u.getEnd()).line!==s0(t,d).line)return s;const f=gr(u.parent.parent)?Mee:D0t;return f(u.kind)||u.kind===42||at(u)&&f(xv(u)??0)?u.parent.parent:void 0}return}}}function j$t(t){if(!t)return;const u=t.parent;switch(t.kind){case 19:if(fm(u))return u;break;case 27:case 28:case 80:if(u.kind===171&&fm(u.parent))return u.parent;break}}function C0t(t,u){if(!t)return;if(Xr(t)&&qU(t.parent))return u.getTypeArgumentConstraint(t);const s=C0t(t.parent,u);if(s)switch(t.kind){case 171:return u.getTypeOfPropertyOfContextualType(s,t.symbol.escapedName);case 193:case 187:case 192:return s}}function bpe(t){return t.parent&&VU(t.parent)&&x7(t.parent.parent)}function V$t(t,u,s,d){switch(u){case".":case"@":return!0;case'"':case"'":case"`":return!!s&&NSe(s)&&d===s.getStart(t)+1;case"#":return!!s&&ea(s)&&!!Qd(s);case"<":return!!s&&s.kind===30&&(!eu(s.parent)||b0t(s.parent));case"/":return!!s&&(i0(s)?!!Sj(s):s.kind===44&&K2(s.parent));case" ":return!!s&&WP(s)&&s.parent.kind===312;default:return H.assertNever(u)}}function b0t({left:t}){return Xl(t)}function H$t(t,u,s){const d=s.resolveName("self",void 0,111551,!1);if(d&&s.getTypeOfSymbolAtLocation(d,u)===t)return!0;const f=s.resolveName("global",void 0,111551,!1);if(f&&s.getTypeOfSymbolAtLocation(f,u)===t)return!0;const p=s.resolveName("globalThis",void 0,111551,!1);return!!(p&&s.getTypeOfSymbolAtLocation(p,u)===t)}function K$t(t){return!!(t.valueDeclaration&&Dh(t.valueDeclaration)&256&&gr(t.valueDeclaration.parent))}function W$t(t,u){const s=u.getContextualType(t);if(s)return s;const d=i5(t.parent);if(eu(d)&&d.operatorToken.kind===64&&t===d.left)return u.getTypeAtLocation(d);if(Wt(d))return u.getContextualType(d)}function y0t(t,u){var s,d,f;let p,E=!1;const v=b();return{isKeywordOnlyCompletion:E,keywordCompletion:p,isNewIdentifierLocation:!!(v||p===156),isTopLevelTypeOnly:!!((d=(s=ar(v,Sd))==null?void 0:s.importClause)!=null&&d.isTypeOnly)||!!((f=ar(v,_1))!=null&&f.isTypeOnly),couldBeTypeOnlyImportSpecifier:!!v&&F0t(v,t),replacementSpan:G$t(v)};function b(){const B=t.parent;if(_1(B)){const k=B.getLastToken(u);if(at(t)&&k!==t){p=161,E=!0;return}return p=t.kind===156?void 0:156,kTe(B.moduleReference)?B:void 0}if(F0t(B,t)&&A0t(B.parent))return B;if(uD(B)||Jx(B)){if(!B.parent.isTypeOnly&&(t.kind===19||t.kind===102||t.kind===28)&&(p=156),A0t(B))if(t.kind===20||t.kind===80)E=!0,p=161;else return B.parent.parent;return}if(WP(t)&&ca(B))return p=156,t;if(WP(t)&&Sd(B))return p=156,kTe(B.moduleSpecifier)?B:void 0}}function G$t(t){var u;if(!t)return;const s=Tn(t,dg(Sd,_1))??t,d=s.getSourceFile();if(hk(s,d))return of(s,d);H.assert(s.kind!==102&&s.kind!==276);const f=s.kind===272?k0t((u=s.importClause)==null?void 0:u.namedBindings)??s.moduleSpecifier:s.moduleReference,p={pos:s.getFirstToken().getStart(),end:f.pos};if(hk(p,d))return qx(p)}function k0t(t){var u;return Le((u=ar(t,uD))==null?void 0:u.elements,s=>{var d;return!s.propertyName&&m7(s.name.text)&&((d=id(s.name.pos,t.getSourceFile(),t))==null?void 0:d.kind)!==28})}function F0t(t,u){return bf(t)&&(t.isTypeOnly||u===t.name&&DX(u))}function A0t(t){if(!kTe(t.parent.parent.moduleSpecifier)||t.parent.name)return!1;if(uD(t)){const u=k0t(t);return(u?t.elements.indexOf(u):t.elements.length)<2}return!0}function kTe(t){var u;return Xl(t)?!0:!((u=ar(a_(t)?t.expression:t,i0))!=null&&u.text)}function J$t(t,u){if(!t)return;const s=Tn(t,f=>F2(f)||S0t(f)||So(f)?"quit":(io(f)||wl(f))&&!Ek(f.parent)),d=Tn(u,f=>F2(f)||S0t(f)||So(f)?"quit":ra(f));return s||d}function S0t(t){return t.parent&&Z0(t.parent)&&(t.parent.body===t||t.kind===39)}function FTe(t,u,s=new Map){return d(t)||d(eh(t.exportSymbol||t,u));function d(f){return!!(f.flags&788968)||u.isUnknownSymbol(f)||!!(f.flags&1536)&&Rp(s,Yo(f))&&u.getExportsOfModule(f).some(p=>FTe(p,u,s))}}function $$t(t,u){const s=eh(t,u).declarations;return!!S(s)&&ye(s,jX)}function B0t(t,u){if(u.length===0)return!0;let s=!1,d,f=0;const p=t.length;for(let E=0;E(t.ThisProperty="ThisProperty/",t.ClassMemberSnippet="ClassMemberSnippet/",t.TypeOnlyAlias="TypeOnlyAlias/",t.ObjectLiteralMethodSnippet="ObjectLiteralMethodSnippet/",t.SwitchCases="SwitchCases/",t.ObjectLiteralMemberWithComma="ObjectLiteralMemberWithComma/",t))(STe||{}),BTe=(t=>(t[t.ThisType=1]="ThisType",t[t.SymbolMember=2]="SymbolMember",t[t.Export=4]="Export",t[t.Promise=8]="Promise",t[t.Nullable=16]="Nullable",t[t.ResolvedExport=32]="ResolvedExport",t[t.TypeOnlyAlias=64]="TypeOnlyAlias",t[t.ObjectLiteralMethod=128]="ObjectLiteralMethod",t[t.Ignore=256]="Ignore",t[t.ComputedPropertyName=512]="ComputedPropertyName",t[t.SymbolMemberNoExport=2]="SymbolMemberNoExport",t[t.SymbolMemberExport=6]="SymbolMemberExport",t))(BTe||{}),wTe=(t=>(t[t.ObjectPropertyDeclaration=0]="ObjectPropertyDeclaration",t[t.Global=1]="Global",t[t.PropertyAccess=2]="PropertyAccess",t[t.MemberLike=3]="MemberLike",t[t.String=4]="String",t[t.None=5]="None",t))(wTe||{}),zee=[],TTe=zh(()=>{const t=[];for(let u=83;u<=165;u++)t.push({name:qo(u),kind:"keyword",kindModifiers:"",sortText:R1.GlobalsOrKeywords});return t})}});function LTe(){const t=new Map;function u(s){const d=t.get(s.name);(!d||ITe[d.kind]({name:Sv(z.value,T),kindModifiers:"",kind:"string",sortText:R1.LocationPriority,replacementSpan:tfe(u)}));return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:t.isNewIdentifier,optionalReplacementSpan:k,entries:M}}default:return H.assertNever(t)}}function X$t(t,u,s,d,f,p,E,v,b){if(!d||!i0(d))return;const B=L0t(u,d,s,f,p,E,b);return B&&eUt(t,d,B,u,f,v)}function eUt(t,u,s,d,f,p){switch(s.kind){case 0:{const E=Le(s.paths,v=>v.name===t);return E&&Pee(t,T0t(E.extension),E.kind,[Wm(t)])}case 1:{const E=Le(s.symbols,v=>v.name===t);return E&&bTe(E,E.name,f,d,u,p)}case 2:return Le(s.types,E=>E.value===t)?Pee(t,"","string",[Wm(t)]):void 0;default:return H.assertNever(s)}}function w0t(t){return{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!0,entries:t.map(({name:f,kind:p,span:E,extension:v})=>({name:f,kind:p,kindModifiers:T0t(v),sortText:R1.LocationPriority,replacementSpan:E}))}}function T0t(t){switch(t){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 H.fail("Extension .tsbuildinfo is unsupported.");case void 0:return"";default:return H.assertNever(t)}}function L0t(t,u,s,d,f,p,E){const v=NTe(u.parent);switch(v.kind){case 201:{const z=NTe(v.parent);return z.kind===205?{kind:0,paths:M0t(t,u,f,p,d,E)}:b(z)}case 303:return ys(v.parent)&&v.name===u?nUt(d,v.parent):B()||B(0);case 212:{const{expression:z,argumentExpression:j}=v;return u===l0(j)?N0t(d.getTypeAtLocation(z)):void 0}case 213:case 214:case 291:if(!EUt(u)&&!dm(v)){const z=PK.getArgumentInfoForCompletions(v.kind===291?v.parent:u,s,t);return z&&iUt(z.invocation,u,z,d)||B(0)}case 272:case 278:case 283:return{kind:0,paths:M0t(t,u,f,p,d,E)};case 296:const k=KX(d,v.parent.clauses),T=B();return T?{kind:2,types:T.types.filter(z=>!k.hasValue(z.value)),isNewIdentifier:!1}:void 0;default:return B()||B(0)}function b(k){switch(k.kind){case 233:case 183:{const z=Tn(v,j=>j.parent===k);return z?{kind:2,types:kpe(d.getTypeArgumentConstraint(z)),isNewIdentifier:!1}:void 0}case 199:const{indexType:T,objectType:M}=k;return zH(T,s)?N0t(d.getTypeFromTypeNode(M)):void 0;case 192:{const z=b(NTe(k.parent));if(!z)return;const j=tUt(k,v);return z.kind===1?{kind:1,symbols:z.symbols.filter(J=>!kt(j,J.name)),hasIndexSignature:z.hasIndexSignature}:{kind:2,types:z.types.filter(J=>!kt(j,J.value)),isNewIdentifier:!1}}default:return}}function B(k=4){const T=kpe(wX(u,d,k));if(T.length)return{kind:2,types:T,isNewIdentifier:!1}}}function NTe(t){switch(t.kind){case 196:return Nj(t);case 217:return i5(t);default:return t}}function tUt(t,u){return qi(t.types,s=>s!==u&&zv(s)&&rs(s.literal)?s.literal.text:void 0)}function iUt(t,u,s,d){let f=!1;const p=new Map,E=Ih(t)?H.checkDefined(Tn(u.parent,sE)):u,v=d.getCandidateSignaturesForStringLiteralCompletions(t,E),b=Vu(v,B=>{if(!ih(B)&&s.argumentCount>B.parameters.length)return;let k=B.getTypeParameterAtPosition(s.argumentIndex);if(Ih(t)){const T=d.getTypeOfPropertyOfType(k,lV(E.name));T&&(k=T)}return f=f||!!(k.flags&4),kpe(k,p)});return S(b)?{kind:2,types:b,isNewIdentifier:f}:void 0}function N0t(t){return t&&{kind:1,symbols:ti(t.getApparentProperties(),u=>!(u.valueDeclaration&&Eh(u.valueDeclaration))),hasIndexSignature:xfe(t)}}function nUt(t,u){const s=t.getContextualType(u);if(!s)return;const d=t.getContextualType(u,4);return{kind:1,symbols:vpe(s,d,u,t),hasIndexSignature:xfe(s)}}function kpe(t,u=new Map){return t?(t=rfe(t),t.isUnion()?Vu(t.types,s=>kpe(s,u)):t.isStringLiteral()&&!(t.flags&1024)&&Rp(u,t.value)?[t]:Dt):Dt}function QM(t,u,s){return{name:t,kind:u,extension:s}}function PTe(t){return QM(t,"directory",void 0)}function P0t(t,u,s){const d=pUt(t,u),f=t.length===0?void 0:h1(u,t.length);return s.map(({name:p,kind:E,extension:v})=>p.includes(ol)||p.includes(wO)?{name:p,kind:E,extension:v,span:f}:{name:p,kind:E,extension:v,span:d})}function M0t(t,u,s,d,f,p){return P0t(u.text,u.getStart(t)+1,uUt(t,u,s,d,f,p))}function uUt(t,u,s,d,f,p){const E=Z1(u.text),v=i0(u)?xg(t,u):void 0,b=t.path,B=dr(b),k=MTe(s,1,t,f,p,v);return gUt(E)||!s.baseUrl&&!s.paths&&(Pf(E)||F2e(E))?rUt(E,B,s,d,b,k):lUt(E,B,v,s,d,k,f)}function MTe(t,u,s,d,f,p){return{extensionsToSearch:Ha(aUt(t,d)),referenceKind:u,importingSourceFile:s,endingPreference:f==null?void 0:f.importModuleSpecifierEnding,resolutionMode:p}}function rUt(t,u,s,d,f,p){return s.rootDirs?sUt(s.rootDirs,t,u,p,s,d,f):Ea(BK(t,u,p,d,!0,f).values())}function aUt(t,u){const s=u?qi(u.getAmbientModules(),p=>{const E=p.name.slice(1,-1);if(!(!E.startsWith("*.")||E.includes("/")))return E.slice(1)}):[],d=[...FP(t),s],f=g1(t);return xX(f)?iV(t,d):d}function oUt(t,u,s,d){t=t.map(p=>zd(Uo(Pf(p)?p:hr(u,p))));const f=G(t,p=>JE(p,s,u,d)?s.substr(p.length):void 0);return li([...t.map(p=>hr(p,f)),s].map(p=>pv(p)),XA,fh)}function sUt(t,u,s,d,f,p,E){const v=f.project||p.getCurrentDirectory(),b=!(p.useCaseSensitiveFileNames&&p.useCaseSensitiveFileNames()),B=oUt(t,v,s,b);return Vu(B,k=>Ea(BK(u,k,d,p,!0,E).values()))}function BK(t,u,s,d,f,p,E=LTe()){var v;t===void 0&&(t=""),t=Z1(t),ZD(t)||(t=dr(t)),t===""&&(t="."+ol),t=zd(t);const b=kx(u,t),B=ZD(b)?b:dr(b);if(!f){const z=MSe(B,d);if(z){const J=_P(z,d).typesVersions;if(typeof J=="object"){const K=(v=HY(J))==null?void 0:v.paths;if(K){const Y=dr(z),oe=b.slice(zd(Y).length);if(I0t(E,oe,Y,s,d,K))return E}}}}const k=!(d.useCaseSensitiveFileNames&&d.useCaseSensitiveFileNames());if(!MX(d,B))return E;const T=Cfe(d,B,s.extensionsToSearch,void 0,["./*"]);if(T)for(let z of T){if(z=Uo(z),p&&gv(z,p,u,k)===0)continue;const{name:j,extension:J}=z0t(Bc(z),d.getCompilationSettings(),s);E.add(QM(j,"script",J))}const M=PX(d,B);if(M)for(const z of M){const j=Bc(Uo(z));j!=="@types"&&E.add(PTe(j))}return E}function z0t(t,u,s){const d=Y2.tryGetRealFileNameForNonJsDeclarationFileName(t);if(d)return{name:d,extension:i3(d)};if(s.referenceKind===0)return{name:t,extension:i3(t)};const f=wle(s.endingPreference,s.resolutionMode,u,s.importingSourceFile);if(f===3){if(Hc(t,fV))return{name:t,extension:i3(t)};const E=Y2.tryGetJSExtensionForFile(t,u);return E?{name:Tv(t,E),extension:E}:{name:t,extension:i3(t)}}if((f===0||f===1)&&Hc(t,[".js",".jsx",".ts",".tsx",".d.ts"]))return{name:xh(t),extension:i3(t)};const p=Y2.tryGetJSExtensionForFile(t,u);return p?{name:Tv(t,p),extension:p}:{name:t,extension:i3(t)}}function I0t(t,u,s,d,f,p){const E=b=>p[b],v=(b,B)=>{const k=fB(b),T=fB(B),M=typeof k=="object"?k.prefix.length:b.length,z=typeof T=="object"?T.prefix.length:B.length;return rl(z,M)};return R0t(t,u,s,d,f,Ps(p),E,v)}function R0t(t,u,s,d,f,p,E,v){let b=[],B;for(const k of p){if(k===".")continue;const T=k.replace(/^\.\//,""),M=E(k);if(M){const z=fB(T);if(!z)continue;const j=typeof z=="object"&&X$(z,u);j&&(B===void 0||v(k,B)===-1)&&(B=k,b=b.filter(K=>!K.matchedPattern)),(typeof z=="string"||B===void 0||v(k,B)!==1)&&b.push({matchedPattern:j,results:cUt(T,M,u,s,d,f).map(({name:K,kind:Y,extension:oe})=>QM(K,Y,oe))})}}return b.forEach(k=>k.results.forEach(T=>t.add(T))),B!==void 0}function lUt(t,u,s,d,f,p,E){const{baseUrl:v,paths:b}=d,B=LTe(),k=g1(d);if(v){const M=Uo(hr(f.getCurrentDirectory(),v));BK(t,M,p,f,!1,void 0,B)}if(b){const M=Rq(d,f);I0t(B,t,M,p,f,b)}const T=j0t(t);for(const M of hUt(t,T,E))B.add(QM(M,"external module name",void 0));if(K0t(f,d,u,T,p,B),xX(k)){let M=!1;if(T===void 0)for(const z of mUt(f,u)){const j=QM(z,"external module name",void 0);B.has(j.name)||(M=!0,B.add(j))}if(!M){let z=j=>{const J=hr(j,"node_modules");MX(f,J)&&BK(t,J,p,f,!1,void 0,B)};if(T&&ble(d)){const j=z;z=J=>{const K=yd(t);K.shift();let Y=K.shift();if(!Y)return j(J);if(Ma(Y,"@")){const ge=K.shift();if(!ge)return j(J);Y=hr(Y,ge)}const oe=hr(J,"node_modules",Y),se=hr(oe,"package.json");if(XH(f,se)){const ae=_P(se,f).exports;if(ae){if(typeof ae!="object"||ae===null)return;const Ce=Ps(ae),ne=K.join("/")+(K.length&&ZD(t)?"/":""),ve=U2(d,s);R0t(B,ne,oe,p,f,Ce,Se=>Hy(O0t(ae[Se],ve)),wde);return}}return j(J)}}qg(u,z)}}return Ea(B.values())}function O0t(t,u){if(typeof t=="string")return t;if(t&&typeof t=="object"&&!Wa(t)){for(const s in t)if(s==="default"||u.includes(s)||lH(u,s)){const d=t[s];return O0t(d,u)}}}function j0t(t){return zTe(t)?ZD(t)?t:dr(t):void 0}function cUt(t,u,s,d,f,p){if(!lc(t,"*"))return t.includes("*")?Dt:b(t,"script");const E=t.slice(0,t.length-1),v=foe(s,E);if(v===void 0)return t[t.length-2]==="/"?b(E,"directory"):Vu(u,k=>{var T;return(T=V0t("",d,k,f,p))==null?void 0:T.map(({name:M,...z})=>({name:E+M,...z}))});return Vu(u,B=>V0t(v,d,B,f,p));function b(B,k){return Ma(B,s)?[{name:pv(B),kind:k,extension:void 0}]:Dt}}function V0t(t,u,s,d,f){if(!f.readDirectory)return;const p=fB(s);if(p===void 0||Ua(p))return;const E=kx(p.prefix),v=ZD(p.prefix)?E:dr(E),b=ZD(p.prefix)?"":Bc(E),B=zTe(t),k=B?ZD(t)?t:dr(t):void 0,T=B?hr(v,b+k):v,M=Uo(p.suffix),z=M&&Wj("_"+M),j=z?[Tv(M,z),M]:[M],J=Uo(hr(u,T)),K=B?J:zd(J)+b,Y=M?j.map(ae=>"**/*"+ae):["./*"],oe=qi(Cfe(f,J,d.extensionsToSearch,void 0,Y),ae=>{const Ce=ge(ae);if(Ce){if(zTe(Ce))return PTe(yd(H0t(Ce))[1]);const{name:ne,extension:ve}=z0t(Ce,f.getCompilationSettings(),d);return QM(ne,"script",ve)}}),se=M?Dt:qi(PX(f,J),ae=>ae==="node_modules"?void 0:PTe(ae));return[...oe,...se];function ge(ae){return G(j,Ce=>{const ne=dUt(Uo(ae),K,Ce);return ne===void 0?void 0:H0t(ne)})}}function dUt(t,u,s){return Ma(t,u)&&lc(t,s)?t.slice(u.length,t.length-s.length):void 0}function H0t(t){return t[0]===ol?t.slice(1):t}function hUt(t,u,s){const f=s.getAmbientModules().map(p=>q4(p.name)).filter(p=>Ma(p,t)&&!p.includes("*"));if(u!==void 0){const p=zd(u);return f.map(E=>kN(E,p))}return f}function fUt(t,u,s,d){const f=ya(t,u),p=G_(t.text,f.pos),E=p&&Le(p,j=>u>=j.pos&&u<=j.end);if(!E)return;const v=t.text.slice(E.pos,u),b=W0t.exec(v);if(!b)return;const[,B,k,T]=b,M=dr(t.path),z=k==="path"?BK(T,M,MTe(s,0,t),d,!0,t.path):k==="types"?K0t(d,s,M,j0t(T),MTe(s,1,t)):H.fail();return P0t(T,E.pos+B.length,Ea(z.values()))}function K0t(t,u,s,d,f,p=LTe()){const E=new Map,v=zX(()=>dM(u,t))||Dt;for(const B of v)b(B);for(const B of bfe(s,t)){const k=hr(dr(B),"node_modules/@types");b(k)}return p;function b(B){if(MX(t,B))for(const k of PX(t,B)){const T=cH(k);if(!(u.types&&!kt(u.types,T)))if(d===void 0)E.has(T)||(p.add(QM(T,"external module name",void 0)),E.set(T,!0));else{const M=hr(B,k),z=Fle(d,T,n5(t));z!==void 0&&BK(z,M,f,t,!1,void 0,p)}}}}function mUt(t,u){if(!t.readFile||!t.fileExists)return Dt;const s=[];for(const d of bfe(u,t)){const f=_P(d,t);for(const p of G0t){const E=f[p];if(E)for(const v in E)Eu(E,v)&&!Ma(v,"@types/")&&s.push(v)}}return s}function pUt(t,u){const s=Math.max(t.lastIndexOf(ol),t.lastIndexOf(wO)),d=s!==-1?s+1:0,f=t.length-d;return f===0||Nm(t.substr(d,f),99)?void 0:h1(u+d,f)}function gUt(t){if(t&&t.length>=2&&t.charCodeAt(0)===46){const u=t.length>=3&&t.charCodeAt(1)===46?2:1,s=t.charCodeAt(u);return s===47||s===92}return!1}function zTe(t){return t.includes(ol)}function EUt(t){return Mo(t.parent)&&Ki(t.parent.arguments)===t&&at(t.parent.expression)&&t.parent.expression.escapedText==="require"}var ITe,W0t,G0t,_Ut=o({"src/services/stringCompletions.ts"(){or(),RTe(),ITe={directory:0,script:1,"external module name":2},W0t=/^(\/\/\/\s*X$t,getStringLiteralCompletions:()=>Y$t});var DUt=o({"src/services/_namespaces/ts.Completions.StringCompletions.ts"(){_Ut()}}),h9={};h(h9,{CompletionKind:()=>wTe,CompletionSource:()=>STe,SortText:()=>R1,StringCompletions:()=>Fpe,SymbolOriginInfoKind:()=>BTe,createCompletionDetails:()=>Pee,createCompletionDetailsForSymbol:()=>bTe,getCompletionEntriesFromSymbols:()=>vTe,getCompletionEntryDetails:()=>S$t,getCompletionEntrySymbol:()=>w$t,getCompletionsAtPosition:()=>a$t,getPropertiesForObjectExpression:()=>vpe,moduleSpecifierResolutionCacheAttemptLimit:()=>ATe,moduleSpecifierResolutionLimit:()=>ype});var RTe=o({"src/services/_namespaces/ts.Completions.ts"(){Z$t(),DUt()}});function OTe(t,u,s,d){const f=bUt(t,s,d);return(p,E,v)=>{const{directImports:b,indirectUsers:B}=xUt(t,u,f,E,s,d);return{indirectUsers:B,...vUt(b,p,E.exportKind,s,v)}}}function xUt(t,u,s,{exportingModuleSymbol:d,exportKind:f},p,E){const v=i9(),b=i9(),B=[],k=!!d.globalExports,T=k?void 0:[];return z(d),{directImports:B,indirectUsers:M()};function M(){if(k)return t;if(d.declarations)for(const se of d.declarations)C2(se)&&u.has(se.getSourceFile().fileName)&&Y(se);return T.map(zn)}function z(se){const ge=oe(se);if(ge){for(const ae of ge)if(v(ae))switch(E&&E.throwIfCancellationRequested(),ae.kind){case 213:if(dm(ae)){j(ae);break}if(!k){const ne=ae.parent;if(f===2&&ne.kind===260){const{name:ve}=ne;if(ve.kind===80){B.push(ve);break}}}break;case 80:break;case 271:K(ae,ae.name,Qu(ae,32),!1);break;case 272:B.push(ae);const Ce=ae.importClause&&ae.importClause.namedBindings;Ce&&Ce.kind===274?K(ae,Ce.name,!1,!0):!k&&c7(ae)&&Y(Iee(ae));break;case 278:ae.exportClause?ae.exportClause.kind===280?Y(Iee(ae),!0):B.push(ae):z(SUt(ae,p));break;case 205:!k&&ae.isTypeOf&&!ae.qualifier&&J(ae)&&Y(ae.getSourceFile(),!0),B.push(ae);break;default:H.failBadSyntaxKind(ae,"Unexpected import kind.")}}}function j(se){const ge=Tn(se,Ape)||se.getSourceFile();Y(ge,!!J(se,!0))}function J(se,ge=!1){return Tn(se,ae=>ge&&Ape(ae)?"quit":Kp(ae)&&Ge(ae.modifiers,L7))}function K(se,ge,ae,Ce){if(f===2)Ce||B.push(se);else if(!k){const ne=Iee(se);H.assert(ne.kind===312||ne.kind===267),ae||CUt(ne,ge,p)?Y(ne,!0):Y(ne)}}function Y(se,ge=!1){if(H.assert(!k),!b(se)||(T.push(se),!ge))return;const Ce=p.getMergedSymbol(se.symbol);if(!Ce)return;H.assert(!!(Ce.flags&1536));const ne=oe(Ce);if(ne)for(const ve of ne)nD(ve)||Y(Iee(ve),!0)}function oe(se){return s.get(Yo(se).toString())}}function vUt(t,u,s,d,f){const p=[],E=[];function v(M,z){p.push([M,z])}if(t)for(const M of t)b(M);return{importSearches:p,singleReferences:E};function b(M){if(M.kind===271){VTe(M)&&B(M.name);return}if(M.kind===80){B(M);return}if(M.kind===205){if(M.qualifier){const J=hm(M.qualifier);J.escapedText===cc(u)&&E.push(J)}else s===2&&E.push(M.argument.literal);return}if(M.moduleSpecifier.kind!==11)return;if(M.kind===278){M.exportClause&&ip(M.exportClause)&&k(M.exportClause);return}const{name:z,namedBindings:j}=M.importClause||{name:void 0,namedBindings:void 0};if(j)switch(j.kind){case 274:B(j.name);break;case 275:(s===0||s===1)&&k(j);break;default:H.assertNever(j)}if(z&&(s===1||s===2)&&(!f||z.escapedText===CX(u))){const J=d.getSymbolAtLocation(z);v(z,J)}}function B(M){s===2&&(!f||T(M.escapedText))&&v(M,d.getSymbolAtLocation(M))}function k(M){if(M)for(const z of M.elements){const{name:j,propertyName:J}=z;if(T((J||j).escapedText))if(J)E.push(J),(!f||j.escapedText===u.escapedName)&&v(j,d.getSymbolAtLocation(j));else{const K=z.kind===281&&z.propertyName?d.getExportSpecifierLocalTargetSymbol(z):d.getSymbolAtLocation(j);v(j,K)}}}function T(M){return M===u.escapedName||s!==0&&M==="default"}}function CUt(t,u,s){const d=s.getSymbolAtLocation(u);return!!$0t(t,f=>{if(!$c(f))return;const{exportClause:p,moduleSpecifier:E}=f;return!E&&p&&ip(p)&&p.elements.some(v=>s.getExportSpecifierLocalTargetSymbol(v)===d)})}function J0t(t,u,s){var d;const f=[],p=t.getTypeChecker();for(const E of u){const v=s.valueDeclaration;if((v==null?void 0:v.kind)===312){for(const b of E.referencedFiles)t.getSourceFileFromReference(E,b)===v&&f.push({kind:"reference",referencingFile:E,ref:b});for(const b of E.typeReferenceDirectives){const B=(d=t.getResolvedTypeReferenceDirectives().get(b.fileName,b.resolutionMode||E.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective;B!==void 0&&B.resolvedFileName===v.fileName&&f.push({kind:"reference",referencingFile:E,ref:b})}}U0t(E,(b,B)=>{p.getSymbolAtLocation(B)===s&&f.push(cl(b)?{kind:"implicit",literal:B,referencingFile:E}:{kind:"import",literal:B})})}return f}function bUt(t,u,s){const d=new Map;for(const f of t)s&&s.throwIfCancellationRequested(),U0t(f,(p,E)=>{const v=u.getSymbolAtLocation(E);if(v){const b=Yo(v).toString();let B=d.get(b);B||d.set(b,B=[]),B.push(p)}});return d}function $0t(t,u){return L(t.kind===312?t.statements:t.body.statements,s=>u(s)||Ape(s)&&L(s.body&&s.body.statements,u))}function U0t(t,u){if(t.externalModuleIndicator||t.imports!==void 0)for(const s of t.imports)u(iP(s),s);else $0t(t,s=>{switch(s.kind){case 278:case 272:{const d=s;d.moduleSpecifier&&rs(d.moduleSpecifier)&&u(d,d.moduleSpecifier);break}case 271:{const d=s;VTe(d)&&u(d,d.moduleReference.expression);break}}})}function q0t(t,u,s,d){return d?f():f()||p();function f(){var b;const{parent:B}=t,k=B.parent;if(u.exportSymbol)return B.kind===211?(b=u.declarations)!=null&&b.some(z=>z===B)&&eu(k)?M(k,!1):void 0:E(u.exportSymbol,v(B));{const z=kUt(B,t);if(z&&Qu(z,32))return _1(z)&&z.moduleReference===t?d?void 0:{kind:0,symbol:s.getSymbolAtLocation(z.name)}:E(u,v(z));if(r_(B))return E(u,0);if(ic(B))return T(B);if(ic(k))return T(k);if(eu(B))return M(B,!0);if(eu(k))return M(k,!0);if(PB(B)||Bce(B))return E(u,0)}function T(z){if(!z.symbol.parent)return;const j=z.isExportEquals?2:1;return{kind:1,symbol:u,exportInfo:{exportingModuleSymbol:z.symbol.parent,exportKind:j}}}function M(z,j){let J;switch(ec(z)){case 1:J=0;break;case 2:J=2;break;default:return}const K=j?s.getSymbolAtLocation(eke(Po(z.left,O0))):u;return K&&E(K,J)}}function p(){if(!FUt(t))return;let B=s.getImmediateAliasedSymbol(u);if(!B||(B=AUt(B,s),B.escapedName==="export="&&(B=yUt(B,s),B===void 0)))return;const k=CX(B);if(k===void 0||k==="default"||k===u.escapedName)return{kind:0,symbol:B}}function E(b,B){const k=jTe(b,B,s);return k&&{kind:1,symbol:b,exportInfo:k}}function v(b){return Qu(b,2048)?1:0}}function yUt(t,u){var s,d;if(t.flags&2097152)return u.getImmediateAliasedSymbol(t);const f=H.checkDefined(t.valueDeclaration);if(ic(f))return(s=ar(f.expression,Yg))==null?void 0:s.symbol;if(eu(f))return(d=ar(f.right,Yg))==null?void 0:d.symbol;if(ca(f))return f.symbol}function kUt(t,u){const s=ra(t)?t:Vs(t)?S8(t):void 0;return s?t.name!==u||J2(s.parent)?void 0:Jl(s.parent.parent)?s.parent.parent:void 0:t}function FUt(t){const{parent:u}=t;switch(u.kind){case 271:return u.name===t&&VTe(u);case 276:return!u.propertyName;case 273:case 274:return H.assert(u.name===t),!0;case 208:return Xn(t)&&A2(u.parent.parent);default:return!1}}function jTe(t,u,s){const d=t.parent;if(!d)return;const f=s.getMergedSymbol(d);return KH(f)?{exportingModuleSymbol:f,exportKind:u}:void 0}function AUt(t,u){if(t.declarations)for(const s of t.declarations){if(th(s)&&!s.propertyName&&!s.parent.parent.moduleSpecifier)return u.getExportSpecifierLocalTargetSymbol(s)||t;if(Ru(s)&&Q_(s.expression)&&!ea(s.name))return u.getSymbolAtLocation(s);if(pm(s)&&eu(s.parent.parent)&&ec(s.parent.parent)===2)return u.getExportSpecifierLocalTargetSymbol(s.name)}return t}function SUt(t,u){return u.getMergedSymbol(Iee(t).symbol)}function Iee(t){if(t.kind===213)return t.getSourceFile();const{parent:u}=t;return u.kind===312?u:(H.assert(u.kind===268),Po(u.parent,Ape))}function Ape(t){return t.kind===267&&t.name.kind===11}function VTe(t){return t.moduleReference.kind===283&&t.moduleReference.expression.kind===11}var HTe,KTe,BUt=o({"src/services/importTracker.ts"(){or(),HTe=(t=>(t[t.Named=0]="Named",t[t.Default=1]="Default",t[t.ExportEquals=2]="ExportEquals",t))(HTe||{}),KTe=(t=>(t[t.Import=0]="Import",t[t.Export=1]="Export",t))(KTe||{})}});function c3(t,u=1){return{kind:u,node:t.name||t,context:wUt(t)}}function Z0t(t){return t&&t.kind===void 0}function wUt(t){if(X1(t))return Vk(t);if(t.parent){if(!X1(t.parent)&&!ic(t.parent)){if(Xn(t)){const s=eu(t.parent)?t.parent:O0(t.parent)&&eu(t.parent.parent)&&t.parent.parent.left===t.parent?t.parent.parent:void 0;if(s&&ec(s)!==0)return Vk(s)}if(oE(t.parent)||K2(t.parent))return t.parent.parent;if(bk(t.parent)||H2(t.parent)||jN(t.parent))return t.parent;if(i0(t)){const s=Sj(t);if(s){const d=Tn(s,f=>X1(f)||ua(f)||I8(f));return X1(d)?Vk(d):d}}const u=Tn(t,Ms);return u?Vk(u.parent):void 0}if(t.parent.name===t||fc(t.parent)||ic(t.parent)||(r7(t.parent)||Vs(t.parent))&&t.parent.propertyName===t||t.kind===90&&Qu(t.parent,2080))return Vk(t.parent)}}function Vk(t){if(t)switch(t.kind){case 260:return!Ad(t.parent)||t.parent.declarations.length!==1?t:Jl(t.parent.parent)?t.parent.parent:M8(t.parent.parent)?Vk(t.parent.parent):t.parent;case 208:return Vk(t.parent.parent);case 276:return t.parent.parent.parent;case 281:case 274:return t.parent.parent;case 273:case 280:return t.parent;case 226:return Od(t.parent)?t.parent:t;case 250:case 249:return{start:t.initializer,end:t.expression};case 303:case 304:return p5(t.parent)?Vk(Tn(t.parent,u=>eu(u)||M8(u))):t;default:return t}}function WTe(t,u,s){if(!s)return;const d=Z0t(s)?Oee(s.start,u,s.end):Oee(s,u);return d.start!==t.start||d.length!==t.length?{contextSpan:d}:void 0}function TUt(t,u,s,d,f){const p=af(d,f),E={use:1},v=f9.getReferencedSymbolsForNode(f,p,t,s,u,E),b=t.getTypeChecker(),B=f9.getAdjustedNode(p,E),k=LUt(B)?b.getSymbolAtLocation(B):void 0;return!v||!v.length?void 0:qi(v,({definition:T,references:M})=>T&&{definition:b.runWithCancellationToken(u,z=>MUt(T,z,p)),references:M.map(z=>IUt(z,k))})}function LUt(t){return t.kind===90||!!uP(t)||Pj(t)||t.kind===137&&fc(t.parent)}function NUt(t,u,s,d,f){const p=af(d,f);let E;const v=Y0t(t,u,s,p,f);if(p.parent.kind===211||p.parent.kind===208||p.parent.kind===212||p.kind===108)E=v&&[...v];else if(v){const B=Z$(v),k=new Map;for(;!B.isEmpty();){const T=B.dequeue();if(!Rp(k,Us(T.node)))continue;E=Di(E,T);const M=Y0t(t,u,s,T.node,T.node.pos);M&&B.enqueue(...M)}}const b=t.getTypeChecker();return Vt(E,B=>OUt(B,b))}function Y0t(t,u,s,d,f){if(d.kind===312)return;const p=t.getTypeChecker();if(d.parent.kind===304){const E=[];return f9.getReferenceEntriesForShorthandPropertyAssignment(d,p,v=>E.push(c3(v))),E}else if(d.kind===108||nf(d.parent)){const E=p.getSymbolAtLocation(d);return E.valueDeclaration&&[c3(E.valueDeclaration)]}else return Q0t(f,d,t,s,u,{implementations:!0,use:1})}function PUt(t,u,s,d,f,p,E){return Vt(X0t(f9.getReferencedSymbolsForNode(f,d,t,s,u,p)),v=>E(v,d,t.getTypeChecker()))}function Q0t(t,u,s,d,f,p={},E=new Set(d.map(v=>v.fileName))){return X0t(f9.getReferencedSymbolsForNode(t,u,s,d,f,p,E))}function X0t(t){return t&&Vu(t,u=>u.references)}function MUt(t,u,s){const d=(()=>{switch(t.type){case 0:{const{symbol:k}=t,{displayParts:T,kind:M}=elt(k,u,s),z=T.map(K=>K.text).join(""),j=k.declarations&&Ki(k.declarations),J=j?Ya(j)||j:s;return{...Ree(J),name:z,kind:M,displayParts:T,context:Vk(j)}}case 1:{const{node:k}=t;return{...Ree(k),name:k.text,kind:"label",displayParts:[yf(k.text,17)]}}case 2:{const{node:k}=t,T=qo(k.kind);return{...Ree(k),name:T,kind:"keyword",displayParts:[{text:T,kind:"keyword"}]}}case 3:{const{node:k}=t,T=u.getSymbolAtLocation(k),M=T&&x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,T,k.getSourceFile(),Mk(k),k).displayParts||[Wm("this")];return{...Ree(k),name:"this",kind:"var",displayParts:M}}case 4:{const{node:k}=t;return{...Ree(k),name:k.text,kind:"var",displayParts:[yf(Wc(k),8)]}}case 5:return{textSpan:qx(t.reference),sourceFile:t.file,name:t.reference.fileName,kind:"string",displayParts:[yf(`"${t.reference.fileName}"`,8)]};default:return H.assertNever(t)}})(),{sourceFile:f,textSpan:p,name:E,kind:v,displayParts:b,context:B}=d;return{containerKind:"",containerName:"",fileName:f.fileName,kind:v,name:E,textSpan:p,displayParts:b,...WTe(p,f,B)}}function Ree(t){const u=t.getSourceFile();return{sourceFile:u,textSpan:Oee(Ms(t)?t.expression:t,u)}}function elt(t,u,s){const d=f9.getIntersectingMeaningFromDeclarations(s,t),f=t.declarations&&Ki(t.declarations)||s,{displayParts:p,symbolKind:E}=x5.getSymbolDisplayPartsDocumentationAndSymbolKind(u,t,f.getSourceFile(),f,f,d);return{displayParts:p,kind:E}}function zUt(t,u,s,d,f){return{...Spe(t),...d&&RUt(t,u,s,f)}}function IUt(t,u){const s=tlt(t);return u?{...s,isDefinition:t.kind!==0&&ilt(t.node,u)}:s}function tlt(t){const u=Spe(t);if(t.kind===0)return{...u,isWriteAccess:!1};const{kind:s,node:d}=t;return{...u,isWriteAccess:JTe(d),isInString:s===2?!0:void 0}}function Spe(t){if(t.kind===0)return{textSpan:t.textSpan,fileName:t.fileName};{const u=t.node.getSourceFile(),s=Oee(t.node,u);return{textSpan:s,fileName:u.fileName,...WTe(s,u,t.context)}}}function RUt(t,u,s,d){if(t.kind!==0&&at(u)){const{node:f,kind:p}=t,E=f.parent,v=u.text,b=pm(E);if(b||JH(E)&&E.name===f&&E.dotDotDotToken===void 0){const B={prefixText:v+": "},k={suffixText:": "+v};if(p===3)return B;if(p===4)return k;if(b){const T=E.parent;return ys(T)&&eu(T.parent)&&Q_(T.parent.left)?B:k}else return B}else if(bf(E)&&!E.propertyName){const B=th(u.parent)?s.getExportSpecifierLocalTargetSymbol(u.parent):s.getSymbolAtLocation(u);return kt(B.declarations,E)?{prefixText:v+" as "}:m4}else if(th(E)&&!E.propertyName)return u===t.node||s.getSymbolAtLocation(u)===s.getSymbolAtLocation(t.node)?{prefixText:v+" as "}:{suffixText:" as "+v}}if(t.kind!==0&&Of(t.node)&&O0(t.node.parent)){const f=lfe(d);return{prefixText:f,suffixText:f}}return m4}function OUt(t,u){const s=Spe(t);if(t.kind!==0){const{node:d}=t;return{...s,...jUt(d,u)}}else return{...s,kind:"",displayParts:[]}}function jUt(t,u){const s=u.getSymbolAtLocation(X1(t)&&t.name?t.name:t);return s?elt(s,u,t):t.kind===210?{kind:"interface",displayParts:[nh(21),Wm("object literal"),nh(22)]}:t.kind===231?{kind:"local class",displayParts:[nh(21),Wm("anonymous local class"),nh(22)]}:{kind:ib(t),displayParts:[]}}function VUt(t){const u=Spe(t);if(t.kind===0)return{fileName:u.fileName,span:{textSpan:u.textSpan,kind:"reference"}};const s=JTe(t.node),d={textSpan:u.textSpan,kind:s?"writtenReference":"reference",isInString:t.kind===2?!0:void 0,...u.contextSpan&&{contextSpan:u.contextSpan}};return{fileName:u.fileName,span:d}}function Oee(t,u,s){let d=t.getStart(u),f=(s||t).getEnd();return i0(t)&&f-d>2&&(H.assert(s===void 0),d+=1,f-=1),Kc(d,f)}function GTe(t){return t.kind===0?t.textSpan:Oee(t.node,t.node.getSourceFile())}function JTe(t){const u=uP(t);return!!u&&HUt(u)||t.kind===90||D7(t)}function ilt(t,u){var s;if(!u)return!1;const d=uP(t)||(t.kind===90?t.parent:Pj(t)||t.kind===137&&fc(t.parent)?t.parent.parent:void 0),f=d&&eu(d)?d.left:void 0;return!!(d&&((s=u.declarations)!=null&&s.some(p=>p===d||p===f)))}function HUt(t){if(t.flags&33554432)return!0;switch(t.kind){case 226:case 208:case 263:case 231:case 90:case 266:case 306:case 281:case 273:case 271:case 276:case 264:case 345:case 353:case 291:case 267:case 270:case 274:case 280:case 169:case 304:case 265:case 168:return!0;case 303:return!p5(t.parent);case 262:case 218:case 176:case 174:case 177:case 178:return!!t.body;case 260:case 172:return!!t.initializer||J2(t.parent);case 173:case 171:case 355:case 348:return!1;default:return H.failBadSyntaxKind(t)}}var $Te,UTe,qTe,f9,KUt=o({"src/services/findAllReferences.ts"(){or(),nlt(),$Te=(t=>(t[t.Symbol=0]="Symbol",t[t.Label=1]="Label",t[t.Keyword=2]="Keyword",t[t.This=3]="This",t[t.String=4]="String",t[t.TripleSlashReference=5]="TripleSlashReference",t))($Te||{}),UTe=(t=>(t[t.Span=0]="Span",t[t.Node=1]="Node",t[t.StringLiteral=2]="StringLiteral",t[t.SearchedLocalFoundProperty=3]="SearchedLocalFoundProperty",t[t.SearchedPropertyFoundLocal=4]="SearchedPropertyFoundLocal",t))(UTe||{}),qTe=(t=>(t[t.Other=0]="Other",t[t.References=1]="References",t[t.Rename=2]="Rename",t))(qTe||{}),(t=>{function u(Qe,_t,Mt,qt,Xt,Pe={},et=new Set(qt.map(Et=>Et.fileName))){var Et,ii;if(_t=s(_t,Pe),ca(_t)){const $i=Cw.getReferenceAtPosition(_t,Qe,Mt);if(!($i!=null&&$i.file))return;const Qi=Mt.getTypeChecker().getMergedSymbol($i.file.symbol);if(Qi)return B(Mt,Qi,!1,qt,et);const on=Mt.getFileIncludeReasons();return on?[{definition:{type:5,reference:$i.reference,file:_t},references:f($i.file,on,Mt)||Dt}]:void 0}if(!Pe.implementations){const $i=T(_t,qt,Xt);if($i)return $i}const me=Mt.getTypeChecker(),ni=me.getSymbolAtLocation(fc(_t)&&_t.parent.name||_t);if(!ni){if(!Pe.implementations&&i0(_t)){if(bX(_t)){const $i=Mt.getFileIncludeReasons(),Qi=(ii=(Et=Mt.getResolvedModule(_t.getSourceFile(),_t.text,xg(_t.getSourceFile(),_t)))==null?void 0:Et.resolvedModule)==null?void 0:ii.resolvedFileName,on=Qi?Mt.getSourceFile(Qi):void 0;if(on)return[{definition:{type:4,node:_t},references:f(on,$i,Mt)||Dt}]}return bt(_t,qt,me,Xt)}return}if(ni.escapedName==="export=")return B(Mt,ni.parent,!1,qt,et);const xi=E(ni,Mt,qt,Xt,Pe,et);if(xi&&!(ni.flags&33554432))return xi;const pt=p(_t,ni,me),Ot=pt&&E(pt,Mt,qt,Xt,Pe,et),Ei=M(ni,_t,qt,et,me,Xt,Pe);return v(Mt,xi,Ei,Ot)}t.getReferencedSymbolsForNode=u;function s(Qe,_t){return _t.use===1?Qe=Uhe(Qe):_t.use===2&&(Qe=dX(Qe)),Qe}t.getAdjustedNode=s;function d(Qe,_t,Mt,qt=new Set(Mt.map(Xt=>Xt.fileName))){var Xt,Pe;const et=(Xt=_t.getSourceFile(Qe))==null?void 0:Xt.symbol;if(et)return((Pe=B(_t,et,!1,Mt,qt)[0])==null?void 0:Pe.references)||Dt;const Et=_t.getFileIncludeReasons(),ii=_t.getSourceFile(Qe);return ii&&Et&&f(ii,Et,_t)||Dt}t.getReferencesForFileName=d;function f(Qe,_t,Mt){let qt;const Xt=_t.get(Qe.path)||Dt;for(const Pe of Xt)if($v(Pe)){const et=Mt.getSourceFileByPath(Pe.file),Et=AM(Mt,Pe);ZB(Et)&&(qt=Di(qt,{kind:0,fileName:et.fileName,textSpan:qx(Et)}))}return qt}function p(Qe,_t,Mt){if(Qe.parent&&TV(Qe.parent)){const qt=Mt.getAliasedSymbol(_t),Xt=Mt.getMergedSymbol(qt);if(qt!==Xt)return Xt}}function E(Qe,_t,Mt,qt,Xt,Pe){const et=Qe.flags&1536&&Qe.declarations&&Le(Qe.declarations,ca);if(!et)return;const Et=Qe.exports.get("export="),ii=B(_t,Qe,!!Et,Mt,Pe);if(!Et||!Pe.has(et.fileName))return ii;const me=_t.getTypeChecker();return Qe=eh(Et,me),v(_t,ii,M(Qe,void 0,Mt,Pe,me,qt,Xt))}function v(Qe,..._t){let Mt;for(const qt of _t)if(!(!qt||!qt.length)){if(!Mt){Mt=qt;continue}for(const Xt of qt){if(!Xt.definition||Xt.definition.type!==0){Mt.push(Xt);continue}const Pe=Xt.definition.symbol,et=Ue(Mt,ii=>!!ii.definition&&ii.definition.type===0&&ii.definition.symbol===Pe);if(et===-1){Mt.push(Xt);continue}const Et=Mt[et];Mt[et]={definition:Et.definition,references:Et.references.concat(Xt.references).sort((ii,me)=>{const ni=b(Qe,ii),xi=b(Qe,me);if(ni!==xi)return rl(ni,xi);const pt=GTe(ii),Ot=GTe(me);return pt.start!==Ot.start?rl(pt.start,Ot.start):rl(pt.length,Ot.length)})}}}return Mt}function b(Qe,_t){const Mt=_t.kind===0?Qe.getSourceFile(_t.fileName):_t.node.getSourceFile();return Qe.getSourceFiles().indexOf(Mt)}function B(Qe,_t,Mt,qt,Xt){H.assert(!!_t.valueDeclaration);const Pe=qi(J0t(Qe,qt,_t),Et=>{if(Et.kind==="import"){const ii=Et.literal.parent;if(zv(ii)){const me=Po(ii.parent,nD);if(Mt&&!me.qualifier)return}return c3(Et.literal)}else if(Et.kind==="implicit"){const ii=Et.literal.text!==Hx&&rM(Et.referencingFile,me=>me.transformFlags&2?a3(me)||bk(me)||W2(me)?me:void 0:"skip")||Et.referencingFile.statements[0]||Et.referencingFile;return c3(ii)}else return{kind:0,fileName:Et.referencingFile.fileName,textSpan:qx(Et.ref)}});if(_t.declarations)for(const Et of _t.declarations)switch(Et.kind){case 312:break;case 267:Xt.has(Et.getSourceFile().fileName)&&Pe.push(c3(Et.name));break;default:H.assert(!!(_t.flags&33554432),"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.")}const et=_t.exports.get("export=");if(et!=null&&et.declarations)for(const Et of et.declarations){const ii=Et.getSourceFile();if(Xt.has(ii.fileName)){const me=eu(Et)&&Ru(Et.left)?Et.left.expression:ic(Et)?H.checkDefined(a0(Et,95,ii)):Ya(Et)||Et;Pe.push(c3(me))}}return Pe.length?[{definition:{type:0,symbol:_t},references:Pe}]:Dt}function k(Qe){return Qe.kind===148&&z7(Qe.parent)&&Qe.parent.operator===148}function T(Qe,_t,Mt){if(MM(Qe.kind))return Qe.kind===116&&R7(Qe.parent)||Qe.kind===148&&!k(Qe)?void 0:Je(_t,Qe.kind,Mt,Qe.kind===148?k:void 0);if(W8(Qe.parent)&&Qe.parent.name===Qe)return He(_t,Mt);if(N7(Qe)&&zl(Qe.parent))return[{definition:{type:2,node:Qe},references:[c3(Qe)]}];if(MH(Qe)){const qt=rX(Qe.parent,Qe.text);return qt&&Ae(qt.parent,qt)}else if(Ohe(Qe))return Ae(Qe.parent,Qe);if(rw(Qe))return wa(Qe,_t,Mt);if(Qe.kind===108)return oa(Qe)}function M(Qe,_t,Mt,qt,Xt,Pe,et){const Et=_t&&J(Qe,_t,Xt,!bo(et))||Qe,ii=_t?tu(_t,Et):7,me=[],ni=new oe(Mt,qt,_t?j(_t):0,Xt,Pe,ii,et,me),xi=!bo(et)||!Et.declarations?void 0:Le(Et.declarations,th);if(xi)Gt(xi.name,Et,xi,ni.createSearch(_t,Qe,void 0),ni,!0,!0);else if(_t&&_t.kind===90&&Et.escapedName==="default"&&Et.parent)It(_t,Et,ni),se(_t,Et,{exportingModuleSymbol:Et.parent,exportKind:1},ni);else{const pt=ni.createSearch(_t,Et,void 0,{allSearchSymbols:_t?jn(Et,_t,Xt,et.use===2,!!et.providePrefixAndSuffixTextForRename,!!et.implementations):[Et]});z(Et,ni,pt)}return me}function z(Qe,_t,Mt){const qt=Se(Qe);if(qt)Ye(qt,qt.getSourceFile(),Mt,_t,!(ca(qt)&&!kt(_t.sourceFiles,qt)));else for(const Xt of _t.sourceFiles)_t.cancellationToken.throwIfCancellationRequested(),ne(Xt,Mt,_t)}function j(Qe){switch(Qe.kind){case 176:case 137:return 1;case 80:if(gr(Qe.parent))return H.assert(Qe.parent.name===Qe),2;default:return 0}}function J(Qe,_t,Mt,qt){const{parent:Xt}=_t;return th(Xt)&&qt?Yt(_t,Qe,Xt,Mt):G(Qe.declarations,Pe=>{if(!Pe.parent){if(Qe.flags&33554432)return;H.fail(`Unexpected symbol at ${H.formatSyntaxKind(_t.kind)}: ${H.formatSymbol(Qe)}`)}return fm(Pe.parent)&&Mv(Pe.parent.parent)?Mt.getPropertyOfType(Mt.getTypeFromTypeNode(Pe.parent.parent),Qe.name):void 0})}let K;(Qe=>{Qe[Qe.None=0]="None",Qe[Qe.Constructor=1]="Constructor",Qe[Qe.Class=2]="Class"})(K||(K={}));function Y(Qe){if(!(Qe.flags&33555968))return;const _t=Qe.declarations&&Le(Qe.declarations,Mt=>!ca(Mt)&&!xc(Mt));return _t&&_t.symbol}class oe{constructor(_t,Mt,qt,Xt,Pe,et,Et,ii){this.sourceFiles=_t,this.sourceFilesSet=Mt,this.specialSearchKind=qt,this.checker=Xt,this.cancellationToken=Pe,this.searchMeaning=et,this.options=Et,this.result=ii,this.inheritsFromCache=new Map,this.markSeenContainingTypeReference=i9(),this.markSeenReExportRHS=i9(),this.symbolIdToReferences=[],this.sourceFileToSeenSymbols=[]}includesSourceFile(_t){return this.sourceFilesSet.has(_t.fileName)}getImportSearches(_t,Mt){return this.importTracker||(this.importTracker=OTe(this.sourceFiles,this.sourceFilesSet,this.checker,this.cancellationToken)),this.importTracker(_t,Mt,this.options.use===2)}createSearch(_t,Mt,qt,Xt={}){const{text:Pe=q4(cc(lB(Mt)||Y(Mt)||Mt)),allSearchSymbols:et=[Mt]}=Xt,Et=Sl(Pe),ii=this.options.implementations&&_t?Qo(_t,Mt,this.checker):void 0;return{symbol:Mt,comingFrom:qt,text:Pe,escapedText:Et,parents:ii,allSearchSymbols:et,includes:me=>kt(et,me)}}referenceAdder(_t){const Mt=Yo(_t);let qt=this.symbolIdToReferences[Mt];return qt||(qt=this.symbolIdToReferences[Mt]=[],this.result.push({definition:{type:0,symbol:_t},references:qt})),(Xt,Pe)=>qt.push(c3(Xt,Pe))}addStringOrCommentReference(_t,Mt){this.result.push({definition:void 0,references:[{kind:0,fileName:_t,textSpan:Mt}]})}markSearchedSymbols(_t,Mt){const qt=Us(_t),Xt=this.sourceFileToSeenSymbols[qt]||(this.sourceFileToSeenSymbols[qt]=new Set);let Pe=!1;for(const et of Mt)Pe=Bs(Xt,Yo(et))||Pe;return Pe}}function se(Qe,_t,Mt,qt){const{importSearches:Xt,singleReferences:Pe,indirectUsers:et}=qt.getImportSearches(_t,Mt);if(Pe.length){const Et=qt.referenceAdder(_t);for(const ii of Pe)ae(ii,qt)&&Et(ii)}for(const[Et,ii]of Xt)mt(Et.getSourceFile(),qt.createSearch(Et,ii,1),qt);if(et.length){let Et;switch(Mt.exportKind){case 0:Et=qt.createSearch(Qe,_t,1);break;case 1:Et=qt.options.use===2?void 0:qt.createSearch(Qe,_t,1,{text:"default"});break}if(Et)for(const ii of et)ne(ii,Et,qt)}}function ge(Qe,_t,Mt,qt,Xt,Pe,et,Et){const ii=OTe(Qe,new Set(Qe.map(pt=>pt.fileName)),_t,Mt),{importSearches:me,indirectUsers:ni,singleReferences:xi}=ii(qt,{exportKind:et?1:0,exportingModuleSymbol:Xt},!1);for(const[pt]of me)Et(pt);for(const pt of xi)at(pt)&&nD(pt.parent)&&Et(pt);for(const pt of ni)for(const Ot of Be(pt,et?"default":Pe)){const Ei=_t.getSymbolAtLocation(Ot),$i=Ge(Ei==null?void 0:Ei.declarations,Qi=>!!ar(Qi,ic));at(Ot)&&!r7(Ot.parent)&&(Ei===qt||$i)&&Et(Ot)}}t.eachExportReference=ge;function ae(Qe,_t){return je(Qe,_t)?_t.options.use!==2?!0:at(Qe)?!(r7(Qe.parent)&&Qe.escapedText==="default"):!1:!1}function Ce(Qe,_t){if(Qe.declarations)for(const Mt of Qe.declarations){const qt=Mt.getSourceFile();mt(qt,_t.createSearch(Mt,Qe,0),_t,_t.includesSourceFile(qt))}}function ne(Qe,_t,Mt){Nme(Qe).get(_t.escapedText)!==void 0&&mt(Qe,_t,Mt)}function ve(Qe,_t){return p5(Qe.parent.parent)?_t.getPropertySymbolOfDestructuringAssignment(Qe):void 0}function Se(Qe){const{declarations:_t,flags:Mt,parent:qt,valueDeclaration:Xt}=Qe;if(Xt&&(Xt.kind===218||Xt.kind===231))return Xt;if(!_t)return;if(Mt&8196){const Et=Le(_t,ii=>Rf(ii,2)||Eh(ii));return Et?Av(Et,263):void 0}if(_t.some(JH))return;const Pe=qt&&!(Qe.flags&262144);if(Pe&&!(KH(qt)&&!qt.globalExports))return;let et;for(const Et of _t){const ii=Mk(Et);if(et&&et!==ii||!ii||ii.kind===312&&!cm(ii))return;if(et=ii,w0(et)){let me;for(;me=j0e(et);)et=me}}return Pe?et.getSourceFile():et}function Ne(Qe,_t,Mt,qt=Mt){return pe(Qe,_t,Mt,()=>!0,qt)||!1}t.isSymbolReferencedInFile=Ne;function pe(Qe,_t,Mt,qt,Xt=Mt){const Pe=Mf(Qe.parent,Qe.parent.parent)?Pn(_t.getSymbolsOfParameterPropertyDeclaration(Qe.parent,Qe.text)):_t.getSymbolAtLocation(Qe);if(Pe)for(const et of Be(Mt,Pe.name,Xt)){if(!at(et)||et===Qe||et.escapedText!==Qe.escapedText)continue;const Et=_t.getSymbolAtLocation(et);if(Et===Pe||_t.getShorthandAssignmentValueSymbol(et.parent)===Pe||th(et.parent)&&Yt(et,Et,et.parent,_t)===Pe){const ii=qt(et);if(ii)return ii}}}t.eachSymbolReferenceInFile=pe;function fe(Qe,_t){return ti(Be(_t,Qe),Xt=>!!uP(Xt)).reduce((Xt,Pe)=>{const et=qt(Pe);return!Ge(Xt.declarationNames)||et===Xt.depth?(Xt.declarationNames.push(Pe),Xt.depth=et):etni===Xt)&&qt(et,ii))return!0}return!1}t.someSignatureUsage=xe;function Be(Qe,_t,Mt=Qe){return qi(We(Qe,_t,Mt),qt=>{const Xt=af(Qe,qt);return Xt===Qe?void 0:Xt})}function We(Qe,_t,Mt=Qe){const qt=[];if(!_t||!_t.length)return qt;const Xt=Qe.text,Pe=Xt.length,et=_t.length;let Et=Xt.indexOf(_t,Mt.pos);for(;Et>=0&&!(Et>Mt.end);){const ii=Et+et;(Et===0||!_v(Xt.charCodeAt(Et-1),99))&&(ii===Pe||!_v(Xt.charCodeAt(ii),99))&&qt.push(Et),Et=Xt.indexOf(_t,Et+et+1)}return qt}function Ae(Qe,_t){const Mt=Qe.getSourceFile(),qt=_t.text,Xt=qi(Be(Mt,qt,Qe),Pe=>Pe===_t||MH(Pe)&&rX(Pe,qt)===_t?c3(Pe):void 0);return[{definition:{type:1,node:_t},references:Xt}]}function De(Qe,_t){switch(Qe.kind){case 81:if(Ov(Qe.parent))return!0;case 80:return Qe.text.length===_t.length;case 15:case 11:{const Mt=Qe;return(aX(Mt)||Khe(Qe)||eSe(Qe)||Mo(Qe.parent)&&rk(Qe.parent)&&Qe.parent.arguments[1]===Qe)&&Mt.text.length===_t.length}case 9:return aX(Qe)&&Qe.text.length===_t.length;case 90:return _t.length===7;default:return!1}}function He(Qe,_t){const Mt=Vu(Qe,qt=>(_t.throwIfCancellationRequested(),qi(Be(qt,"meta",qt),Xt=>{const Pe=Xt.parent;if(W8(Pe))return c3(Pe)})));return Mt.length?[{definition:{type:2,node:Mt[0].node},references:Mt}]:void 0}function Je(Qe,_t,Mt,qt){const Xt=Vu(Qe,Pe=>(Mt.throwIfCancellationRequested(),qi(Be(Pe,qo(_t),Pe),et=>{if(et.kind===_t&&(!qt||qt(et)))return c3(et)})));return Xt.length?[{definition:{type:2,node:Xt[0].node},references:Xt}]:void 0}function mt(Qe,_t,Mt,qt=!0){return Mt.cancellationToken.throwIfCancellationRequested(),Ye(Qe,Qe,_t,Mt,qt)}function Ye(Qe,_t,Mt,qt,Xt){if(qt.markSearchedSymbols(_t,Mt.allSearchSymbols))for(const Pe of We(_t,Mt.text,Qe))Ke(_t,Pe,Mt,qt,Xt)}function je(Qe,_t){return!!(Pk(Qe)&_t.searchMeaning)}function Ke(Qe,_t,Mt,qt,Xt){const Pe=af(Qe,_t);if(!De(Pe,Mt.text)){!qt.options.implementations&&(qt.options.findInStrings&&zk(Qe,_t)||qt.options.findInComments&&mSe(Qe,_t))&&qt.addStringOrCommentReference(Qe.fileName,h1(_t,Mt.text.length));return}if(!je(Pe,qt))return;let et=qt.checker.getSymbolAtLocation(Pe);if(!et)return;const Et=Pe.parent;if(bf(Et)&&Et.propertyName===Pe)return;if(th(Et)){H.assert(Pe.kind===80),Gt(Pe,et,Et,Mt,qt,Xt);return}const ii=Cn(Mt,et,Pe,qt);if(!ii){Bt(et,Mt,qt);return}switch(qt.specialSearchKind){case 0:Xt&&It(Pe,ii,qt);break;case 1:ei(Pe,Qe,Mt,qt);break;case 2:ft(Pe,Mt,qt);break;default:H.assertNever(qt.specialSearchKind)}Xn(Pe)&&Vs(Pe.parent)&&A2(Pe.parent.parent.parent)&&(et=Pe.parent.symbol,!et)||st(Pe,et,Mt,qt)}function Gt(Qe,_t,Mt,qt,Xt,Pe,et){H.assert(!et||!!Xt.options.providePrefixAndSuffixTextForRename,"If alwaysGetReferences is true, then prefix/suffix text must be enabled");const{parent:Et,propertyName:ii,name:me}=Mt,ni=Et.parent,xi=Yt(Qe,_t,Mt,Xt.checker);if(!et&&!qt.includes(xi))return;if(ii?Qe===ii?(ni.moduleSpecifier||pt(),Pe&&Xt.options.use!==2&&Xt.markSeenReExportRHS(me)&&It(me,H.checkDefined(Mt.symbol),Xt)):Xt.markSeenReExportRHS(Qe)&&pt():Xt.options.use===2&&me.escapedText==="default"||pt(),!bo(Xt.options)||et){const Ei=Qe.escapedText==="default"||Mt.name.escapedText==="default"?1:0,$i=H.checkDefined(Mt.symbol),Qi=jTe($i,Ei,Xt.checker);Qi&&se(Qe,$i,Qi,Xt)}if(qt.comingFrom!==1&&ni.moduleSpecifier&&!ii&&!bo(Xt.options)){const Ot=Xt.checker.getExportSpecifierLocalTargetSymbol(Mt);Ot&&Ce(Ot,Xt)}function pt(){Pe&&It(Qe,xi,Xt)}}function Yt(Qe,_t,Mt,qt){return Ie(Qe,Mt)&&qt.getExportSpecifierLocalTargetSymbol(Mt)||_t}function Ie(Qe,_t){const{parent:Mt,propertyName:qt,name:Xt}=_t;return H.assert(qt===Qe||Xt===Qe),qt?qt===Qe:!Mt.parent.moduleSpecifier}function st(Qe,_t,Mt,qt){const Xt=q0t(Qe,_t,qt.checker,Mt.comingFrom===1);if(!Xt)return;const{symbol:Pe}=Xt;Xt.kind===0?bo(qt.options)||Ce(Pe,qt):se(Qe,Pe,Xt.exportInfo,qt)}function Bt({flags:Qe,valueDeclaration:_t},Mt,qt){const Xt=qt.checker.getShorthandAssignmentValueSymbol(_t),Pe=_t&&Ya(_t);!(Qe&33554432)&&Pe&&Mt.includes(Xt)&&It(Pe,Xt,qt)}function It(Qe,_t,Mt){const{kind:qt,symbol:Xt}="kind"in _t?_t:{kind:void 0,symbol:_t};if(Mt.options.use===2&&Qe.kind===90)return;const Pe=Mt.referenceAdder(Xt);Mt.options.implementations?an(Qe,Pe,Mt):Pe(Qe,qt)}function ei(Qe,_t,Mt,qt){TM(Qe)&&It(Qe,Mt.symbol,qt);const Xt=()=>qt.referenceAdder(Mt.symbol);if(gr(Qe.parent))H.assert(Qe.kind===90||Qe.parent.name===Qe),Ut(Mt.symbol,_t,Xt());else{const Pe=Ta(Qe);Pe&&(Vi(Pe,Xt()),Jn(Pe,qt))}}function ft(Qe,_t,Mt){It(Qe,_t.symbol,Mt);const qt=Qe.parent;if(Mt.options.use===2||!gr(qt))return;H.assert(qt.name===Qe);const Xt=Mt.referenceAdder(_t.symbol);for(const Pe of qt.members)N8(Pe)&&No(Pe)&&Pe.body&&Pe.body.forEachChild(function et(Et){Et.kind===110?Xt(Et):!Co(Et)&&!gr(Et)&&Et.forEachChild(et)})}function Ut(Qe,_t,Mt){const qt=Ni(Qe);if(qt&&qt.declarations)for(const Xt of qt.declarations){const Pe=a0(Xt,137,_t);H.assert(Xt.kind===176&&!!Pe),Mt(Pe)}Qe.exports&&Qe.exports.forEach(Xt=>{const Pe=Xt.valueDeclaration;if(Pe&&Pe.kind===174){const et=Pe.body;et&&aa(et,110,Et=>{TM(Et)&&Mt(Et)})}})}function Ni(Qe){return Qe.members&&Qe.members.get("__constructor")}function Vi(Qe,_t){const Mt=Ni(Qe.symbol);if(Mt&&Mt.declarations)for(const qt of Mt.declarations){H.assert(qt.kind===176);const Xt=qt.body;Xt&&aa(Xt,108,Pe=>{zhe(Pe)&&_t(Pe)})}}function xn(Qe){return!!Ni(Qe.symbol)}function Jn(Qe,_t){if(xn(Qe))return;const Mt=Qe.symbol,qt=_t.createSearch(void 0,Mt,void 0);z(Mt,_t,qt)}function an(Qe,_t,Mt){if(X3(Qe)&&sa(Qe.parent)){_t(Qe);return}if(Qe.kind!==80)return;Qe.parent.kind===304&&xa(Qe,Mt.checker,_t);const qt=Pi(Qe);if(qt){_t(qt);return}const Xt=Tn(Qe,Et=>!vf(Et.parent)&&!Xr(Et.parent)&&!Zy(Et.parent)),Pe=Xt.parent;if(UU(Pe)&&Pe.type===Xt&&Mt.markSeenContainingTypeReference(Pe))if(Nx(Pe))et(Pe.initializer);else if(Co(Pe)&&Pe.body){const Et=Pe.body;Et.kind===241?k2(Et,ii=>{ii.expression&&et(ii.expression)}):et(Et)}else Yy(Pe)&&et(Pe.expression);function et(Et){Fi(Et)&&_t(Et)}}function Pi(Qe){return at(Qe)||Ru(Qe)?Pi(Qe.parent):c5(Qe)?ar(Qe.parent.parent,dg(gr,Ch)):void 0}function Fi(Qe){switch(Qe.kind){case 217:return Fi(Qe.expression);case 219:case 218:case 210:case 231:case 209:return!0;default:return!1}}function Yu(Qe,_t,Mt,qt){if(Qe===_t)return!0;const Xt=Yo(Qe)+","+Yo(_t),Pe=Mt.get(Xt);if(Pe!==void 0)return Pe;Mt.set(Xt,!1);const et=!!Qe.declarations&&Qe.declarations.some(Et=>rP(Et).some(ii=>{const me=qt.getTypeAtLocation(ii);return!!me&&!!me.symbol&&Yu(me.symbol,_t,Mt,qt)}));return Mt.set(Xt,et),et}function oa(Qe){let _t=mj(Qe,!1);if(!_t)return;let Mt=256;switch(_t.kind){case 172:case 171:case 174:case 173:case 176:case 177:case 178:Mt&=Rx(_t),_t=_t.parent;break;default:return}const qt=_t.getSourceFile(),Xt=qi(Be(qt,"super",_t),Pe=>{if(Pe.kind!==108)return;const et=mj(Pe,!1);return et&&No(et)===!!Mt&&et.parent.symbol===_t.symbol?c3(Pe):void 0});return[{definition:{type:0,symbol:_t.symbol},references:Xt}]}function Fr(Qe){return Qe.kind===80&&Qe.parent.kind===169&&Qe.parent.name===Qe}function wa(Qe,_t,Mt){let qt=tf(Qe,!1,!1),Xt=256;switch(qt.kind){case 174:case 173:if(Ip(qt)){Xt&=Rx(qt),qt=qt.parent;break}case 172:case 171:case 176:case 177:case 178:Xt&=Rx(qt),qt=qt.parent;break;case 312:if(Lc(qt)||Fr(Qe))return;case 262:case 218:break;default:return}const Pe=Vu(qt.kind===312?_t:[qt.getSourceFile()],Et=>(Mt.throwIfCancellationRequested(),Be(Et,"this",ca(qt)?Et:qt).filter(ii=>{if(!rw(ii))return!1;const me=tf(ii,!1,!1);if(!Yg(me))return!1;switch(qt.kind){case 218:case 262:return qt.symbol===me.symbol;case 174:case 173:return Ip(qt)&&qt.symbol===me.symbol;case 231:case 263:case 210:return me.parent&&Yg(me.parent)&&qt.symbol===me.parent.symbol&&No(me)===!!Xt;case 312:return me.kind===312&&!Lc(me)&&!Fr(ii)}}))).map(Et=>c3(Et));return[{definition:{type:3,node:G(Pe,Et=>io(Et.node.parent)?Et.node:void 0)||Qe},references:Pe}]}function bt(Qe,_t,Mt,qt){const Xt=cX(Qe,Mt),Pe=Vu(_t,et=>(qt.throwIfCancellationRequested(),qi(Be(et,Qe.text),Et=>{if(i0(Et)&&Et.text===Qe.text)if(Xt){const ii=cX(Et,Mt);if(Xt!==Mt.getStringType()&&Xt===ii)return c3(Et,2)}else return T7(Et)&&!hk(Et,et)?void 0:c3(Et,2)})));return[{definition:{type:4,node:Qe},references:Pe}]}function jn(Qe,_t,Mt,qt,Xt,Pe){const et=[];return Ln(Qe,_t,Mt,qt,!(qt&&Xt),(Et,ii,me)=>{me&&Dn(Qe)!==Dn(me)&&(me=void 0),et.push(me||ii||Et)},()=>!Pe),et}function Ln(Qe,_t,Mt,qt,Xt,Pe,et){const Et=DK(_t);if(Et){const Ei=Mt.getShorthandAssignmentValueSymbol(_t.parent);if(Ei&&qt)return Pe(Ei,void 0,void 0,3);const $i=Mt.getContextualType(Et.parent),Qi=$i&&G(xee(Et,Mt,$i,!0),we=>pt(we,4));if(Qi)return Qi;const on=ve(_t,Mt),le=on&&Pe(on,void 0,void 0,4);if(le)return le;const te=Ei&&Pe(Ei,void 0,void 0,3);if(te)return te}const ii=p(_t,Qe,Mt);if(ii){const Ei=Pe(ii,void 0,void 0,1);if(Ei)return Ei}const me=pt(Qe);if(me)return me;if(Qe.valueDeclaration&&Mf(Qe.valueDeclaration,Qe.valueDeclaration.parent)){const Ei=Mt.getSymbolsOfParameterPropertyDeclaration(Po(Qe.valueDeclaration,io),Qe.name);return H.assert(Ei.length===2&&!!(Ei[0].flags&1)&&!!(Ei[1].flags&4)),pt(Qe.flags&1?Ei[1]:Ei[0])}const ni=Bl(Qe,281);if(!qt||ni&&!ni.propertyName){const Ei=ni&&Mt.getExportSpecifierLocalTargetSymbol(ni);if(Ei){const $i=Pe(Ei,void 0,void 0,1);if($i)return $i}}if(!qt){let Ei;return Xt?Ei=JH(_t.parent)?yX(Mt,_t.parent):void 0:Ei=Ot(Qe,Mt),Ei&&pt(Ei,4)}if(H.assert(qt),Xt){const Ei=Ot(Qe,Mt);return Ei&&pt(Ei,4)}function pt(Ei,$i){return G(Mt.getRootSymbols(Ei),Qi=>Pe(Ei,Qi,void 0,$i)||(Qi.parent&&Qi.parent.flags&96&&et(Qi)?Ai(Qi.parent,Qi.name,Mt,on=>Pe(Ei,Qi,on,$i)):void 0))}function Ot(Ei,$i){const Qi=Bl(Ei,208);if(Qi&&JH(Qi))return yX($i,Qi)}}function Ai(Qe,_t,Mt,qt){const Xt=new Map;return Pe(Qe);function Pe(et){if(!(!(et.flags&96)||!Rp(Xt,Yo(et))))return G(et.declarations,Et=>G(rP(Et),ii=>{const me=Mt.getTypeAtLocation(ii),ni=me&&me.symbol&&Mt.getPropertyOfType(me,_t);return me&&ni&&(G(Mt.getRootSymbols(ni),qt)||Pe(me.symbol))}))}}function Dn(Qe){return Qe.valueDeclaration?!!(Dh(Qe.valueDeclaration)&256):!1}function Cn(Qe,_t,Mt,qt){const{checker:Xt}=qt;return Ln(_t,Mt,Xt,!1,qt.options.use!==2||!!qt.options.providePrefixAndSuffixTextForRename,(Pe,et,Et,ii)=>(Et&&Dn(_t)!==Dn(Et)&&(Et=void 0),Qe.includes(Et||et||Pe)?{symbol:et&&!(Gl(Pe)&6)?et:Pe,kind:ii}:void 0),Pe=>!(Qe.parents&&!Qe.parents.some(et=>Yu(Pe.parent,et,qt.inheritsFromCache,Xt))))}function tu(Qe,_t){let Mt=Pk(Qe);const{declarations:qt}=_t;if(qt){let Xt;do{Xt=Mt;for(const Pe of qt){const et=LH(Pe);et&Mt&&(Mt|=et)}}while(Mt!==Xt)}return Mt}t.getIntersectingMeaningFromDeclarations=tu;function sa(Qe){return Qe.flags&33554432?!(Ch(Qe)||Vp(Qe)):G8(Qe)?Nx(Qe):U0(Qe)?!!Qe.body:gr(Qe)||XO(Qe)}function xa(Qe,_t,Mt){const qt=_t.getSymbolAtLocation(Qe),Xt=_t.getShorthandAssignmentValueSymbol(qt.valueDeclaration);if(Xt)for(const Pe of Xt.getDeclarations())LH(Pe)&1&&Mt(Pe)}t.getReferenceEntriesForShorthandPropertyAssignment=xa;function aa(Qe,_t,Mt){ao(Qe,qt=>{qt.kind===_t&&Mt(qt),aa(qt,_t,Mt)})}function Ta(Qe){return cle(uX(Qe).parent)}function Qo(Qe,_t,Mt){const qt=uw(Qe)?Qe.parent:void 0,Xt=qt&&Mt.getTypeAtLocation(qt.expression),Pe=qi(Xt&&(Xt.isUnionOrIntersection()?Xt.types:Xt.symbol===_t.parent?void 0:[Xt]),et=>et.symbol&&et.symbol.flags&96?et.symbol:void 0);return Pe.length===0?void 0:Pe}function bo(Qe){return Qe.use===2&&Qe.providePrefixAndSuffixTextForRename}})(f9||(f9={}))}}),Y0={};h(Y0,{Core:()=>f9,DefinitionKind:()=>$Te,EntryKind:()=>UTe,ExportKind:()=>HTe,FindReferencesUse:()=>qTe,ImportExport:()=>KTe,createImportTracker:()=>OTe,findModuleReferences:()=>J0t,findReferenceOrRenameEntries:()=>PUt,findReferencedSymbols:()=>TUt,getContextNode:()=>Vk,getExportInfo:()=>jTe,getImplementationsAtPosition:()=>NUt,getImportOrExportSymbol:()=>q0t,getReferenceEntriesForNode:()=>Q0t,getTextSpanOfEntry:()=>GTe,isContextWithStartAndEndNode:()=>Z0t,isDeclarationOfSymbol:()=>ilt,isWriteAccessForReference:()=>JTe,nodeEntry:()=>c3,toContextSpan:()=>WTe,toHighlightSpan:()=>VUt,toReferenceEntry:()=>tlt,toRenameLocation:()=>zUt});var nlt=o({"src/services/_namespaces/ts.FindAllReferences.ts"(){BUt(),KUt()}});function ult(t,u,s,d,f){var p;const E=alt(u,s,t),v=E&&[eqt(E.reference.fileName,E.fileName,E.unverified)]||Dt;if(E!=null&&E.file)return v;const b=af(u,s);if(b===u)return;const{parent:B}=b,k=t.getTypeChecker();if(b.kind===164||at(b)&&_Y(B)&&B.tagName===b)return GUt(k,b)||Dt;if(MH(b)){const K=rX(b.parent,b.text);return K?[ZTe(k,K,"label",b.text,void 0)]:void 0}if(b.kind===107){const K=Tn(b.parent,Y=>zl(Y)?"quit":U0(Y));return K?[jee(k,K)]:void 0}if(b.kind===135){const K=Tn(b,oe=>U0(oe));return K&&Ge(K.modifiers,oe=>oe.kind===134)?[jee(k,K)]:void 0}if(b.kind===127){const K=Tn(b,oe=>U0(oe));return K&&K.asteriskToken?[jee(k,K)]:void 0}if(N7(b)&&zl(b.parent)){const K=b.parent.parent,{symbol:Y,failedAliasResolution:oe}=Bpe(K,k,f),se=ti(K.members,zl),ge=Y?k.symbolToString(Y,K):"",ae=b.getSourceFile();return Vt(se,Ce=>{let{pos:ne}=nE(Ce);return ne=gs(ae.text,ne),ZTe(k,Ce,"constructor","static {}",ge,!1,oe,{start:ne,length:6})})}let{symbol:T,failedAliasResolution:M}=Bpe(b,k,f),z=b;if(d&&M){const K=L([b,...(T==null?void 0:T.declarations)||Dt],oe=>Tn(oe,Vbe)),Y=K&&Z8(K);Y&&({symbol:T,failedAliasResolution:M}=Bpe(Y,k,f),z=Y)}if(!T&&bX(z)){const K=(p=t.getResolvedModule(u,z.text,xg(u,z)))==null?void 0:p.resolvedModule;if(K)return[{name:z.text,fileName:K.resolvedFileName,containerName:void 0,containerKind:void 0,kind:"script",textSpan:h1(0,0),failedAliasResolution:M,isAmbient:t1(K.resolvedFileName),unverified:z!==b}]}if(!T)return mi(v,YUt(b,k));if(d&&ye(T.declarations,K=>K.getSourceFile().fileName===u.fileName))return;const j=iqt(k,b);if(j&&!(Ih(b.parent)&&nqt(j))){const K=jee(k,j,M);if(k.getRootSymbols(T).some(Y=>WUt(Y,j)))return[K];{const Y=XM(k,T,b,M,j)||Dt;return b.kind===108?[K,...Y]:[...Y,K]}}if(b.parent.kind===304){const K=k.getShorthandAssignmentValueSymbol(T.valueDeclaration),Y=K!=null&&K.declarations?K.declarations.map(oe=>TK(oe,k,K,b,!1,M)):Dt;return mi(Y,rlt(k,b))}if(wc(b)&&Vs(B)&&Op(B.parent)&&b===(B.propertyName||B.name)){const K=GH(b),Y=k.getTypeAtLocation(B.parent);return K===void 0?Dt:Vu(Y.isUnion()?Y.types:[Y],oe=>{const se=oe.getProperty(K);return se&&XM(k,se,b)})}const J=rlt(k,b);return mi(v,J.length?J:XM(k,T,b,M))}function WUt(t,u){var s;return t===u.symbol||t===u.symbol.parent||ld(u.parent)||!x2(u.parent)&&t===((s=ar(u.parent,Yg))==null?void 0:s.symbol)}function rlt(t,u){const s=DK(u);if(s){const d=s&&t.getContextualType(s.parent);if(d)return Vu(xee(s,t,d,!1),f=>XM(t,f,u))}return Dt}function GUt(t,u){const s=Tn(u,Yd);if(!(s&&s.name))return;const d=Tn(s,gr);if(!d)return;const f=Xg(d);if(!f)return;const p=l0(f.expression),E=e1(p)?p.symbol:t.getSymbolAtLocation(p);if(!E)return;const v=Qr(V8(s.name)),b=Gc(s)?t.getPropertyOfType(t.getTypeOfSymbol(E),v):t.getPropertyOfType(t.getDeclaredTypeOfSymbol(E),v);if(b)return XM(t,b,u)}function alt(t,u,s){var d,f;const p=ez(t.referencedFiles,u);if(p){const b=s.getSourceFileFromReference(t,p);return b&&{reference:p,fileName:b.fileName,file:b,unverified:!1}}const E=ez(t.typeReferenceDirectives,u);if(E){const b=(d=s.getResolvedTypeReferenceDirectives().get(E.fileName,E.resolutionMode||t.impliedNodeFormat))==null?void 0:d.resolvedTypeReferenceDirective,B=b&&s.getSourceFile(b.resolvedFileName);return B&&{reference:E,fileName:B.fileName,file:B,unverified:!1}}const v=ez(t.libReferenceDirectives,u);if(v){const b=s.getLibFileFromReference(v);return b&&{reference:v,fileName:b.fileName,file:b,unverified:!1}}if(t.imports.length||t.moduleAugmentations.length){const b=NM(t,u);let B;if(bX(b)&&Id(b.text)&&(B=s.getResolvedModule(t,b.text,xg(t,b)))){const k=(f=B.resolvedModule)==null?void 0:f.resolvedFileName,T=k||kx(dr(t.fileName),b.text);return{file:s.getSourceFile(T),fileName:T,reference:{pos:b.getStart(),end:b.getEnd(),fileName:b.text},unverified:!k}}}}function JUt(t,u){const s=u.symbol.name;if(!QTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.target.symbol}function olt(t,u){if(!u.aliasSymbol)return!1;const s=u.aliasSymbol.name;if(!QTe.has(s))return!1;const d=t.resolveName(s,void 0,788968,!1);return!!d&&d===u.aliasSymbol}function $Ut(t,u,s,d){var f,p;if(Ju(u)&4&&JUt(t,u))return wK(t.getTypeArguments(u)[0],t,s,d);if(olt(t,u)&&u.aliasTypeArguments)return wK(u.aliasTypeArguments[0],t,s,d);if(Ju(u)&32&&u.target&&olt(t,u.target)){const E=(p=(f=u.aliasSymbol)==null?void 0:f.declarations)==null?void 0:p[0];if(E&&Vp(E)&&tp(E.type)&&E.type.typeArguments)return wK(t.getTypeAtLocation(E.type.typeArguments[0]),t,s,d)}return[]}function UUt(t,u,s){const d=af(u,s);if(d===u)return;if(W8(d.parent)&&d.parent.name===d)return wK(t.getTypeAtLocation(d.parent),t,d.parent,!1);const{symbol:f,failedAliasResolution:p}=Bpe(d,t,!1);if(!f)return;const E=t.getTypeOfSymbolAtLocation(f,d),v=qUt(f,E,t),b=v&&wK(v,t,d,p),[B,k]=b&&b.length!==0?[v,b]:[E,wK(E,t,d,p)];return k.length?[...$Ut(t,B,d,p),...k]:!(f.flags&111551)&&f.flags&788968?XM(t,eh(f,t),d,p):void 0}function wK(t,u,s,d){return Vu(t.isUnion()&&!(t.flags&32)?t.types:[t],f=>f.symbol&&XM(u,f.symbol,s,d))}function qUt(t,u,s){if(u.symbol===t||t.valueDeclaration&&u.symbol&&ra(t.valueDeclaration)&&t.valueDeclaration.initializer===u.symbol.valueDeclaration){const d=u.getCallSignatures();if(d.length===1)return s.getReturnTypeOfSignature(Pn(d))}}function ZUt(t,u,s){const d=ult(t,u,s);if(!d||d.length===0)return;const f=ez(u.referencedFiles,s)||ez(u.typeReferenceDirectives,s)||ez(u.libReferenceDirectives,s);if(f)return{definitions:d,textSpan:qx(f)};const p=af(u,s),E=h1(p.getStart(),p.getWidth());return{definitions:d,textSpan:E}}function YUt(t,u){return qi(u.getIndexInfosAtLocation(t),s=>s.declaration&&jee(u,s.declaration))}function Bpe(t,u,s){const d=u.getSymbolAtLocation(t);let f=!1;if(d!=null&&d.declarations&&d.flags&2097152&&!s&&QUt(t,d.declarations[0])){const p=u.getAliasedSymbol(d);if(p.declarations)return{symbol:p};f=!0}return{symbol:d,failedAliasResolution:f}}function QUt(t,u){return t.kind!==80?!1:t.parent===u?!0:u.kind!==274}function XUt(t){if(!tP(t))return!1;const u=Tn(t,s=>ld(s)?!0:tP(s)?!1:"quit");return!!u&&ec(u)===5}function XM(t,u,s,d,f){const p=ti(u.declarations,T=>T!==f),E=ti(p,T=>!XUt(T)),v=Ge(E)?E:p;return b()||B()||Vt(v,T=>TK(T,t,u,s,!1,d));function b(){if(u.flags&32&&!(u.flags&19)&&(TM(s)||s.kind===137)){const T=Le(p,gr)||H.fail("Expected declaration to have at least one class-like declaration");return k(T.members,!0)}}function B(){return Ihe(s)||Whe(s)?k(p,!1):void 0}function k(T,M){if(!T)return;const z=T.filter(M?fc:Co),j=z.filter(J=>!!J.body);return z.length?j.length!==0?j.map(J=>TK(J,t,u,s)):[TK(yr(z),t,u,s,!1,d)]:void 0}}function TK(t,u,s,d,f,p){const E=u.symbolToString(s),v=x5.getSymbolKind(u,s,d),b=s.parent?u.symbolToString(s.parent,d):"";return ZTe(u,t,v,E,b,f,p)}function ZTe(t,u,s,d,f,p,E,v){const b=u.getSourceFile();if(!v){const B=Ya(u)||u;v=of(B,b)}return{fileName:b.fileName,textSpan:v,kind:s,name:d,containerKind:void 0,containerName:f,...Y0.toContextSpan(v,b,Y0.getContextNode(u)),isLocal:!YTe(t,u),isAmbient:!!(u.flags&33554432),unverified:p,failedAliasResolution:E}}function YTe(t,u){if(t.isDeclarationVisible(u))return!0;if(!u.parent)return!1;if(Nx(u.parent)&&u.parent.initializer===u)return YTe(t,u.parent);switch(u.kind){case 172:case 177:case 178:case 174:if(Rf(u,2))return!1;case 176:case 303:case 304:case 210:case 231:case 219:case 218:return YTe(t,u.parent);default:return!1}}function jee(t,u,s){return TK(u,t,u.symbol,u,!1,s)}function ez(t,u){return Le(t,s=>RO(s,u))}function eqt(t,u,s){return{fileName:u,textSpan:Kc(0,0),kind:"script",name:t,containerName:void 0,containerKind:void 0,unverified:s}}function tqt(t){const u=Tn(t,d=>!uw(d)),s=u==null?void 0:u.parent;return s&&x2(s)&&Eq(s)===u?s:void 0}function iqt(t,u){const s=tqt(u),d=s&&t.getResolvedSignature(s);return ar(d&&d.declaration,f=>Co(f)&&!r3(f))}function nqt(t){switch(t.kind){case 176:case 185:case 180:return!0;default:return!1}}var QTe,uqt=o({"src/services/goToDefinition.ts"(){or(),QTe=new Set(["Array","ArrayLike","ReadonlyArray","Promise","PromiseLike","Iterable","IterableIterator","AsyncIterable","Set","WeakSet","ReadonlySet","Map","WeakMap","ReadonlyMap","Partial","Required","Readonly","Pick","Omit"])}}),Cw={};h(Cw,{createDefinitionInfo:()=>TK,findReferenceInPosition:()=>ez,getDefinitionAndBoundSpan:()=>ZUt,getDefinitionAtPosition:()=>ult,getReferenceAtPosition:()=>alt,getTypeDefinitionAtPosition:()=>UUt});var rqt=o({"src/services/_namespaces/ts.GoToDefinition.ts"(){uqt()}});function aqt(t){return t.includeInlayParameterNameHints==="literals"||t.includeInlayParameterNameHints==="all"}function oqt(t){return t.includeInlayParameterNameHints==="literals"}function slt(t){return t.interactiveInlayHints===!0}function sqt(t){const{file:u,program:s,span:d,cancellationToken:f,preferences:p}=t,E=u.text,v=s.getCompilerOptions(),b=Km(u,p),B=s.getTypeChecker(),k=[];return T(u),k;function T(Ae){if(!(!Ae||Ae.getFullWidth()===0)){switch(Ae.kind){case 267:case 263:case 264:case 262:case 231:case 218:case 174:case 219:f.throwIfCancellationRequested()}if(LU(d,Ae.pos,Ae.getFullWidth())&&!(Xr(Ae)&&!c5(Ae)))return p.includeInlayVariableTypeHints&&ra(Ae)||p.includeInlayPropertyDeclarationTypeHints&&ko(Ae)?oe(Ae):p.includeInlayEnumMemberValueHints&&$2(Ae)?K(Ae):aqt(p)&&(Mo(Ae)||V2(Ae))?se(Ae):(p.includeInlayFunctionParameterTypeHints&&U0(Ae)&&pZ(Ae)&&Se(Ae),p.includeInlayFunctionLikeReturnTypeHints&&M(Ae)&&ne(Ae)),ao(Ae,T)}}function M(Ae){return Z0(Ae)||w0(Ae)||td(Ae)||hc(Ae)||Im(Ae)}function z(Ae,De,He,Je){let mt=`${Je?"...":""}${Ae}`,Ye;slt(p)?(Ye=[We(mt,De),{text:":"}],mt=""):mt+=":",k.push({text:mt,position:He,kind:"Parameter",whitespaceAfter:!0,displayParts:Ye})}function j(Ae,De){k.push({text:typeof Ae=="string"?`: ${Ae}`:"",displayParts:typeof Ae=="string"?void 0:[{text:": "},...Ae],position:De,kind:"Type",whitespaceBefore:!0})}function J(Ae,De){k.push({text:`= ${Ae}`,position:De,kind:"Enum",whitespaceBefore:!0})}function K(Ae){if(Ae.initializer)return;const De=B.getConstantValue(Ae);De!==void 0&&J(De.toString(),Ae.end)}function Y(Ae){return Ae.symbol&&Ae.symbol.flags&1536}function oe(Ae){if(!Ae.initializer||So(Ae.name)||ra(Ae)&&!Be(Ae)||m1(Ae))return;const He=B.getTypeAtLocation(Ae);if(Y(He))return;const Je=fe(He);if(Je){const mt=typeof Je=="string"?Je:Je.map(je=>je.text).join("");if(p.includeInlayVariableTypeHintsWhenTypeMatchesName===!1&&QA(Ae.name.getText(),mt))return;j(Je,Ae.name.end)}}function se(Ae){const De=Ae.arguments;if(!De||!De.length)return;const He=[],Je=B.getResolvedSignatureForSignatureHelp(Ae,He);if(!Je||!He.length)return;let mt=0;for(const Ye of De){const je=l0(Ye);if(oqt(p)&&!Ce(je)){mt++;continue}let Ke=0;if(rE(je)){const Yt=B.getTypeAtLocation(je.expression);if(B.isTupleType(Yt)){const{elementFlags:Ie,fixedLength:st}=Yt.target;if(st===0)continue;const Bt=Ue(Ie,ei=>!(ei&1));(Bt<0?st:Bt)>0&&(Ke=Bt<0?st:Bt)}}const Gt=B.getParameterIdentifierInfoAtPosition(Je,mt);if(mt=mt+(Ke||1),Gt){const{parameter:Yt,parameterName:Ie,isRestParameter:st}=Gt;if(!(p.includeInlayParameterNameHintsWhenArgumentMatchesName||!ge(je,Ie))&&!st)continue;const It=Qr(Ie);if(ae(je,It))continue;z(It,Yt,Ye.getStart(),st)}}}function ge(Ae,De){return at(Ae)?Ae.text===De:Ru(Ae)?Ae.name.text===De:!1}function ae(Ae,De){if(!Nm(De,v.target,Qj(u.scriptKind)))return!1;const He=G_(E,Ae.pos);if(!(He!=null&&He.length))return!1;const Je=llt(De);return Ge(He,mt=>Je.test(E.substring(mt.pos,mt.end)))}function Ce(Ae){switch(Ae.kind){case 224:{const De=Ae.operand;return _2(De)||at(De)&&NP(De.escapedText)}case 112:case 97:case 106:case 15:case 228:return!0;case 80:{const De=Ae.escapedText;return xe(De)||NP(De)}}return _2(Ae)}function ne(Ae){if(Z0(Ae)&&!a0(Ae,21,u)||Z4(Ae)||!Ae.body)return;const He=B.getSignatureFromDeclaration(Ae);if(!He)return;const Je=B.getReturnTypeOfSignature(He);if(Y(Je))return;const mt=fe(Je);mt&&j(mt,ve(Ae))}function ve(Ae){const De=a0(Ae,22,u);return De?De.end:Ae.parameters.end}function Se(Ae){const De=B.getSignatureFromDeclaration(Ae);if(De)for(let He=0;He{const mt=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(mt,"should always get typenode"),He.writeNode(4,mt,u,Je)})}function fe(Ae){if(!slt(p))return pe(Ae);const He=B.typeToTypeNode(Ae,void 0,71286784);H.assertIsDefined(He,"should always get typenode");const Je=[];return mt(He),Je;function mt(Ke){if(!Ke)return;const Gt=qo(Ke.kind);if(Gt){Je.push({text:Gt});return}if(_2(Ke)){Je.push({text:je(Ke)});return}switch(Ke.kind){case 80:const Yt=Ke,Ie=fu(Yt),st=Yt.symbol&&Yt.symbol.declarations&&Yt.symbol.declarations.length&&Ya(Yt.symbol.declarations[0]);st?Je.push(We(Ie,st)):Je.push({text:Ie});break;case 166:const Bt=Ke;mt(Bt.left),Je.push({text:"."}),mt(Bt.right);break;case 182:const It=Ke;It.assertsModifier&&Je.push({text:"asserts "}),mt(It.parameterName),It.type&&(Je.push({text:" is "}),mt(It.type));break;case 183:const ei=Ke;mt(ei.typeName),ei.typeArguments&&(Je.push({text:"<"}),Ye(ei.typeArguments,", "),Je.push({text:">"}));break;case 168:const ft=Ke;ft.modifiers&&Ye(ft.modifiers," "),mt(ft.name),ft.constraint&&(Je.push({text:" extends "}),mt(ft.constraint)),ft.default&&(Je.push({text:" = "}),mt(ft.default));break;case 169:const Ut=Ke;Ut.modifiers&&Ye(Ut.modifiers," "),Ut.dotDotDotToken&&Je.push({text:"..."}),mt(Ut.name),Ut.questionToken&&Je.push({text:"?"}),Ut.type&&(Je.push({text:": "}),mt(Ut.type));break;case 185:const Ni=Ke;Je.push({text:"new "}),Ni.typeParameters&&(Je.push({text:"<"}),Ye(Ni.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(Ni.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),mt(Ni.type);break;case 186:const Vi=Ke;Je.push({text:"typeof "}),mt(Vi.exprName),Vi.typeArguments&&(Je.push({text:"<"}),Ye(Vi.typeArguments,", "),Je.push({text:">"}));break;case 187:const xn=Ke;Je.push({text:"{"}),xn.members.length&&(Je.push({text:" "}),Ye(xn.members,"; "),Je.push({text:" "})),Je.push({text:"}"});break;case 188:mt(Ke.elementType),Je.push({text:"[]"});break;case 189:Je.push({text:"["}),Ye(Ke.elements,", "),Je.push({text:"]"});break;case 202:const Jn=Ke;Jn.dotDotDotToken&&Je.push({text:"..."}),mt(Jn.name),Jn.questionToken&&Je.push({text:"?"}),Je.push({text:": "}),mt(Jn.type);break;case 190:mt(Ke.type),Je.push({text:"?"});break;case 191:Je.push({text:"..."}),mt(Ke.type);break;case 192:Ye(Ke.types," | ");break;case 193:Ye(Ke.types," & ");break;case 194:const an=Ke;mt(an.checkType),Je.push({text:" extends "}),mt(an.extendsType),Je.push({text:" ? "}),mt(an.trueType),Je.push({text:" : "}),mt(an.falseType);break;case 195:Je.push({text:"infer "}),mt(Ke.typeParameter);break;case 196:Je.push({text:"("}),mt(Ke.type),Je.push({text:")"});break;case 198:const Pi=Ke;Je.push({text:`${qo(Pi.operator)} `}),mt(Pi.type);break;case 199:const Fi=Ke;mt(Fi.objectType),Je.push({text:"["}),mt(Fi.indexType),Je.push({text:"]"});break;case 200:const Yu=Ke;Je.push({text:"{ "}),Yu.readonlyToken&&(Yu.readonlyToken.kind===40?Je.push({text:"+"}):Yu.readonlyToken.kind===41&&Je.push({text:"-"}),Je.push({text:"readonly "})),Je.push({text:"["}),mt(Yu.typeParameter),Yu.nameType&&(Je.push({text:" as "}),mt(Yu.nameType)),Je.push({text:"]"}),Yu.questionToken&&(Yu.questionToken.kind===40?Je.push({text:"+"}):Yu.questionToken.kind===41&&Je.push({text:"-"}),Je.push({text:"?"})),Je.push({text:": "}),Yu.type&&mt(Yu.type),Je.push({text:"; }"});break;case 201:mt(Ke.literal);break;case 184:const oa=Ke;oa.typeParameters&&(Je.push({text:"<"}),Ye(oa.typeParameters,", "),Je.push({text:">"})),Je.push({text:"("}),Ye(oa.parameters,", "),Je.push({text:")"}),Je.push({text:" => "}),mt(oa.type);break;case 205:const Fr=Ke;Fr.isTypeOf&&Je.push({text:"typeof "}),Je.push({text:"import("}),mt(Fr.argument),Fr.assertions&&(Je.push({text:", { assert: "}),Ye(Fr.assertions.assertClause.elements,", "),Je.push({text:" }"})),Je.push({text:")"}),Fr.qualifier&&(Je.push({text:"."}),mt(Fr.qualifier)),Fr.typeArguments&&(Je.push({text:"<"}),Ye(Fr.typeArguments,", "),Je.push({text:">"}));break;case 171:const wa=Ke;wa.modifiers&&Ye(wa.modifiers," "),mt(wa.name),wa.questionToken&&Je.push({text:"?"}),wa.type&&(Je.push({text:": "}),mt(wa.type));break;default:H.failBadSyntaxKind(Ke)}}function Ye(Ke,Gt){Ke.forEach((Yt,Ie)=>{Ie>0&&Je.push({text:Gt}),mt(Yt)})}function je(Ke){return rs(Ke)?b===0?`'${Sv(Ke.text,39)}'`:`"${Sv(Ke.text,34)}"`:Ke.text}}function xe(Ae){return Ae==="undefined"}function Be(Ae){if((T2(Ae)||ra(Ae)&&K8(Ae))&&Ae.initializer){const De=l0(Ae.initializer);return!(Ce(De)||V2(De)||ys(De)||Yy(De))}return!0}function We(Ae,De){const He=De.getSourceFile();return{text:Ae,span:of(De,He),file:He.fileName}}}var llt,lqt=o({"src/services/inlayHints.ts"(){or(),llt=t=>new RegExp(`^\\s?/\\*\\*?\\s?${t}\\s?\\*\\/\\s?$`)}}),wpe={};h(wpe,{provideInlayHints:()=>sqt});var cqt=o({"src/services/_namespaces/ts.InlayHints.ts"(){lqt()}});function dqt(t,u){const s=[];return dfe(t,d=>{for(const f of fqt(d)){const p=Hp(f)&&f.tags&&Le(f.tags,v=>v.kind===334&&(v.tagName.escapedText==="inheritDoc"||v.tagName.escapedText==="inheritdoc"));if(f.comment===void 0&&!p||Hp(f)&&d.kind!==353&&d.kind!==345&&f.tags&&f.tags.some(v=>v.kind===353||v.kind===345)&&!f.tags.some(v=>v.kind===348||v.kind===349))continue;let E=f.comment?bw(f.comment,u):[];p&&p.comment&&(E=E.concat(bw(p.comment,u))),kt(s,E,hqt)||s.push(E)}}),Ha(_e(s,[lw()]))}function hqt(t,u){return Zt(t,u,(s,d)=>s.kind===d.kind&&s.text===d.text)}function fqt(t){switch(t.kind){case 348:case 355:return[t];case 345:case 353:return[t,t.parent];case 330:if(NB(t.parent))return[t.parent.parent];default:return O0e(t)}}function mqt(t,u){const s=[];return dfe(t,d=>{const f=bv(d);if(!(f.some(p=>p.kind===353||p.kind===345)&&!f.some(p=>p.kind===348||p.kind===349)))for(const p of f)s.push({name:p.tagName.text,text:clt(p,u)}),GO(p)&&p.isNameFirst&&p.typeExpression&&K7(p.typeExpression.type)&&L(p.typeExpression.type.jsDocPropertyTags,E=>{s.push({name:E.tagName.text,text:clt(E,u)})})}),s}function bw(t,u){return typeof t=="string"?[Wm(t)]:Vu(t,s=>s.kind===328?[Wm(s.text)]:kSe(s,u))}function clt(t,u){const{comment:s,kind:d}=t,f=pqt(d);switch(d){case 356:const v=t.typeExpression;return v?p(v):s===void 0?void 0:bw(s,u);case 336:return p(t.class);case 335:return p(t.class);case 352:const b=t,B=[];if(b.constraint&&B.push(Wm(b.constraint.getText())),S(b.typeParameters)){S(B)&&B.push($l());const T=b.typeParameters[b.typeParameters.length-1];L(b.typeParameters,M=>{B.push(f(M.getText())),T!==M&&B.push(nh(28),$l())})}return s&&B.push($l(),...bw(s,u)),B;case 351:case 357:return p(t.typeExpression);case 353:case 345:case 355:case 348:case 354:const{name:k}=t;return k?p(k):s===void 0?void 0:bw(s,u);default:return s===void 0?void 0:bw(s,u)}function p(v){return E(v.getText())}function E(v){return s?v.match(/^https?$/)?[Wm(v),...bw(s,u)]:[f(v),$l(),...bw(s,u)]:[Wm(v)]}}function pqt(t){switch(t){case 348:return xSe;case 355:return vSe;case 352:return bSe;case 353:case 345:return CSe;default:return Wm}}function gqt(){return hlt||(hlt=Vt(eLe,t=>({name:t,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function Eqt(){return flt||(flt=Vt(eLe,t=>({name:`@${t}`,kind:"keyword",kindModifiers:"",sortText:h9.SortText.LocationPriority})))}function dlt(t){return{name:t,kind:"",kindModifiers:"",displayParts:[Wm(t)],documentation:Dt,tags:void 0,codeActions:void 0}}function _qt(t){if(!at(t.name))return Dt;const u=t.name.text,s=t.parent,d=s.parent;return Co(d)?qi(d.parameters,f=>{if(!at(f.name))return;const p=f.name.text;if(!(s.tags.some(E=>E!==t&&Eg(E)&&at(E.name)&&E.name.escapedText===p)||u!==void 0&&!Ma(p,u)))return{name:p,kind:"parameter",kindModifiers:"",sortText:h9.SortText.LocationPriority}}):[]}function Dqt(t){return{name:t,kind:"parameter",kindModifiers:"",displayParts:[Wm(t)],documentation:Dt,tags:void 0,codeActions:void 0}}function xqt(t,u,s,d){const f=ya(u,s),p=Tn(f,Hp);if(p&&(p.comment!==void 0||S(p.tags)))return;const E=f.getStart(u);if(!p&&E0;if(J&&!oe){const se=K+t+z+" * ",ge=E===s?t+z:"";return{newText:se+t+J+z+Y+ge,caretOffset:se.length}}return{newText:K+Y,caretOffset:3}}function vqt(t,u){const{text:s}=t,d=np(u,t);let f=d;for(;f<=u&&Zg(s.charCodeAt(f));f++);return s.slice(d,f)}function Cqt(t,u,s,d){return t.map(({name:f,dotDotDotToken:p},E)=>{const v=f.kind===80?f.text:"param"+E;return`${s} * @param ${u?p?"{...any} ":"{any} ":""}${v}${d}`}).join("")}function bqt(t,u){return`${t} * @returns${u}`}function yqt(t,u){return wbe(t,s=>XTe(s,u))}function XTe(t,u){switch(t.kind){case 262:case 218:case 174:case 176:case 173:case 219:const s=t;return{commentOwner:t,parameters:s.parameters,hasReturn:Vee(s,u)};case 303:return XTe(t.initializer,u);case 263:case 264:case 266:case 306:case 265:return{commentOwner:t};case 171:{const f=t;return f.type&&r3(f.type)?{commentOwner:t,parameters:f.type.parameters,hasReturn:Vee(f.type,u)}:{commentOwner:t}}case 243:{const p=t.declarationList.declarations,E=p.length===1&&p[0].initializer?kqt(p[0].initializer):void 0;return E?{commentOwner:t,parameters:E.parameters,hasReturn:Vee(E,u)}:{commentOwner:t}}case 312:return"quit";case 267:return t.parent.kind===267?void 0:{commentOwner:t};case 244:return XTe(t.expression,u);case 226:{const f=t;return ec(f)===0?"quit":Co(f.right)?{commentOwner:t,parameters:f.right.parameters,hasReturn:Vee(f.right,u)}:{commentOwner:t}}case 172:const d=t.initializer;if(d&&(w0(d)||Z0(d)))return{commentOwner:t,parameters:d.parameters,hasReturn:Vee(d,u)}}}function Vee(t,u){return!!(u!=null&&u.generateReturnInDocTemplate)&&(r3(t)||Z0(t)&&Wt(t.body)||U0(t)&&t.body&&go(t.body)&&!!k2(t.body,s=>s))}function kqt(t){for(;t.kind===217;)t=t.expression;switch(t.kind){case 218:case 219:return t;case 231:return Le(t.members,fc)}}var eLe,hlt,flt,mlt,Fqt=o({"src/services/jsDoc.ts"(){or(),eLe=["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","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"],mlt=dlt}}),Qv={};h(Qv,{getDocCommentTemplateAtPosition:()=>xqt,getJSDocParameterNameCompletionDetails:()=>Dqt,getJSDocParameterNameCompletions:()=>_qt,getJSDocTagCompletionDetails:()=>dlt,getJSDocTagCompletions:()=>Eqt,getJSDocTagNameCompletionDetails:()=>mlt,getJSDocTagNameCompletions:()=>gqt,getJsDocCommentsFromDeclarations:()=>dqt,getJsDocTagsFromDeclarations:()=>mqt});var Aqt=o({"src/services/_namespaces/ts.JsDoc.ts"(){Fqt()}});function Sqt(t,u,s,d,f,p){const E=iu.ChangeTracker.fromContext({host:s,formatContext:u,preferences:f}),v=p==="SortAndCombine"||p==="All",b=v,B=p==="RemoveUnused"||p==="All",k=Tpe(t,t.statements.filter(Sd)),T=Gqt(f,v?()=>Elt(k,f)===2:void 0),M=j=>(B&&(j=wqt(j,t,d)),b&&(j=plt(j,T,t)),v&&(j=sc(j,(J,K)=>rLe(J,K,T))),j);k.forEach(j=>z(j,M)),p!=="RemoveUnused"&&Jqt(t).forEach(j=>z(j,J=>tLe(J,T)));for(const j of t.statements.filter(P1)){if(!j.body)continue;if(Tpe(t,j.body.statements.filter(Sd)).forEach(K=>z(K,M)),p!=="RemoveUnused"){const K=j.body.statements.filter($c);z(K,Y=>tLe(Y,T))}}return E.getChanges();function z(j,J){if(S(j)===0)return;Yn(j[0],1024);const K=b?CN(j,se=>Hee(se.moduleSpecifier)):[j],Y=v?sc(K,(se,ge)=>nLe(se[0].moduleSpecifier,ge[0].moduleSpecifier,T)):K,oe=Vu(Y,se=>Hee(se[0].moduleSpecifier)||se[0].moduleSpecifier===void 0?J(se):se);if(oe.length===0)E.deleteNodes(t,j,{leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include},!0);else{const se={leadingTriviaOption:iu.LeadingTriviaOption.Exclude,trailingTriviaOption:iu.TrailingTriviaOption.Include,suffix:E5(s,u.options)};E.replaceNodeWithNodes(t,j[0],oe,se);const ge=E.nodeHasTrailingComment(t,j[0],se);E.deleteNodes(t,j.slice(1),{trailingTriviaOption:iu.TrailingTriviaOption.Include},ge)}}}function Tpe(t,u){const s=YD(t.languageVersion,!1,t.languageVariant),d=[];let f=0;for(const p of u)d[f]&&Bqt(t,p,s)&&f++,d[f]||(d[f]=[]),d[f].push(p);return d}function Bqt(t,u,s){const d=u.getFullStart(),f=u.getStart();s.setText(t.text,d,f-d);let p=0;for(;s.getTokenStart()=2))return!0;return!1}function wqt(t,u,s){const d=s.getTypeChecker(),f=s.getCompilerOptions(),p=d.getJsxNamespace(u),E=d.getJsxFragmentFactory(u),v=!!(u.transformFlags&2),b=[];for(const k of t){const{importClause:T,moduleSpecifier:M}=k;if(!T){b.push(k);continue}let{name:z,namedBindings:j}=T;if(z&&!B(z)&&(z=void 0),j)if(Jx(j))B(j.name)||(j=void 0);else{const J=j.elements.filter(K=>B(K.name));J.lengthrs(d)&&d.text===s)}function Hee(t){return t!==void 0&&i0(t)?t.text:void 0}function Lqt(t,u,s){const d=Lpe(u);return plt(t,d,s)}function plt(t,u,s){if(t.length===0)return t;const{importWithoutClause:d,typeOnlyImports:f,regularImports:p}=Nqt(t),E=[];d&&E.push(d);for(const v of[p,f]){const b=v===f,{defaultImports:B,namespaceImports:k,namedImports:T}=v;if(!b&&B.length===1&&k.length===1&&T.length===0){const ge=B[0];E.push(LK(ge,ge.importClause.name,k[0].importClause.namedBindings));continue}const M=sc(k,(ge,ae)=>u(ge.importClause.namedBindings.name.text,ae.importClause.namedBindings.name.text));for(const ge of M)E.push(LK(ge,void 0,ge.importClause.namedBindings));const z=Ki(B),j=Ki(T),J=z??j;if(!J)continue;let K;const Y=[];if(B.length===1)K=B[0].importClause.name;else for(const ge of B)Y.push(q.createImportSpecifier(!1,q.createIdentifier("default"),ge.importClause.name));Y.push(...Vqt(T));const oe=q.createNodeArray(glt(Y,u),j==null?void 0:j.importClause.namedBindings.elements.hasTrailingComma),se=oe.length===0?K?void 0:q.createNamedImports(Dt):j?q.updateNamedImports(j.importClause.namedBindings,oe):q.createNamedImports(oe);s&&se&&(j!=null&&j.importClause.namedBindings)&&!hk(j.importClause.namedBindings,s)&&Yn(se,2),b&&K&&se?(E.push(LK(J,K,void 0)),E.push(LK(j??J,void 0,se))):E.push(LK(J,K,se))}return E}function Nqt(t){let u;const s={defaultImports:[],namespaceImports:[],namedImports:[]},d={defaultImports:[],namespaceImports:[],namedImports:[]};for(const f of t){if(f.importClause===void 0){u=u||f;continue}const p=f.importClause.isTypeOnly?s:d,{name:E,namedBindings:v}=f.importClause;E&&p.defaultImports.push(f),v&&(Jx(v)?p.namespaceImports.push(f):p.namedImports.push(f))}return{importWithoutClause:u,typeOnlyImports:s,regularImports:d}}function Pqt(t,u){const s=Lpe(u);return tLe(t,s)}function tLe(t,u){if(t.length===0)return t;const{exportWithoutClause:s,namedExports:d,typeOnlyExports:f}=E(t),p=[];s&&p.push(s);for(const v of[d,f]){if(v.length===0)continue;const b=[];b.push(...Vu(v,T=>T.exportClause&&ip(T.exportClause)?T.exportClause.elements:Dt));const B=glt(b,u),k=v[0];p.push(q.updateExportDeclaration(k,k.modifiers,k.isTypeOnly,k.exportClause&&(ip(k.exportClause)?q.updateNamedExports(k.exportClause,B):q.updateNamespaceExport(k.exportClause,k.exportClause.name)),k.moduleSpecifier,k.attributes))}return p;function E(v){let b;const B=[],k=[];for(const T of v)T.exportClause===void 0?b=b||T:T.isTypeOnly?k.push(T):B.push(T);return{exportWithoutClause:b,namedExports:B,typeOnlyExports:k}}}function LK(t,u,s){return q.updateImportDeclaration(t,t.modifiers,q.updateImportClause(t.importClause,t.importClause.isTypeOnly,u,s),t.moduleSpecifier,t.attributes)}function glt(t,u){return sc(t,(s,d)=>iLe(s,d,u))}function iLe(t,u,s){return h2(t.isTypeOnly,u.isTypeOnly)||s(t.name.text,u.name.text)}function Mqt(t,u,s){const d=Lpe(!!s);return nLe(t,u,d)}function nLe(t,u,s){const d=t===void 0?void 0:Hee(t),f=u===void 0?void 0:Hee(u);return h2(d===void 0,f===void 0)||h2(Id(d),Id(f))||s(d,f)}function uLe(t){var u;switch(t.kind){case 271:return(u=ar(t.moduleReference,a_))==null?void 0:u.expression;case 272:return t.moduleSpecifier;case 243:return t.declarationList.declarations[0].initializer.arguments[0]}}function zqt(t,u){return Elt(Tpe(t,t.statements.filter(Sd)),u)}function Elt(t,u){const s=yw(u,!1),d=yw(u,!0);let f=3,p=!1;for(const E of t){if(E.length>1){const b=cn(E,B=>{var k;return((k=ar(B.moduleSpecifier,rs))==null?void 0:k.text)??""},s,d);if(b&&(f&=b,p=!0),!f)return f}const v=Le(E,b=>{var B,k;return((k=ar((B=b.importClause)==null?void 0:B.namedBindings,uD))==null?void 0:k.elements.length)>1});if(v){const b=aLe(v.importClause.namedBindings.elements,u);if(b&&(f&=b,p=!0),!f)return f}if(f!==3)return f}return p?0:f}function Iqt(t,u){const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>Hee(uLe(f))||"",s,d)}function Rqt(t,u,s){const d=Kl(t,u,ul,(f,p)=>rLe(f,p,s));return d<0?~d:d}function Oqt(t,u,s){const d=Kl(t,u,ul,(f,p)=>iLe(f,p,s));return d<0?~d:d}function rLe(t,u,s){return nLe(uLe(t),uLe(u),s)||jqt(t,u)}function jqt(t,u){return rl(_lt(t),_lt(u))}function _lt(t){var u;switch(t.kind){case 272:return t.importClause?t.importClause.isTypeOnly?1:((u=t.importClause.namedBindings)==null?void 0:u.kind)===274?2:t.importClause.name?3:4:0;case 271:return 5;case 243:return 6}}function Vqt(t){return Vu(t,u=>Vt(Hqt(u),s=>s.name&&s.propertyName&&s.name.escapedText===s.propertyName.escapedText?q.updateImportSpecifier(s,s.isTypeOnly,void 0,s.name):s))}function Hqt(t){var u;return(u=t.importClause)!=null&&u.namedBindings&&uD(t.importClause.namedBindings)?t.importClause.namedBindings.elements:void 0}function Lpe(t){return t?t2e:fh}function Kqt(t,u){const s=Wqt(u),d=u.organizeImportsCaseFirst??!1,f=u.organizeImportsNumericCollation??!1,p=u.organizeImportsAccentCollation??!0,E=t?p?"accent":"base":p?"variant":"case";return new Intl.Collator(s,{usage:"sort",caseFirst:d||"false",sensitivity:E,numeric:f}).compare}function Wqt(t){let u=t.organizeImportsLocale;u==="auto"&&(u=i2e()),u===void 0&&(u="en");const s=Intl.Collator.supportedLocalesOf(u);return s.length?s[0]:"en"}function yw(t,u){return(t.organizeImportsCollation??"ordinal")==="unicode"?Kqt(u,t):Lpe(u)}function Gqt(t,u){const s=typeof t.organizeImportsIgnoreCase=="boolean"?t.organizeImportsIgnoreCase:(u==null?void 0:u())??!1;return yw(t,s)}function Jqt(t){const u=[],s=t.statements,d=S(s);let f=0,p=0;for(;fTpe(t,E))}var Dlt,aLe,$qt=o({"src/services/organizeImports.ts"(){or(),Dlt=class{has([t,u]){return this._lastPreferences!==u||!this._cache?!1:this._cache.has(t)}get([t,u]){if(!(this._lastPreferences!==u||!this._cache))return this._cache.get(t)}set([t,u],s){this._lastPreferences!==u&&(this._lastPreferences=u,this._cache=void 0),this._cache??(this._cache=new WeakMap),this._cache.set(t,s)}},aLe=e2e((t,u)=>{if(!hi(t,(f,p)=>h2(f.isTypeOnly,p.isTypeOnly)))return 0;const s=yw(u,!1),d=yw(u,!0);return cn(t,f=>f.name.text,s,d)},new Dlt)}}),Jp={};h(Jp,{coalesceExports:()=>Pqt,coalesceImports:()=>Lqt,compareImportOrExportSpecifiers:()=>iLe,compareImportsOrRequireStatements:()=>rLe,compareModuleSpecifiers:()=>Mqt,detectImportDeclarationSorting:()=>Iqt,detectImportSpecifierSorting:()=>aLe,detectSorting:()=>zqt,getImportDeclarationInsertionIndex:()=>Rqt,getImportSpecifierInsertionIndex:()=>Oqt,getOrganizeImportsComparer:()=>yw,organizeImports:()=>Sqt});var Uqt=o({"src/services/_namespaces/ts.OrganizeImports.ts"(){$qt()}});function qqt(t,u){const s=[];return Zqt(t,u,s),Yqt(t,s),s.sort((d,f)=>d.textSpan.start-f.textSpan.start)}function Zqt(t,u,s){let d=40,f=0;const p=[...t.statements,t.endOfFileToken],E=p.length;for(;f1&&d.push(Kee(p,E,"comment"))}}function vlt(t,u,s,d){w7(t)||oLe(t.pos,u,s,d)}function Kee(t,u,s){return m9(Kc(t,u),s)}function Qqt(t,u){switch(t.kind){case 241:if(Co(t.parent))return Xqt(t.parent,t,u);switch(t.parent.kind){case 246:case 249:case 250:case 248:case 245:case 247:case 254:case 299:return k(t.parent);case 258:const z=t.parent;if(z.tryBlock===t)return k(t.parent);if(z.finallyBlock===t){const j=a0(z,98,u);if(j)return k(j)}default:return m9(of(t,u),"code")}case 268:return k(t.parent);case 263:case 231:case 264:case 266:case 269:case 187:case 206:return k(t);case 189:return k(t,!1,!yB(t.parent),23);case 296:case 297:return T(t.statements);case 210:return B(t);case 209:return B(t,23);case 284:return p(t);case 288:return E(t);case 285:case 286:return v(t.attributes);case 228:case 15:return b(t);case 207:return k(t,!1,!Vs(t.parent),23);case 219:return f(t);case 213:return d(t);case 217:return M(t);case 275:case 279:case 300:return s(t)}function s(z){if(!z.elements.length)return;const j=a0(z,19,u),J=a0(z,20,u);if(!(!j||!J||Y4(j.pos,J.pos,u)))return Npe(j,J,z,u,!1,!1)}function d(z){if(!z.arguments.length)return;const j=a0(z,21,u),J=a0(z,22,u);if(!(!j||!J||Y4(j.pos,J.pos,u)))return Npe(j,J,z,u,!1,!0)}function f(z){if(go(z.body)||Cf(z.body)||Y4(z.body.getFullStart(),z.body.getEnd(),u))return;const j=Kc(z.body.getFullStart(),z.body.getEnd());return m9(j,"code",of(z))}function p(z){const j=Kc(z.openingElement.getStart(u),z.closingElement.getEnd()),J=z.openingElement.tagName.getText(u),K="<"+J+">...";return m9(j,"code",j,!1,K)}function E(z){const j=Kc(z.openingFragment.getStart(u),z.closingFragment.getEnd());return m9(j,"code",j,!1,"<>...")}function v(z){if(z.properties.length!==0)return Kee(z.getStart(u),z.getEnd(),"code")}function b(z){if(!(z.kind===15&&z.text.length===0))return Kee(z.getStart(u),z.getEnd(),"code")}function B(z,j=19){return k(z,!1,!vh(z.parent)&&!Mo(z.parent),j)}function k(z,j=!1,J=!0,K=19,Y=K===19?20:24){const oe=a0(t,K,u),se=a0(t,Y,u);return oe&&se&&Npe(oe,se,z,u,j,J)}function T(z){return z.length?m9(qx(z),"code"):void 0}function M(z){if(Y4(z.getStart(),z.getEnd(),u))return;const j=Kc(z.getStart(),z.getEnd());return m9(j,"code",of(z))}}function Xqt(t,u,s){const d=eZt(t,u,s),f=a0(u,20,s);return d&&f&&Npe(d,f,t,s,t.kind!==219)}function Npe(t,u,s,d,f=!1,p=!0){const E=Kc(p?t.getFullStart():t.getStart(d),u.getEnd());return m9(E,"code",of(s,d),f)}function m9(t,u,s=t,d=!1,f="..."){return{textSpan:t,kind:u,hintSpan:s,bannerText:f,autoCollapse:d}}function eZt(t,u,s){if(qye(t.parameters,s)){const d=a0(t,21,s);if(d)return d}return a0(u,19,s)}var Clt,tZt=o({"src/services/outliningElementsCollector.ts"(){or(),Clt=/^#(end)?region(?:\s+(.*))?(?:\r)?$/}}),Ppe={};h(Ppe,{collectElements:()=>qqt});var iZt=o({"src/services/_namespaces/ts.OutliningElementsCollector.ts"(){tZt()}});function nZt(t,u,s,d){const f=dX(af(u,s));if(ylt(f)){const p=uZt(f,t.getTypeChecker(),u,t,d);if(p)return p}return Mpe(F.You_cannot_rename_this_element)}function uZt(t,u,s,d,f){const p=u.getSymbolAtLocation(t);if(!p){if(i0(t)){const M=cX(t,u);if(M&&(M.flags&128||M.flags&1048576&&ye(M.types,z=>!!(z.flags&128))))return sLe(t.text,t.text,"string","",t,s)}else if(jhe(t)){const M=Wc(t);return sLe(M,M,"label","",t,s)}return}const{declarations:E}=p;if(!E||E.length===0)return;if(E.some(M=>rZt(d,M)))return Mpe(F.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);if(at(t)&&t.escapedText==="default"&&p.parent&&p.parent.flags&1536)return;if(i0(t)&&Sj(t))return f.allowRenameOfImportPath?oZt(t,s,p):void 0;const v=aZt(s,p,u,f);if(v)return Mpe(v);const b=x5.getSymbolKind(u,p,t),B=FSe(t)||Mm(t)&&t.parent.kind===167?q4(U4(t)):void 0,k=B||u.symbolToString(p),T=B||u.getFullyQualifiedName(p);return sLe(k,T,b,x5.getSymbolModifiers(u,p),t,s)}function rZt(t,u){const s=u.getSourceFile();return t.isSourceFileDefaultLibrary(s)&&Ml(s.fileName,".d.ts")}function aZt(t,u,s,d){if(!d.providePrefixAndSuffixTextForRename&&u.flags&2097152){const E=u.declarations&&Le(u.declarations,v=>bf(v));E&&!E.propertyName&&(u=s.getAliasedSymbol(u))}const{declarations:f}=u;if(!f)return;const p=blt(t.path);if(p===void 0)return Ge(f,E=>eK(E.getSourceFile().path))?F.You_cannot_rename_elements_that_are_defined_in_a_node_modules_folder:void 0;for(const E of f){const v=blt(E.getSourceFile().path);if(v){const b=Math.min(p.length,v.length);for(let B=0;B<=b;B++)if(fh(p[B],v[B])!==0)return F.You_cannot_rename_elements_that_are_defined_in_another_node_modules_folder}}}function blt(t){const u=yd(t),s=u.lastIndexOf("node_modules");if(s!==-1)return u.slice(0,s+2)}function oZt(t,u,s){if(!Id(t.text))return Mpe(F.You_cannot_rename_a_module_via_a_global_import);const d=s.declarations&&Le(s.declarations,ca);if(!d)return;const f=lc(t.text,"/index")||lc(t.text,"/index.js")?void 0:r2e(xh(d.fileName),"/index"),p=f===void 0?d.fileName:f,E=f===void 0?"module":"directory",v=t.text.lastIndexOf("/")+1,b=h1(t.getStart(u)+1+v,t.text.length-v);return{canRename:!0,fileToRename:p,kind:E,displayName:p,fullDisplayName:p,kindModifiers:"",triggerSpan:b}}function sLe(t,u,s,d,f,p){return{canRename:!0,fileToRename:void 0,kind:s,displayName:t,fullDisplayName:u,kindModifiers:d,triggerSpan:sZt(f,p)}}function Mpe(t){return{canRename:!1,localizedErrorMessage:to(t)}}function sZt(t,u){let s=t.getStart(u),d=t.getWidth(u);return i0(t)&&(s+=1,d-=2),h1(s,d)}function ylt(t){switch(t.kind){case 80:case 81:case 11:case 15:case 110:return!0;case 9:return aX(t);default:return!1}}var lZt=o({"src/services/rename.ts"(){or()}}),Wee={};h(Wee,{getRenameInfo:()=>nZt,nodeIsEligibleForRename:()=>ylt});var cZt=o({"src/services/_namespaces/ts.Rename.ts"(){lZt()}});function dZt(t,u,s,d,f){const p=t.getTypeChecker(),E=hX(u,s);if(!E)return;const v=!!d&&d.kind==="characterTyped";if(v&&(zk(u,s,E)||m5(u,s)))return;const b=!!d&&d.kind==="invoked",B=AZt(E,s,u,p,b);if(!B)return;f.throwIfCancellationRequested();const k=hZt(B,p,u,E,v);return f.throwIfCancellationRequested(),k?p.runWithCancellationToken(f,T=>k.kind===0?Tlt(k.candidates,k.resolvedSignature,B,u,T):BZt(k.symbol,B,u,T)):_h(u)?mZt(B,t,f):void 0}function hZt({invocation:t,argumentCount:u},s,d,f,p){switch(t.kind){case 0:{if(p&&!fZt(f,t.node,d))return;const E=[],v=s.getResolvedSignatureForSignatureHelp(t.node,E,u);return E.length===0?void 0:{kind:0,candidates:E,resolvedSignature:v}}case 1:{const{called:E}=t;if(p&&!klt(f,d,at(E)?E.parent:E))return;const v=Zhe(E,u,s);if(v.length!==0)return{kind:0,candidates:v,resolvedSignature:Pn(v)};const b=s.getSymbolAtLocation(E);return b&&{kind:1,symbol:b}}case 2:return{kind:0,candidates:[t.signature],resolvedSignature:t.signature};default:return H.assertNever(t)}}function fZt(t,u,s){if(!UE(u))return!1;const d=u.getChildren(s);switch(t.kind){case 21:return kt(d,t);case 28:{const f=lX(t);return!!f&&kt(d,f)}case 30:return klt(t,s,u.expression);default:return!1}}function mZt(t,u,s){if(t.invocation.kind===2)return;const d=Blt(t.invocation),f=Ru(d)?d.name.text:void 0,p=u.getTypeChecker();return f===void 0?void 0:G(u.getSourceFiles(),E=>G(E.getNamedDeclarations().get(f),v=>{const b=v.symbol&&p.getTypeOfSymbolAtLocation(v.symbol,v),B=b&&b.getCallSignatures();if(B&&B.length)return p.runWithCancellationToken(s,k=>Tlt(B,B[0],t,E,k,!0))}))}function klt(t,u,s){const d=t.getFullStart();let f=t.parent;for(;f;){const p=id(d,u,f,!0);if(p)return Hm(s,p);f=f.parent}return H.fail("Could not find preceding token")}function pZt(t,u,s){const d=Alt(t,u,s);return!d||d.isTypeParameterList||d.invocation.kind!==0?void 0:{invocation:d.invocation.node,argumentCount:d.argumentCount,argumentIndex:d.argumentIndex}}function Flt(t,u,s){const d=gZt(t,s);if(!d)return;const{list:f,argumentIndex:p}=d,E=bZt(f,zk(s,u,t));p!==0&&H.assertLessThan(p,E);const v=kZt(f,s);return{list:f,argumentIndex:p,argumentCount:E,argumentsSpan:v}}function gZt(t,u){if(t.kind===30||t.kind===21)return{list:SZt(t.parent,t,u),argumentIndex:0};{const s=lX(t);return s&&{list:s,argumentIndex:CZt(s,t)}}}function Alt(t,u,s){const{parent:d}=t;if(UE(d)){const f=d,p=Flt(t,u,s);if(!p)return;const{list:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p;return{isTypeParameterList:!!d.typeArguments&&d.typeArguments.pos===E.pos,invocation:{kind:0,node:f},argumentsSpan:B,argumentIndex:v,argumentCount:b}}else{if(T7(t)&&Dk(d))return VH(t,u,s)?cLe(d,0,s):void 0;if(vB(t)&&d.parent.kind===215){const f=d,p=f.parent;H.assert(f.kind===228);const E=VH(t,u,s)?0:1;return cLe(p,E,s)}else if(ZP(d)&&Dk(d.parent.parent)){const f=d,p=d.parent.parent;if(Ece(t)&&!VH(t,u,s))return;const E=f.parent.templateSpans.indexOf(f),v=yZt(E,t,u,s);return cLe(p,v,s)}else if(Ih(d)){const f=d.attributes.pos,p=gs(s.text,d.attributes.end,!1);return{isTypeParameterList:!1,invocation:{kind:0,node:d},argumentsSpan:h1(f,p-f),argumentIndex:0,argumentCount:1}}else{const f=Yhe(t,s);if(f){const{called:p,nTypeArguments:E}=f,v={kind:1,called:p},b=Kc(p.getStart(s),t.end);return{isTypeParameterList:!0,invocation:v,argumentsSpan:b,argumentIndex:E,argumentCount:E+1}}return}}}function EZt(t,u,s,d){return _Zt(t,u,s,d)||Alt(t,u,s)}function Slt(t){return eu(t.parent)?Slt(t.parent):t}function lLe(t){return eu(t.left)?lLe(t.left)+1:2}function _Zt(t,u,s,d){const f=DZt(t);if(f===void 0)return;const p=xZt(f,s,u,d);if(p===void 0)return;const{contextualType:E,argumentIndex:v,argumentCount:b,argumentsSpan:B}=p,k=E.getNonNullableType(),T=k.symbol;if(T===void 0)return;const M=Zu(k.getCallSignatures());return M===void 0?void 0:{isTypeParameterList:!1,invocation:{kind:2,signature:M,node:t,symbol:vZt(T)},argumentsSpan:B,argumentIndex:v,argumentCount:b}}function DZt(t){switch(t.kind){case 21:case 28:return t;default:return Tn(t.parent,u=>io(u)?!0:Vs(u)||Op(u)||_k(u)?!1:"quit")}}function xZt(t,u,s,d){const{parent:f}=t;switch(f.kind){case 217:case 174:case 218:case 219:const p=Flt(t,s,u);if(!p)return;const{argumentIndex:E,argumentCount:v,argumentsSpan:b}=p,B=hc(f)?d.getContextualTypeForObjectLiteralElement(f):d.getContextualType(f);return B&&{contextualType:B,argumentIndex:E,argumentCount:v,argumentsSpan:b};case 226:{const k=Slt(f),T=d.getContextualType(k),M=t.kind===21?0:lLe(f)-1,z=lLe(k);return T&&{contextualType:T,argumentIndex:M,argumentCount:z,argumentsSpan:of(f)}}default:return}}function vZt(t){return t.name==="__type"&&G(t.declarations,u=>{var s;return r3(u)?(s=ar(u.parent,Yg))==null?void 0:s.symbol:void 0})||t}function CZt(t,u){let s=0;for(const d of t.getChildren()){if(d===u)break;d.kind!==28&&s++}return s}function bZt(t,u){const s=t.getChildren();let d=ui(s,f=>f.kind!==28);return!u&&s.length>0&&yr(s).kind===28&&d++,d}function yZt(t,u,s,d){return H.assert(s>=u.getStart(),"Assumed 'position' could not occur before node."),rbe(u)?VH(u,s,d)?0:t+2:t+1}function cLe(t,u,s){const d=T7(t.template)?1:t.template.templateSpans.length+1;return u!==0&&H.assertLessThan(u,d),{isTypeParameterList:!1,invocation:{kind:0,node:t},argumentsSpan:FZt(t,s),argumentIndex:u,argumentCount:d}}function kZt(t,u){const s=t.getFullStart(),d=gs(u.text,t.getEnd(),!1);return h1(s,d-s)}function FZt(t,u){const s=t.template,d=s.getStart();let f=s.getEnd();return s.kind===228&&yr(s.templateSpans).literal.getFullWidth()===0&&(f=gs(u.text,f,!1)),h1(d,f-d)}function AZt(t,u,s,d,f){for(let p=t;!ca(p)&&(f||!go(p));p=p.parent){H.assert(Hm(p.parent,p),"Not a subspan",()=>`Child: ${H.formatSyntaxKind(p.kind)}, parent: ${H.formatSyntaxKind(p.parent.kind)}`);const E=EZt(p,u,s,d);if(E)return E}}function SZt(t,u,s){const d=t.getChildren(s),f=d.indexOf(u);return H.assert(f>=0&&d.length>f+1),d[f+1]}function Blt(t){return t.kind===0?Eq(t.node):t.called}function wlt(t){return t.kind===0?t.node:t.kind===1?t.called:t.node}function Tlt(t,u,{isTypeParameterList:s,argumentCount:d,argumentsSpan:f,invocation:p,argumentIndex:E},v,b,B){var k;const T=wlt(p),M=p.kind===2?p.symbol:b.getSymbolAtLocation(Blt(p))||B&&((k=u.declaration)==null?void 0:k.symbol),z=M?OM(b,M,B?v:void 0,void 0):Dt,j=Vt(t,se=>TZt(se,z,s,b,T,v));E!==0&&H.assertLessThan(E,d);let J=0,K=0;for(let se=0;se1)){let ae=0;for(const Ce of ge){if(Ce.isVariadic||Ce.parameters.length>=d){J=K+ae;break}ae++}}K+=ge.length}H.assert(J!==-1);const Y={items:Nr(j,ul),applicableSpan:f,selectedItemIndex:J,argumentIndex:E,argumentCount:d},oe=Y.items[J];if(oe.isVariadic){const se=Ue(oe.parameters,ge=>!!ge.isRest);-1Llt(T,s,d,f,E)),b=t.getDocumentationComment(s),B=t.getJsDocTags(s);return{isVariadic:!1,prefixDisplayParts:[...p,nh(30)],suffixDisplayParts:[nh(32)],separatorDisplayParts:dLe,parameters:v,documentation:b,tags:B}}function TZt(t,u,s,d,f,p){const E=(s?NZt:PZt)(t,d,f,p);return Vt(E,({isVariadic:v,parameters:b,prefix:B,suffix:k})=>{const T=[...u,...B],M=[...k,...LZt(t,f,d)],z=t.getDocumentationComment(d),j=t.getJsDocTags();return{isVariadic:v,prefixDisplayParts:T,suffixDisplayParts:M,separatorDisplayParts:dLe,parameters:b,documentation:z,tags:j}})}function LZt(t,u,s){return Zx(d=>{d.writePunctuation(":"),d.writeSpace(" ");const f=s.getTypePredicateOfSignature(t);f?s.writeTypePredicate(f,u,void 0,d):s.writeType(s.getReturnTypeOfSignature(t),u,void 0,d)})}function NZt(t,u,s,d){const f=(t.target||t).typeParameters,p=eb(),E=(f||Dt).map(b=>Llt(b,u,s,d,p)),v=t.thisParameter?[u.symbolToParameterDeclaration(t.thisParameter,s,NK)]:[];return u.getExpandedParameters(t).map(b=>{const B=q.createNodeArray([...v,...Vt(b,T=>u.symbolToParameterDeclaration(T,s,NK))]),k=Zx(T=>{p.writeList(2576,B,d,T)});return{isVariadic:!1,parameters:E,prefix:[nh(30)],suffix:[nh(32),...k]}})}function PZt(t,u,s,d){const f=eb(),p=Zx(b=>{if(t.typeParameters&&t.typeParameters.length){const B=q.createNodeArray(t.typeParameters.map(k=>u.typeParameterToDeclaration(k,s,NK)));f.writeList(53776,B,d,b)}}),E=u.getExpandedParameters(t),v=u.hasEffectiveRestParameter(t)?E.length===1?b=>!0:b=>{var B;return!!(b.length&&((B=ar(b[b.length-1],ZE))==null?void 0:B.links.checkFlags)&32768)}:b=>!1;return E.map(b=>({isVariadic:v(b),parameters:b.map(B=>MZt(B,u,s,d,f)),prefix:[...p,nh(21)],suffix:[nh(22)]}))}function MZt(t,u,s,d,f){const p=Zx(b=>{const B=u.symbolToParameterDeclaration(t,s,NK);f.writeNode(4,B,d,b)}),E=u.isOptionalParameter(t.valueDeclaration),v=ZE(t)&&!!(t.links.checkFlags&32768);return{name:t.name,documentation:t.getDocumentationComment(u),displayParts:p,isOptional:E,isRest:v}}function Llt(t,u,s,d,f){const p=Zx(E=>{const v=u.typeParameterToDeclaration(t,s,NK);f.writeNode(4,v,d,E)});return{name:t.symbol.name,documentation:t.symbol.getDocumentationComment(u),displayParts:p,isOptional:!1,isRest:!1}}var NK,dLe,zZt=o({"src/services/signatureHelp.ts"(){or(),NK=70246400,dLe=[nh(28),$l()]}}),PK={};h(PK,{getArgumentInfoForCompletions:()=>pZt,getSignatureHelpItems:()=>dZt});var IZt=o({"src/services/_namespaces/ts.SignatureHelp.ts"(){zZt()}});function RZt(t,u){var s,d;let f={textSpan:Kc(u.getFullStart(),u.getEnd())},p=u;e:for(;;){const b=jZt(p);if(!b.length)break;for(let B=0;Bt)break e;const z=Sa(Ev(u.text,T.end));if(z&&z.kind===2&&v(z.pos,z.end),OZt(u,t,T)){if(n0e(T)&&U0(p)&&!Y4(T.getStart(u),T.getEnd(),u)&&E(T.getStart(u),T.getEnd()),go(T)||ZP(T)||vB(T)||Ece(T)||k&&vB(k)||Ad(T)&&Jl(p)||MB(T)&&Ad(p)||ra(T)&&MB(p)&&b.length===1||kk(T)||jv(T)||K7(T)){p=T;break}if(ZP(p)&&M&&OU(M)){const Y=T.getFullStart()-2,oe=M.getStart()+1;E(Y,oe)}const j=MB(T)&&VZt(k)&&HZt(M)&&!Y4(k.getStart(),M.getStart(),u);let J=j?k.getEnd():T.getStart();const K=j?M.getStart():KZt(u,T);if(lm(T)&&((s=T.jsDoc)!=null&&s.length)&&E(Pn(T.jsDoc).getStart(),K),MB(T)){const Y=T.getChildren()[0];Y&&lm(Y)&&((d=Y.jsDoc)!=null&&d.length)&&Y.getStart()!==T.pos&&(J=Math.min(J,Pn(Y.jsDoc).getStart()))}E(J,K),(rs(T)||P8(T))&&E(J+1,K-1),p=T;break}if(B===b.length-1)break e}}return f;function E(b,B){if(b!==B){const k=Kc(b,B);(!f||!sw(k,f.textSpan)&&I2e(k,t))&&(f={textSpan:k,...f&&{parent:f}})}}function v(b,B){E(b,B);let k=b;for(;u.text.charCodeAt(k)===47;)k++;E(k,B)}}function OZt(t,u,s){return H.assert(s.pos<=u),uv===t.readonlyToken||v.kind===148||v===t.questionToken||v.kind===58),E=MK(p,({kind:v})=>v===23||v===168||v===24);return[s,zK(zpe(E,({kind:v})=>v===59)),f]}if(zm(t)){const s=MK(t.getChildren(),E=>E===t.name||kt(t.modifiers,E)),d=((u=s[0])==null?void 0:u.kind)===327?s[0]:void 0,f=d?s.slice(1):s,p=zpe(f,({kind:E})=>E===59);return d?[d,zK(p)]:p}if(io(t)){const s=MK(t.getChildren(),f=>f===t.dotDotDotToken||f===t.name),d=MK(s,f=>f===s[0]||f===t.questionToken);return zpe(d,({kind:f})=>f===64)}return Vs(t)?zpe(t.getChildren(),({kind:s})=>s===64):t.getChildren()}function MK(t,u){const s=[];let d;for(const f of t)u(f)?(d=d||[],d.push(f)):(d&&(s.push(zK(d)),d=void 0),s.push(f));return d&&s.push(zK(d)),s}function zpe(t,u,s=!0){if(t.length<2)return t;const d=Ue(t,u);if(d===-1)return t;const f=t.slice(0,d),p=t[d],E=yr(t),v=s&&E.kind===27,b=t.slice(d+1,v?t.length-1:void 0),B=vr([f.length?zK(f):void 0,p,b.length?zK(b):void 0]);return v?B.concat(E):B}function zK(t){return H.assertGreaterThanOrEqual(t.length,1),i_(o_.createSyntaxList(t),t[0].pos,yr(t).end)}function VZt(t){const u=t&&t.kind;return u===19||u===23||u===21||u===286}function HZt(t){const u=t&&t.kind;return u===20||u===24||u===22||u===287}function KZt(t,u){switch(u.kind){case 348:case 345:case 355:case 353:case 350:return t.getLineEndOfPosition(u.getStart());default:return u.getEnd()}}var Nlt,WZt=o({"src/services/smartSelection.ts"(){or(),Nlt=dg(Sd,_1)}}),Ipe={};h(Ipe,{getSmartSelectionRange:()=>RZt});var GZt=o({"src/services/_namespaces/ts.SmartSelectionRange.ts"(){WZt()}});function Plt(t,u,s){const d=Mlt(t,u,s);if(d!=="")return d;const f=vP(u);return f&32?Bl(u,231)?"local class":"class":f&384?"enum":f&524288?"type":f&64?"interface":f&262144?"type parameter":f&8?"enum member":f&2097152?"alias":f&1536?"module":d}function Mlt(t,u,s){const d=t.getRootSymbols(u);if(d.length===1&&Pn(d).flags&8192&&t.getTypeOfSymbolAtLocation(u,s).getNonNullableType().getCallSignatures().length!==0)return"method";if(t.isUndefinedSymbol(u))return"var";if(t.isArgumentsSymbol(u))return"local var";if(s.kind===110&&Wt(s)||g7(s))return"parameter";const f=vP(u);if(f&3)return ffe(u)?"parameter":u.valueDeclaration&&K8(u.valueDeclaration)?"const":u.valueDeclaration&&dj(u.valueDeclaration)?"using":u.valueDeclaration&&cj(u.valueDeclaration)?"await using":L(u.declarations,oq)?"let":Rlt(u)?"local var":"var";if(f&16)return Rlt(u)?"local function":"function";if(f&32768)return"getter";if(f&65536)return"setter";if(f&8192)return"method";if(f&16384)return"constructor";if(f&131072)return"index";if(f&4){if(f&33554432&&u.links.checkFlags&6){const p=L(t.getRootSymbols(u),E=>{if(E.getFlags()&98311)return"property"});return p||(t.getTypeOfSymbolAtLocation(u,s).getCallSignatures().length?"method":"property")}return"property"}return""}function zlt(t){if(t.declarations&&t.declarations.length){const[u,...s]=t.declarations,d=S(s)&&jX(u)&&Ge(s,p=>!jX(p))?65536:0,f=PM(u,d);if(f)return f.split(",")}return[]}function JZt(t,u){if(!u)return"";const s=new Set(zlt(u));if(u.flags&2097152){const d=t.getAliasedSymbol(u);d!==u&&L(zlt(d),f=>{s.add(f)})}return u.flags&16777216&&s.add("optional"),s.size>0?Ea(s.values()).join(","):""}function Ilt(t,u,s,d,f,p,E,v){var b;const B=[];let k=[],T=[];const M=vP(u);let z=E&1?Mlt(t,u,f):"",j=!1;const J=f.kind===110&&Dq(f)||g7(f);let K,Y,oe=!1;if(f.kind===110&&!J)return{displayParts:[Hf(110)],documentation:[],symbolKind:"primitive type",tags:void 0};if(z!==""||M&32||M&2097152){if(z==="getter"||z==="setter"){const Be=Le(u.declarations,We=>We.name===f);if(Be)switch(Be.kind){case 177:z="getter";break;case 178:z="setter";break;case 172:z="accessor";break;default:H.assertNever(Be)}else z="property"}let fe;if(p??(p=J?t.getTypeAtLocation(f):t.getTypeOfSymbolAtLocation(u,f)),f.parent&&f.parent.kind===211){const Be=f.parent.name;(Be===f||Be&&Be.getFullWidth()===0)&&(f=f.parent)}let xe;if(UE(f)?xe=f:(zhe(f)||TM(f)||f.parent&&(Ih(f.parent)||Dk(f.parent))&&Co(u.valueDeclaration))&&(xe=f.parent),xe){fe=t.getResolvedSignature(xe);const Be=xe.kind===214||Mo(xe)&&xe.expression.kind===108,We=Be?p.getConstructSignatures():p.getCallSignatures();if(fe&&!kt(We,fe.target)&&!kt(We,fe)&&(fe=We.length?We[0]:void 0),fe){switch(Be&&M&32?(z="constructor",ve(p.symbol,z)):M&2097152?(z="alias",Se(z),B.push($l()),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),ne(u)):ve(u,z),z){case"JSX attribute":case"property":case"var":case"const":case"let":case"parameter":case"local var":B.push(nh(59)),B.push($l()),!(Ju(p)&16)&&p.symbol&&(yn(B,OM(t,p.symbol,d,void 0,5)),B.push(lw())),Be&&(fe.flags&4&&(B.push(Hf(128)),B.push($l())),B.push(Hf(105)),B.push($l())),Ne(fe,We,262144);break;default:Ne(fe,We)}j=!0,oe=We.length>1}}else if(Whe(f)&&!(M&98304)||f.kind===137&&f.parent.kind===176){const Be=f.parent;if(u.declarations&&Le(u.declarations,Ae=>Ae===(f.kind===137?Be.parent:Be))){const Ae=Be.kind===176?p.getNonNullableType().getConstructSignatures():p.getNonNullableType().getCallSignatures();t.isImplementationOfOverload(Be)?fe=Ae[0]:fe=t.getSignatureFromDeclaration(Be),Be.kind===176?(z="constructor",ve(p.symbol,z)):ve(Be.kind===179&&!(p.symbol.flags&2048||p.symbol.flags&4096)?p.symbol:u,z),fe&&Ne(fe,Ae),j=!0,oe=Ae.length>1}}}if(M&32&&!j&&!J&&(ae(),Bl(u,231)?Se("local class"):B.push(Hf(86)),B.push($l()),ne(u),pe(u,s)),M&64&&E&2&&(ge(),B.push(Hf(120)),B.push($l()),ne(u),pe(u,s)),M&524288&&E&2&&(ge(),B.push(Hf(156)),B.push($l()),ne(u),pe(u,s),B.push($l()),B.push(RM(64)),B.push($l()),yn(B,UH(t,f.parent&&q3(f.parent)?t.getTypeAtLocation(f.parent):t.getDeclaredTypeOfSymbol(u),d,8388608))),M&384&&(ge(),Ge(u.declarations,fe=>Rv(fe)&&y2(fe))&&(B.push(Hf(87)),B.push($l())),B.push(Hf(94)),B.push($l()),ne(u)),M&1536&&!J){ge();const fe=Bl(u,267),xe=fe&&fe.name&&fe.name.kind===80;B.push(Hf(xe?145:144)),B.push($l()),ne(u)}if(M&262144&&E&2)if(ge(),B.push(nh(21)),B.push(Wm("type parameter")),B.push(nh(22)),B.push($l()),ne(u),u.parent)Ce(),ne(u.parent,d),pe(u.parent,d);else{const fe=Bl(u,168);if(fe===void 0)return H.fail();const xe=fe.parent;if(xe)if(Co(xe)){Ce();const Be=t.getSignatureFromDeclaration(xe);xe.kind===180?(B.push(Hf(105)),B.push($l())):xe.kind!==179&&xe.name&&ne(xe.symbol),yn(B,gfe(t,Be,s,32))}else Vp(xe)&&(Ce(),B.push(Hf(156)),B.push($l()),ne(xe.symbol),pe(xe.symbol,s))}if(M&8){z="enum member",ve(u,"enum member");const fe=(b=u.declarations)==null?void 0:b[0];if((fe==null?void 0:fe.kind)===306){const xe=t.getConstantValue(fe);xe!==void 0&&(B.push($l()),B.push(RM(64)),B.push($l()),B.push(yf(Ibe(xe),typeof xe=="number"?7:8)))}}if(u.flags&2097152){if(ge(),!j||k.length===0&&T.length===0){const fe=t.getAliasedSymbol(u);if(fe!==u&&fe.declarations&&fe.declarations.length>0){const xe=fe.declarations[0],Be=Ya(xe);if(Be&&!j){const We=nq(xe)&&Qu(xe,128),Ae=u.name!=="default"&&!We,De=Ilt(t,fe,zn(xe),xe,Be,p,E,Ae?u:fe);B.push(...De.displayParts),B.push(lw()),K=De.documentation,Y=De.tags}else K=fe.getContextualDocumentationComment(xe,t),Y=fe.getJsDocTags(t)}}if(u.declarations)switch(u.declarations[0].kind){case 270:B.push(Hf(95)),B.push($l()),B.push(Hf(145));break;case 277:B.push(Hf(95)),B.push($l()),B.push(Hf(u.declarations[0].isExportEquals?64:90));break;case 281:B.push(Hf(95));break;default:B.push(Hf(102))}B.push($l()),ne(u),L(u.declarations,fe=>{if(fe.kind===271){const xe=fe;if(yv(xe))B.push($l()),B.push(RM(64)),B.push($l()),B.push(Hf(149)),B.push(nh(21)),B.push(yf(Wc(eP(xe)),8)),B.push(nh(22));else{const Be=t.getSymbolAtLocation(xe.moduleReference);Be&&(B.push($l()),B.push(RM(64)),B.push($l()),ne(Be,d))}return!0}})}if(!j)if(z!==""){if(p){if(J?(ge(),B.push(Hf(110))):ve(u,z),z==="property"||z==="accessor"||z==="getter"||z==="setter"||z==="JSX attribute"||M&3||z==="local var"||z==="index"||z==="using"||z==="await using"||J){if(B.push(nh(59)),B.push($l()),p.symbol&&p.symbol.flags&262144&&z!=="index"){const fe=Zx(xe=>{const Be=t.typeParameterToDeclaration(p,d,hLe);se().writeNode(4,Be,zn(Za(d)),xe)});yn(B,fe)}else yn(B,UH(t,p,d));if(ZE(u)&&u.links.target&&ZE(u.links.target)&&u.links.target.links.tupleLabelDeclaration){const fe=u.links.target.links.tupleLabelDeclaration;H.assertNode(fe.name,at),B.push($l()),B.push(nh(21)),B.push(Wm(fu(fe.name))),B.push(nh(22))}}else if(M&16||M&8192||M&16384||M&131072||M&98304||z==="method"){const fe=p.getNonNullableType().getCallSignatures();fe.length&&(Ne(fe[0],fe),oe=fe.length>1)}}}else z=Plt(t,u,f);if(k.length===0&&!oe&&(k=u.getContextualDocumentationComment(d,t)),k.length===0&&M&4&&u.parent&&u.declarations&&L(u.parent.declarations,fe=>fe.kind===312))for(const fe of u.declarations){if(!fe.parent||fe.parent.kind!==226)continue;const xe=t.getSymbolAtLocation(fe.parent.right);if(xe&&(k=xe.getDocumentationComment(t),T=xe.getJsDocTags(t),k.length>0))break}if(k.length===0&&at(f)&&u.valueDeclaration&&Vs(u.valueDeclaration)){const fe=u.valueDeclaration,xe=fe.parent,Be=fe.propertyName||fe.name;if(at(Be)&&Op(xe)){const We=U4(Be),Ae=t.getTypeAtLocation(xe);k=G(Ae.isUnion()?Ae.types:[Ae],De=>{const He=De.getProperty(We);return He?He.getDocumentationComment(t):void 0})||Dt}}return T.length===0&&!oe&&(T=u.getContextualJsDocTags(d,t)),k.length===0&&K&&(k=K),T.length===0&&Y&&(T=Y),{displayParts:B,documentation:k,symbolKind:z,tags:T.length===0?void 0:T};function se(){return eb()}function ge(){B.length&&B.push(lw()),ae()}function ae(){v&&(Se("alias"),B.push($l()))}function Ce(){B.push($l()),B.push(Hf(103)),B.push($l())}function ne(fe,xe){let Be;v&&fe===u&&(fe=v),z==="index"&&(Be=t.getIndexInfosOfIndexSymbol(fe));let We=[];fe.flags&131072&&Be?(fe.parent&&(We=OM(t,fe.parent)),We.push(nh(23)),Be.forEach((Ae,De)=>{We.push(...UH(t,Ae.keyType)),De!==Be.length-1&&(We.push($l()),We.push(nh(52)),We.push($l()))}),We.push(nh(24))):We=OM(t,fe,xe||s,void 0,7),yn(B,We),u.flags&16777216&&B.push(nh(58))}function ve(fe,xe){ge(),xe&&(Se(xe),fe&&!Ge(fe.declarations,Be=>Z0(Be)||(w0(Be)||e1(Be))&&!Be.name)&&(B.push($l()),ne(fe)))}function Se(fe){switch(fe){case"var":case"function":case"let":case"const":case"constructor":case"using":case"await using":B.push(mfe(fe));return;default:B.push(nh(21)),B.push(mfe(fe)),B.push(nh(22));return}}function Ne(fe,xe,Be=0){yn(B,gfe(t,fe,d,Be|32)),xe.length>1&&(B.push($l()),B.push(nh(21)),B.push(RM(40)),B.push(yf((xe.length-1).toString(),7)),B.push($l()),B.push(Wm(xe.length===2?"overload":"overloads")),B.push(nh(22))),k=fe.getDocumentationComment(t),T=fe.getJsDocTags(),xe.length>1&&k.length===0&&T.length===0&&(k=xe[0].getDocumentationComment(t),T=xe[0].getJsDocTags().filter(We=>We.name!=="deprecated"))}function pe(fe,xe){const Be=Zx(We=>{const Ae=t.symbolToTypeParameterDeclarations(fe,xe,hLe);se().writeList(53776,Ae,zn(Za(xe)),We)});yn(B,Be)}}function $Zt(t,u,s,d,f,p=Pk(f),E){return Ilt(t,u,s,d,f,void 0,p,E)}function Rlt(t){return t.parent?!1:L(t.declarations,u=>{if(u.kind===218)return!0;if(u.kind!==260&&u.kind!==262)return!1;for(let s=u.parent;!F2(s);s=s.parent)if(s.kind===312||s.kind===268)return!1;return!0})}var hLe,UZt=o({"src/services/symbolDisplay.ts"(){or(),hLe=70246400}}),x5={};h(x5,{getSymbolDisplayPartsDocumentationAndSymbolKind:()=>$Zt,getSymbolKind:()=>Plt,getSymbolModifiers:()=>JZt});var qZt=o({"src/services/_namespaces/ts.SymbolDisplay.ts"(){UZt()}});function Olt(t){const u=t.__pos;return H.assert(typeof u=="number"),u}function fLe(t,u){H.assert(typeof u=="number"),t.__pos=u}function jlt(t){const u=t.__end;return H.assert(typeof u=="number"),u}function mLe(t,u){H.assert(typeof u=="number"),t.__end=u}function Vlt(t,u){return gs(t,u,!1,!0)}function ZZt(t,u){let s=u;for(;s0?1:0;let M=Mx(hP(t,B)+T,t);return M=Vlt(t.text,M),Mx(hP(t,M),t)}function pLe(t,u,s){const{end:d}=u,{trailingTriviaOption:f}=s;if(f===2){const p=Ev(t.text,d);if(p){const E=hP(t,u.end);for(const v of p){if(v.kind===2||hP(t,v.pos)>E)break;if(hP(t,v.end)>E)return gs(t.text,v.end,!0,!0)}}}}function kw(t,u,s){var d;const{end:f}=u,{trailingTriviaOption:p}=s;if(p===0)return f;if(p===1){const b=mi(Ev(t.text,f),G_(t.text,f)),B=(d=b==null?void 0:b[b.length-1])==null?void 0:d.end;return B||f}const E=pLe(t,u,s);if(E)return E;const v=gs(t.text,f,!0);return v!==f&&(p===2||Y1(t.text.charCodeAt(v-1)))?v:f}function Rpe(t,u){return!!u&&!!t.parent&&(u.kind===28||u.kind===27&&t.parent.kind===210)}function YZt(t){return w0(t)||td(t)}function QZt(t){if(t.kind!==219)return t;const u=t.parent.kind===172?t.parent:t.parent.parent;return u.jsDoc=t.jsDoc,u}function XZt(t,u){if(t.kind===u.kind)switch(t.kind){case 348:{const s=t,d=u;return at(s.name)&&at(d.name)&&s.name.escapedText===d.name.escapedText?q.createJSDocParameterTag(void 0,d.name,!1,d.typeExpression,d.isNameFirst,s.comment):void 0}case 349:return q.createJSDocReturnTag(void 0,u.typeExpression,t.comment);case 351:return q.createJSDocTypeTag(void 0,u.typeExpression,t.comment)}}function gLe(t,u){return gs(t.text,Hk(t,u,{leadingTriviaOption:1}),!1,!0)}function eYt(t,u,s,d){const f=gLe(t,d);if(s===void 0||Y4(kw(t,u,{}),f,t))return f;const p=id(d.getStart(t),t);if(Rpe(u,p)){const E=id(u.getStart(t),t);if(Rpe(s,E)){const v=gs(t.text,p.getEnd(),!0,!0);if(Y4(E.getStart(t),p.getStart(t),t))return Y1(t.text.charCodeAt(v-1))?v-1:v;if(Y1(t.text.charCodeAt(v)))return v}}return f}function tYt(t,u){const s=a0(t,19,u),d=a0(t,20,u);return[s==null?void 0:s.end,d==null?void 0:d.end]}function Ope(t){return ys(t)?t.properties:t.members}function ELe(t,u){for(let s=u.length-1;s>=0;s--){const{span:d,newText:f}=u[s];t=`${t.substring(0,d.start)}${f}${t.substring(Dc(d))}`}return t}function iYt(t){return gs(t,0)===t.length}function jpe(t){const u=rn(t,jpe,Glt,nYt,jpe),s=cl(u)?u:Object.create(u);return i_(s,Olt(t),jlt(t)),s}function nYt(t,u,s,d,f){const p=kn(t,u,s,d,f);if(!p)return p;H.assert(t);const E=p===t?q.createNodeArray(p.slice(0)):p;return i_(E,Olt(t),jlt(t)),E}function Hlt(t){let u=0;const s=Hj(t),d=De=>{De&&fLe(De,u)},f=De=>{De&&mLe(De,u)},p=De=>{De&&fLe(De,u)},E=De=>{De&&mLe(De,u)},v=De=>{De&&fLe(De,u)},b=De=>{De&&mLe(De,u)};function B(De,He){if(He||!iYt(De)){u=s.getTextPos();let Je=0;for(;U3(De.charCodeAt(De.length-Je-1));)Je++;u-=Je}}function k(De){s.write(De),B(De,!1)}function T(De){s.writeComment(De)}function M(De){s.writeKeyword(De),B(De,!1)}function z(De){s.writeOperator(De),B(De,!1)}function j(De){s.writePunctuation(De),B(De,!1)}function J(De){s.writeTrailingSemicolon(De),B(De,!1)}function K(De){s.writeParameter(De),B(De,!1)}function Y(De){s.writeProperty(De),B(De,!1)}function oe(De){s.writeSpace(De),B(De,!1)}function se(De){s.writeStringLiteral(De),B(De,!1)}function ge(De,He){s.writeSymbol(De,He),B(De,!1)}function ae(De){s.writeLine(De)}function Ce(){s.increaseIndent()}function ne(){s.decreaseIndent()}function ve(){return s.getText()}function Se(De){s.rawWrite(De),B(De,!1)}function Ne(De){s.writeLiteral(De),B(De,!0)}function pe(){return s.getTextPos()}function fe(){return s.getLine()}function xe(){return s.getColumn()}function Be(){return s.getIndent()}function We(){return s.isAtStartOfLine()}function Ae(){s.clear(),u=0}return{onBeforeEmitNode:d,onAfterEmitNode:f,onBeforeEmitNodeArray:p,onAfterEmitNodeArray:E,onBeforeEmitToken:v,onAfterEmitToken:b,write:k,writeComment:T,writeKeyword:M,writeOperator:z,writePunctuation:j,writeTrailingSemicolon:J,writeParameter:K,writeProperty:Y,writeSpace:oe,writeStringLiteral:se,writeSymbol:ge,writeLine:ae,increaseIndent:Ce,decreaseIndent:ne,getText:ve,rawWrite:Se,writeLiteral:Ne,getTextPos:pe,getLine:fe,getColumn:xe,getIndent:Be,isAtStartOfLine:We,hasTrailingComment:()=>s.hasTrailingComment(),hasTrailingWhitespace:()=>s.hasTrailingWhitespace(),clear:Ae}}function uYt(t){let u;for(const B of t.statements)if(zp(B))u=B;else break;let s=0;const d=t.text;if(u)return s=u.end,b(),s;const f=wU(d);f!==void 0&&(s=f.length,b());const p=G_(d,s);if(!p)return s;let E,v;for(const B of p){if(B.kind===3){if(tq(d,B.pos)){E={range:B,pinnedOrTripleSlash:!0};continue}}else if(h0e(d,B.pos,B.end)){E={range:B,pinnedOrTripleSlash:!0};continue}if(E){if(E.pinnedOrTripleSlash)break;const k=t.getLineAndCharacterOfPosition(B.pos).line,T=t.getLineAndCharacterOfPosition(E.range.end).line;if(k>=T+2)break}if(t.statements.length){v===void 0&&(v=t.getLineAndCharacterOfPosition(t.statements[0].getStart()).line);const k=t.getLineAndCharacterOfPosition(B.end).line;if(v(t[t.Exclude=0]="Exclude",t[t.IncludeAll=1]="IncludeAll",t[t.JSDoc=2]="JSDoc",t[t.StartLine=3]="StartLine",t))(_Le||{}),DLe=(t=>(t[t.Exclude=0]="Exclude",t[t.ExcludeWhitespace=1]="ExcludeWhitespace",t[t.Include=2]="Include",t))(DLe||{}),tz={leadingTriviaOption:0,trailingTriviaOption:0},Wlt=class ije{constructor(u,s){this.newLineCharacter=u,this.formatContext=s,this.changes=[],this.classesWithNodesInsertedAtStart=new Map,this.deletedNodes=[]}static fromContext(u){return new ije(E5(u.host,u.formatContext.options),u.formatContext)}static with(u,s){const d=ije.fromContext(u);return s(d),d.getChanges()}pushRaw(u,s){H.assertEqual(u.fileName,s.fileName);for(const d of s.textChanges)this.changes.push({kind:3,sourceFile:u,text:d.newText,range:EX(d.span)})}deleteRange(u,s){this.changes.push({kind:0,sourceFile:u,range:s})}delete(u,s){this.deletedNodes.push({sourceFile:u,node:s})}deleteNode(u,s,d={leadingTriviaOption:1}){this.deleteRange(u,IK(u,s,s,d))}deleteNodes(u,s,d={leadingTriviaOption:1},f){for(const p of s){const E=Hk(u,p,d,f),v=kw(u,p,d);this.deleteRange(u,{pos:E,end:v}),f=!!pLe(u,p,d)}}deleteModifier(u,s){this.deleteRange(u,{pos:s.getStart(u),end:gs(u.text,s.end,!0)})}deleteNodeRange(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=kw(u,d,f);this.deleteRange(u,{pos:p,end:E})}deleteNodeRangeExcludingEnd(u,s,d,f={leadingTriviaOption:1}){const p=Hk(u,s,f),E=d===void 0?u.text.length:Hk(u,d,f);this.deleteRange(u,{pos:p,end:E})}replaceRange(u,s,d,f={}){this.changes.push({kind:1,sourceFile:u,range:s,options:f,node:d})}replaceNode(u,s,d,f=tz){this.replaceRange(u,IK(u,s,s,f),d,f)}replaceNodeRange(u,s,d,f,p=tz){this.replaceRange(u,IK(u,s,d,p),f,p)}replaceRangeWithNodes(u,s,d,f={}){this.changes.push({kind:2,sourceFile:u,range:s,options:f,nodes:d})}replaceNodeWithNodes(u,s,d,f=tz){this.replaceRangeWithNodes(u,IK(u,s,s,f),d,f)}replaceNodeWithText(u,s,d){this.replaceRangeWithText(u,IK(u,s,s,tz),d)}replaceNodeRangeWithNodes(u,s,d,f,p=tz){this.replaceRangeWithNodes(u,IK(u,s,d,p),f,p)}nodeHasTrailingComment(u,s,d=tz){return!!pLe(u,s,d)}nextCommaToken(u,s){const d=nb(s,s.parent,u);return d&&d.kind===28?d:void 0}replacePropertyAssignment(u,s,d){const f=this.nextCommaToken(u,s)?"":","+this.newLineCharacter;this.replaceNode(u,s,d,{suffix:f})}insertNodeAt(u,s,d,f={}){this.replaceRange(u,d4(s),d,f)}insertNodesAt(u,s,d,f={}){this.replaceRangeWithNodes(u,d4(s),d,f)}insertNodeAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertNodesAtTopOfFile(u,s,d){this.insertAtTopOfFile(u,s,d)}insertAtTopOfFile(u,s,d){const f=uYt(u),p={prefix:f===0?void 0:this.newLineCharacter,suffix:(Y1(u.text.charCodeAt(f))?"":this.newLineCharacter)+(d?this.newLineCharacter:"")};Wa(s)?this.insertNodesAt(u,f,s,p):this.insertNodeAt(u,f,s,p)}insertNodesAtEndOfFile(u,s,d){this.insertAtEndOfFile(u,s,d)}insertAtEndOfFile(u,s,d){const f=u.end+1,p={prefix:this.newLineCharacter,suffix:this.newLineCharacter+(d?this.newLineCharacter:"")};this.insertNodesAt(u,f,s,p)}insertStatementsInNewFile(u,s,d){this.newFileChanges||(this.newFileChanges=Tm()),this.newFileChanges.add(u,{oldFile:d,statements:s})}insertFirstParameter(u,s,d){const f=Ki(s);f?this.insertNodeBefore(u,f,d):this.insertNodeAt(u,s.pos,d)}insertNodeBefore(u,s,d,f=!1,p={}){this.insertNodeAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,d,f))}insertNodesBefore(u,s,d,f=!1,p={}){this.insertNodesAt(u,Hk(u,s,p),d,this.getOptionsForInsertNodeBefore(s,Pn(d),f))}insertModifierAt(u,s,d,f={}){this.insertNodeAt(u,s,q.createToken(d),f)}insertModifierBefore(u,s,d){return this.insertModifierAt(u,d.getStart(u),s,{suffix:" "})}insertCommentBeforeLine(u,s,d,f){const p=Mx(s,u),E=BSe(u.text,p),v=Klt(u,E),b=NM(u,v?E:d),B=u.text.slice(p,E),k=`${v?"":this.newLineCharacter}//${f}${this.newLineCharacter}${B}`;this.insertText(u,b.getStart(u),k)}insertJsdocCommentBefore(u,s,d){const f=s.getStart(u);if(s.jsDoc)for(const v of s.jsDoc)this.deleteRange(u,{pos:np(v.getStart(u),u),end:kw(u,v,{})});const p=SX(u.text,f-1),E=u.text.slice(p,f);this.insertNodeAt(u,f,d,{suffix:this.newLineCharacter+E})}createJSDocText(u,s){const d=Vu(s.jsDoc,p=>Ua(p.comment)?q.createJSDocText(p.comment):p.comment),f=Sa(s.jsDoc);return f&&Y4(f.pos,f.end,u)&&S(d)===0?void 0:q.createNodeArray(_e(d,q.createJSDocText(` +`)))}replaceJSDocComment(u,s,d){this.insertJsdocCommentBefore(u,QZt(s),q.createJSDocComment(this.createJSDocText(u,s),q.createNodeArray(d)))}addJSDocTags(u,s,d){const f=Nr(s.jsDoc,E=>E.tags),p=d.filter(E=>!f.some((v,b)=>{const B=XZt(v,E);return B&&(f[b]=B),!!B}));this.replaceJSDocComment(u,s,[...f,...p])}filterJSDocTags(u,s,d){this.replaceJSDocComment(u,s,ti(Nr(s.jsDoc,f=>f.tags),d))}replaceRangeWithText(u,s,d){this.changes.push({kind:3,sourceFile:u,range:s,text:d})}insertText(u,s,d){this.replaceRangeWithText(u,d4(s),d)}tryInsertTypeAnnotation(u,s,d){let f;if(Co(s)){if(f=a0(s,22,u),!f){if(!Z0(s))return!1;f=Pn(s.parameters)}}else f=(s.kind===260?s.exclamationToken:s.questionToken)??s.name;return this.insertNodeAt(u,f.end,d,{prefix:": "}),!0}tryInsertThisTypeAnnotation(u,s,d){const f=a0(s,21,u).getStart(u)+1,p=s.parameters.length?", ":"";this.insertNodeAt(u,f,d,{prefix:"this: ",suffix:p})}insertTypeParameters(u,s,d){const f=(a0(s,21,u)||Pn(s.parameters)).getStart(u);this.insertNodesAt(u,f,d,{prefix:"<",suffix:">",joiner:", "})}getOptionsForInsertNodeBefore(u,s,d){return ua(u)||Yd(u)?{suffix:d?this.newLineCharacter+this.newLineCharacter:this.newLineCharacter}:ra(u)?{suffix:", "}:io(u)?io(s)?{suffix:", "}:{}:rs(u)&&Sd(u.parent)||uD(u)?{suffix:", "}:bf(u)?{suffix:","+(d?this.newLineCharacter:" ")}:H.failBadSyntaxKind(u)}insertNodeAtConstructorStart(u,s,d){const f=Ki(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[d,...s.body.statements]):this.insertNodeBefore(u,f,d)}insertNodeAtConstructorStartAfterSuperCall(u,s,d){const f=Le(s.body.statements,p=>Od(p)&&ik(p.expression));!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}insertNodeAtConstructorEnd(u,s,d){const f=Zu(s.body.statements);!f||!s.body.multiLine?this.replaceConstructorBody(u,s,[...s.body.statements,d]):this.insertNodeAfter(u,f,d)}replaceConstructorBody(u,s,d){this.replaceNode(u,s.body,q.createBlock(d,!0))}insertNodeAtEndOfScope(u,s,d){const f=Hk(u,s.getLastToken(),{});this.insertNodeAt(u,f,d,{prefix:Y1(u.text.charCodeAt(s.getLastToken().pos))?this.newLineCharacter:this.newLineCharacter+this.newLineCharacter,suffix:this.newLineCharacter})}insertMemberAtStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtObjectStart(u,s,d){this.insertNodeAtStartWorker(u,s,d)}insertNodeAtStartWorker(u,s,d){const f=this.guessIndentationFromExistingMembers(u,s)??this.computeIndentationForNewMember(u,s);this.insertNodeAt(u,Ope(s).pos,d,this.getInsertNodeAtStartInsertOptions(u,s,f))}guessIndentationFromExistingMembers(u,s){let d,f=s;for(const p of Ope(s)){if($q(f,p,u))return;const E=p.getStart(u),v=dd.SmartIndenter.findFirstNonWhitespaceColumn(np(E,u),E,u,this.formatContext.options);if(d===void 0)d=v;else if(v!==d)return;f=p}return d}computeIndentationForNewMember(u,s){const d=s.getStart(u);return dd.SmartIndenter.findFirstNonWhitespaceColumn(np(d,u),d,u,this.formatContext.options)+(this.formatContext.options.indentSize??4)}getInsertNodeAtStartInsertOptions(u,s,d){const p=Ope(s).length===0,E=Rp(this.classesWithNodesInsertedAtStart,Us(s),{node:s,sourceFile:u}),v=ys(s)&&(!J4(u)||!p),b=ys(s)&&J4(u)&&p&&!E;return{indentation:d,prefix:(b?",":"")+this.newLineCharacter,suffix:v?",":Ch(s)&&p?";":""}}insertNodeAfterComma(u,s,d){const f=this.insertNodeAfterWorker(u,this.nextCommaToken(u,s)||s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,d);this.insertNodeAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAtEndOfList(u,s,d){this.insertNodeAt(u,s.end,d,{prefix:", "})}insertNodesAfter(u,s,d){const f=this.insertNodeAfterWorker(u,s,Pn(d));this.insertNodesAt(u,f,d,this.getInsertNodeAfterOptions(u,s))}insertNodeAfterWorker(u,s,d){return rYt(s,d)&&u.text.charCodeAt(s.end-1)!==59&&this.replaceRange(u,d4(s.end),q.createToken(27)),kw(u,s,{})}getInsertNodeAfterOptions(u,s){const d=this.getInsertNodeAfterOptionsWorker(s);return{...d,prefix:s.end===u.end&&ua(s)?d.prefix?` ${d.prefix}`:` -`:d.prefix}}getInsertNodeAfterOptionsWorker(u){switch(u.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 H.assert(na(u)||OU(u)),{suffix:this.newLineCharacter}}}insertName(u,s,d){if(H.assert(!s.name),s.kind===219){const f=a0(s,39,u),p=a0(s,21,u);p?(this.insertNodesAt(u,p.getStart(u),[q.createToken(100),q.createIdentifier(d)],{joiner:" "}),lD(this,u,f)):(this.insertText(u,Pn(s.parameters).getStart(u),`function ${d}(`),this.replaceRange(u,f,q.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(u,s.body.getStart(u),[q.createToken(19),q.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(u,s.body.end,[q.createToken(27),q.createToken(20)],{joiner:" "}))}else{const f=a0(s,s.kind===218?100:86,u).end;this.insertNodeAt(u,f,q.createIdentifier(d),{prefix:" "})}}insertExportModifier(u,s){this.insertText(u,s.getStart(u),"export ")}insertImportSpecifierAtIndex(u,s,d,f){const p=d.elements[f-1];p?this.insertNodeInListAfter(u,p,s):this.insertNodeBefore(u,d.elements[0],s,!q4(d.elements[0].getStart(),d.parent.parent.getStart(),u))}insertNodeInListAfter(u,s,d,f=dd.SmartIndenter.getContainingList(s,u)){if(!f){H.fail("node is not a list element");return}const p=j8(f,s);if(p<0)return;const E=s.getEnd();if(p!==f.length-1){const v=Ca(u,s.end);if(v&&zpe(s,v)){const b=f[p+1],B=zlt(u.text,b.getFullStart()),k=`${Uo(v.kind)}${u.text.substring(v.end,B)}`;this.insertNodesAt(u,B,[d],{suffix:k})}}else{const v=s.getStart(u),b=tp(v,u);let B,k=!1;if(f.length===1)B=28;else{const T=td(s.pos,u);B=zpe(s,T)?T.kind:28,k=tp(f[p-1].getStart(u),u)!==b}if(JZt(u.text,s.end)&&(k=!0),k){this.replaceRange(u,s4(E),q.createToken(B));const T=dd.SmartIndenter.findFirstNonWhitespaceColumn(b,v,u,this.formatContext.options);let M=gs(u.text,E,!0,!1);for(;M!==E&&Z1(u.text.charCodeAt(M-1));)M--;this.replaceRange(u,s4(M),d,{indentation:T,prefix:this.newLineCharacter})}else this.replaceRange(u,s4(E),d,{prefix:`${Uo(B)} `})}}parenthesizeExpression(u,s){this.replaceRange(u,Tle(s),q.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:u,sourceFile:s})=>{const[d,f]=YZt(u,s);if(d!==void 0&&f!==void 0){const p=Ipe(u).length===0,E=q4(d,f,s);p&&E&&d!==f-1&&this.deleteRange(s,s4(d,f-1)),E&&this.insertText(s,f-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const u=new Set;for(const{sourceFile:s,node:d}of this.deletedNodes)this.deletedNodes.some(f=>f.sourceFile===s&&q9e(f.node,d))||(Ha(d)?this.deleteRange(s,Lle(s,d)):mLe.deleteDeclaration(this,u,s,d));u.forEach(s=>{const d=s.getSourceFile(),f=dd.SmartIndenter.getContainingList(s,d);if(s!==Cr(f))return;const p=Ze(f,E=>!u.has(E),f.length-2);p!==-1&&this.deleteRange(d,{pos:f[p].end,end:cLe(d,f[p+1])})})}getChanges(u){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=Ope.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,u);return this.newFileChanges&&this.newFileChanges.forEach((d,f)=>{s.push(Ope.newFileChanges(f,d,this.newLineCharacter,this.formatContext))}),s}createNewFile(u,s,d){this.insertStatementsInNewFile(s,d,u)}},(t=>{function u(v,b,B,k){return qi(vN(v,T=>T.sourceFile.path),T=>{const M=T[0].sourceFile,z=oc(T,(J,K)=>J.range.pos-K.range.pos||J.range.end-K.range.end);for(let J=0;J`${JSON.stringify(z[J].range)} and ${JSON.stringify(z[J+1].range)}`);const j=qi(z,J=>{const K=qx(J.range),Y=J.kind===1?zn(Wl(J.node))??J.sourceFile:J.kind===2?zn(Wl(J.nodes[0]))??J.sourceFile:J.sourceFile,oe=f(J,Y,M,b,B,k);if(!(K.length===oe.length&&MSe(Y.text,oe,K.start)))return VH(K,oe)});return j.length>0?{fileName:M.fileName,textChanges:j}:void 0})}t.getTextChangesFromChanges=u;function s(v,b,B,k){const T=d(sZ(v),b,B,k);return{fileName:v,textChanges:[VH(d1(0,0),T)],isNewFile:!0}}t.newFileChanges=s;function d(v,b,B,k){const T=ju(b,j=>j.statements.map(J=>J===4?"":E(J,j.oldFile,B).text)).join(B),M=KV("any file name",T,{languageVersion:99,jsDocParsingMode:1},!0,v),z=dd.formatDocument(M,k);return dLe(T,z)+B}t.newFileChangesWorker=d;function f(v,b,B,k,T,M){var z;if(v.kind===0)return"";if(v.kind===3)return v.text;const{options:j={},range:{pos:J}}=v,K=se=>p(se,b,B,J,j,k,T,M),Y=v.kind===2?v.nodes.map(se=>D8(K(se),k)).join(((z=v.options)==null?void 0:z.joiner)||k):K(v.node),oe=j.indentation!==void 0||tp(J,b)===J?Y:Y.replace(/^\s+/,"");return(j.prefix||"")+oe+(!j.suffix||sc(oe,j.suffix)?"":j.suffix)}function p(v,b,B,k,{indentation:T,prefix:M,delta:z},j,J,K){const{node:Y,text:oe}=E(v,b,j);K&&K(Y,oe);const se=jX(J,b),ge=T!==void 0?T:dd.SmartIndenter.getIndentation(k,B,se,M===j||tp(k,b)===k);z===void 0&&(z=dd.SmartIndenter.shouldIndentChildNode(se,v)&&se.indentSize||0);const ae={text:oe,getLineAndCharacterOfPosition(ne){return s0(this,ne)}},Ce=dd.formatNodeGivenIndentation(Y,ae,b.languageVariant,ge,z,{...J,options:se});return dLe(oe,Ce)}function E(v,b,B){const k=Ilt(B),T=eK(B);return Gv({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,v,b,k),{text:k.getText(),node:Rpe(v)}}t.getNonformattedText=E})(Ope||(Ope={})),jlt={...Dg,factory:mV(Dg.factory.flags|1,Dg.factory.baseFactory)},(t=>{function u(p,E,v,b){switch(b.kind){case 169:{const z=b.parent;q0(z)&&z.parameters.length===1&&!a0(z,21,v)?p.replaceNodeWithText(v,b,"()"):IK(p,E,v,b);break}case 272:case 271:const B=v.imports.length&&b===Pn(v.imports).parent||b===Le(v.statements,tk);lD(p,v,b,{leadingTriviaOption:B?0:lm(b)?2:3});break;case 208:const k=b.parent;k.kind===207&&b!==Cr(k.elements)?lD(p,v,b):IK(p,E,v,b);break;case 260:f(p,E,v,b);break;case 168:IK(p,E,v,b);break;case 276:const M=b.parent;M.elements.length===1?d(p,v,M):IK(p,E,v,b);break;case 274:d(p,v,b);break;case 27:lD(p,v,b,{trailingTriviaOption:0});break;case 100:lD(p,v,b,{leadingTriviaOption:0});break;case 263:case 262:lD(p,v,b,{leadingTriviaOption:lm(b)?2:3});break;default:b.parent?n_(b.parent)&&b.parent.name===b?s(p,v,b.parent):Mo(b.parent)&&kt(b.parent.arguments,b)?IK(p,E,v,b):lD(p,v,b):lD(p,v,b)}}t.deleteDeclaration=u;function s(p,E,v){if(!v.namedBindings)lD(p,E,v.parent);else{const b=v.name.getStart(E),B=Ca(E,v.name.end);if(B&&B.kind===28){const k=gs(E.text,B.end,!1,!0);p.deleteRange(E,{pos:b,end:k})}else lD(p,E,v.name)}}function d(p,E,v){if(v.parent.name){const b=H.checkDefined(Ca(E,v.pos-1));p.deleteRange(E,{pos:b.getStart(E),end:v.end})}else{const b=Fv(v,272);lD(p,E,b)}}function f(p,E,v,b){const{parent:B}=b;if(B.kind===299){p.deleteNodeRange(v,a0(B,21,v),a0(B,22,v));return}if(B.declarations.length!==1){IK(p,E,v,b);return}const k=B.parent;switch(k.kind){case 250:case 249:p.replaceNode(v,b,q.createObjectLiteralExpression());break;case 248:lD(p,v,B);break;case 243:lD(p,v,k,{leadingTriviaOption:lm(k)?2:3});break;default:H.assertNever(k)}}})(mLe||(mLe={}))}}),iu={};h(iu,{ChangeTracker:()=>Olt,LeadingTriviaOption:()=>hLe,TrailingTriviaOption:()=>fLe,applyChanges:()=>dLe,assignPositionsToNode:()=>Rpe,createWriter:()=>Ilt,deleteNode:()=>lD,isThisTypeAnnotatable:()=>$Zt,isValidLocationToAddComment:()=>Rlt});var nYt=o({"src/services/_namespaces/ts.textChanges.ts"(){iYt()}}),pLe,gLe,uYt=o({"src/services/formatting/formattingContext.ts"(){rr(),pLe=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(pLe||{}),gLe=class{constructor(t,u,s){this.sourceFile=t,this.formattingRequestKind=u,this.options=s}updateContext(t,u,s,d,f){this.currentTokenSpan=H.checkDefined(t),this.currentTokenParent=H.checkDefined(u),this.nextTokenSpan=H.checkDefined(s),this.nextTokenParent=H.checkDefined(d),this.contextNode=H.checkDefined(f),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,u=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===u}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){const u=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return u===s}BlockIsOnOneLine(t){const u=a0(t,19,this.sourceFile),s=a0(t,20,this.sourceFile);if(u&&s){const d=this.sourceFile.getLineAndCharacterOfPosition(u.getEnd()).line,f=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return d===f}return!1}}}});function ELe(t,u,s,d,f){const p=u===1?Hlt:Vlt;p.setText(t),p.resetTokenState(s);let E=!0,v,b,B,k,T;const M=f({advance:z,readTokenInfo:ae,readEOFTokenRange:ne,isOnToken:ve,isOnEOF:Se,getCurrentLeadingTrivia:()=>v,lastTrailingTriviaWasNewLine:()=>E,skipToEndOf:pe,skipToStartOf:fe,getTokenFullStart:()=>(T==null?void 0:T.token.pos)??p.getTokenStart(),getStartPos:()=>(T==null?void 0:T.token.pos)??p.getTokenStart()});return T=void 0,p.setText(void 0),M;function z(){T=void 0,p.getTokenFullStart()!==s?E=!!b&&Cr(b).kind===4:p.scan(),v=void 0,b=void 0;let Be=p.getTokenFullStart();for(;Be(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(_Le||{}),DLe=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(DLe||{})}});function Klt(){const t=[];for(let Ce=0;Ce<=165;Ce++)Ce!==1&&t.push(Ce);function u(...Ce){return{tokens:t.filter(ne=>!Ce.some(ve=>ve===ne)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},d=tz([...t,3]),f=tz([...t,1]),p=Glt(83,165),E=Glt(30,79),v=[103,104,165,130,142,152],b=[46,47,55,54],B=[9,10,80,21,23,19,110,105],k=[80,21,110,105],T=[80,22,24,105],M=[80,21,110,105],z=[80,22,24,105],j=[2,3],J=[80,...HX],K=d,Y=tz([80,3,86,95,102]),oe=tz([22,3,92,113,98,93]),se=[Ju("IgnoreBeforeComment",s,j,Kee,1),Ju("IgnoreAfterLineComment",2,s,Kee,1),Ju("NotSpaceBeforeColon",s,59,[ta,Wee,Ult],16),Ju("SpaceAfterColon",59,s,[ta,Wee,bYt],4),Ju("NoSpaceBeforeQuestionMark",s,58,[ta,Wee,Ult],16),Ju("SpaceAfterQuestionMarkInConditionalOperator",58,s,[ta,cYt],4),Ju("NoSpaceAfterQuestionMark",58,s,[ta,lYt],16),Ju("NoSpaceBeforeDot",s,[25,29],[ta,zYt],16),Ju("NoSpaceAfterDot",[25,29],s,[ta],16),Ju("NoSpaceBetweenImportParenInImportType",102,21,[ta,vYt],16),Ju("NoSpaceAfterUnaryPrefixOperator",b,B,[ta,Wee],16),Ju("NoSpaceAfterUnaryPreincrementOperator",46,k,[ta],16),Ju("NoSpaceAfterUnaryPredecrementOperator",47,M,[ta],16),Ju("NoSpaceBeforeUnaryPostincrementOperator",T,46,[ta,cct],16),Ju("NoSpaceBeforeUnaryPostdecrementOperator",z,47,[ta,cct],16),Ju("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[ta,Qx],4),Ju("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[ta,Qx],4),Ju("SpaceAfterAddWhenFollowedByPreincrement",40,46,[ta,Qx],4),Ju("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[ta,Qx],4),Ju("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[ta,Qx],4),Ju("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[ta,Qx],4),Ju("NoSpaceAfterCloseBrace",20,[28,27],[ta],16),Ju("NewLineBeforeCloseBraceInBlockContext",d,20,[Zlt],8),Ju("SpaceAfterCloseBrace",20,u(22),[ta,fYt],4),Ju("SpaceBetweenCloseBraceAndElse",20,93,[ta],4),Ju("SpaceBetweenCloseBraceAndWhile",20,117,[ta],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[ta,ict],16),Ju("SpaceAfterConditionalClosingParen",22,23,[Gee],4),Ju("NoSpaceBetweenFunctionKeywordAndStar",100,42,[Xlt],16),Ju("SpaceAfterStarInGeneratorDeclaration",42,80,[Xlt],4),Ju("SpaceAfterFunctionInFuncDecl",100,s,[Kk],4),Ju("NewLineAfterOpenBraceInBlockContext",19,s,[Zlt],8),Ju("SpaceAfterGetSetInMember",[139,153],80,[Kk],4),Ju("NoSpaceBetweenYieldKeywordAndStar",127,42,[ta,lct],16),Ju("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[ta,lct],4),Ju("NoSpaceBetweenReturnAndSemicolon",107,27,[ta],16),Ju("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[ta],4),Ju("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[ta,FYt],4),Ju("NoSpaceBeforeOpenParenInFuncCall",s,21,[ta,gYt,EYt],16),Ju("SpaceBeforeBinaryKeywordOperator",s,v,[ta,Qx],4),Ju("SpaceAfterBinaryKeywordOperator",v,s,[ta,Qx],4),Ju("SpaceAfterVoidOperator",116,s,[ta,TYt],4),Ju("SpaceBetweenAsyncAndOpenParen",134,21,[xYt,ta],4),Ju("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[ta],4),Ju("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[ta],16),Ju("SpaceBeforeJsxAttribute",s,80,[CYt,ta],4),Ju("SpaceBeforeSlashInJsxOpeningElement",s,44,[act,ta],4),Ju("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[act,ta],16),Ju("NoSpaceBeforeEqualInJsxAttribute",s,64,[uct,ta],16),Ju("NoSpaceAfterEqualInJsxAttribute",64,s,[uct,ta],16),Ju("NoSpaceBeforeJsxNamespaceColon",80,59,[rct],16),Ju("NoSpaceAfterJsxNamespaceColon",59,80,[rct],16),Ju("NoSpaceAfterModuleImport",[144,149],21,[ta],16),Ju("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],s,[ta],4),Ju("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[ta],4),Ju("SpaceAfterModuleName",11,19,[AYt],4),Ju("SpaceBeforeArrow",s,39,[ta],4),Ju("SpaceAfterArrow",39,s,[ta],4),Ju("NoSpaceAfterEllipsis",26,80,[ta],16),Ju("NoSpaceAfterOptionalParameters",58,[22,28],[ta,Wee],16),Ju("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[ta,SYt],16),Ju("NoSpaceBeforeOpenAngularBracket",J,30,[ta,Jee],16),Ju("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[ta,Jee],16),Ju("NoSpaceAfterOpenAngularBracket",30,s,[ta,Jee],16),Ju("NoSpaceBeforeCloseAngularBracket",s,32,[ta,Jee],16),Ju("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[ta,Jee,hYt,wYt],16),Ju("SpaceBeforeAt",[22,80],60,[ta],4),Ju("NoSpaceAfterAt",60,s,[ta],16),Ju("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[kYt],4),Ju("NoSpaceBeforeNonNullAssertionOperator",s,54,[ta,LYt],16),Ju("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[ta,BYt],16),Ju("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[ta],4)],ge=[Ju("SpaceAfterConstructor",137,21,[Wm("insertSpaceAfterConstructor"),ta],4),Ju("NoSpaceAfterConstructor",137,21,[dE("insertSpaceAfterConstructor"),ta],16),Ju("SpaceAfterComma",28,s,[Wm("insertSpaceAfterCommaDelimiter"),ta,FLe,_Yt,DYt],4),Ju("NoSpaceAfterComma",28,s,[dE("insertSpaceAfterCommaDelimiter"),ta,FLe],16),Ju("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Wm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],4),Ju("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[dE("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],16),Ju("SpaceAfterKeywordInControl",p,21,[Wm("insertSpaceAfterKeywordsInControlFlowStatements"),Gee],4),Ju("NoSpaceAfterKeywordInControl",p,21,[dE("insertSpaceAfterKeywordsInControlFlowStatements"),Gee],16),Ju("SpaceAfterOpenParen",21,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),Ju("SpaceBeforeCloseParen",s,22,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),Ju("SpaceBetweenOpenParens",21,21,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),Ju("NoSpaceBetweenParens",21,22,[ta],16),Ju("NoSpaceAfterOpenParen",21,s,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],16),Ju("NoSpaceBeforeCloseParen",s,22,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],16),Ju("SpaceAfterOpenBracket",23,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],4),Ju("SpaceBeforeCloseBracket",s,24,[Wm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],4),Ju("NoSpaceBetweenBrackets",23,24,[ta],16),Ju("NoSpaceAfterOpenBracket",23,s,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],16),Ju("NoSpaceBeforeCloseBracket",s,24,[dE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],16),Ju("SpaceAfterOpenBrace",19,s,[$lt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qlt],4),Ju("SpaceBeforeCloseBrace",s,20,[$lt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),qlt],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[ta,ict],16),Ju("NoSpaceAfterOpenBrace",19,s,[xLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ta],16),Ju("NoSpaceBeforeCloseBrace",s,20,[xLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ta],16),Ju("SpaceBetweenEmptyBraceBrackets",19,20,[Wm("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),Ju("NoSpaceBetweenEmptyBraceBrackets",19,20,[xLe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),ta],16),Ju("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[Wm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nct],4,1),Ju("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[Wm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ta],4),Ju("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[dE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),nct],16,1),Ju("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[dE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ta],16),Ju("SpaceAfterOpenBraceInJsxExpression",19,s,[Wm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Vpe],4),Ju("SpaceBeforeCloseBraceInJsxExpression",s,20,[Wm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Vpe],4),Ju("NoSpaceAfterOpenBraceInJsxExpression",19,s,[dE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Vpe],16),Ju("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[dE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Vpe],16),Ju("SpaceAfterSemicolonInFor",27,s,[Wm("insertSpaceAfterSemicolonInForStatements"),ta,CLe],4),Ju("NoSpaceAfterSemicolonInFor",27,s,[dE("insertSpaceAfterSemicolonInForStatements"),ta,CLe],16),Ju("SpaceBeforeBinaryOperator",s,E,[Wm("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],4),Ju("SpaceAfterBinaryOperator",E,s,[Wm("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],4),Ju("NoSpaceBeforeBinaryOperator",s,E,[dE("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],16),Ju("NoSpaceAfterBinaryOperator",E,s,[dE("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],16),Ju("SpaceBeforeOpenParenInFuncDecl",s,21,[Wm("insertSpaceBeforeFunctionParenthesis"),ta,Kk],4),Ju("NoSpaceBeforeOpenParenInFuncDecl",s,21,[dE("insertSpaceBeforeFunctionParenthesis"),ta,Kk],16),Ju("NewLineBeforeOpenBraceInControl",oe,19,[Wm("placeOpenBraceOnNewLineForControlBlocks"),Gee,kLe],8,1),Ju("NewLineBeforeOpenBraceInFunction",K,19,[Wm("placeOpenBraceOnNewLineForFunctions"),Kk,kLe],8,1),Ju("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[Wm("placeOpenBraceOnNewLineForFunctions"),ect,kLe],8,1),Ju("SpaceAfterTypeAssertion",32,s,[Wm("insertSpaceAfterTypeAssertion"),ta,SLe],4),Ju("NoSpaceAfterTypeAssertion",32,s,[dE("insertSpaceAfterTypeAssertion"),ta,SLe],16),Ju("SpaceBeforeTypeAnnotation",s,[58,59],[Wm("insertSpaceBeforeTypeAnnotation"),ta,bLe],4),Ju("NoSpaceBeforeTypeAnnotation",s,[58,59],[dE("insertSpaceBeforeTypeAnnotation"),ta,bLe],16),Ju("NoOptionalSemicolon",27,f,[Jlt("semicolons","remove"),PYt],32),Ju("OptionalSemicolon",s,f,[Jlt("semicolons","insert"),MYt],64)],ae=[Ju("NoSpaceBeforeSemicolon",s,27,[ta],16),Ju("SpaceBeforeOpenBraceInControl",oe,19,[vLe("placeOpenBraceOnNewLineForControlBlocks"),Gee,ALe,yLe],4,1),Ju("SpaceBeforeOpenBraceInFunction",K,19,[vLe("placeOpenBraceOnNewLineForFunctions"),Kk,jpe,ALe,yLe],4,1),Ju("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[vLe("placeOpenBraceOnNewLineForFunctions"),ect,ALe,yLe],4,1),Ju("NoSpaceBeforeComma",s,28,[ta],16),Ju("NoSpaceBeforeOpenBracket",u(134,84),23,[ta],16),Ju("NoSpaceAfterCloseBracket",24,s,[ta,yYt],16),Ju("SpaceAfterSemicolon",27,s,[ta],4),Ju("SpaceBetweenForAndAwaitKeyword",99,135,[ta],4),Ju("SpaceBetweenStatements",[22,92,93,84],s,[ta,FLe,oYt],4),Ju("SpaceAfterTryCatchFinally",[113,85,98],19,[ta],4)];return[...se,...ge,...ae]}function Ju(t,u,s,d,f,p=0){return{leftTokenRange:Wlt(u),rightTokenRange:Wlt(s),rule:{debugName:t,context:d,action:f,flags:p}}}function tz(t){return{tokens:t,isSpecific:!0}}function Wlt(t){return typeof t=="number"?tz([t]):Ha(t)?tz(t):t}function Glt(t,u,s=[]){const d=[];for(let f=t;f<=u;f++)kt(s,f)||d.push(f);return tz(d)}function Jlt(t,u){return s=>s.options&&s.options[t]===u}function Wm(t){return u=>u.options&&gu(u.options,t)&&!!u.options[t]}function xLe(t){return u=>u.options&&gu(u.options,t)&&!u.options[t]}function dE(t){return u=>!u.options||!gu(u.options,t)||!u.options[t]}function vLe(t){return u=>!u.options||!gu(u.options,t)||!u.options[t]||u.TokensAreOnSameLine()}function $lt(t){return u=>!u.options||!gu(u.options,t)||!!u.options[t]}function CLe(t){return t.contextNode.kind===248}function oYt(t){return!CLe(t)}function Qx(t){switch(t.contextNode.kind){case 226:return t.contextNode.operatorToken.kind!==28;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 t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 249:case 168:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function Wee(t){return!Qx(t)}function Ult(t){return!bLe(t)}function bLe(t){const u=t.contextNode.kind;return u===172||u===171||u===169||u===260||a7(u)}function sYt(t){return ko(t.contextNode)&&t.contextNode.questionToken}function lYt(t){return!sYt(t)}function cYt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function yLe(t){return t.TokensAreOnSameLine()||jpe(t)}function qlt(t){return t.contextNode.kind===206||t.contextNode.kind===200||dYt(t)}function kLe(t){return jpe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function Zlt(t){return Ylt(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function dYt(t){return Ylt(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function Ylt(t){return Qlt(t.contextNode)}function jpe(t){return Qlt(t.nextTokenParent)}function Qlt(t){if(tct(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Kk(t){switch(t.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 hYt(t){return!Kk(t)}function Xlt(t){return t.contextNode.kind===262||t.contextNode.kind===218}function ect(t){return tct(t.contextNode)}function tct(t){switch(t.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 fYt(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const u=t.currentTokenParent.parent;if(!u||u.kind!==219&&u.kind!==218)return!0}}return!1}function Gee(t){switch(t.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 ict(t){return t.contextNode.kind===210}function mYt(t){return t.contextNode.kind===213}function pYt(t){return t.contextNode.kind===214}function gYt(t){return mYt(t)||pYt(t)}function EYt(t){return t.currentTokenSpan.kind!==28}function _Yt(t){return t.nextTokenSpan.kind!==24}function DYt(t){return t.nextTokenSpan.kind!==22}function xYt(t){return t.contextNode.kind===219}function vYt(t){return t.contextNode.kind===205}function ta(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function nct(t){return t.contextNode.kind!==12}function FLe(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function Vpe(t){return t.contextNode.kind===294||t.contextNode.kind===293}function CYt(t){return t.nextTokenParent.kind===291||t.nextTokenParent.kind===295&&t.nextTokenParent.parent.kind===291}function uct(t){return t.contextNode.kind===291}function bYt(t){return t.nextTokenParent.kind!==295}function rct(t){return t.nextTokenParent.kind===295}function act(t){return t.contextNode.kind===285}function yYt(t){return!Kk(t)&&!jpe(t)}function kYt(t){return t.TokensAreOnSameLine()&&o4(t.contextNode)&&oct(t.currentTokenParent)&&!oct(t.nextTokenParent)}function oct(t){for(;t&&Wt(t);)t=t.parent;return t&&t.kind===170}function FYt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function ALe(t){return t.formattingRequestKind!==2}function AYt(t){return t.contextNode.kind===267}function SYt(t){return t.contextNode.kind===187}function BYt(t){return t.contextNode.kind===180}function sct(t,u){if(t.kind!==30&&t.kind!==32)return!1;switch(u.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 Jee(t){return sct(t.currentTokenSpan,t.currentTokenParent)||sct(t.nextTokenSpan,t.nextTokenParent)}function SLe(t){return t.contextNode.kind===216}function wYt(t){return!SLe(t)}function TYt(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function lct(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function LYt(t){return t.contextNode.kind===235}function cct(t){return!NYt(t)}function NYt(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function PYt(t){let u=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(nB(u)){const p=t.nextTokenParent===t.currentTokenParent?ib(t.currentTokenParent,Tn(t.currentTokenParent,E=>!E.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!p)return!0;u=p.kind,s=p.getStart(t.sourceFile)}const d=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,f=t.sourceFile.getLineAndCharacterOfPosition(s).line;return d===f?u===20||u===1:u===240||u===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!Mm(t.currentTokenParent)||!!t.currentTokenParent.type||u!==21:ko(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&u!==23&&u!==21&&u!==40&&u!==41&&u!==44&&u!==14&&u!==28&&u!==228&&u!==16&&u!==15&&u!==25}function MYt(t){return TX(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function zYt(t){return!Iu(t.contextNode)||!Of(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}var IYt=o({"src/services/formatting/rules.ts"(){rr(),jK()}});function RYt(t,u){return{options:t,getRules:OYt(),host:u}}function OYt(){return BLe===void 0&&(BLe=VYt(Klt())),BLe}function jYt(t){let u=0;return t&1&&(u|=28),t&2&&(u|=96),t&28&&(u|=28),t&96&&(u|=96),u}function VYt(t){const u=HYt(t);return s=>{const d=u[dct(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(d){const f=[];let p=0;for(const E of d){const v=~jYt(p);E.action&v&&ye(E.context,b=>b(s))&&(f.push(E),p|=E.action)}if(f.length)return f}}}function HYt(t){const u=new Array(Hpe*Hpe),s=new Array(u.length);for(const d of t){const f=d.leftTokenRange.isSpecific&&d.rightTokenRange.isSpecific;for(const p of d.leftTokenRange.tokens)for(const E of d.rightTokenRange.tokens){const v=dct(p,E);let b=u[v];b===void 0&&(b=u[v]=[]),KYt(b,d.rule,f,s,v)}}return u}function dct(t,u){return H.assert(t<=165&&u<=165,"Must compute formatting context from tokens"),t*Hpe+u}function KYt(t,u,s,d,f){const p=u.action&3?s?0:iz.StopRulesAny:u.context!==Kee?s?iz.ContextRulesSpecific:iz.ContextRulesAny:s?iz.NoContextRulesSpecific:iz.NoContextRulesAny,E=d[f]||0;t.splice(WYt(E,p),0,u),d[f]=GYt(E,p)}function WYt(t,u){let s=0;for(let d=0;d<=u;d+=Fw)s+=t&$ee,t>>=Fw;return s}function GYt(t,u){const s=(t>>u&$ee)+1;return H.assert((s&$ee)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~($ee<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=Fw*1]="StopRulesAny",t[t.ContextRulesSpecific=Fw*2]="ContextRulesSpecific",t[t.ContextRulesAny=Fw*3]="ContextRulesAny",t[t.NoContextRulesSpecific=Fw*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=Fw*5]="NoContextRulesAny",t))(iz||{})}});function Kpe(t,u,s){const d={pos:t,end:u,kind:s};return H.isDebugging&&Object.defineProperty(d,"__debugKind",{get:()=>H.formatSyntaxKind(s)}),d}function $Yt(t,u,s){const d=u.getLineAndCharacterOfPosition(t).line;if(d===0)return[];let f=uj(d,u);for(;qg(u.text.charCodeAt(f));)f--;Z1(u.text.charCodeAt(f))&&f--;const p={pos:Mx(d-1,u),end:f+1};return Uee(p,u,s,2)}function UYt(t,u,s){const d=wLe(t,27,u);return hct(TLe(d),u,s,3)}function qYt(t,u,s){const d=wLe(t,19,u);if(!d)return[];const f=d.parent,p=TLe(f),E={pos:tp(p.getStart(u),u),end:t};return Uee(E,u,s,4)}function ZYt(t,u,s){const d=wLe(t,20,u);return hct(TLe(d),u,s,5)}function YYt(t,u){const s={pos:0,end:t.text.length};return Uee(s,t,u,0)}function QYt(t,u,s,d){const f={pos:tp(t,s),end:u};return Uee(f,s,d,1)}function wLe(t,u,s){const d=td(t,s);return d&&d.kind===u&&t===d.getEnd()?d:void 0}function TLe(t){let u=t;for(;u&&u.parent&&u.parent.end===t.end&&!XYt(u.parent,u);)u=u.parent;return u}function XYt(t,u){switch(t.kind){case 263:case 264:return Vm(t.members,u);case 267:const s=t.body;return!!s&&s.kind===268&&Vm(s.statements,u);case 312:case 241:case 268:return Vm(t.statements,u);case 299:return Vm(t.block.statements,u)}return!1}function eQt(t,u){return s(u);function s(d){const f=ao(d,p=>Khe(p.getStart(u),p.end,t)&&p);if(f){const p=s(f);if(p)return p}return d}}function tQt(t,u){if(!t.length)return f;const s=t.filter(p=>TM(u,p.start,p.start+p.length)).sort((p,E)=>p.start-E.start);if(!s.length)return f;let d=0;return p=>{for(;;){if(d>=s.length)return!1;const E=s[d];if(p.end<=E.start)return!1;if(aX(p.pos,p.end,E.start,E.start+E.length))return!0;d++}};function f(){return!1}}function iQt(t,u,s){const d=t.getStart(s);if(d===u.pos&&t.end===u.end)return d;const f=td(u.pos,s);return!f||f.end>=u.pos?t.pos:f.end}function nQt(t,u,s){let d=-1,f;for(;t;){const p=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(d!==-1&&p!==d)break;if(hE.shouldIndentChildNode(u,t,f,s))return u.indentSize;d=p,f=t,t=t.parent}return 0}function uQt(t,u,s,d,f,p){const E={pos:t.pos,end:t.end};return ELe(u.text,s,E.pos,E.end,v=>fct(E,t,d,f,v,p,1,b=>!1,u))}function hct(t,u,s,d){if(!t)return[];const f={pos:tp(t.getStart(u),u),end:t.end};return Uee(f,u,s,d)}function Uee(t,u,s,d){const f=eQt(t,u);return ELe(u.text,u.languageVariant,iQt(f,t,u),t.end,p=>fct(t,f,hE.getIndentationForNode(f,t,u,s.options),nQt(f,s.options,u),p,s,d,tQt(u.parseDiagnostics,t),u))}function fct(t,u,s,d,f,{options:p,getRules:E,host:v},b,B,k){var T;const M=new gLe(k,b,p);let z,j,J,K,Y,oe=-1;const se=[];if(f.advance(),f.isOnToken()){const Ie=k.getLineAndCharacterOfPosition(u.getStart(k)).line;let st=Ie;o4(u)&&(st=k.getLineAndCharacterOfPosition(d0e(u,k)).line),Se(u,u,Ie,st,s,d)}const ge=f.getCurrentLeadingTrivia();if(ge){const Ie=hE.nodeWillIndentChild(p,u,void 0,k,!1)?s+p.indentSize:s;Ne(ge,Ie,!0,st=>{fe(st,k.getLineAndCharacterOfPosition(st.pos),u,u,void 0),Be(st.pos,Ie,!1)}),p.trimTrailingWhitespace!==!1&&ft(ge)}if(j&&f.getTokenFullStart()>=t.end){const Ie=f.isOnEOF()?f.readEOFTokenRange():f.isOnToken()?f.readTokenInfo(u).token:void 0;if(Ie&&Ie.pos===z){const st=((T=td(Ie.end,k,u))==null?void 0:T.parent)||J;xe(Ie,k.getLineAndCharacterOfPosition(Ie.pos).line,st,j,K,J,st,void 0)}}return se;function ae(Ie,st,St,It,ei){if(TM(It,Ie,st)||IH(It,Ie,st)){if(ei!==-1)return ei}else{const ht=k.getLineAndCharacterOfPosition(Ie).line,Ut=tp(Ie,k),Ni=hE.findFirstNonWhitespaceColumn(Ut,Ie,k,p);if(ht!==St||Ie===Ni){const ji=hE.getBaseIndentation(p);return ji>Ni?ji:Ni}}return-1}function Ce(Ie,st,St,It,ei,ht){const Ut=hE.shouldIndentChildNode(p,Ie)?p.indentSize:0;return ht===st?{indentation:st===Y?oe:ei.getIndentation(),delta:Math.min(p.indentSize,ei.getDelta(Ie)+Ut)}:St===-1?Ie.kind===21&&st===Y?{indentation:oe,delta:ei.getDelta(Ie)}:hE.childStartsOnTheSameLineWithElseInIfStatement(It,Ie,st,k)||hE.childIsUnindentedBranchOfConditionalExpression(It,Ie,st,k)||hE.argumentStartsOnSameLineAsPreviousArgument(It,Ie,st,k)?{indentation:ei.getIndentation(),delta:Ut}:{indentation:ei.getIndentation()+ei.getDelta(Ie),delta:Ut}:{indentation:St,delta:Ut}}function ne(Ie){if(Hp(Ie)){const st=Le(Ie.modifiers,Qo,Ue(Ie.modifiers,g1));if(st)return st.kind}switch(Ie.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(Ie.asteriskToken)return 42;case 172:case 169:const st=Za(Ie);if(st)return st.kind}}function ve(Ie,st,St,It){return{getIndentationForComment:(Ut,Ni,ji)=>{switch(Ut){case 20:case 24:case 22:return St+ht(ji)}return Ni!==-1?Ni:St},getIndentationForToken:(Ut,Ni,ji,xn)=>!xn&&ei(Ut,Ni,ji)?St+ht(ji):St,getIndentation:()=>St,getDelta:ht,recomputeIndentation:(Ut,Ni)=>{hE.shouldIndentChildNode(p,Ni,Ie,k)&&(St+=Ut?p.indentSize:-p.indentSize,It=hE.shouldIndentChildNode(p,Ie)?p.indentSize:0)}};function ei(Ut,Ni,ji){switch(Ni){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(ji.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(ji.kind!==200)return!1;break}return st!==Ut&&!(o4(Ie)&&Ni===ne(Ie))}function ht(Ut){return hE.nodeWillIndentChild(p,Ie,Ut,k,!0)?It:0}}function Se(Ie,st,St,It,ei,ht){if(!TM(t,Ie.getStart(k),Ie.getEnd()))return;const Ut=ve(Ie,St,ei,ht);let Ni=st;for(ao(Ie,an=>{ji(an,-1,Ie,Ut,St,It,!1)},an=>{xn(an,Ie,St,Ut)});f.isOnToken()&&f.getTokenFullStart()Math.min(Ie.end,t.end))break;Jn(an,Ie,Ut,Ie)}function ji(an,Pi,Ai,Zu,aa,yr,Ba,bt){if(H.assert(!sl(an)),Ql(an)||Sbe(Ai,an))return Pi;const jn=an.getStart(k),Ln=k.getLineAndCharacterOfPosition(jn).line;let Si=Ln;o4(an)&&(Si=k.getLineAndCharacterOfPosition(d0e(an,k)).line);let Dn=-1;if(Ba&&Vm(t,Ai)&&(Dn=ae(jn,an.end,aa,t,Pi),Dn!==-1&&(Pi=Dn)),!TM(t,an.pos,an.end))return an.endt.end)return Pi;if(oa.token.end>jn){oa.token.pos>jn&&f.skipToStartOf(an);break}Jn(oa,Ie,Zu,Ie)}if(!f.isOnToken()||f.getTokenFullStart()>=t.end)return Pi;if(u7(an)){const oa=f.readTokenInfo(an);if(an.kind!==12)return H.assert(oa.token.end===an.end,"Token end is child end"),Jn(oa,Ie,Zu,an),Pi}const Cn=an.kind===170?Ln:yr,tu=Ce(an,Ln,Dn,Ie,Zu,Cn);return Se(an,Ni,Ln,Si,tu.indentation,tu.delta),Ni=Ie,bt&&Ai.kind===209&&Pi===-1&&(Pi=tu.indentation),Pi}function xn(an,Pi,Ai,Zu){H.assert(g2(an)),H.assert(!sl(an));const aa=rQt(Pi,an);let yr=Zu,Ba=Ai;if(!TM(t,an.pos,an.end)){an.endan.pos)break;if(Ln.token.kind===aa){Ba=k.getLineAndCharacterOfPosition(Ln.token.pos).line,Jn(Ln,Pi,Zu,Pi);let Si;if(oe!==-1)Si=oe;else{const Dn=tp(Ln.token.pos,k);Si=hE.findFirstNonWhitespaceColumn(Dn,Ln.token.pos,k,p)}yr=ve(Pi,Ai,Si,p.indentSize)}else Jn(Ln,Pi,Zu,Pi)}let bt=-1;for(let Ln=0;LnBe(tu.pos,Cn,!1))}Si!==-1&&Dn&&(Be(an.token.pos,Si,bt===1),Y=Ln.line,oe=Si)}f.advance(),Ni=Pi}}function Ne(Ie,st,St,It){for(const ei of Ie){const ht=Vm(t,ei);switch(ei.kind){case 3:ht&&De(ei,st,!St),St=!1;break;case 2:St&&ht&&It(ei),St=!1;break;case 4:St=!0;break}}return St}function pe(Ie,st,St,It){for(const ei of Ie)if(mX(ei.kind)&&Vm(t,ei)){const ht=k.getLineAndCharacterOfPosition(ei.pos);fe(ei,ht,st,St,It)}}function fe(Ie,st,St,It,ei){const ht=B(Ie);let Ut=0;if(!ht)if(j)Ut=xe(Ie,st.line,St,j,K,J,It,ei);else{const Ni=k.getLineAndCharacterOfPosition(t.pos);Ke(Ni.line,st.line)}return j=Ie,z=Ie.end,J=St,K=st.line,Ut}function xe(Ie,st,St,It,ei,ht,Ut,Ni){M.updateContext(It,ht,Ie,St,Ut);const ji=E(M);let xn=M.options.trimTrailingWhitespace!==!1,Jn=0;return ji?O(ji,an=>{if(Jn=Yt(an,It,ei,Ie,st),Ni)switch(Jn){case 2:St.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!1,Ut);break;case 1:St.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!0,Ut);break;default:H.assert(Jn===0)}xn=xn&&!(an.action&16)&&an.flags!==1}):xn=xn&&Ie.kind!==1,st!==ei&&xn&&Ke(ei,st,It),Jn}function Be(Ie,st,St){const It=LLe(st,p);if(St)We(Ie,0,It);else{const ei=k.getLineAndCharacterOfPosition(Ie),ht=Mx(ei.line,k);(st!==Ge(ht,ei.character)||Ae(It,ht))&&We(ht,ei.character,It)}}function Ge(Ie,st){let St=0;for(let It=0;It0){const yr=LLe(aa,p);We(Ai,Zu.character,yr)}else Ve(Ai,Zu.character)}}function Ke(Ie,st,St){for(let It=Ie;Itht)continue;const Ut=Je(ei,ht);Ut!==-1&&(H.assert(Ut===ei||!qg(k.text.charCodeAt(Ut-1))),Ve(Ut,ht+1-Ut))}}function Je(Ie,st){let St=st;for(;St>=Ie&&qg(k.text.charCodeAt(St));)St--;return St!==st?St+1:-1}function ft(Ie){let st=j?j.end:t.pos;for(const St of Ie)mX(St.kind)&&(stzH(B,u)||u===B.end&&(B.kind===2||u===t.getFullWidth()))}function rQt(t,u){switch(t.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(t.typeParameters===u)return 30;if(t.parameters===u)return 21;break;case 213:case 214:if(t.typeArguments===u)return 30;if(t.arguments===u)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===u)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===u)return 30;break;case 187:return 19}return 0}function aQt(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function LLe(t,u){if((!Wpe||Wpe.tabSize!==u.tabSize||Wpe.indentSize!==u.indentSize)&&(Wpe={tabSize:u.tabSize,indentSize:u.indentSize},RK=OK=void 0),u.convertTabsToSpaces){let d;const f=Math.floor(t/u.indentSize),p=t%u.indentSize;return OK||(OK=[]),OK[f]===void 0?(d=KH(" ",u.indentSize*f),OK[f]=d):d=OK[f],p?d+KH(" ",p):d}else{const d=Math.floor(t/u.tabSize),f=t-d*u.tabSize;let p;return RK||(RK=[]),RK[d]===void 0?RK[d]=p=KH(" ",d):p=RK[d],f?p+KH(" ",f):p}}var Wpe,RK,OK,oQt=o({"src/services/formatting/formatting.ts"(){rr(),jK()}}),hE,sQt=o({"src/services/formatting/smartIndenter.ts"(){rr(),jK(),(t=>{let u;(De=>{De[De.Unknown=-1]="Unknown"})(u||(u={}));function s(De,Ke,Je,ft=!1){if(De>Ke.text.length)return v(Je);if(Je.indentStyle===0)return 0;const Ye=td(De,Ke,void 0,!0),Ve=mct(Ke,De,Ye||null);if(Ve&&Ve.kind===3)return d(Ke,De,Je,Ve);if(!Ye)return v(Je);if(Zhe(Ye.kind)&&Ye.getStart(Ke)<=De&&De=0),Ye<=Ve)return fe(Mx(Ve,De),Ke,De,Je);const We=Mx(Ye,De),{column:Gt,character:Yt}=pe(We,Ke,De,Je);return Gt===0?Gt:De.text.charCodeAt(We+Yt)===42?Gt-1:Gt}function f(De,Ke,Je){let ft=Ke;for(;ft>0;){const Ve=De.text.charCodeAt(ft);if(!U3(Ve))break;ft--}const Ye=tp(ft,De);return fe(Ye,ft,De,Je)}function p(De,Ke,Je,ft,Ye,Ve){let We,Gt=Je;for(;Gt;){if(Whe(Gt,Ke,De)&&Ge(Ve,Gt,We,De,!0)){const Ie=j(Gt,De),st=z(Je,Gt,ft,De),St=st!==0?Ye&&st===2?Ve.indentSize:0:ft!==Ie.line?Ve.indentSize:0;return b(Gt,Ie,void 0,St,De,!0,Ve)}const Yt=ve(Gt,De,Ve,!0);if(Yt!==-1)return Yt;We=Gt,Gt=Gt.parent}return v(Ve)}function E(De,Ke,Je,ft){const Ye=Je.getLineAndCharacterOfPosition(De.getStart(Je));return b(De,Ye,Ke,0,Je,!1,ft)}t.getIndentationForNode=E;function v(De){return De.baseIndentSize||0}t.getBaseIndentation=v;function b(De,Ke,Je,ft,Ye,Ve,We){var Gt;let Yt=De.parent;for(;Yt;){let Ie=!0;if(Je){const ei=De.getStart(Ye);Ie=eiJe.end}const st=B(Yt,De,Ye),St=st.line===Ke.line||K(Yt,De,Ke.line,Ye);if(Ie){const ei=(Gt=se(De,Ye))==null?void 0:Gt[0],ht=!!ei&&j(ei,Ye).line>st.line;let Ut=ve(De,Ye,We,ht);if(Ut!==-1||(Ut=T(De,Yt,Ke,St,Ye,We),Ut!==-1))return Ut+ft}Ge(We,Yt,De,Ye,Ve)&&!St&&(ft+=We.indentSize);const It=J(Yt,De,Ke.line,Ye);De=Yt,Yt=De.parent,Ke=It?Ye.getLineAndCharacterOfPosition(De.getStart(Ye)):st}return ft+v(We)}function B(De,Ke,Je){const ft=se(Ke,Je),Ye=ft?ft.pos:De.getStart(Je);return Je.getLineAndCharacterOfPosition(Ye)}function k(De,Ke,Je){const ft=Z9e(De);return ft&&ft.listItemIndex>0?Se(ft.list.getChildren(),ft.listItemIndex-1,Ke,Je):-1}function T(De,Ke,Je,ft,Ye,Ve){return(Q1(De)||XO(De))&&(Ke.kind===312||!ft)?Ne(Je,Ye,Ve):-1}let M;(De=>{De[De.Unknown=0]="Unknown",De[De.OpenBrace=1]="OpenBrace",De[De.CloseBrace=2]="CloseBrace"})(M||(M={}));function z(De,Ke,Je,ft){const Ye=ib(De,Ke,ft);if(!Ye)return 0;if(Ye.kind===19)return 1;if(Ye.kind===20){const Ve=j(Ye,ft).line;return Je===Ve?2:0}return 0}function j(De,Ke){return Ke.getLineAndCharacterOfPosition(De.getStart(Ke))}function J(De,Ke,Je,ft){if(!(Mo(De)&&kt(De.arguments,Ke)))return!1;const Ye=De.expression.getEnd();return s0(ft,Ye).line===Je}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=J;function K(De,Ke,Je,ft){if(De.kind===245&&De.elseStatement===Ke){const Ye=a0(De,93,ft);return H.assert(Ye!==void 0),j(Ye,ft).line===Je}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=K;function Y(De,Ke,Je,ft){if(SB(De)&&(Ke===De.whenTrue||Ke===De.whenFalse)){const Ye=s0(ft,De.condition.end).line;if(Ke===De.whenTrue)return Je===Ye;{const Ve=j(De.whenTrue,ft).line,We=s0(ft,De.whenTrue.end).line;return Ye===Ve&&We===Je}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Y;function oe(De,Ke,Je,ft){if($E(De)){if(!De.arguments)return!1;const Ye=Le(De.arguments,Yt=>Yt.pos===Ke.pos);if(!Ye)return!1;const Ve=De.arguments.indexOf(Ye);if(Ve===0)return!1;const We=De.arguments[Ve-1],Gt=s0(ft,We.getEnd()).line;if(Je===Gt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=oe;function se(De,Ke){return De.parent&&ae(De.getStart(Ke),De.getEnd(),De.parent,Ke)}t.getContainingList=se;function ge(De,Ke,Je){return Ke&&ae(De,De,Ke,Je)}function ae(De,Ke,Je,ft){switch(Je.kind){case 183:return Ye(Je.typeArguments);case 210:return Ye(Je.properties);case 209:return Ye(Je.elements);case 187:return Ye(Je.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ye(Je.typeParameters)||Ye(Je.parameters);case 177:return Ye(Je.parameters);case 263:case 231:case 264:case 265:case 352:return Ye(Je.typeParameters);case 214:case 213:return Ye(Je.typeArguments)||Ye(Je.arguments);case 261:return Ye(Je.declarations);case 275:case 279:return Ye(Je.elements);case 206:case 207:return Ye(Je.elements)}function Ye(Ve){return Ve&&IH(Ce(Je,Ve,ft),De,Ke)?Ve:void 0}}function Ce(De,Ke,Je){const ft=De.getChildren(Je);for(let Ye=1;Ye=0&&Ke=0;We--){if(De[We].kind===28)continue;if(Je.getLineAndCharacterOfPosition(De[We].end).line!==Ve.line)return Ne(Ve,Je,ft);Ve=j(De[We],Je)}return-1}function Ne(De,Ke,Je){const ft=Ke.getPositionOfLineAndCharacter(De.line,0);return fe(ft,ft+De.character,Ke,Je)}function pe(De,Ke,Je,ft){let Ye=0,Ve=0;for(let We=De;WegLe,FormattingRequestKind:()=>pLe,RuleAction:()=>_Le,RuleFlags:()=>DLe,SmartIndenter:()=>hE,anyContext:()=>Kee,createTextRangeWithKind:()=>Kpe,formatDocument:()=>YYt,formatNodeGivenIndentation:()=>uQt,formatOnClosingCurly:()=>ZYt,formatOnEnter:()=>$Yt,formatOnOpeningCurly:()=>qYt,formatOnSemicolon:()=>UYt,formatSelection:()=>QYt,getAllRules:()=>Klt,getFormatContext:()=>RYt,getFormattingScanner:()=>ELe,getIndentationString:()=>LLe,getRangeOfEnclosingComment:()=>mct});var jK=o({"src/services/_namespaces/ts.formatting.ts"(){uYt(),rYt(),aYt(),IYt(),JYt(),oQt(),sQt()}}),rr=o({"src/services/_namespaces/ts.ts"(){Bo(),BH(),kIt(),ZIt(),eRt(),$it(),hRt(),fRt(),xRt(),wRt(),TRt(),NRt(),VRt(),HRt(),sHt(),lHt(),hHt(),LHt(),PHt(),rs(),LTe(),Q0t(),tqt(),aqt(),bqt(),Ent(),Rnt(),Wqt(),Qqt(),s_(),aZt(),NZt(),VZt(),GZt(),nYt(),jK()}});function lQt(){return Ect??(Ect=new Lp(_))}function pct(t,u,s,d,f){let p=u?"DeprecationError: ":"DeprecationWarning: ";return p+=`'${t}' `,p+=d?`has been deprecated since v${d}`:"is deprecated",p+=u?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",p+=f?` ${e3(f,[t])}`:"",p}function cQt(t,u,s,d){const f=pct(t,!0,u,s,d);return()=>{throw new TypeError(f)}}function dQt(t,u,s,d){let f=!1;return()=>{gct&&!f&&(H.log.warn(pct(t,!1,u,s,d)),f=!0)}}function hQt(t,u={}){const s=typeof u.typeScriptVersion=="string"?new Lp(u.typeScriptVersion):u.typeScriptVersion??lQt(),d=typeof u.errorAfter=="string"?new Lp(u.errorAfter):u.errorAfter,f=typeof u.warnAfter=="string"?new Lp(u.warnAfter):u.warnAfter,p=typeof u.since=="string"?new Lp(u.since):u.since??f,E=u.error||d&&s.compareTo(d)>=0,v=!f||s.compareTo(f)>=0;return E?cQt(t,d,p,u.message):v?dQt(t,d,p,u.message):Is}function fQt(t,u){return function(){return t(),u.apply(this,arguments)}}function NLe(t,u){const s=hQt((u==null?void 0:u.name)??H.getFunctionName(t),u);return fQt(s,t)}var gct,Ect,_ct=o({"src/deprecatedCompat/deprecate.ts"(){Jpe(),gct=!0}});function Gpe(t,u,s,d){if(Object.defineProperty(p,"name",{...Object.getOwnPropertyDescriptor(p,"name"),value:t}),d)for(const E of Object.keys(d)){const v=+E;!isNaN(v)&&gu(u,`${v}`)&&(u[v]=NLe(u[v],{...d[v],name:t}))}const f=mQt(u,s);return p;function p(...E){const v=f(E),b=v!==void 0?u[v]:void 0;if(typeof b=="function")return b(...E);throw new TypeError("Invalid arguments")}}function mQt(t,u){return s=>{for(let d=0;gu(t,`${d}`)&&gu(u,`${d}`);d++){const f=u[d];if(f(s))return d}}}function Dct(t){return{overload:u=>({bind:s=>({finish:()=>Gpe(t,u,s),deprecate:d=>({finish:()=>Gpe(t,u,s,d)})})})}}var pQt=o({"src/deprecatedCompat/deprecations.ts"(){Jpe(),_ct()}}),gQt=o({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Jpe(),_ct(),Qye(t=>{const u=t.getIdentifierConstructor();gu(u.prototype,"originalKeywordKind")||Object.defineProperty(u.prototype,"originalKeywordKind",{get:NLe(function(){return Dv(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),gu(u.prototype,"isInJSDocNamespace")||Object.defineProperty(u.prototype,"isInJSDocNamespace",{get:NLe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),Jpe=o({"src/deprecatedCompat/_namespaces/ts.ts"(){Bo(),pQt(),gQt()}}),EQt=o({"src/typingsInstallerCore/_namespaces/ts.ts"(){Bo(),BH(),MLe()}});function xct(t,u,s,d){try{const f=WB(u,cr(t,"index.d.ts"),{moduleResolution:2},s);return f.resolvedModule&&f.resolvedModule.resolvedFileName}catch(f){d.isEnabled()&&d.writeLine(`Failed to resolve ${u} in folder '${t}': ${f.message}`);return}}function _Qt(t,u,s,d){let f=!1;for(let p=s.length;p>0;){const E=vct(t,u,s,p);p=E.remaining,f=d(E.command)||f}return f}function vct(t,u,s,d){const f=s.length-d;let p,E=d;for(;p=`${t} install --ignore-scripts ${(E===s.length?s:s.slice(f,f+E)).join(" ")} --save-dev --user-agent="typesInstaller/${u}"`,!(p.length<8e3);)E=E-Math.floor(E/2);return{command:p,remaining:d-E}}function Cct(t){return`@types/${t}@ts${g}`}var bct,yct,DQt=o({"src/typingsInstallerCore/typingsInstaller.ts"(){EQt(),MLe(),bct={isEnabled:()=>!1,writeLine:Is},yct=class{constructor(t,u,s,d,f,p=bct){this.installTypingHost=t,this.globalCachePath=u,this.safeListPath=s,this.typesMapLocation=d,this.throttleLimit=f,this.log=p,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 '${u}', safe file path '${s}', types map path ${d}`),this.processCacheLocation(this.globalCachePath)}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:SH,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${nw(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();const u=o3.discoverTypings(this.installTypingHost,this.log.isEnabled()?s=>this.log.writeLine(s):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,u.filesToWatch),u.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,u.cachedTypingPaths,u.newTypingNames):(this.sendResponse(this.createSetTypings(t,u.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const t=o3.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=o3.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const u=cr(t,"package.json"),s=cr(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${u}'...`),this.installTypingHost.fileExists(u)&&this.installTypingHost.fileExists(s)){const d=JSON.parse(this.installTypingHost.readFile(u)),f=JSON.parse(this.installTypingHost.readFile(s));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${u}':${nw(d)}`),this.log.writeLine(`Loaded content of '${s}':${nw(f)}`)),d.devDependencies&&f.dependencies)for(const p in d.devDependencies){if(!gu(f.dependencies,p))continue;const E=Ac(p);if(!E)continue;const v=xct(t,E,this.installTypingHost,this.log);if(!v){this.missingTypingsSet.add(E);continue}const b=this.packageNameToTypingLocation.get(E);if(b){if(b.typingLocation===v)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${E} from '${v}' conflicts with existing typing file '${b}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${E}' => '${v}'`);const B=uo(f.dependencies,p),k=B&&B.version;if(!k)continue;const T={typingLocation:v,version:new Lp(k)};this.packageNameToTypingLocation.set(E,T)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return qi(t,u=>{const s=JB(u);if(this.missingTypingsSet.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' is in missingTypingsSet - skipping...`);return}const d=o3.validatePackageName(u);if(d!==o3.NameValidationResult.Ok){this.missingTypingsSet.add(s),this.log.isEnabled()&&this.log.writeLine(o3.renderPackageNameValidationFailure(d,u));return}if(!this.typesRegistry.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: Entry for package '${s}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(s)&&o3.isTypingUpToDate(this.packageNameToTypingLocation.get(s),this.typesRegistry.get(s))){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' already has an up-to-date typing - skipping...`);return}return s})}ensurePackageDirectoryExists(t){const u=cr(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${u}`),this.installTypingHost.fileExists(u)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${u}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(u,'{ "private": true }'))}installTypings(t,u,s,d){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(d)}`);const f=this.filterTypings(d);if(f.length===0){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(t,s));return}this.ensurePackageDirectoryExists(u);const p=this.installRunCount;this.installRunCount++,this.sendResponse({kind:hhe,eventId:p,typingsInstallerVersion:_,projectName:t.projectName});const E=f.map(Cct);this.installTypingsAsync(p,E,u,v=>{try{if(!v){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(f)}`);for(const B of f)this.missingTypingsSet.add(B);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(E)}`);const b=[];for(const B of f){const k=xct(u,B,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(B);continue}const T=this.typesRegistry.get(B),M=new Lp(T[`ts${g}`]||T[this.latestDistTag]),z={typingLocation:k,version:M};this.packageNameToTypingLocation.set(B,z),b.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(b)}`),this.sendResponse(this.createSetTypings(t,s.concat(b)))}finally{const b={kind:fhe,eventId:p,projectName:t.projectName,packagesToInstall:E,installSuccess:v,typingsInstallerVersion:_};this.sendResponse(b)}})}ensureDirectoryExists(t,u){const s=lr(t);u.directoryExists(s)||this.ensureDirectoryExists(s,u),u.directoryExists(t)||u.createDirectory(t)}watchFiles(t,u){if(!u.length){this.closeWatchers(t);return}const s=this.projectWatchers.get(t),d=new Set(u);!s||U_(d,f=>!s.has(f))||U_(s,f=>!d.has(f))?(this.projectWatchers.set(t,d),this.sendResponse({kind:SH,projectName:t,files:u})):this.sendResponse({kind:SH,projectName:t,files:void 0})}createSetTypings(t,u){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:u,unresolvedImports:t.unresolvedImports,kind:ZQ}}installTypingsAsync(t,u,s,d){this.pendingRunRequests.unshift({requestId:t,packageNames:u,cwd:s,onRequestCompleted:d}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(u),this.executeWithThrottling()})}}}}}),PLe={};h(PLe,{TypingsInstaller:()=>yct,getNpmCommandForInstallation:()=>vct,installNpmPackages:()=>_Qt,typingsName:()=>Cct});var xQt=o({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){DQt()}}),MLe=o({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){QQ(),xQt()}}),vQt=o({"src/server/types.ts"(){}});function kct(t,u,s,d){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:u,unresolvedImports:s,projectRootPath:t.getCurrentDirectory(),cachePath:d,kind:"discover"}}function Dl(t){return $o(t)}function VK(t,u,s){const d=Pf(t)?t:$a(t,u);return s(d)}function Fct(t){return t}function Act(){const t=new Map;return{get(u){return t.get(u)},set(u,s){t.set(u,s)},contains(u){return t.has(u)},remove(u){t.delete(u)}}}function zLe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function ILe(t){return`/dev/null/inferredProject${t}*`}function RLe(t){return`/dev/null/autoImportProviderProject${t}*`}function OLe(t){return`/dev/null/auxiliaryProject${t}*`}function jLe(){return[]}var $pe,$c,Upe,v5,CQt=o({"src/server/utilitiesPublic.ts"(){Xv(),$pe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))($pe||{}),$c=jLe(),Upe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(Upe||{}),(t=>{function u(){throw new Error("No Project.")}t.ThrowNoProject=u;function s(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=s;function d(f,p){throw new Error(`Project '${p.getProjectName()}' does not contain document '${f}'`)}t.ThrowProjectDoesNotContainDocument=d})(v5||(v5={}))}});function qpe(t){const u=Ac(t);return u==="tsconfig.json"||u==="jsconfig.json"?u:void 0}function Sct(t,u,s){if(!t||t.length===0)return;if(t[0]===u){t.splice(0,1);return}const d=Kl(t,u,il,s);d>=0&&t.splice(d,1)}var Zpe,Ype,bQt=o({"src/server/utilities.ts"(){Xv(),_9(),Zpe=class H6t{constructor(u,s){this.host=u,this.pendingTimeouts=new Map,this.logger=s.hasLevel(3)?s:void 0}schedule(u,s,d){const f=this.pendingTimeouts.get(u);f&&this.host.clearTimeout(f),this.pendingTimeouts.set(u,this.host.setTimeout(H6t.run,s,u,this,d)),this.logger&&this.logger.info(`Scheduled: ${u}${f?", Cancelled earlier one":""}`)}cancel(u){const s=this.pendingTimeouts.get(u);return s?(this.host.clearTimeout(s),this.pendingTimeouts.delete(u)):!1}static run(u,s,d){var f,p;(f=hh)==null||f.logStartScheduledOperation(u),s.pendingTimeouts.delete(u),s.logger&&s.logger.info(`Running: ${u}`),d(),(p=hh)==null||p.logStopScheduledOperation()}},Ype=class K6t{constructor(u,s,d){this.host=u,this.delay=s,this.logger=d}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout(K6t.run,this.delay,this))}static run(u){var s,d;u.timerId=void 0,(s=hh)==null||s.logStartScheduledOperation("GC collect");const f=u.logger.hasLevel(2),p=f&&u.host.getMemoryUsage();if(u.host.gc(),f){const E=u.host.getMemoryUsage();u.logger.perftrc(`GC::before ${p}, after ${E}`)}(d=hh)==null||d.logStopScheduledOperation()}}}}),Qpe,VLe,HLe,KLe,WLe,GLe,JLe,$Le,ULe,qLe,ZLe,YLe,QLe,XLe,eNe=o({"src/server/protocol.ts"(){Qpe=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t))(Qpe||{}),VLe=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))(VLe||{}),HLe=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(HLe||{}),KLe=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(KLe||{}),WLe=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(WLe||{}),GLe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(GLe||{}),JLe=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(JLe||{}),$Le=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))($Le||{}),ULe=(t=>(t.None="None",t.Preserve="Preserve",t.ReactNative="ReactNative",t.React="React",t))(ULe||{}),qLe=(t=>(t.None="None",t.CommonJS="CommonJS",t.AMD="AMD",t.UMD="UMD",t.System="System",t.ES6="ES6",t.ES2015="ES2015",t.ESNext="ESNext",t))(qLe||{}),ZLe=(t=>(t.Classic="Classic",t.Node="Node",t))(ZLe||{}),YLe=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(YLe||{}),QLe=(t=>(t.ES3="ES3",t.ES5="ES5",t.ES6="ES6",t.ES2015="ES2015",t.ES2016="ES2016",t.ES2017="ES2017",t.ES2018="ES2018",t.ES2019="ES2019",t.ES2020="ES2020",t.ES2021="ES2021",t.ES2022="ES2022",t.ESNext="ESNext",t))(QLe||{}),XLe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(XLe||{})}}),tNe={};h(tNe,{ClassificationType:()=>XLe,CommandTypes:()=>Qpe,CompletionTriggerKind:()=>GLe,IndentStyle:()=>JLe,JsxEmit:()=>ULe,ModuleKind:()=>qLe,ModuleResolutionKind:()=>ZLe,NewLineKind:()=>YLe,OrganizeImportsMode:()=>VLe,PollingWatchKind:()=>WLe,ScriptTarget:()=>QLe,SemicolonPreference:()=>$Le,WatchDirectoryKind:()=>KLe,WatchFileKind:()=>HLe});var yQt=o({"src/server/_namespaces/ts.server.protocol.ts"(){eNe()}});function HK(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&Ac(t)[0]==="^"||t.includes(":^")&&!t.includes(rl)}function Bct(t){return!t||WK(t)?v5.ThrowNoProject():t}function kQt(t){H.assert(typeof t=="number",`Expected position ${t} to be a number.`),H.assert(t>=0,"Expected position to be non-negative.")}function FQt(t){H.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),H.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),H.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),H.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}var Xpe,ege,AQt=o({"src/server/scriptInfo.ts"(){Xv(),_9(),Xpe=class{constructor(t,u,s){this.host=t,this.info=u,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=s||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}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(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,u,s){this.switchToScriptVersionCache().edit(t,u-t,s),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return H.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=aw(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){const{text:u,fileSize:s}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},d=this.reload(u);return this.fileSize=s,this.ownFileText=!t||t===this.info.fileName,d}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=eX.fromString(H.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){const u=this.tryUseScriptVersionCache();if(u)return u.getAbsolutePositionAndLineText(t);const s=this.getLineMap();return t<=s.length?{absolutePosition:s[t-1],lineText:this.text.substring(s[t-1],s[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){const u=this.tryUseScriptVersionCache();if(u)return u.lineToTextSpan(t);const s=this.getLineMap(),d=s[t],f=t+1u===void 0?u=this.host.readFile(s)||"":u;if(!mk(this.info.fileName)){const f=this.host.getFileSize?this.host.getFileSize(s):d().length;if(f>ete)return H.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${s} for info ${this.info.fileName}: fileSize: ${f}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(s,f),{text:"",fileSize:f}}return{text:d()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=fte.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=fte.fromString(H.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(H.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return H.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=n7(H.checkDefined(this.text)))}getLineInfo(){const t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:s=>t.getAbsolutePositionAndLineText(s+1).lineText};const u=this.getLineMap();return Kde(this.text,u)}},ege=class{constructor(t,u,s,d,f,p){this.host=t,this.fileName=u,this.scriptKind=s,this.hasMixedContent=d,this.path=f,this.containingProjects=[],this.isDynamic=HK(u),this.textStorage=new Xpe(t,this,p),(d||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=s||sZ(u)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){H.assert(!!this.containingProjects.length);const t=this.containingProjects[0],u=this.host.realpath(this.path);u&&(this.realpath=t.toPath(u),this.realpath!==this.path&&t.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(t){const u=!this.isAttached(t);return u&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),u}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return kt(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Vy(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const t of this.containingProjects){Qv(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const u=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),u&&!Aw(t)&&t.addMissingFileRoot(u.fileName)}pu(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return v5.ThrowNoProject();case 1:return Bct(this.containingProjects[0]);default:let t,u,s,d,f;for(let p=0;p!t.isOrphan())}isContainedByBackgroundProject(){return Oe(this.containingProjects,WK)}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,u,s){return this.textStorage.lineOffsetToPosition(t,u,s)}positionToLineOffset(t){kQt(t);const u=this.textStorage.positionToLineOffset(t);return FQt(u),u}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ja(this.sourceMapFilePath)&&(jm(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function wct(t,u){if(t===u||(t||$c).length===0&&(u||$c).length===0)return!0;const s=new Map;let d=0;for(const f of t)s.get(f)!==!0&&(s.set(f,!0),d++);for(const f of u){const p=s.get(f);if(p===void 0)return!1;p===!0&&(s.set(f,!1),d--)}return d===0}function SQt(t,u){return t.enable!==u.enable||!wct(t.include,u.include)||!wct(t.exclude,u.exclude)}function BQt(t,u){return Bv(t)!==Bv(u)}function wQt(t,u){return t===u?!1:!On(t,u)}var qee,tge,TQt=o({"src/server/typingsCache.ts"(){Xv(),_9(),qee={isKnownTypesPackageName:cg,installPackage:ho,enqueueInstallTypingsRequest:Is,attach:Is,onProjectClosed:Is,globalTypingsCacheLocation:void 0},tge=class{constructor(t){this.installer=t,this.perProjectCache=new Map}isKnownTypesPackageName(t){return this.installer.isKnownTypesPackageName(t)}installPackage(t){return this.installer.installPackage(t)}enqueueInstallTypingsForProject(t,u,s){const d=t.getTypeAcquisition();if(!d||!d.enable)return;const f=this.perProjectCache.get(t.getProjectName());(s||!f||SQt(d,f.typeAcquisition)||BQt(t.getCompilationSettings(),f.compilerOptions)||wQt(u,f.unresolvedImports))&&(this.perProjectCache.set(t.getProjectName(),{compilerOptions:t.getCompilationSettings(),typeAcquisition:d,typings:f?f.typings:$c,unresolvedImports:u,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(t,d,u))}updateTypingsForProject(t,u,s,d,f){const p=Ph(f);return this.perProjectCache.set(t,{compilerOptions:u,typeAcquisition:s,typings:p,unresolvedImports:d,poisoned:!1}),!s||!s.enable?$c:p}onProjectClosed(t){this.perProjectCache.delete(t.getProjectName()),this.installer.onProjectClosed(t)}}}});function KK(t,u=!1){const s={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const d of t){const f=u?d.textStorage.getTelemetryFileSize():0;switch(d.scriptKind){case 1:s.js+=1,s.jsSize+=f;break;case 2:s.jsx+=1,s.jsxSize+=f;break;case 3:e1(d.fileName)?(s.dts+=1,s.dtsSize+=f):(s.ts+=1,s.tsSize+=f);break;case 4:s.tsx+=1,s.tsxSize+=f;break;case 7:s.deferred+=1,s.deferredSize+=f;break}}return s}function LQt(t){const u=KK(t.getScriptInfos());return u.js>0&&u.ts===0&&u.tsx===0}function iNe(t){const u=KK(t.getRootScriptInfos());return u.ts===0&&u.tsx===0}function nNe(t){const u=KK(t.getScriptInfos());return u.ts===0&&u.tsx===0}function uNe(t){return!t.some(u=>Ml(u,".ts")&&!e1(u)||Ml(u,".tsx"))}function rNe(t){return t.generatedFilePath!==void 0}function NQt(t,u){var s,d;const f=t.getSourceFiles();(s=Gn)==null||s.push(Gn.Phase.Session,"getUnresolvedImports",{count:f.length});const p=t.getTypeChecker().getAmbientModules().map(v=>$4(v.getName())),E=pi(ju(f,v=>PQt(t,v,p,u)));return(d=Gn)==null||d.pop(),E}function PQt(t,u,s,d){return W0(d,u.path,()=>{let f;return t.forEachResolvedModule(({resolvedModule:p},E)=>{(!p||!FP(p.extension))&&!Id(E)&&!s.some(v=>v===E)&&(f=xi(f,oH(E).packageName))},u),f||$c})}function Aw(t){return t.projectKind===0}function Qv(t){return t.projectKind===1}function ige(t){return t.projectKind===2}function WK(t){return t.projectKind===3||t.projectKind===4}var nz,Wk,nge,uge,rge,age,oge,Zee,MQt=o({"src/server/project.ts"(){Xv(),Xv(),_9(),nz=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(nz||{}),Wk=class W6t{constructor(u,s,d,f,p,E,v,b,B,k,T){switch(this.projectKind=s,this.projectService=d,this.documentRegistry=f,this.compilerOptions=v,this.compileOnSaveEnabled=b,this.watchOptions=B,this.rootFiles=[],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=cg,this.dirty=!1,this.typingFiles=$c,this.moduleSpecifierCache=ENe(this),this.createHash=Lo(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=o3.nonRelativeModuleNameForTypingCache,this.projectName=u,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new zme(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(p||Bv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=gee(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),d.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:H.assertNever(d.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const M=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=z=>this.writeLog(z):M.trace&&(this.trace=z=>M.trace(z)),this.realpath=Lo(M,M.realpath),this.resolutionCache=$1e(this,this.currentDirectory,!0),this.languageService=eBe(this,this.documentRegistry,this.projectService.serverMode),E&&this.disableLanguageService(E),this.markAsDirty(),WK(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(u){}isNonTsProject(){return Gm(this),nNe(this)}isJsOnlyProject(){return Gm(this),LQt(this)}static resolveModule(u,s,d,f){return W6t.importServicePluginSync({name:u},[s],d,f).resolvedModule}static importServicePluginSync(u,s,d,f){H.assertIsDefined(d.require);let p,E;for(const v of s){const b=q1(d.resolvePath(cr(v,"node_modules")));f(`Loading ${u.name} from ${v} (resolved to ${b})`);const B=d.require(b,u.name);if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to load module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}static async importServicePluginAsync(u,s,d,f){H.assertIsDefined(d.importPlugin);let p,E;for(const v of s){const b=cr(v,"node_modules");f(`Dynamically importing ${u.name} from ${v} (resolved to ${b})`);let B;try{B=await d.importPlugin(b,u.name)}catch(T){B={module:void 0,error:T}}if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to dynamically import module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}isKnownTypesPackageName(u){return this.typingsCache.isKnownTypesPackageName(u)}installPackage(u){return this.typingsCache.installPackage({...u,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=ble(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.rootFiles)return _t;let u;return this.rootFilesMap.forEach(s=>{(this.languageServiceEnabled||s.info&&s.info.isScriptOpen())&&(u||(u=[])).push(s.fileName)}),yn(u,this.typingFiles)||_t}getOrCreateScriptInfoAndAttachToProject(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);if(s){const d=this.rootFilesMap.get(s.path);d&&d.info!==s&&(this.rootFiles.push(s),d.info=s),s.attachToProject(this)}return s}getScriptKind(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&s.scriptKind}getScriptVersion(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);return s&&s.getLatestVersion()}getScriptSnapshot(u){const s=this.getOrCreateScriptInfoAndAttachToProject(u);if(s)return s.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const u=lr($o(this.projectService.getExecutingFilePath()));return cr(u,zO(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(u,s,d,f,p){return this.directoryStructureHost.readDirectory(u,s,d,f,p)}readFile(u){return this.projectService.host.readFile(u)}writeFile(u,s){return this.projectService.host.writeFile(u,s)}fileExists(u){const s=this.toPath(u);return!this.isWatchedMissingFile(s)&&this.directoryStructureHost.fileExists(u)}resolveModuleNameLiterals(u,s,d,f,p,E){return this.resolutionCache.resolveModuleNameLiterals(u,s,d,f,p,E)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E)}resolveLibrary(u,s,d,f){return this.resolutionCache.resolveLibrary(u,s,d,f)}directoryExists(u){return this.directoryStructureHost.directoryExists(u)}getDirectories(u){return this.directoryStructureHost.getDirectories(u)}getCachedDirectoryStructureHost(){}toPath(u){return J0(u,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.FailedLookupLocations,this)}watchAffectingFileLocation(u,s){return this.projectService.watchFactory.watchFile(u,s,2e3,this.projectService.getWatchOptions(this),cd.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(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(u){return this.projectService.openFiles.has(u)}writeLog(u){this.projectService.logger.info(u)}log(u){this.writeLog(u)}error(u){this.projectService.logger.msg(u,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return ti(this.projectErrors,u=>!u.file)||$c}getAllProjectErrors(){return this.projectErrors||$c}setProjectErrors(u){this.projectErrors=u}getLanguageService(u=!0){return u&&Gm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(u,s){return this.projectService.getDocumentPositionMapper(this,u,s)}getSourceFileLike(u){return this.projectService.getSourceFileLike(u,this)}shouldEmitFile(u){return u&&!u.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(u.path)}getCompileOnSaveAffectedFileList(u){return this.languageServiceEnabled?(Gm(this),this.builderState=Wp.create(this.program,this.builderState,!0),qi(Wp.getFilesAffectedBy(this.builderState,this.program,u.path,this.cancellationToken,this.projectService.host),s=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(s.path))?s.fileName:void 0)):[]}emitFile(u,s){if(!this.languageServiceEnabled||!this.shouldEmitFile(u))return{emitSkipped:!0,diagnostics:$c};const{emitSkipped:d,diagnostics:f,outputFiles:p}=this.getLanguageService().getEmitOutput(u.fileName);if(!d){for(const E of p){const v=$a(E.name,this.currentDirectory);s(v,E.text,E.writeByteOrderMark)}if(this.builderState&&c4(this.compilerOptions)){const E=p.filter(v=>e1(v.name));if(E.length===1){const v=this.program.getSourceFile(u.fileName),b=this.projectService.host.createHash?this.projectService.host.createHash(E[0].text):AN(E[0].text);Wp.updateSignatureOfFile(this.builderState,b,v.resolvedPath)}}}return{emitSkipped:d,diagnostics:f}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const u of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(u.fileName);this.program.forEachResolvedProjectReference(u=>this.detachScriptInfoFromProject(u.sourceFile.fileName)),this.program=void 0}}disableLanguageService(u){this.languageServiceEnabled&&(H.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=u,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(u){return!u||!u.include?u:{...u,include:this.removeExistingTypings(u.include)}}getExternalFiles(u){return Ph(ju(this.plugins,s=>{if(typeof s.module.getExternalFiles=="function")try{return s.module.getExternalFiles(this,u||0)}catch(d){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${d}`),d.stack&&this.projectService.logger.info(d.stack)}}))}getSourceFile(u){if(this.program)return this.program.getSourceFileByPath(u)}getSourceFileOrConfigFile(u){const s=this.program.getCompilerOptions();return u===s.configFilePath?s.configFile:this.getSourceFile(u)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),L(this.externalFiles,u=>this.detachScriptInfoIfNotRoot(u));for(const u of this.rootFiles)u.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 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,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(rf(this.missingFilesMap,fg),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(u){const s=this.projectService.getScriptInfo(u);s&&!this.isRoot(s)&&s.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(u=>u.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Vt(this.program.getSourceFiles(),u=>{const s=this.projectService.getScriptInfoForPath(u.resolvedPath);return H.assert(!!s,"getScriptInfo",()=>`scriptInfo for a file '${u.fileName}' Path: '${u.path}' / '${u.resolvedPath}' is missing.`),s}):this.rootFiles}getExcludedFiles(){return $c}getFileNames(u,s){if(!this.program)return[];if(!this.languageServiceEnabled){let f=this.getRootFiles();if(this.compilerOptions){const p=tBe(this.compilerOptions);p&&(f||(f=[])).push(p)}return f}const d=[];for(const f of this.program.getSourceFiles())u&&this.program.isSourceFileFromExternalLibrary(f)||d.push(f.fileName);if(!s){const f=this.program.getCompilerOptions().configFile;if(f&&(d.push(f.fileName),f.extendedSourceFiles))for(const p of f.extendedSourceFiles)d.push(p)}return d}getFileNamesWithRedirectInfo(u){return this.getFileNames().map(s=>({fileName:s,isSourceOfProjectReferenceRedirect:u&&this.isSourceOfProjectReferenceRedirect(s)}))}hasConfigFile(u){if(this.program&&this.languageServiceEnabled){const s=this.program.getCompilerOptions().configFile;if(s){if(u===s.fileName)return!0;if(s.extendedSourceFiles){for(const d of s.extendedSourceFiles)if(u===d)return!0}}}return!1}containsScriptInfo(u){if(this.isRoot(u))return!0;if(!this.program)return!1;const s=this.program.getSourceFileByPath(u.path);return!!s&&s.resolvedPath===u.path}containsFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(u);return d&&(d.isScriptOpen()||!s)?this.containsScriptInfo(d):!1}isRoot(u){var s;return this.rootFilesMap&&((s=this.rootFilesMap.get(u.path))==null?void 0:s.info)===u}addRoot(u,s){H.assert(!this.isRoot(u)),this.rootFiles.push(u),this.rootFilesMap.set(u.path,{fileName:s||u.fileName,info:u}),u.attachToProject(this),this.markAsDirty()}addMissingFileRoot(u){const s=this.projectService.toPath(u);this.rootFilesMap.set(s,{fileName:u}),this.markAsDirty()}removeFile(u,s,d){this.isRoot(u)&&this.removeRoot(u),s?this.resolutionCache.removeResolutionsOfFile(u.path):this.resolutionCache.invalidateResolutionOfFile(u.path),this.cachedUnresolvedImportsPerFile.delete(u.path),d&&u.detachFromProject(this),this.markAsDirty()}registerFileUpdate(u){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(u)}markFileAsDirty(u){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(u)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var u;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(u=this.autoImportProviderHost)==null||u.markAsDirty()}onPackageJsonChange(u){var s;(s=this.packageJsonsForAutoImport)!=null&&s.has(u)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(u){this.hasAddedorRemovedFiles=!0,u&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var u,s,d,f,p;(u=Gn)==null||u.push(Gn.Phase.Session,"updateGraph",{name:this.projectName,kind:nz[this.projectKind]}),(s=hh)==null||s.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const E=this.updateGraphWorker(),v=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const b=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||$c;for(const k of b)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((E||b.length)&&(this.lastCachedUnresolvedImportsList=NQt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,v)):this.lastCachedUnresolvedImportsList=void 0;const B=this.projectProgramVersion===0&&E;return E&&this.projectProgramVersion++,v&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(d=this.autoImportProviderHost)==null||d.markAsDirty()),B&&this.getPackageJsonAutoImportProvider(),(f=hh)==null||f.logStopUpdateGraph(),(p=Gn)==null||p.pop(),!E}updateTypingFiles(u){eU(u,this.typingFiles,CN(!this.useCaseSensitiveFileNames()),Is,s=>this.detachScriptInfoFromProject(s))&&(this.typingFiles=u,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&rf(this.typingWatchers,fg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:YQ})}watchTypingLocations(u){if(!u){this.typingWatchers.isInvoked=!1;return}if(!u.length){this.closeWatchingTypingLocations();return}const s=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const d=(f,p)=>{const E=this.toPath(f);s.delete(E),this.typingWatchers.has(E)||this.typingWatchers.set(E,p==="FileWatcher"?this.projectService.watchFactory.watchFile(f,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(f,v=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Ml(v,".json"))return this.writeLog("Ignoring files that are not *.json");if(pv(v,cr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationDirectory,this))};for(const f of u){const p=Ac(f);if(p==="package.json"||p==="bower.json"){d(f,"FileWatcher");continue}if(GE(this.currentDirectory,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){const E=f.indexOf(rl,this.currentDirectory.length+1);d(E!==-1?f.substr(0,E):f,"DirectoryWatcher");continue}if(GE(this.projectService.typingsInstaller.globalTypingsCacheLocation,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){d(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}d(f,"DirectoryWatcher")}s.forEach((f,p)=>{f.close(),this.typingWatchers.delete(p)})}getCurrentProgram(){return this.program}removeExistingTypings(u){const s=VY(this.getCompilerOptions(),this.directoryStructureHost);return u.filter(d=>!s.includes(d))}updateGraphWorker(){var u,s;const d=this.languageService.getCurrentProgram();H.assert(d===this.program),H.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const f=G0(),{hasInvalidatedResolutions:p,hasInvalidatedLibResolutions:E}=this.resolutionCache.createHasInvalidatedResolutions(cg,cg);this.hasInvalidatedResolutions=p,this.hasInvalidatedLibResolutions=E,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(u=Gn)==null||u.push(Gn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,d),(s=Gn)==null||s.pop(),H.assert(d===void 0||this.program!==void 0);let v=!1;if(this.program&&(!d||this.program!==d&&this.program.structureIsReused!==2)){if(v=!0,d){for(const k of d.getSourceFiles()){const T=this.program.getSourceFileByPath(k.resolvedPath);(!T||k.resolvedPath===k.path&&T.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}d.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(g1e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=y0(this.compilerOptions);rNe(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(_h(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((T,M)=>{const z=this.program.getSourceFileByPath(M);(!z||z.resolvedPath!==M||!this.isValidGeneratedFileWatcher(Mq(z.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),T))&&(jm(T),this.generatedFilesMap.delete(M))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||d&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&d&&this.program&&U_(this.changedFilesForExportMapCache,k=>{const T=d.getSourceFileByPath(k),M=this.program.getSourceFileByPath(k);return!T||!M?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(T,M,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const b=this.externalFiles||$c;this.externalFiles=this.getExternalFiles(),eU(this.externalFiles,b,CN(!this.useCaseSensitiveFileNames()),k=>{const T=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);T==null||T.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const B=G0()-f;return this.sendPerformanceEvent("UpdateGraph",B),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${v}${this.program?` structureIsReused:: ${cU[this.program.structureIsReused]}`:""} Elapsed: ${B}ms`),this.projectService.logger.isTestLogger?this.program!==d?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==d&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),v}sendPerformanceEvent(u,s){this.projectService.sendPerformanceEvent(u,s)}detachScriptInfoFromProject(u,s,d){const f=this.projectService.getScriptInfo(u);f&&(f.detachFromProject(this),s||this.resolutionCache.removeResolutionsOfFile(f.path,d))}addMissingFileWatcher(u){var s;if(Qv(this)){const f=this.projectService.configFileExistenceInfoCache.get(u);if((s=f==null?void 0:f.config)!=null&&s.projects.has(this.canonicalConfigFilePath))return tw}const d=this.projectService.watchFactory.watchFile(u,(f,p)=>{Qv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(f,u,p),p===0&&this.missingFilesMap.has(u)&&(this.missingFilesMap.delete(u),d.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),cd.MissingFile,this);return d}isWatchedMissingFile(u){return!!this.missingFilesMap&&this.missingFilesMap.has(u)}addGeneratedFileWatch(u,s){if(y0(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(u));else{const d=this.toPath(s);if(this.generatedFilesMap){if(rNe(this.generatedFilesMap)){H.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(d))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(d,this.createGeneratedFileWatcher(u))}}createGeneratedFileWatcher(u){return{generatedFilePath:this.toPath(u),watcher:this.projectService.watchFactory.watchFile(u,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),cd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(u,s){return this.toPath(u)===s.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(rNe(this.generatedFilesMap)?jm(this.generatedFilesMap):rf(this.generatedFilesMap,jm),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&!s.isAttached(this)?v5.ThrowProjectDoesNotContainDocument(u,this):s}getScriptInfo(u){return this.projectService.getScriptInfo(u)}filesToString(u){return this.filesToStringWorker(u,!0,!1)}filesToStringWorker(u,s,d){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending +`:d.prefix}}getInsertNodeAfterOptionsWorker(u){switch(u.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 H.assert(ua(u)||VU(u)),{suffix:this.newLineCharacter}}}insertName(u,s,d){if(H.assert(!s.name),s.kind===219){const f=a0(s,39,u),p=a0(s,21,u);p?(this.insertNodesAt(u,p.getStart(u),[q.createToken(100),q.createIdentifier(d)],{joiner:" "}),lD(this,u,f)):(this.insertText(u,Pn(s.parameters).getStart(u),`function ${d}(`),this.replaceRange(u,f,q.createToken(22))),s.body.kind!==241&&(this.insertNodesAt(u,s.body.getStart(u),[q.createToken(19),q.createToken(107)],{joiner:" ",suffix:" "}),this.insertNodesAt(u,s.body.end,[q.createToken(27),q.createToken(20)],{joiner:" "}))}else{const f=a0(s,s.kind===218?100:86,u).end;this.insertNodeAt(u,f,q.createIdentifier(d),{prefix:" "})}}insertExportModifier(u,s){this.insertText(u,s.getStart(u),"export ")}insertImportSpecifierAtIndex(u,s,d,f){const p=d.elements[f-1];p?this.insertNodeInListAfter(u,p,s):this.insertNodeBefore(u,d.elements[0],s,!Y4(d.elements[0].getStart(),d.parent.parent.getStart(),u))}insertNodeInListAfter(u,s,d,f=dd.SmartIndenter.getContainingList(s,u)){if(!f){H.fail("node is not a list element");return}const p=j8(f,s);if(p<0)return;const E=s.getEnd();if(p!==f.length-1){const v=ya(u,s.end);if(v&&Rpe(s,v)){const b=f[p+1],B=Vlt(u.text,b.getFullStart()),k=`${qo(v.kind)}${u.text.substring(v.end,B)}`;this.insertNodesAt(u,B,[d],{suffix:k})}}else{const v=s.getStart(u),b=np(v,u);let B,k=!1;if(f.length===1)B=28;else{const T=id(s.pos,u);B=Rpe(s,T)?T.kind:28,k=np(f[p-1].getStart(u),u)!==b}if(ZZt(u.text,s.end)&&(k=!0),k){this.replaceRange(u,d4(E),q.createToken(B));const T=dd.SmartIndenter.findFirstNonWhitespaceColumn(b,v,u,this.formatContext.options);let M=gs(u.text,E,!0,!1);for(;M!==E&&Y1(u.text.charCodeAt(M-1));)M--;this.replaceRange(u,d4(M),d,{indentation:T,prefix:this.newLineCharacter})}else this.replaceRange(u,d4(E),d,{prefix:`${qo(B)} `})}}parenthesizeExpression(u,s){this.replaceRange(u,Nle(s),q.createParenthesizedExpression(s))}finishClassesWithNodesInsertedAtStart(){this.classesWithNodesInsertedAtStart.forEach(({node:u,sourceFile:s})=>{const[d,f]=tYt(u,s);if(d!==void 0&&f!==void 0){const p=Ope(u).length===0,E=Y4(d,f,s);p&&E&&d!==f-1&&this.deleteRange(s,d4(d,f-1)),E&&this.insertText(s,f-1,this.newLineCharacter)}})}finishDeleteDeclarations(){const u=new Set;for(const{sourceFile:s,node:d}of this.deletedNodes)this.deletedNodes.some(f=>f.sourceFile===s&&tSe(f.node,d))||(Wa(d)?this.deleteRange(s,Ple(s,d)):xLe.deleteDeclaration(this,u,s,d));u.forEach(s=>{const d=s.getSourceFile(),f=dd.SmartIndenter.getContainingList(s,d);if(s!==yr(f))return;const p=Ze(f,E=>!u.has(E),f.length-2);p!==-1&&this.deleteRange(d,{pos:f[p].end,end:gLe(d,f[p+1])})})}getChanges(u){this.finishDeleteDeclarations(),this.finishClassesWithNodesInsertedAtStart();const s=Vpe.getTextChangesFromChanges(this.changes,this.newLineCharacter,this.formatContext,u);return this.newFileChanges&&this.newFileChanges.forEach((d,f)=>{s.push(Vpe.newFileChanges(f,d,this.newLineCharacter,this.formatContext))}),s}createNewFile(u,s,d){this.insertStatementsInNewFile(s,d,u)}},(t=>{function u(v,b,B,k){return qi(CN(v,T=>T.sourceFile.path),T=>{const M=T[0].sourceFile,z=sc(T,(J,K)=>J.range.pos-K.range.pos||J.range.end-K.range.end);for(let J=0;J`${JSON.stringify(z[J].range)} and ${JSON.stringify(z[J+1].range)}`);const j=qi(z,J=>{const K=qx(J.range),Y=J.kind===1?zn(Wl(J.node))??J.sourceFile:J.kind===2?zn(Wl(J.nodes[0]))??J.sourceFile:J.sourceFile,oe=f(J,Y,M,b,B,k);if(!(K.length===oe.length&&VSe(Y.text,oe,K.start)))return HH(K,oe)});return j.length>0?{fileName:M.fileName,textChanges:j}:void 0})}t.getTextChangesFromChanges=u;function s(v,b,B,k){const T=d(cZ(v),b,B,k);return{fileName:v,textChanges:[HH(h1(0,0),T)],isNewFile:!0}}t.newFileChanges=s;function d(v,b,B,k){const T=Vu(b,j=>j.statements.map(J=>J===4?"":E(J,j.oldFile,B).text)).join(B),M=WV("any file name",T,{languageVersion:99,jsDocParsingMode:1},!0,v),z=dd.formatDocument(M,k);return ELe(T,z)+B}t.newFileChangesWorker=d;function f(v,b,B,k,T,M){var z;if(v.kind===0)return"";if(v.kind===3)return v.text;const{options:j={},range:{pos:J}}=v,K=se=>p(se,b,B,J,j,k,T,M),Y=v.kind===2?v.nodes.map(se=>D8(K(se),k)).join(((z=v.options)==null?void 0:z.joiner)||k):K(v.node),oe=j.indentation!==void 0||np(J,b)===J?Y:Y.replace(/^\s+/,"");return(j.prefix||"")+oe+(!j.suffix||lc(oe,j.suffix)?"":j.suffix)}function p(v,b,B,k,{indentation:T,prefix:M,delta:z},j,J,K){const{node:Y,text:oe}=E(v,b,j);K&&K(Y,oe);const se=HX(J,b),ge=T!==void 0?T:dd.SmartIndenter.getIndentation(k,B,se,M===j||np(k,b)===k);z===void 0&&(z=dd.SmartIndenter.shouldIndentChildNode(se,v)&&se.indentSize||0);const ae={text:oe,getLineAndCharacterOfPosition(ne){return s0(this,ne)}},Ce=dd.formatNodeGivenIndentation(Y,ae,b.languageVariant,ge,z,{...J,options:se});return ELe(oe,Ce)}function E(v,b,B){const k=Hlt(B),T=tK(B);return Jv({newLine:T,neverAsciiEscape:!0,preserveSourceNewlines:!0,terminateUnterminatedLiterals:!0},k).writeNode(4,v,b,k),{text:k.getText(),node:jpe(v)}}t.getNonformattedText=E})(Vpe||(Vpe={})),Glt={...Dg,factory:pV(Dg.factory.flags|1,Dg.factory.baseFactory)},(t=>{function u(p,E,v,b){switch(b.kind){case 169:{const z=b.parent;Z0(z)&&z.parameters.length===1&&!a0(z,21,v)?p.replaceNodeWithText(v,b,"()"):RK(p,E,v,b);break}case 272:case 271:const B=v.imports.length&&b===Pn(v.imports).parent||b===Le(v.statements,tk);lD(p,v,b,{leadingTriviaOption:B?0:lm(b)?2:3});break;case 208:const k=b.parent;k.kind===207&&b!==yr(k.elements)?lD(p,v,b):RK(p,E,v,b);break;case 260:f(p,E,v,b);break;case 168:RK(p,E,v,b);break;case 276:const M=b.parent;M.elements.length===1?d(p,v,M):RK(p,E,v,b);break;case 274:d(p,v,b);break;case 27:lD(p,v,b,{trailingTriviaOption:0});break;case 100:lD(p,v,b,{leadingTriviaOption:0});break;case 263:case 262:lD(p,v,b,{leadingTriviaOption:lm(b)?2:3});break;default:b.parent?u_(b.parent)&&b.parent.name===b?s(p,v,b.parent):Mo(b.parent)&&kt(b.parent.arguments,b)?RK(p,E,v,b):lD(p,v,b):lD(p,v,b)}}t.deleteDeclaration=u;function s(p,E,v){if(!v.namedBindings)lD(p,E,v.parent);else{const b=v.name.getStart(E),B=ya(E,v.name.end);if(B&&B.kind===28){const k=gs(E.text,B.end,!1,!0);p.deleteRange(E,{pos:b,end:k})}else lD(p,E,v.name)}}function d(p,E,v){if(v.parent.name){const b=H.checkDefined(ya(E,v.pos-1));p.deleteRange(E,{pos:b.getStart(E),end:v.end})}else{const b=Av(v,272);lD(p,E,b)}}function f(p,E,v,b){const{parent:B}=b;if(B.kind===299){p.deleteNodeRange(v,a0(B,21,v),a0(B,22,v));return}if(B.declarations.length!==1){RK(p,E,v,b);return}const k=B.parent;switch(k.kind){case 250:case 249:p.replaceNode(v,b,q.createObjectLiteralExpression());break;case 248:lD(p,v,B);break;case 243:lD(p,v,k,{leadingTriviaOption:lm(k)?2:3});break;default:H.assertNever(k)}}})(xLe||(xLe={}))}}),iu={};h(iu,{ChangeTracker:()=>Wlt,LeadingTriviaOption:()=>_Le,TrailingTriviaOption:()=>DLe,applyChanges:()=>ELe,assignPositionsToNode:()=>jpe,createWriter:()=>Hlt,deleteNode:()=>lD,isThisTypeAnnotatable:()=>YZt,isValidLocationToAddComment:()=>Klt});var oYt=o({"src/services/_namespaces/ts.textChanges.ts"(){aYt()}}),vLe,CLe,sYt=o({"src/services/formatting/formattingContext.ts"(){or(),vLe=(t=>(t[t.FormatDocument=0]="FormatDocument",t[t.FormatSelection=1]="FormatSelection",t[t.FormatOnEnter=2]="FormatOnEnter",t[t.FormatOnSemicolon=3]="FormatOnSemicolon",t[t.FormatOnOpeningCurlyBrace=4]="FormatOnOpeningCurlyBrace",t[t.FormatOnClosingCurlyBrace=5]="FormatOnClosingCurlyBrace",t))(vLe||{}),CLe=class{constructor(t,u,s){this.sourceFile=t,this.formattingRequestKind=u,this.options=s}updateContext(t,u,s,d,f){this.currentTokenSpan=H.checkDefined(t),this.currentTokenParent=H.checkDefined(u),this.nextTokenSpan=H.checkDefined(s),this.nextTokenParent=H.checkDefined(d),this.contextNode=H.checkDefined(f),this.contextNodeAllOnSameLine=void 0,this.nextNodeAllOnSameLine=void 0,this.tokensAreOnSameLine=void 0,this.contextNodeBlockIsOnOneLine=void 0,this.nextNodeBlockIsOnOneLine=void 0}ContextNodeAllOnSameLine(){return this.contextNodeAllOnSameLine===void 0&&(this.contextNodeAllOnSameLine=this.NodeIsOnOneLine(this.contextNode)),this.contextNodeAllOnSameLine}NextNodeAllOnSameLine(){return this.nextNodeAllOnSameLine===void 0&&(this.nextNodeAllOnSameLine=this.NodeIsOnOneLine(this.nextTokenParent)),this.nextNodeAllOnSameLine}TokensAreOnSameLine(){if(this.tokensAreOnSameLine===void 0){const t=this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line,u=this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;this.tokensAreOnSameLine=t===u}return this.tokensAreOnSameLine}ContextNodeBlockIsOnOneLine(){return this.contextNodeBlockIsOnOneLine===void 0&&(this.contextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.contextNode)),this.contextNodeBlockIsOnOneLine}NextNodeBlockIsOnOneLine(){return this.nextNodeBlockIsOnOneLine===void 0&&(this.nextNodeBlockIsOnOneLine=this.BlockIsOnOneLine(this.nextTokenParent)),this.nextNodeBlockIsOnOneLine}NodeIsOnOneLine(t){const u=this.sourceFile.getLineAndCharacterOfPosition(t.getStart(this.sourceFile)).line,s=this.sourceFile.getLineAndCharacterOfPosition(t.getEnd()).line;return u===s}BlockIsOnOneLine(t){const u=a0(t,19,this.sourceFile),s=a0(t,20,this.sourceFile);if(u&&s){const d=this.sourceFile.getLineAndCharacterOfPosition(u.getEnd()).line,f=this.sourceFile.getLineAndCharacterOfPosition(s.getStart(this.sourceFile)).line;return d===f}return!1}}}});function bLe(t,u,s,d,f){const p=u===1?$lt:Jlt;p.setText(t),p.resetTokenState(s);let E=!0,v,b,B,k,T;const M=f({advance:z,readTokenInfo:ae,readEOFTokenRange:ne,isOnToken:ve,isOnEOF:Se,getCurrentLeadingTrivia:()=>v,lastTrailingTriviaWasNewLine:()=>E,skipToEndOf:pe,skipToStartOf:fe,getTokenFullStart:()=>(T==null?void 0:T.token.pos)??p.getTokenStart(),getStartPos:()=>(T==null?void 0:T.token.pos)??p.getTokenStart()});return T=void 0,p.setText(void 0),M;function z(){T=void 0,p.getTokenFullStart()!==s?E=!!b&&yr(b).kind===4:p.scan(),v=void 0,b=void 0;let Be=p.getTokenFullStart();for(;Be(t[t.None=0]="None",t[t.StopProcessingSpaceActions=1]="StopProcessingSpaceActions",t[t.StopProcessingTokenActions=2]="StopProcessingTokenActions",t[t.InsertSpace=4]="InsertSpace",t[t.InsertNewLine=8]="InsertNewLine",t[t.DeleteSpace=16]="DeleteSpace",t[t.DeleteToken=32]="DeleteToken",t[t.InsertTrailingSemicolon=64]="InsertTrailingSemicolon",t[t.StopAction=3]="StopAction",t[t.ModifySpaceAction=28]="ModifySpaceAction",t[t.ModifyTokenAction=96]="ModifyTokenAction",t))(yLe||{}),kLe=(t=>(t[t.None=0]="None",t[t.CanDeleteNewLines=1]="CanDeleteNewLines",t))(kLe||{})}});function Ult(){const t=[];for(let Ce=0;Ce<=165;Ce++)Ce!==1&&t.push(Ce);function u(...Ce){return{tokens:t.filter(ne=>!Ce.some(ve=>ve===ne)),isSpecific:!1}}const s={tokens:t,isSpecific:!1},d=iz([...t,3]),f=iz([...t,1]),p=Zlt(83,165),E=Zlt(30,79),v=[103,104,165,130,142,152],b=[46,47,55,54],B=[9,10,80,21,23,19,110,105],k=[80,21,110,105],T=[80,22,24,105],M=[80,21,110,105],z=[80,22,24,105],j=[2,3],J=[80,...WX],K=d,Y=iz([80,3,86,95,102]),oe=iz([22,3,92,113,98,93]),se=[$u("IgnoreBeforeComment",s,j,Gee,1),$u("IgnoreAfterLineComment",2,s,Gee,1),$u("NotSpaceBeforeColon",s,59,[ta,Jee,Xlt],16),$u("SpaceAfterColon",59,s,[ta,Jee,AYt],4),$u("NoSpaceBeforeQuestionMark",s,58,[ta,Jee,Xlt],16),$u("SpaceAfterQuestionMarkInConditionalOperator",58,s,[ta,mYt],4),$u("NoSpaceAfterQuestionMark",58,s,[ta,fYt],16),$u("NoSpaceBeforeDot",s,[25,29],[ta,jYt],16),$u("NoSpaceAfterDot",[25,29],s,[ta],16),$u("NoSpaceBetweenImportParenInImportType",102,21,[ta,kYt],16),$u("NoSpaceAfterUnaryPrefixOperator",b,B,[ta,Jee],16),$u("NoSpaceAfterUnaryPreincrementOperator",46,k,[ta],16),$u("NoSpaceAfterUnaryPredecrementOperator",47,M,[ta],16),$u("NoSpaceBeforeUnaryPostincrementOperator",T,46,[ta,pct],16),$u("NoSpaceBeforeUnaryPostdecrementOperator",z,47,[ta,pct],16),$u("SpaceAfterPostincrementWhenFollowedByAdd",46,40,[ta,Qx],4),$u("SpaceAfterAddWhenFollowedByUnaryPlus",40,40,[ta,Qx],4),$u("SpaceAfterAddWhenFollowedByPreincrement",40,46,[ta,Qx],4),$u("SpaceAfterPostdecrementWhenFollowedBySubtract",47,41,[ta,Qx],4),$u("SpaceAfterSubtractWhenFollowedByUnaryMinus",41,41,[ta,Qx],4),$u("SpaceAfterSubtractWhenFollowedByPredecrement",41,47,[ta,Qx],4),$u("NoSpaceAfterCloseBrace",20,[28,27],[ta],16),$u("NewLineBeforeCloseBraceInBlockContext",d,20,[tct],8),$u("SpaceAfterCloseBrace",20,u(22),[ta,EYt],4),$u("SpaceBetweenCloseBraceAndElse",20,93,[ta],4),$u("SpaceBetweenCloseBraceAndWhile",20,117,[ta],4),$u("NoSpaceBetweenEmptyBraceBrackets",19,20,[ta,oct],16),$u("SpaceAfterConditionalClosingParen",22,23,[$ee],4),$u("NoSpaceBetweenFunctionKeywordAndStar",100,42,[uct],16),$u("SpaceAfterStarInGeneratorDeclaration",42,80,[uct],4),$u("SpaceAfterFunctionInFuncDecl",100,s,[Kk],4),$u("NewLineAfterOpenBraceInBlockContext",19,s,[tct],8),$u("SpaceAfterGetSetInMember",[139,153],80,[Kk],4),$u("NoSpaceBetweenYieldKeywordAndStar",127,42,[ta,mct],16),$u("SpaceBetweenYieldOrYieldStarAndOperand",[127,42],s,[ta,mct],4),$u("NoSpaceBetweenReturnAndSemicolon",107,27,[ta],16),$u("SpaceAfterCertainKeywords",[115,111,105,91,107,114,135],s,[ta],4),$u("SpaceAfterLetConstInVariableDeclaration",[121,87],s,[ta,wYt],4),$u("NoSpaceBeforeOpenParenInFuncCall",s,21,[ta,xYt,vYt],16),$u("SpaceBeforeBinaryKeywordOperator",s,v,[ta,Qx],4),$u("SpaceAfterBinaryKeywordOperator",v,s,[ta,Qx],4),$u("SpaceAfterVoidOperator",116,s,[ta,MYt],4),$u("SpaceBetweenAsyncAndOpenParen",134,21,[yYt,ta],4),$u("SpaceBetweenAsyncAndFunctionKeyword",134,[100,80],[ta],4),$u("NoSpaceBetweenTagAndTemplateString",[80,22],[15,16],[ta],16),$u("SpaceBeforeJsxAttribute",s,80,[FYt,ta],4),$u("SpaceBeforeSlashInJsxOpeningElement",s,44,[dct,ta],4),$u("NoSpaceBeforeGreaterThanTokenInJsxOpeningElement",44,32,[dct,ta],16),$u("NoSpaceBeforeEqualInJsxAttribute",s,64,[lct,ta],16),$u("NoSpaceAfterEqualInJsxAttribute",64,s,[lct,ta],16),$u("NoSpaceBeforeJsxNamespaceColon",80,59,[cct],16),$u("NoSpaceAfterJsxNamespaceColon",59,80,[cct],16),$u("NoSpaceAfterModuleImport",[144,149],21,[ta],16),$u("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],s,[ta],4),$u("SpaceBeforeCertainTypeScriptKeywords",s,[96,119,161],[ta],4),$u("SpaceAfterModuleName",11,19,[TYt],4),$u("SpaceBeforeArrow",s,39,[ta],4),$u("SpaceAfterArrow",39,s,[ta],4),$u("NoSpaceAfterEllipsis",26,80,[ta],16),$u("NoSpaceAfterOptionalParameters",58,[22,28],[ta,Jee],16),$u("NoSpaceBetweenEmptyInterfaceBraceBrackets",19,20,[ta,LYt],16),$u("NoSpaceBeforeOpenAngularBracket",J,30,[ta,Uee],16),$u("NoSpaceBetweenCloseParenAndAngularBracket",22,30,[ta,Uee],16),$u("NoSpaceAfterOpenAngularBracket",30,s,[ta,Uee],16),$u("NoSpaceBeforeCloseAngularBracket",s,32,[ta,Uee],16),$u("NoSpaceAfterCloseAngularBracket",32,[21,23,32,28],[ta,Uee,gYt,PYt],16),$u("SpaceBeforeAt",[22,80],60,[ta],4),$u("NoSpaceAfterAt",60,s,[ta],16),$u("SpaceAfterDecorator",s,[128,80,95,90,86,126,125,123,124,139,153,23,42],[BYt],4),$u("NoSpaceBeforeNonNullAssertionOperator",s,54,[ta,zYt],16),$u("NoSpaceAfterNewKeywordOnConstructorSignature",105,21,[ta,NYt],16),$u("SpaceLessThanAndNonJSXTypeAnnotation",30,30,[ta],4)],ge=[$u("SpaceAfterConstructor",137,21,[Gm("insertSpaceAfterConstructor"),ta],4),$u("NoSpaceAfterConstructor",137,21,[hE("insertSpaceAfterConstructor"),ta],16),$u("SpaceAfterComma",28,s,[Gm("insertSpaceAfterCommaDelimiter"),ta,LLe,CYt,bYt],4),$u("NoSpaceAfterComma",28,s,[hE("insertSpaceAfterCommaDelimiter"),ta,LLe],16),$u("SpaceAfterAnonymousFunctionKeyword",[100,42],21,[Gm("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],4),$u("NoSpaceAfterAnonymousFunctionKeyword",[100,42],21,[hE("insertSpaceAfterFunctionKeywordForAnonymousFunctions"),Kk],16),$u("SpaceAfterKeywordInControl",p,21,[Gm("insertSpaceAfterKeywordsInControlFlowStatements"),$ee],4),$u("NoSpaceAfterKeywordInControl",p,21,[hE("insertSpaceAfterKeywordsInControlFlowStatements"),$ee],16),$u("SpaceAfterOpenParen",21,s,[Gm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),$u("SpaceBeforeCloseParen",s,22,[Gm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),$u("SpaceBetweenOpenParens",21,21,[Gm("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],4),$u("NoSpaceBetweenParens",21,22,[ta],16),$u("NoSpaceAfterOpenParen",21,s,[hE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],16),$u("NoSpaceBeforeCloseParen",s,22,[hE("insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis"),ta],16),$u("SpaceAfterOpenBracket",23,s,[Gm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],4),$u("SpaceBeforeCloseBracket",s,24,[Gm("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],4),$u("NoSpaceBetweenBrackets",23,24,[ta],16),$u("NoSpaceAfterOpenBracket",23,s,[hE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],16),$u("NoSpaceBeforeCloseBracket",s,24,[hE("insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets"),ta],16),$u("SpaceAfterOpenBrace",19,s,[Qlt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ect],4),$u("SpaceBeforeCloseBrace",s,20,[Qlt("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ect],4),$u("NoSpaceBetweenEmptyBraceBrackets",19,20,[ta,oct],16),$u("NoSpaceAfterOpenBrace",19,s,[FLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ta],16),$u("NoSpaceBeforeCloseBrace",s,20,[FLe("insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces"),ta],16),$u("SpaceBetweenEmptyBraceBrackets",19,20,[Gm("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces")],4),$u("NoSpaceBetweenEmptyBraceBrackets",19,20,[FLe("insertSpaceAfterOpeningAndBeforeClosingEmptyBraces"),ta],16),$u("SpaceAfterTemplateHeadAndMiddle",[16,17],s,[Gm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),sct],4,1),$u("SpaceBeforeTemplateMiddleAndTail",s,[17,18],[Gm("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ta],4),$u("NoSpaceAfterTemplateHeadAndMiddle",[16,17],s,[hE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),sct],16,1),$u("NoSpaceBeforeTemplateMiddleAndTail",s,[17,18],[hE("insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces"),ta],16),$u("SpaceAfterOpenBraceInJsxExpression",19,s,[Gm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Kpe],4),$u("SpaceBeforeCloseBraceInJsxExpression",s,20,[Gm("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Kpe],4),$u("NoSpaceAfterOpenBraceInJsxExpression",19,s,[hE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Kpe],16),$u("NoSpaceBeforeCloseBraceInJsxExpression",s,20,[hE("insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces"),ta,Kpe],16),$u("SpaceAfterSemicolonInFor",27,s,[Gm("insertSpaceAfterSemicolonInForStatements"),ta,SLe],4),$u("NoSpaceAfterSemicolonInFor",27,s,[hE("insertSpaceAfterSemicolonInForStatements"),ta,SLe],16),$u("SpaceBeforeBinaryOperator",s,E,[Gm("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],4),$u("SpaceAfterBinaryOperator",E,s,[Gm("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],4),$u("NoSpaceBeforeBinaryOperator",s,E,[hE("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],16),$u("NoSpaceAfterBinaryOperator",E,s,[hE("insertSpaceBeforeAndAfterBinaryOperators"),ta,Qx],16),$u("SpaceBeforeOpenParenInFuncDecl",s,21,[Gm("insertSpaceBeforeFunctionParenthesis"),ta,Kk],4),$u("NoSpaceBeforeOpenParenInFuncDecl",s,21,[hE("insertSpaceBeforeFunctionParenthesis"),ta,Kk],16),$u("NewLineBeforeOpenBraceInControl",oe,19,[Gm("placeOpenBraceOnNewLineForControlBlocks"),$ee,TLe],8,1),$u("NewLineBeforeOpenBraceInFunction",K,19,[Gm("placeOpenBraceOnNewLineForFunctions"),Kk,TLe],8,1),$u("NewLineBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[Gm("placeOpenBraceOnNewLineForFunctions"),rct,TLe],8,1),$u("SpaceAfterTypeAssertion",32,s,[Gm("insertSpaceAfterTypeAssertion"),ta,PLe],4),$u("NoSpaceAfterTypeAssertion",32,s,[hE("insertSpaceAfterTypeAssertion"),ta,PLe],16),$u("SpaceBeforeTypeAnnotation",s,[58,59],[Gm("insertSpaceBeforeTypeAnnotation"),ta,BLe],4),$u("NoSpaceBeforeTypeAnnotation",s,[58,59],[hE("insertSpaceBeforeTypeAnnotation"),ta,BLe],16),$u("NoOptionalSemicolon",27,f,[Ylt("semicolons","remove"),RYt],32),$u("OptionalSemicolon",s,f,[Ylt("semicolons","insert"),OYt],64)],ae=[$u("NoSpaceBeforeSemicolon",s,27,[ta],16),$u("SpaceBeforeOpenBraceInControl",oe,19,[ALe("placeOpenBraceOnNewLineForControlBlocks"),$ee,NLe,wLe],4,1),$u("SpaceBeforeOpenBraceInFunction",K,19,[ALe("placeOpenBraceOnNewLineForFunctions"),Kk,Hpe,NLe,wLe],4,1),$u("SpaceBeforeOpenBraceInTypeScriptDeclWithBlock",Y,19,[ALe("placeOpenBraceOnNewLineForFunctions"),rct,NLe,wLe],4,1),$u("NoSpaceBeforeComma",s,28,[ta],16),$u("NoSpaceBeforeOpenBracket",u(134,84),23,[ta],16),$u("NoSpaceAfterCloseBracket",24,s,[ta,SYt],16),$u("SpaceAfterSemicolon",27,s,[ta],4),$u("SpaceBetweenForAndAwaitKeyword",99,135,[ta],4),$u("SpaceBetweenStatements",[22,92,93,84],s,[ta,LLe,dYt],4),$u("SpaceAfterTryCatchFinally",[113,85,98],19,[ta],4)];return[...se,...ge,...ae]}function $u(t,u,s,d,f,p=0){return{leftTokenRange:qlt(u),rightTokenRange:qlt(s),rule:{debugName:t,context:d,action:f,flags:p}}}function iz(t){return{tokens:t,isSpecific:!0}}function qlt(t){return typeof t=="number"?iz([t]):Wa(t)?iz(t):t}function Zlt(t,u,s=[]){const d=[];for(let f=t;f<=u;f++)kt(s,f)||d.push(f);return iz(d)}function Ylt(t,u){return s=>s.options&&s.options[t]===u}function Gm(t){return u=>u.options&&Eu(u.options,t)&&!!u.options[t]}function FLe(t){return u=>u.options&&Eu(u.options,t)&&!u.options[t]}function hE(t){return u=>!u.options||!Eu(u.options,t)||!u.options[t]}function ALe(t){return u=>!u.options||!Eu(u.options,t)||!u.options[t]||u.TokensAreOnSameLine()}function Qlt(t){return u=>!u.options||!Eu(u.options,t)||!!u.options[t]}function SLe(t){return t.contextNode.kind===248}function dYt(t){return!SLe(t)}function Qx(t){switch(t.contextNode.kind){case 226:return t.contextNode.operatorToken.kind!==28;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 t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 249:case 168:return t.currentTokenSpan.kind===103||t.nextTokenSpan.kind===103||t.currentTokenSpan.kind===64||t.nextTokenSpan.kind===64;case 250:return t.currentTokenSpan.kind===165||t.nextTokenSpan.kind===165}return!1}function Jee(t){return!Qx(t)}function Xlt(t){return!BLe(t)}function BLe(t){const u=t.contextNode.kind;return u===172||u===171||u===169||u===260||a7(u)}function hYt(t){return ko(t.contextNode)&&t.contextNode.questionToken}function fYt(t){return!hYt(t)}function mYt(t){return t.contextNode.kind===227||t.contextNode.kind===194}function wLe(t){return t.TokensAreOnSameLine()||Hpe(t)}function ect(t){return t.contextNode.kind===206||t.contextNode.kind===200||pYt(t)}function TLe(t){return Hpe(t)&&!(t.NextNodeAllOnSameLine()||t.NextNodeBlockIsOnOneLine())}function tct(t){return ict(t)&&!(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function pYt(t){return ict(t)&&(t.ContextNodeAllOnSameLine()||t.ContextNodeBlockIsOnOneLine())}function ict(t){return nct(t.contextNode)}function Hpe(t){return nct(t.nextTokenParent)}function nct(t){if(act(t))return!0;switch(t.kind){case 241:case 269:case 210:case 268:return!0}return!1}function Kk(t){switch(t.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 gYt(t){return!Kk(t)}function uct(t){return t.contextNode.kind===262||t.contextNode.kind===218}function rct(t){return act(t.contextNode)}function act(t){switch(t.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 EYt(t){switch(t.currentTokenParent.kind){case 263:case 267:case 266:case 299:case 268:case 255:return!0;case 241:{const u=t.currentTokenParent.parent;if(!u||u.kind!==219&&u.kind!==218)return!0}}return!1}function $ee(t){switch(t.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 oct(t){return t.contextNode.kind===210}function _Yt(t){return t.contextNode.kind===213}function DYt(t){return t.contextNode.kind===214}function xYt(t){return _Yt(t)||DYt(t)}function vYt(t){return t.currentTokenSpan.kind!==28}function CYt(t){return t.nextTokenSpan.kind!==24}function bYt(t){return t.nextTokenSpan.kind!==22}function yYt(t){return t.contextNode.kind===219}function kYt(t){return t.contextNode.kind===205}function ta(t){return t.TokensAreOnSameLine()&&t.contextNode.kind!==12}function sct(t){return t.contextNode.kind!==12}function LLe(t){return t.contextNode.kind!==284&&t.contextNode.kind!==288}function Kpe(t){return t.contextNode.kind===294||t.contextNode.kind===293}function FYt(t){return t.nextTokenParent.kind===291||t.nextTokenParent.kind===295&&t.nextTokenParent.parent.kind===291}function lct(t){return t.contextNode.kind===291}function AYt(t){return t.nextTokenParent.kind!==295}function cct(t){return t.nextTokenParent.kind===295}function dct(t){return t.contextNode.kind===285}function SYt(t){return!Kk(t)&&!Hpe(t)}function BYt(t){return t.TokensAreOnSameLine()&&c4(t.contextNode)&&hct(t.currentTokenParent)&&!hct(t.nextTokenParent)}function hct(t){for(;t&&Wt(t);)t=t.parent;return t&&t.kind===170}function wYt(t){return t.currentTokenParent.kind===261&&t.currentTokenParent.getStart(t.sourceFile)===t.currentTokenSpan.pos}function NLe(t){return t.formattingRequestKind!==2}function TYt(t){return t.contextNode.kind===267}function LYt(t){return t.contextNode.kind===187}function NYt(t){return t.contextNode.kind===180}function fct(t,u){if(t.kind!==30&&t.kind!==32)return!1;switch(u.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 Uee(t){return fct(t.currentTokenSpan,t.currentTokenParent)||fct(t.nextTokenSpan,t.nextTokenParent)}function PLe(t){return t.contextNode.kind===216}function PYt(t){return!PLe(t)}function MYt(t){return t.currentTokenSpan.kind===116&&t.currentTokenParent.kind===222}function mct(t){return t.contextNode.kind===229&&t.contextNode.expression!==void 0}function zYt(t){return t.contextNode.kind===235}function pct(t){return!IYt(t)}function IYt(t){switch(t.contextNode.kind){case 245:case 248:case 249:case 250:case 246:case 247:return!0;default:return!1}}function RYt(t){let u=t.nextTokenSpan.kind,s=t.nextTokenSpan.pos;if(nB(u)){const p=t.nextTokenParent===t.currentTokenParent?nb(t.currentTokenParent,Tn(t.currentTokenParent,E=>!E.parent),t.sourceFile):t.nextTokenParent.getFirstToken(t.sourceFile);if(!p)return!0;u=p.kind,s=p.getStart(t.sourceFile)}const d=t.sourceFile.getLineAndCharacterOfPosition(t.currentTokenSpan.pos).line,f=t.sourceFile.getLineAndCharacterOfPosition(s).line;return d===f?u===20||u===1:u===240||u===27?!1:t.contextNode.kind===264||t.contextNode.kind===265?!zm(t.currentTokenParent)||!!t.currentTokenParent.type||u!==21:ko(t.currentTokenParent)?!t.currentTokenParent.initializer:t.currentTokenParent.kind!==248&&t.currentTokenParent.kind!==242&&t.currentTokenParent.kind!==240&&u!==23&&u!==21&&u!==40&&u!==41&&u!==44&&u!==14&&u!==28&&u!==228&&u!==16&&u!==15&&u!==25}function OYt(t){return NX(t.currentTokenSpan.end,t.currentTokenParent,t.sourceFile)}function jYt(t){return!Ru(t.contextNode)||!Of(t.contextNode.expression)||t.contextNode.expression.getText().includes(".")}var VYt=o({"src/services/formatting/rules.ts"(){or(),VK()}});function HYt(t,u){return{options:t,getRules:KYt(),host:u}}function KYt(){return MLe===void 0&&(MLe=GYt(Ult())),MLe}function WYt(t){let u=0;return t&1&&(u|=28),t&2&&(u|=96),t&28&&(u|=28),t&96&&(u|=96),u}function GYt(t){const u=JYt(t);return s=>{const d=u[gct(s.currentTokenSpan.kind,s.nextTokenSpan.kind)];if(d){const f=[];let p=0;for(const E of d){const v=~WYt(p);E.action&v&&ye(E.context,b=>b(s))&&(f.push(E),p|=E.action)}if(f.length)return f}}}function JYt(t){const u=new Array(Wpe*Wpe),s=new Array(u.length);for(const d of t){const f=d.leftTokenRange.isSpecific&&d.rightTokenRange.isSpecific;for(const p of d.leftTokenRange.tokens)for(const E of d.rightTokenRange.tokens){const v=gct(p,E);let b=u[v];b===void 0&&(b=u[v]=[]),$Yt(b,d.rule,f,s,v)}}return u}function gct(t,u){return H.assert(t<=165&&u<=165,"Must compute formatting context from tokens"),t*Wpe+u}function $Yt(t,u,s,d,f){const p=u.action&3?s?0:nz.StopRulesAny:u.context!==Gee?s?nz.ContextRulesSpecific:nz.ContextRulesAny:s?nz.NoContextRulesSpecific:nz.NoContextRulesAny,E=d[f]||0;t.splice(UYt(E,p),0,u),d[f]=qYt(E,p)}function UYt(t,u){let s=0;for(let d=0;d<=u;d+=Fw)s+=t&qee,t>>=Fw;return s}function qYt(t,u){const s=(t>>u&qee)+1;return H.assert((s&qee)===s,"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules."),t&~(qee<(t[t.StopRulesSpecific=0]="StopRulesSpecific",t[t.StopRulesAny=Fw*1]="StopRulesAny",t[t.ContextRulesSpecific=Fw*2]="ContextRulesSpecific",t[t.ContextRulesAny=Fw*3]="ContextRulesAny",t[t.NoContextRulesSpecific=Fw*4]="NoContextRulesSpecific",t[t.NoContextRulesAny=Fw*5]="NoContextRulesAny",t))(nz||{})}});function Gpe(t,u,s){const d={pos:t,end:u,kind:s};return H.isDebugging&&Object.defineProperty(d,"__debugKind",{get:()=>H.formatSyntaxKind(s)}),d}function YYt(t,u,s){const d=u.getLineAndCharacterOfPosition(t).line;if(d===0)return[];let f=rj(d,u);for(;Zg(u.text.charCodeAt(f));)f--;Y1(u.text.charCodeAt(f))&&f--;const p={pos:Mx(d-1,u),end:f+1};return Zee(p,u,s,2)}function QYt(t,u,s){const d=zLe(t,27,u);return Ect(ILe(d),u,s,3)}function XYt(t,u,s){const d=zLe(t,19,u);if(!d)return[];const f=d.parent,p=ILe(f),E={pos:np(p.getStart(u),u),end:t};return Zee(E,u,s,4)}function eQt(t,u,s){const d=zLe(t,20,u);return Ect(ILe(d),u,s,5)}function tQt(t,u){const s={pos:0,end:t.text.length};return Zee(s,t,u,0)}function iQt(t,u,s,d){const f={pos:np(t,s),end:u};return Zee(f,s,d,1)}function zLe(t,u,s){const d=id(t,s);return d&&d.kind===u&&t===d.getEnd()?d:void 0}function ILe(t){let u=t;for(;u&&u.parent&&u.parent.end===t.end&&!nQt(u.parent,u);)u=u.parent;return u}function nQt(t,u){switch(t.kind){case 263:case 264:return Hm(t.members,u);case 267:const s=t.body;return!!s&&s.kind===268&&Hm(s.statements,u);case 312:case 241:case 268:return Hm(t.statements,u);case 299:return Hm(t.block.statements,u)}return!1}function uQt(t,u){return s(u);function s(d){const f=ao(d,p=>Ghe(p.getStart(u),p.end,t)&&p);if(f){const p=s(f);if(p)return p}return d}}function rQt(t,u){if(!t.length)return f;const s=t.filter(p=>LM(u,p.start,p.start+p.length)).sort((p,E)=>p.start-E.start);if(!s.length)return f;let d=0;return p=>{for(;;){if(d>=s.length)return!1;const E=s[d];if(p.end<=E.start)return!1;if(sX(p.pos,p.end,E.start,E.start+E.length))return!0;d++}};function f(){return!1}}function aQt(t,u,s){const d=t.getStart(s);if(d===u.pos&&t.end===u.end)return d;const f=id(u.pos,s);return!f||f.end>=u.pos?t.pos:f.end}function oQt(t,u,s){let d=-1,f;for(;t;){const p=s.getLineAndCharacterOfPosition(t.getStart(s)).line;if(d!==-1&&p!==d)break;if(fE.shouldIndentChildNode(u,t,f,s))return u.indentSize;d=p,f=t,t=t.parent}return 0}function sQt(t,u,s,d,f,p){const E={pos:t.pos,end:t.end};return bLe(u.text,s,E.pos,E.end,v=>_ct(E,t,d,f,v,p,1,b=>!1,u))}function Ect(t,u,s,d){if(!t)return[];const f={pos:np(t.getStart(u),u),end:t.end};return Zee(f,u,s,d)}function Zee(t,u,s,d){const f=uQt(t,u);return bLe(u.text,u.languageVariant,aQt(f,t,u),t.end,p=>_ct(t,f,fE.getIndentationForNode(f,t,u,s.options),oQt(f,s.options,u),p,s,d,rQt(u.parseDiagnostics,t),u))}function _ct(t,u,s,d,f,{options:p,getRules:E,host:v},b,B,k){var T;const M=new CLe(k,b,p);let z,j,J,K,Y,oe=-1;const se=[];if(f.advance(),f.isOnToken()){const Ie=k.getLineAndCharacterOfPosition(u.getStart(k)).line;let st=Ie;c4(u)&&(st=k.getLineAndCharacterOfPosition(f0e(u,k)).line),Se(u,u,Ie,st,s,d)}const ge=f.getCurrentLeadingTrivia();if(ge){const Ie=fE.nodeWillIndentChild(p,u,void 0,k,!1)?s+p.indentSize:s;Ne(ge,Ie,!0,st=>{fe(st,k.getLineAndCharacterOfPosition(st.pos),u,u,void 0),Be(st.pos,Ie,!1)}),p.trimTrailingWhitespace!==!1&&mt(ge)}if(j&&f.getTokenFullStart()>=t.end){const Ie=f.isOnEOF()?f.readEOFTokenRange():f.isOnToken()?f.readTokenInfo(u).token:void 0;if(Ie&&Ie.pos===z){const st=((T=id(Ie.end,k,u))==null?void 0:T.parent)||J;xe(Ie,k.getLineAndCharacterOfPosition(Ie.pos).line,st,j,K,J,st,void 0)}}return se;function ae(Ie,st,Bt,It,ei){if(LM(It,Ie,st)||RH(It,Ie,st)){if(ei!==-1)return ei}else{const ft=k.getLineAndCharacterOfPosition(Ie).line,Ut=np(Ie,k),Ni=fE.findFirstNonWhitespaceColumn(Ut,Ie,k,p);if(ft!==Bt||Ie===Ni){const Vi=fE.getBaseIndentation(p);return Vi>Ni?Vi:Ni}}return-1}function Ce(Ie,st,Bt,It,ei,ft){const Ut=fE.shouldIndentChildNode(p,Ie)?p.indentSize:0;return ft===st?{indentation:st===Y?oe:ei.getIndentation(),delta:Math.min(p.indentSize,ei.getDelta(Ie)+Ut)}:Bt===-1?Ie.kind===21&&st===Y?{indentation:oe,delta:ei.getDelta(Ie)}:fE.childStartsOnTheSameLineWithElseInIfStatement(It,Ie,st,k)||fE.childIsUnindentedBranchOfConditionalExpression(It,Ie,st,k)||fE.argumentStartsOnSameLineAsPreviousArgument(It,Ie,st,k)?{indentation:ei.getIndentation(),delta:Ut}:{indentation:ei.getIndentation()+ei.getDelta(Ie),delta:Ut}:{indentation:Bt,delta:Ut}}function ne(Ie){if(Kp(Ie)){const st=Le(Ie.modifiers,Xo,Ue(Ie.modifiers,E1));if(st)return st.kind}switch(Ie.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(Ie.asteriskToken)return 42;case 172:case 169:const st=Ya(Ie);if(st)return st.kind}}function ve(Ie,st,Bt,It){return{getIndentationForComment:(Ut,Ni,Vi)=>{switch(Ut){case 20:case 24:case 22:return Bt+ft(Vi)}return Ni!==-1?Ni:Bt},getIndentationForToken:(Ut,Ni,Vi,xn)=>!xn&&ei(Ut,Ni,Vi)?Bt+ft(Vi):Bt,getIndentation:()=>Bt,getDelta:ft,recomputeIndentation:(Ut,Ni)=>{fE.shouldIndentChildNode(p,Ni,Ie,k)&&(Bt+=Ut?p.indentSize:-p.indentSize,It=fE.shouldIndentChildNode(p,Ie)?p.indentSize:0)}};function ei(Ut,Ni,Vi){switch(Ni){case 19:case 20:case 22:case 93:case 117:case 60:return!1;case 44:case 32:switch(Vi.kind){case 286:case 287:case 285:return!1}break;case 23:case 24:if(Vi.kind!==200)return!1;break}return st!==Ut&&!(c4(Ie)&&Ni===ne(Ie))}function ft(Ut){return fE.nodeWillIndentChild(p,Ie,Ut,k,!0)?It:0}}function Se(Ie,st,Bt,It,ei,ft){if(!LM(t,Ie.getStart(k),Ie.getEnd()))return;const Ut=ve(Ie,Bt,ei,ft);let Ni=st;for(ao(Ie,an=>{Vi(an,-1,Ie,Ut,Bt,It,!1)},an=>{xn(an,Ie,Bt,Ut)});f.isOnToken()&&f.getTokenFullStart()Math.min(Ie.end,t.end))break;Jn(an,Ie,Ut,Ie)}function Vi(an,Pi,Fi,Yu,oa,Fr,wa,bt){if(H.assert(!cl(an)),Xl(an)||Pbe(Fi,an))return Pi;const jn=an.getStart(k),Ln=k.getLineAndCharacterOfPosition(jn).line;let Ai=Ln;c4(an)&&(Ai=k.getLineAndCharacterOfPosition(f0e(an,k)).line);let Dn=-1;if(wa&&Hm(t,Fi)&&(Dn=ae(jn,an.end,oa,t,Pi),Dn!==-1&&(Pi=Dn)),!LM(t,an.pos,an.end))return an.endt.end)return Pi;if(sa.token.end>jn){sa.token.pos>jn&&f.skipToStartOf(an);break}Jn(sa,Ie,Yu,Ie)}if(!f.isOnToken()||f.getTokenFullStart()>=t.end)return Pi;if(u7(an)){const sa=f.readTokenInfo(an);if(an.kind!==12)return H.assert(sa.token.end===an.end,"Token end is child end"),Jn(sa,Ie,Yu,an),Pi}const Cn=an.kind===170?Ln:Fr,tu=Ce(an,Ln,Dn,Ie,Yu,Cn);return Se(an,Ni,Ln,Ai,tu.indentation,tu.delta),Ni=Ie,bt&&Fi.kind===209&&Pi===-1&&(Pi=tu.indentation),Pi}function xn(an,Pi,Fi,Yu){H.assert(E2(an)),H.assert(!cl(an));const oa=lQt(Pi,an);let Fr=Yu,wa=Fi;if(!LM(t,an.pos,an.end)){an.endan.pos)break;if(Ln.token.kind===oa){wa=k.getLineAndCharacterOfPosition(Ln.token.pos).line,Jn(Ln,Pi,Yu,Pi);let Ai;if(oe!==-1)Ai=oe;else{const Dn=np(Ln.token.pos,k);Ai=fE.findFirstNonWhitespaceColumn(Dn,Ln.token.pos,k,p)}Fr=ve(Pi,Fi,Ai,p.indentSize)}else Jn(Ln,Pi,Yu,Pi)}let bt=-1;for(let Ln=0;LnBe(tu.pos,Cn,!1))}Ai!==-1&&Dn&&(Be(an.token.pos,Ai,bt===1),Y=Ln.line,oe=Ai)}f.advance(),Ni=Pi}}function Ne(Ie,st,Bt,It){for(const ei of Ie){const ft=Hm(t,ei);switch(ei.kind){case 3:ft&&De(ei,st,!Bt),Bt=!1;break;case 2:Bt&&ft&&It(ei),Bt=!1;break;case 4:Bt=!0;break}}return Bt}function pe(Ie,st,Bt,It){for(const ei of Ie)if(gX(ei.kind)&&Hm(t,ei)){const ft=k.getLineAndCharacterOfPosition(ei.pos);fe(ei,ft,st,Bt,It)}}function fe(Ie,st,Bt,It,ei){const ft=B(Ie);let Ut=0;if(!ft)if(j)Ut=xe(Ie,st.line,Bt,j,K,J,It,ei);else{const Ni=k.getLineAndCharacterOfPosition(t.pos);He(Ni.line,st.line)}return j=Ie,z=Ie.end,J=Bt,K=st.line,Ut}function xe(Ie,st,Bt,It,ei,ft,Ut,Ni){M.updateContext(It,ft,Ie,Bt,Ut);const Vi=E(M);let xn=M.options.trimTrailingWhitespace!==!1,Jn=0;return Vi?R(Vi,an=>{if(Jn=Yt(an,It,ei,Ie,st),Ni)switch(Jn){case 2:Bt.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!1,Ut);break;case 1:Bt.getStart(k)===Ie.pos&&Ni.recomputeIndentation(!0,Ut);break;default:H.assert(Jn===0)}xn=xn&&!(an.action&16)&&an.flags!==1}):xn=xn&&Ie.kind!==1,st!==ei&&xn&&He(ei,st,It),Jn}function Be(Ie,st,Bt){const It=RLe(st,p);if(Bt)Ke(Ie,0,It);else{const ei=k.getLineAndCharacterOfPosition(Ie),ft=Mx(ei.line,k);(st!==We(ft,ei.character)||Ae(It,ft))&&Ke(ft,ei.character,It)}}function We(Ie,st){let Bt=0;for(let It=0;It0){const Fr=RLe(oa,p);Ke(Fi,Yu.character,Fr)}else je(Fi,Yu.character)}}function He(Ie,st,Bt){for(let It=Ie;Itft)continue;const Ut=Je(ei,ft);Ut!==-1&&(H.assert(Ut===ei||!Zg(k.text.charCodeAt(Ut-1))),je(Ut,ft+1-Ut))}}function Je(Ie,st){let Bt=st;for(;Bt>=Ie&&Zg(k.text.charCodeAt(Bt));)Bt--;return Bt!==st?Bt+1:-1}function mt(Ie){let st=j?j.end:t.pos;for(const Bt of Ie)gX(Bt.kind)&&(stIH(B,u)||u===B.end&&(B.kind===2||u===t.getFullWidth()))}function lQt(t,u){switch(t.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(t.typeParameters===u)return 30;if(t.parameters===u)return 21;break;case 213:case 214:if(t.typeArguments===u)return 30;if(t.arguments===u)return 21;break;case 263:case 231:case 264:case 265:if(t.typeParameters===u)return 30;break;case 183:case 215:case 186:case 233:case 205:if(t.typeArguments===u)return 30;break;case 187:return 19}return 0}function cQt(t){switch(t){case 21:return 22;case 30:return 32;case 19:return 20}return 0}function RLe(t,u){if((!Jpe||Jpe.tabSize!==u.tabSize||Jpe.indentSize!==u.indentSize)&&(Jpe={tabSize:u.tabSize,indentSize:u.indentSize},OK=jK=void 0),u.convertTabsToSpaces){let d;const f=Math.floor(t/u.indentSize),p=t%u.indentSize;return jK||(jK=[]),jK[f]===void 0?(d=WH(" ",u.indentSize*f),jK[f]=d):d=jK[f],p?d+WH(" ",p):d}else{const d=Math.floor(t/u.tabSize),f=t-d*u.tabSize;let p;return OK||(OK=[]),OK[d]===void 0?OK[d]=p=WH(" ",d):p=OK[d],f?p+WH(" ",f):p}}var Jpe,OK,jK,dQt=o({"src/services/formatting/formatting.ts"(){or(),VK()}}),fE,hQt=o({"src/services/formatting/smartIndenter.ts"(){or(),VK(),(t=>{let u;(De=>{De[De.Unknown=-1]="Unknown"})(u||(u={}));function s(De,He,Je,mt=!1){if(De>He.text.length)return v(Je);if(Je.indentStyle===0)return 0;const Ye=id(De,He,void 0,!0),je=Dct(He,De,Ye||null);if(je&&je.kind===3)return d(He,De,Je,je);if(!Ye)return v(Je);if(Qhe(Ye.kind)&&Ye.getStart(He)<=De&&De=0),Ye<=je)return fe(Mx(je,De),He,De,Je);const Ke=Mx(Ye,De),{column:Gt,character:Yt}=pe(Ke,He,De,Je);return Gt===0?Gt:De.text.charCodeAt(Ke+Yt)===42?Gt-1:Gt}function f(De,He,Je){let mt=He;for(;mt>0;){const je=De.text.charCodeAt(mt);if(!U3(je))break;mt--}const Ye=np(mt,De);return fe(Ye,mt,De,Je)}function p(De,He,Je,mt,Ye,je){let Ke,Gt=Je;for(;Gt;){if(Jhe(Gt,He,De)&&We(je,Gt,Ke,De,!0)){const Ie=j(Gt,De),st=z(Je,Gt,mt,De),Bt=st!==0?Ye&&st===2?je.indentSize:0:mt!==Ie.line?je.indentSize:0;return b(Gt,Ie,void 0,Bt,De,!0,je)}const Yt=ve(Gt,De,je,!0);if(Yt!==-1)return Yt;Ke=Gt,Gt=Gt.parent}return v(je)}function E(De,He,Je,mt){const Ye=Je.getLineAndCharacterOfPosition(De.getStart(Je));return b(De,Ye,He,0,Je,!1,mt)}t.getIndentationForNode=E;function v(De){return De.baseIndentSize||0}t.getBaseIndentation=v;function b(De,He,Je,mt,Ye,je,Ke){var Gt;let Yt=De.parent;for(;Yt;){let Ie=!0;if(Je){const ei=De.getStart(Ye);Ie=eiJe.end}const st=B(Yt,De,Ye),Bt=st.line===He.line||K(Yt,De,He.line,Ye);if(Ie){const ei=(Gt=se(De,Ye))==null?void 0:Gt[0],ft=!!ei&&j(ei,Ye).line>st.line;let Ut=ve(De,Ye,Ke,ft);if(Ut!==-1||(Ut=T(De,Yt,He,Bt,Ye,Ke),Ut!==-1))return Ut+mt}We(Ke,Yt,De,Ye,je)&&!Bt&&(mt+=Ke.indentSize);const It=J(Yt,De,He.line,Ye);De=Yt,Yt=De.parent,He=It?Ye.getLineAndCharacterOfPosition(De.getStart(Ye)):st}return mt+v(Ke)}function B(De,He,Je){const mt=se(He,Je),Ye=mt?mt.pos:De.getStart(Je);return Je.getLineAndCharacterOfPosition(Ye)}function k(De,He,Je){const mt=iSe(De);return mt&&mt.listItemIndex>0?Se(mt.list.getChildren(),mt.listItemIndex-1,He,Je):-1}function T(De,He,Je,mt,Ye,je){return(X1(De)||ej(De))&&(He.kind===312||!mt)?Ne(Je,Ye,je):-1}let M;(De=>{De[De.Unknown=0]="Unknown",De[De.OpenBrace=1]="OpenBrace",De[De.CloseBrace=2]="CloseBrace"})(M||(M={}));function z(De,He,Je,mt){const Ye=nb(De,He,mt);if(!Ye)return 0;if(Ye.kind===19)return 1;if(Ye.kind===20){const je=j(Ye,mt).line;return Je===je?2:0}return 0}function j(De,He){return He.getLineAndCharacterOfPosition(De.getStart(He))}function J(De,He,Je,mt){if(!(Mo(De)&&kt(De.arguments,He)))return!1;const Ye=De.expression.getEnd();return s0(mt,Ye).line===Je}t.isArgumentAndStartLineOverlapsExpressionBeingCalled=J;function K(De,He,Je,mt){if(De.kind===245&&De.elseStatement===He){const Ye=a0(De,93,mt);return H.assert(Ye!==void 0),j(Ye,mt).line===Je}return!1}t.childStartsOnTheSameLineWithElseInIfStatement=K;function Y(De,He,Je,mt){if(SB(De)&&(He===De.whenTrue||He===De.whenFalse)){const Ye=s0(mt,De.condition.end).line;if(He===De.whenTrue)return Je===Ye;{const je=j(De.whenTrue,mt).line,Ke=s0(mt,De.whenTrue.end).line;return Ye===je&&Ke===Je}}return!1}t.childIsUnindentedBranchOfConditionalExpression=Y;function oe(De,He,Je,mt){if(UE(De)){if(!De.arguments)return!1;const Ye=Le(De.arguments,Yt=>Yt.pos===He.pos);if(!Ye)return!1;const je=De.arguments.indexOf(Ye);if(je===0)return!1;const Ke=De.arguments[je-1],Gt=s0(mt,Ke.getEnd()).line;if(Je===Gt)return!0}return!1}t.argumentStartsOnSameLineAsPreviousArgument=oe;function se(De,He){return De.parent&&ae(De.getStart(He),De.getEnd(),De.parent,He)}t.getContainingList=se;function ge(De,He,Je){return He&&ae(De,De,He,Je)}function ae(De,He,Je,mt){switch(Je.kind){case 183:return Ye(Je.typeArguments);case 210:return Ye(Je.properties);case 209:return Ye(Je.elements);case 187:return Ye(Je.members);case 262:case 218:case 219:case 174:case 173:case 179:case 176:case 185:case 180:return Ye(Je.typeParameters)||Ye(Je.parameters);case 177:return Ye(Je.parameters);case 263:case 231:case 264:case 265:case 352:return Ye(Je.typeParameters);case 214:case 213:return Ye(Je.typeArguments)||Ye(Je.arguments);case 261:return Ye(Je.declarations);case 275:case 279:return Ye(Je.elements);case 206:case 207:return Ye(Je.elements)}function Ye(je){return je&&RH(Ce(Je,je,mt),De,He)?je:void 0}}function Ce(De,He,Je){const mt=De.getChildren(Je);for(let Ye=1;Ye=0&&He=0;Ke--){if(De[Ke].kind===28)continue;if(Je.getLineAndCharacterOfPosition(De[Ke].end).line!==je.line)return Ne(je,Je,mt);je=j(De[Ke],Je)}return-1}function Ne(De,He,Je){const mt=He.getPositionOfLineAndCharacter(De.line,0);return fe(mt,mt+De.character,He,Je)}function pe(De,He,Je,mt){let Ye=0,je=0;for(let Ke=De;KeCLe,FormattingRequestKind:()=>vLe,RuleAction:()=>yLe,RuleFlags:()=>kLe,SmartIndenter:()=>fE,anyContext:()=>Gee,createTextRangeWithKind:()=>Gpe,formatDocument:()=>tQt,formatNodeGivenIndentation:()=>sQt,formatOnClosingCurly:()=>eQt,formatOnEnter:()=>YYt,formatOnOpeningCurly:()=>XYt,formatOnSemicolon:()=>QYt,formatSelection:()=>iQt,getAllRules:()=>Ult,getFormatContext:()=>HYt,getFormattingScanner:()=>bLe,getIndentationString:()=>RLe,getRangeOfEnclosingComment:()=>Dct});var VK=o({"src/services/_namespaces/ts.formatting.ts"(){sYt(),lYt(),cYt(),VYt(),ZYt(),dQt(),hQt()}}),or=o({"src/services/_namespaces/ts.ts"(){Bo(),wH(),BIt(),eRt(),uRt(),Qit(),gRt(),ERt(),yRt(),PRt(),MRt(),IRt(),GRt(),JRt(),hHt(),fHt(),gHt(),zHt(),RHt(),as(),RTe(),nlt(),rqt(),cqt(),Aqt(),Cnt(),Knt(),Uqt(),iZt(),l_(),cZt(),IZt(),GZt(),qZt(),oYt(),VK()}});function fQt(){return Cct??(Cct=new Np(_))}function xct(t,u,s,d,f){let p=u?"DeprecationError: ":"DeprecationWarning: ";return p+=`'${t}' `,p+=d?`has been deprecated since v${d}`:"is deprecated",p+=u?" and can no longer be used.":s?` and will no longer be usable after v${s}.`:".",p+=f?` ${t3(f,[t])}`:"",p}function mQt(t,u,s,d){const f=xct(t,!0,u,s,d);return()=>{throw new TypeError(f)}}function pQt(t,u,s,d){let f=!1;return()=>{vct&&!f&&(H.log.warn(xct(t,!1,u,s,d)),f=!0)}}function gQt(t,u={}){const s=typeof u.typeScriptVersion=="string"?new Np(u.typeScriptVersion):u.typeScriptVersion??fQt(),d=typeof u.errorAfter=="string"?new Np(u.errorAfter):u.errorAfter,f=typeof u.warnAfter=="string"?new Np(u.warnAfter):u.warnAfter,p=typeof u.since=="string"?new Np(u.since):u.since??f,E=u.error||d&&s.compareTo(d)>=0,v=!f||s.compareTo(f)>=0;return E?mQt(t,d,p,u.message):v?pQt(t,d,p,u.message):Rs}function EQt(t,u){return function(){return t(),u.apply(this,arguments)}}function OLe(t,u){const s=gQt((u==null?void 0:u.name)??H.getFunctionName(t),u);return EQt(s,t)}var vct,Cct,bct=o({"src/deprecatedCompat/deprecate.ts"(){Upe(),vct=!0}});function $pe(t,u,s,d){if(Object.defineProperty(p,"name",{...Object.getOwnPropertyDescriptor(p,"name"),value:t}),d)for(const E of Object.keys(d)){const v=+E;!isNaN(v)&&Eu(u,`${v}`)&&(u[v]=OLe(u[v],{...d[v],name:t}))}const f=_Qt(u,s);return p;function p(...E){const v=f(E),b=v!==void 0?u[v]:void 0;if(typeof b=="function")return b(...E);throw new TypeError("Invalid arguments")}}function _Qt(t,u){return s=>{for(let d=0;Eu(t,`${d}`)&&Eu(u,`${d}`);d++){const f=u[d];if(f(s))return d}}}function yct(t){return{overload:u=>({bind:s=>({finish:()=>$pe(t,u,s),deprecate:d=>({finish:()=>$pe(t,u,s,d)})})})}}var DQt=o({"src/deprecatedCompat/deprecations.ts"(){Upe(),bct()}}),xQt=o({"src/deprecatedCompat/5.0/identifierProperties.ts"(){Upe(),bct(),uke(t=>{const u=t.getIdentifierConstructor();Eu(u.prototype,"originalKeywordKind")||Object.defineProperty(u.prototype,"originalKeywordKind",{get:OLe(function(){return xv(this)},{name:"originalKeywordKind",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use 'identifierToKeywordKind(identifier)' instead."})}),Eu(u.prototype,"isInJSDocNamespace")||Object.defineProperty(u.prototype,"isInJSDocNamespace",{get:OLe(function(){return this.flags&4096?!0:void 0},{name:"isInJSDocNamespace",since:"5.0",warnAfter:"5.1",errorAfter:"5.2",message:"Use '.parent' or the surrounding context to determine this instead."})})})}}),Upe=o({"src/deprecatedCompat/_namespaces/ts.ts"(){Bo(),DQt(),xQt()}}),vQt=o({"src/typingsInstallerCore/_namespaces/ts.ts"(){Bo(),wH(),VLe()}});function kct(t,u,s,d){try{const f=WB(u,hr(t,"index.d.ts"),{moduleResolution:2},s);return f.resolvedModule&&f.resolvedModule.resolvedFileName}catch(f){d.isEnabled()&&d.writeLine(`Failed to resolve ${u} in folder '${t}': ${f.message}`);return}}function CQt(t,u,s,d){let f=!1;for(let p=s.length;p>0;){const E=Fct(t,u,s,p);p=E.remaining,f=d(E.command)||f}return f}function Fct(t,u,s,d){const f=s.length-d;let p,E=d;for(;p=`${t} install --ignore-scripts ${(E===s.length?s:s.slice(f,f+E)).join(" ")} --save-dev --user-agent="typesInstaller/${u}"`,!(p.length<8e3);)E=E-Math.floor(E/2);return{command:p,remaining:d-E}}function Act(t){return`@types/${t}@ts${g}`}var Sct,Bct,bQt=o({"src/typingsInstallerCore/typingsInstaller.ts"(){vQt(),VLe(),Sct={isEnabled:()=>!1,writeLine:Rs},Bct=class{constructor(t,u,s,d,f,p=Sct){this.installTypingHost=t,this.globalCachePath=u,this.safeListPath=s,this.typesMapLocation=d,this.throttleLimit=f,this.log=p,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 '${u}', safe file path '${s}', types map path ${d}`),this.processCacheLocation(this.globalCachePath)}closeProject(t){this.closeWatchers(t.projectName)}closeWatchers(t){if(this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}'`),!this.projectWatchers.get(t)){this.log.isEnabled()&&this.log.writeLine(`No watchers are registered for project '${t}'`);return}this.projectWatchers.delete(t),this.sendResponse({kind:BH,projectName:t,files:[]}),this.log.isEnabled()&&this.log.writeLine(`Closing file watchers for project '${t}' - done.`)}install(t){this.log.isEnabled()&&this.log.writeLine(`Got install request${nw(t)}`),t.cachePath&&(this.log.isEnabled()&&this.log.writeLine(`Request specifies cache path '${t.cachePath}', loading cached information...`),this.processCacheLocation(t.cachePath)),this.safeList===void 0&&this.initializeSafeList();const u=s3.discoverTypings(this.installTypingHost,this.log.isEnabled()?s=>this.log.writeLine(s):void 0,t.fileNames,t.projectRootPath,this.safeList,this.packageNameToTypingLocation,t.typeAcquisition,t.unresolvedImports,this.typesRegistry,t.compilerOptions);this.watchFiles(t.projectName,u.filesToWatch),u.newTypingNames.length?this.installTypings(t,t.cachePath||this.globalCachePath,u.cachedTypingPaths,u.newTypingNames):(this.sendResponse(this.createSetTypings(t,u.cachedTypingPaths)),this.log.isEnabled()&&this.log.writeLine("No new typings were requested as a result of typings discovery"))}initializeSafeList(){if(this.typesMapLocation){const t=s3.loadTypesMap(this.installTypingHost,this.typesMapLocation);if(t){this.log.writeLine(`Loaded safelist from types map file '${this.typesMapLocation}'`),this.safeList=t;return}this.log.writeLine(`Failed to load safelist from types map file '${this.typesMapLocation}'`)}this.safeList=s3.loadSafeList(this.installTypingHost,this.safeListPath)}processCacheLocation(t){if(this.log.isEnabled()&&this.log.writeLine(`Processing cache location '${t}'`),this.knownCachesSet.has(t)){this.log.isEnabled()&&this.log.writeLine("Cache location was already processed...");return}const u=hr(t,"package.json"),s=hr(t,"package-lock.json");if(this.log.isEnabled()&&this.log.writeLine(`Trying to find '${u}'...`),this.installTypingHost.fileExists(u)&&this.installTypingHost.fileExists(s)){const d=JSON.parse(this.installTypingHost.readFile(u)),f=JSON.parse(this.installTypingHost.readFile(s));if(this.log.isEnabled()&&(this.log.writeLine(`Loaded content of '${u}':${nw(d)}`),this.log.writeLine(`Loaded content of '${s}':${nw(f)}`)),d.devDependencies&&f.dependencies)for(const p in d.devDependencies){if(!Eu(f.dependencies,p))continue;const E=Bc(p);if(!E)continue;const v=kct(t,E,this.installTypingHost,this.log);if(!v){this.missingTypingsSet.add(E);continue}const b=this.packageNameToTypingLocation.get(E);if(b){if(b.typingLocation===v)continue;this.log.isEnabled()&&this.log.writeLine(`New typing for package ${E} from '${v}' conflicts with existing typing file '${b}'`)}this.log.isEnabled()&&this.log.writeLine(`Adding entry into typings cache: '${E}' => '${v}'`);const B=uo(f.dependencies,p),k=B&&B.version;if(!k)continue;const T={typingLocation:v,version:new Np(k)};this.packageNameToTypingLocation.set(E,T)}}this.log.isEnabled()&&this.log.writeLine(`Finished processing cache location '${t}'`),this.knownCachesSet.add(t)}filterTypings(t){return qi(t,u=>{const s=JB(u);if(this.missingTypingsSet.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' is in missingTypingsSet - skipping...`);return}const d=s3.validatePackageName(u);if(d!==s3.NameValidationResult.Ok){this.missingTypingsSet.add(s),this.log.isEnabled()&&this.log.writeLine(s3.renderPackageNameValidationFailure(d,u));return}if(!this.typesRegistry.has(s)){this.log.isEnabled()&&this.log.writeLine(`'${u}':: Entry for package '${s}' does not exist in local types registry - skipping...`);return}if(this.packageNameToTypingLocation.get(s)&&s3.isTypingUpToDate(this.packageNameToTypingLocation.get(s),this.typesRegistry.get(s))){this.log.isEnabled()&&this.log.writeLine(`'${u}':: '${s}' already has an up-to-date typing - skipping...`);return}return s})}ensurePackageDirectoryExists(t){const u=hr(t,"package.json");this.log.isEnabled()&&this.log.writeLine(`Npm config file: ${u}`),this.installTypingHost.fileExists(u)||(this.log.isEnabled()&&this.log.writeLine(`Npm config file: '${u}' is missing, creating new one...`),this.ensureDirectoryExists(t,this.installTypingHost),this.installTypingHost.writeFile(u,'{ "private": true }'))}installTypings(t,u,s,d){this.log.isEnabled()&&this.log.writeLine(`Installing typings ${JSON.stringify(d)}`);const f=this.filterTypings(d);if(f.length===0){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(t,s));return}this.ensurePackageDirectoryExists(u);const p=this.installRunCount;this.installRunCount++,this.sendResponse({kind:mhe,eventId:p,typingsInstallerVersion:_,projectName:t.projectName});const E=f.map(Act);this.installTypingsAsync(p,E,u,v=>{try{if(!v){this.log.isEnabled()&&this.log.writeLine(`install request failed, marking packages as missing to prevent repeated requests: ${JSON.stringify(f)}`);for(const B of f)this.missingTypingsSet.add(B);return}this.log.isEnabled()&&this.log.writeLine(`Installed typings ${JSON.stringify(E)}`);const b=[];for(const B of f){const k=kct(u,B,this.installTypingHost,this.log);if(!k){this.missingTypingsSet.add(B);continue}const T=this.typesRegistry.get(B),M=new Np(T[`ts${g}`]||T[this.latestDistTag]),z={typingLocation:k,version:M};this.packageNameToTypingLocation.set(B,z),b.push(k)}this.log.isEnabled()&&this.log.writeLine(`Installed typing files ${JSON.stringify(b)}`),this.sendResponse(this.createSetTypings(t,s.concat(b)))}finally{const b={kind:phe,eventId:p,projectName:t.projectName,packagesToInstall:E,installSuccess:v,typingsInstallerVersion:_};this.sendResponse(b)}})}ensureDirectoryExists(t,u){const s=dr(t);u.directoryExists(s)||this.ensureDirectoryExists(s,u),u.directoryExists(t)||u.createDirectory(t)}watchFiles(t,u){if(!u.length){this.closeWatchers(t);return}const s=this.projectWatchers.get(t),d=new Set(u);!s||q_(d,f=>!s.has(f))||q_(s,f=>!d.has(f))?(this.projectWatchers.set(t,d),this.sendResponse({kind:BH,projectName:t,files:u})):this.sendResponse({kind:BH,projectName:t,files:void 0})}createSetTypings(t,u){return{projectName:t.projectName,typeAcquisition:t.typeAcquisition,compilerOptions:t.compilerOptions,typings:u,unresolvedImports:t.unresolvedImports,kind:QQ}}installTypingsAsync(t,u,s,d){this.pendingRunRequests.unshift({requestId:t,packageNames:u,cwd:s,onRequestCompleted:d}),this.executeWithThrottling()}executeWithThrottling(){for(;this.inFlightRequestCount{this.inFlightRequestCount--,t.onRequestCompleted(u),this.executeWithThrottling()})}}}}}),jLe={};h(jLe,{TypingsInstaller:()=>Bct,getNpmCommandForInstallation:()=>Fct,installNpmPackages:()=>CQt,typingsName:()=>Act});var yQt=o({"src/typingsInstallerCore/_namespaces/ts.server.typingsInstaller.ts"(){bQt()}}),VLe=o({"src/typingsInstallerCore/_namespaces/ts.server.ts"(){eX(),yQt()}}),kQt=o({"src/server/types.ts"(){}});function wct(t,u,s,d){return{projectName:t.getProjectName(),fileNames:t.getFileNames(!0,!0).concat(t.getExcludedFiles()),compilerOptions:t.getCompilationSettings(),typeAcquisition:u,unresolvedImports:s,projectRootPath:t.getCurrentDirectory(),cachePath:d,kind:"discover"}}function xl(t){return Uo(t)}function HK(t,u,s){const d=Pf(t)?t:qa(t,u);return s(d)}function Tct(t){return t}function Lct(){const t=new Map;return{get(u){return t.get(u)},set(u,s){t.set(u,s)},contains(u){return t.has(u)},remove(u){t.delete(u)}}}function HLe(t){return/dev\/null\/inferredProject\d+\*/.test(t)}function KLe(t){return`/dev/null/inferredProject${t}*`}function WLe(t){return`/dev/null/autoImportProviderProject${t}*`}function GLe(t){return`/dev/null/auxiliaryProject${t}*`}function JLe(){return[]}var qpe,qc,Zpe,v5,FQt=o({"src/server/utilitiesPublic.ts"(){eC(),qpe=(t=>(t[t.terse=0]="terse",t[t.normal=1]="normal",t[t.requestTime=2]="requestTime",t[t.verbose=3]="verbose",t))(qpe||{}),qc=JLe(),Zpe=(t=>(t.Err="Err",t.Info="Info",t.Perf="Perf",t))(Zpe||{}),(t=>{function u(){throw new Error("No Project.")}t.ThrowNoProject=u;function s(){throw new Error("The project's language service is disabled.")}t.ThrowProjectLanguageServiceDisabled=s;function d(f,p){throw new Error(`Project '${p.getProjectName()}' does not contain document '${f}'`)}t.ThrowProjectDoesNotContainDocument=d})(v5||(v5={}))}});function Ype(t){const u=Bc(t);return u==="tsconfig.json"||u==="jsconfig.json"?u:void 0}function Nct(t,u,s){if(!t||t.length===0)return;if(t[0]===u){t.splice(0,1);return}const d=Kl(t,u,ul,s);d>=0&&t.splice(d,1)}var Qpe,Xpe,AQt=o({"src/server/utilities.ts"(){eC(),_9(),Qpe=class J6t{constructor(u,s){this.host=u,this.pendingTimeouts=new Map,this.logger=s.hasLevel(3)?s:void 0}schedule(u,s,d){const f=this.pendingTimeouts.get(u);f&&this.host.clearTimeout(f),this.pendingTimeouts.set(u,this.host.setTimeout(J6t.run,s,u,this,d)),this.logger&&this.logger.info(`Scheduled: ${u}${f?", Cancelled earlier one":""}`)}cancel(u){const s=this.pendingTimeouts.get(u);return s?(this.host.clearTimeout(s),this.pendingTimeouts.delete(u)):!1}static run(u,s,d){var f,p;(f=mh)==null||f.logStartScheduledOperation(u),s.pendingTimeouts.delete(u),s.logger&&s.logger.info(`Running: ${u}`),d(),(p=mh)==null||p.logStopScheduledOperation()}},Xpe=class $6t{constructor(u,s,d){this.host=u,this.delay=s,this.logger=d}scheduleCollect(){!this.host.gc||this.timerId!==void 0||(this.timerId=this.host.setTimeout($6t.run,this.delay,this))}static run(u){var s,d;u.timerId=void 0,(s=mh)==null||s.logStartScheduledOperation("GC collect");const f=u.logger.hasLevel(2),p=f&&u.host.getMemoryUsage();if(u.host.gc(),f){const E=u.host.getMemoryUsage();u.logger.perftrc(`GC::before ${p}, after ${E}`)}(d=mh)==null||d.logStopScheduledOperation()}}}}),ege,$Le,ULe,qLe,ZLe,YLe,QLe,XLe,eNe,tNe,iNe,nNe,uNe,rNe,aNe=o({"src/server/protocol.ts"(){ege=(t=>(t.JsxClosingTag="jsxClosingTag",t.LinkedEditingRange="linkedEditingRange",t.Brace="brace",t.BraceFull="brace-full",t.BraceCompletion="braceCompletion",t.GetSpanOfEnclosingComment="getSpanOfEnclosingComment",t.Change="change",t.Close="close",t.Completions="completions",t.CompletionInfo="completionInfo",t.CompletionsFull="completions-full",t.CompletionDetails="completionEntryDetails",t.CompletionDetailsFull="completionEntryDetails-full",t.CompileOnSaveAffectedFileList="compileOnSaveAffectedFileList",t.CompileOnSaveEmitFile="compileOnSaveEmitFile",t.Configure="configure",t.Definition="definition",t.DefinitionFull="definition-full",t.DefinitionAndBoundSpan="definitionAndBoundSpan",t.DefinitionAndBoundSpanFull="definitionAndBoundSpan-full",t.Implementation="implementation",t.ImplementationFull="implementation-full",t.EmitOutput="emit-output",t.Exit="exit",t.FileReferences="fileReferences",t.FileReferencesFull="fileReferences-full",t.Format="format",t.Formatonkey="formatonkey",t.FormatFull="format-full",t.FormatonkeyFull="formatonkey-full",t.FormatRangeFull="formatRange-full",t.Geterr="geterr",t.GeterrForProject="geterrForProject",t.SemanticDiagnosticsSync="semanticDiagnosticsSync",t.SyntacticDiagnosticsSync="syntacticDiagnosticsSync",t.SuggestionDiagnosticsSync="suggestionDiagnosticsSync",t.NavBar="navbar",t.NavBarFull="navbar-full",t.Navto="navto",t.NavtoFull="navto-full",t.NavTree="navtree",t.NavTreeFull="navtree-full",t.DocumentHighlights="documentHighlights",t.DocumentHighlightsFull="documentHighlights-full",t.Open="open",t.Quickinfo="quickinfo",t.QuickinfoFull="quickinfo-full",t.References="references",t.ReferencesFull="references-full",t.Reload="reload",t.Rename="rename",t.RenameInfoFull="rename-full",t.RenameLocationsFull="renameLocations-full",t.Saveto="saveto",t.SignatureHelp="signatureHelp",t.SignatureHelpFull="signatureHelp-full",t.FindSourceDefinition="findSourceDefinition",t.Status="status",t.TypeDefinition="typeDefinition",t.ProjectInfo="projectInfo",t.ReloadProjects="reloadProjects",t.Unknown="unknown",t.OpenExternalProject="openExternalProject",t.OpenExternalProjects="openExternalProjects",t.CloseExternalProject="closeExternalProject",t.SynchronizeProjectList="synchronizeProjectList",t.ApplyChangedToOpenFiles="applyChangedToOpenFiles",t.UpdateOpen="updateOpen",t.EncodedSyntacticClassificationsFull="encodedSyntacticClassifications-full",t.EncodedSemanticClassificationsFull="encodedSemanticClassifications-full",t.Cleanup="cleanup",t.GetOutliningSpans="getOutliningSpans",t.GetOutliningSpansFull="outliningSpans",t.TodoComments="todoComments",t.Indentation="indentation",t.DocCommentTemplate="docCommentTemplate",t.CompilerOptionsDiagnosticsFull="compilerOptionsDiagnostics-full",t.NameOrDottedNameSpan="nameOrDottedNameSpan",t.BreakpointStatement="breakpointStatement",t.CompilerOptionsForInferredProjects="compilerOptionsForInferredProjects",t.GetCodeFixes="getCodeFixes",t.GetCodeFixesFull="getCodeFixes-full",t.GetCombinedCodeFix="getCombinedCodeFix",t.GetCombinedCodeFixFull="getCombinedCodeFix-full",t.ApplyCodeActionCommand="applyCodeActionCommand",t.GetSupportedCodeFixes="getSupportedCodeFixes",t.GetApplicableRefactors="getApplicableRefactors",t.GetEditsForRefactor="getEditsForRefactor",t.GetMoveToRefactoringFileSuggestions="getMoveToRefactoringFileSuggestions",t.GetEditsForRefactorFull="getEditsForRefactor-full",t.OrganizeImports="organizeImports",t.OrganizeImportsFull="organizeImports-full",t.GetEditsForFileRename="getEditsForFileRename",t.GetEditsForFileRenameFull="getEditsForFileRename-full",t.ConfigurePlugin="configurePlugin",t.SelectionRange="selectionRange",t.SelectionRangeFull="selectionRange-full",t.ToggleLineComment="toggleLineComment",t.ToggleLineCommentFull="toggleLineComment-full",t.ToggleMultilineComment="toggleMultilineComment",t.ToggleMultilineCommentFull="toggleMultilineComment-full",t.CommentSelection="commentSelection",t.CommentSelectionFull="commentSelection-full",t.UncommentSelection="uncommentSelection",t.UncommentSelectionFull="uncommentSelection-full",t.PrepareCallHierarchy="prepareCallHierarchy",t.ProvideCallHierarchyIncomingCalls="provideCallHierarchyIncomingCalls",t.ProvideCallHierarchyOutgoingCalls="provideCallHierarchyOutgoingCalls",t.ProvideInlayHints="provideInlayHints",t.WatchChange="watchChange",t))(ege||{}),$Le=(t=>(t.All="All",t.SortAndCombine="SortAndCombine",t.RemoveUnused="RemoveUnused",t))($Le||{}),ULe=(t=>(t.FixedPollingInterval="FixedPollingInterval",t.PriorityPollingInterval="PriorityPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t.UseFsEvents="UseFsEvents",t.UseFsEventsOnParentDirectory="UseFsEventsOnParentDirectory",t))(ULe||{}),qLe=(t=>(t.UseFsEvents="UseFsEvents",t.FixedPollingInterval="FixedPollingInterval",t.DynamicPriorityPolling="DynamicPriorityPolling",t.FixedChunkSizePolling="FixedChunkSizePolling",t))(qLe||{}),ZLe=(t=>(t.FixedInterval="FixedInterval",t.PriorityInterval="PriorityInterval",t.DynamicPriority="DynamicPriority",t.FixedChunkSize="FixedChunkSize",t))(ZLe||{}),YLe=(t=>(t[t.Invoked=1]="Invoked",t[t.TriggerCharacter=2]="TriggerCharacter",t[t.TriggerForIncompleteCompletions=3]="TriggerForIncompleteCompletions",t))(YLe||{}),QLe=(t=>(t.None="None",t.Block="Block",t.Smart="Smart",t))(QLe||{}),XLe=(t=>(t.Ignore="ignore",t.Insert="insert",t.Remove="remove",t))(XLe||{}),eNe=(t=>(t.None="None",t.Preserve="Preserve",t.ReactNative="ReactNative",t.React="React",t))(eNe||{}),tNe=(t=>(t.None="None",t.CommonJS="CommonJS",t.AMD="AMD",t.UMD="UMD",t.System="System",t.ES6="ES6",t.ES2015="ES2015",t.ESNext="ESNext",t))(tNe||{}),iNe=(t=>(t.Classic="Classic",t.Node="Node",t))(iNe||{}),nNe=(t=>(t.Crlf="Crlf",t.Lf="Lf",t))(nNe||{}),uNe=(t=>(t.ES3="ES3",t.ES5="ES5",t.ES6="ES6",t.ES2015="ES2015",t.ES2016="ES2016",t.ES2017="ES2017",t.ES2018="ES2018",t.ES2019="ES2019",t.ES2020="ES2020",t.ES2021="ES2021",t.ES2022="ES2022",t.ESNext="ESNext",t))(uNe||{}),rNe=(t=>(t[t.comment=1]="comment",t[t.identifier=2]="identifier",t[t.keyword=3]="keyword",t[t.numericLiteral=4]="numericLiteral",t[t.operator=5]="operator",t[t.stringLiteral=6]="stringLiteral",t[t.regularExpressionLiteral=7]="regularExpressionLiteral",t[t.whiteSpace=8]="whiteSpace",t[t.text=9]="text",t[t.punctuation=10]="punctuation",t[t.className=11]="className",t[t.enumName=12]="enumName",t[t.interfaceName=13]="interfaceName",t[t.moduleName=14]="moduleName",t[t.typeParameterName=15]="typeParameterName",t[t.typeAliasName=16]="typeAliasName",t[t.parameterName=17]="parameterName",t[t.docCommentTagName=18]="docCommentTagName",t[t.jsxOpenTagName=19]="jsxOpenTagName",t[t.jsxCloseTagName=20]="jsxCloseTagName",t[t.jsxSelfClosingTagName=21]="jsxSelfClosingTagName",t[t.jsxAttribute=22]="jsxAttribute",t[t.jsxText=23]="jsxText",t[t.jsxAttributeStringLiteralValue=24]="jsxAttributeStringLiteralValue",t[t.bigintLiteral=25]="bigintLiteral",t))(rNe||{})}}),oNe={};h(oNe,{ClassificationType:()=>rNe,CommandTypes:()=>ege,CompletionTriggerKind:()=>YLe,IndentStyle:()=>QLe,JsxEmit:()=>eNe,ModuleKind:()=>tNe,ModuleResolutionKind:()=>iNe,NewLineKind:()=>nNe,OrganizeImportsMode:()=>$Le,PollingWatchKind:()=>ZLe,ScriptTarget:()=>uNe,SemicolonPreference:()=>XLe,WatchDirectoryKind:()=>qLe,WatchFileKind:()=>ULe});var SQt=o({"src/server/_namespaces/ts.server.protocol.ts"(){aNe()}});function KK(t){return t[0]==="^"||(t.includes("walkThroughSnippet:/")||t.includes("untitled:/"))&&Bc(t)[0]==="^"||t.includes(":^")&&!t.includes(ol)}function Pct(t){return!t||GK(t)?v5.ThrowNoProject():t}function BQt(t){H.assert(typeof t=="number",`Expected position ${t} to be a number.`),H.assert(t>=0,"Expected position to be non-negative.")}function wQt(t){H.assert(typeof t.line=="number",`Expected line ${t.line} to be a number.`),H.assert(typeof t.offset=="number",`Expected offset ${t.offset} to be a number.`),H.assert(t.line>0,`Expected line to be non-${t.line===0?"zero":"negative"}`),H.assert(t.offset>0,`Expected offset to be non-${t.offset===0?"zero":"negative"}`)}var tge,ige,TQt=o({"src/server/scriptInfo.ts"(){eC(),_9(),tge=class{constructor(t,u,s){this.host=t,this.info=u,this.isOpen=!1,this.ownFileText=!1,this.pendingReloadFromDisk=!1,this.version=s||0}getVersion(){return this.svc?`SVC-${this.version}-${this.svc.getSnapshotVersion()}`:`Text-${this.version}`}hasScriptVersionCache_TestOnly(){return this.svc!==void 0}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(t){this.svc=void 0,this.text=t,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo(),this.version++}edit(t,u,s){this.switchToScriptVersionCache().edit(t,u-t,s),this.ownFileText=!1,this.text=void 0,this.textSnapshot=void 0,this.lineMap=void 0,this.fileSize=void 0,this.resetSourceMapInfo()}reload(t){return H.assert(t!==void 0),this.pendingReloadFromDisk=!1,!this.text&&this.svc&&(this.text=aw(this.svc.getSnapshot())),this.text!==t?(this.useText(t),this.ownFileText=!1,!0):!1}reloadWithFileText(t){const{text:u,fileSize:s}=t||!this.info.isDynamicOrHasMixedContent()?this.getFileTextAndSize(t):{text:"",fileSize:void 0},d=this.reload(u);return this.fileSize=s,this.ownFileText=!t||t===this.info.fileName,d}scheduleReloadIfNeeded(){return!this.pendingReloadFromDisk&&!this.ownFileText?this.pendingReloadFromDisk=!0:!1}delayReloadFromFileIntoText(){this.pendingReloadFromDisk=!0}getTelemetryFileSize(){return this.fileSize?this.fileSize:this.text?this.text.length:this.svc?this.svc.getSnapshot().getLength():this.getSnapshot().getLength()}getSnapshot(){var t;return((t=this.tryUseScriptVersionCache())==null?void 0:t.getSnapshot())||(this.textSnapshot??(this.textSnapshot=iX.fromString(H.checkDefined(this.text))))}getAbsolutePositionAndLineText(t){const u=this.tryUseScriptVersionCache();if(u)return u.getAbsolutePositionAndLineText(t);const s=this.getLineMap();return t<=s.length?{absolutePosition:s[t-1],lineText:this.text.substring(s[t-1],s[t])}:{absolutePosition:this.text.length,lineText:void 0}}lineToTextSpan(t){const u=this.tryUseScriptVersionCache();if(u)return u.lineToTextSpan(t);const s=this.getLineMap(),d=s[t],f=t+1u===void 0?u=this.host.readFile(s)||"":u;if(!mk(this.info.fileName)){const f=this.host.getFileSize?this.host.getFileSize(s):d().length;if(f>ite)return H.assert(!!this.info.containingProjects.length),this.info.containingProjects[0].projectService.logger.info(`Skipped loading contents of large file ${s} for info ${this.info.fileName}: fileSize: ${f}`),this.info.containingProjects[0].projectService.sendLargeFileReferencedEvent(s,f),{text:"",fileSize:f}}return{text:d()}}switchToScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&(this.svc=pte.fromString(this.getOrLoadText()),this.textSnapshot=void 0,this.version++),this.svc}tryUseScriptVersionCache(){return(!this.svc||this.pendingReloadFromDisk)&&this.getOrLoadText(),this.isOpen?(!this.svc&&!this.textSnapshot&&(this.svc=pte.fromString(H.checkDefined(this.text)),this.textSnapshot=void 0),this.svc):this.svc}getOrLoadText(){return(this.text===void 0||this.pendingReloadFromDisk)&&(H.assert(!this.svc||this.pendingReloadFromDisk,"ScriptVersionCache should not be set when reloading from disk"),this.reloadWithFileText()),this.text}getLineMap(){return H.assert(!this.svc,"ScriptVersionCache should not be set"),this.lineMap||(this.lineMap=n7(H.checkDefined(this.text)))}getLineInfo(){const t=this.tryUseScriptVersionCache();if(t)return{getLineCount:()=>t.getLineCount(),getLineText:s=>t.getAbsolutePositionAndLineText(s+1).lineText};const u=this.getLineMap();return Gde(this.text,u)}},ige=class{constructor(t,u,s,d,f,p){this.host=t,this.fileName=u,this.scriptKind=s,this.hasMixedContent=d,this.path=f,this.containingProjects=[],this.isDynamic=KK(u),this.textStorage=new tge(t,this,p),(d||this.isDynamic)&&(this.realpath=this.path),this.scriptKind=s||cZ(u)}isDynamicOrHasMixedContent(){return this.hasMixedContent||this.isDynamic}isScriptOpen(){return this.textStorage.isOpen}open(t){this.textStorage.isOpen=!0,t!==void 0&&this.textStorage.reload(t)&&this.markContainingProjectsAsDirty()}close(t=!0){this.textStorage.isOpen=!1,t&&this.textStorage.scheduleReloadIfNeeded()&&this.markContainingProjectsAsDirty()}getSnapshot(){return this.textStorage.getSnapshot()}ensureRealPath(){if(this.realpath===void 0&&(this.realpath=this.path,this.host.realpath)){H.assert(!!this.containingProjects.length);const t=this.containingProjects[0],u=this.host.realpath(this.path);u&&(this.realpath=t.toPath(u),this.realpath!==this.path&&t.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(t){const u=!this.isAttached(t);return u&&(this.containingProjects.push(t),t.getCompilerOptions().preserveSymlinks||this.ensureRealPath(),t.onFileAddedOrRemoved(this.isSymlink())),u}isAttached(t){switch(this.containingProjects.length){case 0:return!1;case 1:return this.containingProjects[0]===t;case 2:return this.containingProjects[0]===t||this.containingProjects[1]===t;default:return kt(this.containingProjects,t)}}detachFromProject(t){switch(this.containingProjects.length){case 0:return;case 1:this.containingProjects[0]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;case 2:this.containingProjects[0]===t?(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects[0]=this.containingProjects.pop()):this.containingProjects[1]===t&&(t.onFileAddedOrRemoved(this.isSymlink()),this.containingProjects.pop());break;default:Vy(this.containingProjects,t)&&t.onFileAddedOrRemoved(this.isSymlink());break}}detachAllProjects(){for(const t of this.containingProjects){Xv(t)&&t.getCachedDirectoryStructureHost().addOrDeleteFile(this.fileName,this.path,2);const u=t.getRootFilesMap().get(this.path);t.removeFile(this,!1,!1),t.onFileAddedOrRemoved(this.isSymlink()),u&&!Aw(t)&&t.addMissingFileRoot(u.fileName)}gu(this.containingProjects)}getDefaultProject(){switch(this.containingProjects.length){case 0:return v5.ThrowNoProject();case 1:return Pct(this.containingProjects[0]);default:let t,u,s,d,f;for(let p=0;p!t.isOrphan())}isContainedByBackgroundProject(){return Ge(this.containingProjects,GK)}lineToTextSpan(t){return this.textStorage.lineToTextSpan(t)}lineOffsetToPosition(t,u,s){return this.textStorage.lineOffsetToPosition(t,u,s)}positionToLineOffset(t){BQt(t);const u=this.textStorage.positionToLineOffset(t);return wQt(u),u}isJavaScript(){return this.scriptKind===1||this.scriptKind===2}closeSourceMapFileWatcher(){this.sourceMapFilePath&&!Ua(this.sourceMapFilePath)&&(Vm(this.sourceMapFilePath),this.sourceMapFilePath=void 0)}}}});function Mct(t,u){if(t===u||(t||qc).length===0&&(u||qc).length===0)return!0;const s=new Map;let d=0;for(const f of t)s.get(f)!==!0&&(s.set(f,!0),d++);for(const f of u){const p=s.get(f);if(p===void 0)return!1;p===!0&&(s.set(f,!1),d--)}return d===0}function LQt(t,u){return t.enable!==u.enable||!Mct(t.include,u.include)||!Mct(t.exclude,u.exclude)}function NQt(t,u){return wv(t)!==wv(u)}function PQt(t,u){return t===u?!1:!On(t,u)}var Yee,nge,MQt=o({"src/server/typingsCache.ts"(){eC(),_9(),Yee={isKnownTypesPackageName:cg,installPackage:fo,enqueueInstallTypingsRequest:Rs,attach:Rs,onProjectClosed:Rs,globalTypingsCacheLocation:void 0},nge=class{constructor(t){this.installer=t,this.perProjectCache=new Map}isKnownTypesPackageName(t){return this.installer.isKnownTypesPackageName(t)}installPackage(t){return this.installer.installPackage(t)}enqueueInstallTypingsForProject(t,u,s){const d=t.getTypeAcquisition();if(!d||!d.enable)return;const f=this.perProjectCache.get(t.getProjectName());(s||!f||LQt(d,f.typeAcquisition)||NQt(t.getCompilationSettings(),f.compilerOptions)||PQt(u,f.unresolvedImports))&&(this.perProjectCache.set(t.getProjectName(),{compilerOptions:t.getCompilationSettings(),typeAcquisition:d,typings:f?f.typings:qc,unresolvedImports:u,poisoned:!0}),this.installer.enqueueInstallTypingsRequest(t,d,u))}updateTypingsForProject(t,u,s,d,f){const p=Mh(f);return this.perProjectCache.set(t,{compilerOptions:u,typeAcquisition:s,typings:p,unresolvedImports:d,poisoned:!1}),!s||!s.enable?qc:p}onProjectClosed(t){this.perProjectCache.delete(t.getProjectName()),this.installer.onProjectClosed(t)}}}});function WK(t,u=!1){const s={js:0,jsSize:0,jsx:0,jsxSize:0,ts:0,tsSize:0,tsx:0,tsxSize:0,dts:0,dtsSize:0,deferred:0,deferredSize:0};for(const d of t){const f=u?d.textStorage.getTelemetryFileSize():0;switch(d.scriptKind){case 1:s.js+=1,s.jsSize+=f;break;case 2:s.jsx+=1,s.jsxSize+=f;break;case 3:t1(d.fileName)?(s.dts+=1,s.dtsSize+=f):(s.ts+=1,s.tsSize+=f);break;case 4:s.tsx+=1,s.tsxSize+=f;break;case 7:s.deferred+=1,s.deferredSize+=f;break}}return s}function zQt(t){const u=WK(t.getScriptInfos());return u.js>0&&u.ts===0&&u.tsx===0}function sNe(t){const u=WK(t.getRootScriptInfos());return u.ts===0&&u.tsx===0}function lNe(t){const u=WK(t.getScriptInfos());return u.ts===0&&u.tsx===0}function cNe(t){return!t.some(u=>Ml(u,".ts")&&!t1(u)||Ml(u,".tsx"))}function dNe(t){return t.generatedFilePath!==void 0}function IQt(t,u){var s,d;const f=t.getSourceFiles();(s=Gn)==null||s.push(Gn.Phase.Session,"getUnresolvedImports",{count:f.length});const p=t.getTypeChecker().getAmbientModules().map(v=>q4(v.getName())),E=pi(Vu(f,v=>RQt(t,v,p,u)));return(d=Gn)==null||d.pop(),E}function RQt(t,u,s,d){return _0(d,u.path,()=>{let f;return t.forEachResolvedModule(({resolvedModule:p},E)=>{(!p||!AP(p.extension))&&!Id(E)&&!s.some(v=>v===E)&&(f=Di(f,sH(E).packageName))},u),f||qc})}function Aw(t){return t.projectKind===0}function Xv(t){return t.projectKind===1}function uge(t){return t.projectKind===2}function GK(t){return t.projectKind===3||t.projectKind===4}var uz,Wk,rge,age,oge,sge,lge,Qee,OQt=o({"src/server/project.ts"(){eC(),eC(),_9(),uz=(t=>(t[t.Inferred=0]="Inferred",t[t.Configured=1]="Configured",t[t.External=2]="External",t[t.AutoImportProvider=3]="AutoImportProvider",t[t.Auxiliary=4]="Auxiliary",t))(uz||{}),Wk=class U6t{constructor(u,s,d,f,p,E,v,b,B,k,T){switch(this.projectKind=s,this.projectService=d,this.documentRegistry=f,this.compilerOptions=v,this.compileOnSaveEnabled=b,this.watchOptions=B,this.rootFiles=[],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=cg,this.dirty=!1,this.typingFiles=qc,this.moduleSpecifierCache=bNe(this),this.createHash=Lo(this.projectService.host,this.projectService.host.createHash),this.globalCacheResolutionModuleName=s3.nonRelativeModuleNameForTypingCache,this.projectName=u,this.directoryStructureHost=k,this.currentDirectory=this.projectService.getNormalizedAbsolutePath(T),this.getCanonicalFileName=this.projectService.toCanonicalFileName,this.jsDocParsingMode=this.projectService.jsDocParsingMode,this.cancellationToken=new Rme(this.projectService.cancellationToken,this.projectService.throttleWaitMilliseconds),this.compilerOptions?(p||wv(this.compilerOptions)||this.projectService.hasDeferredExtension())&&(this.compilerOptions.allowNonTsExtensions=!0):(this.compilerOptions=_ee(),this.compilerOptions.allowNonTsExtensions=!0,this.compilerOptions.allowJs=!0),d.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:H.assertNever(d.serverMode)}this.setInternalCompilerOptionsForEmittingJsFiles();const M=this.projectService.host;this.projectService.logger.loggingEnabled()?this.trace=z=>this.writeLog(z):M.trace&&(this.trace=z=>M.trace(z)),this.realpath=Lo(M,M.realpath),this.resolutionCache=q1e(this,this.currentDirectory,!0),this.languageService=aBe(this,this.documentRegistry,this.projectService.serverMode),E&&this.disableLanguageService(E),this.markAsDirty(),GK(this)||(this.projectService.pendingEnsureProjectForOpenFiles=!0),this.projectService.onProjectCreation(this)}getResolvedProjectReferenceToRedirect(u){}isNonTsProject(){return Jm(this),lNe(this)}isJsOnlyProject(){return Jm(this),zQt(this)}static resolveModule(u,s,d,f){return U6t.importServicePluginSync({name:u},[s],d,f).resolvedModule}static importServicePluginSync(u,s,d,f){H.assertIsDefined(d.require);let p,E;for(const v of s){const b=Z1(d.resolvePath(hr(v,"node_modules")));f(`Loading ${u.name} from ${v} (resolved to ${b})`);const B=d.require(b,u.name);if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to load module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}static async importServicePluginAsync(u,s,d,f){H.assertIsDefined(d.importPlugin);let p,E;for(const v of s){const b=hr(v,"node_modules");f(`Dynamically importing ${u.name} from ${v} (resolved to ${b})`);let B;try{B=await d.importPlugin(b,u.name)}catch(T){B={module:void 0,error:T}}if(!B.error){E=B.module;break}const k=B.error.stack||B.error.message||JSON.stringify(B.error);(p??(p=[])).push(`Failed to dynamically import module '${u.name}' from ${b}: ${k}`)}return{pluginConfigEntry:u,resolvedModule:E,errorLogs:p}}isKnownTypesPackageName(u){return this.typingsCache.isKnownTypesPackageName(u)}installPackage(u){return this.typingsCache.installPackage({...u,projectName:this.projectName,projectRootPath:this.toPath(this.currentDirectory)})}getGlobalTypingsCacheLocation(){return this.getGlobalCache()}get typingsCache(){return this.projectService.typingsCache}getSymlinkCache(){return this.symlinks||(this.symlinks=kle(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.rootFiles)return Dt;let u;return this.rootFilesMap.forEach(s=>{(this.languageServiceEnabled||s.info&&s.info.isScriptOpen())&&(u||(u=[])).push(s.fileName)}),yn(u,this.typingFiles)||Dt}getOrCreateScriptInfoAndAttachToProject(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);if(s){const d=this.rootFilesMap.get(s.path);d&&d.info!==s&&(this.rootFiles.push(s),d.info=s),s.attachToProject(this)}return s}getScriptKind(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&s.scriptKind}getScriptVersion(u){const s=this.projectService.getOrCreateScriptInfoNotOpenedByClient(u,this.currentDirectory,this.directoryStructureHost);return s&&s.getLatestVersion()}getScriptSnapshot(u){const s=this.getOrCreateScriptInfoAndAttachToProject(u);if(s)return s.getSnapshot()}getCancellationToken(){return this.cancellationToken}getCurrentDirectory(){return this.currentDirectory}getDefaultLibFileName(){const u=dr(Uo(this.projectService.getExecutingFilePath()));return hr(u,IO(this.compilerOptions))}useCaseSensitiveFileNames(){return this.projectService.host.useCaseSensitiveFileNames}readDirectory(u,s,d,f,p){return this.directoryStructureHost.readDirectory(u,s,d,f,p)}readFile(u){return this.projectService.host.readFile(u)}writeFile(u,s){return this.projectService.host.writeFile(u,s)}fileExists(u){const s=this.toPath(u);return!this.isWatchedMissingFile(s)&&this.directoryStructureHost.fileExists(u)}resolveModuleNameLiterals(u,s,d,f,p,E){return this.resolutionCache.resolveModuleNameLiterals(u,s,d,f,p,E)}getModuleResolutionCache(){return this.resolutionCache.getModuleResolutionCache()}resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E){return this.resolutionCache.resolveTypeReferenceDirectiveReferences(u,s,d,f,p,E)}resolveLibrary(u,s,d,f){return this.resolutionCache.resolveLibrary(u,s,d,f)}directoryExists(u){return this.directoryStructureHost.directoryExists(u)}getDirectories(u){return this.directoryStructureHost.getDirectories(u)}getCachedDirectoryStructureHost(){}toPath(u){return $0(u,this.currentDirectory,this.projectService.toCanonicalFileName)}watchDirectoryOfFailedLookupLocation(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.FailedLookupLocations,this)}watchAffectingFileLocation(u,s){return this.projectService.watchFactory.watchFile(u,s,2e3,this.projectService.getWatchOptions(this),cd.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(u,s,d){return this.projectService.watchFactory.watchDirectory(u,s,d,this.projectService.getWatchOptions(this),cd.TypeRoots,this)}hasChangedAutomaticTypeDirectiveNames(){return this.resolutionCache.hasChangedAutomaticTypeDirectiveNames()}onChangedAutomaticTypeDirectiveNames(){this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)}getGlobalCache(){return this.getTypeAcquisition().enable?this.projectService.typingsInstaller.globalTypingsCacheLocation:void 0}fileIsOpen(u){return this.projectService.openFiles.has(u)}writeLog(u){this.projectService.logger.info(u)}log(u){this.writeLog(u)}error(u){this.projectService.logger.msg(u,"Err")}setInternalCompilerOptionsForEmittingJsFiles(){(this.projectKind===0||this.projectKind===2)&&(this.compilerOptions.noEmitForJsFiles=!0)}getGlobalProjectErrors(){return ti(this.projectErrors,u=>!u.file)||qc}getAllProjectErrors(){return this.projectErrors||qc}setProjectErrors(u){this.projectErrors=u}getLanguageService(u=!0){return u&&Jm(this),this.languageService}getSourceMapper(){return this.getLanguageService().getSourceMapper()}clearSourceMapperCache(){this.languageService.clearSourceMapperCache()}getDocumentPositionMapper(u,s){return this.projectService.getDocumentPositionMapper(this,u,s)}getSourceFileLike(u){return this.projectService.getSourceFileLike(u,this)}shouldEmitFile(u){return u&&!u.isDynamicOrHasMixedContent()&&!this.program.isSourceOfProjectReferenceRedirect(u.path)}getCompileOnSaveAffectedFileList(u){return this.languageServiceEnabled?(Jm(this),this.builderState=Gp.create(this.program,this.builderState,!0),qi(Gp.getFilesAffectedBy(this.builderState,this.program,u.path,this.cancellationToken,this.projectService.host),s=>this.shouldEmitFile(this.projectService.getScriptInfoForPath(s.path))?s.fileName:void 0)):[]}emitFile(u,s){if(!this.languageServiceEnabled||!this.shouldEmitFile(u))return{emitSkipped:!0,diagnostics:qc};const{emitSkipped:d,diagnostics:f,outputFiles:p}=this.getLanguageService().getEmitOutput(u.fileName);if(!d){for(const E of p){const v=qa(E.name,this.currentDirectory);s(v,E.text,E.writeByteOrderMark)}if(this.builderState&&f4(this.compilerOptions)){const E=p.filter(v=>t1(v.name));if(E.length===1){const v=this.program.getSourceFile(u.fileName),b=this.projectService.host.createHash?this.projectService.host.createHash(E[0].text):SN(E[0].text);Gp.updateSignatureOfFile(this.builderState,b,v.resolvedPath)}}}return{emitSkipped:d,diagnostics:f}}enableLanguageService(){this.languageServiceEnabled||this.projectService.serverMode===2||(this.languageServiceEnabled=!0,this.lastFileExceededProgramSize=void 0,this.projectService.onUpdateLanguageServiceStateForProject(this,!0))}cleanupProgram(){if(this.program){for(const u of this.program.getSourceFiles())this.detachScriptInfoIfNotRoot(u.fileName);this.program.forEachResolvedProjectReference(u=>this.detachScriptInfoFromProject(u.sourceFile.fileName)),this.program=void 0}}disableLanguageService(u){this.languageServiceEnabled&&(H.assert(this.projectService.serverMode!==2),this.languageService.cleanupSemanticCache(),this.languageServiceEnabled=!1,this.cleanupProgram(),this.lastFileExceededProgramSize=u,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(u){return!u||!u.include?u:{...u,include:this.removeExistingTypings(u.include)}}getExternalFiles(u){return Mh(Vu(this.plugins,s=>{if(typeof s.module.getExternalFiles=="function")try{return s.module.getExternalFiles(this,u||0)}catch(d){this.projectService.logger.info(`A plugin threw an exception in getExternalFiles: ${d}`),d.stack&&this.projectService.logger.info(d.stack)}}))}getSourceFile(u){if(this.program)return this.program.getSourceFileByPath(u)}getSourceFileOrConfigFile(u){const s=this.program.getCompilerOptions();return u===s.configFilePath?s.configFile:this.getSourceFile(u)}close(){this.projectService.typingsCache.onProjectClosed(this),this.closeWatchingTypingLocations(),this.cleanupProgram(),L(this.externalFiles,u=>this.detachScriptInfoIfNotRoot(u));for(const u of this.rootFiles)u.detachFromProject(this);this.projectService.pendingEnsureProjectForOpenFiles=!0,this.rootFiles=void 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,this.moduleSpecifierCache=void 0,this.directoryStructureHost=void 0,this.exportMapCache=void 0,this.projectErrors=void 0,this.plugins.length=0,this.missingFilesMap&&(rf(this.missingFilesMap,fg),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(u){const s=this.projectService.getScriptInfo(u);s&&!this.isRoot(s)&&s.detachFromProject(this)}isClosed(){return this.rootFiles===void 0}hasRoots(){return this.rootFiles&&this.rootFiles.length>0}isOrphan(){return!1}getRootFiles(){return this.rootFiles&&this.rootFiles.map(u=>u.fileName)}getRootFilesMap(){return this.rootFilesMap}getRootScriptInfos(){return this.rootFiles}getScriptInfos(){return this.languageServiceEnabled?Vt(this.program.getSourceFiles(),u=>{const s=this.projectService.getScriptInfoForPath(u.resolvedPath);return H.assert(!!s,"getScriptInfo",()=>`scriptInfo for a file '${u.fileName}' Path: '${u.path}' / '${u.resolvedPath}' is missing.`),s}):this.rootFiles}getExcludedFiles(){return qc}getFileNames(u,s){if(!this.program)return[];if(!this.languageServiceEnabled){let f=this.getRootFiles();if(this.compilerOptions){const p=oBe(this.compilerOptions);p&&(f||(f=[])).push(p)}return f}const d=[];for(const f of this.program.getSourceFiles())u&&this.program.isSourceFileFromExternalLibrary(f)||d.push(f.fileName);if(!s){const f=this.program.getCompilerOptions().configFile;if(f&&(d.push(f.fileName),f.extendedSourceFiles))for(const p of f.extendedSourceFiles)d.push(p)}return d}getFileNamesWithRedirectInfo(u){return this.getFileNames().map(s=>({fileName:s,isSourceOfProjectReferenceRedirect:u&&this.isSourceOfProjectReferenceRedirect(s)}))}hasConfigFile(u){if(this.program&&this.languageServiceEnabled){const s=this.program.getCompilerOptions().configFile;if(s){if(u===s.fileName)return!0;if(s.extendedSourceFiles){for(const d of s.extendedSourceFiles)if(u===d)return!0}}}return!1}containsScriptInfo(u){if(this.isRoot(u))return!0;if(!this.program)return!1;const s=this.program.getSourceFileByPath(u.path);return!!s&&s.resolvedPath===u.path}containsFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(u);return d&&(d.isScriptOpen()||!s)?this.containsScriptInfo(d):!1}isRoot(u){var s;return this.rootFilesMap&&((s=this.rootFilesMap.get(u.path))==null?void 0:s.info)===u}addRoot(u,s){H.assert(!this.isRoot(u)),this.rootFiles.push(u),this.rootFilesMap.set(u.path,{fileName:s||u.fileName,info:u}),u.attachToProject(this),this.markAsDirty()}addMissingFileRoot(u){const s=this.projectService.toPath(u);this.rootFilesMap.set(s,{fileName:u}),this.markAsDirty()}removeFile(u,s,d){this.isRoot(u)&&this.removeRoot(u),s?this.resolutionCache.removeResolutionsOfFile(u.path):this.resolutionCache.invalidateResolutionOfFile(u.path),this.cachedUnresolvedImportsPerFile.delete(u.path),d&&u.detachFromProject(this),this.markAsDirty()}registerFileUpdate(u){(this.updatedFileNames||(this.updatedFileNames=new Set)).add(u)}markFileAsDirty(u){this.markAsDirty(),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.changedFilesForExportMapCache||(this.changedFilesForExportMapCache=new Set)).add(u)}markAsDirty(){this.dirty||(this.projectStateVersion++,this.dirty=!0)}onAutoImportProviderSettingsChanged(){var u;this.autoImportProviderHost===!1?this.autoImportProviderHost=void 0:(u=this.autoImportProviderHost)==null||u.markAsDirty()}onPackageJsonChange(u){var s;(s=this.packageJsonsForAutoImport)!=null&&s.has(u)&&(this.moduleSpecifierCache.clear(),this.autoImportProviderHost&&this.autoImportProviderHost.markAsDirty())}onFileAddedOrRemoved(u){this.hasAddedorRemovedFiles=!0,u&&(this.hasAddedOrRemovedSymlinks=!0)}onDiscoveredSymlink(){this.hasAddedOrRemovedSymlinks=!0}updateGraph(){var u,s,d,f,p;(u=Gn)==null||u.push(Gn.Phase.Session,"updateGraph",{name:this.projectName,kind:uz[this.projectKind]}),(s=mh)==null||s.logStartUpdateGraph(),this.resolutionCache.startRecordingFilesWithChangedResolutions();const E=this.updateGraphWorker(),v=this.hasAddedorRemovedFiles;this.hasAddedorRemovedFiles=!1,this.hasAddedOrRemovedSymlinks=!1;const b=this.resolutionCache.finishRecordingFilesWithChangedResolutions()||qc;for(const k of b)this.cachedUnresolvedImportsPerFile.delete(k);this.languageServiceEnabled&&this.projectService.serverMode===0?((E||b.length)&&(this.lastCachedUnresolvedImportsList=IQt(this.program,this.cachedUnresolvedImportsPerFile)),this.projectService.typingsCache.enqueueInstallTypingsForProject(this,this.lastCachedUnresolvedImportsList,v)):this.lastCachedUnresolvedImportsList=void 0;const B=this.projectProgramVersion===0&&E;return E&&this.projectProgramVersion++,v&&(this.autoImportProviderHost||(this.autoImportProviderHost=void 0),(d=this.autoImportProviderHost)==null||d.markAsDirty()),B&&this.getPackageJsonAutoImportProvider(),(f=mh)==null||f.logStopUpdateGraph(),(p=Gn)==null||p.pop(),!E}updateTypingFiles(u){iU(u,this.typingFiles,bN(!this.useCaseSensitiveFileNames()),Rs,s=>this.detachScriptInfoFromProject(s))&&(this.typingFiles=u,this.resolutionCache.setFilesWithInvalidatedNonRelativeUnresolvedImports(this.cachedUnresolvedImportsPerFile),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))}closeWatchingTypingLocations(){this.typingWatchers&&rf(this.typingWatchers,fg),this.typingWatchers=void 0}onTypingInstallerWatchInvoke(){this.typingWatchers.isInvoked=!0,this.projectService.updateTypingsForProject({projectName:this.getProjectName(),kind:XQ})}watchTypingLocations(u){if(!u){this.typingWatchers.isInvoked=!1;return}if(!u.length){this.closeWatchingTypingLocations();return}const s=new Map(this.typingWatchers);this.typingWatchers||(this.typingWatchers=new Map),this.typingWatchers.isInvoked=!1;const d=(f,p)=>{const E=this.toPath(f);s.delete(E),this.typingWatchers.has(E)||this.typingWatchers.set(E,p==="FileWatcher"?this.projectService.watchFactory.watchFile(f,()=>this.typingWatchers.isInvoked?this.writeLog("TypingWatchers already invoked"):this.onTypingInstallerWatchInvoke(),2e3,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationFile,this):this.projectService.watchFactory.watchDirectory(f,v=>{if(this.typingWatchers.isInvoked)return this.writeLog("TypingWatchers already invoked");if(!Ml(v,".json"))return this.writeLog("Ignoring files that are not *.json");if(gv(v,hr(this.projectService.typingsInstaller.globalTypingsCacheLocation,"package.json"),!this.useCaseSensitiveFileNames()))return this.writeLog("Ignoring package.json change at global typings location");this.onTypingInstallerWatchInvoke()},1,this.projectService.getWatchOptions(this),cd.TypingInstallerLocationDirectory,this))};for(const f of u){const p=Bc(f);if(p==="package.json"||p==="bower.json"){d(f,"FileWatcher");continue}if(JE(this.currentDirectory,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){const E=f.indexOf(ol,this.currentDirectory.length+1);d(E!==-1?f.substr(0,E):f,"DirectoryWatcher");continue}if(JE(this.projectService.typingsInstaller.globalTypingsCacheLocation,f,this.currentDirectory,!this.useCaseSensitiveFileNames())){d(this.projectService.typingsInstaller.globalTypingsCacheLocation,"DirectoryWatcher");continue}d(f,"DirectoryWatcher")}s.forEach((f,p)=>{f.close(),this.typingWatchers.delete(p)})}getCurrentProgram(){return this.program}removeExistingTypings(u){const s=KY(this.getCompilerOptions(),this.directoryStructureHost);return u.filter(d=>!s.includes(d))}updateGraphWorker(){var u,s;const d=this.languageService.getCurrentProgram();H.assert(d===this.program),H.assert(!this.isClosed(),"Called update graph worker of closed project"),this.writeLog(`Starting updateGraphWorker: Project: ${this.getProjectName()}`);const f=J0(),{hasInvalidatedResolutions:p,hasInvalidatedLibResolutions:E}=this.resolutionCache.createHasInvalidatedResolutions(cg,cg);this.hasInvalidatedResolutions=p,this.hasInvalidatedLibResolutions=E,this.resolutionCache.startCachingPerDirectoryResolution(),this.program=this.languageService.getProgram(),this.dirty=!1,(u=Gn)==null||u.push(Gn.Phase.Session,"finishCachingPerDirectoryResolution"),this.resolutionCache.finishCachingPerDirectoryResolution(this.program,d),(s=Gn)==null||s.pop(),H.assert(d===void 0||this.program!==void 0);let v=!1;if(this.program&&(!d||this.program!==d&&this.program.structureIsReused!==2)){if(v=!0,d){for(const k of d.getSourceFiles()){const T=this.program.getSourceFileByPath(k.resolvedPath);(!T||k.resolvedPath===k.path&&T.resolvedPath!==k.path)&&this.detachScriptInfoFromProject(k.fileName,!!this.program.getSourceFileByPath(k.path),!0)}d.forEachResolvedProjectReference(k=>{this.program.getResolvedProjectReferenceByPath(k.sourceFile.path)||this.detachScriptInfoFromProject(k.sourceFile.fileName,void 0,!0)})}if(_1e(this.program,this.missingFilesMap||(this.missingFilesMap=new Map),k=>this.addMissingFileWatcher(k)),this.generatedFilesMap){const k=F0(this.compilerOptions);dNe(this.generatedFilesMap)?(!k||!this.isValidGeneratedFileWatcher(xh(k)+".d.ts",this.generatedFilesMap))&&this.clearGeneratedFileWatch():k?this.clearGeneratedFileWatch():this.generatedFilesMap.forEach((T,M)=>{const z=this.program.getSourceFileByPath(M);(!z||z.resolvedPath!==M||!this.isValidGeneratedFileWatcher(Iq(z.fileName,this.compilerOptions,this.currentDirectory,this.program.getCommonSourceDirectory(),this.getCanonicalFileName),T))&&(Vm(T),this.generatedFilesMap.delete(M))})}this.languageServiceEnabled&&this.projectService.serverMode===0&&this.resolutionCache.updateTypeRootsWatch()}this.projectService.verifyProgram(this),this.exportMapCache&&!this.exportMapCache.isEmpty()&&(this.exportMapCache.releaseSymbols(),this.hasAddedorRemovedFiles||d&&!this.program.structureIsReused?this.exportMapCache.clear():this.changedFilesForExportMapCache&&d&&this.program&&q_(this.changedFilesForExportMapCache,k=>{const T=d.getSourceFileByPath(k),M=this.program.getSourceFileByPath(k);return!T||!M?(this.exportMapCache.clear(),!0):this.exportMapCache.onFileChanged(T,M,!!this.getTypeAcquisition().enable)})),this.changedFilesForExportMapCache&&this.changedFilesForExportMapCache.clear(),(this.hasAddedOrRemovedSymlinks||this.program&&!this.program.structureIsReused&&this.getCompilerOptions().preserveSymlinks)&&(this.symlinks=void 0,this.moduleSpecifierCache.clear());const b=this.externalFiles||qc;this.externalFiles=this.getExternalFiles(),iU(this.externalFiles,b,bN(!this.useCaseSensitiveFileNames()),k=>{const T=this.projectService.getOrCreateScriptInfoNotOpenedByClient(k,this.currentDirectory,this.directoryStructureHost);T==null||T.attachToProject(this)},k=>this.detachScriptInfoFromProject(k));const B=J0()-f;return this.sendPerformanceEvent("UpdateGraph",B),this.writeLog(`Finishing updateGraphWorker: Project: ${this.getProjectName()} Version: ${this.getProjectVersion()} structureChanged: ${v}${this.program?` structureIsReused:: ${hU[this.program.structureIsReused]}`:""} Elapsed: ${B}ms`),this.projectService.logger.isTestLogger?this.program!==d?this.print(!0,this.hasAddedorRemovedFiles,!0):this.writeLog("Same program as before"):this.hasAddedorRemovedFiles?this.print(!0,!0,!1):this.program!==d&&this.writeLog("Different program with same set of files"),this.projectService.verifyDocumentRegistry(),v}sendPerformanceEvent(u,s){this.projectService.sendPerformanceEvent(u,s)}detachScriptInfoFromProject(u,s,d){const f=this.projectService.getScriptInfo(u);f&&(f.detachFromProject(this),s||this.resolutionCache.removeResolutionsOfFile(f.path,d))}addMissingFileWatcher(u){var s;if(Xv(this)){const f=this.projectService.configFileExistenceInfoCache.get(u);if((s=f==null?void 0:f.config)!=null&&s.projects.has(this.canonicalConfigFilePath))return tw}const d=this.projectService.watchFactory.watchFile(u,(f,p)=>{Xv(this)&&this.getCachedDirectoryStructureHost().addOrDeleteFile(f,u,p),p===0&&this.missingFilesMap.has(u)&&(this.missingFilesMap.delete(u),d.close(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this))},500,this.projectService.getWatchOptions(this),cd.MissingFile,this);return d}isWatchedMissingFile(u){return!!this.missingFilesMap&&this.missingFilesMap.has(u)}addGeneratedFileWatch(u,s){if(F0(this.compilerOptions))this.generatedFilesMap||(this.generatedFilesMap=this.createGeneratedFileWatcher(u));else{const d=this.toPath(s);if(this.generatedFilesMap){if(dNe(this.generatedFilesMap)){H.fail(`${this.projectName} Expected to not have --out watcher for generated file with options: ${JSON.stringify(this.compilerOptions)}`);return}if(this.generatedFilesMap.has(d))return}else this.generatedFilesMap=new Map;this.generatedFilesMap.set(d,this.createGeneratedFileWatcher(u))}}createGeneratedFileWatcher(u){return{generatedFilePath:this.toPath(u),watcher:this.projectService.watchFactory.watchFile(u,()=>{this.clearSourceMapperCache(),this.projectService.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(this)},2e3,this.projectService.getWatchOptions(this),cd.MissingGeneratedFile,this)}}isValidGeneratedFileWatcher(u,s){return this.toPath(u)===s.generatedFilePath}clearGeneratedFileWatch(){this.generatedFilesMap&&(dNe(this.generatedFilesMap)?Vm(this.generatedFilesMap):rf(this.generatedFilesMap,Vm),this.generatedFilesMap=void 0)}getScriptInfoForNormalizedPath(u){const s=this.projectService.getScriptInfoForPath(this.toPath(u));return s&&!s.isAttached(this)?v5.ThrowProjectDoesNotContainDocument(u,this):s}getScriptInfo(u){return this.projectService.getScriptInfo(u)}filesToString(u){return this.filesToStringWorker(u,!0,!1)}filesToStringWorker(u,s,d){if(this.isInitialLoadPending())return` Files (0) InitialLoadPending `;if(!this.program)return` Files (0) NoProgram `;const f=this.program.getSourceFiles();let p=` Files (${f.length}) `;if(u){for(const E of f)p+=` ${E.fileName}${d?` ${E.version} ${JSON.stringify(E.text)}`:""} `;s&&(p+=` -`,Z1e(this.program,E=>p+=` ${E} -`))}return p}print(u,s,d){this.writeLog(`Project '${this.projectName}' (${nz[this.projectKind]})`),this.writeLog(this.filesToStringWorker(u&&this.projectService.logger.hasLevel(3),s&&this.projectService.logger.hasLevel(3),d&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(u){var s;if(u){u.allowNonTsExtensions=!0;const d=this.compilerOptions;this.compilerOptions=u,this.setInternalCompilerOptionsForEmittingJsFiles(),(s=this.noDtsResolutionProject)==null||s.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),UU(d,u)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(u){this.watchOptions=u}getWatchOptions(){return this.watchOptions}setTypeAcquisition(u){u&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(u))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(u,s){var d,f;const p=s?b=>ga(b.entries(),([B,k])=>({fileName:B,isSourceOfProjectReferenceRedirect:k})):b=>ga(b.keys());this.isInitialLoadPending()||Gm(this);const E={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Aw(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},v=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&u===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!v)return{info:E,projectErrors:this.getGlobalProjectErrors()};const b=this.lastReportedFileNames,B=((d=this.externalFiles)==null?void 0:d.map(J=>({fileName:Dl(J),isSourceOfProjectReferenceRedirect:!1})))||$c,k=lg(this.getFileNamesWithRedirectInfo(!!s).concat(B),J=>J.fileName,J=>J.isSourceOfProjectReferenceRedirect),T=new Map,M=new Map,z=v?ga(v.keys()):[],j=[];return h1(k,(J,K)=>{b.has(K)?s&&J!==b.get(K)&&j.push({fileName:K,isSourceOfProjectReferenceRedirect:J}):T.set(K,J)}),h1(b,(J,K)=>{k.has(K)||M.set(K,J)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:E,changes:{added:p(T),removed:p(M),updated:s?z.map(J=>({fileName:J,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(J)})):z,updatedRedirects:s?j:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const b=this.getFileNamesWithRedirectInfo(!!s),B=((f=this.externalFiles)==null?void 0:f.map(T=>({fileName:Dl(T),isSourceOfProjectReferenceRedirect:!1})))||$c,k=b.concat(B);return this.lastReportedFileNames=lg(k,T=>T.fileName,T=>T.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:E,files:s?k:k.map(T=>T.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(u){gO(this.rootFiles,u),this.rootFilesMap.delete(u.path)}isSourceOfProjectReferenceRedirect(u){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(u)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,cr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(u){if(!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();for(const f of this.projectService.globalPlugins)f&&(u.plugins&&u.plugins.some(p=>p.name===f)||(this.projectService.logger.info(`Loading global plugin ${f}`),this.enablePlugin({name:f,global:!0},d)))}enablePlugin(u,s){this.projectService.requestEnablePlugin(this,u,s)}enableProxy(u,s){try{if(typeof u!="function"){this.projectService.logger.info(`Skipped loading plugin ${s.name} because it did not expose a proper factory function`);return}const d={config:s,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},f=u({typescript:Yct}),p=f.create(d);for(const E of Object.keys(this.languageService))E in p||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${E} in created LS. Patching.`),p[E]=this.languageService[E]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=p,this.plugins.push({name:s.name,module:f})}catch(d){this.projectService.logger.info(`Plugin activation failed: ${d}`)}}onPluginConfigurationChanged(u,s){this.plugins.filter(d=>d.name===u).forEach(d=>{d.module.onConfigurationChanged&&d.module.onConfigurationChanged(s)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(u,s){return this.projectService.serverMode!==0?$c:this.projectService.getPackageJsonsVisibleToFile(u,s)}getNearestAncestorDirectoryWithPackageJson(u){return this.projectService.getNearestAncestorDirectoryWithPackageJson(u)}getPackageJsonsForAutoImport(u){const s=this.getPackageJsonsVisibleToFile(cr(this.currentDirectory,QB),u);return this.packageJsonsForAutoImport=new Set(s.map(d=>d.fileName)),s}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=Pfe(this))}clearCachedExportInfoMap(){var u;(u=this.exportMapCache)==null||u.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||XH(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var u,s;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((u=this.projectService.host.realpath)==null?void 0:u.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:(s=this.projectService.host.trace)==null?void 0:s.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var u,s,d;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Gm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const f=this.includePackageJsonAutoImports();if(f){(u=Gn)==null||u.push(Gn.Phase.Session,"getPackageJsonAutoImportProvider");const p=G0();if(this.autoImportProviderHost=age.create(f,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Gm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",G0()-p),(s=Gn)==null||s.pop(),this.autoImportProviderHost.getCurrentProgram();(d=Gn)==null||d.pop()}}isDefaultProjectForOpenFiles(){return!!h1(this.projectService.openFiles,(u,s)=>this.projectService.tryGetDefaultProjectForFile(Dl(s))===this)}watchNodeModulesForPackageJsonChanges(u){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(u),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(u){return H.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new uge(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==u&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[u]),this.noDtsResolutionProject.rootFile=u),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0}}},nge=class extends Wk{constructor(t,u,s,d,f,p,E){super(t.newInferredProjectName(),0,t,u,void 0,void 0,s,!1,d,t.host,p),this._isJsInferredProject=!1,this.typeAcquisition=E,this.projectRootPath=f&&t.toCanonicalFileName(f),!f&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;const u=Qhe(t||this.getCompilationSettings());this._isJsInferredProject&&typeof u.maxNodeModuleJsDepth!="number"?u.maxNodeModuleJsDepth=2:this._isJsInferredProject||(u.maxNodeModuleJsDepth=void 0),u.allowJs=!0,super.setCompilerOptions(u)}addRoot(t){H.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ye(this.getRootScriptInfos(),u=>!u.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){L(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:iNe(this),include:_t,exclude:_t}}},uge=class extends Wk{constructor(t,u,s,d){super(t.newAuxiliaryProjectName(),4,t,u,!1,void 0,s,!1,void 0,t.host,d)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},rge=class YOe extends Wk{constructor(u,s,d,f){super(u.projectService.newAutoImportProviderProjectName(),3,u.projectService,d,!1,void 0,f,!1,u.getWatchOptions(),u.projectService.host,u.currentDirectory),this.hostProject=u,this.rootFileNames=s,this.useSourceOfProjectReferenceRedirect=Lo(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Lo(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(u,s,d,f){var p,E;if(!u)return _t;const v=s.getCurrentProgram();if(!v)return _t;const b=G0();let B,k;const T=cr(s.currentDirectory,QB),M=s.getPackageJsonsForAutoImport(cr(s.currentDirectory,T));for(const K of M)(p=K.dependencies)==null||p.forEach((Y,oe)=>j(oe)),(E=K.peerDependencies)==null||E.forEach((Y,oe)=>j(oe));let z=0;if(B){const K=s.getSymlinkCache();for(const Y of ga(B.keys())){if(u===2&&z>this.maxDependencies)return s.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),_t;const oe=xde(Y,s.currentDirectory,f,d,v.getModuleResolutionCache());if(oe){const ge=J(oe,v,K);if(ge){k=Hi(k,ge),z+=ge.length?1:0;continue}}if(!L([s.currentDirectory,s.getGlobalTypingsCacheLocation()],ge=>{if(ge){const ae=xde(`@types/${Y}`,ge,f,d,v.getModuleResolutionCache());if(ae){const Ce=J(ae,v,K);return k=Hi(k,Ce),z+=Ce!=null&&Ce.length?1:0,!0}}})&&oe&&f.allowJs&&f.maxNodeModuleJsDepth){const ge=J(oe,v,K,!0);k=Hi(k,ge),z+=ge!=null&&ge.length?1:0}}}return k!=null&&k.length&&s.log(`AutoImportProviderProject: found ${k.length} root files in ${z} dependencies in ${G0()-b} ms`),k||_t;function j(K){Pa(K,"@types/")||(B||(B=new Set)).add(K)}function J(K,Y,oe,se){var ge;const ae=kde(K,f,d,Y.getModuleResolutionCache(),se);if(ae){const Ce=(ge=d.realpath)==null?void 0:ge.call(d,K.packageDirectory),ne=Ce?s.toPath(Ce):void 0,ve=ne&&ne!==s.toPath(K.packageDirectory);return ve&&oe.setSymlinkedDirectory(K.packageDirectory,{real:zd(Ce),realPath:zd(ne)}),qi(ae,Se=>{const Ne=ve?Se.replace(K.packageDirectory,Ce):Se;if(!Y.getSourceFile(Ne)&&!(ve&&Y.getSourceFile(Se)))return Ne})}}}static create(u,s,d,f){if(u===0)return;const p={...s.getCompilerOptions(),...this.compilerOptionsOverrides},E=this.getRootFileNames(u,s,d,p);if(E.length)return new YOe(s,E,f,p)}isEmpty(){return!Oe(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let u=this.rootFileNames;u||(u=YOe.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,u),this.rootFileNames=u;const s=this.getCurrentProgram(),d=super.updateGraph();return s&&s!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),d}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var u;return!!((u=this.rootFileNames)!=null&&u.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||_t}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 u;return(u=this.hostProject.getCurrentProgram())==null?void 0:u.getModuleResolutionCache()}},rge.maxDependencies=10,rge.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:_t,lib:_t,noLib:!0},age=rge,oge=class extends Wk{constructor(t,u,s,d,f){super(t,1,s,d,!1,void 0,{},!1,void 0,f,lr(t)),this.canonicalConfigFilePath=u,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=J3,this.sendLoadingProjectFinish=!1}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){const u=$o(t),s=this.projectService.toCanonicalFileName(u);let d=this.projectService.configFileExistenceInfoCache.get(s);return d||this.projectService.configFileExistenceInfoCache.set(s,d={exists:this.projectService.host.fileExists(u)}),this.projectService.ensureParsedConfigUptoDate(u,s,d,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(u,d,this),d.exists?d.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName($o(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){const t=this.isInitialLoadPending();this.isInitialLoadPending=cg;const u=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let s;switch(u){case 1:this.openFileWatchTriggered.clear(),s=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const d=H.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,d,t,!1),s=!0;break;default:s=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),s}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){H.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getResolvedProjectReferenceToRedirect(t){const u=this.getCurrentProgram();return u&&u.getResolvedProjectReferenceToRedirect(t)}forEachResolvedProjectReference(t){var u;return(u=this.getCurrentProgram())==null?void 0:u.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var u;if(this.plugins.length=0,!((u=t.plugins)!=null&&u.length)&&!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const f=lr(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${f} to search paths`),d.unshift(f)}if(t.plugins)for(const f of t.plugins)this.enablePlugin(f,d);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return ti(this.projectErrors,t=>!t.file)||$c}getAllProjectErrors(){return this.projectErrors||$c}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,u)=>this.releaseParsedConfig(u)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(t){return Bw(this,t.path,u=>p9(u,t)?u:void 0,0)}hasOpenRef(){var t;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const u=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((t=u.openFilesImpactedByConfigFile)!=null&&t.size):!!u.openFilesImpactedByConfigFile&&h1(u.openFilesImpactedByConfigFile,(s,d)=>{const f=this.projectService.getScriptInfoForPath(d);return this.containsScriptInfo(f)||!!Bw(this,f.path,p=>p.containsScriptInfo(f),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return cM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){wY(t,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Zee=class extends Wk{constructor(t,u,s,d,f,p,E,v){super(t,2,u,s,!0,f,d,p,v,u.host,lr(E||q1(t))),this.externalProjectName=t,this.compileOnSaveEnabled=p,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}}}});function Tct(t){const u=new Map;for(const s of t)if(typeof s.type=="object"){const d=s.type;d.forEach(f=>{H.assert(typeof f=="number")}),u.set(s.name,d)}return u}function Sw(t){return Ja(t.indentStyle)&&(t.indentStyle=Rct.get(t.indentStyle.toLowerCase()),H.assert(t.indentStyle!==void 0)),t}function Yee(t){return zct.forEach((u,s)=>{const d=t[s];Ja(d)&&(t[s]=u.get(d.toLowerCase()))}),t}function GK(t,u){let s,d;return VB.forEach(f=>{const p=t[f.name];if(p===void 0)return;const E=Ict.get(f.name);(s||(s={}))[f.name]=E?Ja(p)?E.get(p.toLowerCase()):p:Sk(f,p,u||"",d||(d=[]))}),s&&{watchOptions:s,errors:d}}function aNe(t){let u;return eH.forEach(s=>{const d=t[s.name];d!==void 0&&((u||(u={}))[s.name]=d)}),u}function sge(t){return Ja(t)?lge(t):t}function lge(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function oNe(t){const{lazyConfiguredProjectsFromExternalProject:u,...s}=t;return s}function Lct(t,u){for(const s of u)if(s.getProjectName()===t)return s}function Qee(t){return!!t.containingProjects}function zQt(t){return!!t.configFileInfo}function Bw(t,u,s,d,f){var p;const E=(p=t.getCurrentProgram())==null?void 0:p.getResolvedProjectReferences();if(!E)return;let v;const b=u?t.getResolvedProjectReferenceToRedirect(u):void 0;if(b){const k=Dl(b.sourceFile.fileName),T=t.projectService.findConfiguredProjectByProjectName(k);if(T){const M=s(T);if(M)return M}else if(d!==0){v=new Map;const M=sNe(E,t.getCompilerOptions(),(z,j)=>b===z?B(z,j):void 0,d,t.projectService,v);if(M)return M;v.clear()}}return sNe(E,t.getCompilerOptions(),(k,T)=>b!==k?B(k,T):void 0,d,t.projectService,v);function B(k,T){const M=Dl(k.sourceFile.fileName),z=t.projectService.findConfiguredProjectByProjectName(M)||(T===0?void 0:T===1?t.projectService.createConfiguredProject(M):T===2?t.projectService.createAndLoadConfiguredProject(M,f):H.assertNever(T));return z&&s(z)}}function sNe(t,u,s,d,f,p){const E=u.disableReferencedProjectLoad?0:d;return L(t,v=>{if(!v)return;const b=Dl(v.sourceFile.fileName),B=f.toCanonicalFileName(b),k=p==null?void 0:p.get(B);if(k!==void 0&&k>=E)return;const T=s(v,E);return T||((p||(p=new Map)).set(B,E),v.references&&sNe(v.references,v.commandLine.options,s,E,f,p))})}function Nct(t,u){return t.potentialProjectReferences&&U_(t.potentialProjectReferences,u)}function IQt(t,u,s,d){return t.getCurrentProgram()?t.forEachResolvedProjectReference(u):t.isInitialLoadPending()?Nct(t,d):L(t.getProjectReferences(),s)}function lNe(t,u,s){const d=s&&t.projectService.configuredProjects.get(s);return d&&u(d)}function Pct(t,u){return IQt(t,s=>lNe(t,u,s.sourceFile.path),s=>lNe(t,u,t.toPath(YB(s))),s=>lNe(t,u,s))}function RQt(t,u){return`${Ja(u)?`Config: ${u} `:u?`Project: ${u.getProjectName()} `:""}WatchType: ${t}`}function Mct(t){return!t.isScriptOpen()&&t.mTime!==void 0}function p9(t,u){return t.containsScriptInfo(u)&&!t.isSourceOfProjectReferenceRedirect(u.path)}function Gm(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&t.updateGraph()}function cNe(t){Qv(t)&&(t.projectOptions=!0)}function dNe(t){let u=1;return()=>t(u++)}function hNe(){return{idToCallbacks:new Map,pathToId:new Map}}function OQt(t,u){if(!u||!t.eventHandler||!t.session)return;const s=hNe(),d=hNe(),f=hNe();let p=1;return t.session.addProtocolHandler("watchChange",M=>(B(M.arguments),{responseRequired:!1})),{watchFile:E,watchDirectory:v,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function E(M,z){return b(s,M,z,j=>({eventName:ote,data:{id:j,path:M}}))}function v(M,z,j){return b(j?f:d,M,z,J=>({eventName:ste,data:{id:J,path:M,recursive:!!j}}))}function b({pathToId:M,idToCallbacks:z},j,J,K){const Y=t.toPath(j);let oe=M.get(Y);oe||M.set(Y,oe=p++);let se=z.get(oe);return se||(z.set(oe,se=new Set),t.eventHandler(K(oe))),se.add(J),{close(){const ge=z.get(oe);ge!=null&&ge.delete(J)&&(ge.size||(z.delete(oe),M.delete(Y),t.eventHandler({eventName:lte,data:{id:oe}})))}}}function B({id:M,path:z,eventType:j}){k(M,z,j),T(d,M,z,j),T(f,M,z,j)}function k(M,z,j){var J;(J=s.idToCallbacks.get(M))==null||J.forEach(K=>{K(z,j==="create"?0:j==="delete"?2:1)})}function T({idToCallbacks:M},z,j,J){var K;J!=="update"&&((K=M.get(z))==null||K.forEach(Y=>{Y(j)}))}}function jQt(){let t;return{get(){return t},set(u){t=u},clear(){t=void 0}}}function fNe(t){return t.kind!==void 0}function mNe(t){t.print(!1,!1,!1)}var Xee,ete,JK,tte,ite,nte,ute,rte,ate,cge,ote,ste,lte,pNe,zct,Ict,Rct,dge,cte,dte,hge,fge,gNe,mge,VQt=o({"src/server/editorServices.ts"(){Xv(),_9(),eNe(),Xee=20*1024*1024,ete=4*1024*1024,JK="projectsUpdatedInBackground",tte="projectLoadingStart",ite="projectLoadingFinish",nte="largeFileReferenced",ute="configFileDiag",rte="projectLanguageServiceState",ate="projectInfo",cge="openFileInfo",ote="createFileWatcher",ste="createDirectoryWatcher",lte="closeFileWatcher",pNe="*ensureProjectForOpenFiles*",zct=Tct(a3),Ict=Tct(VB),Rct=new Map(Object.entries({none:0,block:1,smart:2})),dge={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,"$"]]}},cte={getFileName:t=>t,getScriptKind:(t,u)=>{let s;if(u){const d=BN(t);d&&Oe(u,f=>f.extension===d?(s=f.scriptKind,!0):!1)}return s},hasMixedContent:(t,u)=>Oe(u,s=>s.isMixedContent&&Ml(t,s.extension))},dte={getFileName:t=>t.fileName,getScriptKind:t=>sge(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent},hge={close:Is},fge=(t=>(t[t.Find=0]="Find",t[t.FindCreate=1]="FindCreate",t[t.FindCreateLoad=2]="FindCreateLoad",t))(fge||{}),gNe=class QOe{constructor(u){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=dNe(ILe),this.newAutoImportProviderProjectName=dNe(RLe),this.newAuxiliaryProjectName=dNe(OLe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,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=dge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=Is,this.verifyProgram=Is,this.onProjectCreation=Is;var s;this.host=u.host,this.logger=u.logger,this.cancellationToken=u.cancellationToken,this.useSingleInferredProject=u.useSingleInferredProject,this.useInferredProjectPerProjectRoot=u.useInferredProjectPerProjectRoot,this.typingsInstaller=u.typingsInstaller||qee,this.throttleWaitMilliseconds=u.throttleWaitMilliseconds,this.eventHandler=u.eventHandler,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.globalPlugins=u.globalPlugins||$c,this.pluginProbeLocations=u.pluginProbeLocations||$c,this.allowLocalPluginLoads=!!u.allowLocalPluginLoads,this.typesMapLocation=u.typesMapLocation===void 0?cr(lr(this.getExecutingFilePath()),"typesMap.json"):u.typesMapLocation,this.session=u.session,this.jsDocParsingMode=u.jsDocParsingMode,u.serverMode!==void 0?this.serverMode=u.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=wm()),this.currentDirectory=Dl(this.host.getCurrentDirectory()),this.toCanonicalFileName=L1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?zd(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Zpe(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 tge(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:XQ(this.host.newLine),preferences:d4,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Vfe(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const d=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,f=d!==0?p=>this.logger.info(p):Is;this.packageJsonCache=_Ne(this),this.watchFactory=this.serverMode!==0?{watchFile:iw,watchDirectory:iw}:E1e(OQt(this,u.canUseWatchEvents)||this.host,d,f,RQt),(s=u.incrementalVerifier)==null||s.call(u,this)}toPath(u){return J0(u,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(u){return $a(u,this.host.getCurrentDirectory())}setDocument(u,s,d){const f=H.checkDefined(this.getScriptInfoForPath(s));f.cacheSourceFile={key:u,sourceFile:d}}getDocument(u,s){const d=this.getScriptInfoForPath(s);return d&&d.cacheSourceFile&&d.cacheSourceFile.key===u?d.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(u,s){if(!this.eventHandler)return;const d={eventName:rte,data:{project:u,languageServiceEnabled:s}};this.eventHandler(d)}loadTypesMap(){try{const u=this.host.readFile(this.typesMapLocation);if(u===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const s=JSON.parse(u);for(const d of Object.keys(s.typesMap))s.typesMap[d].match=new RegExp(s.typesMap[d].match,"i");this.safelist=s.typesMap;for(const d in s.simpleMap)gu(s.simpleMap,d)&&this.legacySafelist.set(d,s.simpleMap[d].toLowerCase())}catch(u){this.logger.info(`Error loading types map: ${u}`),this.safelist=dge,this.legacySafelist.clear()}}updateTypingsForProject(u){const s=this.findProject(u.projectName);if(s)switch(u.kind){case ZQ:s.updateTypingFiles(this.typingsCache.updateTypingsForProject(u.projectName,u.compilerOptions,u.typeAcquisition,u.unresolvedImports,u.typings));return;case YQ:this.typingsCache.enqueueInstallTypingsForProject(s,s.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(u){var s;(s=this.findProject(u.projectName))==null||s.watchTypingLocations(u.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(pNe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(u){if(u.markAsDirty(),WK(u))return;const s=u.getProjectName();this.pendingProjectUpdates.set(s,u),this.throttledOperations.schedule(s,250,()=>{this.pendingProjectUpdates.delete(s)&&Gm(u)})}hasPendingProjectUpdate(u){return this.pendingProjectUpdates.has(u.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const u={eventName:JK,data:{openFiles:ga(this.openFiles.keys(),s=>this.getScriptInfoForPath(s).fileName)}};this.eventHandler(u)}sendLargeFileReferencedEvent(u,s){if(!this.eventHandler)return;const d={eventName:nte,data:{file:u,fileSize:s,maxFileSize:ete}};this.eventHandler(d)}sendProjectLoadingStartEvent(u,s){if(!this.eventHandler)return;u.sendLoadingProjectFinish=!0;const d={eventName:tte,data:{project:u,reason:s}};this.eventHandler(d)}sendProjectLoadingFinishEvent(u){if(!this.eventHandler||!u.sendLoadingProjectFinish)return;u.sendLoadingProjectFinish=!1;const s={eventName:ite,data:{project:u}};this.eventHandler(s)}sendPerformanceEvent(u,s){this.performanceEventHandler&&this.performanceEventHandler({kind:u,durationMs:s})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(u){this.delayUpdateProjectGraph(u),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(u,s){if(u.length){for(const d of u)s&&d.clearSourceMapperCache(),this.delayUpdateProjectGraph(d);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(u,s){H.assert(s===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const d=Yee(u),f=GK(u,s),p=aNe(u);d.allowNonTsExtensions=!0;const E=s&&this.toCanonicalFileName(s);E?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(E,d),this.watchOptionsForInferredProjectsPerProjectRoot.set(E,f||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(E,p)):(this.compilerOptionsForInferredProjects=d,this.watchOptionsForInferredProjects=f,this.typeAcquisitionForInferredProjects=p);for(const v of this.inferredProjects)(E?v.projectRootPath===E:!v.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(v.projectRootPath))&&(v.setCompilerOptions(d),v.setTypeAcquisition(p),v.setWatchOptions(f==null?void 0:f.watchOptions),v.setProjectErrors(f==null?void 0:f.errors),v.compileOnSaveEnabled=d.compileOnSave,v.markAsDirty(),this.delayUpdateProjectGraph(v));this.delayEnsureProjectForOpenFiles()}findProject(u){if(u!==void 0)return zLe(u)?Lct(u,this.inferredProjects):this.findExternalProjectByProjectName(u)||this.findConfiguredProjectByProjectName(Dl(u))}forEachProject(u){this.externalProjects.forEach(u),this.configuredProjects.forEach(u),this.inferredProjects.forEach(u)}forEachEnabledProject(u){this.forEachProject(s=>{!s.isOrphan()&&s.languageServiceEnabled&&u(s)})}getDefaultProjectForFile(u,s){return s?this.ensureDefaultProjectForFile(u):this.tryGetDefaultProjectForFile(u)}tryGetDefaultProjectForFile(u){const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s&&!s.isOrphan()?s.getDefaultProject():void 0}ensureDefaultProjectForFile(u){return this.tryGetDefaultProjectForFile(u)||this.doEnsureDefaultProjectForFile(u)}doEnsureDefaultProjectForFile(u){this.ensureProjectStructuresUptoDate();const s=Ja(u)?this.getScriptInfoForNormalizedPath(u):u;return s?s.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ja(u)?u:u.fileName),v5.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(u){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(u)}ensureProjectStructuresUptoDate(){let u=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const s=d=>{u=Gm(d)||u};this.externalProjects.forEach(s),this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),u&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(u){const s=this.getScriptInfoForNormalizedPath(u);return s&&s.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(u){const s=this.getScriptInfoForNormalizedPath(u);return{...this.hostConfiguration.preferences,...s&&s.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(u,s){s===2?this.handleDeletedFile(u):u.isScriptOpen()||(u.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(u.containingProjects,!1),this.handleSourceMapProjects(u))}handleSourceMapProjects(u){if(u.sourceMapFilePath)if(Ja(u.sourceMapFilePath)){const s=this.getScriptInfoForPath(u.sourceMapFilePath);this.delayUpdateSourceInfoProjects(s&&s.sourceInfos)}else this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(u.sourceInfos),u.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(u.declarationInfoPath)}delayUpdateSourceInfoProjects(u){u&&u.forEach((s,d)=>this.delayUpdateProjectsOfScriptInfoPath(d))}delayUpdateProjectsOfScriptInfoPath(u){const s=this.getScriptInfoForPath(u);s&&this.delayUpdateProjectGraphs(s.containingProjects,!0)}handleDeletedFile(u){if(this.stopWatchingScriptInfo(u),!u.isScriptOpen()){this.deleteScriptInfo(u);const s=u.containingProjects.slice();if(u.detachAllProjects(),this.delayUpdateProjectGraphs(s,!1),this.handleSourceMapProjects(u),u.closeSourceMapFileWatcher(),u.declarationInfoPath){const d=this.getScriptInfoForPath(u.declarationInfoPath);d&&(d.sourceMapFilePath=void 0)}}}watchWildcardDirectory(u,s,d,f){return this.watchFactory.watchDirectory(u,p=>{const E=this.toPath(p),v=f.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(p,E);Ac(E)==="package.json"&&!XH(E)&&(v&&v.fileExists||!v&&this.host.fileExists(E))&&(this.logger.info(`Config: ${d} Detected new package.json: ${p}`),this.onAddPackageJson(E));const b=this.findConfiguredProjectByProjectName(d);DH({watchedDirPath:u,fileOrDirectory:p,fileOrDirectoryPath:E,configFileName:d,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:f.parsedCommandLine.options,program:(b==null?void 0:b.getCurrentProgram())||f.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:B=>this.logger.info(B),toPath:B=>this.toPath(B),getScriptKind:b?B=>b.getScriptKind(B):void 0})||(f.updateLevel!==2&&(f.updateLevel=1),f.projects.forEach((B,k)=>{if(!B)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!T)return;const M=b===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>M))if(this.openFiles.has(E))if(H.checkDefined(this.getScriptInfoForPath(E)).isAttached(T)){const j=Math.max(M,T.openFileWatchTriggered.get(E)||0);T.openFileWatchTriggered.set(E,j)}else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},s,this.getWatchOptionsFromProjectWatchOptions(f.parsedCommandLine.watchOptions),cd.WildcardDirectory,d)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,s){const d=this.configFileExistenceInfoCache.get(u);if(!(d!=null&&d.config))return!1;let f=!1;return d.config.updateLevel=2,d.config.projects.forEach((p,E)=>{const v=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(v)if(f=!0,E===u){if(v.isInitialLoadPending())return;v.pendingUpdateLevel=2,v.pendingUpdateReason=s,this.delayUpdateProjectGraph(v)}else v.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(u)),this.delayUpdateProjectGraph(v)}),f}onConfigFileChanged(u,s){var d;const f=this.configFileExistenceInfoCache.get(u);if(s===2){f.exists=!1;const p=(d=f.config)!=null&&d.projects.has(u)?this.getConfiguredProjectByCanonicalConfigFilePath(u):void 0;p&&this.removeProject(p)}else f.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,"Change in config file detected"),this.reloadConfiguredProjectForFiles(f.openFilesImpactedByConfigFile,!1,!0,s!==2?il:J3,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(u){switch(this.logger.info("`remove Project::"),u.print(!0,!0,!1),u.close(),H.shouldAssert(1)&&this.filenameToScriptInfo.forEach(s=>H.assert(!s.isAttached(u),"Found script Info still attached to project",()=>`${u.projectName}: ScriptInfos still attached: ${JSON.stringify(ga(eo(this.filenameToScriptInfo.values(),d=>d.isAttached(u)?{fileName:d.fileName,projects:d.containingProjects.map(f=>f.projectName),hasMixedContent:d.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(u.getProjectName()),u.projectKind){case 2:Vy(this.externalProjects,u),this.projectToSizeMap.delete(u.getProjectName());break;case 1:this.configuredProjects.delete(u.canonicalConfigFilePath),this.projectToSizeMap.delete(u.canonicalConfigFilePath);break;case 0:Vy(this.inferredProjects,u);break}}assignOrphanScriptInfoToInferredProject(u,s){H.assert(u.isOrphan());const d=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(u.isDynamic?s||this.currentDirectory:lr(Pf(u.fileName)?u.fileName:$a(u.fileName,s?this.getNormalizedAbsolutePath(s):this.currentDirectory)));if(d.addRoot(u),u.containingProjects[0]!==d&&(u.detachFromProject(d),u.containingProjects.unshift(d)),d.updateGraph(),!this.useSingleInferredProject&&!d.projectRootPath)for(const f of this.inferredProjects){if(f===d||f.isOrphan())continue;const p=f.getRootScriptInfos();H.assert(p.length===1||!!f.projectRootPath),p.length===1&&L(p[0].containingProjects,E=>E!==p[0].containingProjects[0]&&!E.isOrphan())&&f.removeFile(p[0],!0,!0)}return d}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(d,u)})}closeOpenFile(u,s){const d=u.isDynamic?!1:this.host.fileExists(u.fileName);u.close(d),this.stopWatchingConfigFilesForClosedScriptInfo(u);const f=this.toCanonicalFileName(u.fileName);this.openFilesWithNonRootedDiskPath.get(f)===u&&this.openFilesWithNonRootedDiskPath.delete(f);let p=!1;for(const E of u.containingProjects){if(Qv(E)){u.hasMixedContent&&u.registerFileUpdate();const v=E.openFileWatchTriggered.get(u.path);v!==void 0&&(E.openFileWatchTriggered.delete(u.path),E.pendingUpdateLevel!==void 0&&E.pendingUpdateLevelthis.onConfigFileChanged(s,B),2e3,this.getWatchOptionsFromProjectWatchOptions((p=(f=E==null?void 0:E.config)==null?void 0:f.parsedCommandLine)==null?void 0:p.watchOptions),cd.ConfigFile,d));const v=E.config.projects;v.set(d.canonicalConfigFilePath,v.get(d.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(u){return u.openFilesImpactedByConfigFile&&h1(u.openFilesImpactedByConfigFile,il)}releaseParsedConfig(u,s){var d,f,p;const E=this.configFileExistenceInfoCache.get(u);(d=E.config)!=null&&d.projects.delete(s.canonicalConfigFilePath)&&((f=E.config)!=null&&f.projects.size||(E.config=void 0,p1e(u,this.sharedExtendedConfigFileWatchers),H.checkDefined(E.watcher),(p=E.openFilesImpactedByConfigFile)!=null&&p.size?this.configFileExistenceImpactsRootOfInferredProject(E)?IQ(yd(lr(u)))||(E.watcher.close(),E.watcher=hge):(E.watcher.close(),E.watcher=void 0):(E.watcher.close(),this.configFileExistenceInfoCache.delete(u))))}closeConfigFileWatcherOnReleaseOfOpenFile(u){u.watcher&&!u.config&&!this.configFileExistenceImpactsRootOfInferredProject(u)&&(u.watcher.close(),u.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(u){H.assert(!u.isScriptOpen()),this.forEachConfigFileLocation(u,s=>{var d,f,p;const E=this.configFileExistenceInfoCache.get(s);if(E){const v=(d=E.openFilesImpactedByConfigFile)==null?void 0:d.get(u.path);(f=E.openFilesImpactedByConfigFile)==null||f.delete(u.path),v&&this.closeConfigFileWatcherOnReleaseOfOpenFile(E),!((p=E.openFilesImpactedByConfigFile)!=null&&p.size)&&!E.config&&(H.assert(!E.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(u){H.assert(u.isScriptOpen()),this.forEachConfigFileLocation(u,(s,d)=>{let f=this.configFileExistenceInfoCache.get(s);f||(f={exists:this.host.fileExists(d)},this.configFileExistenceInfoCache.set(s,f)),(f.openFilesImpactedByConfigFile||(f.openFilesImpactedByConfigFile=new Map)).set(u.path,!0),f.watcher||(f.watcher=IQ(yd(lr(s)))?this.watchFactory.watchFile(d,(p,E)=>this.onConfigFileChanged(s,E),2e3,this.hostConfiguration.watchOptions,cd.ConfigFileForInferredRoot):hge)})}stopWatchingConfigFilesForInferredProjectRoot(u){this.forEachConfigFileLocation(u,s=>{var d;const f=this.configFileExistenceInfoCache.get(s);(d=f==null?void 0:f.openFilesImpactedByConfigFile)!=null&&d.has(u.path)&&(H.assert(u.isScriptOpen()),f.openFilesImpactedByConfigFile.set(u.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(f))})}forEachConfigFileLocation(u,s){if(this.serverMode!==0)return;H.assert(!Qee(u)||this.openFiles.has(u.path));const d=this.openFiles.get(u.path);if(H.checkDefined(this.getScriptInfo(u.path)).isDynamic)return;let p=lr(u.fileName);const E=()=>GE(d,p,this.currentDirectory,!this.host.useCaseSensitiveFileNames),v=!d||!E();let b=!zQt(u);do{if(b){const k=VK(p,this.currentDirectory,this.toCanonicalFileName),T=cr(p,"tsconfig.json");let M=s(cr(k,"tsconfig.json"),T);if(M)return T;const z=cr(p,"jsconfig.json");if(M=s(cr(k,"jsconfig.json"),z),M)return z;if(bU(k))break}const B=lr(p);if(B===p)break;p=B,b=!0}while(v||E())}findDefaultConfiguredProject(u){if(!u.isScriptOpen())return;const s=this.getConfigFileNameForFile(u),d=s&&this.findConfiguredProjectByProjectName(s);return d&&p9(d,u)?d:d==null?void 0:d.getDefaultChildProjectFromProjectWithReferences(u)}getConfigFileNameForFile(u){if(Qee(u)){H.assert(u.isScriptOpen());const d=this.configFileForOpenFiles.get(u.path);if(d!==void 0)return d||void 0}this.logger.info(`Search path: ${lr(u.fileName)}`);const s=this.forEachConfigFileLocation(u,(d,f)=>this.configFileExists(f,d,u));return s?this.logger.info(`For info: ${u.fileName} :: Config file name: ${s}`):this.logger.info(`For info: ${u.fileName} :: No config files found.`),Qee(u)&&this.configFileForOpenFiles.set(u.path,s||!1),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(mNe),this.configuredProjects.forEach(mNe),this.inferredProjects.forEach(mNe),this.logger.info("Open files: "),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);this.logger.info(` FileName: ${d.fileName} ProjectRootPath: ${u}`),this.logger.info(` Projects: ${d.containingProjects.map(f=>f.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(u){const s=this.toCanonicalFileName(u);return this.getConfiguredProjectByCanonicalConfigFilePath(s)}getConfiguredProjectByCanonicalConfigFilePath(u){return this.configuredProjects.get(u)}findExternalProjectByProjectName(u){return Lct(u,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(u,s,d,f){if(s&&s.disableSizeLimit||!this.host.getFileSize)return;let p=Xee;this.projectToSizeMap.set(u,0),this.projectToSizeMap.forEach(v=>p-=v||0);let E=0;for(const v of d){const b=f.getFileName(v);if(!mk(b)&&(E+=this.host.getFileSize(b),E>Xee||E>p)){const B=d.map(k=>f.getFileName(k)).filter(k=>!mk(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,T)=>T.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${E}). Largest files: ${B.map(k=>`${k.name}:${k.size}`).join(", ")}`),b}}this.projectToSizeMap.set(u,E)}createExternalProject(u,s,d,f,p){const E=Yee(d),v=GK(d,lr(q1(u))),b=new Zee(u,this,this.documentRegistry,E,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u,E,s,dte),d.compileOnSave===void 0?!0:d.compileOnSave,void 0,v==null?void 0:v.watchOptions);return b.setProjectErrors(v==null?void 0:v.errors),b.excludedFiles=p,this.addFilesToNonInferredProject(b,s,dte,f),this.externalProjects.push(b),b}sendProjectTelemetry(u){if(this.seenProjects.has(u.projectName)){cNe(u);return}if(this.seenProjects.set(u.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){cNe(u);return}const s=Qv(u)?u.projectOptions:void 0;cNe(u);const d={projectId:this.host.createSHA256Hash(u.projectName),fileStats:KK(u.getScriptInfos(),!0),compilerOptions:eAe(u.getCompilationSettings()),typeAcquisition:p(u.getTypeAcquisition()),extends:s&&s.configHasExtendsProperty,files:s&&s.configHasFilesProperty,include:s&&s.configHasIncludeProperty,exclude:s&&s.configHasExcludeProperty,compileOnSave:u.compileOnSaveEnabled,configFileName:f(),projectType:u instanceof Zee?"external":"configured",languageServiceEnabled:u.languageServiceEnabled,version:_};this.eventHandler({eventName:ate,data:d});function f(){return Qv(u)&&qpe(u.getConfigFilePath())||"other"}function p({enable:E,include:v,exclude:b}){return{enable:E,include:v!==void 0&&v.length!==0,exclude:b!==void 0&&b.length!==0}}}addFilesToNonInferredProject(u,s,d,f){this.updateNonInferredProjectFiles(u,s,d),u.setTypeAcquisition(f),u.markAsDirty()}createConfiguredProject(u){var s;(s=Gn)==null||s.instant(Gn.Phase.Session,"createConfiguredProject",{configFilePath:u}),this.logger.info(`Creating configuration project ${u}`);const d=this.toCanonicalFileName(u);let f=this.configFileExistenceInfoCache.get(d);f?f.exists=!0:this.configFileExistenceInfoCache.set(d,f={exists:!0}),f.config||(f.config={cachedDirectoryStructureHost:xQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const p=new oge(u,d,this,this.documentRegistry,f.config.cachedDirectoryStructureHost);return this.configuredProjects.set(d,p),this.createConfigFileWatcherForParsedConfig(u,d,p),p}createConfiguredProjectWithDelayLoad(u,s){const d=this.createConfiguredProject(u);return d.pendingUpdateLevel=2,d.pendingUpdateReason=s,d}createAndLoadConfiguredProject(u,s){const d=this.createConfiguredProject(u);return this.loadConfiguredProject(d,s),d}createLoadAndUpdateConfiguredProject(u,s){const d=this.createAndLoadConfiguredProject(u,s);return d.updateGraph(),d}loadConfiguredProject(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"loadConfiguredProject",{configFilePath:u.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(u,s);const p=$o(u.getConfigFilePath()),E=this.ensureParsedConfigUptoDate(p,u.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath),u),v=E.config.parsedCommandLine;H.assert(!!v.fileNames);const b=v.options;u.projectOptions||(u.projectOptions={configHasExtendsProperty:v.raw.extends!==void 0,configHasFilesProperty:v.raw.files!==void 0,configHasIncludeProperty:v.raw.include!==void 0,configHasExcludeProperty:v.raw.exclude!==void 0}),u.canConfigFileJsonReportNoInputFiles=aM(v.raw),u.setProjectErrors(v.options.configFile.parseDiagnostics),u.updateReferences(v.projectReferences);const B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.canonicalConfigFilePath,b,v.fileNames,cte);B?(u.disableLanguageService(B),this.configFileExistenceInfoCache.forEach((T,M)=>this.stopWatchingWildCards(M,u))):(u.setCompilerOptions(b),u.setWatchOptions(v.watchOptions),u.enableLanguageService(),this.watchWildcards(p,E,u)),u.enablePluginsWithOptions(b);const k=v.fileNames.concat(u.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(u,k,cte,b,v.typeAcquisition,v.compileOnSave,v.watchOptions),(f=Gn)==null||f.pop()}ensureParsedConfigUptoDate(u,s,d,f){var p,E,v;if(d.config){if(!d.config.updateLevel)return d;if(d.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(u,d.config),d}const b=((p=d.config)==null?void 0:p.cachedDirectoryStructureHost)||xQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),B=rM(u,j=>this.host.readFile(j)),k=WV(u,Ja(B)?B:""),T=k.parseDiagnostics;Ja(B)||T.push(B);const M=UV(k,b,lr(u),{},u,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);M.errors.length&&T.push(...M.errors),this.logger.info(`Config: ${u} : ${JSON.stringify({rootNames:M.fileNames,options:M.options,watchOptions:M.watchOptions,projectReferences:M.projectReferences},void 0," ")}`);const z=(E=d.config)==null?void 0:E.parsedCommandLine;return d.config?(d.config.parsedCommandLine=M,d.config.watchedDirectoriesStale=!0,d.config.updateLevel=void 0):d.config={parsedCommandLine:M,cachedDirectoryStructureHost:b,projects:new Map},!z&&!dZ(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(M.watchOptions))&&((v=d.watcher)==null||v.close(),d.watcher=void 0),this.createConfigFileWatcherForParsedConfig(u,s,f),vQ(s,M.options,this.sharedExtendedConfigFileWatchers,(j,J)=>this.watchFactory.watchFile(j,()=>{var K;CQ(this.extendedConfigCache,J,oe=>this.toPath(oe));let Y=!1;(K=this.sharedExtendedConfigFileWatchers.get(J))==null||K.projects.forEach(oe=>{Y=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(oe,`Change in extended config file ${j} detected`)||Y}),Y&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,cd.ExtendedConfigFile,u),j=>this.toPath(j)),d}watchWildcards(u,{exists:s,config:d},f){if(d.projects.set(f.canonicalConfigFilePath,!0),s){if(d.watchedDirectories&&!d.watchedDirectoriesStale)return;d.watchedDirectoriesStale=!1,_H(d.watchedDirectories||(d.watchedDirectories=new Map),new Map(Object.entries(d.parsedCommandLine.wildcardDirectories)),(p,E)=>this.watchWildcardDirectory(p,E,u,d))}else{if(d.watchedDirectoriesStale=!1,!d.watchedDirectories)return;rf(d.watchedDirectories,jm),d.watchedDirectories=void 0}}stopWatchingWildCards(u,s){const d=this.configFileExistenceInfoCache.get(u);!d.config||!d.config.projects.get(s.canonicalConfigFilePath)||(d.config.projects.set(s.canonicalConfigFilePath,!1),!h1(d.config.projects,il)&&(d.config.watchedDirectories&&(rf(d.config.watchedDirectories,jm),d.config.watchedDirectories=void 0),d.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(u,s,d){const f=u.getRootFilesMap(),p=new Map;for(const E of s){const v=d.getFileName(E),b=Dl(v),B=HK(b);let k;if(!B&&!u.fileExists(v)){k=VK(b,this.currentDirectory,this.toCanonicalFileName);const T=f.get(k);T?(T.info&&(u.removeFile(T.info,!1,!0),T.info=void 0),T.fileName=b):f.set(k,{fileName:b})}else{const T=d.getScriptKind(E,this.hostConfiguration.extraFileExtensions),M=d.hasMixedContent(E,this.hostConfiguration.extraFileExtensions),z=H.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(b,u.currentDirectory,T,M,u.directoryStructureHost));k=z.path;const j=f.get(k);!j||j.info!==z?(u.addRoot(z,b),z.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(z)):j.fileName=b}p.set(k,!0)}f.size>p.size&&f.forEach((E,v)=>{p.has(v)||(E.info?u.removeFile(E.info,u.fileExists(v),!0):f.delete(v))})}updateRootAndOptionsOfNonInferredProject(u,s,d,f,p,E,v){u.setCompilerOptions(f),u.setWatchOptions(v),E!==void 0&&(u.compileOnSaveEnabled=E),this.addFilesToNonInferredProject(u,s,d,p)}reloadFileNamesOfConfiguredProject(u){const s=this.reloadFileNamesOfParsedConfig(u.getConfigFilePath(),this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath).config);return u.updateErrorOnNoInputFiles(s),this.updateNonInferredProjectFiles(u,s.concat(u.getExternalFiles(1)),cte),u.markAsDirty(),u.updateGraph()}reloadFileNamesOfParsedConfig(u,s){if(s.updateLevel===void 0)return s.parsedCommandLine.fileNames;H.assert(s.updateLevel===1);const d=s.parsedCommandLine.options.configFile.configFileSpecs,f=oM(d,lr(u),s.parsedCommandLine.options,s.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return s.parsedCommandLine={...s.parsedCommandLine,fileNames:f},f}setFileNamesOfAutpImportProviderOrAuxillaryProject(u,s){this.updateNonInferredProjectFiles(u,s,cte)}reloadConfiguredProject(u,s,d,f){const p=u.getCachedDirectoryStructureHost();f&&this.clearSemanticCache(u),p.clearCache();const E=u.getConfigFilePath();this.logger.info(`${d?"Loading":"Reloading"} configured project ${E}`),this.loadConfiguredProject(u,s),u.updateGraph(),this.sendConfigFileDiagEvent(u,E)}clearSemanticCache(u){u.resolutionCache.clear(),u.getLanguageService(!1).cleanupSemanticCache(),u.cleanupProgram(),u.markAsDirty()}sendConfigFileDiagEvent(u,s){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const d=u.getLanguageService().getCompilerOptionsDiagnostics();d.push(...u.getAllProjectErrors()),this.eventHandler({eventName:ute,data:{configFileName:u.getConfigFilePath(),diagnostics:d,triggerFile:s}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s){if(!this.useInferredProjectPerProjectRoot||u.isDynamic&&s===void 0)return;if(s){const f=this.toCanonicalFileName(s);for(const p of this.inferredProjects)if(p.projectRootPath===f)return p;return this.createInferredProject(s,!1,s)}let d;for(const f of this.inferredProjects)f.projectRootPath&&GE(f.projectRootPath,u.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(d&&d.projectRootPath.length>f.projectRootPath.length||(d=f));return d}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(u){H.assert(!this.useSingleInferredProject);const s=this.toCanonicalFileName(this.getNormalizedAbsolutePath(u));for(const d of this.inferredProjects)if(!d.projectRootPath&&d.isOrphan()&&d.canonicalCurrentDirectory===s)return d;return this.createInferredProject(u)}createInferredProject(u,s,d){const f=d&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(d)||this.compilerOptionsForInferredProjects;let p,E;d&&(p=this.watchOptionsForInferredProjectsPerProjectRoot.get(d),E=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(d)),p===void 0&&(p=this.watchOptionsForInferredProjects),E===void 0&&(E=this.typeAcquisitionForInferredProjects),p=p||void 0;const v=new nge(this,this.documentRegistry,f,p==null?void 0:p.watchOptions,d,u,E);return v.setProjectErrors(p==null?void 0:p.errors),s?this.inferredProjects.unshift(v):this.inferredProjects.push(v),v}getOrCreateScriptInfoNotOpenedByClient(u,s,d){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(Dl(u),s,void 0,void 0,d)}getScriptInfo(u){return this.getScriptInfoForNormalizedPath(Dl(u))}getScriptInfoOrConfig(u){const s=Dl(u),d=this.getScriptInfoForNormalizedPath(s);if(d)return d;const f=this.configuredProjects.get(this.toPath(u));return f&&f.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(u){const s=ga(this.filenameToScriptInfo.entries(),([d,f])=>({path:d,fileName:f.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(u)}. -All files are: ${JSON.stringify(s)}`,"Err")}getSymlinkedProjects(u){let s;if(this.realpathToScriptInfos){const f=u.getRealpathIfDifferent();f&&L(this.realpathToScriptInfos.get(f),d),L(this.realpathToScriptInfos.get(u.path),d)}return s;function d(f){if(f!==u)for(const p of f.containingProjects)p.languageServiceEnabled&&!p.isOrphan()&&!p.getCompilerOptions().preserveSymlinks&&!u.isAttached(p)&&(s?h1(s,(E,v)=>v===f.path?!1:kt(E,p))||s.add(f.path,p):(s=wm(),s.add(f.path,p)))}}watchClosedScriptInfo(u){if(H.assert(!u.fileWatcher),!u.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Pa(u.path,this.globalCacheLocationDirectoryPath))){const s=u.path.indexOf("/node_modules/");!this.host.getModifiedTime||s===-1?u.fileWatcher=this.watchFactory.watchFile(u.fileName,(d,f)=>this.onSourceFileChanged(u,f),500,this.hostConfiguration.watchOptions,cd.ClosedScriptInfo):(u.mTime=this.getModifiedTime(u),u.fileWatcher=this.watchClosedScriptInfoInNodeModules(u.path.substr(0,s)))}}createNodeModulesWatcher(u){const s=this.watchFactory.watchDirectory(u,f=>{var p;const E=zQ(this.toPath(f));if(!E)return;const v=Ac(E);if((p=d.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(v==="package.json"||v==="node_modules")&&d.affectedModuleSpecifierCacheProjects.forEach(b=>{var B,k;(k=(B=this.findProject(b))==null?void 0:B.getModuleSpecifierCache())==null||k.clear()}),d.refreshScriptInfoRefCount)if(u===E)this.refreshScriptInfosInDirectory(u);else{const b=this.getScriptInfoForPath(E);b?Mct(b)&&this.refreshScriptInfo(b):t7(E)||this.refreshScriptInfosInDirectory(E)}},1,this.hostConfiguration.watchOptions,cd.NodeModules),d={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var f;!d.refreshScriptInfoRefCount&&!((f=d.affectedModuleSpecifierCacheProjects)!=null&&f.size)&&(s.close(),this.nodeModulesWatchers.delete(u))}};return this.nodeModulesWatchers.set(u,d),d}watchPackageJsonsInNodeModules(u,s){const d=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(u);return(d.affectedModuleSpecifierCacheProjects||(d.affectedModuleSpecifierCacheProjects=new Set)).add(s.getProjectName()),{close:()=>{var f;(f=d.affectedModuleSpecifierCacheProjects)==null||f.delete(s.getProjectName()),d.close()}}}watchClosedScriptInfoInNodeModules(u){const s=u+"/node_modules",d=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(s);return d.refreshScriptInfoRefCount++,{close:()=>{d.refreshScriptInfoRefCount--,d.close()}}}getModifiedTime(u){return(this.host.getModifiedTime(u.path)||K_).getTime()}refreshScriptInfo(u){const s=this.getModifiedTime(u);if(s!==u.mTime){const d=xse(u.mTime,s);u.mTime=s,this.onSourceFileChanged(u,d)}}refreshScriptInfosInDirectory(u){u=u+rl,this.filenameToScriptInfo.forEach(s=>{Mct(s)&&Pa(s.path,u)&&this.refreshScriptInfo(s)})}stopWatchingScriptInfo(u){u.fileWatcher&&(u.fileWatcher.close(),u.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(u,s,d,f,p){if(Pf(u)||HK(u))return this.getOrCreateScriptInfoWorker(u,s,!1,void 0,d,f,p);const E=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u));if(E)return E}getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,s,d,f,p){return this.getOrCreateScriptInfoWorker(u,s,!0,d,f,p)}getOrCreateScriptInfoForNormalizedPath(u,s,d,f,p,E){return this.getOrCreateScriptInfoWorker(u,this.currentDirectory,s,d,f,p,E)}getOrCreateScriptInfoWorker(u,s,d,f,p,E,v){H.assert(f===void 0||d,"ScriptInfo needs to be opened by client to be able to set its user defined content");const b=VK(u,s,this.toCanonicalFileName);let B=this.getScriptInfoForPath(b);if(!B){const k=HK(u);if(H.assert(Pf(u)||k||d,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} -Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),H.assert(!Pf(u)||this.currentDirectory===s||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(u)),"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} -Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),H.assert(!k||this.currentDirectory===s||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:ga(this.openFilesWithNonRootedDiskPath.keys())})} -Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!d&&!k&&!(v||this.host).fileExists(u))return;B=new ege(this.host,u,p,!!E,b,this.filenameToScriptInfoVersion.get(b)),this.filenameToScriptInfo.set(B.path,B),this.filenameToScriptInfoVersion.delete(B.path),d?!Pf(u)&&(!k||this.currentDirectory!==s)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(u),B):this.watchClosedScriptInfo(B)}return d&&(this.stopWatchingScriptInfo(B),B.open(f),E&&B.registerFileUpdate()),B}getScriptInfoForNormalizedPath(u){return!Pf(u)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u))||this.getScriptInfoForPath(VK(u,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(u){return this.filenameToScriptInfo.get(u)}getDocumentPositionMapper(u,s,d){const f=this.getOrCreateScriptInfoNotOpenedByClient(s,u.currentDirectory,this.host);if(!f){d&&u.addGeneratedFileWatch(s,d);return}if(f.getSnapshot(),Ja(f.sourceMapFilePath)){const k=this.getScriptInfoForPath(f.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(d,u,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;f.sourceMapFilePath=void 0}else if(f.sourceMapFilePath){f.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(d,u,f.sourceMapFilePath.sourceInfos);return}else if(f.sourceMapFilePath!==void 0)return;let p,E,v=(k,T)=>{const M=this.getOrCreateScriptInfoNotOpenedByClient(k,u.currentDirectory,this.host);if(!M){E=T;return}p=M;const z=M.getSnapshot();return M.documentPositionMapper!==void 0?M.documentPositionMapper:aw(z)};const b=u.projectName,B=Gfe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,b,f)},f.fileName,f.textStorage.getLineInfo(),v);return v=void 0,p?(f.sourceMapFilePath=p.path,p.declarationInfoPath=f.path,p.documentPositionMapper=B||!1,p.sourceInfos=this.addSourceInfoToSourceMap(d,u,p.sourceInfos)):E?f.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.currentDirectory===this.currentDirectory?E:$a(E,u.currentDirectory),f.path),sourceInfos:this.addSourceInfoToSourceMap(d,u)}:f.sourceMapFilePath=!1,B}addSourceInfoToSourceMap(u,s,d){if(u){const f=this.getOrCreateScriptInfoNotOpenedByClient(u,s.currentDirectory,s.directoryStructureHost);(d||(d=new Set)).add(f.path)}return d}addMissingSourceMapFile(u,s){return this.watchFactory.watchFile(u,()=>{const f=this.getScriptInfoForPath(s);f&&f.sourceMapFilePath&&!Ja(f.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(f.containingProjects,!0),this.delayUpdateSourceInfoProjects(f.sourceMapFilePath.sourceInfos),f.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,cd.MissingSourceMapFile)}getSourceFileLike(u,s,d){const f=s.projectName?s:this.findProject(s);if(f){const E=f.toPath(u),v=f.getSourceFile(E);if(v&&v.resolvedPath===E)return v}const p=this.getOrCreateScriptInfoNotOpenedByClient(u,(f||this).currentDirectory,f?f.directoryStructureHost:this.host);if(p){if(d&&Ja(d.sourceMapFilePath)&&p!==d){const E=this.getScriptInfoForPath(d.sourceMapFilePath);E&&(E.sourceInfos||(E.sourceInfos=new Set)).add(p.path)}return p.cacheSourceFile?p.cacheSourceFile.sourceFile:(p.sourceFileLike||(p.sourceFileLike={get text(){return H.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:E=>{const v=p.positionToLineOffset(E);return{line:v.line-1,character:v.offset-1}},getPositionOfLineAndCharacter:(E,v,b)=>p.lineOffsetToPosition(E+1,v+1,b)}),p.sourceFileLike)}}setPerformanceEventHandler(u){this.performanceEventHandler=u}setHostConfiguration(u){var s;if(u.file){const d=this.getScriptInfoForNormalizedPath(Dl(u.file));d&&(d.setOptions(Sw(u.formatOptions),u.preferences),this.logger.info(`Host configuration update for file ${u.file}`))}else{if(u.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=u.hostInfo,this.logger.info(`Host information ${u.hostInfo}`)),u.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Sw(u.formatOptions)},this.logger.info("Format host information updated")),u.preferences){const{lazyConfiguredProjectsFromExternalProject:d,includePackageJsonAutoImports:f}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...u.preferences},d&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(p=>{p.hasExternalProjectRef()&&p.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(p.getProjectName())&&p.updateGraph()}),f!==u.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}u.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=u.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),u.watchOptions&&(this.hostConfiguration.watchOptions=(s=GK(u.watchOptions))==null?void 0:s.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(u){return this.getWatchOptionsFromProjectWatchOptions(u.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(u){return u&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...u}:u||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(u=>{this.openFiles.has(u.path)||u.fileWatcher&&this.onSourceFileChanged(u,this.host.fileExists(u.fileName)?1:2)}),this.pendingProjectUpdates.forEach((u,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(pNe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(u=>{u.config&&(u.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,J3,"User requested reload projects"),this.externalProjects.forEach(u=>{this.clearSemanticCache(u),u.updateGraph()}),this.inferredProjects.forEach(u=>this.clearSemanticCache(u)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(u,s,d,f,p){const E=new Map,v=b=>{E.has(b.canonicalConfigFilePath)||(E.set(b.canonicalConfigFilePath,!0),this.reloadConfiguredProject(b,p,!1,s))};u==null||u.forEach((b,B)=>{if(this.configFileForOpenFiles.delete(B),!f(b))return;const k=this.getScriptInfoForPath(B);H.assert(k.isScriptOpen());const T=this.getConfigFileNameForFile(k);if(T){const M=this.findConfiguredProjectByProjectName(T)||this.createConfiguredProject(T);E.has(M.canonicalConfigFilePath)||(E.set(M.canonicalConfigFilePath,!0),d?(M.pendingUpdateLevel=2,M.pendingUpdateReason=p,s&&this.clearSemanticCache(M),this.delayUpdateProjectGraph(M)):(this.reloadConfiguredProject(M,p,!1,s),p9(M,k)||Bw(M,k.path,j=>(v(j),p9(j,k)),1)&&Bw(M,void 0,v,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(u){H.assert(u.containingProjects.length>0);const s=u.containingProjects[0];!s.isOrphan()&&Aw(s)&&s.isRoot(u)&&L(u.containingProjects,d=>d!==s&&!d.isOrphan())&&s.removeFile(u,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()?this.assignOrphanScriptInfoToInferredProject(d,u):this.removeRootOfInferredProjectIfNowPartOfOtherProject(d)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Gm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(u,s,d,f){return this.openClientFileWithNormalizedPath(Dl(u),s,d,!1,f?Dl(f):void 0)}getOriginalLocationEnsuringConfiguredProject(u,s){const d=u.isSourceOfProjectReferenceRedirect(s.fileName),f=d?s:u.getSourceMapper().tryGetSourcePosition(s);if(!f)return;const{fileName:p}=f,E=this.getScriptInfo(p);if(!E&&!this.host.fileExists(p))return;const v={fileName:Dl(p),path:this.toPath(p)},b=this.getConfigFileNameForFile(v);if(!b)return;let B=this.findConfiguredProjectByProjectName(b);if(!B){if(u.getCompilerOptions().disableReferencedProjectLoad)return d?s:E!=null&&E.containingProjects.length?f:s;B=this.createAndLoadConfiguredProject(b,`Creating project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`)}Gm(B);const k=z=>{const j=this.getScriptInfo(p);return j&&p9(z,j)};if(B.isSolution()||!k(B)){if(B=Bw(B,p,z=>(Gm(z),k(z)?z:void 0),2,`Creating project referenced in solution ${B.projectName} to find possible configured project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`),!B)return;if(B===u)return f}M(B);const T=this.getScriptInfo(p);if(!T||!T.containingProjects.length)return;return T.containingProjects.forEach(z=>{Qv(z)&&M(z)}),f;function M(z){u.originalConfiguredProjects||(u.originalConfiguredProjects=new Set),u.originalConfiguredProjects.add(z.canonicalConfigFilePath)}}fileExists(u){return!!this.getScriptInfoForNormalizedPath(u)||this.host.fileExists(u)}findExternalProjectContainingOpenScriptInfo(u){return Le(this.externalProjects,s=>(Gm(s),s.containsScriptInfo(u)))}getOrCreateOpenScriptInfo(u,s,d,f,p){const E=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,p?this.getNormalizedAbsolutePath(p):this.currentDirectory,s,d,f);return this.openFiles.set(E.path,p),E}assignProjectToOpenedScriptInfo(u){let s,d,f=this.findExternalProjectContainingOpenScriptInfo(u),p,E,v=!1;return!f&&this.serverMode===0&&(s=this.getConfigFileNameForFile(u),s&&(f=this.findConfiguredProjectByProjectName(s),f?Gm(f):(f=this.createLoadAndUpdateConfiguredProject(s,`Creating possible configured project for ${u.fileName} to open`),v=!0),E=f.containsScriptInfo(u)?f:void 0,p=f,p9(f,u)||Bw(f,u.path,b=>{if(Gm(b),Ha(p)?p.push(b):p=[f,b],p9(b,u))return E=b,b;!E&&b.containsScriptInfo(u)&&(E=b)},2,`Creating project referenced in solution ${f.projectName} to find possible configured project for ${u.fileName} to open`),E?(s=E.getConfigFilePath(),(E!==f||v)&&(d=E.getAllProjectErrors(),this.sendConfigFileDiagEvent(E,u.fileName))):s=void 0,this.createAncestorProjects(u,f))),u.containingProjects.forEach(Gm),u.isOrphan()&&(Ha(p)?p.forEach(b=>this.sendConfigFileDiagEvent(b,u.fileName)):p&&this.sendConfigFileDiagEvent(p,u.fileName),H.assert(this.openFiles.has(u.path)),this.assignOrphanScriptInfoToInferredProject(u,this.openFiles.get(u.path))),H.assert(!u.isOrphan()),{configFileName:s,configFileErrors:d,retainProjects:p}}createAncestorProjects(u,s){if(u.isAttached(s))for(;;){if(!s.isInitialLoadPending()&&(!s.getCompilerOptions().composite||s.getCompilerOptions().disableSolutionSearching))return;const d=this.getConfigFileNameForFile({fileName:s.getConfigFilePath(),path:u.path,configFileInfo:!0});if(!d)return;const f=this.findConfiguredProjectByProjectName(d)||this.createConfiguredProjectWithDelayLoad(d,`Creating project possibly referencing default composite project ${s.getProjectName()} of open file ${u.fileName}`);f.isInitialLoadPending()&&f.setPotentialProjectReference(s.canonicalConfigFilePath),s=f}}loadAncestorProjectTree(u){u=u||Fa(this.configuredProjects,(d,f)=>f.isInitialLoadPending()?void 0:[d,!0]);const s=new Set;for(const d of ga(this.configuredProjects.values()))Nct(d,f=>u.has(f))&&Gm(d),this.ensureProjectChildren(d,u,s)}ensureProjectChildren(u,s,d){var f;if(!r0(d,u.canonicalConfigFilePath)||u.getCompilerOptions().disableReferencedProjectLoad)return;const p=(f=u.getCurrentProgram())==null?void 0:f.getResolvedProjectReferences();if(p)for(const E of p){if(!E)continue;const v=S1e(E.references,k=>s.has(k.sourceFile.path)?k:void 0);if(!v)continue;const b=Dl(E.sourceFile.fileName),B=u.projectService.findConfiguredProjectByProjectName(b)||u.projectService.createAndLoadConfiguredProject(b,`Creating project referenced by : ${u.projectName} as it references project ${v.sourceFile.fileName}`);Gm(B),this.ensureProjectChildren(B,s,d)}}cleanupAfterOpeningFile(u){this.removeOrphanConfiguredProjects(u);for(const s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(u,s,d,f,p){const E=this.getOrCreateOpenScriptInfo(u,s,d,f,p),{retainProjects:v,...b}=this.assignProjectToOpenedScriptInfo(E);return this.cleanupAfterOpeningFile(v),this.telemetryOnOpenFile(E),this.printProjects(),b}removeOrphanConfiguredProjects(u){const s=new Map(this.configuredProjects),d=E=>{!E.isOrphan()&&E.originalConfiguredProjects&&E.originalConfiguredProjects.forEach((v,b)=>{const B=this.getConfiguredProjectByCanonicalConfigFilePath(b);return B&&p(B)})};u&&(Ha(u)?u.forEach(p):p(u)),this.inferredProjects.forEach(d),this.externalProjects.forEach(d),this.configuredProjects.forEach(E=>{E.hasOpenRef()?p(E):s.has(E.canonicalConfigFilePath)&&Pct(E,v=>f(v)&&p(E))}),s.forEach(E=>this.removeProject(E));function f(E){return E.hasOpenRef()||!s.has(E.canonicalConfigFilePath)}function p(E){s.delete(E.canonicalConfigFilePath)&&(d(E),Pct(E,p))}}removeOrphanScriptInfos(){const u=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(s=>{if(!s.isScriptOpen()&&s.isOrphan()&&!s.isContainedByBackgroundProject()){if(!s.sourceMapFilePath)return;let d;if(Ja(s.sourceMapFilePath)){const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;if(!d||!U_(d,f=>{const p=this.getScriptInfoForPath(f);return!!p&&(p.isScriptOpen()||!p.isOrphan())}))return}if(u.delete(s.path),s.sourceMapFilePath){let d;if(Ja(s.sourceMapFilePath)){u.delete(s.sourceMapFilePath);const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;d&&d.forEach((f,p)=>u.delete(p))}}),u.forEach(s=>{this.stopWatchingScriptInfo(s),this.deleteScriptInfo(s),s.closeSourceMapFileWatcher()})}telemetryOnOpenFile(u){if(this.serverMode!==0||!this.eventHandler||!u.isJavaScript()||!Ip(this.allJsFilesForOpenFileTelemetry,u.path))return;const s=this.ensureDefaultProjectForFile(u);if(!s.languageServiceEnabled)return;const d=s.getSourceFile(u.path),f=!!d&&!!d.checkJsDirective;this.eventHandler({eventName:cge,data:{info:{checkJs:f}}})}closeClientFile(u,s){const d=this.getScriptInfoForNormalizedPath(Dl(u)),f=d?this.closeOpenFile(d,s):!1;return s||this.printProjects(),f}collectChanges(u,s,d,f){for(const p of s){const E=Le(u,v=>v.projectName===p.getProjectName());f.push(p.getChangesSinceVersion(E&&E.version,d))}}synchronizeProjectList(u,s){const d=[];return this.collectChanges(u,this.externalProjects,s,d),this.collectChanges(u,this.configuredProjects.values(),s,d),this.collectChanges(u,this.inferredProjects,s,d),d}applyChangesInOpenFiles(u,s,d){let f,p=!1;if(u)for(const v of u){const b=this.getOrCreateOpenScriptInfo(Dl(v.fileName),v.content,sge(v.scriptKind),v.hasMixedContent,v.projectRootPath?Dl(v.projectRootPath):void 0);(f||(f=[])).push(b)}if(s)for(const v of s){const b=this.getScriptInfo(v.fileName);H.assert(!!b),this.applyChangesToFile(b,v.changes)}if(d)for(const v of d)p=this.closeClientFile(v,!0)||p;let E;f&&(E=ju(f,v=>this.assignProjectToOpenedScriptInfo(v).retainProjects)),p&&this.assignOrphanScriptInfosToInferredProject(),f?(this.cleanupAfterOpeningFile(E),f.forEach(v=>this.telemetryOnOpenFile(v)),this.printProjects()):S(d)&&this.printProjects()}applyChangesToFile(u,s){for(const d of s)u.editContent(d.span.start,d.span.start+d.span.length,d.newText)}closeConfiguredProjectReferencedFromExternalProject(u){const s=this.findConfiguredProjectByProjectName(u);if(s&&(s.deleteExternalProjectReference(),!s.hasOpenRef())){this.removeProject(s);return}}closeExternalProject(u){const s=Dl(u),d=this.externalProjectToConfiguredProjectMap.get(s);if(d){for(const f of d)this.closeConfiguredProjectReferencedFromExternalProject(f);this.externalProjectToConfiguredProjectMap.delete(s)}else{const f=this.findExternalProjectByProjectName(u);f&&this.removeProject(f)}}openExternalProjects(u){const s=lg(this.externalProjects,d=>d.getProjectName(),d=>!0);U_(this.externalProjectToConfiguredProjectMap,d=>{s.set(d,!0)});for(const d of u)this.openExternalProject(d),s.delete(d.projectFileName);U_(s,d=>{this.closeExternalProject(d)})}static escapeFilenameForRegex(u){return u.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=dge}applySafeList(u){const{rootFiles:s}=u,d=u.typeAcquisition;if(H.assert(!!d,"proj.typeAcquisition should be set by now"),d.enable===!1||d.disableFilenameBasedTypeAcquisition)return[];const f=d.include||(d.include=[]),p=[],E=s.map(k=>q1(k.fileName)),v=[];for(const k of Object.keys(this.safelist)){const T=this.safelist[k];for(const M of E)if(T.match.test(M)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${M}'`),T.types)for(const z of T.types)f.includes(z)||f.push(z);if(T.exclude)for(const z of T.exclude){const j=M.replace(T.match,(...J)=>z.map(K=>typeof K=="number"?Ja(J[K])?QOe.escapeFilenameForRegex(J[K]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):K).join(""));p.includes(j)||p.push(j)}else{const z=QOe.escapeFilenameForRegex(M);p.includes(z)||p.push(z)}}}const b=p.map(k=>new RegExp(k,"i")),B=[];for(let k=0;kT.test(E[k])))v.push(E[k]);else{let T=!1;if(d.enable){const M=Ac($g(E[k]));if(Ml(M,"js")){const z=_h(M),j=soe(z),J=this.legacySafelist.get(j);J!==void 0&&(this.logger.info(`Excluded '${E[k]}' because it matched ${j} from the legacy safelist`),v.push(E[k]),T=!0,f.includes(J)||f.push(J))}}T||(/^.+[.-]min\.js$/.test(E[k])?v.push(E[k]):B.push(u.rootFiles[k]))}return u.rootFiles=B,v}openExternalProject(u){u.typeAcquisition=u.typeAcquisition||{},u.typeAcquisition.include=u.typeAcquisition.include||[],u.typeAcquisition.exclude=u.typeAcquisition.exclude||[],u.typeAcquisition.enable===void 0&&(u.typeAcquisition.enable=uNe(u.rootFiles.map(v=>v.fileName)));const s=this.applySafeList(u);let d;const f=[];for(const v of u.rootFiles){const b=Dl(v.fileName);qpe(b)?this.serverMode===0&&this.host.fileExists(b)&&(d||(d=[])).push(b):f.push(v)}d&&d.sort();const p=this.findExternalProjectByProjectName(u.projectFileName);let E;if(p){if(p.excludedFiles=s,!d){const v=Yee(u.options),b=GK(u.options,p.getCurrentDirectory()),B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.projectFileName,v,u.rootFiles,dte);B?p.disableLanguageService(B):p.enableLanguageService(),p.setProjectErrors(b==null?void 0:b.errors),this.updateRootAndOptionsOfNonInferredProject(p,u.rootFiles,dte,v,u.typeAcquisition,u.options.compileOnSave,b==null?void 0:b.watchOptions),p.updateGraph();return}this.closeExternalProject(u.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(u.projectFileName))if(!d)this.closeExternalProject(u.projectFileName);else{const v=this.externalProjectToConfiguredProjectMap.get(u.projectFileName);let b=0,B=0;for(;bk||((E||(E=[])).push(T),B++),b++)}for(let k=B;kthis.logger.info(E));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let p=this.pendingPluginEnablements.get(u);p||this.pendingPluginEnablements.set(u,p=[]),p.push(f);return}this.endEnablePlugin(u,Wk.importServicePluginSync(s,d,this.host,f=>this.logger.info(f)))}endEnablePlugin(u,{pluginConfigEntry:s,resolvedModule:d,errorLogs:f}){var p;if(d){const E=(p=this.currentPluginConfigOverrides)==null?void 0:p.get(s.name);if(E){const v=s.name;s=E,s.name=v}u.enableProxy(d,s)}else L(f,E=>this.logger.info(E)),this.logger.info(`Couldn't find ${s.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const u=ga(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(u),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(u){H.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Vt(u,([s,d])=>this.enableRequestedPluginsForProjectAsync(s,d))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(u,s){const d=await Promise.all(s);if(!u.isClosed()){for(const f of d)this.endEnablePlugin(u,f);this.delayUpdateProjectGraph(u)}}configurePlugin(u){this.forEachEnabledProject(s=>s.onPluginConfigurationChanged(u.pluginName,u.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(u.pluginName,u.configuration)}getPackageJsonsVisibleToFile(u,s){const d=this.packageJsonCache,f=s&&this.toPath(s),p=this.toPath(u),E=[],v=b=>{switch(d.directoryHasPackageJson(b)){case 3:return d.searchDirectoryAndAncestors(b),v(b);case-1:const B=cr(b,"package.json");this.watchPackageJsonFile(B);const k=d.getInDirectory(b);k&&E.push(k)}if(f&&f===b)return!0};return Ug(lr(p),v),E}getNearestAncestorDirectoryWithPackageJson(u){return Ug(u,s=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(s))){case-1:return s;case 0:return;case 3:return this.host.fileExists(cr(s,"package.json"))?s:void 0}})}watchPackageJsonFile(u){const s=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);s.has(u)||(this.invalidateProjectPackageJson(u),s.set(u,this.watchFactory.watchFile(u,(d,f)=>{const p=this.toPath(d);switch(f){case 0:return H.fail();case 1:this.packageJsonCache.addOrUpdate(p),this.invalidateProjectPackageJson(p);break;case 2:this.packageJsonCache.delete(p),this.invalidateProjectPackageJson(p),s.get(p).close(),s.delete(p)}},250,this.hostConfiguration.watchOptions,cd.PackageJson)))}onAddPackageJson(u){this.packageJsonCache.addOrUpdate(u),this.watchPackageJsonFile(u)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(u){this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),this.externalProjects.forEach(s);function s(d){u?d.onPackageJsonChange(u):d.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=jQt())}},gNe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,mge=gNe}});function ENe(t){let u,s,d;const f={get(b,B,k,T){if(!(!s||d!==E(b,k,T)))return s.get(B)},set(b,B,k,T,M,z){if(p(b,k,T).set(B,v(M,z,!1)),z){for(const j of M)if(j.isInNodeModules){const J=j.path.substring(0,j.path.indexOf(o_)+o_.length-1);u!=null&&u.has(J)||(u||(u=new Map)).set(J,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.modulePaths=M:z.set(B,v(M,void 0,void 0))},setBlockedByPackageJsonDependencies(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.isBlockedByPackageJsonDependencies=M:z.set(B,v(void 0,void 0,M))},clear(){u==null||u.forEach(b=>b.close()),s==null||s.clear(),u==null||u.clear(),d=void 0},count(){return s?s.size:0}};return H.isDebugging&&Object.defineProperty(f,"__cache",{get:()=>s}),f;function p(b,B,k){const T=E(b,B,k);return s&&d!==T&&f.clear(),d=T,s||(s=new Map)}function E(b,B,k){return`${b},${B.importModuleSpecifierEnding},${B.importModuleSpecifierPreference},${k.overrideImportMode}`}function v(b,B,k){return{modulePaths:b,moduleSpecifiers:B,isBlockedByPackageJsonDependencies:k}}}var HQt=o({"src/server/moduleSpecifierCache.ts"(){Xv()}});function _Ne(t){const u=new Map,s=new Map;return{addOrUpdate:d,forEach:u.forEach.bind(u),get:u.get.bind(u),delete:p=>{u.delete(p),s.set(lr(p),!0)},getInDirectory:p=>u.get(cr(p,"package.json"))||void 0,directoryHasPackageJson:f,searchDirectoryAndAncestors:p=>{Ug(p,E=>{if(f(E)!==3)return!0;const v=t.toPath(cr(E,"package.json"));QH(t,v)?d(v):s.set(E,!0)})}};function d(p){const E=H.checkDefined(Cfe(p,t.host));u.set(p,E),s.delete(lr(p))}function f(p){return u.has(cr(p,"package.json"))?-1:s.has(p)?0:3}}var KQt=o({"src/server/packageJsonCache.ts"(){Xv()}});function WQt(t){const u=t[0],s=t[1];return(1e9*u+s)/1e6}function Oct(t,u){if((Aw(t)||ige(t))&&t.isJsOnlyProject()){const s=t.getScriptInfoForNormalizedPath(u);return s&&!s.isJavaScript()}return!1}function GQt(t){return c4(t)||!!t.emitDecoratorMetadata}function jct(t,u,s){const d=u.getScriptInfoForNormalizedPath(t);return{start:d.positionToLineOffset(s.start),end:d.positionToLineOffset(s.start+s.length),text:lE(s.messageText,` -`),code:s.code,category:Gy(s),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,source:s.source,relatedInformation:Vt(s.relatedInformation,pge)}}function pge(t){return t.file?{span:{start:$K(s0(t.file,t.start)),end:$K(s0(t.file,t.start+t.length)),file:t.file.fileName},message:lE(t.messageText,` -`),category:Gy(t),code:t.code}:{message:lE(t.messageText,` -`),category:Gy(t),code:t.code}}function $K(t){return{line:t.line+1,offset:t.character+1}}function UK(t,u){const s=t.file&&$K(s0(t.file,t.start)),d=t.file&&$K(s0(t.file,t.start+t.length)),f=lE(t.messageText,` -`),{code:p,source:E}=t,v=Gy(t),b={start:s,end:d,text:f,code:p,category:v,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:E,relatedInformation:Vt(t.relatedInformation,pge)};return u?{...b,fileName:t.file&&t.file.fileName}:b}function JQt(t,u){return t.every(s=>Ec(s.span)p+=` ${E} +`))}return p}print(u,s,d){this.writeLog(`Project '${this.projectName}' (${uz[this.projectKind]})`),this.writeLog(this.filesToStringWorker(u&&this.projectService.logger.hasLevel(3),s&&this.projectService.logger.hasLevel(3),d&&this.projectService.logger.hasLevel(3))),this.writeLog("-----------------------------------------------"),this.autoImportProviderHost&&this.autoImportProviderHost.print(!1,!1,!1)}setCompilerOptions(u){var s;if(u){u.allowNonTsExtensions=!0;const d=this.compilerOptions;this.compilerOptions=u,this.setInternalCompilerOptionsForEmittingJsFiles(),(s=this.noDtsResolutionProject)==null||s.setCompilerOptions(this.getCompilerOptionsForNoDtsResolutionProject()),ZU(d,u)&&(this.cachedUnresolvedImportsPerFile.clear(),this.lastCachedUnresolvedImportsList=void 0,this.resolutionCache.onChangesAffectModuleResolution(),this.moduleSpecifierCache.clear()),this.markAsDirty()}}setWatchOptions(u){this.watchOptions=u}getWatchOptions(){return this.watchOptions}setTypeAcquisition(u){u&&(this.typeAcquisition=this.removeLocalTypingsFromTypeAcquisition(u))}getTypeAcquisition(){return this.typeAcquisition||{}}getChangesSinceVersion(u,s){var d,f;const p=s?b=>Ea(b.entries(),([B,k])=>({fileName:B,isSourceOfProjectReferenceRedirect:k})):b=>Ea(b.keys());this.isInitialLoadPending()||Jm(this);const E={projectName:this.getProjectName(),version:this.projectProgramVersion,isInferred:Aw(this),options:this.getCompilationSettings(),languageServiceDisabled:!this.languageServiceEnabled,lastFileExceededProgramSize:this.lastFileExceededProgramSize},v=this.updatedFileNames;if(this.updatedFileNames=void 0,this.lastReportedFileNames&&u===this.lastReportedVersion){if(this.projectProgramVersion===this.lastReportedVersion&&!v)return{info:E,projectErrors:this.getGlobalProjectErrors()};const b=this.lastReportedFileNames,B=((d=this.externalFiles)==null?void 0:d.map(J=>({fileName:xl(J),isSourceOfProjectReferenceRedirect:!1})))||qc,k=lg(this.getFileNamesWithRedirectInfo(!!s).concat(B),J=>J.fileName,J=>J.isSourceOfProjectReferenceRedirect),T=new Map,M=new Map,z=v?Ea(v.keys()):[],j=[];return f1(k,(J,K)=>{b.has(K)?s&&J!==b.get(K)&&j.push({fileName:K,isSourceOfProjectReferenceRedirect:J}):T.set(K,J)}),f1(b,(J,K)=>{k.has(K)||M.set(K,J)}),this.lastReportedFileNames=k,this.lastReportedVersion=this.projectProgramVersion,{info:E,changes:{added:p(T),removed:p(M),updated:s?z.map(J=>({fileName:J,isSourceOfProjectReferenceRedirect:this.isSourceOfProjectReferenceRedirect(J)})):z,updatedRedirects:s?j:void 0},projectErrors:this.getGlobalProjectErrors()}}else{const b=this.getFileNamesWithRedirectInfo(!!s),B=((f=this.externalFiles)==null?void 0:f.map(T=>({fileName:xl(T),isSourceOfProjectReferenceRedirect:!1})))||qc,k=b.concat(B);return this.lastReportedFileNames=lg(k,T=>T.fileName,T=>T.isSourceOfProjectReferenceRedirect),this.lastReportedVersion=this.projectProgramVersion,{info:E,files:s?k:k.map(T=>T.fileName),projectErrors:this.getGlobalProjectErrors()}}}removeRoot(u){EO(this.rootFiles,u),this.rootFilesMap.delete(u.path)}isSourceOfProjectReferenceRedirect(u){return!!this.program&&this.program.isSourceOfProjectReferenceRedirect(u)}getGlobalPluginSearchPaths(){return[...this.projectService.pluginProbeLocations,hr(this.projectService.getExecutingFilePath(),"../../..")]}enableGlobalPlugins(u){if(!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();for(const f of this.projectService.globalPlugins)f&&(u.plugins&&u.plugins.some(p=>p.name===f)||(this.projectService.logger.info(`Loading global plugin ${f}`),this.enablePlugin({name:f,global:!0},d)))}enablePlugin(u,s){this.projectService.requestEnablePlugin(this,u,s)}enableProxy(u,s){try{if(typeof u!="function"){this.projectService.logger.info(`Skipped loading plugin ${s.name} because it did not expose a proper factory function`);return}const d={config:s,project:this,languageService:this.languageService,languageServiceHost:this,serverHost:this.projectService.host,session:this.projectService.session},f=u({typescript:idt}),p=f.create(d);for(const E of Object.keys(this.languageService))E in p||(this.projectService.logger.info(`Plugin activation warning: Missing proxied method ${E} in created LS. Patching.`),p[E]=this.languageService[E]);this.projectService.logger.info("Plugin validation succeeded"),this.languageService=p,this.plugins.push({name:s.name,module:f})}catch(d){this.projectService.logger.info(`Plugin activation failed: ${d}`)}}onPluginConfigurationChanged(u,s){this.plugins.filter(d=>d.name===u).forEach(d=>{d.module.onConfigurationChanged&&d.module.onConfigurationChanged(s)})}refreshDiagnostics(){this.projectService.sendProjectsUpdatedInBackgroundEvent()}getPackageJsonsVisibleToFile(u,s){return this.projectService.serverMode!==0?qc:this.projectService.getPackageJsonsVisibleToFile(u,s)}getNearestAncestorDirectoryWithPackageJson(u){return this.projectService.getNearestAncestorDirectoryWithPackageJson(u)}getPackageJsonsForAutoImport(u){const s=this.getPackageJsonsVisibleToFile(hr(this.currentDirectory,QB),u);return this.packageJsonsForAutoImport=new Set(s.map(d=>d.fileName)),s}getPackageJsonCache(){return this.projectService.packageJsonCache}getCachedExportInfoMap(){return this.exportMapCache||(this.exportMapCache=zfe(this))}clearCachedExportInfoMap(){var u;(u=this.exportMapCache)==null||u.clear()}getModuleSpecifierCache(){return this.moduleSpecifierCache}includePackageJsonAutoImports(){return this.projectService.includePackageJsonAutoImports()===0||!this.languageServiceEnabled||eK(this.currentDirectory)||!this.isDefaultProjectForOpenFiles()?0:this.projectService.includePackageJsonAutoImports()}getHostForAutoImportProvider(){var u,s;return this.program?{fileExists:this.program.fileExists,directoryExists:this.program.directoryExists,realpath:this.program.realpath||((u=this.projectService.host.realpath)==null?void 0:u.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:(s=this.projectService.host.trace)==null?void 0:s.bind(this.projectService.host),useCaseSensitiveFileNames:this.program.useCaseSensitiveFileNames(),readDirectory:this.projectService.host.readDirectory.bind(this.projectService.host)}:this.projectService.host}getPackageJsonAutoImportProvider(){var u,s,d;if(this.autoImportProviderHost===!1)return;if(this.projectService.serverMode!==0){this.autoImportProviderHost=!1;return}if(this.autoImportProviderHost){if(Jm(this.autoImportProviderHost),this.autoImportProviderHost.isEmpty()){this.autoImportProviderHost.close(),this.autoImportProviderHost=void 0;return}return this.autoImportProviderHost.getCurrentProgram()}const f=this.includePackageJsonAutoImports();if(f){(u=Gn)==null||u.push(Gn.Phase.Session,"getPackageJsonAutoImportProvider");const p=J0();if(this.autoImportProviderHost=sge.create(f,this,this.getHostForAutoImportProvider(),this.documentRegistry),this.autoImportProviderHost)return Jm(this.autoImportProviderHost),this.sendPerformanceEvent("CreatePackageJsonAutoImportProvider",J0()-p),(s=Gn)==null||s.pop(),this.autoImportProviderHost.getCurrentProgram();(d=Gn)==null||d.pop()}}isDefaultProjectForOpenFiles(){return!!f1(this.projectService.openFiles,(u,s)=>this.projectService.tryGetDefaultProjectForFile(xl(s))===this)}watchNodeModulesForPackageJsonChanges(u){return this.projectService.watchPackageJsonsInNodeModules(this.toPath(u),this)}getIncompleteCompletionsCache(){return this.projectService.getIncompleteCompletionsCache()}getNoDtsResolutionProject(u){return H.assert(this.projectService.serverMode===0),this.noDtsResolutionProject||(this.noDtsResolutionProject=new age(this.projectService,this.documentRegistry,this.getCompilerOptionsForNoDtsResolutionProject(),this.currentDirectory)),this.noDtsResolutionProject.rootFile!==u&&(this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this.noDtsResolutionProject,[u]),this.noDtsResolutionProject.rootFile=u),this.noDtsResolutionProject}getCompilerOptionsForNoDtsResolutionProject(){return{...this.getCompilerOptions(),noDtsResolution:!0,allowJs:!0,maxNodeModuleJsDepth:3,diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Dt,lib:Dt,noLib:!0}}},rge=class extends Wk{constructor(t,u,s,d,f,p,E){super(t.newInferredProjectName(),0,t,u,void 0,void 0,s,!1,d,t.host,p),this._isJsInferredProject=!1,this.typeAcquisition=E,this.projectRootPath=f&&t.toCanonicalFileName(f),!f&&!t.useSingleInferredProject&&(this.canonicalCurrentDirectory=t.toCanonicalFileName(this.currentDirectory)),this.enableGlobalPlugins(this.getCompilerOptions())}toggleJsInferredProject(t){t!==this._isJsInferredProject&&(this._isJsInferredProject=t,this.setCompilerOptions())}setCompilerOptions(t){if(!t&&!this.getCompilationSettings())return;const u=efe(t||this.getCompilationSettings());this._isJsInferredProject&&typeof u.maxNodeModuleJsDepth!="number"?u.maxNodeModuleJsDepth=2:this._isJsInferredProject||(u.maxNodeModuleJsDepth=void 0),u.allowJs=!0,super.setCompilerOptions(u)}addRoot(t){H.assert(t.isScriptOpen()),this.projectService.startWatchingConfigFilesForInferredProjectRoot(t),!this._isJsInferredProject&&t.isJavaScript()?this.toggleJsInferredProject(!0):this.isOrphan()&&this._isJsInferredProject&&!t.isJavaScript()&&this.toggleJsInferredProject(!1),super.addRoot(t)}removeRoot(t){this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t),super.removeRoot(t),!this.isOrphan()&&this._isJsInferredProject&&t.isJavaScript()&&ye(this.getRootScriptInfos(),u=>!u.isJavaScript())&&this.toggleJsInferredProject(!1)}isOrphan(){return!this.hasRoots()}isProjectWithSingleRoot(){return!this.projectRootPath&&!this.projectService.useSingleInferredProject||this.getRootScriptInfos().length===1}close(){L(this.getRootScriptInfos(),t=>this.projectService.stopWatchingConfigFilesForInferredProjectRoot(t)),super.close()}getTypeAcquisition(){return this.typeAcquisition||{enable:sNe(this),include:Dt,exclude:Dt}}},age=class extends Wk{constructor(t,u,s,d){super(t.newAuxiliaryProjectName(),4,t,u,!1,void 0,s,!1,void 0,t.host,d)}isOrphan(){return!0}scheduleInvalidateResolutionsOfFailedLookupLocations(){}},oge=class nje extends Wk{constructor(u,s,d,f){super(u.projectService.newAutoImportProviderProjectName(),3,u.projectService,d,!1,void 0,f,!1,u.getWatchOptions(),u.projectService.host,u.currentDirectory),this.hostProject=u,this.rootFileNames=s,this.useSourceOfProjectReferenceRedirect=Lo(this.hostProject,this.hostProject.useSourceOfProjectReferenceRedirect),this.getParsedCommandLine=Lo(this.hostProject,this.hostProject.getParsedCommandLine)}static getRootFileNames(u,s,d,f){var p,E;if(!u)return Dt;const v=s.getCurrentProgram();if(!v)return Dt;const b=J0();let B,k;const T=hr(s.currentDirectory,QB),M=s.getPackageJsonsForAutoImport(hr(s.currentDirectory,T));for(const K of M)(p=K.dependencies)==null||p.forEach((Y,oe)=>j(oe)),(E=K.peerDependencies)==null||E.forEach((Y,oe)=>j(oe));let z=0;if(B){const K=s.getSymlinkCache();for(const Y of Ea(B.keys())){if(u===2&&z>this.maxDependencies)return s.log(`AutoImportProviderProject: attempted to add more than ${this.maxDependencies} dependencies. Aborting.`),Dt;const oe=Cde(Y,s.currentDirectory,f,d,v.getModuleResolutionCache());if(oe){const ge=J(oe,v,K);if(ge){k=mi(k,ge),z+=ge.length?1:0;continue}}if(!L([s.currentDirectory,s.getGlobalTypingsCacheLocation()],ge=>{if(ge){const ae=Cde(`@types/${Y}`,ge,f,d,v.getModuleResolutionCache());if(ae){const Ce=J(ae,v,K);return k=mi(k,Ce),z+=Ce!=null&&Ce.length?1:0,!0}}})&&oe&&f.allowJs&&f.maxNodeModuleJsDepth){const ge=J(oe,v,K,!0);k=mi(k,ge),z+=ge!=null&&ge.length?1:0}}}return k!=null&&k.length&&s.log(`AutoImportProviderProject: found ${k.length} root files in ${z} dependencies in ${J0()-b} ms`),k||Dt;function j(K){Ma(K,"@types/")||(B||(B=new Set)).add(K)}function J(K,Y,oe,se){var ge;const ae=Ade(K,f,d,Y.getModuleResolutionCache(),se);if(ae){const Ce=(ge=d.realpath)==null?void 0:ge.call(d,K.packageDirectory),ne=Ce?s.toPath(Ce):void 0,ve=ne&&ne!==s.toPath(K.packageDirectory);return ve&&oe.setSymlinkedDirectory(K.packageDirectory,{real:zd(Ce),realPath:zd(ne)}),qi(ae,Se=>{const Ne=ve?Se.replace(K.packageDirectory,Ce):Se;if(!Y.getSourceFile(Ne)&&!(ve&&Y.getSourceFile(Se)))return Ne})}}}static create(u,s,d,f){if(u===0)return;const p={...s.getCompilerOptions(),...this.compilerOptionsOverrides},E=this.getRootFileNames(u,s,d,p);if(E.length)return new nje(s,E,f,p)}isEmpty(){return!Ge(this.rootFileNames)}isOrphan(){return!0}updateGraph(){let u=this.rootFileNames;u||(u=nje.getRootFileNames(this.hostProject.includePackageJsonAutoImports(),this.hostProject,this.hostProject.getHostForAutoImportProvider(),this.getCompilationSettings())),this.projectService.setFileNamesOfAutpImportProviderOrAuxillaryProject(this,u),this.rootFileNames=u;const s=this.getCurrentProgram(),d=super.updateGraph();return s&&s!==this.getCurrentProgram()&&this.hostProject.clearCachedExportInfoMap(),d}scheduleInvalidateResolutionsOfFailedLookupLocations(){}hasRoots(){var u;return!!((u=this.rootFileNames)!=null&&u.length)}markAsDirty(){this.rootFileNames=void 0,super.markAsDirty()}getScriptFileNames(){return this.rootFileNames||Dt}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 u;return(u=this.hostProject.getCurrentProgram())==null?void 0:u.getModuleResolutionCache()}},oge.maxDependencies=10,oge.compilerOptionsOverrides={diagnostics:!1,skipLibCheck:!0,sourceMap:!1,types:Dt,lib:Dt,noLib:!0},sge=oge,lge=class extends Wk{constructor(t,u,s,d,f){super(t,1,s,d,!1,void 0,{},!1,void 0,f,dr(t)),this.canonicalConfigFilePath=u,this.openFileWatchTriggered=new Map,this.canConfigFileJsonReportNoInputFiles=!1,this.externalProjectRefCount=0,this.isInitialLoadPending=J3,this.sendLoadingProjectFinish=!1}setCompilerHost(t){this.compilerHost=t}getCompilerHost(){return this.compilerHost}useSourceOfProjectReferenceRedirect(){return this.languageServiceEnabled}getParsedCommandLine(t){const u=Uo(t),s=this.projectService.toCanonicalFileName(u);let d=this.projectService.configFileExistenceInfoCache.get(s);return d||this.projectService.configFileExistenceInfoCache.set(s,d={exists:this.projectService.host.fileExists(u)}),this.projectService.ensureParsedConfigUptoDate(u,s,d,this),this.languageServiceEnabled&&this.projectService.serverMode===0&&this.projectService.watchWildcards(u,d,this),d.exists?d.config.parsedCommandLine:void 0}onReleaseParsedCommandLine(t){this.releaseParsedConfig(this.projectService.toCanonicalFileName(Uo(t)))}releaseParsedConfig(t){this.projectService.stopWatchingWildCards(t,this),this.projectService.releaseParsedConfig(t,this)}updateGraph(){const t=this.isInitialLoadPending();this.isInitialLoadPending=cg;const u=this.pendingUpdateLevel;this.pendingUpdateLevel=0;let s;switch(u){case 1:this.openFileWatchTriggered.clear(),s=this.projectService.reloadFileNamesOfConfiguredProject(this);break;case 2:this.openFileWatchTriggered.clear();const d=H.checkDefined(this.pendingUpdateReason);this.pendingUpdateReason=void 0,this.projectService.reloadConfiguredProject(this,d,t,!1),s=!0;break;default:s=super.updateGraph()}return this.compilerHost=void 0,this.projectService.sendProjectLoadingFinishEvent(this),this.projectService.sendProjectTelemetry(this),s}getCachedDirectoryStructureHost(){return this.directoryStructureHost}getConfigFilePath(){return this.getProjectName()}getProjectReferences(){return this.projectReferences}updateReferences(t){this.projectReferences=t,this.potentialProjectReferences=void 0}setPotentialProjectReference(t){H.assert(this.isInitialLoadPending()),(this.potentialProjectReferences||(this.potentialProjectReferences=new Set)).add(t)}getResolvedProjectReferenceToRedirect(t){const u=this.getCurrentProgram();return u&&u.getResolvedProjectReferenceToRedirect(t)}forEachResolvedProjectReference(t){var u;return(u=this.getCurrentProgram())==null?void 0:u.forEachResolvedProjectReference(t)}enablePluginsWithOptions(t){var u;if(this.plugins.length=0,!((u=t.plugins)!=null&&u.length)&&!this.projectService.globalPlugins.length)return;const s=this.projectService.host;if(!s.require&&!s.importPlugin){this.projectService.logger.info("Plugins were requested but not running in environment that supports 'require'. Nothing will be loaded");return}const d=this.getGlobalPluginSearchPaths();if(this.projectService.allowLocalPluginLoads){const f=dr(this.canonicalConfigFilePath);this.projectService.logger.info(`Local plugin loading enabled; adding ${f} to search paths`),d.unshift(f)}if(t.plugins)for(const f of t.plugins)this.enablePlugin(f,d);return this.enableGlobalPlugins(t)}getGlobalProjectErrors(){return ti(this.projectErrors,t=>!t.file)||qc}getAllProjectErrors(){return this.projectErrors||qc}setProjectErrors(t){this.projectErrors=t}close(){this.projectService.configFileExistenceInfoCache.forEach((t,u)=>this.releaseParsedConfig(u)),this.projectErrors=void 0,this.openFileWatchTriggered.clear(),this.compilerHost=void 0,super.close()}addExternalProjectReference(){this.externalProjectRefCount++}deleteExternalProjectReference(){this.externalProjectRefCount--}isSolution(){return this.getRootFilesMap().size===0&&!this.canConfigFileJsonReportNoInputFiles}getDefaultChildProjectFromProjectWithReferences(t){return Bw(this,t.path,u=>p9(u,t)?u:void 0,0)}hasOpenRef(){var t;if(this.externalProjectRefCount)return!0;if(this.isClosed())return!1;const u=this.projectService.configFileExistenceInfoCache.get(this.canonicalConfigFilePath);return this.projectService.hasPendingProjectUpdate(this)?!!((t=u.openFilesImpactedByConfigFile)!=null&&t.size):!!u.openFilesImpactedByConfigFile&&f1(u.openFilesImpactedByConfigFile,(s,d)=>{const f=this.projectService.getScriptInfoForPath(d);return this.containsScriptInfo(f)||!!Bw(this,f.path,p=>p.containsScriptInfo(f),0)})||!1}hasExternalProjectRef(){return!!this.externalProjectRefCount}getEffectiveTypeRoots(){return dM(this.getCompilationSettings(),this)||[]}updateErrorOnNoInputFiles(t){LY(t,this.getConfigFilePath(),this.getCompilerOptions().configFile.configFileSpecs,this.projectErrors,this.canConfigFileJsonReportNoInputFiles)}},Qee=class extends Wk{constructor(t,u,s,d,f,p,E,v){super(t,2,u,s,!0,f,d,p,v,u.host,dr(E||Z1(t))),this.externalProjectName=t,this.compileOnSaveEnabled=p,this.excludedFiles=[],this.enableGlobalPlugins(this.getCompilerOptions())}updateGraph(){const t=super.updateGraph();return this.projectService.sendProjectTelemetry(this),t}getExcludedFiles(){return this.excludedFiles}}}});function zct(t){const u=new Map;for(const s of t)if(typeof s.type=="object"){const d=s.type;d.forEach(f=>{H.assert(typeof f=="number")}),u.set(s.name,d)}return u}function Sw(t){return Ua(t.indentStyle)&&(t.indentStyle=Kct.get(t.indentStyle.toLowerCase()),H.assert(t.indentStyle!==void 0)),t}function Xee(t){return Vct.forEach((u,s)=>{const d=t[s];Ua(d)&&(t[s]=u.get(d.toLowerCase()))}),t}function JK(t,u){let s,d;return VB.forEach(f=>{const p=t[f.name];if(p===void 0)return;const E=Hct.get(f.name);(s||(s={}))[f.name]=E?Ua(p)?E.get(p.toLowerCase()):p:Sk(f,p,u||"",d||(d=[]))}),s&&{watchOptions:s,errors:d}}function hNe(t){let u;return tH.forEach(s=>{const d=t[s.name];d!==void 0&&((u||(u={}))[s.name]=d)}),u}function cge(t){return Ua(t)?dge(t):t}function dge(t){switch(t){case"JS":return 1;case"JSX":return 2;case"TS":return 3;case"TSX":return 4;default:return 0}}function fNe(t){const{lazyConfiguredProjectsFromExternalProject:u,...s}=t;return s}function Ict(t,u){for(const s of u)if(s.getProjectName()===t)return s}function ete(t){return!!t.containingProjects}function jQt(t){return!!t.configFileInfo}function Bw(t,u,s,d,f){var p;const E=(p=t.getCurrentProgram())==null?void 0:p.getResolvedProjectReferences();if(!E)return;let v;const b=u?t.getResolvedProjectReferenceToRedirect(u):void 0;if(b){const k=xl(b.sourceFile.fileName),T=t.projectService.findConfiguredProjectByProjectName(k);if(T){const M=s(T);if(M)return M}else if(d!==0){v=new Map;const M=mNe(E,t.getCompilerOptions(),(z,j)=>b===z?B(z,j):void 0,d,t.projectService,v);if(M)return M;v.clear()}}return mNe(E,t.getCompilerOptions(),(k,T)=>b!==k?B(k,T):void 0,d,t.projectService,v);function B(k,T){const M=xl(k.sourceFile.fileName),z=t.projectService.findConfiguredProjectByProjectName(M)||(T===0?void 0:T===1?t.projectService.createConfiguredProject(M):T===2?t.projectService.createAndLoadConfiguredProject(M,f):H.assertNever(T));return z&&s(z)}}function mNe(t,u,s,d,f,p){const E=u.disableReferencedProjectLoad?0:d;return L(t,v=>{if(!v)return;const b=xl(v.sourceFile.fileName),B=f.toCanonicalFileName(b),k=p==null?void 0:p.get(B);if(k!==void 0&&k>=E)return;const T=s(v,E);return T||((p||(p=new Map)).set(B,E),v.references&&mNe(v.references,v.commandLine.options,s,E,f,p))})}function Rct(t,u){return t.potentialProjectReferences&&q_(t.potentialProjectReferences,u)}function VQt(t,u,s,d){return t.getCurrentProgram()?t.forEachResolvedProjectReference(u):t.isInitialLoadPending()?Rct(t,d):L(t.getProjectReferences(),s)}function pNe(t,u,s){const d=s&&t.projectService.configuredProjects.get(s);return d&&u(d)}function Oct(t,u){return VQt(t,s=>pNe(t,u,s.sourceFile.path),s=>pNe(t,u,t.toPath(YB(s))),s=>pNe(t,u,s))}function HQt(t,u){return`${Ua(u)?`Config: ${u} `:u?`Project: ${u.getProjectName()} `:""}WatchType: ${t}`}function jct(t){return!t.isScriptOpen()&&t.mTime!==void 0}function p9(t,u){return t.containsScriptInfo(u)&&!t.isSourceOfProjectReferenceRedirect(u.path)}function Jm(t){return t.invalidateResolutionsOfFailedLookupLocations(),t.dirty&&t.updateGraph()}function gNe(t){Xv(t)&&(t.projectOptions=!0)}function ENe(t){let u=1;return()=>t(u++)}function _Ne(){return{idToCallbacks:new Map,pathToId:new Map}}function KQt(t,u){if(!u||!t.eventHandler||!t.session)return;const s=_Ne(),d=_Ne(),f=_Ne();let p=1;return t.session.addProtocolHandler("watchChange",M=>(B(M.arguments),{responseRequired:!1})),{watchFile:E,watchDirectory:v,getCurrentDirectory:()=>t.host.getCurrentDirectory(),useCaseSensitiveFileNames:t.host.useCaseSensitiveFileNames};function E(M,z){return b(s,M,z,j=>({eventName:lte,data:{id:j,path:M}}))}function v(M,z,j){return b(j?f:d,M,z,J=>({eventName:cte,data:{id:J,path:M,recursive:!!j}}))}function b({pathToId:M,idToCallbacks:z},j,J,K){const Y=t.toPath(j);let oe=M.get(Y);oe||M.set(Y,oe=p++);let se=z.get(oe);return se||(z.set(oe,se=new Set),t.eventHandler(K(oe))),se.add(J),{close(){const ge=z.get(oe);ge!=null&&ge.delete(J)&&(ge.size||(z.delete(oe),M.delete(Y),t.eventHandler({eventName:dte,data:{id:oe}})))}}}function B({id:M,path:z,eventType:j}){k(M,z,j),T(d,M,z,j),T(f,M,z,j)}function k(M,z,j){var J;(J=s.idToCallbacks.get(M))==null||J.forEach(K=>{K(z,j==="create"?0:j==="delete"?2:1)})}function T({idToCallbacks:M},z,j,J){var K;J!=="update"&&((K=M.get(z))==null||K.forEach(Y=>{Y(j)}))}}function WQt(){let t;return{get(){return t},set(u){t=u},clear(){t=void 0}}}function DNe(t){return t.kind!==void 0}function xNe(t){t.print(!1,!1,!1)}var tte,ite,$K,nte,ute,rte,ate,ote,ste,hge,lte,cte,dte,vNe,Vct,Hct,Kct,fge,hte,fte,mge,pge,CNe,gge,GQt=o({"src/server/editorServices.ts"(){eC(),_9(),aNe(),tte=20*1024*1024,ite=4*1024*1024,$K="projectsUpdatedInBackground",nte="projectLoadingStart",ute="projectLoadingFinish",rte="largeFileReferenced",ate="configFileDiag",ote="projectLanguageServiceState",ste="projectInfo",hge="openFileInfo",lte="createFileWatcher",cte="createDirectoryWatcher",dte="closeFileWatcher",vNe="*ensureProjectForOpenFiles*",Vct=zct(o3),Hct=zct(VB),Kct=new Map(Object.entries({none:0,block:1,smart:2})),fge={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,"$"]]}},hte={getFileName:t=>t,getScriptKind:(t,u)=>{let s;if(u){const d=wN(t);d&&Ge(u,f=>f.extension===d?(s=f.scriptKind,!0):!1)}return s},hasMixedContent:(t,u)=>Ge(u,s=>s.isMixedContent&&Ml(t,s.extension))},fte={getFileName:t=>t.fileName,getScriptKind:t=>cge(t.scriptKind),hasMixedContent:t=>!!t.hasMixedContent},mge={close:Rs},pge=(t=>(t[t.Find=0]="Find",t[t.FindCreate=1]="FindCreate",t[t.FindCreateLoad=2]="FindCreateLoad",t))(pge||{}),CNe=class uje{constructor(u){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=ENe(KLe),this.newAutoImportProviderProjectName=ENe(WLe),this.newAuxiliaryProjectName=ENe(GLe),this.openFiles=new Map,this.configFileForOpenFiles=new Map,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=fge,this.legacySafelist=new Map,this.pendingProjectUpdates=new Map,this.pendingEnsureProjectForOpenFiles=!1,this.seenProjects=new Map,this.sharedExtendedConfigFileWatchers=new Map,this.extendedConfigCache=new Map,this.verifyDocumentRegistry=Rs,this.verifyProgram=Rs,this.onProjectCreation=Rs;var s;this.host=u.host,this.logger=u.logger,this.cancellationToken=u.cancellationToken,this.useSingleInferredProject=u.useSingleInferredProject,this.useInferredProjectPerProjectRoot=u.useInferredProjectPerProjectRoot,this.typingsInstaller=u.typingsInstaller||Yee,this.throttleWaitMilliseconds=u.throttleWaitMilliseconds,this.eventHandler=u.eventHandler,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.globalPlugins=u.globalPlugins||qc,this.pluginProbeLocations=u.pluginProbeLocations||qc,this.allowLocalPluginLoads=!!u.allowLocalPluginLoads,this.typesMapLocation=u.typesMapLocation===void 0?hr(dr(this.getExecutingFilePath()),"typesMap.json"):u.typesMapLocation,this.session=u.session,this.jsDocParsingMode=u.jsDocParsingMode,u.serverMode!==void 0?this.serverMode=u.serverMode:this.serverMode=0,this.host.realpath&&(this.realpathToScriptInfos=Tm()),this.currentDirectory=xl(this.host.getCurrentDirectory()),this.toCanonicalFileName=N1(this.host.useCaseSensitiveFileNames),this.globalCacheLocationDirectoryPath=this.typingsInstaller.globalTypingsCacheLocation?zd(this.toPath(this.typingsInstaller.globalTypingsCacheLocation)):void 0,this.throttledOperations=new Qpe(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 nge(this.typingsInstaller),this.hostConfiguration={formatCodeOptions:tX(this.host.newLine),preferences:m4,hostInfo:"Unknown host",extraFileExtensions:[]},this.documentRegistry=Kfe(this.host.useCaseSensitiveFileNames,this.currentDirectory,this.jsDocParsingMode,this);const d=this.logger.hasLevel(3)?2:this.logger.loggingEnabled()?1:0,f=d!==0?p=>this.logger.info(p):Rs;this.packageJsonCache=yNe(this),this.watchFactory=this.serverMode!==0?{watchFile:iw,watchDirectory:iw}:D1e(KQt(this,u.canUseWatchEvents)||this.host,d,f,HQt),(s=u.incrementalVerifier)==null||s.call(u,this)}toPath(u){return $0(u,this.currentDirectory,this.toCanonicalFileName)}getExecutingFilePath(){return this.getNormalizedAbsolutePath(this.host.getExecutingFilePath())}getNormalizedAbsolutePath(u){return qa(u,this.host.getCurrentDirectory())}setDocument(u,s,d){const f=H.checkDefined(this.getScriptInfoForPath(s));f.cacheSourceFile={key:u,sourceFile:d}}getDocument(u,s){const d=this.getScriptInfoForPath(s);return d&&d.cacheSourceFile&&d.cacheSourceFile.key===u?d.cacheSourceFile.sourceFile:void 0}ensureInferredProjectsUpToDate_TestOnly(){this.ensureProjectStructuresUptoDate()}getCompilerOptionsForInferredProjects(){return this.compilerOptionsForInferredProjects}onUpdateLanguageServiceStateForProject(u,s){if(!this.eventHandler)return;const d={eventName:ote,data:{project:u,languageServiceEnabled:s}};this.eventHandler(d)}loadTypesMap(){try{const u=this.host.readFile(this.typesMapLocation);if(u===void 0){this.logger.info(`Provided types map file "${this.typesMapLocation}" doesn't exist`);return}const s=JSON.parse(u);for(const d of Object.keys(s.typesMap))s.typesMap[d].match=new RegExp(s.typesMap[d].match,"i");this.safelist=s.typesMap;for(const d in s.simpleMap)Eu(s.simpleMap,d)&&this.legacySafelist.set(d,s.simpleMap[d].toLowerCase())}catch(u){this.logger.info(`Error loading types map: ${u}`),this.safelist=fge,this.legacySafelist.clear()}}updateTypingsForProject(u){const s=this.findProject(u.projectName);if(s)switch(u.kind){case QQ:s.updateTypingFiles(this.typingsCache.updateTypingsForProject(u.projectName,u.compilerOptions,u.typeAcquisition,u.unresolvedImports,u.typings));return;case XQ:this.typingsCache.enqueueInstallTypingsForProject(s,s.lastCachedUnresolvedImportsList,!0);return}}watchTypingLocations(u){var s;(s=this.findProject(u.projectName))==null||s.watchTypingLocations(u.files)}delayEnsureProjectForOpenFiles(){this.openFiles.size&&(this.pendingEnsureProjectForOpenFiles=!0,this.throttledOperations.schedule(vNe,2500,()=>{this.pendingProjectUpdates.size!==0?this.delayEnsureProjectForOpenFiles():this.pendingEnsureProjectForOpenFiles&&(this.ensureProjectForOpenFiles(),this.sendProjectsUpdatedInBackgroundEvent())}))}delayUpdateProjectGraph(u){if(u.markAsDirty(),GK(u))return;const s=u.getProjectName();this.pendingProjectUpdates.set(s,u),this.throttledOperations.schedule(s,250,()=>{this.pendingProjectUpdates.delete(s)&&Jm(u)})}hasPendingProjectUpdate(u){return this.pendingProjectUpdates.has(u.getProjectName())}sendProjectsUpdatedInBackgroundEvent(){if(!this.eventHandler)return;const u={eventName:$K,data:{openFiles:Ea(this.openFiles.keys(),s=>this.getScriptInfoForPath(s).fileName)}};this.eventHandler(u)}sendLargeFileReferencedEvent(u,s){if(!this.eventHandler)return;const d={eventName:rte,data:{file:u,fileSize:s,maxFileSize:ite}};this.eventHandler(d)}sendProjectLoadingStartEvent(u,s){if(!this.eventHandler)return;u.sendLoadingProjectFinish=!0;const d={eventName:nte,data:{project:u,reason:s}};this.eventHandler(d)}sendProjectLoadingFinishEvent(u){if(!this.eventHandler||!u.sendLoadingProjectFinish)return;u.sendLoadingProjectFinish=!1;const s={eventName:ute,data:{project:u}};this.eventHandler(s)}sendPerformanceEvent(u,s){this.performanceEventHandler&&this.performanceEventHandler({kind:u,durationMs:s})}delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(u){this.delayUpdateProjectGraph(u),this.delayEnsureProjectForOpenFiles()}delayUpdateProjectGraphs(u,s){if(u.length){for(const d of u)s&&d.clearSourceMapperCache(),this.delayUpdateProjectGraph(d);this.delayEnsureProjectForOpenFiles()}}setCompilerOptionsForInferredProjects(u,s){H.assert(s===void 0||this.useInferredProjectPerProjectRoot,"Setting compiler options per project root path is only supported when useInferredProjectPerProjectRoot is enabled");const d=Xee(u),f=JK(u,s),p=hNe(u);d.allowNonTsExtensions=!0;const E=s&&this.toCanonicalFileName(s);E?(this.compilerOptionsForInferredProjectsPerProjectRoot.set(E,d),this.watchOptionsForInferredProjectsPerProjectRoot.set(E,f||!1),this.typeAcquisitionForInferredProjectsPerProjectRoot.set(E,p)):(this.compilerOptionsForInferredProjects=d,this.watchOptionsForInferredProjects=f,this.typeAcquisitionForInferredProjects=p);for(const v of this.inferredProjects)(E?v.projectRootPath===E:!v.projectRootPath||!this.compilerOptionsForInferredProjectsPerProjectRoot.has(v.projectRootPath))&&(v.setCompilerOptions(d),v.setTypeAcquisition(p),v.setWatchOptions(f==null?void 0:f.watchOptions),v.setProjectErrors(f==null?void 0:f.errors),v.compileOnSaveEnabled=d.compileOnSave,v.markAsDirty(),this.delayUpdateProjectGraph(v));this.delayEnsureProjectForOpenFiles()}findProject(u){if(u!==void 0)return HLe(u)?Ict(u,this.inferredProjects):this.findExternalProjectByProjectName(u)||this.findConfiguredProjectByProjectName(xl(u))}forEachProject(u){this.externalProjects.forEach(u),this.configuredProjects.forEach(u),this.inferredProjects.forEach(u)}forEachEnabledProject(u){this.forEachProject(s=>{!s.isOrphan()&&s.languageServiceEnabled&&u(s)})}getDefaultProjectForFile(u,s){return s?this.ensureDefaultProjectForFile(u):this.tryGetDefaultProjectForFile(u)}tryGetDefaultProjectForFile(u){const s=Ua(u)?this.getScriptInfoForNormalizedPath(u):u;return s&&!s.isOrphan()?s.getDefaultProject():void 0}ensureDefaultProjectForFile(u){return this.tryGetDefaultProjectForFile(u)||this.doEnsureDefaultProjectForFile(u)}doEnsureDefaultProjectForFile(u){this.ensureProjectStructuresUptoDate();const s=Ua(u)?this.getScriptInfoForNormalizedPath(u):u;return s?s.getDefaultProject():(this.logErrorForScriptInfoNotFound(Ua(u)?u:u.fileName),v5.ThrowNoProject())}getScriptInfoEnsuringProjectsUptoDate(u){return this.ensureProjectStructuresUptoDate(),this.getScriptInfo(u)}ensureProjectStructuresUptoDate(){let u=this.pendingEnsureProjectForOpenFiles;this.pendingProjectUpdates.clear();const s=d=>{u=Jm(d)||u};this.externalProjects.forEach(s),this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),u&&this.ensureProjectForOpenFiles()}getFormatCodeOptions(u){const s=this.getScriptInfoForNormalizedPath(u);return s&&s.getFormatCodeSettings()||this.hostConfiguration.formatCodeOptions}getPreferences(u){const s=this.getScriptInfoForNormalizedPath(u);return{...this.hostConfiguration.preferences,...s&&s.getPreferences()}}getHostFormatCodeOptions(){return this.hostConfiguration.formatCodeOptions}getHostPreferences(){return this.hostConfiguration.preferences}onSourceFileChanged(u,s){s===2?this.handleDeletedFile(u):u.isScriptOpen()||(u.delayReloadNonMixedContentFile(),this.delayUpdateProjectGraphs(u.containingProjects,!1),this.handleSourceMapProjects(u))}handleSourceMapProjects(u){if(u.sourceMapFilePath)if(Ua(u.sourceMapFilePath)){const s=this.getScriptInfoForPath(u.sourceMapFilePath);this.delayUpdateSourceInfoProjects(s&&s.sourceInfos)}else this.delayUpdateSourceInfoProjects(u.sourceMapFilePath.sourceInfos);this.delayUpdateSourceInfoProjects(u.sourceInfos),u.declarationInfoPath&&this.delayUpdateProjectsOfScriptInfoPath(u.declarationInfoPath)}delayUpdateSourceInfoProjects(u){u&&u.forEach((s,d)=>this.delayUpdateProjectsOfScriptInfoPath(d))}delayUpdateProjectsOfScriptInfoPath(u){const s=this.getScriptInfoForPath(u);s&&this.delayUpdateProjectGraphs(s.containingProjects,!0)}handleDeletedFile(u){if(this.stopWatchingScriptInfo(u),!u.isScriptOpen()){this.deleteScriptInfo(u);const s=u.containingProjects.slice();if(u.detachAllProjects(),this.delayUpdateProjectGraphs(s,!1),this.handleSourceMapProjects(u),u.closeSourceMapFileWatcher(),u.declarationInfoPath){const d=this.getScriptInfoForPath(u.declarationInfoPath);d&&(d.sourceMapFilePath=void 0)}}}watchWildcardDirectory(u,s,d,f){return this.watchFactory.watchDirectory(u,p=>{const E=this.toPath(p),v=f.cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(p,E);Bc(E)==="package.json"&&!eK(E)&&(v&&v.fileExists||!v&&this.host.fileExists(E))&&(this.logger.info(`Config: ${d} Detected new package.json: ${p}`),this.onAddPackageJson(E));const b=this.findConfiguredProjectByProjectName(d);xH({watchedDirPath:u,fileOrDirectory:p,fileOrDirectoryPath:E,configFileName:d,extraFileExtensions:this.hostConfiguration.extraFileExtensions,currentDirectory:this.currentDirectory,options:f.parsedCommandLine.options,program:(b==null?void 0:b.getCurrentProgram())||f.parsedCommandLine.fileNames,useCaseSensitiveFileNames:this.host.useCaseSensitiveFileNames,writeLog:B=>this.logger.info(B),toPath:B=>this.toPath(B),getScriptKind:b?B=>b.getScriptKind(B):void 0})||(f.updateLevel!==2&&(f.updateLevel=1),f.projects.forEach((B,k)=>{if(!B)return;const T=this.getConfiguredProjectByCanonicalConfigFilePath(k);if(!T)return;const M=b===T?1:0;if(!(T.pendingUpdateLevel!==void 0&&T.pendingUpdateLevel>M))if(this.openFiles.has(E))if(H.checkDefined(this.getScriptInfoForPath(E)).isAttached(T)){const j=Math.max(M,T.openFileWatchTriggered.get(E)||0);T.openFileWatchTriggered.set(E,j)}else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T);else T.pendingUpdateLevel=M,this.delayUpdateProjectGraphAndEnsureProjectStructureForOpenFiles(T)}))},s,this.getWatchOptionsFromProjectWatchOptions(f.parsedCommandLine.watchOptions),cd.WildcardDirectory,d)}delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,s){const d=this.configFileExistenceInfoCache.get(u);if(!(d!=null&&d.config))return!1;let f=!1;return d.config.updateLevel=2,d.config.projects.forEach((p,E)=>{const v=this.getConfiguredProjectByCanonicalConfigFilePath(E);if(v)if(f=!0,E===u){if(v.isInitialLoadPending())return;v.pendingUpdateLevel=2,v.pendingUpdateReason=s,this.delayUpdateProjectGraph(v)}else v.resolutionCache.removeResolutionsFromProjectReferenceRedirects(this.toPath(u)),this.delayUpdateProjectGraph(v)}),f}onConfigFileChanged(u,s){var d;const f=this.configFileExistenceInfoCache.get(u);if(s===2){f.exists=!1;const p=(d=f.config)!=null&&d.projects.has(u)?this.getConfiguredProjectByCanonicalConfigFilePath(u):void 0;p&&this.removeProject(p)}else f.exists=!0;this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(u,"Change in config file detected"),this.reloadConfiguredProjectForFiles(f.openFilesImpactedByConfigFile,!1,!0,s!==2?ul:J3,"Change in config file detected"),this.delayEnsureProjectForOpenFiles()}removeProject(u){switch(this.logger.info("`remove Project::"),u.print(!0,!0,!1),u.close(),H.shouldAssert(1)&&this.filenameToScriptInfo.forEach(s=>H.assert(!s.isAttached(u),"Found script Info still attached to project",()=>`${u.projectName}: ScriptInfos still attached: ${JSON.stringify(Ea(Ka(this.filenameToScriptInfo.values(),d=>d.isAttached(u)?{fileName:d.fileName,projects:d.containingProjects.map(f=>f.projectName),hasMixedContent:d.hasMixedContent}:void 0)),void 0," ")}`)),this.pendingProjectUpdates.delete(u.getProjectName()),u.projectKind){case 2:Vy(this.externalProjects,u),this.projectToSizeMap.delete(u.getProjectName());break;case 1:this.configuredProjects.delete(u.canonicalConfigFilePath),this.projectToSizeMap.delete(u.canonicalConfigFilePath);break;case 0:Vy(this.inferredProjects,u);break}}assignOrphanScriptInfoToInferredProject(u,s){H.assert(u.isOrphan());const d=this.getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s)||this.getOrCreateSingleInferredProjectIfEnabled()||this.getOrCreateSingleInferredWithoutProjectRoot(u.isDynamic?s||this.currentDirectory:dr(Pf(u.fileName)?u.fileName:qa(u.fileName,s?this.getNormalizedAbsolutePath(s):this.currentDirectory)));if(d.addRoot(u),u.containingProjects[0]!==d&&(u.detachFromProject(d),u.containingProjects.unshift(d)),d.updateGraph(),!this.useSingleInferredProject&&!d.projectRootPath)for(const f of this.inferredProjects){if(f===d||f.isOrphan())continue;const p=f.getRootScriptInfos();H.assert(p.length===1||!!f.projectRootPath),p.length===1&&L(p[0].containingProjects,E=>E!==p[0].containingProjects[0]&&!E.isOrphan())&&f.removeFile(p[0],!0,!0)}return d}assignOrphanScriptInfosToInferredProject(){this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()&&this.assignOrphanScriptInfoToInferredProject(d,u)})}closeOpenFile(u,s){const d=u.isDynamic?!1:this.host.fileExists(u.fileName);u.close(d),this.stopWatchingConfigFilesForClosedScriptInfo(u);const f=this.toCanonicalFileName(u.fileName);this.openFilesWithNonRootedDiskPath.get(f)===u&&this.openFilesWithNonRootedDiskPath.delete(f);let p=!1;for(const E of u.containingProjects){if(Xv(E)){u.hasMixedContent&&u.registerFileUpdate();const v=E.openFileWatchTriggered.get(u.path);v!==void 0&&(E.openFileWatchTriggered.delete(u.path),E.pendingUpdateLevel!==void 0&&E.pendingUpdateLevelthis.onConfigFileChanged(s,B),2e3,this.getWatchOptionsFromProjectWatchOptions((p=(f=E==null?void 0:E.config)==null?void 0:f.parsedCommandLine)==null?void 0:p.watchOptions),cd.ConfigFile,d));const v=E.config.projects;v.set(d.canonicalConfigFilePath,v.get(d.canonicalConfigFilePath)||!1)}configFileExistenceImpactsRootOfInferredProject(u){return u.openFilesImpactedByConfigFile&&f1(u.openFilesImpactedByConfigFile,ul)}releaseParsedConfig(u,s){var d,f,p;const E=this.configFileExistenceInfoCache.get(u);(d=E.config)!=null&&d.projects.delete(s.canonicalConfigFilePath)&&((f=E.config)!=null&&f.projects.size||(E.config=void 0,E1e(u,this.sharedExtendedConfigFileWatchers),H.checkDefined(E.watcher),(p=E.openFilesImpactedByConfigFile)!=null&&p.size?this.configFileExistenceImpactsRootOfInferredProject(E)?OQ(yd(dr(u)))||(E.watcher.close(),E.watcher=mge):(E.watcher.close(),E.watcher=void 0):(E.watcher.close(),this.configFileExistenceInfoCache.delete(u))))}closeConfigFileWatcherOnReleaseOfOpenFile(u){u.watcher&&!u.config&&!this.configFileExistenceImpactsRootOfInferredProject(u)&&(u.watcher.close(),u.watcher=void 0)}stopWatchingConfigFilesForClosedScriptInfo(u){H.assert(!u.isScriptOpen()),this.forEachConfigFileLocation(u,s=>{var d,f,p;const E=this.configFileExistenceInfoCache.get(s);if(E){const v=(d=E.openFilesImpactedByConfigFile)==null?void 0:d.get(u.path);(f=E.openFilesImpactedByConfigFile)==null||f.delete(u.path),v&&this.closeConfigFileWatcherOnReleaseOfOpenFile(E),!((p=E.openFilesImpactedByConfigFile)!=null&&p.size)&&!E.config&&(H.assert(!E.watcher),this.configFileExistenceInfoCache.delete(s))}})}startWatchingConfigFilesForInferredProjectRoot(u){H.assert(u.isScriptOpen()),this.forEachConfigFileLocation(u,(s,d)=>{let f=this.configFileExistenceInfoCache.get(s);f||(f={exists:this.host.fileExists(d)},this.configFileExistenceInfoCache.set(s,f)),(f.openFilesImpactedByConfigFile||(f.openFilesImpactedByConfigFile=new Map)).set(u.path,!0),f.watcher||(f.watcher=OQ(yd(dr(s)))?this.watchFactory.watchFile(d,(p,E)=>this.onConfigFileChanged(s,E),2e3,this.hostConfiguration.watchOptions,cd.ConfigFileForInferredRoot):mge)})}stopWatchingConfigFilesForInferredProjectRoot(u){this.forEachConfigFileLocation(u,s=>{var d;const f=this.configFileExistenceInfoCache.get(s);(d=f==null?void 0:f.openFilesImpactedByConfigFile)!=null&&d.has(u.path)&&(H.assert(u.isScriptOpen()),f.openFilesImpactedByConfigFile.set(u.path,!1),this.closeConfigFileWatcherOnReleaseOfOpenFile(f))})}forEachConfigFileLocation(u,s){if(this.serverMode!==0)return;H.assert(!ete(u)||this.openFiles.has(u.path));const d=this.openFiles.get(u.path);if(H.checkDefined(this.getScriptInfo(u.path)).isDynamic)return;let p=dr(u.fileName);const E=()=>JE(d,p,this.currentDirectory,!this.host.useCaseSensitiveFileNames),v=!d||!E();let b=!jQt(u);do{if(b){const k=HK(p,this.currentDirectory,this.toCanonicalFileName),T=hr(p,"tsconfig.json");let M=s(hr(k,"tsconfig.json"),T);if(M)return T;const z=hr(p,"jsconfig.json");if(M=s(hr(k,"jsconfig.json"),z),M)return z;if(kU(k))break}const B=dr(p);if(B===p)break;p=B,b=!0}while(v||E())}findDefaultConfiguredProject(u){if(!u.isScriptOpen())return;const s=this.getConfigFileNameForFile(u),d=s&&this.findConfiguredProjectByProjectName(s);return d&&p9(d,u)?d:d==null?void 0:d.getDefaultChildProjectFromProjectWithReferences(u)}getConfigFileNameForFile(u){if(ete(u)){H.assert(u.isScriptOpen());const d=this.configFileForOpenFiles.get(u.path);if(d!==void 0)return d||void 0}this.logger.info(`Search path: ${dr(u.fileName)}`);const s=this.forEachConfigFileLocation(u,(d,f)=>this.configFileExists(f,d,u));return s?this.logger.info(`For info: ${u.fileName} :: Config file name: ${s}`):this.logger.info(`For info: ${u.fileName} :: No config files found.`),ete(u)&&this.configFileForOpenFiles.set(u.path,s||!1),s}printProjects(){this.logger.hasLevel(1)&&(this.logger.startGroup(),this.externalProjects.forEach(xNe),this.configuredProjects.forEach(xNe),this.inferredProjects.forEach(xNe),this.logger.info("Open files: "),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);this.logger.info(` FileName: ${d.fileName} ProjectRootPath: ${u}`),this.logger.info(` Projects: ${d.containingProjects.map(f=>f.getProjectName())}`)}),this.logger.endGroup())}findConfiguredProjectByProjectName(u){const s=this.toCanonicalFileName(u);return this.getConfiguredProjectByCanonicalConfigFilePath(s)}getConfiguredProjectByCanonicalConfigFilePath(u){return this.configuredProjects.get(u)}findExternalProjectByProjectName(u){return Ict(u,this.externalProjects)}getFilenameForExceededTotalSizeLimitForNonTsFiles(u,s,d,f){if(s&&s.disableSizeLimit||!this.host.getFileSize)return;let p=tte;this.projectToSizeMap.set(u,0),this.projectToSizeMap.forEach(v=>p-=v||0);let E=0;for(const v of d){const b=f.getFileName(v);if(!mk(b)&&(E+=this.host.getFileSize(b),E>tte||E>p)){const B=d.map(k=>f.getFileName(k)).filter(k=>!mk(k)).map(k=>({name:k,size:this.host.getFileSize(k)})).sort((k,T)=>T.size-k.size).slice(0,5);return this.logger.info(`Non TS file size exceeded limit (${E}). Largest files: ${B.map(k=>`${k.name}:${k.size}`).join(", ")}`),b}}this.projectToSizeMap.set(u,E)}createExternalProject(u,s,d,f,p){const E=Xee(d),v=JK(d,dr(Z1(u))),b=new Qee(u,this,this.documentRegistry,E,this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u,E,s,fte),d.compileOnSave===void 0?!0:d.compileOnSave,void 0,v==null?void 0:v.watchOptions);return b.setProjectErrors(v==null?void 0:v.errors),b.excludedFiles=p,this.addFilesToNonInferredProject(b,s,fte,f),this.externalProjects.push(b),b}sendProjectTelemetry(u){if(this.seenProjects.has(u.projectName)){gNe(u);return}if(this.seenProjects.set(u.projectName,!0),!this.eventHandler||!this.host.createSHA256Hash){gNe(u);return}const s=Xv(u)?u.projectOptions:void 0;gNe(u);const d={projectId:this.host.createSHA256Hash(u.projectName),fileStats:WK(u.getScriptInfos(),!0),compilerOptions:aAe(u.getCompilationSettings()),typeAcquisition:p(u.getTypeAcquisition()),extends:s&&s.configHasExtendsProperty,files:s&&s.configHasFilesProperty,include:s&&s.configHasIncludeProperty,exclude:s&&s.configHasExcludeProperty,compileOnSave:u.compileOnSaveEnabled,configFileName:f(),projectType:u instanceof Qee?"external":"configured",languageServiceEnabled:u.languageServiceEnabled,version:_};this.eventHandler({eventName:ste,data:d});function f(){return Xv(u)&&Ype(u.getConfigFilePath())||"other"}function p({enable:E,include:v,exclude:b}){return{enable:E,include:v!==void 0&&v.length!==0,exclude:b!==void 0&&b.length!==0}}}addFilesToNonInferredProject(u,s,d,f){this.updateNonInferredProjectFiles(u,s,d),u.setTypeAcquisition(f),u.markAsDirty()}createConfiguredProject(u){var s;(s=Gn)==null||s.instant(Gn.Phase.Session,"createConfiguredProject",{configFilePath:u}),this.logger.info(`Creating configuration project ${u}`);const d=this.toCanonicalFileName(u);let f=this.configFileExistenceInfoCache.get(d);f?f.exists=!0:this.configFileExistenceInfoCache.set(d,f={exists:!0}),f.config||(f.config={cachedDirectoryStructureHost:CQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),projects:new Map,updateLevel:2});const p=new lge(u,d,this,this.documentRegistry,f.config.cachedDirectoryStructureHost);return this.configuredProjects.set(d,p),this.createConfigFileWatcherForParsedConfig(u,d,p),p}createConfiguredProjectWithDelayLoad(u,s){const d=this.createConfiguredProject(u);return d.pendingUpdateLevel=2,d.pendingUpdateReason=s,d}createAndLoadConfiguredProject(u,s){const d=this.createConfiguredProject(u);return this.loadConfiguredProject(d,s),d}createLoadAndUpdateConfiguredProject(u,s){const d=this.createAndLoadConfiguredProject(u,s);return d.updateGraph(),d}loadConfiguredProject(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"loadConfiguredProject",{configFilePath:u.canonicalConfigFilePath}),this.sendProjectLoadingStartEvent(u,s);const p=Uo(u.getConfigFilePath()),E=this.ensureParsedConfigUptoDate(p,u.canonicalConfigFilePath,this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath),u),v=E.config.parsedCommandLine;H.assert(!!v.fileNames);const b=v.options;u.projectOptions||(u.projectOptions={configHasExtendsProperty:v.raw.extends!==void 0,configHasFilesProperty:v.raw.files!==void 0,configHasIncludeProperty:v.raw.include!==void 0,configHasExcludeProperty:v.raw.exclude!==void 0}),u.canConfigFileJsonReportNoInputFiles=oM(v.raw),u.setProjectErrors(v.options.configFile.parseDiagnostics),u.updateReferences(v.projectReferences);const B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.canonicalConfigFilePath,b,v.fileNames,hte);B?(u.disableLanguageService(B),this.configFileExistenceInfoCache.forEach((T,M)=>this.stopWatchingWildCards(M,u))):(u.setCompilerOptions(b),u.setWatchOptions(v.watchOptions),u.enableLanguageService(),this.watchWildcards(p,E,u)),u.enablePluginsWithOptions(b);const k=v.fileNames.concat(u.getExternalFiles(2));this.updateRootAndOptionsOfNonInferredProject(u,k,hte,b,v.typeAcquisition,v.compileOnSave,v.watchOptions),(f=Gn)==null||f.pop()}ensureParsedConfigUptoDate(u,s,d,f){var p,E,v;if(d.config){if(!d.config.updateLevel)return d;if(d.config.updateLevel===1)return this.reloadFileNamesOfParsedConfig(u,d.config),d}const b=((p=d.config)==null?void 0:p.cachedDirectoryStructureHost)||CQ(this.host,this.host.getCurrentDirectory(),this.host.useCaseSensitiveFileNames),B=aM(u,j=>this.host.readFile(j)),k=GV(u,Ua(B)?B:""),T=k.parseDiagnostics;Ua(B)||T.push(B);const M=qV(k,b,dr(u),{},u,[],this.hostConfiguration.extraFileExtensions,this.extendedConfigCache);M.errors.length&&T.push(...M.errors),this.logger.info(`Config: ${u} : ${JSON.stringify({rootNames:M.fileNames,options:M.options,watchOptions:M.watchOptions,projectReferences:M.projectReferences},void 0," ")}`);const z=(E=d.config)==null?void 0:E.parsedCommandLine;return d.config?(d.config.parsedCommandLine=M,d.config.watchedDirectoriesStale=!0,d.config.updateLevel=void 0):d.config={parsedCommandLine:M,cachedDirectoryStructureHost:b,projects:new Map},!z&&!fZ(this.getWatchOptionsFromProjectWatchOptions(void 0),this.getWatchOptionsFromProjectWatchOptions(M.watchOptions))&&((v=d.watcher)==null||v.close(),d.watcher=void 0),this.createConfigFileWatcherForParsedConfig(u,s,f),bQ(s,M.options,this.sharedExtendedConfigFileWatchers,(j,J)=>this.watchFactory.watchFile(j,()=>{var K;yQ(this.extendedConfigCache,J,oe=>this.toPath(oe));let Y=!1;(K=this.sharedExtendedConfigFileWatchers.get(J))==null||K.projects.forEach(oe=>{Y=this.delayUpdateProjectsFromParsedConfigOnConfigFileChange(oe,`Change in extended config file ${j} detected`)||Y}),Y&&this.delayEnsureProjectForOpenFiles()},2e3,this.hostConfiguration.watchOptions,cd.ExtendedConfigFile,u),j=>this.toPath(j)),d}watchWildcards(u,{exists:s,config:d},f){if(d.projects.set(f.canonicalConfigFilePath,!0),s){if(d.watchedDirectories&&!d.watchedDirectoriesStale)return;d.watchedDirectoriesStale=!1,DH(d.watchedDirectories||(d.watchedDirectories=new Map),new Map(Object.entries(d.parsedCommandLine.wildcardDirectories)),(p,E)=>this.watchWildcardDirectory(p,E,u,d))}else{if(d.watchedDirectoriesStale=!1,!d.watchedDirectories)return;rf(d.watchedDirectories,Vm),d.watchedDirectories=void 0}}stopWatchingWildCards(u,s){const d=this.configFileExistenceInfoCache.get(u);!d.config||!d.config.projects.get(s.canonicalConfigFilePath)||(d.config.projects.set(s.canonicalConfigFilePath,!1),!f1(d.config.projects,ul)&&(d.config.watchedDirectories&&(rf(d.config.watchedDirectories,Vm),d.config.watchedDirectories=void 0),d.config.watchedDirectoriesStale=void 0))}updateNonInferredProjectFiles(u,s,d){const f=u.getRootFilesMap(),p=new Map;for(const E of s){const v=d.getFileName(E),b=xl(v),B=KK(b);let k;if(!B&&!u.fileExists(v)){k=HK(b,this.currentDirectory,this.toCanonicalFileName);const T=f.get(k);T?(T.info&&(u.removeFile(T.info,!1,!0),T.info=void 0),T.fileName=b):f.set(k,{fileName:b})}else{const T=d.getScriptKind(E,this.hostConfiguration.extraFileExtensions),M=d.hasMixedContent(E,this.hostConfiguration.extraFileExtensions),z=H.checkDefined(this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(b,u.currentDirectory,T,M,u.directoryStructureHost));k=z.path;const j=f.get(k);!j||j.info!==z?(u.addRoot(z,b),z.isScriptOpen()&&this.removeRootOfInferredProjectIfNowPartOfOtherProject(z)):j.fileName=b}p.set(k,!0)}f.size>p.size&&f.forEach((E,v)=>{p.has(v)||(E.info?u.removeFile(E.info,u.fileExists(v),!0):f.delete(v))})}updateRootAndOptionsOfNonInferredProject(u,s,d,f,p,E,v){u.setCompilerOptions(f),u.setWatchOptions(v),E!==void 0&&(u.compileOnSaveEnabled=E),this.addFilesToNonInferredProject(u,s,d,p)}reloadFileNamesOfConfiguredProject(u){const s=this.reloadFileNamesOfParsedConfig(u.getConfigFilePath(),this.configFileExistenceInfoCache.get(u.canonicalConfigFilePath).config);return u.updateErrorOnNoInputFiles(s),this.updateNonInferredProjectFiles(u,s.concat(u.getExternalFiles(1)),hte),u.markAsDirty(),u.updateGraph()}reloadFileNamesOfParsedConfig(u,s){if(s.updateLevel===void 0)return s.parsedCommandLine.fileNames;H.assert(s.updateLevel===1);const d=s.parsedCommandLine.options.configFile.configFileSpecs,f=sM(d,dr(u),s.parsedCommandLine.options,s.cachedDirectoryStructureHost,this.hostConfiguration.extraFileExtensions);return s.parsedCommandLine={...s.parsedCommandLine,fileNames:f},f}setFileNamesOfAutpImportProviderOrAuxillaryProject(u,s){this.updateNonInferredProjectFiles(u,s,hte)}reloadConfiguredProject(u,s,d,f){const p=u.getCachedDirectoryStructureHost();f&&this.clearSemanticCache(u),p.clearCache();const E=u.getConfigFilePath();this.logger.info(`${d?"Loading":"Reloading"} configured project ${E}`),this.loadConfiguredProject(u,s),u.updateGraph(),this.sendConfigFileDiagEvent(u,E)}clearSemanticCache(u){u.resolutionCache.clear(),u.getLanguageService(!1).cleanupSemanticCache(),u.cleanupProgram(),u.markAsDirty()}sendConfigFileDiagEvent(u,s){if(!this.eventHandler||this.suppressDiagnosticEvents)return;const d=u.getLanguageService().getCompilerOptionsDiagnostics();d.push(...u.getAllProjectErrors()),this.eventHandler({eventName:ate,data:{configFileName:u.getConfigFilePath(),diagnostics:d,triggerFile:s}})}getOrCreateInferredProjectForProjectRootPathIfEnabled(u,s){if(!this.useInferredProjectPerProjectRoot||u.isDynamic&&s===void 0)return;if(s){const f=this.toCanonicalFileName(s);for(const p of this.inferredProjects)if(p.projectRootPath===f)return p;return this.createInferredProject(s,!1,s)}let d;for(const f of this.inferredProjects)f.projectRootPath&&JE(f.projectRootPath,u.path,this.host.getCurrentDirectory(),!this.host.useCaseSensitiveFileNames)&&(d&&d.projectRootPath.length>f.projectRootPath.length||(d=f));return d}getOrCreateSingleInferredProjectIfEnabled(){if(this.useSingleInferredProject)return this.inferredProjects.length>0&&this.inferredProjects[0].projectRootPath===void 0?this.inferredProjects[0]:this.createInferredProject("",!0)}getOrCreateSingleInferredWithoutProjectRoot(u){H.assert(!this.useSingleInferredProject);const s=this.toCanonicalFileName(this.getNormalizedAbsolutePath(u));for(const d of this.inferredProjects)if(!d.projectRootPath&&d.isOrphan()&&d.canonicalCurrentDirectory===s)return d;return this.createInferredProject(u)}createInferredProject(u,s,d){const f=d&&this.compilerOptionsForInferredProjectsPerProjectRoot.get(d)||this.compilerOptionsForInferredProjects;let p,E;d&&(p=this.watchOptionsForInferredProjectsPerProjectRoot.get(d),E=this.typeAcquisitionForInferredProjectsPerProjectRoot.get(d)),p===void 0&&(p=this.watchOptionsForInferredProjects),E===void 0&&(E=this.typeAcquisitionForInferredProjects),p=p||void 0;const v=new rge(this,this.documentRegistry,f,p==null?void 0:p.watchOptions,d,u,E);return v.setProjectErrors(p==null?void 0:p.errors),s?this.inferredProjects.unshift(v):this.inferredProjects.push(v),v}getOrCreateScriptInfoNotOpenedByClient(u,s,d){return this.getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(xl(u),s,void 0,void 0,d)}getScriptInfo(u){return this.getScriptInfoForNormalizedPath(xl(u))}getScriptInfoOrConfig(u){const s=xl(u),d=this.getScriptInfoForNormalizedPath(s);if(d)return d;const f=this.configuredProjects.get(this.toPath(u));return f&&f.getCompilerOptions().configFile}logErrorForScriptInfoNotFound(u){const s=Ea(this.filenameToScriptInfo.entries(),([d,f])=>({path:d,fileName:f.fileName}));this.logger.msg(`Could not find file ${JSON.stringify(u)}. +All files are: ${JSON.stringify(s)}`,"Err")}getSymlinkedProjects(u){let s;if(this.realpathToScriptInfos){const f=u.getRealpathIfDifferent();f&&L(this.realpathToScriptInfos.get(f),d),L(this.realpathToScriptInfos.get(u.path),d)}return s;function d(f){if(f!==u)for(const p of f.containingProjects)p.languageServiceEnabled&&!p.isOrphan()&&!p.getCompilerOptions().preserveSymlinks&&!u.isAttached(p)&&(s?f1(s,(E,v)=>v===f.path?!1:kt(E,p))||s.add(f.path,p):(s=Tm(),s.add(f.path,p)))}}watchClosedScriptInfo(u){if(H.assert(!u.fileWatcher),!u.isDynamicOrHasMixedContent()&&(!this.globalCacheLocationDirectoryPath||!Ma(u.path,this.globalCacheLocationDirectoryPath))){const s=u.path.indexOf("/node_modules/");!this.host.getModifiedTime||s===-1?u.fileWatcher=this.watchFactory.watchFile(u.fileName,(d,f)=>this.onSourceFileChanged(u,f),500,this.hostConfiguration.watchOptions,cd.ClosedScriptInfo):(u.mTime=this.getModifiedTime(u),u.fileWatcher=this.watchClosedScriptInfoInNodeModules(u.path.substr(0,s)))}}createNodeModulesWatcher(u){const s=this.watchFactory.watchDirectory(u,f=>{var p;const E=RQ(this.toPath(f));if(!E)return;const v=Bc(E);if((p=d.affectedModuleSpecifierCacheProjects)!=null&&p.size&&(v==="package.json"||v==="node_modules")&&d.affectedModuleSpecifierCacheProjects.forEach(b=>{var B,k;(k=(B=this.findProject(b))==null?void 0:B.getModuleSpecifierCache())==null||k.clear()}),d.refreshScriptInfoRefCount)if(u===E)this.refreshScriptInfosInDirectory(u);else{const b=this.getScriptInfoForPath(E);b?jct(b)&&this.refreshScriptInfo(b):t7(E)||this.refreshScriptInfosInDirectory(E)}},1,this.hostConfiguration.watchOptions,cd.NodeModules),d={refreshScriptInfoRefCount:0,affectedModuleSpecifierCacheProjects:void 0,close:()=>{var f;!d.refreshScriptInfoRefCount&&!((f=d.affectedModuleSpecifierCacheProjects)!=null&&f.size)&&(s.close(),this.nodeModulesWatchers.delete(u))}};return this.nodeModulesWatchers.set(u,d),d}watchPackageJsonsInNodeModules(u,s){const d=this.nodeModulesWatchers.get(u)||this.createNodeModulesWatcher(u);return(d.affectedModuleSpecifierCacheProjects||(d.affectedModuleSpecifierCacheProjects=new Set)).add(s.getProjectName()),{close:()=>{var f;(f=d.affectedModuleSpecifierCacheProjects)==null||f.delete(s.getProjectName()),d.close()}}}watchClosedScriptInfoInNodeModules(u){const s=u+"/node_modules",d=this.nodeModulesWatchers.get(s)||this.createNodeModulesWatcher(s);return d.refreshScriptInfoRefCount++,{close:()=>{d.refreshScriptInfoRefCount--,d.close()}}}getModifiedTime(u){return(this.host.getModifiedTime(u.path)||W_).getTime()}refreshScriptInfo(u){const s=this.getModifiedTime(u);if(s!==u.mTime){const d=Cse(u.mTime,s);u.mTime=s,this.onSourceFileChanged(u,d)}}refreshScriptInfosInDirectory(u){u=u+ol,this.filenameToScriptInfo.forEach(s=>{jct(s)&&Ma(s.path,u)&&this.refreshScriptInfo(s)})}stopWatchingScriptInfo(u){u.fileWatcher&&(u.fileWatcher.close(),u.fileWatcher=void 0)}getOrCreateScriptInfoNotOpenedByClientForNormalizedPath(u,s,d,f,p){if(Pf(u)||KK(u))return this.getOrCreateScriptInfoWorker(u,s,!1,void 0,d,f,p);const E=this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u));if(E)return E}getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,s,d,f,p){return this.getOrCreateScriptInfoWorker(u,s,!0,d,f,p)}getOrCreateScriptInfoForNormalizedPath(u,s,d,f,p,E){return this.getOrCreateScriptInfoWorker(u,this.currentDirectory,s,d,f,p,E)}getOrCreateScriptInfoWorker(u,s,d,f,p,E,v){H.assert(f===void 0||d,"ScriptInfo needs to be opened by client to be able to set its user defined content");const b=HK(u,s,this.toCanonicalFileName);let B=this.getScriptInfoForPath(b);if(!B){const k=KK(u);if(H.assert(Pf(u)||k||d,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} +Script info with non-dynamic relative file name can only be open script info or in context of host currentDirectory`),H.assert(!Pf(u)||this.currentDirectory===s||!this.openFilesWithNonRootedDiskPath.has(this.toCanonicalFileName(u)),"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} +Open script files with non rooted disk path opened with current directory context cannot have same canonical names`),H.assert(!k||this.currentDirectory===s||this.useInferredProjectPerProjectRoot,"",()=>`${JSON.stringify({fileName:u,currentDirectory:s,hostCurrentDirectory:this.currentDirectory,openKeys:Ea(this.openFilesWithNonRootedDiskPath.keys())})} +Dynamic files must always be opened with service's current directory or service should support inferred project per projectRootPath.`),!d&&!k&&!(v||this.host).fileExists(u))return;B=new ige(this.host,u,p,!!E,b,this.filenameToScriptInfoVersion.get(b)),this.filenameToScriptInfo.set(B.path,B),this.filenameToScriptInfoVersion.delete(B.path),d?!Pf(u)&&(!k||this.currentDirectory!==s)&&this.openFilesWithNonRootedDiskPath.set(this.toCanonicalFileName(u),B):this.watchClosedScriptInfo(B)}return d&&(this.stopWatchingScriptInfo(B),B.open(f),E&&B.registerFileUpdate()),B}getScriptInfoForNormalizedPath(u){return!Pf(u)&&this.openFilesWithNonRootedDiskPath.get(this.toCanonicalFileName(u))||this.getScriptInfoForPath(HK(u,this.currentDirectory,this.toCanonicalFileName))}getScriptInfoForPath(u){return this.filenameToScriptInfo.get(u)}getDocumentPositionMapper(u,s,d){const f=this.getOrCreateScriptInfoNotOpenedByClient(s,u.currentDirectory,this.host);if(!f){d&&u.addGeneratedFileWatch(s,d);return}if(f.getSnapshot(),Ua(f.sourceMapFilePath)){const k=this.getScriptInfoForPath(f.sourceMapFilePath);if(k&&(k.getSnapshot(),k.documentPositionMapper!==void 0))return k.sourceInfos=this.addSourceInfoToSourceMap(d,u,k.sourceInfos),k.documentPositionMapper?k.documentPositionMapper:void 0;f.sourceMapFilePath=void 0}else if(f.sourceMapFilePath){f.sourceMapFilePath.sourceInfos=this.addSourceInfoToSourceMap(d,u,f.sourceMapFilePath.sourceInfos);return}else if(f.sourceMapFilePath!==void 0)return;let p,E,v=(k,T)=>{const M=this.getOrCreateScriptInfoNotOpenedByClient(k,u.currentDirectory,this.host);if(!M){E=T;return}p=M;const z=M.getSnapshot();return M.documentPositionMapper!==void 0?M.documentPositionMapper:aw(z)};const b=u.projectName,B=$fe({getCanonicalFileName:this.toCanonicalFileName,log:k=>this.logger.info(k),getSourceFileLike:k=>this.getSourceFileLike(k,b,f)},f.fileName,f.textStorage.getLineInfo(),v);return v=void 0,p?(f.sourceMapFilePath=p.path,p.declarationInfoPath=f.path,p.documentPositionMapper=B||!1,p.sourceInfos=this.addSourceInfoToSourceMap(d,u,p.sourceInfos)):E?f.sourceMapFilePath={watcher:this.addMissingSourceMapFile(u.currentDirectory===this.currentDirectory?E:qa(E,u.currentDirectory),f.path),sourceInfos:this.addSourceInfoToSourceMap(d,u)}:f.sourceMapFilePath=!1,B}addSourceInfoToSourceMap(u,s,d){if(u){const f=this.getOrCreateScriptInfoNotOpenedByClient(u,s.currentDirectory,s.directoryStructureHost);(d||(d=new Set)).add(f.path)}return d}addMissingSourceMapFile(u,s){return this.watchFactory.watchFile(u,()=>{const f=this.getScriptInfoForPath(s);f&&f.sourceMapFilePath&&!Ua(f.sourceMapFilePath)&&(this.delayUpdateProjectGraphs(f.containingProjects,!0),this.delayUpdateSourceInfoProjects(f.sourceMapFilePath.sourceInfos),f.closeSourceMapFileWatcher())},2e3,this.hostConfiguration.watchOptions,cd.MissingSourceMapFile)}getSourceFileLike(u,s,d){const f=s.projectName?s:this.findProject(s);if(f){const E=f.toPath(u),v=f.getSourceFile(E);if(v&&v.resolvedPath===E)return v}const p=this.getOrCreateScriptInfoNotOpenedByClient(u,(f||this).currentDirectory,f?f.directoryStructureHost:this.host);if(p){if(d&&Ua(d.sourceMapFilePath)&&p!==d){const E=this.getScriptInfoForPath(d.sourceMapFilePath);E&&(E.sourceInfos||(E.sourceInfos=new Set)).add(p.path)}return p.cacheSourceFile?p.cacheSourceFile.sourceFile:(p.sourceFileLike||(p.sourceFileLike={get text(){return H.fail("shouldnt need text"),""},getLineAndCharacterOfPosition:E=>{const v=p.positionToLineOffset(E);return{line:v.line-1,character:v.offset-1}},getPositionOfLineAndCharacter:(E,v,b)=>p.lineOffsetToPosition(E+1,v+1,b)}),p.sourceFileLike)}}setPerformanceEventHandler(u){this.performanceEventHandler=u}setHostConfiguration(u){var s;if(u.file){const d=this.getScriptInfoForNormalizedPath(xl(u.file));d&&(d.setOptions(Sw(u.formatOptions),u.preferences),this.logger.info(`Host configuration update for file ${u.file}`))}else{if(u.hostInfo!==void 0&&(this.hostConfiguration.hostInfo=u.hostInfo,this.logger.info(`Host information ${u.hostInfo}`)),u.formatOptions&&(this.hostConfiguration.formatCodeOptions={...this.hostConfiguration.formatCodeOptions,...Sw(u.formatOptions)},this.logger.info("Format host information updated")),u.preferences){const{lazyConfiguredProjectsFromExternalProject:d,includePackageJsonAutoImports:f}=this.hostConfiguration.preferences;this.hostConfiguration.preferences={...this.hostConfiguration.preferences,...u.preferences},d&&!this.hostConfiguration.preferences.lazyConfiguredProjectsFromExternalProject&&this.configuredProjects.forEach(p=>{p.hasExternalProjectRef()&&p.pendingUpdateLevel===2&&!this.pendingProjectUpdates.has(p.getProjectName())&&p.updateGraph()}),f!==u.preferences.includePackageJsonAutoImports&&this.invalidateProjectPackageJson(void 0)}u.extraFileExtensions&&(this.hostConfiguration.extraFileExtensions=u.extraFileExtensions,this.reloadProjects(),this.logger.info("Host file extension mappings updated")),u.watchOptions&&(this.hostConfiguration.watchOptions=(s=JK(u.watchOptions))==null?void 0:s.watchOptions,this.logger.info(`Host watch options changed to ${JSON.stringify(this.hostConfiguration.watchOptions)}, it will be take effect for next watches.`))}}getWatchOptions(u){return this.getWatchOptionsFromProjectWatchOptions(u.getWatchOptions())}getWatchOptionsFromProjectWatchOptions(u){return u&&this.hostConfiguration.watchOptions?{...this.hostConfiguration.watchOptions,...u}:u||this.hostConfiguration.watchOptions}closeLog(){this.logger.close()}reloadProjects(){this.logger.info("reload projects."),this.filenameToScriptInfo.forEach(u=>{this.openFiles.has(u.path)||u.fileWatcher&&this.onSourceFileChanged(u,this.host.fileExists(u.fileName)?1:2)}),this.pendingProjectUpdates.forEach((u,s)=>{this.throttledOperations.cancel(s),this.pendingProjectUpdates.delete(s)}),this.throttledOperations.cancel(vNe),this.pendingEnsureProjectForOpenFiles=!1,this.configFileExistenceInfoCache.forEach(u=>{u.config&&(u.config.updateLevel=2)}),this.reloadConfiguredProjectForFiles(this.openFiles,!0,!1,J3,"User requested reload projects"),this.externalProjects.forEach(u=>{this.clearSemanticCache(u),u.updateGraph()}),this.inferredProjects.forEach(u=>this.clearSemanticCache(u)),this.ensureProjectForOpenFiles()}reloadConfiguredProjectForFiles(u,s,d,f,p){const E=new Map,v=b=>{E.has(b.canonicalConfigFilePath)||(E.set(b.canonicalConfigFilePath,!0),this.reloadConfiguredProject(b,p,!1,s))};u==null||u.forEach((b,B)=>{if(this.configFileForOpenFiles.delete(B),!f(b))return;const k=this.getScriptInfoForPath(B);H.assert(k.isScriptOpen());const T=this.getConfigFileNameForFile(k);if(T){const M=this.findConfiguredProjectByProjectName(T)||this.createConfiguredProject(T);E.has(M.canonicalConfigFilePath)||(E.set(M.canonicalConfigFilePath,!0),d?(M.pendingUpdateLevel=2,M.pendingUpdateReason=p,s&&this.clearSemanticCache(M),this.delayUpdateProjectGraph(M)):(this.reloadConfiguredProject(M,p,!1,s),p9(M,k)||Bw(M,k.path,j=>(v(j),p9(j,k)),1)&&Bw(M,void 0,v,0)))}})}removeRootOfInferredProjectIfNowPartOfOtherProject(u){H.assert(u.containingProjects.length>0);const s=u.containingProjects[0];!s.isOrphan()&&Aw(s)&&s.isRoot(u)&&L(u.containingProjects,d=>d!==s&&!d.isOrphan())&&s.removeFile(u,!0,!0)}ensureProjectForOpenFiles(){this.logger.info("Before ensureProjectForOpenFiles:"),this.printProjects(),this.openFiles.forEach((u,s)=>{const d=this.getScriptInfoForPath(s);d.isOrphan()?this.assignOrphanScriptInfoToInferredProject(d,u):this.removeRootOfInferredProjectIfNowPartOfOtherProject(d)}),this.pendingEnsureProjectForOpenFiles=!1,this.inferredProjects.forEach(Jm),this.logger.info("After ensureProjectForOpenFiles:"),this.printProjects()}openClientFile(u,s,d,f){return this.openClientFileWithNormalizedPath(xl(u),s,d,!1,f?xl(f):void 0)}getOriginalLocationEnsuringConfiguredProject(u,s){const d=u.isSourceOfProjectReferenceRedirect(s.fileName),f=d?s:u.getSourceMapper().tryGetSourcePosition(s);if(!f)return;const{fileName:p}=f,E=this.getScriptInfo(p);if(!E&&!this.host.fileExists(p))return;const v={fileName:xl(p),path:this.toPath(p)},b=this.getConfigFileNameForFile(v);if(!b)return;let B=this.findConfiguredProjectByProjectName(b);if(!B){if(u.getCompilerOptions().disableReferencedProjectLoad)return d?s:E!=null&&E.containingProjects.length?f:s;B=this.createAndLoadConfiguredProject(b,`Creating project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`)}Jm(B);const k=z=>{const j=this.getScriptInfo(p);return j&&p9(z,j)};if(B.isSolution()||!k(B)){if(B=Bw(B,p,z=>(Jm(z),k(z)?z:void 0),2,`Creating project referenced in solution ${B.projectName} to find possible configured project for original file: ${v.fileName}${s!==f?" for location: "+s.fileName:""}`),!B)return;if(B===u)return f}M(B);const T=this.getScriptInfo(p);if(!T||!T.containingProjects.length)return;return T.containingProjects.forEach(z=>{Xv(z)&&M(z)}),f;function M(z){u.originalConfiguredProjects||(u.originalConfiguredProjects=new Set),u.originalConfiguredProjects.add(z.canonicalConfigFilePath)}}fileExists(u){return!!this.getScriptInfoForNormalizedPath(u)||this.host.fileExists(u)}findExternalProjectContainingOpenScriptInfo(u){return Le(this.externalProjects,s=>(Jm(s),s.containsScriptInfo(u)))}getOrCreateOpenScriptInfo(u,s,d,f,p){const E=this.getOrCreateScriptInfoOpenedByClientForNormalizedPath(u,p?this.getNormalizedAbsolutePath(p):this.currentDirectory,s,d,f);return this.openFiles.set(E.path,p),E}assignProjectToOpenedScriptInfo(u){let s,d,f=this.findExternalProjectContainingOpenScriptInfo(u),p,E,v=!1;return!f&&this.serverMode===0&&(s=this.getConfigFileNameForFile(u),s&&(f=this.findConfiguredProjectByProjectName(s),f?Jm(f):(f=this.createLoadAndUpdateConfiguredProject(s,`Creating possible configured project for ${u.fileName} to open`),v=!0),E=f.containsScriptInfo(u)?f:void 0,p=f,p9(f,u)||Bw(f,u.path,b=>{if(Jm(b),Wa(p)?p.push(b):p=[f,b],p9(b,u))return E=b,b;!E&&b.containsScriptInfo(u)&&(E=b)},2,`Creating project referenced in solution ${f.projectName} to find possible configured project for ${u.fileName} to open`),E?(s=E.getConfigFilePath(),(E!==f||v)&&(d=E.getAllProjectErrors(),this.sendConfigFileDiagEvent(E,u.fileName))):s=void 0,this.createAncestorProjects(u,f))),u.containingProjects.forEach(Jm),u.isOrphan()&&(Wa(p)?p.forEach(b=>this.sendConfigFileDiagEvent(b,u.fileName)):p&&this.sendConfigFileDiagEvent(p,u.fileName),H.assert(this.openFiles.has(u.path)),this.assignOrphanScriptInfoToInferredProject(u,this.openFiles.get(u.path))),H.assert(!u.isOrphan()),{configFileName:s,configFileErrors:d,retainProjects:p}}createAncestorProjects(u,s){if(u.isAttached(s))for(;;){if(!s.isInitialLoadPending()&&(!s.getCompilerOptions().composite||s.getCompilerOptions().disableSolutionSearching))return;const d=this.getConfigFileNameForFile({fileName:s.getConfigFilePath(),path:u.path,configFileInfo:!0});if(!d)return;const f=this.findConfiguredProjectByProjectName(d)||this.createConfiguredProjectWithDelayLoad(d,`Creating project possibly referencing default composite project ${s.getProjectName()} of open file ${u.fileName}`);f.isInitialLoadPending()&&f.setPotentialProjectReference(s.canonicalConfigFilePath),s=f}}loadAncestorProjectTree(u){u=u||na(this.configuredProjects,(d,f)=>f.isInitialLoadPending()?void 0:[d,!0]);const s=new Set;for(const d of Ea(this.configuredProjects.values()))Rct(d,f=>u.has(f))&&Jm(d),this.ensureProjectChildren(d,u,s)}ensureProjectChildren(u,s,d){var f;if(!Bs(d,u.canonicalConfigFilePath)||u.getCompilerOptions().disableReferencedProjectLoad)return;const p=(f=u.getCurrentProgram())==null?void 0:f.getResolvedProjectReferences();if(p)for(const E of p){if(!E)continue;const v=w1e(E.references,k=>s.has(k.sourceFile.path)?k:void 0);if(!v)continue;const b=xl(E.sourceFile.fileName),B=u.projectService.findConfiguredProjectByProjectName(b)||u.projectService.createAndLoadConfiguredProject(b,`Creating project referenced by : ${u.projectName} as it references project ${v.sourceFile.fileName}`);Jm(B),this.ensureProjectChildren(B,s,d)}}cleanupAfterOpeningFile(u){this.removeOrphanConfiguredProjects(u);for(const s of this.inferredProjects.slice())s.isOrphan()&&this.removeProject(s);this.removeOrphanScriptInfos()}openClientFileWithNormalizedPath(u,s,d,f,p){const E=this.getOrCreateOpenScriptInfo(u,s,d,f,p),{retainProjects:v,...b}=this.assignProjectToOpenedScriptInfo(E);return this.cleanupAfterOpeningFile(v),this.telemetryOnOpenFile(E),this.printProjects(),b}removeOrphanConfiguredProjects(u){const s=new Map(this.configuredProjects),d=E=>{!E.isOrphan()&&E.originalConfiguredProjects&&E.originalConfiguredProjects.forEach((v,b)=>{const B=this.getConfiguredProjectByCanonicalConfigFilePath(b);return B&&p(B)})};u&&(Wa(u)?u.forEach(p):p(u)),this.inferredProjects.forEach(d),this.externalProjects.forEach(d),this.configuredProjects.forEach(E=>{E.hasOpenRef()?p(E):s.has(E.canonicalConfigFilePath)&&Oct(E,v=>f(v)&&p(E))}),s.forEach(E=>this.removeProject(E));function f(E){return E.hasOpenRef()||!s.has(E.canonicalConfigFilePath)}function p(E){s.delete(E.canonicalConfigFilePath)&&(d(E),Oct(E,p))}}removeOrphanScriptInfos(){const u=new Map(this.filenameToScriptInfo);this.filenameToScriptInfo.forEach(s=>{if(!s.isScriptOpen()&&s.isOrphan()&&!s.isContainedByBackgroundProject()){if(!s.sourceMapFilePath)return;let d;if(Ua(s.sourceMapFilePath)){const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;if(!d||!q_(d,f=>{const p=this.getScriptInfoForPath(f);return!!p&&(p.isScriptOpen()||!p.isOrphan())}))return}if(u.delete(s.path),s.sourceMapFilePath){let d;if(Ua(s.sourceMapFilePath)){u.delete(s.sourceMapFilePath);const f=this.getScriptInfoForPath(s.sourceMapFilePath);d=f&&f.sourceInfos}else d=s.sourceMapFilePath.sourceInfos;d&&d.forEach((f,p)=>u.delete(p))}}),u.forEach(s=>{this.stopWatchingScriptInfo(s),this.deleteScriptInfo(s),s.closeSourceMapFileWatcher()})}telemetryOnOpenFile(u){if(this.serverMode!==0||!this.eventHandler||!u.isJavaScript()||!Rp(this.allJsFilesForOpenFileTelemetry,u.path))return;const s=this.ensureDefaultProjectForFile(u);if(!s.languageServiceEnabled)return;const d=s.getSourceFile(u.path),f=!!d&&!!d.checkJsDirective;this.eventHandler({eventName:hge,data:{info:{checkJs:f}}})}closeClientFile(u,s){const d=this.getScriptInfoForNormalizedPath(xl(u)),f=d?this.closeOpenFile(d,s):!1;return s||this.printProjects(),f}collectChanges(u,s,d,f){for(const p of s){const E=Le(u,v=>v.projectName===p.getProjectName());f.push(p.getChangesSinceVersion(E&&E.version,d))}}synchronizeProjectList(u,s){const d=[];return this.collectChanges(u,this.externalProjects,s,d),this.collectChanges(u,this.configuredProjects.values(),s,d),this.collectChanges(u,this.inferredProjects,s,d),d}applyChangesInOpenFiles(u,s,d){let f,p=!1;if(u)for(const v of u){const b=this.getOrCreateOpenScriptInfo(xl(v.fileName),v.content,cge(v.scriptKind),v.hasMixedContent,v.projectRootPath?xl(v.projectRootPath):void 0);(f||(f=[])).push(b)}if(s)for(const v of s){const b=this.getScriptInfo(v.fileName);H.assert(!!b),this.applyChangesToFile(b,v.changes)}if(d)for(const v of d)p=this.closeClientFile(v,!0)||p;let E;f&&(E=Vu(f,v=>this.assignProjectToOpenedScriptInfo(v).retainProjects)),p&&this.assignOrphanScriptInfosToInferredProject(),f?(this.cleanupAfterOpeningFile(E),f.forEach(v=>this.telemetryOnOpenFile(v)),this.printProjects()):S(d)&&this.printProjects()}applyChangesToFile(u,s){for(const d of s)u.editContent(d.span.start,d.span.start+d.span.length,d.newText)}closeConfiguredProjectReferencedFromExternalProject(u){const s=this.findConfiguredProjectByProjectName(u);if(s&&(s.deleteExternalProjectReference(),!s.hasOpenRef())){this.removeProject(s);return}}closeExternalProject(u){const s=xl(u),d=this.externalProjectToConfiguredProjectMap.get(s);if(d){for(const f of d)this.closeConfiguredProjectReferencedFromExternalProject(f);this.externalProjectToConfiguredProjectMap.delete(s)}else{const f=this.findExternalProjectByProjectName(u);f&&this.removeProject(f)}}openExternalProjects(u){const s=lg(this.externalProjects,d=>d.getProjectName(),d=>!0);q_(this.externalProjectToConfiguredProjectMap,d=>{s.set(d,!0)});for(const d of u)this.openExternalProject(d),s.delete(d.projectFileName);q_(s,d=>{this.closeExternalProject(d)})}static escapeFilenameForRegex(u){return u.replace(this.filenameEscapeRegexp,"\\$&")}resetSafeList(){this.safelist=fge}applySafeList(u){const{rootFiles:s}=u,d=u.typeAcquisition;if(H.assert(!!d,"proj.typeAcquisition should be set by now"),d.enable===!1||d.disableFilenameBasedTypeAcquisition)return[];const f=d.include||(d.include=[]),p=[],E=s.map(k=>Z1(k.fileName)),v=[];for(const k of Object.keys(this.safelist)){const T=this.safelist[k];for(const M of E)if(T.match.test(M)){if(this.logger.info(`Excluding files based on rule ${k} matching file '${M}'`),T.types)for(const z of T.types)f.includes(z)||f.push(z);if(T.exclude)for(const z of T.exclude){const j=M.replace(T.match,(...J)=>z.map(K=>typeof K=="number"?Ua(J[K])?uje.escapeFilenameForRegex(J[K]):(this.logger.info(`Incorrect RegExp specification in safelist rule ${k} - not enough groups`),"\\*"):K).join(""));p.includes(j)||p.push(j)}else{const z=uje.escapeFilenameForRegex(M);p.includes(z)||p.push(z)}}}const b=p.map(k=>new RegExp(k,"i")),B=[];for(let k=0;kT.test(E[k])))v.push(E[k]);else{let T=!1;if(d.enable){const M=Bc(Ug(E[k]));if(Ml(M,"js")){const z=xh(M),j=coe(z),J=this.legacySafelist.get(j);J!==void 0&&(this.logger.info(`Excluded '${E[k]}' because it matched ${j} from the legacy safelist`),v.push(E[k]),T=!0,f.includes(J)||f.push(J))}}T||(/^.+[.-]min\.js$/.test(E[k])?v.push(E[k]):B.push(u.rootFiles[k]))}return u.rootFiles=B,v}openExternalProject(u){u.typeAcquisition=u.typeAcquisition||{},u.typeAcquisition.include=u.typeAcquisition.include||[],u.typeAcquisition.exclude=u.typeAcquisition.exclude||[],u.typeAcquisition.enable===void 0&&(u.typeAcquisition.enable=cNe(u.rootFiles.map(v=>v.fileName)));const s=this.applySafeList(u);let d;const f=[];for(const v of u.rootFiles){const b=xl(v.fileName);Ype(b)?this.serverMode===0&&this.host.fileExists(b)&&(d||(d=[])).push(b):f.push(v)}d&&d.sort();const p=this.findExternalProjectByProjectName(u.projectFileName);let E;if(p){if(p.excludedFiles=s,!d){const v=Xee(u.options),b=JK(u.options,p.getCurrentDirectory()),B=this.getFilenameForExceededTotalSizeLimitForNonTsFiles(u.projectFileName,v,u.rootFiles,fte);B?p.disableLanguageService(B):p.enableLanguageService(),p.setProjectErrors(b==null?void 0:b.errors),this.updateRootAndOptionsOfNonInferredProject(p,u.rootFiles,fte,v,u.typeAcquisition,u.options.compileOnSave,b==null?void 0:b.watchOptions),p.updateGraph();return}this.closeExternalProject(u.projectFileName)}else if(this.externalProjectToConfiguredProjectMap.get(u.projectFileName))if(!d)this.closeExternalProject(u.projectFileName);else{const v=this.externalProjectToConfiguredProjectMap.get(u.projectFileName);let b=0,B=0;for(;bk||((E||(E=[])).push(T),B++),b++)}for(let k=B;kthis.logger.info(E));this.pendingPluginEnablements??(this.pendingPluginEnablements=new Map);let p=this.pendingPluginEnablements.get(u);p||this.pendingPluginEnablements.set(u,p=[]),p.push(f);return}this.endEnablePlugin(u,Wk.importServicePluginSync(s,d,this.host,f=>this.logger.info(f)))}endEnablePlugin(u,{pluginConfigEntry:s,resolvedModule:d,errorLogs:f}){var p;if(d){const E=(p=this.currentPluginConfigOverrides)==null?void 0:p.get(s.name);if(E){const v=s.name;s=E,s.name=v}u.enableProxy(d,s)}else L(f,E=>this.logger.info(E)),this.logger.info(`Couldn't find ${s.name}`)}hasNewPluginEnablementRequests(){return!!this.pendingPluginEnablements}hasPendingPluginEnablements(){return!!this.currentPluginEnablementPromise}async waitForPendingPlugins(){for(;this.currentPluginEnablementPromise;)await this.currentPluginEnablementPromise}enableRequestedPlugins(){this.pendingPluginEnablements&&this.enableRequestedPluginsAsync()}async enableRequestedPluginsAsync(){if(this.currentPluginEnablementPromise&&await this.waitForPendingPlugins(),!this.pendingPluginEnablements)return;const u=Ea(this.pendingPluginEnablements.entries());this.pendingPluginEnablements=void 0,this.currentPluginEnablementPromise=this.enableRequestedPluginsWorker(u),await this.currentPluginEnablementPromise}async enableRequestedPluginsWorker(u){H.assert(this.currentPluginEnablementPromise===void 0),await Promise.all(Vt(u,([s,d])=>this.enableRequestedPluginsForProjectAsync(s,d))),this.currentPluginEnablementPromise=void 0,this.sendProjectsUpdatedInBackgroundEvent()}async enableRequestedPluginsForProjectAsync(u,s){const d=await Promise.all(s);if(!u.isClosed()){for(const f of d)this.endEnablePlugin(u,f);this.delayUpdateProjectGraph(u)}}configurePlugin(u){this.forEachEnabledProject(s=>s.onPluginConfigurationChanged(u.pluginName,u.configuration)),this.currentPluginConfigOverrides=this.currentPluginConfigOverrides||new Map,this.currentPluginConfigOverrides.set(u.pluginName,u.configuration)}getPackageJsonsVisibleToFile(u,s){const d=this.packageJsonCache,f=s&&this.toPath(s),p=this.toPath(u),E=[],v=b=>{switch(d.directoryHasPackageJson(b)){case 3:return d.searchDirectoryAndAncestors(b),v(b);case-1:const B=hr(b,"package.json");this.watchPackageJsonFile(B);const k=d.getInDirectory(b);k&&E.push(k)}if(f&&f===b)return!0};return qg(dr(p),v),E}getNearestAncestorDirectoryWithPackageJson(u){return qg(u,s=>{switch(this.packageJsonCache.directoryHasPackageJson(this.toPath(s))){case-1:return s;case 0:return;case 3:return this.host.fileExists(hr(s,"package.json"))?s:void 0}})}watchPackageJsonFile(u){const s=this.packageJsonFilesMap||(this.packageJsonFilesMap=new Map);s.has(u)||(this.invalidateProjectPackageJson(u),s.set(u,this.watchFactory.watchFile(u,(d,f)=>{const p=this.toPath(d);switch(f){case 0:return H.fail();case 1:this.packageJsonCache.addOrUpdate(p),this.invalidateProjectPackageJson(p);break;case 2:this.packageJsonCache.delete(p),this.invalidateProjectPackageJson(p),s.get(p).close(),s.delete(p)}},250,this.hostConfiguration.watchOptions,cd.PackageJson)))}onAddPackageJson(u){this.packageJsonCache.addOrUpdate(u),this.watchPackageJsonFile(u)}includePackageJsonAutoImports(){switch(this.hostConfiguration.preferences.includePackageJsonAutoImports){case"on":return 1;case"off":return 0;default:return 2}}invalidateProjectPackageJson(u){this.configuredProjects.forEach(s),this.inferredProjects.forEach(s),this.externalProjects.forEach(s);function s(d){u?d.onPackageJsonChange(u):d.onAutoImportProviderSettingsChanged()}}getIncompleteCompletionsCache(){return this.incompleteCompletionsCache||(this.incompleteCompletionsCache=WQt())}},CNe.filenameEscapeRegexp=/[-/\\^$*+?.()|[\]{}]/g,gge=CNe}});function bNe(t){let u,s,d;const f={get(b,B,k,T){if(!(!s||d!==E(b,k,T)))return s.get(B)},set(b,B,k,T,M,z){if(p(b,k,T).set(B,v(M,z,!1)),z){for(const j of M)if(j.isInNodeModules){const J=j.path.substring(0,j.path.indexOf(s_)+s_.length-1);u!=null&&u.has(J)||(u||(u=new Map)).set(J,t.watchNodeModulesForPackageJsonChanges(J))}}},setModulePaths(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.modulePaths=M:z.set(B,v(M,void 0,void 0))},setBlockedByPackageJsonDependencies(b,B,k,T,M){const z=p(b,k,T),j=z.get(B);j?j.isBlockedByPackageJsonDependencies=M:z.set(B,v(void 0,void 0,M))},clear(){u==null||u.forEach(b=>b.close()),s==null||s.clear(),u==null||u.clear(),d=void 0},count(){return s?s.size:0}};return H.isDebugging&&Object.defineProperty(f,"__cache",{get:()=>s}),f;function p(b,B,k){const T=E(b,B,k);return s&&d!==T&&f.clear(),d=T,s||(s=new Map)}function E(b,B,k){return`${b},${B.importModuleSpecifierEnding},${B.importModuleSpecifierPreference},${k.overrideImportMode}`}function v(b,B,k){return{modulePaths:b,moduleSpecifiers:B,isBlockedByPackageJsonDependencies:k}}}var JQt=o({"src/server/moduleSpecifierCache.ts"(){eC()}});function yNe(t){const u=new Map,s=new Map;return{addOrUpdate:d,forEach:u.forEach.bind(u),get:u.get.bind(u),delete:p=>{u.delete(p),s.set(dr(p),!0)},getInDirectory:p=>u.get(hr(p,"package.json"))||void 0,directoryHasPackageJson:f,searchDirectoryAndAncestors:p=>{qg(p,E=>{if(f(E)!==3)return!0;const v=t.toPath(hr(E,"package.json"));XH(t,v)?d(v):s.set(E,!0)})}};function d(p){const E=H.checkDefined(yfe(p,t.host));u.set(p,E),s.delete(dr(p))}function f(p){return u.has(hr(p,"package.json"))?-1:s.has(p)?0:3}}var $Qt=o({"src/server/packageJsonCache.ts"(){eC()}});function UQt(t){const u=t[0],s=t[1];return(1e9*u+s)/1e6}function Wct(t,u){if((Aw(t)||uge(t))&&t.isJsOnlyProject()){const s=t.getScriptInfoForNormalizedPath(u);return s&&!s.isJavaScript()}return!1}function qQt(t){return f4(t)||!!t.emitDecoratorMetadata}function Gct(t,u,s){const d=u.getScriptInfoForNormalizedPath(t);return{start:d.positionToLineOffset(s.start),end:d.positionToLineOffset(s.start+s.length),text:cE(s.messageText,` +`),code:s.code,category:Gy(s),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,source:s.source,relatedInformation:Vt(s.relatedInformation,Ege)}}function Ege(t){return t.file?{span:{start:UK(s0(t.file,t.start)),end:UK(s0(t.file,t.start+t.length)),file:t.file.fileName},message:cE(t.messageText,` +`),category:Gy(t),code:t.code}:{message:cE(t.messageText,` +`),category:Gy(t),code:t.code}}function UK(t){return{line:t.line+1,offset:t.character+1}}function qK(t,u){const s=t.file&&UK(s0(t.file,t.start)),d=t.file&&UK(s0(t.file,t.start+t.length)),f=cE(t.messageText,` +`),{code:p,source:E}=t,v=Gy(t),b={start:s,end:d,text:f,code:p,category:v,reportsUnnecessary:t.reportsUnnecessary,reportsDeprecated:t.reportsDeprecated,source:E,relatedInformation:Vt(t.relatedInformation,Ege)};return u?{...b,fileName:t.file&&t.file.fileName}:b}function ZQt(t,u){return t.every(s=>Dc(s.span)d(p,t));return!Ha(s)&&s.symLinkedProjects&&s.symLinkedProjects.forEach((p,E)=>{const v=u(E);f.push(...ju(p,b=>d(b,v)))}),ri(f,Cx)}function gge(){return aoe(({textSpan:t})=>t.start+100003*t.length,bX)}function UQt(t,u,s,d,f,p){const E=Vct(t,u,s,!0,(B,k)=>B.getLanguageService().findRenameLocations(k.fileName,k.pos,d,f,p),(B,k)=>k(uz(B)));if(Ha(E))return E;const v=[],b=gge();return E.forEach((B,k)=>{for(const T of B)!b.has(T)&&!Ege(uz(T),k)&&(v.push(T),b.add(T))}),v}function qQt(t,u,s){const d=t.getLanguageService().getDefinitionAtPosition(u.fileName,u.pos,!1,s),f=d&&Ki(d);return f&&!f.isLocal?{fileName:f.fileName,pos:f.textSpan.start}:void 0}function ZQt(t,u,s,d){var f,p;const E=Vct(t,u,s,!1,(k,T)=>(d.info(`Finding references to ${T.fileName} position ${T.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(T.fileName,T.pos)),(k,T)=>{T(uz(k.definition));for(const M of k.references)T(uz(M))});if(Ha(E))return E;const v=E.get(u);if(((p=(f=v==null?void 0:v[0])==null?void 0:f.references[0])==null?void 0:p.isDefinition)===void 0)E.forEach(k=>{for(const T of k)for(const M of T.references)delete M.isDefinition});else{const k=gge();for(const M of v)for(const z of M.references)if(z.isDefinition){k.add(z);break}const T=new Set;for(;;){let M=!1;if(E.forEach((z,j)=>{if(T.has(j))return;j.getLanguageService().updateIsDefinitionOfReferencedSymbols(z,k)&&(T.add(j),M=!0)}),!M)break}E.forEach((M,z)=>{if(!T.has(z))for(const j of M)for(const J of j.references)J.isDefinition=!1})}const b=[],B=gge();return E.forEach((k,T)=>{for(const M of k){const z=Ege(uz(M.definition),T),j=z===void 0?M.definition:{...M.definition,textSpan:d1(z.pos,M.definition.textSpan.length),fileName:z.fileName,contextSpan:XQt(M.definition,T)};let J=Le(b,K=>bX(K.definition,j));J||(J={definition:j,references:[]},b.push(J));for(const K of M.references)!B.has(K)&&!Ege(uz(K),T)&&(B.add(K),J.references.push(K))}}),b.filter(k=>k.references.length!==0)}function vNe(t,u,s){for(const d of Ha(t)?t:t.projects)s(d,u);!Ha(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((d,f)=>{for(const p of d)s(p,f)})}function Vct(t,u,s,d,f,p){const E=new Map,v=U$();v.enqueue({project:u,location:s}),vNe(t,s.fileName,(J,K)=>{const Y={fileName:K,pos:s.pos};v.enqueue({project:J,location:Y})});const b=u.projectService,B=u.getCancellationToken(),k=qQt(u,s,d),T=Mh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),M=Mh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),z=new Set;e:for(;!v.isEmpty();){for(;!v.isEmpty();){if(B.isCancellationRequested())break e;const{project:J,location:K}=v.dequeue();if(E.has(J)||Hct(J,K)||(Gm(J),!J.containsFile(Dl(K.fileName))))continue;const Y=j(J,K);E.set(J,Y??$c),z.add(QQt(J))}k&&(b.loadAncestorProjectTree(z),b.forEachEnabledProject(J=>{if(B.isCancellationRequested()||E.has(J))return;const K=YQt(k,J,T,M);K&&v.enqueue({project:J,location:K})}))}if(E.size===1)return Oa(E.values());return E;function j(J,K){const Y=f(J,K);if(Y){for(const oe of Y)p(oe,se=>{const ge=b.getOriginalLocationEnsuringConfiguredProject(J,se);if(!ge)return;const ae=b.getScriptInfo(ge.fileName);for(const ne of ae.containingProjects)!ne.isOrphan()&&!E.has(ne)&&v.enqueue({project:ne,location:ge});const Ce=b.getSymlinkedProjects(ae);Ce&&Ce.forEach((ne,ve)=>{for(const Se of ne)!Se.isOrphan()&&!E.has(Se)&&v.enqueue({project:Se,location:{fileName:ve,pos:ge.pos}})})});return Y}}}function YQt(t,u,s,d){if(u.containsFile(Dl(t.fileName))&&!Hct(u,t))return t;const f=s();if(f&&u.containsFile(Dl(f.fileName)))return f;const p=d();return p&&u.containsFile(Dl(p.fileName))?p:void 0}function Hct(t,u){if(!u)return!1;const s=t.getLanguageService().getProgram();if(!s)return!1;const d=s.getSourceFile(u.fileName);return!!d&&d.resolvedPath!==d.path&&d.resolvedPath!==t.toPath(u.fileName)}function QQt(t){return Qv(t)?t.canonicalConfigFilePath:t.getProjectName()}function uz({fileName:t,textSpan:u}){return{fileName:t,pos:u.start}}function Ege(t,u){return zM(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function Kct(t,u){return yX(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function XQt(t,u){return cfe(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function l_(t,u){return{start:u.positionToLineOffset(t.start),end:u.positionToLineOffset(Ec(t))}}function CNe(t,u,s){const d=l_(t,s),f=u&&l_(u,s);return f?{...d,contextStart:f.start,contextEnd:f.end}:d}function eXt(t,u){return{start:Wct(u,t.span.start),end:Wct(u,Ec(t.span)),newText:t.newText}}function Wct(t,u){return fNe(t)?iXt(t.getLineAndCharacterOfPosition(u)):t.positionToLineOffset(u)}function tXt(t,u){const s=t.ranges.map(d=>({start:u.positionToLineOffset(d.start),end:u.positionToLineOffset(d.start+d.length)}));return t.wordPattern?{ranges:s,wordPattern:t.wordPattern}:{ranges:s}}function iXt(t){return{line:t.line+1,offset:t.character+1}}function nXt(t){H.assert(t.textChanges.length===1);const u=Pn(t.textChanges);return H.assert(u.span.start===0&&u.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:u.newText}]}}function bNe(t,u,s,d){const f=uXt(t,u,d),{line:p,character:E}=k8(n7(f),s);return{line:p+1,offset:E+1}}function uXt(t,u,s){for(const{fileName:d,textChanges:f}of s)if(d===u)for(let p=f.length-1;p>=0;p--){const{newText:E,span:{start:v,length:b}}=f[p];t=t.slice(0,v)+E+t.slice(v+b)}return t}function Gct(t,{fileName:u,textSpan:s,contextSpan:d,isWriteAccess:f,isDefinition:p},{disableLineTextInReferences:E}){const v=H.checkDefined(t.getScriptInfo(u)),b=CNe(s,d,v),B=E?void 0:rXt(v,b);return{file:u,...b,lineText:B,isWriteAccess:f,isDefinition:p}}function rXt(t,u){const s=t.lineToTextSpan(u.start.line-1);return t.getSnapshot().getText(s.start,Ec(s)).replace(/\r|\n/g,"")}function aXt(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var yNe,kNe,Jct,FNe,$ct,ANe,oXt=o({"src/server/session.ts"(){Xv(),_9(),eNe(),yNe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},kNe=Qpe,Jct=class{constructor(t){this.operationHost=t}startNew(t){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(t)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(t,u){const s=this.requestId;H.assert(s===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(s,()=>this.executeAction(u))},t))}delay(t,u,s){const d=this.requestId;H.assert(d===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(d,()=>this.executeAction(s))},u,t))}executeAction(t){var u,s,d,f,p,E;let v=!1;try{this.operationHost.isCancellationRequested()?(v=!0,(u=Gn)==null||u.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((s=Gn)==null||s.push(Gn.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(d=Gn)==null||d.pop())}catch(b){(f=Gn)==null||f.popAll(),v=!0,b instanceof b8?(p=Gn)==null||p.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId}):((E=Gn)==null||E.instant(Gn.Phase.Session,"stepError",{seq:this.requestId,message:b.message}),this.operationHost.logError(b,`delayed processing of request ${this.requestId}`))}(v||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},FNe=["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"],$ct=[...FNe,"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"],ANe=class q3e{constructor(u){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const p={version:_};return this.requiredResponse(p)},openExternalProject:p=>(this.projectService.openExternalProject(p.arguments),this.requiredResponse(!0)),openExternalProjects:p=>(this.projectService.openExternalProjects(p.arguments.projects),this.requiredResponse(!0)),closeExternalProject:p=>(this.projectService.closeExternalProject(p.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:p=>{const E=this.projectService.synchronizeProjectList(p.arguments.knownProjects,p.arguments.includeProjectReferenceRedirectInfo);if(!E.some(b=>b.projectErrors&&b.projectErrors.length!==0))return this.requiredResponse(E);const v=Vt(E,b=>!b.projectErrors||b.projectErrors.length===0?b:{info:b.info,changes:b.changes,files:b.files,projectErrors:this.convertToDiagnosticsWithLinePosition(b.projectErrors,void 0)});return this.requiredResponse(v)},updateOpen:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles&&zr(p.arguments.openFiles,E=>({fileName:E.file,content:E.fileContent,scriptKind:E.scriptKindName,projectRootPath:E.projectRootPath})),p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:eo(Cd(E.textChanges),v=>{const b=H.checkDefined(this.projectService.getScriptInfo(E.fileName)),B=b.lineOffsetToPosition(v.start.line,v.start.offset),k=b.lineOffsetToPosition(v.end.line,v.end.offset);return B>=0?{span:{start:B,length:k-B},newText:v.newText}:void 0})})),p.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles,p.arguments.changedFiles&&zr(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:Cd(E.changes)})),p.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:p=>this.requiredResponse(this.getDefinition(p.arguments,!0)),"definition-full":p=>this.requiredResponse(this.getDefinition(p.arguments,!1)),definitionAndBoundSpan:p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!0)),"definitionAndBoundSpan-full":p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!1)),findSourceDefinition:p=>this.requiredResponse(this.findSourceDefinition(p.arguments)),"emit-output":p=>this.requiredResponse(this.getEmitOutput(p.arguments)),typeDefinition:p=>this.requiredResponse(this.getTypeDefinition(p.arguments)),implementation:p=>this.requiredResponse(this.getImplementation(p.arguments,!0)),"implementation-full":p=>this.requiredResponse(this.getImplementation(p.arguments,!1)),references:p=>this.requiredResponse(this.getReferences(p.arguments,!0)),"references-full":p=>this.requiredResponse(this.getReferences(p.arguments,!1)),rename:p=>this.requiredResponse(this.getRenameLocations(p.arguments,!0)),"renameLocations-full":p=>this.requiredResponse(this.getRenameLocations(p.arguments,!1)),"rename-full":p=>this.requiredResponse(this.getRenameInfo(p.arguments)),open:p=>(this.openClientFile(Dl(p.arguments.file),p.arguments.fileContent,lge(p.arguments.scriptKindName),p.arguments.projectRootPath?Dl(p.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!0)),"quickinfo-full":p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!1)),getOutliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!0)),outliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!1)),todoComments:p=>this.requiredResponse(this.getTodoComments(p.arguments)),indentation:p=>this.requiredResponse(this.getIndentation(p.arguments)),nameOrDottedNameSpan:p=>this.requiredResponse(this.getNameOrDottedNameSpan(p.arguments)),breakpointStatement:p=>this.requiredResponse(this.getBreakpointStatement(p.arguments)),braceCompletion:p=>this.requiredResponse(this.isValidBraceCompletion(p.arguments)),docCommentTemplate:p=>this.requiredResponse(this.getDocCommentTemplate(p.arguments)),getSpanOfEnclosingComment:p=>this.requiredResponse(this.getSpanOfEnclosingComment(p.arguments)),fileReferences:p=>this.requiredResponse(this.getFileReferences(p.arguments,!0)),"fileReferences-full":p=>this.requiredResponse(this.getFileReferences(p.arguments,!1)),format:p=>this.requiredResponse(this.getFormattingEditsForRange(p.arguments)),formatonkey:p=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(p.arguments)),"format-full":p=>this.requiredResponse(this.getFormattingEditsForDocumentFull(p.arguments)),"formatonkey-full":p=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(p.arguments)),"formatRange-full":p=>this.requiredResponse(this.getFormattingEditsForRangeFull(p.arguments)),completionInfo:p=>this.requiredResponse(this.getCompletions(p.arguments,"completionInfo")),completions:p=>this.requiredResponse(this.getCompletions(p.arguments,"completions")),"completions-full":p=>this.requiredResponse(this.getCompletions(p.arguments,"completions-full")),completionEntryDetails:p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!1)),"completionEntryDetails-full":p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!0)),compileOnSaveAffectedFileList:p=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(p.arguments)),compileOnSaveEmitFile:p=>this.requiredResponse(this.emitFile(p.arguments)),signatureHelp:p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!0)),"signatureHelp-full":p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!1)),"compilerOptionsDiagnostics-full":p=>this.requiredResponse(this.getCompilerOptionsDiagnostics(p.arguments)),"encodedSyntacticClassifications-full":p=>this.requiredResponse(this.getEncodedSyntacticClassifications(p.arguments)),"encodedSemanticClassifications-full":p=>this.requiredResponse(this.getEncodedSemanticClassifications(p.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:p=>this.requiredResponse(this.getSemanticDiagnosticsSync(p.arguments)),syntacticDiagnosticsSync:p=>this.requiredResponse(this.getSyntacticDiagnosticsSync(p.arguments)),suggestionDiagnosticsSync:p=>this.requiredResponse(this.getSuggestionDiagnosticsSync(p.arguments)),geterr:p=>(this.errorCheck.startNew(E=>this.getDiagnostics(E,p.arguments.delay,p.arguments.files)),this.notRequired()),geterrForProject:p=>(this.errorCheck.startNew(E=>this.getDiagnosticsForProject(E,p.arguments.delay,p.arguments.file)),this.notRequired()),change:p=>(this.change(p.arguments),this.notRequired()),configure:p=>(this.projectService.setHostConfiguration(p.arguments),this.doOutput(void 0,"configure",p.seq,!0),this.notRequired()),reload:p=>(this.reload(p.arguments,p.seq),this.requiredResponse({reloadFinished:!0})),saveto:p=>{const E=p.arguments;return this.saveToTmp(E.file,E.tmpfile),this.notRequired()},close:p=>{const E=p.arguments;return this.closeClientFile(E.file),this.notRequired()},navto:p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!0)),"navto-full":p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!1)),brace:p=>this.requiredResponse(this.getBraceMatching(p.arguments,!0)),"brace-full":p=>this.requiredResponse(this.getBraceMatching(p.arguments,!1)),navbar:p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!0)),"navbar-full":p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!1)),navtree:p=>this.requiredResponse(this.getNavigationTree(p.arguments,!0)),"navtree-full":p=>this.requiredResponse(this.getNavigationTree(p.arguments,!1)),documentHighlights:p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!0)),"documentHighlights-full":p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!1)),compilerOptionsForInferredProjects:p=>(this.setCompilerOptionsForInferredProjects(p.arguments),this.requiredResponse(!0)),projectInfo:p=>this.requiredResponse(this.getProjectInfo(p.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:p=>this.requiredResponse(this.getJsxClosingTag(p.arguments)),linkedEditingRange:p=>this.requiredResponse(this.getLinkedEditingRange(p.arguments)),getCodeFixes:p=>this.requiredResponse(this.getCodeFixes(p.arguments,!0)),"getCodeFixes-full":p=>this.requiredResponse(this.getCodeFixes(p.arguments,!1)),getCombinedCodeFix:p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!0)),"getCombinedCodeFix-full":p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!1)),applyCodeActionCommand:p=>this.requiredResponse(this.applyCodeActionCommand(p.arguments)),getSupportedCodeFixes:p=>this.requiredResponse(this.getSupportedCodeFixes(p.arguments)),getApplicableRefactors:p=>this.requiredResponse(this.getApplicableRefactors(p.arguments)),getEditsForRefactor:p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!0)),getMoveToRefactoringFileSuggestions:p=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(p.arguments)),"getEditsForRefactor-full":p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!1)),organizeImports:p=>this.requiredResponse(this.organizeImports(p.arguments,!0)),"organizeImports-full":p=>this.requiredResponse(this.organizeImports(p.arguments,!1)),getEditsForFileRename:p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!0)),"getEditsForFileRename-full":p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!1)),configurePlugin:p=>(this.configurePlugin(p.arguments),this.doOutput(void 0,"configurePlugin",p.seq,!0),this.notRequired()),selectionRange:p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!0)),"selectionRange-full":p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!1)),prepareCallHierarchy:p=>this.requiredResponse(this.prepareCallHierarchy(p.arguments)),provideCallHierarchyIncomingCalls:p=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(p.arguments)),provideCallHierarchyOutgoingCalls:p=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(p.arguments)),toggleLineComment:p=>this.requiredResponse(this.toggleLineComment(p.arguments,!0)),"toggleLineComment-full":p=>this.requiredResponse(this.toggleLineComment(p.arguments,!1)),toggleMultilineComment:p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!0)),"toggleMultilineComment-full":p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!1)),commentSelection:p=>this.requiredResponse(this.commentSelection(p.arguments,!0)),"commentSelection-full":p=>this.requiredResponse(this.commentSelection(p.arguments,!1)),uncommentSelection:p=>this.requiredResponse(this.uncommentSelection(p.arguments,!0)),"uncommentSelection-full":p=>this.requiredResponse(this.uncommentSelection(p.arguments,!1)),provideInlayHints:p=>this.requiredResponse(this.provideInlayHints(p.arguments))})),this.host=u.host,this.cancellationToken=u.cancellationToken,this.typingsInstaller=u.typingsInstaller||qee,this.byteLength=u.byteLength,this.hrtime=u.hrtime,this.logger=u.logger,this.canUseEvents=u.canUseEvents,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=u.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:s}=u;this.eventHandler=this.canUseEvents?u.eventHandler||(p=>this.defaultEventHandler(p)):void 0;const d={executeWithRequestId:(p,E)=>this.executeWithRequestId(p,E),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(p,E)=>this.logError(p,E),sendRequestCompletedEvent:p=>this.sendRequestCompletedEvent(p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Jct(d);const f={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:u.useSingleInferredProject,useInferredProjectPerProjectRoot:u.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:s,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:u.globalPlugins,pluginProbeLocations:u.pluginProbeLocations,allowLocalPluginLoads:u.allowLocalPluginLoads,typesMapLocation:u.typesMapLocation,serverMode:u.serverMode,session:this,canUseWatchEvents:u.canUseWatchEvents,incrementalVerifier:u.incrementalVerifier};switch(this.projectService=new mge(f),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Ype(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:FNe.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:$ct.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:H.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(u){this.event({request_seq:u},"requestCompleted")}addPerformanceData(u,s){this.performanceData||(this.performanceData={}),this.performanceData[u]=(this.performanceData[u]??0)+s}performanceEventHandler(u){switch(u.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",u.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",u.durationMs);break}}defaultEventHandler(u){switch(u.eventName){case JK:this.projectsUpdatedInBackgroundEvent(u.data.openFiles);break;case tte:this.event({projectName:u.data.project.getProjectName(),reason:u.data.reason},u.eventName);break;case ite:this.event({projectName:u.data.project.getProjectName()},u.eventName);break;case nte:case ote:case ste:case lte:this.event(u.data,u.eventName);break;case ute:this.event({triggerFile:u.data.triggerFile,configFile:u.data.configFileName,diagnostics:Vt(u.data.diagnostics,s=>UK(s,!0))},u.eventName);break;case rte:{this.event({projectName:u.data.project.getProjectName(),languageServiceEnabled:u.data.languageServiceEnabled},u.eventName);break}case ate:{this.event({telemetryEventName:u.eventName,payload:u.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(u){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${u}`),u.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(s=>this.updateErrorCheck(s,u,100,!0)),this.event({openFiles:u},JK))}logError(u,s){this.logErrorWorker(u,s)}logErrorWorker(u,s,d){let f="Exception on executing command "+s;if(u.message&&(f+=`: -`+BM(u.message),u.stack&&(f+=` -`+BM(u.stack))),this.logger.hasLevel(3)){if(d)try{const{file:p,project:E}=this.getFileAndProject(d),v=E.getScriptInfoForNormalizedPath(p);if(v){const b=aw(v.getSnapshot());f+=` +${p}${d}`}function FNe(t,u){return{seq:0,type:"event",event:t,body:u}}function YQt(t,u,s,d){const f=Nr(Wa(s)?s:s.projects,p=>d(p,t));return!Wa(s)&&s.symLinkedProjects&&s.symLinkedProjects.forEach((p,E)=>{const v=u(E);f.push(...Vu(p,b=>d(b,v)))}),li(f,Cx)}function _ge(){return soe(({textSpan:t})=>t.start+100003*t.length,kX)}function QQt(t,u,s,d,f,p){const E=Jct(t,u,s,!0,(B,k)=>B.getLanguageService().findRenameLocations(k.fileName,k.pos,d,f,p),(B,k)=>k(rz(B)));if(Wa(E))return E;const v=[],b=_ge();return E.forEach((B,k)=>{for(const T of B)!b.has(T)&&!Dge(rz(T),k)&&(v.push(T),b.add(T))}),v}function XQt(t,u,s){const d=t.getLanguageService().getDefinitionAtPosition(u.fileName,u.pos,!1,s),f=d&&Ki(d);return f&&!f.isLocal?{fileName:f.fileName,pos:f.textSpan.start}:void 0}function eXt(t,u,s,d){var f,p;const E=Jct(t,u,s,!1,(k,T)=>(d.info(`Finding references to ${T.fileName} position ${T.pos} in project ${k.getProjectName()}`),k.getLanguageService().findReferences(T.fileName,T.pos)),(k,T)=>{T(rz(k.definition));for(const M of k.references)T(rz(M))});if(Wa(E))return E;const v=E.get(u);if(((p=(f=v==null?void 0:v[0])==null?void 0:f.references[0])==null?void 0:p.isDefinition)===void 0)E.forEach(k=>{for(const T of k)for(const M of T.references)delete M.isDefinition});else{const k=_ge();for(const M of v)for(const z of M.references)if(z.isDefinition){k.add(z);break}const T=new Set;for(;;){let M=!1;if(E.forEach((z,j)=>{if(T.has(j))return;j.getLanguageService().updateIsDefinitionOfReferencedSymbols(z,k)&&(T.add(j),M=!0)}),!M)break}E.forEach((M,z)=>{if(!T.has(z))for(const j of M)for(const J of j.references)J.isDefinition=!1})}const b=[],B=_ge();return E.forEach((k,T)=>{for(const M of k){const z=Dge(rz(M.definition),T),j=z===void 0?M.definition:{...M.definition,textSpan:h1(z.pos,M.definition.textSpan.length),fileName:z.fileName,contextSpan:nXt(M.definition,T)};let J=Le(b,K=>kX(K.definition,j));J||(J={definition:j,references:[]},b.push(J));for(const K of M.references)!B.has(K)&&!Dge(rz(K),T)&&(B.add(K),J.references.push(K))}}),b.filter(k=>k.references.length!==0)}function ANe(t,u,s){for(const d of Wa(t)?t:t.projects)s(d,u);!Wa(t)&&t.symLinkedProjects&&t.symLinkedProjects.forEach((d,f)=>{for(const p of d)s(p,f)})}function Jct(t,u,s,d,f,p){const E=new Map,v=Z$();v.enqueue({project:u,location:s}),ANe(t,s.fileName,(J,K)=>{const Y={fileName:K,pos:s.pos};v.enqueue({project:J,location:Y})});const b=u.projectService,B=u.getCancellationToken(),k=XQt(u,s,d),T=zh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetGeneratedPosition(k)),M=zh(()=>u.isSourceOfProjectReferenceRedirect(k.fileName)?k:u.getLanguageService().getSourceMapper().tryGetSourcePosition(k)),z=new Set;e:for(;!v.isEmpty();){for(;!v.isEmpty();){if(B.isCancellationRequested())break e;const{project:J,location:K}=v.dequeue();if(E.has(J)||$ct(J,K)||(Jm(J),!J.containsFile(xl(K.fileName))))continue;const Y=j(J,K);E.set(J,Y??qc),z.add(iXt(J))}k&&(b.loadAncestorProjectTree(z),b.forEachEnabledProject(J=>{if(B.isCancellationRequested()||E.has(J))return;const K=tXt(k,J,T,M);K&&v.enqueue({project:J,location:K})}))}if(E.size===1)return ja(E.values());return E;function j(J,K){const Y=f(J,K);if(Y){for(const oe of Y)p(oe,se=>{const ge=b.getOriginalLocationEnsuringConfiguredProject(J,se);if(!ge)return;const ae=b.getScriptInfo(ge.fileName);for(const ne of ae.containingProjects)!ne.isOrphan()&&!E.has(ne)&&v.enqueue({project:ne,location:ge});const Ce=b.getSymlinkedProjects(ae);Ce&&Ce.forEach((ne,ve)=>{for(const Se of ne)!Se.isOrphan()&&!E.has(Se)&&v.enqueue({project:Se,location:{fileName:ve,pos:ge.pos}})})});return Y}}}function tXt(t,u,s,d){if(u.containsFile(xl(t.fileName))&&!$ct(u,t))return t;const f=s();if(f&&u.containsFile(xl(f.fileName)))return f;const p=d();return p&&u.containsFile(xl(p.fileName))?p:void 0}function $ct(t,u){if(!u)return!1;const s=t.getLanguageService().getProgram();if(!s)return!1;const d=s.getSourceFile(u.fileName);return!!d&&d.resolvedPath!==d.path&&d.resolvedPath!==t.toPath(u.fileName)}function iXt(t){return Xv(t)?t.canonicalConfigFilePath:t.getProjectName()}function rz({fileName:t,textSpan:u}){return{fileName:t,pos:u.start}}function Dge(t,u){return IM(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function Uct(t,u){return FX(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function nXt(t,u){return hfe(t,u.getSourceMapper(),s=>u.projectService.fileExists(s))}function c_(t,u){return{start:u.positionToLineOffset(t.start),end:u.positionToLineOffset(Dc(t))}}function SNe(t,u,s){const d=c_(t,s),f=u&&c_(u,s);return f?{...d,contextStart:f.start,contextEnd:f.end}:d}function uXt(t,u){return{start:qct(u,t.span.start),end:qct(u,Dc(t.span)),newText:t.newText}}function qct(t,u){return DNe(t)?aXt(t.getLineAndCharacterOfPosition(u)):t.positionToLineOffset(u)}function rXt(t,u){const s=t.ranges.map(d=>({start:u.positionToLineOffset(d.start),end:u.positionToLineOffset(d.start+d.length)}));return t.wordPattern?{ranges:s,wordPattern:t.wordPattern}:{ranges:s}}function aXt(t){return{line:t.line+1,offset:t.character+1}}function oXt(t){H.assert(t.textChanges.length===1);const u=Pn(t.textChanges);return H.assert(u.span.start===0&&u.span.length===0),{fileName:t.fileName,textChanges:[{start:{line:0,offset:0},end:{line:0,offset:0},newText:u.newText}]}}function BNe(t,u,s,d){const f=sXt(t,u,d),{line:p,character:E}=k8(n7(f),s);return{line:p+1,offset:E+1}}function sXt(t,u,s){for(const{fileName:d,textChanges:f}of s)if(d===u)for(let p=f.length-1;p>=0;p--){const{newText:E,span:{start:v,length:b}}=f[p];t=t.slice(0,v)+E+t.slice(v+b)}return t}function Zct(t,{fileName:u,textSpan:s,contextSpan:d,isWriteAccess:f,isDefinition:p},{disableLineTextInReferences:E}){const v=H.checkDefined(t.getScriptInfo(u)),b=SNe(s,d,v),B=E?void 0:lXt(v,b);return{file:u,...b,lineText:B,isWriteAccess:f,isDefinition:p}}function lXt(t,u){const s=t.lineToTextSpan(u.start.line-1);return t.getSnapshot().getText(s.start,Dc(s)).replace(/\r|\n/g,"")}function cXt(t){return t===void 0||t&&typeof t=="object"&&typeof t.exportName=="string"&&(t.fileName===void 0||typeof t.fileName=="string")&&(t.ambientModuleName===void 0||typeof t.ambientModuleName=="string"&&(t.isPackageJsonImport===void 0||typeof t.isPackageJsonImport=="boolean"))}var wNe,TNe,Yct,LNe,Qct,NNe,dXt=o({"src/server/session.ts"(){eC(),_9(),aNe(),wNe={isCancellationRequested:()=>!1,setRequest:()=>{},resetRequest:()=>{}},TNe=ege,Yct=class{constructor(t){this.operationHost=t}startNew(t){this.complete(),this.requestId=this.operationHost.getCurrentRequestId(),this.executeAction(t)}complete(){this.requestId!==void 0&&(this.operationHost.sendRequestCompletedEvent(this.requestId),this.requestId=void 0),this.setTimerHandle(void 0),this.setImmediateId(void 0)}immediate(t,u){const s=this.requestId;H.assert(s===this.operationHost.getCurrentRequestId(),"immediate: incorrect request id"),this.setImmediateId(this.operationHost.getServerHost().setImmediate(()=>{this.immediateId=void 0,this.operationHost.executeWithRequestId(s,()=>this.executeAction(u))},t))}delay(t,u,s){const d=this.requestId;H.assert(d===this.operationHost.getCurrentRequestId(),"delay: incorrect request id"),this.setTimerHandle(this.operationHost.getServerHost().setTimeout(()=>{this.timerHandle=void 0,this.operationHost.executeWithRequestId(d,()=>this.executeAction(s))},u,t))}executeAction(t){var u,s,d,f,p,E;let v=!1;try{this.operationHost.isCancellationRequested()?(v=!0,(u=Gn)==null||u.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId,early:!0})):((s=Gn)==null||s.push(Gn.Phase.Session,"stepAction",{seq:this.requestId}),t(this),(d=Gn)==null||d.pop())}catch(b){(f=Gn)==null||f.popAll(),v=!0,b instanceof b8?(p=Gn)==null||p.instant(Gn.Phase.Session,"stepCanceled",{seq:this.requestId}):((E=Gn)==null||E.instant(Gn.Phase.Session,"stepError",{seq:this.requestId,message:b.message}),this.operationHost.logError(b,`delayed processing of request ${this.requestId}`))}(v||!this.hasPendingWork())&&this.complete()}setTimerHandle(t){this.timerHandle!==void 0&&this.operationHost.getServerHost().clearTimeout(this.timerHandle),this.timerHandle=t}setImmediateId(t){this.immediateId!==void 0&&this.operationHost.getServerHost().clearImmediate(this.immediateId),this.immediateId=t}hasPendingWork(){return!!this.timerHandle||!!this.immediateId}},LNe=["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"],Qct=[...LNe,"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"],NNe=class Q3e{constructor(u){this.changeSeq=0,this.handlers=new Map(Object.entries({status:()=>{const p={version:_};return this.requiredResponse(p)},openExternalProject:p=>(this.projectService.openExternalProject(p.arguments),this.requiredResponse(!0)),openExternalProjects:p=>(this.projectService.openExternalProjects(p.arguments.projects),this.requiredResponse(!0)),closeExternalProject:p=>(this.projectService.closeExternalProject(p.arguments.projectFileName),this.requiredResponse(!0)),synchronizeProjectList:p=>{const E=this.projectService.synchronizeProjectList(p.arguments.knownProjects,p.arguments.includeProjectReferenceRedirectInfo);if(!E.some(b=>b.projectErrors&&b.projectErrors.length!==0))return this.requiredResponse(E);const v=Vt(E,b=>!b.projectErrors||b.projectErrors.length===0?b:{info:b.info,changes:b.changes,files:b.files,projectErrors:this.convertToDiagnosticsWithLinePosition(b.projectErrors,void 0)});return this.requiredResponse(v)},updateOpen:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles&&Ir(p.arguments.openFiles,E=>({fileName:E.file,content:E.fileContent,scriptKind:E.scriptKindName,projectRootPath:E.projectRootPath})),p.arguments.changedFiles&&Ir(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:Ka(Cd(E.textChanges),v=>{const b=H.checkDefined(this.projectService.getScriptInfo(E.fileName)),B=b.lineOffsetToPosition(v.start.line,v.start.offset),k=b.lineOffsetToPosition(v.end.line,v.end.offset);return B>=0?{span:{start:B,length:k-B},newText:v.newText}:void 0})})),p.arguments.closedFiles),this.requiredResponse(!0)),applyChangedToOpenFiles:p=>(this.changeSeq++,this.projectService.applyChangesInOpenFiles(p.arguments.openFiles,p.arguments.changedFiles&&Ir(p.arguments.changedFiles,E=>({fileName:E.fileName,changes:Cd(E.changes)})),p.arguments.closedFiles),this.requiredResponse(!0)),exit:()=>(this.exit(),this.notRequired()),definition:p=>this.requiredResponse(this.getDefinition(p.arguments,!0)),"definition-full":p=>this.requiredResponse(this.getDefinition(p.arguments,!1)),definitionAndBoundSpan:p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!0)),"definitionAndBoundSpan-full":p=>this.requiredResponse(this.getDefinitionAndBoundSpan(p.arguments,!1)),findSourceDefinition:p=>this.requiredResponse(this.findSourceDefinition(p.arguments)),"emit-output":p=>this.requiredResponse(this.getEmitOutput(p.arguments)),typeDefinition:p=>this.requiredResponse(this.getTypeDefinition(p.arguments)),implementation:p=>this.requiredResponse(this.getImplementation(p.arguments,!0)),"implementation-full":p=>this.requiredResponse(this.getImplementation(p.arguments,!1)),references:p=>this.requiredResponse(this.getReferences(p.arguments,!0)),"references-full":p=>this.requiredResponse(this.getReferences(p.arguments,!1)),rename:p=>this.requiredResponse(this.getRenameLocations(p.arguments,!0)),"renameLocations-full":p=>this.requiredResponse(this.getRenameLocations(p.arguments,!1)),"rename-full":p=>this.requiredResponse(this.getRenameInfo(p.arguments)),open:p=>(this.openClientFile(xl(p.arguments.file),p.arguments.fileContent,dge(p.arguments.scriptKindName),p.arguments.projectRootPath?xl(p.arguments.projectRootPath):void 0),this.notRequired()),quickinfo:p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!0)),"quickinfo-full":p=>this.requiredResponse(this.getQuickInfoWorker(p.arguments,!1)),getOutliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!0)),outliningSpans:p=>this.requiredResponse(this.getOutliningSpans(p.arguments,!1)),todoComments:p=>this.requiredResponse(this.getTodoComments(p.arguments)),indentation:p=>this.requiredResponse(this.getIndentation(p.arguments)),nameOrDottedNameSpan:p=>this.requiredResponse(this.getNameOrDottedNameSpan(p.arguments)),breakpointStatement:p=>this.requiredResponse(this.getBreakpointStatement(p.arguments)),braceCompletion:p=>this.requiredResponse(this.isValidBraceCompletion(p.arguments)),docCommentTemplate:p=>this.requiredResponse(this.getDocCommentTemplate(p.arguments)),getSpanOfEnclosingComment:p=>this.requiredResponse(this.getSpanOfEnclosingComment(p.arguments)),fileReferences:p=>this.requiredResponse(this.getFileReferences(p.arguments,!0)),"fileReferences-full":p=>this.requiredResponse(this.getFileReferences(p.arguments,!1)),format:p=>this.requiredResponse(this.getFormattingEditsForRange(p.arguments)),formatonkey:p=>this.requiredResponse(this.getFormattingEditsAfterKeystroke(p.arguments)),"format-full":p=>this.requiredResponse(this.getFormattingEditsForDocumentFull(p.arguments)),"formatonkey-full":p=>this.requiredResponse(this.getFormattingEditsAfterKeystrokeFull(p.arguments)),"formatRange-full":p=>this.requiredResponse(this.getFormattingEditsForRangeFull(p.arguments)),completionInfo:p=>this.requiredResponse(this.getCompletions(p.arguments,"completionInfo")),completions:p=>this.requiredResponse(this.getCompletions(p.arguments,"completions")),"completions-full":p=>this.requiredResponse(this.getCompletions(p.arguments,"completions-full")),completionEntryDetails:p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!1)),"completionEntryDetails-full":p=>this.requiredResponse(this.getCompletionEntryDetails(p.arguments,!0)),compileOnSaveAffectedFileList:p=>this.requiredResponse(this.getCompileOnSaveAffectedFileList(p.arguments)),compileOnSaveEmitFile:p=>this.requiredResponse(this.emitFile(p.arguments)),signatureHelp:p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!0)),"signatureHelp-full":p=>this.requiredResponse(this.getSignatureHelpItems(p.arguments,!1)),"compilerOptionsDiagnostics-full":p=>this.requiredResponse(this.getCompilerOptionsDiagnostics(p.arguments)),"encodedSyntacticClassifications-full":p=>this.requiredResponse(this.getEncodedSyntacticClassifications(p.arguments)),"encodedSemanticClassifications-full":p=>this.requiredResponse(this.getEncodedSemanticClassifications(p.arguments)),cleanup:()=>(this.cleanup(),this.requiredResponse(!0)),semanticDiagnosticsSync:p=>this.requiredResponse(this.getSemanticDiagnosticsSync(p.arguments)),syntacticDiagnosticsSync:p=>this.requiredResponse(this.getSyntacticDiagnosticsSync(p.arguments)),suggestionDiagnosticsSync:p=>this.requiredResponse(this.getSuggestionDiagnosticsSync(p.arguments)),geterr:p=>(this.errorCheck.startNew(E=>this.getDiagnostics(E,p.arguments.delay,p.arguments.files)),this.notRequired()),geterrForProject:p=>(this.errorCheck.startNew(E=>this.getDiagnosticsForProject(E,p.arguments.delay,p.arguments.file)),this.notRequired()),change:p=>(this.change(p.arguments),this.notRequired()),configure:p=>(this.projectService.setHostConfiguration(p.arguments),this.doOutput(void 0,"configure",p.seq,!0),this.notRequired()),reload:p=>(this.reload(p.arguments,p.seq),this.requiredResponse({reloadFinished:!0})),saveto:p=>{const E=p.arguments;return this.saveToTmp(E.file,E.tmpfile),this.notRequired()},close:p=>{const E=p.arguments;return this.closeClientFile(E.file),this.notRequired()},navto:p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!0)),"navto-full":p=>this.requiredResponse(this.getNavigateToItems(p.arguments,!1)),brace:p=>this.requiredResponse(this.getBraceMatching(p.arguments,!0)),"brace-full":p=>this.requiredResponse(this.getBraceMatching(p.arguments,!1)),navbar:p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!0)),"navbar-full":p=>this.requiredResponse(this.getNavigationBarItems(p.arguments,!1)),navtree:p=>this.requiredResponse(this.getNavigationTree(p.arguments,!0)),"navtree-full":p=>this.requiredResponse(this.getNavigationTree(p.arguments,!1)),documentHighlights:p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!0)),"documentHighlights-full":p=>this.requiredResponse(this.getDocumentHighlights(p.arguments,!1)),compilerOptionsForInferredProjects:p=>(this.setCompilerOptionsForInferredProjects(p.arguments),this.requiredResponse(!0)),projectInfo:p=>this.requiredResponse(this.getProjectInfo(p.arguments)),reloadProjects:()=>(this.projectService.reloadProjects(),this.notRequired()),jsxClosingTag:p=>this.requiredResponse(this.getJsxClosingTag(p.arguments)),linkedEditingRange:p=>this.requiredResponse(this.getLinkedEditingRange(p.arguments)),getCodeFixes:p=>this.requiredResponse(this.getCodeFixes(p.arguments,!0)),"getCodeFixes-full":p=>this.requiredResponse(this.getCodeFixes(p.arguments,!1)),getCombinedCodeFix:p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!0)),"getCombinedCodeFix-full":p=>this.requiredResponse(this.getCombinedCodeFix(p.arguments,!1)),applyCodeActionCommand:p=>this.requiredResponse(this.applyCodeActionCommand(p.arguments)),getSupportedCodeFixes:p=>this.requiredResponse(this.getSupportedCodeFixes(p.arguments)),getApplicableRefactors:p=>this.requiredResponse(this.getApplicableRefactors(p.arguments)),getEditsForRefactor:p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!0)),getMoveToRefactoringFileSuggestions:p=>this.requiredResponse(this.getMoveToRefactoringFileSuggestions(p.arguments)),"getEditsForRefactor-full":p=>this.requiredResponse(this.getEditsForRefactor(p.arguments,!1)),organizeImports:p=>this.requiredResponse(this.organizeImports(p.arguments,!0)),"organizeImports-full":p=>this.requiredResponse(this.organizeImports(p.arguments,!1)),getEditsForFileRename:p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!0)),"getEditsForFileRename-full":p=>this.requiredResponse(this.getEditsForFileRename(p.arguments,!1)),configurePlugin:p=>(this.configurePlugin(p.arguments),this.doOutput(void 0,"configurePlugin",p.seq,!0),this.notRequired()),selectionRange:p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!0)),"selectionRange-full":p=>this.requiredResponse(this.getSmartSelectionRange(p.arguments,!1)),prepareCallHierarchy:p=>this.requiredResponse(this.prepareCallHierarchy(p.arguments)),provideCallHierarchyIncomingCalls:p=>this.requiredResponse(this.provideCallHierarchyIncomingCalls(p.arguments)),provideCallHierarchyOutgoingCalls:p=>this.requiredResponse(this.provideCallHierarchyOutgoingCalls(p.arguments)),toggleLineComment:p=>this.requiredResponse(this.toggleLineComment(p.arguments,!0)),"toggleLineComment-full":p=>this.requiredResponse(this.toggleLineComment(p.arguments,!1)),toggleMultilineComment:p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!0)),"toggleMultilineComment-full":p=>this.requiredResponse(this.toggleMultilineComment(p.arguments,!1)),commentSelection:p=>this.requiredResponse(this.commentSelection(p.arguments,!0)),"commentSelection-full":p=>this.requiredResponse(this.commentSelection(p.arguments,!1)),uncommentSelection:p=>this.requiredResponse(this.uncommentSelection(p.arguments,!0)),"uncommentSelection-full":p=>this.requiredResponse(this.uncommentSelection(p.arguments,!1)),provideInlayHints:p=>this.requiredResponse(this.provideInlayHints(p.arguments))})),this.host=u.host,this.cancellationToken=u.cancellationToken,this.typingsInstaller=u.typingsInstaller||Yee,this.byteLength=u.byteLength,this.hrtime=u.hrtime,this.logger=u.logger,this.canUseEvents=u.canUseEvents,this.suppressDiagnosticEvents=u.suppressDiagnosticEvents,this.noGetErrOnBackgroundUpdate=u.noGetErrOnBackgroundUpdate;const{throttleWaitMilliseconds:s}=u;this.eventHandler=this.canUseEvents?u.eventHandler||(p=>this.defaultEventHandler(p)):void 0;const d={executeWithRequestId:(p,E)=>this.executeWithRequestId(p,E),getCurrentRequestId:()=>this.currentRequestId,getServerHost:()=>this.host,logError:(p,E)=>this.logError(p,E),sendRequestCompletedEvent:p=>this.sendRequestCompletedEvent(p),isCancellationRequested:()=>this.cancellationToken.isCancellationRequested()};this.errorCheck=new Yct(d);const f={host:this.host,logger:this.logger,cancellationToken:this.cancellationToken,useSingleInferredProject:u.useSingleInferredProject,useInferredProjectPerProjectRoot:u.useInferredProjectPerProjectRoot,typingsInstaller:this.typingsInstaller,throttleWaitMilliseconds:s,eventHandler:this.eventHandler,suppressDiagnosticEvents:this.suppressDiagnosticEvents,globalPlugins:u.globalPlugins,pluginProbeLocations:u.pluginProbeLocations,allowLocalPluginLoads:u.allowLocalPluginLoads,typesMapLocation:u.typesMapLocation,serverMode:u.serverMode,session:this,canUseWatchEvents:u.canUseWatchEvents,incrementalVerifier:u.incrementalVerifier};switch(this.projectService=new gge(f),this.projectService.setPerformanceEventHandler(this.performanceEventHandler.bind(this)),this.gcTimer=new Xpe(this.host,7e3,this.logger),this.projectService.serverMode){case 0:break;case 1:LNe.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.PartialSemantic`)}));break;case 2:Qct.forEach(p=>this.handlers.set(p,E=>{throw new Error(`Request: ${E.command} not allowed in LanguageServiceMode.Syntactic`)}));break;default:H.assertNever(this.projectService.serverMode)}}sendRequestCompletedEvent(u){this.event({request_seq:u},"requestCompleted")}addPerformanceData(u,s){this.performanceData||(this.performanceData={}),this.performanceData[u]=(this.performanceData[u]??0)+s}performanceEventHandler(u){switch(u.kind){case"UpdateGraph":this.addPerformanceData("updateGraphDurationMs",u.durationMs);break;case"CreatePackageJsonAutoImportProvider":this.addPerformanceData("createAutoImportProviderProgramDurationMs",u.durationMs);break}}defaultEventHandler(u){switch(u.eventName){case $K:this.projectsUpdatedInBackgroundEvent(u.data.openFiles);break;case nte:this.event({projectName:u.data.project.getProjectName(),reason:u.data.reason},u.eventName);break;case ute:this.event({projectName:u.data.project.getProjectName()},u.eventName);break;case rte:case lte:case cte:case dte:this.event(u.data,u.eventName);break;case ate:this.event({triggerFile:u.data.triggerFile,configFile:u.data.configFileName,diagnostics:Vt(u.data.diagnostics,s=>qK(s,!0))},u.eventName);break;case ote:{this.event({projectName:u.data.project.getProjectName(),languageServiceEnabled:u.data.languageServiceEnabled},u.eventName);break}case ste:{this.event({telemetryEventName:u.eventName,payload:u.data},"telemetry");break}}}projectsUpdatedInBackgroundEvent(u){this.projectService.logger.info(`got projects updated in background, updating diagnostics for ${u}`),u.length&&(!this.suppressDiagnosticEvents&&!this.noGetErrOnBackgroundUpdate&&this.errorCheck.startNew(s=>this.updateErrorCheck(s,u,100,!0)),this.event({openFiles:u},$K))}logError(u,s){this.logErrorWorker(u,s)}logErrorWorker(u,s,d){let f="Exception on executing command "+s;if(u.message&&(f+=`: +`+wM(u.message),u.stack&&(f+=` +`+wM(u.stack))),this.logger.hasLevel(3)){if(d)try{const{file:p,project:E}=this.getFileAndProject(d),v=E.getScriptInfoForNormalizedPath(p);if(v){const b=aw(v.getSnapshot());f+=` -File text of ${d.file}:${BM(b)} +File text of ${d.file}:${wM(b)} `}}catch{}if(u.ProgramFiles){f+=` Program files: ${JSON.stringify(u.ProgramFiles)} @@ -410,53 +410,53 @@ Program files: ${JSON.stringify(u.ProgramFiles)} Projects:: `;let p=0;const E=v=>{f+=` -Project '${v.projectName}' (${nz[v.projectKind]}) ${p} +Project '${v.projectName}' (${uz[v.projectKind]}) ${p} `,f+=v.filesToString(!0),f+=` ----------------------------------------------- -`,p++};this.projectService.externalProjects.forEach(E),this.projectService.configuredProjects.forEach(E),this.projectService.inferredProjects.forEach(E)}}this.logger.msg(f,"Err")}send(u){if(u.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(u)}`);return}this.writeMessage(u)}writeMessage(u){var s;const d=DNe(u,this.logger,this.byteLength,this.host.newLine);(s=hh)==null||s.logEvent(`Response message size: ${d.length}`),this.host.write(d)}event(u,s){this.send(xNe(s,u))}doOutput(u,s,d,f,p){const E={seq:0,type:"response",command:s,request_seq:d,success:f,performanceData:this.performanceData};if(f){let v;if(Ha(u))E.body=u,v=u.metadata,delete u.metadata;else if(typeof u=="object")if(u.metadata){const{metadata:b,...B}=u;E.body=B,v=b}else E.body=u;else E.body=u;v&&(E.metadata=v)}else H.assert(u===void 0);p&&(E.message=p),this.send(E)}semanticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"semanticCheck",{file:u,configFilePath:s.canonicalConfigFilePath});const p=Oct(s,u)?$c:s.getLanguageService().getSemanticDiagnostics(u).filter(E=>!!E.file);this.sendDiagnosticsEvent(u,s,p,"semanticDiag"),(f=Gn)==null||f.pop()}syntacticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"syntacticCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSyntacticDiagnostics(u),"syntaxDiag"),(f=Gn)==null||f.pop()}suggestionCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"suggestionCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSuggestionDiagnostics(u),"suggestionDiag"),(f=Gn)==null||f.pop()}sendDiagnosticsEvent(u,s,d,f){try{this.event({file:u,diagnostics:d.map(p=>jct(u,s,p))},f)}catch(p){this.logError(p,f)}}updateErrorCheck(u,s,d,f=!0){H.assert(!this.suppressDiagnosticEvents);const p=this.changeSeq,E=Math.min(d,200);let v=0;const b=()=>{v++,s.length>v&&u.delay("checkOne",E,B)},B=()=>{if(this.changeSeq!==p)return;let k=s[v];if(Ja(k)&&(k=this.toPendingErrorCheck(k),!k)){b();return}const{fileName:T,project:M}=k;if(Gm(M),!!M.containsFile(T,f)&&(this.syntacticCheck(T,M),this.changeSeq===p)){if(M.projectService.serverMode!==0){b();return}u.immediate("semanticCheck",()=>{if(this.semanticCheck(T,M),this.changeSeq===p){if(this.getPreferences(T).disableSuggestions){b();return}u.immediate("suggestionCheck",()=>{this.suggestionCheck(T,M),b()})}})}};s.length>v&&this.changeSeq===p&&u.delay("checkOne",d,B)}cleanProjects(u,s){if(s){this.logger.info(`cleaning ${u}`);for(const d of s)d.getLanguageService(!1).cleanupSemanticCache(),d.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",ga(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u);return d.getEncodedSyntacticClassifications(s,u)}getEncodedSemanticClassifications(u){const{file:s,project:d}=this.getFileAndProject(u),f=u.format==="2020"?"2020":"original";return d.getLanguageService().getEncodedSemanticClassifications(s,u,f)}getProject(u){return u===void 0?void 0:this.projectService.findProject(u)}getConfigFileAndProject(u){const s=this.getProject(u.projectFileName),d=Dl(u.file);return{configFile:s&&s.hasConfigFile(d)?d:void 0,project:s}}getConfigFileDiagnostics(u,s,d){const f=s.getAllProjectErrors(),p=s.getLanguageService().getCompilerOptionsDiagnostics(),E=ti(Hi(f,p),v=>!!v.file&&v.file.fileName===u);return d?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):Vt(E,v=>UK(v,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(u){return u.map(s=>({message:lE(s.messageText,this.host.newLine),start:s.start,length:s.length,category:Gy(s),code:s.code,source:s.source,startLocation:s.file&&$K(s0(s.file,s.start)),endLocation:s.file&&$K(s0(s.file,s.start+s.length)),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,relatedInformation:Vt(s.relatedInformation,pge)}))}getCompilerOptionsDiagnostics(u){const s=this.getProject(u.projectFileName);return this.convertToDiagnosticsWithLinePosition(ti(s.getLanguageService().getCompilerOptionsDiagnostics(),d=>!d.file),void 0)}convertToDiagnosticsWithLinePosition(u,s){return u.map(d=>({message:lE(d.messageText,this.host.newLine),start:d.start,length:d.length,category:Gy(d),code:d.code,source:d.source,startLocation:s&&s.positionToLineOffset(d.start),endLocation:s&&s.positionToLineOffset(d.start+d.length),reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated,relatedInformation:Vt(d.relatedInformation,pge)}))}getDiagnosticsWorker(u,s,d,f){const{project:p,file:E}=this.getFileAndProject(u);if(s&&Oct(p,E))return $c;const v=p.getScriptInfoForNormalizedPath(E),b=d(p,E);return f?this.convertToDiagnosticsWithLinePosition(b,v):b.map(B=>jct(E,p,B))}getDefinition(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapDefinitionInfoLocations(f.getLanguageService().getDefinitionAtPosition(d,p)||$c,f);return s?this.mapDefinitionInfo(E,f):E.map(q3e.mapToOriginalLocation)}mapDefinitionInfoLocations(u,s){return u.map(d=>{const f=Kct(d,s);return f?{...f,containerKind:d.containerKind,containerName:d.containerName,kind:d.kind,name:d.name,failedAliasResolution:d.failedAliasResolution,...d.unverified&&{unverified:d.unverified}}:d})}getDefinitionAndBoundSpan(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=H.checkDefined(f.getScriptInfo(d)),v=f.getLanguageService().getDefinitionAndBoundSpan(d,p);if(!v||!v.definitions)return{definitions:$c,textSpan:void 0};const b=this.mapDefinitionInfoLocations(v.definitions,f),{textSpan:B}=v;return s?{definitions:this.mapDefinitionInfo(b,f),textSpan:l_(B,E)}:{definitions:b.map(q3e.mapToOriginalLocation),textSpan:B}}findSourceDefinition(u){var s;const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDefinitionAtPosition(d,p);let v=this.mapDefinitionInfoLocations(E||$c,f).slice();if(this.projectService.serverMode===0&&(!Oe(v,z=>Dl(z.fileName)!==d&&!z.isAmbient)||Oe(v,z=>!!z.failedAliasResolution))){const z=aoe(Y=>Y.textSpan.start,bX);v==null||v.forEach(Y=>z.add(Y));const j=f.getNoDtsResolutionProject(d),J=j.getLanguageService(),K=(s=J.getDefinitionAtPosition(d,p,!0,!1))==null?void 0:s.filter(Y=>Dl(Y.fileName)!==d);if(Oe(K))for(const Y of K){if(Y.unverified){const oe=T(Y,f.getLanguageService().getProgram(),J.getProgram());if(Oe(oe)){for(const se of oe)z.add(se);continue}}z.add(Y)}else{const Y=v.filter(oe=>Dl(oe.fileName)!==d&&oe.isAmbient);for(const oe of Oe(Y)?Y:k()){const se=B(oe.fileName,d,j);if(!se)continue;const ge=this.projectService.getOrCreateScriptInfoNotOpenedByClient(se,j.currentDirectory,j.directoryStructureHost);if(!ge)continue;j.containsScriptInfo(ge)||(j.addRoot(ge),j.updateGraph());const ae=J.getProgram(),Ce=H.checkDefined(ae.getSourceFile(se));for(const ne of M(oe.name,Ce,ae))z.add(ne)}}v=ga(z.values())}return v=v.filter(z=>!z.isAmbient&&!z.failedAliasResolution),this.mapDefinitionInfo(v,f);function B(z,j,J){var K,Y,oe;const se=pZ(z);if(se&&z.lastIndexOf(o_)===se.topLevelNodeModulesIndex){const ge=z.substring(0,se.packageRootIndex),ae=(K=f.getModuleResolutionCache())==null?void 0:K.getPackageJsonInfoCache(),Ce=f.getCompilationSettings(),ne=aH($a(ge+"/package.json",f.getCurrentDirectory()),rH(ae,f,Ce));if(!ne)return;const ve=kde(ne,{moduleResolution:2},f,f.getModuleResolutionCache()),Se=z.substring(se.topLevelPackageNameIndex+1,se.packageRootIndex),Ne=hM(lH(Se)),pe=f.toPath(z);if(ve&&Oe(ve,fe=>f.toPath(fe)===pe))return(Y=J.resolutionCache.resolveSingleModuleNameWithoutWatching(Ne,j).resolvedModule)==null?void 0:Y.resolvedFileName;{const fe=z.substring(se.packageRootIndex+1),xe=`${Ne}/${_h(fe)}`;return(oe=J.resolutionCache.resolveSingleModuleNameWithoutWatching(xe,j).resolvedModule)==null?void 0:oe.resolvedFileName}}}function k(){const z=f.getLanguageService(),j=z.getProgram(),J=af(j.getSourceFile(d),p);return(t0(J)||at(J))&&I0(J.parent)&&Zye(J,K=>{var Y;if(K===J)return;const oe=(Y=z.getDefinitionAtPosition(d,K.getStart(),!0,!1))==null?void 0:Y.filter(se=>Dl(se.fileName)!==d&&se.isAmbient).map(se=>({fileName:se.fileName,name:J4(J)}));if(Oe(oe))return oe})||$c}function T(z,j,J){var K;const Y=J.getSourceFile(z.fileName);if(!Y)return;const oe=af(j.getSourceFile(d),p),se=j.getTypeChecker().getSymbolAtLocation(oe),ge=se&&Sl(se,276);if(!ge)return;const ae=((K=ge.propertyName)==null?void 0:K.text)||ge.name.text;return M(ae,Y,J)}function M(z,j,J){const K=Z0.Core.getTopMostDeclarationNamesInFile(z,j);return qi(K,Y=>{const oe=J.getTypeChecker().getSymbolAtLocation(Y),se=nP(Y);if(oe&&se)return Cw.createDefinitionInfo(se,J.getTypeChecker(),oe,se,!0)})}}getEmitOutput(u){const{file:s,project:d}=this.getFileAndProject(u);if(!d.shouldEmitFile(d.getScriptInfo(s)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const f=d.getLanguageService().getEmitOutput(s);return u.richResponse?{...f,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f.diagnostics):f.diagnostics.map(p=>UK(p,!0))}:f}mapJSDocTagInfo(u,s,d){return u?u.map(f=>{var p;return{...f,text:d?this.mapDisplayParts(f.text,s):(p=f.text)==null?void 0:p.map(E=>E.text).join("")}}):[]}mapDisplayParts(u,s){return u?u.map(d=>d.kind!=="linkName"?d:{...d,target:this.toFileSpan(d.target.fileName,d.target.textSpan,s)}):[]}mapSignatureHelpItems(u,s,d){return u.map(f=>({...f,documentation:this.mapDisplayParts(f.documentation,s),parameters:f.parameters.map(p=>({...p,documentation:this.mapDisplayParts(p.documentation,s)})),tags:this.mapJSDocTagInfo(f.tags,s,d)}))}mapDefinitionInfo(u,s){return u.map(d=>({...this.toFileSpanWithContext(d.fileName,d.textSpan,d.contextSpan,s),...d.unverified&&{unverified:d.unverified}}))}static mapToOriginalLocation(u){return u.originalFileName?(H.assert(u.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...u,fileName:u.originalFileName,textSpan:u.originalTextSpan,targetFileName:u.fileName,targetTextSpan:u.textSpan,contextSpan:u.originalContextSpan,targetContextSpan:u.contextSpan}):u}toFileSpan(u,s,d){const f=d.getLanguageService(),p=f.toLineColumnOffset(u,s.start),E=f.toLineColumnOffset(u,Ec(s));return{file:u,start:{line:p.line+1,offset:p.character+1},end:{line:E.line+1,offset:E.character+1}}}toFileSpanWithContext(u,s,d,f){const p=this.toFileSpan(u,s,f),E=d&&this.toFileSpan(u,d,f);return E?{...p,contextStart:E.start,contextEnd:E.end}:p}getTypeDefinition(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.mapDefinitionInfoLocations(d.getLanguageService().getTypeDefinitionAtPosition(s,f)||$c,d);return this.mapDefinitionInfo(p,d)}mapImplementationLocations(u,s){return u.map(d=>{const f=Kct(d,s);return f?{...f,kind:d.kind,displayParts:d.displayParts}:d})}getImplementation(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapImplementationLocations(f.getLanguageService().getImplementationAtPosition(d,p)||$c,f);return s?E.map(({fileName:v,textSpan:b,contextSpan:B})=>this.toFileSpanWithContext(v,b,B,f)):E.map(q3e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?$c:this.getDiagnosticsWorker(u,!1,(d,f)=>d.getLanguageService().getSyntacticDiagnostics(f),!!u.includeLinePosition)}getSemanticDiagnosticsSync(u){const{configFile:s,project:d}=this.getConfigFileAndProject(u);return s?this.getConfigFileDiagnostics(s,d,!!u.includeLinePosition):this.getDiagnosticsWorker(u,!0,(f,p)=>f.getLanguageService().getSemanticDiagnostics(p).filter(E=>!!E.file),!!u.includeLinePosition)}getSuggestionDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?$c:this.getDiagnosticsWorker(u,!0,(d,f)=>d.getLanguageService().getSuggestionDiagnostics(f),!!u.includeLinePosition)}getJsxClosingTag(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getJsxClosingTagAtPosition(s,f);return p===void 0?void 0:{newText:p.newText,caretOffset:0}}getLinkedEditingRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getLinkedEditingRangeAtPosition(s,f),E=this.projectService.getScriptInfoForNormalizedPath(s);if(!(E===void 0||p===void 0))return tXt(p,E)}getDocumentHighlights(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDocumentHighlights(d,p,u.filesToSearch);return E?s?E.map(({fileName:v,highlightSpans:b})=>{const B=f.getScriptInfo(v);return{file:v,highlightSpans:b.map(({textSpan:k,kind:T,contextSpan:M})=>({...CNe(k,M,B),kind:T}))}}):E:$c}provideInlayHints(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);return d.getLanguageService().provideInlayHints(s,u,this.getPreferences(s)).map(E=>{const{position:v,displayParts:b}=E;return{...E,position:f.positionToLineOffset(v),displayParts:b==null?void 0:b.map(({text:B,span:k,file:T})=>{if(k){H.assertIsDefined(T,"Target file should be defined together with its span.");const M=this.projectService.getScriptInfo(T);return{text:B,span:{start:M.positionToLineOffset(k.start),end:M.positionToLineOffset(k.start+k.length),file:T}}}else return{text:B}})}})}setCompilerOptionsForInferredProjects(u){this.projectService.setCompilerOptionsForInferredProjects(u.options,u.projectRootPath)}getProjectInfo(u){return this.getProjectInfoWorker(u.file,u.projectFileName,u.needFileNameList,!1)}getProjectInfoWorker(u,s,d,f){const{project:p}=this.getFileAndProjectWorker(u,s);return Gm(p),{configFileName:p.getProjectName(),languageServiceDisabled:!p.languageServiceEnabled,fileNames:d?p.getFileNames(!1,f):void 0}}getRenameInfo(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.getPreferences(s);return d.getLanguageService().getRenameInfo(s,f,p)}getProjects(u,s,d){let f,p;if(u.projectFileName){const E=this.getProject(u.projectFileName);E&&(f=[E])}else{const E=s?this.projectService.getScriptInfoEnsuringProjectsUptoDate(u.file):this.projectService.getScriptInfo(u.file);if(E)s||this.projectService.ensureDefaultProjectForFile(E);else return d?$c:(this.projectService.logErrorForScriptInfoNotFound(u.file),v5.ThrowNoProject());f=E.containingProjects,p=this.projectService.getSymlinkedProjects(E)}return f=ti(f,E=>E.languageServiceEnabled&&!E.isOrphan()),!d&&(!f||!f.length)&&!p?(this.projectService.logErrorForScriptInfoNotFound(u.file??u.projectFileName),v5.ThrowNoProject()):p?{projects:f,symLinkedProjects:p}:f}getDefaultProject(u){if(u.projectFileName){const d=this.getProject(u.projectFileName);if(d)return d;if(!u.file)return v5.ThrowNoProject()}return this.projectService.getScriptInfo(u.file).getDefaultProject()}getRenameLocations(u,s){const d=Dl(u.file),f=this.getPositionInFile(u,d),p=this.getProjects(u),E=this.getDefaultProject(u),v=this.getPreferences(d),b=this.mapRenameInfo(E.getLanguageService().getRenameInfo(d,f,v),H.checkDefined(this.projectService.getScriptInfo(d)));if(!b.canRename)return s?{info:b,locs:[]}:[];const B=UQt(p,E,{fileName:u.file,pos:f},!!u.findInStrings,!!u.findInComments,v);return s?{info:b,locs:this.toSpanGroups(B)}:B}mapRenameInfo(u,s){if(u.canRename){const{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:B}=u;return{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:l_(B,s)}}else return u}toSpanGroups(u){const s=new Map;for(const{fileName:d,textSpan:f,contextSpan:p,originalContextSpan:E,originalTextSpan:v,originalFileName:b,...B}of u){let k=s.get(d);k||s.set(d,k={file:d,locs:[]});const T=H.checkDefined(this.projectService.getScriptInfo(d));k.locs.push({...CNe(f,p,T),...B})}return ga(s.values())}getReferences(u,s){const d=Dl(u.file),f=this.getProjects(u),p=this.getPositionInFile(u,d),E=ZQt(f,this.getDefaultProject(u),{fileName:u.file,pos:p},this.logger);if(!s)return E;const v=this.getPreferences(d),b=this.getDefaultProject(u),B=b.getScriptInfoForNormalizedPath(d),k=b.getLanguageService().getQuickInfoAtPosition(d,p),T=k?EK(k.displayParts):"",M=k&&k.textSpan,z=M?B.positionToLineOffset(M.start).offset:0,j=M?B.getSnapshot().getText(M.start,Ec(M)):"";return{refs:ju(E,K=>K.references.map(Y=>Gct(this.projectService,Y,v))),symbolName:j,symbolStartOffset:z,symbolDisplayString:T}}getFileReferences(u,s){const d=this.getProjects(u),f=u.file,p=this.getPreferences(Dl(f)),E=[],v=gge();return vNe(d,void 0,B=>{if(B.getCancellationToken().isCancellationRequested())return;const k=B.getLanguageService().getFileReferences(f);if(k)for(const T of k)v.has(T)||(E.push(T),v.add(T))}),s?{refs:E.map(B=>Gct(this.projectService,B,p)),symbolName:`"${u.file}"`}:E}openClientFile(u,s,d,f){this.projectService.openClientFileWithNormalizedPath(u,s,d,!1,f)}getPosition(u,s){return u.position!==void 0?u.position:s.lineOffsetToPosition(u.line,u.offset)}getPositionInFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(s);return this.getPosition(u,d)}getFileAndProject(u){return this.getFileAndProjectWorker(u.file,u.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(u){const{file:s,project:d}=this.getFileAndProject(u);return{file:s,languageService:d.getLanguageService(!1)}}getFileAndProjectWorker(u,s){const d=Dl(u),f=this.getProject(s)||this.projectService.ensureDefaultProjectForFile(d);return{file:d,project:f}}getOutliningSpans(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getOutliningSpans(d);if(s){const E=this.projectService.getScriptInfoForNormalizedPath(d);return p.map(v=>({textSpan:l_(v.textSpan,E),hintSpan:l_(v.hintSpan,E),bannerText:v.bannerText,autoCollapse:v.autoCollapse,kind:v.kind}))}else return p}getTodoComments(u){const{file:s,project:d}=this.getFileAndProject(u);return d.getLanguageService().getTodoComments(s,u.descriptors)}getDocCommentTemplate(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getDocCommentTemplateAtPosition(s,f,this.getPreferences(s),this.getFormatOptions(s))}getSpanOfEnclosingComment(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.onlyMultiLine,p=this.getPositionInFile(u,s);return d.getSpanOfEnclosingComment(s,p,f)}getIndentation(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=u.options?Sw(u.options):this.getFormatOptions(s),E=d.getIndentationAtPosition(s,f,p);return{position:f,indentation:E}}getBreakpointStatement(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getBreakpointStatementAtPosition(s,f)}getNameOrDottedNameSpan(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getNameOrDottedNameSpan(s,f,f)}isValidBraceCompletion(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.isValidBraceCompletionAtPosition(s,f,u.openingBrace.charCodeAt(0))}getQuickInfoWorker(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getQuickInfoAtPosition(d,this.getPosition(u,p));if(!E)return;const v=!!this.getPreferences(d).displayPartsForJSDoc;if(s){const b=EK(E.displayParts);return{kind:E.kind,kindModifiers:E.kindModifiers,start:p.positionToLineOffset(E.textSpan.start),end:p.positionToLineOffset(Ec(E.textSpan)),displayString:b,documentation:v?this.mapDisplayParts(E.documentation,f):EK(E.documentation),tags:this.mapJSDocTagInfo(E.tags,f,v)}}else return v?E:{...E,tags:this.mapJSDocTagInfo(E.tags,f,!1)}}getFormattingEditsForRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=f.lineOffsetToPosition(u.endLine,u.endOffset),v=d.getFormattingEditsForRange(s,p,E,this.getFormatOptions(s));if(v)return v.map(b=>this.convertTextChangeToCodeEdit(b,f))}getFormattingEditsForRangeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForRange(s,u.position,u.endPosition,f)}getFormattingEditsForDocumentFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForDocument(s,f)}getFormattingEditsAfterKeystrokeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsAfterKeystroke(s,u.position,u.key,f)}getFormattingEditsAfterKeystroke(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=this.getFormatOptions(s),v=d.getFormattingEditsAfterKeystroke(s,p,u.key,E);if(u.key===` -`&&(!v||v.length===0||JQt(v,p))){const{lineText:b,absolutePosition:B}=f.textStorage.getAbsolutePositionAndLineText(u.line);if(b&&b.search("\\S")<0){const k=d.getIndentationAtPosition(s,p,E);let T=0,M,z;for(M=0,z=b.length;M({start:f.positionToLineOffset(b.span.start),end:f.positionToLineOffset(Ec(b.span)),newText:b.newText?b.newText:""}))}getCompletions(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getCompletionsAtPosition(d,E,{...oNe(this.getPreferences(d)),triggerCharacter:u.triggerCharacter,triggerKind:u.triggerKind,includeExternalModuleExports:u.includeExternalModuleExports,includeInsertTextCompletions:u.includeInsertTextCompletions},f.projectService.getFormatCodeOptions(d));if(v===void 0)return;if(s==="completions-full")return v;const b=u.prefix||"",B=qi(v.entries,T=>{if(v.isMemberCompletion||Pa(T.name.toLowerCase(),b.toLowerCase())){const{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:oe,hasAction:se,source:ge,sourceDisplay:ae,labelDetails:Ce,isSnippet:ne,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}=T,fe=oe?l_(oe,p):void 0;return{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:fe,isSnippet:ne,hasAction:se||void 0,source:ge,sourceDisplay:ae,labelDetails:Ce,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}}});return s==="completions"?(v.metadata&&(B.metadata=v.metadata),B):{...v,optionalReplacementSpan:v.optionalReplacementSpan&&l_(v.optionalReplacementSpan,p),entries:B}}getCompletionEntryDetails(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.projectService.getFormatCodeOptions(d),b=!!this.getPreferences(d).displayPartsForJSDoc,B=qi(u.entryNames,k=>{const{name:T,source:M,data:z}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return f.getLanguageService().getCompletionEntryDetails(d,E,T,v,M,this.getPreferences(d),z?Po(z,aXt):void 0)});return s?b?B:B.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,f,!1)})):B.map(k=>({...k,codeActions:Vt(k.codeActions,T=>this.mapCodeAction(T)),documentation:this.mapDisplayParts(k.documentation,f),tags:this.mapJSDocTagInfo(k.tags,f,b)}))}getCompileOnSaveAffectedFileList(u){const s=this.getProjects(u,!0,!0),d=this.projectService.getScriptInfo(u.file);return d?$Qt(d,f=>this.projectService.getScriptInfoForPath(f),s,(f,p)=>{if(!f.compileOnSaveEnabled||!f.languageServiceEnabled||f.isOrphan())return;const E=f.getCompilationSettings();if(!(E.noEmit||e1(p.fileName)&&!GQt(E)))return{projectFileName:f.getProjectName(),fileNames:f.getCompileOnSaveAffectedFileList(p),projectUsesOutFile:!!y0(E)}}):$c}emitFile(u){const{file:s,project:d}=this.getFileAndProject(u);if(d||v5.ThrowNoProject(),!d.languageServiceEnabled)return u.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const f=d.getScriptInfo(s),{emitSkipped:p,diagnostics:E}=d.emitFile(f,(v,b,B)=>this.host.writeFile(v,b,B));return u.richResponse?{emitSkipped:p,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):E.map(v=>UK(v,!0))}:!p}getSignatureHelpItems(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getSignatureHelpItems(d,E,u),b=!!this.getPreferences(d).displayPartsForJSDoc;if(v&&s){const B=v.applicableSpan;return{...v,applicableSpan:{start:p.positionToLineOffset(B.start),end:p.positionToLineOffset(B.start+B.length)},items:this.mapSignatureHelpItems(v.items,f,b)}}else return b||!v?v:{...v,items:v.items.map(B=>({...B,tags:this.mapJSDocTagInfo(B.tags,f,!1)}))}}toPendingErrorCheck(u){const s=Dl(u),d=this.projectService.tryGetDefaultProjectForFile(s);return d&&{fileName:s,project:d}}getDiagnostics(u,s,d){this.suppressDiagnosticEvents||d.length>0&&this.updateErrorCheck(u,d,s)}change(u){const s=this.projectService.getScriptInfo(u.file);H.assert(!!s),s.textStorage.switchToScriptVersionCache();const d=s.lineOffsetToPosition(u.line,u.offset),f=s.lineOffsetToPosition(u.endLine,u.endOffset);d>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(s,qa({span:{start:d,length:f-d},newText:u.insertString})))}reload(u,s){const d=Dl(u.file),f=u.tmpfile===void 0?void 0:Dl(u.tmpfile),p=this.projectService.getScriptInfoForNormalizedPath(d);p&&(this.changeSeq++,p.reloadFromFile(f)&&this.doOutput(void 0,"reload",s,!0))}saveToTmp(u,s){const d=this.projectService.getScriptInfo(u);d&&d.saveTo(s)}closeClientFile(u){if(!u)return;const s=$o(u);this.projectService.closeClientFile(s)}mapLocationNavigationBarItems(u,s){return Vt(u,d=>({text:d.text,kind:d.kind,kindModifiers:d.kindModifiers,spans:d.spans.map(f=>l_(f,s)),childItems:this.mapLocationNavigationBarItems(d.childItems,s),indent:d.indent}))}getNavigationBarItems(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationBarItems(d);return p?s?this.mapLocationNavigationBarItems(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}toLocationNavigationTree(u,s){return{text:u.text,kind:u.kind,kindModifiers:u.kindModifiers,spans:u.spans.map(d=>l_(d,s)),nameSpan:u.nameSpan&&l_(u.nameSpan,s),childItems:Vt(u.childItems,d=>this.toLocationNavigationTree(d,s))}}getNavigationTree(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationTree(d);return p?s?this.toLocationNavigationTree(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}getNavigateToItems(u,s){const d=this.getFullNavigateToItems(u);return s?ju(d,({project:f,navigateToItems:p})=>p.map(E=>{const v=f.getScriptInfo(E.fileName),b={name:E.name,kind:E.kind,kindModifiers:E.kindModifiers,isCaseSensitive:E.isCaseSensitive,matchKind:E.matchKind,file:E.fileName,start:v.positionToLineOffset(E.textSpan.start),end:v.positionToLineOffset(Ec(E.textSpan))};return E.kindModifiers&&E.kindModifiers!==""&&(b.kindModifiers=E.kindModifiers),E.containerName&&E.containerName.length>0&&(b.containerName=E.containerName),E.containerKind&&E.containerKind.length>0&&(b.containerKind=E.containerKind),b})):ju(d,({navigateToItems:f})=>f)}getFullNavigateToItems(u){const{currentFileOnly:s,searchValue:d,maxResultCount:f,projectFileName:p}=u;if(s){H.assertIsDefined(u.file);const{file:M,project:z}=this.getFileAndProject(u);return[{project:z,navigateToItems:z.getLanguageService().getNavigateToItems(d,f,M)}]}const E=this.getHostPreferences(),v=[],b=new Map;if(!u.file&&!p)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(M=>B(M));else{const M=this.getProjects(u);vNe(M,void 0,z=>B(z))}return v;function B(M){const z=M.getLanguageService().getNavigateToItems(d,f,void 0,M.isNonTsProject(),E.excludeLibrarySymbolsInNavTo),j=ti(z,J=>k(J)&&!Ege(uz(J),M));j.length&&v.push({project:M,navigateToItems:j})}function k(M){const z=M.name;if(!b.has(z))return b.set(z,[M]),!0;const j=b.get(z);for(const J of j)if(T(J,M))return!1;return j.push(M),!0}function T(M,z){return M===z?!0:!M||!z?!1:M.containerKind===z.containerKind&&M.containerName===z.containerName&&M.fileName===z.fileName&&M.isCaseSensitive===z.isCaseSensitive&&M.kind===z.kind&&M.kindModifiers===z.kindModifiers&&M.matchKind===z.matchKind&&M.name===z.name&&M.textSpan.start===z.textSpan.start&&M.textSpan.length===z.textSpan.length}}getSupportedCodeFixes(u){if(!u)return Bme();if(u.file){const{file:d,project:f}=this.getFileAndProject(u);return f.getLanguageService().getSupportedCodeFixes(d)}const s=this.getProject(u.projectFileName);return s||v5.ThrowNoProject(),s.getLanguageService().getSupportedCodeFixes()}isLocation(u){return u.line!==void 0}extractPositionOrRange(u,s){let d,f;return this.isLocation(u)?d=p(u):f=this.getRange(u,s),H.checkDefined(d===void 0?f:d);function p(E){return E.position!==void 0?E.position:s.lineOffsetToPosition(E.line,E.offset)}}getRange(u,s){const{startPosition:d,endPosition:f}=this.getStartAndEndPosition(u,s);return{pos:d,end:f}}getApplicableRefactors(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getApplicableRefactors(s,this.extractPositionOrRange(u,f),this.getPreferences(s),u.triggerReason,u.kind,u.includeInteractiveActions)}getEditsForRefactor(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getEditsForRefactor(d,this.getFormatOptions(d),this.extractPositionOrRange(u,p),u.refactor,u.action,this.getPreferences(d),u.interactiveRefactorArguments);if(E===void 0)return{edits:[]};if(s){const{renameFilename:v,renameLocation:b,edits:B}=E;let k;if(v!==void 0&&b!==void 0){const T=f.getScriptInfoForNormalizedPath(Dl(v));k=bNe(aw(T.getSnapshot()),v,b,B)}return{renameLocation:k,renameFilename:v,edits:this.mapTextChangesToCodeEdits(B),notApplicableReason:E.notApplicableReason}}return E}getMoveToRefactoringFileSuggestions(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getMoveToRefactoringFileSuggestions(s,this.extractPositionOrRange(u,f),this.getPreferences(s))}organizeImports(u,s){H.assert(u.scope.type==="file");const{file:d,project:f}=this.getFileAndProject(u.scope.args),p=f.getLanguageService().organizeImports({fileName:d,mode:u.mode??(u.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(d),this.getPreferences(d));return s?this.mapTextChangesToCodeEdits(p):p}getEditsForFileRename(u,s){const d=Dl(u.oldFilePath),f=Dl(u.newFilePath),p=this.getHostFormatOptions(),E=this.getHostPreferences(),v=new Set,b=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(B=>{const k=B.getLanguageService().getEditsForFileRename(d,f,p,E),T=[];for(const M of k)v.has(M.fileName)||(b.push(M),T.push(M.fileName));for(const M of T)v.add(M)}),s?b.map(B=>this.mapTextChangeToCodeEdit(B)):b}getCodeFixes(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),{startPosition:E,endPosition:v}=this.getStartAndEndPosition(u,p);let b;try{b=f.getLanguageService().getCodeFixesAtPosition(d,E,v,u.errorCodes,this.getFormatOptions(d),this.getPreferences(d))}catch(B){const k=f.getLanguageService(),T=[...k.getSyntacticDiagnostics(d),...k.getSemanticDiagnostics(d),...k.getSuggestionDiagnostics(d)].map(z=>RO(E,v-E,z.start,z.length)&&z.code),M=u.errorCodes.find(z=>!T.includes(z));throw M!==void 0&&(B.message=`BADCLIENT: Bad error code, ${M} not found in range ${E}..${v} (found: ${T.join(", ")}); could have caused this error: -${B.message}`),B}return s?b.map(B=>this.mapCodeFixAction(B)):b}getCombinedCodeFix({scope:u,fixId:s},d){H.assert(u.type==="file");const{file:f,project:p}=this.getFileAndProject(u.args),E=p.getLanguageService().getCombinedCodeFix({type:"file",fileName:f},s,this.getFormatOptions(f),this.getPreferences(f));return d?{changes:this.mapTextChangesToCodeEdits(E.changes),commands:E.commands}:E}applyCodeActionCommand(u){const s=u.command;for(const d of YA(s)){const{file:f,project:p}=this.getFileAndProject(d);p.getLanguageService().applyCodeActionCommand(d,this.getFormatOptions(f)).then(E=>{},E=>{})}return{}}getStartAndEndPosition(u,s){let d,f;return u.startPosition!==void 0?d=u.startPosition:(d=s.lineOffsetToPosition(u.startLine,u.startOffset),u.startPosition=d),u.endPosition!==void 0?f=u.endPosition:(f=s.lineOffsetToPosition(u.endLine,u.endOffset),u.endPosition=f),{startPosition:d,endPosition:f}}mapCodeAction({description:u,changes:s,commands:d}){return{description:u,changes:this.mapTextChangesToCodeEdits(s),commands:d}}mapCodeFixAction({fixName:u,description:s,changes:d,commands:f,fixId:p,fixAllDescription:E}){return{fixName:u,description:s,changes:this.mapTextChangesToCodeEdits(d),commands:f,fixId:p,fixAllDescription:E}}mapTextChangesToCodeEdits(u){return u.map(s=>this.mapTextChangeToCodeEdit(s))}mapTextChangeToCodeEdit(u){const s=this.projectService.getScriptInfoOrConfig(u.fileName);return!!u.isNewFile==!!s&&(s||this.projectService.logErrorForScriptInfoNotFound(u.fileName),H.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!u.isNewFile,hasScriptInfo:!!s}))),s?{fileName:u.fileName,textChanges:u.textChanges.map(d=>eXt(d,s))}:nXt(u)}convertTextChangeToCodeEdit(u,s){return{start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(u.span.start+u.span.length),newText:u.newText?u.newText:""}}getBraceMatching(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getBraceMatchingAtPosition(d,E);return v?s?v.map(b=>l_(b,p)):v:void 0}getDiagnosticsForProject(u,s,d){if(this.suppressDiagnosticEvents)return;const{fileNames:f,languageServiceDisabled:p}=this.getProjectInfoWorker(d,void 0,!0,!0);if(p)return;const E=f.filter(J=>!J.includes("lib.d.ts"));if(E.length===0)return;const v=[],b=[],B=[],k=[],T=Dl(d),M=this.projectService.ensureDefaultProjectForFile(T);for(const J of E)this.getCanonicalFileName(J)===this.getCanonicalFileName(d)?v.push(J):this.projectService.getScriptInfo(J).isScriptOpen()?b.push(J):e1(J)?k.push(J):B.push(J);const j=[...v,...b,...B,...k].map(J=>({fileName:J,project:M}));this.updateErrorCheck(u,j,s,!1)}configurePlugin(u){this.projectService.configurePlugin(u)}getSmartSelectionRange(u,s){const{locations:d}=u,{file:f,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(u),E=H.checkDefined(this.projectService.getScriptInfo(f));return Vt(d,v=>{const b=this.getPosition(v,E),B=p.getSmartSelectionRange(f,b);return s?this.mapSelectionRange(B,E):B})}toggleLineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfo(d),E=this.getRange(u,p),v=f.toggleLineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}toggleMultilineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.toggleMultilineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}commentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.commentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}uncommentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.uncommentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}mapSelectionRange(u,s){const d={textSpan:l_(u.textSpan,s)};return u.parent&&(d.parent=this.mapSelectionRange(u.parent,s)),d}getScriptInfoFromProjectService(u){const s=Dl(u),d=this.projectService.getScriptInfoForNormalizedPath(s);return d||(this.projectService.logErrorForScriptInfoNotFound(s),v5.ThrowNoProject())}toProtocolCallHierarchyItem(u){const s=this.getScriptInfoFromProjectService(u.file);return{name:u.name,kind:u.kind,kindModifiers:u.kindModifiers,file:u.file,containerName:u.containerName,span:l_(u.span,s),selectionSpan:l_(u.selectionSpan,s)}}toProtocolCallHierarchyIncomingCall(u){const s=this.getScriptInfoFromProjectService(u.from.file);return{from:this.toProtocolCallHierarchyItem(u.from),fromSpans:u.fromSpans.map(d=>l_(d,s))}}toProtocolCallHierarchyOutgoingCall(u,s){return{to:this.toProtocolCallHierarchyItem(u.to),fromSpans:u.fromSpans.map(d=>l_(d,s))}}prepareCallHierarchy(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);if(f){const p=this.getPosition(u,f),E=d.getLanguageService().prepareCallHierarchy(s,p);return E&&kfe(E,v=>this.toProtocolCallHierarchyItem(v))}}provideCallHierarchyIncomingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyIncomingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyIncomingCall(E))}provideCallHierarchyOutgoingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyOutgoingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyOutgoingCall(E,f))}getCanonicalFileName(u){const s=this.host.useCaseSensitiveFileNames?u:$g(u);return $o(s)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(u){return{response:u,responseRequired:!0}}addProtocolHandler(u,s){if(this.handlers.has(u))throw new Error(`Protocol handler already exists for command "${u}"`);this.handlers.set(u,s)}setCurrentRequest(u){H.assert(this.currentRequestId===void 0),this.currentRequestId=u,this.cancellationToken.setRequest(u)}resetCurrentRequest(u){H.assert(this.currentRequestId===u),this.currentRequestId=void 0,this.cancellationToken.resetRequest(u)}executeWithRequestId(u,s){try{return this.setCurrentRequest(u),s()}finally{this.resetCurrentRequest(u)}}executeCommand(u){const s=this.handlers.get(u.command);if(s){const d=this.executeWithRequestId(u.seq,()=>s(u));return this.projectService.enableRequestedPlugins(),d}else return this.logger.msg(`Unrecognized JSON command:${nw(u)}`,"Err"),this.doOutput(void 0,"unknown",u.seq,!1,`Unrecognized JSON command: ${u.command}`),{responseRequired:!1}}onMessage(u){var s,d,f,p,E,v,b,B,k,T,M;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let z;this.logger.hasLevel(2)&&(z=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${BM(this.toStringMessage(u))}`));let j,J;try{j=this.parseMessage(u),J=j.arguments&&j.arguments.file?j.arguments:void 0,(s=Gn)==null||s.instant(Gn.Phase.Session,"request",{seq:j.seq,command:j.command}),(d=hh)==null||d.logStartCommand(""+j.command,this.toStringMessage(u).substring(0,100)),(f=Gn)==null||f.push(Gn.Phase.Session,"executeCommand",{seq:j.seq,command:j.command},!0);const{response:K,responseRequired:Y}=this.executeCommand(j);if((p=Gn)==null||p.pop(),this.logger.hasLevel(2)){const oe=WQt(this.hrtime(z)).toFixed(4);Y?this.logger.perftrc(`${j.seq}::${j.command}: elapsed time (in milliseconds) ${oe}`):this.logger.perftrc(`${j.seq}::${j.command}: async elapsed time (in milliseconds) ${oe}`)}(E=hh)==null||E.logStopCommand(""+j.command,"Success"),(v=Gn)==null||v.instant(Gn.Phase.Session,"response",{seq:j.seq,command:j.command,success:!!K}),K?this.doOutput(K,j.command,j.seq,!0):Y&&this.doOutput(void 0,j.command,j.seq,!1,"No content available.")}catch(K){if((b=Gn)==null||b.popAll(),K instanceof b8){(B=hh)==null||B.logStopCommand(""+(j&&j.command),"Canceled: "+K),(k=Gn)==null||k.instant(Gn.Phase.Session,"commandCanceled",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command}),this.doOutput({canceled:!0},j.command,j.seq,!0);return}this.logErrorWorker(K,this.toStringMessage(u),J),(T=hh)==null||T.logStopCommand(""+(j&&j.command),"Error: "+K),(M=Gn)==null||M.instant(Gn.Phase.Session,"commandError",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command,message:K.message}),this.doOutput(void 0,j?j.command:"unknown",j?j.seq:0,!1,"Error processing request. "+K.message+` -`+K.stack)}}parseMessage(u){return JSON.parse(u)}toStringMessage(u){return u}getFormatOptions(u){return this.projectService.getFormatCodeOptions(u)}getPreferences(u){return this.projectService.getPreferences(u)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),g9,_ge,Uct,qct,hte,fte,SNe,rz,E9,qK,sXt=o({"src/server/scriptVersionCache.ts"(){Xv(),_9(),g9=4,_ge=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(_ge||{}),Uct=class{constructor(){this.goSubtree=!0,this.lineIndex=new rz,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new E9,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,u){u&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;const d=rz.linesFromText(t).lines;d.length>1&&d[d.length-1]===""&&d.pop();let f,p;for(let v=this.endBranch.length-1;v>=0;v--)this.endBranch[v].updateCounts(),this.endBranch[v].charCount()===0&&(p=this.endBranch[v],v>0?f=this.endBranch[v-1]:f=this.branchNode);p&&f.remove(p);const E=this.startPath[this.startPath.length-1];if(d.length>0)if(E.text=d[0],d.length>1){let v=new Array(d.length-1),b=E;for(let T=1;T=0;){const T=this.startPath[B];v=T.insertAt(b,v),B--,b=T}let k=v.length;for(;k>0;){const T=new E9;T.add(this.lineIndex.root),v=T.insertAt(this.lineIndex.root,v),k=v.length,this.lineIndex.root=T}this.lineIndex.root.updateCounts()}else for(let v=this.startPath.length-2;v>=0;v--)this.startPath[v].updateCounts();else{this.startPath[this.startPath.length-2].remove(E);for(let b=this.startPath.length-2;b>=0;b--)this.startPath[b].updateCounts()}return this.lineIndex}post(t,u,s){s===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,u,s,d,f){const p=this.stack[this.stack.length-1];this.state===2&&f===1&&(this.state=1,this.branchNode=p,this.lineCollectionAtBranch=s);let E;function v(b){return b.isLeaf()?new qK(""):new E9}switch(f){case 0:this.goSubtree=!1,this.state!==4&&p.add(s);break;case 1:this.state===4?this.goSubtree=!1:(E=v(s),p.add(E),this.startPath.push(E));break;case 2:this.state!==4?(E=v(s),p.add(E),this.startPath.push(E)):s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 5:this.goSubtree=!1,this.state!==1&&p.add(s);break}this.goSubtree&&this.stack.push(E)}leaf(t,u,s){this.state===1?this.initialText=s.text.substring(0,t):this.state===2?(this.initialText=s.text.substring(0,t),this.trailingText=s.text.substring(t+u)):this.trailingText=s.text.substring(t+u)}},qct=class{constructor(t,u,s){this.pos=t,this.deleteLen=u,this.insertedText=s}getTextChangeRange(){return OO(d1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},hte=class OF{constructor(){this.changes=[],this.versions=new Array(OF.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(u){if(!(uthis.currentVersion))return u%OF.maxVersions}currentVersionToIndex(){return this.currentVersion%OF.maxVersions}edit(u,s,d){this.changes.push(new qct(u,s,d)),(this.changes.length>OF.changeNumberThreshold||s>OF.changeLengthThreshold||d&&d.length>OF.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let u=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let s=u.index;for(const d of this.changes)s=s.edit(d.pos,d.deleteLen,d.insertedText);u=new SNe(this.currentVersion+1,this,s,this.changes),this.currentVersion=u.version,this.versions[this.currentVersionToIndex()]=u,this.changes=[],this.currentVersion-this.minVersion>=OF.maxVersions&&(this.minVersion=this.currentVersion-OF.maxVersions+1)}return u}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(u){return this._getSnapshot().index.lineNumberToInfo(u)}lineOffsetToPosition(u,s){return this._getSnapshot().index.absolutePositionOfStartOfLine(u)+(s-1)}positionToLineOffset(u){return this._getSnapshot().index.positionToLineOffset(u)}lineToTextSpan(u){const s=this._getSnapshot().index,{lineText:d,absolutePosition:f}=s.lineNumberToInfo(u+1),p=d!==void 0?d.length:s.absolutePositionOfStartOfLine(u+2)-f;return d1(f,p)}getTextChangesBetweenVersions(u,s){if(u=this.minVersion){const d=[];for(let f=u+1;f<=s;f++){const p=this.versions[this.versionToIndex(f)];for(const E of p.changesSincePreviousVersion)d.push(E.getTextChangeRange())}return P2e(d)}else return;else return tj}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(u){const s=new OF,d=new SNe(0,s,new rz);s.versions[s.currentVersion]=d;const f=rz.linesFromText(u);return d.index.load(f.lines),s}},hte.changeNumberThreshold=8,hte.changeLengthThreshold=256,hte.maxVersions=8,fte=hte,SNe=class G6t{constructor(u,s,d,f=$c){this.version=u,this.cache=s,this.index=d,this.changesSincePreviousVersion=f}getText(u,s){return this.index.getText(u,s-u)}getLength(){return this.index.getLength()}getChangeRange(u){if(u instanceof G6t&&this.cache===u.cache)return this.version<=u.version?tj:this.cache.getTextChangesBetweenVersions(u.version,this.version)}},rz=class XOe{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(u){return this.lineNumberToInfo(u).absolutePosition}positionToLineOffset(u){const{oneBasedLine:s,zeroBasedColumn:d}=this.root.charOffsetToLineInfo(1,u);return{line:s,offset:d+1}}positionToColumnAndLineText(u){return this.root.charOffsetToLineInfo(1,u)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(u){const s=this.getLineCount();if(u<=s){const{position:d,leaf:f}=this.root.lineNumberToInfo(u,0);return{absolutePosition:d,lineText:f&&f.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(u){if(u.length>0){const s=[];for(let d=0;d0&&u{d=d.concat(E.text.substring(f,f+p))}}),d}getLength(){return this.root.charCount()}every(u,s,d){d||(d=this.root.charCount());const f={goSubtree:!0,done:!1,leaf(p,E,v){u(v,p,E)||(this.done=!0)}};return this.walk(s,d-s,f),!f.done}edit(u,s,d){if(this.root.charCount()===0)return H.assert(s===0),d!==void 0?(this.load(XOe.linesFromText(d).lines),this):void 0;{let f;if(this.checkEdits){const v=this.getText(0,this.root.charCount());f=v.slice(0,u)+d+v.slice(u+s)}const p=new Uct;let E=!1;if(u>=this.root.charCount()){u=this.root.charCount()-1;const v=this.getText(u,1);d?d=v+d:d=v,s=0,E=!0}else if(s>0){const v=u+s,{zeroBasedColumn:b,lineText:B}=this.positionToColumnAndLineText(v);b===0&&(s+=B.length,d=d?d+B:B)}if(this.root.walk(u,s,p),p.insertLines(d,E),this.checkEdits){const v=p.lineIndex.getText(0,p.lineIndex.getLength());H.assert(f===v,"buffer edit mismatch")}return p.lineIndex}}static buildTreeFromBottom(u){if(u.length0?d[f]=p:d.pop(),{lines:d,lineMap:s}}},E9=class eje{constructor(u=[]){this.children=u,this.totalChars=0,this.totalLines=0,u.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const u of this.children)this.totalChars+=u.charCount(),this.totalLines+=u.lineCount()}execWalk(u,s,d,f,p){return d.pre&&d.pre(u,s,this.children[f],this,p),d.goSubtree?(this.children[f].walk(u,s,d),d.post&&d.post(u,s,this.children[f],this,p)):d.goSubtree=!0,d.done}skipChild(u,s,d,f,p){f.pre&&!f.done&&(f.pre(u,s,this.children[d],this,p),f.goSubtree=!0)}walk(u,s,d){let f=0,p=this.children[f].charCount(),E=u;for(;E>=p;)this.skipChild(E,s,f,d,0),E-=p,f++,p=this.children[f].charCount();if(E+s<=p){if(this.execWalk(E,s,d,f,2))return}else{if(this.execWalk(E,p-E,d,f,1))return;let v=s-(p-E);for(f++,p=this.children[f].charCount();v>p;){if(this.execWalk(0,p,d,f,3))return;v-=p,f++,p=this.children[f].charCount()}if(v>0&&this.execWalk(0,v,d,f,4))return}if(d.pre){const v=this.children.length;if(fs)return p.isLeaf()?{oneBasedLine:u,zeroBasedColumn:s,lineText:p.text}:p.charOffsetToLineInfo(u,s);s-=p.charCount(),u+=p.lineCount()}const d=this.lineCount();if(d===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const f=H.checkDefined(this.lineNumberToInfo(d,0).leaf);return{oneBasedLine:d,zeroBasedColumn:f.charCount(),lineText:void 0}}lineNumberToInfo(u,s){for(const d of this.children){const f=d.lineCount();if(f>=u)return d.isLeaf()?{position:s,leaf:d}:d.lineNumberToInfo(u,s);u-=f,s+=d.charCount()}return{position:s,leaf:void 0}}splitAfter(u){let s;const d=this.children.length;u++;const f=u;if(u=0;M--)b[M].children.length===0&&b.pop()}E&&b.push(E),this.updateCounts();for(let k=0;kYQ,ActionPackageInstalled:()=>T9e,ActionSet:()=>ZQ,ActionWatchTypingLocations:()=>SH,Arguments:()=>mhe,AutoImportProviderProject:()=>age,AuxiliaryProject:()=>uge,CharRangeSection:()=>_ge,CloseFileWatcherEvent:()=>lte,CommandNames:()=>kNe,ConfigFileDiagEvent:()=>ute,ConfiguredProject:()=>oge,CreateDirectoryWatcherEvent:()=>ste,CreateFileWatcherEvent:()=>ote,Errors:()=>v5,EventBeginInstallTypes:()=>hhe,EventEndInstallTypes:()=>fhe,EventInitializationFailed:()=>N9e,EventTypesRegistry:()=>L9e,ExternalProject:()=>Zee,GcTimer:()=>Ype,InferredProject:()=>nge,LargeFileReferencedEvent:()=>nte,LineIndex:()=>rz,LineLeaf:()=>qK,LineNode:()=>E9,LogLevel:()=>$pe,Msg:()=>Upe,OpenFileInfoTelemetryEvent:()=>cge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ate,ProjectKind:()=>nz,ProjectLanguageServiceStateEvent:()=>rte,ProjectLoadingFinishEvent:()=>ite,ProjectLoadingStartEvent:()=>tte,ProjectReferenceProjectLoadKind:()=>fge,ProjectService:()=>mge,ProjectsUpdatedInBackgroundEvent:()=>JK,ScriptInfo:()=>ege,ScriptVersionCache:()=>fte,Session:()=>ANe,TextStorage:()=>Xpe,ThrottledOperations:()=>Zpe,TypingsCache:()=>tge,allFilesAreJsOrDts:()=>nNe,allRootFilesAreJsOrDts:()=>iNe,asNormalizedPath:()=>Fct,convertCompilerOptions:()=>Yee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>lge,convertTypeAcquisition:()=>aNe,convertUserPreferences:()=>oNe,convertWatchOptions:()=>GK,countEachFileTypes:()=>KK,createInstallTypingsRequest:()=>kct,createModuleSpecifierCache:()=>ENe,createNormalizedPathMap:()=>Act,createPackageJsonCache:()=>_Ne,createSortedArray:()=>jLe,emptyArray:()=>$c,findArgument:()=>_it,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>UK,formatMessage:()=>DNe,getBaseConfigFileName:()=>qpe,getLocationInNewDocument:()=>bNe,hasArgument:()=>Eit,hasNoTypeScriptSource:()=>uNe,indent:()=>BM,isBackgroundProject:()=>WK,isConfigFile:()=>fNe,isConfiguredProject:()=>Qv,isDynamicFileName:()=>HK,isExternalProject:()=>ige,isInferredProject:()=>Aw,isInferredProjectName:()=>zLe,makeAutoImportProviderProjectName:()=>RLe,makeAuxiliaryProjectName:()=>OLe,makeInferredProjectName:()=>ILe,maxFileSize:()=>ete,maxProgramSizeForNonTsFiles:()=>Xee,normalizedPathToPath:()=>VK,nowString:()=>Dit,nullCancellationToken:()=>yNe,nullTypingsInstaller:()=>qee,projectContainsInfoDirectly:()=>p9,protocol:()=>tNe,removeSorted:()=>Sct,stringifyIndented:()=>nw,toEvent:()=>xNe,toNormalizedPath:()=>Dl,tryConvertScriptKindName:()=>sge,typingsInstaller:()=>PLe,updateProjectIfDirty:()=>Gm});var _9=o({"src/server/_namespaces/ts.server.ts"(){QQ(),MLe(),vQt(),CQt(),bQt(),yQt(),AQt(),TQt(),MQt(),VQt(),HQt(),KQt(),oXt(),sXt()}}),Yct={};h(Yct,{ANONYMOUS:()=>KX,AccessFlags:()=>Koe,AssertionLevel:()=>moe,AssignmentDeclarationKind:()=>Qoe,AssignmentKind:()=>Kle,Associativity:()=>Gle,BreakpointResolver:()=>Ime,BuilderFileEmit:()=>K1e,BuilderProgramKind:()=>W1e,BuilderState:()=>Wp,BundleFileSectionKind:()=>gse,CallHierarchy:()=>o9,CharacterCodes:()=>lse,CheckFlags:()=>Roe,CheckMode:()=>XY,ClassificationType:()=>Nhe,ClassificationTypeNames:()=>Lhe,CommentDirectiveType:()=>boe,Comparison:()=>x,CompletionInfoFlags:()=>khe,CompletionTriggerKind:()=>xhe,Completions:()=>h9,ContainerFlags:()=>Pde,ContextFlags:()=>Boe,Debug:()=>H,DiagnosticCategory:()=>vO,Diagnostics:()=>F,DocumentHighlights:()=>JX,ElementFlags:()=>Hoe,EmitFlags:()=>_U,EmitHint:()=>fse,EmitOnly:()=>koe,EndOfLineState:()=>She,EnumKind:()=>Ioe,ExitStatus:()=>Foe,ExportKind:()=>Rfe,Extension:()=>cse,ExternalEmitHelpers:()=>hse,FileIncludeKind:()=>lU,FilePreprocessingDiagnosticsKind:()=>yoe,FileSystemEntryKind:()=>Cse,FileWatcherEventKind:()=>vse,FindAllReferences:()=>Z0,FlattenLevel:()=>Xde,FlowFlags:()=>xO,ForegroundColorEscapeSequences:()=>M1e,FunctionFlags:()=>Wle,GeneratedIdentifierFlags:()=>sU,GetLiteralTextFlags:()=>jle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>Che,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>Qde,ImportKind:()=>Ife,ImportsNotUsedAsValues:()=>use,IndentStyle:()=>bhe,IndexFlags:()=>Woe,IndexKind:()=>$oe,InferenceFlags:()=>Zoe,InferencePriority:()=>qoe,InlayHintKind:()=>vhe,InlayHints:()=>Spe,InternalEmitFlags:()=>dse,InternalSymbolName:()=>Ooe,InvalidatedProjectKind:()=>dhe,JSDocParsingMode:()=>Dse,JsDoc:()=>Yv,JsTyping:()=>o3,JsxEmit:()=>nse,JsxFlags:()=>voe,JsxReferenceKind:()=>Goe,LanguageServiceMode:()=>Ehe,LanguageVariant:()=>ose,LexicalEnvironmentFlags:()=>pse,ListFormat:()=>Ese,LogLevel:()=>goe,MemberOverrideStatus:()=>Aoe,ModifierFlags:()=>aU,ModuleDetectionKind:()=>Xoe,ModuleInstanceState:()=>Nde,ModuleKind:()=>FN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>Qle,NavigateTo:()=>n8e,NavigationBar:()=>f8e,NewLineKind:()=>rse,NodeBuilderFlags:()=>woe,NodeCheckFlags:()=>joe,NodeFactoryFlags:()=>ace,NodeFlags:()=>rU,NodeResolutionFeatures:()=>wde,ObjectFlags:()=>fU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Jle,OrganizeImports:()=>Gp,OrganizeImportsMode:()=>Dhe,OuterExpressionKinds:()=>mse,OutliningElementsCollector:()=>Lpe,OutliningSpanKind:()=>Fhe,OutputFileType:()=>Ahe,PackageJsonAutoImportPreference:()=>ghe,PackageJsonDependencyGroup:()=>phe,PatternMatchKind:()=>$X,PollingInterval:()=>DU,PollingWatchKind:()=>ise,PragmaKindFlags:()=>_se,PrivateIdentifierKind:()=>fce,ProcessLevel:()=>n1e,ProgramUpdateLevel:()=>_1e,QuotePreference:()=>Tfe,RelationComparisonResult:()=>oU,Rename:()=>Hee,ScriptElementKind:()=>whe,ScriptElementKindModifier:()=>The,ScriptKind:()=>pU,ScriptSnapshot:()=>eX,ScriptTarget:()=>ase,SemanticClassificationFormat:()=>_he,SemanticMeaning:()=>wfe,SemicolonPreference:()=>yhe,SignatureCheckMode:()=>eQ,SignatureFlags:()=>mU,SignatureHelp:()=>NK,SignatureKind:()=>Joe,SmartSelectionRange:()=>Mpe,SnippetKind:()=>EU,SortKind:()=>foe,StructureIsReused:()=>cU,SymbolAccessibility:()=>Noe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>wH,SymbolFlags:()=>dU,SymbolFormatFlags:()=>Loe,SyntaxKind:()=>uU,SyntheticSymbolKind:()=>Poe,Ternary:()=>Yoe,ThrottledCancellationToken:()=>zme,TokenClass:()=>Bhe,TokenFlags:()=>Coe,TransformFlags:()=>gU,TypeFacts:()=>QY,TypeFlags:()=>hU,TypeFormatFlags:()=>Toe,TypeMapKind:()=>Uoe,TypePredicateKind:()=>Moe,TypeReferenceSerializationKind:()=>zoe,UnionReduction:()=>Soe,UpToDateStatusType:()=>ohe,VarianceFlags:()=>Voe,Version:()=>Lp,VersionRange:()=>EO,WatchDirectoryFlags:()=>sse,WatchDirectoryKind:()=>tse,WatchFileKind:()=>ese,WatchLogLevel:()=>D1e,WatchType:()=>cd,accessPrivateIdentifier:()=>ZAe,addDisposableResourceHelper:()=>eY,addEmitFlags:()=>i_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>MYe,addObjectAllocatorPatcher:()=>Qye,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>OP,addSyntheticTrailingComment:()=>AZ,addToSeen:()=>Ip,advancedAsyncSuperHelper:()=>bV,affectsDeclarationPathOptionDeclarations:()=>mde,affectsEmitOptionDeclarations:()=>fde,allKeysStartWithDot:()=>JY,altDirectorySeparator:()=>BO,and:()=>Q$,append:()=>xi,appendIfUnique:()=>e0,arrayFrom:()=>ga,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>Eke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>mO,arrayToNumericMap:()=>noe,arraysEqual:()=>Zt,assertType:()=>gqe,assign:()=>VE,assignHelper:()=>PZ,asyncDelegator:()=>zZ,asyncGeneratorHelper:()=>MZ,asyncSuperHelper:()=>CV,asyncValues:()=>IZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>OZ,base64decode:()=>jye,base64encode:()=>Oye,binarySearch:()=>Kl,binarySearchKey:()=>va,bindSourceFile:()=>SAe,breakIntoCharacterSpans:()=>ZSe,breakIntoWordSpans:()=>YSe,buildLinkParts:()=>DSe,buildOpts:()=>MY,buildOverload:()=>Dct,bundlerModuleNameResolver:()=>gAe,canBeConvertedToAsync:()=>qfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>rV,canHaveFlowNode:()=>Bj,canHaveIllegalDecorators:()=>Hce,canHaveIllegalModifiers:()=>LFe,canHaveIllegalType:()=>dQe,canHaveIllegalTypeParameters:()=>TFe,canHaveJSDoc:()=>wj,canHaveLocals:()=>UE,canHaveModifiers:()=>Hp,canHaveSymbol:()=>Zg,canJsonReportNoInputFiles:()=>aM,canProduceDiagnostics:()=>mQ,canUsePropertyAccess:()=>zle,canWatchAffectingLocation:()=>n9e,canWatchAtTypes:()=>i9e,canWatchDirectoryOrFile:()=>IQ,cartesianProduct:()=>i2e,cast:()=>Po,chainBundle:()=>Kp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>AO,changeCompilerHostLikeToUseCache:()=>vH,changeExtension:()=>wv,changesAffectModuleResolution:()=>UU,changesAffectingProgramStructure:()=>bbe,childIsDecorated:()=>QN,classElementOrClassElementParameterIsDecorated:()=>S0e,classHasClassThisAssignment:()=>e1e,classHasDeclaredOrExplicitlyAssignedName:()=>t1e,classHasExplicitlyAssignedName:()=>dQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>YZ,classPrivateFieldInHelper:()=>XZ,classPrivateFieldSetHelper:()=>QZ,classicNameResolver:()=>yAe,classifier:()=>aBe,cleanExtendedConfigCache:()=>CQ,clear:()=>pu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>p1e,climbPastPropertyAccess:()=>iX,climbPastPropertyOrElementAccess:()=>J9e,clone:()=>uoe,cloneCompilerOptions:()=>Qhe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>jm,codefix:()=>z1,collapseTextChangeRangesAcrossMultipleVersions:()=>P2e,collectExternalModuleInfo:()=>Ude,combine:()=>vo,combinePaths:()=>cr,commentPragmas:()=>CO,commonOptionsWithBuild:()=>QV,commonPackageFolders:()=>Ule,compact:()=>Dr,compareBooleans:()=>d2,compareDataObjects:()=>gle,compareDiagnostics:()=>bP,compareDiagnosticsSkipRelatedInformation:()=>Zq,compareEmitHelpers:()=>Uke,compareNumberOfDirectorySeparators:()=>iV,comparePaths:()=>pv,comparePathsCaseInsensitive:()=>Kqe,comparePathsCaseSensitive:()=>Hqe,comparePatternKeys:()=>Sde,compareProperties:()=>QCe,compareStringsCaseInsensitive:()=>Z$,compareStringsCaseInsensitiveEslintCompatible:()=>qCe,compareStringsCaseSensitive:()=>dh,compareStringsCaseSensitiveUI:()=>pO,compareTextSpans:()=>q$,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>ZV,compilerOptionsAffectDeclarationPath:()=>lke,compilerOptionsAffectEmit:()=>ske,compilerOptionsAffectSemanticDiagnostics:()=>oke,compilerOptionsDidYouMeanDiagnostics:()=>tH,compilerOptionsIndicateEsModules:()=>ufe,compose:()=>mqe,computeCommonSourceDirectoryOfFilenames:()=>P7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>TN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>FU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>O1e,computeSuggestionDiagnostics:()=>Jfe,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>ike,consumesNodeCoreModules:()=>zX,contains:()=>kt,containsIgnoredPath:()=>TP,containsObjectRestOrSpread:()=>VV,containsParseError:()=>O8,containsPath:()=>GE,convertCompilerOptionsForTelemetry:()=>eAe,convertCompilerOptionsFromJson:()=>mXe,convertJsonOption:()=>Sk,convertToBase64:()=>Rye,convertToJson:()=>$V,convertToObject:()=>ZFe,convertToOptionsWithAbsolutePaths:()=>ode,convertToRelativePath:()=>wN,convertToTSConfig:()=>eXe,convertTypeAcquisitionFromJson:()=>pXe,copyComments:()=>Rk,copyEntries:()=>qU,copyLeadingComments:()=>cw,copyProperties:()=>roe,copyTrailingAsLeadingComments:()=>ZH,copyTrailingComments:()=>OM,couldStartTrivia:()=>y2e,countWhere:()=>ui,createAbstractBuilder:()=>ktt,createAccessorPropertyBackingField:()=>Wce,createAccessorPropertyGetRedirector:()=>jFe,createAccessorPropertySetRedirector:()=>VFe,createBaseNodeFactory:()=>Lke,createBinaryExpressionTrampoline:()=>kY,createBindingHelper:()=>xB,createBuildInfo:()=>gH,createBuilderProgram:()=>j1e,createBuilderProgramUsingProgramBuildInfo:()=>e9e,createBuilderStatusReporter:()=>E9e,createCacheWithRedirects:()=>Cde,createCacheableExportInfoMap:()=>Pfe,createCachedDirectoryStructureHost:()=>xQ,createClassNamedEvaluationHelperBlock:()=>t7e,createClassThisAssignmentBlock:()=>XAe,createClassifier:()=>Hit,createCommentDirectivesMap:()=>Bbe,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>GFe,createCompilerDiagnosticFromMessageChain:()=>qq,createCompilerHost:()=>M7e,createCompilerHostFromProgramHost:()=>nhe,createCompilerHostWorker:()=>C1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>b0e,createDiagnosticForNode:()=>Su,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>sj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>K4,createDiagnosticForRange:()=>Vbe,createDiagnosticMessageChainFromDiagnostic:()=>jbe,createDiagnosticReporter:()=>kH,createDocumentPositionMapper:()=>WAe,createDocumentRegistry:()=>OSe,createDocumentRegistryInternal:()=>Vfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>G1e,createEmitHelperFactory:()=>$ke,createEmptyExports:()=>NV,createExpressionForJsxElement:()=>yFe,createExpressionForJsxFragment:()=>kFe,createExpressionForObjectLiteralElementLike:()=>FFe,createExpressionForPropertyName:()=>zce,createExpressionFromEntityName:()=>PV,createExternalHelpersImportDeclarationIfNeeded:()=>Oce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>nq,createForOfBindingStatement:()=>Mce,createGetCanonicalFileName:()=>L1,createGetSourceFile:()=>x1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>k7e,createGetSymbolWalker:()=>BAe,createIncrementalCompilerHost:()=>rhe,createIncrementalProgram:()=>p9e,createInputFiles:()=>IYe,createInputFilesWithFilePaths:()=>uce,createInputFilesWithFileTexts:()=>rce,createJsxFactoryExpression:()=>Pce,createLanguageService:()=>eBe,createLanguageServiceSourceFile:()=>Eee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>dM,createModuleNotFoundChain:()=>o0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>A1e,createModuleResolutionLoaderUsingGlobalCache:()=>o9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>wm,createNodeConverters:()=>Pke,createNodeFactory:()=>mV,createOptionNameMap:()=>SY,createOverload:()=>Gpe,createPackageJsonImportFilter:()=>HM,createPackageJsonInfo:()=>Cfe,createParenthesizerRules:()=>Nke,createPatternMatcher:()=>WSe,createPrependNodes:()=>N1e,createPrinter:()=>Gv,createPrinterWithDefaults:()=>f1e,createPrinterWithRemoveComments:()=>X2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>m1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>EH,createProgram:()=>SQ,createProgramHost:()=>uhe,createPropertyNameNodeForIdentifierOrLiteral:()=>mZ,createQueue:()=>U$,createRange:()=>s4,createRedirectedBuilderProgram:()=>H1e,createResolutionCache:()=>$1e,createRuntimeTypeSerializer:()=>a7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>ytt,createSet:()=>aoe,createSolutionBuilder:()=>Vtt,createSolutionBuilderHost:()=>Ott,createSolutionBuilderWithWatch:()=>Htt,createSolutionBuilderWithWatchHost:()=>jtt,createSortedArray:()=>xt,createSourceFile:()=>KV,createSourceMapGenerator:()=>jAe,createSourceMapSource:()=>RYe,createSuperAccessVariableStatement:()=>fQ,createSymbolTable:()=>Vo,createSymlinkCache:()=>ble,createSystemWatchFunctions:()=>E2e,createTextChange:()=>VH,createTextChangeFromStartLength:()=>gX,createTextChangeRange:()=>OO,createTextRangeFromNode:()=>tfe,createTextRangeFromSpan:()=>pX,createTextSpan:()=>d1,createTextSpanFromBounds:()=>Vc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>efe,createTextWriter:()=>Vj,createTokenRange:()=>fle,createTypeChecker:()=>PAe,createTypeReferenceDirectiveResolutionCache:()=>HY,createTypeReferenceResolutionLoader:()=>kQ,createUnparsedSourceFile:()=>nce,createWatchCompilerHost:()=>ztt,createWatchCompilerHostOfConfigFile:()=>h9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>f9e,createWatchFactory:()=>ihe,createWatchHost:()=>the,createWatchProgram:()=>Itt,createWatchStatusReporter:()=>s9e,createWriteFileMeasuringIO:()=>v1e,declarationNameToString:()=>b0,decodeMappings:()=>Gde,decodedTextSpanIntersectsWith:()=>RO,decorateHelper:()=>BZ,deduplicate:()=>ri,defaultIncludeSpec:()=>RY,defaultInitCompilerOptions:()=>zY,defaultMaximumTruncationLength:()=>lV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>rl,displayPart:()=>yf,displayPartsToString:()=>EK,disposeEmitNodes:()=>oce,disposeResourcesHelper:()=>tY,documentSpansEqual:()=>bX,dumpTracingLegend:()=>m2e,elementAt:()=>qD,elideNodes:()=>OFe,emitComments:()=>Aye,emitDetachedComments:()=>Sye,emitFiles:()=>EQ,emitFilesAndReportErrors:()=>VQ,emitFilesAndReportErrorsAndGetExitStatus:()=>d9e,emitModuleKindIsNonNodeESM:()=>Yq,emitNewLineBeforeLeadingCommentOfPosition:()=>Fye,emitNewLineBeforeLeadingComments:()=>yye,emitNewLineBeforeLeadingCommentsOfPosition:()=>kye,emitSkippedWithNoDiagnostics:()=>PQ,emitUsingBuildInfo:()=>w7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>bZ,emptyMap:()=>iU,emptyOptions:()=>d4,emptySet:()=>u2e,endsWith:()=>sc,ensurePathIsNonModuleName:()=>h2,ensureScriptKind:()=>oZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>eU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>LZ,escapeJsxAttributeString:()=>X0e,escapeLeadingUnderscores:()=>Al,escapeNonAsciiString:()=>jj,escapeSnippetText:()=>O2,escapeString:()=>Av,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>DY,explainFiles:()=>Z1e,explainIfFileIsRedirectAndImpliedFormat:()=>Y1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>ZZ,expressionResultIsUnused:()=>Dke,extend:()=>$$,extendsHelper:()=>jZ,extensionFromPath:()=>y7,extensionIsTS:()=>cZ,extensionsNotSupportingExtensionlessResolution:()=>fV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>jc,fileIncludeReasonToDiagnostics:()=>ehe,fileShouldUseJavaScriptRequire:()=>Bfe,filter:()=>ti,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>BQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>coe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>FY,findConfigFile:()=>N7e,findContainingList:()=>oX,findDiagnosticForNode:()=>TSe,findFirstNonJsxWhitespaceToken:()=>Y9e,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>Z9e,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>ib,findPackageJson:()=>BSe,findPackageJsons:()=>vfe,findPrecedingMatchingToken:()=>fX,findPrecedingToken:()=>td,findSuperStatementIndexPath:()=>sQ,findTokenOnLeftOfPosition:()=>cX,findUseStrictPrologue:()=>Rce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>Ffe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Yfe,flatMap:()=>ju,flatMapIterator:()=>pa,flatMapToMutable:()=>Tr,flatten:()=>Va,flattenCommaList:()=>HFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>Q2,flattenDiagnosticMessageText:()=>lE,forEach:()=>L,forEachAncestor:()=>ybe,forEachAncestorDirectory:()=>Ug,forEachChild:()=>ao,forEachChildRecursively:()=>uM,forEachEmittedFile:()=>d1e,forEachEnclosingBlockScopeContainer:()=>Ibe,forEachEntry:()=>h1,forEachExternalModuleToImportFrom:()=>zfe,forEachImportClauseDeclaration:()=>Fq,forEachKey:()=>U_,forEachLeadingCommentRange:()=>NO,forEachNameInAccessChainWalkingLeft:()=>Zye,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>S1e,forEachReturnStatement:()=>y2,forEachRight:()=>O,forEachTrailingCommentRange:()=>PO,forEachTsConfigPropArray:()=>hj,forEachUnique:()=>lfe,forEachYieldExpression:()=>Kbe,forSomeAncestorDirectory:()=>rYe,formatColorAndReset:()=>eb,formatDiagnostic:()=>b1e,formatDiagnostics:()=>att,formatDiagnosticsWithColorAndContext:()=>z7e,formatGeneratedName:()=>jv,formatGeneratedNamePart:()=>RB,formatLocation:()=>y1e,formatMessage:()=>Dle,formatStringFromArgs:()=>e3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Hle,fullTripleSlashReferencePathRegEx:()=>Vle,generateDjb2Hash:()=>AN,generateTSConfig:()=>rXe,generatorHelper:()=>$Z,getAdjustedReferenceLocation:()=>Jhe,getAdjustedRenameLocation:()=>lX,getAliasDeclarationFromName:()=>H0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Zde,getAllDecoratorsOfClassElement:()=>cQ,getAllJSDocTags:()=>Vse,getAllJSDocTagsOfKind:()=>_Ze,getAllKeys:()=>Bm,getAllProjectOutputs:()=>gQ,getAllSuperTypeNodes:()=>uP,getAllUnscopedEmitHelpers:()=>hce,getAllowJSCompilerOption:()=>Bv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Fv,getAnyExtensionFromPath:()=>BN,getAreDeclarationMapsEnabled:()=>Xq,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>zse,getAssignedNameOfIdentifier:()=>_M,getAssignmentDeclarationKind:()=>Xl,getAssignmentDeclarationPropertyAccessKind:()=>yj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>VY,getBaseFileName:()=>Ac,getBinaryOperatorPrecedence:()=>Oj,getBuildInfo:()=>_Q,getBuildInfoFileVersionMap:()=>V1e,getBuildInfoText:()=>B7e,getBuildOrderFromAnyBuildOrder:()=>JQ,getBuilderCreationParameters:()=>MQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>B2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>xP,getCombinedModifierFlags:()=>m2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Pse,getCommentRange:()=>nE,getCommonSourceDirectory:()=>yM,getCommonSourceDirectoryOfConfig:()=>kM,getCompilerOptionValue:()=>tZ,getCompilerOptionsDiffValue:()=>nXe,getConditions:()=>$2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>jke,getContainerFlags:()=>Lde,getContainerNode:()=>Mk,getContainingClass:()=>Yd,getContainingClassExcludingClassDecorators:()=>hq,getContainingClassStaticBlock:()=>Qbe,getContainingFunction:()=>Nm,getContainingFunctionDeclaration:()=>Ybe,getContainingFunctionOrClassStaticBlock:()=>dq,getContainingNodeArray:()=>xke,getContainingObjectLiteralElement:()=>_K,getContextualTypeFromParent:()=>SX,getContextualTypeFromParentOrAncestorTypeNode:()=>sX,getCurrentTime:()=>AH,getDeclarationDiagnostics:()=>F7e,getDeclarationEmitExtensionForPath:()=>Kj,getDeclarationEmitOutputFilePath:()=>Dye,getDeclarationEmitOutputFilePathWorker:()=>Mq,getDeclarationFromName:()=>nP,getDeclarationModifierFlagsFromSymbol:()=>l4,getDeclarationOfKind:()=>Sl,getDeclarationsOfKind:()=>vbe,getDeclaredExpandoInitializer:()=>xj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>gee,getDefaultExportInfoWorker:()=>GX,getDefaultFormatCodeSettings:()=>XQ,getDefaultLibFileName:()=>zO,getDefaultLibFilePath:()=>tBe,getDefaultLikeExportInfo:()=>WX,getDiagnosticText:()=>$Qe,getDiagnosticsWithinSpan:()=>LSe,getDirectoryPath:()=>lr,getDirectoryToWatchFailedLookupLocation:()=>J1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>r9e,getDocumentPositionMapper:()=>Gfe,getESModuleInterop:()=>e_,getEditsForFileRename:()=>VSe,getEffectiveBaseTypeNode:()=>Qg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Aq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>Dj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Eh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Lye,getEffectiveModifierFlagsNoCache:()=>Nye,getEffectiveReturnTypeNode:()=>U4,getEffectiveSetAccessorTypeAnnotationNode:()=>bye,getEffectiveTypeAnnotationNode:()=>f1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>cM,getElementOrPropertyAccessArgumentExpressionOrName:()=>kq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>c4,getEmitFlags:()=>bs,getEmitHelpers:()=>SZ,getEmitModuleDetectionKind:()=>nke,getEmitModuleKind:()=>m1,getEmitModuleResolutionKind:()=>p1,getEmitScriptTarget:()=>Os,getEmitStandardClassFields:()=>ake,getEnclosingBlockScopeContainer:()=>YE,getEnclosingContainer:()=>C0e,getEncodedSemanticClassifications:()=>Ofe,getEncodedSyntacticClassifications:()=>jfe,getEndLinePosition:()=>uj,getEntityNameFromTypeNode:()=>pj,getEntrypointsFromPackageJsonInfo:()=>kde,getErrorCountForSummary:()=>OQ,getErrorSpanForNode:()=>C2,getErrorSummaryText:()=>l9e,getEscapedTextOfIdentifierOrLiteral:()=>oP,getEscapedTextOfJsxAttributeName:()=>MP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>yv,getExportAssignmentExpression:()=>K0e,getExportInfoMap:()=>tK,getExportNeedsImportStarHelper:()=>GAe,getExpressionAssociativity:()=>q0e,getExpressionPrecedence:()=>lP,getExternalHelpersModuleName:()=>zV,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>Eye,getExternalModuleNameFromPath:()=>tle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>w0e,getFallbackOptions:()=>xH,getFileEmitOutput:()=>K7e,getFileMatcherPatterns:()=>aZ,getFileNamesFromConfigSpecs:()=>oM,getFileWatcherEventKind:()=>xse,getFilesInErrorForSummary:()=>jQ,getFirstConstructorWithBody:()=>X_,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>bSe,getFirstProjectOutput:()=>h1e,getFixableErrorSpanExpression:()=>yfe,getFormatCodeSettingsForWriting:()=>jX,getFullWidth:()=>ij,getFunctionFlags:()=>kd,getHeritageClause:()=>Mj,getHostSignatureFromJSDoc:()=>kv,getIdentifierAutoGenerate:()=>KYe,getIdentifierGeneratedImportReference:()=>Jke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>bH,getImpliedNodeFormatForFileWorker:()=>T1e,getImportNeedsImportDefaultHelper:()=>$de,getImportNeedsImportStarHelper:()=>aQ,getIndentSize:()=>oB,getIndentString:()=>Nq,getInferredLibraryNameResolveFrom:()=>AQ,getInitializedVariables:()=>DP,getInitializerOfBinaryExpression:()=>M0e,getInitializerOfBindingOrAssignmentElement:()=>RV,getInterfaceBaseTypeNodes:()=>rP,getInternalEmitFlags:()=>Pp,getInvokedExpression:()=>pq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>K2e,getJSDocClassTag:()=>Ise,getJSDocCommentRanges:()=>k0e,getJSDocCommentsAndTags:()=>I0e,getJSDocDeprecatedTag:()=>Rse,getJSDocDeprecatedTagNoCache:()=>Z2e,getJSDocEnumTag:()=>Ose,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>W2e,getJSDocOverrideTagNoCache:()=>q2e,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>O2e,getJSDocPrivateTag:()=>fZe,getJSDocPrivateTagNoCache:()=>J2e,getJSDocProtectedTag:()=>mZe,getJSDocProtectedTagNoCache:()=>$2e,getJSDocPublicTag:()=>hZe,getJSDocPublicTagNoCache:()=>G2e,getJSDocReadonlyTag:()=>pZe,getJSDocReadonlyTagNoCache:()=>U2e,getJSDocReturnTag:()=>Y2e,getJSDocReturnType:()=>VO,getJSDocRoot:()=>iP,getJSDocSatisfiesExpressionType:()=>Rle,getJSDocSatisfiesTag:()=>jse,getJSDocTags:()=>Cv,getJSDocTagsNoCache:()=>EZe,getJSDocTemplateTag:()=>gZe,getJSDocThisTag:()=>LU,getJSDocType:()=>vv,getJSDocTypeAliasName:()=>Vce,getJSDocTypeAssertionType:()=>vY,getJSDocTypeParameterDeclarations:()=>Oq,getJSDocTypeParameterTags:()=>j2e,getJSDocTypeParameterTagsNoCache:()=>V2e,getJSDocTypeTag:()=>xv,getJSXImplicitImportBase:()=>nZ,getJSXRuntimeImport:()=>uZ,getJSXTransformEnabled:()=>iZ,getKeyForCompilerOptions:()=>vde,getLanguageVariant:()=>Yj,getLastChild:()=>Ele,getLeadingCommentRanges:()=>W_,getLeadingCommentRangesOfNode:()=>y0e,getLeftmostAccessExpression:()=>CP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>B1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Kde,getLineOfLocalPosition:()=>dP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>tp,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wye,getLinesBetweenPositions:()=>LN,getLinesBetweenRangeEndAndRangeStart:()=>mle,getLinesBetweenRangeEndPositions:()=>nYe,getLiteralText:()=>wbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>FH,getMappedContextSpan:()=>cfe,getMappedDocumentSpan:()=>yX,getMappedLocation:()=>zM,getMatchedFileSpec:()=>Q1e,getMatchedIncludeSpec:()=>X1e,getMeaningFromDeclaration:()=>TH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Wbe,getModeForFileReference:()=>yQ,getModeForResolutionAtIndex:()=>k1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>p2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>TQ,getModuleSpecifierEndingPreference:()=>Sle,getModuleSpecifierResolverHost:()=>rfe,getNameForExportedSymbol:()=>IX,getNameFromIndexInfo:()=>Rbe,getNameFromPropertyName:()=>WH,getNameOfAccessExpression:()=>Uye,getNameOfCompilerOptionValue:()=>rde,getNameOfDeclaration:()=>Za,getNameOfExpando:()=>N0e,getNameOfJSDocTypedef:()=>R2e,getNameOrArgument:()=>bj,getNameTable:()=>Tme,getNamesForExportedSymbol:()=>NSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>eK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>eye,getNextJSDocCommentLocation:()=>R0e,getNodeForGeneratedName:()=>jV,getNodeId:()=>$s,getNodeKind:()=>tb,getNodeModifiers:()=>NM,getNodeModulePathParts:()=>pZ,getNonAssignedNameOfDeclaration:()=>TU,getNonAssignmentOperatorForCompoundAssignment:()=>pM,getNonAugmentationDeclaration:()=>g0e,getNonDecoratorTokenPosOfNode:()=>d0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>Fse,getNormalizedPathComponents:()=>FO,getObjectFlags:()=>Gu,getOperator:()=>Y0e,getOperatorAssociativity:()=>Z0e,getOperatorPrecedence:()=>Rj,getOptionFromName:()=>ede,getOptionsForLibraryResolution:()=>bde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>P1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>wFe,getOrUpdate:()=>W0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>M1,getOriginalSourceFile:()=>$Ze,getOutputDeclarationFileName:()=>bM,getOutputExtension:()=>pQ,getOutputFileNames:()=>ntt,getOutputPathsFor:()=>CM,getOutputPathsForBundle:()=>vM,getOwnEmitOutputFilePath:()=>_ye,getOwnKeys:()=>Ns,getOwnValues:()=>U1,getPackageJsonInfo:()=>U2,getPackageJsonTypesVersionsPaths:()=>jY,getPackageJsonsVisibleToFile:()=>wSe,getPackageNameFromTypesPackageName:()=>hM,getPackageScopeForPath:()=>aH,getParameterSymbolFromJSDoc:()=>Tj,getParameterTypeNode:()=>gYe,getParentNodeInSpan:()=>JH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>GV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>Sse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Kfe,getPathsBasePath:()=>zq,getPatternFromSpec:()=>Fle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>TO,getPossibleGenericSignatures:()=>Uhe,getPossibleOriginalInputExtensionForExtension:()=>xye,getPossibleTypeArgumentsInfo:()=>qhe,getPreEmitDiagnostics:()=>rtt,getPrecedingNonSpaceCharacterPosition:()=>FX,getPrivateIdentifier:()=>Yde,getProperties:()=>qde,getProperty:()=>uo,getPropertyArrayElementValue:()=>Zbe,getPropertyAssignmentAliasLikeExpression:()=>fye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>GZe,getPropertyNameFromType:()=>Q4,getPropertyNameOfBindingOrAssignmentElement:()=>jce,getPropertySymbolFromBindingElement:()=>CX,getPropertySymbolsFromContextualType:()=>_ee,getQuoteFromPreference:()=>ofe,getQuotePreference:()=>Hm,getRangesWhere:()=>eu,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>FM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>yP,getRegularExpressionsForWildcards:()=>rZ,getRelativePathFromDirectory:()=>JE,getRelativePathFromFile:()=>SO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>qH,getReplacementSpanForContextToken:()=>Xhe,getResolutionDiagnostic:()=>P1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>M2,getResolvePackageJsonExports:()=>vle,getResolvePackageJsonImports:()=>cYe,getResolvedExternalModuleName:()=>Pq,getRestIndicatorOfBindingOrAssignmentElement:()=>bY,getRestParameterElementType:()=>F0e,getRightMostAssignedExpression:()=>vj,getRootDeclaration:()=>XE,getRootDirectoryOfResolutionCache:()=>a9e,getRootLength:()=>WE,getRootPathSplitLength:()=>Btt,getScriptKind:()=>pfe,getScriptKindFromFileName:()=>sZ,getScriptTargetFeatures:()=>xZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>wye,getSemanticClassifications:()=>ISe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>vye,getSetAccessorValueParameter:()=>hP,getSetExternalModuleIndicator:()=>Qj,getShebang:()=>SU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>z0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>sce,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Iq,getSourceFilePathInNewDirWorker:()=>Rq,getSourceFileVersionAsHashFromText:()=>HQ,getSourceFilesToEmit:()=>ile,getSourceMapRange:()=>Lv,getSourceMapper:()=>XSe,getSourceTextOfNodeFromSourceFile:()=>x2,getSpanOfTokenAtPosition:()=>QE,getSpellingSuggestion:()=>bN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>_P,getStartsOnNewLine:()=>RP,getStaticPropertiesAndClassStaticBlock:()=>lQ,getStrictOptionValue:()=>Z4,getStringComparer:()=>CN,getSuperCallFromStatement:()=>oQ,getSuperContainer:()=>fj,getSupportedCodeFixes:()=>Bme,getSupportedExtensions:()=>kP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tV,getSwitchedType:()=>Dfe,getSymbolId:()=>Zo,getSymbolNameForPrivateIdentifier:()=>zj,getSymbolTarget:()=>vSe,getSyntacticClassifications:()=>RSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>ale,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>UH,getSynthesizedDeepClones:()=>nb,getSynthesizedDeepClonesWithReplacements:()=>gfe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>DV,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>rH,getTextOfConstantValue:()=>Tbe,getTextOfIdentifierOrLiteral:()=>J4,getTextOfJSDocComment:()=>KO,getTextOfJsxAttributeName:()=>sV,getTextOfJsxNamespacedName:()=>zP,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>JN,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>T2,getTokenAtPosition:()=>Ca,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>VYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>LM,getTrailingCommentRanges:()=>gv,getTrailingSemicolonDeferringWriter:()=>ele,getTransformFlagsSubtreeExclusions:()=>Mke,getTransformers:()=>l1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>cq,getTypeAnnotationNode:()=>Cye,getTypeArgumentOrTypeParameterList:()=>rSe,getTypeKeywordOfTypeOnlyImport:()=>sfe,getTypeNode:()=>Wke,getTypeNodeIfAccessible:()=>VM,getTypeParameterFromJsDoc:()=>oye,getTypeParameterOwner:()=>oZe,getTypesPackageName:()=>$Y,getUILocale:()=>ZCe,getUniqueName:()=>Ok,getUniqueSymbolId:()=>CSe,getUseDefineForClassFields:()=>eV,getWatchErrorSummaryDiagnosticMessage:()=>U1e,getWatchFactory:()=>E1e,group:()=>vN,groupBy:()=>JCe,guessIndentation:()=>Dbe,handleNoEmitOptions:()=>L1e,hasAbstractModifier:()=>P2,hasAccessorModifier:()=>eE,hasAmbientModifier:()=>rle,hasChangesInResolutions:()=>s0e,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>fZ,hasDecorators:()=>o4,hasDocComment:()=>nSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>jq,hasEffectiveReadonlyModifier:()=>fP,hasExtension:()=>t7,hasIndexSignature:()=>_fe,hasInitializer:()=>Nx,hasInvalidEscape:()=>Q0e,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>H2e,hasJSFileExtension:()=>z2,hasJsonModuleEmitEnabled:()=>Qq,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Vq,hasPossibleExternalModuleReference:()=>zbe,hasProperty:()=>gu,hasPropertyAccessExpressionWithName:()=>NH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>BFe,hasResolutionModeOverride:()=>kke,hasRestParameter:()=>u0e,hasScopeMarker:()=>dbe,hasStaticModifier:()=>Kc,hasSyntacticModifier:()=>Yu,hasSyntacticModifiers:()=>Bye,hasTSFileExtension:()=>mk,hasTabstop:()=>Cke,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>JU,hasTypeArguments:()=>jZe,hasZeroOrOneAsteriskCharacter:()=>Cle,helperString:()=>dce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Hj,idText:()=>fu,identifierIsThisKeyword:()=>ule,identifierToKeywordKind:()=>Dv,identity:()=>il,identitySourceMapConsumer:()=>rQ,ignoreSourceNewlines:()=>cce,ignoredPaths:()=>kO,importDefaultHelper:()=>qZ,importFromModuleSpecifier:()=>tP,importNameElisionDisabled:()=>xle,importStarHelper:()=>vV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>$r,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>hQ,injectClassThisAssignmentIfMissing:()=>e7e,insertImports:()=>MM,insertLeadingStatement:()=>oQe,insertSorted:()=>Tt,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>wZe,insertStatementsAfterCustomPrologue:()=>l0e,insertStatementsAfterStandardPrologue:()=>ZE,intersperse:()=>_e,intrinsicTagNameToString:()=>Ole,introducesArgumentsExoticObject:()=>Ube,inverseJsxOptionMap:()=>sM,isAbstractConstructorSymbol:()=>Jye,isAbstractModifier:()=>tFe,isAccessExpression:()=>I0,isAccessibilityModifier:()=>Yhe,isAccessor:()=>wx,isAccessorModifier:()=>nFe,isAliasSymbolDeclaration:()=>HZe,isAliasableExpression:()=>Pj,isAmbientModule:()=>N1,isAmbientPropertyDeclaration:()=>_0e,isAnonymousFunctionDefinition:()=>sP,isAnyDirectorySeparator:()=>bse,isAnyImportOrBareOrAccessedRequire:()=>Mbe,isAnyImportOrReExport:()=>aj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>pYe,isApplicableVersionedTypesKey:()=>sH,isArgumentExpressionOfElementAccess:()=>jhe,isArray:()=>Ha,isArrayBindingElement:()=>jU,isArrayBindingOrAssignmentElement:()=>ZO,isArrayBindingOrAssignmentPattern:()=>Qse,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>Dh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>oY,isArrowFunction:()=>q0,isAsExpression:()=>AV,isAssertClause:()=>dFe,isAssertEntry:()=>XYe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>Xke,isAssignmentDeclaration:()=>eP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>KN,isAssignmentTarget:()=>Q_,isAsteriskToken:()=>yV,isAsyncFunction:()=>aP,isAsyncModifier:()=>VP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>_ce,isBigIntLiteral:()=>iY,isBinaryExpression:()=>Xn,isBinaryOperatorToken:()=>RFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>A2,isBindableStaticElementAccessExpression:()=>yq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>js,isBindingElementOfBareOrAccessedRequire:()=>nye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>rbe,isBindingOrAssignmentPattern:()=>UO,isBindingPattern:()=>So,isBlock:()=>po,isBlockOrCatchScoped:()=>h0e,isBlockScope:()=>D0e,isBlockScopedContainerTopLevel:()=>Pbe,isBooleanLiteral:()=>HN,isBreakOrContinueStatement:()=>ON,isBreakStatement:()=>ZYe,isBuildInfoFile:()=>S7e,isBuilderProgram:()=>c9e,isBundle:()=>kce,isBundleFileTextLike:()=>qye,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>Phe,isCallLikeExpression:()=>D2,isCallLikeOrFunctionLikeExpression:()=>Xse,isCallOrNewExpression:()=>$E,isCallOrNewExpressionTarget:()=>Mhe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>jP,isCaseBlock:()=>ZP,isCaseClause:()=>BB,isCaseKeyword:()=>uFe,isCaseOrDefaultClause:()=>WU,isCatchClause:()=>G2,isCatchClauseVariableDeclaration:()=>vke,isCatchClauseVariableDeclarationOrBindingElement:()=>f0e,isCheckJsEnabledForFile:()=>uV,isChildOfNodeWithKind:()=>TZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Wc,isClassElement:()=>Zd,isClassExpression:()=>Xd,isClassInstanceProperty:()=>ibe,isClassLike:()=>mr,isClassMemberModifier:()=>qse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>OU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>EM,isCollapsedRange:()=>iYe,isColonToken:()=>Yke,isCommaExpression:()=>MV,isCommaListExpression:()=>UP,isCommaSequence:()=>eM,isCommaToken:()=>Zke,isComment:()=>mX,isCommonJsExportPropertyAssignment:()=>sq,isCommonJsExportedExpression:()=>Jbe,isCompoundAssignment:()=>mM,isComputedNonLiteralName:()=>oj,isComputedPropertyName:()=>Ps,isConciseBody:()=>HU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>FV,isConstructorDeclaration:()=>hc,isConstructorTypeNode:()=>WP,isContextualKeyword:()=>Bq,isContinueStatement:()=>qYe,isCustomPrologue:()=>dj,isDebuggerStatement:()=>YYe,isDeclaration:()=>Q1,isDeclarationBindingElement:()=>$O,isDeclarationFileName:()=>e1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>ple,isDeclarationReadonly:()=>uq,isDeclarationStatement:()=>pbe,isDeclarationWithTypeParameterChildren:()=>v0e,isDeclarationWithTypeParameters:()=>x0e,isDecorator:()=>g1,isDecoratorTarget:()=>W9e,isDefaultClause:()=>TV,isDefaultImport:()=>c7,isDefaultModifier:()=>rY,isDefaultedExpandoInitializer:()=>uye,isDeleteExpression:()=>oFe,isDeleteTarget:()=>V0e,isDeprecatedDeclaration:()=>RX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>bfe,isDiskPathRoot:()=>yse,isDoStatement:()=>$Ye,isDocumentRegistryEntry:()=>iK,isDotDotDotToken:()=>nY,isDottedName:()=>pP,isDynamicName:()=>Lq,isESSymbolIdentifier:()=>JZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Nbe,isEffectiveStrictModeSourceFile:()=>E0e,isElementAccessChain:()=>Hse,isElementAccessExpression:()=>U0,isEmittedFileOfProgram:()=>L7e,isEmptyArrayLiteral:()=>Iye,isEmptyBindingElement:()=>z2e,isEmptyBindingPattern:()=>M2e,isEmptyObjectLiteral:()=>dle,isEmptyStatement:()=>Cce,isEmptyStringLiteral:()=>B0e,isEntityName:()=>sm,isEntityNameExpression:()=>ec,isEnumConst:()=>b2,isEnumDeclaration:()=>Iv,isEnumMember:()=>J2,isEqualityOperatorKind:()=>BX,isEqualsGreaterThanToken:()=>Qke,isExclamationToken:()=>kV,isExcludedFile:()=>QFe,isExclusivelyTypeOnlyImportOrExport:()=>F1e,isExpandoPropertyDeclaration:()=>EZ,isExportAssignment:()=>tc,isExportDeclaration:()=>Gc,isExportModifier:()=>L7,isExportName:()=>xY,isExportNamespaceAsDefaultDeclaration:()=>eq,isExportOrDefaultModifier:()=>OV,isExportSpecifier:()=>eh,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>q2,isExpression:()=>Wt,isExpressionNode:()=>Z_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>U9e,isExpressionOfOptionalChainRoot:()=>MU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Jj,isExternalModule:()=>wc,isExternalModuleAugmentation:()=>v2,isExternalModuleImportEqualsDeclaration:()=>bv,isExternalModuleIndicator:()=>YO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>r_,isExternalModuleSymbol:()=>HH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>JO,isFileLevelUniqueName:()=>QU,isFileProbablyExternalModule:()=>HV,isFirstDeclarationOfSymbolParameter:()=>dfe,isFixablePromiseHandler:()=>Ufe,isForInOrOfStatement:()=>M8,isForInStatement:()=>hY,isForInitializer:()=>a4,isForOfStatement:()=>SV,isForStatement:()=>vk,isFunctionBlock:()=>k2,isFunctionBody:()=>t0e,isFunctionDeclaration:()=>ed,isFunctionExpression:()=>A0,isFunctionExpressionOrArrowFunction:()=>R2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>$0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>ube,isFunctionOrModuleBlock:()=>Zse,isFunctionSymbol:()=>aye,isFunctionTypeNode:()=>u3,isFutureReservedKeyword:()=>KZe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>zm,isGetOrSetAccessorDeclaration:()=>NU,isGlobalDeclaration:()=>Iit,isGlobalScopeAugmentation:()=>Yg,isGrammarError:()=>Sbe,isHeritageClause:()=>mm,isHoistedFunction:()=>aq,isHoistedVariableStatement:()=>oq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>wq,isIdentifierName:()=>hye,isIdentifierOrThisTypeNode:()=>PFe,isIdentifierPart:()=>Ev,isIdentifierStart:()=>G_,isIdentifierText:()=>Lm,isIdentifierTypePredicate:()=>qbe,isIdentifierTypeReference:()=>gke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>DH,isImplicitGlob:()=>kle,isImportAttribute:()=>hFe,isImportAttributeName:()=>tbe,isImportAttributes:()=>fY,isImportCall:()=>dm,isImportClause:()=>n_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>E1,isImportKeyword:()=>KP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>xSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>QYe,isImportTypeNode:()=>nD,isImportableFile:()=>Mfe,isInComment:()=>m5,isInCompoundLikeAssignment:()=>O0e,isInExpressionContext:()=>Eq,isInJSDoc:()=>Ej,isInJSFile:()=>Qn,isInJSXText:()=>tSe,isInJsonFile:()=>Dq,isInNonReferenceComment:()=>sSe,isInReferenceComment:()=>oSe,isInRightSideOfInternalImportEqualsDeclaration:()=>tX,isInString:()=>zk,isInTemplateString:()=>$he,isInTopLevelContext:()=>fq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>Xj,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>LP,isInitializedProperty:()=>fH,isInitializedVariable:()=>Zj,isInsideJsxElement:()=>hX,isInsideJsxElementOrAttribute:()=>eSe,isInsideNodeModules:()=>XH,isInsideTemplateLiteral:()=>jH,isInstanceOfExpression:()=>Hq,isInstantiatedModule:()=>Rde,isInterfaceDeclaration:()=>xh,isInternalDeclaration:()=>o1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Ice,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Vp,isJSDocAllType:()=>EFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>nQe,isJSDocCallbackTag:()=>Ace,isJSDocClassTag:()=>DFe,isJSDocCommentContainingNode:()=>GU,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Lce,isJSDocEnumTag:()=>LV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Nce,isJSDocIndexSignature:()=>xq,isJSDocLikeText:()=>Jce,isJSDocLink:()=>pFe,isJSDocLinkCode:()=>gFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>tQe,isJSDocMemberName:()=>Rv,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>iQe,isJSDocNamespaceBody:()=>kZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>mY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>oV,isJSDocOptionalType:()=>Fce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>gY,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Bce,isJSDocPropertyLikeTag:()=>WO,isJSDocPropertyTag:()=>vFe,isJSDocProtectedTag:()=>wce,isJSDocPublicTag:()=>Sce,isJSDocReadonlyTag:()=>Tce,isJSDocReturnTag:()=>EY,isJSDocSatisfiesExpression:()=>Ile,isJSDocSatisfiesTag:()=>_Y,isJSDocSeeTag:()=>uQe,isJSDocSignature:()=>Ov,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>xFe,isJSDocThrowsTag:()=>aQe,isJSDocTypeAlias:()=>G4,isJSDocTypeAssertion:()=>tM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>XP,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>rQe,isJSDocUnknownType:()=>_Fe,isJSDocVariadicType:()=>pY,isJSXTagName:()=>$8,isJsonEqual:()=>dZ,isJsonSourceFile:()=>W4,isJsxAttribute:()=>oE,isJsxAttributeLike:()=>KU,isJsxAttributeName:()=>yke,isJsxAttributes:()=>W2,isJsxChild:()=>ej,isJsxClosingElement:()=>H2,isJsxClosingFragment:()=>fFe,isJsxElement:()=>r3,isJsxExpression:()=>YP,isJsxFragment:()=>K2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>aE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>zh,isJsxOpeningLikeElementTagName:()=>G9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>WN,isJsxText:()=>w7,isJumpStatementTarget:()=>PH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>Sq,isKnownSymbol:()=>Ij,isLabelName:()=>Rhe,isLabelOfLabeledStatement:()=>Ihe,isLabeledStatement:()=>V2,isLateVisibilityPaintedStatement:()=>iq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>tYe,isLet:()=>rq,isLineBreak:()=>Z1,isLiteralComputedPropertyDeclarationName:()=>Nj,isLiteralExpression:()=>E2,isLiteralExpressionOfObject:()=>$se,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>jN,isLiteralLikeAccess:()=>bq,isLiteralLikeElementAccess:()=>Cj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>uX,isLiteralTypeLikeExpression:()=>hQe,isLiteralTypeLiteral:()=>lbe,isLiteralTypeNode:()=>Mv,isLocalName:()=>rD,isLogicalOperator:()=>Pye,isLogicalOrCoalescingAssignmentExpression:()=>ole,isLogicalOrCoalescingAssignmentOperator:()=>mP,isLogicalOrCoalescingBinaryExpression:()=>Gj,isLogicalOrCoalescingBinaryOperator:()=>Wj,isMappedTypeNode:()=>JP,isMemberName:()=>J_,isMetaProperty:()=>$P,isMethodDeclaration:()=>dc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>n3,isMinusToken:()=>Ece,isMissingDeclaration:()=>eQe,isModifier:()=>Qo,isModifierKind:()=>XD,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>p0e,isModuleBlock:()=>rE,isModuleBody:()=>hbe,isModuleDeclaration:()=>_c,isModuleExportsAccessExpression:()=>Y_,isModuleIdentifier:()=>P0e,isModuleName:()=>IFe,isModuleOrEnumDeclaration:()=>QO,isModuleReference:()=>Ebe,isModuleSpecifierLike:()=>vX,isModuleWithStringLiteralName:()=>tq,isNameOfFunctionDeclaration:()=>Hhe,isNameOfModuleDeclaration:()=>Vhe,isNamedClassElement:()=>nbe,isNamedDeclaration:()=>mh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>J0e,isNamedExportBindings:()=>Wse,isNamedExports:()=>ep,isNamedImportBindings:()=>i0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Uq,isNamedTupleMember:()=>GP,isNamespaceBody:()=>yZe,isNamespaceExport:()=>u_,isNamespaceExportDeclaration:()=>wV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>iye,isNewExpression:()=>j2,isNewExpressionTarget:()=>wM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>DZe,isNodeArray:()=>g2,isNodeArrayMultiLine:()=>Kye,isNodeDescendantOf:()=>S2,isNodeKind:()=>GO,isNodeLikeSystem:()=>hoe,isNodeModulesDirectory:()=>bU,isNodeWithPossibleHoistedDeclaration:()=>lye,isNonContextualKeyword:()=>G0e,isNonExportDefaultModifier:()=>mQe,isNonGlobalAmbientModule:()=>m0e,isNonGlobalDeclaration:()=>zSe,isNonNullAccess:()=>bke,isNonNullChain:()=>zU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>JAe,isNotEmittedOrPartiallyEmittedNode:()=>bZe,isNotEmittedStatement:()=>yce,isNullishCoalesce:()=>Kse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>i3,isObjectBindingElementWithoutPropertyName:()=>GH,isObjectBindingOrAssignmentElement:()=>qO,isObjectBindingOrAssignmentPattern:()=>Yse,isObjectBindingPattern:()=>Rp,isObjectLiteralElement:()=>n0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>zp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>lq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>AU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Y1,isOptionalChainRoot:()=>IN,isOptionalDeclaration:()=>PP,isOptionalJSDocPropertyLikeTag:()=>aV,isOptionalTypeNode:()=>Dce,isOuterExpression:()=>CY,isOutermostOptionalChain:()=>RN,isOverrideModifier:()=>iFe,isPackedArrayLiteral:()=>Ple,isParameter:()=>io,isParameterDeclaration:()=>w2,isParameterOrCatchClauseVariable:()=>Mle,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>VN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>zN,isPartOfTypeNode:()=>q_,isPartOfTypeQuery:()=>_q,isPartiallyEmittedExpression:()=>dY,isPatternMatch:()=>Y$,isPinnedComment:()=>XU,isPlainJsFile:()=>nj,isPlusToken:()=>gce,isPossiblyTypeArgumentPosition:()=>OH,isPostfixUnaryExpression:()=>vce,isPrefixUnaryExpression:()=>zv,isPrivateIdentifier:()=>ea,isPrivateIdentifierClassElementDeclaration:()=>ph,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>mye,isProgramBundleEmitBuildInfo:()=>U7e,isProgramUptoDate:()=>w1e,isPrologueDirective:()=>Mp,isPropertyAccessChain:()=>PU,isPropertyAccessEntityNameExpression:()=>$j,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>obe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>abe,isPropertyAssignment:()=>Jc,isPropertyDeclaration:()=>ko,isPropertyName:()=>Sc,isPropertyNameLiteral:()=>Xg,isPropertySignature:()=>Mm,isProtoSetter:()=>pye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>kj,isPunctuation:()=>W0e,isPushOrUnshiftIdentifier:()=>$0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>uY,isQuestionOrExclamationToken:()=>NFe,isQuestionOrPlusOrMinusToken:()=>zFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>HAe,isReadonlyKeyword:()=>eFe,isReadonlyKeywordOrPlusOrMinusToken:()=>MFe,isRecognizedTripleSlashComment:()=>c0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>Jv,isRegularExpressionLiteral:()=>mce,isRequireCall:()=>xf,isRequireVariableStatement:()=>L0e,isRestParameter:()=>$_,isRestTypeNode:()=>xce,isReturnStatement:()=>Op,isReturnStatementWithFixablePromiseHandler:()=>UX,isRightSideOfAccessExpression:()=>cle,isRightSideOfInstanceofExpression:()=>zye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>$9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>gP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Mye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>sFe,isScopeMarker:()=>cbe,isSemicolonClassElement:()=>lFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Bse,isShiftOperatorOrHigher:()=>Kce,isShorthandAmbientModuleSymbol:()=>$N,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Tq,isSimpleCopiableExpression:()=>Y2,isSimpleInlineableExpression:()=>sE,isSingleOrDoubleQuote:()=>_j,isSourceFile:()=>la,isSourceFileFromLibrary:()=>KM,isSourceFileJS:()=>gh,isSourceFileNotJS:()=>PZe,isSourceFileNotJson:()=>T0e,isSourceMapping:()=>KAe,isSpecialPropertyDeclaration:()=>rye,isSpreadAssignment:()=>d5,isSpreadElement:()=>uE,isStatement:()=>na,isStatementButNotDeclaration:()=>XO,isStatementOrBlock:()=>gbe,isStatementWithLocals:()=>Abe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ja,isStringAKeyword:()=>WZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>aSe,isStringDoubleQuoted:()=>Cq,isStringLiteral:()=>us,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>_be,isStringLiteralOrTemplate:()=>ASe,isStringOrNumericLiteralLike:()=>Pm,isStringOrRegularExpressionOrTemplateLiteral:()=>Zhe,isStringTextContainingNode:()=>Use,isSuperCall:()=>ik,isSuperKeyword:()=>HP,isSuperOrSuperProperty:()=>NZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>hke,isSwitchStatement:()=>BV,isSyntaxList:()=>MB,isSyntheticExpression:()=>JYe,isSyntheticReference:()=>j7,isTagName:()=>Ohe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>K9e,isTemplateExpression:()=>lY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>X2e,isTemplateLiteralTypeNode:()=>GYe,isTemplateLiteralTypeSpan:()=>rFe,isTemplateMiddle:()=>qke,isTemplateMiddleOrTemplateTail:()=>IU,isTemplateSpan:()=>qP,isTemplateTail:()=>pce,isTextWhiteSpaceLike:()=>hSe,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>Xbe,isThisIdentifier:()=>N2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>mq,isThisInitializedObjectBindingExpression:()=>tye,isThisProperty:()=>mj,isThisTypeNode:()=>sY,isThisTypeParameter:()=>NP,isThisTypePredicate:()=>LZe,isThrowStatement:()=>bce,isToken:()=>u7,isTokenKind:()=>Jse,isTraceEnabled:()=>aD,isTransientSymbol:()=>qE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Sj,isTypeAliasDeclaration:()=>jp,isTypeAssertionExpression:()=>aFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>PM,isTypeKeywordToken:()=>ife,isTypeKeywordTokenOrIdentifier:()=>EX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Xr,isTypeNodeKind:()=>_le,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>ebe,isTypeOnlyImportDeclaration:()=>RU,isTypeOnlyImportOrExportDeclaration:()=>_2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>Bl,isTypePredicateNode:()=>aY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>X4,isTypeReferenceType:()=>$U,isTypeUsableAsPropertyName:()=>Y4,isUMDExportSymbol:()=>$q,isUnaryExpression:()=>e0e,isUnaryExpressionWithWrite:()=>sbe,isUnicodeIdentifierStart:()=>kU,isUnionTypeNode:()=>Pv,isUnparsedNode:()=>Gse,isUnparsedPrepend:()=>mFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>Q2e,isUrl:()=>x2e,isValidBigIntString:()=>hZ,isValidESSymbolDeclaration:()=>$be,isValidTypeOnlyAliasUseSite:()=>Tv,isValueSignatureDeclaration:()=>cye,isVarAwaitUsing:()=>lj,isVarConst:()=>K8,isVarUsing:()=>cj,isVariableDeclaration:()=>ua,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>F2,isVariableDeclarationInitializedToRequire:()=>vq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Gbe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>uYe,isWhileStatement:()=>UYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>qg,isWithStatement:()=>cFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Jq,isYieldExpression:()=>cY,jsxModeNeedsExplicitImport:()=>Sfe,keywordPart:()=>Hf,last:()=>Cr,lastOrUndefined:()=>qu,length:()=>S,libMap:()=>LY,libs:()=>YV,lineBreakPart:()=>lw,linkNamePart:()=>_Se,linkPart:()=>ffe,linkTextPart:()=>kX,listFiles:()=>q1e,loadModuleFromGlobalCache:()=>kAe,loadWithModeAwareCache:()=>CH,makeIdentifierFromModuleName:()=>Lbe,makeImport:()=>g5,makeImportIfNecessary:()=>dSe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>Zr,mapDefined:()=>qi,mapDefinedEntries:()=>Fa,mapDefinedIterator:()=>eo,mapEntries:()=>ci,mapIterator:()=>zr,mapOneOrMany:()=>kfe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ale,matchPatternOrExact:()=>Ble,matchedText:()=>t2e,matchesExclude:()=>TY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>tke,memoize:()=>Mh,memoizeCached:()=>UCe,memoizeOne:()=>HE,memoizeWeak:()=>fqe,metadataHelper:()=>wZ,min:()=>ooe,minAndMax:()=>mke,missingFileModifiedTime:()=>K_,modifierToFlag:()=>_7,modifiersToFlags:()=>tE,moduleOptionDeclaration:()=>cde,moduleResolutionIsEqualTo:()=>kbe,moduleResolutionNameAndModeGetter:()=>yH,moduleResolutionOptionDeclarations:()=>NY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>_X,moduleSpecifiers:()=>Z2,moveEmitHelpers:()=>Hke,moveRangeEnd:()=>Wq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>iE,moveRangePos:()=>Sv,moveSyntheticComments:()=>Oke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>AX,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>VX,newPrivateEnvironment:()=>qAe,noEmitNotification:()=>mH,noEmitSubstitution:()=>xM,noTransformers:()=>c1e,noTruncationMaximumTruncationLength:()=>DZ,nodeCanBeDecorated:()=>gq,nodeHasName:()=>jO,nodeIsDecorated:()=>YN,nodeIsMissing:()=>Ql,nodeIsPresent:()=>H4,nodeIsSynthesized:()=>sl,nodeModuleNameResolver:()=>EAe,nodeModulesPathPart:()=>o_,nodeNextJsonConfigResolver:()=>_Ae,nodeOrChildIsDecorated:()=>gj,nodeOverlapsWithStartEnd:()=>rX,nodePosToString:()=>FZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>U0e,nodeToDisplayParts:()=>Tit,noop:()=>Is,noopFileWatcher:()=>tw,normalizePath:()=>$o,normalizeSlashes:()=>q1,not:()=>X$,notImplemented:()=>ho,notImplementedResolver:()=>DQ,nullNodeConverters:()=>tce,nullParenthesizerRules:()=>ece,nullTransformationContext:()=>Dg,objectAllocator:()=>Qd,operatorPart:()=>IM,optionDeclarations:()=>a3,optionMapToObject:()=>ude,optionsAffectingProgramStructure:()=>pde,optionsForBuild:()=>Ede,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Cbe,or:()=>dg,orderedRemoveItem:()=>gO,orderedRemoveItemAt:()=>fv,outFile:()=>y0,packageIdToPackageName:()=>ZU,packageIdToString:()=>Px,paramHelper:()=>TZ,parameterIsThisKeyword:()=>L2,parameterNamePart:()=>mSe,parseBaseNodeFactory:()=>Zce,parseBigInt:()=>pke,parseBuildCommand:()=>JQe,parseCommandLine:()=>WQe,parseCommandLineWorker:()=>Xce,parseConfigFileTextToJson:()=>tde,parseConfigFileWithSystem:()=>Ttt,parseConfigHostFromCompilerHostLike:()=>wQ,parseCustomTypeOption:()=>BY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>WFe,parseJSDocTypeExpressionForTests:()=>TQe,parseJsonConfigFileContent:()=>aXe,parseJsonSourceFileConfigFileContent:()=>UV,parseJsonText:()=>WV,parseListTypeOption:()=>JFe,parseNodeFactory:()=>a_,parseNodeModuleFromPath:()=>uH,parsePackageName:()=>oH,parsePseudoBigInt:()=>SP,parseValidBigInt:()=>Nle,patchWriteFileEnsuringDirectory:()=>_2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>kse,pathIsRelative:()=>om,patternText:()=>e2e,perfLogger:()=>hh,performIncrementalCompilation:()=>Mtt,performance:()=>h2e,plainJSErrors:()=>NQ,positionBelongsToNode:()=>Whe,positionIsASICandidate:()=>TX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>q4,preProcessFile:()=>unt,probablyUsesSemicolons:()=>YH,processCommentPragmas:()=>Uce,processPragmasIntoFields:()=>qce,processTaggedTemplateExpression:()=>i1e,programContainsEsModules:()=>cSe,programContainsModules:()=>lSe,projectReferenceIsEqualTo:()=>a0e,propKeyHelper:()=>WZ,propertyNamePart:()=>pSe,pseudoBigIntToString:()=>I2,punctuationPart:()=>ih,pushIfUnique:()=>xa,quote:()=>jM,quotePreferenceFromString:()=>afe,rangeContainsPosition:()=>MH,rangeContainsPositionExclusive:()=>zH,rangeContainsRange:()=>Vm,rangeContainsRangeExclusive:()=>q9e,rangeContainsStartEnd:()=>IH,rangeEndIsOnSameLineAsRangeStart:()=>qj,rangeEndPositionsAreOnSameLine:()=>Vye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Tle,rangeOfTypeParameters:()=>Lle,rangeOverlapsWithStartEnd:()=>TM,rangeStartIsOnSameLineAsRangeEnd:()=>Hye,rangeStartPositionsAreOnSameLine:()=>Gq,readBuilderProgram:()=>GQ,readConfigFile:()=>JV,readHelper:()=>HZ,readJson:()=>EP,readJsonConfigFile:()=>qFe,readJsonOrUndefined:()=>hle,reduceEachLeadingCommentRange:()=>k2e,reduceEachTrailingCommentRange:()=>F2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>hYe,relativeComplement:()=>Wr,removeAllComments:()=>EV,removeEmitHelper:()=>HYe,removeExtension:()=>nV,removeFileExtension:()=>_h,removeIgnoredPath:()=>zQ,removeMinAndVersionNumbers:()=>soe,removeOptionality:()=>iSe,removePrefix:()=>yN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>mv,repeatString:()=>KH,replaceElement:()=>qd,resolutionExtensionIsTSOrJson:()=>FP,resolveConfigFileProjectName:()=>ahe,resolveJSModule:()=>pAe,resolveLibrary:()=>KY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>KXe,resolvePackageNameToPackageJson:()=>xde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>bQ,resolveTypeReferenceDirective:()=>hAe,resolvingEmptyArray:()=>_Z,restHelper:()=>RZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>hv,returnsPromise:()=>$fe,runInitializersHelper:()=>NZ,sameFlatMap:()=>z0,sameMap:()=>Lu,sameMapping:()=>Net,scanShebangTrivia:()=>wse,scanTokenAtPosition:()=>Hbe,scanner:()=>nh,screenStartingMessageCodes:()=>WQ,semanticDiagnosticsOptionDeclarations:()=>hde,serializeCompilerOptions:()=>ade,server:()=>Zct,servicesVersion:()=>iBe,setCommentRange:()=>Bc,setConfigFileInOptions:()=>sde,setConstantValue:()=>Vke,setEachParent:()=>pB,setEmitFlags:()=>Zn,setFunctionNameHelper:()=>GZ,setGetSourceFileAsHashVersioned:()=>KQ,setIdentifierAutoGenerate:()=>xV,setIdentifierGeneratedImportReference:()=>Gke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>_V,setLocalizedDiagnosticMessages:()=>eke,setModuleDefaultHelper:()=>UZ,setNodeFlags:()=>_ke,setObjectAllocator:()=>Xye,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>lce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Pqe,setStartsOnNewLine:()=>FZ,setSyntheticLeadingComments:()=>Nv,setSyntheticTrailingComments:()=>A7,setSys:()=>Oqe,setSysLog:()=>g2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>BP,setTextRangePosEnd:()=>t_,setTextRangePosWidth:()=>wP,setTokenSourceMapRange:()=>Rke,setTypeNode:()=>Kke,setUILocale:()=>YCe,setValueDeclaration:()=>Fj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>eZ,shouldUseUriStyleNodeCoreModules:()=>OX,showModuleSpecifier:()=>$ye,signatureHasLiteralTypes:()=>Ode,signatureHasRestParameter:()=>th,signatureToDisplayParts:()=>mfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>qa,singleOrMany:()=>F0,singleOrUndefined:()=>Aa,skipAlias:()=>X1,skipAssertions:()=>lQe,skipConstraint:()=>nfe,skipOuterExpressions:()=>Dc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Np,skipTrivia:()=>gs,skipTypeChecking:()=>AP,skipTypeParentheses:()=>j0e,skipWhile:()=>n2e,sliceAfter:()=>wle,some:()=>Oe,sort:()=>Ph,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>PY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>nQ,sourceMapCommentRegExpDontCareLineStart:()=>Jde,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>KZ,stableSort:()=>oc,startEndContainsRange:()=>Khe,startEndOverlapsWithStartEnd:()=>aX,startOnNewLine:()=>vh,startTracing:()=>f2e,startsWith:()=>Pa,startsWithDirectory:()=>Ase,startsWithUnderscore:()=>Afe,startsWithUseStrict:()=>AFe,stringContainsAt:()=>MSe,stringToToken:()=>f2,stripQuotes:()=>$4,supportedDeclarationExtensions:()=>dV,supportedJSExtensions:()=>Yle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>r0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Zle,supportedTSImplementationExtensions:()=>hV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Efe,suppressTrailingTrivia:()=>ySe,symbolEscapedNameNoDefault:()=>xX,symbolName:()=>lc,symbolNameNoDefault:()=>DX,symbolPart:()=>fSe,symbolToDisplayParts:()=>RM,syntaxMayBeASICandidate:()=>Nfe,syntaxRequiresTrailingSemicolonOrASI:()=>wX,sys:()=>c1,sysLog:()=>bO,tagNamesAreEquivalent:()=>Vv,takeWhile:()=>tU,targetOptionDeclaration:()=>XV,templateObjectHelper:()=>VZ,testFormatSettings:()=>H9e,textChangeRangeIsUnchanged:()=>N2e,textChangeRangeNewSpan:()=>MN,textChanges:()=>iu,textOrKeywordPart:()=>hfe,textPart:()=>Km,textRangeContainsPositionInclusive:()=>IO,textSpanContainsPosition:()=>Nse,textSpanContainsTextSpan:()=>B2e,textSpanEnd:()=>Ec,textSpanIntersection:()=>L2e,textSpanIntersectsWith:()=>wU,textSpanIntersectsWithPosition:()=>T2e,textSpanIntersectsWithTextSpan:()=>aZe,textSpanIsEmpty:()=>S2e,textSpanOverlap:()=>w2e,textSpanOverlapsWith:()=>rZe,textSpansEqual:()=>sw,textToKeywordObj:()=>MO,timestamp:()=>G0,toArray:()=>YA,toBuilderFileEmit:()=>Q7e,toBuilderStateFileInfoForMultiEmit:()=>Y7e,toEditorSettings:()=>gK,toFileNameLowerCase:()=>$g,toLowerCase:()=>$Ce,toPath:()=>J0,toProgramEmitPending:()=>X7e,tokenIsIdentifierOrKeyword:()=>fh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>b2e,tokenToString:()=>Uo,trace:()=>Sa,tracing:()=>Gn,tracingEnabled:()=>DO,transform:()=>nrt,transformClassFields:()=>r7e,transformDeclarations:()=>s1e,transformECMAScriptModule:()=>a1e,transformES2015:()=>x7e,transformES2016:()=>D7e,transformES2017:()=>l7e,transformES2018:()=>c7e,transformES2019:()=>d7e,transformES2020:()=>h7e,transformES2021:()=>f7e,transformES5:()=>v7e,transformESDecorators:()=>s7e,transformESNext:()=>m7e,transformGenerators:()=>C7e,transformJsx:()=>_7e,transformLegacyDecorators:()=>o7e,transformModule:()=>r1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>y7e,transformNodes:()=>pH,transformSystemModule:()=>b7e,transformTypeScript:()=>u7e,transpile:()=>hnt,transpileModule:()=>e8e,transpileOptionValueCompilerOptions:()=>gde,tryAddToSet:()=>r0,tryAndIgnoreErrors:()=>PX,tryCast:()=>ur,tryDirectoryExists:()=>NX,tryExtractTSExtension:()=>Kq,tryFileExists:()=>QH,tryGetClassExtendingExpressionWithTypeArguments:()=>sle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>lle,tryGetDirectories:()=>LX,tryGetExtensionFromPath:()=>t3,tryGetImportFromModuleSpecifier:()=>Aj,tryGetJSDocSatisfiesTypeNode:()=>gZ,tryGetModuleNameFromFile:()=>IV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>l2e,tryGetPropertyAccessOrIdentifierToString:()=>Uj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>yY,tryGetSourceMappingURL:()=>VAe,tryGetTextOfPropertyName:()=>UN,tryIOAndConsumeErrors:()=>MX,tryParsePattern:()=>fB,tryParsePatterns:()=>lZ,tryParseRawSourceMap:()=>Wde,tryReadDirectory:()=>xfe,tryReadFile:()=>rM,tryRemoveDirectoryPrefix:()=>yle,tryRemoveExtension:()=>fke,tryRemovePrefix:()=>doe,tryRemoveSuffix:()=>XCe,typeAcquisitionDeclarations:()=>eH,typeAliasNamePart:()=>gSe,typeDirectiveIsEqualTo:()=>Fbe,typeKeywords:()=>HX,typeParameterNamePart:()=>ESe,typeReferenceResolutionNameAndModeGetter:()=>LQ,typeToDisplayParts:()=>$H,unchangedPollThresholds:()=>yO,unchangedTextChangeRange:()=>tj,unescapeLeadingUnderscores:()=>Qr,unmangleScopedPackageName:()=>lH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>loe,unreachableCodeIsError:()=>uke,unusedLabelIsError:()=>rke,unwrapInnermostStatementOfLabel:()=>A0e,updateErrorForNoInputFiles:()=>wY,updateLanguageServiceSourceFile:()=>wme,updateMissingFilePathsWatch:()=>g1e,updatePackageJsonWatch:()=>utt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>vQ,updateSourceFile:()=>$ce,updateWatchingWildcardDirectories:()=>_H,usesExtensionsOnImports:()=>dke,usingSingleLineStringWriter:()=>GN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>sZe,valuesHelper:()=>JZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>dH,visitCommaListElements:()=>hH,visitEachChild:()=>rn,visitFunctionBody:()=>Om,visitIterationBody:()=>Ih,visitLexicalEnvironment:()=>iQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>xc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>UAe,walkUpOuterExpressions:()=>SFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Lj,walkUpParenthesizedTypesAndGetParentAndChild:()=>dye,whitespaceOrMapCommentRegExp:()=>uQ,writeCommentRange:()=>sB,writeFile:()=>cP,writeFileEnsuringDirectories:()=>nle,zipWith:()=>re});var Xv=o({"src/server/_namespaces/ts.ts"(){Bo(),BH(),rr(),Jpe(),_9()}}),Qct={};h(Qct,{ActionInvalidate:()=>YQ,ActionPackageInstalled:()=>T9e,ActionSet:()=>ZQ,ActionWatchTypingLocations:()=>SH,Arguments:()=>mhe,AutoImportProviderProject:()=>age,AuxiliaryProject:()=>uge,CharRangeSection:()=>_ge,CloseFileWatcherEvent:()=>lte,CommandNames:()=>kNe,ConfigFileDiagEvent:()=>ute,ConfiguredProject:()=>oge,CreateDirectoryWatcherEvent:()=>ste,CreateFileWatcherEvent:()=>ote,Errors:()=>v5,EventBeginInstallTypes:()=>hhe,EventEndInstallTypes:()=>fhe,EventInitializationFailed:()=>N9e,EventTypesRegistry:()=>L9e,ExternalProject:()=>Zee,GcTimer:()=>Ype,InferredProject:()=>nge,LargeFileReferencedEvent:()=>nte,LineIndex:()=>rz,LineLeaf:()=>qK,LineNode:()=>E9,LogLevel:()=>$pe,Msg:()=>Upe,OpenFileInfoTelemetryEvent:()=>cge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ate,ProjectKind:()=>nz,ProjectLanguageServiceStateEvent:()=>rte,ProjectLoadingFinishEvent:()=>ite,ProjectLoadingStartEvent:()=>tte,ProjectReferenceProjectLoadKind:()=>fge,ProjectService:()=>mge,ProjectsUpdatedInBackgroundEvent:()=>JK,ScriptInfo:()=>ege,ScriptVersionCache:()=>fte,Session:()=>ANe,TextStorage:()=>Xpe,ThrottledOperations:()=>Zpe,TypingsCache:()=>tge,allFilesAreJsOrDts:()=>nNe,allRootFilesAreJsOrDts:()=>iNe,asNormalizedPath:()=>Fct,convertCompilerOptions:()=>Yee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>lge,convertTypeAcquisition:()=>aNe,convertUserPreferences:()=>oNe,convertWatchOptions:()=>GK,countEachFileTypes:()=>KK,createInstallTypingsRequest:()=>kct,createModuleSpecifierCache:()=>ENe,createNormalizedPathMap:()=>Act,createPackageJsonCache:()=>_Ne,createSortedArray:()=>jLe,emptyArray:()=>$c,findArgument:()=>_it,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>UK,formatMessage:()=>DNe,getBaseConfigFileName:()=>qpe,getLocationInNewDocument:()=>bNe,hasArgument:()=>Eit,hasNoTypeScriptSource:()=>uNe,indent:()=>BM,isBackgroundProject:()=>WK,isConfigFile:()=>fNe,isConfiguredProject:()=>Qv,isDynamicFileName:()=>HK,isExternalProject:()=>ige,isInferredProject:()=>Aw,isInferredProjectName:()=>zLe,makeAutoImportProviderProjectName:()=>RLe,makeAuxiliaryProjectName:()=>OLe,makeInferredProjectName:()=>ILe,maxFileSize:()=>ete,maxProgramSizeForNonTsFiles:()=>Xee,normalizedPathToPath:()=>VK,nowString:()=>Dit,nullCancellationToken:()=>yNe,nullTypingsInstaller:()=>qee,projectContainsInfoDirectly:()=>p9,protocol:()=>tNe,removeSorted:()=>Sct,stringifyIndented:()=>nw,toEvent:()=>xNe,toNormalizedPath:()=>Dl,tryConvertScriptKindName:()=>sge,typingsInstaller:()=>PLe,updateProjectIfDirty:()=>Gm});var lXt=o({"src/typescript/_namespaces/ts.server.ts"(){QQ(),_9()}}),Xct={};h(Xct,{ANONYMOUS:()=>KX,AccessFlags:()=>Koe,AssertionLevel:()=>moe,AssignmentDeclarationKind:()=>Qoe,AssignmentKind:()=>Kle,Associativity:()=>Gle,BreakpointResolver:()=>Ime,BuilderFileEmit:()=>K1e,BuilderProgramKind:()=>W1e,BuilderState:()=>Wp,BundleFileSectionKind:()=>gse,CallHierarchy:()=>o9,CharacterCodes:()=>lse,CheckFlags:()=>Roe,CheckMode:()=>XY,ClassificationType:()=>Nhe,ClassificationTypeNames:()=>Lhe,CommentDirectiveType:()=>boe,Comparison:()=>x,CompletionInfoFlags:()=>khe,CompletionTriggerKind:()=>xhe,Completions:()=>h9,ContainerFlags:()=>Pde,ContextFlags:()=>Boe,Debug:()=>H,DiagnosticCategory:()=>vO,Diagnostics:()=>F,DocumentHighlights:()=>JX,ElementFlags:()=>Hoe,EmitFlags:()=>_U,EmitHint:()=>fse,EmitOnly:()=>koe,EndOfLineState:()=>She,EnumKind:()=>Ioe,ExitStatus:()=>Foe,ExportKind:()=>Rfe,Extension:()=>cse,ExternalEmitHelpers:()=>hse,FileIncludeKind:()=>lU,FilePreprocessingDiagnosticsKind:()=>yoe,FileSystemEntryKind:()=>Cse,FileWatcherEventKind:()=>vse,FindAllReferences:()=>Z0,FlattenLevel:()=>Xde,FlowFlags:()=>xO,ForegroundColorEscapeSequences:()=>M1e,FunctionFlags:()=>Wle,GeneratedIdentifierFlags:()=>sU,GetLiteralTextFlags:()=>jle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>Che,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>Qde,ImportKind:()=>Ife,ImportsNotUsedAsValues:()=>use,IndentStyle:()=>bhe,IndexFlags:()=>Woe,IndexKind:()=>$oe,InferenceFlags:()=>Zoe,InferencePriority:()=>qoe,InlayHintKind:()=>vhe,InlayHints:()=>Spe,InternalEmitFlags:()=>dse,InternalSymbolName:()=>Ooe,InvalidatedProjectKind:()=>dhe,JSDocParsingMode:()=>Dse,JsDoc:()=>Yv,JsTyping:()=>o3,JsxEmit:()=>nse,JsxFlags:()=>voe,JsxReferenceKind:()=>Goe,LanguageServiceMode:()=>Ehe,LanguageVariant:()=>ose,LexicalEnvironmentFlags:()=>pse,ListFormat:()=>Ese,LogLevel:()=>goe,MemberOverrideStatus:()=>Aoe,ModifierFlags:()=>aU,ModuleDetectionKind:()=>Xoe,ModuleInstanceState:()=>Nde,ModuleKind:()=>FN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>Qle,NavigateTo:()=>n8e,NavigationBar:()=>f8e,NewLineKind:()=>rse,NodeBuilderFlags:()=>woe,NodeCheckFlags:()=>joe,NodeFactoryFlags:()=>ace,NodeFlags:()=>rU,NodeResolutionFeatures:()=>wde,ObjectFlags:()=>fU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Jle,OrganizeImports:()=>Gp,OrganizeImportsMode:()=>Dhe,OuterExpressionKinds:()=>mse,OutliningElementsCollector:()=>Lpe,OutliningSpanKind:()=>Fhe,OutputFileType:()=>Ahe,PackageJsonAutoImportPreference:()=>ghe,PackageJsonDependencyGroup:()=>phe,PatternMatchKind:()=>$X,PollingInterval:()=>DU,PollingWatchKind:()=>ise,PragmaKindFlags:()=>_se,PrivateIdentifierKind:()=>fce,ProcessLevel:()=>n1e,ProgramUpdateLevel:()=>_1e,QuotePreference:()=>Tfe,RelationComparisonResult:()=>oU,Rename:()=>Hee,ScriptElementKind:()=>whe,ScriptElementKindModifier:()=>The,ScriptKind:()=>pU,ScriptSnapshot:()=>eX,ScriptTarget:()=>ase,SemanticClassificationFormat:()=>_he,SemanticMeaning:()=>wfe,SemicolonPreference:()=>yhe,SignatureCheckMode:()=>eQ,SignatureFlags:()=>mU,SignatureHelp:()=>NK,SignatureKind:()=>Joe,SmartSelectionRange:()=>Mpe,SnippetKind:()=>EU,SortKind:()=>foe,StructureIsReused:()=>cU,SymbolAccessibility:()=>Noe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>wH,SymbolFlags:()=>dU,SymbolFormatFlags:()=>Loe,SyntaxKind:()=>uU,SyntheticSymbolKind:()=>Poe,Ternary:()=>Yoe,ThrottledCancellationToken:()=>zme,TokenClass:()=>Bhe,TokenFlags:()=>Coe,TransformFlags:()=>gU,TypeFacts:()=>QY,TypeFlags:()=>hU,TypeFormatFlags:()=>Toe,TypeMapKind:()=>Uoe,TypePredicateKind:()=>Moe,TypeReferenceSerializationKind:()=>zoe,UnionReduction:()=>Soe,UpToDateStatusType:()=>ohe,VarianceFlags:()=>Voe,Version:()=>Lp,VersionRange:()=>EO,WatchDirectoryFlags:()=>sse,WatchDirectoryKind:()=>tse,WatchFileKind:()=>ese,WatchLogLevel:()=>D1e,WatchType:()=>cd,accessPrivateIdentifier:()=>ZAe,addDisposableResourceHelper:()=>eY,addEmitFlags:()=>i_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>MYe,addObjectAllocatorPatcher:()=>Qye,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>OP,addSyntheticTrailingComment:()=>AZ,addToSeen:()=>Ip,advancedAsyncSuperHelper:()=>bV,affectsDeclarationPathOptionDeclarations:()=>mde,affectsEmitOptionDeclarations:()=>fde,allKeysStartWithDot:()=>JY,altDirectorySeparator:()=>BO,and:()=>Q$,append:()=>xi,appendIfUnique:()=>e0,arrayFrom:()=>ga,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>Eke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>mO,arrayToNumericMap:()=>noe,arraysEqual:()=>Zt,assertType:()=>gqe,assign:()=>VE,assignHelper:()=>PZ,asyncDelegator:()=>zZ,asyncGeneratorHelper:()=>MZ,asyncSuperHelper:()=>CV,asyncValues:()=>IZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>OZ,base64decode:()=>jye,base64encode:()=>Oye,binarySearch:()=>Kl,binarySearchKey:()=>va,bindSourceFile:()=>SAe,breakIntoCharacterSpans:()=>ZSe,breakIntoWordSpans:()=>YSe,buildLinkParts:()=>DSe,buildOpts:()=>MY,buildOverload:()=>Dct,bundlerModuleNameResolver:()=>gAe,canBeConvertedToAsync:()=>qfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>rV,canHaveFlowNode:()=>Bj,canHaveIllegalDecorators:()=>Hce,canHaveIllegalModifiers:()=>LFe,canHaveIllegalType:()=>dQe,canHaveIllegalTypeParameters:()=>TFe,canHaveJSDoc:()=>wj,canHaveLocals:()=>UE,canHaveModifiers:()=>Hp,canHaveSymbol:()=>Zg,canJsonReportNoInputFiles:()=>aM,canProduceDiagnostics:()=>mQ,canUsePropertyAccess:()=>zle,canWatchAffectingLocation:()=>n9e,canWatchAtTypes:()=>i9e,canWatchDirectoryOrFile:()=>IQ,cartesianProduct:()=>i2e,cast:()=>Po,chainBundle:()=>Kp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>AO,changeCompilerHostLikeToUseCache:()=>vH,changeExtension:()=>wv,changesAffectModuleResolution:()=>UU,changesAffectingProgramStructure:()=>bbe,childIsDecorated:()=>QN,classElementOrClassElementParameterIsDecorated:()=>S0e,classHasClassThisAssignment:()=>e1e,classHasDeclaredOrExplicitlyAssignedName:()=>t1e,classHasExplicitlyAssignedName:()=>dQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>YZ,classPrivateFieldInHelper:()=>XZ,classPrivateFieldSetHelper:()=>QZ,classicNameResolver:()=>yAe,classifier:()=>aBe,cleanExtendedConfigCache:()=>CQ,clear:()=>pu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>p1e,climbPastPropertyAccess:()=>iX,climbPastPropertyOrElementAccess:()=>J9e,clone:()=>uoe,cloneCompilerOptions:()=>Qhe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>jm,codefix:()=>z1,collapseTextChangeRangesAcrossMultipleVersions:()=>P2e,collectExternalModuleInfo:()=>Ude,combine:()=>vo,combinePaths:()=>cr,commentPragmas:()=>CO,commonOptionsWithBuild:()=>QV,commonPackageFolders:()=>Ule,compact:()=>Dr,compareBooleans:()=>d2,compareDataObjects:()=>gle,compareDiagnostics:()=>bP,compareDiagnosticsSkipRelatedInformation:()=>Zq,compareEmitHelpers:()=>Uke,compareNumberOfDirectorySeparators:()=>iV,comparePaths:()=>pv,comparePathsCaseInsensitive:()=>Kqe,comparePathsCaseSensitive:()=>Hqe,comparePatternKeys:()=>Sde,compareProperties:()=>QCe,compareStringsCaseInsensitive:()=>Z$,compareStringsCaseInsensitiveEslintCompatible:()=>qCe,compareStringsCaseSensitive:()=>dh,compareStringsCaseSensitiveUI:()=>pO,compareTextSpans:()=>q$,compareValues:()=>nl,compileOnSaveCommandLineOption:()=>ZV,compilerOptionsAffectDeclarationPath:()=>lke,compilerOptionsAffectEmit:()=>ske,compilerOptionsAffectSemanticDiagnostics:()=>oke,compilerOptionsDidYouMeanDiagnostics:()=>tH,compilerOptionsIndicateEsModules:()=>ufe,compose:()=>mqe,computeCommonSourceDirectoryOfFilenames:()=>P7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>TN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>FU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>O1e,computeSuggestionDiagnostics:()=>Jfe,concatenate:()=>Hi,concatenateDiagnosticMessageChains:()=>ike,consumesNodeCoreModules:()=>zX,contains:()=>kt,containsIgnoredPath:()=>TP,containsObjectRestOrSpread:()=>VV,containsParseError:()=>O8,containsPath:()=>GE,convertCompilerOptionsForTelemetry:()=>eAe,convertCompilerOptionsFromJson:()=>mXe,convertJsonOption:()=>Sk,convertToBase64:()=>Rye,convertToJson:()=>$V,convertToObject:()=>ZFe,convertToOptionsWithAbsolutePaths:()=>ode,convertToRelativePath:()=>wN,convertToTSConfig:()=>eXe,convertTypeAcquisitionFromJson:()=>pXe,copyComments:()=>Rk,copyEntries:()=>qU,copyLeadingComments:()=>cw,copyProperties:()=>roe,copyTrailingAsLeadingComments:()=>ZH,copyTrailingComments:()=>OM,couldStartTrivia:()=>y2e,countWhere:()=>ui,createAbstractBuilder:()=>ktt,createAccessorPropertyBackingField:()=>Wce,createAccessorPropertyGetRedirector:()=>jFe,createAccessorPropertySetRedirector:()=>VFe,createBaseNodeFactory:()=>Lke,createBinaryExpressionTrampoline:()=>kY,createBindingHelper:()=>xB,createBuildInfo:()=>gH,createBuilderProgram:()=>j1e,createBuilderProgramUsingProgramBuildInfo:()=>e9e,createBuilderStatusReporter:()=>E9e,createCacheWithRedirects:()=>Cde,createCacheableExportInfoMap:()=>Pfe,createCachedDirectoryStructureHost:()=>xQ,createClassNamedEvaluationHelperBlock:()=>t7e,createClassThisAssignmentBlock:()=>XAe,createClassifier:()=>Hit,createCommentDirectivesMap:()=>Bbe,createCompilerDiagnostic:()=>cc,createCompilerDiagnosticForInvalidCustomType:()=>GFe,createCompilerDiagnosticFromMessageChain:()=>qq,createCompilerHost:()=>M7e,createCompilerHostFromProgramHost:()=>nhe,createCompilerHostWorker:()=>C1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>b0e,createDiagnosticForNode:()=>Su,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>sj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>K4,createDiagnosticForRange:()=>Vbe,createDiagnosticMessageChainFromDiagnostic:()=>jbe,createDiagnosticReporter:()=>kH,createDocumentPositionMapper:()=>WAe,createDocumentRegistry:()=>OSe,createDocumentRegistryInternal:()=>Vfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>G1e,createEmitHelperFactory:()=>$ke,createEmptyExports:()=>NV,createExpressionForJsxElement:()=>yFe,createExpressionForJsxFragment:()=>kFe,createExpressionForObjectLiteralElementLike:()=>FFe,createExpressionForPropertyName:()=>zce,createExpressionFromEntityName:()=>PV,createExternalHelpersImportDeclarationIfNeeded:()=>Oce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>nq,createForOfBindingStatement:()=>Mce,createGetCanonicalFileName:()=>L1,createGetSourceFile:()=>x1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>k7e,createGetSymbolWalker:()=>BAe,createIncrementalCompilerHost:()=>rhe,createIncrementalProgram:()=>p9e,createInputFiles:()=>IYe,createInputFilesWithFilePaths:()=>uce,createInputFilesWithFileTexts:()=>rce,createJsxFactoryExpression:()=>Pce,createLanguageService:()=>eBe,createLanguageServiceSourceFile:()=>Eee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>dM,createModuleNotFoundChain:()=>o0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>A1e,createModuleResolutionLoaderUsingGlobalCache:()=>o9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>wm,createNodeConverters:()=>Pke,createNodeFactory:()=>mV,createOptionNameMap:()=>SY,createOverload:()=>Gpe,createPackageJsonImportFilter:()=>HM,createPackageJsonInfo:()=>Cfe,createParenthesizerRules:()=>Nke,createPatternMatcher:()=>WSe,createPrependNodes:()=>N1e,createPrinter:()=>Gv,createPrinterWithDefaults:()=>f1e,createPrinterWithRemoveComments:()=>X2,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>m1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>EH,createProgram:()=>SQ,createProgramHost:()=>uhe,createPropertyNameNodeForIdentifierOrLiteral:()=>mZ,createQueue:()=>U$,createRange:()=>s4,createRedirectedBuilderProgram:()=>H1e,createResolutionCache:()=>$1e,createRuntimeTypeSerializer:()=>a7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>ytt,createSet:()=>aoe,createSolutionBuilder:()=>Vtt,createSolutionBuilderHost:()=>Ott,createSolutionBuilderWithWatch:()=>Htt,createSolutionBuilderWithWatchHost:()=>jtt,createSortedArray:()=>xt,createSourceFile:()=>KV,createSourceMapGenerator:()=>jAe,createSourceMapSource:()=>RYe,createSuperAccessVariableStatement:()=>fQ,createSymbolTable:()=>Vo,createSymlinkCache:()=>ble,createSystemWatchFunctions:()=>E2e,createTextChange:()=>VH,createTextChangeFromStartLength:()=>gX,createTextChangeRange:()=>OO,createTextRangeFromNode:()=>tfe,createTextRangeFromSpan:()=>pX,createTextSpan:()=>d1,createTextSpanFromBounds:()=>Vc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>efe,createTextWriter:()=>Vj,createTokenRange:()=>fle,createTypeChecker:()=>PAe,createTypeReferenceDirectiveResolutionCache:()=>HY,createTypeReferenceResolutionLoader:()=>kQ,createUnparsedSourceFile:()=>nce,createWatchCompilerHost:()=>ztt,createWatchCompilerHostOfConfigFile:()=>h9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>f9e,createWatchFactory:()=>ihe,createWatchHost:()=>the,createWatchProgram:()=>Itt,createWatchStatusReporter:()=>s9e,createWriteFileMeasuringIO:()=>v1e,declarationNameToString:()=>b0,decodeMappings:()=>Gde,decodedTextSpanIntersectsWith:()=>RO,decorateHelper:()=>BZ,deduplicate:()=>ri,defaultIncludeSpec:()=>RY,defaultInitCompilerOptions:()=>zY,defaultMaximumTruncationLength:()=>lV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>rl,displayPart:()=>yf,displayPartsToString:()=>EK,disposeEmitNodes:()=>oce,disposeResourcesHelper:()=>tY,documentSpansEqual:()=>bX,dumpTracingLegend:()=>m2e,elementAt:()=>qD,elideNodes:()=>OFe,emitComments:()=>Aye,emitDetachedComments:()=>Sye,emitFiles:()=>EQ,emitFilesAndReportErrors:()=>VQ,emitFilesAndReportErrorsAndGetExitStatus:()=>d9e,emitModuleKindIsNonNodeESM:()=>Yq,emitNewLineBeforeLeadingCommentOfPosition:()=>Fye,emitNewLineBeforeLeadingComments:()=>yye,emitNewLineBeforeLeadingCommentsOfPosition:()=>kye,emitSkippedWithNoDiagnostics:()=>PQ,emitUsingBuildInfo:()=>w7e,emptyArray:()=>_t,emptyFileSystemEntries:()=>bZ,emptyMap:()=>iU,emptyOptions:()=>d4,emptySet:()=>u2e,endsWith:()=>sc,ensurePathIsNonModuleName:()=>h2,ensureScriptKind:()=>oZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>eU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>LZ,escapeJsxAttributeString:()=>X0e,escapeLeadingUnderscores:()=>Al,escapeNonAsciiString:()=>jj,escapeSnippetText:()=>O2,escapeString:()=>Av,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>DY,explainFiles:()=>Z1e,explainIfFileIsRedirectAndImpliedFormat:()=>Y1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>ZZ,expressionResultIsUnused:()=>Dke,extend:()=>$$,extendsHelper:()=>jZ,extensionFromPath:()=>y7,extensionIsTS:()=>cZ,extensionsNotSupportingExtensionlessResolution:()=>fV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>jc,fileIncludeReasonToDiagnostics:()=>ehe,fileShouldUseJavaScriptRequire:()=>Bfe,filter:()=>ti,filterMutate:()=>Uu,filterSemanticDiagnostics:()=>BQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>coe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>FY,findConfigFile:()=>N7e,findContainingList:()=>oX,findDiagnosticForNode:()=>TSe,findFirstNonJsxWhitespaceToken:()=>Y9e,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>Z9e,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>ib,findPackageJson:()=>BSe,findPackageJsons:()=>vfe,findPrecedingMatchingToken:()=>fX,findPrecedingToken:()=>td,findSuperStatementIndexPath:()=>sQ,findTokenOnLeftOfPosition:()=>cX,findUseStrictPrologue:()=>Rce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>Oa,firstOrOnly:()=>Ffe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Yfe,flatMap:()=>ju,flatMapIterator:()=>pa,flatMapToMutable:()=>Tr,flatten:()=>Va,flattenCommaList:()=>HFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>Q2,flattenDiagnosticMessageText:()=>lE,forEach:()=>L,forEachAncestor:()=>ybe,forEachAncestorDirectory:()=>Ug,forEachChild:()=>ao,forEachChildRecursively:()=>uM,forEachEmittedFile:()=>d1e,forEachEnclosingBlockScopeContainer:()=>Ibe,forEachEntry:()=>h1,forEachExternalModuleToImportFrom:()=>zfe,forEachImportClauseDeclaration:()=>Fq,forEachKey:()=>U_,forEachLeadingCommentRange:()=>NO,forEachNameInAccessChainWalkingLeft:()=>Zye,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>S1e,forEachReturnStatement:()=>y2,forEachRight:()=>O,forEachTrailingCommentRange:()=>PO,forEachTsConfigPropArray:()=>hj,forEachUnique:()=>lfe,forEachYieldExpression:()=>Kbe,forSomeAncestorDirectory:()=>rYe,formatColorAndReset:()=>eb,formatDiagnostic:()=>b1e,formatDiagnostics:()=>att,formatDiagnosticsWithColorAndContext:()=>z7e,formatGeneratedName:()=>jv,formatGeneratedNamePart:()=>RB,formatLocation:()=>y1e,formatMessage:()=>Dle,formatStringFromArgs:()=>e3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Hle,fullTripleSlashReferencePathRegEx:()=>Vle,generateDjb2Hash:()=>AN,generateTSConfig:()=>rXe,generatorHelper:()=>$Z,getAdjustedReferenceLocation:()=>Jhe,getAdjustedRenameLocation:()=>lX,getAliasDeclarationFromName:()=>H0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Zde,getAllDecoratorsOfClassElement:()=>cQ,getAllJSDocTags:()=>Vse,getAllJSDocTagsOfKind:()=>_Ze,getAllKeys:()=>Bm,getAllProjectOutputs:()=>gQ,getAllSuperTypeNodes:()=>uP,getAllUnscopedEmitHelpers:()=>hce,getAllowJSCompilerOption:()=>Bv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Fv,getAnyExtensionFromPath:()=>BN,getAreDeclarationMapsEnabled:()=>Xq,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>zse,getAssignedNameOfIdentifier:()=>_M,getAssignmentDeclarationKind:()=>Xl,getAssignmentDeclarationPropertyAccessKind:()=>yj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>VY,getBaseFileName:()=>Ac,getBinaryOperatorPrecedence:()=>Oj,getBuildInfo:()=>_Q,getBuildInfoFileVersionMap:()=>V1e,getBuildInfoText:()=>B7e,getBuildOrderFromAnyBuildOrder:()=>JQ,getBuilderCreationParameters:()=>MQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>B2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>xP,getCombinedModifierFlags:()=>m2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>Pse,getCommentRange:()=>nE,getCommonSourceDirectory:()=>yM,getCommonSourceDirectoryOfConfig:()=>kM,getCompilerOptionValue:()=>tZ,getCompilerOptionsDiffValue:()=>nXe,getConditions:()=>$2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>jke,getContainerFlags:()=>Lde,getContainerNode:()=>Mk,getContainingClass:()=>Yd,getContainingClassExcludingClassDecorators:()=>hq,getContainingClassStaticBlock:()=>Qbe,getContainingFunction:()=>Nm,getContainingFunctionDeclaration:()=>Ybe,getContainingFunctionOrClassStaticBlock:()=>dq,getContainingNodeArray:()=>xke,getContainingObjectLiteralElement:()=>_K,getContextualTypeFromParent:()=>SX,getContextualTypeFromParentOrAncestorTypeNode:()=>sX,getCurrentTime:()=>AH,getDeclarationDiagnostics:()=>F7e,getDeclarationEmitExtensionForPath:()=>Kj,getDeclarationEmitOutputFilePath:()=>Dye,getDeclarationEmitOutputFilePathWorker:()=>Mq,getDeclarationFromName:()=>nP,getDeclarationModifierFlagsFromSymbol:()=>l4,getDeclarationOfKind:()=>Sl,getDeclarationsOfKind:()=>vbe,getDeclaredExpandoInitializer:()=>xj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>gee,getDefaultExportInfoWorker:()=>GX,getDefaultFormatCodeSettings:()=>XQ,getDefaultLibFileName:()=>zO,getDefaultLibFilePath:()=>tBe,getDefaultLikeExportInfo:()=>WX,getDiagnosticText:()=>$Qe,getDiagnosticsWithinSpan:()=>LSe,getDirectoryPath:()=>lr,getDirectoryToWatchFailedLookupLocation:()=>J1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>r9e,getDocumentPositionMapper:()=>Gfe,getESModuleInterop:()=>e_,getEditsForFileRename:()=>VSe,getEffectiveBaseTypeNode:()=>Qg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Aq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>Dj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Eh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Lye,getEffectiveModifierFlagsNoCache:()=>Nye,getEffectiveReturnTypeNode:()=>U4,getEffectiveSetAccessorTypeAnnotationNode:()=>bye,getEffectiveTypeAnnotationNode:()=>f1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>cM,getElementOrPropertyAccessArgumentExpressionOrName:()=>kq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>c4,getEmitFlags:()=>bs,getEmitHelpers:()=>SZ,getEmitModuleDetectionKind:()=>nke,getEmitModuleKind:()=>m1,getEmitModuleResolutionKind:()=>p1,getEmitScriptTarget:()=>Os,getEmitStandardClassFields:()=>ake,getEnclosingBlockScopeContainer:()=>YE,getEnclosingContainer:()=>C0e,getEncodedSemanticClassifications:()=>Ofe,getEncodedSyntacticClassifications:()=>jfe,getEndLinePosition:()=>uj,getEntityNameFromTypeNode:()=>pj,getEntrypointsFromPackageJsonInfo:()=>kde,getErrorCountForSummary:()=>OQ,getErrorSpanForNode:()=>C2,getErrorSummaryText:()=>l9e,getEscapedTextOfIdentifierOrLiteral:()=>oP,getEscapedTextOfJsxAttributeName:()=>MP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>yv,getExportAssignmentExpression:()=>K0e,getExportInfoMap:()=>tK,getExportNeedsImportStarHelper:()=>GAe,getExpressionAssociativity:()=>q0e,getExpressionPrecedence:()=>lP,getExternalHelpersModuleName:()=>zV,getExternalModuleImportEqualsDeclarationExpression:()=>XN,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>Eye,getExternalModuleNameFromPath:()=>tle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>w0e,getFallbackOptions:()=>xH,getFileEmitOutput:()=>K7e,getFileMatcherPatterns:()=>aZ,getFileNamesFromConfigSpecs:()=>oM,getFileWatcherEventKind:()=>xse,getFilesInErrorForSummary:()=>jQ,getFirstConstructorWithBody:()=>X_,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>bSe,getFirstProjectOutput:()=>h1e,getFixableErrorSpanExpression:()=>yfe,getFormatCodeSettingsForWriting:()=>jX,getFullWidth:()=>ij,getFunctionFlags:()=>kd,getHeritageClause:()=>Mj,getHostSignatureFromJSDoc:()=>kv,getIdentifierAutoGenerate:()=>KYe,getIdentifierGeneratedImportReference:()=>Jke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>bH,getImpliedNodeFormatForFileWorker:()=>T1e,getImportNeedsImportDefaultHelper:()=>$de,getImportNeedsImportStarHelper:()=>aQ,getIndentSize:()=>oB,getIndentString:()=>Nq,getInferredLibraryNameResolveFrom:()=>AQ,getInitializedVariables:()=>DP,getInitializerOfBinaryExpression:()=>M0e,getInitializerOfBindingOrAssignmentElement:()=>RV,getInterfaceBaseTypeNodes:()=>rP,getInternalEmitFlags:()=>Pp,getInvokedExpression:()=>pq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>K2e,getJSDocClassTag:()=>Ise,getJSDocCommentRanges:()=>k0e,getJSDocCommentsAndTags:()=>I0e,getJSDocDeprecatedTag:()=>Rse,getJSDocDeprecatedTagNoCache:()=>Z2e,getJSDocEnumTag:()=>Ose,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>W2e,getJSDocOverrideTagNoCache:()=>q2e,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>O2e,getJSDocPrivateTag:()=>fZe,getJSDocPrivateTagNoCache:()=>J2e,getJSDocProtectedTag:()=>mZe,getJSDocProtectedTagNoCache:()=>$2e,getJSDocPublicTag:()=>hZe,getJSDocPublicTagNoCache:()=>G2e,getJSDocReadonlyTag:()=>pZe,getJSDocReadonlyTagNoCache:()=>U2e,getJSDocReturnTag:()=>Y2e,getJSDocReturnType:()=>VO,getJSDocRoot:()=>iP,getJSDocSatisfiesExpressionType:()=>Rle,getJSDocSatisfiesTag:()=>jse,getJSDocTags:()=>Cv,getJSDocTagsNoCache:()=>EZe,getJSDocTemplateTag:()=>gZe,getJSDocThisTag:()=>LU,getJSDocType:()=>vv,getJSDocTypeAliasName:()=>Vce,getJSDocTypeAssertionType:()=>vY,getJSDocTypeParameterDeclarations:()=>Oq,getJSDocTypeParameterTags:()=>j2e,getJSDocTypeParameterTagsNoCache:()=>V2e,getJSDocTypeTag:()=>xv,getJSXImplicitImportBase:()=>nZ,getJSXRuntimeImport:()=>uZ,getJSXTransformEnabled:()=>iZ,getKeyForCompilerOptions:()=>vde,getLanguageVariant:()=>Yj,getLastChild:()=>Ele,getLeadingCommentRanges:()=>W_,getLeadingCommentRangesOfNode:()=>y0e,getLeftmostAccessExpression:()=>CP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>B1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Kde,getLineOfLocalPosition:()=>dP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>tp,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Gye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Wye,getLinesBetweenPositions:()=>LN,getLinesBetweenRangeEndAndRangeStart:()=>mle,getLinesBetweenRangeEndPositions:()=>nYe,getLiteralText:()=>wbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>FH,getMappedContextSpan:()=>cfe,getMappedDocumentSpan:()=>yX,getMappedLocation:()=>zM,getMatchedFileSpec:()=>Q1e,getMatchedIncludeSpec:()=>X1e,getMeaningFromDeclaration:()=>TH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Wbe,getModeForFileReference:()=>yQ,getModeForResolutionAtIndex:()=>k1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>p2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>TQ,getModuleSpecifierEndingPreference:()=>Sle,getModuleSpecifierResolverHost:()=>rfe,getNameForExportedSymbol:()=>IX,getNameFromIndexInfo:()=>Rbe,getNameFromPropertyName:()=>WH,getNameOfAccessExpression:()=>Uye,getNameOfCompilerOptionValue:()=>rde,getNameOfDeclaration:()=>Za,getNameOfExpando:()=>N0e,getNameOfJSDocTypedef:()=>R2e,getNameOrArgument:()=>bj,getNameTable:()=>Tme,getNamesForExportedSymbol:()=>NSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>eK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>eye,getNextJSDocCommentLocation:()=>R0e,getNodeForGeneratedName:()=>jV,getNodeId:()=>$s,getNodeKind:()=>tb,getNodeModifiers:()=>NM,getNodeModulePathParts:()=>pZ,getNonAssignedNameOfDeclaration:()=>TU,getNonAssignmentOperatorForCompoundAssignment:()=>pM,getNonAugmentationDeclaration:()=>g0e,getNonDecoratorTokenPosOfNode:()=>d0e,getNormalizedAbsolutePath:()=>$a,getNormalizedAbsolutePathWithoutRoot:()=>Fse,getNormalizedPathComponents:()=>FO,getObjectFlags:()=>Gu,getOperator:()=>Y0e,getOperatorAssociativity:()=>Z0e,getOperatorPrecedence:()=>Rj,getOptionFromName:()=>ede,getOptionsForLibraryResolution:()=>bde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>P1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>wFe,getOrUpdate:()=>W0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>M1,getOriginalSourceFile:()=>$Ze,getOutputDeclarationFileName:()=>bM,getOutputExtension:()=>pQ,getOutputFileNames:()=>ntt,getOutputPathsFor:()=>CM,getOutputPathsForBundle:()=>vM,getOwnEmitOutputFilePath:()=>_ye,getOwnKeys:()=>Ns,getOwnValues:()=>U1,getPackageJsonInfo:()=>U2,getPackageJsonTypesVersionsPaths:()=>jY,getPackageJsonsVisibleToFile:()=>wSe,getPackageNameFromTypesPackageName:()=>hM,getPackageScopeForPath:()=>aH,getParameterSymbolFromJSDoc:()=>Tj,getParameterTypeNode:()=>gYe,getParentNodeInSpan:()=>JH,getParseTreeNode:()=>Ua,getParsedCommandLineOfConfigFile:()=>GV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>Sse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Kfe,getPathsBasePath:()=>zq,getPatternFromSpec:()=>Fle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>TO,getPossibleGenericSignatures:()=>Uhe,getPossibleOriginalInputExtensionForExtension:()=>xye,getPossibleTypeArgumentsInfo:()=>qhe,getPreEmitDiagnostics:()=>rtt,getPrecedingNonSpaceCharacterPosition:()=>FX,getPrivateIdentifier:()=>Yde,getProperties:()=>qde,getProperty:()=>uo,getPropertyArrayElementValue:()=>Zbe,getPropertyAssignmentAliasLikeExpression:()=>fye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>GZe,getPropertyNameFromType:()=>Q4,getPropertyNameOfBindingOrAssignmentElement:()=>jce,getPropertySymbolFromBindingElement:()=>CX,getPropertySymbolsFromContextualType:()=>_ee,getQuoteFromPreference:()=>ofe,getQuotePreference:()=>Hm,getRangesWhere:()=>eu,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>FM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>yP,getRegularExpressionsForWildcards:()=>rZ,getRelativePathFromDirectory:()=>JE,getRelativePathFromFile:()=>SO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>qH,getReplacementSpanForContextToken:()=>Xhe,getResolutionDiagnostic:()=>P1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>M2,getResolvePackageJsonExports:()=>vle,getResolvePackageJsonImports:()=>cYe,getResolvedExternalModuleName:()=>Pq,getRestIndicatorOfBindingOrAssignmentElement:()=>bY,getRestParameterElementType:()=>F0e,getRightMostAssignedExpression:()=>vj,getRootDeclaration:()=>XE,getRootDirectoryOfResolutionCache:()=>a9e,getRootLength:()=>WE,getRootPathSplitLength:()=>Btt,getScriptKind:()=>pfe,getScriptKindFromFileName:()=>sZ,getScriptTargetFeatures:()=>xZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>wye,getSemanticClassifications:()=>ISe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>vye,getSetAccessorValueParameter:()=>hP,getSetExternalModuleIndicator:()=>Qj,getShebang:()=>SU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>z0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>sce,getSourceFileOfModule:()=>YU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Iq,getSourceFilePathInNewDirWorker:()=>Rq,getSourceFileVersionAsHashFromText:()=>HQ,getSourceFilesToEmit:()=>ile,getSourceMapRange:()=>Lv,getSourceMapper:()=>XSe,getSourceTextOfNodeFromSourceFile:()=>x2,getSpanOfTokenAtPosition:()=>QE,getSpellingSuggestion:()=>bN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>_P,getStartsOnNewLine:()=>RP,getStaticPropertiesAndClassStaticBlock:()=>lQ,getStrictOptionValue:()=>Z4,getStringComparer:()=>CN,getSuperCallFromStatement:()=>oQ,getSuperContainer:()=>fj,getSupportedCodeFixes:()=>Bme,getSupportedExtensions:()=>kP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>tV,getSwitchedType:()=>Dfe,getSymbolId:()=>Zo,getSymbolNameForPrivateIdentifier:()=>zj,getSymbolTarget:()=>vSe,getSyntacticClassifications:()=>RSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>ale,getSynthesizedDeepClone:()=>ll,getSynthesizedDeepCloneWithReplacements:()=>UH,getSynthesizedDeepClones:()=>nb,getSynthesizedDeepClonesWithReplacements:()=>gfe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>DV,getTargetLabel:()=>nX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>rH,getTextOfConstantValue:()=>Tbe,getTextOfIdentifierOrLiteral:()=>J4,getTextOfJSDocComment:()=>KO,getTextOfJsxAttributeName:()=>sV,getTextOfJsxNamespacedName:()=>zP,getTextOfNode:()=>Hc,getTextOfNodeFromSourceText:()=>JN,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>T2,getTokenAtPosition:()=>Ca,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>VYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>LM,getTrailingCommentRanges:()=>gv,getTrailingSemicolonDeferringWriter:()=>ele,getTransformFlagsSubtreeExclusions:()=>Mke,getTransformers:()=>l1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>ZN,getTsConfigPropArrayElementValue:()=>cq,getTypeAnnotationNode:()=>Cye,getTypeArgumentOrTypeParameterList:()=>rSe,getTypeKeywordOfTypeOnlyImport:()=>sfe,getTypeNode:()=>Wke,getTypeNodeIfAccessible:()=>VM,getTypeParameterFromJsDoc:()=>oye,getTypeParameterOwner:()=>oZe,getTypesPackageName:()=>$Y,getUILocale:()=>ZCe,getUniqueName:()=>Ok,getUniqueSymbolId:()=>CSe,getUseDefineForClassFields:()=>eV,getWatchErrorSummaryDiagnosticMessage:()=>U1e,getWatchFactory:()=>E1e,group:()=>vN,groupBy:()=>JCe,guessIndentation:()=>Dbe,handleNoEmitOptions:()=>L1e,hasAbstractModifier:()=>P2,hasAccessorModifier:()=>eE,hasAmbientModifier:()=>rle,hasChangesInResolutions:()=>s0e,hasChildOfKind:()=>RH,hasContextSensitiveParameters:()=>fZ,hasDecorators:()=>o4,hasDocComment:()=>nSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>jq,hasEffectiveReadonlyModifier:()=>fP,hasExtension:()=>t7,hasIndexSignature:()=>_fe,hasInitializer:()=>Nx,hasInvalidEscape:()=>Q0e,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>H2e,hasJSFileExtension:()=>z2,hasJsonModuleEmitEnabled:()=>Qq,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Vq,hasPossibleExternalModuleReference:()=>zbe,hasProperty:()=>gu,hasPropertyAccessExpressionWithName:()=>NH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>BFe,hasResolutionModeOverride:()=>kke,hasRestParameter:()=>u0e,hasScopeMarker:()=>dbe,hasStaticModifier:()=>Kc,hasSyntacticModifier:()=>Yu,hasSyntacticModifiers:()=>Bye,hasTSFileExtension:()=>mk,hasTabstop:()=>Cke,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>JU,hasTypeArguments:()=>jZe,hasZeroOrOneAsteriskCharacter:()=>Cle,helperString:()=>dce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Hj,idText:()=>fu,identifierIsThisKeyword:()=>ule,identifierToKeywordKind:()=>Dv,identity:()=>il,identitySourceMapConsumer:()=>rQ,ignoreSourceNewlines:()=>cce,ignoredPaths:()=>kO,importDefaultHelper:()=>qZ,importFromModuleSpecifier:()=>tP,importNameElisionDisabled:()=>xle,importStarHelper:()=>vV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>$r,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>hQ,injectClassThisAssignmentIfMissing:()=>e7e,insertImports:()=>MM,insertLeadingStatement:()=>oQe,insertSorted:()=>Tt,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>wZe,insertStatementsAfterCustomPrologue:()=>l0e,insertStatementsAfterStandardPrologue:()=>ZE,intersperse:()=>_e,intrinsicTagNameToString:()=>Ole,introducesArgumentsExoticObject:()=>Ube,inverseJsxOptionMap:()=>sM,isAbstractConstructorSymbol:()=>Jye,isAbstractModifier:()=>tFe,isAccessExpression:()=>I0,isAccessibilityModifier:()=>Yhe,isAccessor:()=>wx,isAccessorModifier:()=>nFe,isAliasSymbolDeclaration:()=>HZe,isAliasableExpression:()=>Pj,isAmbientModule:()=>N1,isAmbientPropertyDeclaration:()=>_0e,isAnonymousFunctionDefinition:()=>sP,isAnyDirectorySeparator:()=>bse,isAnyImportOrBareOrAccessedRequire:()=>Mbe,isAnyImportOrReExport:()=>aj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>pYe,isApplicableVersionedTypesKey:()=>sH,isArgumentExpressionOfElementAccess:()=>jhe,isArray:()=>Ha,isArrayBindingElement:()=>jU,isArrayBindingOrAssignmentElement:()=>ZO,isArrayBindingOrAssignmentPattern:()=>Qse,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>Dh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>oY,isArrowFunction:()=>q0,isAsExpression:()=>AV,isAssertClause:()=>dFe,isAssertEntry:()=>XYe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>Xke,isAssignmentDeclaration:()=>eP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>KN,isAssignmentTarget:()=>Q_,isAsteriskToken:()=>yV,isAsyncFunction:()=>aP,isAsyncModifier:()=>VP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>_ce,isBigIntLiteral:()=>iY,isBinaryExpression:()=>Xn,isBinaryOperatorToken:()=>RFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>A2,isBindableStaticElementAccessExpression:()=>yq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>js,isBindingElementOfBareOrAccessedRequire:()=>nye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>rbe,isBindingOrAssignmentPattern:()=>UO,isBindingPattern:()=>So,isBlock:()=>po,isBlockOrCatchScoped:()=>h0e,isBlockScope:()=>D0e,isBlockScopedContainerTopLevel:()=>Pbe,isBooleanLiteral:()=>HN,isBreakOrContinueStatement:()=>ON,isBreakStatement:()=>ZYe,isBuildInfoFile:()=>S7e,isBuilderProgram:()=>c9e,isBundle:()=>kce,isBundleFileTextLike:()=>qye,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>Phe,isCallLikeExpression:()=>D2,isCallLikeOrFunctionLikeExpression:()=>Xse,isCallOrNewExpression:()=>$E,isCallOrNewExpressionTarget:()=>Mhe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>jP,isCaseBlock:()=>ZP,isCaseClause:()=>BB,isCaseKeyword:()=>uFe,isCaseOrDefaultClause:()=>WU,isCatchClause:()=>G2,isCatchClauseVariableDeclaration:()=>vke,isCatchClauseVariableDeclarationOrBindingElement:()=>f0e,isCheckJsEnabledForFile:()=>uV,isChildOfNodeWithKind:()=>TZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Wc,isClassElement:()=>Zd,isClassExpression:()=>Xd,isClassInstanceProperty:()=>ibe,isClassLike:()=>mr,isClassMemberModifier:()=>qse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>OU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>EM,isCollapsedRange:()=>iYe,isColonToken:()=>Yke,isCommaExpression:()=>MV,isCommaListExpression:()=>UP,isCommaSequence:()=>eM,isCommaToken:()=>Zke,isComment:()=>mX,isCommonJsExportPropertyAssignment:()=>sq,isCommonJsExportedExpression:()=>Jbe,isCompoundAssignment:()=>mM,isComputedNonLiteralName:()=>oj,isComputedPropertyName:()=>Ps,isConciseBody:()=>HU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>FV,isConstructorDeclaration:()=>hc,isConstructorTypeNode:()=>WP,isContextualKeyword:()=>Bq,isContinueStatement:()=>qYe,isCustomPrologue:()=>dj,isDebuggerStatement:()=>YYe,isDeclaration:()=>Q1,isDeclarationBindingElement:()=>$O,isDeclarationFileName:()=>e1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>ple,isDeclarationReadonly:()=>uq,isDeclarationStatement:()=>pbe,isDeclarationWithTypeParameterChildren:()=>v0e,isDeclarationWithTypeParameters:()=>x0e,isDecorator:()=>g1,isDecoratorTarget:()=>W9e,isDefaultClause:()=>TV,isDefaultImport:()=>c7,isDefaultModifier:()=>rY,isDefaultedExpandoInitializer:()=>uye,isDeleteExpression:()=>oFe,isDeleteTarget:()=>V0e,isDeprecatedDeclaration:()=>RX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>bfe,isDiskPathRoot:()=>yse,isDoStatement:()=>$Ye,isDocumentRegistryEntry:()=>iK,isDotDotDotToken:()=>nY,isDottedName:()=>pP,isDynamicName:()=>Lq,isESSymbolIdentifier:()=>JZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Nbe,isEffectiveStrictModeSourceFile:()=>E0e,isElementAccessChain:()=>Hse,isElementAccessExpression:()=>U0,isEmittedFileOfProgram:()=>L7e,isEmptyArrayLiteral:()=>Iye,isEmptyBindingElement:()=>z2e,isEmptyBindingPattern:()=>M2e,isEmptyObjectLiteral:()=>dle,isEmptyStatement:()=>Cce,isEmptyStringLiteral:()=>B0e,isEntityName:()=>sm,isEntityNameExpression:()=>ec,isEnumConst:()=>b2,isEnumDeclaration:()=>Iv,isEnumMember:()=>J2,isEqualityOperatorKind:()=>BX,isEqualsGreaterThanToken:()=>Qke,isExclamationToken:()=>kV,isExcludedFile:()=>QFe,isExclusivelyTypeOnlyImportOrExport:()=>F1e,isExpandoPropertyDeclaration:()=>EZ,isExportAssignment:()=>tc,isExportDeclaration:()=>Gc,isExportModifier:()=>L7,isExportName:()=>xY,isExportNamespaceAsDefaultDeclaration:()=>eq,isExportOrDefaultModifier:()=>OV,isExportSpecifier:()=>eh,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>q2,isExpression:()=>Wt,isExpressionNode:()=>Z_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>U9e,isExpressionOfOptionalChainRoot:()=>MU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>Jj,isExternalModule:()=>wc,isExternalModuleAugmentation:()=>v2,isExternalModuleImportEqualsDeclaration:()=>bv,isExternalModuleIndicator:()=>YO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>r_,isExternalModuleSymbol:()=>HH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>JO,isFileLevelUniqueName:()=>QU,isFileProbablyExternalModule:()=>HV,isFirstDeclarationOfSymbolParameter:()=>dfe,isFixablePromiseHandler:()=>Ufe,isForInOrOfStatement:()=>M8,isForInStatement:()=>hY,isForInitializer:()=>a4,isForOfStatement:()=>SV,isForStatement:()=>vk,isFunctionBlock:()=>k2,isFunctionBody:()=>t0e,isFunctionDeclaration:()=>ed,isFunctionExpression:()=>A0,isFunctionExpressionOrArrowFunction:()=>R2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>$0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>ube,isFunctionOrModuleBlock:()=>Zse,isFunctionSymbol:()=>aye,isFunctionTypeNode:()=>u3,isFutureReservedKeyword:()=>KZe,isGeneratedIdentifier:()=>al,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>zm,isGetOrSetAccessorDeclaration:()=>NU,isGlobalDeclaration:()=>Iit,isGlobalScopeAugmentation:()=>Yg,isGrammarError:()=>Sbe,isHeritageClause:()=>mm,isHoistedFunction:()=>aq,isHoistedVariableStatement:()=>oq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>wq,isIdentifierName:()=>hye,isIdentifierOrThisTypeNode:()=>PFe,isIdentifierPart:()=>Ev,isIdentifierStart:()=>G_,isIdentifierText:()=>Lm,isIdentifierTypePredicate:()=>qbe,isIdentifierTypeReference:()=>gke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>DH,isImplicitGlob:()=>kle,isImportAttribute:()=>hFe,isImportAttributeName:()=>tbe,isImportAttributes:()=>fY,isImportCall:()=>dm,isImportClause:()=>n_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>E1,isImportKeyword:()=>KP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>xSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>QYe,isImportTypeNode:()=>nD,isImportableFile:()=>Mfe,isInComment:()=>m5,isInCompoundLikeAssignment:()=>O0e,isInExpressionContext:()=>Eq,isInJSDoc:()=>Ej,isInJSFile:()=>Qn,isInJSXText:()=>tSe,isInJsonFile:()=>Dq,isInNonReferenceComment:()=>sSe,isInReferenceComment:()=>oSe,isInRightSideOfInternalImportEqualsDeclaration:()=>tX,isInString:()=>zk,isInTemplateString:()=>$he,isInTopLevelContext:()=>fq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>Xj,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>LP,isInitializedProperty:()=>fH,isInitializedVariable:()=>Zj,isInsideJsxElement:()=>hX,isInsideJsxElementOrAttribute:()=>eSe,isInsideNodeModules:()=>XH,isInsideTemplateLiteral:()=>jH,isInstanceOfExpression:()=>Hq,isInstantiatedModule:()=>Rde,isInterfaceDeclaration:()=>xh,isInternalDeclaration:()=>o1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Ice,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Vp,isJSDocAllType:()=>EFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>nQe,isJSDocCallbackTag:()=>Ace,isJSDocClassTag:()=>DFe,isJSDocCommentContainingNode:()=>GU,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Lce,isJSDocEnumTag:()=>LV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Nce,isJSDocIndexSignature:()=>xq,isJSDocLikeText:()=>Jce,isJSDocLink:()=>pFe,isJSDocLinkCode:()=>gFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>tQe,isJSDocMemberName:()=>Rv,isJSDocNameReference:()=>QP,isJSDocNamepathType:()=>iQe,isJSDocNamespaceBody:()=>kZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>mY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>oV,isJSDocOptionalType:()=>Fce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>gY,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Bce,isJSDocPropertyLikeTag:()=>WO,isJSDocPropertyTag:()=>vFe,isJSDocProtectedTag:()=>wce,isJSDocPublicTag:()=>Sce,isJSDocReadonlyTag:()=>Tce,isJSDocReturnTag:()=>EY,isJSDocSatisfiesExpression:()=>Ile,isJSDocSatisfiesTag:()=>_Y,isJSDocSeeTag:()=>uQe,isJSDocSignature:()=>Ov,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>xFe,isJSDocThrowsTag:()=>aQe,isJSDocTypeAlias:()=>G4,isJSDocTypeAssertion:()=>tM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>XP,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>rQe,isJSDocUnknownType:()=>_Fe,isJSDocVariadicType:()=>pY,isJSXTagName:()=>$8,isJsonEqual:()=>dZ,isJsonSourceFile:()=>W4,isJsxAttribute:()=>oE,isJsxAttributeLike:()=>KU,isJsxAttributeName:()=>yke,isJsxAttributes:()=>W2,isJsxChild:()=>ej,isJsxClosingElement:()=>H2,isJsxClosingFragment:()=>fFe,isJsxElement:()=>r3,isJsxExpression:()=>YP,isJsxFragment:()=>K2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>aE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>zh,isJsxOpeningLikeElementTagName:()=>G9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>WN,isJsxText:()=>w7,isJumpStatementTarget:()=>PH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>Sq,isKnownSymbol:()=>Ij,isLabelName:()=>Rhe,isLabelOfLabeledStatement:()=>Ihe,isLabeledStatement:()=>V2,isLateVisibilityPaintedStatement:()=>iq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>tYe,isLet:()=>rq,isLineBreak:()=>Z1,isLiteralComputedPropertyDeclarationName:()=>Nj,isLiteralExpression:()=>E2,isLiteralExpressionOfObject:()=>$se,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>jN,isLiteralLikeAccess:()=>bq,isLiteralLikeElementAccess:()=>Cj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>uX,isLiteralTypeLikeExpression:()=>hQe,isLiteralTypeLiteral:()=>lbe,isLiteralTypeNode:()=>Mv,isLocalName:()=>rD,isLogicalOperator:()=>Pye,isLogicalOrCoalescingAssignmentExpression:()=>ole,isLogicalOrCoalescingAssignmentOperator:()=>mP,isLogicalOrCoalescingBinaryExpression:()=>Gj,isLogicalOrCoalescingBinaryOperator:()=>Wj,isMappedTypeNode:()=>JP,isMemberName:()=>J_,isMetaProperty:()=>$P,isMethodDeclaration:()=>dc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>n3,isMinusToken:()=>Ece,isMissingDeclaration:()=>eQe,isModifier:()=>Qo,isModifierKind:()=>XD,isModifierLike:()=>ol,isModuleAugmentationExternal:()=>p0e,isModuleBlock:()=>rE,isModuleBody:()=>hbe,isModuleDeclaration:()=>_c,isModuleExportsAccessExpression:()=>Y_,isModuleIdentifier:()=>P0e,isModuleName:()=>IFe,isModuleOrEnumDeclaration:()=>QO,isModuleReference:()=>Ebe,isModuleSpecifierLike:()=>vX,isModuleWithStringLiteralName:()=>tq,isNameOfFunctionDeclaration:()=>Hhe,isNameOfModuleDeclaration:()=>Vhe,isNamedClassElement:()=>nbe,isNamedDeclaration:()=>mh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>J0e,isNamedExportBindings:()=>Wse,isNamedExports:()=>ep,isNamedImportBindings:()=>i0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Uq,isNamedTupleMember:()=>GP,isNamespaceBody:()=>yZe,isNamespaceExport:()=>u_,isNamespaceExportDeclaration:()=>wV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>iye,isNewExpression:()=>j2,isNewExpressionTarget:()=>wM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>DZe,isNodeArray:()=>g2,isNodeArrayMultiLine:()=>Kye,isNodeDescendantOf:()=>S2,isNodeKind:()=>GO,isNodeLikeSystem:()=>hoe,isNodeModulesDirectory:()=>bU,isNodeWithPossibleHoistedDeclaration:()=>lye,isNonContextualKeyword:()=>G0e,isNonExportDefaultModifier:()=>mQe,isNonGlobalAmbientModule:()=>m0e,isNonGlobalDeclaration:()=>zSe,isNonNullAccess:()=>bke,isNonNullChain:()=>zU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>JAe,isNotEmittedOrPartiallyEmittedNode:()=>bZe,isNotEmittedStatement:()=>yce,isNullishCoalesce:()=>Kse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>i3,isObjectBindingElementWithoutPropertyName:()=>GH,isObjectBindingOrAssignmentElement:()=>qO,isObjectBindingOrAssignmentPattern:()=>Yse,isObjectBindingPattern:()=>Rp,isObjectLiteralElement:()=>n0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>zp,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>lq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>AU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Y1,isOptionalChainRoot:()=>IN,isOptionalDeclaration:()=>PP,isOptionalJSDocPropertyLikeTag:()=>aV,isOptionalTypeNode:()=>Dce,isOuterExpression:()=>CY,isOutermostOptionalChain:()=>RN,isOverrideModifier:()=>iFe,isPackedArrayLiteral:()=>Ple,isParameter:()=>io,isParameterDeclaration:()=>w2,isParameterOrCatchClauseVariable:()=>Mle,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>VN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>zN,isPartOfTypeNode:()=>q_,isPartOfTypeQuery:()=>_q,isPartiallyEmittedExpression:()=>dY,isPatternMatch:()=>Y$,isPinnedComment:()=>XU,isPlainJsFile:()=>nj,isPlusToken:()=>gce,isPossiblyTypeArgumentPosition:()=>OH,isPostfixUnaryExpression:()=>vce,isPrefixUnaryExpression:()=>zv,isPrivateIdentifier:()=>ea,isPrivateIdentifierClassElementDeclaration:()=>ph,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>mye,isProgramBundleEmitBuildInfo:()=>U7e,isProgramUptoDate:()=>w1e,isPrologueDirective:()=>Mp,isPropertyAccessChain:()=>PU,isPropertyAccessEntityNameExpression:()=>$j,isPropertyAccessExpression:()=>Iu,isPropertyAccessOrQualifiedName:()=>obe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>abe,isPropertyAssignment:()=>Jc,isPropertyDeclaration:()=>ko,isPropertyName:()=>Sc,isPropertyNameLiteral:()=>Xg,isPropertySignature:()=>Mm,isProtoSetter:()=>pye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>kj,isPunctuation:()=>W0e,isPushOrUnshiftIdentifier:()=>$0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>uY,isQuestionOrExclamationToken:()=>NFe,isQuestionOrPlusOrMinusToken:()=>zFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>HAe,isReadonlyKeyword:()=>eFe,isReadonlyKeywordOrPlusOrMinusToken:()=>MFe,isRecognizedTripleSlashComment:()=>c0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>Jv,isRegularExpressionLiteral:()=>mce,isRequireCall:()=>xf,isRequireVariableStatement:()=>L0e,isRestParameter:()=>$_,isRestTypeNode:()=>xce,isReturnStatement:()=>Op,isReturnStatementWithFixablePromiseHandler:()=>UX,isRightSideOfAccessExpression:()=>cle,isRightSideOfInstanceofExpression:()=>zye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>$9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>gP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Mye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>sFe,isScopeMarker:()=>cbe,isSemicolonClassElement:()=>lFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Bse,isShiftOperatorOrHigher:()=>Kce,isShorthandAmbientModuleSymbol:()=>$N,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Tq,isSimpleCopiableExpression:()=>Y2,isSimpleInlineableExpression:()=>sE,isSingleOrDoubleQuote:()=>_j,isSourceFile:()=>la,isSourceFileFromLibrary:()=>KM,isSourceFileJS:()=>gh,isSourceFileNotJS:()=>PZe,isSourceFileNotJson:()=>T0e,isSourceMapping:()=>KAe,isSpecialPropertyDeclaration:()=>rye,isSpreadAssignment:()=>d5,isSpreadElement:()=>uE,isStatement:()=>na,isStatementButNotDeclaration:()=>XO,isStatementOrBlock:()=>gbe,isStatementWithLocals:()=>Abe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ja,isStringAKeyword:()=>WZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>aSe,isStringDoubleQuoted:()=>Cq,isStringLiteral:()=>us,isStringLiteralLike:()=>t0,isStringLiteralOrJsxExpression:()=>_be,isStringLiteralOrTemplate:()=>ASe,isStringOrNumericLiteralLike:()=>Pm,isStringOrRegularExpressionOrTemplateLiteral:()=>Zhe,isStringTextContainingNode:()=>Use,isSuperCall:()=>ik,isSuperKeyword:()=>HP,isSuperOrSuperProperty:()=>NZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>hke,isSwitchStatement:()=>BV,isSyntaxList:()=>MB,isSyntheticExpression:()=>JYe,isSyntheticReference:()=>j7,isTagName:()=>Ohe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>K9e,isTemplateExpression:()=>lY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>X2e,isTemplateLiteralTypeNode:()=>GYe,isTemplateLiteralTypeSpan:()=>rFe,isTemplateMiddle:()=>qke,isTemplateMiddleOrTemplateTail:()=>IU,isTemplateSpan:()=>qP,isTemplateTail:()=>pce,isTextWhiteSpaceLike:()=>hSe,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>Xbe,isThisIdentifier:()=>N2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>mq,isThisInitializedObjectBindingExpression:()=>tye,isThisProperty:()=>mj,isThisTypeNode:()=>sY,isThisTypeParameter:()=>NP,isThisTypePredicate:()=>LZe,isThrowStatement:()=>bce,isToken:()=>u7,isTokenKind:()=>Jse,isTraceEnabled:()=>aD,isTransientSymbol:()=>qE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Sj,isTypeAliasDeclaration:()=>jp,isTypeAssertionExpression:()=>aFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>PM,isTypeKeywordToken:()=>ife,isTypeKeywordTokenOrIdentifier:()=>EX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Xr,isTypeNodeKind:()=>_le,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>ebe,isTypeOnlyImportDeclaration:()=>RU,isTypeOnlyImportOrExportDeclaration:()=>_2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>Bl,isTypePredicateNode:()=>aY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>X4,isTypeReferenceType:()=>$U,isTypeUsableAsPropertyName:()=>Y4,isUMDExportSymbol:()=>$q,isUnaryExpression:()=>e0e,isUnaryExpressionWithWrite:()=>sbe,isUnicodeIdentifierStart:()=>kU,isUnionTypeNode:()=>Pv,isUnparsedNode:()=>Gse,isUnparsedPrepend:()=>mFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>Q2e,isUrl:()=>x2e,isValidBigIntString:()=>hZ,isValidESSymbolDeclaration:()=>$be,isValidTypeOnlyAliasUseSite:()=>Tv,isValueSignatureDeclaration:()=>cye,isVarAwaitUsing:()=>lj,isVarConst:()=>K8,isVarUsing:()=>cj,isVariableDeclaration:()=>ua,isVariableDeclarationInVariableStatement:()=>qN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>F2,isVariableDeclarationInitializedToRequire:()=>vq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Gbe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>uYe,isWhileStatement:()=>UYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>qg,isWithStatement:()=>cFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Jq,isYieldExpression:()=>cY,jsxModeNeedsExplicitImport:()=>Sfe,keywordPart:()=>Hf,last:()=>Cr,lastOrUndefined:()=>qu,length:()=>S,libMap:()=>LY,libs:()=>YV,lineBreakPart:()=>lw,linkNamePart:()=>_Se,linkPart:()=>ffe,linkTextPart:()=>kX,listFiles:()=>q1e,loadModuleFromGlobalCache:()=>kAe,loadWithModeAwareCache:()=>CH,makeIdentifierFromModuleName:()=>Lbe,makeImport:()=>g5,makeImportIfNecessary:()=>dSe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>Zr,mapDefined:()=>qi,mapDefinedEntries:()=>Fa,mapDefinedIterator:()=>eo,mapEntries:()=>ci,mapIterator:()=>zr,mapOneOrMany:()=>kfe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ale,matchPatternOrExact:()=>Ble,matchedText:()=>t2e,matchesExclude:()=>TY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>tke,memoize:()=>Mh,memoizeCached:()=>UCe,memoizeOne:()=>HE,memoizeWeak:()=>fqe,metadataHelper:()=>wZ,min:()=>ooe,minAndMax:()=>mke,missingFileModifiedTime:()=>K_,modifierToFlag:()=>_7,modifiersToFlags:()=>tE,moduleOptionDeclaration:()=>cde,moduleResolutionIsEqualTo:()=>kbe,moduleResolutionNameAndModeGetter:()=>yH,moduleResolutionOptionDeclarations:()=>NY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>_X,moduleSpecifiers:()=>Z2,moveEmitHelpers:()=>Hke,moveRangeEnd:()=>Wq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>iE,moveRangePos:()=>Sv,moveSyntheticComments:()=>Oke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>AX,needsScopeMarker:()=>VU,newCaseClauseTracker:()=>VX,newPrivateEnvironment:()=>qAe,noEmitNotification:()=>mH,noEmitSubstitution:()=>xM,noTransformers:()=>c1e,noTruncationMaximumTruncationLength:()=>DZ,nodeCanBeDecorated:()=>gq,nodeHasName:()=>jO,nodeIsDecorated:()=>YN,nodeIsMissing:()=>Ql,nodeIsPresent:()=>H4,nodeIsSynthesized:()=>sl,nodeModuleNameResolver:()=>EAe,nodeModulesPathPart:()=>o_,nodeNextJsonConfigResolver:()=>_Ae,nodeOrChildIsDecorated:()=>gj,nodeOverlapsWithStartEnd:()=>rX,nodePosToString:()=>FZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>U0e,nodeToDisplayParts:()=>Tit,noop:()=>Is,noopFileWatcher:()=>tw,normalizePath:()=>$o,normalizeSlashes:()=>q1,not:()=>X$,notImplemented:()=>ho,notImplementedResolver:()=>DQ,nullNodeConverters:()=>tce,nullParenthesizerRules:()=>ece,nullTransformationContext:()=>Dg,objectAllocator:()=>Qd,operatorPart:()=>IM,optionDeclarations:()=>a3,optionMapToObject:()=>ude,optionsAffectingProgramStructure:()=>pde,optionsForBuild:()=>Ede,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Cbe,or:()=>dg,orderedRemoveItem:()=>gO,orderedRemoveItemAt:()=>fv,outFile:()=>y0,packageIdToPackageName:()=>ZU,packageIdToString:()=>Px,paramHelper:()=>TZ,parameterIsThisKeyword:()=>L2,parameterNamePart:()=>mSe,parseBaseNodeFactory:()=>Zce,parseBigInt:()=>pke,parseBuildCommand:()=>JQe,parseCommandLine:()=>WQe,parseCommandLineWorker:()=>Xce,parseConfigFileTextToJson:()=>tde,parseConfigFileWithSystem:()=>Ttt,parseConfigHostFromCompilerHostLike:()=>wQ,parseCustomTypeOption:()=>BY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>WFe,parseJSDocTypeExpressionForTests:()=>TQe,parseJsonConfigFileContent:()=>aXe,parseJsonSourceFileConfigFileContent:()=>UV,parseJsonText:()=>WV,parseListTypeOption:()=>JFe,parseNodeFactory:()=>a_,parseNodeModuleFromPath:()=>uH,parsePackageName:()=>oH,parsePseudoBigInt:()=>SP,parseValidBigInt:()=>Nle,patchWriteFileEnsuringDirectory:()=>_2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>SN,pathIsBareSpecifier:()=>kse,pathIsRelative:()=>om,patternText:()=>e2e,perfLogger:()=>hh,performIncrementalCompilation:()=>Mtt,performance:()=>h2e,plainJSErrors:()=>NQ,positionBelongsToNode:()=>Whe,positionIsASICandidate:()=>TX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>q4,preProcessFile:()=>unt,probablyUsesSemicolons:()=>YH,processCommentPragmas:()=>Uce,processPragmasIntoFields:()=>qce,processTaggedTemplateExpression:()=>i1e,programContainsEsModules:()=>cSe,programContainsModules:()=>lSe,projectReferenceIsEqualTo:()=>a0e,propKeyHelper:()=>WZ,propertyNamePart:()=>pSe,pseudoBigIntToString:()=>I2,punctuationPart:()=>ih,pushIfUnique:()=>xa,quote:()=>jM,quotePreferenceFromString:()=>afe,rangeContainsPosition:()=>MH,rangeContainsPositionExclusive:()=>zH,rangeContainsRange:()=>Vm,rangeContainsRangeExclusive:()=>q9e,rangeContainsStartEnd:()=>IH,rangeEndIsOnSameLineAsRangeStart:()=>qj,rangeEndPositionsAreOnSameLine:()=>Vye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Tle,rangeOfTypeParameters:()=>Lle,rangeOverlapsWithStartEnd:()=>TM,rangeStartIsOnSameLineAsRangeEnd:()=>Hye,rangeStartPositionsAreOnSameLine:()=>Gq,readBuilderProgram:()=>GQ,readConfigFile:()=>JV,readHelper:()=>HZ,readJson:()=>EP,readJsonConfigFile:()=>qFe,readJsonOrUndefined:()=>hle,reduceEachLeadingCommentRange:()=>k2e,reduceEachTrailingCommentRange:()=>F2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>hYe,relativeComplement:()=>Wr,removeAllComments:()=>EV,removeEmitHelper:()=>HYe,removeExtension:()=>nV,removeFileExtension:()=>_h,removeIgnoredPath:()=>zQ,removeMinAndVersionNumbers:()=>soe,removeOptionality:()=>iSe,removePrefix:()=>yN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>mv,repeatString:()=>KH,replaceElement:()=>qd,resolutionExtensionIsTSOrJson:()=>FP,resolveConfigFileProjectName:()=>ahe,resolveJSModule:()=>pAe,resolveLibrary:()=>KY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>KXe,resolvePackageNameToPackageJson:()=>xde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>bQ,resolveTypeReferenceDirective:()=>hAe,resolvingEmptyArray:()=>_Z,restHelper:()=>RZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>hv,returnsPromise:()=>$fe,runInitializersHelper:()=>NZ,sameFlatMap:()=>z0,sameMap:()=>Lu,sameMapping:()=>Net,scanShebangTrivia:()=>wse,scanTokenAtPosition:()=>Hbe,scanner:()=>nh,screenStartingMessageCodes:()=>WQ,semanticDiagnosticsOptionDeclarations:()=>hde,serializeCompilerOptions:()=>ade,server:()=>Qct,servicesVersion:()=>iBe,setCommentRange:()=>Bc,setConfigFileInOptions:()=>sde,setConstantValue:()=>Vke,setEachParent:()=>pB,setEmitFlags:()=>Zn,setFunctionNameHelper:()=>GZ,setGetSourceFileAsHashVersioned:()=>KQ,setIdentifierAutoGenerate:()=>xV,setIdentifierGeneratedImportReference:()=>Gke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>_V,setLocalizedDiagnosticMessages:()=>eke,setModuleDefaultHelper:()=>UZ,setNodeFlags:()=>_ke,setObjectAllocator:()=>Xye,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>lce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Pqe,setStartsOnNewLine:()=>FZ,setSyntheticLeadingComments:()=>Nv,setSyntheticTrailingComments:()=>A7,setSys:()=>Oqe,setSysLog:()=>g2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>BP,setTextRangePosEnd:()=>t_,setTextRangePosWidth:()=>wP,setTokenSourceMapRange:()=>Rke,setTypeNode:()=>Kke,setUILocale:()=>YCe,setValueDeclaration:()=>Fj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>eZ,shouldUseUriStyleNodeCoreModules:()=>OX,showModuleSpecifier:()=>$ye,signatureHasLiteralTypes:()=>Ode,signatureHasRestParameter:()=>th,signatureToDisplayParts:()=>mfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>qa,singleOrMany:()=>F0,singleOrUndefined:()=>Aa,skipAlias:()=>X1,skipAssertions:()=>lQe,skipConstraint:()=>nfe,skipOuterExpressions:()=>Dc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Np,skipTrivia:()=>gs,skipTypeChecking:()=>AP,skipTypeParentheses:()=>j0e,skipWhile:()=>n2e,sliceAfter:()=>wle,some:()=>Oe,sort:()=>Ph,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>PY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>nQ,sourceMapCommentRegExpDontCareLineStart:()=>Jde,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>KZ,stableSort:()=>oc,startEndContainsRange:()=>Khe,startEndOverlapsWithStartEnd:()=>aX,startOnNewLine:()=>vh,startTracing:()=>f2e,startsWith:()=>Pa,startsWithDirectory:()=>Ase,startsWithUnderscore:()=>Afe,startsWithUseStrict:()=>AFe,stringContainsAt:()=>MSe,stringToToken:()=>f2,stripQuotes:()=>$4,supportedDeclarationExtensions:()=>dV,supportedJSExtensions:()=>Yle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>r0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Zle,supportedTSImplementationExtensions:()=>hV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Efe,suppressTrailingTrivia:()=>ySe,symbolEscapedNameNoDefault:()=>xX,symbolName:()=>lc,symbolNameNoDefault:()=>DX,symbolPart:()=>fSe,symbolToDisplayParts:()=>RM,syntaxMayBeASICandidate:()=>Nfe,syntaxRequiresTrailingSemicolonOrASI:()=>wX,sys:()=>c1,sysLog:()=>bO,tagNamesAreEquivalent:()=>Vv,takeWhile:()=>tU,targetOptionDeclaration:()=>XV,templateObjectHelper:()=>VZ,testFormatSettings:()=>H9e,textChangeRangeIsUnchanged:()=>N2e,textChangeRangeNewSpan:()=>MN,textChanges:()=>iu,textOrKeywordPart:()=>hfe,textPart:()=>Km,textRangeContainsPositionInclusive:()=>IO,textSpanContainsPosition:()=>Nse,textSpanContainsTextSpan:()=>B2e,textSpanEnd:()=>Ec,textSpanIntersection:()=>L2e,textSpanIntersectsWith:()=>wU,textSpanIntersectsWithPosition:()=>T2e,textSpanIntersectsWithTextSpan:()=>aZe,textSpanIsEmpty:()=>S2e,textSpanOverlap:()=>w2e,textSpanOverlapsWith:()=>rZe,textSpansEqual:()=>sw,textToKeywordObj:()=>MO,timestamp:()=>G0,toArray:()=>YA,toBuilderFileEmit:()=>Q7e,toBuilderStateFileInfoForMultiEmit:()=>Y7e,toEditorSettings:()=>gK,toFileNameLowerCase:()=>$g,toLowerCase:()=>$Ce,toPath:()=>J0,toProgramEmitPending:()=>X7e,tokenIsIdentifierOrKeyword:()=>fh,tokenIsIdentifierOrKeywordOrGreaterThan:()=>b2e,tokenToString:()=>Uo,trace:()=>Sa,tracing:()=>Gn,tracingEnabled:()=>DO,transform:()=>nrt,transformClassFields:()=>r7e,transformDeclarations:()=>s1e,transformECMAScriptModule:()=>a1e,transformES2015:()=>x7e,transformES2016:()=>D7e,transformES2017:()=>l7e,transformES2018:()=>c7e,transformES2019:()=>d7e,transformES2020:()=>h7e,transformES2021:()=>f7e,transformES5:()=>v7e,transformESDecorators:()=>s7e,transformESNext:()=>m7e,transformGenerators:()=>C7e,transformJsx:()=>_7e,transformLegacyDecorators:()=>o7e,transformModule:()=>r1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>y7e,transformNodes:()=>pH,transformSystemModule:()=>b7e,transformTypeScript:()=>u7e,transpile:()=>hnt,transpileModule:()=>e8e,transpileOptionValueCompilerOptions:()=>gde,tryAddToSet:()=>r0,tryAndIgnoreErrors:()=>PX,tryCast:()=>ur,tryDirectoryExists:()=>NX,tryExtractTSExtension:()=>Kq,tryFileExists:()=>QH,tryGetClassExtendingExpressionWithTypeArguments:()=>sle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>lle,tryGetDirectories:()=>LX,tryGetExtensionFromPath:()=>t3,tryGetImportFromModuleSpecifier:()=>Aj,tryGetJSDocSatisfiesTypeNode:()=>gZ,tryGetModuleNameFromFile:()=>IV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>l2e,tryGetPropertyAccessOrIdentifierToString:()=>Uj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>yY,tryGetSourceMappingURL:()=>VAe,tryGetTextOfPropertyName:()=>UN,tryIOAndConsumeErrors:()=>MX,tryParsePattern:()=>fB,tryParsePatterns:()=>lZ,tryParseRawSourceMap:()=>Wde,tryReadDirectory:()=>xfe,tryReadFile:()=>rM,tryRemoveDirectoryPrefix:()=>yle,tryRemoveExtension:()=>fke,tryRemovePrefix:()=>doe,tryRemoveSuffix:()=>XCe,typeAcquisitionDeclarations:()=>eH,typeAliasNamePart:()=>gSe,typeDirectiveIsEqualTo:()=>Fbe,typeKeywords:()=>HX,typeParameterNamePart:()=>ESe,typeReferenceResolutionNameAndModeGetter:()=>LQ,typeToDisplayParts:()=>$H,unchangedPollThresholds:()=>yO,unchangedTextChangeRange:()=>tj,unescapeLeadingUnderscores:()=>Qr,unmangleScopedPackageName:()=>lH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>loe,unreachableCodeIsError:()=>uke,unusedLabelIsError:()=>rke,unwrapInnermostStatementOfLabel:()=>A0e,updateErrorForNoInputFiles:()=>wY,updateLanguageServiceSourceFile:()=>wme,updateMissingFilePathsWatch:()=>g1e,updatePackageJsonWatch:()=>utt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>vQ,updateSourceFile:()=>$ce,updateWatchingWildcardDirectories:()=>_H,usesExtensionsOnImports:()=>dke,usingSingleLineStringWriter:()=>GN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>sZe,valuesHelper:()=>JZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>dH,visitCommaListElements:()=>hH,visitEachChild:()=>rn,visitFunctionBody:()=>Om,visitIterationBody:()=>Ih,visitLexicalEnvironment:()=>iQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>xc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>UAe,walkUpOuterExpressions:()=>SFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Lj,walkUpParenthesizedTypesAndGetParentAndChild:()=>dye,whitespaceOrMapCommentRegExp:()=>uQ,writeCommentRange:()=>sB,writeFile:()=>cP,writeFileEnsuringDirectories:()=>nle,zipWith:()=>re});var edt=o({"src/typescript/_namespaces/ts.ts"(){Bo(),BH(),rr(),Xv(),lXt()}}),cXt=c({"src/typescript/typescript.ts"(t,u){edt(),edt(),typeof console<"u"&&(H.loggingHost={log(s,d){switch(s){case 1:return console.error(d);case 2:return console.warn(d);case 3:return console.log(d);case 4:return console.log(d)}}}),u.exports=Xct}});return cXt()})();r.exports&&(r.exports=i)})(O6t);var Ahi=O6t.exports;const Qpt=bhi(Ahi);class yGe{constructor(e,i){Oc(this,"id");Oc(this,"name");Oc(this,"columns",[]);Oc(this,"settings");this.name=e,this.settings=i}loadFromObj(e){this.name=e.name,this.settings=e.settings,this.columns=e.columns.map(i=>this.prepareColumn(i)),this.processMiddlewareHandlers()}toObj(){return{name:this.name,columns:this.columns,settings:this.settings}}removeColumn(e){this.columns.splice(this.columns.findIndex(i=>i.id===e),1)}prepareColumn(e){let i=Qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e}processMiddlewareHandlers(){this.settings.middlewares=this.settings.middlewares.map(e=>{let i=Qpt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e})}swapElement(e,i){var n=this.columns[e];this.columns[e]=this.columns[i],this.columns[i]=n}move(e,i){let n=this.columns.findIndex(o=>o.id===e),a=i>0?n+1:n-1;this.swapElement(n,a)}add(e){e.idx=this.columns.length===0?0:this.columns.length,e.id=Math.random().toString().substring(2,8),e.width=e.width||150,e.handlerTsCode&&(e=this.prepareColumn(e)),this.columns.push(e)}update(e){e=this.prepareColumn(e);let i=this.columns.findIndex(n=>n.id===e.id);this.columns[i]=e}getColumn(e){return this.columns.find(i=>i.id===e)}}const Xpt=()=>({read:0,starred:0,unread:0}),GT=R6t("filter",()=>{const r=ds({read:!1,unread:!1,starred:!1}),e=ds({...Xpt()}),i=(h,g)=>{e.value[h]||(e.value[h]=0),e.value[h]+=g},n=h=>{r.value[h]=!r.value[h]},a=()=>{e.value={...Xpt()}},o=()=>{for(let h in r.value)r.value[h]=!1},c=j6(()=>Object.entries(r.value).filter(([g,_])=>_).map(g=>g[0]));return{filters:e,filterToggle:r,enabledFilters:c,reset:a,resetToggles:o,changeFilter:i,toggleFilter:n}});class Shi{constructor(){Oc(this,"headers",{});Oc(this,"onRequestStart",null);Oc(this,"onRequestEnd",null)}setHeader(e,i){this.headers[e]=i}setAuthToken(e){e&&this.setHeader("logdy-client-id",e)}async sendGet(e){let i={};this.onRequestStart&&(i=this.onRequestStart()||{});let n=await fetch(window.location.pathname+"api/"+e,{method:"GET",headers:{...this.headers,...i}});return this.onRequestEnd&&this.onRequestEnd(),{status:n.status,headers:n.headers,json:n.headers.get("content-type")=="application/json"?await n.json():{},body:n.bodyUsed?"":await n.text()}}async sendPost(e,i){let n={};this.onRequestStart&&(n=this.onRequestStart()||{});let a=await fetch("api/"+e,{method:"POST",body:i?JSON.stringify(i):null,headers:{"Content-Type":"application/json",...this.headers,...n}});return this.onRequestEnd&&this.onRequestEnd(),{status:a.status,headers:a.headers,json:a.headers.get("content-type")=="application/json"?await a.json():{},body:a.bodyUsed?"":await a.text()}}async resume(){await this.sendGet("client/set-status?status=following")}async resumeFromCursor(){await this.sendGet("client/set-status?status=following&from_cursor=true")}async pause(){await this.sendGet("client/set-status?status=stopped")}async clientStatus(){return this.sendGet("client/check-status")}async peek(e,i){return this.sendPost("client/peek-log",{idxs:[e,i]})}async load(e,i){return this.sendGet(`client/load?start=${e+1}&count=${i}`)}}const $S=new Shi;function LI(r){return r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Bhi(r,e){return new URLSearchParams(r).get(e)}const whi=async()=>{const r=new Go,e=await WebAssembly.instantiateStreaming(fetch("/main.wasm"),r.importObject);r.run(e.instance)},Thi=r=>{console.log("Breser query:",r);let e=GO_EXPR_setExpression(r);if(e&&e.error)return console.log("Error while setting Breser query",e),e.error},Lhi=r=>GO_EXPR_runQuery(JSON.stringify(r));//! moment.js +`,p++};this.projectService.externalProjects.forEach(E),this.projectService.configuredProjects.forEach(E),this.projectService.inferredProjects.forEach(E)}}this.logger.msg(f,"Err")}send(u){if(u.type==="event"&&!this.canUseEvents){this.logger.hasLevel(3)&&this.logger.info(`Session does not support events: ignored event: ${JSON.stringify(u)}`);return}this.writeMessage(u)}writeMessage(u){var s;const d=kNe(u,this.logger,this.byteLength,this.host.newLine);(s=mh)==null||s.logEvent(`Response message size: ${d.length}`),this.host.write(d)}event(u,s){this.send(FNe(s,u))}doOutput(u,s,d,f,p){const E={seq:0,type:"response",command:s,request_seq:d,success:f,performanceData:this.performanceData};if(f){let v;if(Wa(u))E.body=u,v=u.metadata,delete u.metadata;else if(typeof u=="object")if(u.metadata){const{metadata:b,...B}=u;E.body=B,v=b}else E.body=u;else E.body=u;v&&(E.metadata=v)}else H.assert(u===void 0);p&&(E.message=p),this.send(E)}semanticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"semanticCheck",{file:u,configFilePath:s.canonicalConfigFilePath});const p=Wct(s,u)?qc:s.getLanguageService().getSemanticDiagnostics(u).filter(E=>!!E.file);this.sendDiagnosticsEvent(u,s,p,"semanticDiag"),(f=Gn)==null||f.pop()}syntacticCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"syntacticCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSyntacticDiagnostics(u),"syntaxDiag"),(f=Gn)==null||f.pop()}suggestionCheck(u,s){var d,f;(d=Gn)==null||d.push(Gn.Phase.Session,"suggestionCheck",{file:u,configFilePath:s.canonicalConfigFilePath}),this.sendDiagnosticsEvent(u,s,s.getLanguageService().getSuggestionDiagnostics(u),"suggestionDiag"),(f=Gn)==null||f.pop()}sendDiagnosticsEvent(u,s,d,f){try{this.event({file:u,diagnostics:d.map(p=>Gct(u,s,p))},f)}catch(p){this.logError(p,f)}}updateErrorCheck(u,s,d,f=!0){H.assert(!this.suppressDiagnosticEvents);const p=this.changeSeq,E=Math.min(d,200);let v=0;const b=()=>{v++,s.length>v&&u.delay("checkOne",E,B)},B=()=>{if(this.changeSeq!==p)return;let k=s[v];if(Ua(k)&&(k=this.toPendingErrorCheck(k),!k)){b();return}const{fileName:T,project:M}=k;if(Jm(M),!!M.containsFile(T,f)&&(this.syntacticCheck(T,M),this.changeSeq===p)){if(M.projectService.serverMode!==0){b();return}u.immediate("semanticCheck",()=>{if(this.semanticCheck(T,M),this.changeSeq===p){if(this.getPreferences(T).disableSuggestions){b();return}u.immediate("suggestionCheck",()=>{this.suggestionCheck(T,M),b()})}})}};s.length>v&&this.changeSeq===p&&u.delay("checkOne",d,B)}cleanProjects(u,s){if(s){this.logger.info(`cleaning ${u}`);for(const d of s)d.getLanguageService(!1).cleanupSemanticCache(),d.cleanupProgram()}}cleanup(){this.cleanProjects("inferred projects",this.projectService.inferredProjects),this.cleanProjects("configured projects",Ea(this.projectService.configuredProjects.values())),this.cleanProjects("external projects",this.projectService.externalProjects),this.host.gc&&(this.logger.info("host.gc()"),this.host.gc())}getEncodedSyntacticClassifications(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u);return d.getEncodedSyntacticClassifications(s,u)}getEncodedSemanticClassifications(u){const{file:s,project:d}=this.getFileAndProject(u),f=u.format==="2020"?"2020":"original";return d.getLanguageService().getEncodedSemanticClassifications(s,u,f)}getProject(u){return u===void 0?void 0:this.projectService.findProject(u)}getConfigFileAndProject(u){const s=this.getProject(u.projectFileName),d=xl(u.file);return{configFile:s&&s.hasConfigFile(d)?d:void 0,project:s}}getConfigFileDiagnostics(u,s,d){const f=s.getAllProjectErrors(),p=s.getLanguageService().getCompilerOptionsDiagnostics(),E=ti(mi(f,p),v=>!!v.file&&v.file.fileName===u);return d?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):Vt(E,v=>qK(v,!1))}convertToDiagnosticsWithLinePositionFromDiagnosticFile(u){return u.map(s=>({message:cE(s.messageText,this.host.newLine),start:s.start,length:s.length,category:Gy(s),code:s.code,source:s.source,startLocation:s.file&&UK(s0(s.file,s.start)),endLocation:s.file&&UK(s0(s.file,s.start+s.length)),reportsUnnecessary:s.reportsUnnecessary,reportsDeprecated:s.reportsDeprecated,relatedInformation:Vt(s.relatedInformation,Ege)}))}getCompilerOptionsDiagnostics(u){const s=this.getProject(u.projectFileName);return this.convertToDiagnosticsWithLinePosition(ti(s.getLanguageService().getCompilerOptionsDiagnostics(),d=>!d.file),void 0)}convertToDiagnosticsWithLinePosition(u,s){return u.map(d=>({message:cE(d.messageText,this.host.newLine),start:d.start,length:d.length,category:Gy(d),code:d.code,source:d.source,startLocation:s&&s.positionToLineOffset(d.start),endLocation:s&&s.positionToLineOffset(d.start+d.length),reportsUnnecessary:d.reportsUnnecessary,reportsDeprecated:d.reportsDeprecated,relatedInformation:Vt(d.relatedInformation,Ege)}))}getDiagnosticsWorker(u,s,d,f){const{project:p,file:E}=this.getFileAndProject(u);if(s&&Wct(p,E))return qc;const v=p.getScriptInfoForNormalizedPath(E),b=d(p,E);return f?this.convertToDiagnosticsWithLinePosition(b,v):b.map(B=>Gct(E,p,B))}getDefinition(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapDefinitionInfoLocations(f.getLanguageService().getDefinitionAtPosition(d,p)||qc,f);return s?this.mapDefinitionInfo(E,f):E.map(Q3e.mapToOriginalLocation)}mapDefinitionInfoLocations(u,s){return u.map(d=>{const f=Uct(d,s);return f?{...f,containerKind:d.containerKind,containerName:d.containerName,kind:d.kind,name:d.name,failedAliasResolution:d.failedAliasResolution,...d.unverified&&{unverified:d.unverified}}:d})}getDefinitionAndBoundSpan(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=H.checkDefined(f.getScriptInfo(d)),v=f.getLanguageService().getDefinitionAndBoundSpan(d,p);if(!v||!v.definitions)return{definitions:qc,textSpan:void 0};const b=this.mapDefinitionInfoLocations(v.definitions,f),{textSpan:B}=v;return s?{definitions:this.mapDefinitionInfo(b,f),textSpan:c_(B,E)}:{definitions:b.map(Q3e.mapToOriginalLocation),textSpan:B}}findSourceDefinition(u){var s;const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDefinitionAtPosition(d,p);let v=this.mapDefinitionInfoLocations(E||qc,f).slice();if(this.projectService.serverMode===0&&(!Ge(v,z=>xl(z.fileName)!==d&&!z.isAmbient)||Ge(v,z=>!!z.failedAliasResolution))){const z=soe(Y=>Y.textSpan.start,kX);v==null||v.forEach(Y=>z.add(Y));const j=f.getNoDtsResolutionProject(d),J=j.getLanguageService(),K=(s=J.getDefinitionAtPosition(d,p,!0,!1))==null?void 0:s.filter(Y=>xl(Y.fileName)!==d);if(Ge(K))for(const Y of K){if(Y.unverified){const oe=T(Y,f.getLanguageService().getProgram(),J.getProgram());if(Ge(oe)){for(const se of oe)z.add(se);continue}}z.add(Y)}else{const Y=v.filter(oe=>xl(oe.fileName)!==d&&oe.isAmbient);for(const oe of Ge(Y)?Y:k()){const se=B(oe.fileName,d,j);if(!se)continue;const ge=this.projectService.getOrCreateScriptInfoNotOpenedByClient(se,j.currentDirectory,j.directoryStructureHost);if(!ge)continue;j.containsScriptInfo(ge)||(j.addRoot(ge),j.updateGraph());const ae=J.getProgram(),Ce=H.checkDefined(ae.getSourceFile(se));for(const ne of M(oe.name,Ce,ae))z.add(ne)}}v=Ea(z.values())}return v=v.filter(z=>!z.isAmbient&&!z.failedAliasResolution),this.mapDefinitionInfo(v,f);function B(z,j,J){var K,Y,oe;const se=EZ(z);if(se&&z.lastIndexOf(s_)===se.topLevelNodeModulesIndex){const ge=z.substring(0,se.packageRootIndex),ae=(K=f.getModuleResolutionCache())==null?void 0:K.getPackageJsonInfoCache(),Ce=f.getCompilationSettings(),ne=oH(qa(ge+"/package.json",f.getCurrentDirectory()),aH(ae,f,Ce));if(!ne)return;const ve=Ade(ne,{moduleResolution:2},f,f.getModuleResolutionCache()),Se=z.substring(se.topLevelPackageNameIndex+1,se.packageRootIndex),Ne=fM(cH(Se)),pe=f.toPath(z);if(ve&&Ge(ve,fe=>f.toPath(fe)===pe))return(Y=J.resolutionCache.resolveSingleModuleNameWithoutWatching(Ne,j).resolvedModule)==null?void 0:Y.resolvedFileName;{const fe=z.substring(se.packageRootIndex+1),xe=`${Ne}/${xh(fe)}`;return(oe=J.resolutionCache.resolveSingleModuleNameWithoutWatching(xe,j).resolvedModule)==null?void 0:oe.resolvedFileName}}}function k(){const z=f.getLanguageService(),j=z.getProgram(),J=af(j.getSourceFile(d),p);return(i0(J)||at(J))&&O0(J.parent)&&ike(J,K=>{var Y;if(K===J)return;const oe=(Y=z.getDefinitionAtPosition(d,K.getStart(),!0,!1))==null?void 0:Y.filter(se=>xl(se.fileName)!==d&&se.isAmbient).map(se=>({fileName:se.fileName,name:U4(J)}));if(Ge(oe))return oe})||qc}function T(z,j,J){var K;const Y=J.getSourceFile(z.fileName);if(!Y)return;const oe=af(j.getSourceFile(d),p),se=j.getTypeChecker().getSymbolAtLocation(oe),ge=se&&Bl(se,276);if(!ge)return;const ae=((K=ge.propertyName)==null?void 0:K.text)||ge.name.text;return M(ae,Y,J)}function M(z,j,J){const K=Y0.Core.getTopMostDeclarationNamesInFile(z,j);return qi(K,Y=>{const oe=J.getTypeChecker().getSymbolAtLocation(Y),se=uP(Y);if(oe&&se)return Cw.createDefinitionInfo(se,J.getTypeChecker(),oe,se,!0)})}}getEmitOutput(u){const{file:s,project:d}=this.getFileAndProject(u);if(!d.shouldEmitFile(d.getScriptInfo(s)))return{emitSkipped:!0,outputFiles:[],diagnostics:[]};const f=d.getLanguageService().getEmitOutput(s);return u.richResponse?{...f,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(f.diagnostics):f.diagnostics.map(p=>qK(p,!0))}:f}mapJSDocTagInfo(u,s,d){return u?u.map(f=>{var p;return{...f,text:d?this.mapDisplayParts(f.text,s):(p=f.text)==null?void 0:p.map(E=>E.text).join("")}}):[]}mapDisplayParts(u,s){return u?u.map(d=>d.kind!=="linkName"?d:{...d,target:this.toFileSpan(d.target.fileName,d.target.textSpan,s)}):[]}mapSignatureHelpItems(u,s,d){return u.map(f=>({...f,documentation:this.mapDisplayParts(f.documentation,s),parameters:f.parameters.map(p=>({...p,documentation:this.mapDisplayParts(p.documentation,s)})),tags:this.mapJSDocTagInfo(f.tags,s,d)}))}mapDefinitionInfo(u,s){return u.map(d=>({...this.toFileSpanWithContext(d.fileName,d.textSpan,d.contextSpan,s),...d.unverified&&{unverified:d.unverified}}))}static mapToOriginalLocation(u){return u.originalFileName?(H.assert(u.originalTextSpan!==void 0,"originalTextSpan should be present if originalFileName is"),{...u,fileName:u.originalFileName,textSpan:u.originalTextSpan,targetFileName:u.fileName,targetTextSpan:u.textSpan,contextSpan:u.originalContextSpan,targetContextSpan:u.contextSpan}):u}toFileSpan(u,s,d){const f=d.getLanguageService(),p=f.toLineColumnOffset(u,s.start),E=f.toLineColumnOffset(u,Dc(s));return{file:u,start:{line:p.line+1,offset:p.character+1},end:{line:E.line+1,offset:E.character+1}}}toFileSpanWithContext(u,s,d,f){const p=this.toFileSpan(u,s,f),E=d&&this.toFileSpan(u,d,f);return E?{...p,contextStart:E.start,contextEnd:E.end}:p}getTypeDefinition(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.mapDefinitionInfoLocations(d.getLanguageService().getTypeDefinitionAtPosition(s,f)||qc,d);return this.mapDefinitionInfo(p,d)}mapImplementationLocations(u,s){return u.map(d=>{const f=Uct(d,s);return f?{...f,kind:d.kind,displayParts:d.displayParts}:d})}getImplementation(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=this.mapImplementationLocations(f.getLanguageService().getImplementationAtPosition(d,p)||qc,f);return s?E.map(({fileName:v,textSpan:b,contextSpan:B})=>this.toFileSpanWithContext(v,b,B,f)):E.map(Q3e.mapToOriginalLocation)}getSyntacticDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?qc:this.getDiagnosticsWorker(u,!1,(d,f)=>d.getLanguageService().getSyntacticDiagnostics(f),!!u.includeLinePosition)}getSemanticDiagnosticsSync(u){const{configFile:s,project:d}=this.getConfigFileAndProject(u);return s?this.getConfigFileDiagnostics(s,d,!!u.includeLinePosition):this.getDiagnosticsWorker(u,!0,(f,p)=>f.getLanguageService().getSemanticDiagnostics(p).filter(E=>!!E.file),!!u.includeLinePosition)}getSuggestionDiagnosticsSync(u){const{configFile:s}=this.getConfigFileAndProject(u);return s?qc:this.getDiagnosticsWorker(u,!0,(d,f)=>d.getLanguageService().getSuggestionDiagnostics(f),!!u.includeLinePosition)}getJsxClosingTag(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getJsxClosingTagAtPosition(s,f);return p===void 0?void 0:{newText:p.newText,caretOffset:0}}getLinkedEditingRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=d.getLinkedEditingRangeAtPosition(s,f),E=this.projectService.getScriptInfoForNormalizedPath(s);if(!(E===void 0||p===void 0))return rXt(p,E)}getDocumentHighlights(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.getPositionInFile(u,d),E=f.getLanguageService().getDocumentHighlights(d,p,u.filesToSearch);return E?s?E.map(({fileName:v,highlightSpans:b})=>{const B=f.getScriptInfo(v);return{file:v,highlightSpans:b.map(({textSpan:k,kind:T,contextSpan:M})=>({...SNe(k,M,B),kind:T}))}}):E:qc}provideInlayHints(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);return d.getLanguageService().provideInlayHints(s,u,this.getPreferences(s)).map(E=>{const{position:v,displayParts:b}=E;return{...E,position:f.positionToLineOffset(v),displayParts:b==null?void 0:b.map(({text:B,span:k,file:T})=>{if(k){H.assertIsDefined(T,"Target file should be defined together with its span.");const M=this.projectService.getScriptInfo(T);return{text:B,span:{start:M.positionToLineOffset(k.start),end:M.positionToLineOffset(k.start+k.length),file:T}}}else return{text:B}})}})}setCompilerOptionsForInferredProjects(u){this.projectService.setCompilerOptionsForInferredProjects(u.options,u.projectRootPath)}getProjectInfo(u){return this.getProjectInfoWorker(u.file,u.projectFileName,u.needFileNameList,!1)}getProjectInfoWorker(u,s,d,f){const{project:p}=this.getFileAndProjectWorker(u,s);return Jm(p),{configFileName:p.getProjectName(),languageServiceDisabled:!p.languageServiceEnabled,fileNames:d?p.getFileNames(!1,f):void 0}}getRenameInfo(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getPositionInFile(u,s),p=this.getPreferences(s);return d.getLanguageService().getRenameInfo(s,f,p)}getProjects(u,s,d){let f,p;if(u.projectFileName){const E=this.getProject(u.projectFileName);E&&(f=[E])}else{const E=s?this.projectService.getScriptInfoEnsuringProjectsUptoDate(u.file):this.projectService.getScriptInfo(u.file);if(E)s||this.projectService.ensureDefaultProjectForFile(E);else return d?qc:(this.projectService.logErrorForScriptInfoNotFound(u.file),v5.ThrowNoProject());f=E.containingProjects,p=this.projectService.getSymlinkedProjects(E)}return f=ti(f,E=>E.languageServiceEnabled&&!E.isOrphan()),!d&&(!f||!f.length)&&!p?(this.projectService.logErrorForScriptInfoNotFound(u.file??u.projectFileName),v5.ThrowNoProject()):p?{projects:f,symLinkedProjects:p}:f}getDefaultProject(u){if(u.projectFileName){const d=this.getProject(u.projectFileName);if(d)return d;if(!u.file)return v5.ThrowNoProject()}return this.projectService.getScriptInfo(u.file).getDefaultProject()}getRenameLocations(u,s){const d=xl(u.file),f=this.getPositionInFile(u,d),p=this.getProjects(u),E=this.getDefaultProject(u),v=this.getPreferences(d),b=this.mapRenameInfo(E.getLanguageService().getRenameInfo(d,f,v),H.checkDefined(this.projectService.getScriptInfo(d)));if(!b.canRename)return s?{info:b,locs:[]}:[];const B=QQt(p,E,{fileName:u.file,pos:f},!!u.findInStrings,!!u.findInComments,v);return s?{info:b,locs:this.toSpanGroups(B)}:B}mapRenameInfo(u,s){if(u.canRename){const{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:B}=u;return{canRename:d,fileToRename:f,displayName:p,fullDisplayName:E,kind:v,kindModifiers:b,triggerSpan:c_(B,s)}}else return u}toSpanGroups(u){const s=new Map;for(const{fileName:d,textSpan:f,contextSpan:p,originalContextSpan:E,originalTextSpan:v,originalFileName:b,...B}of u){let k=s.get(d);k||s.set(d,k={file:d,locs:[]});const T=H.checkDefined(this.projectService.getScriptInfo(d));k.locs.push({...SNe(f,p,T),...B})}return Ea(s.values())}getReferences(u,s){const d=xl(u.file),f=this.getProjects(u),p=this.getPositionInFile(u,d),E=eXt(f,this.getDefaultProject(u),{fileName:u.file,pos:p},this.logger);if(!s)return E;const v=this.getPreferences(d),b=this.getDefaultProject(u),B=b.getScriptInfoForNormalizedPath(d),k=b.getLanguageService().getQuickInfoAtPosition(d,p),T=k?_K(k.displayParts):"",M=k&&k.textSpan,z=M?B.positionToLineOffset(M.start).offset:0,j=M?B.getSnapshot().getText(M.start,Dc(M)):"";return{refs:Vu(E,K=>K.references.map(Y=>Zct(this.projectService,Y,v))),symbolName:j,symbolStartOffset:z,symbolDisplayString:T}}getFileReferences(u,s){const d=this.getProjects(u),f=u.file,p=this.getPreferences(xl(f)),E=[],v=_ge();return ANe(d,void 0,B=>{if(B.getCancellationToken().isCancellationRequested())return;const k=B.getLanguageService().getFileReferences(f);if(k)for(const T of k)v.has(T)||(E.push(T),v.add(T))}),s?{refs:E.map(B=>Zct(this.projectService,B,p)),symbolName:`"${u.file}"`}:E}openClientFile(u,s,d,f){this.projectService.openClientFileWithNormalizedPath(u,s,d,!1,f)}getPosition(u,s){return u.position!==void 0?u.position:s.lineOffsetToPosition(u.line,u.offset)}getPositionInFile(u,s){const d=this.projectService.getScriptInfoForNormalizedPath(s);return this.getPosition(u,d)}getFileAndProject(u){return this.getFileAndProjectWorker(u.file,u.projectFileName)}getFileAndLanguageServiceForSyntacticOperation(u){const{file:s,project:d}=this.getFileAndProject(u);return{file:s,languageService:d.getLanguageService(!1)}}getFileAndProjectWorker(u,s){const d=xl(u),f=this.getProject(s)||this.projectService.ensureDefaultProjectForFile(d);return{file:d,project:f}}getOutliningSpans(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getOutliningSpans(d);if(s){const E=this.projectService.getScriptInfoForNormalizedPath(d);return p.map(v=>({textSpan:c_(v.textSpan,E),hintSpan:c_(v.hintSpan,E),bannerText:v.bannerText,autoCollapse:v.autoCollapse,kind:v.kind}))}else return p}getTodoComments(u){const{file:s,project:d}=this.getFileAndProject(u);return d.getLanguageService().getTodoComments(s,u.descriptors)}getDocCommentTemplate(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getDocCommentTemplateAtPosition(s,f,this.getPreferences(s),this.getFormatOptions(s))}getSpanOfEnclosingComment(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.onlyMultiLine,p=this.getPositionInFile(u,s);return d.getSpanOfEnclosingComment(s,p,f)}getIndentation(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s),p=u.options?Sw(u.options):this.getFormatOptions(s),E=d.getIndentationAtPosition(s,f,p);return{position:f,indentation:E}}getBreakpointStatement(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getBreakpointStatementAtPosition(s,f)}getNameOrDottedNameSpan(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.getNameOrDottedNameSpan(s,f,f)}isValidBraceCompletion(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.getPositionInFile(u,s);return d.isValidBraceCompletionAtPosition(s,f,u.openingBrace.charCodeAt(0))}getQuickInfoWorker(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getQuickInfoAtPosition(d,this.getPosition(u,p));if(!E)return;const v=!!this.getPreferences(d).displayPartsForJSDoc;if(s){const b=_K(E.displayParts);return{kind:E.kind,kindModifiers:E.kindModifiers,start:p.positionToLineOffset(E.textSpan.start),end:p.positionToLineOffset(Dc(E.textSpan)),displayString:b,documentation:v?this.mapDisplayParts(E.documentation,f):_K(E.documentation),tags:this.mapJSDocTagInfo(E.tags,f,v)}}else return v?E:{...E,tags:this.mapJSDocTagInfo(E.tags,f,!1)}}getFormattingEditsForRange(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=f.lineOffsetToPosition(u.endLine,u.endOffset),v=d.getFormattingEditsForRange(s,p,E,this.getFormatOptions(s));if(v)return v.map(b=>this.convertTextChangeToCodeEdit(b,f))}getFormattingEditsForRangeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForRange(s,u.position,u.endPosition,f)}getFormattingEditsForDocumentFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsForDocument(s,f)}getFormattingEditsAfterKeystrokeFull(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=u.options?Sw(u.options):this.getFormatOptions(s);return d.getFormattingEditsAfterKeystroke(s,u.position,u.key,f)}getFormattingEditsAfterKeystroke(u){const{file:s,languageService:d}=this.getFileAndLanguageServiceForSyntacticOperation(u),f=this.projectService.getScriptInfoForNormalizedPath(s),p=f.lineOffsetToPosition(u.line,u.offset),E=this.getFormatOptions(s),v=d.getFormattingEditsAfterKeystroke(s,p,u.key,E);if(u.key===` +`&&(!v||v.length===0||ZQt(v,p))){const{lineText:b,absolutePosition:B}=f.textStorage.getAbsolutePositionAndLineText(u.line);if(b&&b.search("\\S")<0){const k=d.getIndentationAtPosition(s,p,E);let T=0,M,z;for(M=0,z=b.length;M({start:f.positionToLineOffset(b.span.start),end:f.positionToLineOffset(Dc(b.span)),newText:b.newText?b.newText:""}))}getCompletions(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getCompletionsAtPosition(d,E,{...fNe(this.getPreferences(d)),triggerCharacter:u.triggerCharacter,triggerKind:u.triggerKind,includeExternalModuleExports:u.includeExternalModuleExports,includeInsertTextCompletions:u.includeInsertTextCompletions},f.projectService.getFormatCodeOptions(d));if(v===void 0)return;if(s==="completions-full")return v;const b=u.prefix||"",B=qi(v.entries,T=>{if(v.isMemberCompletion||Ma(T.name.toLowerCase(),b.toLowerCase())){const{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:oe,hasAction:se,source:ge,sourceDisplay:ae,labelDetails:Ce,isSnippet:ne,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}=T,fe=oe?c_(oe,p):void 0;return{name:M,kind:z,kindModifiers:j,sortText:J,insertText:K,filterText:Y,replacementSpan:fe,isSnippet:ne,hasAction:se||void 0,source:ge,sourceDisplay:ae,labelDetails:Ce,isRecommended:ve,isPackageJsonImport:Se,isImportStatementCompletion:Ne,data:pe}}});return s==="completions"?(v.metadata&&(B.metadata=v.metadata),B):{...v,optionalReplacementSpan:v.optionalReplacementSpan&&c_(v.optionalReplacementSpan,p),entries:B}}getCompletionEntryDetails(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.projectService.getFormatCodeOptions(d),b=!!this.getPreferences(d).displayPartsForJSDoc,B=qi(u.entryNames,k=>{const{name:T,source:M,data:z}=typeof k=="string"?{name:k,source:void 0,data:void 0}:k;return f.getLanguageService().getCompletionEntryDetails(d,E,T,v,M,this.getPreferences(d),z?Po(z,cXt):void 0)});return s?b?B:B.map(k=>({...k,tags:this.mapJSDocTagInfo(k.tags,f,!1)})):B.map(k=>({...k,codeActions:Vt(k.codeActions,T=>this.mapCodeAction(T)),documentation:this.mapDisplayParts(k.documentation,f),tags:this.mapJSDocTagInfo(k.tags,f,b)}))}getCompileOnSaveAffectedFileList(u){const s=this.getProjects(u,!0,!0),d=this.projectService.getScriptInfo(u.file);return d?YQt(d,f=>this.projectService.getScriptInfoForPath(f),s,(f,p)=>{if(!f.compileOnSaveEnabled||!f.languageServiceEnabled||f.isOrphan())return;const E=f.getCompilationSettings();if(!(E.noEmit||t1(p.fileName)&&!qQt(E)))return{projectFileName:f.getProjectName(),fileNames:f.getCompileOnSaveAffectedFileList(p),projectUsesOutFile:!!F0(E)}}):qc}emitFile(u){const{file:s,project:d}=this.getFileAndProject(u);if(d||v5.ThrowNoProject(),!d.languageServiceEnabled)return u.richResponse?{emitSkipped:!0,diagnostics:[]}:!1;const f=d.getScriptInfo(s),{emitSkipped:p,diagnostics:E}=d.emitFile(f,(v,b,B)=>this.host.writeFile(v,b,B));return u.richResponse?{emitSkipped:p,diagnostics:u.includeLinePosition?this.convertToDiagnosticsWithLinePositionFromDiagnosticFile(E):E.map(v=>qK(v,!0))}:!p}getSignatureHelpItems(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getLanguageService().getSignatureHelpItems(d,E,u),b=!!this.getPreferences(d).displayPartsForJSDoc;if(v&&s){const B=v.applicableSpan;return{...v,applicableSpan:{start:p.positionToLineOffset(B.start),end:p.positionToLineOffset(B.start+B.length)},items:this.mapSignatureHelpItems(v.items,f,b)}}else return b||!v?v:{...v,items:v.items.map(B=>({...B,tags:this.mapJSDocTagInfo(B.tags,f,!1)}))}}toPendingErrorCheck(u){const s=xl(u),d=this.projectService.tryGetDefaultProjectForFile(s);return d&&{fileName:s,project:d}}getDiagnostics(u,s,d){this.suppressDiagnosticEvents||d.length>0&&this.updateErrorCheck(u,d,s)}change(u){const s=this.projectService.getScriptInfo(u.file);H.assert(!!s),s.textStorage.switchToScriptVersionCache();const d=s.lineOffsetToPosition(u.line,u.offset),f=s.lineOffsetToPosition(u.endLine,u.endOffset);d>=0&&(this.changeSeq++,this.projectService.applyChangesToFile(s,Pa({span:{start:d,length:f-d},newText:u.insertString})))}reload(u,s){const d=xl(u.file),f=u.tmpfile===void 0?void 0:xl(u.tmpfile),p=this.projectService.getScriptInfoForNormalizedPath(d);p&&(this.changeSeq++,p.reloadFromFile(f)&&this.doOutput(void 0,"reload",s,!0))}saveToTmp(u,s){const d=this.projectService.getScriptInfo(u);d&&d.saveTo(s)}closeClientFile(u){if(!u)return;const s=Uo(u);this.projectService.closeClientFile(s)}mapLocationNavigationBarItems(u,s){return Vt(u,d=>({text:d.text,kind:d.kind,kindModifiers:d.kindModifiers,spans:d.spans.map(f=>c_(f,s)),childItems:this.mapLocationNavigationBarItems(d.childItems,s),indent:d.indent}))}getNavigationBarItems(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationBarItems(d);return p?s?this.mapLocationNavigationBarItems(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}toLocationNavigationTree(u,s){return{text:u.text,kind:u.kind,kindModifiers:u.kindModifiers,spans:u.spans.map(d=>c_(d,s)),nameSpan:u.nameSpan&&c_(u.nameSpan,s),childItems:Vt(u.childItems,d=>this.toLocationNavigationTree(d,s))}}getNavigationTree(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=f.getNavigationTree(d);return p?s?this.toLocationNavigationTree(p,this.projectService.getScriptInfoForNormalizedPath(d)):p:void 0}getNavigateToItems(u,s){const d=this.getFullNavigateToItems(u);return s?Vu(d,({project:f,navigateToItems:p})=>p.map(E=>{const v=f.getScriptInfo(E.fileName),b={name:E.name,kind:E.kind,kindModifiers:E.kindModifiers,isCaseSensitive:E.isCaseSensitive,matchKind:E.matchKind,file:E.fileName,start:v.positionToLineOffset(E.textSpan.start),end:v.positionToLineOffset(Dc(E.textSpan))};return E.kindModifiers&&E.kindModifiers!==""&&(b.kindModifiers=E.kindModifiers),E.containerName&&E.containerName.length>0&&(b.containerName=E.containerName),E.containerKind&&E.containerKind.length>0&&(b.containerKind=E.containerKind),b})):Vu(d,({navigateToItems:f})=>f)}getFullNavigateToItems(u){const{currentFileOnly:s,searchValue:d,maxResultCount:f,projectFileName:p}=u;if(s){H.assertIsDefined(u.file);const{file:M,project:z}=this.getFileAndProject(u);return[{project:z,navigateToItems:z.getLanguageService().getNavigateToItems(d,f,M)}]}const E=this.getHostPreferences(),v=[],b=new Map;if(!u.file&&!p)this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(M=>B(M));else{const M=this.getProjects(u);ANe(M,void 0,z=>B(z))}return v;function B(M){const z=M.getLanguageService().getNavigateToItems(d,f,void 0,M.isNonTsProject(),E.excludeLibrarySymbolsInNavTo),j=ti(z,J=>k(J)&&!Dge(rz(J),M));j.length&&v.push({project:M,navigateToItems:j})}function k(M){const z=M.name;if(!b.has(z))return b.set(z,[M]),!0;const j=b.get(z);for(const J of j)if(T(J,M))return!1;return j.push(M),!0}function T(M,z){return M===z?!0:!M||!z?!1:M.containerKind===z.containerKind&&M.containerName===z.containerName&&M.fileName===z.fileName&&M.isCaseSensitive===z.isCaseSensitive&&M.kind===z.kind&&M.kindModifiers===z.kindModifiers&&M.matchKind===z.matchKind&&M.name===z.name&&M.textSpan.start===z.textSpan.start&&M.textSpan.length===z.textSpan.length}}getSupportedCodeFixes(u){if(!u)return Tme();if(u.file){const{file:d,project:f}=this.getFileAndProject(u);return f.getLanguageService().getSupportedCodeFixes(d)}const s=this.getProject(u.projectFileName);return s||v5.ThrowNoProject(),s.getLanguageService().getSupportedCodeFixes()}isLocation(u){return u.line!==void 0}extractPositionOrRange(u,s){let d,f;return this.isLocation(u)?d=p(u):f=this.getRange(u,s),H.checkDefined(d===void 0?f:d);function p(E){return E.position!==void 0?E.position:s.lineOffsetToPosition(E.line,E.offset)}}getRange(u,s){const{startPosition:d,endPosition:f}=this.getStartAndEndPosition(u,s);return{pos:d,end:f}}getApplicableRefactors(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getApplicableRefactors(s,this.extractPositionOrRange(u,f),this.getPreferences(s),u.triggerReason,u.kind,u.includeInteractiveActions)}getEditsForRefactor(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),E=f.getLanguageService().getEditsForRefactor(d,this.getFormatOptions(d),this.extractPositionOrRange(u,p),u.refactor,u.action,this.getPreferences(d),u.interactiveRefactorArguments);if(E===void 0)return{edits:[]};if(s){const{renameFilename:v,renameLocation:b,edits:B}=E;let k;if(v!==void 0&&b!==void 0){const T=f.getScriptInfoForNormalizedPath(xl(v));k=BNe(aw(T.getSnapshot()),v,b,B)}return{renameLocation:k,renameFilename:v,edits:this.mapTextChangesToCodeEdits(B),notApplicableReason:E.notApplicableReason}}return E}getMoveToRefactoringFileSuggestions(u){const{file:s,project:d}=this.getFileAndProject(u),f=d.getScriptInfoForNormalizedPath(s);return d.getLanguageService().getMoveToRefactoringFileSuggestions(s,this.extractPositionOrRange(u,f),this.getPreferences(s))}organizeImports(u,s){H.assert(u.scope.type==="file");const{file:d,project:f}=this.getFileAndProject(u.scope.args),p=f.getLanguageService().organizeImports({fileName:d,mode:u.mode??(u.skipDestructiveCodeActions?"SortAndCombine":void 0),type:"file"},this.getFormatOptions(d),this.getPreferences(d));return s?this.mapTextChangesToCodeEdits(p):p}getEditsForFileRename(u,s){const d=xl(u.oldFilePath),f=xl(u.newFilePath),p=this.getHostFormatOptions(),E=this.getHostPreferences(),v=new Set,b=[];return this.projectService.loadAncestorProjectTree(),this.projectService.forEachEnabledProject(B=>{const k=B.getLanguageService().getEditsForFileRename(d,f,p,E),T=[];for(const M of k)v.has(M.fileName)||(b.push(M),T.push(M.fileName));for(const M of T)v.add(M)}),s?b.map(B=>this.mapTextChangeToCodeEdit(B)):b}getCodeFixes(u,s){const{file:d,project:f}=this.getFileAndProject(u),p=f.getScriptInfoForNormalizedPath(d),{startPosition:E,endPosition:v}=this.getStartAndEndPosition(u,p);let b;try{b=f.getLanguageService().getCodeFixesAtPosition(d,E,v,u.errorCodes,this.getFormatOptions(d),this.getPreferences(d))}catch(B){const k=f.getLanguageService(),T=[...k.getSyntacticDiagnostics(d),...k.getSemanticDiagnostics(d),...k.getSuggestionDiagnostics(d)].map(z=>OO(E,v-E,z.start,z.length)&&z.code),M=u.errorCodes.find(z=>!T.includes(z));throw M!==void 0&&(B.message=`BADCLIENT: Bad error code, ${M} not found in range ${E}..${v} (found: ${T.join(", ")}); could have caused this error: +${B.message}`),B}return s?b.map(B=>this.mapCodeFixAction(B)):b}getCombinedCodeFix({scope:u,fixId:s},d){H.assert(u.type==="file");const{file:f,project:p}=this.getFileAndProject(u.args),E=p.getLanguageService().getCombinedCodeFix({type:"file",fileName:f},s,this.getFormatOptions(f),this.getPreferences(f));return d?{changes:this.mapTextChangesToCodeEdits(E.changes),commands:E.commands}:E}applyCodeActionCommand(u){const s=u.command;for(const d of YA(s)){const{file:f,project:p}=this.getFileAndProject(d);p.getLanguageService().applyCodeActionCommand(d,this.getFormatOptions(f)).then(E=>{},E=>{})}return{}}getStartAndEndPosition(u,s){let d,f;return u.startPosition!==void 0?d=u.startPosition:(d=s.lineOffsetToPosition(u.startLine,u.startOffset),u.startPosition=d),u.endPosition!==void 0?f=u.endPosition:(f=s.lineOffsetToPosition(u.endLine,u.endOffset),u.endPosition=f),{startPosition:d,endPosition:f}}mapCodeAction({description:u,changes:s,commands:d}){return{description:u,changes:this.mapTextChangesToCodeEdits(s),commands:d}}mapCodeFixAction({fixName:u,description:s,changes:d,commands:f,fixId:p,fixAllDescription:E}){return{fixName:u,description:s,changes:this.mapTextChangesToCodeEdits(d),commands:f,fixId:p,fixAllDescription:E}}mapTextChangesToCodeEdits(u){return u.map(s=>this.mapTextChangeToCodeEdit(s))}mapTextChangeToCodeEdit(u){const s=this.projectService.getScriptInfoOrConfig(u.fileName);return!!u.isNewFile==!!s&&(s||this.projectService.logErrorForScriptInfoNotFound(u.fileName),H.fail("Expected isNewFile for (only) new files. "+JSON.stringify({isNewFile:!!u.isNewFile,hasScriptInfo:!!s}))),s?{fileName:u.fileName,textChanges:u.textChanges.map(d=>uXt(d,s))}:oXt(u)}convertTextChangeToCodeEdit(u,s){return{start:s.positionToLineOffset(u.span.start),end:s.positionToLineOffset(u.span.start+u.span.length),newText:u.newText?u.newText:""}}getBraceMatching(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getPosition(u,p),v=f.getBraceMatchingAtPosition(d,E);return v?s?v.map(b=>c_(b,p)):v:void 0}getDiagnosticsForProject(u,s,d){if(this.suppressDiagnosticEvents)return;const{fileNames:f,languageServiceDisabled:p}=this.getProjectInfoWorker(d,void 0,!0,!0);if(p)return;const E=f.filter(J=>!J.includes("lib.d.ts"));if(E.length===0)return;const v=[],b=[],B=[],k=[],T=xl(d),M=this.projectService.ensureDefaultProjectForFile(T);for(const J of E)this.getCanonicalFileName(J)===this.getCanonicalFileName(d)?v.push(J):this.projectService.getScriptInfo(J).isScriptOpen()?b.push(J):t1(J)?k.push(J):B.push(J);const j=[...v,...b,...B,...k].map(J=>({fileName:J,project:M}));this.updateErrorCheck(u,j,s,!1)}configurePlugin(u){this.projectService.configurePlugin(u)}getSmartSelectionRange(u,s){const{locations:d}=u,{file:f,languageService:p}=this.getFileAndLanguageServiceForSyntacticOperation(u),E=H.checkDefined(this.projectService.getScriptInfo(f));return Vt(d,v=>{const b=this.getPosition(v,E),B=p.getSmartSelectionRange(f,b);return s?this.mapSelectionRange(B,E):B})}toggleLineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfo(d),E=this.getRange(u,p),v=f.toggleLineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}toggleMultilineComment(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.toggleMultilineComment(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}commentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.commentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}uncommentSelection(u,s){const{file:d,languageService:f}=this.getFileAndLanguageServiceForSyntacticOperation(u),p=this.projectService.getScriptInfoForNormalizedPath(d),E=this.getRange(u,p),v=f.uncommentSelection(d,E);if(s){const b=this.projectService.getScriptInfoForNormalizedPath(d);return v.map(B=>this.convertTextChangeToCodeEdit(B,b))}return v}mapSelectionRange(u,s){const d={textSpan:c_(u.textSpan,s)};return u.parent&&(d.parent=this.mapSelectionRange(u.parent,s)),d}getScriptInfoFromProjectService(u){const s=xl(u),d=this.projectService.getScriptInfoForNormalizedPath(s);return d||(this.projectService.logErrorForScriptInfoNotFound(s),v5.ThrowNoProject())}toProtocolCallHierarchyItem(u){const s=this.getScriptInfoFromProjectService(u.file);return{name:u.name,kind:u.kind,kindModifiers:u.kindModifiers,file:u.file,containerName:u.containerName,span:c_(u.span,s),selectionSpan:c_(u.selectionSpan,s)}}toProtocolCallHierarchyIncomingCall(u){const s=this.getScriptInfoFromProjectService(u.from.file);return{from:this.toProtocolCallHierarchyItem(u.from),fromSpans:u.fromSpans.map(d=>c_(d,s))}}toProtocolCallHierarchyOutgoingCall(u,s){return{to:this.toProtocolCallHierarchyItem(u.to),fromSpans:u.fromSpans.map(d=>c_(d,s))}}prepareCallHierarchy(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.projectService.getScriptInfoForNormalizedPath(s);if(f){const p=this.getPosition(u,f),E=d.getLanguageService().prepareCallHierarchy(s,p);return E&&Afe(E,v=>this.toProtocolCallHierarchyItem(v))}}provideCallHierarchyIncomingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyIncomingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyIncomingCall(E))}provideCallHierarchyOutgoingCalls(u){const{file:s,project:d}=this.getFileAndProject(u),f=this.getScriptInfoFromProjectService(s);return d.getLanguageService().provideCallHierarchyOutgoingCalls(s,this.getPosition(u,f)).map(E=>this.toProtocolCallHierarchyOutgoingCall(E,f))}getCanonicalFileName(u){const s=this.host.useCaseSensitiveFileNames?u:Ug(u);return Uo(s)}exit(){}notRequired(){return{responseRequired:!1}}requiredResponse(u){return{response:u,responseRequired:!0}}addProtocolHandler(u,s){if(this.handlers.has(u))throw new Error(`Protocol handler already exists for command "${u}"`);this.handlers.set(u,s)}setCurrentRequest(u){H.assert(this.currentRequestId===void 0),this.currentRequestId=u,this.cancellationToken.setRequest(u)}resetCurrentRequest(u){H.assert(this.currentRequestId===u),this.currentRequestId=void 0,this.cancellationToken.resetRequest(u)}executeWithRequestId(u,s){try{return this.setCurrentRequest(u),s()}finally{this.resetCurrentRequest(u)}}executeCommand(u){const s=this.handlers.get(u.command);if(s){const d=this.executeWithRequestId(u.seq,()=>s(u));return this.projectService.enableRequestedPlugins(),d}else return this.logger.msg(`Unrecognized JSON command:${nw(u)}`,"Err"),this.doOutput(void 0,"unknown",u.seq,!1,`Unrecognized JSON command: ${u.command}`),{responseRequired:!1}}onMessage(u){var s,d,f,p,E,v,b,B,k,T,M;this.gcTimer.scheduleCollect(),this.performanceData=void 0;let z;this.logger.hasLevel(2)&&(z=this.hrtime(),this.logger.hasLevel(3)&&this.logger.info(`request:${wM(this.toStringMessage(u))}`));let j,J;try{j=this.parseMessage(u),J=j.arguments&&j.arguments.file?j.arguments:void 0,(s=Gn)==null||s.instant(Gn.Phase.Session,"request",{seq:j.seq,command:j.command}),(d=mh)==null||d.logStartCommand(""+j.command,this.toStringMessage(u).substring(0,100)),(f=Gn)==null||f.push(Gn.Phase.Session,"executeCommand",{seq:j.seq,command:j.command},!0);const{response:K,responseRequired:Y}=this.executeCommand(j);if((p=Gn)==null||p.pop(),this.logger.hasLevel(2)){const oe=UQt(this.hrtime(z)).toFixed(4);Y?this.logger.perftrc(`${j.seq}::${j.command}: elapsed time (in milliseconds) ${oe}`):this.logger.perftrc(`${j.seq}::${j.command}: async elapsed time (in milliseconds) ${oe}`)}(E=mh)==null||E.logStopCommand(""+j.command,"Success"),(v=Gn)==null||v.instant(Gn.Phase.Session,"response",{seq:j.seq,command:j.command,success:!!K}),K?this.doOutput(K,j.command,j.seq,!0):Y&&this.doOutput(void 0,j.command,j.seq,!1,"No content available.")}catch(K){if((b=Gn)==null||b.popAll(),K instanceof b8){(B=mh)==null||B.logStopCommand(""+(j&&j.command),"Canceled: "+K),(k=Gn)==null||k.instant(Gn.Phase.Session,"commandCanceled",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command}),this.doOutput({canceled:!0},j.command,j.seq,!0);return}this.logErrorWorker(K,this.toStringMessage(u),J),(T=mh)==null||T.logStopCommand(""+(j&&j.command),"Error: "+K),(M=Gn)==null||M.instant(Gn.Phase.Session,"commandError",{seq:j==null?void 0:j.seq,command:j==null?void 0:j.command,message:K.message}),this.doOutput(void 0,j?j.command:"unknown",j?j.seq:0,!1,"Error processing request. "+K.message+` +`+K.stack)}}parseMessage(u){return JSON.parse(u)}toStringMessage(u){return u}getFormatOptions(u){return this.projectService.getFormatCodeOptions(u)}getPreferences(u){return this.projectService.getPreferences(u)}getHostFormatOptions(){return this.projectService.getHostFormatCodeOptions()}getHostPreferences(){return this.projectService.getHostPreferences()}}}}),g9,xge,Xct,edt,mte,pte,PNe,az,E9,ZK,hXt=o({"src/server/scriptVersionCache.ts"(){eC(),_9(),g9=4,xge=(t=>(t[t.PreStart=0]="PreStart",t[t.Start=1]="Start",t[t.Entire=2]="Entire",t[t.Mid=3]="Mid",t[t.End=4]="End",t[t.PostEnd=5]="PostEnd",t))(xge||{}),Xct=class{constructor(){this.goSubtree=!0,this.lineIndex=new az,this.endBranch=[],this.state=2,this.initialText="",this.trailingText="",this.lineIndex.root=new E9,this.startPath=[this.lineIndex.root],this.stack=[this.lineIndex.root]}get done(){return!1}insertLines(t,u){u&&(this.trailingText=""),t?t=this.initialText+t+this.trailingText:t=this.initialText+this.trailingText;const d=az.linesFromText(t).lines;d.length>1&&d[d.length-1]===""&&d.pop();let f,p;for(let v=this.endBranch.length-1;v>=0;v--)this.endBranch[v].updateCounts(),this.endBranch[v].charCount()===0&&(p=this.endBranch[v],v>0?f=this.endBranch[v-1]:f=this.branchNode);p&&f.remove(p);const E=this.startPath[this.startPath.length-1];if(d.length>0)if(E.text=d[0],d.length>1){let v=new Array(d.length-1),b=E;for(let T=1;T=0;){const T=this.startPath[B];v=T.insertAt(b,v),B--,b=T}let k=v.length;for(;k>0;){const T=new E9;T.add(this.lineIndex.root),v=T.insertAt(this.lineIndex.root,v),k=v.length,this.lineIndex.root=T}this.lineIndex.root.updateCounts()}else for(let v=this.startPath.length-2;v>=0;v--)this.startPath[v].updateCounts();else{this.startPath[this.startPath.length-2].remove(E);for(let b=this.startPath.length-2;b>=0;b--)this.startPath[b].updateCounts()}return this.lineIndex}post(t,u,s){s===this.lineCollectionAtBranch&&(this.state=4),this.stack.pop()}pre(t,u,s,d,f){const p=this.stack[this.stack.length-1];this.state===2&&f===1&&(this.state=1,this.branchNode=p,this.lineCollectionAtBranch=s);let E;function v(b){return b.isLeaf()?new ZK(""):new E9}switch(f){case 0:this.goSubtree=!1,this.state!==4&&p.add(s);break;case 1:this.state===4?this.goSubtree=!1:(E=v(s),p.add(E),this.startPath.push(E));break;case 2:this.state!==4?(E=v(s),p.add(E),this.startPath.push(E)):s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 3:this.goSubtree=!1;break;case 4:this.state!==4?this.goSubtree=!1:s.isLeaf()||(E=v(s),p.add(E),this.endBranch.push(E));break;case 5:this.goSubtree=!1,this.state!==1&&p.add(s);break}this.goSubtree&&this.stack.push(E)}leaf(t,u,s){this.state===1?this.initialText=s.text.substring(0,t):this.state===2?(this.initialText=s.text.substring(0,t),this.trailingText=s.text.substring(t+u)):this.trailingText=s.text.substring(t+u)}},edt=class{constructor(t,u,s){this.pos=t,this.deleteLen=u,this.insertedText=s}getTextChangeRange(){return jO(h1(this.pos,this.deleteLen),this.insertedText?this.insertedText.length:0)}},mte=class OF{constructor(){this.changes=[],this.versions=new Array(OF.maxVersions),this.minVersion=0,this.currentVersion=0}versionToIndex(u){if(!(uthis.currentVersion))return u%OF.maxVersions}currentVersionToIndex(){return this.currentVersion%OF.maxVersions}edit(u,s,d){this.changes.push(new edt(u,s,d)),(this.changes.length>OF.changeNumberThreshold||s>OF.changeLengthThreshold||d&&d.length>OF.changeLengthThreshold)&&this.getSnapshot()}getSnapshot(){return this._getSnapshot()}_getSnapshot(){let u=this.versions[this.currentVersionToIndex()];if(this.changes.length>0){let s=u.index;for(const d of this.changes)s=s.edit(d.pos,d.deleteLen,d.insertedText);u=new PNe(this.currentVersion+1,this,s,this.changes),this.currentVersion=u.version,this.versions[this.currentVersionToIndex()]=u,this.changes=[],this.currentVersion-this.minVersion>=OF.maxVersions&&(this.minVersion=this.currentVersion-OF.maxVersions+1)}return u}getSnapshotVersion(){return this._getSnapshot().version}getAbsolutePositionAndLineText(u){return this._getSnapshot().index.lineNumberToInfo(u)}lineOffsetToPosition(u,s){return this._getSnapshot().index.absolutePositionOfStartOfLine(u)+(s-1)}positionToLineOffset(u){return this._getSnapshot().index.positionToLineOffset(u)}lineToTextSpan(u){const s=this._getSnapshot().index,{lineText:d,absolutePosition:f}=s.lineNumberToInfo(u+1),p=d!==void 0?d.length:s.absolutePositionOfStartOfLine(u+2)-f;return h1(f,p)}getTextChangesBetweenVersions(u,s){if(u=this.minVersion){const d=[];for(let f=u+1;f<=s;f++){const p=this.versions[this.versionToIndex(f)];for(const E of p.changesSincePreviousVersion)d.push(E.getTextChangeRange())}return j2e(d)}else return;else return ij}getLineCount(){return this._getSnapshot().index.getLineCount()}static fromString(u){const s=new OF,d=new PNe(0,s,new az);s.versions[s.currentVersion]=d;const f=az.linesFromText(u);return d.index.load(f.lines),s}},mte.changeNumberThreshold=8,mte.changeLengthThreshold=256,mte.maxVersions=8,pte=mte,PNe=class q6t{constructor(u,s,d,f=qc){this.version=u,this.cache=s,this.index=d,this.changesSincePreviousVersion=f}getText(u,s){return this.index.getText(u,s-u)}getLength(){return this.index.getLength()}getChangeRange(u){if(u instanceof q6t&&this.cache===u.cache)return this.version<=u.version?ij:this.cache.getTextChangesBetweenVersions(u.version,this.version)}},az=class rje{constructor(){this.checkEdits=!1}absolutePositionOfStartOfLine(u){return this.lineNumberToInfo(u).absolutePosition}positionToLineOffset(u){const{oneBasedLine:s,zeroBasedColumn:d}=this.root.charOffsetToLineInfo(1,u);return{line:s,offset:d+1}}positionToColumnAndLineText(u){return this.root.charOffsetToLineInfo(1,u)}getLineCount(){return this.root.lineCount()}lineNumberToInfo(u){const s=this.getLineCount();if(u<=s){const{position:d,leaf:f}=this.root.lineNumberToInfo(u,0);return{absolutePosition:d,lineText:f&&f.text}}else return{absolutePosition:this.root.charCount(),lineText:void 0}}load(u){if(u.length>0){const s=[];for(let d=0;d0&&u{d=d.concat(E.text.substring(f,f+p))}}),d}getLength(){return this.root.charCount()}every(u,s,d){d||(d=this.root.charCount());const f={goSubtree:!0,done:!1,leaf(p,E,v){u(v,p,E)||(this.done=!0)}};return this.walk(s,d-s,f),!f.done}edit(u,s,d){if(this.root.charCount()===0)return H.assert(s===0),d!==void 0?(this.load(rje.linesFromText(d).lines),this):void 0;{let f;if(this.checkEdits){const v=this.getText(0,this.root.charCount());f=v.slice(0,u)+d+v.slice(u+s)}const p=new Xct;let E=!1;if(u>=this.root.charCount()){u=this.root.charCount()-1;const v=this.getText(u,1);d?d=v+d:d=v,s=0,E=!0}else if(s>0){const v=u+s,{zeroBasedColumn:b,lineText:B}=this.positionToColumnAndLineText(v);b===0&&(s+=B.length,d=d?d+B:B)}if(this.root.walk(u,s,p),p.insertLines(d,E),this.checkEdits){const v=p.lineIndex.getText(0,p.lineIndex.getLength());H.assert(f===v,"buffer edit mismatch")}return p.lineIndex}}static buildTreeFromBottom(u){if(u.length0?d[f]=p:d.pop(),{lines:d,lineMap:s}}},E9=class aje{constructor(u=[]){this.children=u,this.totalChars=0,this.totalLines=0,u.length&&this.updateCounts()}isLeaf(){return!1}updateCounts(){this.totalChars=0,this.totalLines=0;for(const u of this.children)this.totalChars+=u.charCount(),this.totalLines+=u.lineCount()}execWalk(u,s,d,f,p){return d.pre&&d.pre(u,s,this.children[f],this,p),d.goSubtree?(this.children[f].walk(u,s,d),d.post&&d.post(u,s,this.children[f],this,p)):d.goSubtree=!0,d.done}skipChild(u,s,d,f,p){f.pre&&!f.done&&(f.pre(u,s,this.children[d],this,p),f.goSubtree=!0)}walk(u,s,d){let f=0,p=this.children[f].charCount(),E=u;for(;E>=p;)this.skipChild(E,s,f,d,0),E-=p,f++,p=this.children[f].charCount();if(E+s<=p){if(this.execWalk(E,s,d,f,2))return}else{if(this.execWalk(E,p-E,d,f,1))return;let v=s-(p-E);for(f++,p=this.children[f].charCount();v>p;){if(this.execWalk(0,p,d,f,3))return;v-=p,f++,p=this.children[f].charCount()}if(v>0&&this.execWalk(0,v,d,f,4))return}if(d.pre){const v=this.children.length;if(fs)return p.isLeaf()?{oneBasedLine:u,zeroBasedColumn:s,lineText:p.text}:p.charOffsetToLineInfo(u,s);s-=p.charCount(),u+=p.lineCount()}const d=this.lineCount();if(d===0)return{oneBasedLine:1,zeroBasedColumn:0,lineText:void 0};const f=H.checkDefined(this.lineNumberToInfo(d,0).leaf);return{oneBasedLine:d,zeroBasedColumn:f.charCount(),lineText:void 0}}lineNumberToInfo(u,s){for(const d of this.children){const f=d.lineCount();if(f>=u)return d.isLeaf()?{position:s,leaf:d}:d.lineNumberToInfo(u,s);u-=f,s+=d.charCount()}return{position:s,leaf:void 0}}splitAfter(u){let s;const d=this.children.length;u++;const f=u;if(u=0;M--)b[M].children.length===0&&b.pop()}E&&b.push(E),this.updateCounts();for(let k=0;kXQ,ActionPackageInstalled:()=>I9e,ActionSet:()=>QQ,ActionWatchTypingLocations:()=>BH,Arguments:()=>ghe,AutoImportProviderProject:()=>sge,AuxiliaryProject:()=>age,CharRangeSection:()=>xge,CloseFileWatcherEvent:()=>dte,CommandNames:()=>TNe,ConfigFileDiagEvent:()=>ate,ConfiguredProject:()=>lge,CreateDirectoryWatcherEvent:()=>cte,CreateFileWatcherEvent:()=>lte,Errors:()=>v5,EventBeginInstallTypes:()=>mhe,EventEndInstallTypes:()=>phe,EventInitializationFailed:()=>O9e,EventTypesRegistry:()=>R9e,ExternalProject:()=>Qee,GcTimer:()=>Xpe,InferredProject:()=>rge,LargeFileReferencedEvent:()=>rte,LineIndex:()=>az,LineLeaf:()=>ZK,LineNode:()=>E9,LogLevel:()=>qpe,Msg:()=>Zpe,OpenFileInfoTelemetryEvent:()=>hge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ste,ProjectKind:()=>uz,ProjectLanguageServiceStateEvent:()=>ote,ProjectLoadingFinishEvent:()=>ute,ProjectLoadingStartEvent:()=>nte,ProjectReferenceProjectLoadKind:()=>pge,ProjectService:()=>gge,ProjectsUpdatedInBackgroundEvent:()=>$K,ScriptInfo:()=>ige,ScriptVersionCache:()=>pte,Session:()=>NNe,TextStorage:()=>tge,ThrottledOperations:()=>Qpe,TypingsCache:()=>nge,allFilesAreJsOrDts:()=>lNe,allRootFilesAreJsOrDts:()=>sNe,asNormalizedPath:()=>Tct,convertCompilerOptions:()=>Xee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>dge,convertTypeAcquisition:()=>hNe,convertUserPreferences:()=>fNe,convertWatchOptions:()=>JK,countEachFileTypes:()=>WK,createInstallTypingsRequest:()=>wct,createModuleSpecifierCache:()=>bNe,createNormalizedPathMap:()=>Lct,createPackageJsonCache:()=>yNe,createSortedArray:()=>JLe,emptyArray:()=>qc,findArgument:()=>bit,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>qK,formatMessage:()=>kNe,getBaseConfigFileName:()=>Ype,getLocationInNewDocument:()=>BNe,hasArgument:()=>Cit,hasNoTypeScriptSource:()=>cNe,indent:()=>wM,isBackgroundProject:()=>GK,isConfigFile:()=>DNe,isConfiguredProject:()=>Xv,isDynamicFileName:()=>KK,isExternalProject:()=>uge,isInferredProject:()=>Aw,isInferredProjectName:()=>HLe,makeAutoImportProviderProjectName:()=>WLe,makeAuxiliaryProjectName:()=>GLe,makeInferredProjectName:()=>KLe,maxFileSize:()=>ite,maxProgramSizeForNonTsFiles:()=>tte,normalizedPathToPath:()=>HK,nowString:()=>yit,nullCancellationToken:()=>wNe,nullTypingsInstaller:()=>Yee,projectContainsInfoDirectly:()=>p9,protocol:()=>oNe,removeSorted:()=>Nct,stringifyIndented:()=>nw,toEvent:()=>FNe,toNormalizedPath:()=>xl,tryConvertScriptKindName:()=>cge,typingsInstaller:()=>jLe,updateProjectIfDirty:()=>Jm});var _9=o({"src/server/_namespaces/ts.server.ts"(){eX(),VLe(),kQt(),FQt(),AQt(),SQt(),TQt(),MQt(),OQt(),GQt(),JQt(),$Qt(),dXt(),hXt()}}),idt={};h(idt,{ANONYMOUS:()=>GX,AccessFlags:()=>Goe,AssertionLevel:()=>goe,AssignmentDeclarationKind:()=>ese,AssignmentKind:()=>Gle,Associativity:()=>$le,BreakpointResolver:()=>Ome,BuilderFileEmit:()=>G1e,BuilderProgramKind:()=>J1e,BuilderState:()=>Gp,BundleFileSectionKind:()=>_se,CallHierarchy:()=>o9,CharacterCodes:()=>dse,CheckFlags:()=>joe,CheckMode:()=>tQ,ClassificationType:()=>Mhe,ClassificationTypeNames:()=>Phe,CommentDirectiveType:()=>koe,Comparison:()=>x,CompletionInfoFlags:()=>Ahe,CompletionTriggerKind:()=>Che,Completions:()=>h9,ContainerFlags:()=>zde,ContextFlags:()=>Toe,Debug:()=>H,DiagnosticCategory:()=>CO,Diagnostics:()=>F,DocumentHighlights:()=>UX,ElementFlags:()=>Woe,EmitFlags:()=>xU,EmitHint:()=>pse,EmitOnly:()=>Aoe,EndOfLineState:()=>whe,EnumKind:()=>Ooe,ExitStatus:()=>Soe,ExportKind:()=>jfe,Extension:()=>hse,ExternalEmitHelpers:()=>mse,FileIncludeKind:()=>dU,FilePreprocessingDiagnosticsKind:()=>Foe,FileSystemEntryKind:()=>yse,FileWatcherEventKind:()=>bse,FindAllReferences:()=>Y0,FlattenLevel:()=>t1e,FlowFlags:()=>vO,ForegroundColorEscapeSequences:()=>I1e,FunctionFlags:()=>Jle,GeneratedIdentifierFlags:()=>cU,GetLiteralTextFlags:()=>Hle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>yhe,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>e1e,ImportKind:()=>Ofe,ImportsNotUsedAsValues:()=>ase,IndentStyle:()=>khe,IndexFlags:()=>Joe,IndexKind:()=>qoe,InferenceFlags:()=>Qoe,InferencePriority:()=>Yoe,InlayHintKind:()=>bhe,InlayHints:()=>wpe,InternalEmitFlags:()=>fse,InternalSymbolName:()=>Voe,InvalidatedProjectKind:()=>fhe,JSDocParsingMode:()=>vse,JsDoc:()=>Qv,JsTyping:()=>s3,JsxEmit:()=>rse,JsxFlags:()=>boe,JsxReferenceKind:()=>$oe,LanguageServiceMode:()=>Dhe,LanguageVariant:()=>lse,LexicalEnvironmentFlags:()=>Ese,ListFormat:()=>Dse,LogLevel:()=>_oe,MemberOverrideStatus:()=>Boe,ModifierFlags:()=>sU,ModuleDetectionKind:()=>tse,ModuleInstanceState:()=>Mde,ModuleKind:()=>AN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>ece,NavigateTo:()=>l8e,NavigationBar:()=>D8e,NewLineKind:()=>ose,NodeBuilderFlags:()=>Loe,NodeCheckFlags:()=>Hoe,NodeFactoryFlags:()=>sce,NodeFlags:()=>oU,NodeResolutionFeatures:()=>Lde,ObjectFlags:()=>pU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Ule,OrganizeImports:()=>Jp,OrganizeImportsMode:()=>vhe,OuterExpressionKinds:()=>gse,OutliningElementsCollector:()=>Ppe,OutliningSpanKind:()=>She,OutputFileType:()=>Bhe,PackageJsonAutoImportPreference:()=>_he,PackageJsonDependencyGroup:()=>Ehe,PatternMatchKind:()=>qX,PollingInterval:()=>vU,PollingWatchKind:()=>use,PragmaKindFlags:()=>xse,PrivateIdentifierKind:()=>pce,ProcessLevel:()=>r1e,ProgramUpdateLevel:()=>x1e,QuotePreference:()=>Nfe,RelationComparisonResult:()=>lU,Rename:()=>Wee,ScriptElementKind:()=>Lhe,ScriptElementKindModifier:()=>Nhe,ScriptKind:()=>EU,ScriptSnapshot:()=>iX,ScriptTarget:()=>sse,SemanticClassificationFormat:()=>xhe,SemanticMeaning:()=>Lfe,SemicolonPreference:()=>Fhe,SignatureCheckMode:()=>iQ,SignatureFlags:()=>gU,SignatureHelp:()=>PK,SignatureKind:()=>Uoe,SmartSelectionRange:()=>Ipe,SnippetKind:()=>DU,SortKind:()=>poe,StructureIsReused:()=>hU,SymbolAccessibility:()=>Moe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>TH,SymbolFlags:()=>fU,SymbolFormatFlags:()=>Poe,SyntaxKind:()=>aU,SyntheticSymbolKind:()=>zoe,Ternary:()=>Xoe,ThrottledCancellationToken:()=>Rme,TokenClass:()=>The,TokenFlags:()=>yoe,TransformFlags:()=>_U,TypeFacts:()=>eQ,TypeFlags:()=>mU,TypeFormatFlags:()=>Noe,TypeMapKind:()=>Zoe,TypePredicateKind:()=>Ioe,TypeReferenceSerializationKind:()=>Roe,UnionReduction:()=>woe,UpToDateStatusType:()=>lhe,VarianceFlags:()=>Koe,Version:()=>Np,VersionRange:()=>_O,WatchDirectoryFlags:()=>cse,WatchDirectoryKind:()=>nse,WatchFileKind:()=>ise,WatchLogLevel:()=>v1e,WatchType:()=>cd,accessPrivateIdentifier:()=>i7e,addDisposableResourceHelper:()=>iY,addEmitFlags:()=>n_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>jYe,addObjectAllocatorPatcher:()=>uke,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>jP,addSyntheticTrailingComment:()=>BZ,addToSeen:()=>Rp,advancedAsyncSuperHelper:()=>yV,affectsDeclarationPathOptionDeclarations:()=>gde,affectsEmitOptionDeclarations:()=>pde,allKeysStartWithDot:()=>UY,altDirectorySeparator:()=>wO,and:()=>eU,append:()=>Di,appendIfUnique:()=>t0,arrayFrom:()=>Ea,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>bke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>pO,arrayToNumericMap:()=>roe,arraysEqual:()=>Zt,assertType:()=>vqe,assign:()=>HE,assignHelper:()=>zZ,asyncDelegator:()=>RZ,asyncGeneratorHelper:()=>IZ,asyncSuperHelper:()=>bV,asyncValues:()=>OZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>VZ,base64decode:()=>Jye,base64encode:()=>Gye,binarySearch:()=>Kl,binarySearchKey:()=>ba,bindSourceFile:()=>PAe,breakIntoCharacterSpans:()=>i8e,breakIntoWordSpans:()=>n8e,buildLinkParts:()=>kSe,buildOpts:()=>IY,buildOverload:()=>yct,bundlerModuleNameResolver:()=>CAe,canBeConvertedToAsync:()=>Yfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>aV,canHaveFlowNode:()=>wj,canHaveIllegalDecorators:()=>Wce,canHaveIllegalModifiers:()=>RFe,canHaveIllegalType:()=>gQe,canHaveIllegalTypeParameters:()=>IFe,canHaveJSDoc:()=>Tj,canHaveLocals:()=>qE,canHaveModifiers:()=>Kp,canHaveSymbol:()=>Yg,canJsonReportNoInputFiles:()=>oM,canProduceDiagnostics:()=>gQ,canUsePropertyAccess:()=>Rle,canWatchAffectingLocation:()=>l9e,canWatchAtTypes:()=>s9e,canWatchDirectoryOrFile:()=>OQ,cartesianProduct:()=>s2e,cast:()=>Po,chainBundle:()=>Wp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>SO,changeCompilerHostLikeToUseCache:()=>CH,changeExtension:()=>Tv,changesAffectModuleResolution:()=>ZU,changesAffectingProgramStructure:()=>Bbe,childIsDecorated:()=>XN,classElementOrClassElementParameterIsDecorated:()=>w0e,classHasClassThisAssignment:()=>i1e,classHasDeclaredOrExplicitlyAssignedName:()=>n1e,classHasExplicitlyAssignedName:()=>fQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>XZ,classPrivateFieldInHelper:()=>tY,classPrivateFieldSetHelper:()=>eY,classicNameResolver:()=>wAe,classifier:()=>hBe,cleanExtendedConfigCache:()=>yQ,clear:()=>gu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>E1e,climbPastPropertyAccess:()=>uX,climbPastPropertyOrElementAccess:()=>Q9e,clone:()=>aoe,cloneCompilerOptions:()=>efe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>Vm,codefix:()=>I1,collapseTextChangeRangesAcrossMultipleVersions:()=>j2e,collectExternalModuleInfo:()=>Zde,combine:()=>co,combinePaths:()=>hr,commentPragmas:()=>bO,commonOptionsWithBuild:()=>XV,commonPackageFolders:()=>Zle,compact:()=>vr,compareBooleans:()=>h2,compareDataObjects:()=>_le,compareDiagnostics:()=>yP,compareDiagnosticsSkipRelatedInformation:()=>Qq,compareEmitHelpers:()=>eFe,compareNumberOfDirectorySeparators:()=>nV,comparePaths:()=>gv,comparePathsCaseInsensitive:()=>Uqe,comparePathsCaseSensitive:()=>$qe,comparePatternKeys:()=>wde,compareProperties:()=>u2e,compareStringsCaseInsensitive:()=>Q$,compareStringsCaseInsensitiveEslintCompatible:()=>t2e,compareStringsCaseSensitive:()=>fh,compareStringsCaseSensitiveUI:()=>gO,compareTextSpans:()=>Y$,compareValues:()=>rl,compileOnSaveCommandLineOption:()=>YV,compilerOptionsAffectDeclarationPath:()=>pke,compilerOptionsAffectEmit:()=>mke,compilerOptionsAffectSemanticDiagnostics:()=>fke,compilerOptionsDidYouMeanDiagnostics:()=>iH,compilerOptionsIndicateEsModules:()=>afe,compose:()=>Dqe,computeCommonSourceDirectoryOfFilenames:()=>j7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>LN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>SU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>V1e,computeSuggestionDiagnostics:()=>Ufe,concatenate:()=>mi,concatenateDiagnosticMessageChains:()=>ske,consumesNodeCoreModules:()=>RX,contains:()=>kt,containsIgnoredPath:()=>LP,containsObjectRestOrSpread:()=>HV,containsParseError:()=>O8,containsPath:()=>JE,convertCompilerOptionsForTelemetry:()=>aAe,convertCompilerOptionsFromJson:()=>DXe,convertJsonOption:()=>Sk,convertToBase64:()=>Wye,convertToJson:()=>UV,convertToObject:()=>iAe,convertToOptionsWithAbsolutePaths:()=>lde,convertToRelativePath:()=>TN,convertToTSConfig:()=>rXe,convertTypeAcquisitionFromJson:()=>xXe,copyComments:()=>Rk,copyEntries:()=>YU,copyLeadingComments:()=>cw,copyProperties:()=>ooe,copyTrailingAsLeadingComments:()=>YH,copyTrailingComments:()=>jM,couldStartTrivia:()=>w2e,countWhere:()=>ui,createAbstractBuilder:()=>wtt,createAccessorPropertyBackingField:()=>Jce,createAccessorPropertyGetRedirector:()=>JFe,createAccessorPropertySetRedirector:()=>$Fe,createBaseNodeFactory:()=>Rke,createBinaryExpressionTrampoline:()=>AY,createBindingHelper:()=>xB,createBuildInfo:()=>EH,createBuilderProgram:()=>H1e,createBuilderProgramUsingProgramBuildInfo:()=>a9e,createBuilderStatusReporter:()=>b9e,createCacheWithRedirects:()=>yde,createCacheableExportInfoMap:()=>zfe,createCachedDirectoryStructureHost:()=>CQ,createClassNamedEvaluationHelperBlock:()=>o7e,createClassThisAssignmentBlock:()=>r7e,createClassifier:()=>$it,createCommentDirectivesMap:()=>Mbe,createCompilerDiagnostic:()=>dc,createCompilerDiagnosticForInvalidCustomType:()=>YFe,createCompilerDiagnosticFromMessageChain:()=>Yq,createCompilerHost:()=>V7e,createCompilerHostFromProgramHost:()=>rhe,createCompilerHostWorker:()=>y1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>k0e,createDiagnosticForNode:()=>Tu,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>lj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>G4,createDiagnosticForRange:()=>$be,createDiagnosticMessageChainFromDiagnostic:()=>Jbe,createDiagnosticReporter:()=>FH,createDocumentPositionMapper:()=>ZAe,createDocumentRegistry:()=>GSe,createDocumentRegistryInternal:()=>Kfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>$1e,createEmitHelperFactory:()=>Xke,createEmptyExports:()=>PV,createExpressionForJsxElement:()=>wFe,createExpressionForJsxFragment:()=>TFe,createExpressionForObjectLiteralElementLike:()=>LFe,createExpressionForPropertyName:()=>Rce,createExpressionFromEntityName:()=>MV,createExternalHelpersImportDeclarationIfNeeded:()=>Vce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>rq,createForOfBindingStatement:()=>Ice,createGetCanonicalFileName:()=>N1,createGetSourceFile:()=>C1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>T7e,createGetSymbolWalker:()=>MAe,createIncrementalCompilerHost:()=>ohe,createIncrementalProgram:()=>v9e,createInputFiles:()=>HYe,createInputFilesWithFilePaths:()=>ace,createInputFilesWithFileTexts:()=>oce,createJsxFactoryExpression:()=>zce,createLanguageService:()=>aBe,createLanguageServiceSourceFile:()=>Dee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>hM,createModuleNotFoundChain:()=>l0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>B1e,createModuleResolutionLoaderUsingGlobalCache:()=>f9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>Tm,createNodeConverters:()=>jke,createNodeFactory:()=>pV,createOptionNameMap:()=>wY,createOverload:()=>$pe,createPackageJsonImportFilter:()=>KM,createPackageJsonInfo:()=>yfe,createParenthesizerRules:()=>Oke,createPatternMatcher:()=>ZSe,createPrependNodes:()=>M1e,createPrinter:()=>Jv,createPrinterWithDefaults:()=>p1e,createPrinterWithRemoveComments:()=>eb,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>g1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>_H,createProgram:()=>wQ,createProgramHost:()=>ahe,createPropertyNameNodeForIdentifierOrLiteral:()=>gZ,createQueue:()=>Z$,createRange:()=>d4,createRedirectedBuilderProgram:()=>W1e,createResolutionCache:()=>q1e,createRuntimeTypeSerializer:()=>h7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>Btt,createSet:()=>soe,createSolutionBuilder:()=>Jtt,createSolutionBuilderHost:()=>Wtt,createSolutionBuilderWithWatch:()=>$tt,createSolutionBuilderWithWatchHost:()=>Gtt,createSortedArray:()=>ht,createSourceFile:()=>WV,createSourceMapGenerator:()=>JAe,createSourceMapSource:()=>KYe,createSuperAccessVariableStatement:()=>pQ,createSymbolTable:()=>Ho,createSymlinkCache:()=>kle,createSystemWatchFunctions:()=>b2e,createTextChange:()=>HH,createTextChangeFromStartLength:()=>_X,createTextChangeRange:()=>jO,createTextRangeFromNode:()=>nfe,createTextRangeFromSpan:()=>EX,createTextSpan:()=>h1,createTextSpanFromBounds:()=>Kc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>ife,createTextWriter:()=>Hj,createTokenRange:()=>ple,createTypeChecker:()=>jAe,createTypeReferenceDirectiveResolutionCache:()=>WY,createTypeReferenceResolutionLoader:()=>AQ,createUnparsedSourceFile:()=>rce,createWatchCompilerHost:()=>Vtt,createWatchCompilerHostOfConfigFile:()=>_9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>D9e,createWatchFactory:()=>uhe,createWatchHost:()=>nhe,createWatchProgram:()=>Htt,createWatchStatusReporter:()=>m9e,createWriteFileMeasuringIO:()=>b1e,declarationNameToString:()=>k0,decodeMappings:()=>$de,decodedTextSpanIntersectsWith:()=>OO,decorateHelper:()=>TZ,deduplicate:()=>li,defaultIncludeSpec:()=>jY,defaultInitCompilerOptions:()=>RY,defaultMaximumTruncationLength:()=>cV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>ol,displayPart:()=>yf,displayPartsToString:()=>_K,disposeEmitNodes:()=>lce,disposeResourcesHelper:()=>nY,documentSpansEqual:()=>kX,dumpTracingLegend:()=>x2e,elementAt:()=>qD,elideNodes:()=>GFe,emitComments:()=>Nye,emitDetachedComments:()=>Pye,emitFiles:()=>DQ,emitFilesAndReportErrors:()=>KQ,emitFilesAndReportErrorsAndGetExitStatus:()=>E9e,emitModuleKindIsNonNodeESM:()=>Xq,emitNewLineBeforeLeadingCommentOfPosition:()=>Lye,emitNewLineBeforeLeadingComments:()=>wye,emitNewLineBeforeLeadingCommentsOfPosition:()=>Tye,emitSkippedWithNoDiagnostics:()=>zQ,emitUsingBuildInfo:()=>z7e,emptyArray:()=>Dt,emptyFileSystemEntries:()=>kZ,emptyMap:()=>uU,emptyOptions:()=>m4,emptySet:()=>c2e,endsWith:()=>lc,ensurePathIsNonModuleName:()=>f2,ensureScriptKind:()=>lZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>iU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>PZ,escapeJsxAttributeString:()=>tle,escapeLeadingUnderscores:()=>Sl,escapeNonAsciiString:()=>Vj,escapeSnippetText:()=>j2,escapeString:()=>Sv,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>vY,explainFiles:()=>Q1e,explainIfFileIsRedirectAndImpliedFormat:()=>X1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>QZ,expressionResultIsUnused:()=>kke,extend:()=>q$,extendsHelper:()=>HZ,extensionFromPath:()=>y7,extensionIsTS:()=>hZ,extensionsNotSupportingExtensionlessResolution:()=>mV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>Hc,fileIncludeReasonToDiagnostics:()=>ihe,fileShouldUseJavaScriptRequire:()=>Tfe,filter:()=>ti,filterMutate:()=>qu,filterSemanticDiagnostics:()=>TQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>hoe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>SY,findConfigFile:()=>O7e,findContainingList:()=>lX,findDiagnosticForNode:()=>ISe,findFirstNonJsxWhitespaceToken:()=>nSe,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>iSe,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>nb,findPackageJson:()=>MSe,findPackageJsons:()=>bfe,findPrecedingMatchingToken:()=>pX,findPrecedingToken:()=>id,findSuperStatementIndexPath:()=>cQ,findTokenOnLeftOfPosition:()=>hX,findUseStrictPrologue:()=>jce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>ja,firstOrOnly:()=>Sfe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Xfe,flatMap:()=>Vu,flatMapIterator:()=>ga,flatMapToMutable:()=>Nr,flatten:()=>Ha,flattenCommaList:()=>UFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>X2,flattenDiagnosticMessageText:()=>cE,forEach:()=>L,forEachAncestor:()=>wbe,forEachAncestorDirectory:()=>qg,forEachChild:()=>ao,forEachChildRecursively:()=>rM,forEachEmittedFile:()=>f1e,forEachEnclosingBlockScopeContainer:()=>Kbe,forEachEntry:()=>f1,forEachExternalModuleToImportFrom:()=>Rfe,forEachImportClauseDeclaration:()=>Sq,forEachKey:()=>q_,forEachLeadingCommentRange:()=>PO,forEachNameInAccessChainWalkingLeft:()=>ike,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>w1e,forEachReturnStatement:()=>k2,forEachRight:()=>R,forEachTrailingCommentRange:()=>MO,forEachTsConfigPropArray:()=>fj,forEachUnique:()=>dfe,forEachYieldExpression:()=>qbe,forSomeAncestorDirectory:()=>cYe,formatColorAndReset:()=>tb,formatDiagnostic:()=>k1e,formatDiagnostics:()=>dtt,formatDiagnosticsWithColorAndContext:()=>H7e,formatGeneratedName:()=>Vv,formatGeneratedNamePart:()=>RB,formatLocation:()=>F1e,formatMessage:()=>vle,formatStringFromArgs:()=>t3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Wle,fullTripleSlashReferencePathRegEx:()=>Kle,generateDjb2Hash:()=>SN,generateTSConfig:()=>cXe,generatorHelper:()=>qZ,getAdjustedReferenceLocation:()=>Uhe,getAdjustedRenameLocation:()=>dX,getAliasDeclarationFromName:()=>W0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Qde,getAllDecoratorsOfClassElement:()=>hQ,getAllJSDocTags:()=>Kse,getAllJSDocTagsOfKind:()=>bZe,getAllKeys:()=>wm,getAllProjectOutputs:()=>_Q,getAllSuperTypeNodes:()=>rP,getAllUnscopedEmitHelpers:()=>mce,getAllowJSCompilerOption:()=>wv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Av,getAnyExtensionFromPath:()=>wN,getAreDeclarationMapsEnabled:()=>tZ,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>Rse,getAssignedNameOfIdentifier:()=>DM,getAssignmentDeclarationKind:()=>ec,getAssignmentDeclarationPropertyAccessKind:()=>kj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>KY,getBaseFileName:()=>Bc,getBinaryOperatorPrecedence:()=>jj,getBuildInfo:()=>xQ,getBuildInfoFileVersionMap:()=>K1e,getBuildInfoText:()=>M7e,getBuildOrderFromAnyBuildOrder:()=>UQ,getBuilderCreationParameters:()=>IQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>w2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>vP,getCombinedModifierFlags:()=>p2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>zse,getCommentRange:()=>uE,getCommonSourceDirectory:()=>kM,getCommonSourceDirectoryOfConfig:()=>FM,getCompilerOptionValue:()=>nZ,getCompilerOptionsDiffValue:()=>sXe,getConditions:()=>U2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>Jke,getContainerFlags:()=>Pde,getContainerNode:()=>Mk,getContainingClass:()=>Qd,getContainingClassExcludingClassDecorators:()=>mq,getContainingClassStaticBlock:()=>uye,getContainingFunction:()=>Pm,getContainingFunctionDeclaration:()=>nye,getContainingFunctionOrClassStaticBlock:()=>fq,getContainingNodeArray:()=>Fke,getContainingObjectLiteralElement:()=>DK,getContextualTypeFromParent:()=>wX,getContextualTypeFromParentOrAncestorTypeNode:()=>cX,getCurrentTime:()=>SH,getDeclarationDiagnostics:()=>L7e,getDeclarationEmitExtensionForPath:()=>Wj,getDeclarationEmitOutputFilePath:()=>kye,getDeclarationEmitOutputFilePathWorker:()=>Iq,getDeclarationFromName:()=>uP,getDeclarationModifierFlagsFromSymbol:()=>h4,getDeclarationOfKind:()=>Bl,getDeclarationsOfKind:()=>Abe,getDeclaredExpandoInitializer:()=>vj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>_ee,getDefaultExportInfoWorker:()=>$X,getDefaultFormatCodeSettings:()=>tX,getDefaultLibFileName:()=>IO,getDefaultLibFilePath:()=>oBe,getDefaultLikeExportInfo:()=>JX,getDiagnosticText:()=>QQe,getDiagnosticsWithinSpan:()=>RSe,getDirectoryPath:()=>dr,getDirectoryToWatchFailedLookupLocation:()=>U1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>d9e,getDocumentPositionMapper:()=>$fe,getESModuleInterop:()=>t_,getEditsForFileRename:()=>$Se,getEffectiveBaseTypeNode:()=>Xg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Bq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>xj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Dh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Rye,getEffectiveModifierFlagsNoCache:()=>Oye,getEffectiveReturnTypeNode:()=>Z4,getEffectiveSetAccessorTypeAnnotationNode:()=>Bye,getEffectiveTypeAnnotationNode:()=>m1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>dM,getElementOrPropertyAccessArgumentExpressionOrName:()=>Aq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>f4,getEmitFlags:()=>bs,getEmitHelpers:()=>wZ,getEmitModuleDetectionKind:()=>lke,getEmitModuleKind:()=>p1,getEmitModuleResolutionKind:()=>g1,getEmitScriptTarget:()=>js,getEmitStandardClassFields:()=>hke,getEnclosingBlockScopeContainer:()=>QE,getEnclosingContainer:()=>y0e,getEncodedSemanticClassifications:()=>Vfe,getEncodedSyntacticClassifications:()=>Hfe,getEndLinePosition:()=>rj,getEntityNameFromTypeNode:()=>gj,getEntrypointsFromPackageJsonInfo:()=>Ade,getErrorCountForSummary:()=>VQ,getErrorSpanForNode:()=>b2,getErrorSummaryText:()=>p9e,getEscapedTextOfIdentifierOrLiteral:()=>sP,getEscapedTextOfJsxAttributeName:()=>zP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>kv,getExportAssignmentExpression:()=>G0e,getExportInfoMap:()=>iK,getExportNeedsImportStarHelper:()=>YAe,getExpressionAssociativity:()=>Y0e,getExpressionPrecedence:()=>cP,getExternalHelpersModuleName:()=>IV,getExternalModuleImportEqualsDeclarationExpression:()=>eP,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>bye,getExternalModuleNameFromPath:()=>nle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>L0e,getFallbackOptions:()=>vH,getFileEmitOutput:()=>q7e,getFileMatcherPatterns:()=>sZ,getFileNamesFromConfigSpecs:()=>sM,getFileWatcherEventKind:()=>Cse,getFilesInErrorForSummary:()=>HQ,getFirstConstructorWithBody:()=>e3,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>BSe,getFirstProjectOutput:()=>m1e,getFixableErrorSpanExpression:()=>Ffe,getFormatCodeSettingsForWriting:()=>HX,getFullWidth:()=>nj,getFunctionFlags:()=>kd,getHeritageClause:()=>zj,getHostSignatureFromJSDoc:()=>Fv,getIdentifierAutoGenerate:()=>UYe,getIdentifierGeneratedImportReference:()=>Qke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>yH,getImpliedNodeFormatForFileWorker:()=>N1e,getImportNeedsImportDefaultHelper:()=>qde,getImportNeedsImportStarHelper:()=>sQ,getIndentSize:()=>oB,getIndentString:()=>Mq,getInferredLibraryNameResolveFrom:()=>BQ,getInitializedVariables:()=>xP,getInitializerOfBinaryExpression:()=>I0e,getInitializerOfBindingOrAssignmentElement:()=>OV,getInterfaceBaseTypeNodes:()=>aP,getInternalEmitFlags:()=>Mp,getInvokedExpression:()=>Eq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>q2e,getJSDocClassTag:()=>Ose,getJSDocCommentRanges:()=>A0e,getJSDocCommentsAndTags:()=>O0e,getJSDocDeprecatedTag:()=>jse,getJSDocDeprecatedTagNoCache:()=>ibe,getJSDocEnumTag:()=>Vse,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>Z2e,getJSDocOverrideTagNoCache:()=>tbe,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>G2e,getJSDocPrivateTag:()=>_Ze,getJSDocPrivateTagNoCache:()=>Q2e,getJSDocProtectedTag:()=>DZe,getJSDocProtectedTagNoCache:()=>X2e,getJSDocPublicTag:()=>EZe,getJSDocPublicTagNoCache:()=>Y2e,getJSDocReadonlyTag:()=>xZe,getJSDocReadonlyTagNoCache:()=>ebe,getJSDocReturnTag:()=>nbe,getJSDocReturnType:()=>HO,getJSDocRoot:()=>nP,getJSDocSatisfiesExpressionType:()=>jle,getJSDocSatisfiesTag:()=>Hse,getJSDocTags:()=>bv,getJSDocTagsNoCache:()=>CZe,getJSDocTemplateTag:()=>vZe,getJSDocThisTag:()=>PU,getJSDocType:()=>Cv,getJSDocTypeAliasName:()=>Kce,getJSDocTypeAssertionType:()=>bY,getJSDocTypeParameterDeclarations:()=>Vq,getJSDocTypeParameterTags:()=>J2e,getJSDocTypeParameterTagsNoCache:()=>$2e,getJSDocTypeTag:()=>vv,getJSXImplicitImportBase:()=>rZ,getJSXRuntimeImport:()=>aZ,getJSXTransformEnabled:()=>uZ,getKeyForCompilerOptions:()=>bde,getLanguageVariant:()=>Qj,getLastChild:()=>Dle,getLeadingCommentRanges:()=>G_,getLeadingCommentRangesOfNode:()=>F0e,getLeftmostAccessExpression:()=>bP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>T1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Gde,getLineOfLocalPosition:()=>hP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>np,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Yye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Zye,getLinesBetweenPositions:()=>NN,getLinesBetweenRangeEndAndRangeStart:()=>gle,getLinesBetweenRangeEndPositions:()=>sYe,getLiteralText:()=>zbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>AH,getMappedContextSpan:()=>hfe,getMappedDocumentSpan:()=>FX,getMappedLocation:()=>IM,getMatchedFileSpec:()=>ehe,getMatchedIncludeSpec:()=>the,getMeaningFromDeclaration:()=>LH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Zbe,getModeForFileReference:()=>FQ,getModeForResolutionAtIndex:()=>A1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>g2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>NQ,getModuleSpecifierEndingPreference:()=>wle,getModuleSpecifierResolverHost:()=>ofe,getNameForExportedSymbol:()=>OX,getNameFromIndexInfo:()=>Wbe,getNameFromPropertyName:()=>GH,getNameOfAccessExpression:()=>eke,getNameOfCompilerOptionValue:()=>ode,getNameOfDeclaration:()=>Ya,getNameOfExpando:()=>M0e,getNameOfJSDocTypedef:()=>W2e,getNameOrArgument:()=>yj,getNameTable:()=>Nme,getNamesForExportedSymbol:()=>OSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>tK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>aye,getNextJSDocCommentLocation:()=>j0e,getNodeForGeneratedName:()=>VV,getNodeId:()=>Us,getNodeKind:()=>ib,getNodeModifiers:()=>PM,getNodeModulePathParts:()=>EZ,getNonAssignedNameOfDeclaration:()=>NU,getNonAssignmentOperatorForCompoundAssignment:()=>gM,getNonAugmentationDeclaration:()=>_0e,getNonDecoratorTokenPosOfNode:()=>f0e,getNormalizedAbsolutePath:()=>qa,getNormalizedAbsolutePathWithoutRoot:()=>Sse,getNormalizedPathComponents:()=>AO,getObjectFlags:()=>Ju,getOperator:()=>X0e,getOperatorAssociativity:()=>Q0e,getOperatorPrecedence:()=>Oj,getOptionFromName:()=>ide,getOptionsForLibraryResolution:()=>kde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>M1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>zFe,getOrUpdate:()=>_0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>z1,getOriginalSourceFile:()=>QZe,getOutputDeclarationFileName:()=>yM,getOutputExtension:()=>EQ,getOutputFileNames:()=>stt,getOutputPathsFor:()=>bM,getOutputPathsForBundle:()=>CM,getOwnEmitOutputFilePath:()=>yye,getOwnKeys:()=>Ps,getOwnValues:()=>q1,getPackageJsonInfo:()=>q2,getPackageJsonTypesVersionsPaths:()=>HY,getPackageJsonsVisibleToFile:()=>zSe,getPackageNameFromTypesPackageName:()=>fM,getPackageScopeForPath:()=>oH,getParameterSymbolFromJSDoc:()=>Lj,getParameterTypeNode:()=>vYe,getParentNodeInSpan:()=>$H,getParseTreeNode:()=>Za,getParsedCommandLineOfConfigFile:()=>JV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>wse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Gfe,getPathsBasePath:()=>Rq,getPatternFromSpec:()=>Sle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>LO,getPossibleGenericSignatures:()=>Zhe,getPossibleOriginalInputExtensionForExtension:()=>Fye,getPossibleTypeArgumentsInfo:()=>Yhe,getPreEmitDiagnostics:()=>ctt,getPrecedingNonSpaceCharacterPosition:()=>SX,getPrivateIdentifier:()=>Xde,getProperties:()=>Yde,getProperty:()=>uo,getPropertyArrayElementValue:()=>iye,getPropertyAssignmentAliasLikeExpression:()=>Dye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>ZZe,getPropertyNameFromType:()=>ep,getPropertyNameOfBindingOrAssignmentElement:()=>Hce,getPropertySymbolFromBindingElement:()=>yX,getPropertySymbolsFromContextualType:()=>xee,getQuoteFromPreference:()=>lfe,getQuotePreference:()=>Km,getRangesWhere:()=>ku,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>AM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>kP,getRegularExpressionsForWildcards:()=>oZ,getRelativePathFromDirectory:()=>$E,getRelativePathFromFile:()=>BO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>ZH,getReplacementSpanForContextToken:()=>tfe,getResolutionDiagnostic:()=>z1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>z2,getResolvePackageJsonExports:()=>ble,getResolvePackageJsonImports:()=>pYe,getResolvedExternalModuleName:()=>zq,getRestIndicatorOfBindingOrAssignmentElement:()=>kY,getRestParameterElementType:()=>S0e,getRightMostAssignedExpression:()=>Cj,getRootDeclaration:()=>e_,getRootDirectoryOfResolutionCache:()=>h9e,getRootLength:()=>GE,getRootPathSplitLength:()=>Ptt,getScriptKind:()=>Efe,getScriptKindFromFileName:()=>cZ,getScriptTargetFeatures:()=>CZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>zye,getSemanticClassifications:()=>KSe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>Aye,getSetAccessorValueParameter:()=>fP,getSetExternalModuleIndicator:()=>Xj,getShebang:()=>wU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>R0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>cce,getSourceFileOfModule:()=>XU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Oq,getSourceFilePathInNewDirWorker:()=>jq,getSourceFileVersionAsHashFromText:()=>WQ,getSourceFilesToEmit:()=>ule,getSourceMapRange:()=>Nv,getSourceMapper:()=>r8e,getSourceTextOfNodeFromSourceFile:()=>v2,getSpanOfTokenAtPosition:()=>XE,getSpellingSuggestion:()=>yN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>DP,getStartsOnNewLine:()=>OP,getStaticPropertiesAndClassStaticBlock:()=>dQ,getStrictOptionValue:()=>Q4,getStringComparer:()=>bN,getSuperCallFromStatement:()=>lQ,getSuperContainer:()=>mj,getSupportedCodeFixes:()=>Tme,getSupportedExtensions:()=>FP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>iV,getSwitchedType:()=>vfe,getSymbolId:()=>Yo,getSymbolNameForPrivateIdentifier:()=>Ij,getSymbolTarget:()=>ASe,getSyntacticClassifications:()=>WSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>sle,getSynthesizedDeepClone:()=>dl,getSynthesizedDeepCloneWithReplacements:()=>qH,getSynthesizedDeepClones:()=>ub,getSynthesizedDeepClonesWithReplacements:()=>_fe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>xV,getTargetLabel:()=>rX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>aH,getTextOfConstantValue:()=>Ibe,getTextOfIdentifierOrLiteral:()=>U4,getTextOfJSDocComment:()=>WO,getTextOfJsxAttributeName:()=>lV,getTextOfJsxNamespacedName:()=>IP,getTextOfNode:()=>Wc,getTextOfNodeFromSourceText:()=>$N,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>L2,getTokenAtPosition:()=>ya,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>JYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>NM,getTrailingCommentRanges:()=>Ev,getTrailingSemicolonDeferringWriter:()=>ile,getTransformFlagsSubtreeExclusions:()=>Vke,getTransformers:()=>d1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>YN,getTsConfigPropArrayElementValue:()=>hq,getTypeAnnotationNode:()=>Sye,getTypeArgumentOrTypeParameterList:()=>dSe,getTypeKeywordOfTypeOnlyImport:()=>cfe,getTypeNode:()=>Zke,getTypeNodeIfAccessible:()=>HM,getTypeParameterFromJsDoc:()=>fye,getTypeParameterOwner:()=>hZe,getTypesPackageName:()=>qY,getUILocale:()=>i2e,getUniqueName:()=>Ok,getUniqueSymbolId:()=>SSe,getUseDefineForClassFields:()=>tV,getWatchErrorSummaryDiagnosticMessage:()=>Z1e,getWatchFactory:()=>D1e,group:()=>CN,groupBy:()=>QCe,guessIndentation:()=>kbe,handleNoEmitOptions:()=>P1e,hasAbstractModifier:()=>M2,hasAccessorModifier:()=>tE,hasAmbientModifier:()=>ole,hasChangesInResolutions:()=>c0e,hasChildOfKind:()=>OH,hasContextSensitiveParameters:()=>pZ,hasDecorators:()=>c4,hasDocComment:()=>lSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>Hq,hasEffectiveReadonlyModifier:()=>mP,hasExtension:()=>t7,hasIndexSignature:()=>xfe,hasInitializer:()=>Nx,hasInvalidEscape:()=>ele,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>U2e,hasJSFileExtension:()=>I2,hasJsonModuleEmitEnabled:()=>eZ,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Kq,hasPossibleExternalModuleReference:()=>Hbe,hasProperty:()=>Eu,hasPropertyAccessExpressionWithName:()=>PH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>MFe,hasResolutionModeOverride:()=>Tke,hasRestParameter:()=>a0e,hasScopeMarker:()=>Ebe,hasStaticModifier:()=>Gc,hasSyntacticModifier:()=>Qu,hasSyntacticModifiers:()=>Mye,hasTSFileExtension:()=>mk,hasTabstop:()=>Ske,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>UU,hasTypeArguments:()=>GZe,hasZeroOrOneAsteriskCharacter:()=>yle,helperString:()=>fce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Kj,idText:()=>fu,identifierIsThisKeyword:()=>ale,identifierToKeywordKind:()=>xv,identity:()=>ul,identitySourceMapConsumer:()=>oQ,ignoreSourceNewlines:()=>hce,ignoredPaths:()=>FO,importDefaultHelper:()=>YZ,importFromModuleSpecifier:()=>iP,importNameElisionDisabled:()=>Cle,importStarHelper:()=>CV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>Cr,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>mQ,injectClassThisAssignmentIfMissing:()=>a7e,insertImports:()=>zM,insertLeadingStatement:()=>hQe,insertSorted:()=>At,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>MZe,insertStatementsAfterCustomPrologue:()=>d0e,insertStatementsAfterStandardPrologue:()=>YE,intersperse:()=>_e,intrinsicTagNameToString:()=>Vle,introducesArgumentsExoticObject:()=>eye,inverseJsxOptionMap:()=>lM,isAbstractConstructorSymbol:()=>Qye,isAbstractModifier:()=>oFe,isAccessExpression:()=>O0,isAccessibilityModifier:()=>Xhe,isAccessor:()=>wx,isAccessorModifier:()=>lFe,isAliasSymbolDeclaration:()=>$Ze,isAliasableExpression:()=>Mj,isAmbientModule:()=>P1,isAmbientPropertyDeclaration:()=>x0e,isAnonymousFunctionDefinition:()=>lP,isAnyDirectorySeparator:()=>kse,isAnyImportOrBareOrAccessedRequire:()=>Vbe,isAnyImportOrReExport:()=>oj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>xYe,isApplicableVersionedTypesKey:()=>lH,isArgumentExpressionOfElementAccess:()=>Hhe,isArray:()=>Wa,isArrayBindingElement:()=>HU,isArrayBindingOrAssignmentElement:()=>YO,isArrayBindingOrAssignmentPattern:()=>e0e,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>vh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>lY,isArrowFunction:()=>Z0,isAsExpression:()=>SV,isAssertClause:()=>EFe,isAssertEntry:()=>uQe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>rFe,isAssignmentDeclaration:()=>tP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>WN,isAssignmentTarget:()=>X_,isAsteriskToken:()=>kV,isAsyncFunction:()=>oP,isAsyncModifier:()=>HP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>xce,isBigIntLiteral:()=>uY,isBinaryExpression:()=>eu,isBinaryOperatorToken:()=>WFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>S2,isBindableStaticElementAccessExpression:()=>Fq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>Vs,isBindingElementOfBareOrAccessedRequire:()=>lye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>dbe,isBindingOrAssignmentPattern:()=>qO,isBindingPattern:()=>So,isBlock:()=>go,isBlockOrCatchScoped:()=>m0e,isBlockScope:()=>v0e,isBlockScopedContainerTopLevel:()=>jbe,isBooleanLiteral:()=>KN,isBreakOrContinueStatement:()=>jN,isBreakStatement:()=>tQe,isBuildInfoFile:()=>P7e,isBuilderProgram:()=>g9e,isBundle:()=>Ace,isBundleFileTextLike:()=>tke,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>zhe,isCallLikeExpression:()=>x2,isCallLikeOrFunctionLikeExpression:()=>t0e,isCallOrNewExpression:()=>UE,isCallOrNewExpressionTarget:()=>Ihe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>VP,isCaseBlock:()=>YP,isCaseClause:()=>BB,isCaseKeyword:()=>cFe,isCaseOrDefaultClause:()=>JU,isCatchClause:()=>J2,isCatchClauseVariableDeclaration:()=>Ake,isCatchClauseVariableDeclarationOrBindingElement:()=>p0e,isCheckJsEnabledForFile:()=>rV,isChildOfNodeWithKind:()=>zZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Jc,isClassElement:()=>Yd,isClassExpression:()=>e1,isClassInstanceProperty:()=>sbe,isClassLike:()=>gr,isClassMemberModifier:()=>Yse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>VU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>_M,isCollapsedRange:()=>oYe,isColonToken:()=>nFe,isCommaExpression:()=>zV,isCommaListExpression:()=>qP,isCommaSequence:()=>tM,isCommaToken:()=>iFe,isComment:()=>gX,isCommonJsExportPropertyAssignment:()=>cq,isCommonJsExportedExpression:()=>Qbe,isCompoundAssignment:()=>pM,isComputedNonLiteralName:()=>sj,isComputedPropertyName:()=>Ms,isConciseBody:()=>WU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>AV,isConstructorDeclaration:()=>fc,isConstructorTypeNode:()=>GP,isContextualKeyword:()=>Tq,isContinueStatement:()=>eQe,isCustomPrologue:()=>hj,isDebuggerStatement:()=>iQe,isDeclaration:()=>X1,isDeclarationBindingElement:()=>UO,isDeclarationFileName:()=>t1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>Ele,isDeclarationReadonly:()=>aq,isDeclarationStatement:()=>vbe,isDeclarationWithTypeParameterChildren:()=>b0e,isDeclarationWithTypeParameters:()=>C0e,isDecorator:()=>E1,isDecoratorTarget:()=>Z9e,isDefaultClause:()=>LV,isDefaultImport:()=>c7,isDefaultModifier:()=>oY,isDefaultedExpandoInitializer:()=>cye,isDeleteExpression:()=>fFe,isDeleteTarget:()=>K0e,isDeprecatedDeclaration:()=>jX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>kfe,isDiskPathRoot:()=>Fse,isDoStatement:()=>QYe,isDocumentRegistryEntry:()=>nK,isDotDotDotToken:()=>rY,isDottedName:()=>gP,isDynamicName:()=>Pq,isESSymbolIdentifier:()=>YZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Obe,isEffectiveStrictModeSourceFile:()=>D0e,isElementAccessChain:()=>Wse,isElementAccessExpression:()=>q0,isEmittedFileOfProgram:()=>R7e,isEmptyArrayLiteral:()=>Kye,isEmptyBindingElement:()=>H2e,isEmptyBindingPattern:()=>V2e,isEmptyObjectLiteral:()=>fle,isEmptyStatement:()=>yce,isEmptyStringLiteral:()=>T0e,isEntityName:()=>sm,isEntityNameExpression:()=>tc,isEnumConst:()=>y2,isEnumDeclaration:()=>Rv,isEnumMember:()=>$2,isEqualityOperatorKind:()=>TX,isEqualsGreaterThanToken:()=>uFe,isExclamationToken:()=>FV,isExcludedFile:()=>uAe,isExclusivelyTypeOnlyImportOrExport:()=>S1e,isExpandoPropertyDeclaration:()=>DZ,isExportAssignment:()=>ic,isExportDeclaration:()=>$c,isExportModifier:()=>L7,isExportName:()=>CY,isExportNamespaceAsDefaultDeclaration:()=>iq,isExportOrDefaultModifier:()=>jV,isExportSpecifier:()=>th,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>Z2,isExpression:()=>Wt,isExpressionNode:()=>Y_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eSe,isExpressionOfOptionalChainRoot:()=>IU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>$j,isExternalModule:()=>Lc,isExternalModuleAugmentation:()=>C2,isExternalModuleImportEqualsDeclaration:()=>yv,isExternalModuleIndicator:()=>QO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>a_,isExternalModuleSymbol:()=>KH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>$O,isFileLevelUniqueName:()=>eq,isFileProbablyExternalModule:()=>KV,isFirstDeclarationOfSymbolParameter:()=>ffe,isFixablePromiseHandler:()=>Zfe,isForInOrOfStatement:()=>M8,isForInStatement:()=>mY,isForInitializer:()=>l4,isForOfStatement:()=>BV,isForStatement:()=>vk,isFunctionBlock:()=>F2,isFunctionBody:()=>n0e,isFunctionDeclaration:()=>td,isFunctionExpression:()=>w0,isFunctionExpressionOrArrowFunction:()=>O2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>U0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>cbe,isFunctionOrModuleBlock:()=>Qse,isFunctionSymbol:()=>hye,isFunctionTypeNode:()=>r3,isFutureReservedKeyword:()=>UZe,isGeneratedIdentifier:()=>sl,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>Im,isGetOrSetAccessorDeclaration:()=>MU,isGlobalDeclaration:()=>Hit,isGlobalScopeAugmentation:()=>Qg,isGrammarError:()=>Pbe,isHeritageClause:()=>mm,isHoistedFunction:()=>sq,isHoistedVariableStatement:()=>lq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>Lq,isIdentifierName:()=>_ye,isIdentifierOrThisTypeNode:()=>jFe,isIdentifierPart:()=>_v,isIdentifierStart:()=>J_,isIdentifierText:()=>Nm,isIdentifierTypePredicate:()=>tye,isIdentifierTypeReference:()=>Cke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>xH,isImplicitGlob:()=>Ale,isImportAttribute:()=>_Fe,isImportAttributeName:()=>obe,isImportAttributes:()=>pY,isImportCall:()=>dm,isImportClause:()=>u_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>_1,isImportKeyword:()=>WP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>FSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>nQe,isImportTypeNode:()=>nD,isImportableFile:()=>Ife,isInComment:()=>m5,isInCompoundLikeAssignment:()=>V0e,isInExpressionContext:()=>Dq,isInJSDoc:()=>_j,isInJSFile:()=>Xn,isInJSXText:()=>oSe,isInJsonFile:()=>vq,isInNonReferenceComment:()=>mSe,isInReferenceComment:()=>fSe,isInRightSideOfInternalImportEqualsDeclaration:()=>nX,isInString:()=>zk,isInTemplateString:()=>qhe,isInTopLevelContext:()=>pq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>eV,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>NP,isInitializedProperty:()=>mH,isInitializedVariable:()=>Yj,isInsideJsxElement:()=>mX,isInsideJsxElementOrAttribute:()=>aSe,isInsideNodeModules:()=>eK,isInsideTemplateLiteral:()=>VH,isInstanceOfExpression:()=>Wq,isInstantiatedModule:()=>jde,isInterfaceDeclaration:()=>Ch,isInternalDeclaration:()=>l1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Oce,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Hp,isJSDocAllType:()=>bFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>sQe,isJSDocCallbackTag:()=>Bce,isJSDocClassTag:()=>kFe,isJSDocCommentContainingNode:()=>$U,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Pce,isJSDocEnumTag:()=>NV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Mce,isJSDocIndexSignature:()=>Cq,isJSDocLikeText:()=>Uce,isJSDocLink:()=>vFe,isJSDocLinkCode:()=>CFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>aQe,isJSDocMemberName:()=>Ov,isJSDocNameReference:()=>XP,isJSDocNamepathType:()=>oQe,isJSDocNamespaceBody:()=>wZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>gY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>sV,isJSDocOptionalType:()=>Sce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>_Y,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Tce,isJSDocPropertyLikeTag:()=>GO,isJSDocPropertyTag:()=>AFe,isJSDocProtectedTag:()=>Lce,isJSDocPublicTag:()=>wce,isJSDocReadonlyTag:()=>Nce,isJSDocReturnTag:()=>DY,isJSDocSatisfiesExpression:()=>Ole,isJSDocSatisfiesTag:()=>xY,isJSDocSeeTag:()=>lQe,isJSDocSignature:()=>jv,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>FFe,isJSDocThrowsTag:()=>dQe,isJSDocTypeAlias:()=>$4,isJSDocTypeAssertion:()=>iM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>eM,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>cQe,isJSDocUnknownType:()=>yFe,isJSDocVariadicType:()=>EY,isJSXTagName:()=>$8,isJsonEqual:()=>fZ,isJsonSourceFile:()=>J4,isJsxAttribute:()=>sE,isJsxAttributeLike:()=>GU,isJsxAttributeName:()=>wke,isJsxAttributes:()=>G2,isJsxChild:()=>tj,isJsxClosingElement:()=>K2,isJsxClosingFragment:()=>DFe,isJsxElement:()=>a3,isJsxExpression:()=>QP,isJsxFragment:()=>W2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>oE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>Ih,isJsxOpeningLikeElementTagName:()=>Y9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>GN,isJsxText:()=>w7,isJumpStatementTarget:()=>MH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>wq,isKnownSymbol:()=>Rj,isLabelName:()=>jhe,isLabelOfLabeledStatement:()=>Ohe,isLabeledStatement:()=>H2,isLateVisibilityPaintedStatement:()=>uq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>aYe,isLet:()=>oq,isLineBreak:()=>Y1,isLiteralComputedPropertyDeclarationName:()=>Pj,isLiteralExpression:()=>_2,isLiteralExpressionOfObject:()=>qse,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>VN,isLiteralLikeAccess:()=>kq,isLiteralLikeElementAccess:()=>bj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>aX,isLiteralTypeLikeExpression:()=>EQe,isLiteralTypeLiteral:()=>pbe,isLiteralTypeNode:()=>zv,isLocalName:()=>rD,isLogicalOperator:()=>jye,isLogicalOrCoalescingAssignmentExpression:()=>lle,isLogicalOrCoalescingAssignmentOperator:()=>pP,isLogicalOrCoalescingBinaryExpression:()=>Jj,isLogicalOrCoalescingBinaryOperator:()=>Gj,isMappedTypeNode:()=>$P,isMemberName:()=>$_,isMetaProperty:()=>UP,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>u3,isMinusToken:()=>Dce,isMissingDeclaration:()=>rQe,isModifier:()=>Xo,isModifierKind:()=>XD,isModifierLike:()=>ll,isModuleAugmentationExternal:()=>E0e,isModuleBlock:()=>aE,isModuleBody:()=>_be,isModuleDeclaration:()=>xc,isModuleExportsAccessExpression:()=>Q_,isModuleIdentifier:()=>z0e,isModuleName:()=>KFe,isModuleOrEnumDeclaration:()=>XO,isModuleReference:()=>bbe,isModuleSpecifierLike:()=>bX,isModuleWithStringLiteralName:()=>nq,isNameOfFunctionDeclaration:()=>Whe,isNameOfModuleDeclaration:()=>Khe,isNamedClassElement:()=>lbe,isNamedDeclaration:()=>gh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>U0e,isNamedExportBindings:()=>Jse,isNamedExports:()=>ip,isNamedImportBindings:()=>u0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Zq,isNamedTupleMember:()=>JP,isNamespaceBody:()=>BZe,isNamespaceExport:()=>r_,isNamespaceExportDeclaration:()=>TV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>sye,isNewExpression:()=>V2,isNewExpressionTarget:()=>TM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>yZe,isNodeArray:()=>E2,isNodeArrayMultiLine:()=>qye,isNodeDescendantOf:()=>B2,isNodeKind:()=>JO,isNodeLikeSystem:()=>moe,isNodeModulesDirectory:()=>kU,isNodeWithPossibleHoistedDeclaration:()=>pye,isNonContextualKeyword:()=>$0e,isNonExportDefaultModifier:()=>DQe,isNonGlobalAmbientModule:()=>g0e,isNonGlobalDeclaration:()=>HSe,isNonNullAccess:()=>Bke,isNonNullChain:()=>RU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>QAe,isNotEmittedOrPartiallyEmittedNode:()=>SZe,isNotEmittedStatement:()=>Fce,isNullishCoalesce:()=>Gse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>n3,isObjectBindingElementWithoutPropertyName:()=>JH,isObjectBindingOrAssignmentElement:()=>ZO,isObjectBindingOrAssignmentPattern:()=>Xse,isObjectBindingPattern:()=>Op,isObjectLiteralElement:()=>r0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>Ip,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>dq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>BU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Q1,isOptionalChainRoot:()=>RN,isOptionalDeclaration:()=>MP,isOptionalJSDocPropertyLikeTag:()=>oV,isOptionalTypeNode:()=>vce,isOuterExpression:()=>yY,isOutermostOptionalChain:()=>ON,isOverrideModifier:()=>sFe,isPackedArrayLiteral:()=>zle,isParameter:()=>io,isParameterDeclaration:()=>T2,isParameterOrCatchClauseVariable:()=>Ile,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>HN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>IN,isPartOfTypeNode:()=>Z_,isPartOfTypeQuery:()=>xq,isPartiallyEmittedExpression:()=>fY,isPatternMatch:()=>X$,isPinnedComment:()=>tq,isPlainJsFile:()=>uj,isPlusToken:()=>_ce,isPossiblyTypeArgumentPosition:()=>jH,isPostfixUnaryExpression:()=>bce,isPrefixUnaryExpression:()=>Iv,isPrivateIdentifier:()=>ea,isPrivateIdentifierClassElementDeclaration:()=>Eh,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>xye,isProgramBundleEmitBuildInfo:()=>e9e,isProgramUptoDate:()=>L1e,isPrologueDirective:()=>zp,isPropertyAccessChain:()=>zU,isPropertyAccessEntityNameExpression:()=>Uj,isPropertyAccessExpression:()=>Ru,isPropertyAccessOrQualifiedName:()=>fbe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>hbe,isPropertyAssignment:()=>Uc,isPropertyDeclaration:()=>ko,isPropertyName:()=>wc,isPropertyNameLiteral:()=>eE,isPropertySignature:()=>zm,isProtoSetter:()=>vye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>Fj,isPunctuation:()=>J0e,isPushOrUnshiftIdentifier:()=>q0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>aY,isQuestionOrExclamationToken:()=>OFe,isQuestionOrPlusOrMinusToken:()=>HFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>UAe,isReadonlyKeyword:()=>aFe,isReadonlyKeywordOrPlusOrMinusToken:()=>VFe,isRecognizedTripleSlashComment:()=>h0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>$v,isRegularExpressionLiteral:()=>gce,isRequireCall:()=>xf,isRequireVariableStatement:()=>P0e,isRestParameter:()=>U_,isRestTypeNode:()=>Cce,isReturnStatement:()=>jp,isReturnStatementWithFixablePromiseHandler:()=>ZX,isRightSideOfAccessExpression:()=>hle,isRightSideOfInstanceofExpression:()=>Hye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>X9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>EP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>mFe,isScopeMarker:()=>gbe,isSemicolonClassElement:()=>pFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Tse,isShiftOperatorOrHigher:()=>Gce,isShorthandAmbientModuleSymbol:()=>UN,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Nq,isSimpleCopiableExpression:()=>Q2,isSimpleInlineableExpression:()=>lE,isSingleOrDoubleQuote:()=>Dj,isSourceFile:()=>ca,isSourceFileFromLibrary:()=>WM,isSourceFileJS:()=>_h,isSourceFileNotJS:()=>OZe,isSourceFileNotJson:()=>N0e,isSourceMapping:()=>qAe,isSpecialPropertyDeclaration:()=>dye,isSpreadAssignment:()=>d5,isSpreadElement:()=>rE,isStatement:()=>ua,isStatementButNotDeclaration:()=>ej,isStatementOrBlock:()=>Cbe,isStatementWithLocals:()=>Nbe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ua,isStringAKeyword:()=>qZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>hSe,isStringDoubleQuoted:()=>yq,isStringLiteral:()=>rs,isStringLiteralLike:()=>i0,isStringLiteralOrJsxExpression:()=>ybe,isStringLiteralOrTemplate:()=>NSe,isStringOrNumericLiteralLike:()=>Mm,isStringOrRegularExpressionOrTemplateLiteral:()=>Qhe,isStringTextContainingNode:()=>Zse,isSuperCall:()=>ik,isSuperKeyword:()=>KP,isSuperOrSuperProperty:()=>RZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>_ke,isSwitchStatement:()=>wV,isSyntaxList:()=>MB,isSyntheticExpression:()=>YYe,isSyntheticReference:()=>j7,isTagName:()=>Vhe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>q9e,isTemplateExpression:()=>dY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>rbe,isTemplateLiteralTypeNode:()=>ZYe,isTemplateLiteralTypeSpan:()=>dFe,isTemplateMiddle:()=>tFe,isTemplateMiddleOrTemplateTail:()=>OU,isTemplateSpan:()=>ZP,isTemplateTail:()=>Ece,isTextWhiteSpaceLike:()=>_Se,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>rye,isThisIdentifier:()=>P2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>gq,isThisInitializedObjectBindingExpression:()=>oye,isThisProperty:()=>pj,isThisTypeNode:()=>cY,isThisTypeParameter:()=>PP,isThisTypePredicate:()=>IZe,isThrowStatement:()=>kce,isToken:()=>u7,isTokenKind:()=>Use,isTraceEnabled:()=>aD,isTransientSymbol:()=>ZE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Bj,isTypeAliasDeclaration:()=>Vp,isTypeAssertionExpression:()=>hFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>MM,isTypeKeywordToken:()=>ufe,isTypeKeywordTokenOrIdentifier:()=>DX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Xr,isTypeNodeKind:()=>xle,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>abe,isTypeOnlyImportDeclaration:()=>jU,isTypeOnlyImportOrExportDeclaration:()=>D2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>wl,isTypePredicateNode:()=>sY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>tp,isTypeReferenceType:()=>qU,isTypeUsableAsPropertyName:()=>X4,isUMDExportSymbol:()=>qq,isUnaryExpression:()=>i0e,isUnaryExpressionWithWrite:()=>mbe,isUnicodeIdentifierStart:()=>AU,isUnionTypeNode:()=>Mv,isUnparsedNode:()=>$se,isUnparsedPrepend:()=>xFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>ube,isUrl:()=>F2e,isValidBigIntString:()=>mZ,isValidESSymbolDeclaration:()=>Xbe,isValidTypeOnlyAliasUseSite:()=>Lv,isValueSignatureDeclaration:()=>gye,isVarAwaitUsing:()=>cj,isVarConst:()=>K8,isVarUsing:()=>dj,isVariableDeclaration:()=>ra,isVariableDeclarationInVariableStatement:()=>ZN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>A2,isVariableDeclarationInitializedToRequire:()=>bq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Ybe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>lYe,isWhileStatement:()=>XYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>Zg,isWithStatement:()=>gFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Uq,isYieldExpression:()=>hY,jsxModeNeedsExplicitImport:()=>wfe,keywordPart:()=>Hf,last:()=>yr,lastOrUndefined:()=>Zu,length:()=>S,libMap:()=>PY,libs:()=>QV,lineBreakPart:()=>lw,linkNamePart:()=>ySe,linkPart:()=>pfe,linkTextPart:()=>AX,listFiles:()=>Y1e,loadModuleFromGlobalCache:()=>TAe,loadWithModeAwareCache:()=>bH,makeIdentifierFromModuleName:()=>Rbe,makeImport:()=>g5,makeImportIfNecessary:()=>ESe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>Vr,mapDefined:()=>qi,mapDefinedEntries:()=>na,mapDefinedIterator:()=>Ka,mapEntries:()=>Ii,mapIterator:()=>Ir,mapOneOrMany:()=>Afe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ble,matchPatternOrExact:()=>Tle,matchedText:()=>o2e,matchesExclude:()=>NY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>oke,memoize:()=>zh,memoizeCached:()=>e2e,memoizeOne:()=>KE,memoizeWeak:()=>_qe,metadataHelper:()=>LZ,min:()=>loe,minAndMax:()=>xke,missingFileModifiedTime:()=>W_,modifierToFlag:()=>_7,modifiersToFlags:()=>iE,moduleOptionDeclaration:()=>hde,moduleResolutionIsEqualTo:()=>Tbe,moduleResolutionNameAndModeGetter:()=>kH,moduleResolutionOptionDeclarations:()=>MY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>xX,moduleSpecifiers:()=>Y2,moveEmitHelpers:()=>Uke,moveRangeEnd:()=>Jq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>nE,moveRangePos:()=>Bv,moveSyntheticComments:()=>Gke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>BX,needsScopeMarker:()=>KU,newCaseClauseTracker:()=>KX,newPrivateEnvironment:()=>t7e,noEmitNotification:()=>pH,noEmitSubstitution:()=>vM,noTransformers:()=>h1e,noTruncationMaximumTruncationLength:()=>vZ,nodeCanBeDecorated:()=>_q,nodeHasName:()=>VO,nodeIsDecorated:()=>QN,nodeIsMissing:()=>Xl,nodeIsPresent:()=>W4,nodeIsSynthesized:()=>cl,nodeModuleNameResolver:()=>bAe,nodeModulesPathPart:()=>s_,nodeNextJsonConfigResolver:()=>yAe,nodeOrChildIsDecorated:()=>Ej,nodeOverlapsWithStartEnd:()=>oX,nodePosToString:()=>TZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>Z0e,nodeToDisplayParts:()=>zit,noop:()=>Rs,noopFileWatcher:()=>tw,normalizePath:()=>Uo,normalizeSlashes:()=>Z1,not:()=>tU,notImplemented:()=>fo,notImplementedResolver:()=>vQ,nullNodeConverters:()=>nce,nullParenthesizerRules:()=>ice,nullTransformationContext:()=>Dg,objectAllocator:()=>Xd,operatorPart:()=>RM,optionDeclarations:()=>o3,optionMapToObject:()=>ade,optionsAffectingProgramStructure:()=>Ede,optionsForBuild:()=>Dde,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Sbe,or:()=>dg,orderedRemoveItem:()=>EO,orderedRemoveItemAt:()=>mv,outFile:()=>F0,packageIdToPackageName:()=>QU,packageIdToString:()=>Px,paramHelper:()=>NZ,parameterIsThisKeyword:()=>N2,parameterNamePart:()=>xSe,parseBaseNodeFactory:()=>Qce,parseBigInt:()=>vke,parseBuildCommand:()=>YQe,parseCommandLine:()=>qQe,parseCommandLineWorker:()=>tde,parseConfigFileTextToJson:()=>nde,parseConfigFileWithSystem:()=>ztt,parseConfigHostFromCompilerHostLike:()=>LQ,parseCustomTypeOption:()=>TY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>ZFe,parseJSDocTypeExpressionForTests:()=>zQe,parseJsonConfigFileContent:()=>dXe,parseJsonSourceFileConfigFileContent:()=>qV,parseJsonText:()=>GV,parseListTypeOption:()=>QFe,parseNodeFactory:()=>o_,parseNodeModuleFromPath:()=>rH,parsePackageName:()=>sH,parsePseudoBigInt:()=>BP,parseValidBigInt:()=>Mle,patchWriteFileEnsuringDirectory:()=>y2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>BN,pathIsBareSpecifier:()=>Ase,pathIsRelative:()=>om,patternText:()=>a2e,perfLogger:()=>mh,performIncrementalCompilation:()=>jtt,performance:()=>_2e,plainJSErrors:()=>MQ,positionBelongsToNode:()=>Jhe,positionIsASICandidate:()=>NX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>Y4,preProcessFile:()=>lnt,probablyUsesSemicolons:()=>QH,processCommentPragmas:()=>Zce,processPragmasIntoFields:()=>Yce,processTaggedTemplateExpression:()=>u1e,programContainsEsModules:()=>gSe,programContainsModules:()=>pSe,projectReferenceIsEqualTo:()=>s0e,propKeyHelper:()=>JZ,propertyNamePart:()=>vSe,pseudoBigIntToString:()=>R2,punctuationPart:()=>nh,pushIfUnique:()=>Ca,quote:()=>VM,quotePreferenceFromString:()=>sfe,rangeContainsPosition:()=>zH,rangeContainsPositionExclusive:()=>IH,rangeContainsRange:()=>Hm,rangeContainsRangeExclusive:()=>tSe,rangeContainsStartEnd:()=>RH,rangeEndIsOnSameLineAsRangeStart:()=>Zj,rangeEndPositionsAreOnSameLine:()=>$ye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Nle,rangeOfTypeParameters:()=>Ple,rangeOverlapsWithStartEnd:()=>LM,rangeStartIsOnSameLineAsRangeEnd:()=>Uye,rangeStartPositionsAreOnSameLine:()=>$q,readBuilderProgram:()=>$Q,readConfigFile:()=>$V,readHelper:()=>WZ,readJson:()=>_P,readJsonConfigFile:()=>tAe,readJsonOrUndefined:()=>mle,reduceEachLeadingCommentRange:()=>T2e,reduceEachTrailingCommentRange:()=>L2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>EYe,relativeComplement:()=>Ur,removeAllComments:()=>_V,removeEmitHelper:()=>$Ye,removeExtension:()=>uV,removeFileExtension:()=>xh,removeIgnoredPath:()=>RQ,removeMinAndVersionNumbers:()=>coe,removeOptionality:()=>sSe,removePrefix:()=>kN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>pv,repeatString:()=>WH,replaceElement:()=>Zd,resolutionExtensionIsTSOrJson:()=>AP,resolveConfigFileProjectName:()=>she,resolveJSModule:()=>vAe,resolveLibrary:()=>GY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>UXe,resolvePackageNameToPackageJson:()=>Cde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>kQ,resolveTypeReferenceDirective:()=>_Ae,resolvingEmptyArray:()=>xZ,restHelper:()=>jZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>fv,returnsPromise:()=>qfe,runInitializersHelper:()=>MZ,sameFlatMap:()=>R0,sameMap:()=>Pu,sameMapping:()=>Ret,scanShebangTrivia:()=>Lse,scanTokenAtPosition:()=>Ube,scanner:()=>uh,screenStartingMessageCodes:()=>JQ,semanticDiagnosticsOptionDeclarations:()=>mde,serializeCompilerOptions:()=>sde,server:()=>tdt,servicesVersion:()=>sBe,setCommentRange:()=>Tc,setConfigFileInOptions:()=>cde,setConstantValue:()=>$ke,setEachParent:()=>pB,setEmitFlags:()=>Yn,setFunctionNameHelper:()=>$Z,setGetSourceFileAsHashVersioned:()=>GQ,setIdentifierAutoGenerate:()=>vV,setIdentifierGeneratedImportReference:()=>Yke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>DV,setLocalizedDiagnosticMessages:()=>ake,setModuleDefaultHelper:()=>ZZ,setNodeFlags:()=>yke,setObjectAllocator:()=>rke,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>dce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Oqe,setStartsOnNewLine:()=>SZ,setSyntheticLeadingComments:()=>Pv,setSyntheticTrailingComments:()=>A7,setSys:()=>Wqe,setSysLog:()=>C2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>wP,setTextRangePosEnd:()=>i_,setTextRangePosWidth:()=>TP,setTokenSourceMapRange:()=>Wke,setTypeNode:()=>qke,setUILocale:()=>n2e,setValueDeclaration:()=>Aj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>iZ,shouldUseUriStyleNodeCoreModules:()=>VX,showModuleSpecifier:()=>Xye,signatureHasLiteralTypes:()=>Vde,signatureHasRestParameter:()=>ih,signatureToDisplayParts:()=>gfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>Pa,singleOrMany:()=>B0,singleOrUndefined:()=>Sa,skipAlias:()=>eh,skipAssertions:()=>mQe,skipConstraint:()=>rfe,skipOuterExpressions:()=>vc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Pp,skipTrivia:()=>gs,skipTypeChecking:()=>SP,skipTypeParentheses:()=>H0e,skipWhile:()=>l2e,sliceAfter:()=>Lle,some:()=>Ge,sort:()=>Mh,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>zY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>rQ,sourceMapCommentRegExpDontCareLineStart:()=>Ude,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>GZ,stableSort:()=>sc,startEndContainsRange:()=>Ghe,startEndOverlapsWithStartEnd:()=>sX,startOnNewLine:()=>bh,startTracing:()=>D2e,startsWith:()=>Ma,startsWithDirectory:()=>Bse,startsWithUnderscore:()=>Bfe,startsWithUseStrict:()=>NFe,stringContainsAt:()=>VSe,stringToToken:()=>m2,stripQuotes:()=>q4,supportedDeclarationExtensions:()=>hV,supportedJSExtensions:()=>Xle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>o0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Qle,supportedTSImplementationExtensions:()=>fV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Dfe,suppressTrailingTrivia:()=>wSe,symbolEscapedNameNoDefault:()=>CX,symbolName:()=>cc,symbolNameNoDefault:()=>vX,symbolPart:()=>DSe,symbolToDisplayParts:()=>OM,syntaxMayBeASICandidate:()=>Mfe,syntaxRequiresTrailingSemicolonOrASI:()=>LX,sys:()=>d1,sysLog:()=>yO,tagNamesAreEquivalent:()=>Hv,takeWhile:()=>nU,targetOptionDeclaration:()=>eH,templateObjectHelper:()=>KZ,testFormatSettings:()=>U9e,textChangeRangeIsUnchanged:()=>O2e,textChangeRangeNewSpan:()=>zN,textChanges:()=>iu,textOrKeywordPart:()=>mfe,textPart:()=>Wm,textRangeContainsPositionInclusive:()=>RO,textSpanContainsPosition:()=>Mse,textSpanContainsTextSpan:()=>M2e,textSpanEnd:()=>Dc,textSpanIntersection:()=>R2e,textSpanIntersectsWith:()=>LU,textSpanIntersectsWithPosition:()=>I2e,textSpanIntersectsWithTextSpan:()=>dZe,textSpanIsEmpty:()=>P2e,textSpanOverlap:()=>z2e,textSpanOverlapsWith:()=>cZe,textSpansEqual:()=>sw,textToKeywordObj:()=>zO,timestamp:()=>J0,toArray:()=>YA,toBuilderFileEmit:()=>u9e,toBuilderStateFileInfoForMultiEmit:()=>n9e,toEditorSettings:()=>EK,toFileNameLowerCase:()=>Ug,toLowerCase:()=>XCe,toPath:()=>$0,toProgramEmitPending:()=>r9e,tokenIsIdentifierOrKeyword:()=>ph,tokenIsIdentifierOrKeywordOrGreaterThan:()=>B2e,tokenToString:()=>qo,trace:()=>Ba,tracing:()=>Gn,tracingEnabled:()=>xO,transform:()=>srt,transformClassFields:()=>d7e,transformDeclarations:()=>c1e,transformECMAScriptModule:()=>s1e,transformES2015:()=>F7e,transformES2016:()=>k7e,transformES2017:()=>p7e,transformES2018:()=>g7e,transformES2019:()=>E7e,transformES2020:()=>_7e,transformES2021:()=>D7e,transformES5:()=>A7e,transformESDecorators:()=>m7e,transformESNext:()=>x7e,transformGenerators:()=>S7e,transformJsx:()=>y7e,transformLegacyDecorators:()=>f7e,transformModule:()=>o1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>w7e,transformNodes:()=>gH,transformSystemModule:()=>B7e,transformTypeScript:()=>c7e,transpile:()=>Ent,transpileModule:()=>a8e,transpileOptionValueCompilerOptions:()=>_de,tryAddToSet:()=>Bs,tryAndIgnoreErrors:()=>zX,tryCast:()=>ar,tryDirectoryExists:()=>MX,tryExtractTSExtension:()=>Gq,tryFileExists:()=>XH,tryGetClassExtendingExpressionWithTypeArguments:()=>cle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>dle,tryGetDirectories:()=>PX,tryGetExtensionFromPath:()=>i3,tryGetImportFromModuleSpecifier:()=>Sj,tryGetJSDocSatisfiesTypeNode:()=>_Z,tryGetModuleNameFromFile:()=>RV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>p2e,tryGetPropertyAccessOrIdentifierToString:()=>qj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>FY,tryGetSourceMappingURL:()=>$Ae,tryGetTextOfPropertyName:()=>qN,tryIOAndConsumeErrors:()=>IX,tryParsePattern:()=>fB,tryParsePatterns:()=>dZ,tryParseRawSourceMap:()=>Jde,tryReadDirectory:()=>Cfe,tryReadFile:()=>aM,tryRemoveDirectoryPrefix:()=>Fle,tryRemoveExtension:()=>Dke,tryRemovePrefix:()=>foe,tryRemoveSuffix:()=>r2e,typeAcquisitionDeclarations:()=>tH,typeAliasNamePart:()=>CSe,typeDirectiveIsEqualTo:()=>Lbe,typeKeywords:()=>WX,typeParameterNamePart:()=>bSe,typeReferenceResolutionNameAndModeGetter:()=>PQ,typeToDisplayParts:()=>UH,unchangedPollThresholds:()=>kO,unchangedTextChangeRange:()=>ij,unescapeLeadingUnderscores:()=>Qr,unmangleScopedPackageName:()=>cH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>doe,unreachableCodeIsError:()=>cke,unusedLabelIsError:()=>dke,unwrapInnermostStatementOfLabel:()=>B0e,updateErrorForNoInputFiles:()=>LY,updateLanguageServiceSourceFile:()=>Lme,updateMissingFilePathsWatch:()=>_1e,updatePackageJsonWatch:()=>ltt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>bQ,updateSourceFile:()=>qce,updateWatchingWildcardDirectories:()=>DH,usesExtensionsOnImports:()=>Eke,usingSingleLineStringWriter:()=>JN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>fZe,valuesHelper:()=>UZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>hH,visitCommaListElements:()=>fH,visitEachChild:()=>rn,visitFunctionBody:()=>jm,visitIterationBody:()=>Rh,visitLexicalEnvironment:()=>uQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>Cc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>e7e,walkUpOuterExpressions:()=>PFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Nj,walkUpParenthesizedTypesAndGetParentAndChild:()=>Eye,whitespaceOrMapCommentRegExp:()=>aQ,writeCommentRange:()=>sB,writeFile:()=>dP,writeFileEnsuringDirectories:()=>rle,zipWith:()=>re});var eC=o({"src/server/_namespaces/ts.ts"(){Bo(),wH(),or(),Upe(),_9()}}),ndt={};h(ndt,{ActionInvalidate:()=>XQ,ActionPackageInstalled:()=>I9e,ActionSet:()=>QQ,ActionWatchTypingLocations:()=>BH,Arguments:()=>ghe,AutoImportProviderProject:()=>sge,AuxiliaryProject:()=>age,CharRangeSection:()=>xge,CloseFileWatcherEvent:()=>dte,CommandNames:()=>TNe,ConfigFileDiagEvent:()=>ate,ConfiguredProject:()=>lge,CreateDirectoryWatcherEvent:()=>cte,CreateFileWatcherEvent:()=>lte,Errors:()=>v5,EventBeginInstallTypes:()=>mhe,EventEndInstallTypes:()=>phe,EventInitializationFailed:()=>O9e,EventTypesRegistry:()=>R9e,ExternalProject:()=>Qee,GcTimer:()=>Xpe,InferredProject:()=>rge,LargeFileReferencedEvent:()=>rte,LineIndex:()=>az,LineLeaf:()=>ZK,LineNode:()=>E9,LogLevel:()=>qpe,Msg:()=>Zpe,OpenFileInfoTelemetryEvent:()=>hge,Project:()=>Wk,ProjectInfoTelemetryEvent:()=>ste,ProjectKind:()=>uz,ProjectLanguageServiceStateEvent:()=>ote,ProjectLoadingFinishEvent:()=>ute,ProjectLoadingStartEvent:()=>nte,ProjectReferenceProjectLoadKind:()=>pge,ProjectService:()=>gge,ProjectsUpdatedInBackgroundEvent:()=>$K,ScriptInfo:()=>ige,ScriptVersionCache:()=>pte,Session:()=>NNe,TextStorage:()=>tge,ThrottledOperations:()=>Qpe,TypingsCache:()=>nge,allFilesAreJsOrDts:()=>lNe,allRootFilesAreJsOrDts:()=>sNe,asNormalizedPath:()=>Tct,convertCompilerOptions:()=>Xee,convertFormatOptions:()=>Sw,convertScriptKindName:()=>dge,convertTypeAcquisition:()=>hNe,convertUserPreferences:()=>fNe,convertWatchOptions:()=>JK,countEachFileTypes:()=>WK,createInstallTypingsRequest:()=>wct,createModuleSpecifierCache:()=>bNe,createNormalizedPathMap:()=>Lct,createPackageJsonCache:()=>yNe,createSortedArray:()=>JLe,emptyArray:()=>qc,findArgument:()=>bit,forEachResolvedProjectReferenceProject:()=>Bw,formatDiagnosticToProtocol:()=>qK,formatMessage:()=>kNe,getBaseConfigFileName:()=>Ype,getLocationInNewDocument:()=>BNe,hasArgument:()=>Cit,hasNoTypeScriptSource:()=>cNe,indent:()=>wM,isBackgroundProject:()=>GK,isConfigFile:()=>DNe,isConfiguredProject:()=>Xv,isDynamicFileName:()=>KK,isExternalProject:()=>uge,isInferredProject:()=>Aw,isInferredProjectName:()=>HLe,makeAutoImportProviderProjectName:()=>WLe,makeAuxiliaryProjectName:()=>GLe,makeInferredProjectName:()=>KLe,maxFileSize:()=>ite,maxProgramSizeForNonTsFiles:()=>tte,normalizedPathToPath:()=>HK,nowString:()=>yit,nullCancellationToken:()=>wNe,nullTypingsInstaller:()=>Yee,projectContainsInfoDirectly:()=>p9,protocol:()=>oNe,removeSorted:()=>Nct,stringifyIndented:()=>nw,toEvent:()=>FNe,toNormalizedPath:()=>xl,tryConvertScriptKindName:()=>cge,typingsInstaller:()=>jLe,updateProjectIfDirty:()=>Jm});var fXt=o({"src/typescript/_namespaces/ts.server.ts"(){eX(),_9()}}),udt={};h(udt,{ANONYMOUS:()=>GX,AccessFlags:()=>Goe,AssertionLevel:()=>goe,AssignmentDeclarationKind:()=>ese,AssignmentKind:()=>Gle,Associativity:()=>$le,BreakpointResolver:()=>Ome,BuilderFileEmit:()=>G1e,BuilderProgramKind:()=>J1e,BuilderState:()=>Gp,BundleFileSectionKind:()=>_se,CallHierarchy:()=>o9,CharacterCodes:()=>dse,CheckFlags:()=>joe,CheckMode:()=>tQ,ClassificationType:()=>Mhe,ClassificationTypeNames:()=>Phe,CommentDirectiveType:()=>koe,Comparison:()=>x,CompletionInfoFlags:()=>Ahe,CompletionTriggerKind:()=>Che,Completions:()=>h9,ContainerFlags:()=>zde,ContextFlags:()=>Toe,Debug:()=>H,DiagnosticCategory:()=>CO,Diagnostics:()=>F,DocumentHighlights:()=>UX,ElementFlags:()=>Woe,EmitFlags:()=>xU,EmitHint:()=>pse,EmitOnly:()=>Aoe,EndOfLineState:()=>whe,EnumKind:()=>Ooe,ExitStatus:()=>Soe,ExportKind:()=>jfe,Extension:()=>hse,ExternalEmitHelpers:()=>mse,FileIncludeKind:()=>dU,FilePreprocessingDiagnosticsKind:()=>Foe,FileSystemEntryKind:()=>yse,FileWatcherEventKind:()=>bse,FindAllReferences:()=>Y0,FlattenLevel:()=>t1e,FlowFlags:()=>vO,ForegroundColorEscapeSequences:()=>I1e,FunctionFlags:()=>Jle,GeneratedIdentifierFlags:()=>cU,GetLiteralTextFlags:()=>Hle,GoToDefinition:()=>Cw,HighlightSpanKind:()=>yhe,IdentifierNameMap:()=>Y7,IdentifierNameMultiMap:()=>e1e,ImportKind:()=>Ofe,ImportsNotUsedAsValues:()=>ase,IndentStyle:()=>khe,IndexFlags:()=>Joe,IndexKind:()=>qoe,InferenceFlags:()=>Qoe,InferencePriority:()=>Yoe,InlayHintKind:()=>bhe,InlayHints:()=>wpe,InternalEmitFlags:()=>fse,InternalSymbolName:()=>Voe,InvalidatedProjectKind:()=>fhe,JSDocParsingMode:()=>vse,JsDoc:()=>Qv,JsTyping:()=>s3,JsxEmit:()=>rse,JsxFlags:()=>boe,JsxReferenceKind:()=>$oe,LanguageServiceMode:()=>Dhe,LanguageVariant:()=>lse,LexicalEnvironmentFlags:()=>Ese,ListFormat:()=>Dse,LogLevel:()=>_oe,MemberOverrideStatus:()=>Boe,ModifierFlags:()=>sU,ModuleDetectionKind:()=>tse,ModuleInstanceState:()=>Mde,ModuleKind:()=>AN,ModuleResolutionKind:()=>y8,ModuleSpecifierEnding:()=>ece,NavigateTo:()=>l8e,NavigationBar:()=>D8e,NewLineKind:()=>ose,NodeBuilderFlags:()=>Loe,NodeCheckFlags:()=>Hoe,NodeFactoryFlags:()=>sce,NodeFlags:()=>oU,NodeResolutionFeatures:()=>Lde,ObjectFlags:()=>pU,OperationCanceledException:()=>b8,OperatorPrecedence:()=>Ule,OrganizeImports:()=>Jp,OrganizeImportsMode:()=>vhe,OuterExpressionKinds:()=>gse,OutliningElementsCollector:()=>Ppe,OutliningSpanKind:()=>She,OutputFileType:()=>Bhe,PackageJsonAutoImportPreference:()=>_he,PackageJsonDependencyGroup:()=>Ehe,PatternMatchKind:()=>qX,PollingInterval:()=>vU,PollingWatchKind:()=>use,PragmaKindFlags:()=>xse,PrivateIdentifierKind:()=>pce,ProcessLevel:()=>r1e,ProgramUpdateLevel:()=>x1e,QuotePreference:()=>Nfe,RelationComparisonResult:()=>lU,Rename:()=>Wee,ScriptElementKind:()=>Lhe,ScriptElementKindModifier:()=>Nhe,ScriptKind:()=>EU,ScriptSnapshot:()=>iX,ScriptTarget:()=>sse,SemanticClassificationFormat:()=>xhe,SemanticMeaning:()=>Lfe,SemicolonPreference:()=>Fhe,SignatureCheckMode:()=>iQ,SignatureFlags:()=>gU,SignatureHelp:()=>PK,SignatureKind:()=>Uoe,SmartSelectionRange:()=>Ipe,SnippetKind:()=>DU,SortKind:()=>poe,StructureIsReused:()=>hU,SymbolAccessibility:()=>Moe,SymbolDisplay:()=>x5,SymbolDisplayPartKind:()=>TH,SymbolFlags:()=>fU,SymbolFormatFlags:()=>Poe,SyntaxKind:()=>aU,SyntheticSymbolKind:()=>zoe,Ternary:()=>Xoe,ThrottledCancellationToken:()=>Rme,TokenClass:()=>The,TokenFlags:()=>yoe,TransformFlags:()=>_U,TypeFacts:()=>eQ,TypeFlags:()=>mU,TypeFormatFlags:()=>Noe,TypeMapKind:()=>Zoe,TypePredicateKind:()=>Ioe,TypeReferenceSerializationKind:()=>Roe,UnionReduction:()=>woe,UpToDateStatusType:()=>lhe,VarianceFlags:()=>Koe,Version:()=>Np,VersionRange:()=>_O,WatchDirectoryFlags:()=>cse,WatchDirectoryKind:()=>nse,WatchFileKind:()=>ise,WatchLogLevel:()=>v1e,WatchType:()=>cd,accessPrivateIdentifier:()=>i7e,addDisposableResourceHelper:()=>iY,addEmitFlags:()=>n_,addEmitHelper:()=>S7,addEmitHelpers:()=>iD,addInternalEmitFlags:()=>F7,addNodeFactoryPatcher:()=>jYe,addObjectAllocatorPatcher:()=>uke,addRange:()=>yn,addRelatedInfo:()=>Es,addSyntheticLeadingComment:()=>jP,addSyntheticTrailingComment:()=>BZ,addToSeen:()=>Rp,advancedAsyncSuperHelper:()=>yV,affectsDeclarationPathOptionDeclarations:()=>gde,affectsEmitOptionDeclarations:()=>pde,allKeysStartWithDot:()=>UY,altDirectorySeparator:()=>wO,and:()=>eU,append:()=>Di,appendIfUnique:()=>t0,arrayFrom:()=>Ea,arrayIsEqualTo:()=>On,arrayIsHomogeneous:()=>bke,arrayIsSorted:()=>hi,arrayOf:()=>am,arrayReverseIterator:()=>Cd,arrayToMap:()=>lg,arrayToMultiMap:()=>pO,arrayToNumericMap:()=>roe,arraysEqual:()=>Zt,assertType:()=>vqe,assign:()=>HE,assignHelper:()=>zZ,asyncDelegator:()=>RZ,asyncGeneratorHelper:()=>IZ,asyncSuperHelper:()=>bV,asyncValues:()=>OZ,attachFileToDiagnostics:()=>v7,awaitHelper:()=>B7,awaiterHelper:()=>VZ,base64decode:()=>Jye,base64encode:()=>Gye,binarySearch:()=>Kl,binarySearchKey:()=>ba,bindSourceFile:()=>PAe,breakIntoCharacterSpans:()=>i8e,breakIntoWordSpans:()=>n8e,buildLinkParts:()=>kSe,buildOpts:()=>IY,buildOverload:()=>yct,bundlerModuleNameResolver:()=>CAe,canBeConvertedToAsync:()=>Yfe,canHaveDecorators:()=>Ak,canHaveExportModifier:()=>aV,canHaveFlowNode:()=>wj,canHaveIllegalDecorators:()=>Wce,canHaveIllegalModifiers:()=>RFe,canHaveIllegalType:()=>gQe,canHaveIllegalTypeParameters:()=>IFe,canHaveJSDoc:()=>Tj,canHaveLocals:()=>qE,canHaveModifiers:()=>Kp,canHaveSymbol:()=>Yg,canJsonReportNoInputFiles:()=>oM,canProduceDiagnostics:()=>gQ,canUsePropertyAccess:()=>Rle,canWatchAffectingLocation:()=>l9e,canWatchAtTypes:()=>s9e,canWatchDirectoryOrFile:()=>OQ,cartesianProduct:()=>s2e,cast:()=>Po,chainBundle:()=>Wp,chainDiagnosticMessages:()=>ro,changeAnyExtension:()=>SO,changeCompilerHostLikeToUseCache:()=>CH,changeExtension:()=>Tv,changesAffectModuleResolution:()=>ZU,changesAffectingProgramStructure:()=>Bbe,childIsDecorated:()=>XN,classElementOrClassElementParameterIsDecorated:()=>w0e,classHasClassThisAssignment:()=>i1e,classHasDeclaredOrExplicitlyAssignedName:()=>n1e,classHasExplicitlyAssignedName:()=>fQ,classOrConstructorParameterIsDecorated:()=>t5,classPrivateFieldGetHelper:()=>XZ,classPrivateFieldInHelper:()=>tY,classPrivateFieldSetHelper:()=>eY,classicNameResolver:()=>wAe,classifier:()=>hBe,cleanExtendedConfigCache:()=>yQ,clear:()=>gu,clearMap:()=>rf,clearSharedExtendedConfigFileWatcher:()=>E1e,climbPastPropertyAccess:()=>uX,climbPastPropertyOrElementAccess:()=>Q9e,clone:()=>aoe,cloneCompilerOptions:()=>efe,closeFileWatcher:()=>fg,closeFileWatcherOf:()=>Vm,codefix:()=>I1,collapseTextChangeRangesAcrossMultipleVersions:()=>j2e,collectExternalModuleInfo:()=>Zde,combine:()=>co,combinePaths:()=>hr,commentPragmas:()=>bO,commonOptionsWithBuild:()=>XV,commonPackageFolders:()=>Zle,compact:()=>vr,compareBooleans:()=>h2,compareDataObjects:()=>_le,compareDiagnostics:()=>yP,compareDiagnosticsSkipRelatedInformation:()=>Qq,compareEmitHelpers:()=>eFe,compareNumberOfDirectorySeparators:()=>nV,comparePaths:()=>gv,comparePathsCaseInsensitive:()=>Uqe,comparePathsCaseSensitive:()=>$qe,comparePatternKeys:()=>wde,compareProperties:()=>u2e,compareStringsCaseInsensitive:()=>Q$,compareStringsCaseInsensitiveEslintCompatible:()=>t2e,compareStringsCaseSensitive:()=>fh,compareStringsCaseSensitiveUI:()=>gO,compareTextSpans:()=>Y$,compareValues:()=>rl,compileOnSaveCommandLineOption:()=>YV,compilerOptionsAffectDeclarationPath:()=>pke,compilerOptionsAffectEmit:()=>mke,compilerOptionsAffectSemanticDiagnostics:()=>fke,compilerOptionsDidYouMeanDiagnostics:()=>iH,compilerOptionsIndicateEsModules:()=>afe,compose:()=>Dqe,computeCommonSourceDirectoryOfFilenames:()=>j7e,computeLineAndCharacterOfPosition:()=>k8,computeLineOfPosition:()=>LN,computeLineStarts:()=>n7,computePositionOfLineAndCharacter:()=>SU,computeSignature:()=>Nk,computeSignatureWithDiagnostics:()=>V1e,computeSuggestionDiagnostics:()=>Ufe,concatenate:()=>mi,concatenateDiagnosticMessageChains:()=>ske,consumesNodeCoreModules:()=>RX,contains:()=>kt,containsIgnoredPath:()=>LP,containsObjectRestOrSpread:()=>HV,containsParseError:()=>O8,containsPath:()=>JE,convertCompilerOptionsForTelemetry:()=>aAe,convertCompilerOptionsFromJson:()=>DXe,convertJsonOption:()=>Sk,convertToBase64:()=>Wye,convertToJson:()=>UV,convertToObject:()=>iAe,convertToOptionsWithAbsolutePaths:()=>lde,convertToRelativePath:()=>TN,convertToTSConfig:()=>rXe,convertTypeAcquisitionFromJson:()=>xXe,copyComments:()=>Rk,copyEntries:()=>YU,copyLeadingComments:()=>cw,copyProperties:()=>ooe,copyTrailingAsLeadingComments:()=>YH,copyTrailingComments:()=>jM,couldStartTrivia:()=>w2e,countWhere:()=>ui,createAbstractBuilder:()=>wtt,createAccessorPropertyBackingField:()=>Jce,createAccessorPropertyGetRedirector:()=>JFe,createAccessorPropertySetRedirector:()=>$Fe,createBaseNodeFactory:()=>Rke,createBinaryExpressionTrampoline:()=>AY,createBindingHelper:()=>xB,createBuildInfo:()=>EH,createBuilderProgram:()=>H1e,createBuilderProgramUsingProgramBuildInfo:()=>a9e,createBuilderStatusReporter:()=>b9e,createCacheWithRedirects:()=>yde,createCacheableExportInfoMap:()=>zfe,createCachedDirectoryStructureHost:()=>CQ,createClassNamedEvaluationHelperBlock:()=>o7e,createClassThisAssignmentBlock:()=>r7e,createClassifier:()=>$it,createCommentDirectivesMap:()=>Mbe,createCompilerDiagnostic:()=>dc,createCompilerDiagnosticForInvalidCustomType:()=>YFe,createCompilerDiagnosticFromMessageChain:()=>Yq,createCompilerHost:()=>V7e,createCompilerHostFromProgramHost:()=>rhe,createCompilerHostWorker:()=>y1e,createDetachedDiagnostic:()=>hB,createDiagnosticCollection:()=>rB,createDiagnosticForFileFromMessageChain:()=>k0e,createDiagnosticForNode:()=>Tu,createDiagnosticForNodeArray:()=>H8,createDiagnosticForNodeArrayFromMessageChain:()=>lj,createDiagnosticForNodeFromMessageChain:()=>Y3,createDiagnosticForNodeInSourceFile:()=>G4,createDiagnosticForRange:()=>$be,createDiagnosticMessageChainFromDiagnostic:()=>Jbe,createDiagnosticReporter:()=>FH,createDocumentPositionMapper:()=>ZAe,createDocumentRegistry:()=>GSe,createDocumentRegistryInternal:()=>Kfe,createEmitAndSemanticDiagnosticsBuilderProgram:()=>$1e,createEmitHelperFactory:()=>Xke,createEmptyExports:()=>PV,createExpressionForJsxElement:()=>wFe,createExpressionForJsxFragment:()=>TFe,createExpressionForObjectLiteralElementLike:()=>LFe,createExpressionForPropertyName:()=>Rce,createExpressionFromEntityName:()=>MV,createExternalHelpersImportDeclarationIfNeeded:()=>Vce,createFileDiagnostic:()=>Rd,createFileDiagnosticFromMessageChain:()=>rq,createForOfBindingStatement:()=>Ice,createGetCanonicalFileName:()=>N1,createGetSourceFile:()=>C1e,createGetSymbolAccessibilityDiagnosticForNode:()=>h5,createGetSymbolAccessibilityDiagnosticForNodeName:()=>T7e,createGetSymbolWalker:()=>MAe,createIncrementalCompilerHost:()=>ohe,createIncrementalProgram:()=>v9e,createInputFiles:()=>HYe,createInputFilesWithFilePaths:()=>ace,createInputFilesWithFileTexts:()=>oce,createJsxFactoryExpression:()=>zce,createLanguageService:()=>aBe,createLanguageServiceSourceFile:()=>Dee,createMemberAccessForPropertyName:()=>Fk,createModeAwareCache:()=>U7,createModeAwareCacheKey:()=>hM,createModuleNotFoundChain:()=>l0e,createModuleResolutionCache:()=>KB,createModuleResolutionLoader:()=>B1e,createModuleResolutionLoaderUsingGlobalCache:()=>f9e,createModuleSpecifierResolutionHost:()=>Ik,createMultiMap:()=>Tm,createNodeConverters:()=>jke,createNodeFactory:()=>pV,createOptionNameMap:()=>wY,createOverload:()=>$pe,createPackageJsonImportFilter:()=>KM,createPackageJsonInfo:()=>yfe,createParenthesizerRules:()=>Oke,createPatternMatcher:()=>ZSe,createPrependNodes:()=>M1e,createPrinter:()=>Jv,createPrinterWithDefaults:()=>p1e,createPrinterWithRemoveComments:()=>eb,createPrinterWithRemoveCommentsNeverAsciiEscape:()=>g1e,createPrinterWithRemoveCommentsOmitTrailingSemicolon:()=>_H,createProgram:()=>wQ,createProgramHost:()=>ahe,createPropertyNameNodeForIdentifierOrLiteral:()=>gZ,createQueue:()=>Z$,createRange:()=>d4,createRedirectedBuilderProgram:()=>W1e,createResolutionCache:()=>q1e,createRuntimeTypeSerializer:()=>h7e,createScanner:()=>YD,createSemanticDiagnosticsBuilderProgram:()=>Btt,createSet:()=>soe,createSolutionBuilder:()=>Jtt,createSolutionBuilderHost:()=>Wtt,createSolutionBuilderWithWatch:()=>$tt,createSolutionBuilderWithWatchHost:()=>Gtt,createSortedArray:()=>ht,createSourceFile:()=>WV,createSourceMapGenerator:()=>JAe,createSourceMapSource:()=>KYe,createSuperAccessVariableStatement:()=>pQ,createSymbolTable:()=>Ho,createSymlinkCache:()=>kle,createSystemWatchFunctions:()=>b2e,createTextChange:()=>HH,createTextChangeFromStartLength:()=>_X,createTextChangeRange:()=>jO,createTextRangeFromNode:()=>nfe,createTextRangeFromSpan:()=>EX,createTextSpan:()=>h1,createTextSpanFromBounds:()=>Kc,createTextSpanFromNode:()=>of,createTextSpanFromRange:()=>qx,createTextSpanFromStringLiteralLikeContent:()=>ife,createTextWriter:()=>Hj,createTokenRange:()=>ple,createTypeChecker:()=>jAe,createTypeReferenceDirectiveResolutionCache:()=>WY,createTypeReferenceResolutionLoader:()=>AQ,createUnparsedSourceFile:()=>rce,createWatchCompilerHost:()=>Vtt,createWatchCompilerHostOfConfigFile:()=>_9e,createWatchCompilerHostOfFilesAndCompilerOptions:()=>D9e,createWatchFactory:()=>uhe,createWatchHost:()=>nhe,createWatchProgram:()=>Htt,createWatchStatusReporter:()=>m9e,createWriteFileMeasuringIO:()=>b1e,declarationNameToString:()=>k0,decodeMappings:()=>$de,decodedTextSpanIntersectsWith:()=>OO,decorateHelper:()=>TZ,deduplicate:()=>li,defaultIncludeSpec:()=>jY,defaultInitCompilerOptions:()=>RY,defaultMaximumTruncationLength:()=>cV,detectSortCaseSensitivity:()=>cn,diagnosticCategoryName:()=>Gy,diagnosticToString:()=>jk,directoryProbablyExists:()=>hg,directorySeparator:()=>ol,displayPart:()=>yf,displayPartsToString:()=>_K,disposeEmitNodes:()=>lce,disposeResourcesHelper:()=>nY,documentSpansEqual:()=>kX,dumpTracingLegend:()=>x2e,elementAt:()=>qD,elideNodes:()=>GFe,emitComments:()=>Nye,emitDetachedComments:()=>Pye,emitFiles:()=>DQ,emitFilesAndReportErrors:()=>KQ,emitFilesAndReportErrorsAndGetExitStatus:()=>E9e,emitModuleKindIsNonNodeESM:()=>Xq,emitNewLineBeforeLeadingCommentOfPosition:()=>Lye,emitNewLineBeforeLeadingComments:()=>wye,emitNewLineBeforeLeadingCommentsOfPosition:()=>Tye,emitSkippedWithNoDiagnostics:()=>zQ,emitUsingBuildInfo:()=>z7e,emptyArray:()=>Dt,emptyFileSystemEntries:()=>kZ,emptyMap:()=>uU,emptyOptions:()=>m4,emptySet:()=>c2e,endsWith:()=>lc,ensurePathIsNonModuleName:()=>f2,ensureScriptKind:()=>lZ,ensureTrailingDirectorySeparator:()=>zd,entityNameToString:()=>zf,enumerateInsertsAndDeletes:()=>iU,equalOwnProperties:()=>ZA,equateStringsCaseInsensitive:()=>QA,equateStringsCaseSensitive:()=>XA,equateValues:()=>Cx,esDecorateHelper:()=>PZ,escapeJsxAttributeString:()=>tle,escapeLeadingUnderscores:()=>Sl,escapeNonAsciiString:()=>Vj,escapeSnippetText:()=>j2,escapeString:()=>Sv,every:()=>ye,expandPreOrPostfixIncrementOrDecrementExpression:()=>vY,explainFiles:()=>Q1e,explainIfFileIsRedirectAndImpliedFormat:()=>X1e,exportAssignmentIsAlias:()=>tB,exportStarHelper:()=>QZ,expressionResultIsUnused:()=>kke,extend:()=>q$,extendsHelper:()=>HZ,extensionFromPath:()=>y7,extensionIsTS:()=>hZ,extensionsNotSupportingExtensionlessResolution:()=>mV,externalHelpersModuleNameText:()=>Hx,factory:()=>q,fileExtensionIs:()=>Ml,fileExtensionIsOneOf:()=>Hc,fileIncludeReasonToDiagnostics:()=>ihe,fileShouldUseJavaScriptRequire:()=>Tfe,filter:()=>ti,filterMutate:()=>qu,filterSemanticDiagnostics:()=>TQ,find:()=>Le,findAncestor:()=>Tn,findBestPatternMatch:()=>hoe,findChildOfKind:()=>a0,findComputedPropertyNameCacheAssignment:()=>SY,findConfigFile:()=>O7e,findContainingList:()=>lX,findDiagnosticForNode:()=>ISe,findFirstNonJsxWhitespaceToken:()=>nSe,findIndex:()=>Ue,findLast:()=>lt,findLastIndex:()=>Ze,findListItemInfo:()=>iSe,findMap:()=>rt,findModifier:()=>ow,findNextToken:()=>nb,findPackageJson:()=>MSe,findPackageJsons:()=>bfe,findPrecedingMatchingToken:()=>pX,findPrecedingToken:()=>id,findSuperStatementIndexPath:()=>cQ,findTokenOnLeftOfPosition:()=>hX,findUseStrictPrologue:()=>jce,first:()=>Pn,firstDefined:()=>G,firstDefinedIterator:()=>ie,firstIterator:()=>ja,firstOrOnly:()=>Sfe,firstOrUndefined:()=>Ki,firstOrUndefinedIterator:()=>Hn,fixupCompilerOptions:()=>Xfe,flatMap:()=>Vu,flatMapIterator:()=>ga,flatMapToMutable:()=>Nr,flatten:()=>Ha,flattenCommaList:()=>UFe,flattenDestructuringAssignment:()=>wk,flattenDestructuringBinding:()=>X2,flattenDiagnosticMessageText:()=>cE,forEach:()=>L,forEachAncestor:()=>wbe,forEachAncestorDirectory:()=>qg,forEachChild:()=>ao,forEachChildRecursively:()=>rM,forEachEmittedFile:()=>f1e,forEachEnclosingBlockScopeContainer:()=>Kbe,forEachEntry:()=>f1,forEachExternalModuleToImportFrom:()=>Rfe,forEachImportClauseDeclaration:()=>Sq,forEachKey:()=>q_,forEachLeadingCommentRange:()=>PO,forEachNameInAccessChainWalkingLeft:()=>ike,forEachPropertyAssignment:()=>J8,forEachResolvedProjectReference:()=>w1e,forEachReturnStatement:()=>k2,forEachRight:()=>R,forEachTrailingCommentRange:()=>MO,forEachTsConfigPropArray:()=>fj,forEachUnique:()=>dfe,forEachYieldExpression:()=>qbe,forSomeAncestorDirectory:()=>cYe,formatColorAndReset:()=>tb,formatDiagnostic:()=>k1e,formatDiagnostics:()=>dtt,formatDiagnosticsWithColorAndContext:()=>H7e,formatGeneratedName:()=>Vv,formatGeneratedNamePart:()=>RB,formatLocation:()=>F1e,formatMessage:()=>vle,formatStringFromArgs:()=>t3,formatting:()=>dd,fullTripleSlashAMDReferencePathRegEx:()=>Wle,fullTripleSlashReferencePathRegEx:()=>Kle,generateDjb2Hash:()=>SN,generateTSConfig:()=>cXe,generatorHelper:()=>qZ,getAdjustedReferenceLocation:()=>Uhe,getAdjustedRenameLocation:()=>dX,getAliasDeclarationFromName:()=>W0e,getAllAccessorDeclarations:()=>dk,getAllDecoratorsOfClass:()=>Qde,getAllDecoratorsOfClassElement:()=>hQ,getAllJSDocTags:()=>Kse,getAllJSDocTagsOfKind:()=>bZe,getAllKeys:()=>wm,getAllProjectOutputs:()=>_Q,getAllSuperTypeNodes:()=>rP,getAllUnscopedEmitHelpers:()=>mce,getAllowJSCompilerOption:()=>wv,getAllowSyntheticDefaultImports:()=>C7,getAncestor:()=>Av,getAnyExtensionFromPath:()=>wN,getAreDeclarationMapsEnabled:()=>tZ,getAssignedExpandoInitializer:()=>l7,getAssignedName:()=>Rse,getAssignedNameOfIdentifier:()=>DM,getAssignmentDeclarationKind:()=>ec,getAssignmentDeclarationPropertyAccessKind:()=>kj,getAssignmentTargetKind:()=>f7,getAutomaticTypeDirectiveNames:()=>KY,getBaseFileName:()=>Bc,getBinaryOperatorPrecedence:()=>jj,getBuildInfo:()=>xQ,getBuildInfoFileVersionMap:()=>K1e,getBuildInfoText:()=>M7e,getBuildOrderFromAnyBuildOrder:()=>UQ,getBuilderCreationParameters:()=>IQ,getBuilderFileEmit:()=>Ux,getCheckFlags:()=>Gl,getClassExtendsHeritageElement:()=>w2,getClassLikeDeclarationOfSymbol:()=>tD,getCombinedLocalAndExportSymbolFlags:()=>vP,getCombinedModifierFlags:()=>p2,getCombinedNodeFlags:()=>QD,getCombinedNodeFlagsAlwaysIncludeJSDoc:()=>zse,getCommentRange:()=>uE,getCommonSourceDirectory:()=>kM,getCommonSourceDirectoryOfConfig:()=>FM,getCompilerOptionValue:()=>nZ,getCompilerOptionsDiffValue:()=>sXe,getConditions:()=>U2,getConfigFileParsingDiagnostics:()=>Lk,getConstantValue:()=>Jke,getContainerFlags:()=>Pde,getContainerNode:()=>Mk,getContainingClass:()=>Qd,getContainingClassExcludingClassDecorators:()=>mq,getContainingClassStaticBlock:()=>uye,getContainingFunction:()=>Pm,getContainingFunctionDeclaration:()=>nye,getContainingFunctionOrClassStaticBlock:()=>fq,getContainingNodeArray:()=>Fke,getContainingObjectLiteralElement:()=>DK,getContextualTypeFromParent:()=>wX,getContextualTypeFromParentOrAncestorTypeNode:()=>cX,getCurrentTime:()=>SH,getDeclarationDiagnostics:()=>L7e,getDeclarationEmitExtensionForPath:()=>Wj,getDeclarationEmitOutputFilePath:()=>kye,getDeclarationEmitOutputFilePathWorker:()=>Iq,getDeclarationFromName:()=>uP,getDeclarationModifierFlagsFromSymbol:()=>h4,getDeclarationOfKind:()=>Bl,getDeclarationsOfKind:()=>Abe,getDeclaredExpandoInitializer:()=>vj,getDecorators:()=>Ax,getDefaultCompilerOptions:()=>_ee,getDefaultExportInfoWorker:()=>$X,getDefaultFormatCodeSettings:()=>tX,getDefaultLibFileName:()=>IO,getDefaultLibFilePath:()=>oBe,getDefaultLikeExportInfo:()=>JX,getDiagnosticText:()=>QQe,getDiagnosticsWithinSpan:()=>RSe,getDirectoryPath:()=>dr,getDirectoryToWatchFailedLookupLocation:()=>U1e,getDirectoryToWatchFailedLookupLocationFromTypeRoot:()=>d9e,getDocumentPositionMapper:()=>$fe,getESModuleInterop:()=>t_,getEditsForFileRename:()=>$Se,getEffectiveBaseTypeNode:()=>Xg,getEffectiveConstraintOfTypeParameter:()=>w8,getEffectiveContainerForJSDocTemplateTag:()=>Bq,getEffectiveImplementsTypeNodes:()=>iB,getEffectiveInitializer:()=>xj,getEffectiveJSDocHost:()=>ok,getEffectiveModifierFlags:()=>Dh,getEffectiveModifierFlagsAlwaysIncludeJSDoc:()=>Rye,getEffectiveModifierFlagsNoCache:()=>Oye,getEffectiveReturnTypeNode:()=>Z4,getEffectiveSetAccessorTypeAnnotationNode:()=>Bye,getEffectiveTypeAnnotationNode:()=>m1,getEffectiveTypeParameterDeclarations:()=>Sx,getEffectiveTypeRoots:()=>dM,getElementOrPropertyAccessArgumentExpressionOrName:()=>Aq,getElementOrPropertyAccessName:()=>Q3,getElementsOfBindingOrAssignmentPattern:()=>IB,getEmitDeclarations:()=>f4,getEmitFlags:()=>bs,getEmitHelpers:()=>wZ,getEmitModuleDetectionKind:()=>lke,getEmitModuleKind:()=>p1,getEmitModuleResolutionKind:()=>g1,getEmitScriptTarget:()=>js,getEmitStandardClassFields:()=>hke,getEnclosingBlockScopeContainer:()=>QE,getEnclosingContainer:()=>y0e,getEncodedSemanticClassifications:()=>Vfe,getEncodedSyntacticClassifications:()=>Hfe,getEndLinePosition:()=>rj,getEntityNameFromTypeNode:()=>gj,getEntrypointsFromPackageJsonInfo:()=>Ade,getErrorCountForSummary:()=>VQ,getErrorSpanForNode:()=>b2,getErrorSummaryText:()=>p9e,getEscapedTextOfIdentifierOrLiteral:()=>sP,getEscapedTextOfJsxAttributeName:()=>zP,getEscapedTextOfJsxNamespacedName:()=>k7,getExpandoInitializer:()=>kv,getExportAssignmentExpression:()=>G0e,getExportInfoMap:()=>iK,getExportNeedsImportStarHelper:()=>YAe,getExpressionAssociativity:()=>Y0e,getExpressionPrecedence:()=>cP,getExternalHelpersModuleName:()=>IV,getExternalModuleImportEqualsDeclarationExpression:()=>eP,getExternalModuleName:()=>Y8,getExternalModuleNameFromDeclaration:()=>bye,getExternalModuleNameFromPath:()=>nle,getExternalModuleNameLiteral:()=>W7,getExternalModuleRequireArgument:()=>L0e,getFallbackOptions:()=>vH,getFileEmitOutput:()=>q7e,getFileMatcherPatterns:()=>sZ,getFileNamesFromConfigSpecs:()=>sM,getFileWatcherEventKind:()=>Cse,getFilesInErrorForSummary:()=>HQ,getFirstConstructorWithBody:()=>e3,getFirstIdentifier:()=>hm,getFirstNonSpaceCharacterPosition:()=>BSe,getFirstProjectOutput:()=>m1e,getFixableErrorSpanExpression:()=>Ffe,getFormatCodeSettingsForWriting:()=>HX,getFullWidth:()=>nj,getFunctionFlags:()=>kd,getHeritageClause:()=>zj,getHostSignatureFromJSDoc:()=>Fv,getIdentifierAutoGenerate:()=>UYe,getIdentifierGeneratedImportReference:()=>Qke,getIdentifierTypeArguments:()=>gk,getImmediatelyInvokedFunctionExpression:()=>nk,getImpliedNodeFormatForFile:()=>yH,getImpliedNodeFormatForFileWorker:()=>N1e,getImportNeedsImportDefaultHelper:()=>qde,getImportNeedsImportStarHelper:()=>sQ,getIndentSize:()=>oB,getIndentString:()=>Mq,getInferredLibraryNameResolveFrom:()=>BQ,getInitializedVariables:()=>xP,getInitializerOfBinaryExpression:()=>I0e,getInitializerOfBindingOrAssignmentElement:()=>OV,getInterfaceBaseTypeNodes:()=>aP,getInternalEmitFlags:()=>Mp,getInvokedExpression:()=>Eq,getIsolatedModules:()=>mg,getJSDocAugmentsTag:()=>q2e,getJSDocClassTag:()=>Ose,getJSDocCommentRanges:()=>A0e,getJSDocCommentsAndTags:()=>O0e,getJSDocDeprecatedTag:()=>jse,getJSDocDeprecatedTagNoCache:()=>ibe,getJSDocEnumTag:()=>Vse,getJSDocHost:()=>h7,getJSDocImplementsTags:()=>Z2e,getJSDocOverrideTagNoCache:()=>tbe,getJSDocParameterTags:()=>B8,getJSDocParameterTagsNoCache:()=>G2e,getJSDocPrivateTag:()=>_Ze,getJSDocPrivateTagNoCache:()=>Q2e,getJSDocProtectedTag:()=>DZe,getJSDocProtectedTagNoCache:()=>X2e,getJSDocPublicTag:()=>EZe,getJSDocPublicTagNoCache:()=>Y2e,getJSDocReadonlyTag:()=>xZe,getJSDocReadonlyTagNoCache:()=>ebe,getJSDocReturnTag:()=>nbe,getJSDocReturnType:()=>HO,getJSDocRoot:()=>nP,getJSDocSatisfiesExpressionType:()=>jle,getJSDocSatisfiesTag:()=>Hse,getJSDocTags:()=>bv,getJSDocTagsNoCache:()=>CZe,getJSDocTemplateTag:()=>vZe,getJSDocThisTag:()=>PU,getJSDocType:()=>Cv,getJSDocTypeAliasName:()=>Kce,getJSDocTypeAssertionType:()=>bY,getJSDocTypeParameterDeclarations:()=>Vq,getJSDocTypeParameterTags:()=>J2e,getJSDocTypeParameterTagsNoCache:()=>$2e,getJSDocTypeTag:()=>vv,getJSXImplicitImportBase:()=>rZ,getJSXRuntimeImport:()=>aZ,getJSXTransformEnabled:()=>uZ,getKeyForCompilerOptions:()=>bde,getLanguageVariant:()=>Qj,getLastChild:()=>Dle,getLeadingCommentRanges:()=>G_,getLeadingCommentRangesOfNode:()=>F0e,getLeftmostAccessExpression:()=>bP,getLeftmostExpression:()=>dB,getLibraryNameFromLibFileName:()=>T1e,getLineAndCharacterOfPosition:()=>s0,getLineInfo:()=>Gde,getLineOfLocalPosition:()=>hP,getLineOfLocalPositionFromLineMap:()=>lk,getLineStartPositionForPosition:()=>np,getLineStarts:()=>$3,getLinesBetweenPositionAndNextNonWhitespaceCharacter:()=>Yye,getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter:()=>Zye,getLinesBetweenPositions:()=>NN,getLinesBetweenRangeEndAndRangeStart:()=>gle,getLinesBetweenRangeEndPositions:()=>sYe,getLiteralText:()=>zbe,getLocalNameForExternalImport:()=>zB,getLocalSymbolForExportDefault:()=>lB,getLocaleSpecificMessage:()=>to,getLocaleTimeString:()=>AH,getMappedContextSpan:()=>hfe,getMappedDocumentSpan:()=>FX,getMappedLocation:()=>IM,getMatchedFileSpec:()=>ehe,getMatchedIncludeSpec:()=>the,getMeaningFromDeclaration:()=>LH,getMeaningFromLocation:()=>Pk,getMembersOfDeclaration:()=>Zbe,getModeForFileReference:()=>FQ,getModeForResolutionAtIndex:()=>A1e,getModeForUsageLocation:()=>xg,getModifiedTime:()=>e7,getModifiers:()=>g2,getModuleInstanceState:()=>oD,getModuleNameStringLiteralAt:()=>NQ,getModuleSpecifierEndingPreference:()=>wle,getModuleSpecifierResolverHost:()=>ofe,getNameForExportedSymbol:()=>OX,getNameFromIndexInfo:()=>Wbe,getNameFromPropertyName:()=>GH,getNameOfAccessExpression:()=>eke,getNameOfCompilerOptionValue:()=>ode,getNameOfDeclaration:()=>Ya,getNameOfExpando:()=>M0e,getNameOfJSDocTypedef:()=>W2e,getNameOrArgument:()=>yj,getNameTable:()=>Nme,getNamesForExportedSymbol:()=>OSe,getNamespaceDeclarationNode:()=>Q8,getNewLineCharacter:()=>a5,getNewLineKind:()=>tK,getNewLineOrDefaultFromHost:()=>E5,getNewTargetContainer:()=>aye,getNextJSDocCommentLocation:()=>j0e,getNodeForGeneratedName:()=>VV,getNodeId:()=>Us,getNodeKind:()=>ib,getNodeModifiers:()=>PM,getNodeModulePathParts:()=>EZ,getNonAssignedNameOfDeclaration:()=>NU,getNonAssignmentOperatorForCompoundAssignment:()=>gM,getNonAugmentationDeclaration:()=>_0e,getNonDecoratorTokenPosOfNode:()=>f0e,getNormalizedAbsolutePath:()=>qa,getNormalizedAbsolutePathWithoutRoot:()=>Sse,getNormalizedPathComponents:()=>AO,getObjectFlags:()=>Ju,getOperator:()=>X0e,getOperatorAssociativity:()=>Q0e,getOperatorPrecedence:()=>Oj,getOptionFromName:()=>ide,getOptionsForLibraryResolution:()=>kde,getOptionsNameMap:()=>jB,getOrCreateEmitNode:()=>M1,getOrCreateExternalHelpersModuleNameIfNeeded:()=>zFe,getOrUpdate:()=>_0,getOriginalNode:()=>Wl,getOriginalNodeId:()=>z1,getOriginalSourceFile:()=>QZe,getOutputDeclarationFileName:()=>yM,getOutputExtension:()=>EQ,getOutputFileNames:()=>stt,getOutputPathsFor:()=>bM,getOutputPathsForBundle:()=>CM,getOwnEmitOutputFilePath:()=>yye,getOwnKeys:()=>Ps,getOwnValues:()=>q1,getPackageJsonInfo:()=>q2,getPackageJsonTypesVersionsPaths:()=>HY,getPackageJsonsVisibleToFile:()=>zSe,getPackageNameFromTypesPackageName:()=>fM,getPackageScopeForPath:()=>oH,getParameterSymbolFromJSDoc:()=>Lj,getParameterTypeNode:()=>vYe,getParentNodeInSpan:()=>$H,getParseTreeNode:()=>Za,getParsedCommandLineOfConfigFile:()=>JV,getPathComponents:()=>yd,getPathComponentsRelativeTo:()=>wse,getPathFromPathComponents:()=>yx,getPathUpdater:()=>Gfe,getPathsBasePath:()=>Rq,getPatternFromSpec:()=>Sle,getPendingEmitKind:()=>XB,getPositionOfLineAndCharacter:()=>LO,getPossibleGenericSignatures:()=>Zhe,getPossibleOriginalInputExtensionForExtension:()=>Fye,getPossibleTypeArgumentsInfo:()=>Yhe,getPreEmitDiagnostics:()=>ctt,getPrecedingNonSpaceCharacterPosition:()=>SX,getPrivateIdentifier:()=>Xde,getProperties:()=>Yde,getProperty:()=>uo,getPropertyArrayElementValue:()=>iye,getPropertyAssignmentAliasLikeExpression:()=>Dye,getPropertyNameForPropertyNameNode:()=>sk,getPropertyNameForUniqueESSymbol:()=>ZZe,getPropertyNameFromType:()=>ep,getPropertyNameOfBindingOrAssignmentElement:()=>Hce,getPropertySymbolFromBindingElement:()=>yX,getPropertySymbolsFromContextualType:()=>xee,getQuoteFromPreference:()=>lfe,getQuotePreference:()=>Km,getRangesWhere:()=>ku,getRefactorContextSpan:()=>u9,getReferencedFileLocation:()=>AM,getRegexFromPattern:()=>jx,getRegularExpressionForWildcard:()=>kP,getRegularExpressionsForWildcards:()=>oZ,getRelativePathFromDirectory:()=>$E,getRelativePathFromFile:()=>BO,getRelativePathToDirectoryOrUrl:()=>i7,getRenameLocation:()=>ZH,getReplacementSpanForContextToken:()=>tfe,getResolutionDiagnostic:()=>z1e,getResolutionModeOverride:()=>qB,getResolveJsonModule:()=>z2,getResolvePackageJsonExports:()=>ble,getResolvePackageJsonImports:()=>pYe,getResolvedExternalModuleName:()=>zq,getRestIndicatorOfBindingOrAssignmentElement:()=>kY,getRestParameterElementType:()=>S0e,getRightMostAssignedExpression:()=>Cj,getRootDeclaration:()=>e_,getRootDirectoryOfResolutionCache:()=>h9e,getRootLength:()=>GE,getRootPathSplitLength:()=>Ptt,getScriptKind:()=>Efe,getScriptKindFromFileName:()=>cZ,getScriptTargetFeatures:()=>CZ,getSelectedEffectiveModifierFlags:()=>E7,getSelectedSyntacticModifierFlags:()=>zye,getSemanticClassifications:()=>KSe,getSemanticJsxChildren:()=>uB,getSetAccessorTypeAnnotationNode:()=>Aye,getSetAccessorValueParameter:()=>fP,getSetExternalModuleIndicator:()=>Xj,getShebang:()=>wU,getSingleInitializerOfVariableStatementOrPropertyDeclaration:()=>R0e,getSingleVariableOfVariableStatement:()=>eB,getSnapshotText:()=>aw,getSnippetElement:()=>cce,getSourceFileOfModule:()=>XU,getSourceFileOfNode:()=>zn,getSourceFilePathInNewDir:()=>Oq,getSourceFilePathInNewDirWorker:()=>jq,getSourceFileVersionAsHashFromText:()=>WQ,getSourceFilesToEmit:()=>ule,getSourceMapRange:()=>Nv,getSourceMapper:()=>r8e,getSourceTextOfNodeFromSourceFile:()=>v2,getSpanOfTokenAtPosition:()=>XE,getSpellingSuggestion:()=>yN,getStartPositionOfLine:()=>Mx,getStartPositionOfRange:()=>DP,getStartsOnNewLine:()=>OP,getStaticPropertiesAndClassStaticBlock:()=>dQ,getStrictOptionValue:()=>Q4,getStringComparer:()=>bN,getSuperCallFromStatement:()=>lQ,getSuperContainer:()=>mj,getSupportedCodeFixes:()=>Tme,getSupportedExtensions:()=>FP,getSupportedExtensionsWithJsonIfResolveJsonModule:()=>iV,getSwitchedType:()=>vfe,getSymbolId:()=>Yo,getSymbolNameForPrivateIdentifier:()=>Ij,getSymbolTarget:()=>ASe,getSyntacticClassifications:()=>WSe,getSyntacticModifierFlags:()=>Rx,getSyntacticModifierFlagsNoCache:()=>sle,getSynthesizedDeepClone:()=>dl,getSynthesizedDeepCloneWithReplacements:()=>qH,getSynthesizedDeepClones:()=>ub,getSynthesizedDeepClonesWithReplacements:()=>_fe,getSyntheticLeadingComments:()=>DB,getSyntheticTrailingComments:()=>xV,getTargetLabel:()=>rX,getTargetOfBindingOrAssignmentElement:()=>$x,getTemporaryModuleResolutionState:()=>aH,getTextOfConstantValue:()=>Ibe,getTextOfIdentifierOrLiteral:()=>U4,getTextOfJSDocComment:()=>WO,getTextOfJsxAttributeName:()=>lV,getTextOfJsxNamespacedName:()=>IP,getTextOfNode:()=>Wc,getTextOfNodeFromSourceText:()=>$N,getTextOfPropertyName:()=>V8,getThisContainer:()=>tf,getThisParameter:()=>L2,getTokenAtPosition:()=>ya,getTokenPosOfNode:()=>ek,getTokenSourceMapRange:()=>JYe,getTouchingPropertyName:()=>af,getTouchingToken:()=>NM,getTrailingCommentRanges:()=>Ev,getTrailingSemicolonDeferringWriter:()=>ile,getTransformFlagsSubtreeExclusions:()=>Vke,getTransformers:()=>d1e,getTsBuildInfoEmitOutputFilePath:()=>f5,getTsConfigObjectLiteralExpression:()=>YN,getTsConfigPropArrayElementValue:()=>hq,getTypeAnnotationNode:()=>Sye,getTypeArgumentOrTypeParameterList:()=>dSe,getTypeKeywordOfTypeOnlyImport:()=>cfe,getTypeNode:()=>Zke,getTypeNodeIfAccessible:()=>HM,getTypeParameterFromJsDoc:()=>fye,getTypeParameterOwner:()=>hZe,getTypesPackageName:()=>qY,getUILocale:()=>i2e,getUniqueName:()=>Ok,getUniqueSymbolId:()=>SSe,getUseDefineForClassFields:()=>tV,getWatchErrorSummaryDiagnosticMessage:()=>Z1e,getWatchFactory:()=>D1e,group:()=>CN,groupBy:()=>QCe,guessIndentation:()=>kbe,handleNoEmitOptions:()=>P1e,hasAbstractModifier:()=>M2,hasAccessorModifier:()=>tE,hasAmbientModifier:()=>ole,hasChangesInResolutions:()=>c0e,hasChildOfKind:()=>OH,hasContextSensitiveParameters:()=>pZ,hasDecorators:()=>c4,hasDocComment:()=>lSe,hasDynamicName:()=>Ix,hasEffectiveModifier:()=>Rf,hasEffectiveModifiers:()=>Hq,hasEffectiveReadonlyModifier:()=>mP,hasExtension:()=>t7,hasIndexSignature:()=>xfe,hasInitializer:()=>Nx,hasInvalidEscape:()=>ele,hasJSDocNodes:()=>lm,hasJSDocParameterTags:()=>U2e,hasJSFileExtension:()=>I2,hasJsonModuleEmitEnabled:()=>eZ,hasOnlyExpressionInitializer:()=>Qy,hasOverrideModifier:()=>Kq,hasPossibleExternalModuleReference:()=>Hbe,hasProperty:()=>Eu,hasPropertyAccessExpressionWithName:()=>PH,hasQuestionToken:()=>d7,hasRecordedExternalHelpers:()=>MFe,hasResolutionModeOverride:()=>Tke,hasRestParameter:()=>a0e,hasScopeMarker:()=>Ebe,hasStaticModifier:()=>Gc,hasSyntacticModifier:()=>Qu,hasSyntacticModifiers:()=>Mye,hasTSFileExtension:()=>mk,hasTabstop:()=>Ske,hasTrailingDirectorySeparator:()=>ZD,hasType:()=>UU,hasTypeArguments:()=>GZe,hasZeroOrOneAsteriskCharacter:()=>yle,helperString:()=>fce,hostGetCanonicalFileName:()=>n5,hostUsesCaseSensitiveFileNames:()=>Kj,idText:()=>fu,identifierIsThisKeyword:()=>ale,identifierToKeywordKind:()=>xv,identity:()=>ul,identitySourceMapConsumer:()=>oQ,ignoreSourceNewlines:()=>hce,ignoredPaths:()=>FO,importDefaultHelper:()=>YZ,importFromModuleSpecifier:()=>iP,importNameElisionDisabled:()=>Cle,importStarHelper:()=>CV,indexOfAnyCharCode:()=>jt,indexOfNode:()=>j8,indicesOf:()=>Cr,inferredTypesContainingFile:()=>QB,injectClassNamedEvaluationHelperBlockIfMissing:()=>mQ,injectClassThisAssignmentIfMissing:()=>a7e,insertImports:()=>zM,insertLeadingStatement:()=>hQe,insertSorted:()=>At,insertStatementAfterCustomPrologue:()=>Xy,insertStatementAfterStandardPrologue:()=>MZe,insertStatementsAfterCustomPrologue:()=>d0e,insertStatementsAfterStandardPrologue:()=>YE,intersperse:()=>_e,intrinsicTagNameToString:()=>Vle,introducesArgumentsExoticObject:()=>eye,inverseJsxOptionMap:()=>lM,isAbstractConstructorSymbol:()=>Qye,isAbstractModifier:()=>oFe,isAccessExpression:()=>O0,isAccessibilityModifier:()=>Xhe,isAccessor:()=>wx,isAccessorModifier:()=>lFe,isAliasSymbolDeclaration:()=>$Ze,isAliasableExpression:()=>Mj,isAmbientModule:()=>P1,isAmbientPropertyDeclaration:()=>x0e,isAnonymousFunctionDefinition:()=>lP,isAnyDirectorySeparator:()=>kse,isAnyImportOrBareOrAccessedRequire:()=>Vbe,isAnyImportOrReExport:()=>oj,isAnyImportSyntax:()=>tk,isAnySupportedFileExtension:()=>xYe,isApplicableVersionedTypesKey:()=>lH,isArgumentExpressionOfElementAccess:()=>Hhe,isArray:()=>Wa,isArrayBindingElement:()=>HU,isArrayBindingOrAssignmentElement:()=>YO,isArrayBindingOrAssignmentPattern:()=>e0e,isArrayBindingPattern:()=>_k,isArrayLiteralExpression:()=>vh,isArrayLiteralOrObjectLiteralDestructuringPattern:()=>p5,isArrayTypeNode:()=>lY,isArrowFunction:()=>Z0,isAsExpression:()=>SV,isAssertClause:()=>EFe,isAssertEntry:()=>uQe,isAssertionExpression:()=>Yy,isAssertsKeyword:()=>rFe,isAssignmentDeclaration:()=>tP,isAssignmentExpression:()=>ld,isAssignmentOperator:()=>u5,isAssignmentPattern:()=>WN,isAssignmentTarget:()=>X_,isAsteriskToken:()=>kV,isAsyncFunction:()=>oP,isAsyncModifier:()=>HP,isAutoAccessorPropertyDeclaration:()=>ef,isAwaitExpression:()=>Gx,isAwaitKeyword:()=>xce,isBigIntLiteral:()=>uY,isBinaryExpression:()=>eu,isBinaryOperatorToken:()=>WFe,isBindableObjectDefinePropertyCall:()=>rk,isBindableStaticAccessExpression:()=>S2,isBindableStaticElementAccessExpression:()=>Fq,isBindableStaticNameExpression:()=>ak,isBindingElement:()=>Vs,isBindingElementOfBareOrAccessedRequire:()=>lye,isBindingName:()=>qy,isBindingOrAssignmentElement:()=>dbe,isBindingOrAssignmentPattern:()=>qO,isBindingPattern:()=>So,isBlock:()=>go,isBlockOrCatchScoped:()=>m0e,isBlockScope:()=>v0e,isBlockScopedContainerTopLevel:()=>jbe,isBooleanLiteral:()=>KN,isBreakOrContinueStatement:()=>jN,isBreakStatement:()=>tQe,isBuildInfoFile:()=>P7e,isBuilderProgram:()=>g9e,isBundle:()=>Ace,isBundleFileTextLike:()=>tke,isCallChain:()=>$y,isCallExpression:()=>Mo,isCallExpressionTarget:()=>zhe,isCallLikeExpression:()=>x2,isCallLikeOrFunctionLikeExpression:()=>t0e,isCallOrNewExpression:()=>UE,isCallOrNewExpressionTarget:()=>Ihe,isCallSignatureDeclaration:()=>CB,isCallToHelper:()=>VP,isCaseBlock:()=>YP,isCaseClause:()=>BB,isCaseKeyword:()=>cFe,isCaseOrDefaultClause:()=>JU,isCatchClause:()=>J2,isCatchClauseVariableDeclaration:()=>Ake,isCatchClauseVariableDeclarationOrBindingElement:()=>p0e,isCheckJsEnabledForFile:()=>rV,isChildOfNodeWithKind:()=>zZe,isCircularBuildOrder:()=>e9,isClassDeclaration:()=>Jc,isClassElement:()=>Yd,isClassExpression:()=>e1,isClassInstanceProperty:()=>sbe,isClassLike:()=>gr,isClassMemberModifier:()=>Yse,isClassNamedEvaluationHelperBlock:()=>X7,isClassOrTypeElement:()=>VU,isClassStaticBlockDeclaration:()=>zl,isClassThisAssignmentBlock:()=>_M,isCollapsedRange:()=>oYe,isColonToken:()=>nFe,isCommaExpression:()=>zV,isCommaListExpression:()=>qP,isCommaSequence:()=>tM,isCommaToken:()=>iFe,isComment:()=>gX,isCommonJsExportPropertyAssignment:()=>cq,isCommonJsExportedExpression:()=>Qbe,isCompoundAssignment:()=>pM,isComputedNonLiteralName:()=>sj,isComputedPropertyName:()=>Ms,isConciseBody:()=>WU,isConditionalExpression:()=>SB,isConditionalTypeNode:()=>FB,isConstTypeReference:()=>q3,isConstructSignatureDeclaration:()=>AV,isConstructorDeclaration:()=>fc,isConstructorTypeNode:()=>GP,isContextualKeyword:()=>Tq,isContinueStatement:()=>eQe,isCustomPrologue:()=>hj,isDebuggerStatement:()=>iQe,isDeclaration:()=>X1,isDeclarationBindingElement:()=>UO,isDeclarationFileName:()=>t1,isDeclarationName:()=>X3,isDeclarationNameOfEnumOrNamespace:()=>Ele,isDeclarationReadonly:()=>aq,isDeclarationStatement:()=>vbe,isDeclarationWithTypeParameterChildren:()=>b0e,isDeclarationWithTypeParameters:()=>C0e,isDecorator:()=>E1,isDecoratorTarget:()=>Z9e,isDefaultClause:()=>LV,isDefaultImport:()=>c7,isDefaultModifier:()=>oY,isDefaultedExpandoInitializer:()=>cye,isDeleteExpression:()=>fFe,isDeleteTarget:()=>K0e,isDeprecatedDeclaration:()=>jX,isDestructuringAssignment:()=>r5,isDiagnosticWithLocation:()=>kfe,isDiskPathRoot:()=>Fse,isDoStatement:()=>QYe,isDocumentRegistryEntry:()=>nK,isDotDotDotToken:()=>rY,isDottedName:()=>gP,isDynamicName:()=>Pq,isESSymbolIdentifier:()=>YZe,isEffectiveExternalModule:()=>s7,isEffectiveModuleDeclaration:()=>Obe,isEffectiveStrictModeSourceFile:()=>D0e,isElementAccessChain:()=>Wse,isElementAccessExpression:()=>q0,isEmittedFileOfProgram:()=>R7e,isEmptyArrayLiteral:()=>Kye,isEmptyBindingElement:()=>H2e,isEmptyBindingPattern:()=>V2e,isEmptyObjectLiteral:()=>fle,isEmptyStatement:()=>yce,isEmptyStringLiteral:()=>T0e,isEntityName:()=>sm,isEntityNameExpression:()=>tc,isEnumConst:()=>y2,isEnumDeclaration:()=>Rv,isEnumMember:()=>$2,isEqualityOperatorKind:()=>TX,isEqualsGreaterThanToken:()=>uFe,isExclamationToken:()=>FV,isExcludedFile:()=>uAe,isExclusivelyTypeOnlyImportOrExport:()=>S1e,isExpandoPropertyDeclaration:()=>DZ,isExportAssignment:()=>ic,isExportDeclaration:()=>$c,isExportModifier:()=>L7,isExportName:()=>CY,isExportNamespaceAsDefaultDeclaration:()=>iq,isExportOrDefaultModifier:()=>jV,isExportSpecifier:()=>th,isExportsIdentifier:()=>uk,isExportsOrModuleExportsOrAlias:()=>Z2,isExpression:()=>Wt,isExpressionNode:()=>Y_,isExpressionOfExternalModuleImportEqualsDeclaration:()=>eSe,isExpressionOfOptionalChainRoot:()=>IU,isExpressionStatement:()=>Od,isExpressionWithTypeArguments:()=>c5,isExpressionWithTypeArgumentsInClassExtendsClause:()=>$j,isExternalModule:()=>Lc,isExternalModuleAugmentation:()=>C2,isExternalModuleImportEqualsDeclaration:()=>yv,isExternalModuleIndicator:()=>QO,isExternalModuleNameRelative:()=>Id,isExternalModuleReference:()=>a_,isExternalModuleSymbol:()=>KH,isExternalOrCommonJsModule:()=>cm,isFileLevelReservedGeneratedIdentifier:()=>$O,isFileLevelUniqueName:()=>eq,isFileProbablyExternalModule:()=>KV,isFirstDeclarationOfSymbolParameter:()=>ffe,isFixablePromiseHandler:()=>Zfe,isForInOrOfStatement:()=>M8,isForInStatement:()=>mY,isForInitializer:()=>l4,isForOfStatement:()=>BV,isForStatement:()=>vk,isFunctionBlock:()=>F2,isFunctionBody:()=>n0e,isFunctionDeclaration:()=>td,isFunctionExpression:()=>w0,isFunctionExpressionOrArrowFunction:()=>O2,isFunctionLike:()=>Co,isFunctionLikeDeclaration:()=>U0,isFunctionLikeKind:()=>a7,isFunctionLikeOrClassStaticBlockDeclaration:()=>L8,isFunctionOrConstructorTypeNode:()=>cbe,isFunctionOrModuleBlock:()=>Qse,isFunctionSymbol:()=>hye,isFunctionTypeNode:()=>r3,isFutureReservedKeyword:()=>UZe,isGeneratedIdentifier:()=>sl,isGeneratedPrivateIdentifier:()=>Uy,isGetAccessor:()=>Lx,isGetAccessorDeclaration:()=>Im,isGetOrSetAccessorDeclaration:()=>MU,isGlobalDeclaration:()=>Hit,isGlobalScopeAugmentation:()=>Qg,isGrammarError:()=>Pbe,isHeritageClause:()=>mm,isHoistedFunction:()=>sq,isHoistedVariableStatement:()=>lq,isIdentifier:()=>at,isIdentifierANonContextualKeyword:()=>Lq,isIdentifierName:()=>_ye,isIdentifierOrThisTypeNode:()=>jFe,isIdentifierPart:()=>_v,isIdentifierStart:()=>J_,isIdentifierText:()=>Nm,isIdentifierTypePredicate:()=>tye,isIdentifierTypeReference:()=>Cke,isIfStatement:()=>xk,isIgnoredFileFromWildCardWatching:()=>xH,isImplicitGlob:()=>Ale,isImportAttribute:()=>_Fe,isImportAttributeName:()=>obe,isImportAttributes:()=>pY,isImportCall:()=>dm,isImportClause:()=>u_,isImportDeclaration:()=>Sd,isImportEqualsDeclaration:()=>_1,isImportKeyword:()=>WP,isImportMeta:()=>W8,isImportOrExportSpecifier:()=>r7,isImportOrExportSpecifierName:()=>FSe,isImportSpecifier:()=>bf,isImportTypeAssertionContainer:()=>nQe,isImportTypeNode:()=>nD,isImportableFile:()=>Ife,isInComment:()=>m5,isInCompoundLikeAssignment:()=>V0e,isInExpressionContext:()=>Dq,isInJSDoc:()=>_j,isInJSFile:()=>Xn,isInJSXText:()=>oSe,isInJsonFile:()=>vq,isInNonReferenceComment:()=>mSe,isInReferenceComment:()=>fSe,isInRightSideOfInternalImportEqualsDeclaration:()=>nX,isInString:()=>zk,isInTemplateString:()=>qhe,isInTopLevelContext:()=>pq,isInTypeQuery:()=>ck,isIncrementalCompilation:()=>eV,isIndexSignatureDeclaration:()=>Ek,isIndexedAccessTypeNode:()=>I7,isInferTypeNode:()=>P7,isInfinityOrNaNString:()=>NP,isInitializedProperty:()=>mH,isInitializedVariable:()=>Yj,isInsideJsxElement:()=>mX,isInsideJsxElementOrAttribute:()=>aSe,isInsideNodeModules:()=>eK,isInsideTemplateLiteral:()=>VH,isInstanceOfExpression:()=>Wq,isInstantiatedModule:()=>jde,isInterfaceDeclaration:()=>Ch,isInternalDeclaration:()=>l1e,isInternalModuleImportEqualsDeclaration:()=>U8,isInternalName:()=>Oce,isIntersectionTypeNode:()=>kB,isIntrinsicJsxName:()=>aB,isIterationStatement:()=>Tx,isJSDoc:()=>Hp,isJSDocAllType:()=>bFe,isJSDocAugmentsTag:()=>LB,isJSDocAuthorTag:()=>sQe,isJSDocCallbackTag:()=>Bce,isJSDocClassTag:()=>kFe,isJSDocCommentContainingNode:()=>$U,isJSDocConstructSignature:()=>X8,isJSDocDeprecatedTag:()=>Pce,isJSDocEnumTag:()=>NV,isJSDocFunctionType:()=>TB,isJSDocImplementsTag:()=>Mce,isJSDocIndexSignature:()=>Cq,isJSDocLikeText:()=>Uce,isJSDocLink:()=>vFe,isJSDocLinkCode:()=>CFe,isJSDocLinkLike:()=>o7,isJSDocLinkPlain:()=>aQe,isJSDocMemberName:()=>Ov,isJSDocNameReference:()=>XP,isJSDocNamepathType:()=>oQe,isJSDocNamespaceBody:()=>wZe,isJSDocNode:()=>z8,isJSDocNonNullableType:()=>gY,isJSDocNullableType:()=>wB,isJSDocOptionalParameter:()=>sV,isJSDocOptionalType:()=>Sce,isJSDocOverloadTag:()=>NB,isJSDocOverrideTag:()=>_Y,isJSDocParameterTag:()=>Eg,isJSDocPrivateTag:()=>Tce,isJSDocPropertyLikeTag:()=>GO,isJSDocPropertyTag:()=>AFe,isJSDocProtectedTag:()=>Lce,isJSDocPublicTag:()=>wce,isJSDocReadonlyTag:()=>Nce,isJSDocReturnTag:()=>DY,isJSDocSatisfiesExpression:()=>Ole,isJSDocSatisfiesTag:()=>xY,isJSDocSeeTag:()=>lQe,isJSDocSignature:()=>jv,isJSDocTag:()=>I8,isJSDocTemplateTag:()=>_g,isJSDocThisTag:()=>FFe,isJSDocThrowsTag:()=>dQe,isJSDocTypeAlias:()=>$4,isJSDocTypeAssertion:()=>iM,isJSDocTypeExpression:()=>kk,isJSDocTypeLiteral:()=>K7,isJSDocTypeTag:()=>eM,isJSDocTypedefTag:()=>PB,isJSDocUnknownTag:()=>cQe,isJSDocUnknownType:()=>yFe,isJSDocVariadicType:()=>EY,isJSXTagName:()=>$8,isJsonEqual:()=>fZ,isJsonSourceFile:()=>J4,isJsxAttribute:()=>sE,isJsxAttributeLike:()=>GU,isJsxAttributeName:()=>wke,isJsxAttributes:()=>G2,isJsxChild:()=>tj,isJsxClosingElement:()=>K2,isJsxClosingFragment:()=>DFe,isJsxElement:()=>a3,isJsxExpression:()=>QP,isJsxFragment:()=>W2,isJsxNamespacedName:()=>gg,isJsxOpeningElement:()=>oE,isJsxOpeningFragment:()=>V7,isJsxOpeningLikeElement:()=>Ih,isJsxOpeningLikeElementTagName:()=>Y9e,isJsxSelfClosingElement:()=>bk,isJsxSpreadAttribute:()=>H7,isJsxTagNameExpression:()=>GN,isJsxText:()=>w7,isJumpStatementTarget:()=>MH,isKeyword:()=>uf,isKeywordOrPunctuation:()=>wq,isKnownSymbol:()=>Rj,isLabelName:()=>jhe,isLabelOfLabeledStatement:()=>Ohe,isLabeledStatement:()=>H2,isLateVisibilityPaintedStatement:()=>uq,isLeftHandSideExpression:()=>Df,isLeftHandSideOfAssignment:()=>aYe,isLet:()=>oq,isLineBreak:()=>Y1,isLiteralComputedPropertyDeclarationName:()=>Pj,isLiteralExpression:()=>_2,isLiteralExpressionOfObject:()=>qse,isLiteralImportTypeNode:()=>zx,isLiteralKind:()=>VN,isLiteralLikeAccess:()=>kq,isLiteralLikeElementAccess:()=>bj,isLiteralNameOfPropertyDeclarationOrIndexAccess:()=>aX,isLiteralTypeLikeExpression:()=>EQe,isLiteralTypeLiteral:()=>pbe,isLiteralTypeNode:()=>zv,isLocalName:()=>rD,isLogicalOperator:()=>jye,isLogicalOrCoalescingAssignmentExpression:()=>lle,isLogicalOrCoalescingAssignmentOperator:()=>pP,isLogicalOrCoalescingBinaryExpression:()=>Jj,isLogicalOrCoalescingBinaryOperator:()=>Gj,isMappedTypeNode:()=>$P,isMemberName:()=>$_,isMetaProperty:()=>UP,isMethodDeclaration:()=>hc,isMethodOrAccessor:()=>N8,isMethodSignature:()=>u3,isMinusToken:()=>Dce,isMissingDeclaration:()=>rQe,isModifier:()=>Xo,isModifierKind:()=>XD,isModifierLike:()=>ll,isModuleAugmentationExternal:()=>E0e,isModuleBlock:()=>aE,isModuleBody:()=>_be,isModuleDeclaration:()=>xc,isModuleExportsAccessExpression:()=>Q_,isModuleIdentifier:()=>z0e,isModuleName:()=>KFe,isModuleOrEnumDeclaration:()=>XO,isModuleReference:()=>bbe,isModuleSpecifierLike:()=>bX,isModuleWithStringLiteralName:()=>nq,isNameOfFunctionDeclaration:()=>Whe,isNameOfModuleDeclaration:()=>Khe,isNamedClassElement:()=>lbe,isNamedDeclaration:()=>gh,isNamedEvaluation:()=>If,isNamedEvaluationSource:()=>U0e,isNamedExportBindings:()=>Jse,isNamedExports:()=>ip,isNamedImportBindings:()=>u0e,isNamedImports:()=>uD,isNamedImportsOrExports:()=>Zq,isNamedTupleMember:()=>JP,isNamespaceBody:()=>BZe,isNamespaceExport:()=>r_,isNamespaceExportDeclaration:()=>TV,isNamespaceImport:()=>Jx,isNamespaceReexportDeclaration:()=>sye,isNewExpression:()=>V2,isNewExpressionTarget:()=>TM,isNoSubstitutionTemplateLiteral:()=>T7,isNode:()=>yZe,isNodeArray:()=>E2,isNodeArrayMultiLine:()=>qye,isNodeDescendantOf:()=>B2,isNodeKind:()=>JO,isNodeLikeSystem:()=>moe,isNodeModulesDirectory:()=>kU,isNodeWithPossibleHoistedDeclaration:()=>pye,isNonContextualKeyword:()=>$0e,isNonExportDefaultModifier:()=>DQe,isNonGlobalAmbientModule:()=>g0e,isNonGlobalDeclaration:()=>HSe,isNonNullAccess:()=>Bke,isNonNullChain:()=>RU,isNonNullExpression:()=>O7,isNonStaticMethodOrAccessorWithPrivateName:()=>QAe,isNotEmittedOrPartiallyEmittedNode:()=>SZe,isNotEmittedStatement:()=>Fce,isNullishCoalesce:()=>Gse,isNumber:()=>UD,isNumericLiteral:()=>Of,isNumericLiteralName:()=>n3,isObjectBindingElementWithoutPropertyName:()=>JH,isObjectBindingOrAssignmentElement:()=>ZO,isObjectBindingOrAssignmentPattern:()=>Xse,isObjectBindingPattern:()=>Op,isObjectLiteralElement:()=>r0e,isObjectLiteralElementLike:()=>Z3,isObjectLiteralExpression:()=>ys,isObjectLiteralMethod:()=>Ip,isObjectLiteralOrClassExpressionMethodOrAccessor:()=>dq,isObjectTypeDeclaration:()=>x7,isOctalDigit:()=>BU,isOmittedExpression:()=>Fd,isOptionalChain:()=>Q1,isOptionalChainRoot:()=>RN,isOptionalDeclaration:()=>MP,isOptionalJSDocPropertyLikeTag:()=>oV,isOptionalTypeNode:()=>vce,isOuterExpression:()=>yY,isOutermostOptionalChain:()=>ON,isOverrideModifier:()=>sFe,isPackedArrayLiteral:()=>zle,isParameter:()=>io,isParameterDeclaration:()=>T2,isParameterOrCatchClauseVariable:()=>Ile,isParameterPropertyDeclaration:()=>Mf,isParameterPropertyModifier:()=>HN,isParenthesizedExpression:()=>Cf,isParenthesizedTypeNode:()=>M7,isParseTreeNode:()=>IN,isPartOfTypeNode:()=>Z_,isPartOfTypeQuery:()=>xq,isPartiallyEmittedExpression:()=>fY,isPatternMatch:()=>X$,isPinnedComment:()=>tq,isPlainJsFile:()=>uj,isPlusToken:()=>_ce,isPossiblyTypeArgumentPosition:()=>jH,isPostfixUnaryExpression:()=>bce,isPrefixUnaryExpression:()=>Iv,isPrivateIdentifier:()=>ea,isPrivateIdentifierClassElementDeclaration:()=>Eh,isPrivateIdentifierPropertyAccessExpression:()=>T8,isPrivateIdentifierSymbol:()=>xye,isProgramBundleEmitBuildInfo:()=>e9e,isProgramUptoDate:()=>L1e,isPrologueDirective:()=>zp,isPropertyAccessChain:()=>zU,isPropertyAccessEntityNameExpression:()=>Uj,isPropertyAccessExpression:()=>Ru,isPropertyAccessOrQualifiedName:()=>fbe,isPropertyAccessOrQualifiedNameOrImportTypeNode:()=>hbe,isPropertyAssignment:()=>Uc,isPropertyDeclaration:()=>ko,isPropertyName:()=>wc,isPropertyNameLiteral:()=>eE,isPropertySignature:()=>zm,isProtoSetter:()=>vye,isPrototypeAccess:()=>Ox,isPrototypePropertyAssignment:()=>Fj,isPunctuation:()=>J0e,isPushOrUnshiftIdentifier:()=>q0e,isQualifiedName:()=>vf,isQuestionDotToken:()=>aY,isQuestionOrExclamationToken:()=>OFe,isQuestionOrPlusOrMinusToken:()=>HFe,isQuestionToken:()=>Wx,isRawSourceMap:()=>UAe,isReadonlyKeyword:()=>aFe,isReadonlyKeywordOrPlusOrMinusToken:()=>VFe,isRecognizedTripleSlashComment:()=>h0e,isReferenceFileLocation:()=>ZB,isReferencedFile:()=>$v,isRegularExpressionLiteral:()=>gce,isRequireCall:()=>xf,isRequireVariableStatement:()=>P0e,isRestParameter:()=>U_,isRestTypeNode:()=>Cce,isReturnStatement:()=>jp,isReturnStatementWithFixablePromiseHandler:()=>ZX,isRightSideOfAccessExpression:()=>hle,isRightSideOfInstanceofExpression:()=>Hye,isRightSideOfPropertyAccess:()=>uw,isRightSideOfQualifiedName:()=>X9e,isRightSideOfQualifiedNameOrPropertyAccess:()=>EP,isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName:()=>Vye,isRootedDiskPath:()=>Pf,isSameEntityName:()=>q8,isSatisfiesExpression:()=>mFe,isScopeMarker:()=>gbe,isSemicolonClassElement:()=>pFe,isSetAccessor:()=>e5,isSetAccessorDeclaration:()=>jf,isShebangTrivia:()=>Tse,isShiftOperatorOrHigher:()=>Gce,isShorthandAmbientModuleSymbol:()=>UN,isShorthandPropertyAssignment:()=>pm,isSignedNumericLiteral:()=>Nq,isSimpleCopiableExpression:()=>Q2,isSimpleInlineableExpression:()=>lE,isSingleOrDoubleQuote:()=>Dj,isSourceFile:()=>ca,isSourceFileFromLibrary:()=>WM,isSourceFileJS:()=>_h,isSourceFileNotJS:()=>OZe,isSourceFileNotJson:()=>N0e,isSourceMapping:()=>qAe,isSpecialPropertyDeclaration:()=>dye,isSpreadAssignment:()=>d5,isSpreadElement:()=>rE,isStatement:()=>ua,isStatementButNotDeclaration:()=>ej,isStatementOrBlock:()=>Cbe,isStatementWithLocals:()=>Nbe,isStatic:()=>No,isStaticModifier:()=>N7,isString:()=>Ua,isStringAKeyword:()=>qZe,isStringANonContextualKeyword:()=>m7,isStringAndEmptyAnonymousObjectIntersection:()=>hSe,isStringDoubleQuoted:()=>yq,isStringLiteral:()=>rs,isStringLiteralLike:()=>i0,isStringLiteralOrJsxExpression:()=>ybe,isStringLiteralOrTemplate:()=>NSe,isStringOrNumericLiteralLike:()=>Mm,isStringOrRegularExpressionOrTemplateLiteral:()=>Qhe,isStringTextContainingNode:()=>Zse,isSuperCall:()=>ik,isSuperKeyword:()=>KP,isSuperOrSuperProperty:()=>RZe,isSuperProperty:()=>nf,isSupportedSourceFileName:()=>_ke,isSwitchStatement:()=>wV,isSyntaxList:()=>MB,isSyntheticExpression:()=>YYe,isSyntheticReference:()=>j7,isTagName:()=>Vhe,isTaggedTemplateExpression:()=>Dk,isTaggedTemplateTag:()=>q9e,isTemplateExpression:()=>dY,isTemplateHead:()=>vB,isTemplateLiteral:()=>P8,isTemplateLiteralKind:()=>Bx,isTemplateLiteralToken:()=>rbe,isTemplateLiteralTypeNode:()=>ZYe,isTemplateLiteralTypeSpan:()=>dFe,isTemplateMiddle:()=>tFe,isTemplateMiddleOrTemplateTail:()=>OU,isTemplateSpan:()=>ZP,isTemplateTail:()=>Ece,isTextWhiteSpaceLike:()=>_Se,isThis:()=>rw,isThisContainerOrFunctionBlock:()=>rye,isThisIdentifier:()=>P2,isThisInTypeQuery:()=>g7,isThisInitializedDeclaration:()=>gq,isThisInitializedObjectBindingExpression:()=>oye,isThisProperty:()=>pj,isThisTypeNode:()=>cY,isThisTypeParameter:()=>PP,isThisTypePredicate:()=>IZe,isThrowStatement:()=>kce,isToken:()=>u7,isTokenKind:()=>Use,isTraceEnabled:()=>aD,isTransientSymbol:()=>ZE,isTrivia:()=>nB,isTryStatement:()=>Ck,isTupleTypeNode:()=>yB,isTypeAlias:()=>Bj,isTypeAliasDeclaration:()=>Vp,isTypeAssertionExpression:()=>hFe,isTypeDeclaration:()=>gB,isTypeElement:()=>Zy,isTypeKeyword:()=>MM,isTypeKeywordToken:()=>ufe,isTypeKeywordTokenOrIdentifier:()=>DX,isTypeLiteralNode:()=>fm,isTypeNode:()=>Xr,isTypeNodeKind:()=>xle,isTypeOfExpression:()=>AB,isTypeOnlyExportDeclaration:()=>abe,isTypeOnlyImportDeclaration:()=>jU,isTypeOnlyImportOrExportDeclaration:()=>D2,isTypeOperatorNode:()=>z7,isTypeParameterDeclaration:()=>wl,isTypePredicateNode:()=>sY,isTypeQueryNode:()=>bB,isTypeReferenceNode:()=>tp,isTypeReferenceType:()=>qU,isTypeUsableAsPropertyName:()=>X4,isUMDExportSymbol:()=>qq,isUnaryExpression:()=>i0e,isUnaryExpressionWithWrite:()=>mbe,isUnicodeIdentifierStart:()=>AU,isUnionTypeNode:()=>Mv,isUnparsedNode:()=>$se,isUnparsedPrepend:()=>xFe,isUnparsedSource:()=>yk,isUnparsedTextLike:()=>ube,isUrl:()=>F2e,isValidBigIntString:()=>mZ,isValidESSymbolDeclaration:()=>Xbe,isValidTypeOnlyAliasUseSite:()=>Lv,isValueSignatureDeclaration:()=>gye,isVarAwaitUsing:()=>cj,isVarConst:()=>K8,isVarUsing:()=>dj,isVariableDeclaration:()=>ra,isVariableDeclarationInVariableStatement:()=>ZN,isVariableDeclarationInitializedToBareOrAccessedRequire:()=>A2,isVariableDeclarationInitializedToRequire:()=>bq,isVariableDeclarationList:()=>Ad,isVariableLike:()=>G8,isVariableLikeOrAccessor:()=>Ybe,isVariableStatement:()=>Jl,isVoidExpression:()=>R7,isWatchSet:()=>lYe,isWhileStatement:()=>XYe,isWhiteSpaceLike:()=>U3,isWhiteSpaceSingleLine:()=>Zg,isWithStatement:()=>gFe,isWriteAccess:()=>D7,isWriteOnlyAccess:()=>Uq,isYieldExpression:()=>hY,jsxModeNeedsExplicitImport:()=>wfe,keywordPart:()=>Hf,last:()=>yr,lastOrUndefined:()=>Zu,length:()=>S,libMap:()=>PY,libs:()=>QV,lineBreakPart:()=>lw,linkNamePart:()=>ySe,linkPart:()=>pfe,linkTextPart:()=>AX,listFiles:()=>Y1e,loadModuleFromGlobalCache:()=>TAe,loadWithModeAwareCache:()=>bH,makeIdentifierFromModuleName:()=>Rbe,makeImport:()=>g5,makeImportIfNecessary:()=>ESe,makeStringLiteral:()=>n9,mangleScopedPackageName:()=>JB,map:()=>Vt,mapAllOrFail:()=>Vr,mapDefined:()=>qi,mapDefinedEntries:()=>na,mapDefinedIterator:()=>Ka,mapEntries:()=>Ii,mapIterator:()=>Ir,mapOneOrMany:()=>Afe,mapToDisplayParts:()=>Zx,matchFiles:()=>Ble,matchPatternOrExact:()=>Tle,matchedText:()=>o2e,matchesExclude:()=>NY,maybeBind:()=>Lo,maybeSetLocalizedDiagnosticMessages:()=>oke,memoize:()=>zh,memoizeCached:()=>e2e,memoizeOne:()=>KE,memoizeWeak:()=>_qe,metadataHelper:()=>LZ,min:()=>loe,minAndMax:()=>xke,missingFileModifiedTime:()=>W_,modifierToFlag:()=>_7,modifiersToFlags:()=>iE,moduleOptionDeclaration:()=>hde,moduleResolutionIsEqualTo:()=>Tbe,moduleResolutionNameAndModeGetter:()=>kH,moduleResolutionOptionDeclarations:()=>MY,moduleResolutionSupportsPackageJsonExportsAndImports:()=>b7,moduleResolutionUsesNodeModules:()=>xX,moduleSpecifiers:()=>Y2,moveEmitHelpers:()=>Uke,moveRangeEnd:()=>Jq,moveRangePastDecorators:()=>o5,moveRangePastModifiers:()=>nE,moveRangePos:()=>Bv,moveSyntheticComments:()=>Gke,mutateMap:()=>cB,mutateMapSkippingNewValues:()=>eD,needsParentheses:()=>BX,needsScopeMarker:()=>KU,newCaseClauseTracker:()=>KX,newPrivateEnvironment:()=>t7e,noEmitNotification:()=>pH,noEmitSubstitution:()=>vM,noTransformers:()=>h1e,noTruncationMaximumTruncationLength:()=>vZ,nodeCanBeDecorated:()=>_q,nodeHasName:()=>VO,nodeIsDecorated:()=>QN,nodeIsMissing:()=>Xl,nodeIsPresent:()=>W4,nodeIsSynthesized:()=>cl,nodeModuleNameResolver:()=>bAe,nodeModulesPathPart:()=>s_,nodeNextJsonConfigResolver:()=>yAe,nodeOrChildIsDecorated:()=>Ej,nodeOverlapsWithStartEnd:()=>oX,nodePosToString:()=>TZe,nodeSeenTracker:()=>i9,nodeStartsNewLexicalEnvironment:()=>Z0e,nodeToDisplayParts:()=>zit,noop:()=>Rs,noopFileWatcher:()=>tw,normalizePath:()=>Uo,normalizeSlashes:()=>Z1,not:()=>tU,notImplemented:()=>fo,notImplementedResolver:()=>vQ,nullNodeConverters:()=>nce,nullParenthesizerRules:()=>ice,nullTransformationContext:()=>Dg,objectAllocator:()=>Xd,operatorPart:()=>RM,optionDeclarations:()=>o3,optionMapToObject:()=>ade,optionsAffectingProgramStructure:()=>Ede,optionsForBuild:()=>Dde,optionsForWatch:()=>VB,optionsHaveChanges:()=>R8,optionsHaveModuleResolutionChanges:()=>Sbe,or:()=>dg,orderedRemoveItem:()=>EO,orderedRemoveItemAt:()=>mv,outFile:()=>F0,packageIdToPackageName:()=>QU,packageIdToString:()=>Px,paramHelper:()=>NZ,parameterIsThisKeyword:()=>N2,parameterNamePart:()=>xSe,parseBaseNodeFactory:()=>Qce,parseBigInt:()=>vke,parseBuildCommand:()=>YQe,parseCommandLine:()=>qQe,parseCommandLineWorker:()=>tde,parseConfigFileTextToJson:()=>nde,parseConfigFileWithSystem:()=>ztt,parseConfigHostFromCompilerHostLike:()=>LQ,parseCustomTypeOption:()=>TY,parseIsolatedEntityName:()=>G7,parseIsolatedJSDocComment:()=>ZFe,parseJSDocTypeExpressionForTests:()=>zQe,parseJsonConfigFileContent:()=>dXe,parseJsonSourceFileConfigFileContent:()=>qV,parseJsonText:()=>GV,parseListTypeOption:()=>QFe,parseNodeFactory:()=>o_,parseNodeModuleFromPath:()=>rH,parsePackageName:()=>sH,parsePseudoBigInt:()=>BP,parseValidBigInt:()=>Mle,patchWriteFileEnsuringDirectory:()=>y2e,pathContainsNodeModules:()=>q7,pathIsAbsolute:()=>BN,pathIsBareSpecifier:()=>Ase,pathIsRelative:()=>om,patternText:()=>a2e,perfLogger:()=>mh,performIncrementalCompilation:()=>jtt,performance:()=>_2e,plainJSErrors:()=>MQ,positionBelongsToNode:()=>Jhe,positionIsASICandidate:()=>NX,positionIsSynthesized:()=>pg,positionsAreOnSameLine:()=>Y4,preProcessFile:()=>lnt,probablyUsesSemicolons:()=>QH,processCommentPragmas:()=>Zce,processPragmasIntoFields:()=>Yce,processTaggedTemplateExpression:()=>u1e,programContainsEsModules:()=>gSe,programContainsModules:()=>pSe,projectReferenceIsEqualTo:()=>s0e,propKeyHelper:()=>JZ,propertyNamePart:()=>vSe,pseudoBigIntToString:()=>R2,punctuationPart:()=>nh,pushIfUnique:()=>Ca,quote:()=>VM,quotePreferenceFromString:()=>sfe,rangeContainsPosition:()=>zH,rangeContainsPositionExclusive:()=>IH,rangeContainsRange:()=>Hm,rangeContainsRangeExclusive:()=>tSe,rangeContainsStartEnd:()=>RH,rangeEndIsOnSameLineAsRangeStart:()=>Zj,rangeEndPositionsAreOnSameLine:()=>$ye,rangeEquals:()=>zi,rangeIsOnSingleLine:()=>hk,rangeOfNode:()=>Nle,rangeOfTypeParameters:()=>Ple,rangeOverlapsWithStartEnd:()=>LM,rangeStartIsOnSameLineAsRangeEnd:()=>Uye,rangeStartPositionsAreOnSameLine:()=>$q,readBuilderProgram:()=>$Q,readConfigFile:()=>$V,readHelper:()=>WZ,readJson:()=>_P,readJsonConfigFile:()=>tAe,readJsonOrUndefined:()=>mle,reduceEachLeadingCommentRange:()=>T2e,reduceEachTrailingCommentRange:()=>L2e,reduceLeft:()=>nn,reduceLeftIterator:()=>ue,reducePathComponents:()=>Jy,refactor:()=>a9,regExpEscape:()=>EYe,relativeComplement:()=>Ur,removeAllComments:()=>_V,removeEmitHelper:()=>$Ye,removeExtension:()=>uV,removeFileExtension:()=>xh,removeIgnoredPath:()=>RQ,removeMinAndVersionNumbers:()=>coe,removeOptionality:()=>sSe,removePrefix:()=>kN,removeSuffix:()=>D8,removeTrailingDirectorySeparator:()=>pv,repeatString:()=>WH,replaceElement:()=>Zd,resolutionExtensionIsTSOrJson:()=>AP,resolveConfigFileProjectName:()=>she,resolveJSModule:()=>vAe,resolveLibrary:()=>GY,resolveModuleName:()=>WB,resolveModuleNameFromCache:()=>UXe,resolvePackageNameToPackageJson:()=>Cde,resolvePath:()=>kx,resolveProjectReferencePath:()=>YB,resolveTripleslashReference:()=>kQ,resolveTypeReferenceDirective:()=>_Ae,resolvingEmptyArray:()=>xZ,restHelper:()=>jZ,returnFalse:()=>cg,returnNoopFileWatcher:()=>iw,returnTrue:()=>J3,returnUndefined:()=>fv,returnsPromise:()=>qfe,runInitializersHelper:()=>MZ,sameFlatMap:()=>R0,sameMap:()=>Pu,sameMapping:()=>Ret,scanShebangTrivia:()=>Lse,scanTokenAtPosition:()=>Ube,scanner:()=>uh,screenStartingMessageCodes:()=>JQ,semanticDiagnosticsOptionDeclarations:()=>mde,serializeCompilerOptions:()=>sde,server:()=>ndt,servicesVersion:()=>sBe,setCommentRange:()=>Tc,setConfigFileInOptions:()=>cde,setConstantValue:()=>$ke,setEachParent:()=>pB,setEmitFlags:()=>Yn,setFunctionNameHelper:()=>$Z,setGetSourceFileAsHashVersioned:()=>GQ,setIdentifierAutoGenerate:()=>vV,setIdentifierGeneratedImportReference:()=>Yke,setIdentifierTypeArguments:()=>l5,setInternalEmitFlags:()=>DV,setLocalizedDiagnosticMessages:()=>ake,setModuleDefaultHelper:()=>ZZ,setNodeFlags:()=>yke,setObjectAllocator:()=>rke,setOriginalNode:()=>su,setParent:()=>ks,setParentRecursive:()=>Vx,setPrivateIdentifier:()=>Bk,setSnippetElement:()=>dce,setSourceMapRange:()=>As,setStackTraceLimit:()=>Oqe,setStartsOnNewLine:()=>SZ,setSyntheticLeadingComments:()=>Pv,setSyntheticTrailingComments:()=>A7,setSys:()=>Wqe,setSysLog:()=>C2e,setTextRange:()=>Pt,setTextRangeEnd:()=>mB,setTextRangePos:()=>wP,setTextRangePosEnd:()=>i_,setTextRangePosWidth:()=>TP,setTokenSourceMapRange:()=>Wke,setTypeNode:()=>qke,setUILocale:()=>n2e,setValueDeclaration:()=>Aj,shouldAllowImportingTsExtension:()=>$B,shouldPreserveConstEnums:()=>fk,shouldResolveJsRequire:()=>iZ,shouldUseUriStyleNodeCoreModules:()=>VX,showModuleSpecifier:()=>Xye,signatureHasLiteralTypes:()=>Vde,signatureHasRestParameter:()=>ih,signatureToDisplayParts:()=>gfe,single:()=>bd,singleElementArray:()=>Hy,singleIterator:()=>Pa,singleOrMany:()=>B0,singleOrUndefined:()=>Sa,skipAlias:()=>eh,skipAssertions:()=>mQe,skipConstraint:()=>rfe,skipOuterExpressions:()=>vc,skipParentheses:()=>l0,skipPartiallyEmittedExpressions:()=>Pp,skipTrivia:()=>gs,skipTypeChecking:()=>SP,skipTypeParentheses:()=>H0e,skipWhile:()=>l2e,sliceAfter:()=>Lle,some:()=>Ge,sort:()=>Mh,sortAndDeduplicate:()=>pi,sortAndDeduplicateDiagnostics:()=>A8,sourceFileAffectingCompilerOptions:()=>zY,sourceFileMayBeEmitted:()=>p7,sourceMapCommentRegExp:()=>rQ,sourceMapCommentRegExpDontCareLineStart:()=>Ude,spacePart:()=>$l,spanMap:()=>Hl,spreadArrayHelper:()=>GZ,stableSort:()=>sc,startEndContainsRange:()=>Ghe,startEndOverlapsWithStartEnd:()=>sX,startOnNewLine:()=>bh,startTracing:()=>D2e,startsWith:()=>Ma,startsWithDirectory:()=>Bse,startsWithUnderscore:()=>Bfe,startsWithUseStrict:()=>NFe,stringContainsAt:()=>VSe,stringToToken:()=>m2,stripQuotes:()=>q4,supportedDeclarationExtensions:()=>hV,supportedJSExtensions:()=>Xle,supportedJSExtensionsFlat:()=>_B,supportedLocaleDirectories:()=>o0e,supportedTSExtensions:()=>EB,supportedTSExtensionsFlat:()=>Qle,supportedTSImplementationExtensions:()=>fV,suppressLeadingAndTrailingTrivia:()=>Kf,suppressLeadingTrivia:()=>Dfe,suppressTrailingTrivia:()=>wSe,symbolEscapedNameNoDefault:()=>CX,symbolName:()=>cc,symbolNameNoDefault:()=>vX,symbolPart:()=>DSe,symbolToDisplayParts:()=>OM,syntaxMayBeASICandidate:()=>Mfe,syntaxRequiresTrailingSemicolonOrASI:()=>LX,sys:()=>d1,sysLog:()=>yO,tagNamesAreEquivalent:()=>Hv,takeWhile:()=>nU,targetOptionDeclaration:()=>eH,templateObjectHelper:()=>KZ,testFormatSettings:()=>U9e,textChangeRangeIsUnchanged:()=>O2e,textChangeRangeNewSpan:()=>zN,textChanges:()=>iu,textOrKeywordPart:()=>mfe,textPart:()=>Wm,textRangeContainsPositionInclusive:()=>RO,textSpanContainsPosition:()=>Mse,textSpanContainsTextSpan:()=>M2e,textSpanEnd:()=>Dc,textSpanIntersection:()=>R2e,textSpanIntersectsWith:()=>LU,textSpanIntersectsWithPosition:()=>I2e,textSpanIntersectsWithTextSpan:()=>dZe,textSpanIsEmpty:()=>P2e,textSpanOverlap:()=>z2e,textSpanOverlapsWith:()=>cZe,textSpansEqual:()=>sw,textToKeywordObj:()=>zO,timestamp:()=>J0,toArray:()=>YA,toBuilderFileEmit:()=>u9e,toBuilderStateFileInfoForMultiEmit:()=>n9e,toEditorSettings:()=>EK,toFileNameLowerCase:()=>Ug,toLowerCase:()=>XCe,toPath:()=>$0,toProgramEmitPending:()=>r9e,tokenIsIdentifierOrKeyword:()=>ph,tokenIsIdentifierOrKeywordOrGreaterThan:()=>B2e,tokenToString:()=>qo,trace:()=>Ba,tracing:()=>Gn,tracingEnabled:()=>xO,transform:()=>srt,transformClassFields:()=>d7e,transformDeclarations:()=>c1e,transformECMAScriptModule:()=>s1e,transformES2015:()=>F7e,transformES2016:()=>k7e,transformES2017:()=>p7e,transformES2018:()=>g7e,transformES2019:()=>E7e,transformES2020:()=>_7e,transformES2021:()=>D7e,transformES5:()=>A7e,transformESDecorators:()=>m7e,transformESNext:()=>x7e,transformGenerators:()=>S7e,transformJsx:()=>y7e,transformLegacyDecorators:()=>f7e,transformModule:()=>o1e,transformNamedEvaluation:()=>Vf,transformNodeModule:()=>w7e,transformNodes:()=>gH,transformSystemModule:()=>B7e,transformTypeScript:()=>c7e,transpile:()=>Ent,transpileModule:()=>a8e,transpileOptionValueCompilerOptions:()=>_de,tryAddToSet:()=>Bs,tryAndIgnoreErrors:()=>zX,tryCast:()=>ar,tryDirectoryExists:()=>MX,tryExtractTSExtension:()=>Gq,tryFileExists:()=>XH,tryGetClassExtendingExpressionWithTypeArguments:()=>cle,tryGetClassImplementingOrExtendingExpressionWithTypeArguments:()=>dle,tryGetDirectories:()=>PX,tryGetExtensionFromPath:()=>i3,tryGetImportFromModuleSpecifier:()=>Sj,tryGetJSDocSatisfiesTypeNode:()=>_Z,tryGetModuleNameFromFile:()=>RV,tryGetModuleSpecifierFromDeclaration:()=>Z8,tryGetNativePerformanceHooks:()=>p2e,tryGetPropertyAccessOrIdentifierToString:()=>qj,tryGetPropertyNameOfBindingOrAssignmentElement:()=>FY,tryGetSourceMappingURL:()=>$Ae,tryGetTextOfPropertyName:()=>qN,tryIOAndConsumeErrors:()=>IX,tryParsePattern:()=>fB,tryParsePatterns:()=>dZ,tryParseRawSourceMap:()=>Jde,tryReadDirectory:()=>Cfe,tryReadFile:()=>aM,tryRemoveDirectoryPrefix:()=>Fle,tryRemoveExtension:()=>Dke,tryRemovePrefix:()=>foe,tryRemoveSuffix:()=>r2e,typeAcquisitionDeclarations:()=>tH,typeAliasNamePart:()=>CSe,typeDirectiveIsEqualTo:()=>Lbe,typeKeywords:()=>WX,typeParameterNamePart:()=>bSe,typeReferenceResolutionNameAndModeGetter:()=>PQ,typeToDisplayParts:()=>UH,unchangedPollThresholds:()=>kO,unchangedTextChangeRange:()=>ij,unescapeLeadingUnderscores:()=>Qr,unmangleScopedPackageName:()=>cH,unorderedRemoveItem:()=>Vy,unorderedRemoveItemAt:()=>doe,unreachableCodeIsError:()=>cke,unusedLabelIsError:()=>dke,unwrapInnermostStatementOfLabel:()=>B0e,updateErrorForNoInputFiles:()=>LY,updateLanguageServiceSourceFile:()=>Lme,updateMissingFilePathsWatch:()=>_1e,updatePackageJsonWatch:()=>ltt,updateResolutionField:()=>HB,updateSharedExtendedConfigFileWatcher:()=>bQ,updateSourceFile:()=>qce,updateWatchingWildcardDirectories:()=>DH,usesExtensionsOnImports:()=>Eke,usingSingleLineStringWriter:()=>JN,utf16EncodeAsString:()=>F8,validateLocaleAndSetLanguage:()=>fZe,valuesHelper:()=>UZ,version:()=>_,versionMajorMinor:()=>g,visitArray:()=>hH,visitCommaListElements:()=>fH,visitEachChild:()=>rn,visitFunctionBody:()=>jm,visitIterationBody:()=>Rh,visitLexicalEnvironment:()=>uQ,visitNode:()=>yt,visitNodes:()=>kn,visitParameterList:()=>Cc,walkUpBindingElementsAndPatterns:()=>S8,walkUpLexicalEnvironments:()=>e7e,walkUpOuterExpressions:()=>PFe,walkUpParenthesizedExpressions:()=>i5,walkUpParenthesizedTypes:()=>Nj,walkUpParenthesizedTypesAndGetParentAndChild:()=>Eye,whitespaceOrMapCommentRegExp:()=>aQ,writeCommentRange:()=>sB,writeFile:()=>dP,writeFileEnsuringDirectories:()=>rle,zipWith:()=>re});var rdt=o({"src/typescript/_namespaces/ts.ts"(){Bo(),wH(),or(),eC(),fXt()}}),mXt=c({"src/typescript/typescript.ts"(t,u){rdt(),rdt(),typeof console<"u"&&(H.loggingHost={log(s,d){switch(s){case 1:return console.error(d);case 2:return console.warn(d);case 3:return console.log(d);case 4:return console.log(d)}}}),u.exports=udt}});return mXt()})();r.exports&&(r.exports=i)})(K6t);var whi=K6t.exports;const ngt=Fhi(whi);class BGe{constructor(e,i){pc(this,"id");pc(this,"name");pc(this,"columns",[]);pc(this,"settings");this.name=e,this.settings=i}loadFromObj(e){this.name=e.name,this.settings=e.settings,this.columns=e.columns.map(i=>this.prepareColumn(i)),this.processMiddlewareHandlers()}toObj(){return{name:this.name,columns:this.columns,settings:this.settings}}removeColumn(e){this.columns.splice(this.columns.findIndex(i=>i.id===e),1)}prepareColumn(e){let i=ngt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e}processMiddlewareHandlers(){this.settings.middlewares=this.settings.middlewares.map(e=>{let i=ngt.transpile("return "+e.handlerTsCode);return e.handler=new Function(i)(),e})}swapElement(e,i){var n=this.columns[e];this.columns[e]=this.columns[i],this.columns[i]=n}move(e,i){let n=this.columns.findIndex(o=>o.id===e),a=i>0?n+1:n-1;this.swapElement(n,a)}add(e){e.idx=this.columns.length===0?0:this.columns.length,e.id=Math.random().toString().substring(2,8),e.width=e.width||150,e.handlerTsCode&&(e=this.prepareColumn(e)),this.columns.push(e)}update(e){e=this.prepareColumn(e);let i=this.columns.findIndex(n=>n.id===e.id);this.columns[i]=e}getColumn(e){return this.columns.find(i=>i.id===e)}}const ugt=()=>({read:0,starred:0,unread:0}),GT=b6e("filter",()=>{const r=Io({read:!1,unread:!1,starred:!1}),e=Io({...ugt()}),i=(h,g)=>{e.value[h]||(e.value[h]=0),e.value[h]+=g},n=h=>{r.value[h]=!r.value[h]},a=()=>{e.value={...ugt()}},o=()=>{for(let h in r.value)r.value[h]=!1},c=j6(()=>Object.entries(r.value).filter(([g,_])=>_).map(g=>g[0]));return{filters:e,filterToggle:r,enabledFilters:c,reset:a,resetToggles:o,changeFilter:i,toggleFilter:n}});class Thi{constructor(){pc(this,"headers",{});pc(this,"onRequestStart",null);pc(this,"onRequestEnd",null)}setHeader(e,i){this.headers[e]=i}setAuthToken(e){e&&this.setHeader("logdy-client-id",e)}async sendGet(e){let i={};this.onRequestStart&&(i=this.onRequestStart()||{});let n=await fetch(window.location.pathname+"api/"+e,{method:"GET",headers:{...this.headers,...i}});return this.onRequestEnd&&this.onRequestEnd(),{status:n.status,headers:n.headers,json:n.headers.get("content-type")=="application/json"?await n.json():{},body:n.bodyUsed?"":await n.text()}}async sendPost(e,i){let n={};this.onRequestStart&&(n=this.onRequestStart()||{});let a=await fetch("api/"+e,{method:"POST",body:i?JSON.stringify(i):null,headers:{"Content-Type":"application/json",...this.headers,...n}});return this.onRequestEnd&&this.onRequestEnd(),{status:a.status,headers:a.headers,json:a.headers.get("content-type")=="application/json"?await a.json():{},body:a.bodyUsed?"":await a.text()}}async resume(){await this.sendGet("client/set-status?status=following")}async resumeFromCursor(){await this.sendGet("client/set-status?status=following&from_cursor=true")}async pause(){await this.sendGet("client/set-status?status=stopped")}async clientStatus(){return this.sendGet("client/check-status")}async peek(e,i){return this.sendPost("client/peek-log",{idxs:[e,i]})}async load(e,i){return this.sendGet(`client/load?start=${e+1}&count=${i}`)}}const $S=new Thi;function NI(r){return r.toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")}function Lhi(r,e){return new URLSearchParams(r).get(e)}const Nhi=async()=>{const r=new Go,e=await WebAssembly.instantiateStreaming(fetch("/main.wasm"),r.importObject);r.run(e.instance)},Phi=r=>{console.log("Breser query:",r);let e=GO_EXPR_setExpression(r);if(e&&e.error)return console.log("Error while setting Breser query",e),e.error},Mhi=r=>GO_EXPR_runQuery(JSON.stringify(r));//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT //! momentjs.com -var J6t;function lo(){return J6t.apply(null,arguments)}function Nhi(r){J6t=r}function Ay(r){return r instanceof Array||Object.prototype.toString.call(r)==="[object Array]"}function GI(r){return r!=null&&Object.prototype.toString.call(r)==="[object Object]"}function B1(r,e){return Object.prototype.hasOwnProperty.call(r,e)}function kGe(r){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(r).length===0;var e;for(e in r)if(B1(r,e))return!1;return!0}function Y5(r){return r===void 0}function t8(r){return typeof r=="number"||Object.prototype.toString.call(r)==="[object Number]"}function dae(r){return r instanceof Date||Object.prototype.toString.call(r)==="[object Date]"}function $6t(r,e){var i=[],n,a=r.length;for(n=0;n>>0,n;for(n=0;n0)for(i=0;i>>0,n;for(n=0;n0)for(i=0;i=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var BGe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C_e=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,cIe={},QG={};function h0(r,e,i,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),r&&(QG[r]=a),e&&(QG[e[0]]=function(){return AA(a.apply(this,arguments),e[1],e[2])}),i&&(QG[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),r)})}function Rhi(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Ohi(r){var e=r.match(BGe),i,n;for(i=0,n=e.length;i=0&&C_e.test(r);)r=r.replace(C_e,n),C_e.lastIndex=0,i-=1;return r}var jhi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Vhi(r){var e=this._longDateFormat[r],i=this._longDateFormat[r.toUpperCase()];return e||!i?e:(this._longDateFormat[r]=i.match(BGe).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[r])}var Hhi="Invalid date";function Khi(){return this._invalidDate}var Whi="%d",Ghi=/\d{1,2}/;function Jhi(r){return this._ordinal.replace("%d",r)}var $hi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Uhi(r,e,i,n){var a=this._relativeTime[i];return HA(a)?a(r,e,i,n):a.replace(/%d/i,r)}function qhi(r,e){var i=this._relativeTime[r>0?"future":"past"];return HA(i)?i(e):i.replace(/%s/i,e)}var igt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function a2(r){return typeof r=="string"?igt[r]||igt[r.toLowerCase()]:void 0}function wGe(r){var e={},i,n;for(n in r)B1(r,n)&&(i=a2(n),i&&(e[i]=r[n]));return e}var Zhi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Yhi(r){var e=[],i;for(i in r)B1(r,i)&&e.push({unit:i,priority:Zhi[i]});return e.sort(function(n,a){return n.priority-a.priority}),e}var Y6t=/\d/,nv=/\d\d/,Q6t=/\d{3}/,TGe=/\d{4}/,D6e=/[+-]?\d{6}/,rm=/\d\d?/,X6t=/\d\d\d\d?/,evt=/\d\d\d\d\d\d?/,x6e=/\d{1,3}/,LGe=/\d{1,4}/,v6e=/[+-]?\d{1,6}/,v$=/\d+/,C6e=/[+-]?\d+/,Qhi=/Z|[+-]\d\d:?\d\d/gi,b6e=/Z|[+-]\d\d(?::?\d\d)?/gi,Xhi=/[+-]?\d+(\.\d{1,3})?/,fae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,C$=/^[1-9]\d?/,NGe=/^([1-9]\d|\d)/,$De;$De={};function ps(r,e,i){$De[r]=HA(e)?e:function(n,a){return n&&i?i:e}}function efi(r,e){return B1($De,r)?$De[r](e._strict,e._locale):new RegExp(tfi(r))}function tfi(r){return US(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,i,n,a,o){return i||n||a||o}))}function US(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function KC(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function xd(r){var e=+r,i=0;return e!==0&&isFinite(e)&&(i=KC(e)),i}var uje={};function Qh(r,e){var i,n=e,a;for(typeof r=="string"&&(r=[r]),t8(e)&&(n=function(o,c){c[e]=xd(o)}),a=r.length,i=0;i68?1900:2e3)};var tvt=b$("FullYear",!0);function rfi(){return y6e(this.year())}function b$(r,e){return function(i){return i!=null?(ivt(this,r,i),lo.updateOffset(this,e),this):wue(this,r)}}function wue(r,e){if(!r.isValid())return NaN;var i=r._d,n=r._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function ivt(r,e,i){var n,a,o,c,h;if(!(!r.isValid()||isNaN(i))){switch(n=r._d,a=r._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(a?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(a?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(a?n.setUTCHours(i):n.setHours(i));case"Date":return void(a?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=i,c=r.month(),h=r.date(),h=h===29&&c===1&&!y6e(o)?28:h,a?n.setUTCFullYear(o,c,h):n.setFullYear(o,c,h)}}function afi(r){return r=a2(r),HA(this[r])?this[r]():this}function ofi(r,e){if(typeof r=="object"){r=wGe(r);var i=Yhi(r),n,a=i.length;for(n=0;n=0?(h=new Date(r+400,e,i,n,a,o,c),isFinite(h.getFullYear())&&h.setFullYear(r)):h=new Date(r,e,i,n,a,o,c),h}function Tue(r){var e,i;return r<100&&r>=0?(i=Array.prototype.slice.call(arguments),i[0]=r+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(r)):e=new Date(Date.UTC.apply(null,arguments)),e}function UDe(r,e,i){var n=7+e-i,a=(7+Tue(r,0,n).getUTCDay()-e)%7;return-a+n-1}function svt(r,e,i,n,a){var o=(7+i-n)%7,c=UDe(r,n,a),h=1+7*(e-1)+o+c,g,_;return h<=0?(g=r-1,_=Rne(g)+h):h>Rne(r)?(g=r+1,_=h-Rne(r)):(g=r,_=h),{year:g,dayOfYear:_}}function Lue(r,e,i){var n=UDe(r.year(),e,i),a=Math.floor((r.dayOfYear()-n-1)/7)+1,o,c;return a<1?(c=r.year()-1,o=a+qS(c,e,i)):a>qS(r.year(),e,i)?(o=a-qS(r.year(),e,i),c=r.year()+1):(c=r.year(),o=a),{week:o,year:c}}function qS(r,e,i){var n=UDe(r,e,i),a=UDe(r+1,e,i);return(Rne(r)-n+a)/7}h0("w",["ww",2],"wo","week");h0("W",["WW",2],"Wo","isoWeek");ps("w",rm,C$);ps("ww",rm,nv);ps("W",rm,C$);ps("WW",rm,nv);mae(["w","ww","W","WW"],function(r,e,i,n){e[n.substr(0,1)]=xd(r)});function xfi(r){return Lue(r,this._week.dow,this._week.doy).week}var vfi={dow:0,doy:6};function Cfi(){return this._week.dow}function bfi(){return this._week.doy}function yfi(r){var e=this.localeData().week(this);return r==null?e:this.add((r-e)*7,"d")}function kfi(r){var e=Lue(this,1,4).week;return r==null?e:this.add((r-e)*7,"d")}h0("d",0,"do","day");h0("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});h0("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});h0("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});h0("e",0,0,"weekday");h0("E",0,0,"isoWeekday");ps("d",rm);ps("e",rm);ps("E",rm);ps("dd",function(r,e){return e.weekdaysMinRegex(r)});ps("ddd",function(r,e){return e.weekdaysShortRegex(r)});ps("dddd",function(r,e){return e.weekdaysRegex(r)});mae(["dd","ddd","dddd"],function(r,e,i,n){var a=i._locale.weekdaysParse(r,n,i._strict);a!=null?e.d=a:pc(i).invalidWeekday=r});mae(["d","e","E"],function(r,e,i,n){e[n]=xd(r)});function Ffi(r,e){return typeof r!="string"?r:isNaN(r)?(r=e.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function Afi(r,e){return typeof r=="string"?e.weekdaysParse(r)%7||7:isNaN(r)?null:r}function MGe(r,e){return r.slice(e,7).concat(r.slice(0,e))}var Sfi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),lvt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Bfi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wfi=fae,Tfi=fae,Lfi=fae;function Nfi(r,e){var i=Ay(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return r===!0?MGe(i,this._week.dow):r?i[r.day()]:i}function Pfi(r){return r===!0?MGe(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Mfi(r){return r===!0?MGe(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function zfi(r,e,i){var n,a,o,c=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=VA([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?e==="dddd"?(a=Ep.call(this._weekdaysParse,c),a!==-1?a:null):e==="ddd"?(a=Ep.call(this._shortWeekdaysParse,c),a!==-1?a:null):(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null):e==="dddd"?(a=Ep.call(this._weekdaysParse,c),a!==-1||(a=Ep.call(this._shortWeekdaysParse,c),a!==-1)?a:(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null)):e==="ddd"?(a=Ep.call(this._shortWeekdaysParse,c),a!==-1||(a=Ep.call(this._weekdaysParse,c),a!==-1)?a:(a=Ep.call(this._minWeekdaysParse,c),a!==-1?a:null)):(a=Ep.call(this._minWeekdaysParse,c),a!==-1||(a=Ep.call(this._weekdaysParse,c),a!==-1)?a:(a=Ep.call(this._shortWeekdaysParse,c),a!==-1?a:null))}function Ifi(r,e,i){var n,a,o;if(this._weekdaysParseExact)return zfi.call(this,r,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=VA([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&e==="dddd"&&this._fullWeekdaysParse[n].test(r))return n;if(i&&e==="ddd"&&this._shortWeekdaysParse[n].test(r))return n;if(i&&e==="dd"&&this._minWeekdaysParse[n].test(r))return n;if(!i&&this._weekdaysParse[n].test(r))return n}}function Rfi(r){if(!this.isValid())return r!=null?this:NaN;var e=wue(this,"Day");return r!=null?(r=Ffi(r,this.localeData()),this.add(r-e,"d")):e}function Ofi(r){if(!this.isValid())return r!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return r==null?e:this.add(r-e,"d")}function jfi(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var e=Afi(r,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Vfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(B1(this,"_weekdaysRegex")||(this._weekdaysRegex=wfi),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Hfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(B1(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Tfi),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kfi(r){return this._weekdaysParseExact?(B1(this,"_weekdaysRegex")||zGe.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(B1(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Lfi),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function zGe(){function r(x,y){return y.length-x.length}var e=[],i=[],n=[],a=[],o,c,h,g,_;for(o=0;o<7;o++)c=VA([2e3,1]).day(o),h=US(this.weekdaysMin(c,"")),g=US(this.weekdaysShort(c,"")),_=US(this.weekdays(c,"")),e.push(h),i.push(g),n.push(_),a.push(h),a.push(g),a.push(_);e.sort(r),i.sort(r),n.sort(r),a.sort(r),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function IGe(){return this.hours()%12||12}function Wfi(){return this.hours()||24}h0("H",["HH",2],0,"hour");h0("h",["hh",2],0,IGe);h0("k",["kk",2],0,Wfi);h0("hmm",0,0,function(){return""+IGe.apply(this)+AA(this.minutes(),2)});h0("hmmss",0,0,function(){return""+IGe.apply(this)+AA(this.minutes(),2)+AA(this.seconds(),2)});h0("Hmm",0,0,function(){return""+this.hours()+AA(this.minutes(),2)});h0("Hmmss",0,0,function(){return""+this.hours()+AA(this.minutes(),2)+AA(this.seconds(),2)});function cvt(r,e){h0(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}cvt("a",!0);cvt("A",!1);function dvt(r,e){return e._meridiemParse}ps("a",dvt);ps("A",dvt);ps("H",rm,NGe);ps("h",rm,C$);ps("k",rm,C$);ps("HH",rm,nv);ps("hh",rm,nv);ps("kk",rm,nv);ps("hmm",X6t);ps("hmmss",evt);ps("Hmm",X6t);ps("Hmmss",evt);Qh(["H","HH"],Kg);Qh(["k","kk"],function(r,e,i){var n=xd(r);e[Kg]=n===24?0:n});Qh(["a","A"],function(r,e,i){i._isPm=i._locale.isPM(r),i._meridiem=r});Qh(["h","hh"],function(r,e,i){e[Kg]=xd(r),pc(i).bigHour=!0});Qh("hmm",function(r,e,i){var n=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n)),pc(i).bigHour=!0});Qh("hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a)),pc(i).bigHour=!0});Qh("Hmm",function(r,e,i){var n=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n))});Qh("Hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Kg]=xd(r.substr(0,n)),e[dy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a))});function Gfi(r){return(r+"").toLowerCase().charAt(0)==="p"}var Jfi=/[ap]\.?m?\.?/i,$fi=b$("Hours",!0);function Ufi(r,e,i){return r>11?i?"pm":"PM":i?"am":"AM"}var hvt={calendar:zhi,longDateFormat:jhi,invalidDate:Hhi,ordinal:Whi,dayOfMonthOrdinalParse:Ghi,relativeTime:$hi,months:lfi,monthsShort:nvt,week:vfi,weekdays:Sfi,weekdaysMin:Bfi,weekdaysShort:lvt,meridiemParse:Jfi},ym={},wie={},Nue;function qfi(r,e){var i,n=Math.min(r.length,e.length);for(i=0;i0;){if(a=k6e(o.slice(0,i).join("-")),a)return a;if(n&&n.length>=i&&qfi(o,n)>=i-1)break;i--}e++}return Nue}function Yfi(r){return!!(r&&r.match("^[^/\\\\]*$"))}function k6e(r){var e=null,i;if(ym[r]===void 0&&typeof module<"u"&&module&&module.exports&&Yfi(r))try{e=Nue._abbr,i=require,i("./locale/"+r),DL(e)}catch{ym[r]=null}return ym[r]}function DL(r,e){var i;return r&&(Y5(e)?i=d8(r):i=RGe(r,e),i?Nue=i:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),Nue._abbr}function RGe(r,e){if(e!==null){var i,n=hvt;if(e.abbr=r,ym[r]!=null)q6t("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ym[r]._config;else if(e.parentLocale!=null)if(ym[e.parentLocale]!=null)n=ym[e.parentLocale]._config;else if(i=k6e(e.parentLocale),i!=null)n=i._config;else return wie[e.parentLocale]||(wie[e.parentLocale]=[]),wie[e.parentLocale].push({name:r,config:e}),null;return ym[r]=new SGe(ije(n,e)),wie[r]&&wie[r].forEach(function(a){RGe(a.name,a.config)}),DL(r),ym[r]}else return delete ym[r],null}function Qfi(r,e){if(e!=null){var i,n,a=hvt;ym[r]!=null&&ym[r].parentLocale!=null?ym[r].set(ije(ym[r]._config,e)):(n=k6e(r),n!=null&&(a=n._config),e=ije(a,e),n==null&&(e.abbr=r),i=new SGe(e),i.parentLocale=ym[r],ym[r]=i),DL(r)}else ym[r]!=null&&(ym[r].parentLocale!=null?(ym[r]=ym[r].parentLocale,r===DL()&&DL(r)):ym[r]!=null&&delete ym[r]);return ym[r]}function d8(r){var e;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return Nue;if(!Ay(r)){if(e=k6e(r),e)return e;r=[r]}return Zfi(r)}function Xfi(){return nje(ym)}function OGe(r){var e,i=r._a;return i&&pc(r).overflow===-2&&(e=i[NS]<0||i[NS]>11?NS:i[eA]<1||i[eA]>PGe(i[j3],i[NS])?eA:i[Kg]<0||i[Kg]>24||i[Kg]===24&&(i[dy]!==0||i[PS]!==0||i[NI]!==0)?Kg:i[dy]<0||i[dy]>59?dy:i[PS]<0||i[PS]>59?PS:i[NI]<0||i[NI]>999?NI:-1,pc(r)._overflowDayOfYear&&(eeA)&&(e=eA),pc(r)._overflowWeeks&&e===-1&&(e=nfi),pc(r)._overflowWeekday&&e===-1&&(e=ufi),pc(r).overflow=e),r}var emi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tmi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,imi=/Z|[+-]\d\d(?::?\d\d)?/,b_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],dIe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nmi=/^\/?Date\((-?\d+)/i,umi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,rmi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function fvt(r){var e,i,n=r._i,a=emi.exec(n)||tmi.exec(n),o,c,h,g,_=b_e.length,x=dIe.length;if(a){for(pc(r).iso=!0,e=0,i=_;eRne(c)||r._dayOfYear===0)&&(pc(r)._overflowDayOfYear=!0),i=Tue(c,0,r._dayOfYear),r._a[NS]=i.getUTCMonth(),r._a[eA]=i.getUTCDate()),e=0;e<3&&r._a[e]==null;++e)r._a[e]=n[e]=a[e];for(;e<7;e++)r._a[e]=n[e]=r._a[e]==null?e===2?1:0:r._a[e];r._a[Kg]===24&&r._a[dy]===0&&r._a[PS]===0&&r._a[NI]===0&&(r._nextDay=!0,r._a[Kg]=0),r._d=(r._useUTC?Tue:Dfi).apply(null,n),o=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Kg]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==o&&(pc(r).weekdayMismatch=!0)}}function fmi(r){var e,i,n,a,o,c,h,g,_;e=r._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,c=4,i=mG(e.GG,r._a[j3],Lue(um(),1,4).year),n=mG(e.W,1),a=mG(e.E,1),(a<1||a>7)&&(g=!0)):(o=r._locale._week.dow,c=r._locale._week.doy,_=Lue(um(),o,c),i=mG(e.gg,r._a[j3],_.year),n=mG(e.w,_.week),e.d!=null?(a=e.d,(a<0||a>6)&&(g=!0)):e.e!=null?(a=e.e+o,(e.e<0||e.e>6)&&(g=!0)):a=o),n<1||n>qS(i,o,c)?pc(r)._overflowWeeks=!0:g!=null?pc(r)._overflowWeekday=!0:(h=svt(i,n,a,o,c),r._a[j3]=h.year,r._dayOfYear=h.dayOfYear)}lo.ISO_8601=function(){};lo.RFC_2822=function(){};function VGe(r){if(r._f===lo.ISO_8601){fvt(r);return}if(r._f===lo.RFC_2822){mvt(r);return}r._a=[],pc(r).empty=!0;var e=""+r._i,i,n,a,o,c,h=e.length,g=0,_,x;for(a=Z6t(r._f,r._locale).match(BGe)||[],x=a.length,i=0;i0&&pc(r).unusedInput.push(c),e=e.slice(e.indexOf(n)+n.length),g+=n.length),QG[o]?(n?pc(r).empty=!1:pc(r).unusedTokens.push(o),ifi(o,n,r)):r._strict&&!n&&pc(r).unusedTokens.push(o);pc(r).charsLeftOver=h-g,e.length>0&&pc(r).unusedInput.push(e),r._a[Kg]<=12&&pc(r).bigHour===!0&&r._a[Kg]>0&&(pc(r).bigHour=void 0),pc(r).parsedDateParts=r._a.slice(0),pc(r).meridiem=r._meridiem,r._a[Kg]=mmi(r._locale,r._a[Kg],r._meridiem),_=pc(r).era,_!==null&&(r._a[j3]=r._locale.erasConvertYear(_,r._a[j3])),jGe(r),OGe(r)}function mmi(r,e,i){var n;return i==null?e:r.meridiemHour!=null?r.meridiemHour(e,i):(r.isPM!=null&&(n=r.isPM(i),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function pmi(r){var e,i,n,a,o,c,h=!1,g=r._f.length;if(g===0){pc(r).invalidFormat=!0,r._d=new Date(NaN);return}for(a=0;athis?this:r:_6e()});function Evt(r,e){var i,n;if(e.length===1&&Ay(e[0])&&(e=e[0]),!e.length)return um();for(i=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function zmi(){if(!Y5(this._isDSTShifted))return this._isDSTShifted;var r={},e;return AGe(r,this),r=pvt(r),r._a?(e=r._isUTC?VA(r._a):um(r._a),this._isDSTShifted=this.isValid()&&Ami(r._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Imi(){return this.isValid()?!this._isUTC:!1}function Rmi(){return this.isValid()?this._isUTC:!1}function Dvt(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Omi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,jmi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function My(r,e){var i=r,n=null,a,o,c;return Y3e(r)?i={ms:r._milliseconds,d:r._days,M:r._months}:t8(r)||!isNaN(+r)?(i={},e?i[e]=+r:i.milliseconds=+r):(n=Omi.exec(r))?(a=n[1]==="-"?-1:1,i={y:0,d:xd(n[eA])*a,h:xd(n[Kg])*a,m:xd(n[dy])*a,s:xd(n[PS])*a,ms:xd(rje(n[NI]*1e3))*a}):(n=jmi.exec(r))?(a=n[1]==="-"?-1:1,i={y:Zz(n[2],a),M:Zz(n[3],a),w:Zz(n[4],a),d:Zz(n[5],a),h:Zz(n[6],a),m:Zz(n[7],a),s:Zz(n[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(c=Vmi(um(i.from),um(i.to)),i={},i.ms=c.milliseconds,i.M=c.months),o=new F6e(i),Y3e(r)&&B1(r,"_locale")&&(o._locale=r._locale),Y3e(r)&&B1(r,"_isValid")&&(o._isValid=r._isValid),o}My.fn=F6e.prototype;My.invalid=Fmi;function Zz(r,e){var i=r&&parseFloat(r.replace(",","."));return(isNaN(i)?0:i)*e}function ugt(r,e){var i={};return i.months=e.month()-r.month()+(e.year()-r.year())*12,r.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+r.clone().add(i.months,"M"),i}function Vmi(r,e){var i;return r.isValid()&&e.isValid()?(e=KGe(e,r),r.isBefore(e)?i=ugt(r,e):(i=ugt(e,r),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function xvt(r,e){return function(i,n){var a,o;return n!==null&&!isNaN(+n)&&(q6t(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),a=My(i,n),vvt(this,a,r),this}}function vvt(r,e,i,n){var a=e._milliseconds,o=rje(e._days),c=rje(e._months);r.isValid()&&(n=n??!0,c&&rvt(r,wue(r,"Month")+c*i),o&&ivt(r,"Date",wue(r,"Date")+o*i),a&&r._d.setTime(r._d.valueOf()+a*i),n&&lo.updateOffset(r,o||c))}var Hmi=xvt(1,"add"),Kmi=xvt(-1,"subtract");function Cvt(r){return typeof r=="string"||r instanceof String}function Wmi(r){return Sy(r)||dae(r)||Cvt(r)||t8(r)||Jmi(r)||Gmi(r)||r===null||r===void 0}function Gmi(r){var e=GI(r)&&!kGe(r),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,c=n.length;for(a=0;ai.valueOf():i.valueOf()9999?Z3e(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):HA(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Z3e(i,"Z")):Z3e(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function a4i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",e="",i,n,a,o;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),i="["+r+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(i+n+a+o)}function o4i(r){r||(r=this.isUtc()?lo.defaultFormatUtc:lo.defaultFormat);var e=Z3e(this,r);return this.localeData().postformat(e)}function s4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({to:this,from:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function l4i(r){return this.from(um(),r)}function c4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({from:this,to:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function d4i(r){return this.to(um(),r)}function bvt(r){var e;return r===void 0?this._locale._abbr:(e=d8(r),e!=null&&(this._locale=e),this)}var yvt=r2("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function kvt(){return this._locale}var qDe=1e3,XG=60*qDe,ZDe=60*XG,Fvt=(365*400+97)*24*ZDe;function eJ(r,e){return(r%e+e)%e}function Avt(r,e,i){return r<100&&r>=0?new Date(r+400,e,i)-Fvt:new Date(r,e,i).valueOf()}function Svt(r,e,i){return r<100&&r>=0?Date.UTC(r+400,e,i)-Fvt:Date.UTC(r,e,i)}function h4i(r){var e,i;if(r=a2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Svt:Avt,r){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=eJ(e+(this._isUTC?0:this.utcOffset()*XG),ZDe);break;case"minute":e=this._d.valueOf(),e-=eJ(e,XG);break;case"second":e=this._d.valueOf(),e-=eJ(e,qDe);break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function f4i(r){var e,i;if(r=a2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Svt:Avt,r){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ZDe-eJ(e+(this._isUTC?0:this.utcOffset()*XG),ZDe)-1;break;case"minute":e=this._d.valueOf(),e+=XG-eJ(e,XG)-1;break;case"second":e=this._d.valueOf(),e+=qDe-eJ(e,qDe)-1;break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function m4i(){return this._d.valueOf()-(this._offset||0)*6e4}function p4i(){return Math.floor(this.valueOf()/1e3)}function g4i(){return new Date(this.valueOf())}function E4i(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function _4i(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function D4i(){return this.isValid()?this.toISOString():null}function x4i(){return FGe(this)}function v4i(){return iL({},pc(this))}function C4i(){return pc(this).overflow}function b4i(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h0("N",0,0,"eraAbbr");h0("NN",0,0,"eraAbbr");h0("NNN",0,0,"eraAbbr");h0("NNNN",0,0,"eraName");h0("NNNNN",0,0,"eraNarrow");h0("y",["y",1],"yo","eraYear");h0("y",["yy",2],0,"eraYear");h0("y",["yyy",3],0,"eraYear");h0("y",["yyyy",4],0,"eraYear");ps("N",WGe);ps("NN",WGe);ps("NNN",WGe);ps("NNNN",P4i);ps("NNNNN",M4i);Qh(["N","NN","NNN","NNNN","NNNNN"],function(r,e,i,n){var a=i._locale.erasParse(r,n,i._strict);a?pc(i).era=a:pc(i).invalidEra=r});ps("y",v$);ps("yy",v$);ps("yyy",v$);ps("yyyy",v$);ps("yo",z4i);Qh(["y","yy","yyy","yyyy"],j3);Qh(["yo"],function(r,e,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=r.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[j3]=i._locale.eraYearOrdinalParse(r,a):e[j3]=parseInt(r,10)});function y4i(r,e){var i,n,a,o=this._eras||d8("en")._eras;for(i=0,n=o.length;i=0)return o[n]}function F4i(r,e){var i=r.since<=r.until?1:-1;return e===void 0?lo(r.since).year():lo(r.since).year()+(e-r.offset)*i}function A4i(){var r,e,i,n=this.localeData().eras();for(r=0,e=n.length;ro&&(e=o),K4i.call(this,r,e,i,n,a))}function K4i(r,e,i,n,a){var o=svt(r,e,i,n,a),c=Tue(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}h0("Q",0,"Qo","quarter");ps("Q",Y6t);Qh("Q",function(r,e){e[NS]=(xd(r)-1)*3});function W4i(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}h0("D",["DD",2],"Do","date");ps("D",rm,C$);ps("DD",rm,nv);ps("Do",function(r,e){return r?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Qh(["D","DD"],eA);Qh("Do",function(r,e){e[eA]=xd(r.match(rm)[0])});var wvt=b$("Date",!0);h0("DDD",["DDDD",3],"DDDo","dayOfYear");ps("DDD",x6e);ps("DDDD",Q6t);Qh(["DDD","DDDD"],function(r,e,i){i._dayOfYear=xd(r)});function G4i(r){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?e:this.add(r-e,"d")}h0("m",["mm",2],0,"minute");ps("m",rm,NGe);ps("mm",rm,nv);Qh(["m","mm"],dy);var J4i=b$("Minutes",!1);h0("s",["ss",2],0,"second");ps("s",rm,NGe);ps("ss",rm,nv);Qh(["s","ss"],PS);var $4i=b$("Seconds",!1);h0("S",0,0,function(){return~~(this.millisecond()/100)});h0(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h0(0,["SSS",3],0,"millisecond");h0(0,["SSSS",4],0,function(){return this.millisecond()*10});h0(0,["SSSSS",5],0,function(){return this.millisecond()*100});h0(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h0(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h0(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h0(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ps("S",x6e,Y6t);ps("SS",x6e,nv);ps("SSS",x6e,Q6t);var nL,Tvt;for(nL="SSSS";nL.length<=9;nL+="S")ps(nL,v$);function U4i(r,e){e[NI]=xd(("0."+r)*1e3)}for(nL="S";nL.length<=9;nL+="S")Qh(nL,U4i);Tvt=b$("Milliseconds",!1);h0("z",0,0,"zoneAbbr");h0("zz",0,0,"zoneName");function q4i(){return this._isUTC?"UTC":""}function Z4i(){return this._isUTC?"Coordinated Universal Time":""}var Na=hae.prototype;Na.add=Hmi;Na.calendar=qmi;Na.clone=Zmi;Na.diff=n4i;Na.endOf=f4i;Na.format=o4i;Na.from=s4i;Na.fromNow=l4i;Na.to=c4i;Na.toNow=d4i;Na.get=afi;Na.invalidAt=C4i;Na.isAfter=Ymi;Na.isBefore=Qmi;Na.isBetween=Xmi;Na.isSame=e4i;Na.isSameOrAfter=t4i;Na.isSameOrBefore=i4i;Na.isValid=x4i;Na.lang=yvt;Na.locale=bvt;Na.localeData=kvt;Na.max=xmi;Na.min=Dmi;Na.parsingFlags=v4i;Na.set=ofi;Na.startOf=h4i;Na.subtract=Kmi;Na.toArray=E4i;Na.toObject=_4i;Na.toDate=g4i;Na.toISOString=r4i;Na.inspect=a4i;typeof Symbol<"u"&&Symbol.for!=null&&(Na[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Na.toJSON=D4i;Na.toString=u4i;Na.unix=p4i;Na.valueOf=m4i;Na.creationData=b4i;Na.eraName=A4i;Na.eraNarrow=S4i;Na.eraAbbr=B4i;Na.eraYear=w4i;Na.year=tvt;Na.isLeapYear=rfi;Na.weekYear=I4i;Na.isoWeekYear=R4i;Na.quarter=Na.quarters=W4i;Na.month=avt;Na.daysInMonth=gfi;Na.week=Na.weeks=yfi;Na.isoWeek=Na.isoWeeks=kfi;Na.weeksInYear=V4i;Na.weeksInWeekYear=H4i;Na.isoWeeksInYear=O4i;Na.isoWeeksInISOWeekYear=j4i;Na.date=wvt;Na.day=Na.days=Rfi;Na.weekday=Ofi;Na.isoWeekday=jfi;Na.dayOfYear=G4i;Na.hour=Na.hours=$fi;Na.minute=Na.minutes=J4i;Na.second=Na.seconds=$4i;Na.millisecond=Na.milliseconds=Tvt;Na.utcOffset=Bmi;Na.utc=Tmi;Na.local=Lmi;Na.parseZone=Nmi;Na.hasAlignedHourOffset=Pmi;Na.isDST=Mmi;Na.isLocal=Imi;Na.isUtcOffset=Rmi;Na.isUtc=Dvt;Na.isUTC=Dvt;Na.zoneAbbr=q4i;Na.zoneName=Z4i;Na.dates=r2("dates accessor is deprecated. Use date instead.",wvt);Na.months=r2("months accessor is deprecated. Use month instead",avt);Na.years=r2("years accessor is deprecated. Use year instead",tvt);Na.zone=r2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wmi);Na.isDSTShifted=r2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",zmi);function Y4i(r){return um(r*1e3)}function Q4i(){return um.apply(null,arguments).parseZone()}function Lvt(r){return r}var w1=SGe.prototype;w1.calendar=Ihi;w1.longDateFormat=Vhi;w1.invalidDate=Khi;w1.ordinal=Jhi;w1.preparse=Lvt;w1.postformat=Lvt;w1.relativeTime=Uhi;w1.pastFuture=qhi;w1.set=Mhi;w1.eras=y4i;w1.erasParse=k4i;w1.erasConvertYear=F4i;w1.erasAbbrRegex=L4i;w1.erasNameRegex=T4i;w1.erasNarrowRegex=N4i;w1.months=hfi;w1.monthsShort=ffi;w1.monthsParse=pfi;w1.monthsRegex=_fi;w1.monthsShortRegex=Efi;w1.week=xfi;w1.firstDayOfYear=bfi;w1.firstDayOfWeek=Cfi;w1.weekdays=Nfi;w1.weekdaysMin=Mfi;w1.weekdaysShort=Pfi;w1.weekdaysParse=Ifi;w1.weekdaysRegex=Vfi;w1.weekdaysShortRegex=Hfi;w1.weekdaysMinRegex=Kfi;w1.isPM=Gfi;w1.meridiem=Ufi;function YDe(r,e,i,n){var a=d8(),o=VA().set(n,e);return a[i](o,r)}function Nvt(r,e,i){if(t8(r)&&(e=r,r=void 0),r=r||"",e!=null)return YDe(r,e,i,"month");var n,a=[];for(n=0;n<12;n++)a[n]=YDe(r,n,i,"month");return a}function JGe(r,e,i,n){typeof r=="boolean"?(t8(e)&&(i=e,e=void 0),e=e||""):(e=r,i=e,r=!1,t8(e)&&(i=e,e=void 0),e=e||"");var a=d8(),o=r?a._week.dow:0,c,h=[];if(i!=null)return YDe(e,(i+o)%7,n,"day");for(c=0;c<7;c++)h[c]=YDe(e,(c+o)%7,n,"day");return h}function X4i(r,e){return Nvt(r,e,"months")}function epi(r,e){return Nvt(r,e,"monthsShort")}function tpi(r,e,i){return JGe(r,e,i,"weekdays")}function ipi(r,e,i){return JGe(r,e,i,"weekdaysShort")}function npi(r,e,i){return JGe(r,e,i,"weekdaysMin")}DL("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var e=r%10,i=xd(r%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return r+i}});lo.lang=r2("moment.lang is deprecated. Use moment.locale instead.",DL);lo.langData=r2("moment.langData is deprecated. Use moment.localeData instead.",d8);var aS=Math.abs;function upi(){var r=this._data;return this._milliseconds=aS(this._milliseconds),this._days=aS(this._days),this._months=aS(this._months),r.milliseconds=aS(r.milliseconds),r.seconds=aS(r.seconds),r.minutes=aS(r.minutes),r.hours=aS(r.hours),r.months=aS(r.months),r.years=aS(r.years),this}function Pvt(r,e,i,n){var a=My(e,i);return r._milliseconds+=n*a._milliseconds,r._days+=n*a._days,r._months+=n*a._months,r._bubble()}function rpi(r,e){return Pvt(this,r,e,1)}function api(r,e){return Pvt(this,r,e,-1)}function rgt(r){return r<0?Math.floor(r):Math.ceil(r)}function opi(){var r=this._milliseconds,e=this._days,i=this._months,n=this._data,a,o,c,h,g;return r>=0&&e>=0&&i>=0||r<=0&&e<=0&&i<=0||(r+=rgt(oje(i)+e)*864e5,e=0,i=0),n.milliseconds=r%1e3,a=KC(r/1e3),n.seconds=a%60,o=KC(a/60),n.minutes=o%60,c=KC(o/60),n.hours=c%24,e+=KC(c/24),g=KC(Mvt(e)),i+=g,e-=rgt(oje(g)),h=KC(i/12),i%=12,n.days=e,n.months=i,n.years=h,this}function Mvt(r){return r*4800/146097}function oje(r){return r*146097/4800}function spi(r){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(r=a2(r),r==="month"||r==="quarter"||r==="year")switch(e=this._days+n/864e5,i=this._months+Mvt(e),r){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(oje(this._months)),r){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+r)}}function h8(r){return function(){return this.as(r)}}var zvt=h8("ms"),lpi=h8("s"),cpi=h8("m"),dpi=h8("h"),hpi=h8("d"),fpi=h8("w"),mpi=h8("M"),ppi=h8("Q"),gpi=h8("y"),Epi=zvt;function _pi(){return My(this)}function Dpi(r){return r=a2(r),this.isValid()?this[r+"s"]():NaN}function JR(r){return function(){return this.isValid()?this._data[r]:NaN}}var xpi=JR("milliseconds"),vpi=JR("seconds"),Cpi=JR("minutes"),bpi=JR("hours"),ypi=JR("days"),kpi=JR("months"),Fpi=JR("years");function Api(){return KC(this.days()/7)}var gS=Math.round,CG={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Spi(r,e,i,n,a){return a.relativeTime(e||1,!!i,r,n)}function Bpi(r,e,i,n){var a=My(r).abs(),o=gS(a.as("s")),c=gS(a.as("m")),h=gS(a.as("h")),g=gS(a.as("d")),_=gS(a.as("M")),x=gS(a.as("w")),y=gS(a.as("y")),S=o<=i.ss&&["s",o]||o0,S[4]=n,Spi.apply(null,S)}function wpi(r){return r===void 0?gS:typeof r=="function"?(gS=r,!0):!1}function Tpi(r,e){return CG[r]===void 0?!1:e===void 0?CG[r]:(CG[r]=e,r==="s"&&(CG.ss=e-1),!0)}function Lpi(r,e){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=CG,a,o;return typeof r=="object"&&(e=r,r=!1),typeof r=="boolean"&&(i=r),typeof e=="object"&&(n=Object.assign({},CG,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),o=Bpi(this,!i,n,a),i&&(o=a.pastFuture(+this,o)),a.postformat(o)}var hIe=Math.abs;function WW(r){return(r>0)-(r<0)||+r}function S6e(){if(!this.isValid())return this.localeData().invalidDate();var r=hIe(this._milliseconds)/1e3,e=hIe(this._days),i=hIe(this._months),n,a,o,c,h=this.asSeconds(),g,_,x,y;return h?(n=KC(r/60),a=KC(n/60),r%=60,n%=60,o=KC(i/12),i%=12,c=r?r.toFixed(3).replace(/\.?0+$/,""):"",g=h<0?"-":"",_=WW(this._months)!==WW(h)?"-":"",x=WW(this._days)!==WW(h)?"-":"",y=WW(this._milliseconds)!==WW(h)?"-":"",g+"P"+(o?_+o+"Y":"")+(i?_+i+"M":"")+(e?x+e+"D":"")+(a||n||r?"T":"")+(a?y+a+"H":"")+(n?y+n+"M":"")+(r?y+c+"S":"")):"P0D"}var Ud=F6e.prototype;Ud.isValid=kmi;Ud.abs=upi;Ud.add=rpi;Ud.subtract=api;Ud.as=spi;Ud.asMilliseconds=zvt;Ud.asSeconds=lpi;Ud.asMinutes=cpi;Ud.asHours=dpi;Ud.asDays=hpi;Ud.asWeeks=fpi;Ud.asMonths=mpi;Ud.asQuarters=ppi;Ud.asYears=gpi;Ud.valueOf=Epi;Ud._bubble=opi;Ud.clone=_pi;Ud.get=Dpi;Ud.milliseconds=xpi;Ud.seconds=vpi;Ud.minutes=Cpi;Ud.hours=bpi;Ud.days=ypi;Ud.weeks=Api;Ud.months=kpi;Ud.years=Fpi;Ud.humanize=Lpi;Ud.toISOString=S6e;Ud.toString=S6e;Ud.toJSON=S6e;Ud.locale=bvt;Ud.localeData=kvt;Ud.toIsoString=r2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",S6e);Ud.lang=yvt;h0("X",0,0,"unix");h0("x",0,0,"valueOf");ps("x",C6e);ps("X",Xhi);Qh("X",function(r,e,i){i._d=new Date(parseFloat(r)*1e3)});Qh("x",function(r,e,i){i._d=new Date(xd(r))});//! moment.js -lo.version="2.30.1";Nhi(um);lo.fn=Na;lo.min=vmi;lo.max=Cmi;lo.now=bmi;lo.utc=VA;lo.unix=Y4i;lo.months=X4i;lo.isDate=dae;lo.locale=DL;lo.invalid=_6e;lo.duration=My;lo.isMoment=Sy;lo.weekdays=tpi;lo.parseZone=Q4i;lo.localeData=d8;lo.isDuration=Y3e;lo.monthsShort=epi;lo.weekdaysMin=npi;lo.defineLocale=RGe;lo.updateLocale=Qfi;lo.locales=Xfi;lo.weekdaysShort=ipi;lo.normalizeUnits=a2;lo.relativeTimeRounding=wpi;lo.relativeTimeThreshold=Tpi;lo.calendarFormat=Umi;lo.prototype=Na;lo.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Th=R6t("main",()=>{const r=ds(document.location.host.indexOf("demo.logdy.dev")>=0||!!Bhi(document.location.search,"demo_mode")),e=ds("started"),i=ds("json"),n=ds(""),a=ds(""),o=ds({from:0,to:0}),c=ds(""),h=ds(!1),g=ds("not connected"),_=ds("paused"),x=ds({LastDeliveredIdx:0,MessageCount:0,MessagesToTail:0}),y=ds(!1),S=ds(""),L=ds(""),O=ds(!1),G=ds([]),ie=ds({}),ue=ds({}),re=ds(""),_e=ds(!1),ye=ds(""),Le=ds({}),lt=ds("label"),Ue=ds(),Ze=ds({}),rt=ds(new yGe("main",{leftColWidth:300,drawerColWidth:900,maxMessages:1e3,middlewares:[],entriesOrder:"desc"}));let kt=null;const Zt=(ci,Oe=!0)=>{L.value=ci,Oe&&Upt.add({password:ci},"main")},jt=()=>{var ci;return L.value||(L.value=((ci=Upt.getOne("main"))==null?void 0:ci.password)||""),L.value},ui=(ci,Oe)=>{c.value=ci,h.value=!0,kt=Oe},ti=async ci=>{ci&&kt&&await kt(),kt=null,c.value="",h.value=!1},Uu=j6(()=>{if(o.value.from<=0&&o.value.to<=0)return"Set timeframe";let ci=lo(o.value.from*1e3),Oe=lo(o.value.to*1e3),eu=ci.format("MMM DD, HH:mmA"),Hi=ci.format("MMM DD, HH:mmA");return ci.format("DD-MM-YYYY")===Oe.format("DD-MM-YYYY")&&(eu=ci.format("MMM DD, HH:mmA"),Hi=Oe.format("HH:mmA")),o.value.to===0&&(Hi="now"),`${eu} - ${Hi}`}),pu=(ci,Oe=0)=>{if(Vt(),Oe!==0){for(let eu=0;eu<=Hl.value.length;eu++)if(Hl.value[eu].id===ci.id){ci=Hl.value[eu+Oe];break}}ci&&(ci.opened||(GT().changeFilter("read",1),GT().changeFilter("unread",-1)),ci.open=!0,ci.opened=!0,Ze.value.row=ci,ZT.update(ci.id,{id:ci.id,message:ci.msg,opened:!0,starred:ci.starred}))},Vt=()=>{Ze.value.row&&(Ze.value.row.open=!1,Ze.value.row.opened=!0,Ze.value.row=void 0)},zr=ci=>{ci.starred=!ci.starred,GT().changeFilter("starred",ci.starred?1:-1),ZT.update(ci.id,{id:ci.id,message:ci.msg,opened:ci.opened,starred:ci.starred})},Lu=new BroadcastChannel("tab-activity");setInterval(()=>{Lu.postMessage("ping")},5*1e3),Lu.addEventListener("message",ci=>{ci.data==="ping"&&Lu.postMessage("pong"),y.value||ui("We have detected Logdy opened in another tab. Currently we do not support multiple tabs",()=>{y.value=!1}),y.value=!0});const Va=j6(()=>_.value==="paused"?`Paused at entry #${LI(x.value.LastDeliveredIdx+1)} out of ${LI(x.value.MessageCount)} (${LI(x.value.MessageCount-x.value.LastDeliveredIdx-1)} not seen)`:_.value.includes("following")?`Following real-time out of ${LI(x==null?void 0:x.value.MessageCount)} entries`:"-"),ju=ci=>{ci.correlation_id&&(ye.value=ci.correlation_id,Tr())},Tr=()=>{if(!ye.value||Hl.value.length===0)return;let ci={},Oe=Hl.value[0].msg.timing&&Hl.value[0].msg.timing.start||0,eu=1;Hl.value.forEach(Hi=>{var Pr,$r,wa;Hi.msg.timing&&(ci[Hi.id]={id:Hi.id,offset:(Hi.msg.timing.start-Oe)/eu,width:(((Pr=Hi.msg.timing)==null?void 0:Pr.duration)||1)/eu,label:($r=Hi.msg.timing)==null?void 0:$r.label,style:((wa=Hi.msg.timing)==null?void 0:wa.style)||{}})}),Le.value=ci},pa=()=>{GT().resetToggles(),Fa()},z0=()=>{ye.value=""},Zr=async ci=>{switch(ci){case"following":await $S.resume(),_.value="following";break;case"following_cursor":await $S.resumeFromCursor(),_.value="following_cursor";break;case"paused":await $S.pause(),_.value="paused";break}},qi=()=>{G.value=[],ue.value={},ie.value={},GT().reset(),ZT.removeAll()},eo=()=>{ie.value={}},Fa=()=>{for(let ci in ue.value){let Oe=ue.value[ci];for(let eu in Oe.items)ue.value[Oe.name].items[eu].selected=!1}},W0=()=>{re.value=""},r0=j6(()=>G.value[0]&&G.value[0].msg.is_json==!0),qa=j6(()=>{if(r0.value)return a.value;try{return new RegExp(re.value,"i"),""}catch(ci){return ci.message}}),Hl=j6(()=>{if(qa.value.length>0)return[];const ci={};for(let _i in ue.value)ue.value[_i].items.forEach(ri=>{ri.selected&&(ci[_i]||(ci[_i]=[]),ci[_i].push(ri.label))});let Oe=GT().enabledFilters,eu=Oe.filter(_i=>_i.startsWith("origin_file_")).length>0,Hi=Oe.filter(_i=>_i.startsWith("origin_port_")).length>0,Pr=Oe.filter(_i=>_i.startsWith("origin_na")).length>0,$r=Oe.filter(_i=>_i.startsWith("origin_")).length>0,wa=G.value.filter(_i=>{let ri=_i.msg.ts/1e3;return!(o.value.from>0&&ri0&&ri>o.value.to)}).filter(_i=>{var Tt,pi,hi,cn,On,Dr;if(ye.value&&ye.value!=_i.msg.correlation_id)return!1;let ri=!0;if(Oe.length>0){if(Oe.includes("starred")&&!_i.starred||Oe.includes("read")&&!_i.opened||Oe.includes("unread")&&_i.opened)return!1;$r&&(eu&&((Tt=_i.msg.origin)!=null&&Tt.file)&&Oe.includes("origin_file_"+((pi=_i.msg.origin)==null?void 0:pi.file))||Hi&&((hi=_i.msg.origin)!=null&&hi.port)&&Oe.includes("origin_port_"+((cn=_i.msg.origin)==null?void 0:cn.port))||Pr&&!((On=_i.msg.origin)!=null&&On.file)&&!((Dr=_i.msg.origin)!=null&&Dr.port)&&Oe.includes("origin_na")?ri=!0:ri=!1)}if(!ri)return ri;if(Object.keys(ci).length===0)return!0;let fi={...ci},xt=Object.keys(fi).length;return _i.facets.forEach(Wr=>{fi[Wr.name]&&fi[Wr.name].includes(Wr.value)&&xt--}),xt===0}).filter(_i=>n.value.length>0||re.value.length<3?!0:(_i.msg.content||"").search(new RegExp(re.value,"i"))>=0);if(r0&&n.value.length>0){let _i=Lhi(wa.map(ri=>({data:ri.msg.json_content,raw:ri.msg.content,ts:ri.msg.ts,origin:ri.msg.origin})).filter(ri=>ri));return!_i.result||_i.result.length!=wa.length?wa:_i&&_i.error?(a.value=_i.error,wa):wa.filter((ri,fi)=>_i.result[fi])}return rt.value.settings.entriesOrder==="desc"?wa.reverse():wa});return _A(re,ci=>{if(!r0.value)return;if(a.value="",!ci.length){n.value="";return}let Oe=Thi(ci);if(Oe){a.value=Oe;return}n.value=ci}),{confirm:ui,confirmShow:h,confirmMsg:c,confirmProcess:ti,demoMode:r,demoStatus:e,demoContent:i,status:g,statusStr:Va,receiveStatus:_,receiveCounters:x,changeReceiveStatus:Zr,initSettings:Ue,anotherTab:y,modalShow:S,setPassword:Zt,getPassword:jt,stickedToBottom:O,clearAllRows:qi,resetAllFiltersAndFacets:pa,filterCorrelated:ju,correlationFilter:ye,resetCorrelationFilter:z0,tracesRows:Le,refeshFilterCorrelated:Tr,settingsDrawer:_e,drawer:Ze,openLogDrawer:pu,closeLogDrawer:Vt,layout:rt,rows:G,rowsIds:ie,clearRowIds:eo,displayRows:Hl,facets:ue,searchbar:re,searchbarValid:qa,searchClear:W0,toggleRowMark:zr,facetSort:lt,datepicker:o,datepickerLabel:Uu}}),agt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Ivt)},ogt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Rvt)},Npi=r=>{var i;(i=document.getElementById("app"))==null||i.classList.add("noselect");const e=new AbortController;document.addEventListener("mousemove",n=>{Ppi(r,n)},{signal:e.signal}),document.addEventListener("mouseup",()=>{e.abort(),DI.update("main",Th().layout)},{once:!0})},sgt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.remove("noselect"),document.removeEventListener("mousemove",Ivt),document.removeEventListener("mousemove",Rvt),DI.update("main",Th().layout)},Ppi=(r,e)=>{let i=Th().layout.getColumn(r);if(i.width||(i.width=150),i.width+=e.movementX,i.width<=40){i.width=40;return}Th().layout.update(i)},Ivt=r=>{Th().layout.settings.leftColWidth+=r.movementX},Rvt=r=>{Th().layout.settings.drawerColWidth-=r.movementX};var QDe={d:(r,e)=>{for(var i in e)QDe.o(e,i)&&!QDe.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:e[i]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},Ovt={};function sje(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,n=new Array(e);iOpi});const x0=(lgt={computed:()=>j6,createTextVNode:()=>P0,createVNode:()=>N0,defineComponent:()=>wp,reactive:()=>lae,ref:()=>ds,watch:()=>_A,watchEffect:()=>Sdi},fIe={},QDe.d(fIe,lgt),fIe),Mpi=(0,x0.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,e=this.onClick;return(0,x0.createVNode)("span",{class:"vjs-tree-brackets",onClick:e},[r])}}),zpi=(0,x0.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,e){var i=e.emit;return{uiType:(0,x0.computed)(function(){return r.isMultiple?"checkbox":"radio"}),model:(0,x0.computed)({get:function(){return r.checked},set:function(n){return i("update:modelValue",n)}})}},render:function(){var r=this.uiType,e=this.model,i=this.$emit;return(0,x0.createVNode)("label",{class:["vjs-check-controller",e?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,x0.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,x0.createVNode)("input",{checked:e,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return i("change",e)}},null)])}}),Ipi=(0,x0.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,e=this.onClick,i=r==="objectStart"||r==="arrayStart";return i||r==="objectCollapsed"||r==="arrayCollapsed"?(0,x0.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(i?"open":"close"),onClick:e},[(0,x0.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,x0.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var lgt,fIe;function lje(r){return lje=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lje(r)}function Vvt(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function cI(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,a=n||{},o=a.key,c=a.index,h=a.type,g=h===void 0?"content":h,_=a.showComma,x=_!==void 0&&_,y=a.length,S=y===void 0?1:y,L=Vvt(r);if(L==="array"){var O=cgt(r.map(function(ue,re,_e){return cI(ue,"".concat(e,"[").concat(re,"]"),i+1,{index:re,showComma:re!==_e.length-1,length:S,type:g})}));return[cI("[",e,i,{showComma:!1,key:o,length:r.length,type:"arrayStart"})[0]].concat(O,cI("]",e,i,{showComma:x,length:r.length,type:"arrayEnd"})[0])}if(L==="object"){var G=Object.keys(r),ie=cgt(G.map(function(ue,re,_e){return cI(r[ue],/^[a-zA-Z_]\w*$/.test(ue)?"".concat(e,".").concat(ue):"".concat(e,'["').concat(ue,'"]'),i+1,{key:ue,showComma:re!==_e.length-1,length:S,type:g})}));return[cI("{",e,i,{showComma:!1,key:o,index:c,length:G.length,type:"objectStart"})[0]].concat(ie,cI("}",e,i,{showComma:x,length:G.length,type:"objectEnd"})[0])}return[{content:r,level:i,key:o,index:c,path:e,showComma:x,length:S,type:g}]}function cgt(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var e=XDe(r),i=[];e.length;){var n=e.shift();Array.isArray(n)?e.unshift.apply(e,XDe(n)):i.push(n)}return i}function cje(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(lje(r)!=="object")return r;if(e.get(r))return e.get(r);if(Array.isArray(r)){var i=r.map(function(o){return cje(o,e)});return e.set(r,i),i}var n={};for(var a in r)n[a]=cje(r[a],e);return e.set(r,n),n}function dgt(r,e){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function hgt(r){for(var e=1;e=_e||lt.length>=ye,rt=(Ue=r.pathCollapsible)===null||Ue===void 0?void 0:Ue.call(r,lt);return lt.type!=="objectStart"&<.type!=="arrayStart"||!Ze&&!rt?Le:P6(P6({},Le),{},e5e({},lt.path,1))},{})},h=(0,x0.reactive)({translateY:0,visibleData:null,hiddenPaths:c(r.deep,r.collapsedNodeLength)}),g=(0,x0.computed)(function(){for(var _e=null,ye=[],Le=o.value.length,lt=0;lt_e.length?_e.length-Le:Ue;Ze<0&&(Ze=0);var rt=Ze+Le;h.translateY=Ze*r.itemHeight,h.visibleData=_e.filter(function(kt,Zt){return Zt>=Ze&&Zt(D$("data-v-eaec25f1"),r=r(),x$(),r),jpi={class:"inner-drawer"},Vpi={class:"header"},Hpi={style:{"margin-right":"10px"}},Kpi=y$(()=>si("kbd",null,"Esc",-1)),Wpi=["disabled"],Gpi=y$(()=>si("hr",null,null,-1)),Jpi=y$(()=>si("h3",null,"Table columns",-1)),$pi=["onClick"],Upi={key:0},qpi={key:1},Zpi=y$(()=>si("h3",null,"Non-table fields",-1)),Ypi=["onClick"],Qpi={key:0},Xpi={key:1},egi=y$(()=>si("hr",null,null,-1)),tgi={key:0},igi={key:0},ngi={key:1,class:"raw"},ugi={key:2,class:"raw"},rgi={key:3,class:"raw"},agi={key:4,class:"raw"},ogi={key:5,class:"raw"},sgi=y$(()=>si("div",{style:{"margin-bottom":"80px"}},"   ",-1)),lgi=wp({__name:"Drawer",props:{row:{},layout:{}},emits:["close"],setup(r){const e=ds(!1),i=n=>{navigator.clipboard.writeText(n)};return(n,a)=>{var c,h,g,_,x,y,S,L;const o=d6e("tooltip");return n.row?(Mu(),vr("div",{key:0,class:"drawer",style:M3({width:wu(Th)().layout.settings.drawerColWidth+"px"})},[si("div",{class:"resize-handle",onMousedown:a[0]||(a[0]=(...O)=>wu(ogt)&&wu(ogt)(...O))},null,32),si("div",jpi,[si("div",Vpi,[si("div",Hpi,[N0(ihi),P0(" Next / "),N0(shi),P0(" Prev ")]),si("button",{onClick:a[1]||(a[1]=O=>n.$emit("close"))},[P0("Close "),Kpi])]),si("div",null,[si("button",{onClick:a[2]||(a[2]=O=>wu(Th)().filterCorrelated(n.row.msg)),disabled:!n.row.msg.correlation_id}," Display correlated lines ",8,Wpi),wu(Th)().correlationFilter?(Mu(),vr("button",{key:0,onClick:a[3]||(a[3]=O=>wu(Th)().resetCorrelationFilter()),style:{"margin-left":"5px"}}," Reset correlation filter ")):gl("",!0)]),Gpi,Jpi,(Mu(!0),vr(od,null,_y((c=n.layout)==null?void 0:c.columns.filter(O=>!O.hidden),(O,G)=>(Mu(),vr("div",null,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.cells[G].text)},[P0(Qc(O.name)+" ",1),N0(CT,{class:Zh("clipboard")})],8,$pi)),[[o,"Click to copy"]]),n.row.cells[G]&&!n.row.cells[G].isJson?(Mu(),vr("pre",Upi,Qc(n.row.cells[G].text),1)):(Mu(),vr("pre",qpi,[N0(wu(one),{theme:"dark",data:JSON.parse(n.row.cells[G].text)},null,8,["data"])]))]))),256)),Zpi,(Mu(!0),vr(od,null,_y((h=n.layout)==null?void 0:h.columns.filter(O=>O.hidden),(O,G)=>(Mu(),vr("div",null,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:ie=>i(n.row.fields[G].text)},[P0(Qc(O.name)+" ",1),N0(CT,{class:Zh("clipboard")})],8,Ypi)),[[o,"Click to copy"]]),n.row.fields[G].isJson?(Mu(),vr("pre",Xpi,[N0(wu(one),{theme:"dark",data:n.row.fields[G].text},null,8,["data"])])):(Mu(),vr("pre",Qpi,Qc(n.row.fields[G].text),1))]))),256)),egi,si("button",{onClick:a[4]||(a[4]=O=>e.value=!e.value)},"Show/hide raw message"),e.value?(Mu(),vr("div",tgi,[n.row.msg.is_json?(Mu(),vr("div",igi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[5]||(a[5]=O=>i(JSON.stringify(n.row.msg.json_content)))},[P0(" Raw message (JSON) "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[N0(wu(one),{theme:"dark",data:n.row.msg.json_content},null,8,["data"])])])):gl("",!0),n.row.msg.is_json?gl("",!0):(Mu(),vr("div",ngi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[6]||(a[6]=O=>i(n.row.msg.content))},[P0(" Raw message "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc(n.row.msg.content),1)])])),n.row.msg.timing?(Mu(),vr("div",ugi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[7]||(a[7]=O=>i(JSON.stringify(n.row.msg.timing)))},[P0(" Timing "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[N0(wu(one),{theme:"dark",data:n.row.msg.timing},null,8,["data"])])])):gl("",!0),(g=n.row.msg.origin)!=null&&g.port?(Mu(),vr("div",rgi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[8]||(a[8]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.port)})},[P0(" Origin port "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((_=n.row.msg.origin)==null?void 0:_.port),1)])])):gl("",!0),(x=n.row.msg.origin)!=null&&x.api_source?(Mu(),vr("div",agi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[9]||(a[9]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.api_source)})},[P0(" Origin API "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((y=n.row.msg.origin)==null?void 0:y.api_source),1)])])):gl("",!0),(S=n.row.msg.origin)!=null&&S.file?(Mu(),vr("div",ogi,[Nd((Mu(),vr("h4",{style:{display:"inline"},onClick:a[10]||(a[10]=O=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.file)})},[P0(" Origin filename "),N0(CT,{class:Zh("clipboard")})])),[[o,"Click to copy"]]),si("pre",null,[si("code",null,Qc((L=n.row.msg.origin)==null?void 0:L.file),1)])])):gl("",!0)])):gl("",!0),sgi])],4)):gl("",!0)}}}),cgi=I4(lgi,[["__scopeId","data-v-eaec25f1"]]);let dgi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function hgi(r,e){let i;return e.length===0?i=r:i=r.replace(/\{(\d+)\}/g,(n,a)=>{const o=a[0],c=e[o];let h=n;return typeof c=="string"?h=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(h=String(c)),h}),dgi&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function V(r,e,...i){return hgi(e,i)}var mIe;const bG="en";let t5e=!1,i5e=!1,X3e=!1,Kvt=!1,$Ge=!1,UGe=!1,Wvt=!1,y_e,eDe=bG,mgt=bG,fgi,Ub;const VD=typeof self=="object"?self:typeof global=="object"?global:{};let B_;typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"?B_=VD.vscode.process:typeof process<"u"&&(B_=process);const mgi=typeof((mIe=B_==null?void 0:B_.versions)===null||mIe===void 0?void 0:mIe.electron)=="string",pgi=mgi&&(B_==null?void 0:B_.type)==="renderer";if(typeof navigator=="object"&&!pgi)Ub=navigator.userAgent,t5e=Ub.indexOf("Windows")>=0,i5e=Ub.indexOf("Macintosh")>=0,UGe=(Ub.indexOf("Macintosh")>=0||Ub.indexOf("iPad")>=0||Ub.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,X3e=Ub.indexOf("Linux")>=0,Wvt=(Ub==null?void 0:Ub.indexOf("Mobi"))>=0,$Ge=!0,V({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),y_e=bG,eDe=y_e,mgt=navigator.language;else if(typeof B_=="object"){t5e=B_.platform==="win32",i5e=B_.platform==="darwin",X3e=B_.platform==="linux",X3e&&B_.env.SNAP&&B_.env.SNAP_REVISION,B_.env.CI||B_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,y_e=bG,eDe=bG;const r=B_.env.VSCODE_NLS_CONFIG;if(r)try{const e=JSON.parse(r),i=e.availableLanguages["*"];y_e=e.locale,mgt=e.osLocale,eDe=i||bG,fgi=e._translationsConfigFile}catch{}Kvt=!0}else console.error("Unable to resolve platform.");const Fp=t5e,d0=i5e,sg=X3e,Dy=Kvt,aN=$Ge,ggi=$Ge&&typeof VD.importScripts=="function",SA=UGe,Egi=Wvt,BA=Ub,_gi=eDe,Dgi=typeof VD.postMessage=="function"&&!VD.importScripts,Gvt=(()=>{if(Dgi){const r=[];VD.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,a=r.length;n{const n=++e;r.push({id:n,callback:i}),VD.postMessage({vscodeScheduleAsyncWork:n},"*")}}return r=>setTimeout(r)})(),rx=i5e||UGe?2:t5e?1:3;let pgt=!0,ggt=!1;function Jvt(){if(!ggt){ggt=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,pgt=new Uint16Array(r.buffer)[0]===513}return pgt}const $vt=!!(BA&&BA.indexOf("Chrome")>=0),xgi=!!(BA&&BA.indexOf("Firefox")>=0),vgi=!!(!$vt&&BA&&BA.indexOf("Safari")>=0),Cgi=!!(BA&&BA.indexOf("Edg/")>=0);BA&&BA.indexOf("Android")>=0;var V0;(function(r){function e(ue){return ue&&typeof ue=="object"&&typeof ue[Symbol.iterator]=="function"}r.is=e;const i=Object.freeze([]);function n(){return i}r.empty=n;function*a(ue){yield ue}r.single=a;function o(ue){return e(ue)?ue:a(ue)}r.wrap=o;function c(ue){return ue||i}r.from=c;function h(ue){return!ue||ue[Symbol.iterator]().next().done===!0}r.isEmpty=h;function g(ue){return ue[Symbol.iterator]().next().value}r.first=g;function _(ue,re){for(const _e of ue)if(re(_e))return!0;return!1}r.some=_;function x(ue,re){for(const _e of ue)if(re(_e))return _e}r.find=x;function*y(ue,re){for(const _e of ue)re(_e)&&(yield _e)}r.filter=y;function*S(ue,re){let _e=0;for(const ye of ue)yield re(ye,_e++)}r.map=S;function*L(...ue){for(const re of ue)for(const _e of re)yield _e}r.concat=L;function O(ue,re,_e){let ye=_e;for(const Le of ue)ye=re(ye,Le);return ye}r.reduce=O;function*G(ue,re,_e=ue.length){for(re<0&&(re+=ue.length),_e<0?_e+=ue.length:_e>ue.length&&(_e=ue.length);re<_e;re++)yield ue[re]}r.slice=G;function ie(ue,re=Number.POSITIVE_INFINITY){const _e=[];if(re===0)return[_e,ue];const ye=ue[Symbol.iterator]();for(let Le=0;Le{a||(a=!0,this._remove(n))}}shift(){if(this._first!==Qf.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Qf.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Qf.Undefined&&e.next!==Qf.Undefined){const i=e.prev;i.next=e.next,e.next.prev=i}else e.prev===Qf.Undefined&&e.next===Qf.Undefined?(this._first=Qf.Undefined,this._last=Qf.Undefined):e.next===Qf.Undefined?(this._last=this._last.prev,this._last.next=Qf.Undefined):e.prev===Qf.Undefined&&(this._first=this._first.next,this._first.prev=Qf.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Qf.Undefined;)yield e.element,e=e.next}}const Uvt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function bgi(r=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const i of Uvt)r.indexOf(i)>=0||(e+="\\"+i);return e+="\\s]+)",new RegExp(e,"g")}const qGe=bgi();function qvt(r){let e=qGe;if(r&&r instanceof RegExp)if(r.global)e=r;else{let i="g";r.ignoreCase&&(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),e=new RegExp(r.source,i)}return e.lastIndex=0,e}const Zvt=new ug;Zvt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Pue(r,e,i,n,a){if(a||(a=V0.first(Zvt)),i.length>a.maxLen){let _=r-a.maxLen/2;return _<0?_=0:n+=_,i=i.substring(_,r+a.maxLen/2),Pue(r,e,i,n,a)}const o=Date.now(),c=r-1-n;let h=-1,g=null;for(let _=1;!(Date.now()-o>=a.timeBudget);_++){const x=c-a.windowSize*_;e.lastIndex=Math.max(0,x);const y=ygi(e,i,c,h);if(!y&&g||(g=y,x<=0))break;h=x}if(g){const _={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return e.lastIndex=0,_}return null}function ygi(r,e,i,n){let a;for(;a=r.exec(e);){const o=a.index||0;if(o<=i&&r.lastIndex>=i)return a;if(n>0&&o>n)return null}return null}function M6(r,e=0){return r[r.length-(1+e)]}function kgi(r){if(r.length===0)throw new Error("Invalid tail call");return[r.slice(0,r.length-1),r[r.length-1]]}function rg(r,e,i=(n,a)=>n===a){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,a=r.length;ni(r[n],e))}function Agi(r,e){let i=0,n=r-1;for(;i<=n;){const a=(i+n)/2|0,o=e(a);if(o<0)i=a+1;else if(o>0)n=a-1;else return a}return-(i+1)}function Yvt(r,e){let i=0,n=r.length;if(n===0)return 0;for(;i=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],a=[],o=[],c=[];for(const h of e){const g=i(h,n);g<0?a.push(h):g>0?o.push(h):c.push(h)}return r!!e)}function _gt(r){let e=0;for(let i=0;i0}function jL(r,e=i=>i){const i=new Set;return r.filter(n=>{const a=e(n);return i.has(a)?!1:(i.add(a),!0)})}function Xvt(r,e){const i=Sgi(r,e);if(i!==-1)return r[i]}function Sgi(r,e){for(let i=r.length-1;i>=0;i--){const n=r[i];if(e(n))return i}return-1}function eCt(r,e){return r.length>0?r[0]:e}function A_(r,e){let i=typeof e=="number"?r:0;typeof e=="number"?i=r:(i=0,e=r);const n=[];if(i<=e)for(let a=i;ae;a--)n.push(a);return n}function B6e(r,e,i){const n=r.slice(0,e),a=r.slice(e);return n.concat(i,a)}function pIe(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.unshift(e))}function k_e(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.push(e))}function Dgt(r,e){for(const i of e)r.push(i)}function ZGe(r){return Array.isArray(r)?r:[r]}function Bgi(r,e,i){const n=tCt(r,e),a=r.length,o=i.length;r.length=a+o;for(let c=a-1;c>=n;c--)r[c+o]=r[c];for(let c=0;c0}r.isGreaterThan=i;function n(a){return a===0}r.isNeitherLessOrGreaterThan=n,r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0})(fje||(fje={}));function One(r,e){return(i,n)=>e(r(i),r(n))}const wgi=(r,e)=>r-e;function iCt(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n0&&(i=a)}return i}function Tgi(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n=0&&(i=a)}return i}function Lgi(r,e){return iCt(r,(i,n)=>-e(i,n))}class TJ{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let i=this.firstIdx;for(;i=0&&e(this.items[i]);)i--;const n=i===this.lastIdx?null:this.items.slice(i+1,this.lastIdx+1);return this.lastIdx=i,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const i=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,i}}class DA{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new DA(i=>this.iterate(n=>e(n)?i(n):!0))}map(e){return new DA(i=>this.iterate(n=>i(e(n))))}findLast(e){let i;return this.iterate(n=>(e(n)&&(i=n),!0)),i}findLastMaxBy(e){let i,n=!0;return this.iterate(a=>((n||fje.isGreaterThan(e(a,i)))&&(n=!1,i=a),!0)),i}}DA.empty=new DA(r=>{});function M_(r){return typeof r=="string"}function O3(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function Ngi(r){const e=Object.getPrototypeOf(Uint8Array);return typeof r=="object"&&r instanceof e}function VL(r){return typeof r=="number"&&!isNaN(r)}function vgt(r){return!!r&&typeof r[Symbol.iterator]=="function"}function nCt(r){return r===!0||r===!1}function RD(r){return typeof r>"u"}function Pgi(r){return!ix(r)}function ix(r){return RD(r)||r===null}function Fc(r,e){if(!r)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function yG(r){if(ix(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function n5e(r){return typeof r=="function"}function Mgi(r,e){const i=Math.min(r.length,e.length);for(let n=0;n{e[i]=n&&typeof n=="object"?vS(n):n}),e}function Igi(r){if(!r||typeof r!="object")return r;const e=[r];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const n in i)if(uCt.call(i,n)){const a=i[n];typeof a=="object"&&!Object.isFrozen(a)&&!Ngi(a)&&e.push(a)}}return r}const uCt=Object.prototype.hasOwnProperty;function rCt(r,e){return mje(r,e,new Set)}function mje(r,e,i){if(ix(r))return r;const n=e(r);if(typeof n<"u")return n;if(Array.isArray(r)){const a=[];for(const o of r)a.push(mje(o,e,i));return a}if(O3(r)){if(i.has(r))throw new Error("Cannot clone recursive data-structure");i.add(r);const a={};for(const o in r)uCt.call(r,o)&&(a[o]=mje(r[o],e,i));return i.delete(r),a}return r}function pae(r,e,i=!0){return O3(r)?(O3(e)&&Object.keys(e).forEach(n=>{n in r?i&&(O3(r[n])&&O3(e[n])?pae(r[n],e[n],i):r[n]=e[n]):r[n]=e[n]}),r):e}function cx(r,e){if(r===e)return!0;if(r==null||e===null||e===void 0||typeof r!=typeof e||typeof r!="object"||Array.isArray(r)!==Array.isArray(e))return!1;let i,n;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},n={};for(const a of r)n[a]=i(a);return n}const Og={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},NT=8;class aCt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class oCt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Nh{constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return w6e(e,i)}compute(e,i,n){return n}}class jne{constructor(e,i){this.newValue=e,this.didChange=i}}function w6e(r,e){if(typeof r!="object"||typeof e!="object"||!r||!e)return new jne(e,r!==e);if(Array.isArray(r)||Array.isArray(e)){const n=Array.isArray(r)&&Array.isArray(e)&&rg(r,e);return new jne(e,!n)}let i=!1;for(const n in e)if(e.hasOwnProperty(n)){const a=w6e(r[n],e[n]);a.didChange&&(r[n]=a.newValue,i=!0)}return new jne(r,i)}class gae{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,i){return w6e(e,i)}validate(e){return this.defaultValue}}class F${constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return w6e(e,i)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,i,n){return n}}function Do(r,e){return typeof r>"u"?e:r==="false"?!1:!!r}class pl extends F${constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="boolean",a.default=n),super(e,i,n,a)}validate(e){return Do(e,this.defaultValue)}}function pje(r,e,i,n){if(typeof r>"u")return e;let a=parseInt(r,10);return isNaN(a)?e:(a=Math.max(i,a),a=Math.min(n,a),a|0)}class gd extends F${static clampedInt(e,i,n,a){return pje(e,i,n,a)}constructor(e,i,n,a,o,c=void 0){typeof c<"u"&&(c.type="integer",c.default=n,c.minimum=a,c.maximum=o),super(e,i,n,c),this.minimum=a,this.maximum=o}validate(e){return gd.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class lA extends F${static clamp(e,i,n){return en?n:e}static float(e,i){if(typeof e=="number")return e;if(typeof e>"u")return i;const n=parseFloat(e);return isNaN(n)?i:n}constructor(e,i,n,a,o){typeof o<"u"&&(o.type="number",o.default=n),super(e,i,n,o),this.validationFn=a}validate(e){return this.validationFn(lA.float(e,this.defaultValue))}}class MD extends F${static string(e,i){return typeof e!="string"?i:e}constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="string",a.default=n),super(e,i,n,a)}validate(e){return MD.string(e,this.defaultValue)}}function im(r,e,i){return typeof r!="string"||i.indexOf(r)===-1?e:r}class ff extends F${constructor(e,i,n,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=a,o.default=n),super(e,i,n,o),this._allowedValues=a}validate(e){return im(e,this.defaultValue,this._allowedValues)}}class F_e extends Nh{constructor(e,i,n,a,o,c,h=void 0){typeof h<"u"&&(h.type="string",h.enum=o,h.default=a),super(e,i,n,h),this._allowedValues=o,this._convert=c}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function jgi(r){switch(r){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Vgi extends Nh{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),V("accessibilitySupport.on","Optimize for usage with a Screen Reader"),V("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,i,n){return n===0?e.accessibilitySupport:n}}class Hgi extends Nh{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertSpace:Do(i.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:Do(i.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Kgi(r){switch(r){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var xp;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(xp||(xp={}));function Wgi(r){switch(r){case"line":return xp.Line;case"block":return xp.Block;case"underline":return xp.Underline;case"line-thin":return xp.LineThin;case"block-outline":return xp.BlockOutline;case"underline-thin":return xp.UnderlineThin}}class Ggi extends gae{constructor(){super(136)}compute(e,i,n){const a=["monaco-editor"];return i.get(37)&&a.push(i.get(37)),e.extraEditorClassName&&a.push(e.extraEditorClassName),i.get(71)==="default"?a.push("mouse-default"):i.get(71)==="copy"&&a.push("mouse-copy"),i.get(106)&&a.push("showUnused"),i.get(134)&&a.push("showDeprecated"),a.join(" ")}}class Jgi extends pl{constructor(){super(35,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,i,n){return n&&e.emptySelectionClipboard}}class $gi extends Nh{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:d0},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{cursorMoveOnType:Do(i.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":im(i.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":im(i.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:Do(i.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:Do(i.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:Do(i.loop,this.defaultValue.loop)}}}class nx extends Nh{constructor(){super(49,"fontLigatures",nx.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?nx.OFF:e==="true"?nx.ON:e:e?nx.ON:nx.OFF}}nx.OFF='"liga" off, "calt" off';nx.ON='"liga" on, "calt" on';class ay extends Nh{constructor(){super(52,"fontVariations",ay.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?ay.OFF:e==="true"?ay.TRANSLATE:e:e?ay.TRANSLATE:ay.OFF}compute(e,i,n){return e.fontInfo.fontVariationSettings}}ay.OFF="normal";ay.TRANSLATE="translate";class Ugi extends gae{constructor(){super(48)}compute(e,i,n){return e.fontInfo}}class qgi extends F${constructor(){super(50,"fontSize",HD.fontSize,{type:"number",minimum:6,maximum:100,default:HD.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const i=lA.float(e,this.defaultValue);return i===0?HD.fontSize:lA.clamp(i,6,100)}compute(e,i,n){return e.fontInfo.fontSize}}class tA extends Nh{constructor(){super(51,"fontWeight",HD.fontWeight,{anyOf:[{type:"number",minimum:tA.MINIMUM_VALUE,maximum:tA.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:tA.SUGGESTION_VALUES}],default:HD.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(gd.clampedInt(e,HD.fontWeight,tA.MINIMUM_VALUE,tA.MAXIMUM_VALUE))}}tA.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];tA.MINIMUM_VALUE=1;tA.MAXIMUM_VALUE=1e3;class Zgi extends Nh{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":Object.assign({description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":Object.assign({description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":Object.assign({description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var i,n,a,o,c;if(!e||typeof e!="object")return this.defaultValue;const h=e;return{multiple:im(h.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(i=h.multipleDefinitions)!==null&&i!==void 0?i:im(h.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=h.multipleTypeDefinitions)!==null&&n!==void 0?n:im(h.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(a=h.multipleDeclarations)!==null&&a!==void 0?a:im(h.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=h.multipleImplementations)!==null&&o!==void 0?o:im(h.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(c=h.multipleReferences)!==null&&c!==void 0?c:im(h.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:MD.string(h.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:MD.string(h.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:MD.string(h.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:MD.string(h.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:MD.string(h.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class Ygi extends Nh{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),delay:gd.clampedInt(i.delay,this.defaultValue.delay,0,1e4),sticky:Do(i.sticky,this.defaultValue.sticky),above:Do(i.above,this.defaultValue.above)}}}class tJ extends gae{constructor(){super(139)}compute(e,i,n){return tJ.computeLayout(i,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const i=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let a=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(a=Math.max(a,i-1));const o=(n+e.viewLineCount+a)/(e.pixelRatio*e.height),c=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:i,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:a,desiredRatio:o,minimapLineCount:c}}static _computeMinimapLayout(e,i){const n=e.outerWidth,a=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a};const c=i.stableMinimapLayoutInput,h=c&&e.outerHeight===c.outerHeight&&e.lineHeight===c.lineHeight&&e.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&e.pixelRatio===c.pixelRatio&&e.scrollBeyondLastLine===c.scrollBeyondLastLine&&e.paddingTop===c.paddingTop&&e.paddingBottom===c.paddingBottom&&e.minimap.enabled===c.minimap.enabled&&e.minimap.side===c.minimap.side&&e.minimap.size===c.minimap.size&&e.minimap.showSlider===c.minimap.showSlider&&e.minimap.renderCharacters===c.minimap.renderCharacters&&e.minimap.maxColumn===c.minimap.maxColumn&&e.minimap.scale===c.minimap.scale&&e.verticalScrollbarWidth===c.verticalScrollbarWidth&&e.isViewportWrapping===c.isViewportWrapping,g=e.lineHeight,_=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,y=e.minimap.renderCharacters;let S=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const L=e.minimap.maxColumn,O=e.minimap.size,G=e.minimap.side,ie=e.verticalScrollbarWidth,ue=e.viewLineCount,re=e.remainingWidth,_e=e.isViewportWrapping,ye=y?2:3;let Le=Math.floor(o*a);const lt=Le/o;let Ue=!1,Ze=!1,rt=ye*S,kt=S/o,Zt=1;if(O==="fill"||O==="fit"){const{typicalViewportLineCount:zr,extraLinesBeforeFirstLine:Lu,extraLinesBeyondLastLine:Va,desiredRatio:ju,minimapLineCount:Tr}=tJ.computeContainedMinimapLineCount({viewLineCount:ue,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:a,lineHeight:g,pixelRatio:o});if(ue/Tr>1)Ue=!0,Ze=!0,S=1,rt=1,kt=S/o;else{let z0=!1,Zr=S+1;if(O==="fit"){const qi=Math.ceil((Lu+ue+Va)*rt);_e&&h&&re<=i.stableFitRemainingWidth?(z0=!0,Zr=i.stableFitMaxMinimapScale):z0=qi>Le}if(O==="fill"||z0){Ue=!0;const qi=S;rt=Math.min(g*o,Math.max(1,Math.floor(1/ju))),_e&&h&&re<=i.stableFitRemainingWidth&&(Zr=i.stableFitMaxMinimapScale),S=Math.min(Zr,Math.max(1,Math.floor(rt/ye))),S>qi&&(Zt=Math.min(2,S/qi)),kt=S/o/Zt,Le=Math.ceil(Math.max(zr,Lu+ue+Va)*rt),_e?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=re,i.stableFitMaxMinimapScale=S):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const jt=Math.floor(L*kt),ui=Math.min(jt,Math.max(0,Math.floor((re-ie-2)*kt/(_+kt)))+NT);let ti=Math.floor(o*ui);const Uu=ti/o;ti=Math.floor(ti*Zt);const pu=y?1:2,Vt=G==="left"?0:n-ui-ie;return{renderMinimap:pu,minimapLeft:Vt,minimapWidth:ui,minimapHeightIsEditorHeight:Ue,minimapIsSampling:Ze,minimapScale:S,minimapLineHeight:rt,minimapCanvasInnerWidth:ti,minimapCanvasInnerHeight:Le,minimapCanvasOuterWidth:Uu,minimapCanvasOuterHeight:lt}}static computeLayout(e,i){const n=i.outerWidth|0,a=i.outerHeight|0,o=i.lineHeight|0,c=i.lineNumbersDigitCount|0,h=i.typicalHalfwidthCharacterWidth,g=i.maxDigitWidth,_=i.pixelRatio,x=i.viewLineCount,y=e.get(131),S=y==="inherit"?e.get(130):y,L=S==="inherit"?e.get(126):S,O=e.get(129),G=i.isDominatedByLongLines,ie=e.get(55),ue=e.get(65).renderType!==0,re=e.get(66),_e=e.get(100),ye=e.get(81),Le=e.get(70),lt=e.get(98),Ue=lt.verticalScrollbarSize,Ze=lt.verticalHasArrows,rt=lt.arrowSize,kt=lt.horizontalScrollbarSize,Zt=e.get(41),jt=e.get(105)!=="never";let ui=e.get(63);Zt&&jt&&(ui+=16);let ti=0;if(ue){const Fa=Math.max(c,re);ti=Math.round(Fa*g)}let Uu=0;ie&&(Uu=o);let pu=0,Vt=pu+Uu,zr=Vt+ti,Lu=zr+ui;const Va=n-Uu-ti-ui;let ju=!1,Tr=!1,pa=-1;S==="inherit"&&G?(ju=!0,Tr=!0):L==="on"||L==="bounded"?Tr=!0:L==="wordWrapColumn"&&(pa=O);const z0=tJ._computeMinimapLayout({outerWidth:n,outerHeight:a,lineHeight:o,typicalHalfwidthCharacterWidth:h,pixelRatio:_,scrollBeyondLastLine:_e,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Le,verticalScrollbarWidth:Ue,viewLineCount:x,remainingWidth:Va,isViewportWrapping:Tr},i.memory||new oCt);z0.renderMinimap!==0&&z0.minimapLeft===0&&(pu+=z0.minimapWidth,Vt+=z0.minimapWidth,zr+=z0.minimapWidth,Lu+=z0.minimapWidth);const Zr=Va-z0.minimapWidth,qi=Math.max(1,Math.floor((Zr-Ue-2)/h)),eo=Ze?rt:0;return Tr&&(pa=Math.max(1,qi),L==="bounded"&&(pa=Math.min(pa,O))),{width:n,height:a,glyphMarginLeft:pu,glyphMarginWidth:Uu,lineNumbersLeft:Vt,lineNumbersWidth:ti,decorationsLeft:zr,decorationsWidth:ui,contentLeft:Lu,contentWidth:Zr,minimap:z0,viewportColumn:qi,isWordWrapMinified:ju,isViewportWrapping:Tr,wrappingColumn:pa,verticalScrollbarWidth:Ue,horizontalScrollbarHeight:kt,overviewRuler:{top:eo,width:Ue,height:a-2*eo,right:0}}}}class Qgi extends Nh{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return im(e,"simple",["simple","advanced"])}compute(e,i,n){return i.get(2)===2?"advanced":n}}class Xgi extends Nh{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:V("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Do(e.enabled,this.defaultValue.enabled)}}}class eEi extends Nh{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),maxLineCount:gd.clampedInt(i.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:im(i.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class tEi extends Nh{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return typeof i.enabled=="boolean"&&(i.enabled=i.enabled?"on":"off"),{enabled:im(i.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:gd.clampedInt(i.fontSize,this.defaultValue.fontSize,0,100),fontFamily:MD.string(i.fontFamily,this.defaultValue.fontFamily),padding:Do(i.padding,this.defaultValue.padding)}}}class iEi extends Nh{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):gd.clampedInt(e,this.defaultValue,0,1e3)}compute(e,i,n){return n<0?gd.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class nEi extends lA{constructor(){super(64,"lineHeight",HD.lineHeight,e=>lA.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height. +`+new Error().stack),i=!1}return e.apply(this,arguments)},e)}var agt={};function X6t(r,e){lo.deprecationHandler!=null&&lo.deprecationHandler(r,e),agt[r]||(Q6t(e),agt[r]=!0)}lo.suppressDeprecationWarnings=!1;lo.deprecationHandler=null;function HA(r){return typeof Function<"u"&&r instanceof Function||Object.prototype.toString.call(r)==="[object Function]"}function Rhi(r){var e,i;for(i in r)w1(r,i)&&(e=r[i],HA(e)?this[i]=e:this["_"+i]=e);this._config=r,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function sje(r,e){var i=iL({},r),n;for(n in e)w1(e,n)&&(JI(r[n])&&JI(e[n])?(i[n]={},iL(i[n],r[n]),iL(i[n],e[n])):e[n]!=null?i[n]=e[n]:delete i[n]);for(n in r)w1(r,n)&&!w1(e,n)&&JI(r[n])&&(i[n]=iL({},i[n]));return i}function NGe(r){r!=null&&this.set(r)}var lje;Object.keys?lje=Object.keys:lje=function(r){var e,i=[];for(e in r)w1(r,e)&&i.push(e);return i};var Ohi={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function jhi(r,e,i){var n=this._calendar[r]||this._calendar.sameElse;return HA(n)?n.call(e,i):n}function AA(r,e,i){var n=""+Math.abs(r),a=e-n.length,o=r>=0;return(o?i?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+n}var PGe=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,k_e=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,gIe={},XG={};function h0(r,e,i,n){var a=n;typeof n=="string"&&(a=function(){return this[n]()}),r&&(XG[r]=a),e&&(XG[e[0]]=function(){return AA(a.apply(this,arguments),e[1],e[2])}),i&&(XG[i]=function(){return this.localeData().ordinal(a.apply(this,arguments),r)})}function Vhi(r){return r.match(/\[[\s\S]/)?r.replace(/^\[|\]$/g,""):r.replace(/\\/g,"")}function Hhi(r){var e=r.match(PGe),i,n;for(i=0,n=e.length;i=0&&k_e.test(r);)r=r.replace(k_e,n),k_e.lastIndex=0,i-=1;return r}var Khi={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Whi(r){var e=this._longDateFormat[r],i=this._longDateFormat[r.toUpperCase()];return e||!i?e:(this._longDateFormat[r]=i.match(PGe).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[r])}var Ghi="Invalid date";function Jhi(){return this._invalidDate}var $hi="%d",Uhi=/\d{1,2}/;function qhi(r){return this._ordinal.replace("%d",r)}var Zhi={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Yhi(r,e,i,n){var a=this._relativeTime[i];return HA(a)?a(r,e,i,n):a.replace(/%d/i,r)}function Qhi(r,e){var i=this._relativeTime[r>0?"future":"past"];return HA(i)?i(e):i.replace(/%s/i,e)}var ogt={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function o2(r){return typeof r=="string"?ogt[r]||ogt[r.toLowerCase()]:void 0}function MGe(r){var e={},i,n;for(n in r)w1(r,n)&&(i=o2(n),i&&(e[i]=r[n]));return e}var Xhi={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function efi(r){var e=[],i;for(i in r)w1(r,i)&&e.push({unit:i,priority:Xhi[i]});return e.sort(function(n,a){return n.priority-a.priority}),e}var tvt=/\d/,uv=/\d\d/,ivt=/\d{3}/,zGe=/\d{4}/,k6e=/[+-]?\d{6}/,rm=/\d\d?/,nvt=/\d\d\d\d?/,uvt=/\d\d\d\d\d\d?/,F6e=/\d{1,3}/,IGe=/\d{1,4}/,A6e=/[+-]?\d{1,6}/,b$=/\d+/,S6e=/[+-]?\d+/,tfi=/Z|[+-]\d\d:?\d\d/gi,B6e=/Z|[+-]\d\d(?::?\d\d)?/gi,ifi=/[+-]?\d+(\.\d{1,3})?/,pae=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,y$=/^[1-9]\d?/,RGe=/^([1-9]\d|\d)/,YDe;YDe={};function ps(r,e,i){YDe[r]=HA(e)?e:function(n,a){return n&&i?i:e}}function nfi(r,e){return w1(YDe,r)?YDe[r](e._strict,e._locale):new RegExp(ufi(r))}function ufi(r){return US(r.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,i,n,a,o){return i||n||a||o}))}function US(r){return r.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function WC(r){return r<0?Math.ceil(r)||0:Math.floor(r)}function xd(r){var e=+r,i=0;return e!==0&&isFinite(e)&&(i=WC(e)),i}var cje={};function Qh(r,e){var i,n=e,a;for(typeof r=="string"&&(r=[r]),t8(e)&&(n=function(o,c){c[e]=xd(o)}),a=r.length,i=0;i68?1900:2e3)};var rvt=k$("FullYear",!0);function sfi(){return w6e(this.year())}function k$(r,e){return function(i){return i!=null?(avt(this,r,i),lo.updateOffset(this,e),this):Nue(this,r)}}function Nue(r,e){if(!r.isValid())return NaN;var i=r._d,n=r._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function avt(r,e,i){var n,a,o,c,h;if(!(!r.isValid()||isNaN(i))){switch(n=r._d,a=r._isUTC,e){case"Milliseconds":return void(a?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(a?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(a?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(a?n.setUTCHours(i):n.setHours(i));case"Date":return void(a?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}o=i,c=r.month(),h=r.date(),h=h===29&&c===1&&!w6e(o)?28:h,a?n.setUTCFullYear(o,c,h):n.setFullYear(o,c,h)}}function lfi(r){return r=o2(r),HA(this[r])?this[r]():this}function cfi(r,e){if(typeof r=="object"){r=MGe(r);var i=efi(r),n,a=i.length;for(n=0;n=0?(h=new Date(r+400,e,i,n,a,o,c),isFinite(h.getFullYear())&&h.setFullYear(r)):h=new Date(r,e,i,n,a,o,c),h}function Pue(r){var e,i;return r<100&&r>=0?(i=Array.prototype.slice.call(arguments),i[0]=r+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(r)):e=new Date(Date.UTC.apply(null,arguments)),e}function QDe(r,e,i){var n=7+e-i,a=(7+Pue(r,0,n).getUTCDay()-e)%7;return-a+n-1}function hvt(r,e,i,n,a){var o=(7+i-n)%7,c=QDe(r,n,a),h=1+7*(e-1)+o+c,g,_;return h<=0?(g=r-1,_=Vne(g)+h):h>Vne(r)?(g=r+1,_=h-Vne(r)):(g=r,_=h),{year:g,dayOfYear:_}}function Mue(r,e,i){var n=QDe(r.year(),e,i),a=Math.floor((r.dayOfYear()-n-1)/7)+1,o,c;return a<1?(c=r.year()-1,o=a+qS(c,e,i)):a>qS(r.year(),e,i)?(o=a-qS(r.year(),e,i),c=r.year()+1):(c=r.year(),o=a),{week:o,year:c}}function qS(r,e,i){var n=QDe(r,e,i),a=QDe(r+1,e,i);return(Vne(r)-n+a)/7}h0("w",["ww",2],"wo","week");h0("W",["WW",2],"Wo","isoWeek");ps("w",rm,y$);ps("ww",rm,uv);ps("W",rm,y$);ps("WW",rm,uv);gae(["w","ww","W","WW"],function(r,e,i,n){e[n.substr(0,1)]=xd(r)});function bfi(r){return Mue(r,this._week.dow,this._week.doy).week}var yfi={dow:0,doy:6};function kfi(){return this._week.dow}function Ffi(){return this._week.doy}function Afi(r){var e=this.localeData().week(this);return r==null?e:this.add((r-e)*7,"d")}function Sfi(r){var e=Mue(this,1,4).week;return r==null?e:this.add((r-e)*7,"d")}h0("d",0,"do","day");h0("dd",0,0,function(r){return this.localeData().weekdaysMin(this,r)});h0("ddd",0,0,function(r){return this.localeData().weekdaysShort(this,r)});h0("dddd",0,0,function(r){return this.localeData().weekdays(this,r)});h0("e",0,0,"weekday");h0("E",0,0,"isoWeekday");ps("d",rm);ps("e",rm);ps("E",rm);ps("dd",function(r,e){return e.weekdaysMinRegex(r)});ps("ddd",function(r,e){return e.weekdaysShortRegex(r)});ps("dddd",function(r,e){return e.weekdaysRegex(r)});gae(["dd","ddd","dddd"],function(r,e,i,n){var a=i._locale.weekdaysParse(r,n,i._strict);a!=null?e.d=a:Ec(i).invalidWeekday=r});gae(["d","e","E"],function(r,e,i,n){e[n]=xd(r)});function Bfi(r,e){return typeof r!="string"?r:isNaN(r)?(r=e.weekdaysParse(r),typeof r=="number"?r:null):parseInt(r,10)}function wfi(r,e){return typeof r=="string"?e.weekdaysParse(r)%7||7:isNaN(r)?null:r}function jGe(r,e){return r.slice(e,7).concat(r.slice(0,e))}var Tfi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),fvt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Lfi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Nfi=pae,Pfi=pae,Mfi=pae;function zfi(r,e){var i=Ay(this._weekdays)?this._weekdays:this._weekdays[r&&r!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return r===!0?jGe(i,this._week.dow):r?i[r.day()]:i}function Ifi(r){return r===!0?jGe(this._weekdaysShort,this._week.dow):r?this._weekdaysShort[r.day()]:this._weekdaysShort}function Rfi(r){return r===!0?jGe(this._weekdaysMin,this._week.dow):r?this._weekdaysMin[r.day()]:this._weekdaysMin}function Ofi(r,e,i){var n,a,o,c=r.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=VA([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?e==="dddd"?(a=Dp.call(this._weekdaysParse,c),a!==-1?a:null):e==="ddd"?(a=Dp.call(this._shortWeekdaysParse,c),a!==-1?a:null):(a=Dp.call(this._minWeekdaysParse,c),a!==-1?a:null):e==="dddd"?(a=Dp.call(this._weekdaysParse,c),a!==-1||(a=Dp.call(this._shortWeekdaysParse,c),a!==-1)?a:(a=Dp.call(this._minWeekdaysParse,c),a!==-1?a:null)):e==="ddd"?(a=Dp.call(this._shortWeekdaysParse,c),a!==-1||(a=Dp.call(this._weekdaysParse,c),a!==-1)?a:(a=Dp.call(this._minWeekdaysParse,c),a!==-1?a:null)):(a=Dp.call(this._minWeekdaysParse,c),a!==-1||(a=Dp.call(this._weekdaysParse,c),a!==-1)?a:(a=Dp.call(this._shortWeekdaysParse,c),a!==-1?a:null))}function jfi(r,e,i){var n,a,o;if(this._weekdaysParseExact)return Ofi.call(this,r,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(a=VA([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&e==="dddd"&&this._fullWeekdaysParse[n].test(r))return n;if(i&&e==="ddd"&&this._shortWeekdaysParse[n].test(r))return n;if(i&&e==="dd"&&this._minWeekdaysParse[n].test(r))return n;if(!i&&this._weekdaysParse[n].test(r))return n}}function Vfi(r){if(!this.isValid())return r!=null?this:NaN;var e=Nue(this,"Day");return r!=null?(r=Bfi(r,this.localeData()),this.add(r-e,"d")):e}function Hfi(r){if(!this.isValid())return r!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return r==null?e:this.add(r-e,"d")}function Kfi(r){if(!this.isValid())return r!=null?this:NaN;if(r!=null){var e=wfi(r,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function Wfi(r){return this._weekdaysParseExact?(w1(this,"_weekdaysRegex")||VGe.call(this),r?this._weekdaysStrictRegex:this._weekdaysRegex):(w1(this,"_weekdaysRegex")||(this._weekdaysRegex=Nfi),this._weekdaysStrictRegex&&r?this._weekdaysStrictRegex:this._weekdaysRegex)}function Gfi(r){return this._weekdaysParseExact?(w1(this,"_weekdaysRegex")||VGe.call(this),r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(w1(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Pfi),this._weekdaysShortStrictRegex&&r?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Jfi(r){return this._weekdaysParseExact?(w1(this,"_weekdaysRegex")||VGe.call(this),r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(w1(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Mfi),this._weekdaysMinStrictRegex&&r?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function VGe(){function r(x,y){return y.length-x.length}var e=[],i=[],n=[],a=[],o,c,h,g,_;for(o=0;o<7;o++)c=VA([2e3,1]).day(o),h=US(this.weekdaysMin(c,"")),g=US(this.weekdaysShort(c,"")),_=US(this.weekdays(c,"")),e.push(h),i.push(g),n.push(_),a.push(h),a.push(g),a.push(_);e.sort(r),i.sort(r),n.sort(r),a.sort(r),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function HGe(){return this.hours()%12||12}function $fi(){return this.hours()||24}h0("H",["HH",2],0,"hour");h0("h",["hh",2],0,HGe);h0("k",["kk",2],0,$fi);h0("hmm",0,0,function(){return""+HGe.apply(this)+AA(this.minutes(),2)});h0("hmmss",0,0,function(){return""+HGe.apply(this)+AA(this.minutes(),2)+AA(this.seconds(),2)});h0("Hmm",0,0,function(){return""+this.hours()+AA(this.minutes(),2)});h0("Hmmss",0,0,function(){return""+this.hours()+AA(this.minutes(),2)+AA(this.seconds(),2)});function mvt(r,e){h0(r,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}mvt("a",!0);mvt("A",!1);function pvt(r,e){return e._meridiemParse}ps("a",pvt);ps("A",pvt);ps("H",rm,RGe);ps("h",rm,y$);ps("k",rm,y$);ps("HH",rm,uv);ps("hh",rm,uv);ps("kk",rm,uv);ps("hmm",nvt);ps("hmmss",uvt);ps("Hmm",nvt);ps("Hmmss",uvt);Qh(["H","HH"],Wg);Qh(["k","kk"],function(r,e,i){var n=xd(r);e[Wg]=n===24?0:n});Qh(["a","A"],function(r,e,i){i._isPm=i._locale.isPM(r),i._meridiem=r});Qh(["h","hh"],function(r,e,i){e[Wg]=xd(r),Ec(i).bigHour=!0});Qh("hmm",function(r,e,i){var n=r.length-2;e[Wg]=xd(r.substr(0,n)),e[hy]=xd(r.substr(n)),Ec(i).bigHour=!0});Qh("hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Wg]=xd(r.substr(0,n)),e[hy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a)),Ec(i).bigHour=!0});Qh("Hmm",function(r,e,i){var n=r.length-2;e[Wg]=xd(r.substr(0,n)),e[hy]=xd(r.substr(n))});Qh("Hmmss",function(r,e,i){var n=r.length-4,a=r.length-2;e[Wg]=xd(r.substr(0,n)),e[hy]=xd(r.substr(n,2)),e[PS]=xd(r.substr(a))});function Ufi(r){return(r+"").toLowerCase().charAt(0)==="p"}var qfi=/[ap]\.?m?\.?/i,Zfi=k$("Hours",!0);function Yfi(r,e,i){return r>11?i?"pm":"PM":i?"am":"AM"}var gvt={calendar:Ohi,longDateFormat:Khi,invalidDate:Ghi,ordinal:$hi,dayOfMonthOrdinalParse:Uhi,relativeTime:Zhi,months:hfi,monthsShort:ovt,week:yfi,weekdays:Tfi,weekdaysMin:Lfi,weekdaysShort:fvt,meridiemParse:qfi},ym={},Lie={},zue;function Qfi(r,e){var i,n=Math.min(r.length,e.length);for(i=0;i0;){if(a=T6e(o.slice(0,i).join("-")),a)return a;if(n&&n.length>=i&&Qfi(o,n)>=i-1)break;i--}e++}return zue}function emi(r){return!!(r&&r.match("^[^/\\\\]*$"))}function T6e(r){var e=null,i;if(ym[r]===void 0&&typeof module<"u"&&module&&module.exports&&emi(r))try{e=zue._abbr,i=require,i("./locale/"+r),xL(e)}catch{ym[r]=null}return ym[r]}function xL(r,e){var i;return r&&(Y5(e)?i=d8(r):i=KGe(r,e),i?zue=i:typeof console<"u"&&console.warn&&console.warn("Locale "+r+" not found. Did you forget to load it?")),zue._abbr}function KGe(r,e){if(e!==null){var i,n=gvt;if(e.abbr=r,ym[r]!=null)X6t("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=ym[r]._config;else if(e.parentLocale!=null)if(ym[e.parentLocale]!=null)n=ym[e.parentLocale]._config;else if(i=T6e(e.parentLocale),i!=null)n=i._config;else return Lie[e.parentLocale]||(Lie[e.parentLocale]=[]),Lie[e.parentLocale].push({name:r,config:e}),null;return ym[r]=new NGe(sje(n,e)),Lie[r]&&Lie[r].forEach(function(a){KGe(a.name,a.config)}),xL(r),ym[r]}else return delete ym[r],null}function tmi(r,e){if(e!=null){var i,n,a=gvt;ym[r]!=null&&ym[r].parentLocale!=null?ym[r].set(sje(ym[r]._config,e)):(n=T6e(r),n!=null&&(a=n._config),e=sje(a,e),n==null&&(e.abbr=r),i=new NGe(e),i.parentLocale=ym[r],ym[r]=i),xL(r)}else ym[r]!=null&&(ym[r].parentLocale!=null?(ym[r]=ym[r].parentLocale,r===xL()&&xL(r)):ym[r]!=null&&delete ym[r]);return ym[r]}function d8(r){var e;if(r&&r._locale&&r._locale._abbr&&(r=r._locale._abbr),!r)return zue;if(!Ay(r)){if(e=T6e(r),e)return e;r=[r]}return Xfi(r)}function imi(){return lje(ym)}function WGe(r){var e,i=r._a;return i&&Ec(r).overflow===-2&&(e=i[NS]<0||i[NS]>11?NS:i[eA]<1||i[eA]>OGe(i[j3],i[NS])?eA:i[Wg]<0||i[Wg]>24||i[Wg]===24&&(i[hy]!==0||i[PS]!==0||i[PI]!==0)?Wg:i[hy]<0||i[hy]>59?hy:i[PS]<0||i[PS]>59?PS:i[PI]<0||i[PI]>999?PI:-1,Ec(r)._overflowDayOfYear&&(eeA)&&(e=eA),Ec(r)._overflowWeeks&&e===-1&&(e=afi),Ec(r)._overflowWeekday&&e===-1&&(e=ofi),Ec(r).overflow=e),r}var nmi=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,umi=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rmi=/Z|[+-]\d\d(?::?\d\d)?/,F_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],EIe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ami=/^\/?Date\((-?\d+)/i,omi=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,smi={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Evt(r){var e,i,n=r._i,a=nmi.exec(n)||umi.exec(n),o,c,h,g,_=F_e.length,x=EIe.length;if(a){for(Ec(r).iso=!0,e=0,i=_;eVne(c)||r._dayOfYear===0)&&(Ec(r)._overflowDayOfYear=!0),i=Pue(c,0,r._dayOfYear),r._a[NS]=i.getUTCMonth(),r._a[eA]=i.getUTCDate()),e=0;e<3&&r._a[e]==null;++e)r._a[e]=n[e]=a[e];for(;e<7;e++)r._a[e]=n[e]=r._a[e]==null?e===2?1:0:r._a[e];r._a[Wg]===24&&r._a[hy]===0&&r._a[PS]===0&&r._a[PI]===0&&(r._nextDay=!0,r._a[Wg]=0),r._d=(r._useUTC?Pue:Cfi).apply(null,n),o=r._useUTC?r._d.getUTCDay():r._d.getDay(),r._tzm!=null&&r._d.setUTCMinutes(r._d.getUTCMinutes()-r._tzm),r._nextDay&&(r._a[Wg]=24),r._w&&typeof r._w.d<"u"&&r._w.d!==o&&(Ec(r).weekdayMismatch=!0)}}function gmi(r){var e,i,n,a,o,c,h,g,_;e=r._w,e.GG!=null||e.W!=null||e.E!=null?(o=1,c=4,i=pG(e.GG,r._a[j3],Mue(um(),1,4).year),n=pG(e.W,1),a=pG(e.E,1),(a<1||a>7)&&(g=!0)):(o=r._locale._week.dow,c=r._locale._week.doy,_=Mue(um(),o,c),i=pG(e.gg,r._a[j3],_.year),n=pG(e.w,_.week),e.d!=null?(a=e.d,(a<0||a>6)&&(g=!0)):e.e!=null?(a=e.e+o,(e.e<0||e.e>6)&&(g=!0)):a=o),n<1||n>qS(i,o,c)?Ec(r)._overflowWeeks=!0:g!=null?Ec(r)._overflowWeekday=!0:(h=hvt(i,n,a,o,c),r._a[j3]=h.year,r._dayOfYear=h.dayOfYear)}lo.ISO_8601=function(){};lo.RFC_2822=function(){};function JGe(r){if(r._f===lo.ISO_8601){Evt(r);return}if(r._f===lo.RFC_2822){_vt(r);return}r._a=[],Ec(r).empty=!0;var e=""+r._i,i,n,a,o,c,h=e.length,g=0,_,x;for(a=evt(r._f,r._locale).match(PGe)||[],x=a.length,i=0;i0&&Ec(r).unusedInput.push(c),e=e.slice(e.indexOf(n)+n.length),g+=n.length),XG[o]?(n?Ec(r).empty=!1:Ec(r).unusedTokens.push(o),rfi(o,n,r)):r._strict&&!n&&Ec(r).unusedTokens.push(o);Ec(r).charsLeftOver=h-g,e.length>0&&Ec(r).unusedInput.push(e),r._a[Wg]<=12&&Ec(r).bigHour===!0&&r._a[Wg]>0&&(Ec(r).bigHour=void 0),Ec(r).parsedDateParts=r._a.slice(0),Ec(r).meridiem=r._meridiem,r._a[Wg]=Emi(r._locale,r._a[Wg],r._meridiem),_=Ec(r).era,_!==null&&(r._a[j3]=r._locale.erasConvertYear(_,r._a[j3])),GGe(r),WGe(r)}function Emi(r,e,i){var n;return i==null?e:r.meridiemHour!=null?r.meridiemHour(e,i):(r.isPM!=null&&(n=r.isPM(i),n&&e<12&&(e+=12),!n&&e===12&&(e=0)),e)}function _mi(r){var e,i,n,a,o,c,h=!1,g=r._f.length;if(g===0){Ec(r).invalidFormat=!0,r._d=new Date(NaN);return}for(a=0;athis?this:r:y6e()});function vvt(r,e){var i,n;if(e.length===1&&Ay(e[0])&&(e=e[0]),!e.length)return um();for(i=e[0],n=1;nthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Omi(){if(!Y5(this._isDSTShifted))return this._isDSTShifted;var r={},e;return LGe(r,this),r=Dvt(r),r._a?(e=r._isUTC?VA(r._a):um(r._a),this._isDSTShifted=this.isValid()&&wmi(r._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function jmi(){return this.isValid()?!this._isUTC:!1}function Vmi(){return this.isValid()?this._isUTC:!1}function bvt(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Hmi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Kmi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function My(r,e){var i=r,n=null,a,o,c;return eDe(r)?i={ms:r._milliseconds,d:r._days,M:r._months}:t8(r)||!isNaN(+r)?(i={},e?i[e]=+r:i.milliseconds=+r):(n=Hmi.exec(r))?(a=n[1]==="-"?-1:1,i={y:0,d:xd(n[eA])*a,h:xd(n[Wg])*a,m:xd(n[hy])*a,s:xd(n[PS])*a,ms:xd(dje(n[PI]*1e3))*a}):(n=Kmi.exec(r))?(a=n[1]==="-"?-1:1,i={y:Yz(n[2],a),M:Yz(n[3],a),w:Yz(n[4],a),d:Yz(n[5],a),h:Yz(n[6],a),m:Yz(n[7],a),s:Yz(n[8],a)}):i==null?i={}:typeof i=="object"&&("from"in i||"to"in i)&&(c=Wmi(um(i.from),um(i.to)),i={},i.ms=c.milliseconds,i.M=c.months),o=new L6e(i),eDe(r)&&w1(r,"_locale")&&(o._locale=r._locale),eDe(r)&&w1(r,"_isValid")&&(o._isValid=r._isValid),o}My.fn=L6e.prototype;My.invalid=Bmi;function Yz(r,e){var i=r&&parseFloat(r.replace(",","."));return(isNaN(i)?0:i)*e}function lgt(r,e){var i={};return i.months=e.month()-r.month()+(e.year()-r.year())*12,r.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+r.clone().add(i.months,"M"),i}function Wmi(r,e){var i;return r.isValid()&&e.isValid()?(e=UGe(e,r),r.isBefore(e)?i=lgt(r,e):(i=lgt(e,r),i.milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}function yvt(r,e){return function(i,n){var a,o;return n!==null&&!isNaN(+n)&&(X6t(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),o=i,i=n,n=o),a=My(i,n),kvt(this,a,r),this}}function kvt(r,e,i,n){var a=e._milliseconds,o=dje(e._days),c=dje(e._months);r.isValid()&&(n=n??!0,c&&lvt(r,Nue(r,"Month")+c*i),o&&avt(r,"Date",Nue(r,"Date")+o*i),a&&r._d.setTime(r._d.valueOf()+a*i),n&&lo.updateOffset(r,o||c))}var Gmi=yvt(1,"add"),Jmi=yvt(-1,"subtract");function Fvt(r){return typeof r=="string"||r instanceof String}function $mi(r){return Sy(r)||fae(r)||Fvt(r)||t8(r)||qmi(r)||Umi(r)||r===null||r===void 0}function Umi(r){var e=JI(r)&&!wGe(r),i=!1,n=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,o,c=n.length;for(a=0;ai.valueOf():i.valueOf()9999?X3e(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):HA(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",X3e(i,"Z")):X3e(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function l4i(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var r="moment",e="",i,n,a,o;return this.isLocal()||(r=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),i="["+r+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",o=e+'[")]',this.format(i+n+a+o)}function c4i(r){r||(r=this.isUtc()?lo.defaultFormatUtc:lo.defaultFormat);var e=X3e(this,r);return this.localeData().postformat(e)}function d4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({to:this,from:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function h4i(r){return this.from(um(),r)}function f4i(r,e){return this.isValid()&&(Sy(r)&&r.isValid()||um(r).isValid())?My({from:this,to:r}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function m4i(r){return this.to(um(),r)}function Avt(r){var e;return r===void 0?this._locale._abbr:(e=d8(r),e!=null&&(this._locale=e),this)}var Svt=a2("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(r){return r===void 0?this.localeData():this.locale(r)});function Bvt(){return this._locale}var XDe=1e3,eJ=60*XDe,e5e=60*eJ,wvt=(365*400+97)*24*e5e;function tJ(r,e){return(r%e+e)%e}function Tvt(r,e,i){return r<100&&r>=0?new Date(r+400,e,i)-wvt:new Date(r,e,i).valueOf()}function Lvt(r,e,i){return r<100&&r>=0?Date.UTC(r+400,e,i)-wvt:Date.UTC(r,e,i)}function p4i(r){var e,i;if(r=o2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Lvt:Tvt,r){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=tJ(e+(this._isUTC?0:this.utcOffset()*eJ),e5e);break;case"minute":e=this._d.valueOf(),e-=tJ(e,eJ);break;case"second":e=this._d.valueOf(),e-=tJ(e,XDe);break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function g4i(r){var e,i;if(r=o2(r),r===void 0||r==="millisecond"||!this.isValid())return this;switch(i=this._isUTC?Lvt:Tvt,r){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=e5e-tJ(e+(this._isUTC?0:this.utcOffset()*eJ),e5e)-1;break;case"minute":e=this._d.valueOf(),e+=eJ-tJ(e,eJ)-1;break;case"second":e=this._d.valueOf(),e+=XDe-tJ(e,XDe)-1;break}return this._d.setTime(e),lo.updateOffset(this,!0),this}function E4i(){return this._d.valueOf()-(this._offset||0)*6e4}function _4i(){return Math.floor(this.valueOf()/1e3)}function D4i(){return new Date(this.valueOf())}function x4i(){var r=this;return[r.year(),r.month(),r.date(),r.hour(),r.minute(),r.second(),r.millisecond()]}function v4i(){var r=this;return{years:r.year(),months:r.month(),date:r.date(),hours:r.hours(),minutes:r.minutes(),seconds:r.seconds(),milliseconds:r.milliseconds()}}function C4i(){return this.isValid()?this.toISOString():null}function b4i(){return TGe(this)}function y4i(){return iL({},Ec(this))}function k4i(){return Ec(this).overflow}function F4i(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}h0("N",0,0,"eraAbbr");h0("NN",0,0,"eraAbbr");h0("NNN",0,0,"eraAbbr");h0("NNNN",0,0,"eraName");h0("NNNNN",0,0,"eraNarrow");h0("y",["y",1],"yo","eraYear");h0("y",["yy",2],0,"eraYear");h0("y",["yyy",3],0,"eraYear");h0("y",["yyyy",4],0,"eraYear");ps("N",qGe);ps("NN",qGe);ps("NNN",qGe);ps("NNNN",I4i);ps("NNNNN",R4i);Qh(["N","NN","NNN","NNNN","NNNNN"],function(r,e,i,n){var a=i._locale.erasParse(r,n,i._strict);a?Ec(i).era=a:Ec(i).invalidEra=r});ps("y",b$);ps("yy",b$);ps("yyy",b$);ps("yyyy",b$);ps("yo",O4i);Qh(["y","yy","yyy","yyyy"],j3);Qh(["yo"],function(r,e,i,n){var a;i._locale._eraYearOrdinalRegex&&(a=r.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?e[j3]=i._locale.eraYearOrdinalParse(r,a):e[j3]=parseInt(r,10)});function A4i(r,e){var i,n,a,o=this._eras||d8("en")._eras;for(i=0,n=o.length;i=0)return o[n]}function B4i(r,e){var i=r.since<=r.until?1:-1;return e===void 0?lo(r.since).year():lo(r.since).year()+(e-r.offset)*i}function w4i(){var r,e,i,n=this.localeData().eras();for(r=0,e=n.length;ro&&(e=o),J4i.call(this,r,e,i,n,a))}function J4i(r,e,i,n,a){var o=hvt(r,e,i,n,a),c=Pue(o.year,0,o.dayOfYear);return this.year(c.getUTCFullYear()),this.month(c.getUTCMonth()),this.date(c.getUTCDate()),this}h0("Q",0,"Qo","quarter");ps("Q",tvt);Qh("Q",function(r,e){e[NS]=(xd(r)-1)*3});function $4i(r){return r==null?Math.ceil((this.month()+1)/3):this.month((r-1)*3+this.month()%3)}h0("D",["DD",2],"Do","date");ps("D",rm,y$);ps("DD",rm,uv);ps("Do",function(r,e){return r?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient});Qh(["D","DD"],eA);Qh("Do",function(r,e){e[eA]=xd(r.match(rm)[0])});var Pvt=k$("Date",!0);h0("DDD",["DDDD",3],"DDDo","dayOfYear");ps("DDD",F6e);ps("DDDD",ivt);Qh(["DDD","DDDD"],function(r,e,i){i._dayOfYear=xd(r)});function U4i(r){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return r==null?e:this.add(r-e,"d")}h0("m",["mm",2],0,"minute");ps("m",rm,RGe);ps("mm",rm,uv);Qh(["m","mm"],hy);var q4i=k$("Minutes",!1);h0("s",["ss",2],0,"second");ps("s",rm,RGe);ps("ss",rm,uv);Qh(["s","ss"],PS);var Z4i=k$("Seconds",!1);h0("S",0,0,function(){return~~(this.millisecond()/100)});h0(0,["SS",2],0,function(){return~~(this.millisecond()/10)});h0(0,["SSS",3],0,"millisecond");h0(0,["SSSS",4],0,function(){return this.millisecond()*10});h0(0,["SSSSS",5],0,function(){return this.millisecond()*100});h0(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});h0(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});h0(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});h0(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});ps("S",F6e,tvt);ps("SS",F6e,uv);ps("SSS",F6e,ivt);var nL,Mvt;for(nL="SSSS";nL.length<=9;nL+="S")ps(nL,b$);function Y4i(r,e){e[PI]=xd(("0."+r)*1e3)}for(nL="S";nL.length<=9;nL+="S")Qh(nL,Y4i);Mvt=k$("Milliseconds",!1);h0("z",0,0,"zoneAbbr");h0("zz",0,0,"zoneName");function Q4i(){return this._isUTC?"UTC":""}function X4i(){return this._isUTC?"Coordinated Universal Time":""}var Na=mae.prototype;Na.add=Gmi;Na.calendar=Qmi;Na.clone=Xmi;Na.diff=a4i;Na.endOf=g4i;Na.format=c4i;Na.from=d4i;Na.fromNow=h4i;Na.to=f4i;Na.toNow=m4i;Na.get=lfi;Na.invalidAt=k4i;Na.isAfter=e4i;Na.isBefore=t4i;Na.isBetween=i4i;Na.isSame=n4i;Na.isSameOrAfter=u4i;Na.isSameOrBefore=r4i;Na.isValid=b4i;Na.lang=Svt;Na.locale=Avt;Na.localeData=Bvt;Na.max=bmi;Na.min=Cmi;Na.parsingFlags=y4i;Na.set=cfi;Na.startOf=p4i;Na.subtract=Jmi;Na.toArray=x4i;Na.toObject=v4i;Na.toDate=D4i;Na.toISOString=s4i;Na.inspect=l4i;typeof Symbol<"u"&&Symbol.for!=null&&(Na[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Na.toJSON=C4i;Na.toString=o4i;Na.unix=_4i;Na.valueOf=E4i;Na.creationData=F4i;Na.eraName=w4i;Na.eraNarrow=T4i;Na.eraAbbr=L4i;Na.eraYear=N4i;Na.year=rvt;Na.isLeapYear=sfi;Na.weekYear=j4i;Na.isoWeekYear=V4i;Na.quarter=Na.quarters=$4i;Na.month=cvt;Na.daysInMonth=Dfi;Na.week=Na.weeks=Afi;Na.isoWeek=Na.isoWeeks=Sfi;Na.weeksInYear=W4i;Na.weeksInWeekYear=G4i;Na.isoWeeksInYear=H4i;Na.isoWeeksInISOWeekYear=K4i;Na.date=Pvt;Na.day=Na.days=Vfi;Na.weekday=Hfi;Na.isoWeekday=Kfi;Na.dayOfYear=U4i;Na.hour=Na.hours=Zfi;Na.minute=Na.minutes=q4i;Na.second=Na.seconds=Z4i;Na.millisecond=Na.milliseconds=Mvt;Na.utcOffset=Lmi;Na.utc=Pmi;Na.local=Mmi;Na.parseZone=zmi;Na.hasAlignedHourOffset=Imi;Na.isDST=Rmi;Na.isLocal=jmi;Na.isUtcOffset=Vmi;Na.isUtc=bvt;Na.isUTC=bvt;Na.zoneAbbr=Q4i;Na.zoneName=X4i;Na.dates=a2("dates accessor is deprecated. Use date instead.",Pvt);Na.months=a2("months accessor is deprecated. Use month instead",cvt);Na.years=a2("years accessor is deprecated. Use year instead",rvt);Na.zone=a2("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Nmi);Na.isDSTShifted=a2("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Omi);function epi(r){return um(r*1e3)}function tpi(){return um.apply(null,arguments).parseZone()}function zvt(r){return r}var T1=NGe.prototype;T1.calendar=jhi;T1.longDateFormat=Whi;T1.invalidDate=Jhi;T1.ordinal=qhi;T1.preparse=zvt;T1.postformat=zvt;T1.relativeTime=Yhi;T1.pastFuture=Qhi;T1.set=Rhi;T1.eras=A4i;T1.erasParse=S4i;T1.erasConvertYear=B4i;T1.erasAbbrRegex=M4i;T1.erasNameRegex=P4i;T1.erasNarrowRegex=z4i;T1.months=pfi;T1.monthsShort=gfi;T1.monthsParse=_fi;T1.monthsRegex=vfi;T1.monthsShortRegex=xfi;T1.week=bfi;T1.firstDayOfYear=Ffi;T1.firstDayOfWeek=kfi;T1.weekdays=zfi;T1.weekdaysMin=Rfi;T1.weekdaysShort=Ifi;T1.weekdaysParse=jfi;T1.weekdaysRegex=Wfi;T1.weekdaysShortRegex=Gfi;T1.weekdaysMinRegex=Jfi;T1.isPM=Ufi;T1.meridiem=Yfi;function t5e(r,e,i,n){var a=d8(),o=VA().set(n,e);return a[i](o,r)}function Ivt(r,e,i){if(t8(r)&&(e=r,r=void 0),r=r||"",e!=null)return t5e(r,e,i,"month");var n,a=[];for(n=0;n<12;n++)a[n]=t5e(r,n,i,"month");return a}function YGe(r,e,i,n){typeof r=="boolean"?(t8(e)&&(i=e,e=void 0),e=e||""):(e=r,i=e,r=!1,t8(e)&&(i=e,e=void 0),e=e||"");var a=d8(),o=r?a._week.dow:0,c,h=[];if(i!=null)return t5e(e,(i+o)%7,n,"day");for(c=0;c<7;c++)h[c]=t5e(e,(c+o)%7,n,"day");return h}function ipi(r,e){return Ivt(r,e,"months")}function npi(r,e){return Ivt(r,e,"monthsShort")}function upi(r,e,i){return YGe(r,e,i,"weekdays")}function rpi(r,e,i){return YGe(r,e,i,"weekdaysShort")}function api(r,e,i){return YGe(r,e,i,"weekdaysMin")}xL("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(r){var e=r%10,i=xd(r%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return r+i}});lo.lang=a2("moment.lang is deprecated. Use moment.locale instead.",xL);lo.langData=a2("moment.langData is deprecated. Use moment.localeData instead.",d8);var aS=Math.abs;function opi(){var r=this._data;return this._milliseconds=aS(this._milliseconds),this._days=aS(this._days),this._months=aS(this._months),r.milliseconds=aS(r.milliseconds),r.seconds=aS(r.seconds),r.minutes=aS(r.minutes),r.hours=aS(r.hours),r.months=aS(r.months),r.years=aS(r.years),this}function Rvt(r,e,i,n){var a=My(e,i);return r._milliseconds+=n*a._milliseconds,r._days+=n*a._days,r._months+=n*a._months,r._bubble()}function spi(r,e){return Rvt(this,r,e,1)}function lpi(r,e){return Rvt(this,r,e,-1)}function cgt(r){return r<0?Math.floor(r):Math.ceil(r)}function cpi(){var r=this._milliseconds,e=this._days,i=this._months,n=this._data,a,o,c,h,g;return r>=0&&e>=0&&i>=0||r<=0&&e<=0&&i<=0||(r+=cgt(fje(i)+e)*864e5,e=0,i=0),n.milliseconds=r%1e3,a=WC(r/1e3),n.seconds=a%60,o=WC(a/60),n.minutes=o%60,c=WC(o/60),n.hours=c%24,e+=WC(c/24),g=WC(Ovt(e)),i+=g,e-=cgt(fje(g)),h=WC(i/12),i%=12,n.days=e,n.months=i,n.years=h,this}function Ovt(r){return r*4800/146097}function fje(r){return r*146097/4800}function dpi(r){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if(r=o2(r),r==="month"||r==="quarter"||r==="year")switch(e=this._days+n/864e5,i=this._months+Ovt(e),r){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(fje(this._months)),r){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return e*24+n/36e5;case"minute":return e*1440+n/6e4;case"second":return e*86400+n/1e3;case"millisecond":return Math.floor(e*864e5)+n;default:throw new Error("Unknown unit "+r)}}function h8(r){return function(){return this.as(r)}}var jvt=h8("ms"),hpi=h8("s"),fpi=h8("m"),mpi=h8("h"),ppi=h8("d"),gpi=h8("w"),Epi=h8("M"),_pi=h8("Q"),Dpi=h8("y"),xpi=jvt;function vpi(){return My(this)}function Cpi(r){return r=o2(r),this.isValid()?this[r+"s"]():NaN}function $R(r){return function(){return this.isValid()?this._data[r]:NaN}}var bpi=$R("milliseconds"),ypi=$R("seconds"),kpi=$R("minutes"),Fpi=$R("hours"),Api=$R("days"),Spi=$R("months"),Bpi=$R("years");function wpi(){return WC(this.days()/7)}var gS=Math.round,bG={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Tpi(r,e,i,n,a){return a.relativeTime(e||1,!!i,r,n)}function Lpi(r,e,i,n){var a=My(r).abs(),o=gS(a.as("s")),c=gS(a.as("m")),h=gS(a.as("h")),g=gS(a.as("d")),_=gS(a.as("M")),x=gS(a.as("w")),y=gS(a.as("y")),S=o<=i.ss&&["s",o]||o0,S[4]=n,Tpi.apply(null,S)}function Npi(r){return r===void 0?gS:typeof r=="function"?(gS=r,!0):!1}function Ppi(r,e){return bG[r]===void 0?!1:e===void 0?bG[r]:(bG[r]=e,r==="s"&&(bG.ss=e-1),!0)}function Mpi(r,e){if(!this.isValid())return this.localeData().invalidDate();var i=!1,n=bG,a,o;return typeof r=="object"&&(e=r,r=!1),typeof r=="boolean"&&(i=r),typeof e=="object"&&(n=Object.assign({},bG,e),e.s!=null&&e.ss==null&&(n.ss=e.s-1)),a=this.localeData(),o=Lpi(this,!i,n,a),i&&(o=a.pastFuture(+this,o)),a.postformat(o)}var _Ie=Math.abs;function GW(r){return(r>0)-(r<0)||+r}function P6e(){if(!this.isValid())return this.localeData().invalidDate();var r=_Ie(this._milliseconds)/1e3,e=_Ie(this._days),i=_Ie(this._months),n,a,o,c,h=this.asSeconds(),g,_,x,y;return h?(n=WC(r/60),a=WC(n/60),r%=60,n%=60,o=WC(i/12),i%=12,c=r?r.toFixed(3).replace(/\.?0+$/,""):"",g=h<0?"-":"",_=GW(this._months)!==GW(h)?"-":"",x=GW(this._days)!==GW(h)?"-":"",y=GW(this._milliseconds)!==GW(h)?"-":"",g+"P"+(o?_+o+"Y":"")+(i?_+i+"M":"")+(e?x+e+"D":"")+(a||n||r?"T":"")+(a?y+a+"H":"")+(n?y+n+"M":"")+(r?y+c+"S":"")):"P0D"}var qd=L6e.prototype;qd.isValid=Smi;qd.abs=opi;qd.add=spi;qd.subtract=lpi;qd.as=dpi;qd.asMilliseconds=jvt;qd.asSeconds=hpi;qd.asMinutes=fpi;qd.asHours=mpi;qd.asDays=ppi;qd.asWeeks=gpi;qd.asMonths=Epi;qd.asQuarters=_pi;qd.asYears=Dpi;qd.valueOf=xpi;qd._bubble=cpi;qd.clone=vpi;qd.get=Cpi;qd.milliseconds=bpi;qd.seconds=ypi;qd.minutes=kpi;qd.hours=Fpi;qd.days=Api;qd.weeks=wpi;qd.months=Spi;qd.years=Bpi;qd.humanize=Mpi;qd.toISOString=P6e;qd.toString=P6e;qd.toJSON=P6e;qd.locale=Avt;qd.localeData=Bvt;qd.toIsoString=a2("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",P6e);qd.lang=Svt;h0("X",0,0,"unix");h0("x",0,0,"valueOf");ps("x",S6e);ps("X",ifi);Qh("X",function(r,e,i){i._d=new Date(parseFloat(r)*1e3)});Qh("x",function(r,e,i){i._d=new Date(xd(r))});//! moment.js +lo.version="2.30.1";zhi(um);lo.fn=Na;lo.min=ymi;lo.max=kmi;lo.now=Fmi;lo.utc=VA;lo.unix=epi;lo.months=ipi;lo.isDate=fae;lo.locale=xL;lo.invalid=y6e;lo.duration=My;lo.isMoment=Sy;lo.weekdays=upi;lo.parseZone=tpi;lo.localeData=d8;lo.isDuration=eDe;lo.monthsShort=npi;lo.weekdaysMin=api;lo.defineLocale=KGe;lo.updateLocale=tmi;lo.locales=imi;lo.weekdaysShort=rpi;lo.normalizeUnits=o2;lo.relativeTimeRounding=Npi;lo.relativeTimeThreshold=Ppi;lo.calendarFormat=Ymi;lo.prototype=Na;lo.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Jd=b6e("main",()=>{const r=Io(document.location.host.indexOf("demo.logdy.dev")>=0||!!Lhi(document.location.search,"demo_mode")),e=Io("started"),i=Io("json"),n=Io(""),a=Io(""),o=Io({from:0,to:0}),c=Io(""),h=Io(!1),g=Io("not connected"),_=Io("paused"),x=Io({LastDeliveredIdx:0,MessageCount:0,MessagesToTail:0}),y=Io(!1),S=Io(""),L=Io(""),R=Io(!1),G=Io([]),ie=Io({}),ue=Io({}),re=Io(""),_e=Io(!1),ye=Io(""),Le=Io({}),lt=Io("label"),Ue=Io(),Ze=Io({}),rt=Io(new BGe("main",{leftColWidth:300,drawerColWidth:900,maxMessages:1e3,middlewares:[],entriesOrder:"desc"}));let kt=null;const Zt=(mi,Su=!0)=>{L.value=mi,Su&&Xpt.add({password:mi},"main")},jt=()=>{var mi;return L.value||(L.value=((mi=Xpt.getOne("main"))==null?void 0:mi.password)||""),L.value},ui=(mi,Su)=>{c.value=mi,h.value=!0,kt=Su},ti=async mi=>{mi&&kt&&await kt(),kt=null,c.value="",h.value=!1},qu=j6(()=>{if(o.value.from<=0&&o.value.to<=0)return"Set timeframe";let mi=lo(o.value.from*1e3),Su=lo(o.value.to*1e3),Cr=mi.format("MMM DD, HH:mmA"),va=mi.format("MMM DD, HH:mmA");return mi.format("DD-MM-YYYY")===Su.format("DD-MM-YYYY")&&(Cr=mi.format("MMM DD, HH:mmA"),va=Su.format("HH:mmA")),o.value.to===0&&(va="now"),`${Cr} - ${va}`}),gu=(mi,Su=0)=>{if(Vt(),Su!==0){for(let Cr=0;Cr<=Hl.value.length;Cr++)if(Hl.value[Cr].id===mi.id){mi=Hl.value[Cr+Su];break}}mi&&(mi.opened||(GT().changeFilter("read",1),GT().changeFilter("unread",-1)),mi.open=!0,mi.opened=!0,Ze.value.row=mi,ZT.update(mi.id,{id:mi.id,message:mi.msg,opened:!0,starred:mi.starred}))},Vt=()=>{Ze.value.row&&(Ze.value.row.open=!1,Ze.value.row.opened=!0,Ze.value.row=void 0)},Ir=mi=>{mi.starred=!mi.starred,GT().changeFilter("starred",mi.starred?1:-1),ZT.update(mi.id,{id:mi.id,message:mi.msg,opened:mi.opened,starred:mi.starred})},Pu=new BroadcastChannel("tab-activity");setInterval(()=>{Pu.postMessage("ping")},5*1e3),Pu.addEventListener("message",mi=>{mi.data==="ping"&&Pu.postMessage("pong"),y.value||ui("We have detected Logdy opened in another tab. Currently we do not support multiple tabs",()=>{y.value=!1}),y.value=!0});const Ha=j6(()=>_.value==="paused"?`Paused at entry #${NI(x.value.LastDeliveredIdx+1)} out of ${NI(x.value.MessageCount)} (${NI(x.value.MessageCount-x.value.LastDeliveredIdx-1)} not seen)`:_.value.includes("following")?`Following real-time out of ${NI(x==null?void 0:x.value.MessageCount)} entries`:"-"),Vu=mi=>{mi.correlation_id&&(ye.value=mi.correlation_id,Nr())},Nr=()=>{if(!ye.value||Hl.value.length===0)return;let mi={},Su=Hl.value[0].msg.timing&&Hl.value[0].msg.timing.start||0,Cr=1;Hl.value.forEach(va=>{var Li,li,ci;va.msg.timing&&(mi[va.id]={id:va.id,offset:(va.msg.timing.start-Su)/Cr,width:(((Li=va.msg.timing)==null?void 0:Li.duration)||1)/Cr,label:(li=va.msg.timing)==null?void 0:li.label,style:((ci=va.msg.timing)==null?void 0:ci.style)||{}})}),Le.value=mi},ga=()=>{GT().resetToggles(),na()},R0=()=>{ye.value=""},Vr=async mi=>{switch(mi){case"following":await $S.resume(),_.value="following";break;case"following_cursor":await $S.resumeFromCursor(),_.value="following_cursor";break;case"paused":await $S.pause(),_.value="paused";break}},qi=()=>{G.value=[],ue.value={},ie.value={},GT().reset(),ZT.removeAll()},Ka=()=>{ie.value={}},na=()=>{for(let mi in ue.value){let Su=ue.value[mi];for(let Cr in Su.items)ue.value[Su.name].items[Cr].selected=!1}},_0=()=>{re.value=""},Bs=j6(()=>G.value[0]&&G.value[0].msg.is_json==!0),Pa=j6(()=>{if(Bs.value)return a.value;try{return new RegExp(re.value,"i"),""}catch(mi){return mi.message}}),Hl=j6(()=>{if(Pa.value.length>0)return[];const mi={};for(let ht in ue.value)ue.value[ht].items.forEach(At=>{At.selected&&(mi[ht]||(mi[ht]=[]),mi[ht].push(At.label))});let Su=GT().enabledFilters,Cr=Su.filter(ht=>ht.startsWith("origin_file_")).length>0,va=Su.filter(ht=>ht.startsWith("origin_port_")).length>0,Li=Su.filter(ht=>ht.startsWith("origin_na")).length>0,li=Su.filter(ht=>ht.startsWith("origin_")).length>0,ci=G.value.filter(ht=>{let At=ht.msg.ts/1e3;return!(o.value.from>0&&At0&&At>o.value.to)}).filter(ht=>{var cn,On,vr,Ur,Di,co;if(ye.value&&ye.value!=ht.msg.correlation_id)return!1;let At=!0;if(Su.length>0){if(Su.includes("starred")&&!ht.starred||Su.includes("read")&&!ht.opened||Su.includes("unread")&&ht.opened)return!1;li&&(Cr&&((cn=ht.msg.origin)!=null&&cn.file)&&Su.includes("origin_file_"+((On=ht.msg.origin)==null?void 0:On.file))||va&&((vr=ht.msg.origin)!=null&&vr.port)&&Su.includes("origin_port_"+((Ur=ht.msg.origin)==null?void 0:Ur.port))||Li&&!((Di=ht.msg.origin)!=null&&Di.file)&&!((co=ht.msg.origin)!=null&&co.port)&&Su.includes("origin_na")?At=!0:At=!1)}if(!At)return At;if(Object.keys(mi).length===0)return!0;let pi={...mi},hi=Object.keys(pi).length;return ht.facets.forEach(nl=>{pi[nl.name]&&pi[nl.name].includes(nl.value)&&hi--}),hi===0}).filter(ht=>n.value.length>0||re.value.length<3?!0:(ht.msg.content||"").search(new RegExp(re.value,"i"))>=0);if(Bs&&n.value.length>0){let ht=Mhi(ci.map(At=>({data:At.msg.json_content,raw:At.msg.content,ts:At.msg.ts,origin:At.msg.origin})).filter(At=>At));return!ht.result||ht.result.length!=ci.length?ci:ht&&ht.error?(a.value=ht.error,ci):ci.filter((At,pi)=>ht.result[pi])}return rt.value.settings.entriesOrder==="desc"?ci.reverse():ci}),Ii=()=>{var mi;return(mi=Ue.value)==null?void 0:mi.updateVersion},Ge=mi=>{for(let Su in ue.value)if(ue.value[Su].name===mi)return ue.value[Su].items.find(Cr=>Cr.selected==!0)!=null;return!1},ku=mi=>{for(let Su in ue.value)ue.value[Su].name===mi&&ue.value[Su].items.forEach(Cr=>{Cr.selected=!1})};return _A(re,mi=>{if(!Bs.value)return;if(a.value="",!mi.length){n.value="";return}let Su=Phi(mi);if(Su){a.value=Su;return}n.value=mi}),{confirm:ui,confirmShow:h,confirmMsg:c,confirmProcess:ti,demoMode:r,demoStatus:e,demoContent:i,status:g,statusStr:Ha,getUpdate:Ii,receiveStatus:_,receiveCounters:x,changeReceiveStatus:Vr,initSettings:Ue,anotherTab:y,modalShow:S,setPassword:Zt,getPassword:jt,stickedToBottom:R,clearAllRows:qi,resetAllFiltersAndFacets:ga,filterCorrelated:Vu,correlationFilter:ye,resetCorrelationFilter:R0,tracesRows:Le,refeshFilterCorrelated:Nr,settingsDrawer:_e,drawer:Ze,openLogDrawer:gu,closeLogDrawer:Vt,layout:rt,rows:G,rowsIds:ie,clearRowIds:Ka,displayRows:Hl,facets:ue,isFacetActive:Ge,clearFacet:ku,searchbar:re,searchbarValid:Pa,searchClear:_0,toggleRowMark:Ir,facetSort:lt,datepicker:o,datepickerLabel:qu}}),dgt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Vvt)},hgt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.add("noselect"),document.addEventListener("mousemove",Hvt)},zpi=r=>{var i;(i=document.getElementById("app"))==null||i.classList.add("noselect");const e=new AbortController;document.addEventListener("mousemove",n=>{Ipi(r,n)},{signal:e.signal}),document.addEventListener("mouseup",()=>{e.abort(),xI.update("main",Jd().layout)},{once:!0})},fgt=()=>{var r;(r=document.getElementById("app"))==null||r.classList.remove("noselect"),document.removeEventListener("mousemove",Vvt),document.removeEventListener("mousemove",Hvt),xI.update("main",Jd().layout)},Ipi=(r,e)=>{let i=Jd().layout.getColumn(r);if(i.width||(i.width=150),i.width+=e.movementX,i.width<=40){i.width=40;return}Jd().layout.update(i)},Vvt=r=>{Jd().layout.settings.leftColWidth+=r.movementX},Hvt=r=>{Jd().layout.settings.drawerColWidth-=r.movementX};var i5e={d:(r,e)=>{for(var i in e)i5e.o(e,i)&&!i5e.o(r,i)&&Object.defineProperty(r,i,{enumerable:!0,get:e[i]})},o:(r,e)=>Object.prototype.hasOwnProperty.call(r,e)},Kvt={};function mje(r,e){(e==null||e>r.length)&&(e=r.length);for(var i=0,n=new Array(e);iHpi});const v0=(mgt={computed:()=>j6,createTextVNode:()=>A0,createVNode:()=>z0,defineComponent:()=>s4,reactive:()=>x$,ref:()=>Io,watch:()=>_A,watchEffect:()=>Ldi},DIe={},i5e.d(DIe,mgt),DIe),Rpi=(0,v0.defineComponent)({props:{data:{required:!0,type:String},onClick:Function},render:function(){var r=this.data,e=this.onClick;return(0,v0.createVNode)("span",{class:"vjs-tree-brackets",onClick:e},[r])}}),Opi=(0,v0.defineComponent)({emits:["change","update:modelValue"],props:{checked:{type:Boolean,default:!1},isMultiple:Boolean,onChange:Function},setup:function(r,e){var i=e.emit;return{uiType:(0,v0.computed)(function(){return r.isMultiple?"checkbox":"radio"}),model:(0,v0.computed)({get:function(){return r.checked},set:function(n){return i("update:modelValue",n)}})}},render:function(){var r=this.uiType,e=this.model,i=this.$emit;return(0,v0.createVNode)("label",{class:["vjs-check-controller",e?"is-checked":""],onClick:function(n){return n.stopPropagation()}},[(0,v0.createVNode)("span",{class:"vjs-check-controller-inner is-".concat(r)},null),(0,v0.createVNode)("input",{checked:e,class:"vjs-check-controller-original is-".concat(r),type:r,onChange:function(){return i("change",e)}},null)])}}),jpi=(0,v0.defineComponent)({props:{nodeType:{required:!0,type:String},onClick:Function},render:function(){var r=this.nodeType,e=this.onClick,i=r==="objectStart"||r==="arrayStart";return i||r==="objectCollapsed"||r==="arrayCollapsed"?(0,v0.createVNode)("span",{class:"vjs-carets vjs-carets-".concat(i?"open":"close"),onClick:e},[(0,v0.createVNode)("svg",{viewBox:"0 0 1024 1024",focusable:"false","data-icon":"caret-down",width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},[(0,v0.createVNode)("path",{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"},null)])]):null}});var mgt,DIe;function pje(r){return pje=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pje(r)}function Gvt(r){return Object.prototype.toString.call(r).slice(8,-1).toLowerCase()}function dI(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"root",i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,n=arguments.length>3?arguments[3]:void 0,a=n||{},o=a.key,c=a.index,h=a.type,g=h===void 0?"content":h,_=a.showComma,x=_!==void 0&&_,y=a.length,S=y===void 0?1:y,L=Gvt(r);if(L==="array"){var R=pgt(r.map(function(ue,re,_e){return dI(ue,"".concat(e,"[").concat(re,"]"),i+1,{index:re,showComma:re!==_e.length-1,length:S,type:g})}));return[dI("[",e,i,{showComma:!1,key:o,length:r.length,type:"arrayStart"})[0]].concat(R,dI("]",e,i,{showComma:x,length:r.length,type:"arrayEnd"})[0])}if(L==="object"){var G=Object.keys(r),ie=pgt(G.map(function(ue,re,_e){return dI(r[ue],/^[a-zA-Z_]\w*$/.test(ue)?"".concat(e,".").concat(ue):"".concat(e,'["').concat(ue,'"]'),i+1,{key:ue,showComma:re!==_e.length-1,length:S,type:g})}));return[dI("{",e,i,{showComma:!1,key:o,index:c,length:G.length,type:"objectStart"})[0]].concat(ie,dI("}",e,i,{showComma:x,length:G.length,type:"objectEnd"})[0])}return[{content:r,level:i,key:o,index:c,path:e,showComma:x,length:S,type:g}]}function pgt(r){if(typeof Array.prototype.flat=="function")return r.flat();for(var e=n5e(r),i=[];e.length;){var n=e.shift();Array.isArray(n)?e.unshift.apply(e,n5e(n)):i.push(n)}return i}function gje(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new WeakMap;if(r==null)return r;if(r instanceof Date)return new Date(r);if(r instanceof RegExp)return new RegExp(r);if(pje(r)!=="object")return r;if(e.get(r))return e.get(r);if(Array.isArray(r)){var i=r.map(function(o){return gje(o,e)});return e.set(r,i),i}var n={};for(var a in r)n[a]=gje(r[a],e);return e.set(r,n),n}function ggt(r,e){var i=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(r,a).enumerable})),i.push.apply(i,n)}return i}function Egt(r){for(var e=1;e=_e||lt.length>=ye,rt=(Ue=r.pathCollapsible)===null||Ue===void 0?void 0:Ue.call(r,lt);return lt.type!=="objectStart"&<.type!=="arrayStart"||!Ze&&!rt?Le:P6(P6({},Le),{},u5e({},lt.path,1))},{})},h=(0,v0.reactive)({translateY:0,visibleData:null,hiddenPaths:c(r.deep,r.collapsedNodeLength)}),g=(0,v0.computed)(function(){for(var _e=null,ye=[],Le=o.value.length,lt=0;lt_e.length?_e.length-Le:Ue;Ze<0&&(Ze=0);var rt=Ze+Le;h.translateY=Ze*r.itemHeight,h.visibleData=_e.filter(function(kt,Zt){return Zt>=Ze&&Zt(v$("data-v-eaec25f1"),r=r(),C$(),r),Kpi={class:"inner-drawer"},Wpi={class:"header"},Gpi={style:{"margin-right":"10px"}},Jpi=F$(()=>ri("kbd",null,"Esc",-1)),$pi=["disabled"],Upi=F$(()=>ri("hr",null,null,-1)),qpi=F$(()=>ri("h3",null,"Table columns",-1)),Zpi=["onClick"],Ypi={key:0},Qpi={key:1},Xpi=F$(()=>ri("h3",null,"Non-table fields",-1)),egi=["onClick"],tgi={key:0},igi={key:1},ngi=F$(()=>ri("hr",null,null,-1)),ugi={key:0},rgi={key:0},agi={key:1,class:"raw"},ogi={key:2,class:"raw"},sgi={key:3,class:"raw"},lgi={key:4,class:"raw"},cgi={key:5,class:"raw"},dgi=F$(()=>ri("div",{style:{"margin-bottom":"80px"}},"   ",-1)),hgi=s4({__name:"Drawer",props:{row:{},layout:{}},emits:["close"],setup(r){const e=Io(!1),i=n=>{navigator.clipboard.writeText(n)};return(n,a)=>{var c,h,g,_,x,y,S,L;const o=p6e("tooltip");return n.row?(mu(),ir("div",{key:0,class:"drawer",style:Ig({width:Zn(Jd)().layout.settings.drawerColWidth+"px"})},[ri("div",{class:"resize-handle",onMousedown:a[0]||(a[0]=(...R)=>Zn(hgt)&&Zn(hgt)(...R))},null,32),ri("div",Kpi,[ri("div",Wpi,[ri("div",Gpi,[z0(rhi),A0(" Next / "),z0(dhi),A0(" Prev ")]),ri("button",{onClick:a[1]||(a[1]=R=>n.$emit("close"))},[A0("Close "),Jpi])]),ri("div",null,[ri("button",{onClick:a[2]||(a[2]=R=>Zn(Jd)().filterCorrelated(n.row.msg)),disabled:!n.row.msg.correlation_id}," Display correlated lines ",8,$pi),Zn(Jd)().correlationFilter?(mu(),ir("button",{key:0,onClick:a[3]||(a[3]=R=>Zn(Jd)().resetCorrelationFilter()),style:{"margin-left":"5px"}}," Reset correlation filter ")):C0("",!0)]),Upi,qpi,(mu(!0),ir(Vc,null,U6((c=n.layout)==null?void 0:c.columns.filter(R=>!R.hidden),(R,G)=>(mu(),ir("div",null,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:ie=>i(n.row.cells[G].text)},[A0(Yl(R.name)+" ",1),z0(CT,{class:sh("clipboard")})],8,Zpi)),[[o,"Click to copy"]]),n.row.cells[G]&&!n.row.cells[G].isJson?(mu(),ir("pre",Ypi,Yl(n.row.cells[G].text),1)):(mu(),ir("pre",Qpi,[z0(Zn(cne),{theme:"dark",data:JSON.parse(n.row.cells[G].text)},null,8,["data"])]))]))),256)),Xpi,(mu(!0),ir(Vc,null,U6((h=n.layout)==null?void 0:h.columns.filter(R=>R.hidden),(R,G)=>(mu(),ir("div",null,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:ie=>i(n.row.fields[G].text)},[A0(Yl(R.name)+" ",1),z0(CT,{class:sh("clipboard")})],8,egi)),[[o,"Click to copy"]]),n.row.fields[G].isJson?(mu(),ir("pre",igi,[z0(Zn(cne),{theme:"dark",data:n.row.fields[G].text},null,8,["data"])])):(mu(),ir("pre",tgi,Yl(n.row.fields[G].text),1))]))),256)),ngi,ri("button",{onClick:a[4]||(a[4]=R=>e.value=!e.value)},"Show/hide raw message"),e.value?(mu(),ir("div",ugi,[n.row.msg.is_json?(mu(),ir("div",rgi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[5]||(a[5]=R=>i(JSON.stringify(n.row.msg.json_content)))},[A0(" Raw message (JSON) "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[z0(Zn(cne),{theme:"dark",data:n.row.msg.json_content},null,8,["data"])])])):C0("",!0),n.row.msg.is_json?C0("",!0):(mu(),ir("div",agi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[6]||(a[6]=R=>i(n.row.msg.content))},[A0(" Raw message "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[ri("code",null,Yl(n.row.msg.content),1)])])),n.row.msg.timing?(mu(),ir("div",ogi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[7]||(a[7]=R=>i(JSON.stringify(n.row.msg.timing)))},[A0(" Timing "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[z0(Zn(cne),{theme:"dark",data:n.row.msg.timing},null,8,["data"])])])):C0("",!0),(g=n.row.msg.origin)!=null&&g.port?(mu(),ir("div",sgi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[8]||(a[8]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.port)})},[A0(" Origin port "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[ri("code",null,Yl((_=n.row.msg.origin)==null?void 0:_.port),1)])])):C0("",!0),(x=n.row.msg.origin)!=null&&x.api_source?(mu(),ir("div",lgi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[9]||(a[9]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.api_source)})},[A0(" Origin API "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[ri("code",null,Yl((y=n.row.msg.origin)==null?void 0:y.api_source),1)])])):C0("",!0),(S=n.row.msg.origin)!=null&&S.file?(mu(),ir("div",cgi,[Nd((mu(),ir("h4",{style:{display:"inline"},onClick:a[10]||(a[10]=R=>{var G;return i((G=n.row.msg.origin)==null?void 0:G.file)})},[A0(" Origin filename "),z0(CT,{class:sh("clipboard")})])),[[o,"Click to copy"]]),ri("pre",null,[ri("code",null,Yl((L=n.row.msg.origin)==null?void 0:L.file),1)])])):C0("",!0)])):C0("",!0),dgi])],4)):C0("",!0)}}}),fgi=Am(hgi,[["__scopeId","data-v-eaec25f1"]]);let mgi=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function pgi(r,e){let i;return e.length===0?i=r:i=r.replace(/\{(\d+)\}/g,(n,a)=>{const o=a[0],c=e[o];let h=n;return typeof c=="string"?h=c:(typeof c=="number"||typeof c=="boolean"||c===void 0||c===null)&&(h=String(c)),h}),mgi&&(i="["+i.replace(/[aouei]/g,"$&$&")+"]"),i}function V(r,e,...i){return pgi(e,i)}var xIe;const yG="en";let r5e=!1,a5e=!1,iDe=!1,$vt=!1,QGe=!1,XGe=!1,Uvt=!1,A_e,nDe=yG,Dgt=yG,ggi,qb;const VD=typeof self=="object"?self:typeof global=="object"?global:{};let w_;typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"?w_=VD.vscode.process:typeof process<"u"&&(w_=process);const Egi=typeof((xIe=w_==null?void 0:w_.versions)===null||xIe===void 0?void 0:xIe.electron)=="string",_gi=Egi&&(w_==null?void 0:w_.type)==="renderer";if(typeof navigator=="object"&&!_gi)qb=navigator.userAgent,r5e=qb.indexOf("Windows")>=0,a5e=qb.indexOf("Macintosh")>=0,XGe=(qb.indexOf("Macintosh")>=0||qb.indexOf("iPad")>=0||qb.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,iDe=qb.indexOf("Linux")>=0,Uvt=(qb==null?void 0:qb.indexOf("Mobi"))>=0,QGe=!0,V({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),A_e=yG,nDe=A_e,Dgt=navigator.language;else if(typeof w_=="object"){r5e=w_.platform==="win32",a5e=w_.platform==="darwin",iDe=w_.platform==="linux",iDe&&w_.env.SNAP&&w_.env.SNAP_REVISION,w_.env.CI||w_.env.BUILD_ARTIFACTSTAGINGDIRECTORY,A_e=yG,nDe=yG;const r=w_.env.VSCODE_NLS_CONFIG;if(r)try{const e=JSON.parse(r),i=e.availableLanguages["*"];A_e=e.locale,Dgt=e.osLocale,nDe=i||yG,ggi=e._translationsConfigFile}catch{}$vt=!0}else console.error("Unable to resolve platform.");const Sp=r5e,d0=a5e,sg=iDe,Dy=$vt,oN=QGe,Dgi=QGe&&typeof VD.importScripts=="function",SA=XGe,xgi=Uvt,BA=qb,vgi=nDe,Cgi=typeof VD.postMessage=="function"&&!VD.importScripts,qvt=(()=>{if(Cgi){const r=[];VD.addEventListener("message",i=>{if(i.data&&i.data.vscodeScheduleAsyncWork)for(let n=0,a=r.length;n{const n=++e;r.push({id:n,callback:i}),VD.postMessage({vscodeScheduleAsyncWork:n},"*")}}return r=>setTimeout(r)})(),rx=a5e||XGe?2:r5e?1:3;let xgt=!0,vgt=!1;function Zvt(){if(!vgt){vgt=!0;const r=new Uint8Array(2);r[0]=1,r[1]=2,xgt=new Uint16Array(r.buffer)[0]===513}return xgt}const Yvt=!!(BA&&BA.indexOf("Chrome")>=0),bgi=!!(BA&&BA.indexOf("Firefox")>=0),ygi=!!(!Yvt&&BA&&BA.indexOf("Safari")>=0),kgi=!!(BA&&BA.indexOf("Edg/")>=0);BA&&BA.indexOf("Android")>=0;var K0;(function(r){function e(ue){return ue&&typeof ue=="object"&&typeof ue[Symbol.iterator]=="function"}r.is=e;const i=Object.freeze([]);function n(){return i}r.empty=n;function*a(ue){yield ue}r.single=a;function o(ue){return e(ue)?ue:a(ue)}r.wrap=o;function c(ue){return ue||i}r.from=c;function h(ue){return!ue||ue[Symbol.iterator]().next().done===!0}r.isEmpty=h;function g(ue){return ue[Symbol.iterator]().next().value}r.first=g;function _(ue,re){for(const _e of ue)if(re(_e))return!0;return!1}r.some=_;function x(ue,re){for(const _e of ue)if(re(_e))return _e}r.find=x;function*y(ue,re){for(const _e of ue)re(_e)&&(yield _e)}r.filter=y;function*S(ue,re){let _e=0;for(const ye of ue)yield re(ye,_e++)}r.map=S;function*L(...ue){for(const re of ue)for(const _e of re)yield _e}r.concat=L;function R(ue,re,_e){let ye=_e;for(const Le of ue)ye=re(ye,Le);return ye}r.reduce=R;function*G(ue,re,_e=ue.length){for(re<0&&(re+=ue.length),_e<0?_e+=ue.length:_e>ue.length&&(_e=ue.length);re<_e;re++)yield ue[re]}r.slice=G;function ie(ue,re=Number.POSITIVE_INFINITY){const _e=[];if(re===0)return[_e,ue];const ye=ue[Symbol.iterator]();for(let Le=0;Le{a||(a=!0,this._remove(n))}}shift(){if(this._first!==Qf.Undefined){const e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Qf.Undefined){const e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Qf.Undefined&&e.next!==Qf.Undefined){const i=e.prev;i.next=e.next,e.next.prev=i}else e.prev===Qf.Undefined&&e.next===Qf.Undefined?(this._first=Qf.Undefined,this._last=Qf.Undefined):e.next===Qf.Undefined?(this._last=this._last.prev,this._last.next=Qf.Undefined):e.prev===Qf.Undefined&&(this._first=this._first.next,this._first.prev=Qf.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Qf.Undefined;)yield e.element,e=e.next}}const Qvt="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Fgi(r=""){let e="(-?\\d*\\.\\d\\w*)|([^";for(const i of Qvt)r.indexOf(i)>=0||(e+="\\"+i);return e+="\\s]+)",new RegExp(e,"g")}const eJe=Fgi();function Xvt(r){let e=eJe;if(r&&r instanceof RegExp)if(r.global)e=r;else{let i="g";r.ignoreCase&&(i+="i"),r.multiline&&(i+="m"),r.unicode&&(i+="u"),e=new RegExp(r.source,i)}return e.lastIndex=0,e}const eCt=new ug;eCt.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function Iue(r,e,i,n,a){if(a||(a=K0.first(eCt)),i.length>a.maxLen){let _=r-a.maxLen/2;return _<0?_=0:n+=_,i=i.substring(_,r+a.maxLen/2),Iue(r,e,i,n,a)}const o=Date.now(),c=r-1-n;let h=-1,g=null;for(let _=1;!(Date.now()-o>=a.timeBudget);_++){const x=c-a.windowSize*_;e.lastIndex=Math.max(0,x);const y=Agi(e,i,c,h);if(!y&&g||(g=y,x<=0))break;h=x}if(g){const _={word:g[0],startColumn:n+1+g.index,endColumn:n+1+g.index+g[0].length};return e.lastIndex=0,_}return null}function Agi(r,e,i,n){let a;for(;a=r.exec(e);){const o=a.index||0;if(o<=i&&r.lastIndex>=i)return a;if(n>0&&o>n)return null}return null}function M6(r,e=0){return r[r.length-(1+e)]}function Sgi(r){if(r.length===0)throw new Error("Invalid tail call");return[r.slice(0,r.length-1),r[r.length-1]]}function rg(r,e,i=(n,a)=>n===a){if(r===e)return!0;if(!r||!e||r.length!==e.length)return!1;for(let n=0,a=r.length;ni(r[n],e))}function wgi(r,e){let i=0,n=r-1;for(;i<=n;){const a=(i+n)/2|0,o=e(a);if(o<0)i=a+1;else if(o>0)n=a-1;else return a}return-(i+1)}function tCt(r,e){let i=0,n=r.length;if(n===0)return 0;for(;i=e.length)throw new TypeError("invalid index");const n=e[Math.floor(e.length*Math.random())],a=[],o=[],c=[];for(const h of e){const g=i(h,n);g<0?a.push(h):g>0?o.push(h):c.push(h)}return r!!e)}function bgt(r){let e=0;for(let i=0;i0}function VL(r,e=i=>i){const i=new Set;return r.filter(n=>{const a=e(n);return i.has(a)?!1:(i.add(a),!0)})}function nCt(r,e){const i=Tgi(r,e);if(i!==-1)return r[i]}function Tgi(r,e){for(let i=r.length-1;i>=0;i--){const n=r[i];if(e(n))return i}return-1}function uCt(r,e){return r.length>0?r[0]:e}function S_(r,e){let i=typeof e=="number"?r:0;typeof e=="number"?i=r:(i=0,e=r);const n=[];if(i<=e)for(let a=i;ae;a--)n.push(a);return n}function M6e(r,e,i){const n=r.slice(0,e),a=r.slice(e);return n.concat(i,a)}function vIe(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.unshift(e))}function S_e(r,e){const i=r.indexOf(e);i>-1&&(r.splice(i,1),r.push(e))}function ygt(r,e){for(const i of e)r.push(i)}function tJe(r){return Array.isArray(r)?r:[r]}function Lgi(r,e,i){const n=rCt(r,e),a=r.length,o=i.length;r.length=a+o;for(let c=a-1;c>=n;c--)r[c+o]=r[c];for(let c=0;c0}r.isGreaterThan=i;function n(a){return a===0}r.isNeitherLessOrGreaterThan=n,r.greaterThan=1,r.lessThan=-1,r.neitherLessOrGreaterThan=0})(Dje||(Dje={}));function Hne(r,e){return(i,n)=>e(r(i),r(n))}const Ngi=(r,e)=>r-e;function aCt(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n0&&(i=a)}return i}function Pgi(r,e){if(r.length===0)return;let i=r[0];for(let n=1;n=0&&(i=a)}return i}function Mgi(r,e){return aCt(r,(i,n)=>-e(i,n))}class LJ{constructor(e){this.items=e,this.firstIdx=0,this.lastIdx=this.items.length-1}get length(){return this.lastIdx-this.firstIdx+1}takeWhile(e){let i=this.firstIdx;for(;i=0&&e(this.items[i]);)i--;const n=i===this.lastIdx?null:this.items.slice(i+1,this.lastIdx+1);return this.lastIdx=i,n}peek(){if(this.length!==0)return this.items[this.firstIdx]}dequeue(){const e=this.items[this.firstIdx];return this.firstIdx++,e}takeCount(e){const i=this.items.slice(this.firstIdx,this.firstIdx+e);return this.firstIdx+=e,i}}class DA{constructor(e){this.iterate=e}toArray(){const e=[];return this.iterate(i=>(e.push(i),!0)),e}filter(e){return new DA(i=>this.iterate(n=>e(n)?i(n):!0))}map(e){return new DA(i=>this.iterate(n=>i(e(n))))}findLast(e){let i;return this.iterate(n=>(e(n)&&(i=n),!0)),i}findLastMaxBy(e){let i,n=!0;return this.iterate(a=>((n||Dje.isGreaterThan(e(a,i)))&&(n=!1,i=a),!0)),i}}DA.empty=new DA(r=>{});function z_(r){return typeof r=="string"}function O3(r){return typeof r=="object"&&r!==null&&!Array.isArray(r)&&!(r instanceof RegExp)&&!(r instanceof Date)}function zgi(r){const e=Object.getPrototypeOf(Uint8Array);return typeof r=="object"&&r instanceof e}function HL(r){return typeof r=="number"&&!isNaN(r)}function Fgt(r){return!!r&&typeof r[Symbol.iterator]=="function"}function oCt(r){return r===!0||r===!1}function RD(r){return typeof r>"u"}function Igi(r){return!ix(r)}function ix(r){return RD(r)||r===null}function Sc(r,e){if(!r)throw new Error(e?`Unexpected type, expected '${e}'`:"Unexpected type")}function kG(r){if(ix(r))throw new Error("Assertion Failed: argument is undefined or null");return r}function o5e(r){return typeof r=="function"}function Rgi(r,e){const i=Math.min(r.length,e.length);for(let n=0;n{e[i]=n&&typeof n=="object"?vS(n):n}),e}function jgi(r){if(!r||typeof r!="object")return r;const e=[r];for(;e.length>0;){const i=e.shift();Object.freeze(i);for(const n in i)if(sCt.call(i,n)){const a=i[n];typeof a=="object"&&!Object.isFrozen(a)&&!zgi(a)&&e.push(a)}}return r}const sCt=Object.prototype.hasOwnProperty;function lCt(r,e){return xje(r,e,new Set)}function xje(r,e,i){if(ix(r))return r;const n=e(r);if(typeof n<"u")return n;if(Array.isArray(r)){const a=[];for(const o of r)a.push(xje(o,e,i));return a}if(O3(r)){if(i.has(r))throw new Error("Cannot clone recursive data-structure");i.add(r);const a={};for(const o in r)sCt.call(r,o)&&(a[o]=xje(r[o],e,i));return i.delete(r),a}return r}function Eae(r,e,i=!0){return O3(r)?(O3(e)&&Object.keys(e).forEach(n=>{n in r?i&&(O3(r[n])&&O3(e[n])?Eae(r[n],e[n],i):r[n]=e[n]):r[n]=e[n]}),r):e}function cx(r,e){if(r===e)return!0;if(r==null||e===null||e===void 0||typeof r!=typeof e||typeof r!="object"||Array.isArray(r)!==Array.isArray(e))return!1;let i,n;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(i=0;ifunction(){const o=Array.prototype.slice.call(arguments,0);return e(a,o)},n={};for(const a of r)n[a]=i(a);return n}const jg={tabSize:4,indentSize:4,insertSpaces:!0,detectIndentation:!0,trimAutoWhitespace:!0,largeFileOptimizations:!0,bracketPairColorizationOptions:{enabled:!0,independentColorPoolPerBracketType:!1}},NT=8;class cCt{constructor(e){this._values=e}hasChanged(e){return this._values[e]}}class dCt{constructor(){this.stableMinimapLayoutInput=null,this.stableFitMaxMinimapScale=0,this.stableFitRemainingWidth=0}}class Ph{constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return z6e(e,i)}compute(e,i,n){return n}}class Kne{constructor(e,i){this.newValue=e,this.didChange=i}}function z6e(r,e){if(typeof r!="object"||typeof e!="object"||!r||!e)return new Kne(e,r!==e);if(Array.isArray(r)||Array.isArray(e)){const n=Array.isArray(r)&&Array.isArray(e)&&rg(r,e);return new Kne(e,!n)}let i=!1;for(const n in e)if(e.hasOwnProperty(n)){const a=z6e(r[n],e[n]);a.didChange&&(r[n]=a.newValue,i=!0)}return new Kne(r,i)}class _ae{constructor(e){this.schema=void 0,this.id=e,this.name="_never_",this.defaultValue=void 0}applyUpdate(e,i){return z6e(e,i)}validate(e){return this.defaultValue}}class S${constructor(e,i,n,a){this.id=e,this.name=i,this.defaultValue=n,this.schema=a}applyUpdate(e,i){return z6e(e,i)}validate(e){return typeof e>"u"?this.defaultValue:e}compute(e,i,n){return n}}function xo(r,e){return typeof r>"u"?e:r==="false"?!1:!!r}class El extends S${constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="boolean",a.default=n),super(e,i,n,a)}validate(e){return xo(e,this.defaultValue)}}function vje(r,e,i,n){if(typeof r>"u")return e;let a=parseInt(r,10);return isNaN(a)?e:(a=Math.max(i,a),a=Math.min(n,a),a|0)}class gd extends S${static clampedInt(e,i,n,a){return vje(e,i,n,a)}constructor(e,i,n,a,o,c=void 0){typeof c<"u"&&(c.type="integer",c.default=n,c.minimum=a,c.maximum=o),super(e,i,n,c),this.minimum=a,this.maximum=o}validate(e){return gd.clampedInt(e,this.defaultValue,this.minimum,this.maximum)}}class lA extends S${static clamp(e,i,n){return en?n:e}static float(e,i){if(typeof e=="number")return e;if(typeof e>"u")return i;const n=parseFloat(e);return isNaN(n)?i:n}constructor(e,i,n,a,o){typeof o<"u"&&(o.type="number",o.default=n),super(e,i,n,o),this.validationFn=a}validate(e){return this.validationFn(lA.float(e,this.defaultValue))}}class MD extends S${static string(e,i){return typeof e!="string"?i:e}constructor(e,i,n,a=void 0){typeof a<"u"&&(a.type="string",a.default=n),super(e,i,n,a)}validate(e){return MD.string(e,this.defaultValue)}}function im(r,e,i){return typeof r!="string"||i.indexOf(r)===-1?e:r}class ff extends S${constructor(e,i,n,a,o=void 0){typeof o<"u"&&(o.type="string",o.enum=a,o.default=n),super(e,i,n,o),this._allowedValues=a}validate(e){return im(e,this.defaultValue,this._allowedValues)}}class B_e extends Ph{constructor(e,i,n,a,o,c,h=void 0){typeof h<"u"&&(h.type="string",h.enum=o,h.default=a),super(e,i,n,h),this._allowedValues=o,this._convert=c}validate(e){return typeof e!="string"?this.defaultValue:this._allowedValues.indexOf(e)===-1?this.defaultValue:this._convert(e)}}function Kgi(r){switch(r){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}class Wgi extends Ph{constructor(){super(2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[V("accessibilitySupport.auto","Use platform APIs to detect when a Screen Reader is attached"),V("accessibilitySupport.on","Optimize for usage with a Screen Reader"),V("accessibilitySupport.off","Assume a screen reader is not attached")],default:"auto",tags:["accessibility"],description:V("accessibilitySupport","Controls if the UI should run in a mode where it is optimized for screen readers.")})}validate(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue}compute(e,i,n){return n===0?e.accessibilitySupport:n}}class Ggi extends Ph{constructor(){const e={insertSpace:!0,ignoreEmptyLines:!0};super(21,"comments",e,{"editor.comments.insertSpace":{type:"boolean",default:e.insertSpace,description:V("comments.insertSpace","Controls whether a space character is inserted when commenting.")},"editor.comments.ignoreEmptyLines":{type:"boolean",default:e.ignoreEmptyLines,description:V("comments.ignoreEmptyLines","Controls if empty lines should be ignored with toggle, add or remove actions for line comments.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertSpace:xo(i.insertSpace,this.defaultValue.insertSpace),ignoreEmptyLines:xo(i.ignoreEmptyLines,this.defaultValue.ignoreEmptyLines)}}}function Jgi(r){switch(r){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}var Cp;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(Cp||(Cp={}));function $gi(r){switch(r){case"line":return Cp.Line;case"block":return Cp.Block;case"underline":return Cp.Underline;case"line-thin":return Cp.LineThin;case"block-outline":return Cp.BlockOutline;case"underline-thin":return Cp.UnderlineThin}}class Ugi extends _ae{constructor(){super(136)}compute(e,i,n){const a=["monaco-editor"];return i.get(37)&&a.push(i.get(37)),e.extraEditorClassName&&a.push(e.extraEditorClassName),i.get(71)==="default"?a.push("mouse-default"):i.get(71)==="copy"&&a.push("mouse-copy"),i.get(106)&&a.push("showUnused"),i.get(134)&&a.push("showDeprecated"),a.join(" ")}}class qgi extends El{constructor(){super(35,"emptySelectionClipboard",!0,{description:V("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})}compute(e,i,n){return n&&e.emptySelectionClipboard}}class Zgi extends Ph{constructor(){const e={cursorMoveOnType:!0,seedSearchStringFromSelection:"always",autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0,loop:!0};super(39,"find",e,{"editor.find.cursorMoveOnType":{type:"boolean",default:e.cursorMoveOnType,description:V("find.cursorMoveOnType","Controls whether the cursor should jump to find matches while typing.")},"editor.find.seedSearchStringFromSelection":{type:"string",enum:["never","always","selection"],default:e.seedSearchStringFromSelection,enumDescriptions:[V("editor.find.seedSearchStringFromSelection.never","Never seed search string from the editor selection."),V("editor.find.seedSearchStringFromSelection.always","Always seed search string from the editor selection, including word at cursor position."),V("editor.find.seedSearchStringFromSelection.selection","Only seed search string from the editor selection.")],description:V("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:e.autoFindInSelection,enumDescriptions:[V("editor.find.autoFindInSelection.never","Never turn on Find in Selection automatically (default)."),V("editor.find.autoFindInSelection.always","Always turn on Find in Selection automatically."),V("editor.find.autoFindInSelection.multiline","Turn on Find in Selection automatically when multiple lines of content are selected.")],description:V("find.autoFindInSelection","Controls the condition for turning on Find in Selection automatically.")},"editor.find.globalFindClipboard":{type:"boolean",default:e.globalFindClipboard,description:V("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:d0},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:e.addExtraSpaceOnTop,description:V("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")},"editor.find.loop":{type:"boolean",default:e.loop,description:V("find.loop","Controls whether the search automatically restarts from the beginning (or the end) when no further matches can be found.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{cursorMoveOnType:xo(i.cursorMoveOnType,this.defaultValue.cursorMoveOnType),seedSearchStringFromSelection:typeof e.seedSearchStringFromSelection=="boolean"?e.seedSearchStringFromSelection?"always":"never":im(i.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection,["never","always","selection"]),autoFindInSelection:typeof e.autoFindInSelection=="boolean"?e.autoFindInSelection?"always":"never":im(i.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:xo(i.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:xo(i.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop),loop:xo(i.loop,this.defaultValue.loop)}}}class nx extends Ph{constructor(){super(49,"fontLigatures",nx.OFF,{anyOf:[{type:"boolean",description:V("fontLigatures","Enables/Disables font ligatures ('calt' and 'liga' font features). Change this to a string for fine-grained control of the 'font-feature-settings' CSS property.")},{type:"string",description:V("fontFeatureSettings","Explicit 'font-feature-settings' CSS property. A boolean can be passed instead if one only needs to turn on/off ligatures.")}],description:V("fontLigaturesGeneral","Configures font ligatures or font features. Can be either a boolean to enable/disable ligatures or a string for the value of the CSS 'font-feature-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?nx.OFF:e==="true"?nx.ON:e:e?nx.ON:nx.OFF}}nx.OFF='"liga" off, "calt" off';nx.ON='"liga" on, "calt" on';class oy extends Ph{constructor(){super(52,"fontVariations",oy.OFF,{anyOf:[{type:"boolean",description:V("fontVariations","Enables/Disables the translation from font-weight to font-variation-settings. Change this to a string for fine-grained control of the 'font-variation-settings' CSS property.")},{type:"string",description:V("fontVariationSettings","Explicit 'font-variation-settings' CSS property. A boolean can be passed instead if one only needs to translate font-weight to font-variation-settings.")}],description:V("fontVariationsGeneral","Configures font variations. Can be either a boolean to enable/disable the translation from font-weight to font-variation-settings or a string for the value of the CSS 'font-variation-settings' property."),default:!1})}validate(e){return typeof e>"u"?this.defaultValue:typeof e=="string"?e==="false"?oy.OFF:e==="true"?oy.TRANSLATE:e:e?oy.TRANSLATE:oy.OFF}compute(e,i,n){return e.fontInfo.fontVariationSettings}}oy.OFF="normal";oy.TRANSLATE="translate";class Ygi extends _ae{constructor(){super(48)}compute(e,i,n){return e.fontInfo}}class Qgi extends S${constructor(){super(50,"fontSize",HD.fontSize,{type:"number",minimum:6,maximum:100,default:HD.fontSize,description:V("fontSize","Controls the font size in pixels.")})}validate(e){const i=lA.float(e,this.defaultValue);return i===0?HD.fontSize:lA.clamp(i,6,100)}compute(e,i,n){return e.fontInfo.fontSize}}class tA extends Ph{constructor(){super(51,"fontWeight",HD.fontWeight,{anyOf:[{type:"number",minimum:tA.MINIMUM_VALUE,maximum:tA.MAXIMUM_VALUE,errorMessage:V("fontWeightErrorMessage",'Only "normal" and "bold" keywords or numbers between 1 and 1000 are allowed.')},{type:"string",pattern:"^(normal|bold|1000|[1-9][0-9]{0,2})$"},{enum:tA.SUGGESTION_VALUES}],default:HD.fontWeight,description:V("fontWeight",'Controls the font weight. Accepts "normal" and "bold" keywords or numbers between 1 and 1000.')})}validate(e){return e==="normal"||e==="bold"?e:String(gd.clampedInt(e,HD.fontWeight,tA.MINIMUM_VALUE,tA.MAXIMUM_VALUE))}}tA.SUGGESTION_VALUES=["normal","bold","100","200","300","400","500","600","700","800","900"];tA.MINIMUM_VALUE=1;tA.MAXIMUM_VALUE=1e3;class Xgi extends Ph{constructor(){const e={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:e.multiple,enumDescriptions:[V("editor.gotoLocation.multiple.peek","Show Peek view of the results (default)"),V("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a Peek view"),V("editor.gotoLocation.multiple.goto","Go to the primary result and enable Peek-less navigation to others")]},n=["","editor.action.referenceSearch.trigger","editor.action.goToReferences","editor.action.peekImplementation","editor.action.goToImplementation","editor.action.peekTypeDefinition","editor.action.goToTypeDefinition","editor.action.peekDeclaration","editor.action.revealDeclaration","editor.action.peekDefinition","editor.action.revealDefinitionAside","editor.action.revealDefinition"];super(56,"gotoLocation",e,{"editor.gotoLocation.multiple":{deprecationMessage:V("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":Object.assign({description:V("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":Object.assign({description:V("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":Object.assign({description:V("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":Object.assign({description:V("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:e.alternativeDefinitionCommand,enum:n,description:V("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:e.alternativeTypeDefinitionCommand,enum:n,description:V("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:e.alternativeDeclarationCommand,enum:n,description:V("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:e.alternativeImplementationCommand,enum:n,description:V("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:e.alternativeReferenceCommand,enum:n,description:V("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})}validate(e){var i,n,a,o,c;if(!e||typeof e!="object")return this.defaultValue;const h=e;return{multiple:im(h.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:(i=h.multipleDefinitions)!==null&&i!==void 0?i:im(h.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:(n=h.multipleTypeDefinitions)!==null&&n!==void 0?n:im(h.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:(a=h.multipleDeclarations)!==null&&a!==void 0?a:im(h.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:(o=h.multipleImplementations)!==null&&o!==void 0?o:im(h.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:(c=h.multipleReferences)!==null&&c!==void 0?c:im(h.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:MD.string(h.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:MD.string(h.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:MD.string(h.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:MD.string(h.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:MD.string(h.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}}}class eEi extends Ph{constructor(){const e={enabled:!0,delay:300,sticky:!0,above:!0};super(58,"hover",e,{"editor.hover.enabled":{type:"boolean",default:e.enabled,description:V("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:e.delay,minimum:0,maximum:1e4,description:V("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:e.sticky,description:V("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")},"editor.hover.above":{type:"boolean",default:e.above,description:V("hover.above","Prefer showing hovers above the line, if there's space.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),delay:gd.clampedInt(i.delay,this.defaultValue.delay,0,1e4),sticky:xo(i.sticky,this.defaultValue.sticky),above:xo(i.above,this.defaultValue.above)}}}class iJ extends _ae{constructor(){super(139)}compute(e,i,n){return iJ.computeLayout(i,{memory:e.memory,outerWidth:e.outerWidth,outerHeight:e.outerHeight,isDominatedByLongLines:e.isDominatedByLongLines,lineHeight:e.fontInfo.lineHeight,viewLineCount:e.viewLineCount,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})}static computeContainedMinimapLineCount(e){const i=e.height/e.lineHeight,n=Math.floor(e.paddingTop/e.lineHeight);let a=Math.floor(e.paddingBottom/e.lineHeight);e.scrollBeyondLastLine&&(a=Math.max(a,i-1));const o=(n+e.viewLineCount+a)/(e.pixelRatio*e.height),c=Math.floor(e.viewLineCount/o);return{typicalViewportLineCount:i,extraLinesBeforeFirstLine:n,extraLinesBeyondLastLine:a,desiredRatio:o,minimapLineCount:c}}static _computeMinimapLayout(e,i){const n=e.outerWidth,a=e.outerHeight,o=e.pixelRatio;if(!e.minimap.enabled)return{renderMinimap:0,minimapLeft:0,minimapWidth:0,minimapHeightIsEditorHeight:!1,minimapIsSampling:!1,minimapScale:1,minimapLineHeight:1,minimapCanvasInnerWidth:0,minimapCanvasInnerHeight:Math.floor(o*a),minimapCanvasOuterWidth:0,minimapCanvasOuterHeight:a};const c=i.stableMinimapLayoutInput,h=c&&e.outerHeight===c.outerHeight&&e.lineHeight===c.lineHeight&&e.typicalHalfwidthCharacterWidth===c.typicalHalfwidthCharacterWidth&&e.pixelRatio===c.pixelRatio&&e.scrollBeyondLastLine===c.scrollBeyondLastLine&&e.paddingTop===c.paddingTop&&e.paddingBottom===c.paddingBottom&&e.minimap.enabled===c.minimap.enabled&&e.minimap.side===c.minimap.side&&e.minimap.size===c.minimap.size&&e.minimap.showSlider===c.minimap.showSlider&&e.minimap.renderCharacters===c.minimap.renderCharacters&&e.minimap.maxColumn===c.minimap.maxColumn&&e.minimap.scale===c.minimap.scale&&e.verticalScrollbarWidth===c.verticalScrollbarWidth&&e.isViewportWrapping===c.isViewportWrapping,g=e.lineHeight,_=e.typicalHalfwidthCharacterWidth,x=e.scrollBeyondLastLine,y=e.minimap.renderCharacters;let S=o>=2?Math.round(e.minimap.scale*2):e.minimap.scale;const L=e.minimap.maxColumn,R=e.minimap.size,G=e.minimap.side,ie=e.verticalScrollbarWidth,ue=e.viewLineCount,re=e.remainingWidth,_e=e.isViewportWrapping,ye=y?2:3;let Le=Math.floor(o*a);const lt=Le/o;let Ue=!1,Ze=!1,rt=ye*S,kt=S/o,Zt=1;if(R==="fill"||R==="fit"){const{typicalViewportLineCount:Ir,extraLinesBeforeFirstLine:Pu,extraLinesBeyondLastLine:Ha,desiredRatio:Vu,minimapLineCount:Nr}=iJ.computeContainedMinimapLineCount({viewLineCount:ue,scrollBeyondLastLine:x,paddingTop:e.paddingTop,paddingBottom:e.paddingBottom,height:a,lineHeight:g,pixelRatio:o});if(ue/Nr>1)Ue=!0,Ze=!0,S=1,rt=1,kt=S/o;else{let R0=!1,Vr=S+1;if(R==="fit"){const qi=Math.ceil((Pu+ue+Ha)*rt);_e&&h&&re<=i.stableFitRemainingWidth?(R0=!0,Vr=i.stableFitMaxMinimapScale):R0=qi>Le}if(R==="fill"||R0){Ue=!0;const qi=S;rt=Math.min(g*o,Math.max(1,Math.floor(1/Vu))),_e&&h&&re<=i.stableFitRemainingWidth&&(Vr=i.stableFitMaxMinimapScale),S=Math.min(Vr,Math.max(1,Math.floor(rt/ye))),S>qi&&(Zt=Math.min(2,S/qi)),kt=S/o/Zt,Le=Math.ceil(Math.max(Ir,Pu+ue+Ha)*rt),_e?(i.stableMinimapLayoutInput=e,i.stableFitRemainingWidth=re,i.stableFitMaxMinimapScale=S):(i.stableMinimapLayoutInput=null,i.stableFitRemainingWidth=0)}}}const jt=Math.floor(L*kt),ui=Math.min(jt,Math.max(0,Math.floor((re-ie-2)*kt/(_+kt)))+NT);let ti=Math.floor(o*ui);const qu=ti/o;ti=Math.floor(ti*Zt);const gu=y?1:2,Vt=G==="left"?0:n-ui-ie;return{renderMinimap:gu,minimapLeft:Vt,minimapWidth:ui,minimapHeightIsEditorHeight:Ue,minimapIsSampling:Ze,minimapScale:S,minimapLineHeight:rt,minimapCanvasInnerWidth:ti,minimapCanvasInnerHeight:Le,minimapCanvasOuterWidth:qu,minimapCanvasOuterHeight:lt}}static computeLayout(e,i){const n=i.outerWidth|0,a=i.outerHeight|0,o=i.lineHeight|0,c=i.lineNumbersDigitCount|0,h=i.typicalHalfwidthCharacterWidth,g=i.maxDigitWidth,_=i.pixelRatio,x=i.viewLineCount,y=e.get(131),S=y==="inherit"?e.get(130):y,L=S==="inherit"?e.get(126):S,R=e.get(129),G=i.isDominatedByLongLines,ie=e.get(55),ue=e.get(65).renderType!==0,re=e.get(66),_e=e.get(100),ye=e.get(81),Le=e.get(70),lt=e.get(98),Ue=lt.verticalScrollbarSize,Ze=lt.verticalHasArrows,rt=lt.arrowSize,kt=lt.horizontalScrollbarSize,Zt=e.get(41),jt=e.get(105)!=="never";let ui=e.get(63);Zt&&jt&&(ui+=16);let ti=0;if(ue){const na=Math.max(c,re);ti=Math.round(na*g)}let qu=0;ie&&(qu=o);let gu=0,Vt=gu+qu,Ir=Vt+ti,Pu=Ir+ui;const Ha=n-qu-ti-ui;let Vu=!1,Nr=!1,ga=-1;S==="inherit"&&G?(Vu=!0,Nr=!0):L==="on"||L==="bounded"?Nr=!0:L==="wordWrapColumn"&&(ga=R);const R0=iJ._computeMinimapLayout({outerWidth:n,outerHeight:a,lineHeight:o,typicalHalfwidthCharacterWidth:h,pixelRatio:_,scrollBeyondLastLine:_e,paddingTop:ye.top,paddingBottom:ye.bottom,minimap:Le,verticalScrollbarWidth:Ue,viewLineCount:x,remainingWidth:Ha,isViewportWrapping:Nr},i.memory||new dCt);R0.renderMinimap!==0&&R0.minimapLeft===0&&(gu+=R0.minimapWidth,Vt+=R0.minimapWidth,Ir+=R0.minimapWidth,Pu+=R0.minimapWidth);const Vr=Ha-R0.minimapWidth,qi=Math.max(1,Math.floor((Vr-Ue-2)/h)),Ka=Ze?rt:0;return Nr&&(ga=Math.max(1,qi),L==="bounded"&&(ga=Math.min(ga,R))),{width:n,height:a,glyphMarginLeft:gu,glyphMarginWidth:qu,lineNumbersLeft:Vt,lineNumbersWidth:ti,decorationsLeft:Ir,decorationsWidth:ui,contentLeft:Pu,contentWidth:Vr,minimap:R0,viewportColumn:qi,isWordWrapMinified:Vu,isViewportWrapping:Nr,wrappingColumn:ga,verticalScrollbarWidth:Ue,horizontalScrollbarHeight:kt,overviewRuler:{top:Ka,width:Ue,height:a-2*Ka,right:0}}}}class tEi extends Ph{constructor(){super(133,"wrappingStrategy","simple",{"editor.wrappingStrategy":{enumDescriptions:[V("wrappingStrategy.simple","Assumes that all characters are of the same width. This is a fast algorithm that works correctly for monospace fonts and certain scripts (like Latin characters) where glyphs are of equal width."),V("wrappingStrategy.advanced","Delegates wrapping points computation to the browser. This is a slow algorithm, that might cause freezes for large files, but it works correctly in all cases.")],type:"string",enum:["simple","advanced"],default:"simple",description:V("wrappingStrategy","Controls the algorithm that computes wrapping points. Note that when in accessibility mode, advanced will be used for the best experience.")}})}validate(e){return im(e,"simple",["simple","advanced"])}compute(e,i,n){return i.get(2)===2?"advanced":n}}class iEi extends Ph{constructor(){const e={enabled:!0};super(62,"lightbulb",e,{"editor.lightbulb.enabled":{type:"boolean",default:e.enabled,description:V("codeActions","Enables the Code Action lightbulb in the editor.")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:xo(e.enabled,this.defaultValue.enabled)}}}class nEi extends Ph{constructor(){const e={enabled:!1,maxLineCount:5,defaultModel:"outlineModel"};super(110,"stickyScroll",e,{"editor.stickyScroll.enabled":{type:"boolean",default:e.enabled,description:V("editor.stickyScroll.enabled","Shows the nested current scopes during the scroll at the top of the editor.")},"editor.stickyScroll.maxLineCount":{type:"number",default:e.maxLineCount,minimum:1,maximum:10,description:V("editor.stickyScroll.maxLineCount","Defines the maximum number of sticky lines to show.")},"editor.stickyScroll.defaultModel":{type:"string",enum:["outlineModel","foldingProviderModel","indentationModel"],default:e.defaultModel,description:V("editor.stickyScroll.defaultModel","Defines the model to use for determining which lines to stick. If the outline model does not exist, it will fall back on the folding provider model which falls back on the indentation model. This order is respected in all three cases.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),maxLineCount:gd.clampedInt(i.maxLineCount,this.defaultValue.maxLineCount,1,10),defaultModel:im(i.defaultModel,this.defaultValue.defaultModel,["outlineModel","foldingProviderModel","indentationModel"])}}}class uEi extends Ph{constructor(){const e={enabled:"on",fontSize:0,fontFamily:"",padding:!1};super(135,"inlayHints",e,{"editor.inlayHints.enabled":{type:"string",default:e.enabled,description:V("inlayHints.enable","Enables the inlay hints in the editor."),enum:["on","onUnlessPressed","offUnlessPressed","off"],markdownEnumDescriptions:[V("editor.inlayHints.on","Inlay hints are enabled"),V("editor.inlayHints.onUnlessPressed","Inlay hints are showing by default and hide when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.offUnlessPressed","Inlay hints are hidden by default and show when holding {0}",d0?"Ctrl+Option":"Ctrl+Alt"),V("editor.inlayHints.off","Inlay hints are disabled")]},"editor.inlayHints.fontSize":{type:"number",default:e.fontSize,markdownDescription:V("inlayHints.fontSize","Controls font size of inlay hints in the editor. As default the {0} is used when the configured value is less than {1} or greater than the editor font size.","`#editor.fontSize#`","`5`")},"editor.inlayHints.fontFamily":{type:"string",default:e.fontFamily,markdownDescription:V("inlayHints.fontFamily","Controls font family of inlay hints in the editor. When set to empty, the {0} is used.","`#editor.fontFamily#`")},"editor.inlayHints.padding":{type:"boolean",default:e.padding,description:V("inlayHints.padding","Enables the padding around the inlay hints in the editor.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return typeof i.enabled=="boolean"&&(i.enabled=i.enabled?"on":"off"),{enabled:im(i.enabled,this.defaultValue.enabled,["on","off","offUnlessPressed","onUnlessPressed"]),fontSize:gd.clampedInt(i.fontSize,this.defaultValue.fontSize,0,100),fontFamily:MD.string(i.fontFamily,this.defaultValue.fontFamily),padding:xo(i.padding,this.defaultValue.padding)}}}class rEi extends Ph{constructor(){super(63,"lineDecorationsWidth",10)}validate(e){return typeof e=="string"&&/^\d+(\.\d+)?ch$/.test(e)?-parseFloat(e.substring(0,e.length-2)):gd.clampedInt(e,this.defaultValue,0,1e3)}compute(e,i,n){return n<0?gd.clampedInt(-n*e.fontInfo.typicalHalfwidthCharacterWidth,this.defaultValue,0,1e3):n}}class aEi extends lA{constructor(){super(64,"lineHeight",HD.lineHeight,e=>lA.clamp(e,0,150),{markdownDescription:V("lineHeight",`Controls the line height. - Use 0 to automatically compute the line height from the font size. - Values between 0 and 8 will be used as a multiplier with the font size. - - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,i,n){return e.fontInfo.lineHeight}}class uEi extends Nh{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),autohide:Do(i.autohide,this.defaultValue.autohide),size:im(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:im(i.side,this.defaultValue.side,["right","left"]),showSlider:im(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:Do(i.renderCharacters,this.defaultValue.renderCharacters),scale:gd.clampedInt(i.scale,1,1,3),maxColumn:gd.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function rEi(r){return r==="ctrlCmd"?d0?"metaKey":"ctrlKey":"altKey"}class aEi extends Nh{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{top:gd.clampedInt(i.top,0,0,1e3),bottom:gd.clampedInt(i.bottom,0,0,1e3)}}}class oEi extends Nh{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),cycle:Do(i.cycle,this.defaultValue.cycle)}}}class sEi extends gae{constructor(){super(137)}compute(e,i,n){return e.pixelRatio}}class lEi extends Nh{constructor(){const e={other:"on",comments:"off",strings:"off"},i=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:i,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:i,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:i,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const _=e?"on":"off";return{comments:_,strings:_,other:_}}if(!e||typeof e!="object")return this.defaultValue;const{other:i,comments:n,strings:a}=e,o=["on","inline","off"];let c,h,g;return typeof i=="boolean"?c=i?"on":"off":c=im(i,this.defaultValue.other,o),typeof n=="boolean"?h=n?"on":"off":h=im(n,this.defaultValue.comments,o),typeof a=="boolean"?g=a?"on":"off":g=im(a,this.defaultValue.strings,o),{other:c,comments:h,strings:g}}}class cEi extends Nh{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let i=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(i=4,n=e):e==="interval"?i=3:e==="relative"?i=2:e==="on"?i=1:i=0),{renderType:i,renderFn:n}}}function u5e(r){const e=r.get(93);return e==="editable"?r.get(87):e!=="on"}class dEi extends Nh{constructor(){const e=[],i={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="number")i.push({column:gd.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const a=n;i.push({column:gd.clampedInt(a.column,0,0,1e4),color:a.color})}return i.sort((n,a)=>n.column-a.column),i}return this.defaultValue}}function Cgt(r,e){if(typeof r!="string")return e;switch(r){case"hidden":return 2;case"visible":return 3;default:return 1}}let hEi=class extends Nh{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e,n=gd.clampedInt(i.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),a=gd.clampedInt(i.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:gd.clampedInt(i.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Cgt(i.vertical,this.defaultValue.vertical),horizontal:Cgt(i.horizontal,this.defaultValue.horizontal),useShadows:Do(i.useShadows,this.defaultValue.useShadows),verticalHasArrows:Do(i.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:Do(i.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:Do(i.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:Do(i.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:gd.clampedInt(i.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:a,verticalSliderSize:gd.clampedInt(i.verticalSliderSize,a,0,1e3),scrollByPage:Do(i.scrollByPage,this.defaultValue.scrollByPage)}}};const Q5="inUntrustedWorkspace",P3={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class fEi extends Nh{constructor(){const e={nonBasicASCII:Q5,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Q5,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[P3.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[P3.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[P3.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[P3.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[P3.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[P3.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[P3.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,i){let n=!1;i.allowedCharacters&&e&&(cx(e.allowedCharacters,i.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:i.allowedCharacters}),n=!0)),i.allowedLocales&&e&&(cx(e.allowedLocales,i.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:i.allowedLocales}),n=!0));const a=super.applyUpdate(e,i);return n?new jne(a.newValue,!0):a}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{nonBasicASCII:iJ(i.nonBasicASCII,Q5,[!0,!1,Q5]),invisibleCharacters:Do(i.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:Do(i.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:iJ(i.includeComments,Q5,[!0,!1,Q5]),includeStrings:iJ(i.includeStrings,Q5,[!0,!1,Q5]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,i){if(typeof e!="object"||!e)return i;const n={};for(const[a,o]of Object.entries(e))o===!0&&(n[a]=!0);return n}}class mEi extends Nh{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),mode:im(i.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:im(i.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:Do(i.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class pEi extends Nh{constructor(){const e={enabled:Og.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:Og.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:Do(i.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:Do(i.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class gEi extends Nh{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{bracketPairs:iJ(i.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:iJ(i.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:Do(i.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:Do(i.indentation,this.defaultValue.indentation),highlightActiveIndentation:iJ(i.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function iJ(r,e,i){const n=i.indexOf(r);return n===-1?e:i[n]}class EEi extends Nh{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertMode:im(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:Do(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:Do(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:Do(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:Do(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:im(i.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:Do(i.showIcons,this.defaultValue.showIcons),showStatusBar:Do(i.showStatusBar,this.defaultValue.showStatusBar),preview:Do(i.preview,this.defaultValue.preview),previewMode:im(i.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:Do(i.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:Do(i.showMethods,this.defaultValue.showMethods),showFunctions:Do(i.showFunctions,this.defaultValue.showFunctions),showConstructors:Do(i.showConstructors,this.defaultValue.showConstructors),showDeprecated:Do(i.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:Do(i.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:Do(i.showFields,this.defaultValue.showFields),showVariables:Do(i.showVariables,this.defaultValue.showVariables),showClasses:Do(i.showClasses,this.defaultValue.showClasses),showStructs:Do(i.showStructs,this.defaultValue.showStructs),showInterfaces:Do(i.showInterfaces,this.defaultValue.showInterfaces),showModules:Do(i.showModules,this.defaultValue.showModules),showProperties:Do(i.showProperties,this.defaultValue.showProperties),showEvents:Do(i.showEvents,this.defaultValue.showEvents),showOperators:Do(i.showOperators,this.defaultValue.showOperators),showUnits:Do(i.showUnits,this.defaultValue.showUnits),showValues:Do(i.showValues,this.defaultValue.showValues),showConstants:Do(i.showConstants,this.defaultValue.showConstants),showEnums:Do(i.showEnums,this.defaultValue.showEnums),showEnumMembers:Do(i.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:Do(i.showKeywords,this.defaultValue.showKeywords),showWords:Do(i.showWords,this.defaultValue.showWords),showColors:Do(i.showColors,this.defaultValue.showColors),showFiles:Do(i.showFiles,this.defaultValue.showFiles),showReferences:Do(i.showReferences,this.defaultValue.showReferences),showFolders:Do(i.showFolders,this.defaultValue.showFolders),showTypeParameters:Do(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:Do(i.showSnippets,this.defaultValue.showSnippets),showUsers:Do(i.showUsers,this.defaultValue.showUsers),showIssues:Do(i.showIssues,this.defaultValue.showIssues)}}}class _Ei extends Nh{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:Do(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class DEi extends Nh{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,i,n){return i.get(2)===2?0:n}}class xEi extends gae{constructor(){super(140)}compute(e,i,n){const a=i.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:a.isWordWrapMinified,isViewportWrapping:a.isViewportWrapping,wrappingColumn:a.wrappingColumn}}}class vEi extends Nh{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:Do(e.enabled,this.defaultValue.enabled)}}}const CEi="Consolas, 'Courier New', monospace",bEi="Menlo, Monaco, 'Courier New', monospace",yEi="'Droid Sans Mono', 'monospace', monospace",HD={fontFamily:d0?bEi:sg?yEi:CEi,fontWeight:"normal",fontSize:d0?12:14,lineHeight:0,letterSpacing:0},kG=[];function Nu(r){return kG[r.id]=r,r}const zy={acceptSuggestionOnCommitCharacter:Nu(new pl(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Nu(new ff(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Nu(new Vgi),accessibilityPageSize:Nu(new gd(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Nu(new MD(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:Nu(new pl(6,"screenReaderAnnounceInlineSuggestion",!1,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:Nu(new ff(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Nu(new ff(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Nu(new ff(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Nu(new ff(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Nu(new F_e(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],jgi,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Nu(new pl(11,"automaticLayout",!1)),autoSurround:Nu(new ff(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Nu(new pEi),bracketPairGuides:Nu(new gEi),stickyTabStops:Nu(new pl(111,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Nu(new pl(15,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Nu(new MD(16,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Nu(new gd(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Nu(new pl(18,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:Nu(new gd(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Nu(new pl(20,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Nu(new Hgi),contextmenu:Nu(new pl(22,"contextmenu",!0)),copyWithSyntaxHighlighting:Nu(new pl(23,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Nu(new F_e(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Kgi,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Nu(new ff(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Nu(new F_e(26,"cursorStyle",xp.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],Wgi,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Nu(new gd(27,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Nu(new ff(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:V("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Nu(new gd(29,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Nu(new pl(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:Nu(new pl(31,"disableMonospaceOptimizations",!1)),domReadOnly:Nu(new pl(32,"domReadOnly",!1)),dragAndDrop:Nu(new pl(33,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Nu(new Jgi),dropIntoEditor:Nu(new vEi),stickyScroll:Nu(new eEi),experimentalWhitespaceRendering:Nu(new ff(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Nu(new MD(37,"extraEditorClassName","")),fastScrollSensitivity:Nu(new lA(38,"fastScrollSensitivity",5,r=>r<=0?5:r,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Nu(new $gi),fixedOverflowWidgets:Nu(new pl(40,"fixedOverflowWidgets",!1)),folding:Nu(new pl(41,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Nu(new ff(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Nu(new pl(43,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Nu(new pl(44,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Nu(new gd(45,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Nu(new pl(46,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Nu(new MD(47,"fontFamily",HD.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:Nu(new Ugi),fontLigatures2:Nu(new nx),fontSize:Nu(new qgi),fontWeight:Nu(new tA),fontVariations:Nu(new ay),formatOnPaste:Nu(new pl(53,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Nu(new pl(54,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Nu(new pl(55,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Nu(new Zgi),hideCursorInOverviewRuler:Nu(new pl(57,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Nu(new Ygi),inDiffEditor:Nu(new pl(59,"inDiffEditor",!1)),letterSpacing:Nu(new lA(61,"letterSpacing",HD.letterSpacing,r=>lA.clamp(r,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Nu(new Xgi),lineDecorationsWidth:Nu(new iEi),lineHeight:Nu(new nEi),lineNumbers:Nu(new cEi),lineNumbersMinChars:Nu(new gd(66,"lineNumbersMinChars",5,1,300)),linkedEditing:Nu(new pl(67,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Nu(new pl(68,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Nu(new ff(69,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:Nu(new uEi),mouseStyle:Nu(new ff(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Nu(new lA(72,"mouseWheelScrollSensitivity",1,r=>r===0?1:r,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Nu(new pl(73,"mouseWheelZoom",!1,{markdownDescription:V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Nu(new pl(74,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Nu(new F_e(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],rEi,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Nu(new ff(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Nu(new gd(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Nu(new pl(78,"occurrencesHighlight",!0,{description:V("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Nu(new pl(79,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Nu(new gd(80,"overviewRulerLanes",3,0,3)),padding:Nu(new aEi),parameterHints:Nu(new oEi),peekWidgetDefaultFocus:Nu(new ff(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Nu(new pl(84,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Nu(new lEi),quickSuggestionsDelay:Nu(new gd(86,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Nu(new pl(87,"readOnly",!1)),renameOnType:Nu(new pl(88,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Nu(new pl(89,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Nu(new ff(90,"renderFinalNewline",sg?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Nu(new ff(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Nu(new pl(92,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Nu(new ff(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Nu(new ff(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Nu(new gd(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Nu(new pl(96,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Nu(new dEi),scrollbar:Nu(new hEi),scrollBeyondLastColumn:Nu(new gd(99,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Nu(new pl(100,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Nu(new pl(101,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Nu(new pl(102,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:sg})),selectionHighlight:Nu(new pl(103,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Nu(new pl(104,"selectOnLineNumbers",!0)),showFoldingControls:Nu(new ff(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Nu(new pl(106,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:Nu(new pl(134,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Nu(new tEi),snippetSuggestions:Nu(new ff(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Nu(new _Ei),smoothScrolling:Nu(new pl(109,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Nu(new gd(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Nu(new EEi),inlineSuggest:Nu(new mEi),suggestFontSize:Nu(new gd(114,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Nu(new gd(115,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Nu(new pl(116,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Nu(new ff(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Nu(new ff(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:Nu(new gd(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:Nu(new fEi),unusualLineTerminators:Nu(new ff(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Nu(new pl(122,"useShadowDOM",!0)),useTabStops:Nu(new pl(123,"useTabStops",!0,{description:V("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:Nu(new ff(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:Nu(new MD(125,"wordSeparators",Uvt,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Nu(new ff(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Nu(new MD(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Nu(new MD(128,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Nu(new gd(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Nu(new ff(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Nu(new ff(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Nu(new Ggi),pixelRatio:Nu(new sEi),tabFocusMode:Nu(new pl(138,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Nu(new tJ),wrappingInfo:Nu(new xEi),wrappingIndent:Nu(new DEi),wrappingStrategy:Nu(new Qgi)};class kEi{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?LJ.isErrorNoTelemetry(e)?new LJ(e.message+` + - Values greater than or equal to 8 will be used as effective values.`)})}compute(e,i,n){return e.fontInfo.lineHeight}}class oEi extends Ph{constructor(){const e={enabled:!0,size:"proportional",side:"right",showSlider:"mouseover",autohide:!1,renderCharacters:!0,maxColumn:120,scale:1};super(70,"minimap",e,{"editor.minimap.enabled":{type:"boolean",default:e.enabled,description:V("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.autohide":{type:"boolean",default:e.autohide,description:V("minimap.autohide","Controls whether the minimap is hidden automatically.")},"editor.minimap.size":{type:"string",enum:["proportional","fill","fit"],enumDescriptions:[V("minimap.size.proportional","The minimap has the same size as the editor contents (and might scroll)."),V("minimap.size.fill","The minimap will stretch or shrink as necessary to fill the height of the editor (no scrolling)."),V("minimap.size.fit","The minimap will shrink as necessary to never be larger than the editor (no scrolling).")],default:e.size,description:V("minimap.size","Controls the size of the minimap.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:e.side,description:V("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:e.showSlider,description:V("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:e.scale,minimum:1,maximum:3,enum:[1,2,3],description:V("minimap.scale","Scale of content drawn in the minimap: 1, 2 or 3.")},"editor.minimap.renderCharacters":{type:"boolean",default:e.renderCharacters,description:V("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:e.maxColumn,description:V("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),autohide:xo(i.autohide,this.defaultValue.autohide),size:im(i.size,this.defaultValue.size,["proportional","fill","fit"]),side:im(i.side,this.defaultValue.side,["right","left"]),showSlider:im(i.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:xo(i.renderCharacters,this.defaultValue.renderCharacters),scale:gd.clampedInt(i.scale,1,1,3),maxColumn:gd.clampedInt(i.maxColumn,this.defaultValue.maxColumn,1,1e4)}}}function sEi(r){return r==="ctrlCmd"?d0?"metaKey":"ctrlKey":"altKey"}class lEi extends Ph{constructor(){super(81,"padding",{top:0,bottom:0},{"editor.padding.top":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.top","Controls the amount of space between the top edge of the editor and the first line.")},"editor.padding.bottom":{type:"number",default:0,minimum:0,maximum:1e3,description:V("padding.bottom","Controls the amount of space between the bottom edge of the editor and the last line.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{top:gd.clampedInt(i.top,0,0,1e3),bottom:gd.clampedInt(i.bottom,0,0,1e3)}}}class cEi extends Ph{constructor(){const e={enabled:!0,cycle:!0};super(82,"parameterHints",e,{"editor.parameterHints.enabled":{type:"boolean",default:e.enabled,description:V("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:e.cycle,description:V("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),cycle:xo(i.cycle,this.defaultValue.cycle)}}}class dEi extends _ae{constructor(){super(137)}compute(e,i,n){return e.pixelRatio}}class hEi extends Ph{constructor(){const e={other:"on",comments:"off",strings:"off"},i=[{type:"boolean"},{type:"string",enum:["on","inline","off"],enumDescriptions:[V("on","Quick suggestions show inside the suggest widget"),V("inline","Quick suggestions show as ghost text"),V("off","Quick suggestions are disabled")]}];super(85,"quickSuggestions",e,{type:"object",additionalProperties:!1,properties:{strings:{anyOf:i,default:e.strings,description:V("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{anyOf:i,default:e.comments,description:V("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{anyOf:i,default:e.other,description:V("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}},default:e,markdownDescription:V("quickSuggestions","Controls whether suggestions should automatically show up while typing. This can be controlled for typing in comments, strings, and other code. Quick suggestion can be configured to show as ghost text or with the suggest widget. Also be aware of the '{0}'-setting which controls if suggestions are triggered by special characters.","#editor.suggestOnTriggerCharacters#")}),this.defaultValue=e}validate(e){if(typeof e=="boolean"){const _=e?"on":"off";return{comments:_,strings:_,other:_}}if(!e||typeof e!="object")return this.defaultValue;const{other:i,comments:n,strings:a}=e,o=["on","inline","off"];let c,h,g;return typeof i=="boolean"?c=i?"on":"off":c=im(i,this.defaultValue.other,o),typeof n=="boolean"?h=n?"on":"off":h=im(n,this.defaultValue.comments,o),typeof a=="boolean"?g=a?"on":"off":g=im(a,this.defaultValue.strings,o),{other:c,comments:h,strings:g}}}class fEi extends Ph{constructor(){super(65,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[V("lineNumbers.off","Line numbers are not rendered."),V("lineNumbers.on","Line numbers are rendered as absolute number."),V("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),V("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:V("lineNumbers","Controls the display of line numbers.")})}validate(e){let i=this.defaultValue.renderType,n=this.defaultValue.renderFn;return typeof e<"u"&&(typeof e=="function"?(i=4,n=e):e==="interval"?i=3:e==="relative"?i=2:e==="on"?i=1:i=0),{renderType:i,renderFn:n}}}function s5e(r){const e=r.get(93);return e==="editable"?r.get(87):e!=="on"}class mEi extends Ph{constructor(){const e=[],i={type:"number",description:V("rulers.size","Number of monospace characters at which this editor ruler will render.")};super(97,"rulers",e,{type:"array",items:{anyOf:[i,{type:["object"],properties:{column:i,color:{type:"string",description:V("rulers.color","Color of this editor ruler."),format:"color-hex"}}}]},default:e,description:V("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})}validate(e){if(Array.isArray(e)){const i=[];for(const n of e)if(typeof n=="number")i.push({column:gd.clampedInt(n,0,0,1e4),color:null});else if(n&&typeof n=="object"){const a=n;i.push({column:gd.clampedInt(a.column,0,0,1e4),color:a.color})}return i.sort((n,a)=>n.column-a.column),i}return this.defaultValue}}function Agt(r,e){if(typeof r!="string")return e;switch(r){case"hidden":return 2;case"visible":return 3;default:return 1}}let pEi=class extends Ph{constructor(){const e={vertical:1,horizontal:1,arrowSize:11,useShadows:!0,verticalHasArrows:!1,horizontalHasArrows:!1,horizontalScrollbarSize:12,horizontalSliderSize:12,verticalScrollbarSize:14,verticalSliderSize:14,handleMouseWheel:!0,alwaysConsumeMouseWheel:!0,scrollByPage:!1};super(98,"scrollbar",e,{"editor.scrollbar.vertical":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.vertical.auto","The vertical scrollbar will be visible only when necessary."),V("scrollbar.vertical.visible","The vertical scrollbar will always be visible."),V("scrollbar.vertical.fit","The vertical scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.vertical","Controls the visibility of the vertical scrollbar.")},"editor.scrollbar.horizontal":{type:"string",enum:["auto","visible","hidden"],enumDescriptions:[V("scrollbar.horizontal.auto","The horizontal scrollbar will be visible only when necessary."),V("scrollbar.horizontal.visible","The horizontal scrollbar will always be visible."),V("scrollbar.horizontal.fit","The horizontal scrollbar will always be hidden.")],default:"auto",description:V("scrollbar.horizontal","Controls the visibility of the horizontal scrollbar.")},"editor.scrollbar.verticalScrollbarSize":{type:"number",default:e.verticalScrollbarSize,description:V("scrollbar.verticalScrollbarSize","The width of the vertical scrollbar.")},"editor.scrollbar.horizontalScrollbarSize":{type:"number",default:e.horizontalScrollbarSize,description:V("scrollbar.horizontalScrollbarSize","The height of the horizontal scrollbar.")},"editor.scrollbar.scrollByPage":{type:"boolean",default:e.scrollByPage,description:V("scrollbar.scrollByPage","Controls whether clicks scroll by page or jump to click position.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e,n=gd.clampedInt(i.horizontalScrollbarSize,this.defaultValue.horizontalScrollbarSize,0,1e3),a=gd.clampedInt(i.verticalScrollbarSize,this.defaultValue.verticalScrollbarSize,0,1e3);return{arrowSize:gd.clampedInt(i.arrowSize,this.defaultValue.arrowSize,0,1e3),vertical:Agt(i.vertical,this.defaultValue.vertical),horizontal:Agt(i.horizontal,this.defaultValue.horizontal),useShadows:xo(i.useShadows,this.defaultValue.useShadows),verticalHasArrows:xo(i.verticalHasArrows,this.defaultValue.verticalHasArrows),horizontalHasArrows:xo(i.horizontalHasArrows,this.defaultValue.horizontalHasArrows),handleMouseWheel:xo(i.handleMouseWheel,this.defaultValue.handleMouseWheel),alwaysConsumeMouseWheel:xo(i.alwaysConsumeMouseWheel,this.defaultValue.alwaysConsumeMouseWheel),horizontalScrollbarSize:n,horizontalSliderSize:gd.clampedInt(i.horizontalSliderSize,n,0,1e3),verticalScrollbarSize:a,verticalSliderSize:gd.clampedInt(i.verticalSliderSize,a,0,1e3),scrollByPage:xo(i.scrollByPage,this.defaultValue.scrollByPage)}}};const Q5="inUntrustedWorkspace",M3={allowedCharacters:"editor.unicodeHighlight.allowedCharacters",invisibleCharacters:"editor.unicodeHighlight.invisibleCharacters",nonBasicASCII:"editor.unicodeHighlight.nonBasicASCII",ambiguousCharacters:"editor.unicodeHighlight.ambiguousCharacters",includeComments:"editor.unicodeHighlight.includeComments",includeStrings:"editor.unicodeHighlight.includeStrings",allowedLocales:"editor.unicodeHighlight.allowedLocales"};class gEi extends Ph{constructor(){const e={nonBasicASCII:Q5,invisibleCharacters:!0,ambiguousCharacters:!0,includeComments:Q5,includeStrings:!0,allowedCharacters:{},allowedLocales:{_os:!0,_vscode:!0}};super(120,"unicodeHighlight",e,{[M3.nonBasicASCII]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.nonBasicASCII,description:V("unicodeHighlight.nonBasicASCII","Controls whether all non-basic ASCII characters are highlighted. Only characters between U+0020 and U+007E, tab, line-feed and carriage-return are considered basic ASCII.")},[M3.invisibleCharacters]:{restricted:!0,type:"boolean",default:e.invisibleCharacters,description:V("unicodeHighlight.invisibleCharacters","Controls whether characters that just reserve space or have no width at all are highlighted.")},[M3.ambiguousCharacters]:{restricted:!0,type:"boolean",default:e.ambiguousCharacters,description:V("unicodeHighlight.ambiguousCharacters","Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.")},[M3.includeComments]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeComments,description:V("unicodeHighlight.includeComments","Controls whether characters in comments should also be subject to Unicode highlighting.")},[M3.includeStrings]:{restricted:!0,type:["boolean","string"],enum:[!0,!1,Q5],default:e.includeStrings,description:V("unicodeHighlight.includeStrings","Controls whether characters in strings should also be subject to Unicode highlighting.")},[M3.allowedCharacters]:{restricted:!0,type:"object",default:e.allowedCharacters,description:V("unicodeHighlight.allowedCharacters","Defines allowed characters that are not being highlighted."),additionalProperties:{type:"boolean"}},[M3.allowedLocales]:{restricted:!0,type:"object",additionalProperties:{type:"boolean"},default:e.allowedLocales,description:V("unicodeHighlight.allowedLocales","Unicode characters that are common in allowed locales are not being highlighted.")}})}applyUpdate(e,i){let n=!1;i.allowedCharacters&&e&&(cx(e.allowedCharacters,i.allowedCharacters)||(e=Object.assign(Object.assign({},e),{allowedCharacters:i.allowedCharacters}),n=!0)),i.allowedLocales&&e&&(cx(e.allowedLocales,i.allowedLocales)||(e=Object.assign(Object.assign({},e),{allowedLocales:i.allowedLocales}),n=!0));const a=super.applyUpdate(e,i);return n?new Kne(a.newValue,!0):a}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{nonBasicASCII:nJ(i.nonBasicASCII,Q5,[!0,!1,Q5]),invisibleCharacters:xo(i.invisibleCharacters,this.defaultValue.invisibleCharacters),ambiguousCharacters:xo(i.ambiguousCharacters,this.defaultValue.ambiguousCharacters),includeComments:nJ(i.includeComments,Q5,[!0,!1,Q5]),includeStrings:nJ(i.includeStrings,Q5,[!0,!1,Q5]),allowedCharacters:this.validateBooleanMap(e.allowedCharacters,this.defaultValue.allowedCharacters),allowedLocales:this.validateBooleanMap(e.allowedLocales,this.defaultValue.allowedLocales)}}validateBooleanMap(e,i){if(typeof e!="object"||!e)return i;const n={};for(const[a,o]of Object.entries(e))o===!0&&(n[a]=!0);return n}}class EEi extends Ph{constructor(){const e={enabled:!0,mode:"subwordSmart",showToolbar:"onHover",suppressSuggestions:!1};super(60,"inlineSuggest",e,{"editor.inlineSuggest.enabled":{type:"boolean",default:e.enabled,description:V("inlineSuggest.enabled","Controls whether to automatically show inline suggestions in the editor.")},"editor.inlineSuggest.showToolbar":{type:"string",default:e.showToolbar,enum:["always","onHover"],enumDescriptions:[V("inlineSuggest.showToolbar.always","Show the inline suggestion toolbar whenever an inline suggestion is shown."),V("inlineSuggest.showToolbar.onHover","Show the inline suggestion toolbar when hovering over an inline suggestion.")],description:V("inlineSuggest.showToolbar","Controls when to show the inline suggestion toolbar.")},"editor.inlineSuggest.suppressSuggestions":{type:"boolean",default:e.suppressSuggestions,description:V("inlineSuggest.suppressSuggestions","Controls how inline suggestions interact with the suggest widget. If enabled, the suggest widget is not shown automatically when inline suggestions are available.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),mode:im(i.mode,this.defaultValue.mode,["prefix","subword","subwordSmart"]),showToolbar:im(i.showToolbar,this.defaultValue.showToolbar,["always","onHover"]),suppressSuggestions:xo(i.suppressSuggestions,this.defaultValue.suppressSuggestions)}}}class _Ei extends Ph{constructor(){const e={enabled:jg.bracketPairColorizationOptions.enabled,independentColorPoolPerBracketType:jg.bracketPairColorizationOptions.independentColorPoolPerBracketType};super(13,"bracketPairColorization",e,{"editor.bracketPairColorization.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("bracketPairColorization.enabled","Controls whether bracket pair colorization is enabled or not. Use {0} to override the bracket highlight colors.","`#workbench.colorCustomizations#`")},"editor.bracketPairColorization.independentColorPoolPerBracketType":{type:"boolean",default:e.independentColorPoolPerBracketType,description:V("bracketPairColorization.independentColorPoolPerBracketType","Controls whether each bracket type has its own independent color pool.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{enabled:xo(i.enabled,this.defaultValue.enabled),independentColorPoolPerBracketType:xo(i.independentColorPoolPerBracketType,this.defaultValue.independentColorPoolPerBracketType)}}}class DEi extends Ph{constructor(){const e={bracketPairs:!1,bracketPairsHorizontal:"active",highlightActiveBracketPair:!0,indentation:!0,highlightActiveIndentation:!0};super(14,"guides",e,{"editor.guides.bracketPairs":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairs.true","Enables bracket pair guides."),V("editor.guides.bracketPairs.active","Enables bracket pair guides only for the active bracket pair."),V("editor.guides.bracketPairs.false","Disables bracket pair guides.")],default:e.bracketPairs,description:V("editor.guides.bracketPairs","Controls whether bracket pair guides are enabled or not.")},"editor.guides.bracketPairsHorizontal":{type:["boolean","string"],enum:[!0,"active",!1],enumDescriptions:[V("editor.guides.bracketPairsHorizontal.true","Enables horizontal guides as addition to vertical bracket pair guides."),V("editor.guides.bracketPairsHorizontal.active","Enables horizontal guides only for the active bracket pair."),V("editor.guides.bracketPairsHorizontal.false","Disables horizontal bracket pair guides.")],default:e.bracketPairsHorizontal,description:V("editor.guides.bracketPairsHorizontal","Controls whether horizontal bracket pair guides are enabled or not.")},"editor.guides.highlightActiveBracketPair":{type:"boolean",default:e.highlightActiveBracketPair,description:V("editor.guides.highlightActiveBracketPair","Controls whether the editor should highlight the active bracket pair.")},"editor.guides.indentation":{type:"boolean",default:e.indentation,description:V("editor.guides.indentation","Controls whether the editor should render indent guides.")},"editor.guides.highlightActiveIndentation":{type:["boolean","string"],enum:[!0,"always",!1],enumDescriptions:[V("editor.guides.highlightActiveIndentation.true","Highlights the active indent guide."),V("editor.guides.highlightActiveIndentation.always","Highlights the active indent guide even if bracket guides are highlighted."),V("editor.guides.highlightActiveIndentation.false","Do not highlight the active indent guide.")],default:e.highlightActiveIndentation,description:V("editor.guides.highlightActiveIndentation","Controls whether the editor should highlight the active indent guide.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{bracketPairs:nJ(i.bracketPairs,this.defaultValue.bracketPairs,[!0,!1,"active"]),bracketPairsHorizontal:nJ(i.bracketPairsHorizontal,this.defaultValue.bracketPairsHorizontal,[!0,!1,"active"]),highlightActiveBracketPair:xo(i.highlightActiveBracketPair,this.defaultValue.highlightActiveBracketPair),indentation:xo(i.indentation,this.defaultValue.indentation),highlightActiveIndentation:nJ(i.highlightActiveIndentation,this.defaultValue.highlightActiveIndentation,[!0,!1,"always"])}}}function nJ(r,e,i){const n=i.indexOf(r);return n===-1?e:i[n]}class xEi extends Ph{constructor(){const e={insertMode:"insert",filterGraceful:!0,snippetsPreventQuickSuggestions:!0,localityBonus:!1,shareSuggestSelections:!1,selectionMode:"always",showIcons:!0,showStatusBar:!1,preview:!1,previewMode:"subwordSmart",showInlineDetails:!0,showMethods:!0,showFunctions:!0,showConstructors:!0,showDeprecated:!0,matchOnWordStartOnly:!0,showFields:!0,showVariables:!0,showClasses:!0,showStructs:!0,showInterfaces:!0,showModules:!0,showProperties:!0,showEvents:!0,showOperators:!0,showUnits:!0,showValues:!0,showConstants:!0,showEnums:!0,showEnumMembers:!0,showKeywords:!0,showWords:!0,showColors:!0,showFiles:!0,showReferences:!0,showFolders:!0,showTypeParameters:!0,showSnippets:!0,showUsers:!0,showIssues:!0};super(113,"suggest",e,{"editor.suggest.insertMode":{type:"string",enum:["insert","replace"],enumDescriptions:[V("suggest.insertMode.insert","Insert suggestion without overwriting text right of the cursor."),V("suggest.insertMode.replace","Insert suggestion and overwrite text right of the cursor.")],default:e.insertMode,description:V("suggest.insertMode","Controls whether words are overwritten when accepting completions. Note that this depends on extensions opting into this feature.")},"editor.suggest.filterGraceful":{type:"boolean",default:e.filterGraceful,description:V("suggest.filterGraceful","Controls whether filtering and sorting suggestions accounts for small typos.")},"editor.suggest.localityBonus":{type:"boolean",default:e.localityBonus,description:V("suggest.localityBonus","Controls whether sorting favors words that appear close to the cursor.")},"editor.suggest.shareSuggestSelections":{type:"boolean",default:e.shareSuggestSelections,markdownDescription:V("suggest.shareSuggestSelections","Controls whether remembered suggestion selections are shared between multiple workspaces and windows (needs `#editor.suggestSelection#`).")},"editor.suggest.selectionMode":{type:"string",enum:["always","never","whenTriggerCharacter","whenQuickSuggestion"],enumDescriptions:[V("suggest.insertMode.always","Always select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.never","Never select a suggestion when automatically triggering IntelliSense."),V("suggest.insertMode.whenTriggerCharacter","Select a suggestion only when triggering IntelliSense from a trigger character."),V("suggest.insertMode.whenQuickSuggestion","Select a suggestion only when triggering IntelliSense as you type.")],default:e.selectionMode,markdownDescription:V("suggest.selectionMode","Controls whether a suggestion is selected when the widget shows. Note that this only applies to automatically triggered suggestions (`#editor.quickSuggestions#` and `#editor.suggestOnTriggerCharacters#`) and that a suggestion is always selected when explicitly invoked, e.g via `Ctrl+Space`.")},"editor.suggest.snippetsPreventQuickSuggestions":{type:"boolean",default:e.snippetsPreventQuickSuggestions,description:V("suggest.snippetsPreventQuickSuggestions","Controls whether an active snippet prevents quick suggestions.")},"editor.suggest.showIcons":{type:"boolean",default:e.showIcons,description:V("suggest.showIcons","Controls whether to show or hide icons in suggestions.")},"editor.suggest.showStatusBar":{type:"boolean",default:e.showStatusBar,description:V("suggest.showStatusBar","Controls the visibility of the status bar at the bottom of the suggest widget.")},"editor.suggest.preview":{type:"boolean",default:e.preview,description:V("suggest.preview","Controls whether to preview the suggestion outcome in the editor.")},"editor.suggest.showInlineDetails":{type:"boolean",default:e.showInlineDetails,description:V("suggest.showInlineDetails","Controls whether suggest details show inline with the label or only in the details widget.")},"editor.suggest.maxVisibleSuggestions":{type:"number",deprecationMessage:V("suggest.maxVisibleSuggestions.dep","This setting is deprecated. The suggest widget can now be resized.")},"editor.suggest.filteredTypes":{type:"object",deprecationMessage:V("deprecated","This setting is deprecated, please use separate settings like 'editor.suggest.showKeywords' or 'editor.suggest.showSnippets' instead.")},"editor.suggest.showMethods":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showMethods","When enabled IntelliSense shows `method`-suggestions.")},"editor.suggest.showFunctions":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFunctions","When enabled IntelliSense shows `function`-suggestions.")},"editor.suggest.showConstructors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstructors","When enabled IntelliSense shows `constructor`-suggestions.")},"editor.suggest.showDeprecated":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showDeprecated","When enabled IntelliSense shows `deprecated`-suggestions.")},"editor.suggest.matchOnWordStartOnly":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.matchOnWordStartOnly","When enabled IntelliSense filtering requires that the first character matches on a word start. For example, `c` on `Console` or `WebContext` but _not_ on `description`. When disabled IntelliSense will show more results but still sorts them by match quality.")},"editor.suggest.showFields":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFields","When enabled IntelliSense shows `field`-suggestions.")},"editor.suggest.showVariables":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showVariables","When enabled IntelliSense shows `variable`-suggestions.")},"editor.suggest.showClasses":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showClasss","When enabled IntelliSense shows `class`-suggestions.")},"editor.suggest.showStructs":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showStructs","When enabled IntelliSense shows `struct`-suggestions.")},"editor.suggest.showInterfaces":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showInterfaces","When enabled IntelliSense shows `interface`-suggestions.")},"editor.suggest.showModules":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showModules","When enabled IntelliSense shows `module`-suggestions.")},"editor.suggest.showProperties":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showPropertys","When enabled IntelliSense shows `property`-suggestions.")},"editor.suggest.showEvents":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEvents","When enabled IntelliSense shows `event`-suggestions.")},"editor.suggest.showOperators":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showOperators","When enabled IntelliSense shows `operator`-suggestions.")},"editor.suggest.showUnits":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUnits","When enabled IntelliSense shows `unit`-suggestions.")},"editor.suggest.showValues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showValues","When enabled IntelliSense shows `value`-suggestions.")},"editor.suggest.showConstants":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showConstants","When enabled IntelliSense shows `constant`-suggestions.")},"editor.suggest.showEnums":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnums","When enabled IntelliSense shows `enum`-suggestions.")},"editor.suggest.showEnumMembers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showEnumMembers","When enabled IntelliSense shows `enumMember`-suggestions.")},"editor.suggest.showKeywords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showKeywords","When enabled IntelliSense shows `keyword`-suggestions.")},"editor.suggest.showWords":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTexts","When enabled IntelliSense shows `text`-suggestions.")},"editor.suggest.showColors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showColors","When enabled IntelliSense shows `color`-suggestions.")},"editor.suggest.showFiles":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFiles","When enabled IntelliSense shows `file`-suggestions.")},"editor.suggest.showReferences":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showReferences","When enabled IntelliSense shows `reference`-suggestions.")},"editor.suggest.showCustomcolors":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showCustomcolors","When enabled IntelliSense shows `customcolor`-suggestions.")},"editor.suggest.showFolders":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showFolders","When enabled IntelliSense shows `folder`-suggestions.")},"editor.suggest.showTypeParameters":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showTypeParameters","When enabled IntelliSense shows `typeParameter`-suggestions.")},"editor.suggest.showSnippets":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showSnippets","When enabled IntelliSense shows `snippet`-suggestions.")},"editor.suggest.showUsers":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showUsers","When enabled IntelliSense shows `user`-suggestions.")},"editor.suggest.showIssues":{type:"boolean",default:!0,markdownDescription:V("editor.suggest.showIssues","When enabled IntelliSense shows `issues`-suggestions.")}})}validate(e){if(!e||typeof e!="object")return this.defaultValue;const i=e;return{insertMode:im(i.insertMode,this.defaultValue.insertMode,["insert","replace"]),filterGraceful:xo(i.filterGraceful,this.defaultValue.filterGraceful),snippetsPreventQuickSuggestions:xo(i.snippetsPreventQuickSuggestions,this.defaultValue.filterGraceful),localityBonus:xo(i.localityBonus,this.defaultValue.localityBonus),shareSuggestSelections:xo(i.shareSuggestSelections,this.defaultValue.shareSuggestSelections),selectionMode:im(i.selectionMode,this.defaultValue.selectionMode,["always","never","whenQuickSuggestion","whenTriggerCharacter"]),showIcons:xo(i.showIcons,this.defaultValue.showIcons),showStatusBar:xo(i.showStatusBar,this.defaultValue.showStatusBar),preview:xo(i.preview,this.defaultValue.preview),previewMode:im(i.previewMode,this.defaultValue.previewMode,["prefix","subword","subwordSmart"]),showInlineDetails:xo(i.showInlineDetails,this.defaultValue.showInlineDetails),showMethods:xo(i.showMethods,this.defaultValue.showMethods),showFunctions:xo(i.showFunctions,this.defaultValue.showFunctions),showConstructors:xo(i.showConstructors,this.defaultValue.showConstructors),showDeprecated:xo(i.showDeprecated,this.defaultValue.showDeprecated),matchOnWordStartOnly:xo(i.matchOnWordStartOnly,this.defaultValue.matchOnWordStartOnly),showFields:xo(i.showFields,this.defaultValue.showFields),showVariables:xo(i.showVariables,this.defaultValue.showVariables),showClasses:xo(i.showClasses,this.defaultValue.showClasses),showStructs:xo(i.showStructs,this.defaultValue.showStructs),showInterfaces:xo(i.showInterfaces,this.defaultValue.showInterfaces),showModules:xo(i.showModules,this.defaultValue.showModules),showProperties:xo(i.showProperties,this.defaultValue.showProperties),showEvents:xo(i.showEvents,this.defaultValue.showEvents),showOperators:xo(i.showOperators,this.defaultValue.showOperators),showUnits:xo(i.showUnits,this.defaultValue.showUnits),showValues:xo(i.showValues,this.defaultValue.showValues),showConstants:xo(i.showConstants,this.defaultValue.showConstants),showEnums:xo(i.showEnums,this.defaultValue.showEnums),showEnumMembers:xo(i.showEnumMembers,this.defaultValue.showEnumMembers),showKeywords:xo(i.showKeywords,this.defaultValue.showKeywords),showWords:xo(i.showWords,this.defaultValue.showWords),showColors:xo(i.showColors,this.defaultValue.showColors),showFiles:xo(i.showFiles,this.defaultValue.showFiles),showReferences:xo(i.showReferences,this.defaultValue.showReferences),showFolders:xo(i.showFolders,this.defaultValue.showFolders),showTypeParameters:xo(i.showTypeParameters,this.defaultValue.showTypeParameters),showSnippets:xo(i.showSnippets,this.defaultValue.showSnippets),showUsers:xo(i.showUsers,this.defaultValue.showUsers),showIssues:xo(i.showIssues,this.defaultValue.showIssues)}}}class vEi extends Ph{constructor(){super(108,"smartSelect",{selectLeadingAndTrailingWhitespace:!0},{"editor.smartSelect.selectLeadingAndTrailingWhitespace":{description:V("selectLeadingAndTrailingWhitespace","Whether leading and trailing whitespace should always be selected."),default:!0,type:"boolean"}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{selectLeadingAndTrailingWhitespace:xo(e.selectLeadingAndTrailingWhitespace,this.defaultValue.selectLeadingAndTrailingWhitespace)}}}class CEi extends Ph{constructor(){super(132,"wrappingIndent",1,{"editor.wrappingIndent":{type:"string",enum:["none","same","indent","deepIndent"],enumDescriptions:[V("wrappingIndent.none","No indentation. Wrapped lines begin at column 1."),V("wrappingIndent.same","Wrapped lines get the same indentation as the parent."),V("wrappingIndent.indent","Wrapped lines get +1 indentation toward the parent."),V("wrappingIndent.deepIndent","Wrapped lines get +2 indentation toward the parent.")],description:V("wrappingIndent","Controls the indentation of wrapped lines."),default:"same"}})}validate(e){switch(e){case"none":return 0;case"same":return 1;case"indent":return 2;case"deepIndent":return 3}return 1}compute(e,i,n){return i.get(2)===2?0:n}}class bEi extends _ae{constructor(){super(140)}compute(e,i,n){const a=i.get(139);return{isDominatedByLongLines:e.isDominatedByLongLines,isWordWrapMinified:a.isWordWrapMinified,isViewportWrapping:a.isViewportWrapping,wrappingColumn:a.wrappingColumn}}}class yEi extends Ph{constructor(){const e={enabled:!0};super(34,"dropIntoEditor",e,{"editor.dropIntoEditor.enabled":{type:"boolean",default:e.enabled,markdownDescription:V("dropIntoEditor.enabled","Controls whether you can drag and drop a file into a text editor by holding down `shift` (instead of opening the file in an editor).")}})}validate(e){return!e||typeof e!="object"?this.defaultValue:{enabled:xo(e.enabled,this.defaultValue.enabled)}}}const kEi="Consolas, 'Courier New', monospace",FEi="Menlo, Monaco, 'Courier New', monospace",AEi="'Droid Sans Mono', 'monospace', monospace",HD={fontFamily:d0?FEi:sg?AEi:kEi,fontWeight:"normal",fontSize:d0?12:14,lineHeight:0,letterSpacing:0},FG=[];function Mu(r){return FG[r.id]=r,r}const zy={acceptSuggestionOnCommitCharacter:Mu(new El(0,"acceptSuggestionOnCommitCharacter",!0,{markdownDescription:V("acceptSuggestionOnCommitCharacter","Controls whether suggestions should be accepted on commit characters. For example, in JavaScript, the semi-colon (`;`) can be a commit character that accepts a suggestion and types that character.")})),acceptSuggestionOnEnter:Mu(new ff(1,"acceptSuggestionOnEnter","on",["on","smart","off"],{markdownEnumDescriptions:["",V("acceptSuggestionOnEnterSmart","Only accept a suggestion with `Enter` when it makes a textual change."),""],markdownDescription:V("acceptSuggestionOnEnter","Controls whether suggestions should be accepted on `Enter`, in addition to `Tab`. Helps to avoid ambiguity between inserting new lines or accepting suggestions.")})),accessibilitySupport:Mu(new Wgi),accessibilityPageSize:Mu(new gd(3,"accessibilityPageSize",10,1,1073741824,{description:V("accessibilityPageSize","Controls the number of lines in the editor that can be read out by a screen reader at once. When we detect a screen reader we automatically set the default to be 500. Warning: this has a performance implication for numbers larger than the default."),tags:["accessibility"]})),ariaLabel:Mu(new MD(4,"ariaLabel",V("editorViewAccessibleLabel","Editor content"))),screenReaderAnnounceInlineSuggestion:Mu(new El(6,"screenReaderAnnounceInlineSuggestion",!1,{description:V("screenReaderAnnounceInlineSuggestion","Control whether inline suggestions are announced by a screen reader. Note that this does not work on macOS with VoiceOver."),tags:["accessibility"]})),autoClosingBrackets:Mu(new ff(5,"autoClosingBrackets","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingBrackets.languageDefined","Use language configurations to determine when to autoclose brackets."),V("editor.autoClosingBrackets.beforeWhitespace","Autoclose brackets only when the cursor is to the left of whitespace."),""],description:V("autoClosingBrackets","Controls whether the editor should automatically close brackets after the user adds an opening bracket.")})),autoClosingDelete:Mu(new ff(7,"autoClosingDelete","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingDelete.auto","Remove adjacent closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingDelete","Controls whether the editor should remove adjacent closing quotes or brackets when deleting.")})),autoClosingOvertype:Mu(new ff(8,"autoClosingOvertype","auto",["always","auto","never"],{enumDescriptions:["",V("editor.autoClosingOvertype.auto","Type over closing quotes or brackets only if they were automatically inserted."),""],description:V("autoClosingOvertype","Controls whether the editor should type over closing quotes or brackets.")})),autoClosingQuotes:Mu(new ff(9,"autoClosingQuotes","languageDefined",["always","languageDefined","beforeWhitespace","never"],{enumDescriptions:["",V("editor.autoClosingQuotes.languageDefined","Use language configurations to determine when to autoclose quotes."),V("editor.autoClosingQuotes.beforeWhitespace","Autoclose quotes only when the cursor is to the left of whitespace."),""],description:V("autoClosingQuotes","Controls whether the editor should automatically close quotes after the user adds an opening quote.")})),autoIndent:Mu(new B_e(10,"autoIndent",4,"full",["none","keep","brackets","advanced","full"],Kgi,{enumDescriptions:[V("editor.autoIndent.none","The editor will not insert indentation automatically."),V("editor.autoIndent.keep","The editor will keep the current line's indentation."),V("editor.autoIndent.brackets","The editor will keep the current line's indentation and honor language defined brackets."),V("editor.autoIndent.advanced","The editor will keep the current line's indentation, honor language defined brackets and invoke special onEnterRules defined by languages."),V("editor.autoIndent.full","The editor will keep the current line's indentation, honor language defined brackets, invoke special onEnterRules defined by languages, and honor indentationRules defined by languages.")],description:V("autoIndent","Controls whether the editor should automatically adjust the indentation when users type, paste, move or indent lines.")})),automaticLayout:Mu(new El(11,"automaticLayout",!1)),autoSurround:Mu(new ff(12,"autoSurround","languageDefined",["languageDefined","quotes","brackets","never"],{enumDescriptions:[V("editor.autoSurround.languageDefined","Use language configurations to determine when to automatically surround selections."),V("editor.autoSurround.quotes","Surround with quotes but not brackets."),V("editor.autoSurround.brackets","Surround with brackets but not quotes."),""],description:V("autoSurround","Controls whether the editor should automatically surround selections when typing quotes or brackets.")})),bracketPairColorization:Mu(new _Ei),bracketPairGuides:Mu(new DEi),stickyTabStops:Mu(new El(111,"stickyTabStops",!1,{description:V("stickyTabStops","Emulate selection behavior of tab characters when using spaces for indentation. Selection will stick to tab stops.")})),codeLens:Mu(new El(15,"codeLens",!0,{description:V("codeLens","Controls whether the editor shows CodeLens.")})),codeLensFontFamily:Mu(new MD(16,"codeLensFontFamily","",{description:V("codeLensFontFamily","Controls the font family for CodeLens.")})),codeLensFontSize:Mu(new gd(17,"codeLensFontSize",0,0,100,{type:"number",default:0,minimum:0,maximum:100,markdownDescription:V("codeLensFontSize","Controls the font size in pixels for CodeLens. When set to 0, 90% of `#editor.fontSize#` is used.")})),colorDecorators:Mu(new El(18,"colorDecorators",!0,{description:V("colorDecorators","Controls whether the editor should render the inline color decorators and color picker.")})),colorDecoratorsLimit:Mu(new gd(19,"colorDecoratorsLimit",500,1,1e6,{markdownDescription:V("colorDecoratorsLimit","Controls the max number of color decorators that can be rendered in an editor at once.")})),columnSelection:Mu(new El(20,"columnSelection",!1,{description:V("columnSelection","Enable that the selection with the mouse and keys is doing column selection.")})),comments:Mu(new Ggi),contextmenu:Mu(new El(22,"contextmenu",!0)),copyWithSyntaxHighlighting:Mu(new El(23,"copyWithSyntaxHighlighting",!0,{description:V("copyWithSyntaxHighlighting","Controls whether syntax highlighting should be copied into the clipboard.")})),cursorBlinking:Mu(new B_e(24,"cursorBlinking",1,"blink",["blink","smooth","phase","expand","solid"],Jgi,{description:V("cursorBlinking","Control the cursor animation style.")})),cursorSmoothCaretAnimation:Mu(new ff(25,"cursorSmoothCaretAnimation","off",["off","explicit","on"],{enumDescriptions:[V("cursorSmoothCaretAnimation.off","Smooth caret animation is disabled."),V("cursorSmoothCaretAnimation.explicit","Smooth caret animation is enabled only when the user moves the cursor with an explicit gesture."),V("cursorSmoothCaretAnimation.on","Smooth caret animation is always enabled.")],description:V("cursorSmoothCaretAnimation","Controls whether the smooth caret animation should be enabled.")})),cursorStyle:Mu(new B_e(26,"cursorStyle",Cp.Line,"line",["line","block","underline","line-thin","block-outline","underline-thin"],$gi,{description:V("cursorStyle","Controls the cursor style.")})),cursorSurroundingLines:Mu(new gd(27,"cursorSurroundingLines",0,0,1073741824,{description:V("cursorSurroundingLines","Controls the minimal number of visible leading lines (minimum 0) and trailing lines (minimum 1) surrounding the cursor. Known as 'scrollOff' or 'scrollOffset' in some other editors.")})),cursorSurroundingLinesStyle:Mu(new ff(28,"cursorSurroundingLinesStyle","default",["default","all"],{enumDescriptions:[V("cursorSurroundingLinesStyle.default","`cursorSurroundingLines` is enforced only when triggered via the keyboard or API."),V("cursorSurroundingLinesStyle.all","`cursorSurroundingLines` is enforced always.")],description:V("cursorSurroundingLinesStyle","Controls when `cursorSurroundingLines` should be enforced.")})),cursorWidth:Mu(new gd(29,"cursorWidth",0,0,1073741824,{markdownDescription:V("cursorWidth","Controls the width of the cursor when `#editor.cursorStyle#` is set to `line`.")})),disableLayerHinting:Mu(new El(30,"disableLayerHinting",!1)),disableMonospaceOptimizations:Mu(new El(31,"disableMonospaceOptimizations",!1)),domReadOnly:Mu(new El(32,"domReadOnly",!1)),dragAndDrop:Mu(new El(33,"dragAndDrop",!0,{description:V("dragAndDrop","Controls whether the editor should allow moving selections via drag and drop.")})),emptySelectionClipboard:Mu(new qgi),dropIntoEditor:Mu(new yEi),stickyScroll:Mu(new nEi),experimentalWhitespaceRendering:Mu(new ff(36,"experimentalWhitespaceRendering","svg",["svg","font","off"],{enumDescriptions:[V("experimentalWhitespaceRendering.svg","Use a new rendering method with svgs."),V("experimentalWhitespaceRendering.font","Use a new rendering method with font characters."),V("experimentalWhitespaceRendering.off","Use the stable rendering method.")],description:V("experimentalWhitespaceRendering","Controls whether whitespace is rendered with a new, experimental method.")})),extraEditorClassName:Mu(new MD(37,"extraEditorClassName","")),fastScrollSensitivity:Mu(new lA(38,"fastScrollSensitivity",5,r=>r<=0?5:r,{markdownDescription:V("fastScrollSensitivity","Scrolling speed multiplier when pressing `Alt`.")})),find:Mu(new Zgi),fixedOverflowWidgets:Mu(new El(40,"fixedOverflowWidgets",!1)),folding:Mu(new El(41,"folding",!0,{description:V("folding","Controls whether the editor has code folding enabled.")})),foldingStrategy:Mu(new ff(42,"foldingStrategy","auto",["auto","indentation"],{enumDescriptions:[V("foldingStrategy.auto","Use a language-specific folding strategy if available, else the indentation-based one."),V("foldingStrategy.indentation","Use the indentation-based folding strategy.")],description:V("foldingStrategy","Controls the strategy for computing folding ranges.")})),foldingHighlight:Mu(new El(43,"foldingHighlight",!0,{description:V("foldingHighlight","Controls whether the editor should highlight folded ranges.")})),foldingImportsByDefault:Mu(new El(44,"foldingImportsByDefault",!1,{description:V("foldingImportsByDefault","Controls whether the editor automatically collapses import ranges.")})),foldingMaximumRegions:Mu(new gd(45,"foldingMaximumRegions",5e3,10,65e3,{description:V("foldingMaximumRegions","The maximum number of foldable regions. Increasing this value may result in the editor becoming less responsive when the current source has a large number of foldable regions.")})),unfoldOnClickAfterEndOfLine:Mu(new El(46,"unfoldOnClickAfterEndOfLine",!1,{description:V("unfoldOnClickAfterEndOfLine","Controls whether clicking on the empty content after a folded line will unfold the line.")})),fontFamily:Mu(new MD(47,"fontFamily",HD.fontFamily,{description:V("fontFamily","Controls the font family.")})),fontInfo:Mu(new Ygi),fontLigatures2:Mu(new nx),fontSize:Mu(new Qgi),fontWeight:Mu(new tA),fontVariations:Mu(new oy),formatOnPaste:Mu(new El(53,"formatOnPaste",!1,{description:V("formatOnPaste","Controls whether the editor should automatically format the pasted content. A formatter must be available and the formatter should be able to format a range in a document.")})),formatOnType:Mu(new El(54,"formatOnType",!1,{description:V("formatOnType","Controls whether the editor should automatically format the line after typing.")})),glyphMargin:Mu(new El(55,"glyphMargin",!0,{description:V("glyphMargin","Controls whether the editor should render the vertical glyph margin. Glyph margin is mostly used for debugging.")})),gotoLocation:Mu(new Xgi),hideCursorInOverviewRuler:Mu(new El(57,"hideCursorInOverviewRuler",!1,{description:V("hideCursorInOverviewRuler","Controls whether the cursor should be hidden in the overview ruler.")})),hover:Mu(new eEi),inDiffEditor:Mu(new El(59,"inDiffEditor",!1)),letterSpacing:Mu(new lA(61,"letterSpacing",HD.letterSpacing,r=>lA.clamp(r,-5,20),{description:V("letterSpacing","Controls the letter spacing in pixels.")})),lightbulb:Mu(new iEi),lineDecorationsWidth:Mu(new rEi),lineHeight:Mu(new aEi),lineNumbers:Mu(new fEi),lineNumbersMinChars:Mu(new gd(66,"lineNumbersMinChars",5,1,300)),linkedEditing:Mu(new El(67,"linkedEditing",!1,{description:V("linkedEditing","Controls whether the editor has linked editing enabled. Depending on the language, related symbols such as HTML tags, are updated while editing.")})),links:Mu(new El(68,"links",!0,{description:V("links","Controls whether the editor should detect links and make them clickable.")})),matchBrackets:Mu(new ff(69,"matchBrackets","always",["always","near","never"],{description:V("matchBrackets","Highlight matching brackets.")})),minimap:Mu(new oEi),mouseStyle:Mu(new ff(71,"mouseStyle","text",["text","default","copy"])),mouseWheelScrollSensitivity:Mu(new lA(72,"mouseWheelScrollSensitivity",1,r=>r===0?1:r,{markdownDescription:V("mouseWheelScrollSensitivity","A multiplier to be used on the `deltaX` and `deltaY` of mouse wheel scroll events.")})),mouseWheelZoom:Mu(new El(73,"mouseWheelZoom",!1,{markdownDescription:V("mouseWheelZoom","Zoom the font of the editor when using mouse wheel and holding `Ctrl`.")})),multiCursorMergeOverlapping:Mu(new El(74,"multiCursorMergeOverlapping",!0,{description:V("multiCursorMergeOverlapping","Merge multiple cursors when they are overlapping.")})),multiCursorModifier:Mu(new B_e(75,"multiCursorModifier","altKey","alt",["ctrlCmd","alt"],sEi,{markdownEnumDescriptions:[V("multiCursorModifier.ctrlCmd","Maps to `Control` on Windows and Linux and to `Command` on macOS."),V("multiCursorModifier.alt","Maps to `Alt` on Windows and Linux and to `Option` on macOS.")],markdownDescription:V({key:"multiCursorModifier",comment:["- `ctrlCmd` refers to a value the setting can take and should not be localized.","- `Control` and `Command` refer to the modifier keys Ctrl or Cmd on the keyboard and can be localized."]},"The modifier to be used to add multiple cursors with the mouse. The Go to Definition and Open Link mouse gestures will adapt such that they do not conflict with the [multicursor modifier](https://code.visualstudio.com/docs/editor/codebasics#_multicursor-modifier).")})),multiCursorPaste:Mu(new ff(76,"multiCursorPaste","spread",["spread","full"],{markdownEnumDescriptions:[V("multiCursorPaste.spread","Each cursor pastes a single line of the text."),V("multiCursorPaste.full","Each cursor pastes the full text.")],markdownDescription:V("multiCursorPaste","Controls pasting when the line count of the pasted text matches the cursor count.")})),multiCursorLimit:Mu(new gd(77,"multiCursorLimit",1e4,1,1e5,{markdownDescription:V("multiCursorLimit","Controls the max number of cursors that can be in an active editor at once.")})),occurrencesHighlight:Mu(new El(78,"occurrencesHighlight",!0,{description:V("occurrencesHighlight","Controls whether the editor should highlight semantic symbol occurrences.")})),overviewRulerBorder:Mu(new El(79,"overviewRulerBorder",!0,{description:V("overviewRulerBorder","Controls whether a border should be drawn around the overview ruler.")})),overviewRulerLanes:Mu(new gd(80,"overviewRulerLanes",3,0,3)),padding:Mu(new lEi),parameterHints:Mu(new cEi),peekWidgetDefaultFocus:Mu(new ff(83,"peekWidgetDefaultFocus","tree",["tree","editor"],{enumDescriptions:[V("peekWidgetDefaultFocus.tree","Focus the tree when opening peek"),V("peekWidgetDefaultFocus.editor","Focus the editor when opening peek")],description:V("peekWidgetDefaultFocus","Controls whether to focus the inline editor or the tree in the peek widget.")})),definitionLinkOpensInPeek:Mu(new El(84,"definitionLinkOpensInPeek",!1,{description:V("definitionLinkOpensInPeek","Controls whether the Go to Definition mouse gesture always opens the peek widget.")})),quickSuggestions:Mu(new hEi),quickSuggestionsDelay:Mu(new gd(86,"quickSuggestionsDelay",10,0,1073741824,{description:V("quickSuggestionsDelay","Controls the delay in milliseconds after which quick suggestions will show up.")})),readOnly:Mu(new El(87,"readOnly",!1)),renameOnType:Mu(new El(88,"renameOnType",!1,{description:V("renameOnType","Controls whether the editor auto renames on type."),markdownDeprecationMessage:V("renameOnTypeDeprecate","Deprecated, use `editor.linkedEditing` instead.")})),renderControlCharacters:Mu(new El(89,"renderControlCharacters",!0,{description:V("renderControlCharacters","Controls whether the editor should render control characters."),restricted:!0})),renderFinalNewline:Mu(new ff(90,"renderFinalNewline",sg?"dimmed":"on",["off","on","dimmed"],{description:V("renderFinalNewline","Render last line number when the file ends with a newline.")})),renderLineHighlight:Mu(new ff(91,"renderLineHighlight","line",["none","gutter","line","all"],{enumDescriptions:["","","",V("renderLineHighlight.all","Highlights both the gutter and the current line.")],description:V("renderLineHighlight","Controls how the editor should render the current line highlight.")})),renderLineHighlightOnlyWhenFocus:Mu(new El(92,"renderLineHighlightOnlyWhenFocus",!1,{description:V("renderLineHighlightOnlyWhenFocus","Controls if the editor should render the current line highlight only when the editor is focused.")})),renderValidationDecorations:Mu(new ff(93,"renderValidationDecorations","editable",["editable","on","off"])),renderWhitespace:Mu(new ff(94,"renderWhitespace","selection",["none","boundary","selection","trailing","all"],{enumDescriptions:["",V("renderWhitespace.boundary","Render whitespace characters except for single spaces between words."),V("renderWhitespace.selection","Render whitespace characters only on selected text."),V("renderWhitespace.trailing","Render only trailing whitespace characters."),""],description:V("renderWhitespace","Controls how the editor should render whitespace characters.")})),revealHorizontalRightPadding:Mu(new gd(95,"revealHorizontalRightPadding",15,0,1e3)),roundedSelection:Mu(new El(96,"roundedSelection",!0,{description:V("roundedSelection","Controls whether selections should have rounded corners.")})),rulers:Mu(new mEi),scrollbar:Mu(new pEi),scrollBeyondLastColumn:Mu(new gd(99,"scrollBeyondLastColumn",4,0,1073741824,{description:V("scrollBeyondLastColumn","Controls the number of extra characters beyond which the editor will scroll horizontally.")})),scrollBeyondLastLine:Mu(new El(100,"scrollBeyondLastLine",!0,{description:V("scrollBeyondLastLine","Controls whether the editor will scroll beyond the last line.")})),scrollPredominantAxis:Mu(new El(101,"scrollPredominantAxis",!0,{description:V("scrollPredominantAxis","Scroll only along the predominant axis when scrolling both vertically and horizontally at the same time. Prevents horizontal drift when scrolling vertically on a trackpad.")})),selectionClipboard:Mu(new El(102,"selectionClipboard",!0,{description:V("selectionClipboard","Controls whether the Linux primary clipboard should be supported."),included:sg})),selectionHighlight:Mu(new El(103,"selectionHighlight",!0,{description:V("selectionHighlight","Controls whether the editor should highlight matches similar to the selection.")})),selectOnLineNumbers:Mu(new El(104,"selectOnLineNumbers",!0)),showFoldingControls:Mu(new ff(105,"showFoldingControls","mouseover",["always","never","mouseover"],{enumDescriptions:[V("showFoldingControls.always","Always show the folding controls."),V("showFoldingControls.never","Never show the folding controls and reduce the gutter size."),V("showFoldingControls.mouseover","Only show the folding controls when the mouse is over the gutter.")],description:V("showFoldingControls","Controls when the folding controls on the gutter are shown.")})),showUnused:Mu(new El(106,"showUnused",!0,{description:V("showUnused","Controls fading out of unused code.")})),showDeprecated:Mu(new El(134,"showDeprecated",!0,{description:V("showDeprecated","Controls strikethrough deprecated variables.")})),inlayHints:Mu(new uEi),snippetSuggestions:Mu(new ff(107,"snippetSuggestions","inline",["top","bottom","inline","none"],{enumDescriptions:[V("snippetSuggestions.top","Show snippet suggestions on top of other suggestions."),V("snippetSuggestions.bottom","Show snippet suggestions below other suggestions."),V("snippetSuggestions.inline","Show snippets suggestions with other suggestions."),V("snippetSuggestions.none","Do not show snippet suggestions.")],description:V("snippetSuggestions","Controls whether snippets are shown with other suggestions and how they are sorted.")})),smartSelect:Mu(new vEi),smoothScrolling:Mu(new El(109,"smoothScrolling",!1,{description:V("smoothScrolling","Controls whether the editor will scroll using an animation.")})),stopRenderingLineAfter:Mu(new gd(112,"stopRenderingLineAfter",1e4,-1,1073741824)),suggest:Mu(new xEi),inlineSuggest:Mu(new EEi),suggestFontSize:Mu(new gd(114,"suggestFontSize",0,0,1e3,{markdownDescription:V("suggestFontSize","Font size for the suggest widget. When set to {0}, the value of {1} is used.","`0`","`#editor.fontSize#`")})),suggestLineHeight:Mu(new gd(115,"suggestLineHeight",0,0,1e3,{markdownDescription:V("suggestLineHeight","Line height for the suggest widget. When set to {0}, the value of {1} is used. The minimum value is 8.","`0`","`#editor.lineHeight#`")})),suggestOnTriggerCharacters:Mu(new El(116,"suggestOnTriggerCharacters",!0,{description:V("suggestOnTriggerCharacters","Controls whether suggestions should automatically show up when typing trigger characters.")})),suggestSelection:Mu(new ff(117,"suggestSelection","first",["first","recentlyUsed","recentlyUsedByPrefix"],{markdownEnumDescriptions:[V("suggestSelection.first","Always select the first suggestion."),V("suggestSelection.recentlyUsed","Select recent suggestions unless further typing selects one, e.g. `console.| -> console.log` because `log` has been completed recently."),V("suggestSelection.recentlyUsedByPrefix","Select suggestions based on previous prefixes that have completed those suggestions, e.g. `co -> console` and `con -> const`.")],description:V("suggestSelection","Controls how suggestions are pre-selected when showing the suggest list.")})),tabCompletion:Mu(new ff(118,"tabCompletion","off",["on","off","onlySnippets"],{enumDescriptions:[V("tabCompletion.on","Tab complete will insert the best matching suggestion when pressing tab."),V("tabCompletion.off","Disable tab completions."),V("tabCompletion.onlySnippets","Tab complete snippets when their prefix match. Works best when 'quickSuggestions' aren't enabled.")],description:V("tabCompletion","Enables tab completions.")})),tabIndex:Mu(new gd(119,"tabIndex",0,-1,1073741824)),unicodeHighlight:Mu(new gEi),unusualLineTerminators:Mu(new ff(121,"unusualLineTerminators","prompt",["auto","off","prompt"],{enumDescriptions:[V("unusualLineTerminators.auto","Unusual line terminators are automatically removed."),V("unusualLineTerminators.off","Unusual line terminators are ignored."),V("unusualLineTerminators.prompt","Unusual line terminators prompt to be removed.")],description:V("unusualLineTerminators","Remove unusual line terminators that might cause problems.")})),useShadowDOM:Mu(new El(122,"useShadowDOM",!0)),useTabStops:Mu(new El(123,"useTabStops",!0,{description:V("useTabStops","Inserting and deleting whitespace follows tab stops.")})),wordBreak:Mu(new ff(124,"wordBreak","normal",["normal","keepAll"],{markdownEnumDescriptions:[V("wordBreak.normal","Use the default line break rule."),V("wordBreak.keepAll","Word breaks should not be used for Chinese/Japanese/Korean (CJK) text. Non-CJK text behavior is the same as for normal.")],description:V("wordBreak","Controls the word break rules used for Chinese/Japanese/Korean (CJK) text.")})),wordSeparators:Mu(new MD(125,"wordSeparators",Qvt,{description:V("wordSeparators","Characters that will be used as word separators when doing word related navigations or operations.")})),wordWrap:Mu(new ff(126,"wordWrap","off",["off","on","wordWrapColumn","bounded"],{markdownEnumDescriptions:[V("wordWrap.off","Lines will never wrap."),V("wordWrap.on","Lines will wrap at the viewport width."),V({key:"wordWrap.wordWrapColumn",comment:["- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at `#editor.wordWrapColumn#`."),V({key:"wordWrap.bounded",comment:["- viewport means the edge of the visible window size.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Lines will wrap at the minimum of viewport and `#editor.wordWrapColumn#`.")],description:V({key:"wordWrap",comment:["- 'off', 'on', 'wordWrapColumn' and 'bounded' refer to values the setting can take and should not be localized.","- `editor.wordWrapColumn` refers to a different setting and should not be localized."]},"Controls how lines should wrap.")})),wordWrapBreakAfterCharacters:Mu(new MD(127,"wordWrapBreakAfterCharacters"," })]?|/&.,;¢°′″‰℃、。。、¢,.:;?!%・・ゝゞヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻ァィゥェォャュョッー”〉》」』】〕)]}」")),wordWrapBreakBeforeCharacters:Mu(new MD(128,"wordWrapBreakBeforeCharacters","([{‘“〈《「『【〔([{「£¥$£¥++")),wordWrapColumn:Mu(new gd(129,"wordWrapColumn",80,1,1073741824,{markdownDescription:V({key:"wordWrapColumn",comment:["- `editor.wordWrap` refers to a different setting and should not be localized.","- 'wordWrapColumn' and 'bounded' refer to values the different setting can take and should not be localized."]},"Controls the wrapping column of the editor when `#editor.wordWrap#` is `wordWrapColumn` or `bounded`.")})),wordWrapOverride1:Mu(new ff(130,"wordWrapOverride1","inherit",["off","on","inherit"])),wordWrapOverride2:Mu(new ff(131,"wordWrapOverride2","inherit",["off","on","inherit"])),editorClassName:Mu(new Ugi),pixelRatio:Mu(new dEi),tabFocusMode:Mu(new El(138,"tabFocusMode",!1,{markdownDescription:V("tabFocusMode","Controls whether the editor receives tabs or defers them to the workbench for navigation.")})),layoutInfo:Mu(new iJ),wrappingInfo:Mu(new bEi),wrappingIndent:Mu(new CEi),wrappingStrategy:Mu(new tEi)};class SEi{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(e){setTimeout(()=>{throw e.stack?NJ.isErrorNoTelemetry(e)?new NJ(e.message+` `+e.stack):new Error(e.message+` -`+e.stack):e},0)}}emit(e){this.listeners.forEach(i=>{i(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const sCt=new kEi;function Ls(r){Iy(r)||sCt.onUnexpectedError(r)}function R4(r){Iy(r)||sCt.onUnexpectedExternalError(r)}function bgt(r){if(r instanceof Error){const{name:e,message:i}=r,n=r.stacktrace||r.stack;return{$isError:!0,name:e,message:i,stack:n,noTelemetry:LJ.isErrorNoTelemetry(r)}}return r}const r5e="Canceled";function Iy(r){return r instanceof oN?!0:r instanceof Error&&r.name===r5e&&r.message===r5e}class oN extends Error{constructor(){super(r5e),this.name=this.message}}function FEi(){const r=new Error(r5e);return r.name=r.message,r}function dx(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}function QGe(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}class AEi extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class LJ extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof LJ)return e;const i=new LJ;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class KA extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,KA.prototype);debugger}}function wA(r){const e=this;let i=!1,n;return function(){return i||(i=!0,n=r.apply(e,arguments)),n}}function XGe(r){return typeof r.dispose=="function"&&r.dispose.length===0}function ac(r){if(V0.is(r)){const e=[];for(const i of r)if(i)try{i.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}function YC(...r){return Ts(()=>ac(r))}function Ts(r){return{dispose:wA(()=>{r()})}}class cu{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{ac(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?cu.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}cu.DISABLE_DISPOSED_WARNING=!1;class ln{constructor(){this._store=new cu,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ln.None=Object.freeze({dispose(){}});class z4{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var i;this._isDisposed||e===this._value||((i=this._value)===null||i===void 0||i.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class SEi{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class BEi{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let i=e;return this.unset=()=>i=void 0,this.isset=()=>i!==void 0,this.dispose=()=>{i&&(i(),i=void 0)},this}}class wEi{constructor(e){this.object=e}dispose(){}}class eJe{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{ac(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,i,n=!1){var a;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(a=this._store.get(e))===null||a===void 0||a.dispose(),this._store.set(e,i)}deleteAndDispose(e){var i;(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const TEi=VD.performance&&typeof VD.performance.now=="function";class V3{static create(e=!0){return new V3(e)}constructor(e){this._highResolution=TEi&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?VD.performance.now():Date.now()}}var Ia;(function(r){r.None=()=>ln.None;function e(Ze,rt){return x(Ze,()=>{},0,void 0,!0,void 0,rt)}r.defer=e;function i(Ze){return(rt,kt=null,Zt)=>{let jt=!1,ui;return ui=Ze(ti=>{if(!jt)return ui?ui.dispose():jt=!0,rt.call(kt,ti)},null,Zt),jt&&ui.dispose(),ui}}r.once=i;function n(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>Zt.call(jt,rt(ti)),null,ui),kt)}r.map=n;function a(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>{rt(ti),Zt.call(jt,ti)},null,ui),kt)}r.forEach=a;function o(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>rt(ti)&&Zt.call(jt,ti),null,ui),kt)}r.filter=o;function c(Ze){return Ze}r.signal=c;function h(...Ze){return(rt,kt=null,Zt)=>YC(...Ze.map(jt=>jt(ui=>rt.call(kt,ui),null,Zt)))}r.any=h;function g(Ze,rt,kt,Zt){let jt=kt;return n(Ze,ui=>(jt=rt(jt,ui),jt),Zt)}r.reduce=g;function _(Ze,rt){let kt;const Zt={onWillAddFirstListener(){kt=Ze(jt.fire,jt)},onDidRemoveLastListener(){kt==null||kt.dispose()}},jt=new Fi(Zt);return rt==null||rt.add(jt),jt.event}function x(Ze,rt,kt=100,Zt=!1,jt=!1,ui,ti){let Uu,pu,Vt,zr=0,Lu;const Va={leakWarningThreshold:ui,onWillAddFirstListener(){Uu=Ze(Tr=>{zr++,pu=rt(pu,Tr),Zt&&!Vt&&(ju.fire(pu),pu=void 0),Lu=()=>{const pa=pu;pu=void 0,Vt=void 0,(!Zt||zr>1)&&ju.fire(pa),zr=0},typeof kt=="number"?(clearTimeout(Vt),Vt=setTimeout(Lu,kt)):Vt===void 0&&(Vt=0,queueMicrotask(Lu))})},onWillRemoveListener(){jt&&zr>0&&(Lu==null||Lu())},onDidRemoveLastListener(){Lu=void 0,Uu.dispose()}},ju=new Fi(Va);return ti==null||ti.add(ju),ju.event}r.debounce=x;function y(Ze,rt=0,kt){return r.debounce(Ze,(Zt,jt)=>Zt?(Zt.push(jt),Zt):[jt],rt,void 0,!0,void 0,kt)}r.accumulate=y;function S(Ze,rt=(Zt,jt)=>Zt===jt,kt){let Zt=!0,jt;return o(Ze,ui=>{const ti=Zt||!rt(ui,jt);return Zt=!1,jt=ui,ti},kt)}r.latch=S;function L(Ze,rt,kt){return[r.filter(Ze,rt,kt),r.filter(Ze,Zt=>!rt(Zt),kt)]}r.split=L;function O(Ze,rt=!1,kt=[]){let Zt=kt.slice(),jt=Ze(Uu=>{Zt?Zt.push(Uu):ti.fire(Uu)});const ui=()=>{Zt==null||Zt.forEach(Uu=>ti.fire(Uu)),Zt=null},ti=new Fi({onWillAddFirstListener(){jt||(jt=Ze(Uu=>ti.fire(Uu)))},onDidAddFirstListener(){Zt&&(rt?setTimeout(ui):ui())},onDidRemoveLastListener(){jt&&jt.dispose(),jt=null}});return ti.event}r.buffer=O;class G{constructor(rt){this.event=rt,this.disposables=new cu}map(rt){return new G(n(this.event,rt,this.disposables))}forEach(rt){return new G(a(this.event,rt,this.disposables))}filter(rt){return new G(o(this.event,rt,this.disposables))}reduce(rt,kt){return new G(g(this.event,rt,kt,this.disposables))}latch(){return new G(S(this.event,void 0,this.disposables))}debounce(rt,kt=100,Zt=!1,jt=!1,ui){return new G(x(this.event,rt,kt,Zt,jt,ui,this.disposables))}on(rt,kt,Zt){return this.event(rt,kt,Zt)}once(rt,kt,Zt){return i(this.event)(rt,kt,Zt)}dispose(){this.disposables.dispose()}}function ie(Ze){return new G(Ze)}r.chain=ie;function ue(Ze,rt,kt=Zt=>Zt){const Zt=(...Uu)=>ti.fire(kt(...Uu)),jt=()=>Ze.on(rt,Zt),ui=()=>Ze.removeListener(rt,Zt),ti=new Fi({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromNodeEventEmitter=ue;function re(Ze,rt,kt=Zt=>Zt){const Zt=(...Uu)=>ti.fire(kt(...Uu)),jt=()=>Ze.addEventListener(rt,Zt),ui=()=>Ze.removeEventListener(rt,Zt),ti=new Fi({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromDOMEventEmitter=re;function _e(Ze){return new Promise(rt=>i(Ze)(rt))}r.toPromise=_e;function ye(Ze,rt){return rt(void 0),Ze(kt=>rt(kt))}r.runAndSubscribe=ye;function Le(Ze,rt){let kt=null;function Zt(ui){kt==null||kt.dispose(),kt=new cu,rt(ui,kt)}Zt(void 0);const jt=Ze(ui=>Zt(ui));return Ts(()=>{jt.dispose(),kt==null||kt.dispose()})}r.runAndSubscribeWithStore=Le;class lt{constructor(rt,kt){this.obs=rt,this._counter=0,this._hasChanged=!1;const Zt={onWillAddFirstListener:()=>{rt.addObserver(this)},onDidRemoveLastListener:()=>{rt.removeObserver(this)}};this.emitter=new Fi(Zt),kt&&kt.add(this.emitter)}beginUpdate(rt){this._counter++}handleChange(rt,kt){this._hasChanged=!0}endUpdate(rt){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Ue(Ze,rt){return new lt(Ze,rt).emitter.event}r.fromObservable=Ue})(Ia||(Ia={}));class NJ{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${NJ._idPool++}`,NJ.all.add(this)}start(e){this._stopWatch=new V3(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}NJ.all=new Set;NJ._idPool=0;let LEi=-1;class NEi{constructor(e,i=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,i){const n=this.threshold;if(n<=0||i{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class tJe{static create(){var e;return new tJe((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` +`+e.stack):e},0)}}emit(e){this.listeners.forEach(i=>{i(e)})}onUnexpectedError(e){this.unexpectedErrorHandler(e),this.emit(e)}onUnexpectedExternalError(e){this.unexpectedErrorHandler(e)}}const hCt=new SEi;function Ns(r){Iy(r)||hCt.onUnexpectedError(r)}function j4(r){Iy(r)||hCt.onUnexpectedExternalError(r)}function Sgt(r){if(r instanceof Error){const{name:e,message:i}=r,n=r.stacktrace||r.stack;return{$isError:!0,name:e,message:i,stack:n,noTelemetry:NJ.isErrorNoTelemetry(r)}}return r}const l5e="Canceled";function Iy(r){return r instanceof sN?!0:r instanceof Error&&r.name===l5e&&r.message===l5e}class sN extends Error{constructor(){super(l5e),this.name=this.message}}function BEi(){const r=new Error(l5e);return r.name=r.message,r}function dx(r){return r?new Error(`Illegal argument: ${r}`):new Error("Illegal argument")}function nJe(r){return r?new Error(`Illegal state: ${r}`):new Error("Illegal state")}class wEi extends Error{constructor(e){super("NotSupported"),e&&(this.message=e)}}class NJ extends Error{constructor(e){super(e),this.name="CodeExpectedError"}static fromError(e){if(e instanceof NJ)return e;const i=new NJ;return i.message=e.message,i.stack=e.stack,i}static isErrorNoTelemetry(e){return e.name==="CodeExpectedError"}}class KA extends Error{constructor(e){super(e||"An unexpected bug occurred."),Object.setPrototypeOf(this,KA.prototype);debugger}}function wA(r){const e=this;let i=!1,n;return function(){return i||(i=!0,n=r.apply(e,arguments)),n}}function uJe(r){return typeof r.dispose=="function"&&r.dispose.length===0}function oc(r){if(K0.is(r)){const e=[];for(const i of r)if(i)try{i.dispose()}catch(n){e.push(n)}if(e.length===1)throw e[0];if(e.length>1)throw new AggregateError(e,"Encountered errors while disposing of store");return Array.isArray(r)?[]:r}else if(r)return r.dispose(),r}function QC(...r){return Ls(()=>oc(r))}function Ls(r){return{dispose:wA(()=>{r()})}}class cu{constructor(){this._toDispose=new Set,this._isDisposed=!1}dispose(){this._isDisposed||(this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{oc(this._toDispose)}finally{this._toDispose.clear()}}add(e){if(!e)return e;if(e===this)throw new Error("Cannot register a disposable on itself!");return this._isDisposed?cu.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(e),e}}cu.DISABLE_DISPOSED_WARNING=!1;class ln{constructor(){this._store=new cu,this._store}dispose(){this._store.dispose()}_register(e){if(e===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(e)}}ln.None=Object.freeze({dispose(){}});class O4{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(e){var i;this._isDisposed||e===this._value||((i=this._value)===null||i===void 0||i.dispose(),this._value=e)}clear(){this.value=void 0}dispose(){var e;this._isDisposed=!0,(e=this._value)===null||e===void 0||e.dispose(),this._value=void 0}clearAndLeak(){const e=this._value;return this._value=void 0,e}}class TEi{constructor(e){this._disposable=e,this._counter=1}acquire(){return this._counter++,this}release(){return--this._counter===0&&this._disposable.dispose(),this}}class LEi{constructor(){this.dispose=()=>{},this.unset=()=>{},this.isset=()=>!1}set(e){let i=e;return this.unset=()=>i=void 0,this.isset=()=>i!==void 0,this.dispose=()=>{i&&(i(),i=void 0)},this}}class NEi{constructor(e){this.object=e}dispose(){}}class rJe{constructor(){this._store=new Map,this._isDisposed=!1}dispose(){this._isDisposed=!0,this.clearAndDisposeAll()}clearAndDisposeAll(){if(this._store.size)try{oc(this._store.values())}finally{this._store.clear()}}get(e){return this._store.get(e)}set(e,i,n=!1){var a;this._isDisposed&&console.warn(new Error("Trying to add a disposable to a DisposableMap that has already been disposed of. The added object will be leaked!").stack),n||(a=this._store.get(e))===null||a===void 0||a.dispose(),this._store.set(e,i)}deleteAndDispose(e){var i;(i=this._store.get(e))===null||i===void 0||i.dispose(),this._store.delete(e)}[Symbol.iterator](){return this._store[Symbol.iterator]()}}const PEi=VD.performance&&typeof VD.performance.now=="function";class V3{static create(e=!0){return new V3(e)}constructor(e){this._highResolution=PEi&&e,this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}_now(){return this._highResolution?VD.performance.now():Date.now()}}var Ra;(function(r){r.None=()=>ln.None;function e(Ze,rt){return x(Ze,()=>{},0,void 0,!0,void 0,rt)}r.defer=e;function i(Ze){return(rt,kt=null,Zt)=>{let jt=!1,ui;return ui=Ze(ti=>{if(!jt)return ui?ui.dispose():jt=!0,rt.call(kt,ti)},null,Zt),jt&&ui.dispose(),ui}}r.once=i;function n(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>Zt.call(jt,rt(ti)),null,ui),kt)}r.map=n;function a(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>{rt(ti),Zt.call(jt,ti)},null,ui),kt)}r.forEach=a;function o(Ze,rt,kt){return _((Zt,jt=null,ui)=>Ze(ti=>rt(ti)&&Zt.call(jt,ti),null,ui),kt)}r.filter=o;function c(Ze){return Ze}r.signal=c;function h(...Ze){return(rt,kt=null,Zt)=>QC(...Ze.map(jt=>jt(ui=>rt.call(kt,ui),null,Zt)))}r.any=h;function g(Ze,rt,kt,Zt){let jt=kt;return n(Ze,ui=>(jt=rt(jt,ui),jt),Zt)}r.reduce=g;function _(Ze,rt){let kt;const Zt={onWillAddFirstListener(){kt=Ze(jt.fire,jt)},onDidRemoveLastListener(){kt==null||kt.dispose()}},jt=new ki(Zt);return rt==null||rt.add(jt),jt.event}function x(Ze,rt,kt=100,Zt=!1,jt=!1,ui,ti){let qu,gu,Vt,Ir=0,Pu;const Ha={leakWarningThreshold:ui,onWillAddFirstListener(){qu=Ze(Nr=>{Ir++,gu=rt(gu,Nr),Zt&&!Vt&&(Vu.fire(gu),gu=void 0),Pu=()=>{const ga=gu;gu=void 0,Vt=void 0,(!Zt||Ir>1)&&Vu.fire(ga),Ir=0},typeof kt=="number"?(clearTimeout(Vt),Vt=setTimeout(Pu,kt)):Vt===void 0&&(Vt=0,queueMicrotask(Pu))})},onWillRemoveListener(){jt&&Ir>0&&(Pu==null||Pu())},onDidRemoveLastListener(){Pu=void 0,qu.dispose()}},Vu=new ki(Ha);return ti==null||ti.add(Vu),Vu.event}r.debounce=x;function y(Ze,rt=0,kt){return r.debounce(Ze,(Zt,jt)=>Zt?(Zt.push(jt),Zt):[jt],rt,void 0,!0,void 0,kt)}r.accumulate=y;function S(Ze,rt=(Zt,jt)=>Zt===jt,kt){let Zt=!0,jt;return o(Ze,ui=>{const ti=Zt||!rt(ui,jt);return Zt=!1,jt=ui,ti},kt)}r.latch=S;function L(Ze,rt,kt){return[r.filter(Ze,rt,kt),r.filter(Ze,Zt=>!rt(Zt),kt)]}r.split=L;function R(Ze,rt=!1,kt=[]){let Zt=kt.slice(),jt=Ze(qu=>{Zt?Zt.push(qu):ti.fire(qu)});const ui=()=>{Zt==null||Zt.forEach(qu=>ti.fire(qu)),Zt=null},ti=new ki({onWillAddFirstListener(){jt||(jt=Ze(qu=>ti.fire(qu)))},onDidAddFirstListener(){Zt&&(rt?setTimeout(ui):ui())},onDidRemoveLastListener(){jt&&jt.dispose(),jt=null}});return ti.event}r.buffer=R;class G{constructor(rt){this.event=rt,this.disposables=new cu}map(rt){return new G(n(this.event,rt,this.disposables))}forEach(rt){return new G(a(this.event,rt,this.disposables))}filter(rt){return new G(o(this.event,rt,this.disposables))}reduce(rt,kt){return new G(g(this.event,rt,kt,this.disposables))}latch(){return new G(S(this.event,void 0,this.disposables))}debounce(rt,kt=100,Zt=!1,jt=!1,ui){return new G(x(this.event,rt,kt,Zt,jt,ui,this.disposables))}on(rt,kt,Zt){return this.event(rt,kt,Zt)}once(rt,kt,Zt){return i(this.event)(rt,kt,Zt)}dispose(){this.disposables.dispose()}}function ie(Ze){return new G(Ze)}r.chain=ie;function ue(Ze,rt,kt=Zt=>Zt){const Zt=(...qu)=>ti.fire(kt(...qu)),jt=()=>Ze.on(rt,Zt),ui=()=>Ze.removeListener(rt,Zt),ti=new ki({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromNodeEventEmitter=ue;function re(Ze,rt,kt=Zt=>Zt){const Zt=(...qu)=>ti.fire(kt(...qu)),jt=()=>Ze.addEventListener(rt,Zt),ui=()=>Ze.removeEventListener(rt,Zt),ti=new ki({onWillAddFirstListener:jt,onDidRemoveLastListener:ui});return ti.event}r.fromDOMEventEmitter=re;function _e(Ze){return new Promise(rt=>i(Ze)(rt))}r.toPromise=_e;function ye(Ze,rt){return rt(void 0),Ze(kt=>rt(kt))}r.runAndSubscribe=ye;function Le(Ze,rt){let kt=null;function Zt(ui){kt==null||kt.dispose(),kt=new cu,rt(ui,kt)}Zt(void 0);const jt=Ze(ui=>Zt(ui));return Ls(()=>{jt.dispose(),kt==null||kt.dispose()})}r.runAndSubscribeWithStore=Le;class lt{constructor(rt,kt){this.obs=rt,this._counter=0,this._hasChanged=!1;const Zt={onWillAddFirstListener:()=>{rt.addObserver(this)},onDidRemoveLastListener:()=>{rt.removeObserver(this)}};this.emitter=new ki(Zt),kt&&kt.add(this.emitter)}beginUpdate(rt){this._counter++}handleChange(rt,kt){this._hasChanged=!0}endUpdate(rt){--this._counter===0&&this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this.obs.get()))}}function Ue(Ze,rt){return new lt(Ze,rt).emitter.event}r.fromObservable=Ue})(Ra||(Ra={}));class PJ{constructor(e){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${e}_${PJ._idPool++}`,PJ.all.add(this)}start(e){this._stopWatch=new V3(!0),this.listenerCount=e}stop(){if(this._stopWatch){const e=this._stopWatch.elapsed();this.durations.push(e),this.elapsedOverall+=e,this.invocationCount+=1,this._stopWatch=void 0}}}PJ.all=new Set;PJ._idPool=0;let MEi=-1;class zEi{constructor(e,i=Math.random().toString(18).slice(2,5)){this.threshold=e,this.name=i,this._warnCountdown=0}dispose(){var e;(e=this._stacks)===null||e===void 0||e.clear()}check(e,i){const n=this.threshold;if(n<=0||i{const o=this._stacks.get(e.value)||0;this._stacks.set(e.value,o-1)}}}class aJe{static create(){var e;return new aJe((e=new Error().stack)!==null&&e!==void 0?e:"")}constructor(e){this.value=e}print(){console.warn(this.value.split(` `).slice(2).join(` -`))}}class PEi{constructor(e,i,n){this.callback=e,this.callbackThis=i,this.stack=n,this.subscription=new BEi}invoke(e){this.callback.call(this.callbackThis,e)}}let Fi=class{constructor(e){var i,n,a,o,c;this._disposed=!1,this._options=e,this._leakageMon=!((i=this._options)===null||i===void 0)&&i.leakWarningThreshold?new NEi((a=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&a!==void 0?a:LEi):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new NJ(this._options._profName):void 0,this._deliveryQueue=(c=this._options)===null||c===void 0?void 0:c.deliveryQueue}dispose(){var e,i,n,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||n===void 0||n.call(i),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(e,i,n)=>{var a,o,c;if(this._listeners||(this._listeners=new ug),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ln.None;const h=this._listeners.isEmpty();h&&(!((a=this._options)===null||a===void 0)&&a.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this);let g,_;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(_=tJe.create(),g=this._leakageMon.check(_,this._listeners.size+1));const x=new PEi(e,i,_),y=this._listeners.push(x);h&&(!((o=this._options)===null||o===void 0)&&o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),!((c=this._options)===null||c===void 0)&&c.onDidAddListener&&this._options.onDidAddListener(this,e,i);const S=x.subscription.set(()=>{var L,O;g==null||g(),this._disposed||((O=(L=this._options)===null||L===void 0?void 0:L.onWillRemoveListener)===null||O===void 0||O.call(L,this),y(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return n instanceof cu?n.add(S):Array.isArray(n)&&n.push(S),S}),this._event}fire(e){var i,n,a;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new MEi((i=this._options)===null||i===void 0?void 0:i.onListenerError));for(const o of this._listeners)this._deliveryQueue.push(this,o,e);(n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(a=this._perfMon)===null||a===void 0||a.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class lCt{constructor(e=Ls){this._onListenerError=e,this._queue=new ug}get size(){return this._queue.size}push(e,i,n){this._queue.push(new zEi(e,i,n))}clear(e){const i=new ug;for(const n of this._queue)n.emitter!==e&&i.push(n);this._queue=i}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(i){this._onListenerError(i)}}}}class MEi extends lCt{clear(e){this._queue.clear()}}class zEi{constructor(e,i,n){this.emitter=e,this.listener=i,this.event=n}}class PJ extends Fi{constructor(e){super(e),this._isPaused=0,this._eventQueue=new ug,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class cCt extends PJ{constructor(e){var i;super(e),this._delay=(i=e.delay)!==null&&i!==void 0?i:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class IEi extends Fi{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}}class REi{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new Fi({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const i={event:e,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),Ts(wA(()=>{this.hasListeners&&this.unhook(i);const a=this.events.indexOf(i);this.events.splice(a,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(i=>this.emitter.fire(i))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class iJe{constructor(){this.buffers=[]}wrapEvent(e){return(i,n,a)=>e(o=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>i.call(n,o)):i.call(n,o)},void 0,a)}bufferEvents(e){const i=[];this.buffers.push(i);const n=e();return this.buffers.pop(),i.forEach(a=>a()),n}}class ygt{constructor(){this.listening=!1,this.inputEvent=Ia.None,this.inputEventListener=ln.None,this.emitter=new Fi({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const dCt=Object.freeze(function(r,e){const i=setTimeout(r.bind(e),0);return{dispose(){clearTimeout(i)}}});var E0;(function(r){function e(i){return i===r.None||i===r.Cancelled||i instanceof tDe?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}r.isCancellationToken=e,r.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ia.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:dCt})})(E0||(E0={}));class tDe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?dCt:(this._emitter||(this._emitter=new Fi),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Ap=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new tDe),this._token}cancel(){this._token?this._token instanceof tDe&&this._token.cancel():this._token=E0.Cancelled}dispose(e=!1){var i;e&&this.cancel(),(i=this._parentListener)===null||i===void 0||i.dispose(),this._token?this._token instanceof tDe&&this._token.dispose():this._token=E0.None}};class nJe{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,i){this._keyCodeToStr[e]=i,this._strToKeyCode[i.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const iDe=new nJe,gje=new nJe,Eje=new nJe,hCt=new Array(230),OEi=Object.create(null),jEi=Object.create(null),uJe=[];for(let r=0;r<=193;r++)uJe[r]=-1;(function(){const r="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",r,r],[0,1,1,"Hyper",0,r,0,r,r,r],[0,1,2,"Super",0,r,0,r,r,r],[0,1,3,"Fn",0,r,0,r,r,r],[0,1,4,"FnLock",0,r,0,r,r,r],[0,1,5,"Suspend",0,r,0,r,r,r],[0,1,6,"Resume",0,r,0,r,r,r],[0,1,7,"Turbo",0,r,0,r,r,r],[0,1,8,"Sleep",0,r,0,"VK_SLEEP",r,r],[0,1,9,"WakeUp",0,r,0,r,r,r],[31,0,10,"KeyA",31,"A",65,"VK_A",r,r],[32,0,11,"KeyB",32,"B",66,"VK_B",r,r],[33,0,12,"KeyC",33,"C",67,"VK_C",r,r],[34,0,13,"KeyD",34,"D",68,"VK_D",r,r],[35,0,14,"KeyE",35,"E",69,"VK_E",r,r],[36,0,15,"KeyF",36,"F",70,"VK_F",r,r],[37,0,16,"KeyG",37,"G",71,"VK_G",r,r],[38,0,17,"KeyH",38,"H",72,"VK_H",r,r],[39,0,18,"KeyI",39,"I",73,"VK_I",r,r],[40,0,19,"KeyJ",40,"J",74,"VK_J",r,r],[41,0,20,"KeyK",41,"K",75,"VK_K",r,r],[42,0,21,"KeyL",42,"L",76,"VK_L",r,r],[43,0,22,"KeyM",43,"M",77,"VK_M",r,r],[44,0,23,"KeyN",44,"N",78,"VK_N",r,r],[45,0,24,"KeyO",45,"O",79,"VK_O",r,r],[46,0,25,"KeyP",46,"P",80,"VK_P",r,r],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",r,r],[48,0,27,"KeyR",48,"R",82,"VK_R",r,r],[49,0,28,"KeyS",49,"S",83,"VK_S",r,r],[50,0,29,"KeyT",50,"T",84,"VK_T",r,r],[51,0,30,"KeyU",51,"U",85,"VK_U",r,r],[52,0,31,"KeyV",52,"V",86,"VK_V",r,r],[53,0,32,"KeyW",53,"W",87,"VK_W",r,r],[54,0,33,"KeyX",54,"X",88,"VK_X",r,r],[55,0,34,"KeyY",55,"Y",89,"VK_Y",r,r],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",r,r],[22,0,36,"Digit1",22,"1",49,"VK_1",r,r],[23,0,37,"Digit2",23,"2",50,"VK_2",r,r],[24,0,38,"Digit3",24,"3",51,"VK_3",r,r],[25,0,39,"Digit4",25,"4",52,"VK_4",r,r],[26,0,40,"Digit5",26,"5",53,"VK_5",r,r],[27,0,41,"Digit6",27,"6",54,"VK_6",r,r],[28,0,42,"Digit7",28,"7",55,"VK_7",r,r],[29,0,43,"Digit8",29,"8",56,"VK_8",r,r],[30,0,44,"Digit9",30,"9",57,"VK_9",r,r],[21,0,45,"Digit0",21,"0",48,"VK_0",r,r],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",r,r],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",r,r],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",r,r],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",r,r],[10,1,50,"Space",10,"Space",32,"VK_SPACE",r,r],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,r,0,r,r,r],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",r,r],[59,1,64,"F1",59,"F1",112,"VK_F1",r,r],[60,1,65,"F2",60,"F2",113,"VK_F2",r,r],[61,1,66,"F3",61,"F3",114,"VK_F3",r,r],[62,1,67,"F4",62,"F4",115,"VK_F4",r,r],[63,1,68,"F5",63,"F5",116,"VK_F5",r,r],[64,1,69,"F6",64,"F6",117,"VK_F6",r,r],[65,1,70,"F7",65,"F7",118,"VK_F7",r,r],[66,1,71,"F8",66,"F8",119,"VK_F8",r,r],[67,1,72,"F9",67,"F9",120,"VK_F9",r,r],[68,1,73,"F10",68,"F10",121,"VK_F10",r,r],[69,1,74,"F11",69,"F11",122,"VK_F11",r,r],[70,1,75,"F12",70,"F12",123,"VK_F12",r,r],[0,1,76,"PrintScreen",0,r,0,r,r,r],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",r,r],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",r,r],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",r,r],[14,1,80,"Home",14,"Home",36,"VK_HOME",r,r],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",r,r],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",r,r],[13,1,83,"End",13,"End",35,"VK_END",r,r],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",r,r],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",r],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",r],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",r],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",r],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",r,r],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",r,r],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",r,r],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",r,r],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",r,r],[3,1,94,"NumpadEnter",3,r,0,r,r,r],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",r,r],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",r,r],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",r,r],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",r,r],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",r,r],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",r,r],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",r,r],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",r,r],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",r,r],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",r,r],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",r,r],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",r,r],[58,1,107,"ContextMenu",58,"ContextMenu",93,r,r,r],[0,1,108,"Power",0,r,0,r,r,r],[0,1,109,"NumpadEqual",0,r,0,r,r,r],[71,1,110,"F13",71,"F13",124,"VK_F13",r,r],[72,1,111,"F14",72,"F14",125,"VK_F14",r,r],[73,1,112,"F15",73,"F15",126,"VK_F15",r,r],[74,1,113,"F16",74,"F16",127,"VK_F16",r,r],[75,1,114,"F17",75,"F17",128,"VK_F17",r,r],[76,1,115,"F18",76,"F18",129,"VK_F18",r,r],[77,1,116,"F19",77,"F19",130,"VK_F19",r,r],[0,1,117,"F20",0,r,0,"VK_F20",r,r],[0,1,118,"F21",0,r,0,"VK_F21",r,r],[0,1,119,"F22",0,r,0,"VK_F22",r,r],[0,1,120,"F23",0,r,0,"VK_F23",r,r],[0,1,121,"F24",0,r,0,"VK_F24",r,r],[0,1,122,"Open",0,r,0,r,r,r],[0,1,123,"Help",0,r,0,r,r,r],[0,1,124,"Select",0,r,0,r,r,r],[0,1,125,"Again",0,r,0,r,r,r],[0,1,126,"Undo",0,r,0,r,r,r],[0,1,127,"Cut",0,r,0,r,r,r],[0,1,128,"Copy",0,r,0,r,r,r],[0,1,129,"Paste",0,r,0,r,r,r],[0,1,130,"Find",0,r,0,r,r,r],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",r,r],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",r,r],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",r,r],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",r,r],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",r,r],[0,1,136,"KanaMode",0,r,0,r,r,r],[0,0,137,"IntlYen",0,r,0,r,r,r],[0,1,138,"Convert",0,r,0,r,r,r],[0,1,139,"NonConvert",0,r,0,r,r,r],[0,1,140,"Lang1",0,r,0,r,r,r],[0,1,141,"Lang2",0,r,0,r,r,r],[0,1,142,"Lang3",0,r,0,r,r,r],[0,1,143,"Lang4",0,r,0,r,r,r],[0,1,144,"Lang5",0,r,0,r,r,r],[0,1,145,"Abort",0,r,0,r,r,r],[0,1,146,"Props",0,r,0,r,r,r],[0,1,147,"NumpadParenLeft",0,r,0,r,r,r],[0,1,148,"NumpadParenRight",0,r,0,r,r,r],[0,1,149,"NumpadBackspace",0,r,0,r,r,r],[0,1,150,"NumpadMemoryStore",0,r,0,r,r,r],[0,1,151,"NumpadMemoryRecall",0,r,0,r,r,r],[0,1,152,"NumpadMemoryClear",0,r,0,r,r,r],[0,1,153,"NumpadMemoryAdd",0,r,0,r,r,r],[0,1,154,"NumpadMemorySubtract",0,r,0,r,r,r],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",r,r],[0,1,156,"NumpadClearEntry",0,r,0,r,r,r],[5,1,0,r,5,"Ctrl",17,"VK_CONTROL",r,r],[4,1,0,r,4,"Shift",16,"VK_SHIFT",r,r],[6,1,0,r,6,"Alt",18,"VK_MENU",r,r],[57,1,0,r,57,"Meta",91,"VK_COMMAND",r,r],[5,1,157,"ControlLeft",5,r,0,"VK_LCONTROL",r,r],[4,1,158,"ShiftLeft",4,r,0,"VK_LSHIFT",r,r],[6,1,159,"AltLeft",6,r,0,"VK_LMENU",r,r],[57,1,160,"MetaLeft",57,r,0,"VK_LWIN",r,r],[5,1,161,"ControlRight",5,r,0,"VK_RCONTROL",r,r],[4,1,162,"ShiftRight",4,r,0,"VK_RSHIFT",r,r],[6,1,163,"AltRight",6,r,0,"VK_RMENU",r,r],[57,1,164,"MetaRight",57,r,0,"VK_RWIN",r,r],[0,1,165,"BrightnessUp",0,r,0,r,r,r],[0,1,166,"BrightnessDown",0,r,0,r,r,r],[0,1,167,"MediaPlay",0,r,0,r,r,r],[0,1,168,"MediaRecord",0,r,0,r,r,r],[0,1,169,"MediaFastForward",0,r,0,r,r,r],[0,1,170,"MediaRewind",0,r,0,r,r,r],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",r,r],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",r,r],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",r,r],[0,1,174,"Eject",0,r,0,r,r,r],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",r,r],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",r,r],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",r,r],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",r,r],[0,1,179,"LaunchApp1",0,r,0,"VK_MEDIA_LAUNCH_APP1",r,r],[0,1,180,"SelectTask",0,r,0,r,r,r],[0,1,181,"LaunchScreenSaver",0,r,0,r,r,r],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",r,r],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",r,r],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",r,r],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",r,r],[0,1,186,"BrowserStop",0,r,0,"VK_BROWSER_STOP",r,r],[0,1,187,"BrowserRefresh",0,r,0,"VK_BROWSER_REFRESH",r,r],[0,1,188,"BrowserFavorites",0,r,0,"VK_BROWSER_FAVORITES",r,r],[0,1,189,"ZoomToggle",0,r,0,r,r,r],[0,1,190,"MailReply",0,r,0,r,r,r],[0,1,191,"MailForward",0,r,0,r,r,r],[0,1,192,"MailSend",0,r,0,r,r,r],[109,1,0,r,109,"KeyInComposition",229,r,r,r],[111,1,0,r,111,"ABNT_C2",194,"VK_ABNT_C2",r,r],[91,1,0,r,91,"OEM_8",223,"VK_OEM_8",r,r],[0,1,0,r,0,r,0,"VK_KANA",r,r],[0,1,0,r,0,r,0,"VK_HANGUL",r,r],[0,1,0,r,0,r,0,"VK_JUNJA",r,r],[0,1,0,r,0,r,0,"VK_FINAL",r,r],[0,1,0,r,0,r,0,"VK_HANJA",r,r],[0,1,0,r,0,r,0,"VK_KANJI",r,r],[0,1,0,r,0,r,0,"VK_CONVERT",r,r],[0,1,0,r,0,r,0,"VK_NONCONVERT",r,r],[0,1,0,r,0,r,0,"VK_ACCEPT",r,r],[0,1,0,r,0,r,0,"VK_MODECHANGE",r,r],[0,1,0,r,0,r,0,"VK_SELECT",r,r],[0,1,0,r,0,r,0,"VK_PRINT",r,r],[0,1,0,r,0,r,0,"VK_EXECUTE",r,r],[0,1,0,r,0,r,0,"VK_SNAPSHOT",r,r],[0,1,0,r,0,r,0,"VK_HELP",r,r],[0,1,0,r,0,r,0,"VK_APPS",r,r],[0,1,0,r,0,r,0,"VK_PROCESSKEY",r,r],[0,1,0,r,0,r,0,"VK_PACKET",r,r],[0,1,0,r,0,r,0,"VK_DBE_SBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_DBE_DBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_ATTN",r,r],[0,1,0,r,0,r,0,"VK_CRSEL",r,r],[0,1,0,r,0,r,0,"VK_EXSEL",r,r],[0,1,0,r,0,r,0,"VK_EREOF",r,r],[0,1,0,r,0,r,0,"VK_PLAY",r,r],[0,1,0,r,0,r,0,"VK_ZOOM",r,r],[0,1,0,r,0,r,0,"VK_NONAME",r,r],[0,1,0,r,0,r,0,"VK_PA1",r,r],[0,1,0,r,0,r,0,"VK_OEM_CLEAR",r,r]],i=[],n=[];for(const a of e){const[o,c,h,g,_,x,y,S,L,O]=a;if(n[h]||(n[h]=!0,OEi[g]=h,jEi[g.toLowerCase()]=h,c&&(uJe[h]=_)),!i[_]){if(i[_]=!0,!x)throw new Error(`String representation missing for key code ${_} around scan code ${g}`);iDe.define(_,x),gje.define(_,L||x),Eje.define(_,O||L||x)}y&&(hCt[y]=_)}})();var AS;(function(r){function e(h){return iDe.keyCodeToStr(h)}r.toString=e;function i(h){return iDe.strToKeyCode(h)}r.fromString=i;function n(h){return gje.keyCodeToStr(h)}r.toUserSettingsUS=n;function a(h){return Eje.keyCodeToStr(h)}r.toUserSettingsGeneral=a;function o(h){return gje.strToKeyCode(h)||Eje.strToKeyCode(h)}r.fromUserSettings=o;function c(h){if(h>=93&&h<=108)return null;switch(h){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return iDe.keyCodeToStr(h)}r.toElectronAccelerator=c})(AS||(AS={}));function Am(r,e){const i=(e&65535)<<16>>>0;return(r|i)>>>0}var kgt={};let nJ;if(typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"){const r=VD.vscode.process;nJ={get platform(){return r.platform},get arch(){return r.arch},get env(){return r.env},cwd(){return r.cwd()}}}else typeof process<"u"?nJ={get platform(){return process.platform},get arch(){return process.arch},get env(){return kgt},cwd(){return kgt.VSCODE_CWD||process.cwd()}}:nJ={get platform(){return Fp?"win32":d0?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const a5e=nJ.cwd,VEi=nJ.env,HEi=nJ.platform,KEi=65,WEi=97,GEi=90,JEi=122,xL=46,PE=47,q5=92,bT=58,$Ei=63;class fCt extends Error{constructor(e,i,n){let a;typeof i=="string"&&i.indexOf("not ")===0?(a="must not be",i=i.replace(/^not /,"")):a="must be";const o=e.indexOf(".")!==-1?"property":"argument";let c=`The "${e}" ${o} ${a} of type ${i}`;c+=`. Received type ${typeof n}`,super(c),this.code="ERR_INVALID_ARG_TYPE"}}function UEi(r,e){if(r===null||typeof r!="object")throw new fCt(e,"Object",r)}function T4(r,e){if(typeof r!="string")throw new fCt(e,"string",r)}const sN=HEi==="win32";function mc(r){return r===PE||r===q5}function _je(r){return r===PE}function yT(r){return r>=KEi&&r<=GEi||r>=WEi&&r<=JEi}function o5e(r,e,i,n){let a="",o=0,c=-1,h=0,g=0;for(let _=0;_<=r.length;++_){if(_2){const x=a.lastIndexOf(i);x===-1?(a="",o=0):(a=a.slice(0,x),o=a.length-1-a.lastIndexOf(i)),c=_,h=0;continue}else if(a.length!==0){a="",o=0,c=_,h=0;continue}}e&&(a+=a.length>0?`${i}..`:"..",o=2)}else a.length>0?a+=`${i}${r.slice(c+1,_)}`:a=r.slice(c+1,_),o=_-c-1;c=_,h=0}else g===xL&&h!==-1?++h:h=-1}return a}function mCt(r,e){UEi(e,"pathObject");const i=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return i?i===e.root?`${i}${n}`:`${i}${r}${n}`:n}const OD={resolve(...r){let e="",i="",n=!1;for(let a=r.length-1;a>=-1;a--){let o;if(a>=0){if(o=r[a],T4(o,"path"),o.length===0)continue}else e.length===0?o=a5e():(o=VEi[`=${e}`]||a5e(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===q5)&&(o=`${e}\\`));const c=o.length;let h=0,g="",_=!1;const x=o.charCodeAt(0);if(c===1)mc(x)&&(h=1,_=!0);else if(mc(x))if(_=!0,mc(o.charCodeAt(1))){let y=2,S=y;for(;y2&&mc(o.charCodeAt(2))&&(_=!0,h=3));if(g.length>0)if(e.length>0){if(g.toLowerCase()!==e.toLowerCase())continue}else e=g;if(n){if(e.length>0)break}else if(i=`${o.slice(h)}\\${i}`,n=_,_&&e.length>0)break}return i=o5e(i,!n,"\\",mc),n?`${e}\\${i}`:`${e}${i}`||"."},normalize(r){T4(r,"path");const e=r.length;if(e===0)return".";let i=0,n,a=!1;const o=r.charCodeAt(0);if(e===1)return _je(o)?"\\":r;if(mc(o))if(a=!0,mc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&mc(r.charCodeAt(2))&&(a=!0,i=3));let c=i0&&mc(r.charCodeAt(e-1))&&(c+="\\"),n===void 0?a?`\\${c}`:c:a?`${n}\\${c}`:`${n}${c}`},isAbsolute(r){T4(r,"path");const e=r.length;if(e===0)return!1;const i=r.charCodeAt(0);return mc(i)||e>2&&yT(i)&&r.charCodeAt(1)===bT&&mc(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let e,i;for(let o=0;o0&&(e===void 0?e=i=c:e+=`\\${c}`)}if(e===void 0)return".";let n=!0,a=0;if(typeof i=="string"&&mc(i.charCodeAt(0))){++a;const o=i.length;o>1&&mc(i.charCodeAt(1))&&(++a,o>2&&(mc(i.charCodeAt(2))?++a:n=!1))}if(n){for(;a=2&&(e=`\\${e.slice(a)}`)}return OD.normalize(e)},relative(r,e){if(T4(r,"from"),T4(e,"to"),r===e)return"";const i=OD.resolve(r),n=OD.resolve(e);if(i===n||(r=i.toLowerCase(),e=n.toLowerCase(),r===e))return"";let a=0;for(;aa&&r.charCodeAt(o-1)===q5;)o--;const c=o-a;let h=0;for(;hh&&e.charCodeAt(g-1)===q5;)g--;const _=g-h,x=c<_?c:_;let y=-1,S=0;for(;Sx){if(e.charCodeAt(h+S)===q5)return n.slice(h+S+1);if(S===2)return n.slice(h+S)}c>x&&(r.charCodeAt(a+S)===q5?y=S:S===2&&(y=3)),y===-1&&(y=0)}let L="";for(S=a+y+1;S<=o;++S)(S===o||r.charCodeAt(S)===q5)&&(L+=L.length===0?"..":"\\..");return h+=y,L.length>0?`${L}${n.slice(h,g)}`:(n.charCodeAt(h)===q5&&++h,n.slice(h,g))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;const e=OD.resolve(r);if(e.length<=2)return r;if(e.charCodeAt(0)===q5){if(e.charCodeAt(1)===q5){const i=e.charCodeAt(2);if(i!==$Ei&&i!==xL)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(yT(e.charCodeAt(0))&&e.charCodeAt(1)===bT&&e.charCodeAt(2)===q5)return`\\\\?\\${e}`;return r},dirname(r){T4(r,"path");const e=r.length;if(e===0)return".";let i=-1,n=0;const a=r.charCodeAt(0);if(e===1)return mc(a)?r:".";if(mc(a)){if(i=n=1,mc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&mc(r.charCodeAt(2))?3:2,n=i);let o=-1,c=!0;for(let h=e-1;h>=n;--h)if(mc(r.charCodeAt(h))){if(!c){o=h;break}}else c=!1;if(o===-1){if(i===-1)return".";o=i}return r.slice(0,o)},basename(r,e){e!==void 0&&T4(e,"ext"),T4(r,"path");let i=0,n=-1,a=!0,o;if(r.length>=2&&yT(r.charCodeAt(0))&&r.charCodeAt(1)===bT&&(i=2),e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=i;--o){const g=r.charCodeAt(o);if(mc(g)){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=i;--o)if(mc(r.charCodeAt(o))){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){T4(r,"path");let e=0,i=-1,n=0,a=-1,o=!0,c=0;r.length>=2&&r.charCodeAt(1)===bT&&yT(r.charCodeAt(0))&&(e=n=2);for(let h=r.length-1;h>=e;--h){const g=r.charCodeAt(h);if(mc(g)){if(!o){n=h+1;break}continue}a===-1&&(o=!1,a=h+1),g===xL?i===-1?i=h:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||a===-1||c===0||c===1&&i===a-1&&i===n+1?"":r.slice(i,a)},format:mCt.bind(null,"\\"),parse(r){T4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.length;let n=0,a=r.charCodeAt(0);if(i===1)return mc(a)?(e.root=e.dir=r,e):(e.base=e.name=r,e);if(mc(a)){if(n=1,mc(r.charCodeAt(1))){let y=2,S=y;for(;y0&&(e.root=r.slice(0,n));let o=-1,c=n,h=-1,g=!0,_=r.length-1,x=0;for(;_>=n;--_){if(a=r.charCodeAt(_),mc(a)){if(!g){c=_+1;break}continue}h===-1&&(g=!1,h=_+1),a===xL?o===-1?o=_:x!==1&&(x=1):o!==-1&&(x=-1)}return h!==-1&&(o===-1||x===0||x===1&&o===h-1&&o===c+1?e.base=e.name=r.slice(c,h):(e.name=r.slice(c,o),e.base=r.slice(c,h),e.ext=r.slice(o,h))),c>0&&c!==n?e.dir=r.slice(0,c-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},qEi=(()=>{if(sN){const r=/\\/g;return()=>{const e=a5e().replace(r,"/");return e.slice(e.indexOf("/"))}}return()=>a5e()})(),nm={resolve(...r){let e="",i=!1;for(let n=r.length-1;n>=-1&&!i;n--){const a=n>=0?r[n]:qEi();T4(a,"path"),a.length!==0&&(e=`${a}/${e}`,i=a.charCodeAt(0)===PE)}return e=o5e(e,!i,"/",_je),i?`/${e}`:e.length>0?e:"."},normalize(r){if(T4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===PE,i=r.charCodeAt(r.length-1)===PE;return r=o5e(r,!e,"/",_je),r.length===0?e?"/":i?"./":".":(i&&(r+="/"),e?`/${r}`:r)},isAbsolute(r){return T4(r,"path"),r.length>0&&r.charCodeAt(0)===PE},join(...r){if(r.length===0)return".";let e;for(let i=0;i0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":nm.normalize(e)},relative(r,e){if(T4(r,"from"),T4(e,"to"),r===e||(r=nm.resolve(r),e=nm.resolve(e),r===e))return"";const i=1,n=r.length,a=n-i,o=1,c=e.length-o,h=ah){if(e.charCodeAt(o+_)===PE)return e.slice(o+_+1);if(_===0)return e.slice(o+_)}else a>h&&(r.charCodeAt(i+_)===PE?g=_:_===0&&(g=0));let x="";for(_=i+g+1;_<=n;++_)(_===n||r.charCodeAt(_)===PE)&&(x+=x.length===0?"..":"/..");return`${x}${e.slice(o+g)}`},toNamespacedPath(r){return r},dirname(r){if(T4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===PE;let i=-1,n=!0;for(let a=r.length-1;a>=1;--a)if(r.charCodeAt(a)===PE){if(!n){i=a;break}}else n=!1;return i===-1?e?"/":".":e&&i===1?"//":r.slice(0,i)},basename(r,e){e!==void 0&&T4(e,"ext"),T4(r,"path");let i=0,n=-1,a=!0,o;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=0;--o){const g=r.charCodeAt(o);if(g===PE){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=0;--o)if(r.charCodeAt(o)===PE){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){T4(r,"path");let e=-1,i=0,n=-1,a=!0,o=0;for(let c=r.length-1;c>=0;--c){const h=r.charCodeAt(c);if(h===PE){if(!a){i=c+1;break}continue}n===-1&&(a=!1,n=c+1),h===xL?e===-1?e=c:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||n===-1||o===0||o===1&&e===n-1&&e===i+1?"":r.slice(e,n)},format:mCt.bind(null,"/"),parse(r){T4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.charCodeAt(0)===PE;let n;i?(e.root="/",n=1):n=0;let a=-1,o=0,c=-1,h=!0,g=r.length-1,_=0;for(;g>=n;--g){const x=r.charCodeAt(g);if(x===PE){if(!h){o=g+1;break}continue}c===-1&&(h=!1,c=g+1),x===xL?a===-1?a=g:_!==1&&(_=1):a!==-1&&(_=-1)}if(c!==-1){const x=o===0&&i?1:o;a===-1||_===0||_===1&&a===c-1&&a===o+1?e.base=e.name=r.slice(x,c):(e.name=r.slice(x,a),e.base=r.slice(x,c),e.ext=r.slice(a,c))}return o>0?e.dir=r.slice(0,o-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};nm.win32=OD.win32=OD;nm.posix=OD.posix=nm;const pCt=sN?OD.normalize:nm.normalize,ZEi=sN?OD.resolve:nm.resolve,YEi=sN?OD.relative:nm.relative,gCt=sN?OD.dirname:nm.dirname,vL=sN?OD.basename:nm.basename,QEi=sN?OD.extname:nm.extname,xy=sN?OD.sep:nm.sep,XEi=/^\w[\w\d+.-]*$/,e_i=/^\//,t_i=/^\/\//;function Fgt(r,e){if(!r.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!XEi.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!e_i.test(r.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(t_i.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function i_i(r,e){return!r&&!e?"file":r}function n_i(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==iy&&(e=iy+e):e=iy;break}return e}const mf="",iy="/",u_i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class no{static isUri(e){return e instanceof no?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,i,n,a,o,c=!1){typeof e=="object"?(this.scheme=e.scheme||mf,this.authority=e.authority||mf,this.path=e.path||mf,this.query=e.query||mf,this.fragment=e.fragment||mf):(this.scheme=i_i(e,c),this.authority=i||mf,this.path=n_i(this.scheme,n||mf),this.query=a||mf,this.fragment=o||mf,Fgt(this,c))}get fsPath(){return s5e(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:n,path:a,query:o,fragment:c}=e;return i===void 0?i=this.scheme:i===null&&(i=mf),n===void 0?n=this.authority:n===null&&(n=mf),a===void 0?a=this.path:a===null&&(a=mf),o===void 0?o=this.query:o===null&&(o=mf),c===void 0?c=this.fragment:c===null&&(c=mf),i===this.scheme&&n===this.authority&&a===this.path&&o===this.query&&c===this.fragment?this:new GW(i,n,a,o,c)}static parse(e,i=!1){const n=u_i.exec(e);return n?new GW(n[2]||mf,A_e(n[4]||mf),A_e(n[5]||mf),A_e(n[7]||mf),A_e(n[9]||mf),i):new GW(mf,mf,mf,mf,mf)}static file(e){let i=mf;if(Fp&&(e=e.replace(/\\/g,iy)),e[0]===iy&&e[1]===iy){const n=e.indexOf(iy,2);n===-1?(i=e.substring(2),e=iy):(i=e.substring(2,n),e=e.substring(n)||iy)}return new GW("file",i,e,mf,mf)}static from(e){const i=new GW(e.scheme,e.authority,e.path,e.query,e.fragment);return Fgt(i,!0),i}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Fp&&e.scheme==="file"?n=no.file(OD.join(s5e(e,!0),...i)).path:n=nm.join(e.path,...i),e.with({path:n})}toString(e=!1){return Dje(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof no)return e;{const i=new GW(e);return i._formatted=e.external,i._fsPath=e._sep===ECt?e.fsPath:null,i}}else return e}}const ECt=Fp?1:void 0;let GW=class extends no{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=s5e(this,!1)),this._fsPath}toString(e=!1){return e?Dje(this,!0):(this._formatted||(this._formatted=Dje(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=ECt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const _Ct={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Agt(r,e,i){let n,a=-1;for(let o=0;o=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||e&&c===47||i&&c===91||i&&c===93||i&&c===58)a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n!==void 0&&(n+=r.charAt(o));else{n===void 0&&(n=r.substr(0,o));const h=_Ct[c];h!==void 0?(a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n+=h):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(r.substring(a))),n!==void 0?n:r}function r_i(r){let e;for(let i=0;i1&&r.scheme==="file"?i=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?i=r.path.substr(1):i=r.path[1].toLowerCase()+r.path.substr(2):i=r.path,Fp&&(i=i.replace(/\//g,"\\")),i}function Dje(r,e){const i=e?r_i:Agt;let n="",{scheme:a,authority:o,path:c,query:h,fragment:g}=r;if(a&&(n+=a,n+=":"),(o||a==="file")&&(n+=iy,n+=iy),o){let _=o.indexOf("@");if(_!==-1){const x=o.substr(0,_);o=o.substr(_+1),_=x.lastIndexOf(":"),_===-1?n+=i(x,!1,!1):(n+=i(x.substr(0,_),!1,!1),n+=":",n+=i(x.substr(_+1),!1,!0)),n+="@"}o=o.toLowerCase(),_=o.lastIndexOf(":"),_===-1?n+=i(o,!1,!0):(n+=i(o.substr(0,_),!1,!0),n+=o.substr(_))}if(c){if(c.length>=3&&c.charCodeAt(0)===47&&c.charCodeAt(2)===58){const _=c.charCodeAt(1);_>=65&&_<=90&&(c=`/${String.fromCharCode(_+32)}:${c.substr(3)}`)}else if(c.length>=2&&c.charCodeAt(1)===58){const _=c.charCodeAt(0);_>=65&&_<=90&&(c=`${String.fromCharCode(_+32)}:${c.substr(2)}`)}n+=i(c,!0,!1)}return h&&(n+="?",n+=i(h,!1,!1)),g&&(n+="#",n+=e?g:Agt(g,!1,!1)),n}function DCt(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+DCt(r.substr(3)):r}}const Sgt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function A_e(r){return r.match(Sgt)?r.replace(Sgt,e=>DCt(e)):r}let Vi=class dI{constructor(e,i){this.lineNumber=e,this.column=i}with(e=this.lineNumber,i=this.column){return e===this.lineNumber&&i===this.column?this:new dI(e,i)}delta(e=0,i=0){return this.with(this.lineNumber+e,this.column+i)}equals(e){return dI.equals(this,e)}static equals(e,i){return!e&&!i?!0:!!e&&!!i&&e.lineNumber===i.lineNumber&&e.column===i.column}isBefore(e){return dI.isBefore(this,e)}static isBefore(e,i){return e.lineNumbern||e===n&&i>a?(this.startLineNumber=n,this.startColumn=a,this.endLineNumber=e,this.endColumn=i):(this.startLineNumber=e,this.startColumn=i,this.endLineNumber=n,this.endColumn=a)}isEmpty(){return pp.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return pp.containsPosition(this,e)}static containsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.columne.endColumn)}static strictContainsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.column<=e.startColumn||i.lineNumber===e.endLineNumber&&i.column>=e.endColumn)}containsRange(e){return pp.containsRange(this,e)}static containsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumne.endColumn)}strictContainsRange(e){return pp.strictContainsRange(this,e)}static strictContainsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumn<=e.startColumn||i.endLineNumber===e.endLineNumber&&i.endColumn>=e.endColumn)}plusRange(e){return pp.plusRange(this,e)}static plusRange(e,i){let n,a,o,c;return i.startLineNumbere.endLineNumber?(o=i.endLineNumber,c=i.endColumn):i.endLineNumber===e.endLineNumber?(o=i.endLineNumber,c=Math.max(i.endColumn,e.endColumn)):(o=e.endLineNumber,c=e.endColumn),new pp(n,a,o,c)}intersectRanges(e){return pp.intersectRanges(this,e)}static intersectRanges(e,i){let n=e.startLineNumber,a=e.startColumn,o=e.endLineNumber,c=e.endColumn;const h=i.startLineNumber,g=i.startColumn,_=i.endLineNumber,x=i.endColumn;return n_?(o=_,c=x):o===_&&(c=Math.min(c,x)),n>o||n===o&&a>c?null:new pp(n,a,o,c)}equalsRange(e){return pp.equalsRange(this,e)}static equalsRange(e,i){return!e&&!i?!0:!!e&&!!i&&e.startLineNumber===i.startLineNumber&&e.startColumn===i.startColumn&&e.endLineNumber===i.endLineNumber&&e.endColumn===i.endColumn}getEndPosition(){return pp.getEndPosition(this)}static getEndPosition(e){return new Vi(e.endLineNumber,e.endColumn)}getStartPosition(){return pp.getStartPosition(this)}static getStartPosition(e){return new Vi(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,i){return new pp(this.startLineNumber,this.startColumn,e,i)}setStartPosition(e,i){return new pp(e,i,this.endLineNumber,this.endColumn)}collapseToStart(){return pp.collapseToStart(this)}static collapseToStart(e){return new pp(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return pp.collapseToEnd(this)}static collapseToEnd(e){return new pp(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new pp(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,i=e){return new pp(e.lineNumber,e.column,i.lineNumber,i.column)}static lift(e){return e?new pp(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,i){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},ma=class OC extends ot{constructor(e,i,n,a){super(e,i,n,a),this.selectionStartLineNumber=e,this.selectionStartColumn=i,this.positionLineNumber=n,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return OC.selectionsEqual(this,e)}static selectionsEqual(e,i){return e.selectionStartLineNumber===i.selectionStartLineNumber&&e.selectionStartColumn===i.selectionStartColumn&&e.positionLineNumber===i.positionLineNumber&&e.positionColumn===i.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,i){return this.getDirection()===0?new OC(this.startLineNumber,this.startColumn,e,i):new OC(e,i,this.startLineNumber,this.startColumn)}getPosition(){return new Vi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Vi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,i){return this.getDirection()===0?new OC(e,i,this.endLineNumber,this.endColumn):new OC(this.endLineNumber,this.endColumn,e,i)}static fromPositions(e,i=e){return new OC(e.lineNumber,e.column,i.lineNumber,i.column)}static fromRange(e,i){return i===0?new OC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new OC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new OC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,i){if(e&&!i||!e&&i)return!1;if(!e&&!i)return!0;if(e.length!==i.length)return!1;for(let n=0,a=e.length;n{this._tokenizationSupports.get(e)===i&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,i){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const a=new o_i(this,e,i);return this._factories.set(e,a),Ts(()=>{const o=this._factories.get(e);!o||o!==a||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return vje(this,void 0,void 0,function*(){const i=this.get(e);if(i)return i;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class o_i extends ln{get isResolved(){return this._isResolved}constructor(e,i,n){super(),this._registry=e,this._languageId=i,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return vje(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return vje(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let zue=class{constructor(e,i,n){this.offset=e,this.type=i,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class rJe{constructor(e,i){this.tokens=e,this.endState=i,this._tokenizationResultBrand=void 0}}class T6e{constructor(e,i){this.tokens=e,this.endState=i,this._encodedTokenizationResultBrand=void 0}}var Iue;(function(r){const e=new Map;e.set(0,sr.symbolMethod),e.set(1,sr.symbolFunction),e.set(2,sr.symbolConstructor),e.set(3,sr.symbolField),e.set(4,sr.symbolVariable),e.set(5,sr.symbolClass),e.set(6,sr.symbolStruct),e.set(7,sr.symbolInterface),e.set(8,sr.symbolModule),e.set(9,sr.symbolProperty),e.set(10,sr.symbolEvent),e.set(11,sr.symbolOperator),e.set(12,sr.symbolUnit),e.set(13,sr.symbolValue),e.set(15,sr.symbolEnum),e.set(14,sr.symbolConstant),e.set(15,sr.symbolEnum),e.set(16,sr.symbolEnumMember),e.set(17,sr.symbolKeyword),e.set(27,sr.symbolSnippet),e.set(18,sr.symbolText),e.set(19,sr.symbolColor),e.set(20,sr.symbolFile),e.set(21,sr.symbolReference),e.set(22,sr.symbolCustomColor),e.set(23,sr.symbolFolder),e.set(24,sr.symbolTypeParameter),e.set(25,sr.account),e.set(26,sr.issues);function i(o){let c=e.get(o);return c||(console.info("No codicon found for CompletionItemKind "+o),c=sr.symbolProperty),c}r.toIcon=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function a(o,c){let h=n.get(o);return typeof h>"u"&&!c&&(h=9),h}r.fromString=a})(Iue||(Iue={}));var ex;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(ex||(ex={}));var xA;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(xA||(xA={}));var Rue;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Rue||(Rue={}));function s_i(r){return r&&no.isUri(r.uri)&&ot.isIRange(r.range)&&(ot.isIRange(r.originSelectionRange)||ot.isIRange(r.targetSelectionRange))}var Cje;(function(r){const e=new Map;e.set(0,sr.symbolFile),e.set(1,sr.symbolModule),e.set(2,sr.symbolNamespace),e.set(3,sr.symbolPackage),e.set(4,sr.symbolClass),e.set(5,sr.symbolMethod),e.set(6,sr.symbolProperty),e.set(7,sr.symbolField),e.set(8,sr.symbolConstructor),e.set(9,sr.symbolEnum),e.set(10,sr.symbolInterface),e.set(11,sr.symbolFunction),e.set(12,sr.symbolVariable),e.set(13,sr.symbolConstant),e.set(14,sr.symbolString),e.set(15,sr.symbolNumber),e.set(16,sr.symbolBoolean),e.set(17,sr.symbolArray),e.set(18,sr.symbolObject),e.set(19,sr.symbolKey),e.set(20,sr.symbolNull),e.set(21,sr.symbolEnumMember),e.set(22,sr.symbolStruct),e.set(23,sr.symbolEvent),e.set(24,sr.symbolOperator),e.set(25,sr.symbolTypeParameter);function i(n){let a=e.get(n);return a||(console.info("No codicon found for SymbolKind "+n),a=sr.symbolProperty),a}r.toIcon=i})(Cje||(Cje={}));class N_{static fromValue(e){switch(e){case"comment":return N_.Comment;case"imports":return N_.Imports;case"region":return N_.Region}return new N_(e)}constructor(e){this.value=e}}N_.Comment=new N_("comment");N_.Imports=new N_("imports");N_.Region=new N_("region");var bje;(function(r){function e(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}r.is=e})(bje||(bje={}));var l5e;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(l5e||(l5e={}));class l_i{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const oh=new a_i;var yje;(function(r){r[r.Unknown=0]="Unknown",r[r.Disabled=1]="Disabled",r[r.Enabled=2]="Enabled"})(yje||(yje={}));var kje;(function(r){r[r.Invoke=1]="Invoke",r[r.Auto=2]="Auto"})(kje||(kje={}));var Fje;(function(r){r[r.None=0]="None",r[r.KeepWhitespace=1]="KeepWhitespace",r[r.InsertAsSnippet=4]="InsertAsSnippet"})(Fje||(Fje={}));var Aje;(function(r){r[r.Method=0]="Method",r[r.Function=1]="Function",r[r.Constructor=2]="Constructor",r[r.Field=3]="Field",r[r.Variable=4]="Variable",r[r.Class=5]="Class",r[r.Struct=6]="Struct",r[r.Interface=7]="Interface",r[r.Module=8]="Module",r[r.Property=9]="Property",r[r.Event=10]="Event",r[r.Operator=11]="Operator",r[r.Unit=12]="Unit",r[r.Value=13]="Value",r[r.Constant=14]="Constant",r[r.Enum=15]="Enum",r[r.EnumMember=16]="EnumMember",r[r.Keyword=17]="Keyword",r[r.Text=18]="Text",r[r.Color=19]="Color",r[r.File=20]="File",r[r.Reference=21]="Reference",r[r.Customcolor=22]="Customcolor",r[r.Folder=23]="Folder",r[r.TypeParameter=24]="TypeParameter",r[r.User=25]="User",r[r.Issue=26]="Issue",r[r.Snippet=27]="Snippet"})(Aje||(Aje={}));var Sje;(function(r){r[r.Deprecated=1]="Deprecated"})(Sje||(Sje={}));var Bje;(function(r){r[r.Invoke=0]="Invoke",r[r.TriggerCharacter=1]="TriggerCharacter",r[r.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Bje||(Bje={}));var wje;(function(r){r[r.EXACT=0]="EXACT",r[r.ABOVE=1]="ABOVE",r[r.BELOW=2]="BELOW"})(wje||(wje={}));var Tje;(function(r){r[r.NotSet=0]="NotSet",r[r.ContentFlush=1]="ContentFlush",r[r.RecoverFromMarkers=2]="RecoverFromMarkers",r[r.Explicit=3]="Explicit",r[r.Paste=4]="Paste",r[r.Undo=5]="Undo",r[r.Redo=6]="Redo"})(Tje||(Tje={}));var Lje;(function(r){r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(Lje||(Lje={}));var Nje;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Nje||(Nje={}));var Pje;(function(r){r[r.None=0]="None",r[r.Keep=1]="Keep",r[r.Brackets=2]="Brackets",r[r.Advanced=3]="Advanced",r[r.Full=4]="Full"})(Pje||(Pje={}));var Mje;(function(r){r[r.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",r[r.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",r[r.accessibilitySupport=2]="accessibilitySupport",r[r.accessibilityPageSize=3]="accessibilityPageSize",r[r.ariaLabel=4]="ariaLabel",r[r.autoClosingBrackets=5]="autoClosingBrackets",r[r.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",r[r.autoClosingDelete=7]="autoClosingDelete",r[r.autoClosingOvertype=8]="autoClosingOvertype",r[r.autoClosingQuotes=9]="autoClosingQuotes",r[r.autoIndent=10]="autoIndent",r[r.automaticLayout=11]="automaticLayout",r[r.autoSurround=12]="autoSurround",r[r.bracketPairColorization=13]="bracketPairColorization",r[r.guides=14]="guides",r[r.codeLens=15]="codeLens",r[r.codeLensFontFamily=16]="codeLensFontFamily",r[r.codeLensFontSize=17]="codeLensFontSize",r[r.colorDecorators=18]="colorDecorators",r[r.colorDecoratorsLimit=19]="colorDecoratorsLimit",r[r.columnSelection=20]="columnSelection",r[r.comments=21]="comments",r[r.contextmenu=22]="contextmenu",r[r.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",r[r.cursorBlinking=24]="cursorBlinking",r[r.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",r[r.cursorStyle=26]="cursorStyle",r[r.cursorSurroundingLines=27]="cursorSurroundingLines",r[r.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",r[r.cursorWidth=29]="cursorWidth",r[r.disableLayerHinting=30]="disableLayerHinting",r[r.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",r[r.domReadOnly=32]="domReadOnly",r[r.dragAndDrop=33]="dragAndDrop",r[r.dropIntoEditor=34]="dropIntoEditor",r[r.emptySelectionClipboard=35]="emptySelectionClipboard",r[r.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",r[r.extraEditorClassName=37]="extraEditorClassName",r[r.fastScrollSensitivity=38]="fastScrollSensitivity",r[r.find=39]="find",r[r.fixedOverflowWidgets=40]="fixedOverflowWidgets",r[r.folding=41]="folding",r[r.foldingStrategy=42]="foldingStrategy",r[r.foldingHighlight=43]="foldingHighlight",r[r.foldingImportsByDefault=44]="foldingImportsByDefault",r[r.foldingMaximumRegions=45]="foldingMaximumRegions",r[r.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",r[r.fontFamily=47]="fontFamily",r[r.fontInfo=48]="fontInfo",r[r.fontLigatures=49]="fontLigatures",r[r.fontSize=50]="fontSize",r[r.fontWeight=51]="fontWeight",r[r.fontVariations=52]="fontVariations",r[r.formatOnPaste=53]="formatOnPaste",r[r.formatOnType=54]="formatOnType",r[r.glyphMargin=55]="glyphMargin",r[r.gotoLocation=56]="gotoLocation",r[r.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",r[r.hover=58]="hover",r[r.inDiffEditor=59]="inDiffEditor",r[r.inlineSuggest=60]="inlineSuggest",r[r.letterSpacing=61]="letterSpacing",r[r.lightbulb=62]="lightbulb",r[r.lineDecorationsWidth=63]="lineDecorationsWidth",r[r.lineHeight=64]="lineHeight",r[r.lineNumbers=65]="lineNumbers",r[r.lineNumbersMinChars=66]="lineNumbersMinChars",r[r.linkedEditing=67]="linkedEditing",r[r.links=68]="links",r[r.matchBrackets=69]="matchBrackets",r[r.minimap=70]="minimap",r[r.mouseStyle=71]="mouseStyle",r[r.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",r[r.mouseWheelZoom=73]="mouseWheelZoom",r[r.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",r[r.multiCursorModifier=75]="multiCursorModifier",r[r.multiCursorPaste=76]="multiCursorPaste",r[r.multiCursorLimit=77]="multiCursorLimit",r[r.occurrencesHighlight=78]="occurrencesHighlight",r[r.overviewRulerBorder=79]="overviewRulerBorder",r[r.overviewRulerLanes=80]="overviewRulerLanes",r[r.padding=81]="padding",r[r.parameterHints=82]="parameterHints",r[r.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",r[r.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",r[r.quickSuggestions=85]="quickSuggestions",r[r.quickSuggestionsDelay=86]="quickSuggestionsDelay",r[r.readOnly=87]="readOnly",r[r.renameOnType=88]="renameOnType",r[r.renderControlCharacters=89]="renderControlCharacters",r[r.renderFinalNewline=90]="renderFinalNewline",r[r.renderLineHighlight=91]="renderLineHighlight",r[r.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",r[r.renderValidationDecorations=93]="renderValidationDecorations",r[r.renderWhitespace=94]="renderWhitespace",r[r.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",r[r.roundedSelection=96]="roundedSelection",r[r.rulers=97]="rulers",r[r.scrollbar=98]="scrollbar",r[r.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",r[r.scrollBeyondLastLine=100]="scrollBeyondLastLine",r[r.scrollPredominantAxis=101]="scrollPredominantAxis",r[r.selectionClipboard=102]="selectionClipboard",r[r.selectionHighlight=103]="selectionHighlight",r[r.selectOnLineNumbers=104]="selectOnLineNumbers",r[r.showFoldingControls=105]="showFoldingControls",r[r.showUnused=106]="showUnused",r[r.snippetSuggestions=107]="snippetSuggestions",r[r.smartSelect=108]="smartSelect",r[r.smoothScrolling=109]="smoothScrolling",r[r.stickyScroll=110]="stickyScroll",r[r.stickyTabStops=111]="stickyTabStops",r[r.stopRenderingLineAfter=112]="stopRenderingLineAfter",r[r.suggest=113]="suggest",r[r.suggestFontSize=114]="suggestFontSize",r[r.suggestLineHeight=115]="suggestLineHeight",r[r.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",r[r.suggestSelection=117]="suggestSelection",r[r.tabCompletion=118]="tabCompletion",r[r.tabIndex=119]="tabIndex",r[r.unicodeHighlighting=120]="unicodeHighlighting",r[r.unusualLineTerminators=121]="unusualLineTerminators",r[r.useShadowDOM=122]="useShadowDOM",r[r.useTabStops=123]="useTabStops",r[r.wordBreak=124]="wordBreak",r[r.wordSeparators=125]="wordSeparators",r[r.wordWrap=126]="wordWrap",r[r.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",r[r.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",r[r.wordWrapColumn=129]="wordWrapColumn",r[r.wordWrapOverride1=130]="wordWrapOverride1",r[r.wordWrapOverride2=131]="wordWrapOverride2",r[r.wrappingIndent=132]="wrappingIndent",r[r.wrappingStrategy=133]="wrappingStrategy",r[r.showDeprecated=134]="showDeprecated",r[r.inlayHints=135]="inlayHints",r[r.editorClassName=136]="editorClassName",r[r.pixelRatio=137]="pixelRatio",r[r.tabFocusMode=138]="tabFocusMode",r[r.layoutInfo=139]="layoutInfo",r[r.wrappingInfo=140]="wrappingInfo"})(Mje||(Mje={}));var zje;(function(r){r[r.TextDefined=0]="TextDefined",r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(zje||(zje={}));var Ije;(function(r){r[r.LF=0]="LF",r[r.CRLF=1]="CRLF"})(Ije||(Ije={}));var Rje;(function(r){r[r.None=0]="None",r[r.Indent=1]="Indent",r[r.IndentOutdent=2]="IndentOutdent",r[r.Outdent=3]="Outdent"})(Rje||(Rje={}));var Oje;(function(r){r[r.Both=0]="Both",r[r.Right=1]="Right",r[r.Left=2]="Left",r[r.None=3]="None"})(Oje||(Oje={}));var jje;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(jje||(jje={}));var Vje;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(Vje||(Vje={}));var Hje;(function(r){r[r.DependsOnKbLayout=-1]="DependsOnKbLayout",r[r.Unknown=0]="Unknown",r[r.Backspace=1]="Backspace",r[r.Tab=2]="Tab",r[r.Enter=3]="Enter",r[r.Shift=4]="Shift",r[r.Ctrl=5]="Ctrl",r[r.Alt=6]="Alt",r[r.PauseBreak=7]="PauseBreak",r[r.CapsLock=8]="CapsLock",r[r.Escape=9]="Escape",r[r.Space=10]="Space",r[r.PageUp=11]="PageUp",r[r.PageDown=12]="PageDown",r[r.End=13]="End",r[r.Home=14]="Home",r[r.LeftArrow=15]="LeftArrow",r[r.UpArrow=16]="UpArrow",r[r.RightArrow=17]="RightArrow",r[r.DownArrow=18]="DownArrow",r[r.Insert=19]="Insert",r[r.Delete=20]="Delete",r[r.Digit0=21]="Digit0",r[r.Digit1=22]="Digit1",r[r.Digit2=23]="Digit2",r[r.Digit3=24]="Digit3",r[r.Digit4=25]="Digit4",r[r.Digit5=26]="Digit5",r[r.Digit6=27]="Digit6",r[r.Digit7=28]="Digit7",r[r.Digit8=29]="Digit8",r[r.Digit9=30]="Digit9",r[r.KeyA=31]="KeyA",r[r.KeyB=32]="KeyB",r[r.KeyC=33]="KeyC",r[r.KeyD=34]="KeyD",r[r.KeyE=35]="KeyE",r[r.KeyF=36]="KeyF",r[r.KeyG=37]="KeyG",r[r.KeyH=38]="KeyH",r[r.KeyI=39]="KeyI",r[r.KeyJ=40]="KeyJ",r[r.KeyK=41]="KeyK",r[r.KeyL=42]="KeyL",r[r.KeyM=43]="KeyM",r[r.KeyN=44]="KeyN",r[r.KeyO=45]="KeyO",r[r.KeyP=46]="KeyP",r[r.KeyQ=47]="KeyQ",r[r.KeyR=48]="KeyR",r[r.KeyS=49]="KeyS",r[r.KeyT=50]="KeyT",r[r.KeyU=51]="KeyU",r[r.KeyV=52]="KeyV",r[r.KeyW=53]="KeyW",r[r.KeyX=54]="KeyX",r[r.KeyY=55]="KeyY",r[r.KeyZ=56]="KeyZ",r[r.Meta=57]="Meta",r[r.ContextMenu=58]="ContextMenu",r[r.F1=59]="F1",r[r.F2=60]="F2",r[r.F3=61]="F3",r[r.F4=62]="F4",r[r.F5=63]="F5",r[r.F6=64]="F6",r[r.F7=65]="F7",r[r.F8=66]="F8",r[r.F9=67]="F9",r[r.F10=68]="F10",r[r.F11=69]="F11",r[r.F12=70]="F12",r[r.F13=71]="F13",r[r.F14=72]="F14",r[r.F15=73]="F15",r[r.F16=74]="F16",r[r.F17=75]="F17",r[r.F18=76]="F18",r[r.F19=77]="F19",r[r.NumLock=78]="NumLock",r[r.ScrollLock=79]="ScrollLock",r[r.Semicolon=80]="Semicolon",r[r.Equal=81]="Equal",r[r.Comma=82]="Comma",r[r.Minus=83]="Minus",r[r.Period=84]="Period",r[r.Slash=85]="Slash",r[r.Backquote=86]="Backquote",r[r.BracketLeft=87]="BracketLeft",r[r.Backslash=88]="Backslash",r[r.BracketRight=89]="BracketRight",r[r.Quote=90]="Quote",r[r.OEM_8=91]="OEM_8",r[r.IntlBackslash=92]="IntlBackslash",r[r.Numpad0=93]="Numpad0",r[r.Numpad1=94]="Numpad1",r[r.Numpad2=95]="Numpad2",r[r.Numpad3=96]="Numpad3",r[r.Numpad4=97]="Numpad4",r[r.Numpad5=98]="Numpad5",r[r.Numpad6=99]="Numpad6",r[r.Numpad7=100]="Numpad7",r[r.Numpad8=101]="Numpad8",r[r.Numpad9=102]="Numpad9",r[r.NumpadMultiply=103]="NumpadMultiply",r[r.NumpadAdd=104]="NumpadAdd",r[r.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",r[r.NumpadSubtract=106]="NumpadSubtract",r[r.NumpadDecimal=107]="NumpadDecimal",r[r.NumpadDivide=108]="NumpadDivide",r[r.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",r[r.ABNT_C1=110]="ABNT_C1",r[r.ABNT_C2=111]="ABNT_C2",r[r.AudioVolumeMute=112]="AudioVolumeMute",r[r.AudioVolumeUp=113]="AudioVolumeUp",r[r.AudioVolumeDown=114]="AudioVolumeDown",r[r.BrowserSearch=115]="BrowserSearch",r[r.BrowserHome=116]="BrowserHome",r[r.BrowserBack=117]="BrowserBack",r[r.BrowserForward=118]="BrowserForward",r[r.MediaTrackNext=119]="MediaTrackNext",r[r.MediaTrackPrevious=120]="MediaTrackPrevious",r[r.MediaStop=121]="MediaStop",r[r.MediaPlayPause=122]="MediaPlayPause",r[r.LaunchMediaPlayer=123]="LaunchMediaPlayer",r[r.LaunchMail=124]="LaunchMail",r[r.LaunchApp2=125]="LaunchApp2",r[r.Clear=126]="Clear",r[r.MAX_VALUE=127]="MAX_VALUE"})(Hje||(Hje={}));var Kje;(function(r){r[r.Hint=1]="Hint",r[r.Info=2]="Info",r[r.Warning=4]="Warning",r[r.Error=8]="Error"})(Kje||(Kje={}));var Wje;(function(r){r[r.Unnecessary=1]="Unnecessary",r[r.Deprecated=2]="Deprecated"})(Wje||(Wje={}));var Gje;(function(r){r[r.Inline=1]="Inline",r[r.Gutter=2]="Gutter"})(Gje||(Gje={}));var Jje;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.TEXTAREA=1]="TEXTAREA",r[r.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",r[r.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",r[r.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",r[r.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",r[r.CONTENT_TEXT=6]="CONTENT_TEXT",r[r.CONTENT_EMPTY=7]="CONTENT_EMPTY",r[r.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",r[r.CONTENT_WIDGET=9]="CONTENT_WIDGET",r[r.OVERVIEW_RULER=10]="OVERVIEW_RULER",r[r.SCROLLBAR=11]="SCROLLBAR",r[r.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",r[r.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Jje||(Jje={}));var $je;(function(r){r[r.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",r[r.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",r[r.TOP_CENTER=2]="TOP_CENTER"})($je||($je={}));var Uje;(function(r){r[r.Left=1]="Left",r[r.Center=2]="Center",r[r.Right=4]="Right",r[r.Full=7]="Full"})(Uje||(Uje={}));var qje;(function(r){r[r.Left=0]="Left",r[r.Right=1]="Right",r[r.None=2]="None",r[r.LeftOfInjectedText=3]="LeftOfInjectedText",r[r.RightOfInjectedText=4]="RightOfInjectedText"})(qje||(qje={}));var Zje;(function(r){r[r.Off=0]="Off",r[r.On=1]="On",r[r.Relative=2]="Relative",r[r.Interval=3]="Interval",r[r.Custom=4]="Custom"})(Zje||(Zje={}));var Yje;(function(r){r[r.None=0]="None",r[r.Text=1]="Text",r[r.Blocks=2]="Blocks"})(Yje||(Yje={}));var Qje;(function(r){r[r.Smooth=0]="Smooth",r[r.Immediate=1]="Immediate"})(Qje||(Qje={}));var Xje;(function(r){r[r.Auto=1]="Auto",r[r.Hidden=2]="Hidden",r[r.Visible=3]="Visible"})(Xje||(Xje={}));var eVe;(function(r){r[r.LTR=0]="LTR",r[r.RTL=1]="RTL"})(eVe||(eVe={}));var tVe;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(tVe||(tVe={}));var iVe;(function(r){r[r.File=0]="File",r[r.Module=1]="Module",r[r.Namespace=2]="Namespace",r[r.Package=3]="Package",r[r.Class=4]="Class",r[r.Method=5]="Method",r[r.Property=6]="Property",r[r.Field=7]="Field",r[r.Constructor=8]="Constructor",r[r.Enum=9]="Enum",r[r.Interface=10]="Interface",r[r.Function=11]="Function",r[r.Variable=12]="Variable",r[r.Constant=13]="Constant",r[r.String=14]="String",r[r.Number=15]="Number",r[r.Boolean=16]="Boolean",r[r.Array=17]="Array",r[r.Object=18]="Object",r[r.Key=19]="Key",r[r.Null=20]="Null",r[r.EnumMember=21]="EnumMember",r[r.Struct=22]="Struct",r[r.Event=23]="Event",r[r.Operator=24]="Operator",r[r.TypeParameter=25]="TypeParameter"})(iVe||(iVe={}));var nVe;(function(r){r[r.Deprecated=1]="Deprecated"})(nVe||(nVe={}));var uVe;(function(r){r[r.Hidden=0]="Hidden",r[r.Blink=1]="Blink",r[r.Smooth=2]="Smooth",r[r.Phase=3]="Phase",r[r.Expand=4]="Expand",r[r.Solid=5]="Solid"})(uVe||(uVe={}));var rVe;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(rVe||(rVe={}));var aVe;(function(r){r[r.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",r[r.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",r[r.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",r[r.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(aVe||(aVe={}));var oVe;(function(r){r[r.None=0]="None",r[r.Same=1]="Same",r[r.Indent=2]="Indent",r[r.DeepIndent=3]="DeepIndent"})(oVe||(oVe={}));let Eae=class{static chord(e,i){return Am(e,i)}};Eae.CtrlCmd=2048;Eae.Shift=1024;Eae.Alt=512;Eae.WinCtrl=256;function vCt(){return{editor:void 0,languages:void 0,CancellationTokenSource:Ap,Emitter:Fi,KeyCode:Hje,KeyMod:Eae,Position:Vi,Range:ot,Selection:ma,SelectionDirection:eVe,MarkerSeverity:Kje,MarkerTag:Wje,Uri:no,Token:zue}}class c_i{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const i=JSON.stringify(e);return this.lastArgKey!==i&&(this.lastArgKey=i,this.lastCache=this.fn(e)),this.lastCache}}class Bgt{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const i=this.fn(e);return this._map.set(e,i),i}}class lN{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var CCt;function bCt(r){return!r||typeof r!="string"?!0:r.trim().length===0}const d_i=/{(\d+)}/g;function W6(r,...e){return e.length===0?r:r.replace(d_i,function(i,n){const a=parseInt(n,10);return isNaN(a)||a<0||a>=e.length?i:e[a]})}function c5e(r){return r.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function px(r){return r.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function h_i(r,e=" "){const i=_ae(r,e);return yCt(i,e)}function _ae(r,e){if(!r||!e)return r;const i=e.length;if(i===0||r.length===0)return r;let n=0;for(;r.indexOf(e,n)===n;)n=n+i;return r.substring(n)}function yCt(r,e){if(!r||!e)return r;const i=e.length,n=r.length;if(i===0||n===0)return r;let a=n,o=-1;for(;o=r.lastIndexOf(e,a-1),!(o===-1||o+i!==a);){if(o===0)return"";a=o}return r.substring(0,a)}function f_i(r){return r.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function m_i(r){return r.replace(/\*/g,"")}function kCt(r,e,i={}){if(!r)throw new Error("Cannot create regex from empty string");e||(r=px(r)),i.wholeWord&&(/\B/.test(r.charAt(0))||(r="\\b"+r),/\B/.test(r.charAt(r.length-1))||(r=r+"\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(r,n)}function p_i(r){return r.source==="^"||r.source==="^$"||r.source==="$"||r.source==="^\\s*$"?!1:!!(r.exec("")&&r.lastIndex===0)}function gIe(r){return(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")}function TA(r){return r.split(/\r\n|\r|\n/)}function OE(r){for(let e=0,i=r.length;e=0;i--){const n=r.charCodeAt(i);if(n!==32&&n!==9)return i}return-1}function Oue(r,e){return re?1:0}function aJe(r,e,i=0,n=r.length,a=0,o=e.length){for(;i_)return 1}const c=n-i,h=o-a;return ch?1:0}function sVe(r,e){return Dae(r,e,0,r.length,0,e.length)}function Dae(r,e,i=0,n=r.length,a=0,o=e.length){for(;i=128||_>=128)return aJe(r.toLowerCase(),e.toLowerCase(),i,n,a,o);uL(g)&&(g-=32),uL(_)&&(_-=32);const x=g-_;if(x!==0)return x}const c=n-i,h=o-a;return ch?1:0}function S_e(r){return r>=48&&r<=57}function uL(r){return r>=97&&r<=122}function qF(r){return r>=65&&r<=90}function FG(r,e){return r.length===e.length&&Dae(r,e)===0}function oJe(r,e){const i=e.length;return e.length>r.length?!1:Dae(r,e,0,i)===0}function sR(r,e){const i=Math.min(r.length,e.length);let n;for(n=0;n1){const n=r.charCodeAt(e-2);if(i4(n))return sJe(n,i)}return i}class lJe{get offset(){return this._offset}constructor(e,i=0){this._str=e,this._len=e.length,this._offset=i}setOffset(e){this._offset=e}prevCodePoint(){const e=g_i(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=d5e(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class h5e{get offset(){return this._iterator.offset}constructor(e,i=0){this._iterator=new lJe(e,i)}nextGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.nextCodePoint());for(;!i.eol();){const o=i.offset,c=e.getGraphemeBreakType(i.nextCodePoint());if(wgt(a,c)){i.setOffset(o);break}a=c}return i.offset-n}prevGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.prevCodePoint());for(;i.offset>0;){const o=i.offset,c=e.getGraphemeBreakType(i.prevCodePoint());if(wgt(c,a)){i.setOffset(o);break}a=c}return n-i.offset}eol(){return this._iterator.eol()}}function cJe(r,e){return new h5e(r,e).nextGraphemeLength()}function FCt(r,e){return new h5e(r,e).prevGraphemeLength()}function E_i(r,e){e>0&&lR(r.charCodeAt(e))&&e--;const i=e+cJe(r,e);return[i-FCt(r,i),i]}let EIe;function __i(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function MJ(r){return EIe||(EIe=__i()),EIe.test(r)}const D_i=/^[\t\n\r\x20-\x7E]*$/;function xae(r){return D_i.test(r)}const ACt=/[\u2028\u2029]/;function SCt(r){return ACt.test(r)}function HL(r){return r>=11904&&r<=55215||r>=63744&&r<=64255||r>=65281&&r<=65374}function dJe(r){return r>=127462&&r<=127487||r===8986||r===8987||r===9200||r===9203||r>=9728&&r<=10175||r===11088||r===11093||r>=127744&&r<=128591||r>=128640&&r<=128764||r>=128992&&r<=129008||r>=129280&&r<=129535||r>=129648&&r<=129782}const x_i="\uFEFF";function hJe(r){return!!(r&&r.length>0&&r.charCodeAt(0)===65279)}function v_i(r,e=!1){return r?(e&&(r=r.replace(/\\./g,"")),r.toLowerCase()!==r):!1}function BCt(r){return r=r%(2*26),r<26?String.fromCharCode(97+r):String.fromCharCode(65+r-26)}function wgt(r,e){return r===0?e!==5&&e!==7:r===2&&e===3?!1:r===4||r===2||r===3||e===4||e===2||e===3?!0:!(r===8&&(e===8||e===9||e===11||e===12)||(r===11||r===9)&&(e===9||e===10)||(r===12||r===10)&&e===10||e===5||e===13||e===7||r===1||r===13&&e===14||r===6&&e===6)}class rL{static getInstance(){return rL._INSTANCE||(rL._INSTANCE=new rL),rL._INSTANCE}constructor(){this._data=C_i()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this._data,n=i.length/3;let a=1;for(;a<=n;)if(ei[3*a+1])a=2*a+1;else return i[3*a+2];return 0}}rL._INSTANCE=null;function C_i(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function b_i(r,e){if(r===0)return 0;const i=y_i(r,e);if(i!==void 0)return i;const n=new lJe(e,r);return n.prevCodePoint(),n.offset}function y_i(r,e){const i=new lJe(e,r);let n=i.prevCodePoint();for(;k_i(n)||n===65039||n===8419;){if(i.offset===0)return;n=i.prevCodePoint()}if(!dJe(n))return;let a=i.offset;return a>0&&i.prevCodePoint()===8205&&(a=i.offset),a}function k_i(r){return 127995<=r&&r<=127999}const F_i=" ";class t2{static getInstance(e){return t2.cache.get(Array.from(e))}static getLocales(){return t2._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}CCt=t2;t2.ambiguousCharacterData=new lN(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));t2.cache=new c_i(r=>{function e(_){const x=new Map;for(let y=0;y<_.length;y+=2)x.set(_[y],_[y+1]);return x}function i(_,x){const y=new Map(_);for(const[S,L]of x)y.set(S,L);return y}function n(_,x){if(!_)return x;const y=new Map;for(const[S,L]of _)x.has(S)&&y.set(S,L);return y}const a=CCt.ambiguousCharacterData.value;let o=r.filter(_=>!_.startsWith("_")&&_ in a);o.length===0&&(o=["_default"]);let c;for(const _ of o){const x=e(a[_]);c=n(c,x)}const h=e(a._common),g=i(h,c);return new t2(g)});t2._locales=new lN(()=>Object.keys(t2.ambiguousCharacterData.value).filter(r=>!r.startsWith("_")));class vA{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(vA.getRawData())),this._data}static isInvisibleCharacter(e){return vA.getData().has(e)}static get codePoints(){return vA.getData()}}vA._data=void 0;class lVe{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}lVe.INSTANCE=new lVe;class A_i extends ln{constructor(){super(),this._onDidChange=this._register(new Fi),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class S_i extends ln{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new Fi),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new A_i);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}}class B_i{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new S_i),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function fJe(r,e){typeof r=="string"&&(r=window.matchMedia(r)),r.addEventListener("change",e)}const zJ=new B_i;function wCt(){return lVe.INSTANCE.getZoomFactor()}const A$=navigator.userAgent,Y6=A$.indexOf("Firefox")>=0,CL=A$.indexOf("AppleWebKit")>=0,mJe=A$.indexOf("Chrome")>=0,i8=!mJe&&A$.indexOf("Safari")>=0,pJe=!mJe&&!i8&&CL,w_i=A$.indexOf("Electron/")>=0,TCt=A$.indexOf("Android")>=0;let nDe=!1;if(window.matchMedia){const r=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");nDe=r.matches,fJe(r,({matches:i})=>{nDe&&e.matches||(nDe=i)})}function gJe(){return nDe}const T_i=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:zJ,addMatchMediaChangeListener:fJe,getZoomFactor:wCt,isAndroid:TCt,isChrome:mJe,isElectron:w_i,isFirefox:Y6,isSafari:i8,isStandalone:gJe,isWebKit:CL,isWebkitWebView:pJe},Symbol.toStringTag,{value:"Module"}));class LCt{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const i=$b(e);this._maxWidth!==i&&(this._maxWidth=i,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const i=$b(e);this._width!==i&&(this._width=i,this.domNode.style.width=this._width)}setHeight(e){const i=$b(e);this._height!==i&&(this._height=i,this.domNode.style.height=this._height)}setTop(e){const i=$b(e);this._top!==i&&(this._top=i,this.domNode.style.top=this._top)}setLeft(e){const i=$b(e);this._left!==i&&(this._left=i,this.domNode.style.left=this._left)}setBottom(e){const i=$b(e);this._bottom!==i&&(this._bottom=i,this.domNode.style.bottom=this._bottom)}setRight(e){const i=$b(e);this._right!==i&&(this._right=i,this.domNode.style.right=this._right)}setPaddingLeft(e){const i=$b(e);this._paddingLeft!==i&&(this._paddingLeft=i,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const i=$b(e);this._fontSize!==i&&(this._fontSize=i,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const i=$b(e);this._lineHeight!==i&&(this._lineHeight=i,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const i=$b(e);this._letterSpacing!==i&&(this._letterSpacing=i,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,i){this.domNode.classList.toggle(e,i),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,i){this.domNode.setAttribute(e,i)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function $b(r){return typeof r=="number"?`${r}px`:r}function xl(r){return new LCt(r)}function yp(r,e){r instanceof LCt?(r.setFontFamily(e.getMassagedFontFamily()),r.setFontWeight(e.fontWeight),r.setFontSize(e.fontSize),r.setFontFeatureSettings(e.fontFeatureSettings),r.setFontVariationSettings(e.fontVariationSettings),r.setLineHeight(e.lineHeight),r.setLetterSpacing(e.letterSpacing)):(r.style.fontFamily=e.getMassagedFontFamily(),r.style.fontWeight=e.fontWeight,r.style.fontSize=e.fontSize+"px",r.style.fontFeatureSettings=e.fontFeatureSettings,r.style.fontVariationSettings=e.fontVariationSettings,r.style.lineHeight=e.lineHeight+"px",r.style.letterSpacing=e.letterSpacing+"px")}class L_i{constructor(e,i){this.chr=e,this.type=i,this.width=0}fulfill(e){this.width=e}}class EJe{constructor(e,i){this._bareFontInfo=e,this._requests=i,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const i=document.createElement("div");yp(i,this._bareFontInfo),e.appendChild(i);const n=document.createElement("div");yp(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const a=document.createElement("div");yp(a,this._bareFontInfo),a.style.fontStyle="italic",e.appendChild(a);const o=[];for(const c of this._requests){let h;c.type===0&&(h=i),c.type===2&&(h=n),c.type===1&&(h=a),h.appendChild(document.createElement("br"));const g=document.createElement("span");EJe._render(g,c),h.appendChild(g),o.push(g)}this._container=e,this._testElements=o}static _render(e,i){if(i.chr===" "){let n=" ";for(let a=0;a<8;a++)n+=n;e.innerText=n}else{let n=i.chr;for(let a=0;a<8;a++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,i=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let i=!1;for(const n of e)n.isTrusted||(i=!0,this._cache.remove(n));i&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let i=this._actualReadFontInfo(e);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new cVe({pixelRatio:zJ.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,i)}return this._cache.get(e)}_createRequest(e,i,n,a){const o=new L_i(e,i);return n.push(o),a==null||a.push(o),o}_actualReadFontInfo(e){const i=[],n=[],a=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),c=this._createRequest(" ",0,i,n),h=this._createRequest("0",0,i,n),g=this._createRequest("1",0,i,n),_=this._createRequest("2",0,i,n),x=this._createRequest("3",0,i,n),y=this._createRequest("4",0,i,n),S=this._createRequest("5",0,i,n),L=this._createRequest("6",0,i,n),O=this._createRequest("7",0,i,n),G=this._createRequest("8",0,i,n),ie=this._createRequest("9",0,i,n),ue=this._createRequest("→",0,i,n),re=this._createRequest("→",0,i,null),_e=this._createRequest("·",0,i,n),ye=this._createRequest("⸱",0,i,null),Le="|/-_ilm%";for(let kt=0,Zt=Le.length;kt.001){Ue=!1;break}}let rt=!0;return Ue&&re.width!==Ze&&(rt=!1),re.width>ue.width&&(rt=!1),new cVe({pixelRatio:zJ.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:Ue,typicalHalfwidthCharacterWidth:a.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:rt,spaceWidth:c.width,middotWidth:_e.width,wsmiddotWidth:ye.width,maxDigitWidth:lt},!0)}}class Tgt{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const i=e.getId();return!!this._values[i]}get(e){const i=e.getId();return this._values[i]}put(e,i){const n=e.getId();this._keys[n]=e,this._values[n]=i}remove(e){const i=e.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const dVe=new z_i;var hy;(function(r){r.serviceIds=new Map,r.DI_TARGET="$di$target",r.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[r.DI_DEPENDENCIES]||[]}r.getServiceDependencies=e})(hy||(hy={}));const Cs=k0("instantiationService");function I_i(r,e,i){e[hy.DI_TARGET]===e?e[hy.DI_DEPENDENCIES].push({id:r,index:i}):(e[hy.DI_DEPENDENCIES]=[{id:r,index:i}],e[hy.DI_TARGET]=e)}function k0(r){if(hy.serviceIds.has(r))return hy.serviceIds.get(r);const e=function(i,n,a){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");I_i(e,i,a)};return e.toString=()=>r,hy.serviceIds.set(r,e),e}const Nl=k0("codeEditorService");function Vne(r,e){if(!r)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function L6e(r,e="Unreachable"){throw new Error(e)}function _Je(r){if(!r()){debugger;r(),Ls(new KA("Assertion Failed"))}}function NCt(r,e){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw QGe(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(DIe("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(DIe("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(DIe("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const i=this._start,n=this._input.substring(this._start,this._current),a={type:19,offset:this._start,lexeme:n};this._errors.push({offset:i,lexeme:n,additionalInfo:e}),this._tokens.push(a)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const i=this._input.substring(this._start,this._current),n=hVe._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(R_i);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,i=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(O_i);return}const o=this._input.charCodeAt(e);if(i)i=!1;else if(o===47&&!n){e++;break}else o===91?n=!0:o===92?i=!0:o===93&&(n=!1);e++}for(;e=this._input.length}};xI._regexFlags=new Set(["i","g","s","m","y","u"].map(r=>r.charCodeAt(0)));xI._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Gg=new Map;Gg.set("false",!1);Gg.set("true",!0);Gg.set("isMac",d0);Gg.set("isLinux",sg);Gg.set("isWindows",Fp);Gg.set("isWeb",aN);Gg.set("isMacNative",d0&&!aN);Gg.set("isEdge",Cgi);Gg.set("isFirefox",xgi);Gg.set("isChrome",$vt);Gg.set("isSafari",vgi);const j_i=Object.prototype.hasOwnProperty,V_i={regexParsingWithErrorRecovery:!0},H_i=V("contextkey.parser.error.emptyString","Empty context key expression"),K_i=V("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),W_i=V("contextkey.parser.error.noInAfterNot","'in' after 'not'."),Lgt=V("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),G_i=V("contextkey.parser.error.unexpectedToken","Unexpected token"),J_i=V("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),$_i=V("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),U_i=V("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let PCt=class sne{constructor(e=V_i){this._config=e,this._scanner=new xI,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:H_i,offset:0,lexeme:"",additionalInfo:K_i});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const n=this._peek(),a=n.type===17?J_i:void 0;throw this._parsingErrors.push({message:G_i,offset:n.offset,lexeme:xI.getLexeme(n),additionalInfo:a}),sne._parseError}return i}catch(i){if(i!==sne._parseError)throw i;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const i=this._and();e.push(i)}return e.length===1?e[0]:mu.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const i=this._term();e.push(i)}return e.length===1?e[0]:mu.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),I_.INSTANCE;case 12:return this._advance(),H3.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,Lgt),i==null?void 0:i.negate()}case 17:return this._advance(),UR.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),mu.true();case 12:return this._advance(),mu.false();case 0:{this._advance();const i=this._expr();return this._consume(1,Lgt),i}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const a=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),a.type!==10)throw this._errExpectedButGot("REGEX",a);const o=a.lexeme,c=o.lastIndexOf("/"),h=c===o.length-1?void 0:this._removeFlagsGY(o.substring(c+1));let g;try{g=new RegExp(o.substring(1,c),h)}catch{throw this._errExpectedButGot("REGEX",a)}return Vue.create(i,g)}switch(a.type){case 10:case 19:{const o=[a.lexeme];this._advance();let c=this._peek(),h=0;for(let S=0;S=0){const _=o.slice(h+1,g),x=o[g+1]==="i"?"i":"";try{c=new RegExp(_,x)}catch{throw this._errExpectedButGot("REGEX",a)}}}if(c===null)throw this._errExpectedButGot("REGEX",a);return Vue.create(i,c)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,W_i);const a=this._value();return mu.notIn(i,a)}switch(this._peek().type){case 3:{this._advance();const a=this._value();if(this._previous().type===18)return mu.equals(i,a);switch(a){case"true":return mu.has(i);case"false":return mu.not(i);default:return mu.equals(i,a)}}case 4:{this._advance();const a=this._value();if(this._previous().type===18)return mu.notEquals(i,a);switch(a){case"true":return mu.not(i);case"false":return mu.has(i);default:return mu.notEquals(i,a)}}case 5:return this._advance(),j6e.create(i,this._value());case 6:return this._advance(),V6e.create(i,this._value());case 7:return this._advance(),R6e.create(i,this._value());case 8:return this._advance(),O6e.create(i,this._value());case 13:return this._advance(),mu.in(i,this._value());default:return mu.has(i)}}case 20:throw this._parsingErrors.push({message:$_i,offset:e.offset,lexeme:"",additionalInfo:U_i}),sne._parseError;default:throw this._errExpectedButGot(`true | false | KEY +`))}}class IEi{constructor(e,i,n){this.callback=e,this.callbackThis=i,this.stack=n,this.subscription=new LEi}invoke(e){this.callback.call(this.callbackThis,e)}}let ki=class{constructor(e){var i,n,a,o,c;this._disposed=!1,this._options=e,this._leakageMon=!((i=this._options)===null||i===void 0)&&i.leakWarningThreshold?new zEi((a=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&a!==void 0?a:MEi):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new PJ(this._options._profName):void 0,this._deliveryQueue=(c=this._options)===null||c===void 0?void 0:c.deliveryQueue}dispose(){var e,i,n,a;this._disposed||(this._disposed=!0,this._listeners&&this._listeners.clear(),(e=this._deliveryQueue)===null||e===void 0||e.clear(this),(n=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||n===void 0||n.call(i),(a=this._leakageMon)===null||a===void 0||a.dispose())}get event(){return this._event||(this._event=(e,i,n)=>{var a,o,c;if(this._listeners||(this._listeners=new ug),this._leakageMon&&this._listeners.size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),ln.None;const h=this._listeners.isEmpty();h&&(!((a=this._options)===null||a===void 0)&&a.onWillAddFirstListener)&&this._options.onWillAddFirstListener(this);let g,_;this._leakageMon&&this._listeners.size>=Math.ceil(this._leakageMon.threshold*.2)&&(_=aJe.create(),g=this._leakageMon.check(_,this._listeners.size+1));const x=new IEi(e,i,_),y=this._listeners.push(x);h&&(!((o=this._options)===null||o===void 0)&&o.onDidAddFirstListener)&&this._options.onDidAddFirstListener(this),!((c=this._options)===null||c===void 0)&&c.onDidAddListener&&this._options.onDidAddListener(this,e,i);const S=x.subscription.set(()=>{var L,R;g==null||g(),this._disposed||((R=(L=this._options)===null||L===void 0?void 0:L.onWillRemoveListener)===null||R===void 0||R.call(L,this),y(),this._options&&this._options.onDidRemoveLastListener&&(this._listeners&&!this._listeners.isEmpty()||this._options.onDidRemoveLastListener(this)))});return n instanceof cu?n.add(S):Array.isArray(n)&&n.push(S),S}),this._event}fire(e){var i,n,a;if(this._listeners){this._deliveryQueue||(this._deliveryQueue=new REi((i=this._options)===null||i===void 0?void 0:i.onListenerError));for(const o of this._listeners)this._deliveryQueue.push(this,o,e);(n=this._perfMon)===null||n===void 0||n.start(this._deliveryQueue.size),this._deliveryQueue.deliver(),(a=this._perfMon)===null||a===void 0||a.stop()}}hasListeners(){return this._listeners?!this._listeners.isEmpty():!1}};class fCt{constructor(e=Ns){this._onListenerError=e,this._queue=new ug}get size(){return this._queue.size}push(e,i,n){this._queue.push(new OEi(e,i,n))}clear(e){const i=new ug;for(const n of this._queue)n.emitter!==e&&i.push(n);this._queue=i}deliver(){for(;this._queue.size>0;){const e=this._queue.shift();try{e.listener.invoke(e.event)}catch(i){this._onListenerError(i)}}}}class REi extends fCt{clear(e){this._queue.clear()}}class OEi{constructor(e,i,n){this.emitter=e,this.listener=i,this.event=n}}class MJ extends ki{constructor(e){super(e),this._isPaused=0,this._eventQueue=new ug,this._mergeFn=e==null?void 0:e.merge}pause(){this._isPaused++}resume(){if(this._isPaused!==0&&--this._isPaused===0)if(this._mergeFn){if(this._eventQueue.size>0){const e=Array.from(this._eventQueue);this._eventQueue.clear(),super.fire(this._mergeFn(e))}}else for(;!this._isPaused&&this._eventQueue.size!==0;)super.fire(this._eventQueue.shift())}fire(e){this._listeners&&(this._isPaused!==0?this._eventQueue.push(e):super.fire(e))}}class mCt extends MJ{constructor(e){var i;super(e),this._delay=(i=e.delay)!==null&&i!==void 0?i:100}fire(e){this._handle||(this.pause(),this._handle=setTimeout(()=>{this._handle=void 0,this.resume()},this._delay)),super.fire(e)}}class jEi extends ki{constructor(e){super(e),this._queuedEvents=[],this._mergeFn=e==null?void 0:e.merge}fire(e){this.hasListeners()&&(this._queuedEvents.push(e),this._queuedEvents.length===1&&queueMicrotask(()=>{this._mergeFn?super.fire(this._mergeFn(this._queuedEvents)):this._queuedEvents.forEach(i=>super.fire(i)),this._queuedEvents=[]}))}}class VEi{constructor(){this.hasListeners=!1,this.events=[],this.emitter=new ki({onWillAddFirstListener:()=>this.onFirstListenerAdd(),onDidRemoveLastListener:()=>this.onLastListenerRemove()})}get event(){return this.emitter.event}add(e){const i={event:e,listener:null};return this.events.push(i),this.hasListeners&&this.hook(i),Ls(wA(()=>{this.hasListeners&&this.unhook(i);const a=this.events.indexOf(i);this.events.splice(a,1)}))}onFirstListenerAdd(){this.hasListeners=!0,this.events.forEach(e=>this.hook(e))}onLastListenerRemove(){this.hasListeners=!1,this.events.forEach(e=>this.unhook(e))}hook(e){e.listener=e.event(i=>this.emitter.fire(i))}unhook(e){e.listener&&e.listener.dispose(),e.listener=null}dispose(){this.emitter.dispose()}}class oJe{constructor(){this.buffers=[]}wrapEvent(e){return(i,n,a)=>e(o=>{const c=this.buffers[this.buffers.length-1];c?c.push(()=>i.call(n,o)):i.call(n,o)},void 0,a)}bufferEvents(e){const i=[];this.buffers.push(i);const n=e();return this.buffers.pop(),i.forEach(a=>a()),n}}class Bgt{constructor(){this.listening=!1,this.inputEvent=Ra.None,this.inputEventListener=ln.None,this.emitter=new ki({onDidAddFirstListener:()=>{this.listening=!0,this.inputEventListener=this.inputEvent(this.emitter.fire,this.emitter)},onDidRemoveLastListener:()=>{this.listening=!1,this.inputEventListener.dispose()}}),this.event=this.emitter.event}set input(e){this.inputEvent=e,this.listening&&(this.inputEventListener.dispose(),this.inputEventListener=e(this.emitter.fire,this.emitter))}dispose(){this.inputEventListener.dispose(),this.emitter.dispose()}}const pCt=Object.freeze(function(r,e){const i=setTimeout(r.bind(e),0);return{dispose(){clearTimeout(i)}}});var E0;(function(r){function e(i){return i===r.None||i===r.Cancelled||i instanceof uDe?!0:!i||typeof i!="object"?!1:typeof i.isCancellationRequested=="boolean"&&typeof i.onCancellationRequested=="function"}r.isCancellationToken=e,r.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Ra.None}),r.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:pCt})})(E0||(E0={}));class uDe{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?pCt:(this._emitter||(this._emitter=new ki),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}}let Bp=class{constructor(e){this._token=void 0,this._parentListener=void 0,this._parentListener=e&&e.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new uDe),this._token}cancel(){this._token?this._token instanceof uDe&&this._token.cancel():this._token=E0.Cancelled}dispose(e=!1){var i;e&&this.cancel(),(i=this._parentListener)===null||i===void 0||i.dispose(),this._token?this._token instanceof uDe&&this._token.dispose():this._token=E0.None}};class sJe{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(e,i){this._keyCodeToStr[e]=i,this._strToKeyCode[i.toLowerCase()]=e}keyCodeToStr(e){return this._keyCodeToStr[e]}strToKeyCode(e){return this._strToKeyCode[e.toLowerCase()]||0}}const rDe=new sJe,Cje=new sJe,bje=new sJe,gCt=new Array(230),HEi=Object.create(null),KEi=Object.create(null),lJe=[];for(let r=0;r<=193;r++)lJe[r]=-1;(function(){const r="",e=[[0,1,0,"None",0,"unknown",0,"VK_UNKNOWN",r,r],[0,1,1,"Hyper",0,r,0,r,r,r],[0,1,2,"Super",0,r,0,r,r,r],[0,1,3,"Fn",0,r,0,r,r,r],[0,1,4,"FnLock",0,r,0,r,r,r],[0,1,5,"Suspend",0,r,0,r,r,r],[0,1,6,"Resume",0,r,0,r,r,r],[0,1,7,"Turbo",0,r,0,r,r,r],[0,1,8,"Sleep",0,r,0,"VK_SLEEP",r,r],[0,1,9,"WakeUp",0,r,0,r,r,r],[31,0,10,"KeyA",31,"A",65,"VK_A",r,r],[32,0,11,"KeyB",32,"B",66,"VK_B",r,r],[33,0,12,"KeyC",33,"C",67,"VK_C",r,r],[34,0,13,"KeyD",34,"D",68,"VK_D",r,r],[35,0,14,"KeyE",35,"E",69,"VK_E",r,r],[36,0,15,"KeyF",36,"F",70,"VK_F",r,r],[37,0,16,"KeyG",37,"G",71,"VK_G",r,r],[38,0,17,"KeyH",38,"H",72,"VK_H",r,r],[39,0,18,"KeyI",39,"I",73,"VK_I",r,r],[40,0,19,"KeyJ",40,"J",74,"VK_J",r,r],[41,0,20,"KeyK",41,"K",75,"VK_K",r,r],[42,0,21,"KeyL",42,"L",76,"VK_L",r,r],[43,0,22,"KeyM",43,"M",77,"VK_M",r,r],[44,0,23,"KeyN",44,"N",78,"VK_N",r,r],[45,0,24,"KeyO",45,"O",79,"VK_O",r,r],[46,0,25,"KeyP",46,"P",80,"VK_P",r,r],[47,0,26,"KeyQ",47,"Q",81,"VK_Q",r,r],[48,0,27,"KeyR",48,"R",82,"VK_R",r,r],[49,0,28,"KeyS",49,"S",83,"VK_S",r,r],[50,0,29,"KeyT",50,"T",84,"VK_T",r,r],[51,0,30,"KeyU",51,"U",85,"VK_U",r,r],[52,0,31,"KeyV",52,"V",86,"VK_V",r,r],[53,0,32,"KeyW",53,"W",87,"VK_W",r,r],[54,0,33,"KeyX",54,"X",88,"VK_X",r,r],[55,0,34,"KeyY",55,"Y",89,"VK_Y",r,r],[56,0,35,"KeyZ",56,"Z",90,"VK_Z",r,r],[22,0,36,"Digit1",22,"1",49,"VK_1",r,r],[23,0,37,"Digit2",23,"2",50,"VK_2",r,r],[24,0,38,"Digit3",24,"3",51,"VK_3",r,r],[25,0,39,"Digit4",25,"4",52,"VK_4",r,r],[26,0,40,"Digit5",26,"5",53,"VK_5",r,r],[27,0,41,"Digit6",27,"6",54,"VK_6",r,r],[28,0,42,"Digit7",28,"7",55,"VK_7",r,r],[29,0,43,"Digit8",29,"8",56,"VK_8",r,r],[30,0,44,"Digit9",30,"9",57,"VK_9",r,r],[21,0,45,"Digit0",21,"0",48,"VK_0",r,r],[3,1,46,"Enter",3,"Enter",13,"VK_RETURN",r,r],[9,1,47,"Escape",9,"Escape",27,"VK_ESCAPE",r,r],[1,1,48,"Backspace",1,"Backspace",8,"VK_BACK",r,r],[2,1,49,"Tab",2,"Tab",9,"VK_TAB",r,r],[10,1,50,"Space",10,"Space",32,"VK_SPACE",r,r],[83,0,51,"Minus",83,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[81,0,52,"Equal",81,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[87,0,53,"BracketLeft",87,"[",219,"VK_OEM_4","[","OEM_4"],[89,0,54,"BracketRight",89,"]",221,"VK_OEM_6","]","OEM_6"],[88,0,55,"Backslash",88,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,0,56,"IntlHash",0,r,0,r,r,r],[80,0,57,"Semicolon",80,";",186,"VK_OEM_1",";","OEM_1"],[90,0,58,"Quote",90,"'",222,"VK_OEM_7","'","OEM_7"],[86,0,59,"Backquote",86,"`",192,"VK_OEM_3","`","OEM_3"],[82,0,60,"Comma",82,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[84,0,61,"Period",84,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[85,0,62,"Slash",85,"/",191,"VK_OEM_2","/","OEM_2"],[8,1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",r,r],[59,1,64,"F1",59,"F1",112,"VK_F1",r,r],[60,1,65,"F2",60,"F2",113,"VK_F2",r,r],[61,1,66,"F3",61,"F3",114,"VK_F3",r,r],[62,1,67,"F4",62,"F4",115,"VK_F4",r,r],[63,1,68,"F5",63,"F5",116,"VK_F5",r,r],[64,1,69,"F6",64,"F6",117,"VK_F6",r,r],[65,1,70,"F7",65,"F7",118,"VK_F7",r,r],[66,1,71,"F8",66,"F8",119,"VK_F8",r,r],[67,1,72,"F9",67,"F9",120,"VK_F9",r,r],[68,1,73,"F10",68,"F10",121,"VK_F10",r,r],[69,1,74,"F11",69,"F11",122,"VK_F11",r,r],[70,1,75,"F12",70,"F12",123,"VK_F12",r,r],[0,1,76,"PrintScreen",0,r,0,r,r,r],[79,1,77,"ScrollLock",79,"ScrollLock",145,"VK_SCROLL",r,r],[7,1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",r,r],[19,1,79,"Insert",19,"Insert",45,"VK_INSERT",r,r],[14,1,80,"Home",14,"Home",36,"VK_HOME",r,r],[11,1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",r,r],[20,1,82,"Delete",20,"Delete",46,"VK_DELETE",r,r],[13,1,83,"End",13,"End",35,"VK_END",r,r],[12,1,84,"PageDown",12,"PageDown",34,"VK_NEXT",r,r],[17,1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",r],[15,1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",r],[18,1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",r],[16,1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",r],[78,1,89,"NumLock",78,"NumLock",144,"VK_NUMLOCK",r,r],[108,1,90,"NumpadDivide",108,"NumPad_Divide",111,"VK_DIVIDE",r,r],[103,1,91,"NumpadMultiply",103,"NumPad_Multiply",106,"VK_MULTIPLY",r,r],[106,1,92,"NumpadSubtract",106,"NumPad_Subtract",109,"VK_SUBTRACT",r,r],[104,1,93,"NumpadAdd",104,"NumPad_Add",107,"VK_ADD",r,r],[3,1,94,"NumpadEnter",3,r,0,r,r,r],[94,1,95,"Numpad1",94,"NumPad1",97,"VK_NUMPAD1",r,r],[95,1,96,"Numpad2",95,"NumPad2",98,"VK_NUMPAD2",r,r],[96,1,97,"Numpad3",96,"NumPad3",99,"VK_NUMPAD3",r,r],[97,1,98,"Numpad4",97,"NumPad4",100,"VK_NUMPAD4",r,r],[98,1,99,"Numpad5",98,"NumPad5",101,"VK_NUMPAD5",r,r],[99,1,100,"Numpad6",99,"NumPad6",102,"VK_NUMPAD6",r,r],[100,1,101,"Numpad7",100,"NumPad7",103,"VK_NUMPAD7",r,r],[101,1,102,"Numpad8",101,"NumPad8",104,"VK_NUMPAD8",r,r],[102,1,103,"Numpad9",102,"NumPad9",105,"VK_NUMPAD9",r,r],[93,1,104,"Numpad0",93,"NumPad0",96,"VK_NUMPAD0",r,r],[107,1,105,"NumpadDecimal",107,"NumPad_Decimal",110,"VK_DECIMAL",r,r],[92,0,106,"IntlBackslash",92,"OEM_102",226,"VK_OEM_102",r,r],[58,1,107,"ContextMenu",58,"ContextMenu",93,r,r,r],[0,1,108,"Power",0,r,0,r,r,r],[0,1,109,"NumpadEqual",0,r,0,r,r,r],[71,1,110,"F13",71,"F13",124,"VK_F13",r,r],[72,1,111,"F14",72,"F14",125,"VK_F14",r,r],[73,1,112,"F15",73,"F15",126,"VK_F15",r,r],[74,1,113,"F16",74,"F16",127,"VK_F16",r,r],[75,1,114,"F17",75,"F17",128,"VK_F17",r,r],[76,1,115,"F18",76,"F18",129,"VK_F18",r,r],[77,1,116,"F19",77,"F19",130,"VK_F19",r,r],[0,1,117,"F20",0,r,0,"VK_F20",r,r],[0,1,118,"F21",0,r,0,"VK_F21",r,r],[0,1,119,"F22",0,r,0,"VK_F22",r,r],[0,1,120,"F23",0,r,0,"VK_F23",r,r],[0,1,121,"F24",0,r,0,"VK_F24",r,r],[0,1,122,"Open",0,r,0,r,r,r],[0,1,123,"Help",0,r,0,r,r,r],[0,1,124,"Select",0,r,0,r,r,r],[0,1,125,"Again",0,r,0,r,r,r],[0,1,126,"Undo",0,r,0,r,r,r],[0,1,127,"Cut",0,r,0,r,r,r],[0,1,128,"Copy",0,r,0,r,r,r],[0,1,129,"Paste",0,r,0,r,r,r],[0,1,130,"Find",0,r,0,r,r,r],[0,1,131,"AudioVolumeMute",112,"AudioVolumeMute",173,"VK_VOLUME_MUTE",r,r],[0,1,132,"AudioVolumeUp",113,"AudioVolumeUp",175,"VK_VOLUME_UP",r,r],[0,1,133,"AudioVolumeDown",114,"AudioVolumeDown",174,"VK_VOLUME_DOWN",r,r],[105,1,134,"NumpadComma",105,"NumPad_Separator",108,"VK_SEPARATOR",r,r],[110,0,135,"IntlRo",110,"ABNT_C1",193,"VK_ABNT_C1",r,r],[0,1,136,"KanaMode",0,r,0,r,r,r],[0,0,137,"IntlYen",0,r,0,r,r,r],[0,1,138,"Convert",0,r,0,r,r,r],[0,1,139,"NonConvert",0,r,0,r,r,r],[0,1,140,"Lang1",0,r,0,r,r,r],[0,1,141,"Lang2",0,r,0,r,r,r],[0,1,142,"Lang3",0,r,0,r,r,r],[0,1,143,"Lang4",0,r,0,r,r,r],[0,1,144,"Lang5",0,r,0,r,r,r],[0,1,145,"Abort",0,r,0,r,r,r],[0,1,146,"Props",0,r,0,r,r,r],[0,1,147,"NumpadParenLeft",0,r,0,r,r,r],[0,1,148,"NumpadParenRight",0,r,0,r,r,r],[0,1,149,"NumpadBackspace",0,r,0,r,r,r],[0,1,150,"NumpadMemoryStore",0,r,0,r,r,r],[0,1,151,"NumpadMemoryRecall",0,r,0,r,r,r],[0,1,152,"NumpadMemoryClear",0,r,0,r,r,r],[0,1,153,"NumpadMemoryAdd",0,r,0,r,r,r],[0,1,154,"NumpadMemorySubtract",0,r,0,r,r,r],[0,1,155,"NumpadClear",126,"Clear",12,"VK_CLEAR",r,r],[0,1,156,"NumpadClearEntry",0,r,0,r,r,r],[5,1,0,r,5,"Ctrl",17,"VK_CONTROL",r,r],[4,1,0,r,4,"Shift",16,"VK_SHIFT",r,r],[6,1,0,r,6,"Alt",18,"VK_MENU",r,r],[57,1,0,r,57,"Meta",91,"VK_COMMAND",r,r],[5,1,157,"ControlLeft",5,r,0,"VK_LCONTROL",r,r],[4,1,158,"ShiftLeft",4,r,0,"VK_LSHIFT",r,r],[6,1,159,"AltLeft",6,r,0,"VK_LMENU",r,r],[57,1,160,"MetaLeft",57,r,0,"VK_LWIN",r,r],[5,1,161,"ControlRight",5,r,0,"VK_RCONTROL",r,r],[4,1,162,"ShiftRight",4,r,0,"VK_RSHIFT",r,r],[6,1,163,"AltRight",6,r,0,"VK_RMENU",r,r],[57,1,164,"MetaRight",57,r,0,"VK_RWIN",r,r],[0,1,165,"BrightnessUp",0,r,0,r,r,r],[0,1,166,"BrightnessDown",0,r,0,r,r,r],[0,1,167,"MediaPlay",0,r,0,r,r,r],[0,1,168,"MediaRecord",0,r,0,r,r,r],[0,1,169,"MediaFastForward",0,r,0,r,r,r],[0,1,170,"MediaRewind",0,r,0,r,r,r],[114,1,171,"MediaTrackNext",119,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",r,r],[115,1,172,"MediaTrackPrevious",120,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",r,r],[116,1,173,"MediaStop",121,"MediaStop",178,"VK_MEDIA_STOP",r,r],[0,1,174,"Eject",0,r,0,r,r,r],[117,1,175,"MediaPlayPause",122,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",r,r],[0,1,176,"MediaSelect",123,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",r,r],[0,1,177,"LaunchMail",124,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",r,r],[0,1,178,"LaunchApp2",125,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",r,r],[0,1,179,"LaunchApp1",0,r,0,"VK_MEDIA_LAUNCH_APP1",r,r],[0,1,180,"SelectTask",0,r,0,r,r,r],[0,1,181,"LaunchScreenSaver",0,r,0,r,r,r],[0,1,182,"BrowserSearch",115,"BrowserSearch",170,"VK_BROWSER_SEARCH",r,r],[0,1,183,"BrowserHome",116,"BrowserHome",172,"VK_BROWSER_HOME",r,r],[112,1,184,"BrowserBack",117,"BrowserBack",166,"VK_BROWSER_BACK",r,r],[113,1,185,"BrowserForward",118,"BrowserForward",167,"VK_BROWSER_FORWARD",r,r],[0,1,186,"BrowserStop",0,r,0,"VK_BROWSER_STOP",r,r],[0,1,187,"BrowserRefresh",0,r,0,"VK_BROWSER_REFRESH",r,r],[0,1,188,"BrowserFavorites",0,r,0,"VK_BROWSER_FAVORITES",r,r],[0,1,189,"ZoomToggle",0,r,0,r,r,r],[0,1,190,"MailReply",0,r,0,r,r,r],[0,1,191,"MailForward",0,r,0,r,r,r],[0,1,192,"MailSend",0,r,0,r,r,r],[109,1,0,r,109,"KeyInComposition",229,r,r,r],[111,1,0,r,111,"ABNT_C2",194,"VK_ABNT_C2",r,r],[91,1,0,r,91,"OEM_8",223,"VK_OEM_8",r,r],[0,1,0,r,0,r,0,"VK_KANA",r,r],[0,1,0,r,0,r,0,"VK_HANGUL",r,r],[0,1,0,r,0,r,0,"VK_JUNJA",r,r],[0,1,0,r,0,r,0,"VK_FINAL",r,r],[0,1,0,r,0,r,0,"VK_HANJA",r,r],[0,1,0,r,0,r,0,"VK_KANJI",r,r],[0,1,0,r,0,r,0,"VK_CONVERT",r,r],[0,1,0,r,0,r,0,"VK_NONCONVERT",r,r],[0,1,0,r,0,r,0,"VK_ACCEPT",r,r],[0,1,0,r,0,r,0,"VK_MODECHANGE",r,r],[0,1,0,r,0,r,0,"VK_SELECT",r,r],[0,1,0,r,0,r,0,"VK_PRINT",r,r],[0,1,0,r,0,r,0,"VK_EXECUTE",r,r],[0,1,0,r,0,r,0,"VK_SNAPSHOT",r,r],[0,1,0,r,0,r,0,"VK_HELP",r,r],[0,1,0,r,0,r,0,"VK_APPS",r,r],[0,1,0,r,0,r,0,"VK_PROCESSKEY",r,r],[0,1,0,r,0,r,0,"VK_PACKET",r,r],[0,1,0,r,0,r,0,"VK_DBE_SBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_DBE_DBCSCHAR",r,r],[0,1,0,r,0,r,0,"VK_ATTN",r,r],[0,1,0,r,0,r,0,"VK_CRSEL",r,r],[0,1,0,r,0,r,0,"VK_EXSEL",r,r],[0,1,0,r,0,r,0,"VK_EREOF",r,r],[0,1,0,r,0,r,0,"VK_PLAY",r,r],[0,1,0,r,0,r,0,"VK_ZOOM",r,r],[0,1,0,r,0,r,0,"VK_NONAME",r,r],[0,1,0,r,0,r,0,"VK_PA1",r,r],[0,1,0,r,0,r,0,"VK_OEM_CLEAR",r,r]],i=[],n=[];for(const a of e){const[o,c,h,g,_,x,y,S,L,R]=a;if(n[h]||(n[h]=!0,HEi[g]=h,KEi[g.toLowerCase()]=h,c&&(lJe[h]=_)),!i[_]){if(i[_]=!0,!x)throw new Error(`String representation missing for key code ${_} around scan code ${g}`);rDe.define(_,x),Cje.define(_,L||x),bje.define(_,R||L||x)}y&&(gCt[y]=_)}})();var AS;(function(r){function e(h){return rDe.keyCodeToStr(h)}r.toString=e;function i(h){return rDe.strToKeyCode(h)}r.fromString=i;function n(h){return Cje.keyCodeToStr(h)}r.toUserSettingsUS=n;function a(h){return bje.keyCodeToStr(h)}r.toUserSettingsGeneral=a;function o(h){return Cje.strToKeyCode(h)||bje.strToKeyCode(h)}r.fromUserSettings=o;function c(h){if(h>=93&&h<=108)return null;switch(h){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return rDe.keyCodeToStr(h)}r.toElectronAccelerator=c})(AS||(AS={}));function Sm(r,e){const i=(e&65535)<<16>>>0;return(r|i)>>>0}var wgt={};let uJ;if(typeof VD.vscode<"u"&&typeof VD.vscode.process<"u"){const r=VD.vscode.process;uJ={get platform(){return r.platform},get arch(){return r.arch},get env(){return r.env},cwd(){return r.cwd()}}}else typeof process<"u"?uJ={get platform(){return process.platform},get arch(){return process.arch},get env(){return wgt},cwd(){return wgt.VSCODE_CWD||process.cwd()}}:uJ={get platform(){return Sp?"win32":d0?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};const c5e=uJ.cwd,WEi=uJ.env,GEi=uJ.platform,JEi=65,$Ei=97,UEi=90,qEi=122,vL=46,ME=47,q5=92,bT=58,ZEi=63;class ECt extends Error{constructor(e,i,n){let a;typeof i=="string"&&i.indexOf("not ")===0?(a="must not be",i=i.replace(/^not /,"")):a="must be";const o=e.indexOf(".")!==-1?"property":"argument";let c=`The "${e}" ${o} ${a} of type ${i}`;c+=`. Received type ${typeof n}`,super(c),this.code="ERR_INVALID_ARG_TYPE"}}function YEi(r,e){if(r===null||typeof r!="object")throw new ECt(e,"Object",r)}function P4(r,e){if(typeof r!="string")throw new ECt(e,"string",r)}const lN=GEi==="win32";function gc(r){return r===ME||r===q5}function yje(r){return r===ME}function yT(r){return r>=JEi&&r<=UEi||r>=$Ei&&r<=qEi}function d5e(r,e,i,n){let a="",o=0,c=-1,h=0,g=0;for(let _=0;_<=r.length;++_){if(_2){const x=a.lastIndexOf(i);x===-1?(a="",o=0):(a=a.slice(0,x),o=a.length-1-a.lastIndexOf(i)),c=_,h=0;continue}else if(a.length!==0){a="",o=0,c=_,h=0;continue}}e&&(a+=a.length>0?`${i}..`:"..",o=2)}else a.length>0?a+=`${i}${r.slice(c+1,_)}`:a=r.slice(c+1,_),o=_-c-1;c=_,h=0}else g===vL&&h!==-1?++h:h=-1}return a}function _Ct(r,e){YEi(e,"pathObject");const i=e.dir||e.root,n=e.base||`${e.name||""}${e.ext||""}`;return i?i===e.root?`${i}${n}`:`${i}${r}${n}`:n}const OD={resolve(...r){let e="",i="",n=!1;for(let a=r.length-1;a>=-1;a--){let o;if(a>=0){if(o=r[a],P4(o,"path"),o.length===0)continue}else e.length===0?o=c5e():(o=WEi[`=${e}`]||c5e(),(o===void 0||o.slice(0,2).toLowerCase()!==e.toLowerCase()&&o.charCodeAt(2)===q5)&&(o=`${e}\\`));const c=o.length;let h=0,g="",_=!1;const x=o.charCodeAt(0);if(c===1)gc(x)&&(h=1,_=!0);else if(gc(x))if(_=!0,gc(o.charCodeAt(1))){let y=2,S=y;for(;y2&&gc(o.charCodeAt(2))&&(_=!0,h=3));if(g.length>0)if(e.length>0){if(g.toLowerCase()!==e.toLowerCase())continue}else e=g;if(n){if(e.length>0)break}else if(i=`${o.slice(h)}\\${i}`,n=_,_&&e.length>0)break}return i=d5e(i,!n,"\\",gc),n?`${e}\\${i}`:`${e}${i}`||"."},normalize(r){P4(r,"path");const e=r.length;if(e===0)return".";let i=0,n,a=!1;const o=r.charCodeAt(0);if(e===1)return yje(o)?"\\":r;if(gc(o))if(a=!0,gc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&gc(r.charCodeAt(2))&&(a=!0,i=3));let c=i0&&gc(r.charCodeAt(e-1))&&(c+="\\"),n===void 0?a?`\\${c}`:c:a?`${n}\\${c}`:`${n}${c}`},isAbsolute(r){P4(r,"path");const e=r.length;if(e===0)return!1;const i=r.charCodeAt(0);return gc(i)||e>2&&yT(i)&&r.charCodeAt(1)===bT&&gc(r.charCodeAt(2))},join(...r){if(r.length===0)return".";let e,i;for(let o=0;o0&&(e===void 0?e=i=c:e+=`\\${c}`)}if(e===void 0)return".";let n=!0,a=0;if(typeof i=="string"&&gc(i.charCodeAt(0))){++a;const o=i.length;o>1&&gc(i.charCodeAt(1))&&(++a,o>2&&(gc(i.charCodeAt(2))?++a:n=!1))}if(n){for(;a=2&&(e=`\\${e.slice(a)}`)}return OD.normalize(e)},relative(r,e){if(P4(r,"from"),P4(e,"to"),r===e)return"";const i=OD.resolve(r),n=OD.resolve(e);if(i===n||(r=i.toLowerCase(),e=n.toLowerCase(),r===e))return"";let a=0;for(;aa&&r.charCodeAt(o-1)===q5;)o--;const c=o-a;let h=0;for(;hh&&e.charCodeAt(g-1)===q5;)g--;const _=g-h,x=c<_?c:_;let y=-1,S=0;for(;Sx){if(e.charCodeAt(h+S)===q5)return n.slice(h+S+1);if(S===2)return n.slice(h+S)}c>x&&(r.charCodeAt(a+S)===q5?y=S:S===2&&(y=3)),y===-1&&(y=0)}let L="";for(S=a+y+1;S<=o;++S)(S===o||r.charCodeAt(S)===q5)&&(L+=L.length===0?"..":"\\..");return h+=y,L.length>0?`${L}${n.slice(h,g)}`:(n.charCodeAt(h)===q5&&++h,n.slice(h,g))},toNamespacedPath(r){if(typeof r!="string"||r.length===0)return r;const e=OD.resolve(r);if(e.length<=2)return r;if(e.charCodeAt(0)===q5){if(e.charCodeAt(1)===q5){const i=e.charCodeAt(2);if(i!==ZEi&&i!==vL)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(yT(e.charCodeAt(0))&&e.charCodeAt(1)===bT&&e.charCodeAt(2)===q5)return`\\\\?\\${e}`;return r},dirname(r){P4(r,"path");const e=r.length;if(e===0)return".";let i=-1,n=0;const a=r.charCodeAt(0);if(e===1)return gc(a)?r:".";if(gc(a)){if(i=n=1,gc(r.charCodeAt(1))){let h=2,g=h;for(;h2&&gc(r.charCodeAt(2))?3:2,n=i);let o=-1,c=!0;for(let h=e-1;h>=n;--h)if(gc(r.charCodeAt(h))){if(!c){o=h;break}}else c=!1;if(o===-1){if(i===-1)return".";o=i}return r.slice(0,o)},basename(r,e){e!==void 0&&P4(e,"ext"),P4(r,"path");let i=0,n=-1,a=!0,o;if(r.length>=2&&yT(r.charCodeAt(0))&&r.charCodeAt(1)===bT&&(i=2),e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=i;--o){const g=r.charCodeAt(o);if(gc(g)){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=i;--o)if(gc(r.charCodeAt(o))){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){P4(r,"path");let e=0,i=-1,n=0,a=-1,o=!0,c=0;r.length>=2&&r.charCodeAt(1)===bT&&yT(r.charCodeAt(0))&&(e=n=2);for(let h=r.length-1;h>=e;--h){const g=r.charCodeAt(h);if(gc(g)){if(!o){n=h+1;break}continue}a===-1&&(o=!1,a=h+1),g===vL?i===-1?i=h:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||a===-1||c===0||c===1&&i===a-1&&i===n+1?"":r.slice(i,a)},format:_Ct.bind(null,"\\"),parse(r){P4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.length;let n=0,a=r.charCodeAt(0);if(i===1)return gc(a)?(e.root=e.dir=r,e):(e.base=e.name=r,e);if(gc(a)){if(n=1,gc(r.charCodeAt(1))){let y=2,S=y;for(;y0&&(e.root=r.slice(0,n));let o=-1,c=n,h=-1,g=!0,_=r.length-1,x=0;for(;_>=n;--_){if(a=r.charCodeAt(_),gc(a)){if(!g){c=_+1;break}continue}h===-1&&(g=!1,h=_+1),a===vL?o===-1?o=_:x!==1&&(x=1):o!==-1&&(x=-1)}return h!==-1&&(o===-1||x===0||x===1&&o===h-1&&o===c+1?e.base=e.name=r.slice(c,h):(e.name=r.slice(c,o),e.base=r.slice(c,h),e.ext=r.slice(o,h))),c>0&&c!==n?e.dir=r.slice(0,c-1):e.dir=e.root,e},sep:"\\",delimiter:";",win32:null,posix:null},QEi=(()=>{if(lN){const r=/\\/g;return()=>{const e=c5e().replace(r,"/");return e.slice(e.indexOf("/"))}}return()=>c5e()})(),nm={resolve(...r){let e="",i=!1;for(let n=r.length-1;n>=-1&&!i;n--){const a=n>=0?r[n]:QEi();P4(a,"path"),a.length!==0&&(e=`${a}/${e}`,i=a.charCodeAt(0)===ME)}return e=d5e(e,!i,"/",yje),i?`/${e}`:e.length>0?e:"."},normalize(r){if(P4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===ME,i=r.charCodeAt(r.length-1)===ME;return r=d5e(r,!e,"/",yje),r.length===0?e?"/":i?"./":".":(i&&(r+="/"),e?`/${r}`:r)},isAbsolute(r){return P4(r,"path"),r.length>0&&r.charCodeAt(0)===ME},join(...r){if(r.length===0)return".";let e;for(let i=0;i0&&(e===void 0?e=n:e+=`/${n}`)}return e===void 0?".":nm.normalize(e)},relative(r,e){if(P4(r,"from"),P4(e,"to"),r===e||(r=nm.resolve(r),e=nm.resolve(e),r===e))return"";const i=1,n=r.length,a=n-i,o=1,c=e.length-o,h=ah){if(e.charCodeAt(o+_)===ME)return e.slice(o+_+1);if(_===0)return e.slice(o+_)}else a>h&&(r.charCodeAt(i+_)===ME?g=_:_===0&&(g=0));let x="";for(_=i+g+1;_<=n;++_)(_===n||r.charCodeAt(_)===ME)&&(x+=x.length===0?"..":"/..");return`${x}${e.slice(o+g)}`},toNamespacedPath(r){return r},dirname(r){if(P4(r,"path"),r.length===0)return".";const e=r.charCodeAt(0)===ME;let i=-1,n=!0;for(let a=r.length-1;a>=1;--a)if(r.charCodeAt(a)===ME){if(!n){i=a;break}}else n=!1;return i===-1?e?"/":".":e&&i===1?"//":r.slice(0,i)},basename(r,e){e!==void 0&&P4(e,"ext"),P4(r,"path");let i=0,n=-1,a=!0,o;if(e!==void 0&&e.length>0&&e.length<=r.length){if(e===r)return"";let c=e.length-1,h=-1;for(o=r.length-1;o>=0;--o){const g=r.charCodeAt(o);if(g===ME){if(!a){i=o+1;break}}else h===-1&&(a=!1,h=o+1),c>=0&&(g===e.charCodeAt(c)?--c===-1&&(n=o):(c=-1,n=h))}return i===n?n=h:n===-1&&(n=r.length),r.slice(i,n)}for(o=r.length-1;o>=0;--o)if(r.charCodeAt(o)===ME){if(!a){i=o+1;break}}else n===-1&&(a=!1,n=o+1);return n===-1?"":r.slice(i,n)},extname(r){P4(r,"path");let e=-1,i=0,n=-1,a=!0,o=0;for(let c=r.length-1;c>=0;--c){const h=r.charCodeAt(c);if(h===ME){if(!a){i=c+1;break}continue}n===-1&&(a=!1,n=c+1),h===vL?e===-1?e=c:o!==1&&(o=1):e!==-1&&(o=-1)}return e===-1||n===-1||o===0||o===1&&e===n-1&&e===i+1?"":r.slice(e,n)},format:_Ct.bind(null,"/"),parse(r){P4(r,"path");const e={root:"",dir:"",base:"",ext:"",name:""};if(r.length===0)return e;const i=r.charCodeAt(0)===ME;let n;i?(e.root="/",n=1):n=0;let a=-1,o=0,c=-1,h=!0,g=r.length-1,_=0;for(;g>=n;--g){const x=r.charCodeAt(g);if(x===ME){if(!h){o=g+1;break}continue}c===-1&&(h=!1,c=g+1),x===vL?a===-1?a=g:_!==1&&(_=1):a!==-1&&(_=-1)}if(c!==-1){const x=o===0&&i?1:o;a===-1||_===0||_===1&&a===c-1&&a===o+1?e.base=e.name=r.slice(x,c):(e.name=r.slice(x,a),e.base=r.slice(x,c),e.ext=r.slice(a,c))}return o>0?e.dir=r.slice(0,o-1):i&&(e.dir="/"),e},sep:"/",delimiter:":",win32:null,posix:null};nm.win32=OD.win32=OD;nm.posix=OD.posix=nm;const DCt=lN?OD.normalize:nm.normalize,XEi=lN?OD.resolve:nm.resolve,e_i=lN?OD.relative:nm.relative,xCt=lN?OD.dirname:nm.dirname,CL=lN?OD.basename:nm.basename,t_i=lN?OD.extname:nm.extname,xy=lN?OD.sep:nm.sep,i_i=/^\w[\w\d+.-]*$/,n_i=/^\//,u_i=/^\/\//;function Tgt(r,e){if(!r.scheme&&e)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${r.authority}", path: "${r.path}", query: "${r.query}", fragment: "${r.fragment}"}`);if(r.scheme&&!i_i.test(r.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(r.path){if(r.authority){if(!n_i.test(r.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(u_i.test(r.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function r_i(r,e){return!r&&!e?"file":r}function a_i(r,e){switch(r){case"https":case"http":case"file":e?e[0]!==ny&&(e=ny+e):e=ny;break}return e}const mf="",ny="/",o_i=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/;class no{static isUri(e){return e instanceof no?!0:e?typeof e.authority=="string"&&typeof e.fragment=="string"&&typeof e.path=="string"&&typeof e.query=="string"&&typeof e.scheme=="string"&&typeof e.fsPath=="string"&&typeof e.with=="function"&&typeof e.toString=="function":!1}constructor(e,i,n,a,o,c=!1){typeof e=="object"?(this.scheme=e.scheme||mf,this.authority=e.authority||mf,this.path=e.path||mf,this.query=e.query||mf,this.fragment=e.fragment||mf):(this.scheme=r_i(e,c),this.authority=i||mf,this.path=a_i(this.scheme,n||mf),this.query=a||mf,this.fragment=o||mf,Tgt(this,c))}get fsPath(){return h5e(this,!1)}with(e){if(!e)return this;let{scheme:i,authority:n,path:a,query:o,fragment:c}=e;return i===void 0?i=this.scheme:i===null&&(i=mf),n===void 0?n=this.authority:n===null&&(n=mf),a===void 0?a=this.path:a===null&&(a=mf),o===void 0?o=this.query:o===null&&(o=mf),c===void 0?c=this.fragment:c===null&&(c=mf),i===this.scheme&&n===this.authority&&a===this.path&&o===this.query&&c===this.fragment?this:new JW(i,n,a,o,c)}static parse(e,i=!1){const n=o_i.exec(e);return n?new JW(n[2]||mf,w_e(n[4]||mf),w_e(n[5]||mf),w_e(n[7]||mf),w_e(n[9]||mf),i):new JW(mf,mf,mf,mf,mf)}static file(e){let i=mf;if(Sp&&(e=e.replace(/\\/g,ny)),e[0]===ny&&e[1]===ny){const n=e.indexOf(ny,2);n===-1?(i=e.substring(2),e=ny):(i=e.substring(2,n),e=e.substring(n)||ny)}return new JW("file",i,e,mf,mf)}static from(e){const i=new JW(e.scheme,e.authority,e.path,e.query,e.fragment);return Tgt(i,!0),i}static joinPath(e,...i){if(!e.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Sp&&e.scheme==="file"?n=no.file(OD.join(h5e(e,!0),...i)).path:n=nm.join(e.path,...i),e.with({path:n})}toString(e=!1){return kje(this,e)}toJSON(){return this}static revive(e){if(e){if(e instanceof no)return e;{const i=new JW(e);return i._formatted=e.external,i._fsPath=e._sep===vCt?e.fsPath:null,i}}else return e}}const vCt=Sp?1:void 0;let JW=class extends no{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=h5e(this,!1)),this._fsPath}toString(e=!1){return e?kje(this,!0):(this._formatted||(this._formatted=kje(this,!1)),this._formatted)}toJSON(){const e={$mid:1};return this._fsPath&&(e.fsPath=this._fsPath,e._sep=vCt),this._formatted&&(e.external=this._formatted),this.path&&(e.path=this.path),this.scheme&&(e.scheme=this.scheme),this.authority&&(e.authority=this.authority),this.query&&(e.query=this.query),this.fragment&&(e.fragment=this.fragment),e}};const CCt={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Lgt(r,e,i){let n,a=-1;for(let o=0;o=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||e&&c===47||i&&c===91||i&&c===93||i&&c===58)a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n!==void 0&&(n+=r.charAt(o));else{n===void 0&&(n=r.substr(0,o));const h=CCt[c];h!==void 0?(a!==-1&&(n+=encodeURIComponent(r.substring(a,o)),a=-1),n+=h):a===-1&&(a=o)}}return a!==-1&&(n+=encodeURIComponent(r.substring(a))),n!==void 0?n:r}function s_i(r){let e;for(let i=0;i1&&r.scheme==="file"?i=`//${r.authority}${r.path}`:r.path.charCodeAt(0)===47&&(r.path.charCodeAt(1)>=65&&r.path.charCodeAt(1)<=90||r.path.charCodeAt(1)>=97&&r.path.charCodeAt(1)<=122)&&r.path.charCodeAt(2)===58?e?i=r.path.substr(1):i=r.path[1].toLowerCase()+r.path.substr(2):i=r.path,Sp&&(i=i.replace(/\//g,"\\")),i}function kje(r,e){const i=e?s_i:Lgt;let n="",{scheme:a,authority:o,path:c,query:h,fragment:g}=r;if(a&&(n+=a,n+=":"),(o||a==="file")&&(n+=ny,n+=ny),o){let _=o.indexOf("@");if(_!==-1){const x=o.substr(0,_);o=o.substr(_+1),_=x.lastIndexOf(":"),_===-1?n+=i(x,!1,!1):(n+=i(x.substr(0,_),!1,!1),n+=":",n+=i(x.substr(_+1),!1,!0)),n+="@"}o=o.toLowerCase(),_=o.lastIndexOf(":"),_===-1?n+=i(o,!1,!0):(n+=i(o.substr(0,_),!1,!0),n+=o.substr(_))}if(c){if(c.length>=3&&c.charCodeAt(0)===47&&c.charCodeAt(2)===58){const _=c.charCodeAt(1);_>=65&&_<=90&&(c=`/${String.fromCharCode(_+32)}:${c.substr(3)}`)}else if(c.length>=2&&c.charCodeAt(1)===58){const _=c.charCodeAt(0);_>=65&&_<=90&&(c=`${String.fromCharCode(_+32)}:${c.substr(2)}`)}n+=i(c,!0,!1)}return h&&(n+="?",n+=i(h,!1,!1)),g&&(n+="#",n+=e?g:Lgt(g,!1,!1)),n}function bCt(r){try{return decodeURIComponent(r)}catch{return r.length>3?r.substr(0,3)+bCt(r.substr(3)):r}}const Ngt=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function w_e(r){return r.match(Ngt)?r.replace(Ngt,e=>bCt(e)):r}let Hi=class hI{constructor(e,i){this.lineNumber=e,this.column=i}with(e=this.lineNumber,i=this.column){return e===this.lineNumber&&i===this.column?this:new hI(e,i)}delta(e=0,i=0){return this.with(this.lineNumber+e,this.column+i)}equals(e){return hI.equals(this,e)}static equals(e,i){return!e&&!i?!0:!!e&&!!i&&e.lineNumber===i.lineNumber&&e.column===i.column}isBefore(e){return hI.isBefore(this,e)}static isBefore(e,i){return e.lineNumbern||e===n&&i>a?(this.startLineNumber=n,this.startColumn=a,this.endLineNumber=e,this.endColumn=i):(this.startLineNumber=e,this.startColumn=i,this.endLineNumber=n,this.endColumn=a)}isEmpty(){return Ep.isEmpty(this)}static isEmpty(e){return e.startLineNumber===e.endLineNumber&&e.startColumn===e.endColumn}containsPosition(e){return Ep.containsPosition(this,e)}static containsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.columne.endColumn)}static strictContainsPosition(e,i){return!(i.lineNumbere.endLineNumber||i.lineNumber===e.startLineNumber&&i.column<=e.startColumn||i.lineNumber===e.endLineNumber&&i.column>=e.endColumn)}containsRange(e){return Ep.containsRange(this,e)}static containsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumne.endColumn)}strictContainsRange(e){return Ep.strictContainsRange(this,e)}static strictContainsRange(e,i){return!(i.startLineNumbere.endLineNumber||i.endLineNumber>e.endLineNumber||i.startLineNumber===e.startLineNumber&&i.startColumn<=e.startColumn||i.endLineNumber===e.endLineNumber&&i.endColumn>=e.endColumn)}plusRange(e){return Ep.plusRange(this,e)}static plusRange(e,i){let n,a,o,c;return i.startLineNumbere.endLineNumber?(o=i.endLineNumber,c=i.endColumn):i.endLineNumber===e.endLineNumber?(o=i.endLineNumber,c=Math.max(i.endColumn,e.endColumn)):(o=e.endLineNumber,c=e.endColumn),new Ep(n,a,o,c)}intersectRanges(e){return Ep.intersectRanges(this,e)}static intersectRanges(e,i){let n=e.startLineNumber,a=e.startColumn,o=e.endLineNumber,c=e.endColumn;const h=i.startLineNumber,g=i.startColumn,_=i.endLineNumber,x=i.endColumn;return n_?(o=_,c=x):o===_&&(c=Math.min(c,x)),n>o||n===o&&a>c?null:new Ep(n,a,o,c)}equalsRange(e){return Ep.equalsRange(this,e)}static equalsRange(e,i){return!e&&!i?!0:!!e&&!!i&&e.startLineNumber===i.startLineNumber&&e.startColumn===i.startColumn&&e.endLineNumber===i.endLineNumber&&e.endColumn===i.endColumn}getEndPosition(){return Ep.getEndPosition(this)}static getEndPosition(e){return new Hi(e.endLineNumber,e.endColumn)}getStartPosition(){return Ep.getStartPosition(this)}static getStartPosition(e){return new Hi(e.startLineNumber,e.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(e,i){return new Ep(this.startLineNumber,this.startColumn,e,i)}setStartPosition(e,i){return new Ep(e,i,this.endLineNumber,this.endColumn)}collapseToStart(){return Ep.collapseToStart(this)}static collapseToStart(e){return new Ep(e.startLineNumber,e.startColumn,e.startLineNumber,e.startColumn)}collapseToEnd(){return Ep.collapseToEnd(this)}static collapseToEnd(e){return new Ep(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn)}delta(e){return new Ep(this.startLineNumber+e,this.startColumn,this.endLineNumber+e,this.endColumn)}static fromPositions(e,i=e){return new Ep(e.lineNumber,e.column,i.lineNumber,i.column)}static lift(e){return e?new Ep(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):null}static isIRange(e){return e&&typeof e.startLineNumber=="number"&&typeof e.startColumn=="number"&&typeof e.endLineNumber=="number"&&typeof e.endColumn=="number"}static areIntersectingOrTouching(e,i){return!(e.endLineNumbere.startLineNumber}toJSON(){return this}},pa=class jC extends ot{constructor(e,i,n,a){super(e,i,n,a),this.selectionStartLineNumber=e,this.selectionStartColumn=i,this.positionLineNumber=n,this.positionColumn=a}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(e){return jC.selectionsEqual(this,e)}static selectionsEqual(e,i){return e.selectionStartLineNumber===i.selectionStartLineNumber&&e.selectionStartColumn===i.selectionStartColumn&&e.positionLineNumber===i.positionLineNumber&&e.positionColumn===i.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(e,i){return this.getDirection()===0?new jC(this.startLineNumber,this.startColumn,e,i):new jC(e,i,this.startLineNumber,this.startColumn)}getPosition(){return new Hi(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new Hi(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(e,i){return this.getDirection()===0?new jC(e,i,this.endLineNumber,this.endColumn):new jC(this.endLineNumber,this.endColumn,e,i)}static fromPositions(e,i=e){return new jC(e.lineNumber,e.column,i.lineNumber,i.column)}static fromRange(e,i){return i===0?new jC(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn):new jC(e.endLineNumber,e.endColumn,e.startLineNumber,e.startColumn)}static liftSelection(e){return new jC(e.selectionStartLineNumber,e.selectionStartColumn,e.positionLineNumber,e.positionColumn)}static selectionsArrEqual(e,i){if(e&&!i||!e&&i)return!1;if(!e&&!i)return!0;if(e.length!==i.length)return!1;for(let n=0,a=e.length;n{this._tokenizationSupports.get(e)===i&&(this._tokenizationSupports.delete(e),this.handleChange([e]))})}get(e){return this._tokenizationSupports.get(e)||null}registerFactory(e,i){var n;(n=this._factories.get(e))===null||n===void 0||n.dispose();const a=new c_i(this,e,i);return this._factories.set(e,a),Ls(()=>{const o=this._factories.get(e);!o||o!==a||(this._factories.delete(e),o.dispose())})}getOrCreate(e){return Aje(this,void 0,void 0,function*(){const i=this.get(e);if(i)return i;const n=this._factories.get(e);return!n||n.isResolved?null:(yield n.resolve(),this.get(e))})}isResolved(e){if(this.get(e))return!0;const n=this._factories.get(e);return!!(!n||n.isResolved)}setColorMap(e){this._colorMap=e,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}};class c_i extends ln{get isResolved(){return this._isResolved}constructor(e,i,n){super(),this._registry=e,this._languageId=i,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}resolve(){return Aje(this,void 0,void 0,function*(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise})}_create(){return Aje(this,void 0,void 0,function*(){const e=yield this._factory.tokenizationSupport;this._isResolved=!0,e&&!this._isDisposed&&this._register(this._registry.register(this._languageId,e))})}}let Oue=class{constructor(e,i,n){this.offset=e,this.type=i,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};class cJe{constructor(e,i){this.tokens=e,this.endState=i,this._tokenizationResultBrand=void 0}}class I6e{constructor(e,i){this.tokens=e,this.endState=i,this._encodedTokenizationResultBrand=void 0}}var jue;(function(r){const e=new Map;e.set(0,cr.symbolMethod),e.set(1,cr.symbolFunction),e.set(2,cr.symbolConstructor),e.set(3,cr.symbolField),e.set(4,cr.symbolVariable),e.set(5,cr.symbolClass),e.set(6,cr.symbolStruct),e.set(7,cr.symbolInterface),e.set(8,cr.symbolModule),e.set(9,cr.symbolProperty),e.set(10,cr.symbolEvent),e.set(11,cr.symbolOperator),e.set(12,cr.symbolUnit),e.set(13,cr.symbolValue),e.set(15,cr.symbolEnum),e.set(14,cr.symbolConstant),e.set(15,cr.symbolEnum),e.set(16,cr.symbolEnumMember),e.set(17,cr.symbolKeyword),e.set(27,cr.symbolSnippet),e.set(18,cr.symbolText),e.set(19,cr.symbolColor),e.set(20,cr.symbolFile),e.set(21,cr.symbolReference),e.set(22,cr.symbolCustomColor),e.set(23,cr.symbolFolder),e.set(24,cr.symbolTypeParameter),e.set(25,cr.account),e.set(26,cr.issues);function i(o){let c=e.get(o);return c||(console.info("No codicon found for CompletionItemKind "+o),c=cr.symbolProperty),c}r.toIcon=i;const n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function a(o,c){let h=n.get(o);return typeof h>"u"&&!c&&(h=9),h}r.fromString=a})(jue||(jue={}));var ex;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})(ex||(ex={}));var xA;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(xA||(xA={}));var Vue;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Vue||(Vue={}));function d_i(r){return r&&no.isUri(r.uri)&&ot.isIRange(r.range)&&(ot.isIRange(r.originSelectionRange)||ot.isIRange(r.targetSelectionRange))}var Sje;(function(r){const e=new Map;e.set(0,cr.symbolFile),e.set(1,cr.symbolModule),e.set(2,cr.symbolNamespace),e.set(3,cr.symbolPackage),e.set(4,cr.symbolClass),e.set(5,cr.symbolMethod),e.set(6,cr.symbolProperty),e.set(7,cr.symbolField),e.set(8,cr.symbolConstructor),e.set(9,cr.symbolEnum),e.set(10,cr.symbolInterface),e.set(11,cr.symbolFunction),e.set(12,cr.symbolVariable),e.set(13,cr.symbolConstant),e.set(14,cr.symbolString),e.set(15,cr.symbolNumber),e.set(16,cr.symbolBoolean),e.set(17,cr.symbolArray),e.set(18,cr.symbolObject),e.set(19,cr.symbolKey),e.set(20,cr.symbolNull),e.set(21,cr.symbolEnumMember),e.set(22,cr.symbolStruct),e.set(23,cr.symbolEvent),e.set(24,cr.symbolOperator),e.set(25,cr.symbolTypeParameter);function i(n){let a=e.get(n);return a||(console.info("No codicon found for SymbolKind "+n),a=cr.symbolProperty),a}r.toIcon=i})(Sje||(Sje={}));class P_{static fromValue(e){switch(e){case"comment":return P_.Comment;case"imports":return P_.Imports;case"region":return P_.Region}return new P_(e)}constructor(e){this.value=e}}P_.Comment=new P_("comment");P_.Imports=new P_("imports");P_.Region=new P_("region");var Bje;(function(r){function e(i){return!i||typeof i!="object"?!1:typeof i.id=="string"&&typeof i.title=="string"}r.is=e})(Bje||(Bje={}));var f5e;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(f5e||(f5e={}));class h_i{constructor(e){this.createSupport=e,this._tokenizationSupport=null}dispose(){this._tokenizationSupport&&this._tokenizationSupport.then(e=>{e&&e.dispose()})}get tokenizationSupport(){return this._tokenizationSupport||(this._tokenizationSupport=this.createSupport()),this._tokenizationSupport}}const lh=new l_i;var wje;(function(r){r[r.Unknown=0]="Unknown",r[r.Disabled=1]="Disabled",r[r.Enabled=2]="Enabled"})(wje||(wje={}));var Tje;(function(r){r[r.Invoke=1]="Invoke",r[r.Auto=2]="Auto"})(Tje||(Tje={}));var Lje;(function(r){r[r.None=0]="None",r[r.KeepWhitespace=1]="KeepWhitespace",r[r.InsertAsSnippet=4]="InsertAsSnippet"})(Lje||(Lje={}));var Nje;(function(r){r[r.Method=0]="Method",r[r.Function=1]="Function",r[r.Constructor=2]="Constructor",r[r.Field=3]="Field",r[r.Variable=4]="Variable",r[r.Class=5]="Class",r[r.Struct=6]="Struct",r[r.Interface=7]="Interface",r[r.Module=8]="Module",r[r.Property=9]="Property",r[r.Event=10]="Event",r[r.Operator=11]="Operator",r[r.Unit=12]="Unit",r[r.Value=13]="Value",r[r.Constant=14]="Constant",r[r.Enum=15]="Enum",r[r.EnumMember=16]="EnumMember",r[r.Keyword=17]="Keyword",r[r.Text=18]="Text",r[r.Color=19]="Color",r[r.File=20]="File",r[r.Reference=21]="Reference",r[r.Customcolor=22]="Customcolor",r[r.Folder=23]="Folder",r[r.TypeParameter=24]="TypeParameter",r[r.User=25]="User",r[r.Issue=26]="Issue",r[r.Snippet=27]="Snippet"})(Nje||(Nje={}));var Pje;(function(r){r[r.Deprecated=1]="Deprecated"})(Pje||(Pje={}));var Mje;(function(r){r[r.Invoke=0]="Invoke",r[r.TriggerCharacter=1]="TriggerCharacter",r[r.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(Mje||(Mje={}));var zje;(function(r){r[r.EXACT=0]="EXACT",r[r.ABOVE=1]="ABOVE",r[r.BELOW=2]="BELOW"})(zje||(zje={}));var Ije;(function(r){r[r.NotSet=0]="NotSet",r[r.ContentFlush=1]="ContentFlush",r[r.RecoverFromMarkers=2]="RecoverFromMarkers",r[r.Explicit=3]="Explicit",r[r.Paste=4]="Paste",r[r.Undo=5]="Undo",r[r.Redo=6]="Redo"})(Ije||(Ije={}));var Rje;(function(r){r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(Rje||(Rje={}));var Oje;(function(r){r[r.Text=0]="Text",r[r.Read=1]="Read",r[r.Write=2]="Write"})(Oje||(Oje={}));var jje;(function(r){r[r.None=0]="None",r[r.Keep=1]="Keep",r[r.Brackets=2]="Brackets",r[r.Advanced=3]="Advanced",r[r.Full=4]="Full"})(jje||(jje={}));var Vje;(function(r){r[r.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",r[r.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",r[r.accessibilitySupport=2]="accessibilitySupport",r[r.accessibilityPageSize=3]="accessibilityPageSize",r[r.ariaLabel=4]="ariaLabel",r[r.autoClosingBrackets=5]="autoClosingBrackets",r[r.screenReaderAnnounceInlineSuggestion=6]="screenReaderAnnounceInlineSuggestion",r[r.autoClosingDelete=7]="autoClosingDelete",r[r.autoClosingOvertype=8]="autoClosingOvertype",r[r.autoClosingQuotes=9]="autoClosingQuotes",r[r.autoIndent=10]="autoIndent",r[r.automaticLayout=11]="automaticLayout",r[r.autoSurround=12]="autoSurround",r[r.bracketPairColorization=13]="bracketPairColorization",r[r.guides=14]="guides",r[r.codeLens=15]="codeLens",r[r.codeLensFontFamily=16]="codeLensFontFamily",r[r.codeLensFontSize=17]="codeLensFontSize",r[r.colorDecorators=18]="colorDecorators",r[r.colorDecoratorsLimit=19]="colorDecoratorsLimit",r[r.columnSelection=20]="columnSelection",r[r.comments=21]="comments",r[r.contextmenu=22]="contextmenu",r[r.copyWithSyntaxHighlighting=23]="copyWithSyntaxHighlighting",r[r.cursorBlinking=24]="cursorBlinking",r[r.cursorSmoothCaretAnimation=25]="cursorSmoothCaretAnimation",r[r.cursorStyle=26]="cursorStyle",r[r.cursorSurroundingLines=27]="cursorSurroundingLines",r[r.cursorSurroundingLinesStyle=28]="cursorSurroundingLinesStyle",r[r.cursorWidth=29]="cursorWidth",r[r.disableLayerHinting=30]="disableLayerHinting",r[r.disableMonospaceOptimizations=31]="disableMonospaceOptimizations",r[r.domReadOnly=32]="domReadOnly",r[r.dragAndDrop=33]="dragAndDrop",r[r.dropIntoEditor=34]="dropIntoEditor",r[r.emptySelectionClipboard=35]="emptySelectionClipboard",r[r.experimentalWhitespaceRendering=36]="experimentalWhitespaceRendering",r[r.extraEditorClassName=37]="extraEditorClassName",r[r.fastScrollSensitivity=38]="fastScrollSensitivity",r[r.find=39]="find",r[r.fixedOverflowWidgets=40]="fixedOverflowWidgets",r[r.folding=41]="folding",r[r.foldingStrategy=42]="foldingStrategy",r[r.foldingHighlight=43]="foldingHighlight",r[r.foldingImportsByDefault=44]="foldingImportsByDefault",r[r.foldingMaximumRegions=45]="foldingMaximumRegions",r[r.unfoldOnClickAfterEndOfLine=46]="unfoldOnClickAfterEndOfLine",r[r.fontFamily=47]="fontFamily",r[r.fontInfo=48]="fontInfo",r[r.fontLigatures=49]="fontLigatures",r[r.fontSize=50]="fontSize",r[r.fontWeight=51]="fontWeight",r[r.fontVariations=52]="fontVariations",r[r.formatOnPaste=53]="formatOnPaste",r[r.formatOnType=54]="formatOnType",r[r.glyphMargin=55]="glyphMargin",r[r.gotoLocation=56]="gotoLocation",r[r.hideCursorInOverviewRuler=57]="hideCursorInOverviewRuler",r[r.hover=58]="hover",r[r.inDiffEditor=59]="inDiffEditor",r[r.inlineSuggest=60]="inlineSuggest",r[r.letterSpacing=61]="letterSpacing",r[r.lightbulb=62]="lightbulb",r[r.lineDecorationsWidth=63]="lineDecorationsWidth",r[r.lineHeight=64]="lineHeight",r[r.lineNumbers=65]="lineNumbers",r[r.lineNumbersMinChars=66]="lineNumbersMinChars",r[r.linkedEditing=67]="linkedEditing",r[r.links=68]="links",r[r.matchBrackets=69]="matchBrackets",r[r.minimap=70]="minimap",r[r.mouseStyle=71]="mouseStyle",r[r.mouseWheelScrollSensitivity=72]="mouseWheelScrollSensitivity",r[r.mouseWheelZoom=73]="mouseWheelZoom",r[r.multiCursorMergeOverlapping=74]="multiCursorMergeOverlapping",r[r.multiCursorModifier=75]="multiCursorModifier",r[r.multiCursorPaste=76]="multiCursorPaste",r[r.multiCursorLimit=77]="multiCursorLimit",r[r.occurrencesHighlight=78]="occurrencesHighlight",r[r.overviewRulerBorder=79]="overviewRulerBorder",r[r.overviewRulerLanes=80]="overviewRulerLanes",r[r.padding=81]="padding",r[r.parameterHints=82]="parameterHints",r[r.peekWidgetDefaultFocus=83]="peekWidgetDefaultFocus",r[r.definitionLinkOpensInPeek=84]="definitionLinkOpensInPeek",r[r.quickSuggestions=85]="quickSuggestions",r[r.quickSuggestionsDelay=86]="quickSuggestionsDelay",r[r.readOnly=87]="readOnly",r[r.renameOnType=88]="renameOnType",r[r.renderControlCharacters=89]="renderControlCharacters",r[r.renderFinalNewline=90]="renderFinalNewline",r[r.renderLineHighlight=91]="renderLineHighlight",r[r.renderLineHighlightOnlyWhenFocus=92]="renderLineHighlightOnlyWhenFocus",r[r.renderValidationDecorations=93]="renderValidationDecorations",r[r.renderWhitespace=94]="renderWhitespace",r[r.revealHorizontalRightPadding=95]="revealHorizontalRightPadding",r[r.roundedSelection=96]="roundedSelection",r[r.rulers=97]="rulers",r[r.scrollbar=98]="scrollbar",r[r.scrollBeyondLastColumn=99]="scrollBeyondLastColumn",r[r.scrollBeyondLastLine=100]="scrollBeyondLastLine",r[r.scrollPredominantAxis=101]="scrollPredominantAxis",r[r.selectionClipboard=102]="selectionClipboard",r[r.selectionHighlight=103]="selectionHighlight",r[r.selectOnLineNumbers=104]="selectOnLineNumbers",r[r.showFoldingControls=105]="showFoldingControls",r[r.showUnused=106]="showUnused",r[r.snippetSuggestions=107]="snippetSuggestions",r[r.smartSelect=108]="smartSelect",r[r.smoothScrolling=109]="smoothScrolling",r[r.stickyScroll=110]="stickyScroll",r[r.stickyTabStops=111]="stickyTabStops",r[r.stopRenderingLineAfter=112]="stopRenderingLineAfter",r[r.suggest=113]="suggest",r[r.suggestFontSize=114]="suggestFontSize",r[r.suggestLineHeight=115]="suggestLineHeight",r[r.suggestOnTriggerCharacters=116]="suggestOnTriggerCharacters",r[r.suggestSelection=117]="suggestSelection",r[r.tabCompletion=118]="tabCompletion",r[r.tabIndex=119]="tabIndex",r[r.unicodeHighlighting=120]="unicodeHighlighting",r[r.unusualLineTerminators=121]="unusualLineTerminators",r[r.useShadowDOM=122]="useShadowDOM",r[r.useTabStops=123]="useTabStops",r[r.wordBreak=124]="wordBreak",r[r.wordSeparators=125]="wordSeparators",r[r.wordWrap=126]="wordWrap",r[r.wordWrapBreakAfterCharacters=127]="wordWrapBreakAfterCharacters",r[r.wordWrapBreakBeforeCharacters=128]="wordWrapBreakBeforeCharacters",r[r.wordWrapColumn=129]="wordWrapColumn",r[r.wordWrapOverride1=130]="wordWrapOverride1",r[r.wordWrapOverride2=131]="wordWrapOverride2",r[r.wrappingIndent=132]="wrappingIndent",r[r.wrappingStrategy=133]="wrappingStrategy",r[r.showDeprecated=134]="showDeprecated",r[r.inlayHints=135]="inlayHints",r[r.editorClassName=136]="editorClassName",r[r.pixelRatio=137]="pixelRatio",r[r.tabFocusMode=138]="tabFocusMode",r[r.layoutInfo=139]="layoutInfo",r[r.wrappingInfo=140]="wrappingInfo"})(Vje||(Vje={}));var Hje;(function(r){r[r.TextDefined=0]="TextDefined",r[r.LF=1]="LF",r[r.CRLF=2]="CRLF"})(Hje||(Hje={}));var Kje;(function(r){r[r.LF=0]="LF",r[r.CRLF=1]="CRLF"})(Kje||(Kje={}));var Wje;(function(r){r[r.None=0]="None",r[r.Indent=1]="Indent",r[r.IndentOutdent=2]="IndentOutdent",r[r.Outdent=3]="Outdent"})(Wje||(Wje={}));var Gje;(function(r){r[r.Both=0]="Both",r[r.Right=1]="Right",r[r.Left=2]="Left",r[r.None=3]="None"})(Gje||(Gje={}));var Jje;(function(r){r[r.Type=1]="Type",r[r.Parameter=2]="Parameter"})(Jje||(Jje={}));var $je;(function(r){r[r.Automatic=0]="Automatic",r[r.Explicit=1]="Explicit"})($je||($je={}));var Uje;(function(r){r[r.DependsOnKbLayout=-1]="DependsOnKbLayout",r[r.Unknown=0]="Unknown",r[r.Backspace=1]="Backspace",r[r.Tab=2]="Tab",r[r.Enter=3]="Enter",r[r.Shift=4]="Shift",r[r.Ctrl=5]="Ctrl",r[r.Alt=6]="Alt",r[r.PauseBreak=7]="PauseBreak",r[r.CapsLock=8]="CapsLock",r[r.Escape=9]="Escape",r[r.Space=10]="Space",r[r.PageUp=11]="PageUp",r[r.PageDown=12]="PageDown",r[r.End=13]="End",r[r.Home=14]="Home",r[r.LeftArrow=15]="LeftArrow",r[r.UpArrow=16]="UpArrow",r[r.RightArrow=17]="RightArrow",r[r.DownArrow=18]="DownArrow",r[r.Insert=19]="Insert",r[r.Delete=20]="Delete",r[r.Digit0=21]="Digit0",r[r.Digit1=22]="Digit1",r[r.Digit2=23]="Digit2",r[r.Digit3=24]="Digit3",r[r.Digit4=25]="Digit4",r[r.Digit5=26]="Digit5",r[r.Digit6=27]="Digit6",r[r.Digit7=28]="Digit7",r[r.Digit8=29]="Digit8",r[r.Digit9=30]="Digit9",r[r.KeyA=31]="KeyA",r[r.KeyB=32]="KeyB",r[r.KeyC=33]="KeyC",r[r.KeyD=34]="KeyD",r[r.KeyE=35]="KeyE",r[r.KeyF=36]="KeyF",r[r.KeyG=37]="KeyG",r[r.KeyH=38]="KeyH",r[r.KeyI=39]="KeyI",r[r.KeyJ=40]="KeyJ",r[r.KeyK=41]="KeyK",r[r.KeyL=42]="KeyL",r[r.KeyM=43]="KeyM",r[r.KeyN=44]="KeyN",r[r.KeyO=45]="KeyO",r[r.KeyP=46]="KeyP",r[r.KeyQ=47]="KeyQ",r[r.KeyR=48]="KeyR",r[r.KeyS=49]="KeyS",r[r.KeyT=50]="KeyT",r[r.KeyU=51]="KeyU",r[r.KeyV=52]="KeyV",r[r.KeyW=53]="KeyW",r[r.KeyX=54]="KeyX",r[r.KeyY=55]="KeyY",r[r.KeyZ=56]="KeyZ",r[r.Meta=57]="Meta",r[r.ContextMenu=58]="ContextMenu",r[r.F1=59]="F1",r[r.F2=60]="F2",r[r.F3=61]="F3",r[r.F4=62]="F4",r[r.F5=63]="F5",r[r.F6=64]="F6",r[r.F7=65]="F7",r[r.F8=66]="F8",r[r.F9=67]="F9",r[r.F10=68]="F10",r[r.F11=69]="F11",r[r.F12=70]="F12",r[r.F13=71]="F13",r[r.F14=72]="F14",r[r.F15=73]="F15",r[r.F16=74]="F16",r[r.F17=75]="F17",r[r.F18=76]="F18",r[r.F19=77]="F19",r[r.NumLock=78]="NumLock",r[r.ScrollLock=79]="ScrollLock",r[r.Semicolon=80]="Semicolon",r[r.Equal=81]="Equal",r[r.Comma=82]="Comma",r[r.Minus=83]="Minus",r[r.Period=84]="Period",r[r.Slash=85]="Slash",r[r.Backquote=86]="Backquote",r[r.BracketLeft=87]="BracketLeft",r[r.Backslash=88]="Backslash",r[r.BracketRight=89]="BracketRight",r[r.Quote=90]="Quote",r[r.OEM_8=91]="OEM_8",r[r.IntlBackslash=92]="IntlBackslash",r[r.Numpad0=93]="Numpad0",r[r.Numpad1=94]="Numpad1",r[r.Numpad2=95]="Numpad2",r[r.Numpad3=96]="Numpad3",r[r.Numpad4=97]="Numpad4",r[r.Numpad5=98]="Numpad5",r[r.Numpad6=99]="Numpad6",r[r.Numpad7=100]="Numpad7",r[r.Numpad8=101]="Numpad8",r[r.Numpad9=102]="Numpad9",r[r.NumpadMultiply=103]="NumpadMultiply",r[r.NumpadAdd=104]="NumpadAdd",r[r.NUMPAD_SEPARATOR=105]="NUMPAD_SEPARATOR",r[r.NumpadSubtract=106]="NumpadSubtract",r[r.NumpadDecimal=107]="NumpadDecimal",r[r.NumpadDivide=108]="NumpadDivide",r[r.KEY_IN_COMPOSITION=109]="KEY_IN_COMPOSITION",r[r.ABNT_C1=110]="ABNT_C1",r[r.ABNT_C2=111]="ABNT_C2",r[r.AudioVolumeMute=112]="AudioVolumeMute",r[r.AudioVolumeUp=113]="AudioVolumeUp",r[r.AudioVolumeDown=114]="AudioVolumeDown",r[r.BrowserSearch=115]="BrowserSearch",r[r.BrowserHome=116]="BrowserHome",r[r.BrowserBack=117]="BrowserBack",r[r.BrowserForward=118]="BrowserForward",r[r.MediaTrackNext=119]="MediaTrackNext",r[r.MediaTrackPrevious=120]="MediaTrackPrevious",r[r.MediaStop=121]="MediaStop",r[r.MediaPlayPause=122]="MediaPlayPause",r[r.LaunchMediaPlayer=123]="LaunchMediaPlayer",r[r.LaunchMail=124]="LaunchMail",r[r.LaunchApp2=125]="LaunchApp2",r[r.Clear=126]="Clear",r[r.MAX_VALUE=127]="MAX_VALUE"})(Uje||(Uje={}));var qje;(function(r){r[r.Hint=1]="Hint",r[r.Info=2]="Info",r[r.Warning=4]="Warning",r[r.Error=8]="Error"})(qje||(qje={}));var Zje;(function(r){r[r.Unnecessary=1]="Unnecessary",r[r.Deprecated=2]="Deprecated"})(Zje||(Zje={}));var Yje;(function(r){r[r.Inline=1]="Inline",r[r.Gutter=2]="Gutter"})(Yje||(Yje={}));var Qje;(function(r){r[r.UNKNOWN=0]="UNKNOWN",r[r.TEXTAREA=1]="TEXTAREA",r[r.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",r[r.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",r[r.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",r[r.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",r[r.CONTENT_TEXT=6]="CONTENT_TEXT",r[r.CONTENT_EMPTY=7]="CONTENT_EMPTY",r[r.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",r[r.CONTENT_WIDGET=9]="CONTENT_WIDGET",r[r.OVERVIEW_RULER=10]="OVERVIEW_RULER",r[r.SCROLLBAR=11]="SCROLLBAR",r[r.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",r[r.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Qje||(Qje={}));var Xje;(function(r){r[r.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",r[r.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",r[r.TOP_CENTER=2]="TOP_CENTER"})(Xje||(Xje={}));var eVe;(function(r){r[r.Left=1]="Left",r[r.Center=2]="Center",r[r.Right=4]="Right",r[r.Full=7]="Full"})(eVe||(eVe={}));var tVe;(function(r){r[r.Left=0]="Left",r[r.Right=1]="Right",r[r.None=2]="None",r[r.LeftOfInjectedText=3]="LeftOfInjectedText",r[r.RightOfInjectedText=4]="RightOfInjectedText"})(tVe||(tVe={}));var iVe;(function(r){r[r.Off=0]="Off",r[r.On=1]="On",r[r.Relative=2]="Relative",r[r.Interval=3]="Interval",r[r.Custom=4]="Custom"})(iVe||(iVe={}));var nVe;(function(r){r[r.None=0]="None",r[r.Text=1]="Text",r[r.Blocks=2]="Blocks"})(nVe||(nVe={}));var uVe;(function(r){r[r.Smooth=0]="Smooth",r[r.Immediate=1]="Immediate"})(uVe||(uVe={}));var rVe;(function(r){r[r.Auto=1]="Auto",r[r.Hidden=2]="Hidden",r[r.Visible=3]="Visible"})(rVe||(rVe={}));var aVe;(function(r){r[r.LTR=0]="LTR",r[r.RTL=1]="RTL"})(aVe||(aVe={}));var oVe;(function(r){r[r.Invoke=1]="Invoke",r[r.TriggerCharacter=2]="TriggerCharacter",r[r.ContentChange=3]="ContentChange"})(oVe||(oVe={}));var sVe;(function(r){r[r.File=0]="File",r[r.Module=1]="Module",r[r.Namespace=2]="Namespace",r[r.Package=3]="Package",r[r.Class=4]="Class",r[r.Method=5]="Method",r[r.Property=6]="Property",r[r.Field=7]="Field",r[r.Constructor=8]="Constructor",r[r.Enum=9]="Enum",r[r.Interface=10]="Interface",r[r.Function=11]="Function",r[r.Variable=12]="Variable",r[r.Constant=13]="Constant",r[r.String=14]="String",r[r.Number=15]="Number",r[r.Boolean=16]="Boolean",r[r.Array=17]="Array",r[r.Object=18]="Object",r[r.Key=19]="Key",r[r.Null=20]="Null",r[r.EnumMember=21]="EnumMember",r[r.Struct=22]="Struct",r[r.Event=23]="Event",r[r.Operator=24]="Operator",r[r.TypeParameter=25]="TypeParameter"})(sVe||(sVe={}));var lVe;(function(r){r[r.Deprecated=1]="Deprecated"})(lVe||(lVe={}));var cVe;(function(r){r[r.Hidden=0]="Hidden",r[r.Blink=1]="Blink",r[r.Smooth=2]="Smooth",r[r.Phase=3]="Phase",r[r.Expand=4]="Expand",r[r.Solid=5]="Solid"})(cVe||(cVe={}));var dVe;(function(r){r[r.Line=1]="Line",r[r.Block=2]="Block",r[r.Underline=3]="Underline",r[r.LineThin=4]="LineThin",r[r.BlockOutline=5]="BlockOutline",r[r.UnderlineThin=6]="UnderlineThin"})(dVe||(dVe={}));var hVe;(function(r){r[r.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",r[r.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",r[r.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",r[r.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(hVe||(hVe={}));var fVe;(function(r){r[r.None=0]="None",r[r.Same=1]="Same",r[r.Indent=2]="Indent",r[r.DeepIndent=3]="DeepIndent"})(fVe||(fVe={}));let Dae=class{static chord(e,i){return Sm(e,i)}};Dae.CtrlCmd=2048;Dae.Shift=1024;Dae.Alt=512;Dae.WinCtrl=256;function kCt(){return{editor:void 0,languages:void 0,CancellationTokenSource:Bp,Emitter:ki,KeyCode:Uje,KeyMod:Dae,Position:Hi,Range:ot,Selection:pa,SelectionDirection:aVe,MarkerSeverity:qje,MarkerTag:Zje,Uri:no,Token:Oue}}class f_i{constructor(e){this.fn=e,this.lastCache=void 0,this.lastArgKey=void 0}get(e){const i=JSON.stringify(e);return this.lastArgKey!==i&&(this.lastArgKey=i,this.lastCache=this.fn(e)),this.lastCache}}class Pgt{get cachedValues(){return this._map}constructor(e){this.fn=e,this._map=new Map}get(e){if(this._map.has(e))return this._map.get(e);const i=this.fn(e);return this._map.set(e,i),i}}class cN{constructor(e){this.executor=e,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(e){this._error=e}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}}var FCt;function ACt(r){return!r||typeof r!="string"?!0:r.trim().length===0}const m_i=/{(\d+)}/g;function W6(r,...e){return e.length===0?r:r.replace(m_i,function(i,n){const a=parseInt(n,10);return isNaN(a)||a<0||a>=e.length?i:e[a]})}function m5e(r){return r.replace(/[<>&]/g,function(e){switch(e){case"<":return"<";case">":return">";case"&":return"&";default:return e}})}function px(r){return r.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function p_i(r,e=" "){const i=xae(r,e);return SCt(i,e)}function xae(r,e){if(!r||!e)return r;const i=e.length;if(i===0||r.length===0)return r;let n=0;for(;r.indexOf(e,n)===n;)n=n+i;return r.substring(n)}function SCt(r,e){if(!r||!e)return r;const i=e.length,n=r.length;if(i===0||n===0)return r;let a=n,o=-1;for(;o=r.lastIndexOf(e,a-1),!(o===-1||o+i!==a);){if(o===0)return"";a=o}return r.substring(0,a)}function g_i(r){return r.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function E_i(r){return r.replace(/\*/g,"")}function BCt(r,e,i={}){if(!r)throw new Error("Cannot create regex from empty string");e||(r=px(r)),i.wholeWord&&(/\B/.test(r.charAt(0))||(r="\\b"+r),/\B/.test(r.charAt(r.length-1))||(r=r+"\\b"));let n="";return i.global&&(n+="g"),i.matchCase||(n+="i"),i.multiline&&(n+="m"),i.unicode&&(n+="u"),new RegExp(r,n)}function __i(r){return r.source==="^"||r.source==="^$"||r.source==="$"||r.source==="^\\s*$"?!1:!!(r.exec("")&&r.lastIndex===0)}function CIe(r){return(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")}function TA(r){return r.split(/\r\n|\r|\n/)}function jE(r){for(let e=0,i=r.length;e=0;i--){const n=r.charCodeAt(i);if(n!==32&&n!==9)return i}return-1}function Hue(r,e){return re?1:0}function dJe(r,e,i=0,n=r.length,a=0,o=e.length){for(;i_)return 1}const c=n-i,h=o-a;return ch?1:0}function mVe(r,e){return vae(r,e,0,r.length,0,e.length)}function vae(r,e,i=0,n=r.length,a=0,o=e.length){for(;i=128||_>=128)return dJe(r.toLowerCase(),e.toLowerCase(),i,n,a,o);uL(g)&&(g-=32),uL(_)&&(_-=32);const x=g-_;if(x!==0)return x}const c=n-i,h=o-a;return ch?1:0}function T_e(r){return r>=48&&r<=57}function uL(r){return r>=97&&r<=122}function qF(r){return r>=65&&r<=90}function AG(r,e){return r.length===e.length&&vae(r,e)===0}function hJe(r,e){const i=e.length;return e.length>r.length?!1:vae(r,e,0,i)===0}function lR(r,e){const i=Math.min(r.length,e.length);let n;for(n=0;n1){const n=r.charCodeAt(e-2);if(u4(n))return fJe(n,i)}return i}class mJe{get offset(){return this._offset}constructor(e,i=0){this._str=e,this._len=e.length,this._offset=i}setOffset(e){this._offset=e}prevCodePoint(){const e=D_i(this._str,this._offset);return this._offset-=e>=65536?2:1,e}nextCodePoint(){const e=p5e(this._str,this._len,this._offset);return this._offset+=e>=65536?2:1,e}eol(){return this._offset>=this._len}}class g5e{get offset(){return this._iterator.offset}constructor(e,i=0){this._iterator=new mJe(e,i)}nextGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.nextCodePoint());for(;!i.eol();){const o=i.offset,c=e.getGraphemeBreakType(i.nextCodePoint());if(Mgt(a,c)){i.setOffset(o);break}a=c}return i.offset-n}prevGraphemeLength(){const e=rL.getInstance(),i=this._iterator,n=i.offset;let a=e.getGraphemeBreakType(i.prevCodePoint());for(;i.offset>0;){const o=i.offset,c=e.getGraphemeBreakType(i.prevCodePoint());if(Mgt(c,a)){i.setOffset(o);break}a=c}return n-i.offset}eol(){return this._iterator.eol()}}function pJe(r,e){return new g5e(r,e).nextGraphemeLength()}function wCt(r,e){return new g5e(r,e).prevGraphemeLength()}function x_i(r,e){e>0&&cR(r.charCodeAt(e))&&e--;const i=e+pJe(r,e);return[i-wCt(r,i),i]}let bIe;function v_i(){return/(?:[\u05BE\u05C0\u05C3\u05C6\u05D0-\u05F4\u0608\u060B\u060D\u061B-\u064A\u066D-\u066F\u0671-\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u0710\u0712-\u072F\u074D-\u07A5\u07B1-\u07EA\u07F4\u07F5\u07FA\u07FE-\u0815\u081A\u0824\u0828\u0830-\u0858\u085E-\u088E\u08A0-\u08C9\u200F\uFB1D\uFB1F-\uFB28\uFB2A-\uFD3D\uFD50-\uFDC7\uFDF0-\uFDFC\uFE70-\uFEFC]|\uD802[\uDC00-\uDD1B\uDD20-\uDE00\uDE10-\uDE35\uDE40-\uDEE4\uDEEB-\uDF35\uDF40-\uDFFF]|\uD803[\uDC00-\uDD23\uDE80-\uDEA9\uDEAD-\uDF45\uDF51-\uDF81\uDF86-\uDFF6]|\uD83A[\uDC00-\uDCCF\uDD00-\uDD43\uDD4B-\uDFFF]|\uD83B[\uDC00-\uDEBB])/}function zJ(r){return bIe||(bIe=v_i()),bIe.test(r)}const C_i=/^[\t\n\r\x20-\x7E]*$/;function Cae(r){return C_i.test(r)}const TCt=/[\u2028\u2029]/;function LCt(r){return TCt.test(r)}function KL(r){return r>=11904&&r<=55215||r>=63744&&r<=64255||r>=65281&&r<=65374}function gJe(r){return r>=127462&&r<=127487||r===8986||r===8987||r===9200||r===9203||r>=9728&&r<=10175||r===11088||r===11093||r>=127744&&r<=128591||r>=128640&&r<=128764||r>=128992&&r<=129008||r>=129280&&r<=129535||r>=129648&&r<=129782}const b_i="\uFEFF";function EJe(r){return!!(r&&r.length>0&&r.charCodeAt(0)===65279)}function y_i(r,e=!1){return r?(e&&(r=r.replace(/\\./g,"")),r.toLowerCase()!==r):!1}function NCt(r){return r=r%(2*26),r<26?String.fromCharCode(97+r):String.fromCharCode(65+r-26)}function Mgt(r,e){return r===0?e!==5&&e!==7:r===2&&e===3?!1:r===4||r===2||r===3||e===4||e===2||e===3?!0:!(r===8&&(e===8||e===9||e===11||e===12)||(r===11||r===9)&&(e===9||e===10)||(r===12||r===10)&&e===10||e===5||e===13||e===7||r===1||r===13&&e===14||r===6&&e===6)}class rL{static getInstance(){return rL._INSTANCE||(rL._INSTANCE=new rL),rL._INSTANCE}constructor(){this._data=k_i()}getGraphemeBreakType(e){if(e<32)return e===10?3:e===13?2:4;if(e<127)return 0;const i=this._data,n=i.length/3;let a=1;for(;a<=n;)if(ei[3*a+1])a=2*a+1;else return i[3*a+2];return 0}}rL._INSTANCE=null;function k_i(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}function F_i(r,e){if(r===0)return 0;const i=A_i(r,e);if(i!==void 0)return i;const n=new mJe(e,r);return n.prevCodePoint(),n.offset}function A_i(r,e){const i=new mJe(e,r);let n=i.prevCodePoint();for(;S_i(n)||n===65039||n===8419;){if(i.offset===0)return;n=i.prevCodePoint()}if(!gJe(n))return;let a=i.offset;return a>0&&i.prevCodePoint()===8205&&(a=i.offset),a}function S_i(r){return 127995<=r&&r<=127999}const B_i=" ";class i2{static getInstance(e){return i2.cache.get(Array.from(e))}static getLocales(){return i2._locales.value}constructor(e){this.confusableDictionary=e}isAmbiguous(e){return this.confusableDictionary.has(e)}getPrimaryConfusable(e){return this.confusableDictionary.get(e)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}}FCt=i2;i2.ambiguousCharacterData=new cN(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));i2.cache=new f_i(r=>{function e(_){const x=new Map;for(let y=0;y<_.length;y+=2)x.set(_[y],_[y+1]);return x}function i(_,x){const y=new Map(_);for(const[S,L]of x)y.set(S,L);return y}function n(_,x){if(!_)return x;const y=new Map;for(const[S,L]of _)x.has(S)&&y.set(S,L);return y}const a=FCt.ambiguousCharacterData.value;let o=r.filter(_=>!_.startsWith("_")&&_ in a);o.length===0&&(o=["_default"]);let c;for(const _ of o){const x=e(a[_]);c=n(c,x)}const h=e(a._common),g=i(h,c);return new i2(g)});i2._locales=new cN(()=>Object.keys(i2.ambiguousCharacterData.value).filter(r=>!r.startsWith("_")));class vA{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(vA.getRawData())),this._data}static isInvisibleCharacter(e){return vA.getData().has(e)}static get codePoints(){return vA.getData()}}vA._data=void 0;class pVe{constructor(){this._zoomFactor=1}getZoomFactor(){return this._zoomFactor}}pVe.INSTANCE=new pVe;class w_i extends ln{constructor(){super(),this._onDidChange=this._register(new ki),this.onDidChange=this._onDidChange.event,this._listener=()=>this._handleChange(!0),this._mediaQueryList=null,this._handleChange(!1)}_handleChange(e){var i;(i=this._mediaQueryList)===null||i===void 0||i.removeEventListener("change",this._listener),this._mediaQueryList=window.matchMedia(`(resolution: ${window.devicePixelRatio}dppx)`),this._mediaQueryList.addEventListener("change",this._listener),e&&this._onDidChange.fire()}}class T_i extends ln{get value(){return this._value}constructor(){super(),this._onDidChange=this._register(new ki),this.onDidChange=this._onDidChange.event,this._value=this._getPixelRatio();const e=this._register(new w_i);this._register(e.onDidChange(()=>{this._value=this._getPixelRatio(),this._onDidChange.fire(this._value)}))}_getPixelRatio(){const e=document.createElement("canvas").getContext("2d"),i=window.devicePixelRatio||1,n=e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return i/n}}class L_i{constructor(){this._pixelRatioMonitor=null}_getOrCreatePixelRatioMonitor(){return this._pixelRatioMonitor||(this._pixelRatioMonitor=new T_i),this._pixelRatioMonitor}get value(){return this._getOrCreatePixelRatioMonitor().value}get onDidChange(){return this._getOrCreatePixelRatioMonitor().onDidChange}}function _Je(r,e){typeof r=="string"&&(r=window.matchMedia(r)),r.addEventListener("change",e)}const IJ=new L_i;function PCt(){return pVe.INSTANCE.getZoomFactor()}const B$=navigator.userAgent,Q6=B$.indexOf("Firefox")>=0,bL=B$.indexOf("AppleWebKit")>=0,DJe=B$.indexOf("Chrome")>=0,i8=!DJe&&B$.indexOf("Safari")>=0,xJe=!DJe&&!i8&&bL,N_i=B$.indexOf("Electron/")>=0,MCt=B$.indexOf("Android")>=0;let aDe=!1;if(window.matchMedia){const r=window.matchMedia("(display-mode: standalone) or (display-mode: window-controls-overlay)"),e=window.matchMedia("(display-mode: fullscreen)");aDe=r.matches,_Je(r,({matches:i})=>{aDe&&e.matches||(aDe=i)})}function vJe(){return aDe}const P_i=Object.freeze(Object.defineProperty({__proto__:null,PixelRatio:IJ,addMatchMediaChangeListener:_Je,getZoomFactor:PCt,isAndroid:MCt,isChrome:DJe,isElectron:N_i,isFirefox:Q6,isSafari:i8,isStandalone:vJe,isWebKit:bL,isWebkitWebView:xJe},Symbol.toStringTag,{value:"Module"}));class zCt{constructor(e){this.domNode=e,this._maxWidth="",this._width="",this._height="",this._top="",this._left="",this._bottom="",this._right="",this._paddingLeft="",this._fontFamily="",this._fontWeight="",this._fontSize="",this._fontStyle="",this._fontFeatureSettings="",this._fontVariationSettings="",this._textDecoration="",this._lineHeight="",this._letterSpacing="",this._className="",this._display="",this._position="",this._visibility="",this._color="",this._backgroundColor="",this._layerHint=!1,this._contain="none",this._boxShadow=""}setMaxWidth(e){const i=Ub(e);this._maxWidth!==i&&(this._maxWidth=i,this.domNode.style.maxWidth=this._maxWidth)}setWidth(e){const i=Ub(e);this._width!==i&&(this._width=i,this.domNode.style.width=this._width)}setHeight(e){const i=Ub(e);this._height!==i&&(this._height=i,this.domNode.style.height=this._height)}setTop(e){const i=Ub(e);this._top!==i&&(this._top=i,this.domNode.style.top=this._top)}setLeft(e){const i=Ub(e);this._left!==i&&(this._left=i,this.domNode.style.left=this._left)}setBottom(e){const i=Ub(e);this._bottom!==i&&(this._bottom=i,this.domNode.style.bottom=this._bottom)}setRight(e){const i=Ub(e);this._right!==i&&(this._right=i,this.domNode.style.right=this._right)}setPaddingLeft(e){const i=Ub(e);this._paddingLeft!==i&&(this._paddingLeft=i,this.domNode.style.paddingLeft=this._paddingLeft)}setFontFamily(e){this._fontFamily!==e&&(this._fontFamily=e,this.domNode.style.fontFamily=this._fontFamily)}setFontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.domNode.style.fontWeight=this._fontWeight)}setFontSize(e){const i=Ub(e);this._fontSize!==i&&(this._fontSize=i,this.domNode.style.fontSize=this._fontSize)}setFontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.domNode.style.fontStyle=this._fontStyle)}setFontFeatureSettings(e){this._fontFeatureSettings!==e&&(this._fontFeatureSettings=e,this.domNode.style.fontFeatureSettings=this._fontFeatureSettings)}setFontVariationSettings(e){this._fontVariationSettings!==e&&(this._fontVariationSettings=e,this.domNode.style.fontVariationSettings=this._fontVariationSettings)}setTextDecoration(e){this._textDecoration!==e&&(this._textDecoration=e,this.domNode.style.textDecoration=this._textDecoration)}setLineHeight(e){const i=Ub(e);this._lineHeight!==i&&(this._lineHeight=i,this.domNode.style.lineHeight=this._lineHeight)}setLetterSpacing(e){const i=Ub(e);this._letterSpacing!==i&&(this._letterSpacing=i,this.domNode.style.letterSpacing=this._letterSpacing)}setClassName(e){this._className!==e&&(this._className=e,this.domNode.className=this._className)}toggleClassName(e,i){this.domNode.classList.toggle(e,i),this._className=this.domNode.className}setDisplay(e){this._display!==e&&(this._display=e,this.domNode.style.display=this._display)}setPosition(e){this._position!==e&&(this._position=e,this.domNode.style.position=this._position)}setVisibility(e){this._visibility!==e&&(this._visibility=e,this.domNode.style.visibility=this._visibility)}setColor(e){this._color!==e&&(this._color=e,this.domNode.style.color=this._color)}setBackgroundColor(e){this._backgroundColor!==e&&(this._backgroundColor=e,this.domNode.style.backgroundColor=this._backgroundColor)}setLayerHinting(e){this._layerHint!==e&&(this._layerHint=e,this.domNode.style.transform=this._layerHint?"translate3d(0px, 0px, 0px)":"")}setBoxShadow(e){this._boxShadow!==e&&(this._boxShadow=e,this.domNode.style.boxShadow=e)}setContain(e){this._contain!==e&&(this._contain=e,this.domNode.style.contain=this._contain)}setAttribute(e,i){this.domNode.setAttribute(e,i)}removeAttribute(e){this.domNode.removeAttribute(e)}appendChild(e){this.domNode.appendChild(e.domNode)}removeChild(e){this.domNode.removeChild(e.domNode)}}function Ub(r){return typeof r=="number"?`${r}px`:r}function vl(r){return new zCt(r)}function Fp(r,e){r instanceof zCt?(r.setFontFamily(e.getMassagedFontFamily()),r.setFontWeight(e.fontWeight),r.setFontSize(e.fontSize),r.setFontFeatureSettings(e.fontFeatureSettings),r.setFontVariationSettings(e.fontVariationSettings),r.setLineHeight(e.lineHeight),r.setLetterSpacing(e.letterSpacing)):(r.style.fontFamily=e.getMassagedFontFamily(),r.style.fontWeight=e.fontWeight,r.style.fontSize=e.fontSize+"px",r.style.fontFeatureSettings=e.fontFeatureSettings,r.style.fontVariationSettings=e.fontVariationSettings,r.style.lineHeight=e.lineHeight+"px",r.style.letterSpacing=e.letterSpacing+"px")}class M_i{constructor(e,i){this.chr=e,this.type=i,this.width=0}fulfill(e){this.width=e}}class CJe{constructor(e,i){this._bareFontInfo=e,this._requests=i,this._container=null,this._testElements=null}read(){this._createDomElements(),document.body.appendChild(this._container),this._readFromDomElements(),document.body.removeChild(this._container),this._container=null,this._testElements=null}_createDomElements(){const e=document.createElement("div");e.style.position="absolute",e.style.top="-50000px",e.style.width="50000px";const i=document.createElement("div");Fp(i,this._bareFontInfo),e.appendChild(i);const n=document.createElement("div");Fp(n,this._bareFontInfo),n.style.fontWeight="bold",e.appendChild(n);const a=document.createElement("div");Fp(a,this._bareFontInfo),a.style.fontStyle="italic",e.appendChild(a);const o=[];for(const c of this._requests){let h;c.type===0&&(h=i),c.type===2&&(h=n),c.type===1&&(h=a),h.appendChild(document.createElement("br"));const g=document.createElement("span");CJe._render(g,c),h.appendChild(g),o.push(g)}this._container=e,this._testElements=o}static _render(e,i){if(i.chr===" "){let n=" ";for(let a=0;a<8;a++)n+=n;e.innerText=n}else{let n=i.chr;for(let a=0;a<8;a++)n+=n;e.textContent=n}}_readFromDomElements(){for(let e=0,i=this._requests.length;e{this._evictUntrustedReadingsTimeout=-1,this._evictUntrustedReadings()},5e3))}_evictUntrustedReadings(){const e=this._cache.getValues();let i=!1;for(const n of e)n.isTrusted||(i=!0,this._cache.remove(n));i&&this._onDidChange.fire()}readFontInfo(e){if(!this._cache.has(e)){let i=this._actualReadFontInfo(e);(i.typicalHalfwidthCharacterWidth<=2||i.typicalFullwidthCharacterWidth<=2||i.spaceWidth<=2||i.maxDigitWidth<=2)&&(i=new gVe({pixelRatio:IJ.value,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fontSize:i.fontSize,fontFeatureSettings:i.fontFeatureSettings,fontVariationSettings:i.fontVariationSettings,lineHeight:i.lineHeight,letterSpacing:i.letterSpacing,isMonospace:i.isMonospace,typicalHalfwidthCharacterWidth:Math.max(i.typicalHalfwidthCharacterWidth,5),typicalFullwidthCharacterWidth:Math.max(i.typicalFullwidthCharacterWidth,5),canUseHalfwidthRightwardsArrow:i.canUseHalfwidthRightwardsArrow,spaceWidth:Math.max(i.spaceWidth,5),middotWidth:Math.max(i.middotWidth,5),wsmiddotWidth:Math.max(i.wsmiddotWidth,5),maxDigitWidth:Math.max(i.maxDigitWidth,5)},!1)),this._writeToCache(e,i)}return this._cache.get(e)}_createRequest(e,i,n,a){const o=new M_i(e,i);return n.push(o),a==null||a.push(o),o}_actualReadFontInfo(e){const i=[],n=[],a=this._createRequest("n",0,i,n),o=this._createRequest("m",0,i,null),c=this._createRequest(" ",0,i,n),h=this._createRequest("0",0,i,n),g=this._createRequest("1",0,i,n),_=this._createRequest("2",0,i,n),x=this._createRequest("3",0,i,n),y=this._createRequest("4",0,i,n),S=this._createRequest("5",0,i,n),L=this._createRequest("6",0,i,n),R=this._createRequest("7",0,i,n),G=this._createRequest("8",0,i,n),ie=this._createRequest("9",0,i,n),ue=this._createRequest("→",0,i,n),re=this._createRequest("→",0,i,null),_e=this._createRequest("·",0,i,n),ye=this._createRequest("⸱",0,i,null),Le="|/-_ilm%";for(let kt=0,Zt=Le.length;kt.001){Ue=!1;break}}let rt=!0;return Ue&&re.width!==Ze&&(rt=!1),re.width>ue.width&&(rt=!1),new gVe({pixelRatio:IJ.value,fontFamily:e.fontFamily,fontWeight:e.fontWeight,fontSize:e.fontSize,fontFeatureSettings:e.fontFeatureSettings,fontVariationSettings:e.fontVariationSettings,lineHeight:e.lineHeight,letterSpacing:e.letterSpacing,isMonospace:Ue,typicalHalfwidthCharacterWidth:a.width,typicalFullwidthCharacterWidth:o.width,canUseHalfwidthRightwardsArrow:rt,spaceWidth:c.width,middotWidth:_e.width,wsmiddotWidth:ye.width,maxDigitWidth:lt},!0)}}class zgt{constructor(){this._keys=Object.create(null),this._values=Object.create(null)}has(e){const i=e.getId();return!!this._values[i]}get(e){const i=e.getId();return this._values[i]}put(e,i){const n=e.getId();this._keys[n]=e,this._values[n]=i}remove(e){const i=e.getId();delete this._keys[i],delete this._values[i]}getValues(){return Object.keys(this._keys).map(e=>this._values[e])}}const EVe=new O_i;var fy;(function(r){r.serviceIds=new Map,r.DI_TARGET="$di$target",r.DI_DEPENDENCIES="$di$dependencies";function e(i){return i[r.DI_DEPENDENCIES]||[]}r.getServiceDependencies=e})(fy||(fy={}));const Cs=S0("instantiationService");function j_i(r,e,i){e[fy.DI_TARGET]===e?e[fy.DI_DEPENDENCIES].push({id:r,index:i}):(e[fy.DI_DEPENDENCIES]=[{id:r,index:i}],e[fy.DI_TARGET]=e)}function S0(r){if(fy.serviceIds.has(r))return fy.serviceIds.get(r);const e=function(i,n,a){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");j_i(e,i,a)};return e.toString=()=>r,fy.serviceIds.set(r,e),e}const Pl=S0("codeEditorService");function Wne(r,e){if(!r)throw new Error(e?`Assertion failed (${e})`:"Assertion Failed")}function R6e(r,e="Unreachable"){throw new Error(e)}function bJe(r){if(!r()){debugger;r(),Ns(new KA("Assertion Failed"))}}function ICt(r,e){let i=0;for(;i\-\./\\:\*\?\+\[\]\^,#@;"%\$\p{L}-]+/uy}static getLexeme(e){switch(e.type){case 0:return"(";case 1:return")";case 2:return"!";case 3:return e.isTripleEq?"===":"==";case 4:return e.isTripleEq?"!==":"!=";case 5:return"<";case 6:return"<=";case 7:return">=";case 8:return">=";case 9:return"=~";case 10:return e.lexeme;case 11:return"true";case 12:return"false";case 13:return"in";case 14:return"not";case 15:return"&&";case 16:return"||";case 17:return e.lexeme;case 18:return e.lexeme;case 19:return e.lexeme;case 20:return"EOF";default:throw nJe(`unhandled token type: ${JSON.stringify(e)}; have you forgotten to add a case?`)}}reset(e){return this._input=e,this._start=0,this._current=0,this._tokens=[],this._errors=[],this}scan(){for(;!this._isAtEnd();)switch(this._start=this._current,this._advance()){case 40:this._addToken(0);break;case 41:this._addToken(1);break;case 33:if(this._match(61)){const i=this._match(61);this._tokens.push({type:4,offset:this._start,isTripleEq:i})}else this._addToken(2);break;case 39:this._quotedString();break;case 47:this._regex();break;case 61:if(this._match(61)){const i=this._match(61);this._tokens.push({type:3,offset:this._start,isTripleEq:i})}else this._match(126)?this._addToken(9):this._error(kIe("==","=~"));break;case 60:this._addToken(this._match(61)?6:5);break;case 62:this._addToken(this._match(61)?8:7);break;case 38:this._match(38)?this._addToken(15):this._error(kIe("&&"));break;case 124:this._match(124)?this._addToken(16):this._error(kIe("||"));break;case 32:case 13:case 9:case 10:case 160:break;default:this._string()}return this._start=this._current,this._addToken(20),Array.from(this._tokens)}_match(e){return this._isAtEnd()||this._input.charCodeAt(this._current)!==e?!1:(this._current++,!0)}_advance(){return this._input.charCodeAt(this._current++)}_peek(){return this._isAtEnd()?0:this._input.charCodeAt(this._current)}_addToken(e){this._tokens.push({type:e,offset:this._start})}_error(e){const i=this._start,n=this._input.substring(this._start,this._current),a={type:19,offset:this._start,lexeme:n};this._errors.push({offset:i,lexeme:n,additionalInfo:e}),this._tokens.push(a)}_string(){this.stringRe.lastIndex=this._start;const e=this.stringRe.exec(this._input);if(e){this._current=this._start+e[0].length;const i=this._input.substring(this._start,this._current),n=_Ve._keywords.get(i);n?this._addToken(n):this._tokens.push({type:17,lexeme:i,offset:this._start})}}_quotedString(){for(;this._peek()!==39&&!this._isAtEnd();)this._advance();if(this._isAtEnd()){this._error(V_i);return}this._advance(),this._tokens.push({type:18,lexeme:this._input.substring(this._start+1,this._current-1),offset:this._start+1})}_regex(){let e=this._current,i=!1,n=!1;for(;;){if(e>=this._input.length){this._current=e,this._error(H_i);return}const o=this._input.charCodeAt(e);if(i)i=!1;else if(o===47&&!n){e++;break}else o===91?n=!0:o===92?i=!0:o===93&&(n=!1);e++}for(;e=this._input.length}};vI._regexFlags=new Set(["i","g","s","m","y","u"].map(r=>r.charCodeAt(0)));vI._keywords=new Map([["not",14],["in",13],["false",12],["true",11]]);const Jg=new Map;Jg.set("false",!1);Jg.set("true",!0);Jg.set("isMac",d0);Jg.set("isLinux",sg);Jg.set("isWindows",Sp);Jg.set("isWeb",oN);Jg.set("isMacNative",d0&&!oN);Jg.set("isEdge",kgi);Jg.set("isFirefox",bgi);Jg.set("isChrome",Yvt);Jg.set("isSafari",ygi);const K_i=Object.prototype.hasOwnProperty,W_i={regexParsingWithErrorRecovery:!0},G_i=V("contextkey.parser.error.emptyString","Empty context key expression"),J_i=V("contextkey.parser.error.emptyString.hint","Did you forget to write an expression? You can also put 'false' or 'true' to always evaluate to false or true, respectively."),$_i=V("contextkey.parser.error.noInAfterNot","'in' after 'not'."),Igt=V("contextkey.parser.error.closingParenthesis","closing parenthesis ')'"),U_i=V("contextkey.parser.error.unexpectedToken","Unexpected token"),q_i=V("contextkey.parser.error.unexpectedToken.hint","Did you forget to put && or || before the token?"),Z_i=V("contextkey.parser.error.unexpectedEOF","Unexpected end of expression"),Y_i=V("contextkey.parser.error.unexpectedEOF.hint","Did you forget to put a context key?");let RCt=class dne{constructor(e=W_i){this._config=e,this._scanner=new vI,this._tokens=[],this._current=0,this._parsingErrors=[],this._flagsGYRe=/g|y/g}parse(e){if(e===""){this._parsingErrors.push({message:G_i,offset:0,lexeme:"",additionalInfo:J_i});return}this._tokens=this._scanner.reset(e).scan(),this._current=0,this._parsingErrors=[];try{const i=this._expr();if(!this._isAtEnd()){const n=this._peek(),a=n.type===17?q_i:void 0;throw this._parsingErrors.push({message:U_i,offset:n.offset,lexeme:vI.getLexeme(n),additionalInfo:a}),dne._parseError}return i}catch(i){if(i!==dne._parseError)throw i;return}}_expr(){return this._or()}_or(){const e=[this._and()];for(;this._matchOne(16);){const i=this._and();e.push(i)}return e.length===1?e[0]:pu.or(...e)}_and(){const e=[this._term()];for(;this._matchOne(15);){const i=this._term();e.push(i)}return e.length===1?e[0]:pu.and(...e)}_term(){if(this._matchOne(2)){const e=this._peek();switch(e.type){case 11:return this._advance(),R_.INSTANCE;case 12:return this._advance(),H3.INSTANCE;case 0:{this._advance();const i=this._expr();return this._consume(1,Igt),i==null?void 0:i.negate()}case 17:return this._advance(),qR.create(e.lexeme);default:throw this._errExpectedButGot("KEY | true | false | '(' expression ')'",e)}}return this._primary()}_primary(){const e=this._peek();switch(e.type){case 11:return this._advance(),pu.true();case 12:return this._advance(),pu.false();case 0:{this._advance();const i=this._expr();return this._consume(1,Igt),i}case 17:{const i=e.lexeme;if(this._advance(),this._matchOne(9)){const a=this._peek();if(!this._config.regexParsingWithErrorRecovery){if(this._advance(),a.type!==10)throw this._errExpectedButGot("REGEX",a);const o=a.lexeme,c=o.lastIndexOf("/"),h=c===o.length-1?void 0:this._removeFlagsGY(o.substring(c+1));let g;try{g=new RegExp(o.substring(1,c),h)}catch{throw this._errExpectedButGot("REGEX",a)}return Wue.create(i,g)}switch(a.type){case 10:case 19:{const o=[a.lexeme];this._advance();let c=this._peek(),h=0;for(let S=0;S=0){const _=o.slice(h+1,g),x=o[g+1]==="i"?"i":"";try{c=new RegExp(_,x)}catch{throw this._errExpectedButGot("REGEX",a)}}}if(c===null)throw this._errExpectedButGot("REGEX",a);return Wue.create(i,c)}default:throw this._errExpectedButGot("REGEX",this._peek())}}if(this._matchOne(14)){this._consume(13,$_i);const a=this._value();return pu.notIn(i,a)}switch(this._peek().type){case 3:{this._advance();const a=this._value();if(this._previous().type===18)return pu.equals(i,a);switch(a){case"true":return pu.has(i);case"false":return pu.not(i);default:return pu.equals(i,a)}}case 4:{this._advance();const a=this._value();if(this._previous().type===18)return pu.notEquals(i,a);switch(a){case"true":return pu.not(i);case"false":return pu.has(i);default:return pu.notEquals(i,a)}}case 5:return this._advance(),J6e.create(i,this._value());case 6:return this._advance(),$6e.create(i,this._value());case 7:return this._advance(),W6e.create(i,this._value());case 8:return this._advance(),G6e.create(i,this._value());case 13:return this._advance(),pu.in(i,this._value());default:return pu.has(i)}}case 20:throw this._parsingErrors.push({message:Z_i,offset:e.offset,lexeme:"",additionalInfo:Y_i}),dne._parseError;default:throw this._errExpectedButGot(`true | false | KEY | KEY '=~' REGEX | KEY ('==' | '!=' | '<' | '<=' | '>' | '>=' | 'in' | 'not' 'in') value`,this._peek())}}_value(){const e=this._peek();switch(e.type){case 17:case 18:return this._advance(),e.lexeme;case 11:return this._advance(),"true";case 12:return this._advance(),"false";case 13:return this._advance(),"in";default:return""}}_removeFlagsGY(e){return e.replaceAll(this._flagsGYRe,"")}_previous(){return this._tokens[this._current-1]}_matchOne(e){return this._check(e)?(this._advance(),!0):!1}_advance(){return this._isAtEnd()||this._current++,this._previous()}_consume(e,i){if(this._check(e))return this._advance();throw this._errExpectedButGot(i,this._peek())}_errExpectedButGot(e,i,n){const a=V("contextkey.parser.error.expectedButGot",`Expected: {0} -Received: '{1}'.`,e,xI.getLexeme(i)),o=i.offset,c=xI.getLexeme(i);return this._parsingErrors.push({message:a,offset:o,lexeme:c,additionalInfo:n}),sne._parseError}_check(e){return this._peek().type===e}_peek(){return this._tokens[this._current]}_isAtEnd(){return this._peek().type===20}};PCt._parseError=new Error;class mu{static false(){return I_.INSTANCE}static true(){return H3.INSTANCE}static has(e){return $R.create(e)}static equals(e,i){return vae.create(e,i)}static notEquals(e,i){return z6e.create(e,i)}static regex(e,i){return Vue.create(e,i)}static in(e,i){return P6e.create(e,i)}static notIn(e,i){return M6e.create(e,i)}static not(e){return UR.create(e)}static and(...e){return PI.create(e,null,!0)}static or(...e){return SS.create(e,null,!0)}static deserialize(e){return e==null?void 0:this._parser.parse(e)}}mu._parser=new PCt({regexParsingWithErrorRecovery:!1});function q_i(r,e){const i=r?r.substituteConstants():void 0,n=e?e.substituteConstants():void 0;return!i&&!n?!0:!i||!n?!1:i.equals(n)}function Hne(r,e){return r.cmp(e)}class I_{constructor(){this.type=0}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!1}serialize(){return"false"}keys(){return[]}negate(){return H3.INSTANCE}}I_.INSTANCE=new I_;class H3{constructor(){this.type=1}cmp(e){return this.type-e.type}equals(e){return e.type===this.type}substituteConstants(){return this}evaluate(e){return!0}serialize(){return"true"}keys(){return[]}negate(){return I_.INSTANCE}}H3.INSTANCE=new H3;class $R{static create(e,i=null){const n=Gg.get(e);return typeof n=="boolean"?n?H3.INSTANCE:I_.INSTANCE:new $R(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=2}cmp(e){return e.type!==this.type?this.type-e.type:zCt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Gg.get(this.key);return typeof e=="boolean"?e?H3.INSTANCE:I_.INSTANCE:this}evaluate(e){return!!e.getValue(this.key)}serialize(){return this.key}keys(){return[this.key]}negate(){return this.negated||(this.negated=UR.create(this.key,this)),this.negated}}class vae{static create(e,i,n=null){if(typeof i=="boolean")return i?$R.create(e,n):UR.create(e,n);const a=Gg.get(e);return typeof a=="boolean"?i===(a?"true":"false")?H3.INSTANCE:I_.INSTANCE:new vae(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=4}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Gg.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?H3.INSTANCE:I_.INSTANCE}return this}evaluate(e){return e.getValue(this.key)==this.value}serialize(){return`${this.key} == '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=z6e.create(this.key,this.value,this)),this.negated}}class P6e{static create(e,i){return new P6e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=10,this.negated=null}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.valueKey,e.key,e.valueKey)}equals(e){return e.type===this.type?this.key===e.key&&this.valueKey===e.valueKey:!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.valueKey),n=e.getValue(this.key);return Array.isArray(i)?i.includes(n):typeof n=="string"&&typeof i=="object"&&i!==null?j_i.call(i,n):!1}serialize(){return`${this.key} in '${this.valueKey}'`}keys(){return[this.key,this.valueKey]}negate(){return this.negated||(this.negated=M6e.create(this.key,this.valueKey)),this.negated}}class M6e{static create(e,i){return new M6e(e,i)}constructor(e,i){this.key=e,this.valueKey=i,this.type=11,this._negated=P6e.create(e,i)}cmp(e){return e.type!==this.type?this.type-e.type:this._negated.cmp(e._negated)}equals(e){return e.type===this.type?this._negated.equals(e._negated):!1}substituteConstants(){return this}evaluate(e){return!this._negated.evaluate(e)}serialize(){return`${this.key} not in '${this.valueKey}'`}keys(){return this._negated.keys()}negate(){return this._negated}}class z6e{static create(e,i,n=null){if(typeof i=="boolean")return i?UR.create(e,n):$R.create(e,n);const a=Gg.get(e);return typeof a=="boolean"?i===(a?"true":"false")?I_.INSTANCE:H3.INSTANCE:new z6e(e,i,n)}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=5}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){const e=Gg.get(this.key);if(typeof e=="boolean"){const i=e?"true":"false";return this.value===i?I_.INSTANCE:H3.INSTANCE}return this}evaluate(e){return e.getValue(this.key)!=this.value}serialize(){return`${this.key} != '${this.value}'`}keys(){return[this.key]}negate(){return this.negated||(this.negated=vae.create(this.key,this.value,this)),this.negated}}class UR{static create(e,i=null){const n=Gg.get(e);return typeof n=="boolean"?n?I_.INSTANCE:H3.INSTANCE:new UR(e,i)}constructor(e,i){this.key=e,this.negated=i,this.type=3}cmp(e){return e.type!==this.type?this.type-e.type:zCt(this.key,e.key)}equals(e){return e.type===this.type?this.key===e.key:!1}substituteConstants(){const e=Gg.get(this.key);return typeof e=="boolean"?e?I_.INSTANCE:H3.INSTANCE:this}evaluate(e){return!e.getValue(this.key)}serialize(){return`!${this.key}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=$R.create(this.key,this)),this.negated}}function I6e(r,e){if(typeof r=="string"){const i=parseFloat(r);isNaN(i)||(r=i)}return typeof r=="string"||typeof r=="number"?e(r):I_.INSTANCE}class R6e{static create(e,i,n=null){return I6e(i,a=>new R6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=12}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>this.value}serialize(){return`${this.key} > ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=V6e.create(this.key,this.value,this)),this.negated}}class O6e{static create(e,i,n=null){return I6e(i,a=>new O6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=13}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))>=this.value}serialize(){return`${this.key} >= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=j6e.create(this.key,this.value,this)),this.negated}}class j6e{static create(e,i,n=null){return I6e(i,a=>new j6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=14}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))new V6e(e,a,n))}constructor(e,i,n){this.key=e,this.value=i,this.negated=n,this.type=15}cmp(e){return e.type!==this.type?this.type-e.type:qR(this.key,this.value,e.key,e.value)}equals(e){return e.type===this.type?this.key===e.key&&this.value===e.value:!1}substituteConstants(){return this}evaluate(e){return typeof this.value=="string"?!1:parseFloat(e.getValue(this.key))<=this.value}serialize(){return`${this.key} <= ${this.value}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=R6e.create(this.key,this.value,this)),this.negated}}class Vue{static create(e,i){return new Vue(e,i)}constructor(e,i){this.key=e,this.regexp=i,this.type=7,this.negated=null}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.keye.key)return 1;const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return in?1:0}equals(e){if(e.type===this.type){const i=this.regexp?this.regexp.source:"",n=e.regexp?e.regexp.source:"";return this.key===e.key&&i===n}return!1}substituteConstants(){return this}evaluate(e){const i=e.getValue(this.key);return this.regexp?this.regexp.test(i):!1}serialize(){const e=this.regexp?`/${this.regexp.source}/${this.regexp.flags}`:"/invalid/";return`${this.key} =~ ${e}`}keys(){return[this.key]}negate(){return this.negated||(this.negated=DJe.create(this)),this.negated}}class DJe{static create(e){return new DJe(e)}constructor(e){this._actual=e,this.type=8}cmp(e){return e.type!==this.type?this.type-e.type:this._actual.cmp(e._actual)}equals(e){return e.type===this.type?this._actual.equals(e._actual):!1}substituteConstants(){return this}evaluate(e){return!this._actual.evaluate(e)}serialize(){throw new Error("Method not implemented.")}keys(){return this._actual.keys()}negate(){return this._actual}}function MCt(r){let e=null;for(let i=0,n=r.length;ie.expr.length)return 1;for(let i=0,n=this.expr.length;i1;){const c=a[a.length-1];if(c.type!==9)break;a.pop();const h=a.pop(),g=a.length===0,_=SS.create(c.expr.map(x=>PI.create([x,h],null,n)),null,g);_&&(a.push(_),a.sort(Hne))}if(a.length===1)return a[0];if(n){for(let c=0;ce.serialize()).join(" && ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());this.negated=SS.create(e,this,!0)}return this.negated}}class SS{static create(e,i,n){return SS._normalizeArr(e,i,n)}constructor(e,i){this.expr=e,this.negated=i,this.type=9}cmp(e){if(e.type!==this.type)return this.type-e.type;if(this.expr.lengthe.expr.length)return 1;for(let i=0,n=this.expr.length;ie.serialize()).join(" || ")}keys(){const e=[];for(const i of this.expr)e.push(...i.keys());return e}negate(){if(!this.negated){const e=[];for(const i of this.expr)e.push(i.negate());for(;e.length>1;){const i=e.shift(),n=e.shift(),a=[];for(const o of Pgt(i))for(const c of Pgt(n))a.push(PI.create([o,c],null,!1));e.unshift(SS.create(a,null,!1))}this.negated=SS.create(e,this,!0)}return this.negated}}class jr extends $R{static all(){return jr._info.values()}constructor(e,i,n){super(e,null),this._defaultValue=i,typeof n=="object"?jr._info.push(Object.assign(Object.assign({},n),{key:e})):n!==!0&&jr._info.push({key:e,description:n,type:i!=null?typeof i:void 0})}bindTo(e){return e.createKey(this.key,this._defaultValue)}getValue(e){return e.getContextKeyValue(this.key)}toNegated(){return this.negate()}isEqualTo(e){return vae.create(this.key,e)}}jr._info=[];const Jo=k0("contextKeyService");function zCt(r,e){return re?1:0}function qR(r,e,i,n){return ri?1:en?1:0}function fVe(r,e){if(r.type===0||e.type===1)return!0;if(r.type===9)return e.type===9?Ngt(r.expr,e.expr):!1;if(e.type===9){for(const i of e.expr)if(fVe(r,i))return!0;return!1}if(r.type===6){if(e.type===6)return Ngt(e.expr,r.expr);for(const i of r.expr)if(fVe(i,e))return!0;return!1}return r.equals(e)}function Ngt(r,e){let i=0,n=0;for(;i=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},xIe=function(r,e){return function(i,n){e(i,n,r)}};const Y_i={followsCaret:!0,ignoreCharChanges:!0,alwaysRevealFirst:!0,findResultLoop:!0};let mVe=class extends ln{constructor(e,i={},n,a,o){super(),this._audioCueService=n,this._codeEditorService=a,this._accessibilityService=o,this._onDidUpdate=this._register(new Fi),this._editor=e,this._options=pae(i,Y_i,!1),this.disposed=!1,this.nextIdx=-1,this.ranges=[],this.ignoreSelectionChange=!1,this.revealFirst=!!this._options.alwaysRevealFirst,this._register(this._editor.onDidDispose(()=>this.dispose())),this._register(this._editor.onDidUpdateDiff(()=>this._onDiffUpdated())),this._options.followsCaret&&this._register(this._editor.getModifiedEditor().onDidChangeCursorPosition(c=>{this.ignoreSelectionChange||(this._updateAccessibilityState(c.position.lineNumber),this.nextIdx=-1)})),this._options.alwaysRevealFirst&&this._register(this._editor.getModifiedEditor().onDidChangeModel(c=>{this.revealFirst=!0})),this._init()}_init(){this._editor.getLineChanges()}_onDiffUpdated(){this._init(),this._compute(this._editor.getLineChanges()),this.revealFirst&&this._editor.getLineChanges()!==null&&(this.revealFirst=!1,this.nextIdx=-1,this.next(1))}_compute(e){this.ranges=[],e&&e.forEach(i=>{!this._options.ignoreCharChanges&&i.charChanges?i.charChanges.forEach(n=>{this.ranges.push({rhs:!0,range:new ot(n.modifiedStartLineNumber,n.modifiedStartColumn,n.modifiedEndLineNumber,n.modifiedEndColumn)})}):i.modifiedEndLineNumber===0?this.ranges.push({rhs:!0,range:new ot(i.modifiedStartLineNumber,1,i.modifiedStartLineNumber+1,1)}):this.ranges.push({rhs:!0,range:new ot(i.modifiedStartLineNumber,1,i.modifiedEndLineNumber+1,1)})}),this.ranges.sort((i,n)=>ot.compareRangesUsingStarts(i.range,n.range)),this._onDidUpdate.fire(this)}_initIdx(e){let i=!1;const n=this._editor.getPosition();if(!n){this.nextIdx=0;return}for(let a=0,o=this.ranges.length;a=this.ranges.length&&(this.nextIdx=0)):(this.nextIdx-=1,this.nextIdx<0&&(this.nextIdx=this.ranges.length-1));const n=this.ranges[this.nextIdx];this.ignoreSelectionChange=!0;try{const a=n.range.getStartPosition();this._editor.setPosition(a),this._editor.revealRangeInCenter(n.range,i),this._updateAccessibilityState(a.lineNumber,!0)}finally{this.ignoreSelectionChange=!1}}_updateAccessibilityState(e,i){var n;const a=(n=this._editor.getModel())===null||n===void 0?void 0:n.modified;if(!a)return;const o=a.getLineDecorations(e).find(h=>h.options.className==="line-insert");if(o)this._audioCueService.playAudioCue(Yl.diffLineModified,!0);else if(i)this._audioCueService.playAudioCue(Yl.diffLineDeleted,!0);else return;const c=this._codeEditorService.getActiveCodeEditor();i&&c&&o&&this._accessibilityService.isScreenReaderOptimized()&&(c.setSelection({startLineNumber:e,startColumn:0,endLineNumber:e,endColumn:Number.MAX_VALUE}),c.writeScreenReaderContent("diff-navigation"))}canNavigate(){return this.ranges&&this.ranges.length>0}next(e=0){this.canNavigateNext()&&this._move(!0,e)}previous(e=0){this.canNavigatePrevious()&&this._move(!1,e)}canNavigateNext(){return this.canNavigateLoop()||this.nextIdx0&&r.getLanguageId(c-1)===a;)c--;return new n3i(r,a,c,o+1,r.getStartOffset(c),r.getEndOffset(o))}class n3i{constructor(e,i,n,a,o,c){this._scopedLineTokensBrand=void 0,this._actual=e,this.languageId=i,this._firstTokenIndex=n,this._lastTokenIndex=a,this.firstCharOffset=o,this._lastCharOffset=c}getLineContent(){return this._actual.getLineContent().substring(this.firstCharOffset,this._lastCharOffset)}getActualLineContentBefore(e){return this._actual.getLineContent().substring(0,this.firstCharOffset+e)}getTokenCount(){return this._lastTokenIndex-this._firstTokenIndex}findTokenIndexAtOffset(e){return this._actual.findTokenIndexAtOffset(e+this.firstCharOffset)-this._firstTokenIndex}getStandardTokenType(e){return this._actual.getStandardTokenType(e+this._firstTokenIndex)}}function jF(r){return(r&3)!==0}class IJ{constructor(e){if(e.autoClosingPairs?this._autoClosingPairs=e.autoClosingPairs.map(i=>new CIe(i)):e.brackets?this._autoClosingPairs=e.brackets.map(i=>new CIe({open:i[0],close:i[1]})):this._autoClosingPairs=[],e.__electricCharacterSupport&&e.__electricCharacterSupport.docComment){const i=e.__electricCharacterSupport.docComment;this._autoClosingPairs.push(new CIe({open:i.open,close:i.close||""}))}this._autoCloseBeforeForQuotes=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:IJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES,this._autoCloseBeforeForBrackets=typeof e.autoCloseBefore=="string"?e.autoCloseBefore:IJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS,this._surroundingPairs=e.surroundingPairs||this._autoClosingPairs}getAutoClosingPairs(){return this._autoClosingPairs}getAutoCloseBeforeSet(e){return e?this._autoCloseBeforeForQuotes:this._autoCloseBeforeForBrackets}getSurroundingPairs(){return this._surroundingPairs}}IJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_QUOTES=`;:.,=}])> - `;IJ.DEFAULT_AUTOCLOSE_BEFORE_LANGUAGE_DEFINED_BRACKETS=`'"\`;:.,=}])> - `;const Mgt=typeof Buffer<"u";let bIe;class K6e{static wrap(e){return Mgt&&!Buffer.isBuffer(e)&&(e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)),new K6e(e)}constructor(e){this.buffer=e,this.byteLength=this.buffer.byteLength}toString(){return Mgt?this.buffer.toString():(bIe||(bIe=new TextDecoder),bIe.decode(this.buffer))}}function u3i(r,e){return r[e+0]<<0>>>0|r[e+1]<<8>>>0}function r3i(r,e,i){r[i+0]=e&255,e=e>>>8,r[i+1]=e&255}function Yb(r,e){return r[e]*Math.pow(2,24)+r[e+1]*Math.pow(2,16)+r[e+2]*Math.pow(2,8)+r[e+3]}function Qb(r,e,i){r[i+3]=e,e=e>>>8,r[i+2]=e,e=e>>>8,r[i+1]=e,e=e>>>8,r[i]=e}function zgt(r,e){return r[e]}function Igt(r,e,i){r[i]=e}let yIe;function ICt(){return yIe||(yIe=new TextDecoder("UTF-16LE")),yIe}let kIe;function a3i(){return kIe||(kIe=new TextDecoder("UTF-16BE")),kIe}let FIe;function RCt(){return FIe||(FIe=Jvt()?ICt():a3i()),FIe}function o3i(r,e,i){const n=new Uint16Array(r.buffer,e,i);return i>0&&(n[0]===65279||n[0]===65534)?s3i(r,e,i):ICt().decode(n)}function s3i(r,e,i){const n=[];let a=0;for(let o=0;o=this._capacity){this._flushBuffer(),this._completedStrings[this._completedStrings.length]=e;return}for(let n=0;n[c[0].toLowerCase(),c[1].toLowerCase()]);const i=[];for(let c=0;c{const[g,_]=c,[x,y]=h;return g===x||g===y||_===x||_===y},a=(c,h)=>{const g=Math.min(c,h),_=Math.max(c,h);for(let x=0;x0&&o.push({open:h,close:g})}return o}class c3i{constructor(e,i){this._richEditBracketsBrand=void 0;const n=l3i(i);this.brackets=n.map((a,o)=>new f5e(e,o,a.open,a.close,d3i(a.open,a.close,n,o),h3i(a.open,a.close,n,o))),this.forwardRegex=f3i(this.brackets),this.reversedRegex=m3i(this.brackets),this.textIsBracket={},this.textIsOpenBracket={},this.maxBracketLength=0;for(const a of this.brackets){for(const o of a.open)this.textIsBracket[o]=a,this.textIsOpenBracket[o]=!0,this.maxBracketLength=Math.max(this.maxBracketLength,o.length);for(const o of a.close)this.textIsBracket[o]=a,this.textIsOpenBracket[o]=!1,this.maxBracketLength=Math.max(this.maxBracketLength,o.length)}}}function OCt(r,e,i,n){for(let a=0,o=e.length;a=0&&n.push(h);for(const h of c.close)h.indexOf(r)>=0&&n.push(h)}}function jCt(r,e){return r.length-e.length}function W6e(r){if(r.length<=1)return r;const e=[],i=new Set;for(const n of r)i.has(n)||(e.push(n),i.add(n));return e}function d3i(r,e,i,n){let a=[];a=a.concat(r),a=a.concat(e);for(let o=0,c=a.length;o=0;c--)a[o++]=n.charCodeAt(c);return RCt().decode(a)}let e=null,i=null;return function(a){return e!==a&&(e=a,i=r(e)),i}}();class jC{static _findPrevBracketInText(e,i,n,a){const o=n.match(e);if(!o)return null;const c=n.length-(o.index||0),h=o[0].length,g=a+c;return new ot(i,g-h+1,i,g+1)}static findPrevBracketInRange(e,i,n,a,o){const h=xJe(n).substring(n.length-o,n.length-a);return this._findPrevBracketInText(e,i,h,a)}static findNextBracketInText(e,i,n,a){const o=n.match(e);if(!o)return null;const c=o.index||0,h=o[0].length;if(h===0)return null;const g=a+c;return new ot(i,g+1,i,g+1+h)}static findNextBracketInRange(e,i,n,a,o){const c=n.substring(a,o);return this.findNextBracketInText(e,i,c,a)}}class g3i{constructor(e){this._richEditBrackets=e}getElectricCharacters(){const e=[];if(this._richEditBrackets)for(const i of this._richEditBrackets.brackets)for(const n of i.close){const a=n.charAt(n.length-1);e.push(a)}return jL(e)}onElectricCharacter(e,i,n){if(!this._richEditBrackets||this._richEditBrackets.brackets.length===0)return null;const a=i.findTokenIndexAtOffset(n-1);if(jF(i.getStandardTokenType(a)))return null;const o=this._richEditBrackets.reversedRegex,c=i.getLineContent().substring(0,n-1)+e,h=jC.findPrevBracketInRange(o,1,c,0,c.length);if(!h)return null;const g=c.substring(h.startColumn-1,h.endColumn-1).toLowerCase();if(this._richEditBrackets.textIsOpenBracket[g])return null;const x=i.getActualLineContentBefore(h.startColumn-1);return/^\s*$/.test(x)?{matchOpenBracket:g}:null}}function B_e(r){return r.global&&(r.lastIndex=0),!0}class E3i{constructor(e){this._indentationRules=e}shouldIncrease(e){return!!(this._indentationRules&&this._indentationRules.increaseIndentPattern&&B_e(this._indentationRules.increaseIndentPattern)&&this._indentationRules.increaseIndentPattern.test(e))}shouldDecrease(e){return!!(this._indentationRules&&this._indentationRules.decreaseIndentPattern&&B_e(this._indentationRules.decreaseIndentPattern)&&this._indentationRules.decreaseIndentPattern.test(e))}shouldIndentNextLine(e){return!!(this._indentationRules&&this._indentationRules.indentNextLinePattern&&B_e(this._indentationRules.indentNextLinePattern)&&this._indentationRules.indentNextLinePattern.test(e))}shouldIgnore(e){return!!(this._indentationRules&&this._indentationRules.unIndentedLinePattern&&B_e(this._indentationRules.unIndentedLinePattern)&&this._indentationRules.unIndentedLinePattern.test(e))}getIndentMetadata(e){let i=0;return this.shouldIncrease(e)&&(i+=1),this.shouldDecrease(e)&&(i+=2),this.shouldIndentNextLine(e)&&(i+=4),this.shouldIgnore(e)&&(i+=8),i}}class AG{constructor(e){e=e||{},e.brackets=e.brackets||[["(",")"],["{","}"],["[","]"]],this._brackets=[],e.brackets.forEach(i=>{const n=AG._createOpenBracketRegExp(i[0]),a=AG._createCloseBracketRegExp(i[1]);n&&a&&this._brackets.push({open:i[0],openRegExp:n,close:i[1],closeRegExp:a})}),this._regExpRules=e.onEnterRules||[]}onEnter(e,i,n,a){if(e>=3)for(let o=0,c=this._regExpRules.length;o_.reg?(_.reg.lastIndex=0,_.reg.test(_.text)):!0))return h.action}if(e>=2&&n.length>0&&a.length>0)for(let o=0,c=this._brackets.length;o=2&&n.length>0){for(let o=0,c=this._brackets.length;o"u"?i:o}function D3i(r){return r.replace(/[\[\]]/g,"")}const l1=k0("languageService");class ZF{constructor(e,i=[],n=!1){this.ctor=e,this.staticArguments=i,this.supportsDelayedInstantiation=n}}const KCt=[];function tl(r,e,i){e instanceof ZF||(e=new ZF(e,[],!!i)),KCt.push([r,e])}function Ogt(){return KCt}class x3i{constructor(){this.data=new Map}add(e,i){Vne(M_(e)),Vne(O3(i)),Vne(!this.data.has(e),"There is already an extension with this id"),this.data.set(e,i)}as(e){return this.data.get(e)||null}}const J1=new x3i,R3=Object.freeze({text:"text/plain",binary:"application/octet-stream",unknown:"application/unknown",markdown:"text/markdown",latex:"text/latex",uriList:"text/uri-list"}),J6e={JSONContribution:"base.contributions.json"};function v3i(r){return r.length>0&&r.charAt(r.length-1)==="#"?r.substring(0,r.length-1):r}class C3i{constructor(){this._onDidChangeSchema=new Fi,this.schemasById={}}registerSchema(e,i){this.schemasById[v3i(e)]=i,this._onDidChangeSchema.fire(e)}notifySchemaChanged(e){this._onDidChangeSchema.fire(e)}}const b3i=new C3i;J1.add(J6e.JSONContribution,b3i);const WA={Configuration:"base.contributions.configuration"},Nie="vscode://schemas/settings/resourceLanguage",jgt=J1.as(J6e.JSONContribution);class y3i{constructor(){this.overrideIdentifiers=new Set,this._onDidSchemaChange=new Fi,this._onDidUpdateConfiguration=new Fi,this.configurationDefaultsOverrides=new Map,this.defaultLanguageConfigurationOverridesNode={id:"defaultOverrides",title:V("defaultLanguageConfigurationOverrides.title","Default Language Configuration Overrides"),properties:{}},this.configurationContributors=[this.defaultLanguageConfigurationOverridesNode],this.resourceLanguageSettingsSchema={properties:{},patternProperties:{},additionalProperties:!0,allowTrailingCommas:!0,allowComments:!0},this.configurationProperties={},this.policyConfigurations=new Map,this.excludedConfigurationProperties={},jgt.registerSchema(Nie,this.resourceLanguageSettingsSchema),this.registerOverridePropertyPatternKey()}registerConfiguration(e,i=!0){this.registerConfigurations([e],i)}registerConfigurations(e,i=!0){const n=new Set;this.doRegisterConfigurations(e,i,n),jgt.registerSchema(Nie,this.resourceLanguageSettingsSchema),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:n})}registerDefaultConfigurations(e){const i=new Set;this.doRegisterDefaultConfigurations(e,i),this._onDidSchemaChange.fire(),this._onDidUpdateConfiguration.fire({properties:i,defaultsOverrides:!0})}doRegisterDefaultConfigurations(e,i){var n;const a=[];for(const{overrides:o,source:c}of e)for(const h in o)if(i.add(h),KL.test(h)){const g=this.configurationDefaultsOverrides.get(h),_=(n=g==null?void 0:g.valuesSources)!==null&&n!==void 0?n:new Map;if(c)for(const L of Object.keys(o[h]))_.set(L,c);const x=Object.assign(Object.assign({},(g==null?void 0:g.value)||{}),o[h]);this.configurationDefaultsOverrides.set(h,{source:c,value:x,valuesSources:_});const y=D3i(h),S={type:"object",default:x,description:V("defaultLanguageConfiguration.description","Configure settings to be overridden for the {0} language.",y),$ref:Nie,defaultDefaultValue:x,source:M_(c)?void 0:c,defaultValueSource:c};a.push(...m5e(h)),this.configurationProperties[h]=S,this.defaultLanguageConfigurationOverridesNode.properties[h]=S}else{this.configurationDefaultsOverrides.set(h,{value:o[h],source:c});const g=this.configurationProperties[h];g&&(this.updatePropertyDefaultValue(h,g),this.updateSchema(h,g))}this.doRegisterOverrideIdentifiers(a)}registerOverrideIdentifiers(e){this.doRegisterOverrideIdentifiers(e),this._onDidSchemaChange.fire()}doRegisterOverrideIdentifiers(e){for(const i of e)this.overrideIdentifiers.add(i);this.updateOverridePropertyPatternKey()}doRegisterConfigurations(e,i,n){e.forEach(a=>{this.validateAndRegisterProperties(a,i,a.extensionInfo,a.restrictedProperties,void 0,n),this.configurationContributors.push(a),this.registerJSONConfiguration(a)})}validateAndRegisterProperties(e,i=!0,n,a,o=3,c){var h;o=ix(e.scope)?o:e.scope;const g=e.properties;if(g)for(const x in g){const y=g[x];if(i&&A3i(x,y)){delete g[x];continue}if(y.source=n,y.defaultDefaultValue=g[x].default,this.updatePropertyDefaultValue(x,y),KL.test(x)?y.scope=void 0:(y.scope=ix(y.scope)?o:y.scope,y.restricted=ix(y.restricted)?!!(a!=null&&a.includes(x)):y.restricted),g[x].hasOwnProperty("included")&&!g[x].included){this.excludedConfigurationProperties[x]=g[x],delete g[x];continue}else this.configurationProperties[x]=g[x],!((h=g[x].policy)===null||h===void 0)&&h.name&&this.policyConfigurations.set(g[x].policy.name,x);!g[x].deprecationMessage&&g[x].markdownDeprecationMessage&&(g[x].deprecationMessage=g[x].markdownDeprecationMessage),c.add(x)}const _=e.allOf;if(_)for(const x of _)this.validateAndRegisterProperties(x,i,n,a,o,c)}getConfigurationProperties(){return this.configurationProperties}getPolicyConfigurations(){return this.policyConfigurations}registerJSONConfiguration(e){const i=n=>{const a=n.properties;if(a)for(const c in a)this.updateSchema(c,a[c]);const o=n.allOf;o==null||o.forEach(i)};i(e)}updateSchema(e,i){switch(i.scope){case 1:break;case 2:break;case 6:break;case 3:break;case 4:break;case 5:this.resourceLanguageSettingsSchema.properties[e]=i;break}}updateOverridePropertyPatternKey(){for(const e of this.overrideIdentifiers.values()){const i=`[${e}]`,n={type:"object",description:V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),errorMessage:V("overrideSettings.errorMessage","This setting does not support per-language configuration."),$ref:Nie};this.updatePropertyDefaultValue(i,n)}}registerOverridePropertyPatternKey(){V("overrideSettings.defaultDescription","Configure editor settings to be overridden for a language."),V("overrideSettings.errorMessage","This setting does not support per-language configuration."),this._onDidSchemaChange.fire()}updatePropertyDefaultValue(e,i){const n=this.configurationDefaultsOverrides.get(e);let a=n==null?void 0:n.value,o=n==null?void 0:n.source;RD(a)&&(a=i.defaultDefaultValue,o=void 0),RD(a)&&(a=F3i(i.type)),i.default=a,i.defaultValueSource=o}}const WCt="\\[([^\\]]+)\\]",Vgt=new RegExp(WCt,"g"),k3i=`^(${WCt})+$`,KL=new RegExp(k3i);function m5e(r){const e=[];if(KL.test(r)){let i=Vgt.exec(r);for(;i!=null&&i.length;){const n=i[1].trim();n&&e.push(n),i=Vgt.exec(r)}}return jL(e)}function F3i(r){switch(Array.isArray(r)?r[0]:r){case"boolean":return!1;case"integer":case"number":return 0;case"string":return"";case"array":return[];case"object":return{};default:return null}}const rDe=new y3i;J1.add(WA.Configuration,rDe);function A3i(r,e){var i,n,a,o;return r.trim()?KL.test(r)?V("config.property.languageDefault","Cannot register '{0}'. This matches property pattern '\\\\[.*\\\\]$' for describing language specific editor settings. Use 'configurationDefaults' contribution.",r):rDe.getConfigurationProperties()[r]!==void 0?V("config.property.duplicate","Cannot register '{0}'. This property is already registered.",r):!((i=e.policy)===null||i===void 0)&&i.name&&rDe.getPolicyConfigurations().get((n=e.policy)===null||n===void 0?void 0:n.name)!==void 0?V("config.policy.duplicate","Cannot register '{0}'. The associated policy {1} is already registered with {2}.",r,(a=e.policy)===null||a===void 0?void 0:a.name,rDe.getPolicyConfigurations().get((o=e.policy)===null||o===void 0?void 0:o.name)):null:V("config.property.empty","Cannot register an empty property")}const S3i={ModesRegistry:"editor.modesRegistry"};class B3i{constructor(){this._onDidChangeLanguages=new Fi,this.onDidChangeLanguages=this._onDidChangeLanguages.event,this._languages=[]}registerLanguage(e){return this._languages.push(e),this._onDidChangeLanguages.fire(void 0),{dispose:()=>{for(let i=0,n=this._languages.length;i{const g=new Set;return{info:new L3i(this,h,g),closing:g}}),o=new Bgt(h=>{const g=new Set,_=new Set;return{info:new N3i(this,h,g,_),opening:g,openingColorized:_}});for(const[h,g]of n){const _=a.get(h),x=o.get(g);_.closing.add(x.info),x.opening.add(_.info)}const c=i.colorizedBracketPairs?Hgt(i.colorizedBracketPairs):n.filter(h=>!(h[0]==="<"&&h[1]===">"));for(const[h,g]of c){const _=a.get(h),x=o.get(g);_.closing.add(x.info),x.openingColorized.add(_.info),x.opening.add(_.info)}this._openingBrackets=new Map([...a.cachedValues].map(([h,g])=>[h,g.info])),this._closingBrackets=new Map([...o.cachedValues].map(([h,g])=>[h,g.info]))}get openingBrackets(){return[...this._openingBrackets.values()]}get closingBrackets(){return[...this._closingBrackets.values()]}getOpeningBracketInfo(e){return this._openingBrackets.get(e)}getClosingBracketInfo(e){return this._closingBrackets.get(e)}getBracketInfo(e){return this.getOpeningBracketInfo(e)||this.getClosingBracketInfo(e)}}function Hgt(r){return r.filter(([e,i])=>e!==""&&i!=="")}class GCt{constructor(e,i){this.config=e,this.bracketText=i}get languageId(){return this.config.languageId}}class L3i extends GCt{constructor(e,i,n){super(e,i),this.openedBrackets=n,this.isOpeningBracket=!0}}class N3i extends GCt{constructor(e,i,n,a){super(e,i),this.openingBrackets=n,this.openingColorizedBrackets=a,this.isOpeningBracket=!1}closes(e){return e.config!==this.config?!1:this.openingBrackets.has(e)}closesColorized(e){return e.config!==this.config?!1:this.openingColorizedBrackets.has(e)}getOpeningBrackets(){return[...this.openingBrackets]}}var P3i=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Kgt=function(r,e){return function(i,n){e(i,n,r)}};class AIe{constructor(e){this.languageId=e}affects(e){return this.languageId?this.languageId===e:!0}}const T1=k0("languageConfigurationService");let gVe=class extends ln{constructor(e,i){super(),this.configurationService=e,this.languageService=i,this._registry=this._register(new R3i),this.onDidChangeEmitter=this._register(new Fi),this.onDidChange=this.onDidChangeEmitter.event,this.configurations=new Map;const n=new Set(Object.values(EVe));this._register(this.configurationService.onDidChangeConfiguration(a=>{const o=a.change.keys.some(h=>n.has(h)),c=a.change.overrides.filter(([h,g])=>g.some(_=>n.has(_))).map(([h])=>h);if(o)this.configurations.clear(),this.onDidChangeEmitter.fire(new AIe(void 0));else for(const h of c)this.languageService.isRegisteredLanguageId(h)&&(this.configurations.delete(h),this.onDidChangeEmitter.fire(new AIe(h)))})),this._register(this._registry.onDidChange(a=>{this.configurations.delete(a.languageId),this.onDidChangeEmitter.fire(new AIe(a.languageId))}))}register(e,i,n){return this._registry.register(e,i,n)}getLanguageConfiguration(e){let i=this.configurations.get(e);return i||(i=M3i(e,this._registry,this.configurationService,this.languageService),this.configurations.set(e,i)),i}};gVe=P3i([Kgt(0,El),Kgt(1,l1)],gVe);function M3i(r,e,i,n){let a=e.getLanguageConfiguration(r);if(!a){if(!n.isRegisteredLanguageId(r))return new rJ(r,{});a=new rJ(r,{})}const o=z3i(a.languageId,i),c=$Ct([a.underlyingConfig,o]);return new rJ(a.languageId,c)}const EVe={brackets:"editor.language.brackets",colorizedBracketPairs:"editor.language.colorizedBracketPairs"};function z3i(r,e){const i=e.getValue(EVe.brackets,{overrideIdentifier:r}),n=e.getValue(EVe.colorizedBracketPairs,{overrideIdentifier:r});return{brackets:Wgt(i),colorizedBracketPairs:Wgt(n)}}function Wgt(r){if(Array.isArray(r))return r.map(e=>{if(!(!Array.isArray(e)||e.length!==2))return[e[0],e[1]]}).filter(e=>!!e)}function JCt(r,e,i){const n=r.getLineContent(e);let a=sd(n);return a.length>i-1&&(a=a.substring(0,i-1)),a}function uJ(r,e,i){r.tokenization.forceTokenization(e);const n=r.tokenization.getLineTokens(e),a=typeof i>"u"?r.getLineMaxColumn(e)-1:i-1;return H6e(n,a)}class I3i{constructor(e){this.languageId=e,this._resolved=null,this._entries=[],this._order=0,this._resolved=null}register(e,i){const n=new Ggt(e,i,++this._order);return this._entries.push(n),this._resolved=null,Ts(()=>{for(let a=0;ae.configuration)))}}function $Ct(r){let e={comments:void 0,brackets:void 0,wordPattern:void 0,indentationRules:void 0,onEnterRules:void 0,autoClosingPairs:void 0,surroundingPairs:void 0,autoCloseBefore:void 0,folding:void 0,colorizedBracketPairs:void 0,__electricCharacterSupport:void 0};for(const i of r)e={comments:i.comments||e.comments,brackets:i.brackets||e.brackets,wordPattern:i.wordPattern||e.wordPattern,indentationRules:i.indentationRules||e.indentationRules,onEnterRules:i.onEnterRules||e.onEnterRules,autoClosingPairs:i.autoClosingPairs||e.autoClosingPairs,surroundingPairs:i.surroundingPairs||e.surroundingPairs,autoCloseBefore:i.autoCloseBefore||e.autoCloseBefore,folding:i.folding||e.folding,colorizedBracketPairs:i.colorizedBracketPairs||e.colorizedBracketPairs,__electricCharacterSupport:i.__electricCharacterSupport||e.__electricCharacterSupport};return e}class Ggt{constructor(e,i,n){this.configuration=e,this.priority=i,this.order=n}static cmp(e,i){return e.priority===i.priority?e.order-i.order:e.priority-i.priority}}class Jgt{constructor(e){this.languageId=e}}class R3i extends ln{constructor(){super(),this._entries=new Map,this._onDidChange=this._register(new Fi),this.onDidChange=this._onDidChange.event,this._register(this.register(fx,{brackets:[["(",")"],["[","]"],["{","}"]],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:"<",close:">"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"`",close:"`"}],colorizedBracketPairs:[],folding:{offSide:!0}},0))}register(e,i,n=0){let a=this._entries.get(e);a||(a=new I3i(e),this._entries.set(e,a));const o=a.register(i,n);return this._onDidChange.fire(new Jgt(e)),Ts(()=>{o.dispose(),this._onDidChange.fire(new Jgt(e))})}getLanguageConfiguration(e){const i=this._entries.get(e);return(i==null?void 0:i.getResolvedConfiguration())||null}}class rJ{constructor(e,i){this.languageId=e,this.underlyingConfig=i,this._brackets=null,this._electricCharacter=null,this._onEnterSupport=this.underlyingConfig.brackets||this.underlyingConfig.indentationRules||this.underlyingConfig.onEnterRules?new AG(this.underlyingConfig):null,this.comments=rJ._handleComments(this.underlyingConfig),this.characterPair=new IJ(this.underlyingConfig),this.wordDefinition=this.underlyingConfig.wordPattern||qGe,this.indentationRules=this.underlyingConfig.indentationRules,this.underlyingConfig.indentationRules?this.indentRulesSupport=new E3i(this.underlyingConfig.indentationRules):this.indentRulesSupport=null,this.foldingRules=this.underlyingConfig.folding||{},this.bracketsNew=new T3i(e,this.underlyingConfig)}getWordDefinition(){return qvt(this.wordDefinition)}get brackets(){return!this._brackets&&this.underlyingConfig.brackets&&(this._brackets=new c3i(this.languageId,this.underlyingConfig.brackets)),this._brackets}get electricCharacter(){return this._electricCharacter||(this._electricCharacter=new g3i(this.brackets)),this._electricCharacter}onEnter(e,i,n,a){return this._onEnterSupport?this._onEnterSupport.onEnter(e,i,n,a):null}getAutoClosingPairs(){return new i3i(this.characterPair.getAutoClosingPairs())}getAutoCloseBeforeSet(e){return this.characterPair.getAutoCloseBeforeSet(e)}getSurroundingPairs(){return this.characterPair.getSurroundingPairs()}static _handleComments(e){const i=e.comments;if(!i)return null;const n={};if(i.lineComment&&(n.lineCommentToken=i.lineComment),i.blockComment){const[a,o]=i.blockComment;n.blockCommentStartToken=a,n.blockCommentEndToken=o}return n}}tl(T1,gVe,1);const OJ=new class{clone(){return this}equals(r){return this===r}};function vJe(r,e){return new rJe([new zue(0,"",r)],e)}function $6e(r,e){const i=new Uint32Array(2);return i[0]=0,i[1]=(r<<0|0|0|32768|2<<24)>>>0,new T6e(i,e===null?OJ:e)}const ch=k0("modelService"),UCt=Symbol("MicrotaskDelay");var z6=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})},lne=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],i;return e?e.call(r):(r=typeof __values=="function"?__values(r):r[Symbol.iterator](),i={},n("next"),n("throw"),n("return"),i[Symbol.asyncIterator]=function(){return this},i);function n(o){i[o]=r[o]&&function(c){return new Promise(function(h,g){c=r[o](c),a(h,g,c.done,c.value)})}}function a(o,c,h,g){Promise.resolve(g).then(function(_){o({value:_,done:h})},c)}};function _Ve(r){return!!r&&typeof r.then=="function"}function r4(r){const e=new Ap,i=r(e.token),n=new Promise((a,o)=>{const c=e.token.onCancellationRequested(()=>{c.dispose(),e.dispose(),o(new oN)});Promise.resolve(i).then(h=>{c.dispose(),e.dispose(),a(h)},h=>{c.dispose(),e.dispose(),o(h)})});return new class{cancel(){e.cancel()}then(a,o){return n.then(a,o)}catch(a){return this.then(void 0,a)}finally(a){return n.finally(a)}}}function U6e(r,e,i){return new Promise((n,a)=>{const o=e.onCancellationRequested(()=>{o.dispose(),n(i)});r.then(n,a).finally(()=>o.dispose())})}class O3i{constructor(){this.activePromise=null,this.queuedPromise=null,this.queuedPromiseFactory=null}queue(e){if(this.activePromise){if(this.queuedPromiseFactory=e,!this.queuedPromise){const i=()=>{this.queuedPromise=null;const n=this.queue(this.queuedPromiseFactory);return this.queuedPromiseFactory=null,n};this.queuedPromise=new Promise(n=>{this.activePromise.then(i,i).then(n)})}return new Promise((i,n)=>{this.queuedPromise.then(i,n)})}return this.activePromise=e(),new Promise((i,n)=>{this.activePromise.then(a=>{this.activePromise=null,i(a)},a=>{this.activePromise=null,n(a)})})}}const j3i=(r,e)=>{let i=!0;const n=setTimeout(()=>{i=!1,e()},r);return{isTriggered:()=>i,dispose:()=>{clearTimeout(n),i=!1}}},V3i=r=>{let e=!0;return queueMicrotask(()=>{e&&(e=!1,r())}),{isTriggered:()=>e,dispose:()=>{e=!1}}};class By{constructor(e){this.defaultDelay=e,this.deferred=null,this.completionPromise=null,this.doResolve=null,this.doReject=null,this.task=null}trigger(e,i=this.defaultDelay){this.task=e,this.cancelTimeout(),this.completionPromise||(this.completionPromise=new Promise((a,o)=>{this.doResolve=a,this.doReject=o}).then(()=>{if(this.completionPromise=null,this.doResolve=null,this.task){const a=this.task;return this.task=null,a()}}));const n=()=>{var a;this.deferred=null,(a=this.doResolve)===null||a===void 0||a.call(this,null)};return this.deferred=i===UCt?V3i(n):j3i(i,n),this.completionPromise}isTriggered(){var e;return!!(!((e=this.deferred)===null||e===void 0)&&e.isTriggered())}cancel(){var e;this.cancelTimeout(),this.completionPromise&&((e=this.doReject)===null||e===void 0||e.call(this,new oN),this.completionPromise=null)}cancelTimeout(){var e;(e=this.deferred)===null||e===void 0||e.dispose(),this.deferred=null}dispose(){this.cancel()}}class qCt{constructor(e){this.delayer=new By(e),this.throttler=new O3i}trigger(e,i){return this.delayer.trigger(()=>this.throttler.queue(e),i)}cancel(){this.delayer.cancel()}dispose(){this.delayer.dispose()}}function WL(r,e){return e?new Promise((i,n)=>{const a=setTimeout(()=>{o.dispose(),i()},r),o=e.onCancellationRequested(()=>{clearTimeout(a),o.dispose(),n(new oN)})}):r4(i=>WL(r,i))}function cR(r,e=0){const i=setTimeout(r,e);return Ts(()=>clearTimeout(i))}function ZCt(r,e=n=>!!n,i=null){let n=0;const a=r.length,o=()=>{if(n>=a)return Promise.resolve(i);const c=r[n++];return Promise.resolve(c()).then(g=>e(g)?Promise.resolve(g):o())};return o()}class uv{constructor(e,i){this._token=-1,typeof e=="function"&&typeof i=="number"&&this.setIfNotSet(e,i)}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearTimeout(this._token),this._token=-1)}cancelAndSet(e,i){this.cancel(),this._token=setTimeout(()=>{this._token=-1,e()},i)}setIfNotSet(e,i){this._token===-1&&(this._token=setTimeout(()=>{this._token=-1,e()},i))}}class yae{constructor(){this._token=-1}dispose(){this.cancel()}cancel(){this._token!==-1&&(clearInterval(this._token),this._token=-1)}cancelAndSet(e,i){this.cancel(),this._token=setInterval(()=>{e()},i)}}class Xc{constructor(e,i){this.timeoutToken=-1,this.runner=e,this.timeout=i,this.timeoutHandler=this.onTimeout.bind(this)}dispose(){this.cancel(),this.runner=null}cancel(){this.isScheduled()&&(clearTimeout(this.timeoutToken),this.timeoutToken=-1)}schedule(e=this.timeout){this.cancel(),this.timeoutToken=setTimeout(this.timeoutHandler,e)}get delay(){return this.timeout}set delay(e){this.timeout=e}isScheduled(){return this.timeoutToken!==-1}onTimeout(){this.timeoutToken=-1,this.runner&&this.doRun()}doRun(){var e;(e=this.runner)===null||e===void 0||e.call(this)}}let MS;(function(){typeof requestIdleCallback!="function"||typeof cancelIdleCallback!="function"?MS=r=>{Gvt(()=>{if(e)return;const i=Date.now()+15;r(Object.freeze({didTimeout:!0,timeRemaining(){return Math.max(0,i-Date.now())}}))});let e=!1;return{dispose(){e||(e=!0)}}}:MS=(r,e)=>{const i=requestIdleCallback(r,typeof e=="number"?{timeout:e}:void 0);let n=!1;return{dispose(){n||(n=!0,cancelIdleCallback(i))}}}})();class aDe{constructor(e){this._didRun=!1,this._executor=()=>{try{this._value=e()}catch(i){this._error=i}finally{this._didRun=!0}},this._handle=MS(()=>this._executor())}dispose(){this._handle.dispose()}get value(){if(this._didRun||(this._handle.dispose(),this._executor()),this._error)throw this._error;return this._value}get isInitialized(){return this._didRun}}class CJe{get isRejected(){return this.rejected}get isSettled(){return this.rejected||this.resolved}constructor(){this.rejected=!1,this.resolved=!1,this.p=new Promise((e,i)=>{this.completeCallback=e,this.errorCallback=i})}complete(e){return new Promise(i=>{this.completeCallback(e),this.resolved=!0,i()})}cancel(){new Promise(e=>{this.errorCallback(new oN),this.rejected=!0,e()})}}var DVe;(function(r){function e(n){return z6(this,void 0,void 0,function*(){let a;const o=yield Promise.all(n.map(c=>c.then(h=>h,h=>{a||(a=h)})));if(typeof a<"u")throw a;return o})}r.settled=e;function i(n){return new Promise((a,o)=>z6(this,void 0,void 0,function*(){try{yield n(a,o)}catch(c){o(c)}}))}r.withAsyncBody=i})(DVe||(DVe={}));class wf{static fromArray(e){return new wf(i=>{i.emitMany(e)})}static fromPromise(e){return new wf(i=>z6(this,void 0,void 0,function*(){i.emitMany(yield e)}))}static fromPromises(e){return new wf(i=>z6(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>z6(this,void 0,void 0,function*(){return i.emitOne(yield n)})))}))}static merge(e){return new wf(i=>z6(this,void 0,void 0,function*(){yield Promise.all(e.map(n=>{var a,o,c;return z6(this,void 0,void 0,function*(){var h,g,_,x;try{for(a=!0,o=lne(n);c=yield o.next(),h=c.done,!h;){x=c.value,a=!1;try{const y=x;i.emitOne(y)}finally{a=!0}}}catch(y){g={error:y}}finally{try{!a&&!h&&(_=o.return)&&(yield _.call(o))}finally{if(g)throw g.error}}})}))}))}constructor(e){this._state=0,this._results=[],this._error=null,this._onStateChanged=new Fi,queueMicrotask(()=>z6(this,void 0,void 0,function*(){const i={emitOne:n=>this.emitOne(n),emitMany:n=>this.emitMany(n),reject:n=>this.reject(n)};try{yield Promise.resolve(e(i)),this.resolve()}catch(n){this.reject(n)}finally{i.emitOne=void 0,i.emitMany=void 0,i.reject=void 0}}))}[Symbol.asyncIterator](){let e=0;return{next:()=>z6(this,void 0,void 0,function*(){do{if(this._state===2)throw this._error;if(ez6(this,void 0,void 0,function*(){var a,o,c,h;try{for(var g=!0,_=lne(e),x;x=yield _.next(),a=x.done,!a;){h=x.value,g=!1;try{const y=h;n.emitOne(i(y))}finally{g=!0}}}catch(y){o={error:y}}finally{try{!g&&!a&&(c=_.return)&&(yield c.call(_))}finally{if(o)throw o.error}}}))}map(e){return wf.map(this,e)}static filter(e,i){return new wf(n=>z6(this,void 0,void 0,function*(){var a,o,c,h;try{for(var g=!0,_=lne(e),x;x=yield _.next(),a=x.done,!a;){h=x.value,g=!1;try{const y=h;i(y)&&n.emitOne(y)}finally{g=!0}}}catch(y){o={error:y}}finally{try{!g&&!a&&(c=_.return)&&(yield c.call(_))}finally{if(o)throw o.error}}}))}filter(e){return wf.filter(this,e)}static coalesce(e){return wf.filter(e,i=>!!i)}coalesce(){return wf.coalesce(this)}static toPromise(e){var i,n,a,o,c,h,g;return z6(this,void 0,void 0,function*(){const _=[];try{for(i=!0,n=lne(e);a=yield n.next(),o=a.done,!o;){g=a.value,i=!1;try{const x=g;_.push(x)}finally{i=!0}}}catch(x){c={error:x}}finally{try{!i&&!o&&(h=n.return)&&(yield h.call(n))}finally{if(c)throw c.error}}return _})}toPromise(){return wf.toPromise(this)}emitOne(e){this._state===0&&(this._results.push(e),this._onStateChanged.fire())}emitMany(e){this._state===0&&(this._results=this._results.concat(e),this._onStateChanged.fire())}resolve(){this._state===0&&(this._state=1,this._onStateChanged.fire())}reject(e){this._state===0&&(this._state=2,this._error=e,this._onStateChanged.fire())}}wf.EMPTY=wf.fromArray([]);class H3i extends wf{constructor(e,i){super(i),this._source=e}cancel(){this._source.cancel()}}function K3i(r){const e=new Ap,i=r(e.token);return new H3i(e,n=>z6(this,void 0,void 0,function*(){var a,o,c,h;const g=e.token.onCancellationRequested(()=>{g.dispose(),e.dispose(),n.reject(new oN)});try{try{for(var _=!0,x=lne(i),y;y=yield x.next(),a=y.done,!a;){h=y.value,_=!1;try{const S=h;if(e.token.isCancellationRequested)return;n.emitOne(S)}finally{_=!0}}}catch(S){o={error:S}}finally{try{!_&&!a&&(c=x.return)&&(yield c.call(x))}finally{if(o)throw o.error}}g.dispose(),e.dispose()}catch(S){g.dispose(),e.dispose(),n.reject(S)}}))}const W3i="$initialize";let $gt=!1;function xVe(r){aN&&($gt||($gt=!0,console.warn("Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq")),console.warn(r.message))}class G3i{constructor(e,i,n,a){this.vsWorker=e,this.req=i,this.method=n,this.args=a,this.type=0}}class Ugt{constructor(e,i,n,a){this.vsWorker=e,this.seq=i,this.res=n,this.err=a,this.type=1}}class J3i{constructor(e,i,n,a){this.vsWorker=e,this.req=i,this.eventName=n,this.arg=a,this.type=2}}class $3i{constructor(e,i,n){this.vsWorker=e,this.req=i,this.event=n,this.type=3}}class U3i{constructor(e,i){this.vsWorker=e,this.req=i,this.type=4}}class q3i{constructor(e){this._workerId=-1,this._handler=e,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(e){this._workerId=e}sendMessage(e,i){const n=String(++this._lastSentReq);return new Promise((a,o)=>{this._pendingReplies[n]={resolve:a,reject:o},this._send(new G3i(this._workerId,n,e,i))})}listen(e,i){let n=null;const a=new Fi({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,a),this._send(new J3i(this._workerId,n,e,i))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new U3i(this._workerId,n)),n=null}});return a.event}handleMessage(e){!e||!e.vsWorker||this._workerId!==-1&&e.vsWorker!==this._workerId||this._handleMessage(e)}_handleMessage(e){switch(e.type){case 1:return this._handleReplyMessage(e);case 0:return this._handleRequestMessage(e);case 2:return this._handleSubscribeEventMessage(e);case 3:return this._handleEventMessage(e);case 4:return this._handleUnsubscribeEventMessage(e)}}_handleReplyMessage(e){if(!this._pendingReplies[e.seq]){console.warn("Got reply to unknown seq");return}const i=this._pendingReplies[e.seq];if(delete this._pendingReplies[e.seq],e.err){let n=e.err;e.err.$isError&&(n=new Error,n.name=e.err.name,n.message=e.err.message,n.stack=e.err.stack),i.reject(n);return}i.resolve(e.res)}_handleRequestMessage(e){const i=e.req;this._handler.handleMessage(e.method,e.args).then(a=>{this._send(new Ugt(this._workerId,i,a,void 0))},a=>{a.detail instanceof Error&&(a.detail=bgt(a.detail)),this._send(new Ugt(this._workerId,i,void 0,bgt(a)))})}_handleSubscribeEventMessage(e){const i=e.req,n=this._handler.handleEvent(e.eventName,e.arg)(a=>{this._send(new $3i(this._workerId,i,a))});this._pendingEvents.set(i,n)}_handleEventMessage(e){if(!this._pendingEmitters.has(e.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(e.req).fire(e.event)}_handleUnsubscribeEventMessage(e){if(!this._pendingEvents.has(e.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(e.req).dispose(),this._pendingEvents.delete(e.req)}_send(e){const i=[];if(e.type===0)for(let n=0;n{this._protocol.handleMessage(x)},x=>{a==null||a(x)})),this._protocol=new q3i({sendMessage:(x,y)=>{this._worker.postMessage(x,y)},handleMessage:(x,y)=>{if(typeof n[x]!="function")return Promise.reject(new Error("Missing method "+x+" on main thread host."));try{return Promise.resolve(n[x].apply(n,y))}catch(S){return Promise.reject(S)}},handleEvent:(x,y)=>{if(QCt(x)){const S=n[x].call(n,y);if(typeof S!="function")throw new Error(`Missing dynamic event ${x} on main thread host.`);return S}if(YCt(x)){const S=n[x];if(typeof S!="function")throw new Error(`Missing event ${x} on main thread host.`);return S}throw new Error(`Malformed event name ${x}`)}}),this._protocol.setWorkerId(this._worker.getId());let o=null;const c=globalThis.require;typeof c<"u"&&typeof c.getConfig=="function"?o=c.getConfig():typeof globalThis.requirejs<"u"&&(o=globalThis.requirejs.s.contexts._.config);const h=YGe(n);this._onModuleLoaded=this._protocol.sendMessage(W3i,[this._worker.getId(),JSON.parse(JSON.stringify(o)),i,h]);const g=(x,y)=>this._request(x,y),_=(x,y)=>this._protocol.listen(x,y);this._lazyProxy=new Promise((x,y)=>{a=y,this._onModuleLoaded.then(S=>{x(Y3i(S,g,_))},S=>{y(S),this._onError("Worker failed to load "+i,S)})})}getProxyObject(){return this._lazyProxy}_request(e,i){return new Promise((n,a)=>{this._onModuleLoaded.then(()=>{this._protocol.sendMessage(e,i).then(n,a)},a)})}_onError(e,i){console.error(e),console.info(i)}}function YCt(r){return r[0]==="o"&&r[1]==="n"&&qF(r.charCodeAt(2))}function QCt(r){return/^onDynamic/.test(r)&&qF(r.charCodeAt(9))}function Y3i(r,e,i){const n=c=>function(){const h=Array.prototype.slice.call(arguments,0);return e(c,h)},a=c=>function(h){return i(c,h)},o={};for(const c of r){if(QCt(c)){o[c]=a(c);continue}if(YCt(c)){o[c]=i(c,void 0);continue}o[c]=n(c)}return o}var SIe;const qgt=(SIe=window.trustedTypes)===null||SIe===void 0?void 0:SIe.createPolicy("defaultWorkerFactory",{createScriptURL:r=>r});function Q3i(r){const e=globalThis.MonacoEnvironment;if(e){if(typeof e.getWorker=="function")return e.getWorker("workerMain.js",r);if(typeof e.getWorkerUrl=="function"){const i=e.getWorkerUrl("workerMain.js",r);return new Worker(qgt?qgt.createScriptURL(i):i,{name:r})}}throw new Error("You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker")}function X3i(r){return typeof r.then=="function"}class eDi{constructor(e,i,n,a,o){this.id=i;const c=Q3i(n);X3i(c)?this.worker=c:this.worker=Promise.resolve(c),this.postMessage(e,[]),this.worker.then(h=>{h.onmessage=function(g){a(g.data)},h.onmessageerror=o,typeof h.addEventListener=="function"&&h.addEventListener("error",o)})}getId(){return this.id}postMessage(e,i){var n;(n=this.worker)===null||n===void 0||n.then(a=>a.postMessage(e,i))}dispose(){var e;(e=this.worker)===null||e===void 0||e.then(i=>i.terminate()),this.worker=null}}class q6e{constructor(e){this._label=e,this._webWorkerFailedBeforeError=!1}create(e,i,n){const a=++q6e.LAST_WORKER_ID;if(this._webWorkerFailedBeforeError)throw this._webWorkerFailedBeforeError;return new eDi(e,a,this._label||"anonymous"+a,i,o=>{xVe(o),this._webWorkerFailedBeforeError=o,n(o)})}}q6e.LAST_WORKER_ID=0;class PT{constructor(e,i,n,a){this.originalStart=e,this.originalLength=i,this.modifiedStart=n,this.modifiedLength=a}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}}function XCt(r){return Z6e(r,0)}function Z6e(r,e){switch(typeof r){case"object":return r===null?zS(349,e):Array.isArray(r)?iDi(r,e):nDi(r,e);case"string":return bJe(r,e);case"boolean":return tDi(r,e);case"number":return zS(r,e);case"undefined":return zS(937,e);default:return zS(617,e)}}function zS(r,e){return(e<<5)-e+r|0}function tDi(r,e){return zS(r?433:863,e)}function bJe(r,e){e=zS(149417,e);for(let i=0,n=r.length;iZ6e(n,i),e)}function nDi(r,e){return e=zS(181387,e),Object.keys(r).sort().reduce((i,n)=>(i=bJe(n,i),Z6e(r[n],i)),e)}function BIe(r,e,i=32){const n=i-e,a=~((1<>>n)>>>0}function Zgt(r,e=0,i=r.byteLength,n=0){for(let a=0;ai.toString(16).padStart(2,"0")).join(""):uDi((r>>>0).toString(16),e/4)}class Y6e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(e){const i=e.length;if(i===0)return;const n=this._buff;let a=this._buffLen,o=this._leftoverHighSurrogate,c,h;for(o!==0?(c=o,h=-1,o=0):(c=e.charCodeAt(0),h=0);;){let g=c;if(i4(c))if(h+1>>6,e[i++]=128|(n&63)>>>0):n<65536?(e[i++]=224|(n&61440)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0):(e[i++]=240|(n&1835008)>>>18,e[i++]=128|(n&258048)>>>12,e[i++]=128|(n&4032)>>>6,e[i++]=128|(n&63)>>>0),i>=64&&(this._step(),i-=64,this._totalLen+=64,e[0]=e[64],e[1]=e[65],e[2]=e[66]),i}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),Pie(this._h0)+Pie(this._h1)+Pie(this._h2)+Pie(this._h3)+Pie(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Zgt(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Zgt(this._buff));const e=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(e/4294967296),!1),this._buffDV.setUint32(60,e%4294967296,!1),this._step()}_step(){const e=Y6e._bigBlock32,i=this._buffDV;for(let y=0;y<64;y+=4)e.setUint32(y,i.getUint32(y,!1),!1);for(let y=64;y<320;y+=4)e.setUint32(y,BIe(e.getUint32(y-12,!1)^e.getUint32(y-32,!1)^e.getUint32(y-56,!1)^e.getUint32(y-64,!1),1),!1);let n=this._h0,a=this._h1,o=this._h2,c=this._h3,h=this._h4,g,_,x;for(let y=0;y<80;y++)y<20?(g=a&o|~a&c,_=1518500249):y<40?(g=a^o^c,_=1859775393):y<60?(g=a&o|a&c|o&c,_=2400959708):(g=a^o^c,_=3395469782),x=BIe(n,5)+g+h+_+e.getUint32(y*4,!1)&4294967295,h=c,c=o,o=BIe(a,30),a=n,n=x;this._h0=this._h0+n&4294967295,this._h1=this._h1+a&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+c&4294967295,this._h4=this._h4+h&4294967295}}Y6e._bigBlock32=new DataView(new ArrayBuffer(320));class Ygt{constructor(e){this.source=e}getElements(){const e=this.source,i=new Int32Array(e.length);for(let n=0,a=e.length;n0||this.m_modifiedCount>0)&&this.m_changes.push(new PT(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_originalCount++}AddModifiedElement(e,i){this.m_originalStart=Math.min(this.m_originalStart,e),this.m_modifiedStart=Math.min(this.m_modifiedStart,i),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}}class iA{constructor(e,i,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=e,this._modifiedSequence=i;const[a,o,c]=iA._getElements(e),[h,g,_]=iA._getElements(i);this._hasStrings=c&&_,this._originalStringElements=a,this._originalElementsOrHash=o,this._modifiedStringElements=h,this._modifiedElementsOrHash=g,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(e){return e.length>0&&typeof e[0]=="string"}static _getElements(e){const i=e.getElements();if(iA._isStringArray(i)){const n=new Int32Array(i.length);for(let a=0,o=i.length;a=e&&a>=n&&this.ElementsAreEqual(i,a);)i--,a--;if(e>i||n>a){let y;return n<=a?(JW.Assert(e===i+1,"originalStart should only be one more than originalEnd"),y=[new PT(e,0,n,a-n+1)]):e<=i?(JW.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),y=[new PT(e,i-e+1,n,0)]):(JW.Assert(e===i+1,"originalStart should only be one more than originalEnd"),JW.Assert(n===a+1,"modifiedStart should only be one more than modifiedEnd"),y=[]),y}const c=[0],h=[0],g=this.ComputeRecursionPoint(e,i,n,a,c,h,o),_=c[0],x=h[0];if(g!==null)return g;if(!o[0]){const y=this.ComputeDiffRecursive(e,_,n,x,o);let S=[];return o[0]?S=[new PT(_+1,i-(_+1)+1,x+1,a-(x+1)+1)]:S=this.ComputeDiffRecursive(_+1,i,x+1,a,o),this.ConcatenateChanges(y,S)}return[new PT(e,i-e+1,n,a-n+1)]}WALKTRACE(e,i,n,a,o,c,h,g,_,x,y,S,L,O,G,ie,ue,re){let _e=null,ye=null,Le=new Qgt,lt=i,Ue=n,Ze=L[0]-ie[0]-a,rt=-1073741824,kt=this.m_forwardHistory.length-1;do{const Zt=Ze+e;Zt===lt||Zt=0&&(_=this.m_forwardHistory[kt],e=_[0],lt=1,Ue=_.length-1)}while(--kt>=-1);if(_e=Le.getReverseChanges(),re[0]){let Zt=L[0]+1,jt=ie[0]+1;if(_e!==null&&_e.length>0){const ui=_e[_e.length-1];Zt=Math.max(Zt,ui.getOriginalEnd()),jt=Math.max(jt,ui.getModifiedEnd())}ye=[new PT(Zt,S-Zt+1,jt,G-jt+1)]}else{Le=new Qgt,lt=c,Ue=h,Ze=L[0]-ie[0]-g,rt=1073741824,kt=ue?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{const Zt=Ze+o;Zt===lt||Zt=x[Zt+1]?(y=x[Zt+1]-1,O=y-Ze-g,y>rt&&Le.MarkNextChange(),rt=y+1,Le.AddOriginalElement(y+1,O+1),Ze=Zt+1-o):(y=x[Zt-1],O=y-Ze-g,y>rt&&Le.MarkNextChange(),rt=y,Le.AddModifiedElement(y+1,O+1),Ze=Zt-1-o),kt>=0&&(x=this.m_reverseHistory[kt],o=x[0],lt=1,Ue=x.length-1)}while(--kt>=-1);ye=Le.getChanges()}return this.ConcatenateChanges(_e,ye)}ComputeRecursionPoint(e,i,n,a,o,c,h){let g=0,_=0,x=0,y=0,S=0,L=0;e--,n--,o[0]=0,c[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];const O=i-e+(a-n),G=O+1,ie=new Int32Array(G),ue=new Int32Array(G),re=a-n,_e=i-e,ye=e-n,Le=i-a,Ue=(_e-re)%2===0;ie[re]=e,ue[_e]=i,h[0]=!1;for(let Ze=1;Ze<=O/2+1;Ze++){let rt=0,kt=0;x=this.ClipDiagonalBound(re-Ze,Ze,re,G),y=this.ClipDiagonalBound(re+Ze,Ze,re,G);for(let jt=x;jt<=y;jt+=2){jt===x||jtrt+kt&&(rt=g,kt=_),!Ue&&Math.abs(jt-_e)<=Ze-1&&g>=ue[jt])return o[0]=g,c[0]=_,ui<=ue[jt]&&1447>0&&Ze<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,Ue,h):null}const Zt=(rt-e+(kt-n)-Ze)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(rt,Zt))return h[0]=!0,o[0]=rt,c[0]=kt,Zt>0&&1447>0&&Ze<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,Ue,h):(e++,n++,[new PT(e,i-e+1,n,a-n+1)]);S=this.ClipDiagonalBound(_e-Ze,Ze,_e,G),L=this.ClipDiagonalBound(_e+Ze,Ze,_e,G);for(let jt=S;jt<=L;jt+=2){jt===S||jt=ue[jt+1]?g=ue[jt+1]-1:g=ue[jt-1],_=g-(jt-_e)-Le;const ui=g;for(;g>e&&_>n&&this.ElementsAreEqual(g,_);)g--,_--;if(ue[jt]=g,Ue&&Math.abs(jt-re)<=Ze&&g<=ie[jt])return o[0]=g,c[0]=_,ui>=ie[jt]&&1447>0&&Ze<=1448?this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,Ue,h):null}if(Ze<=1447){let jt=new Int32Array(y-x+2);jt[0]=re-x+1,$W.Copy2(ie,x,jt,1,y-x+1),this.m_forwardHistory.push(jt),jt=new Int32Array(L-S+2),jt[0]=_e-S+1,$W.Copy2(ue,S,jt,1,L-S+1),this.m_reverseHistory.push(jt)}}return this.WALKTRACE(re,x,y,ye,_e,S,L,Le,ie,ue,g,i,o,_,a,c,Ue,h)}PrettifyChanges(e){for(let i=0;i0,h=n.modifiedLength>0;for(;n.originalStart+n.originalLength=0;i--){const n=e[i];let a=0,o=0;if(i>0){const y=e[i-1];a=y.originalStart+y.originalLength,o=y.modifiedStart+y.modifiedLength}const c=n.originalLength>0,h=n.modifiedLength>0;let g=0,_=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let y=1;;y++){const S=n.originalStart-y,L=n.modifiedStart-y;if(S_&&(_=G,g=y)}n.originalStart-=g,n.modifiedStart-=g;const x=[null];if(i>0&&this.ChangesOverlap(e[i-1],e[i],x)){e[i-1]=x[0],e.splice(i,1),i++;continue}}if(this._hasStrings)for(let i=1,n=e.length;i0&&L>g&&(g=L,_=y,x=S)}return g>0?[_,x]:null}_contiguousSequenceScore(e,i,n){let a=0;for(let o=0;o=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[e])}_OriginalRegionIsBoundary(e,i){if(this._OriginalIsBoundary(e)||this._OriginalIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(e){return e<=0||e>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[e])}_ModifiedRegionIsBoundary(e,i){if(this._ModifiedIsBoundary(e)||this._ModifiedIsBoundary(e-1))return!0;if(i>0){const n=e+i;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(e,i,n,a){const o=this._OriginalRegionIsBoundary(e,i)?1:0,c=this._ModifiedRegionIsBoundary(n,a)?1:0;return o+c}ConcatenateChanges(e,i){const n=[];if(e.length===0||i.length===0)return i.length>0?i:e;if(this.ChangesOverlap(e[e.length-1],i[0],n)){const a=new Array(e.length+i.length-1);return $W.Copy(e,0,a,0,e.length-1),a[e.length-1]=n[0],$W.Copy(i,1,a,e.length,i.length-1),a}else{const a=new Array(e.length+i.length);return $W.Copy(e,0,a,0,e.length),$W.Copy(i,0,a,e.length,i.length),a}}ChangesOverlap(e,i,n){if(JW.Assert(e.originalStart<=i.originalStart,"Left change is not less than or equal to right change"),JW.Assert(e.modifiedStart<=i.modifiedStart,"Left change is not less than or equal to right change"),e.originalStart+e.originalLength>=i.originalStart||e.modifiedStart+e.modifiedLength>=i.modifiedStart){const a=e.originalStart;let o=e.originalLength;const c=e.modifiedStart;let h=e.modifiedLength;return e.originalStart+e.originalLength>=i.originalStart&&(o=i.originalStart+i.originalLength-e.originalStart),e.modifiedStart+e.modifiedLength>=i.modifiedStart&&(h=i.modifiedStart+i.modifiedLength-e.modifiedStart),n[0]=new PT(a,o,c,h),!0}else return n[0]=null,!1}ClipDiagonalBound(e,i,n,a){if(e>=0&&e255?255:r|0}function UW(r){return r<0?0:r>4294967295?4294967295:r|0}class aDi{constructor(e){this.values=e,this.prefixSum=new Uint32Array(e.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(e,i){e=UW(e);const n=this.values,a=this.prefixSum,o=i.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e),e+o),this.values.set(i,e),e-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(e,i){return e=UW(e),i=UW(i),this.values[e]===i?!1:(this.values[e]=i,e-1=n.length)return!1;const o=n.length-e;return i>=o&&(i=o),i===0?!1:(this.values=new Uint32Array(n.length-i),this.values.set(n.subarray(0,e),0),this.values.set(n.subarray(e+i),e),this.prefixSum=new Uint32Array(this.values.length),e-1=0&&this.prefixSum.set(a.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(e){return e<0?0:(e=UW(e),this._getPrefixSum(e))}_getPrefixSum(e){if(e<=this.prefixSumValidIndex[0])return this.prefixSum[e];let i=this.prefixSumValidIndex[0]+1;i===0&&(this.prefixSum[0]=this.values[0],i++),e>=this.values.length&&(e=this.values.length-1);for(let n=i;n<=e;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],e),this.prefixSum[e]}getIndexOf(e){e=Math.floor(e),this.getTotalSum();let i=0,n=this.values.length-1,a=0,o=0,c=0;for(;i<=n;)if(a=i+(n-i)/2|0,o=this.prefixSum[a],c=o-this.values[a],e=o)i=a+1;else break;return new e2t(a,e-c)}}class oDi{constructor(e){this._values=e,this._isValid=!1,this._validEndIndex=-1,this._prefixSum=[],this._indexBySum=[]}getTotalSum(){return this._ensureValid(),this._indexBySum.length}getPrefixSum(e){return this._ensureValid(),e===0?0:this._prefixSum[e-1]}getIndexOf(e){this._ensureValid();const i=this._indexBySum[e],n=i>0?this._prefixSum[i-1]:0;return new e2t(i,e-n)}removeValues(e,i){this._values.splice(e,i),this._invalidate(e)}insertValues(e,i){this._values=B6e(this._values,e,i),this._invalidate(e)}_invalidate(e){this._isValid=!1,this._validEndIndex=Math.min(this._validEndIndex,e-1)}_ensureValid(){if(!this._isValid){for(let e=this._validEndIndex+1,i=this._values.length;e0?this._prefixSum[e-1]:0;this._prefixSum[e]=a+n;for(let o=0;o=0&&e<256?this._asciiMap[e]=n:this._map.set(e,n)}get(e){return e>=0&&e<256?this._asciiMap[e]:this._map.get(e)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}}class g5e{constructor(){this._actual=new B$(0)}add(e){this._actual.set(e,1)}has(e){return this._actual.get(e)===1}clear(){return this._actual.clear()}}class lDi{constructor(e,i,n){const a=new Uint8Array(e*i);for(let o=0,c=e*i;oi&&(i=g),h>n&&(n=h),_>n&&(n=_)}i++,n++;const a=new lDi(n,i,0);for(let o=0,c=e.length;o=this._maxCharCode?0:this._states.get(e,i)}}let wIe=null;function dDi(){return wIe===null&&(wIe=new cDi([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),wIe}let Mie=null;function hDi(){if(Mie===null){Mie=new B$(0);const r=` <>'"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…`;for(let i=0;ia);if(a>0){const h=i.charCodeAt(a-1),g=i.charCodeAt(c);(h===40&&g===41||h===91&&g===93||h===123&&g===125)&&c--}return{range:{startLineNumber:n,startColumn:a+1,endLineNumber:n,endColumn:c+2},url:i.substring(a,c+1)}}static computeLinks(e,i=dDi()){const n=hDi(),a=[];for(let o=1,c=e.getLineCount();o<=c;o++){const h=e.getLineContent(o),g=h.length;let _=0,x=0,y=0,S=1,L=!1,O=!1,G=!1,ie=!1;for(;_=0?(a+=n?1:-1,a<0?a=e.length-1:a%=e.length,e[a]):null}}vVe.INSTANCE=new vVe;class mDi extends B${constructor(e){super(0);for(let i=0,n=e.length;i(e.hasOwnProperty(i)||(e[i]=r(i)),e[i])}const Q6=pDi(r=>new mDi(r)),gDi=999;class hI{constructor(e,i,n,a){this.searchString=e,this.isRegex=i,this.matchCase=n,this.wordSeparators=a}parseSearchRequest(){if(this.searchString==="")return null;let e;this.isRegex?e=EDi(this.searchString):e=this.searchString.indexOf(` -`)>=0;let i=null;try{i=kCt(this.searchString,this.isRegex,{matchCase:this.matchCase,wholeWord:!1,multiline:e,global:!0,unicode:!0})}catch{return null}if(!i)return null;let n=!this.isRegex&&!e;return n&&this.searchString.toLowerCase()!==this.searchString.toUpperCase()&&(n=this.matchCase),new X_i(i,this.wordSeparators?Q6(this.wordSeparators):null,n?this.searchString:null)}}function EDi(r){if(!r||r.length===0)return!1;for(let e=0,i=r.length;e=i)break;const a=r.charCodeAt(e);if(a===110||a===114||a===87)return!0}}return!1}function vI(r,e,i){if(!i)return new Hue(r,null);const n=[];for(let a=0,o=e.length;a>0);i[o]>=e?a=o-1:i[o+1]>=e?(n=o,a=o):n=o+1}return n+1}}class w_e{static findMatches(e,i,n,a,o){const c=i.parseSearchRequest();return c?c.regex.multiline?this._doFindMatchesMultiline(e,n,new SG(c.wordSeparators,c.regex),a,o):this._doFindMatchesLineByLine(e,n,c,a,o):[]}static _getMultilineMatchRange(e,i,n,a,o,c){let h,g=0;a?(g=a.findLineFeedCountBeforeOffset(o),h=i+o+g):h=i+o;let _;if(a){const L=a.findLineFeedCountBeforeOffset(o+c.length)-g;_=h+c.length+L}else _=h+c.length;const x=e.getPositionAt(h),y=e.getPositionAt(_);return new ot(x.lineNumber,x.column,y.lineNumber,y.column)}static _doFindMatchesMultiline(e,i,n,a,o){const c=e.getOffsetAt(i.getStartPosition()),h=e.getValueInRange(i,1),g=e.getEOL()===`\r -`?new Xgt(h):null,_=[];let x=0,y;for(n.reset(0);y=n.next(h);)if(_[x++]=vI(this._getMultilineMatchRange(e,c,h,g,y.index,y[0]),y,a),x>=o)return _;return _}static _doFindMatchesLineByLine(e,i,n,a,o){const c=[];let h=0;if(i.startLineNumber===i.endLineNumber){const _=e.getLineContent(i.startLineNumber).substring(i.startColumn-1,i.endColumn-1);return h=this._findMatchesInLine(n,_,i.startLineNumber,i.startColumn-1,h,c,a,o),c}const g=e.getLineContent(i.startLineNumber).substring(i.startColumn-1);h=this._findMatchesInLine(n,g,i.startLineNumber,i.startColumn-1,h,c,a,o);for(let _=i.startLineNumber+1;_=g))return o;return o}const x=new SG(e.wordSeparators,e.regex);let y;x.reset(0);do if(y=x.next(i),y&&(c[o++]=vI(new ot(n,y.index+1+a,n,y.index+1+y[0].length+a),y,h),o>=g))return o;while(y);return o}static findNextMatch(e,i,n,a){const o=i.parseSearchRequest();if(!o)return null;const c=new SG(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindNextMatchMultiline(e,n,c,a):this._doFindNextMatchLineByLine(e,n,c,a)}static _doFindNextMatchMultiline(e,i,n,a){const o=new Vi(i.lineNumber,1),c=e.getOffsetAt(o),h=e.getLineCount(),g=e.getValueInRange(new ot(o.lineNumber,o.column,h,e.getLineMaxColumn(h)),1),_=e.getEOL()===`\r -`?new Xgt(g):null;n.reset(i.column-1);const x=n.next(g);return x?vI(this._getMultilineMatchRange(e,c,g,_,x.index,x[0]),x,a):i.lineNumber!==1||i.column!==1?this._doFindNextMatchMultiline(e,new Vi(1,1),n,a):null}static _doFindNextMatchLineByLine(e,i,n,a){const o=e.getLineCount(),c=i.lineNumber,h=e.getLineContent(c),g=this._findFirstMatchInLine(n,h,c,i.column,a);if(g)return g;for(let _=1;_<=o;_++){const x=(c+_-1)%o,y=e.getLineContent(x+1),S=this._findFirstMatchInLine(n,y,x+1,1,a);if(S)return S}return null}static _findFirstMatchInLine(e,i,n,a,o){e.reset(a-1);const c=e.next(i);return c?vI(new ot(n,c.index+1,n,c.index+1+c[0].length),c,o):null}static findPreviousMatch(e,i,n,a){const o=i.parseSearchRequest();if(!o)return null;const c=new SG(o.wordSeparators,o.regex);return o.regex.multiline?this._doFindPreviousMatchMultiline(e,n,c,a):this._doFindPreviousMatchLineByLine(e,n,c,a)}static _doFindPreviousMatchMultiline(e,i,n,a){const o=this._doFindMatchesMultiline(e,new ot(1,1,i.lineNumber,i.column),n,a,10*gDi);if(o.length>0)return o[o.length-1];const c=e.getLineCount();return i.lineNumber!==c||i.column!==e.getLineMaxColumn(c)?this._doFindPreviousMatchMultiline(e,new Vi(c,e.getLineMaxColumn(c)),n,a):null}static _doFindPreviousMatchLineByLine(e,i,n,a){const o=e.getLineCount(),c=i.lineNumber,h=e.getLineContent(c).substring(0,i.column-1),g=this._findLastMatchInLine(n,h,c,a);if(g)return g;for(let _=1;_<=o;_++){const x=(o+c-_-1)%o,y=e.getLineContent(x+1),S=this._findLastMatchInLine(n,y,x+1,a);if(S)return S}return null}static _findLastMatchInLine(e,i,n,a){let o=null,c;for(e.reset(0);c=e.next(i);)o=vI(new ot(n,c.index+1,n,c.index+1+c[0].length),c,a);return o}}function _Di(r,e,i,n,a){if(n===0)return!0;const o=e.charCodeAt(n-1);if(r.get(o)!==0||o===13||o===10)return!0;if(a>0){const c=e.charCodeAt(n);if(r.get(c)!==0)return!0}return!1}function DDi(r,e,i,n,a){if(n+a===i)return!0;const o=e.charCodeAt(n+a);if(r.get(o)!==0||o===13||o===10)return!0;if(a>0){const c=e.charCodeAt(n+a-1);if(r.get(c)!==0)return!0}return!1}function yJe(r,e,i,n,a){return _Di(r,e,i,n,a)&&DDi(r,e,i,n,a)}class SG{constructor(e,i){this._wordSeparators=e,this._searchRegex=i,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(e){this._searchRegex.lastIndex=e,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(e){const i=e.length;let n;do{if(this._prevMatchStartIndex+this._prevMatchLength===i||(n=this._searchRegex.exec(e),!n))return null;const a=n.index,o=n[0].length;if(a===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){d5e(e,i,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=a,this._prevMatchLength=o,!this._wordSeparators||yJe(this._wordSeparators,e,i,a,o))return n}while(n);return null}}class kJe{static computeUnicodeHighlights(e,i,n){const a=n?n.startLineNumber:1,o=n?n.endLineNumber:e.getLineCount(),c=new eEt(i),h=c.getCandidateCodePoints();let g;h==="allNonBasicAscii"?g=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):g=new RegExp(`${xDi(Array.from(h))}`,"g");const _=new SG(null,g),x=[];let y=!1,S,L=0,O=0,G=0;e:for(let ie=a,ue=o;ie<=ue;ie++){const re=e.getLineContent(ie),_e=re.length;_.reset(0);do if(S=_.next(re),S){let ye=S.index,Le=S.index+S[0].length;if(ye>0){const rt=re.charCodeAt(ye-1);i4(rt)&&ye--}if(Le+1<_e){const rt=re.charCodeAt(Le-1);i4(rt)&&Le++}const lt=re.substring(ye,Le);let Ue=Pue(ye+1,qGe,re,0);Ue&&Ue.endColumn<=ye+1&&(Ue=null);const Ze=c.shouldHighlightNonBasicASCII(lt,Ue?Ue.word:null);if(Ze!==0){if(Ze===3?L++:Ze===2?O++:Ze===1?G++:L6e(),x.length>=1e3){y=!0;break e}x.push(new ot(ie,ye+1,ie,Le+1))}}while(S)}return{ranges:x,hasMore:y,ambiguousCharacterCount:L,invisibleCharacterCount:O,nonBasicAsciiCharacterCount:G}}static computeUnicodeHighlightReason(e,i){const n=new eEt(i);switch(n.shouldHighlightNonBasicASCII(e,null)){case 0:return null;case 2:return{kind:1};case 3:{const o=e.codePointAt(0),c=n.ambiguousCharacters.getPrimaryConfusable(o),h=t2.getLocales().filter(g=>!t2.getInstance(new Set([...i.allowedLocales,g])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(c),notAmbiguousInLocales:h}}case 1:return{kind:2}}}}function xDi(r,e){return`[${px(r.map(n=>String.fromCodePoint(n)).join(""))}]`}class eEt{constructor(e){this.options=e,this.allowedCodePoints=new Set(e.allowedCodePoints),this.ambiguousCharacters=t2.getInstance(new Set(e.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";const e=new Set;if(this.options.invisibleCharacters)for(const i of vA.codePoints)tEt(String.fromCodePoint(i))||e.add(i);if(this.options.ambiguousCharacters)for(const i of this.ambiguousCharacters.getConfusableCodePoints())e.add(i);for(const i of this.allowedCodePoints)e.delete(i);return e}shouldHighlightNonBasicASCII(e,i){const n=e.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let a=!1,o=!1;if(i)for(const c of i){const h=c.codePointAt(0),g=xae(c);a=a||g,!g&&!this.ambiguousCharacters.isAmbiguous(h)&&!vA.isInvisibleCharacter(h)&&(o=!0)}return!a&&o?0:this.options.invisibleCharacters&&!tEt(e)&&vA.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}}function tEt(r){return r===" "||r===` -`||r===" "}class t2t{constructor(e,i){this.changes=e,this.hitTimeout=i}}class jJ{constructor(e,i,n){this.originalRange=e,this.modifiedRange=i,this.innerChanges=n}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}class Q6e{constructor(e,i){this.originalRange=e,this.modifiedRange=i}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}}let G6=class cne{static joinMany(e){if(e.length===0)return[];let i=e[0];for(let n=1;n=h.startLineNumber?c=new cne(c.startLineNumber,Math.max(c.endLineNumberExclusive,h.endLineNumberExclusive)):(n.push(c),c=h)}return c!==null&&n.push(c),n}constructor(e,i){if(e>i)throw new KA(`startLineNumber ${e} cannot be after endLineNumberExclusive ${i}`);this.startLineNumber=e,this.endLineNumberExclusive=i}contains(e){return this.startLineNumber<=e&&enew Q6e(new ot(L.originalStartLineNumber,L.originalStartColumn,L.originalEndLineNumber,L.originalEndColumn),new ot(L.modifiedStartLineNumber,L.modifiedStartColumn,L.modifiedEndLineNumber,L.modifiedEndColumn))));g&&(g.modifiedRange.endLineNumberExclusive===S.modifiedRange.startLineNumber||g.originalRange.endLineNumberExclusive===S.originalRange.startLineNumber)&&(S=new jJ(g.originalRange.join(S.originalRange),g.modifiedRange.join(S.modifiedRange),g.innerChanges&&S.innerChanges?g.innerChanges.concat(S.innerChanges):void 0),h.pop()),h.push(S),g=S}return _Je(()=>NCt(h,(_,x)=>x.originalRange.startLineNumber-_.originalRange.endLineNumberExclusive===x.modifiedRange.startLineNumber-_.modifiedRange.endLineNumberExclusive&&_.originalRange.endLineNumberExclusive(e===10?"\\n":String.fromCharCode(e))+`-(${this._lineNumbers[i]},${this._columns[i]})`).join(", ")+"]"}_assertIndex(e,i){if(e<0||e>=i.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(e){return e>0&&e===this._lineNumbers.length?this.getEndLineNumber(e-1):(this._assertIndex(e,this._lineNumbers),this._lineNumbers[e])}getEndLineNumber(e){return e===-1?this.getStartLineNumber(e+1):(this._assertIndex(e,this._lineNumbers),this._charCodes[e]===10?this._lineNumbers[e]+1:this._lineNumbers[e])}getStartColumn(e){return e>0&&e===this._columns.length?this.getEndColumn(e-1):(this._assertIndex(e,this._columns),this._columns[e])}getEndColumn(e){return e===-1?this.getStartColumn(e+1):(this._assertIndex(e,this._columns),this._charCodes[e]===10?1:this._columns[e]+1)}}class aJ{constructor(e,i,n,a,o,c,h,g){this.originalStartLineNumber=e,this.originalStartColumn=i,this.originalEndLineNumber=n,this.originalEndColumn=a,this.modifiedStartLineNumber=o,this.modifiedStartColumn=c,this.modifiedEndLineNumber=h,this.modifiedEndColumn=g}static createFromDiffChange(e,i,n){const a=i.getStartLineNumber(e.originalStart),o=i.getStartColumn(e.originalStart),c=i.getEndLineNumber(e.originalStart+e.originalLength-1),h=i.getEndColumn(e.originalStart+e.originalLength-1),g=n.getStartLineNumber(e.modifiedStart),_=n.getStartColumn(e.modifiedStart),x=n.getEndLineNumber(e.modifiedStart+e.modifiedLength-1),y=n.getEndColumn(e.modifiedStart+e.modifiedLength-1);return new aJ(a,o,c,h,g,_,x,y)}}function yDi(r){if(r.length<=1)return r;const e=[r[0]];let i=e[0];for(let n=1,a=r.length;n0&&i.originalLength<20&&i.modifiedLength>0&&i.modifiedLength<20&&o()){const L=n.createCharSequence(e,i.originalStart,i.originalStart+i.originalLength-1),O=a.createCharSequence(e,i.modifiedStart,i.modifiedStart+i.modifiedLength-1);if(L.getElements().length>0&&O.getElements().length>0){let G=i2t(L,O,o,!0).changes;h&&(G=yDi(G)),S=[];for(let ie=0,ue=G.length;ie1&&G>1;){const ie=S.charCodeAt(O-2),ue=L.charCodeAt(G-2);if(ie!==ue)break;O--,G--}(O>1||G>1)&&this._pushTrimWhitespaceCharChange(a,o+1,1,O,c+1,1,G)}{let O=bVe(S,1),G=bVe(L,1);const ie=S.length+1,ue=L.length+1;for(;O!0;const e=Date.now();return()=>Date.now()-ei))return new Lh(e,i)}constructor(e,i){if(this.start=e,this.endExclusive=i,e>i)throw new KA(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(e){return new Lh(this.start+e,this.endExclusive+e)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(e){return this.start===e.start&&this.endExclusive===e.endExclusive}containsRange(e){return this.start<=e.start&&e.endExclusive<=this.endExclusive}join(e){return new Lh(Math.min(this.start,e.start),Math.max(this.endExclusive,e.endExclusive))}intersect(e){const i=Math.max(this.start,e.start),n=Math.min(this.endExclusive,e.endExclusive);if(i<=n)return new Lh(i,n)}}class ZS{static trivial(e,i){return new ZS([new i2(new Lh(0,e.length),new Lh(0,i.length))],!1)}static trivialTimedOut(e,i){return new ZS([new i2(new Lh(0,e.length),new Lh(0,i.length))],!0)}constructor(e,i){this.diffs=e,this.hitTimeout=i}}class i2{constructor(e,i){this.seq1Range=e,this.seq2Range=i}reverse(){return new i2(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(e){return new i2(this.seq1Range.join(e.seq1Range),this.seq2Range.join(e.seq2Range))}}class Kue{isValid(){return!0}}Kue.instance=new Kue;class FDi{constructor(e){if(this.timeout=e,this.startTime=Date.now(),this.valid=!0,e<=0)throw new KA("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime0&&G>0&&c.get(O-1,G-1)===3&&(re+=h.get(O-1,G-1)),re+=a?a(O,G):1):re=-1;const _e=Math.max(ie,ue,re);if(_e===re){const ye=O>0&&G>0?h.get(O-1,G-1):0;h.set(O,G,ye+1),c.set(O,G,3)}else _e===ie?(h.set(O,G,0),c.set(O,G,1)):_e===ue&&(h.set(O,G,0),c.set(O,G,2));o.set(O,G,_e)}const g=[];let _=e.length,x=i.length;function y(O,G){(O+1!==_||G+1!==x)&&g.push(new i2(new Lh(O+1,_),new Lh(G+1,x))),_=O,x=G}let S=e.length-1,L=i.length-1;for(;S>=0&&L>=0;)c.get(S,L)===3?(y(S,L),S--,L--):c.get(S,L)===1?S--:L--;return y(-1,-1),g.reverse(),new ZS(g,!1)}}function uEt(r,e,i){let n=i;return n=BDi(r,e,n),n=wDi(r,e,n),n}function SDi(r,e,i){const n=[];for(const a of i){const o=n[n.length-1];if(!o){n.push(a);continue}a.seq1Range.start-o.seq1Range.endExclusive<=2||a.seq2Range.start-o.seq2Range.endExclusive<=2?n[n.length-1]=new i2(o.seq1Range.join(a.seq1Range),o.seq2Range.join(a.seq2Range)):n.push(a)}return n}function BDi(r,e,i){const n=[];i.length>0&&n.push(i[0]);for(let a=1;a0?i[n-1].seq2Range.endExclusive:-1,c=n+10?i[n-1].seq1Range.endExclusive:-1,c=n+1a&&i.getElement(r.seq2Range.start-c)===i.getElement(r.seq2Range.endExclusive-c)&&c<20;)c++;c--;let h=0;for(;r.seq2Range.start+h_&&(_=O,g=x)}return g!==0?new i2(r.seq1Range.delta(g),r.seq2Range.delta(g)):r}class TDi{compute(e,i,n=Kue.instance){if(e.length===0||i.length===0)return ZS.trivial(e,i);function a(L,O){for(;L=this.negativeArr.length){const n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[e]=i}else{if(e>=this.positiveArr.length){const n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[e]=i}}}class NDi{constructor(){this.positiveArr=[],this.negativeArr=[]}get(e){return e<0?(e=-e-1,this.negativeArr[e]):this.positiveArr[e]}set(e,i){e<0?(e=-e-1,this.negativeArr[e]=i):this.positiveArr[e]=i}}class PDi{constructor(){this.dynamicProgrammingDiffing=new ADi,this.myersDiffingAlgorithm=new TDi}computeDiff(e,i,n){const a=n.maxComputationTimeMs===0?Kue.instance:new FDi(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,c=new Map;function h(ye){let Le=c.get(ye);return Le===void 0&&(Le=c.size,c.set(ye,Le)),Le}const g=e.map(ye=>h(ye.trim())),_=i.map(ye=>h(ye.trim())),x=new oEt(g,e),y=new oEt(_,i),S=x.length+y.length<1500?this.dynamicProgrammingDiffing.compute(x,y,a,(ye,Le)=>e[ye]===i[Le]?i[Le].length===0?.1:1+Math.log(1+i[Le].length):.99):this.myersDiffingAlgorithm.compute(x,y);let L=S.diffs,O=S.hitTimeout;L=uEt(x,y,L);const G=[],ie=ye=>{if(o)for(let Le=0;Leye.seq1Range.start-ue===ye.seq2Range.start-re);const Le=ye.seq1Range.start-ue;ie(Le),ue=ye.seq1Range.endExclusive,re=ye.seq2Range.endExclusive;const lt=this.refineDiff(e,i,ye,a,o);lt.hitTimeout&&(O=!0);for(const Ue of lt.mappings)G.push(Ue)}ie(e.length-ue);const _e=IDi(G,e,i);return new t2t(_e,O)}refineDiff(e,i,n,a,o){const c=new lEt(e,n.seq1Range,o),h=new lEt(i,n.seq2Range,o),g=c.length+h.length<500?this.dynamicProgrammingDiffing.compute(c,h,a):this.myersDiffingAlgorithm.compute(c,h,a);let _=g.diffs;return _=uEt(c,h,_),_=MDi(c,h,_),_=SDi(c,h,_),{mappings:_.map(y=>new Q6e(c.translateRange(y.seq1Range),h.translateRange(y.seq2Range))),hitTimeout:g.hitTimeout}}}function MDi(r,e,i){const n=[];let a;function o(){if(!a)return;const h=a.s1Range.length-a.deleted;a.s2Range.length-a.added,Math.max(a.deleted,a.added)+(a.count-1)>h&&n.push(new i2(a.s1Range,a.s2Range)),a=void 0}for(const h of i){let g=function(L,O){var G,ie,ue,re;if(!a||!a.s1Range.containsRange(L)||!a.s2Range.containsRange(O))if(a&&!(a.s1Range.endExclusive0||e.length>0;){const n=r[0],a=e[0];let o;n&&(!a||n.seq1Range.start0&&i[i.length-1].seq1Range.endExclusive>=o.seq1Range.start?i[i.length-1]=i[i.length-1].join(o):i.push(o)}return i}function IDi(r,e,i){const n=[];for(const a of ODi(r.map(o=>RDi(o,e,i)),(o,c)=>o.originalRange.overlapOrTouch(c.originalRange)||o.modifiedRange.overlapOrTouch(c.modifiedRange))){const o=a[0],c=a[a.length-1];n.push(new jJ(o.originalRange.join(c.originalRange),o.modifiedRange.join(c.modifiedRange),a.map(h=>h.innerChanges[0])))}return _Je(()=>NCt(n,(a,o)=>o.originalRange.startLineNumber-a.originalRange.endLineNumberExclusive===o.modifiedRange.startLineNumber-a.modifiedRange.endLineNumberExclusive&&a.originalRange.endLineNumberExclusive=i[r.modifiedRange.startLineNumber-1].length&&r.originalRange.startColumn-1>=e[r.originalRange.startLineNumber-1].length&&(n=1),r.modifiedRange.endColumn===1&&r.originalRange.endColumn===1&&r.originalRange.startLineNumber+n<=r.originalRange.endLineNumber&&r.modifiedRange.startLineNumber+n<=r.modifiedRange.endLineNumber&&(a=-1);const o=new G6(r.originalRange.startLineNumber+n,r.originalRange.endLineNumber+1+a),c=new G6(r.modifiedRange.startLineNumber+n,r.modifiedRange.endLineNumber+1+a);return new jJ(o,c,[r])}function*ODi(r,e){let i,n;for(const a of r)n!==void 0&&e(n,a)?i.push(a):(i&&(yield i),i=[a]),n=a;i&&(yield i)}class oEt{constructor(e,i){this.trimmedHash=e,this.lines=i}getElement(e){return this.trimmedHash[e]}get length(){return this.trimmedHash.length}getBoundaryScore(e){const i=e===0?0:sEt(this.lines[e-1]),n=e===this.lines.length?0:sEt(this.lines[e]);return 1e3-(i+n)}}function sEt(r){let e=0;for(;e0&&i.endExclusive>=e.length&&(i=new Lh(i.start-1,i.endExclusive),a=!0),this.lineRange=i;for(let o=this.lineRange.start;oString.fromCharCode(e)).join("")}getElement(e){return this.elements[e]}get length(){return this.elements.length}getBoundaryScore(e){const i=dEt(e>0?this.elements[e-1]:-1),n=dEt(ee?n=o:i=o+1}const a=i===0?0:this.firstCharOffsetByLineMinusOne[i-1];return new Vi(this.lineRange.start+i+1,e-a+1+this.offsetByLine[i])}translateRange(e){return ot.fromPositions(this.translateOffset(e.start),this.translateOffset(e.endExclusive))}findWordContaining(e){if(e<0||e>=this.elements.length||!LIe(this.elements[e]))return;let i=e;for(;i>0&&LIe(this.elements[i-1]);)i--;let n=e;for(;n=97&&r<=122||r>=65&&r<=90||r>=48&&r<=57}const jDi={0:0,1:0,2:0,3:10,4:2,5:3,6:10,7:10};function cEt(r){return jDi[r]}function dEt(r){return r===10?7:r===13?6:VDi(r)?5:r>=97&&r<=122?0:r>=65&&r<=90?1:r>=48&&r<=57?2:r===-1?3:4}function VDi(r){return r===32||r===9}const hEt={smart:new CDi,experimental:new PDi};var Yz=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})};class HDi extends sDi{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(e){return this._lines[e-1]}getWordAtPosition(e,i){const n=Pue(e.column,qvt(i),this._lines[e.lineNumber-1],0);return n?new ot(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn):null}words(e){const i=this._lines,n=this._wordenize.bind(this);let a=0,o="",c=0,h=[];return{*[Symbol.iterator](){for(;;)if(cthis._lines.length)i=this._lines.length,n=this._lines[i-1].length+1,a=!0;else{const o=this._lines[i-1].length+1;n<1?(n=1,a=!0):n>o&&(n=o,a=!0)}return a?{lineNumber:i,column:n}:e}}class bL{constructor(e,i){this._host=e,this._models=Object.create(null),this._foreignModuleFactory=i,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(e){return this._models[e]}_getModels(){const e=[];return Object.keys(this._models).forEach(i=>e.push(this._models[i])),e}acceptNewModel(e){this._models[e.url]=new HDi(no.parse(e.url),e.lines,e.EOL,e.versionId)}acceptModelChanged(e,i){if(!this._models[e])return;this._models[e].onEvents(i)}acceptRemovedModel(e){this._models[e]&&delete this._models[e]}computeUnicodeHighlights(e,i,n){return Yz(this,void 0,void 0,function*(){const a=this._getModel(e);return a?kJe.computeUnicodeHighlights(a,i,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}})}computeDiff(e,i,n,a){return Yz(this,void 0,void 0,function*(){const o=this._getModel(e),c=this._getModel(i);return!o||!c?null:bL.computeDiff(o,c,n,a)})}static computeDiff(e,i,n,a){const o=a==="experimental"?hEt.experimental:hEt.smart,c=e.getLinesContent(),h=i.getLinesContent(),g=o.computeDiff(c,h,n);return{identical:g.changes.length>0?!1:this._modelsAreIdentical(e,i),quitEarly:g.hitTimeout,changes:g.changes.map(x=>{var y;return[x.originalRange.startLineNumber,x.originalRange.endLineNumberExclusive,x.modifiedRange.startLineNumber,x.modifiedRange.endLineNumberExclusive,(y=x.innerChanges)===null||y===void 0?void 0:y.map(S=>[S.originalRange.startLineNumber,S.originalRange.startColumn,S.originalRange.endLineNumber,S.originalRange.endColumn,S.modifiedRange.startLineNumber,S.modifiedRange.startColumn,S.modifiedRange.endLineNumber,S.modifiedRange.endColumn])]})}}static _modelsAreIdentical(e,i){const n=e.getLineCount(),a=i.getLineCount();if(n!==a)return!1;for(let o=1;o<=n;o++){const c=e.getLineContent(o),h=i.getLineContent(o);if(c!==h)return!1}return!0}computeMoreMinimalEdits(e,i,n){return Yz(this,void 0,void 0,function*(){const a=this._getModel(e);if(!a)return i;const o=[];let c;i=i.slice(0).sort((h,g)=>{if(h.range&&g.range)return ot.compareRangesUsingStarts(h.range,g.range);const _=h.range?0:1,x=g.range?0:1;return _-x});for(let{range:h,text:g,eol:_}of i){if(typeof _=="number"&&(c=_),ot.isEmpty(h)&&!g)continue;const x=a.getValueInRange(h);if(g=g.replace(/\r\n|\n|\r/g,a.eol),x===g)continue;if(Math.max(g.length,x.length)>bL._diffLimit){o.push({range:h,text:g});continue}const y=rDi(x,g,n),S=a.offsetAt(ot.lift(h).getStartPosition());for(const L of y){const O=a.positionAt(S+L.originalStart),G=a.positionAt(S+L.originalStart+L.originalLength),ie={text:g.substr(L.modifiedStart,L.modifiedLength),range:{startLineNumber:O.lineNumber,startColumn:O.column,endLineNumber:G.lineNumber,endColumn:G.column}};a.getValueInRange(ie.range)!==ie.text&&o.push(ie)}}return typeof c=="number"&&o.push({eol:c,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o})}computeLinks(e){return Yz(this,void 0,void 0,function*(){const i=this._getModel(e);return i?fDi(i):null})}textualSuggest(e,i,n,a){return Yz(this,void 0,void 0,function*(){const o=new V3(!0),c=new RegExp(n,a),h=new Set;e:for(const g of e){const _=this._getModel(g);if(_){for(const x of _.words(c))if(!(x===i||!isNaN(Number(x)))&&(h.add(x),h.size>bL._suggestionsLimit))break e}}return{words:Array.from(h),duration:o.elapsed()}})}computeWordRanges(e,i,n,a){return Yz(this,void 0,void 0,function*(){const o=this._getModel(e);if(!o)return Object.create(null);const c=new RegExp(n,a),h=Object.create(null);for(let g=i.startLineNumber;gthis._host.fhr(h,g)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(c,i),Promise.resolve(YGe(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(e,i){if(!this._foreignModule||typeof this._foreignModule[e]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+e));try{return Promise.resolve(this._foreignModule[e].apply(this._foreignModule,i))}catch(n){return Promise.reject(n)}}}bL._diffLimit=1e5;bL._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=vCt());const FJe=k0("textResourceConfigurationService"),n2t=k0("textResourcePropertiesService"),rv=k0("logService");var jg;(function(r){r[r.Off=0]="Off",r[r.Trace=1]="Trace",r[r.Debug=2]="Debug",r[r.Info=3]="Info",r[r.Warning=4]="Warning",r[r.Error=5]="Error"})(jg||(jg={}));const u2t=jg.Info;class r2t extends ln{constructor(){super(...arguments),this.level=u2t,this._onDidChangeLogLevel=this._register(new Fi),this.onDidChangeLogLevel=this._onDidChangeLogLevel.event}setLevel(e){this.level!==e&&(this.level=e,this._onDidChangeLogLevel.fire(this.level))}getLevel(){return this.level}checkLogLevel(e){return this.level!==jg.Off&&this.level<=e}}class KDi extends r2t{constructor(e=u2t,i=!0){super(),this.useColors=i,this.setLevel(e)}trace(e,...i){this.checkLogLevel(jg.Trace)&&(this.useColors?console.log("%cTRACE","color: #888",e,...i):console.log(e,...i))}debug(e,...i){this.checkLogLevel(jg.Debug)&&(this.useColors?console.log("%cDEBUG","background: #eee; color: #888",e,...i):console.log(e,...i))}info(e,...i){this.checkLogLevel(jg.Info)&&(this.useColors?console.log("%c INFO","color: #33f",e,...i):console.log(e,...i))}error(e,...i){this.checkLogLevel(jg.Error)&&(this.useColors?console.log("%c ERR","color: #f33",e,...i):console.error(e,...i))}dispose(){}}class WDi extends r2t{constructor(e){super(),this.loggers=e,e.length&&this.setLevel(e[0].getLevel())}setLevel(e){for(const i of this.loggers)i.setLevel(e);super.setLevel(e)}trace(e,...i){for(const n of this.loggers)n.trace(e,...i)}debug(e,...i){for(const n of this.loggers)n.debug(e,...i)}info(e,...i){for(const n of this.loggers)n.info(e,...i)}error(e,...i){for(const n of this.loggers)n.error(e,...i)}dispose(){for(const e of this.loggers)e.dispose()}}function GDi(r){switch(r){case jg.Trace:return"trace";case jg.Debug:return"debug";case jg.Info:return"info";case jg.Warning:return"warn";case jg.Error:return"error";case jg.Off:return"off"}}new jr("logLevel",GDi(jg.Info));const da=k0("ILanguageFeaturesService");var JDi=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},zie=function(r,e){return function(i,n){e(i,n,r)}},_5e=function(r,e,i,n){function a(o){return o instanceof i?o:new i(function(c){c(o)})}return new(i||(i=Promise))(function(o,c){function h(x){try{_(n.next(x))}catch(y){c(y)}}function g(x){try{_(n.throw(x))}catch(y){c(y)}}function _(x){x.done?o(x.value):a(x.value).then(h,g)}_((n=n.apply(r,e||[])).next())})};const fEt=60*1e3,mEt=5*60*1e3;function CI(r,e){const i=r.getModel(e);return!(!i||i.isTooLargeForSyncing())}let yVe=class extends ln{constructor(e,i,n,a,o){super(),this._modelService=e,this._workerManager=this._register(new UDi(this._modelService,a)),this._logService=n,this._register(o.linkProvider.register({language:"*",hasAccessToAllModels:!0},{provideLinks:(c,h)=>CI(this._modelService,c.uri)?this._workerManager.withWorker().then(g=>g.computeLinks(c.uri)).then(g=>g&&{links:g}):Promise.resolve({links:[]})})),this._register(o.completionProvider.register("*",new $Di(this._workerManager,i,this._modelService,a)))}dispose(){super.dispose()}canComputeUnicodeHighlights(e){return CI(this._modelService,e)}computedUnicodeHighlights(e,i,n){return this._workerManager.withWorker().then(a=>a.computedUnicodeHighlights(e,i,n))}computeDiff(e,i,n,a){return _5e(this,void 0,void 0,function*(){const o=yield this._workerManager.withWorker().then(h=>h.computeDiff(e,i,n,a));return o?{identical:o.identical,quitEarly:o.quitEarly,changes:o.changes.map(h=>{var g;return new jJ(new G6(h[0],h[1]),new G6(h[2],h[3]),(g=h[4])===null||g===void 0?void 0:g.map(_=>new Q6e(new ot(_[0],_[1],_[2],_[3]),new ot(_[4],_[5],_[6],_[7]))))})}:null})}computeMoreMinimalEdits(e,i,n=!1){if(Wg(i)){if(!CI(this._modelService,e))return Promise.resolve(i);const a=V3.create(!0),o=this._workerManager.withWorker().then(c=>c.computeMoreMinimalEdits(e,i,n));return o.finally(()=>this._logService.trace("FORMAT#computeMoreMinimalEdits",e.toString(!0),a.elapsed())),Promise.race([o,WL(1e3).then(()=>i)])}else return Promise.resolve(void 0)}canNavigateValueSet(e){return CI(this._modelService,e)}navigateValueSet(e,i,n){return this._workerManager.withWorker().then(a=>a.navigateValueSet(e,i,n))}canComputeWordRanges(e){return CI(this._modelService,e)}computeWordRanges(e,i){return this._workerManager.withWorker().then(n=>n.computeWordRanges(e,i))}};yVe=JDi([zie(0,ch),zie(1,FJe),zie(2,rv),zie(3,T1),zie(4,da)],yVe);class $Di{constructor(e,i,n,a){this.languageConfigurationService=a,this._debugDisplayName="wordbasedCompletions",this._workerManager=e,this._configurationService=i,this._modelService=n}provideCompletionItems(e,i){return _5e(this,void 0,void 0,function*(){const n=this._configurationService.getValue(e.uri,i,"editor");if(!n.wordBasedSuggestions)return;const a=[];if(n.wordBasedSuggestionsMode==="currentDocument")CI(this._modelService,e.uri)&&a.push(e.uri);else for(const y of this._modelService.getModels())CI(this._modelService,y.uri)&&(y===e?a.unshift(y.uri):(n.wordBasedSuggestionsMode==="allDocuments"||y.getLanguageId()===e.getLanguageId())&&a.push(y.uri));if(a.length===0)return;const o=this.languageConfigurationService.getLanguageConfiguration(e.getLanguageId()).getWordDefinition(),c=e.getWordAtPosition(i),h=c?new ot(i.lineNumber,c.startColumn,i.lineNumber,c.endColumn):ot.fromPositions(i),g=h.setEndPosition(i.lineNumber,i.column),x=yield(yield this._workerManager.withWorker()).textualSuggest(a,c==null?void 0:c.word,o);if(x)return{duration:x.duration,suggestions:x.words.map(y=>({kind:18,label:y,insertText:y,range:{insert:g,replace:h}}))}})}}class UDi extends ln{constructor(e,i){super(),this.languageConfigurationService=i,this._modelService=e,this._editorWorkerClient=null,this._lastWorkerUsedTime=new Date().getTime(),this._register(new yae).cancelAndSet(()=>this._checkStopIdleWorker(),Math.round(mEt/2)),this._register(this._modelService.onModelRemoved(a=>this._checkStopEmptyWorker()))}dispose(){this._editorWorkerClient&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null),super.dispose()}_checkStopEmptyWorker(){if(!this._editorWorkerClient)return;this._modelService.getModels().length===0&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}_checkStopIdleWorker(){if(!this._editorWorkerClient)return;new Date().getTime()-this._lastWorkerUsedTime>mEt&&(this._editorWorkerClient.dispose(),this._editorWorkerClient=null)}withWorker(){return this._lastWorkerUsedTime=new Date().getTime(),this._editorWorkerClient||(this._editorWorkerClient=new a2t(this._modelService,!1,"editorWorkerService",this.languageConfigurationService)),Promise.resolve(this._editorWorkerClient)}}class qDi extends ln{constructor(e,i,n){if(super(),this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),this._proxy=e,this._modelService=i,!n){const a=new yae;a.cancelAndSet(()=>this._checkStopModelSync(),Math.round(fEt/2)),this._register(a)}}dispose(){for(const e in this._syncedModels)ac(this._syncedModels[e]);this._syncedModels=Object.create(null),this._syncedModelsLastUsedTime=Object.create(null),super.dispose()}ensureSyncedResources(e,i){for(const n of e){const a=n.toString();this._syncedModels[a]||this._beginModelSync(n,i),this._syncedModels[a]&&(this._syncedModelsLastUsedTime[a]=new Date().getTime())}}_checkStopModelSync(){const e=new Date().getTime(),i=[];for(const n in this._syncedModelsLastUsedTime)e-this._syncedModelsLastUsedTime[n]>fEt&&i.push(n);for(const n of i)this._stopModelSync(n)}_beginModelSync(e,i){const n=this._modelService.getModel(e);if(!n||!i&&n.isTooLargeForSyncing())return;const a=e.toString();this._proxy.acceptNewModel({url:n.uri.toString(),lines:n.getLinesContent(),EOL:n.getEOL(),versionId:n.getVersionId()});const o=new cu;o.add(n.onDidChangeContent(c=>{this._proxy.acceptModelChanged(a.toString(),c)})),o.add(n.onWillDispose(()=>{this._stopModelSync(a)})),o.add(Ts(()=>{this._proxy.acceptRemovedModel(a)})),this._syncedModels[a]=o}_stopModelSync(e){const i=this._syncedModels[e];delete this._syncedModels[e],delete this._syncedModelsLastUsedTime[e],ac(i)}}class pEt{constructor(e){this._instance=e,this._proxyObj=Promise.resolve(this._instance)}dispose(){this._instance.dispose()}getProxyObject(){return this._proxyObj}}class NIe{constructor(e){this._workerClient=e}fhr(e,i){return this._workerClient.fhr(e,i)}}class a2t extends ln{constructor(e,i,n,a){super(),this.languageConfigurationService=a,this._disposed=!1,this._modelService=e,this._keepIdleModels=i,this._workerFactory=new q6e(n),this._worker=null,this._modelManager=null}fhr(e,i){throw new Error("Not implemented!")}_getOrCreateWorker(){if(!this._worker)try{this._worker=this._register(new Z3i(this._workerFactory,"vs/editor/common/services/editorSimpleWorker",new NIe(this)))}catch(e){xVe(e),this._worker=new pEt(new bL(new NIe(this),null))}return this._worker}_getProxy(){return this._getOrCreateWorker().getProxyObject().then(void 0,e=>(xVe(e),this._worker=new pEt(new bL(new NIe(this),null)),this._getOrCreateWorker().getProxyObject()))}_getOrCreateModelManager(e){return this._modelManager||(this._modelManager=this._register(new qDi(e,this._modelService,this._keepIdleModels))),this._modelManager}_withSyncedResources(e,i=!1){return _5e(this,void 0,void 0,function*(){return this._disposed?Promise.reject(FEi()):this._getProxy().then(n=>(this._getOrCreateModelManager(n).ensureSyncedResources(e,i),n))})}computedUnicodeHighlights(e,i,n){return this._withSyncedResources([e]).then(a=>a.computeUnicodeHighlights(e.toString(),i,n))}computeDiff(e,i,n,a){return this._withSyncedResources([e,i],!0).then(o=>o.computeDiff(e.toString(),i.toString(),n,a))}computeMoreMinimalEdits(e,i,n){return this._withSyncedResources([e]).then(a=>a.computeMoreMinimalEdits(e.toString(),i,n))}computeLinks(e){return this._withSyncedResources([e]).then(i=>i.computeLinks(e.toString()))}textualSuggest(e,i,n){return _5e(this,void 0,void 0,function*(){const a=yield this._withSyncedResources(e),o=n.source,c=gIe(n);return a.textualSuggest(e.map(h=>h.toString()),i,o,c)})}computeWordRanges(e,i){return this._withSyncedResources([e]).then(n=>{const a=this._modelService.getModel(e);if(!a)return Promise.resolve(null);const o=this.languageConfigurationService.getLanguageConfiguration(a.getLanguageId()).getWordDefinition(),c=o.source,h=gIe(o);return n.computeWordRanges(e.toString(),i,c,h)})}navigateValueSet(e,i,n){return this._withSyncedResources([e]).then(a=>{const o=this._modelService.getModel(e);if(!o)return null;const c=this.languageConfigurationService.getLanguageConfiguration(o.getLanguageId()).getWordDefinition(),h=c.source,g=gIe(c);return a.navigateValueSet(e.toString(),i,n,h,g)})}dispose(){super.dispose(),this._disposed=!0}}function ZDi(r,e,i){return new YDi(r,e,i)}class YDi extends a2t{constructor(e,i,n){super(e,n.keepIdleModels||!1,n.label,i),this._foreignModuleId=n.moduleId,this._foreignModuleCreateData=n.createData||null,this._foreignModuleHost=n.host||null,this._foreignProxy=null}fhr(e,i){if(!this._foreignModuleHost||typeof this._foreignModuleHost[e]!="function")return Promise.reject(new Error("Missing method "+e+" or missing main thread foreign host."));try{return Promise.resolve(this._foreignModuleHost[e].apply(this._foreignModuleHost,i))}catch(n){return Promise.reject(n)}}_getForeignProxy(){return this._foreignProxy||(this._foreignProxy=this._getProxy().then(e=>{const i=this._foreignModuleHost?YGe(this._foreignModuleHost):[];return e.loadForeignModule(this._foreignModuleId,this._foreignModuleCreateData,i).then(n=>{this._foreignModuleCreateData=null;const a=(h,g)=>e.fmr(h,g),o=(h,g)=>function(){const _=Array.prototype.slice.call(arguments,0);return g(h,_)},c={};for(const h of n)c[h]=o(h,a);return c})})),this._foreignProxy}getProxy(){return this._getForeignProxy()}withSyncedResources(e){return this._withSyncedResources(e).then(i=>this.getProxy())}}class ng{static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static getClassNameFromMetadata(e){let n="mtk"+this.getForeground(e);const a=this.getFontStyle(e);return a&1&&(n+=" mtki"),a&2&&(n+=" mtkb"),a&4&&(n+=" mtku"),a&8&&(n+=" mtks"),n}static getInlineStyleFromMetadata(e,i){const n=this.getForeground(e),a=this.getFontStyle(e);let o=`color: ${i[n]};`;a&1&&(o+="font-style: italic;"),a&2&&(o+="font-weight: bold;");let c="";return a&4&&(c+=" underline"),a&8&&(c+=" line-through"),c&&(o+=`text-decoration:${c};`),o}static getPresentationFromMetadata(e){const i=this.getForeground(e),n=this.getFontStyle(e);return{foreground:i,italic:!!(n&1),bold:!!(n&2),underline:!!(n&4),strikethrough:!!(n&8)}}}class n4{static createEmpty(e,i){const n=n4.defaultTokenMetadata,a=new Uint32Array(2);return a[0]=e.length,a[1]=n,new n4(a,e,i)}constructor(e,i,n){this._lineTokensBrand=void 0,this._tokens=e,this._tokensCount=this._tokens.length>>>1,this._text=i,this._languageIdCodec=n}equals(e){return e instanceof n4?this.slicedEquals(e,0,this._tokensCount):!1}slicedEquals(e,i,n){if(this._text!==e._text||this._tokensCount!==e._tokensCount)return!1;const a=i<<1,o=a+(n<<1);for(let c=a;c0?this._tokens[e-1<<1]:0}getMetadata(e){return this._tokens[(e<<1)+1]}getLanguageId(e){const i=this._tokens[(e<<1)+1],n=ng.getLanguageId(i);return this._languageIdCodec.decodeLanguageId(n)}getStandardTokenType(e){const i=this._tokens[(e<<1)+1];return ng.getTokenType(i)}getForeground(e){const i=this._tokens[(e<<1)+1];return ng.getForeground(i)}getClassName(e){const i=this._tokens[(e<<1)+1];return ng.getClassNameFromMetadata(i)}getInlineStyle(e,i){const n=this._tokens[(e<<1)+1];return ng.getInlineStyleFromMetadata(n,i)}getPresentation(e){const i=this._tokens[(e<<1)+1];return ng.getPresentationFromMetadata(i)}getEndOffset(e){return this._tokens[e<<1]}findTokenIndexAtOffset(e){return n4.findIndexInTokensArray(this._tokens,e)}inflate(){return this}sliceAndInflate(e,i,n){return new AJe(this,e,i,n)}static convertToEndOffset(e,i){const a=(e.length>>>1)-1;for(let o=0;o>>1)-1;for(;ni&&(a=o)}return n}withInserted(e){if(e.length===0)return this;let i=0,n=0,a="";const o=new Array;let c=0;for(;;){const h=ic){a+=this._text.substring(c,g.offset);const _=this._tokens[(i<<1)+1];o.push(a.length,_),c=g.offset}a+=g.text,o.push(a.length,g.tokenMetadata),n++}else break}return new n4(new Uint32Array(o),a,this._languageIdCodec)}}n4.defaultTokenMetadata=(32768|2<<24)>>>0;class AJe{constructor(e,i,n,a){this._source=e,this._startOffset=i,this._endOffset=n,this._deltaOffset=a,this._firstTokenIndex=e.findTokenIndexAtOffset(i),this._tokensCount=0;for(let o=this._firstTokenIndex,c=e.getCount();o=n);o++)this._tokensCount++}getMetadata(e){return this._source.getMetadata(this._firstTokenIndex+e)}getLanguageId(e){return this._source.getLanguageId(this._firstTokenIndex+e)}getLineContent(){return this._source.getLineContent().substring(this._startOffset,this._endOffset)}equals(e){return e instanceof AJe?this._startOffset===e._startOffset&&this._endOffset===e._endOffset&&this._deltaOffset===e._deltaOffset&&this._source.slicedEquals(e._source,this._firstTokenIndex,this._tokensCount):!1}getCount(){return this._tokensCount}getForeground(e){return this._source.getForeground(this._firstTokenIndex+e)}getEndOffset(e){const i=this._source.getEndOffset(this._firstTokenIndex+e);return Math.min(this._endOffset,i)-this._startOffset+this._deltaOffset}getClassName(e){return this._source.getClassName(this._firstTokenIndex+e)}getInlineStyle(e,i){return this._source.getInlineStyle(this._firstTokenIndex+e,i)}getPresentation(e){return this._source.getPresentation(this._firstTokenIndex+e)}findTokenIndexAtOffset(e){return this._source.findTokenIndexAtOffset(e+this._startOffset-this._deltaOffset)-this._firstTokenIndex}}class jD{constructor(e,i,n,a){this.startColumn=e,this.endColumn=i,this.className=n,this.type=a,this._lineDecorationBrand=void 0}static _equals(e,i){return e.startColumn===i.startColumn&&e.endColumn===i.endColumn&&e.className===i.className&&e.type===i.type}static equalsArr(e,i){const n=e.length,a=i.length;if(n!==a)return!1;for(let o=0;o=o||(h[g++]=new jD(Math.max(1,_.startColumn-a+1),Math.min(c+1,_.endColumn-a+1),_.className,_.type));return h}static filter(e,i,n,a){if(e.length===0)return[];const o=[];let c=0;for(let h=0,g=e.length;hi||x.isEmpty()&&(_.type===0||_.type===3))continue;const y=x.startLineNumber===i?x.startColumn:n,S=x.endLineNumber===i?x.endColumn:a;o[c++]=new jD(y,S,_.inlineClassName,_.type)}return o}static _typeCompare(e,i){const n=[2,0,1,3];return n[e]-n[i]}static compare(e,i){if(e.startColumn!==i.startColumn)return e.startColumn-i.startColumn;if(e.endColumn!==i.endColumn)return e.endColumn-i.endColumn;const n=jD._typeCompare(e.type,i.type);return n!==0?n:e.className!==i.className?e.className0&&this.stopOffsets[0]0&&i=e){this.stopOffsets.splice(a,0,e),this.classNames.splice(a,0,i),this.metadata.splice(a,0,n);break}this.count++}}class QDi{static normalize(e,i){if(i.length===0)return[];const n=[],a=new D5e;let o=0;for(let c=0,h=i.length;c1){const G=e.charCodeAt(_-2);i4(G)&&_--}if(x>1){const G=e.charCodeAt(x-2);i4(G)&&x--}const L=_-1,O=x-2;o=a.consumeLowerThan(L,o,n),a.count===0&&(o=L),a.insert(O,y,S)}return a.consumeLowerThan(1073741824,o,n),n}}class N4{constructor(e,i,n,a){this.endIndex=e,this.type=i,this.metadata=n,this.containsRTL=a,this._linePartBrand=void 0}isWhitespace(){return!!(this.metadata&1)}isPseudoAfter(){return!!(this.metadata&4)}}class o2t{constructor(e,i){this.startOffset=e,this.endOffset=i}equals(e){return this.startOffset===e.startOffset&&this.endOffset===e.endOffset}}class dN{constructor(e,i,n,a,o,c,h,g,_,x,y,S,L,O,G,ie,ue,re,_e){this.useMonospaceOptimizations=e,this.canUseHalfwidthRightwardsArrow=i,this.lineContent=n,this.continuesWithWrappedLine=a,this.isBasicASCII=o,this.containsRTL=c,this.fauxIndentLength=h,this.lineTokens=g,this.lineDecorations=_.sort(jD.compare),this.tabSize=x,this.startVisibleColumn=y,this.spaceWidth=S,this.stopRenderingLineAfter=G,this.renderWhitespace=ie==="all"?4:ie==="boundary"?1:ie==="selection"?2:ie==="trailing"?3:0,this.renderControlCharacters=ue,this.fontLigatures=re,this.selectionsOnLine=_e&&_e.sort((lt,Ue)=>lt.startOffset>>16}static getCharIndex(e){return(e&65535)>>>0}constructor(e,i){this.length=e,this._data=new Uint32Array(this.length),this._horizontalOffset=new Uint32Array(this.length)}setColumnInfo(e,i,n,a){const o=(i<<16|n<<0)>>>0;this._data[e-1]=o,this._horizontalOffset[e-1]=a}getHorizontalOffset(e){return this._horizontalOffset.length===0?0:this._horizontalOffset[e-1]}charOffsetToPartData(e){return this.length===0?0:e<0?this._data[0]:e>=this.length?this._data[this.length-1]:this._data[e]}getDomPosition(e){const i=this.charOffsetToPartData(e-1),n=YF.getPartIndex(i),a=YF.getCharIndex(i);return new SJe(n,a)}getColumn(e,i){return this.partDataToCharOffset(e.partIndex,i,e.charIndex)+1}partDataToCharOffset(e,i,n){if(this.length===0)return 0;const a=(e<<16|n<<0)>>>0;let o=0,c=this.length-1;for(;o+1>>1,ie=this._data[G];if(ie===a)return G;ie>a?c=G:o=G}if(o===c)return o;const h=this._data[o],g=this._data[c];if(h===a)return o;if(g===a)return c;const _=YF.getPartIndex(h),x=YF.getCharIndex(h),y=YF.getPartIndex(g);let S;_!==y?S=i:S=YF.getCharIndex(g);const L=n-x,O=S-n;return L<=O?o:c}}class kVe{constructor(e,i,n){this._renderLineOutputBrand=void 0,this.characterMapping=e,this.containsRTL=i,this.containsForeignElements=n}}function kae(r,e){if(r.lineContent.length===0){if(r.lineDecorations.length>0){e.appendString("");let i=0,n=0,a=0;for(const c of r.lineDecorations)(c.type===1||c.type===2)&&(e.appendString(''),c.type===1&&(a|=1,i++),c.type===2&&(a|=2,n++));e.appendString("");const o=new YF(1,i+n);return o.setColumnInfo(1,i,0,0),new kVe(o,!1,a)}return e.appendString(""),new kVe(new YF(0,0),!1,0)}return o5i(t5i(r),e)}class XDi{constructor(e,i,n,a){this.characterMapping=e,this.html=i,this.containsRTL=n,this.containsForeignElements=a}}function X6e(r){const e=new S$(1e4),i=kae(r,e);return new XDi(i.characterMapping,e.build(),i.containsRTL,i.containsForeignElements)}class e5i{constructor(e,i,n,a,o,c,h,g,_,x,y,S,L,O,G,ie){this.fontIsMonospace=e,this.canUseHalfwidthRightwardsArrow=i,this.lineContent=n,this.len=a,this.isOverflowing=o,this.overflowingCharCount=c,this.parts=h,this.containsForeignElements=g,this.fauxIndentLength=_,this.tabSize=x,this.startVisibleColumn=y,this.containsRTL=S,this.spaceWidth=L,this.renderSpaceCharCode=O,this.renderWhitespace=G,this.renderControlCharacters=ie}}function t5i(r){const e=r.lineContent;let i,n,a;r.stopRenderingLineAfter!==-1&&r.stopRenderingLineAfter0){for(let h=0,g=r.lineDecorations.length;h0&&(o[c++]=new N4(n,"",0,!1));let h=n;for(let g=0,_=i.getCount();g<_;g++){const x=i.getEndOffset(g);if(x<=n)continue;const y=i.getClassName(g);if(x>=a){const L=e?MJ(r.substring(h,a)):!1;o[c++]=new N4(a,y,0,L);break}const S=e?MJ(r.substring(h,x)):!1;o[c++]=new N4(x,y,0,S),h=x}return o}function n5i(r,e,i){let n=0;const a=[];let o=0;if(i)for(let c=0,h=e.length;c=50&&(a[o++]=new N4(L+1,x,y,S),O=L+1,L=-1);O!==_&&(a[o++]=new N4(_,x,y,S))}else a[o++]=g;n=_}else for(let c=0,h=e.length;c50){const y=g.type,S=g.metadata,L=g.containsRTL,O=Math.ceil(x/50);for(let G=1;G=8234&&r<=8238||r>=8294&&r<=8297||r>=8206&&r<=8207||r===1564}function u5i(r,e){const i=[];let n=new N4(0,"",0,!1),a=0;for(const o of e){const c=o.endIndex;for(;an.endIndex&&(n=new N4(a,o.type,o.metadata,o.containsRTL),i.push(n)),n=new N4(a+1,"mtkcontrol",o.metadata,!1),i.push(n))}a>n.endIndex&&(n=new N4(c,o.type,o.metadata,o.containsRTL),i.push(n))}return i}function r5i(r,e,i,n){const a=r.continuesWithWrappedLine,o=r.fauxIndentLength,c=r.tabSize,h=r.startVisibleColumn,g=r.useMonospaceOptimizations,_=r.selectionsOnLine,x=r.renderWhitespace===1,y=r.renderWhitespace===3,S=r.renderSpaceWidth!==r.spaceWidth,L=[];let O=0,G=0,ie=n[G].type,ue=n[G].containsRTL,re=n[G].endIndex;const _e=n.length;let ye=!1,Le=OE(e),lt;Le===-1?(ye=!0,Le=i,lt=i):lt=vy(e);let Ue=!1,Ze=0,rt=_&&_[Ze],kt=h%c;for(let jt=o;jt=rt.endOffset&&(Ze++,rt=_&&_[Ze]);let ti;if(jtlt)ti=!0;else if(ui===9)ti=!0;else if(ui===32)if(x)if(Ue)ti=!0;else{const Uu=jt+1jt),ti&&y&&(ti=ye||jt>lt),ti&&ue&&jt>=Le&&jt<=lt&&(ti=!1),Ue){if(!ti||!g&&kt>=c){if(S){const Uu=O>0?L[O-1].endIndex:o;for(let pu=Uu+1;pu<=jt;pu++)L[O++]=new N4(pu,"mtkw",1,!1)}else L[O++]=new N4(jt,"mtkw",1,!1);kt=kt%c}}else(jt===re||ti&&jt>o)&&(L[O++]=new N4(jt,ie,0,ue),kt=kt%c);for(ui===9?kt=c:HL(ui)?kt+=2:kt++,Ue=ti;jt===re&&(G++,G<_e);)ie=n[G].type,ue=n[G].containsRTL,re=n[G].endIndex}let Zt=!1;if(Ue)if(a&&x){const jt=i>0?e.charCodeAt(i-1):0,ui=i>1?e.charCodeAt(i-2):0;jt===32&&ui!==32&&ui!==9||(Zt=!0)}else Zt=!0;if(Zt)if(S){const jt=O>0?L[O-1].endIndex:o;for(let ui=jt+1;ui<=i;ui++)L[O++]=new N4(ui,"mtkw",1,!1)}else L[O++]=new N4(i,"mtkw",1,!1);else L[O++]=new N4(i,ie,0,ue);return L}function a5i(r,e,i,n){n.sort(jD.compare);const a=QDi.normalize(r,n),o=a.length;let c=0;const h=[];let g=0,_=0;for(let y=0,S=i.length;y_&&(_=re.startOffset,h[g++]=new N4(_,G,ie,ue)),re.endOffset+1<=O)_=re.endOffset+1,h[g++]=new N4(_,G+" "+re.className,ie|re.metadata,ue),c++;else{_=O,h[g++]=new N4(_,G+" "+re.className,ie|re.metadata,ue);break}}O>_&&(_=O,h[g++]=new N4(_,G,ie,ue))}const x=i[i.length-1].endIndex;if(c'):e.appendString("");for(let rt=0,kt=_.length;rt=x&&(Va+=Tr)}}for(pu&&(e.appendString(' style="width:'),e.appendString(String(O*zr)),e.appendString('px"')),e.appendASCIICharCode(62);ye1?e.appendCharCode(8594):e.appendCharCode(65515);for(let Tr=2;Tr<=ju;Tr++)e.appendCharCode(160)}else Va=2,ju=1,e.appendCharCode(G),e.appendCharCode(8204);lt+=Va,Ue+=ju,ye>=x&&(Le+=ju)}}else for(e.appendASCIICharCode(62);ye=x&&(Le+=Va)}Vt?Ze++:Ze=0,ye>=c&&!_e&&Zt.isPseudoAfter()&&(_e=!0,re.setColumnInfo(ye+1,rt,lt,Ue)),e.appendString("")}return _e||re.setColumnInfo(c+1,_.length-1,lt,Ue),h&&(e.appendString(''),e.appendString(V("showMore","Show more ({0})",l5i(g))),e.appendString("")),e.appendString(""),new kVe(re,L,a)}function s5i(r){return r.toString(16).toUpperCase().padStart(4,"0")}function l5i(r){return r<1024?V("overflow.chars","{0} chars",r):r<1024*1024?`${(r/1024).toFixed(1)} KB`:`${(r/1024/1024).toFixed(1)} MB`}class EEt{constructor(e,i,n,a){this._viewportBrand=void 0,this.top=e|0,this.left=i|0,this.width=n|0,this.height=a|0}}class c5i{constructor(e,i){this.tabSize=e,this.data=i}}class BJe{constructor(e,i,n,a,o,c,h){this._viewLineDataBrand=void 0,this.content=e,this.continuesWithWrappedLine=i,this.minColumn=n,this.maxColumn=a,this.startVisibleColumn=o,this.tokens=c,this.inlineDecorations=h}}class Ex{constructor(e,i,n,a,o,c,h,g,_,x){this.minColumn=e,this.maxColumn=i,this.content=n,this.continuesWithWrappedLine=a,this.isBasicASCII=Ex.isBasicASCII(n,c),this.containsRTL=Ex.containsRTL(n,this.isBasicASCII,o),this.tokens=h,this.inlineDecorations=g,this.tabSize=_,this.startVisibleColumn=x}static isBasicASCII(e,i){return i?xae(e):!0}static containsRTL(e,i,n){return!i&&n?MJ(e):!1}}class Wne{constructor(e,i,n){this.range=e,this.inlineClassName=i,this.type=n}}class d5i{constructor(e,i,n,a){this.startOffset=e,this.endOffset=i,this.inlineClassName=n,this.inlineClassNameAffectsLetterSpacing=a}toInlineDecoration(e){return new Wne(new ot(e,this.startOffset+1,e,this.endOffset+1),this.inlineClassName,this.inlineClassNameAffectsLetterSpacing?3:0)}}class l2t{constructor(e,i){this._viewModelDecorationBrand=void 0,this.range=e,this.options=i}}class c2t{constructor(e,i,n){this.color=e,this.zIndex=i,this.data=n}static cmp(e,i){return e.zIndex===i.zIndex?e.colori.color?1:0:e.zIndex-i.zIndex}}function h5i(r){return Array.isArray(r)}function f5i(r){return!h5i(r)}function d2t(r){return typeof r=="string"}function _Et(r){return!d2t(r)}function pG(r){return!r}function yL(r,e){return r.ignoreCase&&e?e.toLowerCase():e}function DEt(r){return r.replace(/[&<>'"_]/g,"-")}function m5i(r,e){console.log(`${r.languageId}: ${e}`)}function Gd(r,e){return new Error(`${r.languageId}: ${e}`)}function YT(r,e,i,n,a){const o=/\$((\$)|(#)|(\d\d?)|[sS](\d\d?)|@(\w+))/g;let c=null;return e.replace(o,function(h,g,_,x,y,S,L,O,G){return pG(_)?pG(x)?!pG(y)&&y0;){const n=r.tokenizer[i];if(n)return n;const a=i.lastIndexOf(".");a<0?i=null:i=i.substr(0,a)}return null}function p5i(r,e){let i=e;for(;i&&i.length>0;){if(r.stateNames[i])return!0;const a=i.lastIndexOf(".");a<0?i=null:i=i.substr(0,a)}return!1}var g5i=function(r,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(r,e,i,n);else for(var h=r.length-1;h>=0;h--)(c=r[h])&&(o=(a<3?c(o):a>3?c(e,i,o):c(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},E5i=function(r,e){return function(i,n){e(i,n,r)}};const h2t=5;class Wue{static create(e,i){return this._INSTANCE.create(e,i)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,i){if(e!==null&&e.depth>=this._maxCacheDepth)return new oJ(e,i);let n=oJ.getStackElementId(e);n.length>0&&(n+="|"),n+=i;let a=this._entries[n];return a||(a=new oJ(e,i),this._entries[n]=a,a)}}Wue._INSTANCE=new Wue(h2t);class oJ{constructor(e,i){this.parent=e,this.state=i,this.depth=(this.parent?this.parent.depth:0)+1}static getStackElementId(e){let i="";for(;e!==null;)i.length>0&&(i+="|"),i+=e.state,e=e.parent;return i}static _equals(e,i){for(;e!==null&&i!==null;){if(e===i)return!0;if(e.state!==i.state)return!1;e=e.parent,i=i.parent}return e===null&&i===null}equals(e){return oJ._equals(this,e)}push(e){return Wue.create(this,e)}pop(){return this.parent}popall(){let e=this;for(;e.parent;)e=e.parent;return e}switchTo(e){return Wue.create(this.parent,e)}}class BG{constructor(e,i){this.languageId=e,this.state=i}equals(e){return this.languageId===e.languageId&&this.state.equals(e.state)}clone(){return this.state.clone()===this.state?this:new BG(this.languageId,this.state)}}class QT{static create(e,i){return this._INSTANCE.create(e,i)}constructor(e){this._maxCacheDepth=e,this._entries=Object.create(null)}create(e,i){if(i!==null)return new Gne(e,i);if(e!==null&&e.depth>=this._maxCacheDepth)return new Gne(e,i);const n=oJ.getStackElementId(e);let a=this._entries[n];return a||(a=new Gne(e,null),this._entries[n]=a,a)}}QT._INSTANCE=new QT(h2t);class Gne{constructor(e,i){this.stack=e,this.embeddedLanguageData=i}clone(){return(this.embeddedLanguageData?this.embeddedLanguageData.clone():null)===this.embeddedLanguageData?this:QT.create(this.stack,this.embeddedLanguageData)}equals(e){return!(e instanceof Gne)||!this.stack.equals(e.stack)?!1:this.embeddedLanguageData===null&&e.embeddedLanguageData===null?!0:this.embeddedLanguageData===null||e.embeddedLanguageData===null?!1:this.embeddedLanguageData.equals(e.embeddedLanguageData)}}class _5i{constructor(){this._tokens=[],this._languageId=null,this._lastTokenType=null,this._lastTokenLanguage=null}enterLanguage(e){this._languageId=e}emit(e,i){this._lastTokenType===i&&this._lastTokenLanguage===this._languageId||(this._lastTokenType=i,this._lastTokenLanguage=this._languageId,this._tokens.push(new zue(e,i,this._languageId)))}nestedLanguageTokenize(e,i,n,a){const o=n.languageId,c=n.state,h=oh.get(o);if(!h)return this.enterLanguage(o),this.emit(a,""),c;const g=h.tokenize(e,i,c);if(a!==0)for(const _ of g.tokens)this._tokens.push(new zue(_.offset+a,_.type,_.language));else this._tokens=this._tokens.concat(g.tokens);return this._lastTokenType=null,this._lastTokenLanguage=null,this._languageId=null,g.endState}finalize(e){return new rJe(this._tokens,e)}}class x5e{constructor(e,i){this._languageService=e,this._theme=i,this._prependTokens=null,this._tokens=[],this._currentLanguageId=0,this._lastTokenMetadata=0}enterLanguage(e){this._currentLanguageId=this._languageService.languageIdCodec.encodeLanguageId(e)}emit(e,i){const n=this._theme.match(this._currentLanguageId,i)|1024;this._lastTokenMetadata!==n&&(this._lastTokenMetadata=n,this._tokens.push(e),this._tokens.push(n))}static _merge(e,i,n){const a=e!==null?e.length:0,o=i.length,c=n!==null?n.length:0;if(a===0&&o===0&&c===0)return new Uint32Array(0);if(a===0&&o===0)return n;if(o===0&&c===0)return e;const h=new Uint32Array(a+o+c);e!==null&&h.set(e);for(let g=0;g{if(c)return;let g=!1;for(let _=0,x=h.changedLanguages.length;_{h.affectsConfiguration("editor.maxTokenizationLineLength")&&(this._maxTokenizationLineLength=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:this._languageId}))})}dispose(){this._tokenizationRegistryListener.dispose()}getLoadStatus(){const e=[];for(const i in this._embeddedLanguages){const n=oh.get(i);if(n){if(n instanceof f2t){const a=n.getLoadStatus();a.loaded===!1&&e.push(a.promise)}continue}oh.isResolved(i)||e.push(oh.getOrCreate(i))}return e.length===0?{loaded:!0}:{loaded:!1,promise:Promise.all(e).then(i=>{})}}getInitialState(){const e=Wue.create(null,this._lexer.start);return QT.create(e,null)}tokenize(e,i,n){if(e.length>=this._maxTokenizationLineLength)return vJe(this._languageId,n);const a=new _5i,o=this._tokenize(e,i,n,a);return a.finalize(o)}tokenizeEncoded(e,i,n){if(e.length>=this._maxTokenizationLineLength)return $6e(this._languageService.languageIdCodec.encodeLanguageId(this._languageId),n);const a=new x5e(this._languageService,this._standaloneThemeService.getColorTheme().tokenTheme),o=this._tokenize(e,i,n,a);return a.finalize(o)}_tokenize(e,i,n,a){return n.embeddedLanguageData?this._nestedTokenize(e,i,n,0,a):this._myTokenize(e,i,n,0,a)}_findLeavingNestedLanguageOffset(e,i){let n=this._lexer.tokenizer[i.stack.state];if(!n&&(n=T_e(this._lexer,i.stack.state),!n))throw Gd(this._lexer,"tokenizer state is not defined: "+i.stack.state);let a=-1,o=!1;for(const c of n){if(!_Et(c.action)||c.action.nextEmbedded!=="@pop")continue;o=!0;let h=c.regex;const g=c.regex.source;if(g.substr(0,4)==="^(?:"&&g.substr(g.length-1,1)===")"){const x=(h.ignoreCase?"i":"")+(h.unicode?"u":"");h=new RegExp(g.substr(4,g.length-5),x)}const _=e.search(h);_===-1||_!==0&&c.matchOnlyAtLineStart||(a===-1||_0&&o.nestedLanguageTokenize(h,!1,n.embeddedLanguageData,a);const g=e.substring(c);return this._myTokenize(g,i,n,a+c,o)}_safeRuleName(e){return e?e.name:"(unknown)"}_myTokenize(e,i,n,a,o){o.enterLanguage(this._languageId);const c=e.length,h=i&&this._lexer.includeLF?e+` -`:e,g=h.length;let _=n.embeddedLanguageData,x=n.stack,y=0,S=null,L=!0;for(;L||y=g)break;L=!1;let rt=this._lexer.tokenizer[ue];if(!rt&&(rt=T_e(this._lexer,ue),!rt))throw Gd(this._lexer,"tokenizer state is not defined: "+ue);const kt=h.substr(y);for(const Zt of rt)if((y===0||!Zt.matchOnlyAtLineStart)&&(re=kt.match(Zt.regex),re)){_e=re[0],ye=Zt.action;break}}if(re||(re=[""],_e=""),ye||(y=this._lexer.maxStack)throw Gd(this._lexer,"maximum tokenizer stack size reached: ["+x.state+","+x.parent.state+",...]");x=x.push(ue)}else if(ye.next==="@pop"){if(x.depth<=1)throw Gd(this._lexer,"trying to pop an empty stack in rule: "+this._safeRuleName(Le));x=x.pop()}else if(ye.next==="@popall")x=x.popall();else{let rt=YT(this._lexer,ye.next,_e,re,ue);if(rt[0]==="@"&&(rt=rt.substr(1)),T_e(this._lexer,rt))x=x.push(rt);else throw Gd(this._lexer,"trying to set a next state '"+rt+"' that is undefined in rule: "+this._safeRuleName(Le))}}ye.log&&typeof ye.log=="string"&&m5i(this._lexer,this._lexer.languageId+": "+YT(this._lexer,ye.log,_e,re,ue))}if(Ue===null)throw Gd(this._lexer,"lexer rule has no well-defined action in rule: "+this._safeRuleName(Le));const Ze=rt=>{const kt=this._languageService.getLanguageIdByLanguageName(rt)||this._languageService.getLanguageIdByMimeType(rt)||rt,Zt=this._getNestedEmbeddedLanguageData(kt);if(y0)throw Gd(this._lexer,"groups cannot be nested: "+this._safeRuleName(Le));if(re.length!==Ue.length+1)throw Gd(this._lexer,"matched number of groups does not match the number of actions in rule: "+this._safeRuleName(Le));let rt=0;for(let kt=1;ktr});class wJe{static colorizeElement(e,i,n,a){a=a||{};const o=a.theme||"vs",c=a.mimeType||n.getAttribute("lang")||n.getAttribute("data-lang");if(!c)return console.error("Mode not detected"),Promise.resolve();const h=i.getLanguageIdByMimeType(c)||c;e.setTheme(o);const g=n.firstChild?n.firstChild.nodeValue:"";n.className+=" "+o;const _=x=>{var y;const S=(y=MIe==null?void 0:MIe.createHTML(x))!==null&&y!==void 0?y:x;n.innerHTML=S};return this.colorize(i,g||"",h,a).then(_,x=>console.error(x))}static colorize(e,i,n,a){return x5i(this,void 0,void 0,function*(){const o=e.languageIdCodec;let c=4;a&&typeof a.tabSize=="number"&&(c=a.tabSize),hJe(i)&&(i=i.substr(1));const h=TA(i);if(!e.isRegisteredLanguageId(n))return xEt(h,c,o);const g=yield oh.getOrCreate(n);return g?v5i(h,c,g,o):xEt(h,c,o)})}static colorizeLine(e,i,n,a,o=4){const c=Ex.isBasicASCII(e,i),h=Ex.containsRTL(e,c,n);return X6e(new dN(!1,!0,e,!1,c,h,0,a,[],o,0,0,0,0,-1,"none",!1,!1,null)).html}static colorizeModelLine(e,i,n=4){const a=e.getLineContent(i);e.tokenization.forceTokenization(i);const c=e.tokenization.getLineTokens(i).inflate();return this.colorizeLine(a,e.mightContainNonBasicASCII(),e.mightContainRTL(),c,n)}}function v5i(r,e,i,n){return new Promise((a,o)=>{const c=()=>{const h=C5i(r,e,i,n);if(i instanceof Gue){const g=i.getLoadStatus();if(g.loaded===!1){g.promise.then(c,o);return}}a(h)};c()})}function xEt(r,e,i){let n=[];const o=new Uint32Array(2);o[0]=0,o[1]=33587200;for(let c=0,h=r.length;c")}return n.join("")}function C5i(r,e,i,n){let a=[],o=i.getInitialState();for(let c=0,h=r.length;c"),o=_.endState}return a.join("")}const TJe={clipboard:{writeText:Dy||document.queryCommandSupported&&document.queryCommandSupported("copy")||!!(navigator&&navigator.clipboard&&navigator.clipboard.writeText),readText:Dy||!!(navigator&&navigator.clipboard&&navigator.clipboard.readText)},keyboard:Dy||gJe()?0:navigator.keyboard||i8?1:2,touch:"ontouchstart"in window||navigator.maxTouchPoints>0,pointerEvents:window.PointerEvent&&("ontouchstart"in window||window.navigator.maxTouchPoints>0||navigator.maxTouchPoints>0)};function FVe(r,e){if(typeof r=="number"){if(r===0)return null;const i=(r&65535)>>>0,n=(r&4294901760)>>>16;return n!==0?new zIe([L_e(i,e),L_e(n,e)]):new zIe([L_e(i,e)])}else{const i=[];for(let n=0;n1?i-1:0),a=1;a/gm),J5i=u8(/^data-[\-\w.\u00B7-\uFFFF]/),$5i=u8(/^aria-[\-\w]+$/),U5i=u8(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),q5i=u8(/^(?:\w+script|data):/i),Z5i=u8(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),dne=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};function MF(r){if(Array.isArray(r)){for(var e=0,i=Array(r.length);e"u"?null:window},Q5i=function(e,i){if((typeof e>"u"?"undefined":dne(e))!=="object"||typeof e.createPolicy!="function")return null;var n=null,a="data-tt-policy-suffix";i.currentScript&&i.currentScript.hasAttribute(a)&&(n=i.currentScript.getAttribute(a));var o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:function(h){return h}})}catch{return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function p2t(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Y5i(),e=function(nn){return p2t(nn)};if(e.version="2.3.1",e.removed=[],!r||!r.document||r.document.nodeType!==9)return e.isSupported=!1,e;var i=r.document,n=r.document,a=r.DocumentFragment,o=r.HTMLTemplateElement,c=r.Node,h=r.Element,g=r.NodeFilter,_=r.NamedNodeMap,x=_===void 0?r.NamedNodeMap||r.MozNamedAttrMap:_,y=r.Text,S=r.Comment,L=r.DOMParser,O=r.trustedTypes,G=h.prototype,ie=N_e(G,"cloneNode"),ue=N_e(G,"nextSibling"),re=N_e(G,"childNodes"),_e=N_e(G,"parentNode");if(typeof o=="function"){var ye=n.createElement("template");ye.content&&ye.content.ownerDocument&&(n=ye.content.ownerDocument)}var Le=Q5i(O,i),lt=Le&&$r?Le.createHTML(""):"",Ue=n,Ze=Ue.implementation,rt=Ue.createNodeIterator,kt=Ue.createDocumentFragment,Zt=Ue.getElementsByTagName,jt=i.importNode,ui={};try{ui=Qz(n).documentMode?n.documentMode:{}}catch{}var ti={};e.isSupported=typeof _e=="function"&&Ze&&typeof Ze.createHTMLDocument<"u"&&ui!==9;var Uu=W5i,pu=G5i,Vt=J5i,zr=$5i,Lu=q5i,Va=Z5i,ju=U5i,Tr=null,pa=Yc({},[].concat(MF(FEt),MF(IIe),MF(RIe),MF(OIe),MF(AEt))),z0=null,Zr=Yc({},[].concat(MF(SEt),MF(jIe),MF(BEt),MF(P_e))),qi=null,eo=null,Fa=!0,W0=!0,r0=!1,qa=!1,Hl=!1,ci=!1,Oe=!1,eu=!1,Hi=!1,Pr=!0,$r=!1,wa=!0,_i=!0,ri=!1,fi={},xt=null,Tt=Yc({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),pi=null,hi=Yc({},["audio","video","img","source","image","track"]),cn=null,On=Yc({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Dr="http://www.w3.org/1998/Math/MathML",Wr="http://www.w3.org/2000/svg",xi="http://www.w3.org/1999/xhtml",vo=xi,Pl=!1,yn=null,xa=n.createElement("form"),e0=function(nn){yn&&yn===nn||((!nn||(typeof nn>"u"?"undefined":dne(nn))!=="object")&&(nn={}),nn=Qz(nn),Tr="ALLOWED_TAGS"in nn?Yc({},nn.ALLOWED_TAGS):pa,z0="ALLOWED_ATTR"in nn?Yc({},nn.ALLOWED_ATTR):Zr,cn="ADD_URI_SAFE_ATTR"in nn?Yc(Qz(On),nn.ADD_URI_SAFE_ATTR):On,pi="ADD_DATA_URI_TAGS"in nn?Yc(Qz(hi),nn.ADD_DATA_URI_TAGS):hi,xt="FORBID_CONTENTS"in nn?Yc({},nn.FORBID_CONTENTS):Tt,qi="FORBID_TAGS"in nn?Yc({},nn.FORBID_TAGS):{},eo="FORBID_ATTR"in nn?Yc({},nn.FORBID_ATTR):{},fi="USE_PROFILES"in nn?nn.USE_PROFILES:!1,Fa=nn.ALLOW_ARIA_ATTR!==!1,W0=nn.ALLOW_DATA_ATTR!==!1,r0=nn.ALLOW_UNKNOWN_PROTOCOLS||!1,qa=nn.SAFE_FOR_TEMPLATES||!1,Hl=nn.WHOLE_DOCUMENT||!1,eu=nn.RETURN_DOM||!1,Hi=nn.RETURN_DOM_FRAGMENT||!1,Pr=nn.RETURN_DOM_IMPORT!==!1,$r=nn.RETURN_TRUSTED_TYPE||!1,Oe=nn.FORCE_BODY||!1,wa=nn.SANITIZE_DOM!==!1,_i=nn.KEEP_CONTENT!==!1,ri=nn.IN_PLACE||!1,ju=nn.ALLOWED_URI_REGEXP||ju,vo=nn.NAMESPACE||xi,qa&&(W0=!1),Hi&&(eu=!0),fi&&(Tr=Yc({},[].concat(MF(AEt))),z0=[],fi.html===!0&&(Yc(Tr,FEt),Yc(z0,SEt)),fi.svg===!0&&(Yc(Tr,IIe),Yc(z0,jIe),Yc(z0,P_e)),fi.svgFilters===!0&&(Yc(Tr,RIe),Yc(z0,jIe),Yc(z0,P_e)),fi.mathMl===!0&&(Yc(Tr,OIe),Yc(z0,BEt),Yc(z0,P_e))),nn.ADD_TAGS&&(Tr===pa&&(Tr=Qz(Tr)),Yc(Tr,nn.ADD_TAGS)),nn.ADD_ATTR&&(z0===Zr&&(z0=Qz(z0)),Yc(z0,nn.ADD_ATTR)),nn.ADD_URI_SAFE_ATTR&&Yc(cn,nn.ADD_URI_SAFE_ATTR),nn.FORBID_CONTENTS&&(xt===Tt&&(xt=Qz(xt)),Yc(xt,nn.FORBID_CONTENTS)),_i&&(Tr["#text"]=!0),Hl&&Yc(Tr,["html","head","body"]),Tr.table&&(Yc(Tr,["tbody"]),delete qi.tbody),GD&&GD(nn),yn=nn)},Fl=Yc({},["mi","mo","mn","ms","mtext"]),Ph=Yc({},["foreignobject","desc","title","annotation-xml"]),Cd=Yc({},IIe);Yc(Cd,RIe),Yc(Cd,H5i);var oc=Yc({},OIe);Yc(oc,K5i);var zi=function(nn){var gu=_e(nn);(!gu||!gu.tagName)&&(gu={namespaceURI:xi,tagName:"template"});var uo=fI(nn.tagName),Ns=fI(gu.tagName);if(nn.namespaceURI===Wr)return gu.namespaceURI===xi?uo==="svg":gu.namespaceURI===Dr?uo==="svg"&&(Ns==="annotation-xml"||Fl[Ns]):!!Cd[uo];if(nn.namespaceURI===Dr)return gu.namespaceURI===xi?uo==="math":gu.namespaceURI===Wr?uo==="math"&&Ph[Ns]:!!oc[uo];if(nn.namespaceURI===xi){if(gu.namespaceURI===Wr&&!Ph[Ns]||gu.namespaceURI===Dr&&!Fl[Ns])return!1;var Bm=Yc({},["title","style","font","a","script"]);return!oc[uo]&&(Bm[uo]||!Cd[uo])}return!1},Ki=function(nn){Rie(e.removed,{element:nn});try{nn.parentNode.removeChild(nn)}catch{try{nn.outerHTML=lt}catch{nn.remove()}}},Hn=function(nn,gu){try{Rie(e.removed,{attribute:gu.getAttributeNode(nn),from:gu})}catch{Rie(e.removed,{attribute:null,from:gu})}if(gu.removeAttribute(nn),nn==="is"&&!z0[nn])if(eu||Hi)try{Ki(gu)}catch{}else try{gu.setAttribute(nn,"")}catch{}},Pn=function(nn){var gu=void 0,uo=void 0;if(Oe)nn=""+nn;else{var Ns=yEt(nn,/^[\r\n\t ]+/);uo=Ns&&Ns[0]}var Bm=Le?Le.createHTML(nn):nn;if(vo===xi)try{gu=new L().parseFromString(Bm,"text/html")}catch{}if(!gu||!gu.documentElement){gu=Ze.createDocument(vo,"template",null);try{gu.documentElement.innerHTML=Pl?"":Bm}catch{}}var U1=gu.body||gu.documentElement;return nn&&uo&&U1.insertBefore(n.createTextNode(uo),U1.childNodes[0]||null),vo===xi?Zt.call(gu,Hl?"html":"body")[0]:Hl?gu.documentElement:U1},Oa=function(nn){return rt.call(nn.ownerDocument||nn,nn,g.SHOW_ELEMENT|g.SHOW_COMMENT|g.SHOW_TEXT,null,!1)},qu=function(nn){return nn instanceof y||nn instanceof S?!1:typeof nn.nodeName!="string"||typeof nn.textContent!="string"||typeof nn.removeChild!="function"||!(nn.attributes instanceof x)||typeof nn.removeAttribute!="function"||typeof nn.setAttribute!="function"||typeof nn.namespaceURI!="string"||typeof nn.insertBefore!="function"},Cr=function(nn){return(typeof c>"u"?"undefined":dne(c))==="object"?nn instanceof c:nn&&(typeof nn>"u"?"undefined":dne(nn))==="object"&&typeof nn.nodeType=="number"&&typeof nn.nodeName=="string"},Aa=function(nn,gu,uo){ti[nn]&&R5i(ti[nn],function(Ns){Ns.call(e,gu,uo,yn)})},bd=function(nn){var gu=void 0;if(Aa("beforeSanitizeElements",nn,null),qu(nn)||yEt(nn.nodeName,/[\u0080-\uFFFF]/))return Ki(nn),!0;var uo=fI(nn.nodeName);if(Aa("uponSanitizeElement",nn,{tagName:uo,allowedTags:Tr}),!Cr(nn.firstElementChild)&&(!Cr(nn.content)||!Cr(nn.content.firstElementChild))&&oS(/<[/\w]/g,nn.innerHTML)&&oS(/<[/\w]/g,nn.textContent)||uo==="select"&&oS(/